//>>built
define("mill/dataBrowser/blobAttachment",["mill/imageList","mill/icon"],function(){window.mill||(mill={});mill.dataBrowser||(mill.dataBrowser={});mill.dataBrowser.blobAttachmentMixin||(mill.dataBrowser.blobAttachmentMixin={});dojo.mixin(mill.dataBrowser.blobAttachmentMixin,{_imageList:"",imageList:function(){return this._imageList=this._imageList||new mill.imageList({url:dojo.moduleUrl("mill","theme/Buttons.js")})}});dojo.declare("mill.dataBrowser.blobAttachment",[dijit._Widget,dijit._Templated],
{templateString:"\x3cdiv\x3e\x3ctable style\x3d'width:100%'\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d'font-style:italic'\x3e(\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435)\x3c/span\x3e\x3c/td\x3e\x3ctd style\x3d'white-space:nowrap;text-align:right' dojoattachpoint\x3d'iconsNode'\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e",style:{padding:"3px"},_windowHref:"",_newTabHref:"",_downloadHref:"",hrefConstructor:"",parametersView:!1,postMixInProperties:function(){this.inherited(arguments);
this._windowHref=this.hrefConstructor[0]+this.hrefConstructor[1].join("','")+this.hrefConstructor[2];this._newTabHref=this.hrefConstructor[0]+this.hrefConstructor[1].join("','")+"','newTab"+this.hrefConstructor[2];this._downloadHref=this.hrefConstructor[0]+this.hrefConstructor[1].join("','")+"','download"+this.hrefConstructor[2];this.parametersView&&(this.style=dojo.delegate(mill.dataBrowser.blobAttachment.prototype.style,{margin:"2px 0",background:"#efefef",border:"solid 1px #d3d3d3","border-radius":"2px"}))},
buildRendering:function(){this.inherited(arguments);var a={padding:"0 2px",margin:"0 1px",border:"solid 1px #5767a3","border-radius":"2px",background:"abb8e3",background:"-webkit-gradient(linear, left top, left bottom, from(#dfe5fe), to(#abb8e3))",background:"-moz-linear-gradient(top, #dfe5fe, #abb8e3)",background:"linear-gradient(to bottom, #dfe5fe, #abb8e3)",filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr\x3d'#dfe5fe', endColorstr\x3d'#abb8e3', GradientType\x3d0)"};(new mill.icon({baseClass:mill.icon.prototype.baseClass+
" dijitInline",imageList:mill.dataBrowser.blobAttachmentMixin.imageList(),imageIndex:"COpenButtonIndex"},dojo.create("a",{title:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",href:this._windowHref,style:dojo.isFF?dojo.delegate(a,{padding:"0 1px 0 2px"}):a},this.iconsNode).appendChild(document.createElement("span")))).startup();(new mill.icon({baseClass:mill.icon.prototype.baseClass+" dijitInline",imageList:mill.dataBrowser.blobAttachmentMixin.imageList(),
imageIndex:"CLoadButtonIndex"},dojo.create("a",{title:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435",href:this._newTabHref,style:a},this.iconsNode).appendChild(document.createElement("span")))).startup();(new mill.icon({baseClass:mill.icon.prototype.baseClass+" dijitInline",imageList:mill.dataBrowser.blobAttachmentMixin.imageList(),imageIndex:"CSaveButtonIndex"},
dojo.create("a",{title:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",href:this._downloadHref,style:a},this.iconsNode).appendChild(document.createElement("span")))).startup()}})});