// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"widgets/Analysis/toolSettings":function(){define(["dojo/_base/lang","dojo/_base/array"],function(v,m){var d={},c=0,h=[{id:c++,dijitID:"esri/dijit/analysis/AggregatePoints",name:"AggregatePoints",title:"aggregateTool",imgDisplay:"images/aggregate-points.png",usage:"aggregatePointsUsage",analysisLayer:{name:"pointLayer",geomTypes:["esriGeometryPoint","esriGeometryMultipoint"]},requiredParam:{name:"polygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]},icon:"images/AggregatePoints32.png"},
{id:c++,dijitID:"esri/dijit/analysis/CalculateDensity",name:"CalculateDensity",title:"calculateDensity",imgDisplay:"images/calculate-density.png",usage:"calculateDensityUsage",analysisLayer:{name:"inputLayer",geomTypes:["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline"]},optionalParams:[{name:"boundingPolygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/CreateDensitySurface32.png",privileges:["svradvanced"]},{id:c++,dijitID:"esri/dijit/analysis/ChooseBestFacilities",
name:"ChooseBestFacilities",title:"chooseBestFacilities",imgDisplay:"images/choose-best-facilities.png",analysisLayer:{name:"demandLocationLayer",geomTypes:["esriGeometryPoint","esriGeometryMultipoint"]},optionalParams:[{name:"demandLocationLayers",isArray:!0,geomTypes:["esriGeometryPoint","esriGeometryMultipoint"]},{name:"featureLayers",isArray:!0,geomTypes:["*"]},{name:"pointBarriers",isArray:!0,geomTypes:["esriGeometryPoint"]},{name:"lineBarriers",isArray:!0,geomTypes:["esriGeometryPolyline"]},
{name:"polygonBarriers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/ChooseBestFacilities32.png",privileges:["loc"]},{id:c++,dijitID:"esri/dijit/analysis/ConnectOriginsToDestinations",name:"ConnectOriginsToDestinations",title:"connectOriginsToDestinations",imgDisplay:"images/connect-origins-to-destinations.png",usage:"connectOriginsToDestinationsUsage",analysisLayer:{name:"originsLayer",geomTypes:["esriGeometryPoint"]},requiredParam:{name:"featureLayers",isArray:!0,geomTypes:["esriGeometryPoint"]},
optionalParams:[{name:"pointBarriers",isArray:!0,geomTypes:["esriGeometryPoint"]},{name:"lineBarriers",isArray:!0,geomTypes:["esriGeometryPolyline"]},{name:"polygonBarriers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/ConnectOriginstoDestinations32.png",privileges:["od"]},{id:c++,dijitID:"esri/dijit/analysis/CreateBuffers",name:"CreateBuffers",title:"createBuffers",imgDisplay:"images/create-buffers.png",usage:"createBuffersUsage",analysisLayer:{name:"inputLayer",geomTypes:["*"]},icon:"images/CreateBuffers32.png"},
{id:c++,dijitID:"esri/dijit/analysis/CreateDriveTimeAreas",name:"CreateDriveTimeAreas",title:"createDriveTimeAreas",imgDisplay:"images/create-drivetime.png",usage:"createDriveTimeAreasUsage",analysisLayer:{name:"inputLayer",geomTypes:["esriGeometryPoint"]},optionalParams:[{name:"pointBarriers",isArray:!0,geomTypes:["esriGeometryPoint"]},{name:"lineBarriers",isArray:!0,geomTypes:["esriGeometryPolyline"]},{name:"polygonBarriers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/CreateDriveTimeAreas32.png",
cannotCancel:!0,privileges:["drivetimearea"]},{id:c++,dijitID:"esri/dijit/analysis/CreateViewshed",name:"CreateViewshed",title:"createViewshed",imgDisplay:"images/create-viewshed.png",usage:"createViewshedUsage",analysisLayer:{name:"inputLayer",geomTypes:["esriGeometryPoint"]},icon:"images/Viewshed32.png",privileges:["elevation"]},{id:c++,dijitID:"esri/dijit/analysis/CreateWatersheds",name:"CreateWatersheds",title:"createWatershed",imgDisplay:"images/create-watersheds.png",usage:"createWatershedsUsage",
analysisLayer:{name:"inputLayer",geomTypes:["esriGeometryPoint"]},icon:"images/Watershed32.png",privileges:["hydro"]},{id:c++,dijitID:"esri/dijit/analysis/DeriveNewLocations",name:"DeriveNewLocations",title:"deriveNewLocations",imgDisplay:"images/derive-new-locations.png",usage:"deriveNewLocationsUsage",analysisLayer:{name:"analysisLayer",geomTypes:["*"]},optionalParams:[{name:"inputLayers",isArray:!0,geomTypes:["*"]}],icon:"images/FindNewLocations32.png"},{id:c++,dijitID:"esri/dijit/analysis/DissolveBoundaries",
name:"DissolveBoundaries",title:"dissolveBoundaries",imgDisplay:"images/dissolve-boundaries.png",usage:"dissolveBoundariesUsage",analysisLayer:{name:"inputLayer",geomTypes:["esriGeometryPolygon"]},icon:"images/DissolveBoundaries32.png"},{id:c++,dijitID:"esri/dijit/analysis/EnrichLayer",name:"EnrichLayer",title:"enrichLayer",imgDisplay:"images/enrich-layer.png",usage:"enrichLayerUsage",analysisLayer:{name:"inputLayer",geomTypes:["*"]},icon:"images/GeoenrichFeatures32.png",privileges:["geoenrichment"]},
{id:c++,dijitID:"esri/dijit/analysis/ExtractData",name:"ExtractData",title:"extractData",imgDisplay:"images/extract-data.png",usage:"extractDataDesc",optionalParams:[{name:"featureLayers",isArray:!0,geomTypes:["*"]}],icon:"images/ClipAndShip32.png"},{id:c++,dijitID:"esri/dijit/analysis/FindCentroids",name:"FindCentroids",title:"findCentroids",imgDisplay:"images/find-centroids.png",usage:"findCentroidsUsage",analysisLayer:{name:"inputLayer",geomTypes:["*"]},optionalParams:[{name:"inputLayers",isArray:!0,
geomTypes:["*"]}],icon:"images/FindCentroid32.png",privileges:["svradvanced"]},{id:c++,dijitID:"esri/dijit/analysis/FindExistingLocations",name:"FindExistingLocations",title:"findExistingLocations",imgDisplay:"images/find-existing-locations.png",usage:"findExistingLocationsUsage",analysisLayer:{name:"analysisLayer",geomTypes:["*"]},optionalParams:[{name:"inputLayers",isArray:!0,geomTypes:["*"]}],icon:"images/FindExistingLocations32.png"},{id:c++,dijitID:"esri/dijit/analysis/FindHotSpots",name:"FindHotSpots",
title:"findHotSpots",imgDisplay:"images/find-hot-spots.png",usage:"findHotSpotsUsage",analysisLayer:{name:"analysisLayer",geomTypes:["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolygon"]},optionalParams:[{name:"aggregationPolygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]},{name:"boundingPolygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/FindHotSpots32.png"},{id:c++,dijitID:"esri/dijit/analysis/FindNearest",name:"FindNearest",title:"findNearest",imgDisplay:"images/find-nearest.png",
usage:"findNearestUsage",analysisLayer:{name:"analysisLayer",geomTypes:["*"]},requiredParam:{name:"nearLayers",isArray:!0,geomTypes:["*"]},optionalParams:[{name:"pointBarriers",isArray:!0,geomTypes:["esriGeometryPoint"]},{name:"lineBarriers",isArray:!0,geomTypes:["esriGeometryPolyline"]},{name:"polygonBarriers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/FindNearest32.png",cannotCancel:!0,privileges:["svradvanced"]},{id:c++,dijitID:"esri/dijit/analysis/FindOutliers",name:"FindOutliers",
title:"findOutliers",imgDisplay:"images/find-outliers.png",usage:"findOutliersUsage",analysisLayer:{name:"analysisLayer",geomTypes:["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolygon"]},optionalParams:[{name:"aggregationPolygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]},{name:"boundingPolygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/FindOutliers32.png"},{id:c++,dijitID:"esri/dijit/analysis/FindPointClusters",name:"FindPointClusters",title:"findPointClusters",
imgDisplay:"images/find-point-clusters.png",usage:"findPointClustersUsage",analysisLayer:{name:"analysisLayer",geomTypes:["esriGeometryPoint"]},optionalParams:[{name:"analysisLayers",isArray:!0,geomTypes:["esriGeometryPoint"]}],icon:"images/FindPointClusters32.png"},{id:c++,dijitID:"esri/dijit/analysis/FindSimilarLocations",name:"FindSimilarLocations",title:"findSimilarLocations",imgDisplay:"images/find-similar-locations.png",usage:"findSimilarLocationsUsage",analysisLayer:{name:"inputLayer",geomTypes:["*"]},
optionalParams:[{name:"searchLayers",isArray:!0,geomTypes:["*"]}],icon:"images/FindSimilarLocations32.png"},{id:c++,dijitID:"esri/dijit/analysis/GeocodeLocationsFromTable",name:"GeocodeLocationsFromTable",title:"geocodeLocations",imgDisplay:"images/geocode-locations-from-table.png",usage:"geocodeLocationsUsage",icon:"images/GeocodeLocationsFromTable32.png",portalOnly:!0},{id:c++,dijitID:"esri/dijit/analysis/InterpolatePoints",name:"InterpolatePoints",title:"interpolatePoints",imgDisplay:"images/interpolate-points.png",
usage:"interpolatePointsUsage",analysisLayer:{name:"inputLayer",geomTypes:["esriGeometryPoint","esriGeometryMultipoint"]},optionalParams:[{name:"boundingPolygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]},{name:"predictAtPointLayers",isArray:!0,geomTypes:["esriGeometryPoint"]}],icon:"images/CreateInterpolatedSurface32.png",privileges:["svradvanced"]},{id:c++,dijitID:"esri/dijit/analysis/JoinFeatures",name:"JoinFeatures",title:"joinFeatures",imgDisplay:"images/join-features.png",usage:"joinFeaturesUsage",
analysisLayer:{name:"targetLayer",geomTypes:["*"]},optionalParams:[{name:"targetLayers",isArray:!0,geomTypes:["*"]},{name:"joinLayers",isArray:!0,geomTypes:["*"]}],icon:"images/JoinFeatures32.png"},{id:c++,dijitID:"esri/dijit/analysis/MergeLayers",name:"MergeLayers",title:"mergeLayers",imgDisplay:"images/merge-layers.png",usage:"mergeLayersUsage",analysisLayer:{name:"inputLayer",geomTypes:["*"]},requiredParam:{name:"mergeLayers",isArray:!0,geomTypes:["*"]},icon:"images/MergeLayers32.png"},{id:c++,
dijitID:"esri/dijit/analysis/OverlayLayers",name:"OverlayLayers",title:"overlayLayers",imgDisplay:"images/overlay-layers.png",usage:"overlayLayersUsage",analysisLayer:{name:"inputLayer",geomTypes:["*"]},requiredParam:{name:"overlayLayer",isArray:!0,geomTypes:["*"]},optionalParams:[{name:"overlayLayers",isArray:!0,geomTypes:["*"]}],icon:"images/OverlayLayers32.png"},{id:c++,dijitID:"esri/dijit/analysis/PlanRoutes",name:"PlanRoutes",title:"planRoutes",imgDisplay:"images/plan-routes.png",usage:"planRoutesUsage",
analysisLayer:{name:"stopsLayer",geomTypes:["esriGeometryPoint"]},optionalParams:[{name:"featureLayers",isArray:!0,geomTypes:["esriGeometryPoint"]},{name:"stopsLayers",isArray:!0,geomTypes:["esriGeometryPoint"]},{name:"pointBarriers",isArray:!0,geomTypes:["esriGeometryPoint"]},{name:"lineBarriers",isArray:!0,geomTypes:["esriGeometryPolyline"]},{name:"polygonBarriers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/PlanRoutes32.png",cannotCancel:!0,privileges:["planroutes"]},{id:c++,dijitID:"esri/dijit/analysis/SummarizeCenterAndDispersion",
name:"SummarizeCenterAndDispersion",title:"summarizeCenterAndDispersion",imgDisplay:"images/summarize-center-dispersion.png",usage:"summarizeCenterAndDispersionUsage",analysisLayer:{name:"analysisLayer",geomTypes:["esriGeometryPoint"]},optionalParams:[{name:"inputLayers",isArray:!0,geomTypes:["*"]}],icon:"images/SummarizeCenterAndDispersion32.png"},{id:c++,dijitID:"esri/dijit/analysis/SummarizeNearby",name:"SummarizeNearby",title:"summarizeNearby",imgDisplay:"images/summarize-nearby.png",usage:"summarizeNearbyUsage",
analysisLayer:{name:"sumNearbyLayer",geomTypes:["*"]},requiredParam:{name:"summaryLayers",isArray:!0,geomTypes:["*"]},icon:"images/SummarizeNearby32.png"},{id:c++,dijitID:"esri/dijit/analysis/SummarizeWithin",name:"SummarizeWithin",title:"summarizeWithin",imgDisplay:"images/summarize-within.png",usage:"summarizeWithinUsage",analysisLayer:{name:"sumWithinLayer",geomTypes:["esriGeometryPolygon"]},requiredParam:{name:"summaryLayers",isArray:!0,geomTypes:["*"]},icon:"images/SummarizeWithin32.png"},{id:c++,
dijitID:"esri/dijit/analysis/TraceDownstream",name:"TraceDownstream",title:"traceDownstream",imgDisplay:"images/trace-downstream.png",usage:"traceDownstreamUsage",analysisLayer:{name:"inputLayer",geomTypes:["esriGeometryPoint"]},optionalParams:[{name:"boundingPolygonLayers",isArray:!0,geomTypes:["esriGeometryPolygon"]}],icon:"images/TraceDownstream32.png",privileges:["hydro"]}];d.findToolSetting=function(n){var l=null;m.some(h,function(k){if(k.name===n)return l=k,!0});return l};d.getAllSettings=function(n){var l=
v.clone(h);return m.filter(l,function(k){return!0!==k.portalOnly||!0===n})};return d})},"widgets/Analysis/setting/SingleToolSetting":function(){define("dojo/_base/declare dojo/text!./SingleToolSetting.html dojo/dom-style dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin jimu/portalUrlUtils jimu/dijit/CheckBox dijit/form/ValidationTextBox".split(" "),function(v,m,d,c,h,n,l,k){return v([c,h,n],{baseClass:"jimu-widget-analysis-singleToolSetting",templateString:m,toolLabel:null,nls:null,
config:null,rowData:null,livingAtlasConfigEnabled:!1,postCreate:function(){this.inherited(arguments);this.labelEditor.set("value",this.toolLabel);"extractData"===this.rowData.title&&d.set(this.resultOption,"display","none");"planRoutes"!==this.rowData.title&&"findNearest"!==this.rowData.title&&"connectOriginsToDestinations"!==this.rowData.title&&d.set(this.showOutputTypeOption,"display","none");this.helptipChk=new k({checked:!0,label:this.nls.showHelpTip});this.helptipChk.placeAt(this.helpTipOption);
this.mapExtentChk=new k({checked:!0,label:this.nls.showCurrentMapExtent});this.mapExtentChk.placeAt(this.mapExtentOption);this.creditsChk=new k({checked:!0,label:this.nls.showCredits});this.creditsChk.placeAt(this.creditsOption);this.resultChk=new k({checked:!0,label:this.nls.saveAsFeatureService});this.resultChk.placeAt(this.resultOption);this.livingAtlasConfigEnabled?(this.readyToUseLayersChk=new k({checked:!0,label:this.nls.showReadyToUseLayers}),this.readyToUseLayersChk.placeAt(this.readyToUseLayersOption),
d.set(this.readyToUseLayersOption,"display","block")):d.set(this.readyToUseLayersOption,"display","none");this.allowToExportChk=new k({checked:!1,label:this.nls.allowToExport});this.allowToExportChk.placeAt(this.allowToExportOption);this.showOutputTypeChk=new k({checked:!1,label:this.nls.includeRouteLayer});this.showOutputTypeChk.placeAt(this.showOutputTypeOption);var e=l.getStandardPortalUrl(this.appConfig.portalUrl);if(!l.isOnline(e)||0<=["createViewshed","createWatershed","traceDownstream"].indexOf(this.rowData.title))d.set(this.creditsOption,
"display","none"),this.creditsChk.setValue(!1);"geocodeLocations"===this.rowData.title&&(d.set(this.mapExtentOption,"display","none"),this.mapExtentChk.setValue(!1),d.set(this.resultOption,"display","none"),this.resultChk.setValue(!1))},getConfig:function(){var e={showHelp:this.helptipChk.getValue(),showCredits:this.creditsChk.getValue(),showChooseExtent:this.mapExtentChk.getValue(),showReadyToUseLayers:this.livingAtlasConfigEnabled?this.readyToUseLayersChk.getValue():!1,allowToExport:this.allowToExportChk.getValue()};
"extractData"!==this.rowData.title&&(e.returnFeatureCollection=!this.resultChk.getValue());if("planRoutes"===this.rowData.title||"findNearest"===this.rowData.title||"connectOriginsToDestinations"===this.rowData.title)e.showOutputType=this.showOutputTypeChk.getValue();if(this.labelEditor.validate()){var y=this.labelEditor.get("value");y!==this.toolLabel&&(e.toolLabel=y)}return e},setConfig:function(e){this.config=e;e.toolLabel&&this.labelEditor.set("value",e.toolLabel);this.helptipChk.setValue(!!e.showHelp);
this.creditsChk.setValue(!!e.showCredits);this.mapExtentChk.setValue(!!e.showChooseExtent);this.livingAtlasConfigEnabled&&this.readyToUseLayersChk.setValue(!!e.showReadyToUseLayers);this.allowToExportChk.setValue(!!e.allowToExport);"returnFeatureCollection"in e&&this.resultChk.setValue(!e.returnFeatureCollection);"showOutputType"in e&&this.showOutputTypeChk.setValue(!!e.showOutputType)}})})},"widgets/Analysis/setting/_build-generate_module":function(){define(["dojo/text!./Setting.html","dojo/text!./css/style.css",
"dojo/i18n!./nls/strings"],function(){})},"url:widgets/Analysis/setting/SingleToolSetting.html":'\x3cdiv\x3e\r\n  \x3cdiv class\x3d"control-section jimu-leading-margin3"\x3e\r\n    \x3clabel class\x3d"jimu-widget-normal"\x3e${nls.toolLabel}\x26nbsp;:\x3c/label\x3e\r\n    \x3cinput data-dojo-attach-point\x3d"labelEditor" data-dojo-type\x3d"dijit/form/ValidationTextBox"\r\n           data-dojo-props\x3d\'required:true,trim:true\'/\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"control-section jimu-leading-margin3"\x3e\r\n    \x3cdiv class\x3d"control-option" data-dojo-attach-point\x3d"helpTipOption"\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"control-option" data-dojo-attach-point\x3d"mapExtentOption"\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"control-option" data-dojo-attach-point\x3d"creditsOption"\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"control-option" data-dojo-attach-point\x3d"resultOption"\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"control-option" data-dojo-attach-point\x3d"readyToUseLayersOption"\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"control-option" data-dojo-attach-point\x3d"allowToExportOption"\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"control-option" data-dojo-attach-point\x3d"showOutputTypeOption"\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:widgets/Analysis/setting/Setting.html":'\x3cdiv\x3e\r\n  \x3cdiv\x3e\r\n    \x3cdiv\x3e\r\n      \x3cspan class\x3d"label"\x3e${nls.selectAnalysisTools}\x3c/span\x3e\r\n      \x3cspan class\x3d"info jimu-float-trailing" data-dojo-attach-point\x3d"infoText"\x3e\x3c/span\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"analysis-list-content"\x3e\r\n    \x3ctable class\x3d\'analysis-table\' data-dojo-attach-point\x3d"table"\x3e\r\n      \x3cthead class\x3d"analysis-table-thead"\x3e\r\n        \x3ctr\x3e\r\n          \x3cth class\x3d"checkbox-td"\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"checkAllBtnDiv"\x3e\x3c/div\x3e\r\n          \x3c/th\x3e\r\n          \x3cth class\x3d"name-td"\x3e\r\n            \x3clabel data-dojo-attach-event\x3d"onClick: _toggleCheckAll" class\x3d"name-for-checkbox"\x3e${nls.name}\x3c/label\x3e\r\n          \x3c/th\x3e\r\n          \x3cth class\x3d"setting-details"\x3e${nls.settings}\x3c/th\x3e\r\n          \x3cth class\x3d"usage-td"\x3e${nls.usage}\x3c/th\x3e\r\n          \x3cth\x3e\x3c/th\x3e\r\n        \x3c/tr\x3e\r\n      \x3c/thead\x3e\r\n    \x3c/table\x3e\r\n    \x3ctable class\x3d\'tools-table\'\x3e\r\n      \x3ctbody data-dojo-attach-point\x3d"tbody" class\x3d"tools-table-tbody"\x3e\r\n      \x3c/tbody\x3e\r\n    \x3c/table\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:widgets/Analysis/setting/css/style.css":'.jimu-widget-analysis-setting{margin:0; padding:0; font-size:14px; position: relative; width: 100%; height: 100%; overflow: hidden;}.jimu-widget-analysis-setting .label{font-size: 14px;}.jimu-widget-analysis-setting .info{font-size: 14px;}.jimu-widget-analysis-setting .analysis-list-content{margin-top: 15px; margin-bottom: 15px; width: 100%; height:90%;}.jimu-widget-analysis-setting .analysis-table{width:100%; margin:0; padding:0; overflow-x:hidden; overflow-y:auto; height: auto; position: relative; border-collapse:collapse; table-layout:fixed; border: 1px solid #CCCCCC;}.jimu-widget-analysis-setting .analysis-table .analysis-table-thead{width:100%; height:36px; background-color: #EEEEEE; overflow:hidden; border-top-left-radius:5px; border-top-right-radius:5px;}.jimu-widget-analysis-setting .analysis-table \x3e thead \x3e tr \x3e th{height:40px; line-height:40px; vertical-align:middle; color:#000000; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}.jimu-widget-analysis-setting .tools-table{width:100%; margin:0; padding:0; overflow-x:hidden; overflow-y:auto; height: 95%; position: relative; border-collapse:collapse; table-layout:fixed; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;}.jimu-widget-analysis-setting .tools-table .tools-table-tbody{position: absolute; width:100%; height:100%; overflow-x: hidden; overflow-y: auto;}.jimu-widget-analysis-setting .checkbox-td{margin-left: 10px; padding-left: 10px; width: 30px;}.jimu-rtl .jimu-widget-analysis-setting .checkbox-td{margin-left: auto; margin-right: 10px; padding-left: auto; padding-right: 10px;}.jimu-widget-analysis-setting .name-td{margin-left: 20px; width: 230px;}.jimu-rtl .jimu-widget-analysis-setting .name-td{margin-left: auto; margin-right: 20px;}.jimu-widget-analysis-setting .setting-td{width: 110px;}.jimu-widget-analysis-setting .name-for-checkbox{cursor: pointer;}.jimu-widget-analysis-setting .img-td{margin-left: 20px; width: 280px;}.jimu-rtl .jimu-widget-analysis-setting .img-td{margin-left: auto; margin-right: 20px;}.jimu-widget-analysis-setting .usage-td{margin-left: 20px; width: auto;}.jimu-rtl .jimu-widget-analysis-setting .usage-td{margin-left: auto; margin-right: 20px;}.jimu-widget-analysis-setting .tools-table \x3e tbody \x3e tr{cursor: pointer; height: 88px; border-bottom: 1px solid #CCCCCC;}.jimu-widget-analysis-setting .tools-table \x3e tbody \x3e tr \x3e td{color:#000000; font-size: 14px;}.jimu-widget-analysis-setting .tools-table \x3e tbody \x3e tr.setting{height: auto; border: none;}.jimu-widget-analysis-setting .tools-table \x3e tbody \x3e tr.selected{border-left: 0; border-right: 6px solid #15a4fa;}.jimu-widget-analysis-setting .tools-table \x3e tbody \x3e tr.disabled{background-color: #bbbbbb;}.jimu-widget-analysis-setting .tools-table \x3e tbody \x3e tr:not(.disabled):hover \x3e td{background:#EEEEEE;}.jimu-widget-analysis-setting .setting-icon{cursor: pointer;}.jimu-widget-analysis-singleToolSetting{position: relative; background: #ffffff; border-bottom: 1px solid #CCC; padding-top: 5px;}.jimu-widget-analysis-singleToolSetting:after, .jimu-widget-analysis-singleToolSetting:before {bottom: 100%; left: 29%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none;}.jimu-widget-analysis-singleToolSetting .control-option{margin-bottom: 10px;}',
"*now":function(v){v(['dojo/i18n!*preload*widgets/Analysis/setting/nls/Setting*["ar","bs","ca","cs","da","de","en","el","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","zh-cn","uk","vi","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/_base/event dojo/query dojo/on dojo/fx dojo/dom dojo/dom-class dojo/dom-style dojo/dom-construct dojo/dom-prop dojo/i18n!esri/nls/jsapi dijit/_WidgetsInTemplateMixin jimu/BaseWidgetSetting jimu/utils jimu/portalUrlUtils jimu/portalUtils jimu/dijit/CheckBox ../toolSettings ./SingleToolSetting".split(" "),function(v,m,d,c,h,n,l,k,e,y,r,A,D,E,F,x,z,G,B,C,H){return v([F,E],{baseClass:"jimu-widget-analysis-setting",postMixInProperties:function(){this.inherited(arguments);
d.mixin(this.nls,D.analysisTools);d.mixin(this.nls,window.jimuNls.common)},postCreate:function(){this.inherited(arguments);this.checkboxList=[];this._initToolsData();var a=z.getStandardPortalUrl(this.appConfig.portalUrl),b=G.getPortal(a),g=z.isOnline(a)?!0:b.livingAtlasGroupQuery&&0<b.livingAtlasGroupQuery.length;window.isRTL?(this.infoString=this.rowsData.length+"/0",this.infoRegex=/\d+$/):(this.infoString="0/"+this.rowsData.length,this.infoRegex=/^\d+/);this.checkAllBtn=new B({});this.checkAllBtn.placeAt(this.checkAllBtnDiv);
this.own(n(this.checkAllBtn.domNode,"click",d.hitch(this,function(){this._checkAll(this.checkAllBtn.getValue())})));m.forEach(this.rowsData,d.hitch(this,function(f){this._addRow(f,g)}));A.set(this.infoText,"innerHTML",x.stripHTML(this.infoString.replace(this.infoRegex,0)));this.config&&this.setConfig(this.config);this.own(n(document.body,"click",d.hitch(this,function(f){var p=f.target||f.srcElement,t;h("tr.setting",this.tbody).forEach(function(q){t=p===q||k.isDescendant(p,q);!t&&q.show&&(l.wipeOut({node:q.toolSetting.domNode}).play(),
q.show=!1)},this)})))},_addRow:function(a,b){var g=a.name;"chooseBestFacilities"===a.title&&(this.nls[a.title]=this.nls.chooseBestFacilities,this.nls[a.usage]=this.nls.chooseBestFacilities);var f=r.create("tr",{"class":"tools-table-tr",title:this.nls[a.title]},this.tbody);f.rowData=a;var p=r.create("td",{"class":"checkbox-td"},f),t=new B({checked:!1,rid:a.id});t.placeAt(p);this.checkboxList.push(t);this.own(n(t,"change",d.hitch(this,function(w){w?e.add(f,"selected"):e.remove(f,"selected");this._updateInfoString()})));
this.own(n(t.domNode,"click",d.hitch(this,function(w){w.stopPropagation()})));r.create("td",{innerHTML:x.stripHTML(this.nls[a.title]),"class":"name-td"},f);p=r.create("td",{"class":"setting-td"},f);p=r.create("img",{src:this.folderUrl+"images/setting.png",title:this.nls.toolSetting,"class":"setting-icon"},p);t=r.create("td",{"class":"img-td"},f);r.create("img",{src:this.folderUrl+a.imgDisplay},t);r.create("td",{innerHTML:x.stripHTML(this.nls[a.usage]),"class":"usage-td"},f);var q=r.create("tr",{"class":"setting",
"data-toolname":g},this.tbody);g=r.create("td",{colspan:5},q);a=new H({toolLabel:this.nls[a.title],rowData:a,nls:this.nls,appConfig:this.appConfig,livingAtlasConfigEnabled:b});y.set(a.domNode,"display","none");a.placeAt(g);q.toolSetting=a;q.show=!1;this.own(n(p,"click",d.hitch(this,function(w){c.stop(w);this._toggleToolSetting(q);h("tr.setting",this.tbody).forEach(function(u){u.show&&u!==q&&(l.wipeOut({node:u.toolSetting.domNode}).play(),u.show=!1)},this)})));this.own(n(f,"click",d.hitch(this,function(w){c.stop(w);
this._toggleSelected(f);h("tr.setting",this.tbody).forEach(function(u){u.show&&u.toolSetting.rowData.id!==f.rowData.id&&(l.wipeOut({node:u.toolSetting.domNode}).play(),u.show=!1)},this)})))},_toggleToolSetting:function(a){a.show?(l.wipeOut({node:a.toolSetting.domNode}).play(),a.show=!1):(l.wipeIn({node:a.toolSetting.domNode}).play(),a.show=!0)},_checkAll:function(a){a?(h("tr.tools-table-tr",this.tbody).forEach(function(b){e.add(b,"selected")}),m.forEach(this.checkboxList,function(b){b.setValue(!0)}),
this._updateInfoString()):(h("tr.tools-table-tr",this.tbody).forEach(d.hitch(this,function(b){e.remove(b,"selected")})),m.forEach(this.checkboxList,function(b){b.setValue(!1)}),A.set(this.infoText,"innerHTML",x.stripHTML(this.infoString.replace(this.infoRegex,0))))},_toggleCheckAll:function(){var a=!this.checkAllBtn.getValue();this.checkAllBtn.setValue(a);this._checkAll(a)},_toggleSelected:function(a){e.toggle(a,"selected");var b=this.getCheckboxById(a.rowData.id);b&&b.setValue(e.contains(a,"selected"));
this._updateInfoString()},_updateInfoString:function(){var a=h("tr.selected",this.tbody).length;A.set(this.infoText,"innerHTML",x.stripHTML(this.infoString.replace(this.infoRegex,a)));a===this.rowsData.length?this.checkAllBtn.setValue(!0):this.checkAllBtn.setValue(!1)},_setSelected:function(a,b){var g=C.findToolSetting(a.name);null!==g&&h("tr.tools-table-tr",this.tbody).some(d.hitch(this,function(f){if(f.rowData.dijitID===g.dijitID){var p=this.getCheckboxById(g.id);p&&p.setValue(b);!0===b?e.add(f,
"selected"):e.remove(f,"selected");(f=h("tr.setting[data-toolname\x3d"+a.name+"]",this.tbody)[0])&&(f=f.toolSetting)&&f.setConfig(a);return!0}}))},setConfig:function(a){this.config=a;m.forEach(this.config.analysisTools,d.hitch(this,function(b){this._setSelected(b,!0)}));this._updateInfoString()},getConfig:function(){var a={analysisTools:[]};m.forEach(this.checkboxList,d.hitch(this,function(b){if(!0===b.getValue()){var g=this.getRowById(b.get("rid")).name;null!==g?(b={name:g},(g=h("tr.setting[data-toolname\x3d"+
g+"]",this.tbody)[0].toolSetting)&&d.mixin(b,g.getConfig()),a.analysisTools.push(b)):console.warn("error find rowsData: "+b.get("title"))}}));return a},_initToolsData:function(){var a=z.getStandardPortalUrl(this.appConfig.portalUrl);a=!z.isOnline(a);this.rowsData=C.getAllSettings(a).sort(d.hitch(this,function(b,g){return(""+this.nls[b.title]).localeCompare(""+this.nls[g.title])}))},getRowById:function(a){var b;m.some(this.rowsData,d.hitch(this,function(g){if(g.id===a)return b=g,!0}));return b},getCheckboxById:function(a){var b;
m.some(this.checkboxList,d.hitch(this,function(g){if(g.rid===a)return b=g,!0}));return b}})});