%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/js/landing/ui/
Upload File :
Create Path :
Current File : /home/bitrix/www/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:"";this.propertyMap=!!e.propertyMap?e.propertyMap:new BX.Landing.UI.PropertyMap};function e(e,t,s,o,l){o=!!o?o:"";if(!!t&&typeof t==="object"){var i=Object.keys(t);t=i.map(function(e){return t[e]})}else if(typeof t==="string"){t=[t]}t.forEach(function(t){s.forEach(function(s){if(t+o!==s.value+o){e.classList.remove(s.value+o)}if(l){e.style[l]=null;[].slice.call(e.querySelectorAll("*")).forEach(function(e){e.style[l]=null})}});e.classList.add(t+o)})}BX.Landing.UI.Factory.StyleFactory.prototype={createField:function(t){var s=null;if(t.type==="slider"||t.type==="range-slider"){s=new BX.Landing.UI.Field.Range({title:t.title,selector:t.selector,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,type:t.type==="range-slider"?"multiple":null})}if(t.type==="buttons"){s=new BX.Landing.UI.Field.ButtonGroup({title:t.title,selector:t.selector,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,multiple:t.multiple===true})}if(t.type==="display"){s=new BX.Landing.UI.Field.ButtonGroup({title:t.title,selector:t.selector,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,multiple:true,className:"landing-ui-display-button-group"})}if(t.type==="palette"){s=new BX.Landing.UI.Field.Color({title:t.title,selector:t.selector,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})}if(t.type==="list"&&t.style!=="font-family"){s=new BX.Landing.UI.Field.Dropdown({title:t.title,selector:t.selector,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})}if(t.style==="font-family"){s=new BX.Landing.UI.Field.Font({title:t.title,selector:t.selector,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})}return s}}})();

Zerion Mini Shell 1.0