????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/60-es2015.js |
(function(){ var absMids = { "esri/widgets/Feature":"./node_modules/arcgis-js-api/widgets/Feature.js", "esri/widgets/Feature/FeatureViewModel":"./node_modules/arcgis-js-api/widgets/Feature/FeatureViewModel.js", "esri/widgets/Feature/nls/Feature":"./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js", "esri/widgets/Feature/nls/vi/Feature":"./node_modules/arcgis-js-api/widgets/Feature/nls/vi/Feature.js", "esri/widgets/Feature/support/RelatedFeatures":"./node_modules/arcgis-js-api/widgets/Feature/support/RelatedFeatures.js", "esri/widgets/Feature/support/attachmentUtils":"./node_modules/arcgis-js-api/widgets/Feature/support/attachmentUtils.js", "esri/widgets/Feature/support/featureUtils":"./node_modules/arcgis-js-api/widgets/Feature/support/featureUtils.js", "esri/widgets/support/chartUtils":"./node_modules/arcgis-js-api/widgets/support/chartUtils.js", "esri/widgets/support/nls/uriUtils":"./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js", "esri/widgets/support/nls/vi/uriUtils":"./node_modules/arcgis-js-api/widgets/support/nls/vi/uriUtils.js", "esri/widgets/support/uriUtils":"./node_modules/arcgis-js-api/widgets/support/uriUtils.js", "dojo/i18n!esri/widgets/Feature/nls/Feature":"./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js", "dojo/i18n!esri/widgets/support/nls/uriUtils":"./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js" }; var globalObj = this||window; var jsonpArray = globalObj["webpackJsonp"] = globalObj["webpackJsonp"] || []; if (jsonpArray.registerAbsMids) { jsonpArray.registerAbsMids(absMids); } else { var absMidsWaiting = jsonpArray.absMidsWaiting = jsonpArray.absMidsWaiting || []; absMidsWaiting.push(absMids); } })(),(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[60],{ /***/ "./node_modules/arcgis-js-api/widgets/Feature.js": /*!*******************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/Feature.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i),exports,__webpack_require__(/*! ../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"),__webpack_require__(/*! ../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"),__webpack_require__(/*! ../core/tsSupport/assignHelper */ "./node_modules/arcgis-js-api/core/tsSupport/assignHelper.js"),__webpack_require__(/*! ../core/tsSupport/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"),__webpack_require__(/*! ../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"),__webpack_require__(/*! dojo/i18n!./Feature/nls/Feature */ "./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js"),__webpack_require__(/*! ../intl */ "./node_modules/arcgis-js-api/intl.js"),__webpack_require__(/*! ../core/events */ "./node_modules/arcgis-js-api/core/events.js"),__webpack_require__(/*! ../core/watchUtils */ "./node_modules/arcgis-js-api/core/watchUtils.js"),__webpack_require__(/*! ../core/accessorSupport/decorators */ "./node_modules/arcgis-js-api/core/accessorSupport/decorators.js"),__webpack_require__(/*! ./Widget */ "./node_modules/arcgis-js-api/widgets/Widget.js"),__webpack_require__(/*! ./Feature/FeatureViewModel */ "./node_modules/arcgis-js-api/widgets/Feature/FeatureViewModel.js"),__webpack_require__(/*! ./Feature/support/attachmentUtils */ "./node_modules/arcgis-js-api/widgets/Feature/support/attachmentUtils.js"),__webpack_require__(/*! ./support/chartUtils */ "./node_modules/arcgis-js-api/widgets/support/chartUtils.js"),__webpack_require__(/*! ./support/uriUtils */ "./node_modules/arcgis-js-api/widgets/support/uriUtils.js"),__webpack_require__(/*! ./support/widget */ "./node_modules/arcgis-js-api/widgets/support/widget.js"),__webpack_require__(/*! ./support/widgetUtils */ "./node_modules/arcgis-js-api/widgets/support/widgetUtils.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e,t,i,a,r,n,s,o,l,d,c,p,u,m,h,f,_,v,y){var x={iconText:"esri-icon-font-fallback-text",iconLoading:"esri-icon-loading-indicator esri-rotating",iconLeftTriangleArrow:"esri-icon-left-triangle-arrow",iconRightTriangleArrow:"esri-icon-right-triangle-arrow",esriTable:"esri-widget__table",esriWidget:"esri-widget",base:"esri-feature",container:"esri-feature__size-container",title:"esri-feature__title",main:"esri-feature__main-container",btn:"esri-feature__button",icon:"esri-feature__icon",content:"esri-feature__content",contentElement:"esri-feature__content-element",text:"esri-feature__text",lastEditedInfo:"esri-feature__last-edited-info",showMediaPagination:"esri-feature--media-pagination-visible",attachments:"esri-feature__attachments",attachmentsList:"esri-feature__attachments--list",attachmentsPreview:"esri-feature__attachments--preview",attachmentsTitle:"esri-feature__attachments-title",attachmentsItems:"esri-feature__attachments-items",attachmentsItem:"esri-feature__attachments-item",attachmentsItemMask:"esri-feature__attachment-item-mask",attachmentsItemMaskIcon:"esri-feature__attachment-item-mask--icon",attachmentsItemImage:"esri-feature__attachments-image",attachmentsItemImageOverlay:"esri-feature__attachments-image-overlay",attachmentsItemLinkIcon:"esri-feature__attachments-link-icon esri-icon-link-external",attachmentsItemImageResizable:"esri-feature__attachments-image--resizable",attachmentsItemFilename:"esri-feature__attachments-filename",attachmentsItemLink:"esri-feature__attachments-item-link",fields:"esri-feature__fields",fieldHeader:"esri-feature__field-header",fieldData:"esri-feature__field-data",fieldDataDate:"esri-feature__field-data--date",media:"esri-feature__media",mediaContainer:"esri-feature__media-container",mediaItemContainer:"esri-feature__media-item-container",mediaItem:"esri-feature__media-item",mediaItemTitle:"esri-feature__media-item-title",mediaItemCaption:"esri-feature__media-item-caption",mediaPrevious:"esri-feature__media-previous",mediaPreviousIconLTR:"esri-feature__media-previous-icon",mediaPreviousIconRTL:"esri-feature__media-previous-icon--rtl",mediaNext:"esri-feature__media-next",mediaNextIconLTR:"esri-feature__media-next-icon",mediaNextIconRTL:"esri-feature__media-next-icon--rtl",mediaChart:"esri-feature__media-chart",loadingSpinnerContainer:"esri-feature__loading-container",spinner:"esri-feature__loading-spinner"},g={title:!0,content:!0,lastEditedInfo:!0};return function(e){function t(t){var i=e.call(this,t)||this;return i._chartMap=new Map,i._activeMediaMap=new Map,i._refreshTimers=new Map,i._mediaInfo=new Map,i._loadingChartsModule=null,i.graphic=null,i.defaultPopupTemplateEnabled=!1,i.label=o.widgetLabel,i.spatialReference=null,i.title=null,i.visibleElements=r({},g),i.map=null,i.view=null,i.viewModel=new m,i}return i(t,e),t.prototype.postInitialize=function(){var e=this;this.own(c.init(this,"viewModel.content",function(){return e._setupMediaRefreshTimers()}))},t.prototype.destroy=function(){this._clearMediaRefreshTimers(),this._activeMediaMap.clear(),this._activeMediaMap=null,this._destroyCharts()},t.prototype.destroyCharts=function(){return this._destroyCharts()},t.prototype.castVisibleElements=function(e){return r({},g,e)},t.prototype.render=function(){var e=v.tsx("div",{key:"loading-container",class:x.loadingSpinnerContainer},v.tsx("span",{class:this.classes(x.iconLoading,x.spinner)})),t=this.visibleElements,i=this.viewModel,a=i.waitingForContent,r=i.title,n=t.title?v.tsx("h4",{class:x.title,innerHTML:r}):null,s=t.content?v.tsx("div",{class:x.main},[this._renderContent(),this._renderLastEditInfo()]):null;return v.tsx("div",{class:this.classes(x.base,x.esriWidget)},v.tsx("div",{class:x.container},n,a?e:s))},t.prototype.goToMedia=function(e,t){this._setContentElementMedia(e,t)},t.prototype.nextMedia=function(e){this._pageContentElementMedia(e,"next")},t.prototype.previousMedia=function(e){this._pageContentElementMedia(e,"previous")},t.prototype._buildKey=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return e+"__"+(this.get("viewModel.graphic.uid")||"0")+"-"+t.join("-")},t.prototype._destroyCharts=function(){return s(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return e=this._loadingChartsModule,e?[4,e]:[3,2];case 1:t.sent(),t.label=2;case 2:return this._chartMap.forEach(function(e){return e.dispose()}),this._chartMap.clear(),[2]}})})},t.prototype._renderContent=function(){var e=this.viewModel.content;return e?"string"==typeof e?v.tsx("div",{key:"content-string",innerHTML:e}):v.isWidget(e)?v.tsx("div",{key:"content-widget"},e.render()):e instanceof HTMLElement?v.tsx("div",{key:"content-html-element",bind:e,afterCreate:this._attachToNode}):v.isWidgetBase(e)?v.tsx("div",{key:"content-dijit",bind:e.domNode,afterCreate:this._attachToNode}):Array.isArray(e)&&e.length?v.tsx("div",{key:"content-content-elements"},e.map(this._renderContentElement,this)):null:null},t.prototype._renderContentElement=function(e,t){var i=this.visibleElements;if("boolean"!=typeof i.content&&!i.content[e.type])return null;switch(e.type){case"attachments":return this._renderAttachments(e);case"fields":return this._renderFields(e,t);case"media":return this._renderMedia(e,t);case"text":return this._renderText(e,t);default:return null}},t.prototype._renderAttachmentInfo=function(e){var t,i,a=e.attachmentInfo,r=e.supportsResizeAttachments,n=e.contentElement,s=n.displayType,l=a.contentType,d=a.orientationInfo,c=a.name,p=a.url,u="list"===s?48:400,m=d?[d.rotation?"rotate("+d.rotation+"deg)":"",d.mirrored?"scaleX(-1)":""].join(" "):"",f=m?{transform:m}:{},_=r&&h.isSupportedImage(l),y=-1===p.indexOf("?")?"?":"&",g=_?""+p+y+"w="+u:h.getIconPath(l),b=(t={},t[x.attachmentsItemMaskIcon]=!_,t),M=(i={},i[x.attachmentsItemImageResizable]=r,i);return v.tsx("li",{class:x.attachmentsItem,key:a},v.tsx("a",{class:x.attachmentsItemLink,href:p,rel:"noreferrer",target:"_blank"},v.tsx("div",{class:this.classes(b,x.attachmentsItemMask)},v.tsx("img",{styles:f,alt:"",class:this.classes(M,x.attachmentsItemImage),src:g}),v.tsx("span",{class:x.attachmentsItemImageOverlay},v.tsx("span",{"aria-hidden":"true",class:x.attachmentsItemLinkIcon}))),v.tsx("span",{class:x.attachmentsItemFilename},c||o.noTitle)))},t.prototype._renderAttachments=function(e){var t,i=this,a=e.displayType,r=e.attachmentInfos,n=r&&r.length,s=this.get("graphic.layer.capabilities.operations.supportsResizeAttachments"),l=(t={},t[x.attachmentsList]="preview"!==a,t[x.attachmentsPreview]="preview"===a,t);return n?v.tsx("div",{key:"attachments-element",class:this.classes(x.attachments,x.contentElement,l)},v.tsx("div",{class:x.attachmentsTitle},o.attach),v.tsx("ul",{class:x.attachmentsItems},r.map(function(t,a){return i._renderAttachmentInfo({attachmentInfo:t,attachmentInfoIndex:a,supportsResizeAttachments:s,contentElement:e})}))):null},t.prototype._forceLTR=function(e){return"‎"+e},t.prototype._renderFieldInfo=function(e,t){var i,a=this.viewModel.formattedAttributes,r=a?a.content[t]||a.global:null,n=e.fieldName,s=e.label||n,o=r?null==r[n]?"":r[n]:"",l=!(!e.format||!e.format.dateFormat),d="number"==typeof o&&!l,c=d?this._forceLTR(o):_.autoLink(o),p=(i={},i[x.fieldDataDate]=l,i);return v.tsx("tr",{key:this._buildKey("fields-element-info-row",t)},v.tsx("th",{key:this._buildKey("fields-element-info-row-header",t),class:x.fieldHeader,innerHTML:s}),v.tsx("td",{key:this._buildKey("fields-element-info-row-data",t),class:this.classes(x.fieldData,p),innerHTML:c}))},t.prototype._renderFields=function(e,t){var i=this,a=e.fieldInfos;return a?v.tsx("div",{key:this._buildKey("fields-element",t),class:this.classes(x.fields,x.contentElement)},v.tsx("table",{class:x.esriTable,summary:o.fieldsSummary,key:this._buildKey("fields-element-table",t)},v.tsx("tbody",{key:this._buildKey("fields-element-table-body",t)},a.map(function(e){return i._renderFieldInfo(e,t)})))):null},t.prototype._shouldOpenInNewTab=function(e){if(void 0===e&&(e=""),e){return!/^(?:mailto:|tel:)/.test(e.trim().toLowerCase())}},t.prototype._clearMediaRefreshTimers=function(){this._refreshTimers.forEach(function(e){return clearTimeout(e)}),this._refreshTimers.clear()},t.prototype._clearMediaRefreshTimer=function(e){var t=this._refreshTimers.get(e);t&&(clearTimeout(t),this._refreshTimers.delete(e))},t.prototype._getImageSource=function(e,t){var i=-1!==e.indexOf("?")?"&":"?",a=e.split("#"),r=a[0],n=a[1],s=void 0===n?"":n;return""+r+i+"timestamp="+t+(s?"#":"")+s},t.prototype._setupMediaRefreshTimer=function(e){var t=this.get("viewModel.content");if(Array.isArray(t)){var i=t[e];if(i&&"media"===i.type){var a=this._activeMediaMap.get(e);isNaN(a)&&(a=0);var r=i.mediaInfos[a];r&&"image"===r.type&&r.refreshInterval&&this._setRefreshTimeout(e,r)}}},t.prototype._setupMediaRefreshTimers=function(){var e=this;this._clearMediaRefreshTimers();var t=this.get("viewModel.content");Array.isArray(t)&&t.forEach(function(t,i){return e._setupMediaRefreshTimer(i)})},t.prototype._updateMediaInfoTimestamp=function(e,t){var i=Date.now();this._mediaInfo.set(t,{timestamp:i,sourceURL:this._getImageSource(e,i)}),this.scheduleRender()},t.prototype._setRefreshTimeout=function(e,t){var i=this,a=t.refreshInterval,r=t.value;if(a){var n=6e4*a;this._updateMediaInfoTimestamp(r.sourceURL,e);var s=setInterval(function(){i._updateMediaInfoTimestamp(r.sourceURL,e)},n);this._refreshTimers.set(e,s)}},t.prototype._renderMediaInfoType=function(e){var t=e.mediaInfo,i=e.contentElementIndex,a=e.activeMediaIndex,r=t.title,n=void 0===r?"":r;if("image"===t.type){var s=t,o=s.value,l=s.refreshInterval,d=o.sourceURL,c=o.linkURL,p=this._shouldOpenInNewTab(c),u=p?"_blank":"_self",m="_blank"===u?"noreferrer":"",h=l?this._mediaInfo.get(i):null,f=h?h.timestamp:0,_=h?h.sourceURL:d,y=v.tsx("img",{alt:n,key:this._buildKey("media-image",i,a,f),src:_}),g=c?v.tsx("a",{title:n,href:c,rel:m,target:u},y):null;return g||y}if(-1!==t.type.indexOf("chart"))return v.tsx("div",{key:this._buildKey("media-chart",i,a),bind:this,"data-media-info":t,"data-content-element-index":i,class:x.mediaChart,afterCreate:this._getChartDependencies})},t.prototype._getChartDependencies=function(e){var t=this,i=e["data-media-info"],a=e["data-content-element-index"],r=this._chartMap.get(a);r&&r.dispose();var n=i.value,s=i.type;this._loadingChartsModule=f.loadChartsModule().then(function(i){return t._renderChart({chartDiv:e,contentElementIndex:a,type:s,value:n,chartsModule:i})})},t.prototype._createPieChart=function(e){var t=e.chartDiv,i=e.chartsModule,a=i.am4core,r=i.am4charts,n=a.create(t,r.PieChart);n.rtl=y.isRTL();var s=n.series.push(new r.PieSeries);return s.labels.template.disabled=!0,s.ticks.template.disabled=!0,s.dataFields.value="y",s.dataFields.category="x",s.tooltip.label.wrap=!0,s.tooltip.label.maxWidth=200,s.tooltip.label.rtl=n.rtl,n},t.prototype._createXYChart=function(e){var t=e.chartDiv,i=e.type,a=e.value,r=e.chartsModule,n=r.am4core,s=r.am4charts,o=n.create(t,s.XYChart);o.rtl=y.isRTL();var l=a.series.length>15;if("column-chart"===i){var d=o.xAxes.push(new s.CategoryAxis);d.dataFields.category="x",d.renderer.labels.template.disabled=!0,d.tooltip.label.wrap=!0,d.tooltip.label.maxWidth=200,d.tooltip.label.rtl=o.rtl,d.tooltip.events.on("sizechanged",function(){d.tooltip.dy=-d.tooltip.contentHeight});var c=o.yAxes.push(new s.ValueAxis),p=c.renderer.labels.template;c.renderer.minLabelPosition=.05,c.renderer.maxLabelPosition=.95,p.wrap=!0;var u=o.series.push(new s.ColumnSeries);u.dataFields.valueY="y",u.dataFields.categoryX="x",o.cursor=new s.XYCursor,l&&(o.scrollbarX=new n.Scrollbar)}if("bar-chart"===i){var m=o.yAxes.push(new s.CategoryAxis);m.dataFields.category="x",m.renderer.inversed=!0,m.renderer.labels.template.disabled=!0,m.tooltip.label.wrap=!0,m.tooltip.label.maxWidth=200,m.tooltip.label.rtl=o.rtl,m.tooltip.events.on("sizechanged",function(){m.tooltip.dx=m.tooltip.contentWidth});var c=o.xAxes.push(new s.ValueAxis),p=c.renderer.labels.template;c.renderer.minLabelPosition=.05,c.renderer.maxLabelPosition=.95,p.wrap=!0;var u=o.series.push(new s.ColumnSeries);u.dataFields.valueX="y",u.dataFields.categoryY="x",o.cursor=new s.XYCursor,l&&(o.scrollbarY=new n.Scrollbar)}if("line-chart"===i){var h=o.xAxes.push(new s.CategoryAxis);h.dataFields.category="x",h.renderer.labels.template.disabled=!0,h.tooltip.label.wrap=!0,h.tooltip.label.maxWidth=200,h.tooltip.label.rtl=o.rtl,h.tooltip.events.on("sizechanged",function(){h.tooltip.dy=-h.tooltip.contentHeight});var c=o.yAxes.push(new s.ValueAxis),p=c.renderer.labels.template;c.renderer.minLabelPosition=.05,c.renderer.maxLabelPosition=.95,p.wrap=!0;var u=o.series.push(new s.LineSeries);u.dataFields.categoryX="x",u.dataFields.valueY="y",o.cursor=new s.XYCursor,l&&(o.scrollbarX=new n.Scrollbar)}return o},t.prototype._renderChart=function(e){var t=e.contentElementIndex,i=e.type,a=e.value,r=e.chartsModule;r.am4core.useTheme(r.am4themes_animated);var n="pie-chart"===i?this._createPieChart(e):this._createXYChart(e);n.data=a.series.map(function(e){return{x:e.tooltip,y:e.y}}),this._chartMap.set(t,n)},t.prototype._renderMediaInfo=function(e){var t=e.mediaInfo,i=e.contentElementIndex,a=e.activeMediaIndex,r=this._renderMediaInfoType({mediaInfo:t,contentElementIndex:i,activeMediaIndex:a}),n=t.title?v.tsx("div",{key:this._buildKey("media-title",i),class:x.mediaItemTitle,innerHTML:t.title}):null,s=t.caption?v.tsx("div",{key:this._buildKey("media-caption",i),class:x.mediaItemCaption,innerHTML:t.caption}):null;return v.tsx("div",{key:this._buildKey("media-container",i),class:x.mediaItemContainer},v.tsx("div",{key:this._buildKey("media-item-container",i),class:x.mediaItem},r),n,s)},t.prototype._renderMediaPageButton=function(e,t){var i="previous"===e,a=i?o.previous:o.next,r=i?this.classes(x.btn,x.mediaPrevious):this.classes(x.btn,x.mediaNext),n=i?this.classes(x.icon,x.mediaPreviousIconLTR,x.iconLeftTriangleArrow):this.classes(x.icon,x.mediaNextIconLTR,x.iconRightTriangleArrow),s=i?this.classes(x.icon,x.mediaPreviousIconRTL,x.iconRightTriangleArrow):this.classes(x.icon,x.mediaNextIconRTL,x.iconLeftTriangleArrow),l=i?"media-previous":"media-next",d=i?this._previousClick:this._nextClick;return v.tsx("div",{key:this._buildKey(l,t),title:a,tabIndex:0,role:"button",class:r,"data-content-element-index":t,bind:this,onkeydown:d,onclick:d},v.tsx("span",{"aria-hidden":"true",class:n}),v.tsx("span",{"aria-hidden":"true",class:s}),v.tsx("span",{class:x.iconText},a))},t.prototype._handleMediaKeyup=function(e){var t=e.currentTarget,i=t["data-content-element-index"],a=d.eventKey(e);"ArrowLeft"===a&&(e.stopPropagation(),this.previousMedia(i)),"ArrowRight"===a&&(e.stopPropagation(),this.nextMedia(i))},t.prototype._renderMedia=function(e,t){var i,a=e.mediaInfos,r=a&&a.length||0,n=(i={},i[x.showMediaPagination]=r>1,i),s=this._renderMediaPageButton("previous",t),o=this._renderMediaPageButton("next",t),l=this._activeMediaMap.get(t);return isNaN(l)&&(this._activeMediaMap.set(t,0),l=0),r?v.tsx("div",{key:this._buildKey("media-element",t),"data-content-element-index":t,bind:this,onkeyup:this._handleMediaKeyup,class:this.classes(x.media,x.contentElement,n)},v.tsx("div",{key:this._buildKey("media-element-container",t),class:x.mediaContainer},s,this._renderMediaInfo({mediaInfo:a[l],contentElementIndex:t,activeMediaIndex:l}),o)):null},t.prototype._renderLastEditInfo=function(){var e=this.visibleElements,t=this.viewModel.lastEditInfo;if(!t||!e.lastEditedInfo)return null;var i=t.date,a=t.user,r="edit"===t.type?a?o.lastEditedByUser:o.lastEdited:a?o.lastCreatedByUser:o.lastCreated,n=l.substitute(r,{date:i,user:a});return v.tsx("div",{key:"edit-info-element",class:this.classes(x.lastEditedInfo,x.contentElement)},n)},t.prototype._renderText=function(e,t){return e.text?v.tsx("div",{key:this._buildKey("text-element",t),innerHTML:e.text,class:this.classes(x.text,x.contentElement)}):null},t.prototype._attachToNode=function(e){var t=this;e.appendChild(t)},t.prototype._setContentElementMedia=function(e,t){this._clearMediaRefreshTimer(e);var i=this.viewModel.content,a=i&&i[e],r=a&&a.mediaInfos;if(r&&r.length){var n=(t+r.length)%r.length;this._activeMediaMap.set(e,n),this._setupMediaRefreshTimer(e),this.scheduleRender()}},t.prototype._pageContentElementMedia=function(e,t){var i="previous"===t?-1:1,a=this._activeMediaMap.get(e)+i;this._setContentElementMedia(e,a)},t.prototype._previousClick=function(e){var t=e.currentTarget,i=t["data-content-element-index"];this.previousMedia(i)},t.prototype._nextClick=function(e){var t=e.currentTarget,i=t["data-content-element-index"];this.nextMedia(i)},a([p.aliasOf("viewModel.graphic")],t.prototype,"graphic",void 0),a([p.aliasOf("viewModel.defaultPopupTemplateEnabled")],t.prototype,"defaultPopupTemplateEnabled",void 0),a([p.property()],t.prototype,"label",void 0),a([p.aliasOf("viewModel.spatialReference")],t.prototype,"spatialReference",void 0),a([p.aliasOf("viewModel.title")],t.prototype,"title",void 0),a([p.property(),v.renderable()],t.prototype,"visibleElements",void 0),a([p.cast("visibleElements")],t.prototype,"castVisibleElements",null),a([p.aliasOf("viewModel.map")],t.prototype,"map",void 0),a([p.aliasOf("viewModel.view")],t.prototype,"view",void 0),a([p.property({type:m}),v.renderable(["viewModel.waitingForContent","viewModel.content","viewModel.lastEditInfo"])],t.prototype,"viewModel",void 0),a([v.accessibleHandler()],t.prototype,"_previousClick",null),a([v.accessibleHandler()],t.prototype,"_nextClick",null),t=a([p.subclass("esri.widgets.Feature")],t)}(p.declared(u))}).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/Feature/FeatureViewModel.js": /*!************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/Feature/FeatureViewModel.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i),exports,__webpack_require__(/*! ../../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"),__webpack_require__(/*! ../../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"),__webpack_require__(/*! ../../core/tsSupport/assignHelper */ "./node_modules/arcgis-js-api/core/tsSupport/assignHelper.js"),__webpack_require__(/*! ../../core/tsSupport/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"),__webpack_require__(/*! ../../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"),__webpack_require__(/*! ../../Graphic */ "./node_modules/arcgis-js-api/Graphic.js"),__webpack_require__(/*! ../../intl */ "./node_modules/arcgis-js-api/intl.js"),__webpack_require__(/*! ../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"),__webpack_require__(/*! ../../core/Handles */ "./node_modules/arcgis-js-api/core/Handles.js"),__webpack_require__(/*! ../../core/lang */ "./node_modules/arcgis-js-api/core/lang.js"),__webpack_require__(/*! ../../core/Logger */ "./node_modules/arcgis-js-api/core/Logger.js"),__webpack_require__(/*! ../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"),__webpack_require__(/*! ../../core/string */ "./node_modules/arcgis-js-api/core/string.js"),__webpack_require__(/*! ../../core/throttle */ "./node_modules/arcgis-js-api/core/throttle.js"),__webpack_require__(/*! ../../core/watchUtils */ "./node_modules/arcgis-js-api/core/watchUtils.js"),__webpack_require__(/*! ../../core/accessorSupport/decorators */ "./node_modules/arcgis-js-api/core/accessorSupport/decorators.js"),__webpack_require__(/*! ../../intl/date */ "./node_modules/arcgis-js-api/intl/date.js"),__webpack_require__(/*! ../../intl/number */ "./node_modules/arcgis-js-api/intl/number.js"),__webpack_require__(/*! ../../layers/support/fieldUtils */ "./node_modules/arcgis-js-api/layers/support/fieldUtils.js"),__webpack_require__(/*! ../../popup/content/TextContent */ "./node_modules/arcgis-js-api/popup/content/TextContent.js"),__webpack_require__(/*! ../../popup/content/support/ChartMediaInfoValueSeries */ "./node_modules/arcgis-js-api/popup/content/support/ChartMediaInfoValueSeries.js"),__webpack_require__(/*! ../../popup/support/FieldInfoFormat */ "./node_modules/arcgis-js-api/popup/support/FieldInfoFormat.js"),__webpack_require__(/*! ../../tasks/support/AttachmentQuery */ "./node_modules/arcgis-js-api/tasks/support/AttachmentQuery.js"),__webpack_require__(/*! ./support/featureUtils */ "./node_modules/arcgis-js-api/widgets/Feature/support/featureUtils.js"),__webpack_require__(/*! ./support/RelatedFeatures */ "./node_modules/arcgis-js-api/widgets/Feature/support/RelatedFeatures.js"),__webpack_require__(/*! ../support/widget */ "./node_modules/arcgis-js-api/widgets/support/widget.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e,t,r,i,o,n,a,l,s,u,p,f,c,d,h,y,m,v,_,g,b,F,I,A,T,C,x,w){function L(){return a(this,void 0,void 0,function(){return n(this,function(t){return[2,d.create(function(t){Promise.all(/*! AMD require */[__webpack_require__.e(15), __webpack_require__.e(29)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../../support/arcadeUtils */ "./node_modules/arcgis-js-api/support/arcadeUtils.js")]; (function(e){t(e)}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}).catch(__webpack_require__.oe)})]})})}function E(e){var t=/(\n)/gi;return"string"==typeof e?e.replace(t,'<br class="esri-text-new-line" />'):e}function N(e,t){var r=t[e];if("string"==typeof r){var i=/\'/g,o=encodeURIComponent(r).replace(i,"'");t[e]=o}}function R(e,t){return e&&"function"==typeof e.getField?e.getField(t):null}function q(e){return(""+e).trim()}function O(e,t,r,i){return t=q(t),s.substitute(e,t&&"{"===t[0]?r:i)}function P(e){return e.replace(/[\u00A0-\u9999<>\&]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})}var k=["$datastore","$map","$layer"],S=c.getLogger("esri.widgets.FeatureViewModel"),j=/^\s*expression\//i,D=_.convertDateFormatToIntlOptions("short-date-short-time");return function(e){function t(t){var r=e.call(this,t)||this;return r._handles=new p,r._featureAbortController=null,r._graphicChangedThrottled=y.throttle(r._graphicChanged,1,r),r._effectivePopupTemplate=null,r._contentResponse=null,r._graphic=null,r._fieldInfoMap=null,r.content=null,r.defaultPopupTemplateEnabled=!1,r.formattedAttributes=null,r.graphic=null,r.lastEditInfo=null,r.title="",r.view=null,r._handles.add(m.init(r,["graphic","graphic.sourceLayer.popupTemplate.title","graphic.sourceLayer.popupTemplate.content","graphic.sourceLayer.popupTemplate.fieldInfos","graphic.sourceLayer.popupTemplate.lastEditInfoEnabled","graphic.popupTemplate.title","graphic.popupTemplate.content","graphic.popupTemplate.fieldInfos","graphic.popupTemplate.lastEditInfoEnabled"],function(){return r._graphicChangedThrottled()})),r}return r(t,e),t.prototype.destroy=function(){this._clear(),this._cancelFeatureQuery(),this._handles.destroy(),this._handles=null,this.graphic=null,this._graphic=null},Object.defineProperty(t.prototype,"spatialReference",{get:function(){return this.get("view.spatialReference")||null},set:function(e){if(void 0===e)return void this._clearOverride("spatialReference");this._override("spatialReference",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"map",{get:function(){return this.get("view.map")||null},set:function(e){if(void 0===e)return void this._clearOverride("map");this._override("map",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waitingForContent",{get:function(){return!!this._featureAbortController},enumerable:!0,configurable:!0}),t.prototype._clear=function(){this._set("title",""),this._set("content",null),this._set("formattedAttributes",null)},t.prototype._graphicChanged=function(){return a(this,void 0,void 0,function(){var e,t,r,i;return n(this,function(o){switch(o.label){case 0:if(this._cancelFeatureQuery(),this._clear(),e=this.graphic,t=e?e.clone():null,this._graphic=t,!t)return[2];r=d.createAbortController(),this._featureAbortController=r,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._queryFeature({signal:r.signal})];case 2:return o.sent(),[3,4];case 3:return i=o.sent(),S.error("error","error loading template",i),[3,4];case 4:return this._featureAbortController=null,[2]}})})},t.prototype._cancelFeatureQuery=function(){var e=this._featureAbortController;e&&e.abort(),this._featureAbortController=null},t.prototype._compileContent=function(e,t){var r=this;return e&&(e.nodeName||e&&w.isWidgetBase(e)||w.isWidget(e))?e:this._graphic?"string"==typeof e?this._compileText(new F({text:e})).text:Array.isArray(e)?e.map(function(e,i){var o=t&&t[i],n=o&&o.value;return"attachments"===e.type?r._compileAttachments(e,n):"fields"===e.type?r._compileFields(e):"media"===e.type?r._compileMedia(e):"text"===e.type?r._compileText(e):void 0}):void(e&&S.warn("invalid content type.")):void 0},t.prototype._compileFields=function(e){var t=this,r=this._effectivePopupTemplate,i=f.clone(e),o=r&&r.expressionInfos,n=i.fieldInfos?void 0:r&&r.fieldInfos,a=i.fieldInfos||f.clone(n),l=[];return a&&a.forEach(function(e){var r=e.fieldName.toLowerCase();if(!e.hasOwnProperty("visible")||e.visible){var i=t._isExpressionField(r)?t._getExpressionInfo(o,r):null;e.label=i?i.title:e.label,l.push(e)}}),i.fieldInfos=l,i},t.prototype._setImageValue=function(e){var t=e.value,r=e.formattedAttributes,i=e.layer,o=t.linkURL,n=t.sourceURL;if(n){var a=this._fixTokens(n,i);t.sourceURL=this._substituteAttributes(r,a)}if(o){var l=this._fixTokens(o,i);t.linkURL=this._substituteAttributes(r,l)}},t.prototype._compileMedia=function(e){var t=this,r=this._graphic,i=f.clone(e),n=i.mediaInfos,a=r.attributes,l=C.getSourceLayer(r),s=this.formattedAttributes.global,u=o({},s,a);return i.mediaInfos=n&&n.map(function(e){var r=f.clone(e);if(r){var i=r.title?t._processFieldsInLinks(r.title,u):"",o=r.caption?t._processFieldsInLinks(r.caption,u):"";if(r.title=i?t._substituteAttributes(s,i):"",r.caption=o?t._substituteAttributes(s,o):"","image"===r.type){var n=r.value;return t._setImageValue({value:n,formattedAttributes:s,layer:l}),r.value.sourceURL?r:void 0}if("pie-chart"===r.type||"line-chart"===r.type||"column-chart"===r.type||"bar-chart"===r.type){var n=r.value;return t._setChartValue({value:n,chartType:r.type,attributes:a,formattedAttributes:s,layer:l}),r}}}).filter(Boolean),i},t.prototype._normalizeTemplateFields=function(e){var t=this._fieldInfoMap.get(e.toLowerCase());return"{"+(t&&t.fieldName||e)+"}"},t.prototype._substituteAttributes=function(e,t){var r=this;return q(this._removeEmptyHref(s.substitute(h.replace(t,function(e){return r._normalizeTemplateFields(e)}),e)))},t.prototype._compileText=function(e){var t=f.clone(e);if(t&&t.text){var r=this._graphic.attributes,i=this.formattedAttributes.global,n=this._processFieldsInLinks(t.text,o({},i,r));t.text=this._substituteAttributes(i,n)}return t},t.prototype._formatEditInfo=function(e,t){var r=e.creatorField,i=e.creationDateField,o=e.editorField,n=e.editDateField;if(t){var a=t[n];if("number"==typeof a){var l=t[o],u=s.formatDate(a,D);return{type:"edit",date:u,user:l}}var p=t[i];if("number"==typeof p){var f=t[r],u=s.formatDate(p,D);return{type:"create",date:u,user:f}}}},t.prototype._compileLastEditInfo=function(){var e=this,t=e._effectivePopupTemplate,r=e._graphic;if(t){var i=t.lastEditInfoEnabled,o=r.get("sourceLayer.editFieldsInfo");if(i&&o)return this._formatEditInfo(o,r.attributes)}},t.prototype._compileTitle=function(){var e=this,t=e._effectivePopupTemplate,r=e._graphic,i=t&&t.title,n=r.attributes,a=this.formattedAttributes.global,l="function"==typeof i?i.call(null,{graphic:r}):i;if("string"==typeof l&&l){var s=this._processFieldsInLinks(l,o({},a,n));return this._substituteAttributes(a,s)}return""},t.prototype._getExpressionInfo=function(e,t){if(this._isExpressionField(t)){var r,i=t.replace(j,"").toLowerCase();return e.some(function(e){return e.name.toLowerCase()===i&&(r=e,!0)}),r}},t.prototype._fixTokens=function(e,t){var r=/(\{([^\{\r\n]+)\})/g;return e.replace(r,function(e,r,i){var o=R(t,i);return o?"{"+o.name+"}":r})},t.prototype._encodeAttributes=function(e){var t=e?f.clone(e):{};return Object.keys(t).forEach(function(e){return N(e,t)}),t},t.prototype._createfieldInfoMap=function(e,t){var r=this,i=new Map;return e&&e.forEach(function(e){var o=r._getFixedFieldName(e.fieldName,t);e.fieldName=o,i.set(o.toLowerCase(),e)}),i},t.prototype._formatAttributeValue=function(e){var t=e.value,r=e.fieldName,i=e.fieldInfos,o=e.fieldInfoMap,n=e.layer;if(null==t)return t;var a=this._getDomainName(r,t);if(a)return a;var l=this._getTypeName(r);if(l)return l;if(o.get(r.toLowerCase()))return this._formatValueToFieldInfo(t,{fieldInfos:i,fieldName:r,layer:n});var u=n&&n.fieldsIndex;return u&&u.isDateField(r)?s.formatDate(t,D):E(t)},t.prototype._formatAttributes=function(e){var t=this,r=this._graphic,i=C.getSourceLayer(r),o=f.clone(r.attributes);this.addRelatedFeatureAttributes(o);var n=this._createfieldInfoMap(e,i);return this._fieldInfoMap=n,Object.keys(o).forEach(function(r){var a=o[r];o[r]=t._formatAttributeValue({fieldName:r,fieldInfos:e,fieldInfoMap:n,layer:i,value:a})}),o},t.prototype._formatValueToFieldInfo=function(e,t){var r=t.fieldInfos,i=t.fieldName,n=this._getFieldInfo(r,i),a=f.clone(n),l=t.preventPlacesFormatting,s=t.layer,u=R(s,i);if(u&&"date"===u.type){var p=a.format||new A;p.dateFormat=p.dateFormat||"short-date-short-time",a.format=p}var c=a&&a.format;return"string"==typeof e||null==e||null==c?e:l?g.formatNumber(e,o({},g.convertNumberFormatToIntlOptions(c),{minimumFractionDigits:0,maximumFractionDigits:20})):c.format(e)},t.prototype._getDomainName=function(e,t){if(this.isRelatedField(e))return null;var r=this._graphic,i=C.getSourceLayer(r);if(!i||"function"!=typeof i.getFieldDomain)return null;var o=i.getFieldDomain(e,{feature:r});return o&&"coded-value"===o.type?o.getName(t):null},t.prototype._getFieldInfo=function(e,t){if(e&&e.length&&t){var r=t.toLowerCase(),i=void 0;return e.some(function(e){return!(!e.fieldName||e.fieldName.toLowerCase()!==r||(i=e,0))}),i}},t.prototype._getTypeName=function(e){if(this.isRelatedField(e))return null;var t=this._graphic,r=C.getSourceLayer(t);if(!r||"function"!=typeof r.getFeatureType)return null;var i=r.typeIdField;if(!i||e!==i)return null;var o=r.getFeatureType(t);return o?o.name:null},t.prototype._removeEmptyHref=function(e){var t=/href=(""|'')/gi;return e.replace(t,"")},t.prototype._processFieldsInLinks=function(e,t){var r=this.get("_graphic.layer"),i=this._fixTokens(e,r),o=this._encodeAttributes(t),n=/href\s*=\s*(?:\"([^\"]+)\"|\'([^\']+)\')/gi;return i?i.replace(n,function(e,r,i){return O(e,r||i,t,o)}):i},t.prototype._compileAttachments=function(e,t){var r=f.clone(e);return!t||t&&0===t.length?r:(r.attachmentInfos=t,r)},t.prototype._queryAttachments=function(){var e=this._graphic,t=C.getSourceLayer(e);if(!t)return d.resolve([]);var r="scene"===t.type&&t.associatedLayer?t.associatedLayer:t;if(r&&"function"==typeof r.queryAttachments){var i=r,o=i.objectIdField,n=e.attributes,a=n&&n[o],l=new T({objectIds:[a],returnMetadata:!0});return i.queryAttachments(l).then(function(e){return e[a]||[]})}return d.resolve([])},t.prototype._queryContentElements=function(e){var t=this;if(!Array.isArray(e))return d.resolve();var r={};return e.forEach(function(e,i){if("attachments"===e.type){var o=t._queryAttachments();o&&(r[i]=o)}}),Object.keys(r).length?d.eachAlways(r):d.resolve()},t.prototype._getContent=function(){var e=this,t=e._effectivePopupTemplate,r=e._graphic,i=t&&t.content,o="function"==typeof i?i.call(null,{graphic:r}):i;return d.isPromiseLike(o)?o:d.resolve(o)},t.prototype._querySourceLayer=function(e,t){var r=e.layer,i=e.outFields,o=e.objectIds;if("function"!=typeof r.queryFeatures||!o){var n="Could not query required fields for the specified layer. Some fields will not be available.",a=new u("query-required-fields",n,{outFields:i,objectIds:o});return S.warn("query-required-fields",n),d.reject(a)}var l=r.createQuery();return l.objectIds=o,l.outFields=i,l.returnGeometry=!0,r.queryFeatures(l,t).then(function(e){return e.features[0]})},t.prototype._queryRequiredFieldsFeature=function(e){var t=this,r=this,i=r._graphic,o=r._effectivePopupTemplate,n=i.sourceLayer;return n&&o?("function"==typeof n.load?n.load(e):d.resolve()).then(function(){var r=i.attributes[n.objectIdField],a="number"==typeof r?[r]:void 0;return o.getRequiredFields(n.fields).then(function(r){return b.featureHasFields(r,i)?null:t._querySourceLayer({layer:n,outFields:r,objectIds:a},e)})}):d.resolve(null)},t.prototype._queryFeature=function(e){var t=this,r=this,i=r._featureAbortController,n=r._graphic;return this._effectivePopupTemplate=n&&n.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled),this._getContent().then(function(r){if(i===t._featureAbortController&&n){var a=t._checkForRelatedFeatures(r,e),l=t._createFormattedExpressions().then(function(e){n.attributes=o({},n.attributes,e)}),s=t._queryContentElements(r).then(function(e){return t._contentResponse=e}),u=t._queryRequiredFieldsFeature(e).then(function(e){e&&(n.geometry=e.geometry,n.attributes=o({},n.attributes,e.attributes))});return d.eachAlways([a,l,s,u]).then(function(){if(i===t._featureAbortController&&n){t._set("formattedAttributes",t._createFormattedAttributes(r)),t._set("title",t._compileTitle());var e=t._compileLastEditInfo();t._set("lastEditInfo",e||null);var o=t._compileContent(r,t._contentResponse);return t._set("content",o||null),o}})}})},t.prototype._isExpressionField=function(e){return j.test(e)},t.prototype._formatArcadeArray=function(e){return'<ul class="esri-widget__list">'+e.map(function(e){return"<li>"+("string"==typeof e?E(P(e)):e)+"</li>"}).join("")+"</ul>"},t.prototype._formatArcadeDictionary=function(e){return'<table class="esri-widget__table">'+e.keys().map(function(t){var r=e.field(t);return"<tr><th>"+t+"</th><td>"+("string"==typeof r?E(P(r)):r)+"</td></tr>"}).join("")+"</table>"},t.prototype._createFormattedExpressions=function(){return a(this,void 0,void 0,function(){var e,t,r,i,o,l,s,u,p,f,c,h=this;return n(this,function(y){switch(y.label){case 0:return e=this,t=e._effectivePopupTemplate,r=e._graphic,i=t&&t.expressionInfos,o=[],l={},i&&i.length?[4,L()]:[2,l];case 1:for(s=y.sent(),u=function(e){var t="expression/"+e.name,i=s.createSyntaxTree(e.expression),u=k.filter(function(e){return s.hasVariable(i,e)}),p=s.loadScriptDependencies(i,!0,u).then(function(){return a(h,void 0,void 0,function(){var e,o,a,p,f=this;return n(this,function(n){return e=this.spatialReference,o=s.getViewInfo({spatialReference:e}),a=s.createExecContext(r,o),a.useAsync=!0,this._addVarsToContext(s,u,a,o),p=s.createFunction(i,a),[2,s.executeAsyncFunction(p,a).then(function(e){l[t]="string"==typeof e?E(P(e)):Array.isArray(e)?f._formatArcadeArray(e):e&&"esri.arcade.Dictionary"===e.declaredClass?f._formatArcadeDictionary(e):e},function(e){return S.error("arcade-execution-error",e)})]})})});o.push(p)},p=0,f=i;p<f.length;p++)c=f[p],u(c);return[2,d.eachAlways(o).then(function(){return l})]}})})},t.prototype._addVarsToContext=function(e,t,r,i){var o=this,n=o.graphic,a=o.map;t.forEach(function(t){var o=t.toLowerCase(),l={map:a,spatialReference:i.sr};"$map"===o&&(r.vars[o]=e.convertMapToFeatureSetCollection(l)),"$layer"===o&&(r.vars[o]=e.convertFeatureLayerToFeatureSet(n.sourceLayer,i.sr)),"$datastore"===o&&(r.vars[o]=e.convertServiceUrlToWorkspace(n.sourceLayer.url,i.sr))})},t.prototype._createFormattedAttributes=function(e){var t=this,r=this._effectivePopupTemplate,i=r&&r.fieldInfos,o={global:this._formatAttributes(i),content:[]};return Array.isArray(e)&&e.forEach(function(e,r){"fields"===e.type&&e.fieldInfos&&(o.content[r]=t._formatAttributes(e.fieldInfos))}),o},t.prototype._getAllFieldInfos=function(e){var t=this._effectivePopupTemplate,r=[],i=t&&t.fieldInfos;return i&&r.push.apply(r,i),e&&Array.isArray(e)?(e.forEach(function(e){if("fields"===e.type){var t=e&&e.fieldInfos;r.push.apply(r,t)}}),r):r},t.prototype._checkForRelatedFeatures=function(e,t){var r=this._graphic,i=this._getAllFieldInfos(e);return this.queryRelatedInfos(r,i,t)},t.prototype._getTooltip=function(e){var t=e.label,r=e.value;return"pie-chart"===e.chartType?t:t+":\n"+r},t.prototype._getChartOption=function(e){var t=e.value,r=e.attributes,i=e.formattedAttributes,o=e.fieldName,n=e.relatedFieldName,a=e.fieldInfos,l=e.chartType,s=e.index,u=this._graphic,p=C.getSourceLayer(u),f=t.normalizeField,c=t.tooltipField,d=f?this.isRelatedField(f)?r[this.getRelatedFieldInfo(f).fieldName]:r[f]:null,h=n&&void 0!==r[n]?r[n]:void 0!==r[o]?r[o]:i[o],y=void 0===h?null:h&&d?h/d:h,m=new I({x:s,y:y});if(this.isRelatedField(o)){var v=this.getRelatedFieldInfo(o),_=this.getRelatedFieldInfo(c),g=_?_.fieldName:null,b=this._formatValueToFieldInfo(y,{fieldInfos:a,fieldName:n,layer:p,preventPlacesFormatting:!!d}),F=v?v.label||v.fieldName:n,A=g&&void 0!==r[g]?r[g]:F;return m.tooltip=this._getTooltip({label:A,chartType:l,value:b}),m}var T=this._getFieldInfo(a,o),x=this._getFixedFieldName(o,p),w=T?T.label||T.fieldName:o,L=c&&void 0!==i[c]?i[c]:w,E=i[x];return m.tooltip=this._getTooltip({label:L,chartType:l,value:E}),m},t.prototype._getFixedFieldName=function(e,t){var r=R(t,e);return r?r.name:e},t.prototype._getFixedFieldNames=function(e,t){var r=this;return e&&e.map(function(e){return r._getFixedFieldName(e,t)})},t.prototype._setChartValue=function(e){var t=this,r=e.value,i=e.attributes,o=e.formattedAttributes,n=e.chartType,a=e.layer,l=this,s=l._effectivePopupTemplate,u=l.relatedInfoCount,p=r.fields,f=r.normalizeField;if(r.fields=this._getFixedFieldNames(p,a),f&&(r.normalizeField=this._getFixedFieldName(f,a)),p.some(function(e){return!!(null!=o[e]||t.isRelatedField(e)&&u)})){var c=s&&s.fieldInfos;p.forEach(function(e,a){if(t.isRelatedField(e))return void(r.series=r.series.concat(t._getRelatedChartInfos({fieldInfos:c,fieldName:e,formattedAttributes:o,chartType:n,value:r})));var l=t._getChartOption({value:r,index:a,attributes:i,chartType:n,formattedAttributes:o,fieldName:e,fieldInfos:c});r.series.push(l)})}},t.prototype._getRelatedChartInfos=function(e){var t=this,r=e.fieldInfos,i=e.fieldName,o=e.formattedAttributes,n=e.chartType,a=e.value,l=[],s=this.getRelatedFieldInfo(i),u=s.layerId,p=s.fieldName,f=this.getRelatedInfo(u);if(!f)return l;var c=f.relatedFeatures,d=f.relation;if(!d||!c)return l;var h=d.cardinality;return c.forEach(function(e,s){var u=e.attributes;u&&Object.keys(u).forEach(function(e){e===p&&l.push(t._getChartOption({value:a,index:s,attributes:u,formattedAttributes:o,fieldName:i,chartType:n,relatedFieldName:e,fieldInfos:r}))})}),"one-to-many"===h||"many-to-many"===h?l:[l[0]]},i([v.property()],t.prototype,"_featureAbortController",void 0),i([v.property({readOnly:!0})],t.prototype,"content",void 0),i([v.property({type:Boolean})],t.prototype,"defaultPopupTemplateEnabled",void 0),i([v.property({readOnly:!0})],t.prototype,"formattedAttributes",void 0),i([v.property({type:l})],t.prototype,"graphic",void 0),i([v.property({readOnly:!0})],t.prototype,"lastEditInfo",void 0),i([v.property({dependsOn:["view"]})],t.prototype,"spatialReference",null),i([v.property({readOnly:!0})],t.prototype,"title",void 0),i([v.property({dependsOn:["view"]})],t.prototype,"map",null),i([v.property({readOnly:!0,dependsOn:["_featureAbortController"]})],t.prototype,"waitingForContent",null),i([v.property()],t.prototype,"view",void 0),t=i([v.subclass("esri.widgets.FeatureViewModel")],t)}(v.declared(x))}).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js": /*!*******************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* * This module was modified by dojo-webpack-plugin to disable some locales * that were excluded by the plugin's 'locales' option */ !(module.exports = {'root':({'widgetLabel':'Feature','attach':'Attachments','fields':'Fields','fieldsSummary':'List of attributes and values','media':'Media','next':'Next','noTitle':'Untitled','previous':'Previous','lastEdited':'Last edited on {date}.','lastCreated':'Created on {date}.','lastEditedByUser':'Last edited by {user} on {date}.','lastCreatedByUser':'Created by {user} on {date}.'}),'ar':false,'bs':false,'ca':false,'cs':false,'da':false,'de':false,'el':false,'es':false,'et':false,'fi':false,'fr':false,'hr':false,'hu':false,'he':false,'id':false,'it':false,'ja':false,'ko':false,'lv':false,'lt':false,'nl':false,'nb':false,'pl':false,'pt-br':false,'pt-pt':false,'ro':false,'ru':false,'sl':false,'sr':false,'sv':false,'th':false,'tr':false,'uk':false,'vi':1,'zh-cn':false,'zh-hk':false,'zh-tw':false}) /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/Feature/nls/vi/Feature.js": /*!**********************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/Feature/nls/vi/Feature.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(module.exports = {widgetLabel:"Đối tượng",attach:"Tệp đính kèm",fields:"Trường",fieldsSummary:"Danh sách các thuộc tính và giá trị",media:"Phương tiện truyền thông",next:"Tiếp theo",noTitle:"Chưa có tiêu đề",previous:"Trước",lastEdited:"Chỉnh sửa lần cuối vào {date}.",lastCreated:"Tạo vào {date}.",lastEditedByUser:"Chỉnh sửa lần cuối bởi {user} vào {date}.",lastCreatedByUser:"Tạo bởi {user} vào {date}."}); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/Feature/support/RelatedFeatures.js": /*!*******************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/Feature/support/RelatedFeatures.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i),exports,__webpack_require__(/*! ../../../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"),__webpack_require__(/*! ../../../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"),__webpack_require__(/*! ../../../request */ "./node_modules/arcgis-js-api/request.js"),__webpack_require__(/*! ../../../core/Accessor */ "./node_modules/arcgis-js-api/core/Accessor.js"),__webpack_require__(/*! ../../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"),__webpack_require__(/*! ../../../core/Logger */ "./node_modules/arcgis-js-api/core/Logger.js"),__webpack_require__(/*! ../../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"),__webpack_require__(/*! ../../../core/accessorSupport/decorators */ "./node_modules/arcgis-js-api/core/accessorSupport/decorators.js"),__webpack_require__(/*! ../../../tasks/QueryTask */ "./node_modules/arcgis-js-api/tasks/QueryTask.js"),__webpack_require__(/*! ../../../tasks/support/Query */ "./node_modules/arcgis-js-api/tasks/support/Query.js"),__webpack_require__(/*! ../../../tasks/support/StatisticDefinition */ "./node_modules/arcgis-js-api/tasks/support/StatisticDefinition.js"),__webpack_require__(/*! ./featureUtils */ "./node_modules/arcgis-js-api/widgets/Feature/support/featureUtils.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e,t,r,a,o,i,n,s,u,l,d,f,c,p){var y=new Map,h="esri.widgets.Popup.support.RelatedFeatures",I=s.getLogger(h);return function(e){function t(t){var r=e.call(this,t)||this;return r.relatedInfoCount=null,r.relatedInfos=new Map,r}return r(t,e),t.prototype.destroy=function(){this.relatedInfos.clear()},t.prototype.addRelatedFeatureAttributes=function(e){var t=this;this.relatedInfos.forEach(function(r){return t._addRelatedFeatureAttribute(e,r)})},t.prototype.getRelatedFieldInfo=function(e){if(-1===e.indexOf("relationships/"))return null;var t=e.split("/").slice(1);return{layerId:t[0],fieldName:t[1]}},t.prototype.getRelatedInfo=function(e){return this.relatedInfos.get(e.toString())},t.prototype.isRelatedField=function(e){return void 0===e&&(e=""),!!e&&-1!==e.indexOf("relationships/")},t.prototype.queryRelatedInfos=function(e,t,r){var a=this;this.relatedInfos.clear();var o=p.getSourceLayer(e);if(!o)return u.resolve();var i=t.filter(function(e){return e&&a.isRelatedField(e.fieldName)});return i&&i.length?(this._createRelatedInfos(t,o),this._queryLayerInfos(o,r).then(function(t){return a._updateRelatedInfoLayerInfos(t),a._queryRelatedFeatureMap(e,r).then(function(e){return Object.keys(e).forEach(function(t){a._setRelatedFeatures(e[t],t.toString())}),e})})):u.resolve()},t.prototype._addRelatedFeatureAttribute=function(e,t){var r=this;e&&t&&(t.relatedFeatures&&t.relatedFeatures&&t.relatedFeatures.forEach(function(a){return r._addAttributesFromFeature(e,a,t)}),t.relatedStatsFeatures&&t.relatedStatsFeatures&&t.relatedStatsFeatures.forEach(function(a){return r._addAttributesFromFeature(e,a,t)}))},t.prototype._updateRelatedInfoLayerInfo=function(e,t){var r=e.value;if(r){this.getRelatedInfo(t).layerInfo=r.data}},t.prototype._updateRelatedInfoLayerInfos=function(e){var t=this;Object.keys(e).forEach(function(r){return t._updateRelatedInfoLayerInfo(e[r],r.toString())})},t.prototype._addAttributesFromFeature=function(e,t,r){var a=this;e&&t&&r&&Object.keys(t.attributes).forEach(function(o){var i=a._relatedFieldInfoToString({layerId:r.relation.id.toString(),fieldName:o});e[i]=t.attributes[o]})},t.prototype._relatedFieldInfoToString=function(e){return e?"relationships/"+e.layerId+"/"+e.fieldName:""},t.prototype._createRelatedInfoForFieldInfo=function(e,t){var r=this.getRelatedFieldInfo(e.fieldName);if(r){var a=r.layerId,o=r.fieldName;if(a){var i=this.getRelatedInfo(a)||this._createRelatedInfo(a,t);if(i&&(i.relatedFields.push(o),e.statisticType)){var n=new c({statisticType:e.statisticType,onStatisticField:o,outStatisticFieldName:o});i.outStatistics.push(n)}}}},t.prototype._createRelatedInfos=function(e,t){var r=this;e.forEach(function(e){return r._createRelatedInfoForFieldInfo(e,t)})},t.prototype._queryRelatedFeatureMap=function(e,t){var r=this,a={};return this.relatedInfos.forEach(function(o,i){o.layerInfo&&(a[i]=r._queryRelatedLayerFeatures(e,o,t))}),u.eachAlways(a)},t.prototype._queryLayerInfos=function(e,t){var r=this,a={};return this.relatedInfos.forEach(function(o,i){var s=o.relation;if(!s){var u=new n("relation-required","A relation is required on a layer to retrieve related records.");throw I.error(u),u}var l=s.relatedTableId;if(!l){var u=new n("A related table ID is required on a layer to retrieve related records.");throw I.error(u),u}var d=e.url+"/"+l,f=y.get(d),c=f||r._queryLayerInfo(d,t);f||y.set(d,c),a[i]=c}),u.eachAlways(a)},t.prototype._queryLayerInfo=function(e,t){return o(e,{query:{f:"json"},signal:t&&t.signal})},t.prototype._queryRelatedLayerFeatures=function(e,t,r){var a=p.getSourceLayer(e),o=a.layerId.toString(),i=t.layerInfo,n=t.queryTask,s=t.relation,l=this._getDestinationRelation(i,o);if(l){var d=s.keyField,c=l.keyField,y=this._getDestinationFieldType(i,l),h="string"===y?c+"='"+e.attributes[d]+"'":c+"="+e.attributes[d],I=n.execute(new f({where:h,outFields:t.relatedFields}),r),F=t.outStatistics&&t.outStatistics.length>0&&i.supportsStatistics,v=F?n.execute(new f({where:h,outFields:t.relatedFields,outStatistics:t.outStatistics}),r):null;return u.eachAlways({features:I,statsFeatures:v||u.resolve()})}return u.resolve()},t.prototype._setRelatedFeatures=function(e,t){var r=this.getRelatedInfo(t);if(r){var a=e.value;if(a){var o=a.features,i=a.statsFeatures,n=o&&o.value;r.relatedFeatures=n?n.features:[];var s=i&&i.value;r.relatedStatsFeatures=s?s.features:[]}}},t.prototype._getRelation=function(e,t){if(!t.relationships)return null;var r=null;return t.relationships.some(function(t){return t.id===parseInt(e,10)&&(r=t,!0)}),r},t.prototype._createRelatedInfo=function(e,t){var r=this._getRelation(e,t);if(r){var a=t.url+"/"+r.relatedTableId,o=new d({url:a}),i={url:a,queryTask:o,relation:r,relatedFields:[],outStatistics:[]};return this.relatedInfos.set(e,i),i}},t.prototype._getDestinationRelation=function(e,t){var r;return e&&e.relationships&&e.relationships.some(function(e){return""+e.relatedTableId===t&&(r=e,!0)}),r},t.prototype._getDestinationFieldType=function(e,t){var r=void 0;return e.fields.some(function(e){if(e.name===t.keyField){return r=-1!==["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble"].indexOf(e.type)?"number":"string",!0}return!1}),r},a([l.aliasOf("relatedInfos.size")],t.prototype,"relatedInfoCount",void 0),a([l.property()],t.prototype,"relatedInfos",void 0),t=a([l.subclass(h)],t)}(l.declared(i))}).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/Feature/support/attachmentUtils.js": /*!*******************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/Feature/support/attachmentUtils.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i),exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i,e){function p(i){var e=i.toLowerCase();return"image/bmp"===e||"image/emf"===e||"image/exif"===e||"image/gif"===e||"image/x-icon"===e||"image/jpeg"===e||"image/png"===e||"image/tiff"===e||"image/x-wmf"===e}function a(i){return i?"text/plain"===i?n+"text-32.svg":"application/pdf"===i?n+"pdf-32.svg":"text/csv"===i?n+"csv-32.svg":"application/gpx+xml"===i?n+"gpx-32.svg":"application/x-dwf"===i?n+"cad-32.svg":"application/postscript"===i||"application/json"===i||"text/xml"===i||"model/vrml"===i?n+"code-32.svg":"application/x-zip-compressed"===i||"application/x-7z-compressed"===i||"application/x-gzip"===i||"application/x-tar"===i||"application/x-gtar"===i||"application/x-bzip2"===i||"application/gzip"===i||"application/x-compress"===i||"application/x-apple-diskimage"===i||"application/x-rar-compressed"===i||"application/zip"===i?n+"zip-32.svg":-1!==i.indexOf("image/")?n+"image-32.svg":-1!==i.indexOf("audio/")?n+"sound-32.svg":-1!==i.indexOf("video/")?n+"video-32.svg":-1!==i.indexOf("msexcel")||-1!==i.indexOf("ms-excel")||-1!==i.indexOf("spreadsheetml")?n+"excel-32.svg":-1!==i.indexOf("msword")||-1!==i.indexOf("ms-word")||-1!==i.indexOf("wordprocessingml")?n+"word-32.svg":-1!==i.indexOf("powerpoint")||-1!==i.indexOf("presentationml")?n+"report-32.svg":n+"generic-32.svg":n+"generic-32.svg"}Object.defineProperty(e,"__esModule",{value:!0});var n=i.toUrl("../../../themes/base/images/files/");e.isSupportedImage=p,e.getIconPath=a}).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/Feature/support/featureUtils.js": /*!****************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/Feature/support/featureUtils.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i),exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e,r){function t(e){if(e)return e.get("sourceLayer")||e.get("layer")}Object.defineProperty(r,"__esModule",{value:!0}),r.getSourceLayer=t}).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/support/chartUtils.js": /*!******************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/support/chartUtils.js ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i),exports,__webpack_require__(/*! ../../core/tsSupport/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"),__webpack_require__(/*! ../../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"),__webpack_require__(/*! dojo/_base/kernel */ "./node_modules/dojo/_base/kernel.js"),__webpack_require__(/*! @dojo/framework/shim/Promise */ "./node_modules/@dojo/framework/shim/Promise.mjs")], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e,r,t,n,o){function a(e){for(var t=e.split("-"),n=t[0].toLowerCase(),o=Object.keys(r.locales),a=null,i=0,l=o;i<l.length;i++){var s=l[i];if(s.indexOf(n)>-1){a=r.locales[s];break}}return a}function i(){var e=o.locale;return e?r.locales[e]||a(e)||s:s}function l(r){return void 0===r&&(r=i()),n(this,void 0,void 0,function(){var o=this;return t(this,function(a){return u&&r===c?[2,u]:(c=r,u=Promise.all([new Promise(function(r,t){__webpack_require__.e(/*! AMD require */ 95).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../../libs/amcharts4/index */ "./node_modules/arcgis-js-api/libs/amcharts4/index.js")]; (r).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(t.bind(this))}),new Promise(function(t,n){__webpack_require__.e(/*! AMD require */ 54).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("./node_modules/arcgis-js-api/libs/amcharts4/lang sync recursive ^\\.\\/.*$")("./"+r)]; (t).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(n.bind(this))})]).then(function(a){var i=a[0],l=a[1];return n(o,void 0,void 0,function(){var n,o;return t(this,function(t){switch(t.label){case 0:return n=i.am4core,c===r&&(n.options.defaultLocale=l.default),"function"==typeof Object.assign?[3,2]:[4,new Promise(function(r,t){Promise.resolve(/*! AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @dojo/framework/shim/object */ "./node_modules/@dojo/framework/shim/object.mjs")]; (r).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(t.bind(this))})];case 1:o=t.sent(),Object.defineProperty(Object,"assign",{value:o.assign,writable:!0,configurable:!0}),t.label=2;case 2:return[2,i]}})})},function(){return c=u=null,null}),[2,u])})})}Object.defineProperty(r,"__esModule",{value:!0});var s="en_US";r.locales={ar:"ar","bs-ba":"bs_BA","ca-es":"ca_ES","cs-cz":"cs_CZ","da-dk":"da_DK","de-ch":"de_CH","de-de":"de_DE","el-gr":"el_GR","en-ca":"en_CA","en-us":"en_US","es-es":"es_ES","et-ee":"et_EE","fi-fi":"fi_FI","fr-fr":"fr_FR","he-il":"he_IL","hr-hr":"hr_HR","hu-hu":"hu_HU","id-id":"id_ID","it-it":"it_IT","ja-jp":"ja_JP","ko-kr":"ko_KR","lt-lt":"lt_LT","lv-lv":"lv_LV","nb-no":"nb_NO","nl-nl":"nl_NL","pl-pl":"pl_PL","pt-br":"pt_BR","pt-pt":"pt_PT","ro-ro":"ro_RO","ru-ru":"ru_RU","sl-sl":"sl_SL","sr-rs":"sr_RS","sv-se":"sv_SE","th-th":"th_TH","tr-tr":"tr_TR","uk-ua":"uk_UA","vi-vn":"vi_VN","zh-cn":"zh_Hans","zh-hk":"zh_Hant","zh-tw":"zh_Hant"},r.getChartLocale=i;var u,c;r.loadChartsModule=l}).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js": /*!********************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* * This module was modified by dojo-webpack-plugin to disable some locales * that were excluded by the plugin's 'locales' option */ !(module.exports = {'root':({'openInApp':'Open in {appName}','view':'View'}),'ar':false,'bs':false,'ca':false,'cs':false,'da':false,'de':false,'el':false,'es':false,'et':false,'fi':false,'fr':false,'he':false,'hr':false,'hu':false,'id':false,'it':false,'ja':false,'ko':false,'lv':false,'lt':false,'nl':false,'nb':false,'pl':false,'pt-br':false,'pt-pt':false,'ro':false,'ru':false,'sl':false,'sr':false,'sv':false,'th':false,'tr':false,'uk':false,'vi':1,'zh-cn':false,'zh-hk':false,'zh-tw':false}) /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/support/nls/vi/uriUtils.js": /*!***********************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/support/nls/vi/uriUtils.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(module.exports = {openInApp:"Mở bằng {appName}",view:"Xem"}); /***/ }), /***/ "./node_modules/arcgis-js-api/widgets/support/uriUtils.js": /*!****************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/support/uriUtils.js ***! \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i),exports,__webpack_require__(/*! dojo/i18n!./nls/uriUtils */ "./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js"),__webpack_require__(/*! ../../core/string */ "./node_modules/arcgis-js-api/core/string.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e,r,a,p){function t(e){var r=null;return s.some(function(a){return a.pattern.test(e)&&(r=a),!!r}),r}function i(e){if("string"!=typeof e||!e)return e;var r=t(e);if(!r)return e;var a=e.match(r.pattern),i=a&&a[2],s=p.replace(r.label,{appName:r.appName,hierPart:i}),n=r.target?'target="'+r.target+'"':"",l="_blank"===r.target?'rel="noreferrer"':"";return e.replace(r.pattern,"<a "+n+' href="$1" '+l+">"+s+"</a>")}Object.defineProperty(r,"__esModule",{value:!0});var s=[{id:"http",pattern:/^\s*(https?:\/\/([^\s]+))\s*$/i,target:"_blank",label:a.view},{id:"tel",pattern:/^\s*(tel:([^\s]+))\s*$/i,label:"{hierPart}"},{id:"mailto",pattern:/^\s*(mailto:([^\s]+))\s*$/i,label:"{hierPart}"},{id:"arcgis-appstudio-player",pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"App Studio Player"},{id:"arcgis-collector",pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"Collector"},{id:"arcgis-explorer",pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"Explorer"},{id:"arcgis-navigator",pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"Navigator"},{id:"arcgis-survey123",pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"Survey123"},{id:"arcgis-trek2there",pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"Trek2There"},{id:"arcgis-workforce",pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:a.workforce},{id:"iform",pattern:/^\s*(iform:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"iForm"},{id:"flow",pattern:/^\s*(flow:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"FlowFinity"},{id:"lfmobile",pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"Laserfische"},{id:"mspbi",pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/i,label:a.openInApp,appName:"Microsoft Power Bi"}];r.autoLink=i}).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js": /*!************************************************************************************************************************!*\ !*** ./node_modules/dojo-webpack-plugin/loaders/dojo/i18n!./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js ***! \************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! dojo/i18n */ "./node_modules/dojo/i18n.js"), __webpack_require__(/*! ./node_modules/dojo-webpack-plugin/loaders/dojo/runner.js */ "./node_modules/dojo-webpack-plugin/loaders/dojo/runner.js") ,__webpack_require__(/*! esri/widgets/Feature/nls/vi/Feature */ "./node_modules/arcgis-js-api/widgets/Feature/nls/vi/Feature.js") ,__webpack_require__(/*! ./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js?absMid=esri/widgets/Feature/nls/Feature */ "./node_modules/arcgis-js-api/widgets/Feature/nls/Feature.js") ], __WEBPACK_AMD_DEFINE_RESULT__ = (function(loader, runner) { return runner(loader, "esri/widgets/Feature/nls/Feature", __webpack_require__.dj.c(), false); }).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js": /*!*************************************************************************************************************************!*\ !*** ./node_modules/dojo-webpack-plugin/loaders/dojo/i18n!./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js ***! \*************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! dojo/i18n */ "./node_modules/dojo/i18n.js"), __webpack_require__(/*! ./node_modules/dojo-webpack-plugin/loaders/dojo/runner.js */ "./node_modules/dojo-webpack-plugin/loaders/dojo/runner.js") ,__webpack_require__(/*! esri/widgets/support/nls/vi/uriUtils */ "./node_modules/arcgis-js-api/widgets/support/nls/vi/uriUtils.js") ,__webpack_require__(/*! ./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js?absMid=esri/widgets/support/nls/uriUtils */ "./node_modules/arcgis-js-api/widgets/support/nls/uriUtils.js") ], __WEBPACK_AMD_DEFINE_RESULT__ = (function(loader, runner) { return runner(loader, "esri/widgets/support/nls/uriUtils", __webpack_require__.dj.c(), false); }).apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }) }]); //# sourceMappingURL=60-es2015.js.map