%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/home/bitrix/www/bitrix/js/landing/ui/field/
Upload File :
Create Path :
Current File : //proc/self/root/home/bitrix/www/bitrix/js/landing/ui/field/icon_field.min.js

(function(){"use strict";BX.namespace("BX.Landing.UI.Field");var t=BX.Landing.Utils.clone;BX.Landing.UI.Field.Icon=function(t){BX.Landing.UI.Field.Image.apply(this,arguments);this.uploadButton.layout.innerText=BX.message("LANDING_ICONS_FIELD_BUTTON_REPLACE");this.editButton.layout.hidden=true;this.clearButton.layout.hidden=true};BX.Landing.UI.Field.Icon.prototype={constructor:BX.Landing.UI.Field.Icon,__proto__:BX.Landing.UI.Field.Image.prototype,onUploadClick:function(t){t.preventDefault();BX.Landing.UI.Panel.Icon.getInstance().show().then(function(t){this.setValue({type:"icon",classList:t.split(" ")})}.bind(this))},isChanged:function(){return this.getValue().classList.some(function(t){return this.content.classList.indexOf(t)===-1},this)},getValue:function(){var n=this.classList;if(this.selector){var e=this.selector.split("@")[0].replace(".","");n=t(this.classList).concat([e])}return{type:"icon",src:"",id:-1,alt:"",classList:n,url:Object.assign({},this.url.getValue(),{enabled:this.urlCheckbox.checked})}},reset:function(){this.setValue({type:"icon",src:"",id:-1,alt:"",classList:[],url:""})}}})();

Zerion Mini Shell 1.0