System.register(["jimu-core","jimu-arcgis","jimu-ui","esri/core/reactiveUtils","esri/widgets/ScaleBar"],(function(e,a){var t={},o={},r={},i={},n={};return{setters:[function(e){t.React=e.React},function(e){o.JimuMapViewComponent=e.JimuMapViewComponent},function(e){r.Loading=e.Loading},function(e){i.default=e.default},function(e){n.default=e.default}],execute:function(){e((()=>{var e={963:(e,a,t)=>{"use strict";t.d(a,{Z:()=>p});var o=t(81),r=t.n(o),i=t(645),n=t.n(i)()(r());n.push([e.id,"div.esri-attribution__powered-by{display:none}div.esri-component.esri-scale-bar{margin-bottom:15px}body .app-dialog-wrap.app-dialog-wrap-dialog_1 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_2 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_3 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_4 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_5 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_6 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_7 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_8 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_9 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_10 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_11 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_12 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_13 .app-dialog-backdrop,body .app-dialog-wrap.app-dialog-wrap-dialog_14 .app-dialog-backdrop{background-color:transparent}.app-dialog-wrap{pointer-events:none}\n",""]);const p=n},645:e=>{"use strict";e.exports=function(e){var a=[];return a.toString=function(){return this.map((function(a){var t="",o=void 0!==a[5];return a[4]&&(t+="@supports (".concat(a[4],") {")),a[2]&&(t+="@media ".concat(a[2]," {")),o&&(t+="@layer".concat(a[5].length>0?" ".concat(a[5]):""," {")),t+=e(a),o&&(t+="}"),a[2]&&(t+="}"),a[4]&&(t+="}"),t})).join("")},a.i=function(e,t,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var n={};if(o)for(var p=0;p0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),t&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=t):s[2]=t),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),a.push(s))}},a}},81:e=>{"use strict";e.exports=function(e){return e[1]}},379:e=>{"use strict";var a=[];function t(e){for(var t=-1,o=0;o{"use strict";var a={};e.exports=function(e,t){var o=function(e){if(void 0===a[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}a[e]=t}return a[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}},216:e=>{"use strict";e.exports=function(e){var a=document.createElement("style");return e.setAttributes(a,e.attributes),e.insert(a,e.options),a}},565:(e,a,t)=>{"use strict";e.exports=function(e){var a=t.nc;a&&e.setAttribute("nonce",a)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var a=e.insertStyleElement(e);return{update:function(t){!function(e,a,t){var o="";t.supports&&(o+="@supports (".concat(t.supports,") {")),t.media&&(o+="@media ".concat(t.media," {"));var r=void 0!==t.layer;r&&(o+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),o+=t.css,r&&(o+="}"),t.media&&(o+="}"),t.supports&&(o+="}");var i=t.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),a.styleTagTransform(o,e,a.options)}(a,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(a)}}}},589:e=>{"use strict";e.exports=function(e,a){if(a.styleSheet)a.styleSheet.cssText=e;else{for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(e))}}},135:e=>{"use strict";e.exports=i},277:e=>{"use strict";e.exports=n},826:e=>{"use strict";e.exports=o},891:e=>{"use strict";e.exports=t},726:e=>{"use strict";e.exports=r}},a={};function p(t){var o=a[t];if(void 0!==o)return o.exports;var r=a[t]={id:t,exports:{}};return e[t](r,r.exports,p),r.exports}p.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return p.d(a,{a}),a},p.d=(e,a)=>{for(var t in a)p.o(a,t)&&!p.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},p.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.p="",p.nc=void 0;var d={};return p.p=window.jimuConfig.baseUrl,(()=>{"use strict";p.r(d),p.d(d,{__set_webpack_public_path__:()=>M,default:()=>k});var e=p(891),a=p(826),t=p(726),o=p(135),r=p(277),i=p(379),n=p.n(i),c=p(795),s=p.n(c),l=p(569),u=p.n(l),g=p(565),f=p.n(g),v=p(216),m=p.n(v),b=p(589),y=p.n(b),w=p(963),h={};h.styleTagTransform=y(),h.setAttributes=f(),h.insert=u().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=m(),n()(w.Z,h),w.Z&&w.Z.locals&&w.Z.locals;const{useState:_,useEffect:x}=e.React,k=i=>{var n;const[p,d]=_(!1),[c,s]=_(null);return x((()=>()=>{c&&c.remove()}),[]),e.React.createElement(e.React.Fragment,null,e.React.createElement(a.JimuMapViewComponent,{useMapWidgetId:null===(n=i.useMapWidgetIds)||void 0===n?void 0:n[0],onViewsCreate:e=>{for(let a in e){const t=e[a].view;t.popup={dockOptions:{position:"auto",breakpoint:{width:5e3}},viewModel:{disableDefaultActions:!1}};const i=new r.default({view:t,unit:"metric"});t.ui.empty("bottom-left"),t.ui.add(i,{position:"bottom-left"});const n=t.layerViews;s(o.default.watch((()=>n.filter((e=>"group"===e.type)).map((e=>e.updating))),(e=>{e.includes(!0)?d(!0):d(!1)})))}}}),e.React.createElement("div",{className:"loading-spinner"},p&&e.React.createElement(t.Loading,{type:"DONUT",width:50,height:50})))};function M(e){p.p=e}})(),d})())}}}));