//>>built define("dojo/_base/declare dojo/_base/event dojo/_base/lang dojo/sniff dojo/_base/window dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style ./_ItemBase ./Badge ./TransitionEvent ./iconUtils ./lazyLoadUtils ./viewRegistry ./_css3 dojo/has!dojo-bidi?dojox/mobile/bidi/IconItem".split(" "),function(l,m,n,e,p,f,d,k,g,h,q,r,t,u,v,w,x){h=l(e("dojo-bidi")?"dojox.mobile.NonBidiIconItem":"dojox.mobile.IconItem",h,{lazy:!1,requires:"",timeout:10,content:"",badge:"",badgeClass:"mblDomButtonRedBadge", deletable:!0,deleteIcon:"",tag:"li",paramsToInherit:"transition,icon,deleteIcon,badgeClass,deleteIconTitle,deleteIconRole",baseClass:"mblIconItem",_selStartMethod:"touch",_selEndMethod:"none",destroy:function(){this.badgeObj&&delete this.badgeObj;this.inherited(arguments)},buildRendering:function(){this.domNode=this.srcNodeRef||d.create(this.tag);if(this.srcNodeRef){this._tmpNode=d.create("div");for(var a=0,b=this.srcNodeRef.childNodes.length;a=c.d.h&&b.scrollIntoView(a,!0)}else p.global.scrollBy(0,k.position(a,!1).y)},close:function(a){if(this.isOpen()){this.set("selected",!1);if(e("css3-animations")&&!a)if(a=this.paneWidget.domNode,"below"==this.getParent().transition){f.add(a,"mblCloseContent mblShrink"); var b=k.position(a,!0),c=k.position(this.domNode,!0);g.set(a,w.add({},{transformOrigin:c.x+c.w/2-b.x+"px "+(c.y+c.h/2-b.y)+"px"}))}else f.add(a,"mblCloseContent mblShrink0");else this.paneWidget.hide();this.onClose()}},onOpen:function(){},onClose:function(){},_setLabelAttr:function(a){this.label=a;var b=this._cv?this._cv(a):a;this.labelNode.innerHTML=b;this.paneWidget&&this.paneWidget.set("label",a)},_getBadgeAttr:function(){return this.badgeObj?this.badgeObj.getValue():null},_setBadgeAttr:function(a){this.badgeObj|| (this.badgeObj=new q({fontSize:14,className:this.badgeClass}),g.set(this.badgeObj.domNode,{position:"absolute",top:"-2px",right:"2px"}));this.badgeObj.setValue(a);a?this.iconDivNode.appendChild(this.badgeObj.domNode):this.iconDivNode.removeChild(this.badgeObj.domNode)},_setDeleteIconAttr:function(a){this.getParent()&&(this._set("deleteIcon",a),a=this.deletable?a:"",this.deleteIconNode=t.setIcon(a,this.deleteIconPos,this.deleteIconNode,this.deleteIconTitle||this.alt,this.iconDivNode))&&(f.add(this.deleteIconNode, "mblIconItemDeleteIcon"),this.deleteIconRole&&this.deleteIconNode.setAttribute("role",this.deleteIconRole))},_setContentAttr:function(a){var b;this.paneWidget?b=this.paneWidget.containerNode:(this._tmpNode||(this._tmpNode=d.create("div")),b=this._tmpNode);"object"===typeof a?(d.empty(b),b.appendChild(a)):b.innerHTML=a},_setSelectedAttr:function(a){this.inherited(arguments);this.iconNode&&g.set(this.iconNode,"opacity",a?this.getParent().pressedIconOpacity:1)}});return e("dojo-bidi")?l("dojox.mobile.IconItem", [h,x]):h});