// 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:{"url:widgets/CostAnalysis/asset-details.html":'\x3cdiv style\x3d"height: 100%; width: 100%"\x3e\r\n  \x3cdiv style\x3d"height: 100%; width: 100%" data-dojo-attach-point\x3d"assetDetailsParent"\x3e\r\n    \x3cdiv class\x3d"esriCTContentSection"\x3e\r\n      \x3cdiv class\x3d"esriCTAssetDetailsTitle"\x3e\r\n        ${nls.workBench.assetDetailsTitle}\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"esriCTNoAssetMessage" tabindex\x3d"0" role\x3d"presentation" aria-label\x3d"${nls.workBench.noAssetAddedMsg}" data-dojo-attach-point\x3d"noAssetDetails"\x3e\r\n        ${nls.workBench.noAssetAddedMsg}\r\n      \x3c/div\x3e\r\n      \x3cdiv data-dojo-attach-point\x3d"assetDetailsNode"\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"listNode"\x3e\x3c/div\x3e\r\n        \x3cdiv\x3e\r\n          \x3cdiv style\x3d"width: 100%; float: left;"\x3e\r\n            \x3cdiv class\x3d"esriCTTotalCostTitle" title\x3d"${nls.assetDetails.totalCostTitle}"\x3e${nls.assetDetails.totalCostTitle}\x3c/div\x3e\r\n            \x3cdiv style\x3d"height: 30px;" class\x3d"esriCTEditEquationIcon" data-dojo-attach-point\x3d"additionalCostBtn" tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.assetDetails.totalCostTitle}"\x3e\x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv data-dojo-attach-point\x3d"totalProjectCost"\x3e\r\n            \x3ctable class\x3d"esriCTTable" style\x3d"width: 100%;"\x3e\r\n              \x3ctbody\x3e\r\n                \x3ctr tabindex\x3d"0"\x3e\r\n                  \x3ctd class\x3d"esriCTBoldFont esriCTAssetDetailsTotalCostLabel" data-dojo-attach-point\x3d"totalCostLabel"\x3e${nls.projectOverview.totalCostLabel}\x3c/td\x3e\r\n                  \x3ctd class\x3d"esriCTBoldFont esriCTAssetDetailsTotalCost" data-dojo-attach-point\x3d"totalCost"\x3e\x3c/td\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/tbody\x3e\r\n            \x3c/table\x3e\r\n            \x3ctable class\x3d"esriCTTable" style\x3d"width: 100%;"\x3e\r\n              \x3ctbody data-dojo-attach-point\x3d"additionalCostTable"\x3e\r\n              \x3c/tbody\x3e\r\n            \x3c/table\x3e\r\n            \x3ctable class\x3d"esriCTTable" style\x3d"width: 100%;"\x3e\r\n              \x3ctbody\x3e\r\n                \x3ctr tabindex\x3d"0"\x3e\r\n                  \x3ctd class\x3d"esriCTBoldFont esriCTAssetDetailsGrossCostLabel" data-dojo-attach-point\x3d"grossCostLabel"\x3e${nls.projectOverview.grossCostLabel}\x3c/td\x3e\r\n                  \x3ctd class\x3d"esriCTBoldFont esriCTAssetDetailsGrossCost" data-dojo-attach-point\x3d"grossCost"\x3e\x3c/td\x3e\r\n                \x3c/tr\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd style\x3d"font-weight: normal; font-style: italic;" colspan\x3d"2" data-dojo-attach-point\x3d"roundingLabel"\x3e${nls.projectOverview.roundingLabel}\x3c/td\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/tbody\x3e\r\n            \x3c/table\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"esriCTPageFooter"\x3e\r\n      \x3cdiv class\x3d"jimu-btn esriCTEllipsis" data-dojo-attach-point\x3d"okButton" tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.common.back}"\x3e${nls.common.back}\x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv style\x3d"height: 100%; width: 100%" class\x3d"esriCTHidden" data-dojo-attach-point\x3d"costEquationEditorParent"\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/declare dojo/_base/html jimu/BaseWidget dojo/Evented dijit/_WidgetsInTemplateMixin dojo/text!./asset-details.html dojo/_base/lang dojo/dom-construct dojo/_base/array dojo/dom-class dojo/dom-attr dojo/string dojo/on dojo/query dijit/TooltipDialog dijit/popup esri/graphicsUtils ./advance-item-list ./cost-equation-editor dojo/keys dojo/_base/event dijit/focus jimu/utils".split(" "),function(G,H,I,J,K,L,h,e,B,l,f,E,m,r,M,F,N,O,P,q,x,A,C){return G([I,J,K],{templateString:L,baseClass:"jimu-widget-cost-analysis-asset-details",
_layerDetailsNode:{},_layerIndexes:[],_openGroups:{},postCreate:function(){this.inherited(arguments);this._layerDetailsNode={};this._openGroups={};this.listData=[];this._layerIndexes=[];B.forEach(this.config.layerSettings,h.hitch(this,function(a){if(a.editable&&this.map.getLayer(a.id)){this._openGroups[a.id]=[];this._layerDetailsNode[a.id]=e.create("div");var b={title:this.map.getLayer(a.id).name,content:this._layerDetailsNode[a.id],icon:"",actionIcon:"",isOpen:!1,isHidden:!0};this.listData.push(b);
this._layerIndexes.push(a.id)}}))},startup:function(){this.inherited(arguments);this._initItemList();this._initCostEquationEditor();this.own(m(document.body,"click",h.hitch(this,function(a){this.isPartOfPopup(a.target||a.srcElement)||this._closePopupDialog()})));this.own(m(this.okButton,"click",h.hitch(this,function(){this.emit("onOkButtonClicked")})));this.own(m(this.okButton,"keydown",h.hitch(this,function(a){if(a.keyCode===q.ENTER||a.keyCode===q.SPACE)x.stop(a),this.emit("onOkButtonClicked")})));
this.own(m(this.additionalCostBtn,"click",h.hitch(this,function(){this.emit("showAdditionalCost")})));this.own(m(this.additionalCostBtn,"keydown",h.hitch(this,function(a){if(a.keyCode===q.ENTER||a.keyCode===q.SPACE)x.stop(a),this.emit("showAdditionalCost")})))},reset:function(){for(var a in this._openGroups)this._openGroups[a]=[]},_initItemList:function(){this.itemList=new O({itemList:this.listData,showArrow:!0,togglePanels:!0,openMultiple:!0,setAutoHeight:!0,highlighter:!0,highlighterColor:this.config.selectedThemeColor,
widgetDomNode:this.widgetDomNode,nls:this.nls},e.create("div",{},this.listNode));this.own(m(this.itemList,"onActionButtonClicked",h.hitch(this,function(b){this.emit("actionClicked",b)})));this.own(m(this.itemList,"onTitleClicked",h.hitch(this,function(b){this.emit("titleClicked",b)})));this.own(m(this.itemList,"onLoad",h.hitch(this,function(){this.emit("onLoad")})));this.itemList.startup();var a=this._createTooltipDialogContent();this.assetDetailsDialog=new M({"class":this.baseClass,content:a,style:"width : 180px"})},
_createTooltipDialogContent:function(){var a=e.create("div",{},null);var b=e.create("div",{style:"height : 20px; margin: 0px"},a);b=e.create("div",{"class":"esriCTDialogIcon esriCTClose",title:this.nls.workBench.closeDialog,tabindex:"0",role:"button","aria-label":this.nls.workBench.closeDialog},b);this.own(m(b,"click",h.hitch(this,this._closePopupDialog)));this.own(m(b,"keydown",h.hitch(this,function(c){if(c.keyCode===q.ENTER||c.keyCode===q.SPACE||c.keyCode===q.ESCAPE)x.stop(c),this._closePopupDialog()})));
b=e.create("div",{"class":"esriCTRowContainer",title:this.nls.workBench.zoomToAsset,tabindex:"0",role:"button","aria-label":this.nls.workBench.zoomToAsset},a);var d=e.create("div",{"class":"esriCTRowContainer",title:this.nls.workBench.deleteAsset,tabindex:"0",role:"button","aria-label":this.nls.workBench.deleteAsset},a);e.create("div",{"class":"esriCTDialogIcon esriCTZoom"},b);e.create("div",{"class":"esriCTTooltipDialogLabel esriCTEllipsis",innerHTML:this.nls.workBench.zoomToAsset},b);this.own(m(b,
"click",h.hitch(this,function(c){x.stop(c);this._zoomToAsset();this._support508ToPopupDialog();A.focus(c.currentTarget)})));this.own(m(b,"keydown",h.hitch(this,function(c){if(c.keyCode===q.ENTER||c.keyCode===q.SPACE)x.stop(c),this._zoomToAsset(),this._support508ToPopupDialog(),A.focus(c.currentTarget);c.keyCode===q.ESCAPE&&(x.stop(c),this._closePopupDialog())})));e.create("div",{"class":"esriCTDialogIcon esriCTDelete"},d);e.create("div",{"class":"esriCTTooltipDialogLabel",innerHTML:this.nls.workBench.deleteAsset},
d);this.own(m(d,"click",h.hitch(this,this._deleteAsset)));this.own(m(d,"keydown",h.hitch(this,function(c){if(c.keyCode===q.ENTER||c.keyCode===q.SPACE)x.stop(c),this._deleteAsset();c.keyCode===q.ESCAPE&&(x.stop(c),this._closePopupDialog())})));return a},_zoomToAsset:function(){if(this.selectedRowInfo){var a=this.assetDetails[this.selectedRowInfo.layerId][this.selectedRowInfo.templateName][this.selectedRowInfo.region][this.selectedRowInfo.scenario];var b=this.layerInfosObj.getLayerInfoById(this.selectedRowInfo.layerId).layerObject.objectIdField;
a&&B.some(a,h.hitch(this,function(d){if(d.attributes[b].toString()===this.selectedRowInfo.objectId)return this.map.setExtent(N.graphicsExtent([d]).expand(1.5)),!0}))}},_deleteAsset:function(){if(this.selectedRowInfo){var a;var b=this.map.getLayer(this.selectedRowInfo.layerId);(a=this.assetDetails[this.selectedRowInfo.layerId][this.selectedRowInfo.templateName][this.selectedRowInfo.region][this.selectedRowInfo.scenario])&&B.some(a,h.hitch(this,function(d){if(d.attributes[b.objectIdField].toString()===
this.selectedRowInfo.objectId)return d._layer=b,b.applyEdits(null,null,[d]),!0}));this._closePopupDialog()}},_rowClick:function(a){a.stopPropagation();a.preventDefault();r(".esriCTRowSelected",this.assetDetailsNode).removeClass("esriCTRowSelected");l.add(a.currentTarget,"esriCTRowSelected");this.selectedRowInfo={};this.selectedRowInfo.templateName=f.get(a.currentTarget,"templateName");this.selectedRowInfo.region=f.get(a.currentTarget,"region");this.selectedRowInfo.scenario=f.get(a.currentTarget,"scenario");
this.selectedRowInfo.layerId=f.get(a.currentTarget,"layerId");this.selectedRowInfo.objectId=f.get(a.currentTarget,"objectId");this._openPopupDialog(this.assetDetailsDialog,a)},_createExpandCollapseButton:function(a,b,d,c){a=e.create("div",{"class":"esriCTToggleIcon",tabindex:"-1",role:"button","aria-label":c,"aria-expanded":"false"},a);-1===this._openGroups[d].indexOf(b)?l.add(a,"esriCTExpandIcon"):l.add(a,"esriCTCollapseIcon");f.set(a,"groupId",b);f.set(a,"layerId",d);this.own(m(a,"click",h.hitch(this,
function(g){this.expandCollapseBtnClicked(g)})));this.own(m(a,"keydown",h.hitch(this,function(g){if(g.keyCode===q.ENTER||g.keyCode===q.SPACE)x.stop(g),this.expandCollapseBtnClicked(g)})));return a},expandCollapseBtnClicked:function(a){var b=f.get(a.currentTarget,"groupId");var d=f.get(a.currentTarget,"layerId");var c=r("[tableGroupId \x3d "+b.replace(/"/g,'\\"')+"]",this.assetDetailsNode)[0];l.contains(a.currentTarget,"esriCTCollapseIcon")?(l.replace(a.currentTarget,"esriCTExpandIcon","esriCTCollapseIcon"),
l.add(c,"esriCTHidden"),this._openGroups[d].splice(this._openGroups[d].indexOf(b),1),this._TabIndexToAssetDetailsTableRows(a,"-1"),f.set(a.currentTarget,"aria-expanded","false")):(l.replace(a.currentTarget,"esriCTCollapseIcon","esriCTExpandIcon"),l.remove(c,"esriCTHidden"),this._openGroups[d].push(b),this._TabIndexToAssetDetailsTableRows(a,"0"),f.set(a.currentTarget,"aria-expanded","true"))},_createEditEquationButton:function(a,b,d){a=e.create("div",{"class":"esriCTEditEquationIcon",tabindex:"-1",
role:"button","aria-label":d+this.nls.common.edit+this.nls.workBench.costEquationTitle},a);f.set(a,"templateName",b.templateName);f.set(a,"region",b.regionName);f.set(a,"scenario",b.scenario);f.set(a,"layerId",b.layerId);f.set(a,"equation",b.equation);this.own(m(a,"click",h.hitch(this,function(c){this._editEquationBtnClicked(c)})));this.own(m(a,"keydown",h.hitch(this,function(c){if(c.keyCode===q.ENTER||c.keyCode===q.SPACE)x.stop(c),this._editEquationBtnClicked(c)})));return a},_editEquationBtnClicked:function(a){var b=
{};this.currentEditEquationBtn=a.currentTarget;l.add(a.currentTarget,"esriCTEditEquationBtnClicked");b.templateName=f.get(a.currentTarget,"templateName");b.region=f.get(a.currentTarget,"region");b.scenario=f.get(a.currentTarget,"scenario");b.layerId=f.get(a.currentTarget,"layerId");b.equation=f.get(a.currentTarget,"equation");l.add(this.assetDetailsParent,"esriCTHidden");l.remove(this.costEquationEditorParent,"esriCTHidden");this._costEquationEditor&&this._costEquationEditor.setGroupInfo(b)},_createAssetDetailsTable:function(a,
b,d,c){var g=0,n=0;var p=this.layerInfosObj.getLayerInfoById(c.layerId).layerObject.objectIdField;var u=e.create("table",{style:{width:"100%"},"class":"esriCTTable"},a);-1===this._openGroups[c.layerId].indexOf(b)&&l.add(u,"esriCTHidden");f.set(u,"tableGroupId",b);var v=e.create("tbody",{},u);if("point"!==d[0].geometry.type){var k=this.appUtils.getUnitsAbbreviation(d[0].geometry.type,this.config.generalSettings.measurementUnit);b="polygon"===d[0].geometry.type?this.nls.statisticsType.areaLabel:this.nls.statisticsType.lengthLabel}else k=
this.nls.workBench.units,b=this.nls.statisticsType.countLabel;var y=e.create("tr",{},v);e.create("td",{innerHTML:this.nls.workBench.objectIdColTitle},y);e.create("td",{innerHTML:b},y);e.create("td",{innerHTML:this.nls.workBench.costColTitle},y);B.forEach(d,h.hitch(this,function(w){var t=e.create("tr",{"class":"esriCTSelectableRow",tabindex:"-1",role:"button"},v);var z=w.featureDimension;f.set(t,"templateName",c.templateName);f.set(t,"region",c.regionName);f.set(t,"scenario",c.scenario);f.set(t,"layerId",
c.layerId);f.set(t,"objectId",w.attributes[p]);this.own(m(t,"click",h.hitch(this,this._rowClick)));this.own(m(t,"keydown",h.hitch(this,function(D){if(D.keyCode===q.ENTER||D.keyCode===q.SPACE)x.stop(D),this._rowClick(D)})));"point"!==d[0].geometry.type&&(z=this.appUtils.applyRounding(z));e.create("td",{innerHTML:w.attributes[p]},t);e.create("td",{innerHTML:z+" "+k},t);z=this.config.generalSettings.currency+" "+this.appUtils.applyRounding(w.individualCost);e.create("td",{innerHTML:z,"class":"esriCTAssetItemDetailsCostingValue"},
t);g+=w.individualCost;n+=w.featureDimension}));"point"!==d[0].geometry.type&&(n=this.appUtils.applyRounding(n));this._addAriaLableToRows(u);a=e.create("table",{style:{width:"100%"},"class":"esriCTTable"},a);a=e.create("tr",{"class":"esriCTGroupSummaryTotalRow",tabindex:"-1","aria-label":"Total "+b+" "+n+" "+k+" Total "+this.nls.workBench.costColTitle+" "+g},e.create("tbody",{},a));e.create("td",{"class":"esriCTGroupSummaryTotalTitle",innerHTML:"Total:"},a);e.create("td",{innerHTML:n+" "+k},a);g=
this.config.generalSettings.currency+" "+this.appUtils.applyRounding(g);e.create("td",{innerHTML:g,"class":"esriCTGroupSummaryTotalCost"},a)},showAssetDetails:function(a,b){var d=!1;this.assetDetails=a;for(var c in this._layerDetailsNode){var g=this._layerIndexes.indexOf(c);e.empty(this._layerDetailsNode[c]);this.itemList.hide(g);if(a.hasOwnProperty(c))for(var n in a[c])for(var p in a[c][n])for(var u in a[c][n][p]){var v=p;var k=u;var y=n+" ";var w=a[c][n][p][u];if(0<w.length){d={templateName:n,regionName:p,
scenario:u,layerId:c,equation:w[0].templateInfo.COSTEQUATION};"null"===v?v=this.nls.scenarioSelection.noneText:y+=E.substitute(this.nls.assetDetails.inGeography,{geography:v});"null"===k?k=this.nls.scenarioSelection.noneText:y+=E.substitute(this.nls.assetDetails.withScenario,{scenario:k});k=c+" - "+n+" - "+v+" - "+k;k=h.trim(k);var t=e.create("div",{"class":"esriCTGroupSummary"},this._layerDetailsNode[c]);var z=e.create("div",{"class":"esriCTGroupTitleParent"},t);v=E.substitute(this.nls.statisticsType.expandCollapseAriaLabel,
{displayTitle:y,featureCount:w.length});this._createExpandCollapseButton(z,k,c,v);e.create("div",{"class":"esriCTGroupTitle",innerHTML:y+"("+w.length+")"},z);this._createEditEquationButton(z,d,y);this._createAssetDetailsTable(t,k,w,d);this.itemList.show(g);d=!0}}}d?(l.add(this.noAssetDetails,"esriCTHidden"),f.set(this.noAssetDetails,"tabindex","-1"),this.emit("onAssetDeleted",!1)):(l.remove(this.noAssetDetails,"esriCTHidden"),f.set(this.noAssetDetails,"tabindex","0"),this.emit("onAssetDeleted",!0));
setTimeout(h.hitch(this,function(){b&&this.setFirstAndLastNode()}),500)},_openPopupDialog:function(a,b){"keydown"===b.type?F.open({popup:a,around:b.currentTarget}):F.open({popup:a,x:b.pageX,y:b.pageY});this._support508ToPopupDialog()},_closePopupDialog:function(){var a=r(".esriCTRowSelected",this.assetDetailsNode);F.close(this.assetDetailsDialog);a&&0<a.length&&(A.focus(a[0]),a.removeClass("esriCTRowSelected"))},_initCostEquationEditor:function(){this._costEquationEditor||(this._costEquationEditor=
new P({nls:this.nls,map:this.map,config:this.config,appUtils:this.appUtils,widgetDomNode:this.widgetDomNode},e.create("div",{},this.costEquationEditorParent)),this.own(m(this._costEquationEditor,"onOkButtonClicked",h.hitch(this,function(a){this.emit("groupCostEquationUpdated",a);l.add(this.costEquationEditorParent,"esriCTHidden");l.remove(this.assetDetailsParent,"esriCTHidden");this.setFirstAndLastNode();this._focusCurrentEquationEditorBtn()}))),this.own(m(this._costEquationEditor,"onCancelButtonClicked",
h.hitch(this,function(){l.add(this.costEquationEditorParent,"esriCTHidden");l.remove(this.assetDetailsParent,"esriCTHidden");this.setFirstAndLastNode();this._focusCurrentEquationEditorBtn()}))),this._costEquationEditor.startup())},isPartOfPopup:function(a){var b=this.assetDetailsDialog.domNode;return a===b||H.isDescendant(a,b)},grossCostUpdated:function(a,b,d){b=this.appUtils.roundProjectCostValue(this.config.generalSettings.roundCostType,b);b=this.config.generalSettings.currency+" "+b;f.set(this.grossCost,
"innerHTML",b);this._updateAdditionalCostTable(a,d);a=this.grossCostLabel.innerHTML.replace("*",this.nls.projectOverview.roundingLabel);f.set(this.grossCostLabel,"aria-label",a.replace("*",""))},totalCostUpdated:function(a){a=this.appUtils.roundProjectCostValue(this.config.generalSettings.roundCostType,a);a=this.config.generalSettings.currency+" "+a;f.set(this.totalCost,"innerHTML",a);a=this.totalCostLabel.innerHTML.replace("*",this.nls.projectOverview.roundingLabel);f.set(this.totalCostLabel,"aria-label",
a.replace("*",""))},_updateAdditionalCostTable:function(a,b){e.empty(this.additionalCostTable);if(this.config.projectCostSettings&&0<this.config.projectCostSettings.length||0<b.length){var d=e.create("th");f.set(d,"role","heading");d.appendChild(e.create("td",{innerHTML:this.nls.assetDetails.additionalCostLabel}));d.appendChild(e.create("td",{innerHTML:this.nls.assetDetails.additionalCostValue}));d.appendChild(e.create("td",{innerHTML:this.nls.assetDetails.additionalCostNetValue}));this.additionalCostTable.appendChild(d);
for(d=0;d<b.length;d++){var c=e.create("tr",{tabindex:"0"});var g=b[d];var n=parseFloat(g.value);switch(g.type){case "+":var p=a+=n;break;case "_":p=a-=n;break;case "*":p=a*=n;break;case "%":p=a+=a*n/100}p=this.appUtils.roundProjectCostValue(this.config.generalSettings.roundCostType,p);p=this.config.generalSettings.currency+" "+p;c.appendChild(e.create("td",{innerHTML:g.label}));c.appendChild(e.create("td",{innerHTML:g.value}));c.appendChild(e.create("td",{innerHTML:p,"class":"esriCTAssetItemDetailsNetValue"}));
f.set(c,"aria-label",this.nls.assetDetails.additionalCostLabel+" "+g.label+" "+this.nls.assetDetails.additionalCostValue+" "+g.value+" "+this.nls.assetDetails.additionalCostNetValue+" "+p);this.additionalCostTable.appendChild(c)}}},_focusCurrentEquationEditorBtn:function(){var a=r(".esriCTEditEquationBtnClicked",this.domNode);a&&0<a.length&&(A.focus(a[0]),l.remove(this.currentEditEquationBtn,"esriCTEditEquationBtnClicked"))},setFirstAndLastNode:function(a){var b,d,c,g,n,p,u;var v=0;l.contains(this.noAssetDetails,
"esriCTHidden")?(b=r(".esriCTItem",this.assetDetailsNode))&&0<b.length&&b.forEach(h.hitch(this,function(k){"none"!==k.style.display&&(v||(v=1,C.initFirstFocusNode(this.widgetDomNode,k.children[0]),A.focus(k.children[0])),d=r(".esriCTItemTitle",k)[0],c=r(".esriCTItemContent",k)[0],g=r(".esriCTToggleIcon",k),n=r(".esriCTEditEquationIcon",k),p=r(".esriCTSelectableRow",k),u=r(".esriCTGroupSummaryTotalRow",k),d&&c&&(l.contains(c,"esriCTItemContentActive")?(this.itemList._setTabIndexToNodes(g,"0"),this.itemList._setTabIndexToNodes(n,
"0"),this.itemList._setTabIndexToNodes(p,"0"),this.itemList._setTabIndexToNodes(u,"0")):(this.itemList._setTabIndexToNodes(g,"-1"),this.itemList._setTabIndexToNodes(n,"-1"),this.itemList._setTabIndexToNodes(p,"-1"),this.itemList._setTabIndexToNodes(u,"-1"))))})):(A.focus(this.noAssetDetails),C.initFirstFocusNode(this.widgetDomNode,this.noAssetDetails));C.initLastFocusNode(this.widgetDomNode,this.okButton);a&&!l.contains(this.costEquationEditorParent,"esriCTHidden")&&this._costEquationEditor._add508SupportCostEquationEditor()},
_support508ToPopupDialog:function(){var a=r(".esriCTDialogIcon",this.assetDetailsDialog.domNode);a&&0<a.length&&(C.initFirstFocusNode(a[0]),A.focus(a[0]),C.initLastFocusNode(a[2]))},_TabIndexToAssetDetailsTableRows:function(a,b){var d=r(".esriCTSelectableRow",a.currentTarget.parentNode.parentNode);a=r(".esriCTGroupSummaryTotalRow",a.currentTarget.parentNode.parentNode);d&&0<d.length&&B.forEach(d,h.hitch(this,function(c){f.set(c,"tabindex",b)}));a&&0<a.length&&B.forEach(a,h.hitch(this,function(c){f.set(c,
"tabindex",b)}))},_addAriaLableToRows:function(a){for(var b=a.rows[0].cells[1].innerHTML,d=1;d<a.rows.length;d++){for(var c=this.nls.workBench.objectIdColTitle,g=0;g<a.rows[d].cells.length;g++)0===g&&(c=c+" "+a.rows[d].cells[g].innerHTML),1===g&&(c=c+" "+b+" "+a.rows[d].cells[g].innerHTML),2===g&&(c=c+" "+this.nls.workBench.costColTitle+" "+a.rows[d].cells[g].innerHTML);f.set(a.rows[d],"aria-label",c)}}})});