Your IP : 3.17.174.204


Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/landing/ui/
Upload File :
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/landing/ui/style_factory.min.js

(function(){"use strict";BX.namespace("BX.Landing.UI.Factory");BX.Landing.UI.Factory.StyleFactory=function(e){this.frame=!!e.frame?e.frame:null;this.postfix=typeof e.postfix==="string"?e.postfix:""};function e(e,t,n,l,i){l=!!l?l:"";if(!!t&&typeof t==="object"){var o=Object.keys(t);t=o.map((function(e){return t[e]}))}else if(typeof t==="string"){t=[t]}t.forEach((function(t){n.forEach((function(n){if(t+l!==n.value+l){e.classList.remove(n.value+l)}if(i){e.style[i]=null;[].slice.call(e.querySelectorAll("*")).forEach((function(e){e.style[i]=null}))}}));e.classList.add(t+l)}))}BX.Landing.UI.Factory.StyleFactory.prototype={createField:function(t){var n=null;var l={title:t.title,selector:t.selector,contentRoot:BX.Landing.PageObject.getStylePanelContent(),style:t.style,format:e,frame:this.frame,property:t.property,pseudoElement:t.pseudoElement,pseudoClass:t.pseudoClass,items:t.items,postfix:this.postfix,onChange:t.onChange,onReset:t.onReset,help:t.help,attrKey:t.attrKey};if(t.type==="slider"||t.type==="range-slider"){n=new BX.Landing.UI.Field.Range(Object.assign(l,{type:t.type==="range-slider"?"multiple":null}))}if(t.type==="buttons"){n=new BX.Landing.UI.Field.ButtonGroup(Object.assign(l,{multiple:t.multiple===true}))}if(t.type==="display"){n=new BX.Landing.UI.Field.ButtonGroup(Object.assign(l,{multiple:true,className:"landing-ui-display-button-group"}))}if(t.type==="palette"){n=new BX.Landing.UI.Field.ColorPalette(l)}if(t.type==="color"){n=new BX.Landing.UI.Field.ColorField(Object.assign(l,{block:t.block,styleNode:t.styleNode,subtype:t.subtype}))}if(t.type==="list"&&t.style!=="font-family"){n=new BX.Landing.UI.Field.Dropdown(l)}if(t.style==="font-family"){n=new BX.Landing.UI.Field.Font(Object.assign(l,{styleNode:t.styleNode}))}return n}}})();
//# sourceMappingURL=style_factory.map.js