// 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/project-summary.html":'\x3cdiv style\x3d"height: 100%; width: 100%"\x3e\r\n  \x3cdiv class\x3d"esriCTContentSection"\x3e\r\n    \x3cdiv class\x3d"esriCTCostEscalationTitle"\x3e\r\n      ${nls.costEscalation.costEscalationLabel}\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"esriCTCostEscalatioParent" data-dojo-attach-point\x3d"costEscalationTableNode"\x3e\x3c/div\x3e\r\n    \x3cdiv\x3e\r\n      \x3c!--Add/delete/reorder buttons--\x3e\r\n      \x3cdiv style\x3d"height: 30px;" class\x3d"esriCTStatisticsButtonParentDiv"\x3e\r\n        \x3cdiv class\x3d"esriCTAddStatisticsIcon esriCTStatisticsButtons" data-dojo-attach-point\x3d"btnAddNode" title\x3d"${nls.costEscalation.addCostEscalationText}" tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.costEscalation.addCostEscalationText}"\x3e\x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTDeleteStatisticsIconDisable esriCTStatisticsButtons" data-dojo-attach-point\x3d"btnCrossNode" title\x3d"${nls.costEscalation.deleteCostEscalationText}" tabindex\x3d"-1" role\x3d"button" aria-label\x3d"${nls.costEscalation.deleteCostEscalationText}"\x3e\x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTStatisticsUpIconDisable esriCTStatisticsButtons" data-dojo-attach-point\x3d"btnUpNode" title\x3d"${nls.costEscalation.moveCostEscalationUpText}" tabindex\x3d"-1" role\x3d"button" aria-label\x3d"${nls.costEscalation.moveCostEscalationUpText}"\x3e\x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTStatisticsDownIconDisable esriCTStatisticsButtons" data-dojo-attach-point\x3d"btnDownNode" title\x3d"${nls.costEscalation.moveCostEscalationDownText}" tabindex\x3d"-1" role\x3d"button" aria-label\x3d"${nls.costEscalation.moveCostEscalationDownText}"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3c!--Project Total and Gross Cost table--\x3e\r\n      \x3cdiv class\x3d"esriCTBoldFont" data-dojo-attach-point\x3d"totalProjectCost"\x3e\r\n        \x3ctable class\x3d"esriCTProjectCostTable" style\x3d"width: 100%;"\x3e\r\n          \x3ctbody\x3e\r\n            \x3ctr tabindex\x3d"0"\x3e\r\n              \x3ctd class\x3d"esriCTProjectSummaryTotalCostLabel" data-dojo-attach-point\x3d"totalCostLabel"\x3e${nls.projectOverview.totalCostLabel}\x3c/td\x3e\r\n              \x3ctd class\x3d"esriCTProjectSummaryTotalCost" data-dojo-attach-point\x3d"totalCostDiv"\x3e\x3c/td\x3e\r\n            \x3c/tr\x3e\r\n            \x3ctr tabindex\x3d"0"\x3e\r\n              \x3ctd class\x3d"esriCTProjectSummaryTotalGrossLabel" data-dojo-attach-point\x3d"grossCostLabel"\x3e${nls.projectOverview.grossCostLabel}\x3c/td\x3e\r\n              \x3ctd class\x3d"esriCTProjectSummaryTotalGross" data-dojo-attach-point\x3d"grossCostDiv"\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  \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.ok}"\x3e${nls.common.ok}\x3c/div\x3e\r\n    \x3cdiv class\x3d"jimu-btn esriCTEllipsis" data-dojo-attach-point\x3d"cancelButton" tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.common.cancel}"\x3e${nls.common.cancel}\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/declare jimu/BaseWidget dojo/Evented dijit/_WidgetsInTemplateMixin dojo/text!./project-summary.html dojo/_base/lang dojo/dom-attr dojo/on jimu/dijit/SimpleTable jimu/dijit/LoadingIndicator dojo/query dojo/dom-class dijit/form/ValidationTextBox dojo/dom-construct jimu/dijit/formSelect dijit/registry dojo/_base/array dojo/store/Memory dojo/_base/html dijit/focus esri/graphic dojo/keys dojo/_base/event jimu/utils dijit/focus".split(" "),function(D,E,F,G,H,d,l,h,I,J,n,g,B,y,K,v,k,L,
C,z,A,m,t,w,x){return D([E,F,G],{templateString:H,baseClass:"jimu-widget-cost-analysis-project-summary",_costFieldStore:null,totalCost:0,projectInfo:null,previouslyAddedEscalations:[],loadingProject:!1,postCreate:function(){this.inherited(arguments);this.totalCost=0;this.previouslyAddedEscalations=[];this._handleClickEvents();this._initLoadingIndicator()},_initLoadingIndicator:function(){this._loadingIndicator=new J({hidden:!0});this._loadingIndicator.placeAt(this.domNode.parentNode.parentNode.parentNode);
this._loadingIndicator.startup()},_handleClickEvents:function(){this.own(h(this.btnAddNode,"click",d.hitch(this,function(){g.contains(this.btnAddNode,"esriCTAddStatisticsIconDisable")||(this._addCostEscalationBtnClicked(),this._handleActionButtonVisibility())})));this.own(h(this.btnAddNode,"keydown",d.hitch(this,function(a){if(a.keyCode===m.ENTER||a.keyCode===m.SPACE)t.stop(a),g.contains(this.btnAddNode,"esriCTAddStatisticsIconDisable")||(this._addCostEscalationBtnClicked(),this._handleActionButtonVisibility())})));
this.own(h(this.btnCrossNode,"click",d.hitch(this,function(){g.contains(this.btnCrossNode,"esriCTDeleteStatisticsIconDisable")||this._deleteLayerRow()})));this.own(h(this.btnCrossNode,"keydown",d.hitch(this,function(a){if(a.keyCode===m.ENTER||a.keyCode===m.SPACE)t.stop(a),g.contains(this.btnCrossNode,"esriCTDeleteStatisticsIconDisable")||this._deleteLayerRow()})));this.own(h(this.btnUpNode,"click",d.hitch(this,this._upArrowClicked)));this.own(h(this.btnUpNode,"keydown",d.hitch(this,function(a){if(a.keyCode===
m.ENTER||a.keyCode===m.SPACE)t.stop(a),this._upArrowClicked()})));this.own(h(this.btnDownNode,"click",d.hitch(this,this._downArrowClicked)));this.own(h(this.btnDownNode,"keydown",d.hitch(this,function(a){if(a.keyCode===m.ENTER||a.keyCode===m.SPACE)t.stop(a),this._downArrowClicked()})));this.own(h(this.okButton,"click",d.hitch(this,function(){this._okButtonClicked()})));this.own(h(this.okButton,"keydown",d.hitch(this,function(a){if(a.keyCode===m.ENTER||a.keyCode===m.SPACE)t.stop(a),this._okButtonClicked()})));
this.own(h(this.cancelButton,"click",d.hitch(this,function(){this._cancelButtonClicked()})));this.own(h(this.cancelButton,"keydown",d.hitch(this,function(a){if(a.keyCode===m.ENTER||a.keyCode===m.SPACE)t.stop(a),this._cancelButtonClicked()})))},_okButtonClicked:function(){var a=!0;var b=this._costEscalationTable.getRows();k.forEach(b,d.hitch(this,function(c){c.costLabelTextBox.isValid()||(a=!1,z.focus(c.costLabelTextBox));c.costValueLabelTextBox.isValid()||(a=!1,z.focus(c.costValueLabelTextBox))}));
a?(this.calculateGrossCost(this.totalCost,!0),this.emit("onOkButtonClicked")):this.appUtils.showMessage(this.nls.costEscalation.invalidEntry)},_cancelButtonClicked:function(){this.emit("onCancelButtonClicked");this._loadingIndicator.show();this._costEscalationTable.clear();k.forEach(this.tableData,d.hitch(this,function(a){this._addCostEscalationLayerRow(a)}));this._updateGrossCost();this._loadingIndicator.hide()},_upArrowClicked:function(){if(!g.contains(this.btnUpNode,"esriCTStatisticsUpIconDisable")){var a;
var b=this._costEscalationTable.getRows();var c=this._costEscalationTable.getData();k.forEach(c,d.hitch(this,function(f,e){f.editable&&(a=b[e])}));this._costEscalationTable.onBeforeRowUp(a)&&(c=k.indexOf(b,a),0<c&&(c=b[c-1]))&&(C.place(a,c,"before"),this._costEscalationTable.updateUI(),this._costEscalationTable.emit("row-up",a),this._updateGrossCost())}},_downArrowClicked:function(){if(!g.contains(this.btnDownNode,"esriCTStatisticsDownIconDisable")){var a;var b=this._costEscalationTable.getRows();
var c=this._costEscalationTable.getData();k.forEach(c,d.hitch(this,function(f,e){f.editable&&(a=b[e])}));this._costEscalationTable.onBeforeRowDown(a)&&(c=k.indexOf(b,a),c<b.length-1&&(c=b[c+1]))&&(C.place(a,c,"after"),this._costEscalationTable.updateUI(),this._costEscalationTable.emit("row-down",a),this._updateGrossCost())}},startup:function(){this.inherited(arguments);this._init()},reset:function(a){this.projectInfo=a;this._costEscalationTable.clear();this.totalCost=0;this.previouslyAddedEscalations=
[];this.tableData=[]},_init:function(){this._createCostEscalationFieldTable();this._createCostTypeFieldStore()},cloneTableData:function(){this.tableData=[];var a=[],b={};this._costEscalationTable&&this._costEscalationTable.getRows().length&&(k.forEach(this._costEscalationTable.getRows(),d.hitch(this,function(c){b={};c.costLabelTextBox&&(b.label=c.costLabelTextBox.getValue());c.costTypeLabelDropdown&&(b.type=c.costTypeLabelDropdown.getValue());c.costValueLabelTextBox&&(b.costValue=c.costValueLabelTextBox.getValue());
a.push(b)})),this.tableData=d.clone(a));this._handleActionButtonVisibility()},loadAdditionalCost:function(a){var b={};0<a.length?(a.sort(d.hitch(this,this._sortFeatureArray)),k.forEach(a,d.hitch(this,function(c){b={};b.label=c.attributes[this.config.projectMultiplierFields.DESCRIPTION];b.type=c.attributes[this.config.projectMultiplierFields.TYPE];b.costValue=c.attributes[this.config.projectMultiplierFields.VALUE];if("+"===b.type||"*"===b.type||"_"===b.type||"%"===b.type)this.additionalCostTable&&
this.loadingProject&&this._storeAsPreviouslyAdded(c.attributes[this.additionalCostTable.objectIdField]),this._addCostEscalationLayerRow(b)}))):k.forEach(this.config.projectCostSettings,d.hitch(this,function(c){b={};b.label=c.label;b.type=c.type;b.costValue=c.value;"+"!==b.type&&"*"!==b.type&&"_"!==b.type&&"%"!==b.type||this._addCostEscalationLayerRow(b)}))},_sortFeatureArray:function(a,b){var c=this.config.projectMultiplierFields.COSTINDEX;return a.attributes[c]-b.attributes[c]},_createCostEscalationFieldTable:function(){this._costEscalationTable=
new I({fields:[{name:"editable",title:this.nls.common.label,type:"checkbox",editable:!1,width:"40%"},{name:"field",title:this.nls.common.type,type:"empty",editable:!1,width:"30%"},{name:"field",title:this.nls.costEscalation.valueHeader,type:"empty",editable:!0,width:"40%"}],selectable:!1,autoHeight:!0});this._costEscalationTable.placeAt(this.costEscalationTableNode);this._costEscalationTable.startup()},_handleCheckBoxClick:function(a){var b=n(".simple-table-title .jimu-checkbox",this.domNode)[0];
a=n(".jimu-checkbox",a)[0];h(v.byNode(b),"change",d.hitch(this,function(){this._handleActionButtonVisibility()}));h(v.byNode(a),"change",d.hitch(this,function(){this._handleActionButtonVisibility()}))},_handleActionButtonVisibility:function(){var a=!0,b=0;var c=this._costEscalationTable.getRows();var f=n(".simple-table-title .jimu-checkbox",this.domNode)[0];f=v.byNode(f);k.forEach(c,d.hitch(this,function(e){""===d.trim(e.costLabelTextBox.value)&&(a=!1);if(isNaN(e.costValueLabelTextBox.value)||""===
d.trim(e.costValueLabelTextBox.value+"")||"0"===e.costValueLabelTextBox.value||0===e.costValueLabelTextBox.value)a=!1;e=n(".jimu-checkbox",e)[0];v.byNode(e).checked&&b++}));0===b?(g.replace(this.btnCrossNode,"esriCTDeleteStatisticsIconDisable","esriCTDeleteStatisticsIcon"),l.set(this.btnCrossNode,"tabindex","-1")):(g.replace(this.btnCrossNode,"esriCTDeleteStatisticsIcon","esriCTDeleteStatisticsIconDisable"),l.set(this.btnCrossNode,"tabindex","0"));a||0===c.length?(g.replace(this.btnAddNode,"esriCTAddStatisticsIcon",
"esriCTAddStatisticsIconDisable"),l.set(this.btnAddNode,"tabindex","0")):(g.replace(this.btnAddNode,"esriCTAddStatisticsIconDisable","esriCTAddStatisticsIcon"),l.set(this.btnAddNode,"tabindex","-1"));a&&1===b&&1<c.length?(g.replace(this.btnUpNode,"esriCTStatisticsUpIcon","esriCTStatisticsUpIconDisable"),g.replace(this.btnDownNode,"esriCTStatisticsDownIcon","esriCTStatisticsDownIconDisable"),l.set(this.btnUpNode,"tabindex","0"),l.set(this.btnDownNode,"tabindex","0")):(g.replace(this.btnUpNode,"esriCTStatisticsUpIconDisable",
"esriCTStatisticsUpIcon"),g.replace(this.btnDownNode,"esriCTStatisticsDownIconDisable","esriCTStatisticsDownIcon"),l.set(this.btnUpNode,"tabindex","-1"),l.set(this.btnDownNode,"tabindex","-1"));0===c.length?(f.set("status",!1),g.add(f.domNode,"jimu-state-disabled"),l.set(f.domNode,"tabindex","-1"),x.focus(this.btnAddNode),w.initFirstFocusNode(this.widgetDomNode,this.btnAddNode)):(f.set("status",!0),g.remove(f.domNode,"jimu-state-disabled"),l.set(f.domNode,"tabindex","0"),w.initFirstFocusNode(this.widgetDomNode,
f.domNode))},_addCostEscalationBtnClicked:function(){this._addCostEscalationLayerRow();if(this.widgetDomNode){var a=this._costEscalationTable.getRows();if(0<=a.length){var b=a[a.length-1];a=n(".jimu-checkbox",b)[0];x.focus(a);this.textBoxKeyDownEvent&&this.textBoxKeyDownEvent[0].remove();this.textBoxKeyDownEvent=this.own(h(b.costValueLabelTextBox,"keydown",d.hitch(this,function(c){setTimeout(d.hitch(this,function(){c.keyCode===m.TAB&&c.shiftKey||b.costValueLabelTextBox.isValid()&&c.keyCode===m.TAB&&
(g.contains(this.btnAddNode,"esriCTAddStatisticsIconDisable")||x.focus(this.btnAddNode))}),100)})))}}},_addCostEscalationLayerRow:function(a){var b=this._costEscalationTable.addRow({});var c=n(".simple-table-cell",b.tr);this._handleCheckBoxClick(b.tr);c&&(b=b.tr,this._addCostLabelTextBox(c[0],b,a),this._addCostTypeLabelDropdown(c[1],b,a),this._addCostValueLabelTextBox(c[2],b,a))},_addCostLabelTextBox:function(a,b,c){a=y.create("div",{"class":"esriCTTextBoxContainer"},a);b.costLabelTextBox=new B({"class":"esriCTCostLabelTextbox esriCTAddLayerTableNode",
"aria-label":this.nls.common.label},a);b.costLabelTextBox.startup();c&&c.label&&b.costLabelTextBox.set("value",c.label);b.costLabelTextBox.validator=d.hitch(this,this._validateCostEscalationLabelFields);this.own(h(b.costLabelTextBox,"change",d.hitch(this,function(){this._handleActionButtonVisibility()})))},_validateCostEscalationLabelFields:function(a){return""===d.trim(a)?!1:!0},_addCostTypeLabelDropdown:function(a,b,c){a=y.create("div",{"class":"esriCTCostTypeDropDownContainer esriCTAddLayerTableNode"},
a);b.costTypeLabelDropdown=new K({name:"layerSelect",store:this._costFieldStore,labelAttr:"name","class":"esriCTCostTypeDropdown","aria-label":this.nls.common.type},a);c&&c.type&&(c=b.costTypeLabelDropdown.store.get(c.type),b.costTypeLabelDropdown.setValue(c.value));this.own(h(b.costTypeLabelDropdown,"change",d.hitch(this,this._updateGrossCost)));b.costTypeLabelDropdown.startup()},_addCostValueLabelTextBox:function(a,b,c){a=y.create("div",{"class":"esriCTTextBoxContainer esriCTAddLayerTableNode"},
a);b.costValueLabelTextBox=new B({"class":"esriCTCostLabelTextbox",trim:!0,"aria-label":this.nls.costEscalation.valueHeader},a);b.costValueLabelTextBox.startup();c&&c.costValue&&b.costValueLabelTextBox.set("value",c.costValue);b.costValueLabelTextBox.validator=d.hitch(this,this._validateCostEscalationValueFields);this.own(h(b.costValueLabelTextBox,"change",d.hitch(this,function(){this._updateGrossCost();this._handleActionButtonVisibility()})))},_validateCostEscalationValueFields:function(a){a=Number(a);
return""===a||isNaN(a)||"0"===a||0===a?!1:!0},_getCostEscalationArray:function(){var a=this._costEscalationTable.getRows();var b=[];k.forEach(a,d.hitch(this,function(c){b.push({label:c.costLabelTextBox.getValue(),type:c.costTypeLabelDropdown.getValue(),value:c.costValueLabelTextBox.getValue()})}));return b},addConfiguredAdditionalCostArray:function(){var a=[];var b=[];var c=[];var f=this.totalCost;k.forEach(this.config.projectCostSettings,d.hitch(this,function(e){a.push({label:e.label,type:e.type,
value:e.value})}));k.forEach(a,d.hitch(this,function(e,p){var q={};var r=parseFloat(e.value);this.projectInfo&&this.projectInfo.projectId&&this.config.projectMultiplierFields&&(q[this.config.projectMultiplierFields.DESCRIPTION]=e.label,q[this.config.projectMultiplierFields.TYPE]=e.type,q[this.config.projectMultiplierFields.VALUE]=r,q[this.config.projectMultiplierFields.COSTINDEX]=p+1,q[this.config.projectMultiplierFields.PROJECTGUID]=this.projectInfo.projectId,b.push(new A(null,null,q)));f=this._calculateGrossAdditionalCost(e.type,
r,f);c.push({label:e.label,type:e.type,value:r})}));this.loadAdditionalCost(b);setTimeout(d.hitch(this,function(){this.calculateGrossCost(this.totalCost,!0)}),500)},_deleteLayerRow:function(){var a=this._costEscalationTable.getRows(),b=this._costEscalationTable.getData();k.forEach(b,d.hitch(this,function(c,f){c.editable&&(this._costEscalationTable.deleteRow(a[f]),this._updateGrossCost())}));0===this._costEscalationTable.getRows().length&&(b=n("th .checkbox",this.costEscalationTableNode)[0],g.contains(b,
"checked")&&g.remove(b,"checked"));this._handleActionButtonVisibility()},_createCostTypeFieldStore:function(){var a=[];a.push({name:"+",value:"+"});a.push({name:"*",value:"*"});a.push({name:"-",value:"_"});a.push({name:"%",value:"%"});this._costFieldStore=new L({idProperty:"value",data:a})},_calculateGrossAdditionalCost:function(a,b,c){switch(a){case "+":c+=b;break;case "_":c-=b;break;case "*":c*=b;break;case "%":c+=c*b/100}return c},_updateGrossCost:function(){if(!this.loadingProject){var a=this._getCostEscalationArray();
var b=this.totalCost,c=[],f=[];k.forEach(a,d.hitch(this,function(p,q){var r=parseFloat(p.value),u={};r&&(this.projectInfo&&this.projectInfo.projectId&&this.config.projectMultiplierFields&&(u[this.config.projectMultiplierFields.DESCRIPTION]=p.label,u[this.config.projectMultiplierFields.TYPE]=p.type,u[this.config.projectMultiplierFields.VALUE]=r,u[this.config.projectMultiplierFields.COSTINDEX]=q+1,u[this.config.projectMultiplierFields.PROJECTGUID]=this.projectInfo.projectId,c.push(new A(null,null,u))),
b=this._calculateGrossAdditionalCost(p.type,r,b),f.push({label:p.label,type:p.type,value:r}))}));a=this.appUtils.roundProjectCostValue(this.config.generalSettings.roundCostType,this.totalCost);a=this.config.generalSettings.currency+" "+a;l.set(this.totalCostDiv,"innerHTML",a);a=this.appUtils.roundProjectCostValue(this.config.generalSettings.roundCostType,b);a=this.config.generalSettings.currency+" "+a;l.set(this.grossCostDiv,"innerHTML",a);a=this.totalCostLabel.innerHTML.replace("*",this.nls.projectOverview.roundingLabel);
var e=this.grossCostLabel.innerHTML.replace("*",this.nls.projectOverview.roundingLabel);l.set(this.totalCostLabel,"aria-label",a.replace("*",""));l.set(this.grossCostLabel,"aria-label",e.replace("*",""));return{grossCost:b,features:c,additionalCostInfo:f}}},calculateGrossCost:function(a,b){this.totalCost=a;this.loadingProject||(a=this._updateGrossCost(),this.emit("grossCostUpdated",this.totalCost,a.grossCost,a.additionalCostInfo),b&&this._updateCostEscalationTable(a.features))},_updateCostEscalationTable:function(a){this.additionalCostTable&&
(0<a.length||0<this.previouslyAddedEscalations.length)&&(this._loadingIndicator.show(),this.additionalCostTable.applyEdits(a,null,this.previouslyAddedEscalations,d.hitch(this,function(b){var c=!1;this.previouslyAddedEscalations=[];b&&0<b.length&&(k.forEach(b,d.hitch(this,function(f){f.success?this._storeAsPreviouslyAdded(f.objectId):c=!0})),c&&this.appUtils.showMessage(this.nls.costEscalation.errorInSavingCostEscalation));this._loadingIndicator.hide()}),d.hitch(this,function(){this._loadingIndicator.hide();
this.appUtils.showMessage(this.nls.costEscalation.errorInSavingCostEscalation)})))},_storeAsPreviouslyAdded:function(a){var b={};b[this.additionalCostTable.objectIdField]=a;a=new A(null,null,b);this.previouslyAddedEscalations.push(a)},setFirstAndLastNode:function(){if(this._costEscalationTable.getRows().length){var a=n(".simple-table-title .jimu-checkbox",this.domNode)[0];a=v.byNode(a);w.initFirstFocusNode(this.widgetDomNode,a.domNode);z.focus(a.domNode)}else x.focus(this.btnAddNode),w.initFirstFocusNode(this.widgetDomNode,
this.btnAddNode);w.initLastFocusNode(this.widgetDomNode,this.cancelButton);this._addAriaLabelToTdChkBoxes()},_addAriaLabelToTdChkBoxes:function(){var a=n("td .checkbox",this.costEscalationTableNode);a&&0<a.length&&k.forEach(a,d.hitch(this,function(b){l.set(b,"aria-label",this.nls.common.label)}))}})});