/*
 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
 */

window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","esri.dijit.AttributeInspector"],["require","dojo.fx"],["require","dojox.gfx"],["require","dijit._Widget"],["require","dijit._Templated"],["require","dijit.Editor"],["require","dijit._editor.plugins.LinkDialog"],["require","dijit._editor.plugins.TextColor"],["require","esri.dijit.editing.AttachmentEditor"],["require","esri.dijit.editing.Util"],["require","esri.tasks.query"],["require","dijit.form.DateTextBox"],["require","dijit.form.TextBox"],["require","dijit.form.NumberTextBox"],["require","dijit.form.FilteringSelect"],["require","dijit.form.NumberSpinner"],["require","dijit.form.Button"],["require","dijit.form.SimpleTextarea"],["require","dijit.Tooltip"],["require","dojo.data.ItemFileReadStore"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["esri.dijit.AttributeInspector"]){_4._hasResource["esri.dijit.AttributeInspector"]=true;_4.provide("esri.dijit.AttributeInspector");_4.require("dojo.fx");_4.require("dojox.gfx");_4.require("dijit._Widget");_4.require("dijit._Templated");_4.require("dijit.Editor");_4.require("dijit._editor.plugins.LinkDialog");_4.require("dijit._editor.plugins.TextColor");_4.require("esri.dijit.editing.AttachmentEditor");_4.require("esri.dijit.editing.Util");_4.require("esri.tasks.query");_4.require("dijit.form.DateTextBox");_4.require("dijit.form.TextBox");_4.require("dijit.form.NumberTextBox");_4.require("dijit.form.FilteringSelect");_4.require("dijit.form.NumberSpinner");_4.require("dijit.form.Button");_4.require("dijit.form.SimpleTextarea");_4.require("dijit.Tooltip");_4.require("dojo.data.ItemFileReadStore");(function(){var _7=document.createElement("link");_7.type="text/css";_7.rel="stylesheet";_7.href=_4.moduleUrl("esri","dijit/css/AttributeInspector.css");document.getElementsByTagName("head").item(0).appendChild(_7);})();_4.declare("esri.dijit.AttributeInspector",[_5._Widget,_5._Templated],{widgetsInTemplate:true,templateString:"<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",_navMessage:"( ${idx} ${of} ${numFeatures} )",onUpdate:function(){},onDelete:function(){},onAttributeChange:function(){},onNext:function(){},onReset:function(){},onCancel:function(){},constructor:function(_8,_9){_4.mixin(this,esri.bundle.widgets.attributeInspector);_8=_8||{};if(!_8.featureLayer&&!_8.layerInfos){console.error("esri.AttributeInspector: please provide correct parameter in the constructor");}this._userIds={};if(_8.featureLayer&&_8.featureLayer.credential){var _a=_8.featureLayer.id;this._userIds[_a]=_8.featureLayer.credential.userId;}else{if(_8.layerInfos){var _b=_8.layerInfos;_4.forEach(_b,function(_c){if(_c.featureLayer){var _d=_c.featureLayer.id;if(_c.featureLayer.credential){this._userIds[_d]=_c.featureLayer.credential.userId;}if(_c.userId){this._userIds[_d]=_c.userId;}}},this);}}this._datePackage=this._getDatePackage(_8);this._layerInfos=_8.layerInfos||[{featureLayer:_8.featureLayer,options:_8.options||[]}];this._aiConnects=[];this._selection=[];this._toolTips=[];this._numFeatures=0;this._featureIdx=0;this._currentLInfo=null;this._currentFeature=null;this._hideNavButtons=_8.hideNavButtons||false;},postCreate:function(){this._initLayerInfos();this._createAttachmentEditor();this.onFirstFeature();},destroy:function(){this._destroyAttributeTable();_4.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(_e,_f){if(_f){this._createOnlyFirstTime=true;}this._updateSelection([_e],_f);this._updateUI();},onLayerSelectionChange:function(_10,_11,_12){this._createOnlyFirstTime=false;this._featureIdx=(_12===esri.layers.FeatureLayer.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(_13,_14,_15,_16){_16=_16||[];if(_16.length){var _17=this._selection;var _18=_13.featureLayer.objectIdField;_4.forEach(_16,_4.hitch(this,function(del){_4.some(_17,_4.hitch(this,function(_19,idx){if(_19.attributes[_18]!==del.objectId){return false;}this._selection.splice(idx,1);return true;}));}));}_14=_14||[];if(_14.length){this._selection=esri.dijit.editing.Util.LayerHelper.findFeatures(_14,_13.featureLayer);this._featureIdx=0;}var _1a=this._numFeatures=this._selection?this._selection.length:0;if(_14.length){var _1b=_1a?this._selection[this._featureIdx]:null;var _1c=_1b.getLayer();var _1d=_1c.getEditCapabilities();if(!(_1d.canCreate&&!_1d.canUpdate)){this._showFeature(_1b);}}this._updateUI();},onFieldValueChange:function(_1e,_1f){_1f=(typeof _1f==="undefined")?null:_1f;var _20=_1e.field;if(_20.type==="esriFieldTypeDate"){_1f=(_1f&&_1f.getTime)?_1f.getTime():(_1f&&_1f.toGregorian?_1f.toGregorian().getTime():_1f);}if(this._currentFeature.attributes[_20.name]===_1f){return;}var _21=this._currentLInfo;var _22=this._currentFeature;var _23=_20.name;if(_23===_21.typeIdField){var _24=this._findFirst(_21.types,"id",_1f);var _25=_21.fieldInfos;_4.forEach(_25,function(_26){_20=_26.field;if(!_20||_20.name===_21.typeIdField){return;}var _27=_26.dijit;var _28=this._setFieldDomain(_27,_24,_20);if(_28&&_27){this._setValue(_27,_22.attributes[_20.name]+"");if(_27.isValid()===false){this._setValue(_27,null);}}},this);}this.onAttributeChange(_22,_23,_1f);},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 _29=this._layerInfos;this._editorTrackingInfos={};_4.forEach(_29,this._initLayerInfo,this);},_initLayerInfo:function(_2a){var _2b=_2a.featureLayer;this._connect(_2b,"onSelectionComplete",_4.hitch(this,"onLayerSelectionChange",_2a));this._connect(_2b,"onSelectionClear",_4.hitch(this,"onLayerSelectionClear",_2a));this._connect(_2b,"onEditsComplete",_4.hitch(this,"onLayerEditsComplete",_2a));_2a.showAttachments=_2b.hasAttachments?(esri._isDefined(_2a.showAttachments)?_2a.showAttachments:true):false;_2a.hideFields=_2a.hideFields||[];_2a.htmlFields=_2a.htmlFields||[];_2a.isEditable=_2b.isEditable()?(esri._isDefined(_2a.isEditable)?_2a.isEditable:true):false;_2a.typeIdField=_2b.typeIdField;_2a.layerId=_2b.id;_2a.types=_2b.types;if(!_2a.showGlobalID&&_2b.globalIdField){_2a.hideFields.push(_2b.globalIdField);}if(!_2a.showObjectID){_2a.hideFields.push(_2b.objectIdField);}var _2c=this._getFields(_2a.featureLayer);if(!_2c){return;}var _2d=_2a.fieldInfos||[];_2d=_4.map(_2d,function(_2e){return _4.mixin({},_2e);});if(!_2d.length){_2c=_4.filter(_2c,_4.hitch(this,function(_2f){return !this._isInFields(_2f.name,_2a.hideFields);}));_2a.fieldInfos=_4.map(_2c,_4.hitch(this,function(_30){var _31=(this._isInFields(_30.name,_2a.htmlFields)?esri.dijit.AttributeInspector.STRING_FIELD_OPTION_RICHTEXT:esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTBOX);return {"fieldName":_30.name,"field":_30,"stringFieldOption":_31};}));}else{_2a.fieldInfos=_4.filter(_4.map(_2d,_4.hitch(this,function(_32){var _33=_32.stringFieldOption||(this._isInFields(_32.fieldName,_2a.htmlFields)?esri.dijit.AttributeInspector.STRING_FIELD_OPTION_RICHTEXT:esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTBOX);return _4.mixin(_32,{"field":this._findFirst(_2c,"name",_32.fieldName),"stringFieldOption":_33});})),"return item.field;");}var _34=[];if(_2b.editFieldsInfo){if(_2b.editFieldsInfo.creatorField){_34.push(_2b.editFieldsInfo.creatorField);}if(_2b.editFieldsInfo.creationDateField){_34.push(_2b.editFieldsInfo.creationDateField);}if(_2b.editFieldsInfo.editorField){_34.push(_2b.editFieldsInfo.editorField);}if(_2b.editFieldsInfo.editDateField){_34.push(_2b.editFieldsInfo.editDateField);}}this._editorTrackingInfos[_2b.id]=_34;},_createAttachmentEditor:function(){this._attachmentEditor=null;var _35=this._layerInfos;var _36=_4.filter(_35,"return item.showAttachments");if(!_36||!_36.length){return;}this._attachmentEditor=new esri.dijit.editing.AttachmentEditor({"class":"atiAttachmentEditor"},this.attachmentEditor);this._attachmentEditor.startup();},_setCurrentLInfo:function(_37){var _38=this._currentLInfo?this._currentLInfo.featureLayer:null;var _39=_37.featureLayer;if(_38&&_38.id===_39.id&&!_38.ownershipBasedAccessControlForFeatures){var _3a=_39.getEditCapabilities();if(!(_3a.canCreate&&!_3a.canUpdate)){return;}}this._currentLInfo=_37;this._createTable();},_updateSelection:function(_3b,_3c){this._selection=_3b||[];var _3d=this._layerInfos;_4.forEach(_3d,this._getSelection,this);var _3e=this._numFeatures=this._selection.length;var _3f=_3e?this._selection[this._featureIdx]:null;this._showFeature(_3f,_3c);},_getSelection:function(_40){var _41=_40.featureLayer.getSelectedFeatures();this._selection=this._selection.concat(_41);},_updateUI:function(){var _42=this._numFeatures;var _43=this._currentLInfo;this.layerName.innerHTML=(!_43||_42===0)?this.NLS_noFeaturesSelected:(_43.featureLayer?_43.featureLayer.name:"");_4.style(this.attributeTable,"display",_42?"":"none");_4.style(this.editButtons,"display",_42?"":"none");_4.style(this.navButtons,"display",(!this._hideNavButtons&&(_42>1)?"":"none"));this.navMessage.innerHTML=esri.substitute({idx:this._featureIdx+1,of:this.NLS_of,numFeatures:this._numFeatures},this._navMessage);if(this._attachmentEditor){_4.style(this._attachmentEditor.domNode,"display",((_43&&_43.showAttachments)&&_42)?"":"none");}var _44=((_43&&_43.showDeleteButton===false)||!this._canDelete)?false:true;_4.style(this.deleteBtn.domNode,"display",_44?"":"none");if(this.domNode.parentNode&&this.domNode.parentNode.scrollTop>0){this.domNode.parentNode.scrollTop=0;}},_onNextFeature:function(_45){this._featureIdx+=_45;if(this._featureIdx<0){this._featureIdx=this._numFeatures-1;}else{if(this._featureIdx>=this._numFeatures){this._featureIdx=0;}}var _46=this._selection.length?this._selection[this._featureIdx]:null;this._showFeature(_46);this._updateUI();this.onNext(_46);},_deleteFeature:function(){this.onDelete(this._currentFeature);},_showFeature:function(_47,_48){if(!_47){return;}this._currentFeature=_47;var _49=_48?_48:_47.getLayer();var _4a=_49.getEditCapabilities({feature:_47,userId:this._userIds[_49.id]});this._canUpdate=_4a.canUpdate;this._canDelete=_4a.canDelete;var _4b=this._getLInfoFromFeatureLayer(_49);if(!_4b){return;}this._setCurrentLInfo(_4b);var _4c=_47.attributes;var _4d=this._findFirst(_4b.types,"id",_4c[_4b.typeIdField]);var _4e,_4f=null;var _50=_4b.fieldInfos;_4.forEach(_50,function(_51){_4f=_51.field;_4e=_51.dijit||null;if(!_4e){return;}var _52=this._setFieldDomain(_4e,_4d,_4f);var _53=_4c[_4f.name];_53=(_53&&_52&&_52.codedValues&&_52.codedValues.length)?(_52.codedValues[_53]?_52.codedValues[_53].name:_53):_53;if(!esri._isDefined(_53)){_53="";}if(_4e.declaredClass==="dijit.form.DateTextBox"){_53=(_53==="")?null:new Date(_53);}else{if(_4e.declaredClass==="dijit.form.FilteringSelect"){_4e._lastValueReported=null;_53=_4c[_4f.name]+"";}}try{this._setValue(_4e,_53);if(_4e.declaredClass==="dijit.form.FilteringSelect"&&_4e.isValid()===false){this._setValue(_4e,null);}}catch(error){_4e.set("displayedValue",this.NLS_errorInvalid,false);}},this);if(this._attachmentEditor&&_4b.showAttachments){this._attachmentEditor.showAttachments(this._currentFeature);}var _54=_49.getEditSummary(_47);if(_54){this.editorTrackingInfoDiv.innerHTML=_54;esri.show(this.editorTrackingInfoDiv);}else{esri.hide(this.editorTrackingInfoDiv);}},_setFieldDomain:function(_55,_56,_57){if(!_55){return null;}var _58=_57.domain;if(_56&&_56.domains){if(_56.domains[_57.name]&&_56.domains[_57.name] instanceof esri.layers.InheritedDomain===false){_58=_56.domains[_57.name];}}if(!_58){return null;}if(_58.codedValues&&_58.codedValues.length>0){_55.store=this._toStore(_4.map(_58.codedValues,"return { id: item.code += '', name: item.name };"));this._setValue(_55,_58.codedValues[0].code);}else{_55.constraints={min:esri._isDefined(_58.minValue)?_58.minValue:Number.MIN_VALUE,max:esri._isDefined(_58.maxValue)?_58.maxValue:Number.MAX_VALUE};this._setValue(_55,_55.constraints.min);}return _58;},_setValue:function(_59,_5a){if(!_59.set){return;}_59._onChangeActive=false;_59.set("value",_5a,true);_59._onChangeActive=true;},_getFields:function(_5b){var _5c=_5b._getOutFields();if(!_5c){return null;}var _5d=_5b.fields;return (_5c=="*")?_5d:_4.filter(_4.map(_5c,_4.hitch(this,"_findFirst",_5d,"name")),esri._isDefined);},_isInFields:function(_5e,_5f){if(!_5e||!_5f&&!_5f.length){return false;}return _4.some(_5f,function(_60){return _60.toLowerCase()===_5e.toLowerCase();});},_findFirst:function(_61,_62,_63){var _64=_4.filter(_61,function(_65){return _65.hasOwnProperty(_62)&&_65[_62]===_63;});return (_64&&_64.length)?_64[0]:null;},_getLInfoFromFeatureLayer:function(_66){var _67=_66?_66.id:null;return this._findFirst(this._layerInfos,"layerId",_67);},_createTable:function(){this._destroyAttributeTable();this.attributeTable.innerHTML="";this._attributes=_4.create("table",{cellspacing:"0",cellpadding:"0"},this.attributeTable);var _68=_4.create("tbody",null,this._attributes);var _69=this._currentFeature;var _6a=this._currentLInfo;var _6b=this._findFirst(_6a.types,"id",_69.attributes[_6a.typeIdField]);var _6c=_6a.fieldInfos;_4.forEach(_6c,_4.hitch(this,"_createField",_6b,_68),this);this._createOnlyFirstTime=false;},_createField:function(_6d,_6e,_6f){var _70=this._currentLInfo;var _71=_6f.field;if(this._isInFields(_71.name,_70.hideFields)){return;}if(this._isInFields(_71.name,this._editorTrackingInfos[_70.featureLayer.id])){return;}var _72=_4.create("tr",null,_6e);var td=_4.create("td",{innerHTML:_6f.label||_71.alias||_71.name,"class":"atiLabel"},_72);td=_4.create("td",null,_72);var _73=null;var _74=false;if(_6f.customField){_4.place(_6f.customField.domNode||_6f.customField,_4.create("div",null,td),"first");_73=_6f.customField;}else{if(_70.isEditable===false||_71.editable===false||_6f.isEditable===false||_71.type==="esriFieldTypeOID"||_71.type==="esriFieldTypeGlobalID"||(!this._canUpdate&&!this._createOnlyFirstTime)){_74=true;}}if(!_73&&(_70.typeIdField&&_71.name.toLowerCase()==_70.typeIdField.toLowerCase())){_73=this._createTypeField(_71,_6f,td);}else{if(!_73){_73=this._createDomainField(_71,_6f,_6d,td);}}if(!_73){switch(_71.type){case "esriFieldTypeString":_73=this._createStringField(_71,_6f,td);break;case "esriFieldTypeDate":_73=this._createDateField(_71,_6f,td);break;case "esriFieldTypeInteger":case "esriFieldTypeSmallInteger":_73=this._createIntField(_71,_6f,td);break;case "esriFieldTypeSingle":case "esriFieldTypeDouble":_73=this._createFltField(_71,_6f,td);break;default:_73=this._createStringField(_71,_6f,td);break;}}if(_6f.tooltip&&_6f.tooltip.length){this._toolTips.push(new _5.Tooltip({connectId:[_73.id],label:_6f.tooltip}));}_73.onChange=_4.hitch(this,"onFieldValueChange",_6f);_73.set("disabled",_74);_6f.dijit=_73;},_createTypeField:function(_75,_76,_77){return new _5.form.FilteringSelect({"class":"atiField",name:_75.alias||_75.name,store:this._toStore(_4.map(this._currentLInfo.types,"return { id: item.id, name: item.name };")),searchAttr:"name"},_4.create("div",null,_77));},_createDomainField:function(_78,_79,_7a,_7b){var _7c=_78.domain;if(_7a&&_7a.domains){if(_7a.domains[_78.name]&&_7a.domains[_78.name] instanceof esri.layers.InheritedDomain===false){_7c=_7a.domains[_78.name];}}if(!_7c){return null;}if(_7c.codedValues){return new _5.form.FilteringSelect({"class":"atiField",name:_78.alias||_78.name,store:null,searchAttr:"name",required:_78.nullable||false},_4.create("div",null,_7b));}else{return new _5.form.NumberSpinner({"class":"atiField"},_4.create("div",null,_7b));}},_createStringField:function(_7d,_7e,_7f){var _80={"class":"atiField",trim:true,maxLength:_7d.length};if(_7e.stringFieldOption===esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA){_80["class"]+=" atiTextAreaField";return new _5.form.SimpleTextarea(_80,_4.create("div",null,_7f));}else{if(_7e.stringFieldOption===esri.dijit.AttributeInspector.STRING_FIELD_OPTION_RICHTEXT){_80["class"]+=" atiRichTextField";_80.height="100%";_80.width="100%";_80.plugins=_7e.richTextPlugins||["bold","italic","underline","foreColor","hiliteColor","|","justifyLeft","justifyCenter","justifyRight","justifyFull","|","insertOrderedList","insertUnorderedList","indent","outdent","|","createLink"];return new _5.Editor(_80,_4.create("div",null,_7f));}else{return new _5.form.TextBox(_80,_4.create("div",null,_7f));}}},_createDateField:function(_81,_82,_83){var _84={"class":"atiField","trim":true};if(this._datePackage){_84.datePackage=this._datePackage;}return new _5.form.DateTextBox(_84,_4.create("div",null,_83));},_createIntField:function(_85,_86,_87){return new _5.form.NumberTextBox({"class":"atiField",constraints:{places:0},invalidMessage:this.NLS_validationInt,trim:true},_4.create("div",null,_87));},_createFltField:function(_88,_89,_8a){return new _5.form.NumberTextBox({"class":"atiField",trim:true,invalidMessage:this.NLS_validationFlt},_4.create("div",null,_8a));},_toStore:function(_8b){return new _4.data.ItemFileReadStore({data:{identifier:"id",label:"name",items:_8b}});},_connect:function(_8c,evt,_8d){this._aiConnects.push(_4.connect(_8c,evt,_8d));},_getDatePackage:function(_8e){if(_8e.datePackage===null){return null;}else{if(_8e.datePackage){return _8e.datePackage;}}return null;},_destroyAttributeTable:function(){var _8f=this.layerInfos;_4.forEach(_8f,function(_90){var _91=_90.fieldInfos;_4.forEach(_91,function(_92){var _93=_92.dijit;if(_93){_93._onChangeHandle=null;if(_92.customField){return;}if(_93.destroyRecursive){_93.destroyRecursive();}else{if(_93.destroy){_93.destroy();}}}_92.dijit=null;},this);},this);var _94=this._toolTips;_4.forEach(_94,"item.destroy(); delete item;");this._toolTips=[];if(this._attributes){_4.destroy(this._attributes);}}});_4.mixin(esri.dijit.AttributeInspector,{STRING_FIELD_OPTION_RICHTEXT:"richtext",STRING_FIELD_OPTION_TEXTAREA:"textarea",STRING_FIELD_OPTION_TEXTBOX:"textbox"});}}};});