/*
 COPYRIGHT 2009 ESRI

 TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
 Unpublished material - all rights reserved under the
 Copyright Laws of the United States and applicable international
 laws, treaties, and conventions.

 For additional information, contact:
 Environmental Systems Research Institute, Inc.
 Attn: Contracts and Legal Services Department
 380 New York Street
 Redlands, California, 92373
 USA

 email: contracts@esri.com
 */
//>>built
require({cache:{"url:esri/dijit/templates/AttributeInspector.html":"<div class=\"esriAttributeInspector\">\r\n    <div class=\"atiLayerName\" dojoAttachPoint=\"layerName\"></div>\r\n    <div class=\"atiAttributes\" dojoAttachPoint=\"attributeTable\"></div>\r\n    <div dojoAttachPoint=\"attachmentEditor\"></div>\r\n    <div class=\"atiEditorTrackingInfo\" dojoAttachPoint=\"editorTrackingInfoDiv\"></div>\r\n    <div class=\"atiButtons\" dojoAttachPoint=\"editButtons\">\r\n        <button  dojoType=\"dijit.form.Button\" class=\"atiButton atiDeleteButton\"  dojoAttachPoint=\"deleteBtn\" dojoAttachEvent=\"onClick: onDeleteBtn\" showLabel=\"true\" type=\"button\">${NLS_deleteFeature}</button>\r\n        <div class=\"atiNavButtons\" dojoAttachPoint=\"navButtons\">\r\n            <div class=\"atiNavMessage\" dojoAttachPoint=\"navMessage\"></div>\r\n            <button  dojoType=\"dijit.form.Button\" iconClass=\"atiButton atiFirstIcon\" dojoAttachPoint=\"firstFeatureButton\" dojoAttachEvent=\"onClick: onFirstFeature\" showLabel=\"false\" type=\"button\">${NLS_first}</button>\r\n            <button  dojoType=\"dijit.form.Button\" iconClass=\"atiButton atiPrevIcon\" dojoAttachPoint=\"prevFeatureButton\" dojoAttachEvent=\"onClick: onPreviousFeature\" showLabel=\"false\" type=\"button\">${NLS_previous}</button>\r\n            <button  dojoType=\"dijit.form.Button\" iconClass=\"atiButton atiNextIcon\" dojoAttachPoint=\"nextFeatureButton\" dojoAttachEvent=\"onClick: onNextFeature\" showLabel=\"false\" type=\"button\">${NLS_next}</button>\r\n            <button  dojoType=\"dijit.form.Button\" iconClass=\"atiButton atiLastIcon\" dojoAttachPoint=\"lastFeatureButton\" dojoAttachEvent=\"onClick: onLastFeature\" showLabel=\"false\" type=\"button\">${NLS_last}</button>\r\n        </div>\r\n    </div>\r\n</div>\r\n"}});define("esri/dijit/AttributeInspector",["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/sniff","dojo/_base/kernel","dojo/has","dojo/dom-style","dojo/dom-construct","esri/kernel","esri/lang","esri/domUtils","esri/layers/InheritedDomain","esri/layers/FeatureLayer","dojo/i18n!esri/nls/jsapi","dojo/fx","dojox/gfx","dijit/_Widget","dijit/_Templated","dijit/Editor","dijit/_editor/plugins/LinkDialog","dijit/_editor/plugins/TextColor","esri/dijit/_EventedWidget","esri/dijit/editing/AttachmentEditor","esri/dijit/editing/Util","esri/tasks/query","dijit/form/DateTextBox","dijit/form/TextBox","dijit/form/NumberTextBox","dijit/form/FilteringSelect","dijit/form/NumberSpinner","dijit/form/Button","dijit/form/SimpleTextarea","dijit/Tooltip","dojo/data/ItemFileReadStore","dojox/date/islamic","dojox/date/islamic/Date","dojox/date/islamic/locale","dojo/text!esri/dijit/templates/AttributeInspector.html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,fx,gfx,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22,_23,_24,_25){var ATI=_1([_15,_10,_11],{declaredClass:"esri.dijit.AttributeInspector",widgetsInTemplate:true,templateString:_25,_navMessage:"( ${idx} ${of} ${numFeatures} )",onUpdate:function(){},onDelete:function(){},onAttributeChange:function(){},onNext:function(){},onReset:function(){},onCancel:function(){},_eventMap:{"update":true,"delete":["feature"],"attribute-change":["feature","fieldName","fieldValue"],"next":["feature"],"reset":true,"cancel":true},constructor:function(_26,_27){_2.mixin(this,_f.widgets.attributeInspector);_26=_26||{};if(!_26.featureLayer&&!_26.layerInfos){console.error("esri.AttributeInspector: please provide correct parameter in the constructor");}this._datePackage=this._getDatePackage(_26);this._layerInfos=_26.layerInfos||[{featureLayer:_26.featureLayer,options:_26.options||[]}];this._aiConnects=[];this._selection=[];this._toolTips=[];this._numFeatures=0;this._featureIdx=0;this._currentLInfo=null;this._currentFeature=null;this._hideNavButtons=_26.hideNavButtons||false;},postCreate:function(){if(_3.every(this._layerInfos,function(_28){return _28.featureLayer.loaded;})){this._initLayerInfos();this._createAttachmentEditor();this.onFirstFeature();}else{var _29=this._layerInfos.length;_3.forEach(this._layerInfos,function(_2a){var _2b=_2a.featureLayer;if(_2b.loaded){_29--;}else{var _2c=_4.connect(_2b,"onLoad",this,function(_2d){_4.disconnect(_2c);_2c=null;_29--;if(!_29){this._initLayerInfos();this._createAttachmentEditor();this.onFirstFeature();}});}},this);}},destroy:function(){this._destroyAttributeTable();_3.forEach(this._aiConnects,_4.disconnect);delete this._aiConnects;if(this._attachmentEditor){this._attachmentEditor.destroy();delete this._attachmentEditor;}delete this._layerInfos;this._selection=this._currentFeature=this._currentLInfo=this._attributes=this._layerInfos=null;this.inherited(arguments);},refresh:function(){this._updateSelection();},first:function(){this.onFirstFeature();},last:function(){this.onLastFeature();},next:function(){this.onNextFeature();},previous:function(){this.onPreviousFeature();},showFeature:function(_2e,_2f){if(_2f){this._createOnlyFirstTime=true;}this._updateSelection([_2e],_2f);this._updateUI();},onLayerSelectionChange:function(_30,_31,_32){this._createOnlyFirstTime=false;this._featureIdx=(_32===_e.SELECTION_NEW)?0:this._featureIdx;this._updateSelection();this._updateUI();},onLayerSelectionClear:function(){if(!this._selection||this._selection.length<=0){return;}this._numFeatures=0;this._featureIdx=0;this._selection=[];this._currentFeature=null;this._currentLInfo=null;this._updateUI();},onLayerEditsComplete:function(_33,_34,_35,_36){_36=_36||[];if(_36.length){var _37=this._selection;var _38=_33.featureLayer.objectIdField;_3.forEach(_36,_2.hitch(this,function(del){_3.some(_37,_2.hitch(this,function(_39,idx){if(_39.attributes[_38]!==del.objectId){return false;}this._selection.splice(idx,1);return true;}));}));}_34=_34||[];if(_34.length){this._selection=_17.findFeatures(_34,_33.featureLayer);this._featureIdx=0;}var _3a=this._numFeatures=this._selection?this._selection.length:0;if(_34.length){var _3b=_3a?this._selection[this._featureIdx]:null;if(_3b){var _3c=_3b.getLayer();var _3d=_3c.getEditCapabilities();if(!(_3d.canCreate&&!_3d.canUpdate)){this._showFeature(_3b);}}}this._updateUI();},onFieldValueChange:function(_3e,_3f){_3f=(typeof _3f==="undefined")?null:_3f;var _40=_3e.field;if(_40.type==="esriFieldTypeDate"){_3f=(_3f&&_3f.getTime)?_3f.getTime():(_3f&&_3f.toGregorian?_3f.toGregorian().getTime():_3f);}if(this._currentFeature.attributes[_40.name]===_3f){return;}var _41=this._currentLInfo;var _42=this._currentFeature;var _43=_40.name;if(_43===_41.typeIdField){var _44=this._findFirst(_41.types,"id",_3f);var _45=_41.fieldInfos;_3.forEach(_45,function(_46){_40=_46.field;if(!_40||_40.name===_41.typeIdField){return;}var _47=_46.dijit;var _48=this._setFieldDomain(_47,_44,_40);if(_48&&_47){this._setValue(_47,_42.attributes[_40.name]+"");if(_47.isValid()===false){this._setValue(_47,null);}}},this);}this.onAttributeChange(_42,_43,_3f);},onDeleteBtn:function(evt){this._deleteFeature();},onNextFeature:function(evt){this._onNextFeature(1);},onPreviousFeature:function(evt){this._onNextFeature(-1);},onFirstFeature:function(evt){this._onNextFeature(this._featureIdx*-1);},onLastFeature:function(evt){this._onNextFeature((this._numFeatures-1)-this._featureIdx);},_initLayerInfos:function(){var _49=this._layerInfos;this._editorTrackingInfos={};_3.forEach(_49,this._initLayerInfo,this);},_initLayerInfo:function(_4a){var _4b=_4a.featureLayer,_4c,_4d;this._userIds={};var _4e=_4b.id;if(_4b.credential){this._userIds[_4e]=_4b.credential.userId;}if(_4a.userId){this._userIds[_4e]=_4a.userId;}this._connect(_4b,"onSelectionComplete",_2.hitch(this,"onLayerSelectionChange",_4a));this._connect(_4b,"onSelectionClear",_2.hitch(this,"onLayerSelectionClear",_4a));this._connect(_4b,"onEditsComplete",_2.hitch(this,"onLayerEditsComplete",_4a));_4a.showAttachments=_4b.hasAttachments?(_b.isDefined(_4a.showAttachments)?_4a.showAttachments:true):false;_4a.hideFields=_4a.hideFields||[];_4a.htmlFields=_4a.htmlFields||[];_4a.isEditable=_4b.isEditable()?(_b.isDefined(_4a.isEditable)?_4a.isEditable:true):false;_4a.typeIdField=_4b.typeIdField;_4a.layerId=_4b.id;_4a.types=_4b.types;if(_4b.globalIdField){_4c=this._findFirst(_4a.fieldInfos,"fieldName",_4b.globalIdField);if(!_4c&&!_4a.showGlobalID){_4a.hideFields.push(_4b.globalIdField);}}_4d=this._findFirst(_4a.fieldInfos,"fieldName",_4b.objectIdField);if(!_4d&&!_4a.showObjectID){_4a.hideFields.push(_4b.objectIdField);}var _4f=this._getFields(_4a.featureLayer);if(!_4f){return;}var _50=_4a.fieldInfos||[];_50=_3.map(_50,function(_51){return _2.mixin({},_51);});if(!_50.length){_4f=_3.filter(_4f,_2.hitch(this,function(_52){return !this._isInFields(_52.name,_4a.hideFields);}));_4a.fieldInfos=_3.map(_4f,_2.hitch(this,function(_53){var _54=(this._isInFields(_53.name,_4a.htmlFields)?ATI.STRING_FIELD_OPTION_RICHTEXT:ATI.STRING_FIELD_OPTION_TEXTBOX);return {"fieldName":_53.name,"field":_53,"stringFieldOption":_54};}));}else{_4a.fieldInfos=_3.filter(_3.map(_50,_2.hitch(this,function(_55){var _56=_55.stringFieldOption||(this._isInFields(_55.fieldName,_4a.htmlFields)?ATI.STRING_FIELD_OPTION_RICHTEXT:ATI.STRING_FIELD_OPTION_TEXTBOX);return _2.mixin(_55,{"field":this._findFirst(_4f,"name",_55.fieldName),"stringFieldOption":_56});})),"return item.field;");}if(_4a.showGlobalID&&!_4c){_50.push(this._findFirst(_4f,"name",_4b.globalIdField));}if(_4a.showObjectID&&!_4d){_50.push(this._findFirst(_4f,"name",_4b.objectIdField));}var _57=[];if(_4b.editFieldsInfo){if(_4b.editFieldsInfo.creatorField){_57.push(_4b.editFieldsInfo.creatorField);}if(_4b.editFieldsInfo.creationDateField){_57.push(_4b.editFieldsInfo.creationDateField);}if(_4b.editFieldsInfo.editorField){_57.push(_4b.editFieldsInfo.editorField);}if(_4b.editFieldsInfo.editDateField){_57.push(_4b.editFieldsInfo.editDateField);}}this._editorTrackingInfos[_4b.id]=_57;},_createAttachmentEditor:function(){this._attachmentEditor=null;var _58=this._layerInfos;var _59=_3.filter(_58,function(_5a){return _5a.showAttachments;});if(!_59||!_59.length){return;}this._attachmentEditor=new _16({"class":"atiAttachmentEditor"},this.attachmentEditor);this._attachmentEditor.startup();},_setCurrentLInfo:function(_5b){var _5c=this._currentLInfo?this._currentLInfo.featureLayer:null;var _5d=_5b.featureLayer;if(_5c&&_5c.id===_5d.id&&!_5c.ownershipBasedAccessControlForFeatures){var _5e=_5d.getEditCapabilities();if(!(_5e.canCreate&&!_5e.canUpdate)){return;}}this._currentLInfo=_5b;this._createTable();},_updateSelection:function(_5f,_60){this._selection=_5f||[];var _61=this._layerInfos;_3.forEach(_61,this._getSelection,this);var _62=this._numFeatures=this._selection.length;var _63=_62?this._selection[this._featureIdx]:null;this._showFeature(_63,_60);},_getSelection:function(_64){var _65=_64.featureLayer.getSelectedFeatures();this._selection=this._selection.concat(_65);},_updateUI:function(){var _66=this._numFeatures;var _67=this._currentLInfo;this.layerName.innerHTML=(!_67||_66===0)?this.NLS_noFeaturesSelected:(_67.featureLayer?_67.featureLayer.name:"");_8.set(this.attributeTable,"display",_66?"":"none");_8.set(this.editButtons,"display",_66?"":"none");_8.set(this.navButtons,"display",(!this._hideNavButtons&&(_66>1)?"":"none"));this.navMessage.innerHTML=_b.substitute({idx:this._featureIdx+1,of:this.NLS_of,numFeatures:this._numFeatures},this._navMessage);if(this._attachmentEditor){_8.set(this._attachmentEditor.domNode,"display",((_67&&_67.showAttachments)&&_66)?"":"none");}var _68=((_67&&_67.showDeleteButton===false)||!this._canDelete)?false:true;_8.set(this.deleteBtn.domNode,"display",_68?"":"none");if(this.domNode.parentNode&&this.domNode.parentNode.scrollTop>0){this.domNode.parentNode.scrollTop=0;}},_onNextFeature:function(_69){this._featureIdx+=_69;if(this._featureIdx<0){this._featureIdx=this._numFeatures-1;}else{if(this._featureIdx>=this._numFeatures){this._featureIdx=0;}}var _6a=this._selection.length?this._selection[this._featureIdx]:null;this._showFeature(_6a);this._updateUI();this.onNext(_6a);},_deleteFeature:function(){this.onDelete(this._currentFeature);},_showFeature:function(_6b,_6c){if(!_6b){return;}this._currentFeature=_6b;var _6d=_6c?_6c:_6b.getLayer();var _6e=_6d.getEditCapabilities({feature:_6b,userId:this._userIds[_6d.id]});this._canUpdate=_6e.canUpdate;this._canDelete=_6e.canDelete;var _6f=this._getLInfoFromFeatureLayer(_6d);if(!_6f){return;}this._setCurrentLInfo(_6f);var _70=_6b.attributes;var _71=this._findFirst(_6f.types,"id",_70[_6f.typeIdField]);var _72,_73=null;var _74=_6f.fieldInfos;_3.forEach(_74,function(_75){_73=_75.field;_72=_75.dijit||null;if(!_72){return;}var _76=this._setFieldDomain(_72,_71,_73);var _77=_70[_73.name];_77=(_77&&_76&&_76.codedValues&&_76.codedValues.length)?(_76.codedValues[_77]?_76.codedValues[_77].name:_77):_77;if(!_b.isDefined(_77)){_77="";}if(_72.declaredClass==="dijit.form.DateTextBox"){_77=(_77==="")?null:new Date(_77);}else{if(_72.declaredClass==="dijit.form.FilteringSelect"){_72._lastValueReported=null;_77=_70[_73.name]+"";}}try{this._setValue(_72,_77);if(_72.declaredClass==="dijit.form.FilteringSelect"&&_72.isValid()===false){this._setValue(_72,null);}}catch(error){_72.set("displayedValue",this.NLS_errorInvalid,false);}},this);if(this._attachmentEditor&&_6f.showAttachments){this._attachmentEditor.showAttachments(this._currentFeature);}var _78=_6d.getEditSummary(_6b);if(_78){this.editorTrackingInfoDiv.innerHTML=_78;_c.show(this.editorTrackingInfoDiv);}else{_c.hide(this.editorTrackingInfoDiv);}},_setFieldDomain:function(_79,_7a,_7b){if(!_79){return null;}var _7c=_7b.domain;if(_7a&&_7a.domains){if(_7a.domains[_7b.name]&&_7a.domains[_7b.name] instanceof _d===false){_7c=_7a.domains[_7b.name];}}if(!_7c){return null;}if(_7c.codedValues&&_7c.codedValues.length>0){_79.set("store",this._toStore(_3.map(_7c.codedValues,function(_7d){return {id:_7d.code+="",name:_7d.name};})));this._setValue(_79,_7c.codedValues[0].code);}else{_79.constraints={min:_b.isDefined(_7c.minValue)?_7c.minValue:Number.MIN_VALUE,max:_b.isDefined(_7c.maxValue)?_7c.maxValue:Number.MAX_VALUE};this._setValue(_79,_79.constraints.min);}return _7c;},_setValue:function(_7e,_7f){if(!_7e.set){return;}_7e._onChangeActive=false;_7e.set("value",_7f,true);_7e._onChangeActive=true;},_getFields:function(_80){var _81=_80._getOutFields();if(!_81){return null;}var _82=_80.fields;return (_81=="*")?_82:_3.filter(_3.map(_81,_2.hitch(this,"_findFirst",_82,"name")),_b.isDefined);},_isInFields:function(_83,_84){if(!_83||!_84&&!_84.length){return false;}return _3.some(_84,function(_85){return _85.toLowerCase()===_83.toLowerCase();});},_findFirst:function(_86,_87,_88){var _89=_3.filter(_86,function(_8a){return _8a.hasOwnProperty(_87)&&_8a[_87]===_88;});return (_89&&_89.length)?_89[0]:null;},_getLInfoFromFeatureLayer:function(_8b){var _8c=_8b?_8b.id:null;return this._findFirst(this._layerInfos,"layerId",_8c);},_createTable:function(){this._destroyAttributeTable();this.attributeTable.innerHTML="";this._attributes=_9.create("table",{cellspacing:"0",cellpadding:"0"},this.attributeTable);var _8d=_9.create("tbody",null,this._attributes);var _8e=this._currentFeature;var _8f=this._currentLInfo;var _90=this._findFirst(_8f.types,"id",_8e.attributes[_8f.typeIdField]);var _91=_8f.fieldInfos;_3.forEach(_91,_2.hitch(this,"_createField",_90,_8d),this);this._createOnlyFirstTime=false;},_createField:function(_92,_93,_94){var _95=this._currentLInfo;var _96=_94.field;if(this._isInFields(_96.name,_95.hideFields)){return;}if(this._isInFields(_96.name,this._editorTrackingInfos[_95.featureLayer.id])){return;}var _97=_9.create("tr",null,_93);var td=_9.create("td",{innerHTML:_94.label||_96.alias||_96.name,"class":"atiLabel"},_97);td=_9.create("td",null,_97);var _98=null;var _99=false;if(_94.customField){_9.place(_94.customField.domNode||_94.customField,_9.create("div",null,td),"first");_98=_94.customField;}else{if(_95.isEditable===false||_96.editable===false||_94.isEditable===false||_96.type==="esriFieldTypeOID"||_96.type==="esriFieldTypeGlobalID"||(!this._canUpdate&&!this._createOnlyFirstTime)){_99=true;}}if(!_98&&(_95.typeIdField&&_96.name.toLowerCase()==_95.typeIdField.toLowerCase())){_98=this._createTypeField(_96,_94,td);}else{if(!_98){_98=this._createDomainField(_96,_94,_92,td);}}if(!_98){switch(_96.type){case "esriFieldTypeString":_98=this._createStringField(_96,_94,td);break;case "esriFieldTypeDate":_98=this._createDateField(_96,_94,td);break;case "esriFieldTypeInteger":case "esriFieldTypeSmallInteger":_98=this._createIntField(_96,_94,td);break;case "esriFieldTypeSingle":case "esriFieldTypeDouble":_98=this._createFltField(_96,_94,td);break;default:_98=this._createStringField(_96,_94,td);break;}}if(_94.tooltip&&_94.tooltip.length){this._toolTips.push(new _20({connectId:[_98.id],label:_94.tooltip}));}_98.onChange=_2.hitch(this,"onFieldValueChange",_94);_98.set("disabled",_99);_94.dijit=_98;},_createTypeField:function(_9a,_9b,_9c){return new _1c({"class":"atiField",name:_9a.alias||_9a.name,store:this._toStore(_3.map(this._currentLInfo.types,function(_9d){return {id:_9d.id,name:_9d.name};})),searchAttr:"name"},_9.create("div",null,_9c));},_createDomainField:function(_9e,_9f,_a0,_a1){var _a2=_9e.domain;if(_a0&&_a0.domains){if(_a0.domains[_9e.name]&&_a0.domains[_9e.name] instanceof _d===false){_a2=_a0.domains[_9e.name];}}if(!_a2){return null;}if(_a2.codedValues){return new _1c({"class":"atiField",name:_9e.alias||_9e.name,searchAttr:"name",required:_9e.nullable||false},_9.create("div",null,_a1));}else{return new _1d({"class":"atiField"},_9.create("div",null,_a1));}},_createStringField:function(_a3,_a4,_a5){var _a6={"class":"atiField",trim:true,maxLength:_a3.length};if(_a4.stringFieldOption===ATI.STRING_FIELD_OPTION_TEXTAREA){_a6["class"]+=" atiTextAreaField";return new _1f(_a6,_9.create("div",null,_a5));}else{if(_a4.stringFieldOption===ATI.STRING_FIELD_OPTION_RICHTEXT){_a6["class"]+=" atiRichTextField";_a6.height="100%";_a6.width="100%";_a6.plugins=_a4.richTextPlugins||["bold","italic","underline","foreColor","hiliteColor","|","justifyLeft","justifyCenter","justifyRight","justifyFull","|","insertOrderedList","insertUnorderedList","indent","outdent","|","createLink"];return new _12(_a6,_9.create("div",null,_a5));}else{return new _1a(_a6,_9.create("div",null,_a5));}}},_createDateField:function(_a7,_a8,_a9){var _aa={"class":"atiField","trim":true};if(this._datePackage){_aa.datePackage=this._datePackage;}return new _19(_aa,_9.create("div",null,_a9));},_createIntField:function(_ab,_ac,_ad){return new _1b({"class":"atiField",constraints:{places:0},invalidMessage:this.NLS_validationInt,trim:true},_9.create("div",null,_ad));},_createFltField:function(_ae,_af,_b0){return new _1b({"class":"atiField",trim:true,invalidMessage:this.NLS_validationFlt},_9.create("div",null,_b0));},_toStore:function(_b1){return new _21({data:{identifier:"id",label:"name",items:_b1}});},_connect:function(_b2,evt,_b3){this._aiConnects.push(_4.connect(_b2,evt,_b3));},_getDatePackage:function(_b4){if(_b4.datePackage===null){return null;}else{if(_b4.datePackage){return _b4.datePackage;}else{if(_6.locale==="ar"){return "dojox.date.islamic";}}}return null;},_destroyAttributeTable:function(){var _b5=this._layerInfos;_3.forEach(_b5,function(_b6){var _b7=_b6.fieldInfos;_3.forEach(_b7,function(_b8){var _b9=_b8.dijit;if(_b9){_b9._onChangeHandle=null;if(_b8.customField){return;}if(_b9.destroyRecursive){_b9.destroyRecursive();}else{if(_b9.destroy){_b9.destroy();}}}_b8.dijit=null;},this);},this);var _ba=this._toolTips;_3.forEach(_ba,function(_bb){_bb.destroy();delete _bb;});this._toolTips=[];if(this._attributes){_9.destroy(this._attributes);}}});_2.mixin(ATI,{STRING_FIELD_OPTION_RICHTEXT:"richtext",STRING_FIELD_OPTION_TEXTAREA:"textarea",STRING_FIELD_OPTION_TEXTBOX:"textbox"});if(_7("extend-esri")){_2.setObject("dijit.AttributeInspector",ATI,_a);}return ATI;});