/*! For license information please see bundle.js.LICENSE.txt */ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var n,o,a=t[0],i=t[1],l=0,u=[];le.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:window;return"https:"===e.location.protocol}},{key:"getName",value:function(e,t){return"et-".concat(e,"-post-").concat(this.postID,"-").concat(t)}},{key:"set",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;r.wpCookies.set(this.getName(e,t),(0,E.default)(n)?t:n,o,this.path,!1,this.secure(r))}},{key:"get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return n.wpCookies.get(this.getName(e,t))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;n.wpCookies.remove(this.getName(e,t),this.path,!1,this.secure(n))}}],n&&J(t.prototype,n),o&&J(t,o),e}(),le=new ie;t.cookies=le;var ue=window,se=ue.document,de=null,ce=null;e(window).on("et_fb_init",(function(){ue=window.ET_Builder.Frames.app,se=ue.document}));var fe={applyMixinsSafely:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o2&&void 0!==arguments[2])||arguments[2];if((0,f.default)(e,"attrs._deleted"))return!0;if(n){var o=(0,f.default)(e,"address","").split(".");if(o.length>1){var r=fe.getModuleAddressSequence(o),a=!1;if((0,s.default)(r,(function(e){var n=(0,u.default)(t,{address:e});(0,f.default)(n,"attrs._deleted")&&(a=!0)})),a)return!0}}return!1},getComponentType:function(e){var t=e.props||e,n=(0,f.default)(t,"type"),o="module";switch(!0){case"et_pb_section"===n:o="section";break;case(0,_.default)(oe,n):o="row";break;case(0,_.default)(re,n):o="column"}return o},getModuleSectionType:function(e,t){var n=e.props||e,o=(0,h.default)((0,f.default)(n,"address").split(".")),r=(0,u.default)(t,{address:o});return fe.isOn((0,f.default)(r,"attrs.fullwidth"))?"fullwidth":fe.isOn((0,f.default)(r,"attrs.specialty"))?"specialty":"regular"},getModuleAncestor:function(e,t,n){var o,r=t.props||t,a=fe.getModuleSectionType(r,n),i=fe.getModuleAddressSequence((0,f.default)(r,"address",""));return(0,s.default)(i,(function(t){var r=(0,u.default)(n,{address:t}),i=(0,f.default)(r,"type","");if("specialty"===a)0===i.replace("et_pb_","").indexOf(e)&&(o=r);else i.replace("et_pb_","")===e&&(o=r)})),o},is:function(e,t){var n=t.props||t,o=!1;switch(e){case"section":o="section"===Nt(n);break;case"row":o="row"===Nt(n);break;case"row-inner":o="et_pb_row_inner"===(0,f.default)(n,"type");break;case"column":o="column"===Nt(n);break;case"column-inner":o="et_pb_column_inner"===(0,f.default)(n,"type");break;case"module":o="module"===Nt(n)&&!(0,f.default)(n,"is_module_child");break;case"fullwidth":o=ve((0,f.default)(n,"attrs.fullwidth"));break;case"regular":o="section"===Nt(n)&&!ve((0,f.default)(n,"attrs.fullwidth"))&&!ve((0,f.default)(n,"attrs.specialty"));break;case"specialty":o=ve((0,f.default)(n,"attrs.specialty"));break;case"disabled":o=ve((0,f.default)(n,"attrs.disabled"));break;case"locked":o=ve((0,f.default)(n,"attrs.locked"));break;case"removed":o="et-fb-removed-component"===(0,f.default)(n,"component_path","");break;default:o=(0,f.default)(n,e)}return o},isOn:z.isOn,isOff:z.isOff,isOnOff:z.isOnOff,isYes:z.isYes,isNo:z.isNo,isDefault:z.isDefault,isMobileDevice:function(){if(null===de)try{document.createEvent("TouchEvent"),de=fe.$appWindow().width()<=1024}catch(e){de=!1}return de},isFileExtension:z.isFileExtension,isIEOrEdge:function(){return document.documentMode||window.StyleMedia},isIE:function(){return fe.$appWindow("body").hasClass("ie")},isBlockEditor:function(){return(0,p.default)(window,"wp.blocks")},isResponsiveView:function(e){return(0,_.default)(["tablet","phone"],e)},isRealMobileDevice:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},getConditionalDefault:function(e,t,n,o){if(!(0,g.default)(e)||!(0,k.default)((0,f.default)(e,"1")))return e;var r=Q(e,2),a=r[0],i=r[1];o&&(a=G.default.getHoverField(a));var l=n?n.resolve(a):(0,f.default)(t,a);return(0,E.default)(l)&&(l=(0,M.default)(i)[0]),(0,f.default)(i,l)},getValueOrConditionalDefault:function(e,t,n){var o=(0,f.default)(t,e);return(0,E.default)(o)||""===o?fe.getConditionalDefault((0,f.default)(n,e),t):o},condition:function(e){return(0,f.default)(ETBuilderBackend,["conditionalTags",e])},hasNumericValue:z.hasNumericValue,hasValue:z.hasValue,get:z.get,getResponsiveStatus:function(e){var t=(0,S.default)(e)?e.split("|"):["off","desktop"];return!(0,E.default)(t[0])&&fe.isOn(t[0])},getResponsiveLastMode:function(e){var t=(0,S.default)(e)?e.split("|"):["off","desktop"];return(0,f.default)(t,[1],"desktop")},parseShortcode:function(t,n,o){var r=this,a=document.documentMode,i="et-fb-preview-".concat((0,A.default)(),"-").concat(Math.floor(1e3*Math.random()+1)),l="".concat(ETBuilderBackend.site_url,"/?et_pb_preview=true&et_pb_preview_nonce=").concat(ETBuilderBackend.nonces.preview,"&iframe_id=").concat(i);setTimeout((function(){var u=e('*[data-shortcode-id="'.concat(o,'"]')),s=u.length?"".concat(u.width(),"px"):"100%",d=e("

')}))),e):""},_handleModification:function(){this.setState({hasChanges:!0})},_onNodeChange:function(e,t){if(!1!==this.state.showPopover){var n=!(0,c.default)(t.selection.getContent());this.setState({editor:t,isSelected:n});var o={active:!0,hasChanges:this.state.hasChanges,editor:t,module:this,posX:this.state.posX,posY:this.state.posY,viewportX:this.state.viewportX,viewportY:this.state.viewportY,isSelected:n,selection:t.selection.getNode()};S.default.updateInlineEditorProps(o)}},_onMouseDown:function(e,t){if(2!==e.button){var n={active:!0,hasChanges:this.state.hasChanges,posX:e.pageX,posY:e.pageY,viewportX:e.screenX,viewportY:e.screenY,editor:t,module:this,selecting:!0};S.default.updateInlineEditorProps(n,!1,!0),this._listenOutsideMouseUp(),this._maybeOnMouseUp=!0}},_onOutsideMouseUp:function(e){2!==e.button&&(e.preventDefault(),this._removeListenerMouseUp(),this._onMouseUp(k.default.getInlineEditorProps()))},_onInsideMouseUp:function(e,t){if(this._maybeOnMouseUp&&2!==e.button){var n=P(P({},k.default.getInlineEditorProps()),{},{posX:e.pageX,posY:e.pageY,viewportX:e.screenX,viewportY:e.screenY,editor:t});this._removeListenerMouseUp(),this._onMouseUp(n)}},_listenOutsideMouseUp:function(){O.default.$appDocument().on("mouseup",this._onOutsideMouseUp),O.default.$topDocument().on("mouseup",this._onOutsideMouseUp)},_removeListenerMouseUp:function(){this._maybeOnMouseUp=!1,O.default.$appDocument().off("mouseup",this._onOutsideMouseUp),O.default.$topDocument().off("mouseup",this._onOutsideMouseUp)},_onMouseUp:function(t){var n=this,o=t.editor;if(o&&!1===this.state.showPopover&&(e(o.bodyElement).prop("contentEditable",!0),e(o.bodyElement).trigger("focus"),setTimeout((function(){return S.default.setEditedModule(n,!0)}),0),!(0,c.default)(this.state.shortcodeHTML)&&!this.state.shortcodesDecoded)){var r=this.getContent();o.setContent(r,{format:"raw"})}var a=o&&!(0,c.default)(o.selection.getContent()),i=o&&o.selection.getNode(),l={active:!0,hasChanges:this.state.hasChanges,posX:t.posX,posY:t.posY,viewportX:t.viewportX,viewportY:t.viewportY,editor:o,module:this,selecting:!1,isSelected:a,selection:i};S.default.updateInlineEditorProps(l,!1,!1),this.setState({showPopover:!0,shortcodesDecoded:!0,editor:o,isSelected:a,posX:t.posX,posY:t.posY,viewportX:t.viewportX,viewportY:t.viewportY})},_onFocusout:function(e,t){if(k.default.getInlineEditorLastClick())return this.buttonClicked=!0,void e.preventDefault();this.buttonClicked=!1,this.disablePopup(t)},_onFocus:function(e,t){this.editor=t,this.props.rawContentProcessor&&this.local_version++},_onBlur:function(e,t){if(this.buttonClicked)return e.preventDefault(),void((0,b.default)((0,v.default)(t,"focus"))&&t.focus());this.disablePopup(t)},_onContextMenu:function(){this.setState({rightClick:!0})}}),W=F;t.default=W}).call(this,n(9))},function(e,t,n){var o=n(42),r=n(12);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),o(e,t,{leading:a,maxWait:t,trailing:i})}},function(e,t,n){e.exports=n(411)},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(0)),a=l(n(7)),i=l(n(13));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=t?e:t)),e}},function(e,t,n){var o=n(43),r=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},function(e,t,n){var o=n(148),r=n(73),a=n(69),i=n(12),l=n(51);e.exports=function(e,t,n,u){if(!i(e))return e;for(var s=-1,d=(t=r(t,e)).length,c=d-1,f=e;null!=f&&++s=0&&e.slice(n,u)==t}},function(e,t,n){"use strict";(function(e,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1437),a=v(n(11)),i=v(n(61)),l=v(n(8)),u=v(n(1)),s=v(n(5)),d=v(n(110)),c=v(n(10)),f=v(n(40)),p=v(n(123)),h=n(2),_=v(n(6)),m=v(n(920)),g=v(n(278)),b=n(384);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;tr?0:200)}else v._scrollIntoView(v.$in_viewport[0],v.scrollIntoViewSettings);if(_.default.getModalSnapped("bottom")&&!v.is_zoom)if((0,h.$topWindow)().innerWidth()<=S.width()&&0<(0,u.default)(S.offset(),"left",0))C.css("transform","");else{var a=(0,h.parseInlineCssIntoObject)(S.attr("style")),i="translate(".concat((0,u.default)(v,"animation_config.to.iframe_translate_x"),"px, ").concat((0,u.default)(v,"animation_config.to.iframe_translate_y"),"px)");i!==a.transform&&C.css("transform",i)}}v._toggleStyleOverrides(!0),(0,h.isTB)()&&(v.is_mobile_preview||_.default.getModalSnapped("left")||_.default.getModalSnapped("right")||C.width("")),v.$in_viewport=o()})),k(this,"_animationEnabled",(function(){return _.default.getAppPreference("builder_animation")})),k(this,"_isBFBMobile",(function(){if(!(0,h.isBFB)())return!1;var e=(0,u.default)(m.default,"wpAdmin.oneColumnLayout");return(0,h.$topWindow)().innerWidth()0&&void 0!==arguments[0]?arguments[0]:"top";"top"===e?(U=N.closest(".ui-sortable").attr("id"),H=N.index(),N.insertAfter(j),(0,h.$topWindow)(".meta-box-sortables").sortable("refreshPositions")):U&&!1!==H&&((0,h.$topWindow)("#".concat(U," .postbox")).length<=H?N.appendTo("#".concat(U)):N.insertBefore((0,h.$topWindow)("#".concat(U," .postbox")).eq(H)),(0,h.$topWindow)(".meta-box-sortables").sortable("refreshPositions"),U=!1,H=!1),(0,h.topWindow)().dispatchEvent(new CustomEvent("ETBFBMetaboxSortStopped",{}))})),k(this,"_maybeToggleDistractionFreeMode",(function(e){(0,h.isTB)()||(!v.is_DFM||"wireframe"!==v.current_mode&&"open"!==e?v.is_DFM||"wireframe"===v.current_mode&&"folded"!==e||(v.is_DFM=!0,A.addClass("folded"),A.addClass("et-bfb-distraction-free-mode"),v._repositionPublishMbox("top")):(v.is_DFM=!1,v.bfbAdminMenuManuallyFolded||A.removeClass("folded"),A.removeClass("et-bfb-distraction-free-mode"),v._repositionPublishMbox("original")))})),k(this,"_toggleStyleOverrides",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&!(0,h.isBFB)()&&v.handleAppFrameResize(),(0,h.isTB)())E.css("overflow","hidden").parent().css("overflow","hidden");else{C=(0,h.$topWindow)("#et-fb-app-frame, #et-bfb-app-frame, #et_fb_rv_shadow");var t=(0,h.$topWindow)("#et-fb-app-frame, #et-bfb-app-frame"),n=(0,h.$topWindow)("#et_fb_rv_shadow"),o=window.getComputedStyle(t[0],null);if(v.is_mobile_preview||v.is_zoom)(0,h.isBFB)()||(E.css("overflow","hidden").parent().css("overflow","hidden"),A.parent().css("overflow-y","auto").css("overflow-x","hidden"),n.height("calc(".concat(t[0].offsetHeight,"px - ").concat(o.getPropertyValue("padding-top"),")")));else if((0,h.isBFB)())S.parents("#et_pb_layout").width("");else if((e||v._is_using_wheel)&&(E.css("overflow","").parent().css("overflow",""),A.css("overflow","").parent().css("overflow-y","").css("overflow-x",""),e))if(_.default.getModalSnapped()&&!_.default.getModalSnapped("bottom")){var r=function(){var e=(0,h.$topDocument)(".et-fb-modal--snapped")[0];C.width((0,h.$topWindow)().width()-e.offsetWidth)};r(),setTimeout(r,100)}else C.width("")}})),k(this,"_updateDOMForCurrentMode",(function(){var e=[B];(0,h.isTB)()||e.push(T),(0,l.default)(e,(function(e){e.removeClass((function(e,t){return(t.match(/(^|\s)et-fb-preview--\S+/g)||[]).join(" ")})).addClass(v.mode_class)})),"desktop"!==v.current_mode?(0,h.isLimitedMode)()&&!(0,h.isBFB)()&&0===A.find(".et-fb-preview__overlay").length&&(A.append('
'),A.addClass("et_pb_3rd_party_theme")):A.hasClass("et_divi_theme")||A.find(".et-fb-preview__overlay").remove()})),k(this,"_updateProperties",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"toggle";S||(S=(0,h.$topWindow)(window.frameElement),M=(0,h.$topWindow)("#et_fb_rv_shadow"),E=S.contents().find("body"));var u="wireframe"!==e,d=(0,c.default)(v.previous_mode);"toggle"===l&&(v.previous_mode=v.current_mode),v.current_mode=e,v.mode_widths=v.modeWidths(),v.current_mode_width=n||v.mode_widths[e],v.is_zoom="zoom"===v.current_mode,v.was_zoom="zoom"===v.previous_mode,v.is_mobile_preview=(0,s.default)(["tablet","phone"],v.current_mode),v.was_mobile_preview=(0,s.default)(["tablet","phone"],v.previous_mode),v.is_modal_snapped=_.default.getModalSnapped(),v.animate_admin=(u!==v.is_DFM||(0,s.default)([v.current_mode,v.previous_mode],"wireframe"))&&!v._isBFBMobile();var f=w({iframe_width:S.width()||S.parent().width(),iframe_scale:v.was_zoom?.5:1},v.current_translate);if(v.is_mobile_preview){var p=v.getSanitizedAppFrameWidth(v.current_mode_width,!1,!1,e),m=v.current_mode_width>p;v.current_mode_width=m?p:v.current_mode_width}(0,h.isBFB)()&&!u&&v.was_mobile_preview&&(0,a.default)(f,{iframe_width:j.width()});var g=w({iframe_width:v.current_mode_width,iframe_scale:v.is_zoom?.5:1},v.cssTranslate());if(!(0,h.isBFB)()&&!(0,h.isTB)()&&v.is_zoom){var b=2*(0,h.$topWindow)("#wpadminbar").outerHeight();g.paddingTop="".concat(b,"px")}(0,h.isBFB)()&&v.animate_admin&&(v.$admin_menu=(0,h.$topWindow)("#adminmenuback, #adminmenuwrap, #adminmenu"),v.$admin_sidebar=(0,h.$topWindow)("#postbox-container-1"),v.$admin_content=(0,h.$topWindow)("#wpcontent"),v.$admin_menu_names=(0,h.$topWindow)("#adminmenu .wp-menu-name, #collapse-button .collapse-button-label"),(0,a.default)(f,k({admin_menu_width:v.$admin_menu.width(),postbox_margin:parseInt(R.css("margin-right"))},D,u||d?0:-124)),(0,a.default)(g,k({admin_menu_width:u||v.bfbAdminMenuManuallyFolded?36:F,postbox_margin:u||v.is_modal_snapped||W()?0:300},D,u?-124:0)));var y=t&&v._animationEnabled(),O=v.was_mobile_preview||v.was_zoom,C=O?(0,h.$topWindow)().scrollTop():(0,h.$appWindow)().scrollTop();if(v.animation_config={from:f,to:g,ease:r.easing.cubicBezier(.23,1,.32,1),duration:y?400:0},(0,h.isTB)()&&(C=(0,h.viewportScrollTop)()),v.keep_module_in_viewport=0!==C,v.$in_viewport=o(),v.keep_module_in_viewport){var P=(0,h.$appWindow)(".et_pb_module").removeClass("et-pb-in-viewport");v.$in_viewport=o((0,i.default)(P,(function(e){return(0,h.isElementInViewport)(e)}))).addClass("et-pb-in-viewport")}})),k(this,"_scrollIntoView",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(L){var o=!(0,h.isBFB)()&&(0,s.default)(["wireframe","desktop"],v.current_mode)?"app":"top",r=v.is_zoom?.5:v.was_zoom?2:1,a=(0,h.topWindow)().innerHeight,i="app"===o?(0,h.appWindow)().pageYOffset:(0,h.topWindow)().pageYOffset,l=i+a,u=.3*a,d=e(t).offset().top*r,c=d+e(t).height()*r,f=d<=i&&c>=l,p=d>=i+u&&d<=l-u,_=!(f||p);if(_){var m="app"===o?(0,h.appWindow)():(0,h.topWindow)();m.scrollTo({top:d-a/2})}}else t.scrollIntoView(n)})),k(this,"activate",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"toggle";if(v.current_mode===e&&!n)return v.current_mode_width;if(v.is_animating)return v.current_mode_width;v._updateProperties(e,o,a,i),(0,h.isBFB)()&&(0,h.$topWindow)("#collapse-menu").toggleClass("et_pb_hidden","wireframe"!==v.current_mode),(0,h.isTB)()||t||(v.animation_config.to=w(w({},v.animation_config.to),{},{iframe_width:v.animation_config.from.iframe_width,iframe_translate_x:v.animation_config.from.iframe_translate_x,iframe_translate_y:v.animation_config.from.iframe_translate_y}));var l=v._isLargeLayout(),u=o&&v._animationEnabled();if(T.toggleClass("et-fb-large-layout",l).toggleClass("et-fb-animation-disabled",!u),(0,h.isBFB)()&&"wireframe"!==e){var c=(0,h.$topWindow)("#postbox-container-2"),f=j.offset().top-parseInt(j.css("margin-top"),10);G=c.offset().top!==f}if(!(0,h.isBFB)()){if(!(0,h.isTB)()){var p=(0,h.getAdminBarHeight)();x.removeClass("et_fb_thin_admin_bar"),32===p&&x.addClass("et_fb_thin_admin_bar"),B.css({marginTop:"0px"})}(0,s.default)(["zoom","desktop"],e)&&(0,h.$appWindow)().trigger("resize")}if(v._maybeToggleDistractionFreeMode(),v._updateDOMForCurrentMode(),G){var _=j.offset().top-parseInt(j.css("margin-top"),10);T.animate({scrollTop:_-20},300)}return u&&!l&&"wireframe"!==e?(v._toggleStyleOverrides(),v.$in_viewport[0]&&!(0,h.isBFB)()&&v._scrollIntoView(v.$in_viewport[0]),v.is_animating=v._is_animating=!0,(0,h.isBFB)()&&!v._isBFBMobile()&&(T.addClass("et-fb-preview--animating"),B.addClass("et-fb-preview--animating")),setTimeout((function(){return v.is_animating=!1}),v.animation_config.duration),v._is_using_wheel=!1,(0,r.tween)(v.animation_config).start({update:v._animate,complete:v._complete})):(v._animate(v.animation_config.to),v._is_using_wheel=!1,v._complete(),v.is_mobile_preview&&!v.was_mobile_preview&&setTimeout((function(){(0,h.$topWindow)("#et_fb_rv_shadow").css("width",(0,d.default)(v.animation_config.to.iframe_width)?"".concat(v.animation_config.to.iframe_width,"px"):v.animation_config.to.iframe_width)}),25)),v.current_mode_width})),k(this,"cssTranslate",(function(e,t,n,o){e=(0,c.default)(e)?v.is_modal_snapped:e,t=t||v.current_mode_width,n=n||v.mode_widths.modal,o=o||(0,b.getModalPreferredSnapSettings)().snapLocation;var r={iframe_translate_x:0,iframe_translate_y:0};if((0,h.isBFB)()||!e||!(0,s.default)(["tablet","phone","zoom"],v.current_mode))return r;var a=(0,h.topViewportWidth)();return a-=t,a-=(0,h.maybeGetScrollbarWidth)(v.current_mode),"bottom"!==o&&(a-=n),a&&(a/=2),"left"===o?r.iframe_translate_x=00&&void 0!==arguments[0]?arguments[0]:"left",t=_.default.getModalSnapped(e);return(0,s.default)(["left","right"],e)&&t?_.default.getSnappedModalWidth():0})),k(this,"getContainerStyles",(function(e,t){var n=(0,s.default)(["left","right"],t),o=(0,h.$topWindow)((0,h.appWindow)().frameElement).width(),r={margin:"initial"},a=e.height?(0,h.$topWindow)().height()-e.height:(0,h.$topWindow)().height();(0,h.isBFB)()&&n&&((0,h.$topWindow)("#post-body").css("margin-right",0),(0,h.$topWindow)("body").css("margin-right","".concat(e.width,"px")));var i=v.getSanitizedAppFrameWidth(o,e.width,t),l=v.getContainerStylesTransform(i,e.width,t);switch(t){case"left":r.width=i,r.left="initial",r.right=0,r.transform=l;break;case"right":r.width=i,r.left=0,r.right="initial",r.transform=l;break;case"top":r.height=a,r.left=0,r.right="initial",r.top="initial",r.bottom=0;break;case"bottom":if(r.height=a,r.left=0,r.right=0,r.bottom="initial",r.transform=l,(0,h.isBFB)()||!(0,h.isTB)()&&!(0,s.default)(["phone","tablet","zoom"],v.current_mode))r.minHeight="auto";else{var u="zoom"===v.current_mode?2*parseInt(e.height):parseInt(e.height);r.margin="0 auto ".concat(u,"px")}}return r})),k(this,"getContainerStylesTransform",(function(e,t,n){var o=(0,s.default)(["left","right","top","bottom"],n),r=!(0,h.isBFB)()&&o;v.current_translate=v.cssTranslate(r,e,t,n);var a="zoom"===v.current_mode?.5:1,i="".concat(v.current_translate.iframe_translate_x,"px"),l="".concat(v.current_translate.iframe_translate_y,"px");return"scale(".concat(a,") translate(").concat(i,", ").concat(l,")")})),k(this,"getResponsiveWidths",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.PORTRAIT;return t.LANDSCAPE===e?{phone:_.default.getResponsivePhoneHeight(),tablet:_.default.getResponsiveTabletHeight()}:{phone:_.default.getResponsivePhoneWidth(),tablet:_.default.getResponsiveTabletWidth()}})),k(this,"getViewModeByWidth",(function(e){return[{maxWidth:parseInt(_.default.getResponsiveTabletWidth())-1,name:"phone"},{maxWidth:parseInt(_.default.getResponsiveMaximumWidth()),name:"tablet"},{maxWidth:Number.MAX_SAFE_INTEGER,name:"desktop"}].find((function(t){return t.maxWidth>=e})).name})),k(this,"getSanitizedAppFrameWidth",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return!1;var r=o||v.current_mode,a=(0,h.getIntegerValue)(e),i=00&&void 0!==arguments[0]?arguments[0]:0;if(!1===e)return!1;var t=(0,h.getIntegerValue)(e);return 0<=t&&t})),k(this,"handleAppFrameResize",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&(0,s.default)(["zoom","phone","tablet"],v.current_mode)){var n=_.default.isSettingsModalOpen()||!!_.default.getExtendStylesModal(),o=_.default.getSnappedModalWidth(),r=_.default.getSnappedModalLocation(),a=v.cssTranslate(n,e,o,r);if(C=(0,h.$topWindow)("#et-fb-app-frame, #et-bfb-app-frame, #et_fb_rv_shadow"),v.current_translate=a,!(0,h.isBFB)()&&!(0,h.isTB)()&&"zoom"===v.current_mode){var i=2*(0,h.$topWindow)("#wpadminbar").outerHeight();a.paddingTop="".concat(i,"px")}var l="scale(".concat("zoom"===v.current_mode?.5:1,")"),u="translate(".concat(a.iframe_translate_x,"px, ").concat(a.iframe_translate_y,"px)"),d=t||"".concat(l," ").concat(u),c=w({transform:d,width:(0,h.getFormattedPx)(e)},a);C.css(c)}if((0,h.isBFB)())return null;var f=v.optimumByWidth(v.current_mode,e),p=v.isResponsiveCompatibleViewMode(v.current_mode);return p&&f!==v.current_mode&&_.default.emitModuleSettingsChange(),setTimeout((function(){var e=(0,h.maybeGetScrollbarWidth)(v.current_mode);if((0,h.$topWindow)("style.et_fb_iframe_ancestor_style").remove(),(0,h.$topWindow)("head").append('")),(0,h.$topWindow)("style.et_fb_adminbar_style").remove(),(0,h.$topWindow)("head").append('")),(0,h.isTB)()){var t=_.default.getSnappedModalLocation(),n=e?(0,h.getFormattedPx)(e):"0px";M=(0,h.$topWindow)("#et_fb_rv_shadow"),_.default.getModalSnapped()&&(0,s.default)(["left","right"],t)?M.css({left:"left"===t?"initial":"0",right:"right"===t?"initial":"".concat(n)}):M.css({left:"-".concat(n),right:"0px"})}}),50),null})),k(this,"handleTopWindowResize",(function(e){if(v.$admin_content&&0!==v.$admin_content.length){(0,h.$topWindow)().width()>(0,u.default)(m.default,"wpAdmin.mobileAdminBar")?v.$admin_content.css("margin-left","".concat(v.$admin_menu.width(),"px")):v.$admin_content.css("margin-left","");var t="0px"===S.parents("#post-body").css("margin-".concat(V));v._isBFBMobile()&&"wireframe"===v.current_mode&&!t&&S.parents("#post-body").css("margin-".concat(V),"")}})),k(this,"handleTopDocumentColumnChange",(function(e){"wireframe"===v.current_mode&&v._repositionPublishMbox(v._isOneColumn()?"top":"original")})),k(this,"handleBFBAdminMenuManuallyFoldedChange",(function(e){v.bfbAdminMenuManuallyFolded=(0,h.$topWindow)("body").hasClass("folded"),A.toggleClass("et-manually-folded",v.bfbAdminMenuManuallyFolded)})),k(this,"initialize",(function(e){return v.preview_mode=e,v._updateDOMForCurrentMode(),(0,h.isBFB)()&&v.handleBFBAdminMenuManuallyFoldedChange(),v.activate(e,!0,!0,!A.hasClass("folded")||"wireframe"!==e),(0,h.isBFB)()&&("wireframe"===e&&v.handleTopDocumentColumnChange(),(0,h.$topWindow)().on("resize",v.handleTopWindowResize),(0,h.$topDocument)().on("postboxes-columnchange",v.handleTopDocumentColumnChange),(0,h.$topWindow)("#collapse-button").on("click",v.handleBFBAdminMenuManuallyFoldedChange)),(0,h.$appWindow)().off("wheel.ETBuilderPreviewModes"),(0,h.$topWindow)().off("wheel.ETBuilderPreviewModes"),(0,h.$appWindow)().on("wheel.ETBuilderPreviewModes",v.onWheel),(0,h.$topWindow)().on("wheel.ETBuilderPreviewModes",v.onWheel),v})),k(this,"isAnimating",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?v.is_animating:v._is_animating})),k(this,"optimumByWidth",(function(e,t){if(!t)return e;if(!v.isResponsiveCompatibleViewMode(e))return e;var n=e,o=v.getSanitizedAppFrameWidth(t,_.default.getSnappedModalWidth(),_.default.getSnappedModalLocation(),n);return _.default.getResponsiveMaximumWidth()>=o&&(n="tablet"),_.default.getResponsiveTabletWidth()>o&&(n="phone"),n})),k(this,"onWheel",(function(e){return v._is_using_wheel=!0})),k(this,"setContainerStyle",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];C=(0,h.$topWindow)("#et-fb-app-frame, #et-bfb-app-frame, #et_fb_rv_shadow");var n=(0,h.$appWindow)("body"),o=(0,h.$topWindow)("#et_fb_rv_shadow"),r=(0,h.isBFB)()?n:C;if(t||(v.is_animating=v._is_animating=!0),r.css(e),o.css({height:"".concat(n.outerHeight(),"px")}),(0,h.isBFB)()){var a=680+A.find("#adminmenu").width();A.toggleClass("et-bfb-small-screen",e.width&&e.width<=a)}t?v.handleAppFrameResize(e.width,e.transform):v.is_animating=v._is_animating=!1})),k(this,"waitForAnimation",(function(){return v._is_animating?new Promise((function(e){var t=setInterval((function(){v._is_animating||(clearInterval(t),e())}),50)})):Promise.resolve()})),P||(P=this,this.is_iframe?void(this.current_mode=n||this.current_mode):P)}var n,v,y;return n=t,v=[{key:"mode_class",get:function(){return"et-fb-preview--".concat(this.current_mode)}},{key:"isResponsiveViewMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current_mode;return(0,s.default)(["tablet","phone"],e)}},{key:"isResponsiveCompatibleViewMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current_mode;return(0,s.default)(["desktop","tablet","phone"],e)}},{key:"isSpecialScrollingViewMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current_mode;return(0,s.default)(["tablet","phone","zoom"],e)}},{key:"modeWidths",value:function(){var e,t,n,o=this,r=(0,h.topViewportWidth)(),a=_.default.getModalSnapped(),i=(0,b.getModalPreferredDimensions)(),l=(0,b.getModalPreferredSnapSettings)(),d=_.default.getBuilderDefaultsTabletView(),c=_.default.getBuilderDefaultsPhoneView(),f=d.width,p=c.width,g=0,v=0;if(a&&(0,s.default)(["left","right"],l.snapLocation)&&(g=i.width),(0,h.isTB)()&&(v=(0,h.maybeGetScrollbarWidth)(this.current_mode)),(0,h.isBFB)()){var y="wireframe"!==this.current_mode,w=y||a||this._isBFBMobile?42:64,O=y||a||this._isBFBMobile?0:278;e=t=n=r-(r<(0,u.default)(m.default,"wpAdmin.mobileAdminBar")?0:r<(0,u.default)(m.default,"wpAdmin.autoFoldAdminMenu")||y||o.bfbAdminMenuManuallyFolded?36:F)-w-O-g}else e=t=n=r-g-v;return{wireframe:e,zoom:t,desktop:n,tablet:f,phone:p,modal:g}}},{key:"resetCurrentTranslate",value:function(){this.current_translate={iframe_translate_x:0,iframe_translate_y:0}}}],y=[{key:"instance",value:function(e){return P||(P=new t(e)),P}}],v&&O(n.prototype,v),y&&O(n,y),t}();k(z,"PORTRAIT","portrait"),k(z,"LANDSCAPE","landscape");var q=z;t.default=q}).call(this,n(9),n(9))},function(e,t,n){var o=n(110);e.exports=function(e){return o(e)&&e!=+e}},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=ae(n(0)),a=ae(n(7)),i=ae(n(151)),l=ae(n(8)),u=ae(n(134)),s=ae(n(4)),d=ae(n(10)),c=ae(n(3)),f=ae(n(452)),p=ae(n(5)),h=ae(n(41)),_=ae(n(142)),m=ae(n(273)),g=ae(n(11)),b=ae(n(360)),v=ae(n(31)),y=ae(n(1)),w=ae(n(54)),O=ae(n(36)),k=ae(n(83)),S=ae(n(126)),E=ae(n(131)),M=ae(n(14)),C=ae(n(123)),P=ae(n(100)),T=ae(n(38)),A=ae(n(130)),B=ae(n(24)),x=ae(n(179)),j=n(116),N=ae(n(6)),R=ae(n(22)),I=ae(n(325)),L=ae(n(2)),D=n(574),V=n(704),F=ae(n(17)),W=re(n(39)),U=ae(n(15)),H=ae(n(1071)),G=ae(n(439)),z=re(n(345)),q=re(n(91)),$=ae(n(1076)),Y=ae(n(1077)),K=ae(n(1078)),X=ae(n(1079)),Q=ae(n(1080)),Z=n(707),J=n(49),ee=n(616),te=["extra"],ne=["extra"];function oe(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(oe=function(e){return e?n:t})(e)}function re(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=oe(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function ae(e){return e&&e.__esModule?e:{default:e}}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,r,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return a}(e,t)||ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){if(e){if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pe(e,t){for(var n=0;n0&&!r.endsWith(";"),u=r+(l?";":"")+F.default.getValueOnHover(n.key,o,""),s=(0,d.default)(n.selector)?"":n.selector;if(e=s,""!==u&&-1===e.indexOf("%%order_class%%")&&("custom_css_main_element"===n.key&&(0,d.default)(n.selector)||n.no_space_before_selector||(s=" ".concat(s)),e=i+s),""!==u&&t.updateStylesArray(e,u),W.default.isEnabled(n.key,o)){var c=W.default.getValue(n.key,o,"").split("||").join("");if(""!==c){var f=W.default.addStickyToSelectors(e,a);t.updateStylesArray(f,c)}}}))}},{key:"processAdvancedCSS",value:function(e){var t=this,n=ye(this),o=(0,d.default)(n)||(0,d.default)(n.advanced_common)?n:n.advanced_common,r=(0,g.default)({},this.props.attrs),a=(0,d.default)(n)||(0,d.default)(n.advanced_defaults)?{}:n.advanced_defaults,i=this.getMainElementSelector(),f=R.default.getComponentDefaults(this.props.type),h=[],m=this.allAttrsJson,M=(0,y.default)(this,"props.module_address",""),T=W.default.isStickyModule(M,r),x=W.default.canHaveStickyStyle(M,r),j=!(0,y.default)(this,"props.wrapperSettings.order_class_wrapper",!1)&&T;if(void 0!==o){var D=function(g){var O=arguments.length>1&&void 0!==arguments[1]&&arguments[1],E=(0,y.default)(o,g);if(E){var A=O||g;if(!(0,p.default)((0,y.default)(t,"props.skipOptions",[]),A)){var R=(0,y.default)(E,"css.important",""),D="all"===R||"plugin_only"===R&&L.default.condition("et_is_builder_plugin_active"),G=D||(0,y.default)(E,"css.important",!1),z=G?" !important":"",$=void 0!==E.css&&void 0!==E.css.main&&""!==E.css.main?E.css.main:i;switch(A){case"border":var Y=["et_pb_audio","et_pb_blurb","et_pb_cta","et_pb_circle_counter","et_pb_countdown_timer","et_pb_signup","et_pb_login","et_pb_number_counter","et_pb_team_member","et_pb_post_title","et_pb_search","et_pb_shop","et_pb_sidebar","et_pb_tabs","et_pb_testimonial","et_pb_text","et_pb_toggle"];(0,l.default)(U.default.getDevicesList(),(function(e){var o="desktop"===e,u=F.default.isHoverMode(),c=!o&&!u,f=g.replace("border",""),h="border_radii".concat(f),_="border_styles".concat(f),m=F.default.getSplitValueOnHover(h,r),b=u&&L.default.hasValue(m),v=U.default.isResponsiveEnabled(r,h),O="";o||!v||b?(o||u)&&(O=(0,B.default)(m||r[h]),(0,y.default)(a,h)):O=String(U.default.getAnyValue(r,"".concat(h,"_").concat(e),"",!0));var M=(0,y.default)($,"border_styles",i);if(M=M.replace(/%%parent_class%%/g,".".concat(t.props.type.replace("_item",""))),t._isDependsShowAllowed((0,y.default)(E,h),r)){var C=function(e){var t=e.split("|"),n=L.default.get(t[1],"0"),o=L.default.get(t[2],"0"),r=L.default.get(t[3],"0"),a=L.default.get(t[4],"0");return"border-radius: ".concat(n," ").concat(o," ").concat(r," ").concat(a).concat(z)},P=(0,d.default)($.border_radii)||(0,s.default)($.border_radii)?i:$.border_radii,A=P=P.replace(/%%parent_class%%/g,".".concat(t.props.type.replace("_item",""))),j=t.getBreakpointByDevice(e);if(L.default.hasValue(O)&&O!==(0,y.default)(a,h)){var N=C(O);"et_pb_video"===(0,y.default)(t,"props.type")&&(P+=" .et_pb_with_border",M+=" .et_pb_with_border",t.updateStylesArray(P,"position: relative",j)),(0,p.default)(["et_pb_social_media_follow","et_pb_social_media_follow_network"],(0,y.default)(t,"props.type"))||t.updateStylesArray(P,"overflow: hidden",j),t.updateStylesArray(P,N,j),L.default.isOn((0,y.default)(r,"parallax"))&&(0,p.default)(["et_pb_section","et_pb_row","et_pb_audio","et_pb_blurb","et_pb_cta","et_pb_circle_counter","et_pb_countdown_timer","et_pb_signup","et_pb_login","et_pb_number_counter","et_pb_team_member","et_pb_post_title","et_pb_search","et_pb_shop","et_pb_sidebar","et_pb_tabs","et_pb_testimonial","et_pb_text","et_pb_toggle"],(0,y.default)(t,"props.type"))&&t.updateStylesArray("%%order_class%% > .et_parallax_bg_wrap",N,j)}if(o&&x&&W.default.isEnabled(h,r)){var R=C(W.default.getValue(h,r,""));A=W.default.addStickyToSelectors(A,T),"et_pb_video"===(0,y.default)(t,"props.type")&&(A+=" .et_pb_with_border",t.updateStylesArray(A,"position: relative",j)),(0,p.default)(["et_pb_social_media_follow","et_pb_social_media_follow_network"],(0,y.default)(t,"props.type"))||t.updateStylesArray(A,"overflow: hidden",j),t.updateStylesArray(A,R,j),L.default.isOn((0,y.default)(r,"parallax"))&&(0,p.default)(Y,(0,y.default)(t,"props.type"))&&t.updateStylesArray(W.default.addStickyToOrderClass("%%order_class%% > .et_parallax_bg_wrap",T),R,j)}}if(t._isDependsShowAllowed((0,y.default)(E,_),r)){var I=["width","style","color"],D={},V={};if(!(0,y.default)(n,"border_styles".concat(f,".composite_structure")))return;(0,l.default)(["top","right","bottom","left"],(function(t){(0,l.default)(I,(function(n){var a=function(t,n){var a="border_".concat(n,"_all").concat(f),i="border_".concat(n,"_").concat(t).concat(f),l=U.default.isResponsiveEnabled(r,a),s=U.default.isResponsiveEnabled(r,i),d=(F.default.isEnabled(a,r),F.default.isEnabled(i,r)),p="";c&&l?p=U.default.getAnyValue(r,"".concat(a,"_").concat(e)):u?p=F.default.getHoverOrNormalOnHover(a,r):o&&(p=(0,y.default)(r,a,""));var h="";return c?h=s?U.default.getAnyValue(r,"".concat(i,"_").concat(e),"",!0):(0,y.default)(r,i,""):u?h=d?F.default.getHoverOrNormalOnHover(i,r):(0,y.default)(r,i,""):o&&(h=(0,y.default)(r,i,"")),h||p}(t,n);if(o&&x){var i=function(e,t){var n="border_".concat(t,"_all").concat(f),o="border_".concat(t,"_").concat(e).concat(f),a=x&&W.default.isEnabled(n,r),i=x&&W.default.isEnabled(o,r),l=a?W.default.getValue(n,r):"";return(i?W.default.getValue(o,r):"")||l}(t,n);i&&("width"===n&&(i=L.default.processRangeValue(i)),(0,w.default)(V,[n,t],i))}if(a){if("color"===n&&"off"===a)return;"width"===n&&(a=L.default.processRangeValue(a)),(0,w.default)(D,[n,t],a)}}))}));var H=function(n,o){var r;(0,l.default)(o,(function(o,a){var i=(0,k.default)(o),u=4===i.length;u&&1===(0,S.default)(i).length?r="border-".concat(a,":").concat(i[0]).concat(z,";"):u&&o.top===o.bottom&&o.left===o.right?r="border-".concat(a,":").concat(o.top," ").concat(o.left).concat(z,";"):u?r="border-".concat(a,":").concat(o.top," ").concat(o.right," ").concat(o.bottom," ").concat(o.left).concat(z,";"):(r="",(0,l.default)(o,(function(e,t){return r+="border-".concat(t,"-").concat(a,":").concat(e).concat(z,";")})));var s=t.getBreakpointByDevice(e);t.updateStylesArray(n,r,s)}))};if(H(M,D),o&&!(0,s.default)(V)){var G="";G=M.indexOf(",")>-1?W.default.addStickyToOrderClass(M):".et_pb_sticky".concat(T?"":" ").concat(M),H(G,V)}}}));break;case"text":var K=(0,y.default)(E,"css.text_orientation");if(L.default.hasValue(K)){var X=L.default.getTextOrientation((0,y.default)(a,"text_orientation","")),Q=L.default.getTextOrientation(r.text_orientation);L.default.hasValue(Q)&&X!==Q&&t.updateStylesArray(K,"text-align: ".concat(Q));var Z=L.default.getTextOrientation(U.default.getAnyValue(r,"text_orientation_tablet",X));L.default.hasValue(Z)&&t.updateStylesArray(K,"text-align: ".concat(Z),U.default.getBreakpointByDevice("tablet"));var J=L.default.getTextOrientation(U.default.getAnyValue(r,"text_orientation_phone",X));L.default.hasValue(J)&&t.updateStylesArray(K,"text-align: ".concat(J),U.default.getBreakpointByDevice("phone"))}break;case"margin_padding":var ee=["top","right","bottom","left"],te=G&&"all"===E.css.important,ne="et_pb_image"===t.props.type,oe=L.default.isOn(t.props.attrs.always_center_on_mobile),re={margin:{},padding:{}};re.margin.desktop=String(F.default.getSplitValueOnHover("custom_margin",r,"|")||(0,y.default)(r,"custom_margin","")).split("|"),L.default.getResponsiveStatus(r.custom_margin_last_edited)&&(re.margin.tablet=void 0!==r.custom_margin_tablet&&""!==r.custom_margin_tablet?r.custom_margin_tablet.split("|"):"",re.margin.phone=void 0!==r.custom_margin_phone&&""!==r.custom_margin_phone?r.custom_margin_phone.split("|"):""),re.padding.desktop=String(F.default.getSplitValueOnHover("custom_padding",r,"|")||(0,y.default)(r,"custom_padding","")).split("|"),L.default.getResponsiveStatus(r.custom_padding_last_edited)&&(re.padding.tablet=void 0!==r.custom_padding_tablet&&""!==r.custom_padding_tablet?r.custom_padding_tablet.split("|"):"",re.padding.phone=void 0!==r.custom_padding_phone&&""!==r.custom_padding_phone?r.custom_padding_phone.split("|"):""),(0,l.default)(["margin","padding"],(function(e){var n="custom_".concat(e),o=W.default.getValue(n,r,"").split("|"),a=x&&W.default.isEnabled(n,r),i="margin"===e?(0,y.default)(E,"css.margin",$):(0,y.default)(E,"css.padding",$),d=z;G&&!te&&(d=-1!==(0,u.default)(E.css.important,n)?" !important":""),(0,s.default)(re[e])||(0,l.default)(re[e],(function(n,f){if(!(0,s.default)(n)||!(0,s.default)(o)){"padding"===e&&!L.default.getResponsiveStatus(r.custom_padding_last_edited)&&"desktop"===f&&L.default.hasValue(r.padding_mobile)&&L.default.isOff(r.padding_mobile)&&(f="desktop_only"),(0,c.default)(n)&&2===(0,_.default)(n)&&(n=[n[0],"",n[1],""]);var h=t.getBreakpointByDevice(f),m=(0,y.default)(r,"module_alignment","");(0,l.default)(ee,(function(r,l){var s=(0,p.default)([1,3],l);ne&&oe&&s&&(i=".et_always_center_on_mobile".concat(i,", ").concat(i));var c=(0,y.default)(n,l,"");if("margin"===e){if("left"===m&&"right"===r)return;if("center"===m&&-1!==(0,u.default)(["left","right"],r))return;if("right"===m&&"left"===r)return}var _=(0,y.default)(E,["css","".concat(e,"-").concat(r)],!1);if(""!==c){var g=q.default.isAcceptableCSSStringValue(e,c)?c:L.default.processRangeValue(c),b="".concat(e,"-").concat(r,": ").concat(g).concat(d,";");_&&t.updateStylesArray(_,b,h),t.updateStylesArray(i,b,h)}if(a&&(0,p.default)(["desktop","desktop_only"],f)){var v=(0,y.default)(o,l,c);if(c!==v){var w=q.default.isAcceptableCSSStringValue(e,v)?v:L.default.processRangeValue(v),O="".concat(e,"-").concat(r,": ").concat(w).concat(d,";");_&&t.updateStylesArray(W.default.addStickyToSelectors(_,T),O,h),t.updateStylesArray(W.default.addStickyToSelectors(i,T),O,h)}}}))}}))}));break;case"image_icon":var ae=(0,y.default)(o,"image_icon.image_icon"),ie=(0,y.default)(ae,"css.important",""),ue="all"===ie||"plugin_only"===ie&&L.default.condition("et_is_builder_plugin_active"),se=ue||(0,y.default)(ae,"css.important",!1),de=se?" !important":"",fe=void 0!==ae.css&&void 0!==ae.css.main&&""!==ae.css.main?ae.css.main:i,pe=["top","right","bottom","left"],he=se&&"all"===ae.css.important,_e={margin:{},padding:{}};_e.margin.desktop=String(F.default.getSplitValueOnHover("image_icon_custom_margin",r,"|")||(0,y.default)(r,"image_icon_custom_margin","")).split("|"),L.default.getResponsiveStatus(r.image_icon_custom_margin_last_edited)&&(_e.margin.tablet=void 0!==r.image_icon_custom_margin_tablet&&""!==r.image_icon_custom_margin_tablet?r.image_icon_custom_margin_tablet.split("|"):"",_e.margin.phone=void 0!==r.image_icon_custom_margin_phone&&""!==r.image_icon_custom_margin_phone?r.image_icon_custom_margin_phone.split("|"):""),_e.padding.desktop=String(F.default.getSplitValueOnHover("image_icon_custom_padding",r,"|")||(0,y.default)(r,"image_icon_custom_padding","")).split("|"),L.default.getResponsiveStatus(r.image_icon_custom_padding_last_edited)&&(_e.padding.tablet=void 0!==r.image_icon_custom_padding_tablet&&""!==r.image_icon_custom_padding_tablet?r.image_icon_custom_padding_tablet.split("|"):"",_e.padding.phone=void 0!==r.image_icon_custom_padding_phone&&""!==r.image_icon_custom_padding_phone?r.image_icon_custom_padding_phone.split("|"):""),(0,l.default)(["margin","padding"],(function(e){var n="image_icon_custom_".concat(e),o=W.default.getValue(n,r,"").split("|"),a=x&&W.default.isEnabled(n,r),i="margin"===e?(0,y.default)(ae,"css.margin",fe):(0,y.default)(ae,"css.padding",fe),d=de;se&&!he&&(d=-1!==(0,u.default)(ae.css.important,n)?" !important":""),(0,s.default)(_e[e])||(0,l.default)(_e[e],(function(n,u){if(!(0,s.default)(n)||!(0,s.default)(o)){"padding"===e&&!L.default.getResponsiveStatus(r.image_icon_custom_padding_last_edited)&&"desktop"===u&&L.default.hasValue(r.padding_mobile)&&L.default.isOff(r.padding_mobile)&&(u="desktop_only"),(0,c.default)(n)&&2===(0,_.default)(n)&&(n=[n[0],"",n[1],""]);var f=t.getBreakpointByDevice(u);(0,l.default)(pe,(function(r,l){var s=(0,y.default)(n,l,""),c=(0,y.default)(ae,["css","".concat(e,"-").concat(r)],!1);if(""!==s){var h=q.default.isAcceptableCSSStringValue(e,s)?s:L.default.processRangeValue(s),_="".concat(e,"-").concat(r,": ").concat(h).concat(d,";");c&&t.updateStylesArray(c,_,f),t.updateStylesArray(i,_,f)}if(a&&(0,p.default)(["desktop","desktop_only"],u)){var m=(0,y.default)(o,l,s);if(s!==m){var g=q.default.isAcceptableCSSStringValue(e,m)?m:L.default.processRangeValue(m),b="".concat(e,"-").concat(r,": ").concat(g).concat(d,";");c&&t.updateStylesArray(W.default.addStickyToSelectors(c,T),b,f),t.updateStylesArray(W.default.addStickyToSelectors(i,T),b,f)}}}))}}))}));break;case"background":var me=F.default.isHoverMode()&&F.default.isEnabled("background",r),ge=W.default.isStickyMode()&&W.default.canHaveStickyStyle(M,r)&&W.default.isEnabled("background",r),be=U.default.isResponsiveEnabled(r,"background"),ye=!(0,d.default)(t.props.parentAttrs)&&!(0,s.default)(t.props.parentAttrs),we=function(e,t){var n=(0,y.default)(f,e);return me||ge?n:U.default.getDefaultValue(r,U.default.getFieldName(e,t),n)},Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=(0,p.default)(["hover","sticky"],t)?"desktop":t,l=U.default.getFieldName(e,i),u="desktop"===i||be,s=u?U.default.getAnyValue(r,l,n,o):"";return me||"sticky"===t?(ye&&(n=U.default.getAnyValue(r,l,"",!0)||n),a&&(s=(0,y.default)(r,e,n)),me?(0,y.default)(r,F.default.getHoverField(e))||s:"sticky"===t?(0,y.default)(r,W.default.getStickyField(e))||s:n):s},ke=(0,y.default)(E,"has_background_color_toggle",!1),Se=(0,y.default)(E,"use_background_color",!0),Ee=(0,y.default)(E,"use_background_color_gradient",!0),Me=(0,y.default)(E,"use_background_image",!0),Ce=(0,y.default)(E,"use_background_color_reset",!0),Pe={desktop:!1,tablet:!1,phone:!1},Te="",Ae=!1,Be=(0,P.default)((0,y.default)(t,"props.dynamic",{}),"value");(0,p.default)(ETBuilderBackend.modulesFeaturedImageBackground,(0,y.default)(t,"props.type"))&&L.default.isOn(r.featured_image)&&"background"===r.featured_placement&&L.default.hasValue(ETBuilderBackend.currentPage.thumbnailUrl)&&(e=ETBuilderBackend.currentPage.thumbnailUrl,Ae=!0);var xe=function(n){var o=[],a=(0,p.default)(["hover","sticky"],n)?"desktop":n,i="desktop"===a,l=U.default.getBreakpointByDevice(a),u=(0,y.default)(E,"css.main",(0,y.default)(t,"props.main_css_element","%%order_class%%")),d=U.default.getInheritanceBackgroundValue(r,"use_background_color_gradient",n,"background"),c=(0,y.default)(d,"value"),h=Oe("use_background_color",n,"",!0),_=L.default.isOff(h),m=U.default.getInheritanceBackgroundValue(r,"background_color",n,"background"),g="";"hover"===n?g="transparent":i||"sticky"===n||(g="initial");var b=""!==m.value?m.value:g;if(!Ae&&(e="",!(0,s.default)(Be))){var v=(0,C.default)(r,["background_enable_image","background_enable_image_tablet","background_enable_image_phone","background_enable_image__hover","background_enable_image__sticky"]),w=ce(ce({},Be),v),O=U.default.getInheritanceBackgroundValue(w,"background_image",n,"background");e=""!==O.value?O.value:e}var k="",S=[],M=!1,P=!1,T=!1,A=!1,B=!1;if(Ee&&"fields_only"!==Ee&&L.default.isOn(c)){P=!0;var x=Oe("background_color_gradient_start",n,"",!0),j=Oe("background_color_gradient_end",n,"",!0),N=L.default.getGradient({type:Oe("background_color_gradient_type",n,"",!0),direction:Oe("background_color_gradient_direction",n,"",!0),radialDirection:Oe("background_color_gradient_direction_radial",n,"",!0),colorStart:I.default.getColorValue(x)||x,colorEnd:I.default.getColorValue(j)||j,startPosition:Oe("background_color_gradient_start_position",n,"",!0),endPosition:Oe("background_color_gradient_end_position",n,"",!0)});S.push(N)}else L.default.isOff(c)&&(B=!0);var R=Oe("parallax",n,"",!0),D=L.default.hasValue(e)&&!L.default.isOn(R);if(Pe[a]=D,Me&&"fields_only"!==Me&&D){M=!0,S.push("url(".concat(e,")"));var V=!0;i||me||(V="tablet"===a?Pe.desktop:Pe.tablet);var F=(0,y.default)(f,"background_size"),W=V?we("background_size",a):"",H=Oe("background_size",n,F,!0,!0);L.default.hasValue(H)&&H!==W&&o.push({selector:u,declaration:"background-size: ".concat(H),breakpoint:l});var G=(0,y.default)(f,"background_position"),q=V?we("background_position",a):"",$=Oe("background_position",n,G,!0,!0);L.default.hasValue($)&&$!==q&&o.push({selector:u,declaration:"background-position: ".concat($.replace("_"," ")),breakpoint:l});var Y=(0,y.default)(f,"background_repeat"),K=V?we("background_repeat",a):"",X=Oe("background_repeat",n,Y,!0,!0);L.default.hasValue(X)&&X!==K&&o.push({selector:u,declaration:"background-repeat: ".concat(X),breakpoint:l});var Q=(0,y.default)(f,"background_blend"),Z=Oe("background_blend",n,Q,!V,!0),J=Oe("background_blend",n,"",!0,!0);L.default.hasValue(J)&&(L.default.hasValue(Z)&&o.push({selector:u,declaration:"background-blend-mode: ".concat(Z),breakpoint:l}),P&&M&&"fields_only"!==Ce&&J!==Q&&(T=!0,o.push({selector:u,declaration:"background-color: initial".concat(z,";"),breakpoint:l})),Te=J)}else L.default.hasValue(e)||(L.default.hasValue(Te)&&(o.push({selector:u,declaration:"background-blend-mode: normal",breakpoint:l}),Te=""),A=!0);if(S.length>0){var ee=Oe("background_color_gradient_overlays_image",n,"off",!0);L.default.isOn(ee)||S.reverse(),S=S.join(", "),o.push({selector:u,declaration:"background-image: ".concat(S).concat(z,";"),breakpoint:l})}else"et_pb_counter"!==t.props.type&&B&&A&&o.push({selector:u,declaration:"background-image: initial ".concat(z,";"),breakpoint:l});var te=Se&&"fields_only"!==Se,ne=L.default.hasValue(b)&&!_&&!T,oe=ke&&_&&!i;return te&&(ne?(k="background-color:".concat(b).concat(z,";"),o.push({selector:u,declaration:k,breakpoint:l})):oe&&(k="background-color: initial ".concat(z,";"),o.push({selector:u,declaration:k,breakpoint:l}))),o};if((0,l.default)(U.default.getDevicesList(),(function(e){if("desktop"===e||U.default.isResponsiveEnabled(r,"background")){var n=e;me&&(n="hover");var o=xe(n);(0,l.default)(o,(function(e){t.updateStylesArray.apply(t,le((0,k.default)(e)))}))}})),x&&W.default.isEnabled("background",r)){var je=xe("sticky");(0,l.default)(je,(function(e){var n=W.default.addStickyToOrderClass(e.selector,T);t.updateStylesArray(n,e.declaration,"general")}))}break;case"fonts":var Ne=["font","font_size","text_color","text_align","letter_spacing","line_height","all_caps"];(0,l.default)(E,(function(e,n){G=!(void 0===e.css||!e.css.important&&!e.css.use_important);var o=(0,d.default)(e.sub_toggle)?"":e.sub_toggle;"quote"===o?Ne.push("border_weight","border_color"):(0,p.default)(["ul","ol"],o)&&Ne.push("type","position","item_indent"),z=G?" !important":"";var a=(0,d.default)(e.css)||(0,d.default)(e.css.main)?$:e.css.main;L.default.condition("et_is_builder_plugin_active")&&(0,y.default)(e,"css.limited_main",!1)&&(a=e.css.limited_main),(0,l.default)(Ne,(function(i){var d="".concat(n,"_").concat(i);if(-1!==m.indexOf(d)&&!(0,y.default)(e,"hide_".concat(i),!1)){var h=i.replace("_","-"),_={},g=void 0!==e.css&&void 0!==e.css[t._prepareSlug(i)]?e.css[t._prepareSlug(i)]:a,v=void 0!==e.css&&void 0!==e.css.placeholder,w="",O=(0,y.default)(e,"css.important",""),k="all"===O||("plugin_only"===O||(0,c.default)(O)&&(0,p.default)(O,"plugin_all"))&&L.default.condition("et_is_builder_plugin_active"),S=!1,E="",M=function e(t){switch(t){case"phone":return(0,y.default)(_,"tablet",e("tablet"));case"tablet":return(0,y.default)(_,"desktop",e());default:return(0,y.default)(f,d,"")}},C=W.default.getValue(d,r,"");_.desktop=F.default.getHoverOrNormalOnHover(d,r)||"",L.default.getResponsiveStatus(r["".concat(d,"_last_edited")])&&(_.tablet=(0,y.default)(r,"".concat(d,"_tablet"),""),_.phone=(0,y.default)(r,"".concat(d,"_phone"),"")),""===C&&""===_.desktop&&""===_.tablet&&""===_.phone||(0,l.default)(_,(function(f,_){if("text-color"===h&&f===M(_)){var m=(0,y.default)(e,"text_color.old_option_ref","");f=""!==m&&(0,y.default)(t.props.attrs,m,!1)?(0,y.default)(t.props.attrs,m,""):""}"text-align"===h&&(f=L.default.getTextOrientation(f),C=L.default.getTextOrientation(C));var O=""!==f&&M(_)!==f,P="desktop"===_&&""!==C,A=t.getBreakpointByDevice(_);if(O||P){if(G){var B=i;switch(i){case"font_size":B="size";break;case"letter_spacing":case"line_height":B=h}S=!(!k&&-1===(0,u.default)(e.css.important,B)),E=S?" !important":""}if("text_color"===i&&(E=" !important"),"font"===i){var j=(0,s.default)(M())?"||||":M();if("||||"!==j){var N=j.split("|"),R=f.split("|");if(N.length===R.length){var I=[];(0,l.default)(N,(function(e,t){var n=e;!(0,s.default)(e)&&(0,s.default)(R[t])||(n=""),I.push(n)})),(0,s.default)(I)||I.length!==N.length||(j=I.join("|"))}}L.default.hasValue(f)&&(w=L.default.setElementFont(f,S,j)),A=H.default.getBreakpointByFontValue(r,d,_,A)}else if("all_caps"===i)L.default.isOn(r["".concat(n,"_all_caps")])&&(w="text-transform: uppercase".concat(E,";"));else{"text-color"===h&&(h="color"),"quote"===o?"border-weight"===h&&(h="border-width"):(0,p.default)(["ul","ol"],o)&&("type"===h?(h="list-style-type",E=" !important"):"position"===h?h="list-style-position":"item-indent"===h&&(h="padding-left",E=" !important")),(0,p.default)(["font_size","letter_spacing","line_height"],i)&&(f=L.default.processRangeValue(f,i),C=L.default.processRangeValue(C,i));var D=x&&W.default.isEnabled(d,r)&&L.default.hasValue(C);if("desktop"===_&&D){var V=(0,b.default)(W.default.addStickyToSelectors(g,T)),F="".concat(h,":").concat(C).concat(E,";");(0,l.default)(V,(function(e){t.updateStylesArray(e,F,"general")}))}L.default.hasValue(f)&&(w="".concat(h,":").concat(f).concat(E,";"))}if("line_height"===i&&g!==a&&t.updateStylesArray(a,w,A),Array.isArray(g)?(0,l.default)(g,(function(e){t.updateStylesArray(e,w,A)})):(t.updateStylesArray(g,w,A),v&&(0,l.default)(["::-webkit-input-placeholder","::-moz-placeholder","::-ms-input-placeholder"],(function(e){t.updateStylesArray(g+e,w,A)}))),"desktop"!==_&&"font"===i){var z=U.default.getDefaultValue(r,"".concat(d,"_").concat(_)),q=L.default.setResetFontStyle(f,z,S),$=(0,c.default)(g)?g.join(", "):g;(0,s.default)(q)||t.updateStylesArray($,q,A)}}}))}}))}));break;case"button":(0,l.default)(E,(function(e,n){if(z=(0,y.default)(e,"css.important",!1)?" !important":"",(0,y.default)(e,"use_alignment",!1)){var o=(0,y.default)(e,"css.alignment","");if(L.default.hasValue(o)&&L.default.hasValue(o)){var a=U.default.getPropertyValues(r,"".concat(n,"_alignment"));(0,l.default)(a,(function(e,n){if(L.default.hasValue(e)){var r=U.default.getBreakpointByDevice(n);t.updateStylesArray(o,"text-align: ".concat(e,";"),r)}}))}}if("on"===r["custom_".concat(n)]){var i=(0,y.default)(e,"hide_icon",!1),u=(0,y.default)(e,"hide_custom_padding",!1),c=["text_size","text_color","border_width","border_color","border_radius","font","letter_spacing","use_icon","icon","icon_color","icon_placement","on_hover",F.default.getHoverField("bg_color"),F.default.getHoverField("text_size"),F.default.getHoverField("text_color"),F.default.getHoverField("border_color"),F.default.getHoverField("border_width"),F.default.getHoverField("border_radius"),F.default.getHoverField("letter_spacing")],h=["text_size","text_color","border_width","border_color","border_radius","icon_color","letter_spacing"],_=N.default.getHoverMode()&&F.default.isEnabled("".concat(n,"_text_size"),r)?F.default.hoverSuffix():"",m=(0,y.default)(r,"".concat(n,"_text_size").concat(_))||"20px",g=(0,d.default)(e.css)||(0,d.default)(e.css.main)?"".concat($," .et_pb_button"):e.css.main,b=ETBuilderBackend.builderOptions.all_buttons_icon,v=L.default.condition("is_bfb");L.default.condition("et_is_builder_plugin_active")&&(0,y.default)(e,"css.limited_main",!1)&&(g=e.css.limited_main);var w=g;L.default.condition("et_is_builder_plugin_active")||(w="body #page-container".concat(v?"-bfb":""," ").concat(w)),(0,l.default)(c,(function(e){var o=r["".concat(n,"_").concat(e)],a="",i="",l="",u="";switch(e){case"text_color":a="color",i=" !important";break;case"text_size":a="font-size",i=" !important";break;case"use_icon":case"icon":case"icon_color":case"icon_placement":case"on_hover":o="";break;case F.default.getHoverField("bg_color"):case F.default.getHoverField("text_size"):case F.default.getHoverField("text_color"):case F.default.getHoverField("border_color"):case F.default.getHoverField("border_radius"):case F.default.getHoverField("border_width"):case F.default.getHoverField("letter_spacing"):if(!F.default.isEnabled("".concat(n,"_").concat(e),r))break;F.default.getHoverField("bg_color")===e?(a="background-color",i=" !important"):F.default.getHoverField("text_size")===e?(a="font-size",i=" !important"):F.default.getHoverField("text_color")===e?(a="color",i=" !important"):F.default.getHoverField("letter_spacing")===e?(a="letter-spacing",i=" !important"):(a=e.replace(F.default.hoverSuffix(),"").replace("_","-"),i=F.default.getHoverField("border_color")===e?" !important":""),u=N.default.getHoverMode()?"":":hover";break;default:a=e.replace("_","-"),"border_width"!==e&&F.default.getHoverField("border_width")!==e||(i=" !important")}if(""!==o&&(0,p.default)([F.default.getHoverField("border_radius"),"border_radius"],e)&&L.default.condition("et_is_builder_plugin_active")&&(i=" !important"),x&&h.includes(e)){var s="".concat(n,"_").concat(e),c=W.default.addStickyToOrderClass(w,j),_=W.default.getValue(s,r);if(isNaN(parseFloat(_))||(_=L.default.processRangeValue(_)),L.default.hasValue(_)&&L.default.hasValue(a)){var m="".concat(a,": ").concat(_).concat(i);t.updateStylesArray(c,m)}}((0,d.default)(o)||""===o||""===a)&&"font"!==e||(0,y.default)(f,"".concat(n,"_").concat(e),"")===o||(l="font"===e?L.default.setElementFont(o,!0):""!==l||isNaN(parseFloat(o))?"".concat(a,":").concat(o).concat(i):"".concat(a,":").concat(L.default.processRangeValue(o)).concat(i),t.updateStylesArray(w+u,l))})),(0,l.default)(["text_size","text_color","border_width","border_color","border_radius","font","icon_color","letter_spacing"],(function(e){var o=r["".concat(n,"_").concat(e,"_last_edited")],a=L.default.getResponsiveStatus(o)?["tablet","phone"]:[];(0,l.default)(a,(function(o){var a="desktop"===o?"":"_".concat(o),i=r["".concat(n,"_").concat(e).concat(a)],l=t.getBreakpointByDevice(o),u="",s="",d="";if(!("desktop"!==o&&F.default.isHoverMode()&&F.default.isEnabled("".concat(n,"_").concat(e),r)||("text_size"===e&&"desktop"===o&&(i=m),""===i||i===(0,y.default)(f,"".concat(n,"_").concat(e),"")))){switch(e){case"text_size":u="font-size";break;case"text_color":u="color";break;case F.default.getHoverField("letter_spacing"):if(!F.default.isEnabled("".concat(n,"_").concat(e),r))break;u=F.default.getHoverField("letter_spacing")===e?"letter-spacing":e.replace(F.default.hoverSuffix(),"").replace("_","-"),d=N.default.getHoverMode()?"":":hover";break;default:u=e.replace("_","-")}(0,p.default)(["border_width","border_radius"],e)&&(i=L.default.processRangeValue(i)),(0,p.default)(["letter_spacing",F.default.getHoverField("letter_spacing")],e)&&(i=q.default.sanitizeInputUnit(i)),i!==(0,y.default)(f,"".concat(n,"_").concat(e),"")&&(s="".concat(u,":").concat(i," !important"),"font"===e&&(s=L.default.setElementFont(i,!0)),t.updateStylesArray(w+d,s,l),":hover"!==d&&t.updateStylesArray(w,s,l))}}))}));var O="".concat(n,"_bg"),k={};k["use_".concat(O,"_color_gradient")]="".concat(O,"_use_color_gradient"),k["".concat(O)]="".concat(O,"_color");var S=(0,V.getBackgroundStyle)({basePropName:O,propNameAliases:k,address:M,attrs:r,important:(0,y.default)(e,"css.important",!1)?" !important":"",renderSlug:(0,y.default)(t,"props.type",""),selector:w,selectorSticky:W.default.addStickyToOrderClass(w,j),use_background_video:!1});(0,s.default)(S)||(0,l.default)(S,(function(e){var n=e.selector,o=e.declaration,r=e.device;t.updateStylesArray(n,o,U.default.getBreakpointByDevice(r))}));var E="";(0,l.default)(U.default.getDevicesList(),(function(e){var o=U.default.getBreakpointByDevice(e),a=U.default.getPropertyValue(r,"".concat(n,"_on_hover"),r["".concat(n,"_on_hover")],e,!1,!0),l="left"===U.default.getPropertyValue(r,"".concat(n,"_icon_placement"),r["".concat(n,"_icon_placement")],e,!1,!0),d=l?":before":":after",c=U.default.getPropertyValue(r,"".concat(n,"_icon"),r["".concat(n,"_icon")],e,!1,!0),f=(0,s.default)(c)?"35":L.default.processFontIcon(c),p=U.default.getPropertyValue(r,"".concat(n,"_icon_color"),"",e,!0),h=r["".concat(n,"_use_icon")];if(i&&(h="off"),!("default"===h&&L.default.isNo(b)||u)&&"desktop"!==e){var _="et_pb_button"===t.props.type?"custom_padding":"".concat(n,"_custom_padding"),v=U.default.getFieldName(_,e),O=U.default.getAnyValue(r,_,"",!0,e),k=U.default.getDefaultValue(r,v);O=O.split("|"),k=k.split("|");var S=(0,y.default)(O,"1"),M=(0,y.default)(O,"3"),C=(0,y.default)(k,"1"),P=(0,y.default)(k,"3"),T="",A="";!S&&C&&(T="1em",A=l?"2em":"0.7em","off"===a&&(T=l?"2em":"0.7em",A=""));var B="",N="";!M&&P&&(B="1em",N=l?"0.7em":"2em","off"===a&&(B=l?"0.7em":"2em",N=""));var R=!L.default.isOff(r.button_use_icon)&&L.default.isNo(b)?" !important":"";t.updateStylesArray(w,"padding-left: ".concat(B," ").concat(R,"; padding-right: ").concat(T," ").concat(R,";"),o),t.updateStylesArray("".concat(w,":hover"),"padding-left: ".concat(N," ").concat(R,"; padding-right: ").concat(A," ").concat(R,";"),o)}if("off"===h){if(u)return;var I=(0,y.default)(r,"custom_padding","");if("et_pb_button"!==(0,y.default)(t,"props.type","")&&(I=(0,y.default)(r,"".concat(n,"_custom_padding"),"")),(0,s.default)(I))t.updateStylesArray(g,"padding: 0.3em 1em !important;");else{var D=I.split("|");(0,s.default)((0,y.default)(D,"1",""))&&t.updateStylesArray(g,"padding-right: 1em !important;"),(0,s.default)((0,y.default)(D,"3",""))&&t.updateStylesArray(g,"padding-left: 1em !important;")}t.updateStylesArray("".concat(w,":after"),"display:none !important;")}else{var V="",F="",H="desktop"!==e&&E!==f?"-".concat(e):"",G=U.default.getPreviousDevice(e),z=U.default.getValue(r,"".concat(n,"_icon"),"",G),q=U.default.getValue(r,"".concat(n,"_icon"),"",e),$=U.default.getDefaultValue(r,"".concat(n,"_icon_").concat(e));if("desktop"!==e&&(0,s.default)(q)&&!(0,s.default)($)&&(H="desktop"===G||"phone"===e&&(0,s.default)(z)?"":"-".concat(G)),V+=(0,s.default)(p)?"":"color: ".concat(p,";"),"desktop"===e&&x){var Y=W.default.getValue("".concat(n,"_icon_color"),r,p),K=W.default.addStickyToOrderClass("".concat(w).concat(d),j);L.default.hasValue(Y)&&p!==Y&&t.updateStylesArray(K,"color: ".concat(Y,";"),o)}if(""!==f){var X=l?"margin-right":"margin-left",Q=l?"right":"left",Z=L.default.isOff(a)&&!l,J=L.default.isOn(a)||Z?"0.3em":"0";if(V+="line-height: inherit;",V+="font-size:inherit !important;","off"!==a){var ee=l?"right":"left";V+="margin-left: ".concat(l?"-1.3em":"-1em","; ").concat(ee,": auto;")}F+="".concat(X,": ").concat(J,"; ").concat(Q,": auto;")}if(l){if("35"!==f){var te="content: attr(data-icon".concat(H,");");t.updateStylesArray("".concat(w,":after"),"display: none;",o),t.updateStylesArray("".concat(w,":before"),"".concat(te," font-family: '").concat(L.default.getExtendedIconFontFamily(c),"' !important;"),o),t.updateStylesArray("".concat(w,":before"),"".concat(te," font-weight: ").concat(L.default.getExtendedIconFontWeight(c)," !important;"),o)}L.default.condition("et_is_builder_plugin_active")&&t.updateStylesArray(".et_pb_row ".concat(w,":hover"),"padding-right: 1em; padding-left: 2em;",o)}else if("35"!==f){var ne="content: attr(data-icon".concat(H,");");t.updateStylesArray("".concat(w,":before"),"display: none;",o),t.updateStylesArray("".concat(w,":after"),"".concat(ne," font-family: '").concat(L.default.getExtendedIconFontFamily(c),"' !important;"),o),t.updateStylesArray("".concat(w,":after"),"".concat(ne," font-weight: ").concat(L.default.getExtendedIconFontWeight(c)," !important;"),o)}if("off"===a){var oe=l?"right":"left";V+="margin-left: ".concat(l?"-1.3em":".3em","; ").concat(oe,": auto;")}if(V+="off"!==a?"opacity:0;":"opacity:1;",V+="display: inline-block;",F+="off"!==a?"opacity: 1;":"",""!==c){var re=m;V+="font-size:".concat("1.6em",";"),t.updateStylesArray("body.et_button_custom_icon #page-container ".concat(w).concat(d),"font-size:".concat(re,";"),o)}t.updateStylesArray("".concat(w).concat(d),V,o),"default"===r["".concat(n,"_use_icon")]&&L.default.isNo(b)||t.updateStylesArray("".concat(w,":hover").concat(d),F,o)}E=f}))}}));break;case"form_field":(0,l.default)(E,(function(e,n){var o,a=L.default.condition("et_is_builder_plugin_active"),i=N.default.getHoverMode(),u=(0,y.default)(e,"placeholder",!0),s=(0,y.default)(e,"css.important",""),c=(0,y.default)(e,"css.limited_main",!1),h=a&&c?c:(0,y.default)(e,"css.main","".concat($," .input")),_=(0,y.default)(e,"css.hover","".concat($," .input:hover")),m=(0,y.default)(e,"css.focus","".concat($," .input:focus")),g=(0,y.default)(e,"css.focus_hover","".concat($," .input:focus:hover")),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,v.default)(["::placeholder","::-webkit-input-placeholder","::-moz-placeholder","::-ms-input-placeholder"],(function(t){var n=h.indexOf(",")>-1?"".concat($," .input"):h;return"".concat(n).concat(e).concat(t)}))},w=(0,y.default)(e,"css.placeholder",b()),O=(0,y.default)(e,"css.placeholder_hover",b(":hover")),k=(0,y.default)(e,"css.placeholder_focus",b(":focus")),S=(0,y.default)(e,"css.placeholder_focus_hover",b(":focus:hover")),E=u?"".concat(h,", ").concat(w):h,M=u?"".concat(_,", ").concat(O):_,C=u?"".concat(m,", ").concat(k):m,P=u?"".concat(g,", ").concat(S):g,A=(ve(o={text_color:{css:"form_text_color",property:"color",selector:E,placeholder:w,responsive:!0,sticky:x}},F.default.getHoverField("text_color"),{css:i?"form_text_color":"form_text_color_hover",property:"color",selector:i?E:M,placeholder:i?w:O}),ve(o,"focus_text_color",{css:"focus_text_color",property:"color",selector:C,placeholder:k,responsive:!0,sticky:x}),ve(o,F.default.getHoverField("focus_text_color"),{css:i?"focus_text_color":"focus_text_color_hover",property:"color",selector:i?C:P,placeholder:i?k:S}),ve(o,"background_color",{css:"background_color",property:"background-color",selector:h,responsive:!0,sticky:x}),ve(o,F.default.getHoverField("background_color"),{css:i?"background_color":"background_color_hover",property:"background-color",selector:i?h:_}),ve(o,"focus_background_color",{css:"focus_background_color",property:"background-color",selector:m,responsive:!0,sticky:x}),ve(o,F.default.getHoverField("focus_background_color"),{css:i?"focus_background_color":"focus_background_color_hover",property:"background-color",selector:i?m:g}),o);(0,l.default)(A,(function(o,i){var u=(0,y.default)(o,"sticky",!1),c=(0,y.default)(f,"".concat(n,"_").concat(i),""),h=(0,y.default)(r,"".concat(n,"_").concat(i),c),_=u?W.default.getValue("".concat(n,"_").concat(i),r,h):h,m=L.default.hasValue(h)&&h!==c,g=L.default.hasValue(_)&&_!==h;if(g||m){var b=o.property,v=(0,p.default)(s,o.css),w="background-color"===b&&a||v?" !important":"",O=(0,y.default)(e,"css.".concat(o.css),"");if(""===O?O=o.selector:"color"===b&&(O="".concat(O,", ").concat(o.placeholder)),u&&g){var k=W.default.addStickyToOrderClass(O,T);t.updateStylesArray(k,"".concat(b,":").concat(_).concat(w))}if(L.default.hasValue(h)&&(0,d.default)(o.responsive))t.updateStylesArray(O,"".concat(b,":").concat(h).concat(w));else{var S=(0,y.default)(r,"".concat(n,"_").concat(i,"_last_edited"),""),E=L.default.getResponsiveStatus(S)?["desktop","tablet","phone"]:["desktop"];(0,l.default)(E,(function(e){var o="desktop"===e?"":"_".concat(e),l=t.getBreakpointByDevice(e),u=(0,y.default)(r,"".concat(n,"_").concat(i).concat(o),"");("background-color"===b&&a||v)&&(u+=" !important");var s="".concat(b,":").concat(u);t.updateStylesArray(O,s,l)}))}}}))}))}h.push(g)}}};D("fonts"),D("text_shadow"),D("background"),D("text"),(0,l.default)((0,y.default)(o,"borders",{}),(function(e,t){var n="default"===t?"border":"border_".concat(t);D(n,"border")})),D("filters"),D("max_width"),D("margin_padding"),D("button"),D("form_field"),D("box_shadow"),D("animation"),D("image_icon");var G=(0,E.default)(o,h);(0,l.default)(G,(function(e,t){D(t)}));var z=(0,g.default)({},this.props),$=(0,g.default)({},this.props.attrs)||{},Y=N.default.getPreviewMode(),K="desktop"===Y,X=U.default.getBreakpointByDevice(Y);if((0,O.default)(z,"module_class")&&"none"!==(0,y.default)(z,"attrs.animation_style","none")){var Q=".".concat((0,y.default)(z,"module_class"),".et_animated"),Z=U.default.getAnyValue($,"animation_duration","1000ms",!0,Y);if(!(0,s.default)(Z)){var J="animation-duration: ".concat(Z);this.updateStylesArray(Q,J,X)}var ee=U.default.getAnyValue($,"animation_speed_curve","ease-in-out",!0,Y);if(!(0,s.default)(ee)){var te="animation-timing-function: ".concat(ee);this.updateStylesArray(Q,te,X)}var ne=U.default.getAnyValue($,"animation_delay",(0,y.default)(a,"animation_delay"),!0,Y);if(!(0,s.default)(ne)){var oe="animation-delay: ".concat(ne);this.updateStylesArray(Q,oe,X)}for(var re=(0,y.default)(z,"attrs.animation_style","none"),ae=U.default.getAnyValue($,"animation_intensity_".concat(re),50,!0,Y),ie={},ue=isNaN(parseInt(ae))?50:parseInt(ae),se=["slide","zoom","flip","fold","roll"],de=!1,fe=!1,pe=0;pe0?(a&&t.push("!important"),"transform: ".concat(t.join(" "),";")):""},b=["desktop"];!i&&(0,d.default)(this.positionLocations.hover)||(b=["hover"]),!f&&(0,d.default)(this.positionLocations.sticky)||b.push("sticky"),(l||"none"!==h&&u||!(0,d.default)(this.positionLocations.tablet)||!(0,d.default)(this.positionLocations.phone))&&(b.push("tablet"),b.push("phone")),b.forEach((function(t){var o="",u="",d=t;((0,p.default)("phone","tablet",t)&&!l||"hover"===t&&!i)&&(d="desktop");var f=[],g=[];if(_.forEach((function(e){var t=[];t.push(e.substring(0,e.length-1)),t.push(e.substring(e.length-1));var o=function(e,t){var o="transform_".concat(e[0]),r=(0,y.default)({X:0,Y:1,Z:2},e[1]),a=!1,i=(0,y.default)(n,o,!1);return"sticky"===t?(a=(0,y.default)(n,o,!1),i=W.default.getValue(o,n,!1)):"hover"===t?(a=(0,y.default)(n,o,!1),i=(0,y.default)(n,"".concat(o,"__hover"),!1)):"tablet"===t?(a=(0,y.default)(n,o,!1),i=(0,y.default)(n,"".concat(o,"_tablet"),!1)):"phone"===t&&(a=(0,y.default)(n,"".concat(o,"_tablet"),!1),i=(0,y.default)(n,"".concat(o,"_phone"),!1),L.default.hasValue(a)||(a=(0,y.default)(n,o,!1))),!L.default.hasValue(i)&&L.default.hasValue(a)&&(i=a),L.default.hasValue(i)?i.split("|")[r]:""}(t,d);L.default.hasValue(o)&&("origin"===t[0]?("originY"===e&&0===g.length&&g.push("50%"),g.push(o)):("scale"===t[0]&&(o=parseFloat(o)/100),f[e]=o))})),e.positionLocations.hasOwnProperty("".concat(t))){var b=e.positionLocations["".concat(t)];f.hasOwnProperty("translateX")||((0,p.default)(["top_center","bottom_center","center_center"],b)?f.translateX="-50%":"desktop"!==t&&(f.translateX="0px")),f.hasOwnProperty("translateY")||((0,p.default)(["center_left","center_right","center_center"],b)?f.translateY="-50%":"desktop"!==t&&(f.translateY="0px"))}if((0,M.default)(f).length>0||g.length>0){if("none"!==h&&"fade"!==h){var v=ce({},f),w=(0,p.default)(["hover","sticky"],t)?"desktop":t,O=U.default.getAnyValue(n,"animation_direction","center",!0,w),k=(0,y.default)(n,"animation_intensity_".concat(h),50),S=isNaN(parseInt(k))?50:parseInt(k),E="et_pb_".concat(h,"_").concat(O,"_").concat(e.props.module_class),C="@keyframes ".concat(E),P=".".concat(e.props.module_class,".et_animated"),T="animation-name: ".concat(E,";"),A="",B="";switch("slide"===h&&"center"===O&&(h="zoom"),h){case"zoom":var x=.01*(100-S);v.scaleX=x*parseFloat((0,y.default)(f,"scaleX",1)),v.scaleY=x*parseFloat((0,y.default)(f,"scaleY",1)),B=m(v),o=m(f),u=0===g.length?"transform-origin: ".concat(O,";"):"transform-origin:".concat(g.join(" "),";"),A="0%{".concat(B,"}"),A+="100%{opacity:1;".concat(o,"}"),T+="".concat(u);break;case"slide":var j=(0,y.default)(f,"translateY","0%"),N=(0,y.default)(f,"translateX","0%");switch(O){case"top":v.translateY="calc(".concat(-2*S,"% + ").concat(j,")"),v.translateX=N;break;case"bottom":v.translateY="calc(".concat(2*S,"% + ").concat(j,")"),v.translateX=N;break;case"left":v.translateX="calc(".concat(-2*S,"% + ").concat(N,")"),v.translateY=j;break;case"right":v.translateX="calc(".concat(2*S,"% + ").concat(N,")"),v.translateY=j}B=m(v),o=m(f),A="0%{".concat(B,"}"),A+="100%{opacity:1;".concat(o,"}");break;case"bounce":var R=(0,y.default)(f,"translateX","0px"),I=(0,y.default)(f,"translateY","0px");switch(O){case"center":var D=parseFloat((0,y.default)(f,"scaleX",1)),V=parseFloat((0,y.default)(f,"scaleY",1));A="from, 20%, 40%, 60%, 80%, to {animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}",v.scaleX=.3*D,v.scaleY=.3*V,A+="0%{".concat(m(v),"}"),v.scaleX=1.1*D,v.scaleY=1.1*V,A+="20%{".concat(m(v),"}"),v.scaleX=.9*D,v.scaleY=.9*V,A+="40%{".concat(m(v),"}"),v.scaleX=1.03*D,v.scaleY=1.03*V,A+="60%{".concat(m(v),"}"),v.scaleX=.97*D,v.scaleY=.97*V,A+="80%{".concat(m(v),"}"),o=m(f),A+="100%{opacity: 1;".concat(o,"}");break;case"top":A="from, 60%, 75%, 90%, to {animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}",v.translateY="calc(-200px + ".concat(I,")"),A+="0%{".concat(m(v),"}"),v.translateY="calc(25px + ".concat(I,")"),A+="60%{".concat(m(v),"}"),v.translateY="calc(-10px + ".concat(I,")"),A+="75%{".concat(m(v),"}"),v.translateY="calc(5px + ".concat(I,")"),A+="90%{".concat(m(v),"}"),o=m(f),A+="100%{opacity: 1;".concat(o,"}");break;case"bottom":A="from, 60%, 75%, 90%, to {animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}",v.translateY="calc(200px + ".concat(I,")"),A+="0%{".concat(m(v),"}"),v.translateY="calc(-25px + ".concat(I,")"),A+="60%{".concat(m(v),"}"),v.translateY="calc(10px + ".concat(I,")"),A+="75%{".concat(m(v),"}"),v.translateY="calc(-5px + ".concat(I,")"),A+="90%{".concat(m(v),"}"),o=m(f),A+="100%{opacity: 1;".concat(o,"}");break;case"left":A="from, 60%, 75%, 90%, to {animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}",v.translateX="calc(-200px + ".concat(R,")"),A+="0%{".concat(m(v),"}"),v.translateX="calc(25px + ".concat(R,")"),A+="60%{".concat(m(v),"}"),v.translateX="calc(-10px + ".concat(R,")"),A+="75%{".concat(m(v),"}"),v.translateX="calc(5px + ".concat(R,")"),A+="90%{".concat(m(v),"}"),o=m(f),A+="100%{opacity: 1;".concat(o,"}");break;case"right":A="from, 60%, 75%, 90%, to {animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}",v.translateX="calc(200px + ".concat(R,")"),A+="0%{".concat(m(v),"}"),v.translateX="calc(-25px + ".concat(R,")"),A+="60%{".concat(m(v),"}"),v.translateX="calc(10px + ".concat(R,")"),A+="75%{".concat(m(v),"}"),v.translateX="calc(-5px + ".concat(R,")"),A+="90%{".concat(m(v),"}"),o=m(f),A+="100%{opacity: 1;".concat(o,"}")}break;case"flip":var F=Math.ceil(.9*S);switch(v.perspective="2000px",O){default:F+=parseFloat((0,y.default)(f,"rotateX",0)),v.rotateX="".concat(F,"deg");break;case"bottom":F*=-1,F+=parseFloat((0,y.default)(f,"rotateX",0)),v.rotateX="".concat(F,"deg");break;case"left":F*=-1,F+=parseFloat((0,y.default)(f,"rotateY",0)),v.rotateY="".concat(F,"deg");break;case"right":F+=parseFloat((0,y.default)(f,"rotateY",0)),v.rotateY="".concat(F,"deg")}B=m(v),o=m(f),A="0%{".concat(B,"}"),A+="100%{opacity:1;".concat(o,"}");break;case"fold":var H=Math.ceil(.9*S);switch(v.perspective="2000px",O){case"top":H*=-1,H+=parseFloat((0,y.default)(f,"rotateX",0)),v.rotateX="".concat(H,"deg");break;case"bottom":H+=parseFloat((0,y.default)(f,"rotateX",0)),v.rotateX="".concat(H,"deg");break;case"left":H+=parseFloat((0,y.default)(f,"rotateY",0)),v.rotateY="".concat(H,"deg");break;default:H*=-1,H+=parseFloat((0,y.default)(f,"rotateY",0)),v.rotateY="".concat(H,"deg")}B=m(v),o=m(f),A="0%{".concat(B,"}"),A+="100%{opacity:1;".concat(o,"}"),u=0===g.length?"transform-origin: ".concat(O,";"):"transform-origin:".concat(g.join(" "),";"),T+="".concat(u);break;case"roll":var G=parseFloat((0,y.default)(f,"rotateZ",0)),z=Math.ceil(3.6*S);v.rotateZ="".concat("bottom"===O||"right"===O?-1*z+G:z+G,"deg"),B=m(v),o=m(f),A="0%{".concat(B,"}"),A+="100%{opacity:1;".concat(o,"}"),u=0===g.length?"transform-origin: ".concat(O,";"):"transform-origin:".concat(g.join(" "),";"),T+="".concat(u)}L.default.hasValue(A)&&(e.updateStylesArray(C,A,e.getBreakpointByDevice(t)),e.updateStylesArray(P,T,e.getBreakpointByDevice(t)))}Object.keys(f).length>0&&""===o&&(o=m(f)),g.length>0&&""===u&&(a&&g.push("!important"),u="transform-origin:".concat(g.join(" "),";"));var q="sticky"===t?W.default.addStickyToSelectors(r,c):r;e.updateStylesArray(q,o+u,e.getBreakpointByDevice(t));var $=[];L.default.hasValue(f.translateX)&&$.push("translateX(".concat(f.translateX,")")),L.default.hasValue(f.translateY)&&$.push("translateY(".concat(f.translateY,")")),0===$.length&&$.push("none"),e.updateStylesArray("".concat(q,".et_pb_hovered,").concat(q,".et-fb-dragged,").concat(q,".et_pb_hovered_child"),"transform:".concat($.join(" "),";").concat(u,"transition:none;"),e.getBreakpointByDevice(t)),"sticky"!==t&&W.default.isStickyModule(s,n)&&(e.hasTransformInStickyModule="on")}}))}}},{key:"processPosition",value:function(){var e=this,t=ye(this),n=(0,y.default)(t,"advanced_common.position_fields",{}),o=(0,y.default)(t,"advanced_common.z_index",{}),r=(0,y.default)(this,"props.attrs",{}),a=(0,y.default)(this,"props.module_address",""),i=W.default.isStickyModule(a,r),l=W.default.canHaveStickyStyle(a,r);if(this.positionLocations={},!1!==o||!1!==n){var u=!1,s=!1,c=["desktop"];if(!1!==o){var f=(0,y.default)(o,"default",""),h=(0,y.default)(o,"css.main","%%order_class%%"),_=!1!==(0,y.default)(o,"important",!1)?" !important":"";c=["desktop"],F.default.isHoverMode()&&F.default.isEnabled("z_index",r)&&(c=["hover"]),L.default.getResponsiveStatus((0,y.default)(r,"z_index_last_edited",!1))&&(c=[].concat(le(c),["tablet","phone"])),l&&(c=[].concat(le(c),["sticky"])),c.forEach((function(t){var n=(0,ee.anyOption)(r,"z_index",f,t,!1);if("sticky"===t){var o=(0,ee.anyOption)(r,"z_index",f,"desktop",!1);h=W.default.addStickyToSelectors(h,i),n=W.default.getValue("z_index",r,o),_=" !important"}if(!L.default.hasValue(n))return!1;e.updateStylesArray(h,"z-index: ".concat(n).concat(_,";"),e.getBreakpointByDevice(t)),u=!0}))}if(!1!==n){var m=(0,y.default)(n,"css.main",this.getMainElementSelector()),g=(0,y.default)(n,"default","none"),b=!1!==(0,y.default)(n,"important",!1)?" !important":"",v="top_left";c=["desktop"],F.default.isHoverMode()&&F.default.isEnabled("positioning",r)&&(c=["hover"]),l&&(c=[].concat(le(c),["sticky"])),L.default.getResponsiveStatus((0,y.default)(r,"positioning_last_edited",!1))&&(c=[].concat(le(c),["tablet","phone"]));var w=(0,ee.allActiveValues)(r,"positioning",g,!0);c.forEach((function(t){var n=w["".concat(t)],o=(0,ee.anyDefault)(r,"positioning",g,t),a=(0,p.default)(["fixed","absolute"],n)||"desktop"!==t?" !important":b,l=n;if("none"===n?(l="relative",a=" !important",e.positionLocations["".concat(t)]="default"):e.positionLocations["".concat(t)]=(0,ee.anyOption)(r,"position_origin".concat((0,ee.positionSuffix)(n)),"top_left",t,!0),o!==l){var u="sticky"===t?W.default.addStickyToSelectors(m,i):m;e.updateStylesArray(u,"position: ".concat(l).concat(a,";"),e.getBreakpointByDevice(t)),s=!0}}));var O={horizontal:L.default.getResponsiveStatus((0,y.default)(r,"horizontal_offset_last_edited",!1)),vertical:L.default.getResponsiveStatus((0,y.default)(r,"vertical_offset_last_edited",!1))},k={horizontal:F.default.isHoverMode()&&F.default.isEnabled("horizontal_offset",r),vertical:F.default.isHoverMode()&&F.default.isEnabled("vertical_offset",r)},S={horizontal:l&&W.default.isEnabled("horizontal_offset",r),vertical:l&&W.default.isEnabled("vertical_offset",r)};if(O.horizontal||O.vertical||k.horizontal||k.vertical||S.horizontal||S.vertical){var E=w.desktop;v="none"===E?"default":(0,ee.anyOption)(r,"position_origin".concat((0,ee.positionSuffix)(E)),"top_left","desktop",!0)}(O.horizontal||O.vertical)&&((0,d.default)(this.positionLocations.tablet)&&(this.positionLocations.tablet=v),(0,d.default)(this.positionLocations.phone)&&(this.positionLocations.phone=v)),(k.horizontal||k.vertical)&&(0,d.default)(this.positionLocations.hover)&&(this.positionLocations.hover=v,delete this.positionLocations.desktop),(S.horizontal||S.vertical&&(0,d.default)(this.positionLocations.sticky))&&(this.positionLocations.sticky=v);var C=(0,M.default)(this.positionLocations);C.length>0&&C.forEach((function(t){var n=e.positionLocations["".concat(t)],o="sticky"===t?W.default.addStickyToSelectors(m,i):m,a=e.replaceOrderClass(o);if(N.default.filterScrollCSS((function(e){return!(e.selector===a&&e.view===t)})),"default"===n)return e.updateStylesArray(o,"top:0px; right:auto; bottom:auto; left:0px;",e.getBreakpointByDevice(t)),N.default.pushScrollCSS({selector:a,property:"top",value:"notFixed",view:t}),!1;["horizontal","vertical"].forEach((function(i){var l="".concat(i,"_offset"),u="hover"===t&&k["".concat(i)],s="sticky"===t&&S["".concat(i)],d=(0,p.default)(["tablet","phone"],t)&&O["".concat(i)],c=n.split("_"),f=d?t:"desktop";u?f="hover":s&&(f="sticky");var h=(0,ee.anyOption)(r,l,"0px",f,!0),_="left",m="right";"horizontal"===i?"center"===c[1]?h="50%":"right"===c[1]&&(_="right",m="left"):(_="top",m="bottom","center"===c[0]?h="50%":"bottom"===c[0]&&(_="bottom",m="top"));var g="vh"===q.default.getUnit(h)?"".concat((0,q.vhToPx)(L.default.$topWindow().height(),parseFloat(h)),"px"):h,b=w["".concat(t)];if((0,ee.inFullHeightIframe)()&&(0,p.default)(["top","bottom"],_)){var v="fixed"===b?h:"notFixed";N.default.pushScrollCSS({selector:a,property:_,value:v,view:t}),"fixed"!==b&&e.updateStylesArray(o,"".concat(_,": ").concat(g,";"),e.getBreakpointByDevice(t))}else{if("fixed"===b&&"top"===_){var y=L.default.getAdminBarHeight();y>0&&(g="calc(".concat(g," + ").concat(y,"px)"))}e.updateStylesArray(o,"".concat(_,": ").concat(g,";"),e.getBreakpointByDevice(t))}e.updateStylesArray(o,"".concat(m,": auto;"),e.getBreakpointByDevice(t))}))}))}!u||!1!==n&&s||this.updateStylesArray("%%order_class%%","position: relative;")}}},{key:"processBoxShadow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=(0,g.default)({},this.props.attrs)||{},o=F.default.isHoverMode(),r=U.default.getDevicesList(),a=(0,y.default)(this,"props.module_address",""),i=(0,y.default)(this,"props.wrapperSettings.order_class_wrapper",!1),u=!i&&W.default.isStickyModule(a,n),d=W.default.canHaveStickyStyle(a,n),c=function(t){return t.split(",").map((function(e){return e.trim()})).map((function(t){return e.replaceOrderClass(t)}))},f=function(t,a,i){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],f=a?"!important":"",p=(0,s.default)(c)?r:c,h="";if((0,l.default)(p,(function(r){var a=(0,Z.getStyleFromAttrs)(n,i,o,r);if(!(0,s.default)(a)&&"none"!==a&&a!==h){h=a;var l=e.getBreakpointByDevice(r);e.updateStylesArray(t,"box-shadow: ".concat(a," ").concat(f,";"),l)}})),d){var _=(0,Z.getStyleFromAttrs)(n,i,!1,"sticky"),m=W.default.addStickyToOrderClass(t,u);(0,s.default)(_)||"none"===_||e.updateStylesArray(m,"box-shadow: ".concat(_," ").concat(f,";"))}},h=function(t,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],_=a?"!important":"",m=(0,s.default)(h)?r:h,g=!(0,s.default)(n.background_video_mp4)||!(0,s.default)(n.background_video_webm),b="";if((0,l.default)(m,(function(r){var a=(0,Z.getStyleFromAttrs)(n,i,o,r),l=a.search("inset")>-1,u=c(t),d=u.map((function(e){return"".concat(e,">.box-shadow-overlay, ").concat(e,".et-box-shadow-no-overlay")})).join(", ");if(!(0,s.default)(a)&&"none"!==a&&a!==b){b=a;var h=e.getBreakpointByDevice(r);!p&&(l||f)||g?(setTimeout((function(e){return u.map(et_pb_box_shadow_apply_overlay)}),0),e.updateStylesArray(t,"box-shadow: none ".concat(_,";"),h),e.updateStylesArray(d,"box-shadow: ".concat(a," ").concat(_,";"),h)):(e.updateStylesArray(d,"box-shadow: none ".concat(_,";"),h),e.updateStylesArray(t,"box-shadow: ".concat(a," ").concat(_,";"),h))}})),d){var v=(0,Z.getStyleFromAttrs)(n,i,!1,"sticky"),y=v.search("inset")>-1,w=W.default.addStickyToOrderClass(t,u),O=c(w),k=O.map((function(e){return"".concat(e,">.box-shadow-overlay, ").concat(e,".et-box-shadow-no-overlay")})).join(", ");(0,s.default)(v)||"none"===v||(!p&&(y||f)||g?(e.updateStylesArray(w,"box-shadow: none ".concat(_,";")),e.updateStylesArray(k,"box-shadow: ".concat(v," ").concat(_,";"))):(e.updateStylesArray(k,"box-shadow: none ".concat(_,";")),e.updateStylesArray(w,"box-shadow: ".concat(v," ").concat(_,";"))))}},_=""!==t?t:this.props.type;switch(_){case"et_pb_section":(0,l.default)(r,(function(t){var o=(0,Z.getStyleFromAttrs)(n,"",!1,t);if(!(0,s.default)(o)&&"none"!==o){var r=e.getBreakpointByDevice(t);o.search("inset")<0&&e.updateStylesArray("%%order_class%%","z-index: 10;",r),h("%%order_class%%",!1,void 0,void 0,!0,[t])}}));break;case"et_pb_accordion_item":f("%%order_class%%",!0);break;case"et_pb_video_slider":h("%%order_class%%>.et_pb_slider, %%order_class%%>.et_pb_carousel .et_pb_carousel_item");break;case"et_pb_counter":h("%%order_class%% .et_pb_counter_container",!0);break;case"et_pb_tabs":if((0,l.default)(r,(function(t){var o=(0,Z.getStyleFromAttrs)(n);if(!(0,s.default)(o)&&"none"!==o){var r=e.getBreakpointByDevice(t),a=o.search("inset")>-1?"%%order_class%% .et-pb-active-slide, %%order_class%% .et_pb_active_content":"%%order_class%%";e.updateStylesArray(a,"box-shadow: ".concat(o,";"),r)}})),d){var m=(0,Z.getStyleFromAttrs)(n,"",!1,"sticky");if(!(0,s.default)(m)&&"none"!==m){var b=m.search("inset")>-1?W.default.addStickyToOrderClass("%%order_class%% .et-pb-active-slide, %%order_class%% .et_pb_active_content",u):W.default.addStickyToOrderClass("%%order_class%%",u);this.updateStylesArray(b,"box-shadow: ".concat(m,";"))}}break;case"et_pb_blog":"off"===(0,y.default)(n,"fullwidth")?h("%%order_class%% article.et_pb_post"):h("%%order_class%%"),this.processBoxShadow("blog");break;default:var v=""!==t?"et_pb_".concat(t):this.props.type,w=(0,y.default)(ye(this),"advanced_common.box_shadow");w&&(0,l.default)(w,(function(e,o){if(""===t||"default"!==o){var r="default"===o?"":"_".concat(o),a=(0,y.default)(e,"css.main","%%order_class%%"),i=(0,y.default)(e,"css.important",!1),u=(0,y.default)(e,"show_if",{}),d=(0,y.default)(e,"show_if_not",{}),c=R.default.getComponentDefaults(v);if(!(0,s.default)(u)){var _=!1;if((0,l.default)(u,(function(e,t){(0,y.default)(n,t,(0,y.default)(c,t,""))!==e&&(_=!0)})),_)return}if(!(0,s.default)(d)){var m=!1;if((0,l.default)(d,(function(e,t){(0,y.default)(n,t,(0,y.default)(c,t,""))===e&&(m=!0)})),m)return}(0,p.default)(["always","inset"],(0,y.default)(e,"css.overlay"))?h(a,i,r):f(a,i,r)}}))}}},{key:"processHoverTransitions",value:function(){var e=this,t=this.props,n=t.type,o=t.attrs,r=this.props.module_address,a=-1===this.allAttrsJson.indexOf(F.default.hoverSuffix()),i=-1===this.allAttrsJson.indexOf(W.default.stickySuffix());if(!a||!i){var u=(0,g.default)({},o)||{},d=(0,y.default)(ETBuilderBackend,"transitionsMap.".concat(n),{}),c=[],f=[];if((0,l.default)(d,(function(e,t){var n=F.default.isEnabled(t,u),o=W.default.isEnabled(t,u),r=L.default.isOn((0,y.default)(u,"sticky_transition"));(n||r&&o)&&(c=(0,S.default)([].concat(le(c),le((0,M.default)(e)))),f=(0,S.default)([].concat(le(f),le((0,m.default)((0,k.default)(e))))))})),!(0,s.default)(c)){var h=function(e,t,n,o){return"desktop"!==o&&U.default.isResponsiveEnabled(e,t)?U.default.getAnyValue(u,"".concat(t,"_").concat(o),n,!0):n},_=(0,y.default)(u,"hover_transition_duration","300ms"),b=(0,y.default)(u,"hover_transition_speed_curve","ease"),v=(0,y.default)(u,"hover_transition_delay","0ms"),w=(0,y.default)(this.props,"parentAttrs",{}),O=(0,y.default)(w,"hover_transition_duration","300ms"),E=(0,y.default)(w,"hover_transition_speed_curve","ease"),C=(0,y.default)(w,"hover_transition_delay","0ms");(0,l.default)(U.default.getDevicesList(),(function(t){var n=h(u,"hover_transition_duration",_,t),o=h(u,"hover_transition_speed_curve",b,t),a=h(u,"hover_transition_delay",v,t);n="300ms"===n?h(w,"hover_transition_duration",O,t):n,o="ease"===o?h(w,"hover_transition_speed_curve",E,t):o,a="0ms"===a?h(w,"hover_transition_delay",C,t):a,(0,W.isStickyModule)(r,u)&&(0,p.default)(c,"width")&&!(0,p.default)(c,"left")&&c.push("left");var i=c.reduce((function(e,t){return[].concat(le(e),["".concat(t," ").concat(n," ").concat(o," ").concat(a)])}),[]),l="transition: ".concat(i.join(", "),";");e.updateStylesArray(f.join(", "),l,U.default.getBreakpointByDevice(t))}))}}}},{key:"setElementFont",value:function(e,t,n){var o="";if(""===e||(0,d.default)(e))return"";var r=e.split("|"),a=(void 0===n?"||||||||":n).split("|");if(!(0,s.default)(r)){var i=r[0],l=""!==r[1]?r[1]:"",u="on"===r[2],c="on"===r[3],f="on"===r[4],p="on"===r[5],h="on"===r[6],_=(0,d.default)(r[7])?"":r[7],m=(0,d.default)(r[8])?"":r[8],g=""!==a[1]?a[1]:"",b="on"===a[2],v="on"===a[3],y="on"===a[4],w="on"===a[5],O="on"===a[6];l="on"===l?"700":l,g="on"===g?"700":g,""!==i&&"Default"!==i&&(L.default.maybeRequestFont(i),o+=this.setElementFontFamily(i,t)),o+=this.setElementFontStyle("font-weight",""!==g,""!==l,"normal",l,t),o+=this.setElementFontStyle("font-style",b,u,"normal","italic",t),o+=this.setElementFontStyle("text-transform",v,c,"none","uppercase",t),o+=this.setElementFontStyle("text-decoration",y,f,"none","underline",t),o+=this.setElementFontStyle("font-variant",w,p,"none","small-caps",t),o+=this.setElementFontStyle("text-decoration",O,h,"none","line-through",t),o+=this.setElementFontStyle("text-decoration-style",!1,""!==m,"solid",m,t),o+=this.setElementFontStyle("-webkit-text-decoration-color",!1,""!==_,"",_,t),o=(o+=this.setElementFontStyle("text-decoration-color",!1,""!==_,"",_,t)).trim()}return o}},{key:"setElementFontStyle",value:function(e,t,n,o,r,a){var i="",l=a?" !important":"";return n&&!t?i="".concat(e,":").concat(r).concat(l,";"):!n&&t&&(i="".concat(e,":").concat(o).concat(l,";")),i}},{key:"setElementFontFamily",value:function(e,t){var n,o,r=(0,O.default)(ETBuilderBackend.customFonts,e,!1)?ETBuilderBackend.customFonts:ETBuilderBackend.et_builder_fonts_data,a=t?" !important":"",i=ETBuilderBackend.removedFonts,l="",u="";return o=void 0!==r[e]&&void 0!==r[e].add_ms_version?"'".concat(e," MS', "):"",(0,y.default)(i,e,!1)&&(l=i[e].styles,e=i[e].parent_font),""!==l&&(u=" font-weight:".concat(l,";")),n=void 0!==r[e]?this.getWebsafeFontStack(r[e].type):"serif","".concat("font-family:'").concat(e,"',").concat(o).concat(n).concat(a,";").concat(u)}},{key:"getWebsafeFontStack",value:function(e){var t=void 0!==e?e:"sans-serif",n=t;switch(t){case"sans-serif":n="Helvetica, Arial, Lucida, sans-serif";break;case"serif":n='Georgia, "Times New Roman", serif';break;case"cursive":n="cursive"}return n}},{key:"processAdditionalCSS",value:function(){var e=this;if(void 0!==this.props.additional_css&&!(0,s.default)(this.props.additional_css)){var t=this.props.additional_css;(0,l.default)(t,(function(t){(0,s.default)(t)||(0,l.default)(t,(function(t){if(void 0!==t.selector&&void 0!==t.declaration){var n=(0,d.default)(t.declaration)?"":t.declaration.split("||").join("");e.updateStylesArray(t.selector,n,e.getBreakpointByDevice(t.device))}}))}))}}},{key:"getBreakpointByDevice",value:function(e){switch(e){case"desktop_only":return"min_width_981";case"tablet":return"max_width_980";case"tablet_only":return"768_980";case"phone":return"max_width_767";default:return"general"}}},{key:"maybeWrapStyleSelector",value:function(e){if(!L.default.condition("is_custom_post_type")&&!L.default.isLimitedMode())return e;var t=this.getOrderClass(),n=".et[_-](?:pb|fb)[_-]|".concat(t),o=new RegExp("^(html[^ ]*)?(?: *)(body[^ ]*)?(?: *)(.*?)(?: *)([^ ]*(?:".concat(n,").+)")),r=e.match(o);if(!r)return e;var a=ie(r,5),l=(a[0],a[1]),u=a[2],s=a[3],d=a[4];return u||(u=""),ETBuilderBackend.css.wrapperPrefix===s&&(u+=s,s=""),(0,i.default)([l,"".concat(u).concat(ETBuilderBackend.css.wrapperPrefix),s,ETBuilderBackend.css.layoutPrefix,d]).join(" ")}},{key:"updateStylesArray",value:function(e,t,n){var o=this;q.default.sanitizeCSSSelector(e).map((function(e){return o.updateStyles(e,t,n)}))}},{key:"updateStyles",value:function(e,t,n){var o=this;if(!(0,d.default)(e)){var r=this.props.type;if((0,s.default)(r)||(e=(0,j.applyFilters)("".concat(r.split("_").join("."),".css.selector"),e)),n=void 0!==n?n:"general",e=this.replaceOrderClass(e),L.default.condition("is_wrapped_styles")&&!(0,d.default)(e)){var a=e.split(",");e=(0,v.default)(a,(function(e){return e=(0,f.default)(e),o.maybeWrapStyleSelector(e)})).join(", ")}void 0===this.processed_css_object[n]&&(this.processed_css_object[n]={}),void 0===this.processed_css_object[n][e]?this.processed_css_object[n][e]=[t]:this.processed_css_object[n][e].push(t)}}},{key:"constructCSSString",value:function(e){var t="";if($.default.processAdvancedCSS(this),this.processAdvancedCSS(e),Y.default.processAdvancedCSS(this),K.default.processAdvancedCSS(this),X.default.processAdvancedCSS(this),Q.default.processAdvancedCSS(this),this.processCustomCSS(),this.processAdditionalCSS(),!(0,s.default)(this.processed_css_object)){var n=this.processed_css_object;(0,l.default)(Oe,(function(e,o){void 0!==n[e[0]]&&("general"!==e[0]&&(t+="".concat(e[1],"{")),(0,l.default)(n[e[0]],(function(e,n){(0,s.default)(e)||(t+="".concat(n,"{"),(0,l.default)(e,(function(e,n){void 0!==e&&(e=e.trim(),t+=e,e.length-1!==e.lastIndexOf(";")&&(t+=";"))})),t+="}")})),"general"!==e[0]&&(t+="} "))}),this)}var o=N.default.getPreviewMode();return(0,D.renderVhAsPx)(t,o)}},{key:"render",value:function(){this.processed_css_object={},this.allAttrsJson=JSON.stringify(this.props.attrs);var e=this.constructCSSString(this.props.dynamic.background_image.value);return(0,s.default)(e)?null:r.default.createElement("style",{type:"text/css",className:"et-fb-custom-css-output","data-sticky-has-transform":this.hasTransformInStickyModule},e)}}],n&&pe(t.prototype,n),o&&pe(t,o),J}(r.default.Component);Ee.propTypes=Se,Ee.defaultProps=ke;var Me=(0,J.withDynamicContent)({background_image:{attribute:"background_image",type:"image"},background_image_tablet:{attribute:"background_image_tablet",type:"image"},background_image_phone:{attribute:"background_image_phone",type:"image"},background_image__hover:{attribute:"background_image__hover",type:"image"},background_image__sticky:{attribute:"background_image__sticky",type:"image"},button_bg_image:{attribute:"button_bg_image",type:"image"},button_bg_image_tablet:{attribute:"button_bg_image_tablet",type:"image"},button_bg_image_phone:{attribute:"button_bg_image_phone",type:"image"},button_bg_image__hover:{attribute:"button_bg_image__hover",type:"image"},button_bg_image__sticky:{attribute:"button_bg_image__sticky",type:"image"}},(function(e){return e.attrs||ke.attrs}))(Ee);t.default=Me},function(e,t,n){var o=n(162)(Object.keys,Object);e.exports=o},function(e,t,n){var o=n(43)(n(20),"DataView");e.exports=o},function(e,t,n){var o=n(55),r=Object.prototype,a=r.hasOwnProperty,i=r.toString,l=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var o=!0}catch(e){}var r=i.call(e);return o&&(t?e[l]=n:delete e[l]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var o,r=n(200),a=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!a&&a in e}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var o=n(43)(n(20),"Promise");e.exports=o},function(e,t,n){var o=n(35),r=n(25);e.exports=function(e){return r(e)&&"[object Arguments]"==o(e)}},function(e,t,n){var o=n(35),r=n(95),a=n(25),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&r(e.length)&&!!i[o(e)]}},function(e,t,n){var o=n(143);e.exports=function(e){var t=o(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var o=n(226),r=n(75),a=n(94);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||r),string:new o}}},function(e,t,n){var o=n(227),r=n(228),a=n(229),i=n(230),l=n(231);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},function(e,t,n){var o=n(76);e.exports=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},function(e,t,n){var o=n(77);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var o=n(77);e.exports=function(e){return o(this,e).get(e)}},function(e,t,n){var o=n(77);e.exports=function(e){return o(this,e).has(e)}},function(e,t,n){var o=n(77);e.exports=function(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},function(e,t,n){var o=n(103),r=n(112);e.exports=function(e,t,n,a){var i=n.length,l=i,u=!a;if(null==e)return!l;for(e=Object(e);i--;){var s=n[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i=200){var _=t?null:l(e);if(_)return u(_);f=!1,d=i,h=new o}else h=t?[]:p;e:for(;++s-1}},function(e,t,n){var o=n(46),r=n(90);e.exports=function(e){return o((function(t,n){var o=-1,a=n.length,i=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,l&&r(n[0],n[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++o0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var o=n(170),r=n(302),a=n(78);e.exports=function(e){return o(e,a,r)}},function(e,t,n){var o=n(117);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},function(e,t,n){"use strict";e.exports=b;var o=n(689),r=n(476),a=n(263),i=n(688),l=n(690),u=n(691),s=n(692),d=n(693),c=n(568),f=n(694),p=n(569),h=n(696),_=n(697),m=n(477),g=n(1009);function b(e){o.call(this),this.options=e||{},this._tokenStream=null}b.DEFAULT_TYPE=0,b.COMBINATOR_TYPE=1,b.MEDIA_FEATURE_TYPE=2,b.MEDIA_QUERY_TYPE=3,b.PROPERTY_NAME_TYPE=4,b.PROPERTY_VALUE_TYPE=5,b.PROPERTY_VALUE_PART_TYPE=6,b.SELECTOR_TYPE=7,b.SELECTOR_PART_TYPE=8,b.SELECTOR_SUB_PART_TYPE=9,b.prototype=function(){var e,t=new o,n={__proto__:null,constructor:b,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var e,t,n,o=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();o.peek()===m.IMPORT_SYM;)this._import(),this._skipCruft();for(;o.peek()===m.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(n=o.peek();n>m.EOF;){try{switch(n){case m.MEDIA_SYM:this._media(),this._skipCruft();break;case m.PAGE_SYM:this._page(),this._skipCruft();break;case m.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case m.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case m.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case m.DOCUMENT_SYM:this._document(),this._skipCruft();break;case m.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case m.UNKNOWN_SYM:if(o.get(),this.options.strict)throw new r("Unknown @ rule.",o.LT(0).startLine,o.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+o.LT(0).value+".",line:o.LT(0).startLine,col:o.LT(0).startCol}),e=0;o.advance([m.LBRACE,m.RBRACE])===m.LBRACE;)e++;for(;e;)o.advance([m.RBRACE]),e--;break;case m.S:this._readWhitespace();break;default:if(!this._ruleset())switch(n){case m.CHARSET_SYM:throw t=o.LT(1),this._charset(!1),new r("@charset not allowed here.",t.startLine,t.startCol);case m.IMPORT_SYM:throw t=o.LT(1),this._import(!1),new r("@import not allowed here.",t.startLine,t.startCol);case m.NAMESPACE_SYM:throw t=o.LT(1),this._namespace(!1),new r("@namespace not allowed here.",t.startLine,t.startCol);default:o.get(),this._unexpectedToken(o.token())}}}catch(e){if(!(e instanceof r)||this.options.strict)throw e;this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col})}n=o.peek()}n!==m.EOF&&this._unexpectedToken(o.token()),this.fire("endstylesheet")},_charset:function(e){var t,n,o,r=this._tokenStream;r.match(m.CHARSET_SYM)&&(n=r.token().startLine,o=r.token().startCol,this._readWhitespace(),r.mustMatch(m.STRING),t=r.token().value,this._readWhitespace(),r.mustMatch(m.SEMICOLON),!1!==e&&this.fire({type:"charset",charset:t,line:n,col:o}))},_import:function(e){var t,n,o,r=this._tokenStream;r.mustMatch(m.IMPORT_SYM),n=r.token(),this._readWhitespace(),r.mustMatch([m.STRING,m.URI]),t=r.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),o=this._media_query_list(),r.mustMatch(m.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"import",uri:t,media:o,line:n.startLine,col:n.startCol})},_namespace:function(e){var t,n,o,r,a=this._tokenStream;a.mustMatch(m.NAMESPACE_SYM),t=a.token().startLine,n=a.token().startCol,this._readWhitespace(),a.match(m.IDENT)&&(o=a.token().value,this._readWhitespace()),a.mustMatch([m.STRING,m.URI]),r=a.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),a.mustMatch(m.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"namespace",prefix:o,uri:r,line:t,col:n})},_supports:function(e){var t,n,o=this._tokenStream;if(o.match(m.SUPPORTS_SYM)){for(t=o.token().startLine,n=o.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),o.mustMatch(m.LBRACE),this._readWhitespace(),!1!==e&&this.fire({type:"startsupports",line:t,col:n});this._ruleset(););o.mustMatch(m.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:t,col:n})}},_supports_condition:function(){var e,t=this._tokenStream;if(t.match(m.IDENT))"not"===(e=t.token().value.toLowerCase())?(t.mustMatch(m.S),this._supports_condition_in_parens()):t.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();t.peek()===m.IDENT;)"and"!==(e=t.LT(1).value.toLowerCase())&&"or"!==e||(t.mustMatch(m.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var e=this._tokenStream;e.match(m.LPAREN)?(this._readWhitespace(),e.match(m.IDENT)?"not"===e.token().value.toLowerCase()?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),e.mustMatch(m.RPAREN)):(e.unget(),this._supports_declaration_condition(!1)):(this._supports_condition(),this._readWhitespace(),e.mustMatch(m.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(e){var t=this._tokenStream;!1!==e&&t.mustMatch(m.LPAREN),this._readWhitespace(),this._declaration(),t.mustMatch(m.RPAREN)},_media:function(){var e,t,n,o=this._tokenStream;for(o.mustMatch(m.MEDIA_SYM),e=o.token().startLine,t=o.token().startCol,this._readWhitespace(),n=this._media_query_list(),o.mustMatch(m.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:n,line:e,col:t});;)if(o.peek()===m.PAGE_SYM)this._page();else if(o.peek()===m.FONT_FACE_SYM)this._font_face();else if(o.peek()===m.VIEWPORT_SYM)this._viewport();else if(o.peek()===m.DOCUMENT_SYM)this._document();else if(o.peek()===m.SUPPORTS_SYM)this._supports();else if(o.peek()===m.MEDIA_SYM)this._media();else if(!this._ruleset())break;o.mustMatch(m.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:n,line:e,col:t})},_media_query_list:function(){var e=this._tokenStream,t=[];for(this._readWhitespace(),e.peek()!==m.IDENT&&e.peek()!==m.LPAREN||t.push(this._media_query());e.match(m.COMMA);)this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,n=null,o=null,r=[];if(e.match(m.IDENT)&&("only"!==(n=e.token().value.toLowerCase())&&"not"!==n?(e.unget(),n=null):o=e.token()),this._readWhitespace(),e.peek()===m.IDENT?(t=this._media_type(),null===o&&(o=e.token())):e.peek()===m.LPAREN&&(null===o&&(o=e.LT(1)),r.push(this._media_expression())),null===t&&0===r.length)return null;for(this._readWhitespace();e.match(m.IDENT);)"and"!==e.token().value.toLowerCase()&&this._unexpectedToken(e.token()),this._readWhitespace(),r.push(this._media_expression());return new u(n,t,r,o.startLine,o.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e,t,n=this._tokenStream,o=null;return n.mustMatch(m.LPAREN),e=this._media_feature(),this._readWhitespace(),n.match(m.COLON)&&(this._readWhitespace(),t=n.LT(1),o=this._expression()),n.mustMatch(m.RPAREN),this._readWhitespace(),new l(e,o?new a(o,t.startLine,t.startCol):null)},_media_feature:function(){var e=this._tokenStream;return this._readWhitespace(),e.mustMatch(m.IDENT),a.fromToken(e.token())},_page:function(){var e,t,n=this._tokenStream,o=null,r=null;n.mustMatch(m.PAGE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),n.match(m.IDENT)&&"auto"===(o=n.token().value).toLowerCase()&&this._unexpectedToken(n.token()),n.peek()===m.COLON&&(r=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:o,pseudo:r,line:e,col:t}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:o,pseudo:r,line:e,col:t})},_margin:function(){var e,t,n=this._tokenStream,o=this._margin_sym();return!!o&&(e=n.token().startLine,t=n.token().startCol,this.fire({type:"startpagemargin",margin:o,line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:o,line:e,col:t}),!0)},_margin_sym:function(){var e=this._tokenStream;return e.match([m.TOPLEFTCORNER_SYM,m.TOPLEFT_SYM,m.TOPCENTER_SYM,m.TOPRIGHT_SYM,m.TOPRIGHTCORNER_SYM,m.BOTTOMLEFTCORNER_SYM,m.BOTTOMLEFT_SYM,m.BOTTOMCENTER_SYM,m.BOTTOMRIGHT_SYM,m.BOTTOMRIGHTCORNER_SYM,m.LEFTTOP_SYM,m.LEFTMIDDLE_SYM,m.LEFTBOTTOM_SYM,m.RIGHTTOP_SYM,m.RIGHTMIDDLE_SYM,m.RIGHTBOTTOM_SYM])?a.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(m.COLON),e.mustMatch(m.IDENT),e.token().value},_font_face:function(){var e,t,n=this._tokenStream;n.mustMatch(m.FONT_FACE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endfontface",line:e,col:t})},_viewport:function(){var e,t,n=this._tokenStream;n.mustMatch(m.VIEWPORT_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endviewport",line:e,col:t})},_document:function(){var e,t=this._tokenStream,n=[],o="";for(t.mustMatch(m.DOCUMENT_SYM),e=t.token(),/^@\-([^\-]+)\-/.test(e.value)&&(o=RegExp.$1),this._readWhitespace(),n.push(this._document_function());t.match(m.COMMA);)this._readWhitespace(),n.push(this._document_function());t.mustMatch(m.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:n,prefix:o,line:e.startLine,col:e.startCol});for(var r=!0;r;)switch(t.peek()){case m.PAGE_SYM:this._page();break;case m.FONT_FACE_SYM:this._font_face();break;case m.VIEWPORT_SYM:this._viewport();break;case m.MEDIA_SYM:this._media();break;case m.KEYFRAMES_SYM:this._keyframes();break;case m.DOCUMENT_SYM:this._document();break;default:r=Boolean(this._ruleset())}t.mustMatch(m.RBRACE),e=t.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:n,prefix:o,line:e.startLine,col:e.startCol})},_document_function:function(){var e,t=this._tokenStream;return t.match(m.URI)?(e=t.token().value,this._readWhitespace()):e=this._function(),e},_operator:function(e){var t=this._tokenStream,n=null;return(t.match([m.SLASH,m.COMMA])||e&&t.match([m.PLUS,m.STAR,m.MINUS]))&&(n=t.token(),this._readWhitespace()),n?c.fromToken(n):null},_combinator:function(){var e,t=this._tokenStream,n=null;return t.match([m.PLUS,m.GREATER,m.TILDE])&&(e=t.token(),n=new i(e.value,e.startLine,e.startCol),this._readWhitespace()),n},_unary_operator:function(){var e=this._tokenStream;return e.match([m.MINUS,m.PLUS])?e.token().value:null},_property:function(){var e,t,n,o,r=this._tokenStream,a=null,i=null;return r.peek()===m.STAR&&this.options.starHack&&(r.get(),i=(t=r.token()).value,n=t.startLine,o=t.startCol),r.match(m.IDENT)&&("_"===(e=(t=r.token()).value).charAt(0)&&this.options.underscoreHack&&(i="_",e=e.substring(1)),a=new s(e,i,n||t.startLine,o||t.startCol),this._readWhitespace()),a},_ruleset:function(){var e,t=this._tokenStream;try{e=this._selectors_group()}catch(e){if(!(e instanceof r)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),t.advance([m.RBRACE])!==m.RBRACE)throw e;return!0}return e&&(this.fire({type:"startrule",selectors:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:e,line:e[0].line,col:e[0].col})),e},_selectors_group:function(){var e,t=this._tokenStream,n=[];if(null!==(e=this._selector()))for(n.push(e);t.match(m.COMMA);)this._readWhitespace(),null!==(e=this._selector())?n.push(e):this._unexpectedToken(t.LT(1));return n.length?n:null},_selector:function(){var e=this._tokenStream,t=[],n=null,o=null,r=null;if(null===(n=this._simple_selector_sequence()))return null;for(t.push(n);;)if(null!==(o=this._combinator()))t.push(o),null===(n=this._simple_selector_sequence())?this._unexpectedToken(e.LT(1)):t.push(n);else{if(!this._readWhitespace())break;r=new i(e.token().value,e.token().startLine,e.token().startCol),o=this._combinator(),null===(n=this._simple_selector_sequence())?null!==o&&this._unexpectedToken(e.LT(1)):(null!==o?t.push(o):t.push(r),t.push(n))}return new f(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e,t,n=this._tokenStream,o=null,r=[],a="",i=[function(){return n.match(m.HASH)?new h(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],l=0,u=i.length,s=null;for(e=n.LT(1).startLine,t=n.LT(1).startCol,(o=this._type_selector())||(o=this._universal()),null!==o&&(a+=o);n.peek()!==m.S;){for(;l1&&e.unget()),null)},_class:function(){var e,t=this._tokenStream;return t.match(m.DOT)?(t.mustMatch(m.IDENT),e=t.token(),new h("."+e.value,"class",e.startLine,e.startCol-1)):null},_element_name:function(){var e,t=this._tokenStream;return t.match(m.IDENT)?(e=t.token(),new h(e.value,"elementName",e.startLine,e.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t="";return e.LA(1)!==m.PIPE&&e.LA(2)!==m.PIPE||(e.match([m.IDENT,m.STAR])&&(t+=e.token().value),e.mustMatch(m.PIPE),t+="|"),t.length?t:null},_universal:function(){var e,t=this._tokenStream,n="";return(e=this._namespace_prefix())&&(n+=e),t.match(m.STAR)&&(n+="*"),n.length?n:null},_attrib:function(){var e,t,n=this._tokenStream,o=null;return n.match(m.LBRACKET)?(o=(t=n.token()).value,o+=this._readWhitespace(),(e=this._namespace_prefix())&&(o+=e),n.mustMatch(m.IDENT),o+=n.token().value,o+=this._readWhitespace(),n.match([m.PREFIXMATCH,m.SUFFIXMATCH,m.SUBSTRINGMATCH,m.EQUALS,m.INCLUDES,m.DASHMATCH])&&(o+=n.token().value,o+=this._readWhitespace(),n.mustMatch([m.IDENT,m.STRING]),o+=n.token().value,o+=this._readWhitespace()),n.mustMatch(m.RBRACKET),new h(o+"]","attribute",t.startLine,t.startCol)):null},_pseudo:function(){var e,t,n=this._tokenStream,o=null,a=":";if(n.match(m.COLON)){if(n.match(m.COLON)&&(a+=":"),n.match(m.IDENT)?(o=n.token().value,e=n.token().startLine,t=n.token().startCol-a.length):n.peek()===m.FUNCTION&&(e=n.LT(1).startLine,t=n.LT(1).startCol-a.length,o=this._functional_pseudo()),!o){var i=n.LT(1).startLine,l=n.LT(0).startCol;throw new r("Expected a `FUNCTION` or `IDENT` after colon at line "+i+", col "+l+".",i,l)}o=new h(a+o,"pseudo",e,t)}return o},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(m.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(m.RPAREN),t+=")"),t},_expression:function(){for(var e=this._tokenStream,t="";e.match([m.PLUS,m.MINUS,m.DIMENSION,m.NUMBER,m.STRING,m.IDENT,m.LENGTH,m.FREQ,m.ANGLE,m.TIME,m.RESOLUTION,m.SLASH]);)t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e,t,n,o=this._tokenStream,r="",a=null;return o.match(m.NOT)&&(r=o.token().value,e=o.token().startLine,t=o.token().startCol,r+=this._readWhitespace(),r+=n=this._negation_arg(),r+=this._readWhitespace(),o.match(m.RPAREN),r+=o.token().value,(a=new h(r,"not",e,t)).args.push(n)),a},_negation_arg:function(){var e,t,n=this._tokenStream,o=[this._type_selector,this._universal,function(){return n.match(m.HASH)?new h(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo],r=null,a=0,i=o.length;for(e=n.LT(1).startLine,t=n.LT(1).startCol;a0?new d(t,t[0].line,t[0].col):null},_term:function(e){var t,n,o,r,a=this._tokenStream,i=null,l=null,u=null;return null!==(t=this._unary_operator())&&(o=a.token().startLine,r=a.token().startCol),a.peek()===m.IE_FUNCTION&&this.options.ieFilters?(i=this._ie_function(),null===t&&(o=a.token().startLine,r=a.token().startCol)):e&&a.match([m.LPAREN,m.LBRACE,m.LBRACKET])?(l=(n=a.token()).endChar,i=n.value+this._expr(e).text,null===t&&(o=a.token().startLine,r=a.token().startCol),a.mustMatch(m.type(l)),i+=l,this._readWhitespace()):a.match([m.NUMBER,m.PERCENTAGE,m.LENGTH,m.ANGLE,m.TIME,m.FREQ,m.STRING,m.IDENT,m.URI,m.UNICODE_RANGE])?(i=a.token().value,null===t&&(o=a.token().startLine,r=a.token().startCol,u=c.fromToken(a.token())),this._readWhitespace()):null===(n=this._hexcolor())?(null===t&&(o=a.LT(1).startLine,r=a.LT(1).startCol),null===i&&(i=a.LA(3)===m.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(i=n.value,null===t&&(o=n.startLine,r=n.startCol)),null!==u?u:null!==i?new c(null!==t?t+i:i,o,r):null},_function:function(){var e,t=this._tokenStream,n=null;if(t.match(m.FUNCTION)){if(n=t.token().value,this._readWhitespace(),n+=this._expr(!0),this.options.ieFilters&&t.peek()===m.EQUALS)do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===m.COMMA&&(n+=t.token().value),t.match(m.IDENT),n+=t.token().value,t.match(m.EQUALS),n+=t.token().value,e=t.peek();e!==m.COMMA&&e!==m.S&&e!==m.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([m.COMMA,m.S]));t.match(m.RPAREN),n+=")",this._readWhitespace()}return n},_ie_function:function(){var e,t=this._tokenStream,n=null;if(t.match([m.IE_FUNCTION,m.FUNCTION])){n=t.token().value;do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===m.COMMA&&(n+=t.token().value),t.match(m.IDENT),n+=t.token().value,t.match(m.EQUALS),n+=t.token().value,e=t.peek();e!==m.COMMA&&e!==m.S&&e!==m.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([m.COMMA,m.S]));t.match(m.RPAREN),n+=")",this._readWhitespace()}return n},_hexcolor:function(){var e,t=this._tokenStream,n=null;if(t.match(m.HASH)){if(e=(n=t.token()).value,!/#[a-f0-9]{3,6}/i.test(e))throw new r("Expected a hex color but found '"+e+"' at line "+n.startLine+", col "+n.startCol+".",n.startLine,n.startCol);this._readWhitespace()}return n},_keyframes:function(){var e,t,n,o=this._tokenStream,r="";for(o.mustMatch(m.KEYFRAMES_SYM),e=o.token(),/^@\-([^\-]+)\-/.test(e.value)&&(r=RegExp.$1),this._readWhitespace(),n=this._keyframe_name(),this._readWhitespace(),o.mustMatch(m.LBRACE),this.fire({type:"startkeyframes",name:n,prefix:r,line:e.startLine,col:e.startCol}),this._readWhitespace(),t=o.peek();t===m.IDENT||t===m.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),t=o.peek();this.fire({type:"endkeyframes",name:n,prefix:r,line:e.startLine,col:e.startCol}),this._readWhitespace(),o.mustMatch(m.RBRACE),this._readWhitespace()},_keyframe_name:function(){var e=this._tokenStream;return e.mustMatch([m.IDENT,m.STRING]),a.fromToken(e.token())},_keyframe_rule:function(){var e=this._key_list();this.fire({type:"startkeyframerule",keys:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:e,line:e[0].line,col:e[0].col})},_key_list:function(){var e=this._tokenStream,t=[];for(t.push(this._key()),this._readWhitespace();e.match(m.COMMA);)this._readWhitespace(),t.push(this._key()),this._readWhitespace();return t},_key:function(){var e,t=this._tokenStream;if(t.match(m.PERCENTAGE))return a.fromToken(t.token());if(t.match(m.IDENT)){if(e=t.token(),/from|to/i.test(e.value))return a.fromToken(e);t.unget()}this._unexpectedToken(t.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([m.S,m.CDO,m.CDC]););},_readDeclarations:function(e,t){var n,o=this._tokenStream;this._readWhitespace(),e&&o.mustMatch(m.LBRACE),this._readWhitespace();try{for(;;){if(o.match(m.SEMICOLON)||t&&this._margin());else{if(!this._declaration())break;if(!o.match(m.SEMICOLON))break}this._readWhitespace()}o.mustMatch(m.RBRACE),this._readWhitespace()}catch(e){if(!(e instanceof r)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),(n=o.advance([m.SEMICOLON,m.RBRACE]))===m.SEMICOLON)this._readDeclarations(!1,t);else if(n!==m.RBRACE)throw e}},_readWhitespace:function(){for(var e=this._tokenStream,t="";e.match(m.S);)t+=e.token().value;return t},_unexpectedToken:function(e){throw new r("Unexpected token '"+e.value+"' at line "+e.startLine+", col "+e.startCol+".",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==m.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){g.validate(e,t)},parse:function(e){this._tokenStream=new _(e,m),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new _(e,m);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new _(e,m),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new _(e,m),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new _(e,m),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+="}",this._tokenStream=new _(e,m),this._readDeclarations()}};for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}()},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.vhSanitize=t.getRelativeSelector=t.renderIndicator=t.nilOnNegative=t.abs=t.isNegative=t.shouldOuterMarginRender=t.shouldInnerMarginRender=t.shouldMarginRender=t.shouldPaddingRender=t.shouldSpacingRender=t.shouldSizingRender=t.shouldDraggableComponentRender=t.isHeightEnabled=t.isMarginEnabled=t.isPaddingEnabled=t.isWidthEnabled=t.isSizingEnabled=t.emptyOnNaN=t.dragAxis=t.add=t.inverse=void 0;var r=w(n(1)),a=w(n(31)),i=w(n(151)),l=w(n(5)),u=w(n(6)),s=y(n(159)),d=w(n(6)),c=y(n(345)),f=y(n(378)),p=y(n(439)),h=y(n(56)),_=n(190),m=n(91),g=w(n(2)),b=n(280);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function w(e){return e&&e.__esModule?e:{default:e}}var O=function(e){var t=h.getAttrs(e),n=p.getValueX(t),o=p.getValueY(t),a=[p.OVERFLOW_HIDDEN,p.OVERFLOW_SCROLL],i="on||||"!==(0,r.default)(t,"border_radii"),s=h.isModule(e,u.default.getHoveredModule()),d=u.default.isDragEditedModule(e);return i&&!s&&!d||(0,l.default)(a,n)||(0,l.default)(a,o)};t.inverse=function(e){return-1*e};t.add=function(e,t){return e+(0,m.getNumber)(t,0)+(0,m.getUnit)(t)};t.dragAxis=function(e){switch(e){case _.TOP:case _.BOTTOM:return"onDragY";case _.LEFT:case _.RIGHT:return"onDragX";default:return""}};t.emptyOnNaN=function(e){return isNaN(parseInt(e))?"":e};var k=function(e){return!u.default.isProductTourActive()&&(!(!u.default.isAllowedAction("edit_module")||!u.default.isAllowedAction("advanced_settings"))&&(!!h.isEditable(e)&&(!h.isRemoved(e)&&(!u.default.abIsMode("select_subject")&&!u.default.abIsMode("select_goal")))))};t.isSizingEnabled=k;t.isWidthEnabled=function(e){var t=c.getWidthHelper(h.getType(e),h.getAttrs(e));return k(e)&&t.supports()&&t.isEnabled()};var S=function(e){var t=h.getType(e),n=h.getAttrs(e),o=f.getPaddingHelper(t,n);return o.supports()&&o.supportsDraggable()};t.isPaddingEnabled=S;var E=function(e){var t=h.getType(e),n=h.getAttrs(e),o=f.getMarginHelper(t,n);return o.supports()&&o.supportsDraggable()};t.isMarginEnabled=E;t.isHeightEnabled=function(e){var t=c.getHeightHelper(h.getType(e),h.getAttrs(e));return k(e)&&t.supports()&&t.isEnabled()};var M=function(e){var t=u.default.isDoingDragEdit(),n=u.default.isDragEditedModule(e),o=(h.isRow(e)||h.isInnerRow(e))&&!h.hasChildren(e),r="post_content"===d.default.getActiveThemeBuilderArea();return(!(0,b.isPostContentModule)(e.props.type)||!r)&&(!h.isLockedParent(e)&&(!u.default.getQuickActionsContext()&&(!h.getProps(e).is_module_child&&(!h.isLocked(e)&&(!h.isRemoved(e)&&(!u.default.isSettingsModalOpen()&&(!(t&&!n)&&(!(u.default.isSettingsModalOpen()&&!o)&&(!u.default.abIsMode("select_subject")&&!u.default.abIsMode("select_goal")&&!h.isEdited(e))))))))))};t.shouldDraggableComponentRender=M;t.shouldSizingRender=function(e){if(!M(e))return!1;if(u.default.isMultiItemSelected(h.getAddress(e)))return!0;if("grid"===h.getProps(e).eventMode)return!0;if((h.isRow(e)||h.isInnerRow(e))&&!h.hasChildren(e))return!0;var t=u.default.getHoveredModule();if((h.isRow(e)||h.isInnerRow(e))&&(h.isColumn(t)||h.isInnerColumn(t))&&!h.hasChildren(t))return!0;var n="et_pb_section"===h.getType(e)?"state":"props",o=!1!==(0,r.default)(e,"".concat(n,".hovered")),a=!0===(0,r.default)(e,"".concat(n,".child_hovered")),i=u.default.isDragEditedModule(e),l=h.isEditable(e),s="click"===h.getProps(e).eventMode;return!(!o&&!a||!s&&l)||!!(o&&!a||i)};var C=function(e){if(!M(e))return!1;var t=s.isDragging(),n=u.default.isDragEditedModule(e);if(t&&!n)return!1;if(h.isRemoved(e))return!1;if(!h.isEditable(e))return!1;if(!u.default.isAllowedAction("edit_module")||!u.default.isAllowedAction("advanced_settings"))return!1;if(u.default.isProductTourActive())return!1;var o="click"===(0,r.default)(e,"props.eventMode"),a=(0,r.default)(e,"props.clickModeActiveModule")===h.getAddress(e),i=h.isParentOf(h.getAddress(e),(0,r.default)(e,"props.clickModeActiveModule"));return!(!t&&o&&!a&&!i)};t.shouldSpacingRender=C;t.shouldPaddingRender=function(e){if(!C(e)||!S(e))return!1;var t=u.default.isDragEditedModule(e),n=s.getModule()||u.default.getHoveredModule(),o=h.isModule(e,n),a=o||h.isChildOf(h.getAddress(e),h.getAddress(n)),i=u.default.getActiveOutline();return!(!i||!h.isModule((0,r.default)(i,"object"),e))||!!(a||o||t)};var P=function(e){if(!C(e)||!E(e))return!1;var t=s.getModule()||u.default.getHoveredModule();if(h.isParentOf(h.getAddress(e),h.getAddress(t)))return!1;var n=u.default.isDragEditedModule(e);if(n&&s.getType()!==s.TYPE_MARGIN)return!1;if("et_pb_section"===h.getType(e)){var o=parseInt(h.getAddress(e)),r=parseInt(h.getAddress(t));return!isNaN(o)&&(0,l.default)([o-1,o,o+1],r)}return!(!h.getProps(e).hovered&&!h.getProps(e).hoveredParent&&!n)};t.shouldMarginRender=P;t.shouldInnerMarginRender=function(e){return!O(e)&&P(e)};t.shouldOuterMarginRender=function(e){return O(e)&&P(e)};var T=function(e){return parseFloat(e)<0};t.isNegative=T;t.abs=function(e){return isNaN(parseFloat(e))?e:Math.abs(parseFloat(e))+(0,m.getUnit)(e)};t.nilOnNegative=function(e){return T(e)?"0px":e};t.renderIndicator=function(e){var t=parseInt(e)||0;switch((0,m.getUnit)(e||"")){case"px":return Math.abs(t)>30;case"pt":return Math.abs(t)>20;case"mm":return Math.abs(t)>7;case"rem":case"em":return Math.abs(t)>2;case"cm":case"in":return Math.abs(t)>0;default:return Math.abs(t)>1}};t.getRelativeSelector=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,i.default)((0,a.default)(e.split(","),(function(e){return(e.split("%%order_class%%")[1]||"").trim()}))).join(",")};t.vhSanitize=function(e){var t=u.default.getPreviewMode(),n=g.default.isBFB()||g.default.isTB();return t&&"wireframe"!==t&&(n||"desktop"!==t)&&"vh"===(0,m.getUnit)(e)?"".concat((0,m.vhToPx)(g.default.topViewportHeight(),parseFloat(e)),"px"):e}},,function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(0)),a=_(n(13)),i=_(n(1)),l=_(n(36)),u=_(n(5)),s=(_(n(24)),_(n(48))),d=_(n(58)),c=_(n(57)),f=(_(n(44)),_(n(19))),p=(_(n(6)),_(n(22))),h=n(153);function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(e,"_").concat(t).concat(n)},t.hasContextMenu=function(e){return!0},t.canAddSiblings=t.isInteractable=t.isEditable=t.isLocked=void 0;var o=a(n(10)),r=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return-1!==ETBuilderBackend.themeBuilder.postContentModules.indexOf(e)}var l=function(e,t){return!(!e&&!t)};t.isLocked=l;t.isEditable=function(e,t,n,a,i){var l=!n,s=r.default.isAllowedAction("edit_global_library"),d=!0;return(0,o.default)(i)||(d=r.default.isAllowedAction(i)),(d=d&&r.default.isAllowedAction("edit_module"))&&u(e,t,a)&&(l||s)};var u=function(e,t,n){var o=!n,a=r.default.isAllowedAction("edit_global_library");return!l(e,t)&&(o||a)};t.isInteractable=u;t.canAddSiblings=function(e,t,n){var o=!e,a=!t,i=r.default.isAllowedAction("edit_global_library"),l=r.default.isEditingLibraryItem(n);return o&&(a||i)&&!l}},function(e,t,n){var o=n(30),r=n(300),a=n(119);e.exports=function(e,t){return a(e,r(o(t)))}},function(e,t,n){var o=n(436),r=n(117),a=n(46),i=n(139),l=a((function(e,t){return i(e)?o(e,r(t,1,i,!0)):[]}));e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=q(n(1)),r=q(n(10)),a=q(n(905)),i=q(n(292)),l=q(n(437)),u=q(n(667)),s=q(n(547)),d=q(n(928)),c=q(n(929)),f=q(n(930)),p=q(n(931)),h=q(n(678)),_=q(n(932)),m=q(n(933)),g=q(n(934)),b=q(n(935)),v=q(n(936)),y=q(n(937)),w=q(n(938)),O=q(n(939)),k=q(n(679)),S=q(n(940)),E=q(n(941)),M=q(n(942)),C=q(n(943)),P=q(n(944)),T=q(n(945)),A=q(n(946)),B=q(n(947)),x=q(n(948)),j=q(n(949)),N=q(n(950)),R=q(n(951)),I=q(n(952)),L=q(n(953)),D=q(n(954)),V=q(n(955)),F=q(n(956)),W=q(n(957)),U=q(n(958)),H=q(n(959)),G=q(n(552)),z=q(n(960));function q(e){return e&&e.__esModule?e:{default:e}}function $(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return t?this.i18n.optionsGroups:this.i18n.optionsGroup}},{key:"goToAction",value:function(e){O.default.quickAccessSwitchTab(e.toggleGroupId),O.default.quickAccessActive({toggleId:e.toggleId,toggleGroupId:e.toggleGroupId})}},{key:"getNestedAllowedGroup",value:function(e,t){if(!this.getNestedAction(e,t))return[];var n=e.type,o=e.nested_option,r=this.getNestedOptionAlias(n,"option_type");return["option"===r&&o?o:r,n]}}],n&&E(t.prototype,n),o&&E(t,o),k}(g.default),N=j;t.default=N},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t,n){(function(t){(function(){var n,o,r,a,i,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-i)/1e6},o=t.hrtime,a=(n=function(){var e;return 1e9*(e=o())[0]+e[1]})(),l=1e9*t.uptime(),i=a-l):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(this,n(340))},,function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),a=u(n(7)),i=u(n(13)),l=u(n(2));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&i.length>r&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,l=u,console&&console.warn&&console.warn(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=f.bind(o);return r.listener=n,o.wrapFn=r,r}function h(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=r[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var s=u.length,d=m(u,s);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){i=n[a].listener,r=a;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;o--)this.removeListener(e,t[o]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},l.prototype.listenerCount=_,l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var o=n(113),r=n(210),a=n(138),i=n(157),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=r(e);return t}:i;e.exports=l},function(e,t,n){var o=n(86),r=n(37);e.exports=function(e,t){var n=-1,a=r(e)?Array(e.length):[];return o(e,(function(e,o,r){a[++n]=t(e,o,r)})),a}},function(e,t,n){var o=n(115),r=n(60);e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&o(e,t,n)}},function(e,t,n){(function(e){var o=n(20),r=t&&!t.nodeType&&t,a=r&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===r?o.Buffer:void 0,l=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}}).call(this,n(93)(e))},function(e,t,n){var o=n(258);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var o=n(149),r=n(210),a=n(85);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(r(e))}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var o=n(50),r=n(310),a=r?function(e,t){return r.set(e,t),e}:o;e.exports=a},function(e,t,n){var o=n(164),r=o&&new o;e.exports=r},function(e,t,n){var o=n(312),r=n(313),a=n(417),i=n(173),l=n(314),u=n(188),s=n(423),d=n(150),c=n(20);e.exports=function e(t,n,f,p,h,_,m,g,b,v){var y=128&n,w=1&n,O=2&n,k=24&n,S=512&n,E=O?void 0:i(t);return function M(){for(var C=arguments.length,P=Array(C),T=C;T--;)P[T]=arguments[T];if(k)var A=u(M),B=a(P,A);if(p&&(P=o(P,p,h,k)),_&&(P=r(P,_,m,k)),C-=B,k&&C1&&P.reverse(),y&&b=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function I(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);np,v=(0,i.default)(a,_);return v&&rparseInt(l))return 1;if(parseInt(i)1?(0,c.default)(E).join("."):"root",C=e("root"!==M?'[data-address="'.concat(M,'"]'):".et_fb_preview_container"),P=t.split(".").length,T=m.split(".").length,A=!!y||P!==T;return{draggedAddress:m,$itemTarget:k,shouldMultiUpdate:C.length>0&&t!==m&&A,highestLevel:!!(0,a.default)(l)}},getAfterItemType:function(e,t,n){var o="";if((0,f.default)(["paste"],e)&&!(0,a.default)(n)){if((0,f.default)(["et_pb_row","et_pb_row_inner","et_pb_column","et_pb_column_inner"],t))o="module";else if("et_pb_section"===t){var r=S.default.isOn(n.props.attrs.specialty),i=S.default.isOn(n.props.attrs.fullwidth);o="row",r?o="module":i&&(o="fullwidth_module")}}else o=t;return o},getMainOrderedItems:function(e,t){if((0,a.default)(e))return null;var n=[],o=[],r=[];return(0,l.default)(e,(function(e){var a=P(e,t);"before-partner"!==a?"after-partner"!==a?"above"!==a?n.unshift(e):n.push(e):r.push(e):o.push(e)})),e=o.concat(r,n)},getSourceDestinationRelation:function(e,t){var n=e.split("."),o=(0,c.default)(n),r=parseInt((0,h.default)(n)),a=t.split("."),l=(0,c.default)(a),u=parseInt((0,h.default)(a));return(0,i.default)(o,l)?r<=u?"above":"below":"after"===T(o,l)?"after-partner":"before-partner"},getPartnerType:function(e,t){for(var n=Math.max(e.length,t.length),o=0,a=0,i=0;iparseInt(a))return"after";if(parseInt(o)1&&o.length>1&&(0,l.default)(u,(function(e){if((0,a.default)(n))n=e;else{var t={};(0,l.default)(e,(function(e,o){if("background"!==o||(0,r.default)(n[o]))!(0,r.default)(n[o])&&(0,i.default)(e,n[o])&&(t[o]=e);else{var a=n[o];(0,i.default)(a.title,e.title)&&(t[o]=e)}})),n=t}}))}return n},generateSelectedAttrs:function(e,t,n){var o=O.default.getMultiSelectItemsData();if((0,y.default)(o).length<=1)return t;var u=k.default.getComponentDefaults(e),s={};return(0,l.default)(o,(function(e){var o=(0,p.default)(e,"props.attrs");if((0,a.default)(s))s=o;else{var d={};(0,l.default)(s,(function(e,a){if(!(0,r.default)(o[a])){var l=(0,p.default)(u,a,"");(0,r.default)(n[a])||(l=t[a]);var s=e;(0,i.default)(e,o[a])||(s=l),d[a]=s}})),s=d}})),s},generateSelectedContent:function(e,t){var n=O.default.getMultiSelectItemsData();if((0,y.default)(n).length<=1)return e;if(!(0,r.default)(t.content))return e;var o="";return(0,l.default)(n,(function(e){var t=(0,p.default)(e,"props.content","");if(!(0,a.default)(o))return(0,i.default)(t,o)?void 0:(o="",!1);o=t})),o},generateSelectedFieldsItem:function(e,t){if((0,a.default)(e)){e=t;(0,l.default)(["use_custom_fields"],(function(t){(0,r.default)(e[t])||delete e[t]}))}else{var n={};(0,l.default)(e,(function(e,o){(0,r.default)(t[o])||(n[o]=e)})),e=(0,a.default)(n)?e:n}return e},generateMultiItemsToggles:function(e){if(O.default.getMultiSelectInfo("toggles_checked"))return!1;var t={},n=O.default.getMultiSelectElementsName();(0,a.default)(e)||(0,a.default)(n)||(0,l.default)(n,(function(n){if(!(0,r.default)(e[n])){var o=e[n];if((0,a.default)(t))t=o;else{var i={};(0,l.default)(o,(function(e,n){(0,r.default)(t[n])||(i[n]=e)})),t=i}}})),w.default.multiSelectUpdateToggles(t,!0)},shouldActivateClickMode:function(e){if((0,a.default)(e))return!1;var t=e.shiftKey,n=e.ctrlKey,o=e.metaKey;if(!t&&!n&&!o)return!1;var r=O.default.getEventMode();return!!(0,f.default)(["hover","default"],r)&&("wireframe"!==("wireframe"!==O.default.getPreviewMode())&&""===O.default.getMultiSelectInfo("lastMode"))},shouldItemSelected:function(e,t,n){var o="click"===O.default.getEventMode(),r="wireframe"===O.default.getPreviewMode();if(x(e)&&(o||r))return!(0,p.default)(n,"props.isFilterActive")&&!(0,p.default)(n,"props.skipLayer")&&(!(0,S.is)("removed",n)&&(w.default.resetClickModeActiveModule(t),w.default.multiSelectSelectedItem(t,n,e.shiftKey),!0));if(O.default.getMultiSelectInfo("blurredTab")&&(w.default.multiSelectUpdateInfo("blurredTab",!1),j(e)&&!O.default.getQuickActionsContext()))return w.default.multiSelectChangeMode("click",!1),!0;var i=O.default.getMultiSelectInfo("action");if((0,f.default)(["edit-wireframe","edit-label"],i))return!1;var l=O.default.getModuleEdit();return!!(0,a.default)(l)&&(w.default.multiSelectBackupRestore("backup"),w.default.multiSelectReset(!0),!1)},shouldMultiItemMixed:function(e,t,n){var o=O.default.getMultiSelectCheckedInfo(),i=O.default.getMultiSelectGroupRaw(),l={shouldForce:!1,isItemsMixed:!1,newConnectWith:"",newChildSlug:""};if((0,a.default)(i)){if(!(0,r.default)(n)&&n.length>0){var u={et_pb_column:"module",et_pb_column_inner:"module",et_pb_section:"row"};n.hasClass("et_pb_specialty_column")&&(u.et_pb_column="row-inner");var s=n.data("dragOptions");(0,r.default)(s)||(0,r.default)(u[t])||u[t]==s.childSlug||(l.shouldForce=!0)}return l}var d=(0,f.default)(o,e);if((0,y.default)(i).length<=2){if(d){var c=o.indexOf(e);c>-1&&o.splice(c,1),l.shouldForce=!0}return l}var p=!1,h=(e=(0,g.default)(e)).split(".");if("et_pb_column"===t&&2===h.length&&n?n.hasClass("et_pb_column_single")&&!(0,r.default)(i.columns)?(0,r.default)(i.columnsSpecialty)&&(0,r.default)(i.section)||(p=(0,f.default)(i.columns,e)):!n.hasClass("et_pb_specialty_column")||(0,r.default)(i.columnsSpecialty)||(0,r.default)(i.section)||(p=(0,f.default)(i.columnsSpecialty,e)):(0,f.default)(["et_pb_column","et_pb_column_inner"],t)&&!(0,r.default)(i.columns)?p=(0,f.default)(i.columns,e):"et_pb_section"!==t||(0,r.default)(i.sections)||(0,r.default)(i.section)||(p=(0,f.default)(i.sections,e)),p)l.isItemsMixed=!0,d||(o.push(e),l.shouldForce=!0);else if(d){var _=o.indexOf(e);_>-1&&o.splice(_,1),l.shouldForce=!0}if(!(0,r.default)(i.row)&&!(0,f.default)(["et_pb_section"],t)){var m=(0,g.default)(e).split(".");"et_pb_column_inner"===t||"et_pb_column"===t&&2===m.length?(l.newConnectWith=".et_pb_specialty_column:not(.et_pb_parent_locked)",l.newChildSlug="row-inner"):(l.newConnectWith=".et_pb_section:not(.et_pb_fullwidth_section, .et_section_specialty)",l.newChildSlug="row")}return(0,r.default)(i.section)||(l.newConnectWith=".et_fb_preview_container",l.newChildSlug="section"),setTimeout((function(){w.default.multiSelectUpdateInfo("checked",o)}),0),l},preparePushItem:function(e,t,n,o){var r={selected:o.selected,removed:o.removed,lastPushed:"",lastRemoved:e};t&&(r.selected="",r.removed=e);var a=!0;return-1===n.indexOf(e)&&(t&&(r.selected=e,r.removed=""),r.lastPushed=e,r.lastRemoved="",a=!1),{itemsSelection:r,isItemExist:a}},preparePushItems:function(e,t,n){var o=!0,i={},l=0,u=0,c="";(0,r.default)(t.selected)||(c=t.selected);var f=c.split("."),p=(0,a.default)(f)?"":c.substring(0,c.length-2),h=0,_=e.split("."),m=0,g=(0,d.default)(e,p)&&f.length===_.length;if((0,a.default)(c)||!g)return{isShiftSelection:o=!1,parentItems:i,bottomLimit:l,topLimit:u,lastItemAddress:c};switch(f.length){case 1:i=n,h=f[0],m=_[0];break;case 2:i=n[f[0]].content,h=f[1],m=_[1];break;case 3:i=n[f[0]].content[f[1]].content,h=f[2],m=_[2];break;case 4:i=n[f[0]].content[f[1]].content[f[2]].content,h=f[3],m=_[3];break;case 5:i=n[f[0]].content[f[1]].content[f[2]].content[f[3]].content,h=f[4],m=_[4];break;case 6:i=n[f[0]].content[f[1]].content[f[2]].content[f[3]].content[f[4]].content,h=f[5],m=_[5];break;case 7:i=n[f[0]].content[f[1]].content[f[2]].content[f[3]].content[f[4]].content[f[5]].content,h=f[6],m=_[6];break;case 8:i=n[f[0]].content[f[1]].content[f[2]].content[f[3]].content[f[4]].content[f[5]].content[f[6]].content,h=f[7],m=_[7];break;case 9:i=n[f[0]].content[f[1]].content[f[2]].content[f[3]].content[f[4]].content[f[5]].content[f[6]].content[f[7]].content,h=f[8],m=_[8];break;case 10:i=n[f[0]].content[f[1]].content[f[2]].content[f[3]].content[f[4]].content[f[5]].content[f[6]].content[f[7]].content[f[8]].content,h=f[9],m=_[9]}return l=h=(0,s.default)(h),u=m=(0,s.default)(m),h>m&&(l=m,u=h),{isShiftSelection:o,parentItems:i,bottomLimit:l,topLimit:u,lastItemAddress:c}},preparePushAddressGroup:function(e,t,n,o){var i="",l="",u="",s="",d="",p=!0;switch(t.length){case 1:s="section",d="section";break;case 2:s="row",d="row",i=(0,c.default)(t).join("."),(0,r.default)(o.section)||(0,f.default)(o.section,i)&&(s=""),(0,r.default)(n[i])||(p=!1);break;case 3:if(d="module",(0,r.default)(e)||(0,a.default)(e))break;s="module","row-inner"===e.component_path&&(s="row",d="row-inner"),i=(0,_.default)(t),(0,r.default)(o.section)||(0,f.default)(o.section,i)&&(s=""),(0,r.default)(n[i])||(p=!1);break;case 4:s="module",d="module",u=(l=(0,c.default)(t,2)).join("."),(0,r.default)(o.row)||(0,f.default)(o.row,u)&&(s=""),(0,r.default)(n[u])||(p=!1),i=(0,c.default)(l).join("."),(0,r.default)(o.section)||(0,f.default)(o.section,i)&&(s=""),(0,r.default)(n[i])||(p=!1);break;case 5:if(d="module",(0,r.default)(e)||(0,a.default)(e))break;if(e.is_module_child)break;s="module",u=(l=(0,c.default)(t,2)).join("."),(0,r.default)(o.row)||(0,f.default)(o.row,u)&&(s=""),(0,r.default)(n[u])||(p=!1),i=(0,_.default)(t),(0,r.default)(o.section)||(0,f.default)(o.section,i)&&(s=""),(0,r.default)(n[i])||(p=!1)}return{shouldInsert:p,rawContainer:d,container:s}},prepareRemoveAddressGroup:function(e,t){var n="",o="";switch(t.length){case 1:n="section",o="section";break;case 2:n="row",o="row";break;case 3:if(o="row",(0,r.default)(e)||(0,a.default)(e))break;if((0,r.default)(e.section_parent))break;if("specialty"!==e.section_parent)break;n="row";break;case 4:n="module",o="module";break;case 5:if(o="module",(0,r.default)(e)||(0,a.default)(e))break;if(e.is_module_child)break;n="module"}return{container:n,rawContainer:o}},updateGroupOnPush:function(e,t,n,o){var a=S.default.intentionallyCloneDeep(e);return a.section=null,"row"===t&&(a.row=null),(0,l.default)(a,(function(t){(0,l.default)(t,(function(t){if((0,d.default)(t,n)&&t!==n){var a=t.split("."),i=2===a.length?"row":"module";3!==a.length||(0,r.default)(o.is_module_child)||(i=3===a.length?"row":"module");var l=e[i].indexOf(t);l>-1&&e[i].splice(l,1)}}))})),e},updateGroupOnRemove:function(e,t,n,o){return(0,l.default)(e,(function(e){if((0,d.default)(e,n)&&e!==n){var a=e.split("."),i=2===a.length?"row":"module";if(3!==a.length||(0,r.default)(o.is_module_child)||(i=3===a.length?"row":"module"),a.length<=1)return;(0,r.default)(t[i])&&(t[i]=[]),t[i].push(e)}})),t},handleMissingOriginalItem:function(t,n,o){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e('[data-address="'.concat(t,'"]'));if(0===a.length||r&&a.length>0){var i=t.split("."),l=(0,c.default)(i),u=parseInt((0,h.default)(i))+1;l.push((0,g.default)(u));var s=e('[data-address="'.concat(l.join("."),'"]'));0===s.length?n.append(o):o.insertBefore(s)}}},P=C.getSourceDestinationRelation,T=C.getPartnerType,A=C.getItemAboveBelow,B=C.getItemTarget,x=C.isItemSelection,j=C.shouldActivateClickMode,N=C;t.default=N}).call(this,n(9))},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t>>0)?(e=s(e))&&("string"==typeof t||null!=t&&!l(t))&&!(t=o(t))&&a(e)?r(u(e),0,n):e.split(t,n):[]}},function(e,t,n){var o=n(266);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(287),r=n(208),a=n(50),i=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=i},function(e,t,n){var o=n(12),r=n(85),a=n(334),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return a(e);var t=r(e),n=[];for(var l in e)("constructor"!=l||!t&&i.call(e,l))&&n.push(l);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t){e.exports=function(e,t,n){for(var o=-1,r=null==e?0:e.length;++o1)for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:"";return S(e,g,i.Height,t,n)};var E=function(e,t){y=k(e,t,l.Width,y)};t.registerWidthHelper=E;t.getWidthHelper=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(e,y,l.Width,t,n)};t.registerMaxHeightHelper=function(e,t){v=k(e,t,c.MaxHeight,v)};t.registerMinHeightHelper=function(e,t){b=k(e,t,d.MinHeight,b)};t.getMinHeightHelper=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(e,b,d.MinHeight,t,n)};t.getMaxHeightHelper=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(e,v,c.MaxHeight,t,n)};var M=function(e,t){w=k(e,t,u.MaxWidth,w)};t.registerMaxWidthHelper=M;t.getMaxWidthHelper=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(e,w,u.MaxWidth,t,n)};t.registerAlignmentHelper=function(e,t){w=k(e,t,s.Alignment,O)};t.getAlignmentHelper=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(e,O,s.Alignment,t,n)},E("et_pb_image",f.ImageWidth),M("et_pb_image",f.ImageMaxWidth)},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(0)),a=m(n(29)),i=m(n(609)),l=m(n(7)),u=m(n(42)),s=m(n(5)),d=m(n(41)),c=m(n(2)),f=m(n(39)),p=m(n(19)),h=m(n(6)),_=["forwardedRef"];function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function b(){return b=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t=0&&r-o<=n}(r,i,p,s),_=function(e,t,n,o){var r=e.bottom-Math.abs(t.top);return r+o>=0&&r<=n+o}(r,i,p,s),m=function(e,t,n,o){var r=e.bottom-Math.abs(t.top);return e.top-Math.abs(t.top)+o<0&&r>=n+o}(r,i,p,s);return d?!!(h||_||m):!!(m||h&&_)}},{key:"render",value:function(){var e=this.props,n=e.forwardedRef,o=v(e,_),a=this.state.isInViewport;return r.default.createElement(t,b({},o,{ref:n,isInViewport:a}))}}])&&O(o.prototype,i),l&&O(o,l),g}(r.Component);return n.propTypes={previewMode:l.default.string},n.defaultProps={previewMode:"desktop"},n.displayName="WithVisibilitySensor(".concat(t.displayName||t.name||"Component",")"),(0,i.default)(n,t),r.default.forwardRef((function(e,t){return r.default.createElement(n,b({},e,{forwardedRef:t}))}))}};t.default=A},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isJson=t.validateRefType=t.composeRef=t.doesDomElementContain=t.isElementExcluded=t.isScriptTopOnly=t.isScriptExcluded=t.shouldComponentUpdate=t.decodeHtmlEntities=t.toString=void 0;var o=a(n(41)),r=a(n(1));a(n(12));function a(e){return e&&e.__esModule?e:{default:e}}var i={toString:function(e){return e&&"function"==typeof e.toString?e.toString():Array.isArray(e)?e.join(","):null==e?"":""+e},decodeHtmlEntities:function(e){return i.toString(e).replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))},shouldComponentUpdate:function(e,t,n){return!(0,o.default)(t,e.props)||!(0,o.default)(n,e.state)},isScriptExcluded:function(e){var t=window.ET_Builder.Preboot.scripts,n=t.allowlist,o=t.blocklist,r=e.nodeName,a=e.innerHTML,i=e.src,l=e.className;return"SCRIPT"===r&&(l?o.className.test(l):a?!n.innerHTML.test(a)&&o.innerHTML.test(a):o.src.test(i))},isScriptTopOnly:function(e){var t=window.ET_Builder.Preboot.scripts.topOnly,n=e.nodeName,o=e.src;return"SCRIPT"===n&&t.src.test(o)},isElementExcluded:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,r.default)(window,"et_fb_preboot.is_BFB",!1),o=(0,r.default)(window,"et_fb_preboot.is_TB",!1),a=!n&&!o,i=(0,r.default)(window,"window.ET_Builder.Preboot.elements.blocklist",{}),l=(0,r.default)(window,"window.ET_Builder.Preboot.elements.iframeBlocklist",{}),u=e.className;if(u){var s=!t||!a,d=!!i.className&&i.className.test(u),c=!(!s||!l.className)&&l.className.test(u);return d||c}return!1},doesDomElementContain:function(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1},composeRef:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n9007199254740991)return[];var n=i,u=l(e,i);t=r(t),e-=i;for(var s=o(u,t);++n-1?l[u?t[s]:s]:void 0}}},function(e,t,n){var o=n(89),r=n(118);e.exports=function(e,t){return t.length<2?e:o(e,r(t,0,-1))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizedPreviously=function(e){return e},t.windowHasScrollbar=t.getScrollbarWidth=t.isDefault=t.isNo=t.isYes=t.isOnOff=t.isOff=t.isOn=void 0;t.isOn=function(e){return"on"===e};t.isOff=function(e){return"off"===e};t.isOnOff=function(e){return"on"===e||"off"===e};t.isYes=function(e){return"yes"===e};t.isNo=function(e){return"no"===e};t.isDefault=function(e){return"default"===e};var o=-1;t.getScrollbarWidth=function(){if(0e.document.body.clientHeight}},function(e,t,n){var o=n(97);e.exports=function(e,t){for(var n=e.length;n--&&o(t,e[n],0)>-1;);return n}},function(e,t,n){var o=n(462),r=n(669),a=n(670),i=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return o(a(r(t).replace(i,"")),e,"")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMarginHelper=t.registerMarginHelper=t.getPaddingHelper=t.registerPaddingHelper=void 0;var o=s(n(1)),r=s(n(4)),a=s(n(195)),i=n(963),l=n(683),u=n(964);function s(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t ".concat($)).each((function(t){var n=e(this),o=e(this).attr("data-address");if(z.isPostContentModule){var r=p.parent().parent().parent();P=r.attr("data-address")}if("post_content"===F&&a&&!z.root&&!y.default.isTB()&&(0,f.default)((0,l.default)(ETBuilderBackend,"pageSettingsValues")).length>1){var u=b.default.getPostContentModuleData(b.default.getSections());P=u.address}var s="root"===P?t:"".concat(P,".").concat(t);if((0,h.default)(o)===(0,h.default)(T))return d=s,"root"===P&&z.startingAddress&&(d=s+z.startingAddress),(0,i.default)(ETBuilderBackend.modulesShowOnCancelDropClassname,(function(e){n.hasClass(e)&&setTimeout((function(){n.show()}),1e3)})),!1})),e(t.target).hasClass("et_fb_uneditable_module")&&(d=void 0);var Q=I?q.$items:r.item,Z=a?y.default.$topWindow(Q):y.default.$appWindow(Q);if((0,c.default)(d))return b.default.getModuleDropping()?(Z.stop().css({display:"",height:"",opacity:""}),m.default.multiSelectReset(!1),!1):(Z.stop().css({display:"none",height:"",opacity:""}),setTimeout((function(){Z.css({display:""})}),1e3),m.default.cancelDraggingModule(),!1);e(r.placeholder).stop().show();var J=function(){if(e(r.placeholder).hide(),Z.stop().css({display:"",height:"",opacity:"",position:"",left:"",top:""}),b.default.isProductTourActive()){var t=b.default.getProductTourDropAddress();if("not_set"!==t&&t!==d)return m.default.cancelDraggingModule(),m.default.multiSelectReset(!1),!1}r.sender&&e(r.sender[0]).sortable("cancel");var n=(0,h.default)(C)===(0,h.default)(d),o=K.hasClass("et_pb_fullwidth_section")&&!n;if(n||K.sortable("cancel"),0!==(!a&&y.default.$appWindow('[data-address="'.concat(C,'"]')).length)&&0!==(a&&y.default.$topWindow('[data-address="'.concat(C,'"]')).length)||e(r.sender).append(r.item),A||o){var i=A?R:K;g.default.handleMissingOriginalItem((0,h.default)(T),i,r.item)}if((a&&!n||!a)&&(r.sender&&e(r.sender[0]).sortable("destroy"),K.hasClass("ui-sortable")&&K.sortable("destroy")),e(r.item).hasClass("et_pb_section")&&e(".et_pb_section:ui-sortable").sortable("destroy"),e(".et_fb_invisible_empty_col_placeholder").remove(),p.hasClass("et_pb_column_dropzone")){var u=k.data("row-address"),s=k.data("zone-index");m.default.moveModuleToNewColumn(C,u,s)}else n?(m.default.cancelDraggingModule(C),m.default.multiSelectReset(!0),A&&g.default.handleMissingOriginalItem((0,h.default)(T),R,r.item,!0)):(I?m.default.multiSelectEndDraggingItems(C,d):m.default.endDraggingModule(C,d),a&&(setTimeout((function(){var e=v.default.getActiveLayer();(0,w.isOn)((0,l.default)(e,"props.scrollToLayerOnBuilder"))&&(0,O.scrollToLayerOnBuilder)(e)}),200),clearTimeout(W)));y.default.appWindow().et_reinit_waypoint_modules()};if(o){e(r.item).removeClass("et-wireframe-dragged-item"),e(r.item).is(".et_pb_row")&&e(r.item).children(".et-fb-skeleton").css({width:""}),U.length&&U.css({position:"","z-index":""}),E.length&&(E.closest(".et_pb_row").css("z-index",""),E=!1),S.length&&S.css("z-index","");var ee=y.default.$appWindow(t.target).closest(".et-fb-skeleton__content"),te=ee.outerHeight();ee.css("minHeight","".concat(te,"px")),setTimeout((function(){y.default.$appWindow(t.target).closest(".et-fb-skeleton__content").css("minHeight",""),J()}),50)}else e(r.placeholder).stop().animate({height:0,opacity:0},{duration:500,easing:"easeOutCubic",complete:J})},Y=!1,K=(0,c.default)(n.parent)?t:t.find(n.parent);(0,c.default)(n.preSortableInit)||n.preSortableInit(K,n,t);(0,c.default)(n.update)&&(n.update=p.default);var X=K.hasClass("et-fb-skeleton__content")?K.parent(".et-fb-skeleton").parent():K;K.hasClass("et-fb-skeleton__content")?X.data("dragOptions",(0,r.default)(n)):K.data("dragOptions",(0,r.default)(n));var Q=function(t,n,r){var a=z.offset(),i=a.left,l=i+Math.floor(z.outerWidth())-j,u=a.top,s=u+Math.floor(z.outerHeight())-N;o&&(i=0,l=y.default.$appDocument().width()-j,u=0,s=y.default.$appDocument().height()-N);var c,f,p=e(window).scrollTop(),h=(c=n+x,f=r+B,{left:Math.max(i,Math.min(l,c)),top:Math.max(u,Math.min(s,f))});t.css({position:"fixed",left:(0,d.default)(h.left)?"".concat(h.left,"px"):h.left,top:"".concat(h.top-p,"px")})},Z=function(){R&&(D(K),R=!1)},J={start:function(t,r){if(o){var i=e(r.helper).find(".et-fb-skeleton").first();j=i.width(),N=i.height();var l=e(r.placeholder).offset();x=l.left-t.pageX,B=l.top-t.pageY,N+B<0&&(B=0-N/2)}else j=40,N=40,x=-20,B=-20;if(y.default.condition("is_bfb")&&o){var u=G.width();H.addClass("et_bfb_module_drag--start"),u<768&&H.addClass("et_bfb_module_drag--responsive")}e("body").addClass("et-fb-body--drag");var s=e(r.item[0]).attr("data-address"),d=b.default.isMultiItemSelected(s);if(t.altKey&&!d&&m.default.copyDraggedModule(s),q.$items=r.item,d){var c=g.default.generateObjectItemsSelector(),f=c.generatedString,p=c.generatedSelector;q.$items=p,(a?y.default.$topWindow(f):y.default.$appWindow(f)).css({height:"0px",opacity:0,display:"none"})}else m.default.multiSelectReset(!1);var h=e(r.item[0]);if(o){e(r.item).addClass("et-wireframe-dragged-item");var _=e(r.item).is(".et_pb_module")||!e(r.item).children(".et-fb-skeleton").length?e(r.item):e(r.item).children(".et-fb-skeleton"),v=!C&&M>0?M:_.height(),w=(_.width(),_.css("marginBottom"));if(e(r.item).is(".et_pb_row")&&_.width(e(r.placeholder).outerWidth()),e(r.placeholder).css({height:"".concat(v,"px"),marginBottom:w}),e(":ui-sortable").sortable("refreshPositions"),U.length&&U.css({position:"relative","z-index":20}),_.closest(".et_pb_row").length&&(E=_.closest(".et_pb_row")).css("z-index",30),_.closest(".et_pb_section").length&&(S=_.closest(".et_pb_section")).css("z-index",50),!y.default.condition("is_bfb")&&_.hasClass("et-fb-skeleton--section")){var O=_.closest(".et_pb_section").width(),k=_.closest(".et-fb-post-content").width();r.helper.closest(".et_pb_section").css({marginLeft:"".concat((k-O)/2,"px")})}}else h.show(),h.data("orig-height",h.innerHeight()),h.slideUp({start:function(){h.css({opacity:1})},duration:500,easing:"easeOutCubic",progress:function(e,t,n){h.css({opacity:1-t})},complete:function(){h.css({height:"0px",opacity:0}),e(r.placeholder[0]).animate({height:n.placeholderHeight||"20px",opacity:1},{duration:500,easing:"easeOutCubic"}),a&&(R=!0),e(":ui-sortable").sortable("refreshPositions")}});return!0,m.default.startDraggingModule(),!0},sort:function(e,t){if(!a){Q(t.helper,e.pageX,e.pageY);var n=P||C||(0,u.default)(["zoom","tablet","phone"],b.default.getPreviewMode()),r=n?y.default.$topWindow("html, body"):y.default.$appWindow("html, body");P&&(r=y.default.$TBScrollTarget());var i="zoom"===b.default.getPreviewMode(),l=C&&o?t.item:t.helper,s=!C||!o||G.width()+2==y.default.$topWindow("body").width()&&G.hasClass("et_bfb_module_drag"),d=y.default.getAdminBarHeight(),c=P?0:y.default.$topWindow("#et-fb-app").offset().top,f=C?G.offset().top:0,p=y.default.topViewportHeight();I(),T=setInterval((function(){var a,u,h,_,m,g=(a=r.scrollTop()+40+d-c-f,u=r.scrollTop()+p-40-c-f,h=0,_=0,m=(parseInt(l.css("top"))-B)*(i?.5:1),C?m-=d:n||(m+=r.scrollTop()),mu&&(_=m-u,h=1),{intensity:_,multiplier:h});if(s&&0!==g.multiplier){var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return 20+e*(t?1.5:2)}(g.intensity,o),v=Math.floor(b*g.multiplier*.15);A+=v*(i?2:1),r.scrollTop(r.scrollTop()+v),Q(t.helper,e.pageX,e.pageY+A)}}),13)}},stop:$,receive:$,update:n.update,items:"> ".concat(n.child),cancel:".et-fb-padding-indicator, .et-fb-editable-element, .et-fb-popover-tinymce, .et-pb-draggable-spacing, .et-pb-draggable-margin, .et-fb-draggable-handle, .et-fb-draggable-position, .gm-style, .et_fb_locked_module, .et_fb_uninteractable_module, input, textarea",connectWith:n.connectWith,handle:n.isItemsMixed||a?n.handle:"".concat(n.handle,", > *"),forcePlaceholderSize:!0,tolerance:"intersect",delay:100,placeholder:{element:function(t){var n,r=e(this),i=(r.hasClass("et-fb-skeleton__content")?r.parent(".et-fb-skeleton").parent():r).data("dragOptions");switch(!0){case a:n="et-fb-lv";break;case o:n="et-fb-wireframe";break;default:n="et-fb"}var l=["".concat(n,"-sortable-placeholder"),"".concat(n,"-sortable-placeholder--").concat(i.childSlug)];return t.hasClass("et_pb_fullwidth_section")&&l.push("".concat(n,"-sortable-placeholder--").concat(i.childSlug,"-fullwidth")),t.hasClass("et_section_specialty")&&l.push("".concat(n,"-sortable-placeholder--").concat(i.childSlug,"-specialty")),e('
'))[0]},update:function(t,n){if(o&&!y.default.condition("is_bfb")){var r=(0,l.default)(t,["currentItem",0]);if(r){var a=M>0?M:e(r).height();n[0].style.minHeight="".concat(a,"px")}}}},helper:function(t,n){if(o){if(y.default.condition("is_bfb"))return n;var r=n.is(".et_pb_module")||!n.children(".et-fb-skeleton").length?n:n.children(".et-fb-skeleton");return M=r.height(),n.clone().css("position","absolute").addClass("et-wireframe-dragged-item")}var i=e(this),l=(i.hasClass("et-fb-skeleton__content")?i.parent(".et-fb-skeleton").parent():i).data("dragOptions"),u="";1===i.find("> ".concat(l.child)).length&&!a&&e('
').css({visibility:"hidden",height:"1px"}).appendTo(i),"section"===l.childSlug&&(n.hasClass("et_pb_fullwidth_section")?u=" et-fb-sortable-helper--section--fullwidth":n.hasClass("et_section_specialty")&&(u=" et-fb-sortable-helper--section--specialty"));var s=a?' ':' ';return e('
').concat(s,"
"))},change:function(e,t){n.isItemsMixed&&(t.placeholder.parent().hasClass("et_fb_container_mixed")?t.placeholder.css("display","none"):t.placeholder.css("display",""))},beforeStop:function(e,t){if(n.isItemsMixed){var o=t.placeholder.parent();Y=!!o.hasClass("et_fb_container_mixed")}I()},forceHelperSize:!0,cursorAt:o?{}:{left:20,top:20},appendTo:a?y.default.$topWindow("#et-fb-layers-view-container"):"#et-fb-app",scroll:a,refreshPositions:!0,zIndex:999999,over:function(e,t){var n=a?y.default.$topWindow(e.target):y.default.$appWindow(e.target),o=n.hasClass("et_pb_column_dropzone")?n.closest(".et-fb-column-divider"):n;y.default.$appWindow(".et_pb_drag_over").removeClass("et_pb_drag_over"),y.default.$topWindow(".et_pb_drag_over").removeClass("et_pb_drag_over"),o.addClass("et_pb_drag_over")},disabled:(0,l.default)(n,"disabled",!1)};a?(K.off(".layerSortable"),K.sortable(J),K.on("sortstart.layerSortable",Z),K.on("sort.layerSortable",Z),K.on("sort.layerSortable",(function(t,n){void 0!==W&&clearTimeout(W),W=setTimeout((function(){var o=t.pageX-40,r=t.pageY-6,a=e(y.default.topDocument().elementFromPoint(o,r)),i=a.hasClass("et-fb-layers-view")?void 0:a.closest(".et-fb-layers-view--layer");if(function(e,t){if((0,c.default)(t)||t.length<1)return!1;var n=e.hasClass("et_pb_module"),o=e.hasClass("et_pb_column"),r=e.hasClass("et_pb_row"),a=e.closest(".et_pb_fullwidth_section").length>0,i=t.hasClass("et_pb_column"),l=t.hasClass("et_pb_row"),u=t.hasClass("et_pb_section"),s=t.closest(".et_pb_fullwidth_section").length>0,d=t.hasClass("et-fb-locked"),f=t.hasClass("et-fb-layers-view--expanded");return!d&&!f&&a===s&&(!(!r||!u)||(!(!o||!l&&!u)||!(!n||!(i||l||u))))}(n.item,i)){var l=!(0,c.default)(i)&&i.length?i.find("> .et-fb-layers-view--header > .et-fb-layers-view--toggle:not(.et-fb-layers-view--toggle-expanded)").find(".et-fb-button"):void 0;if(!(0,c.default)(l)&&l.length){var u=new Event("click",{bubbles:!0});l[0].dispatchEvent(u),setTimeout((function(){var t=e(n.item),o=t.hasClass("et_pb_module")?t.parent().data("dragOptions"):t.data("dragOptions");i.hasClass("et_section_specialty")?V(o,J,i.find(".et_pb_column"),Z):i.hasClass("et_pb_row")?(V(o,J,i,Z),V(o,J,i.find(".et_pb_column"),Z)):V(o,J,i,Z),D(i),D(K)}),250)}}}),500)}))):K.sortable(J)};var o=k(n(11)),r=k(n(109)),a=k(n(42)),i=k(n(8)),l=k(n(1)),u=k(n(5)),s=k(n(4)),d=k(n(110)),c=k(n(10)),f=k(n(14)),p=k(n(40)),h=k(n(24)),_=k(n(452)),m=k(n(19)),g=k(n(327)),b=k(n(6)),v=k(n(608)),y=k(n(2)),w=n(161),O=n(497);function k(e){return e&&e.__esModule?e:{default:e}}var S=!1,E=!1,M=0,C=y.default.isBFB(),P=y.default.isTB(),T=!1,A=0,B=0,x=0,j=0,N=0,R=!1;function I(){clearInterval(T),T=!1,A=0}var L=(0,a.default)((function(){y.default.$appWindow(".et_pb_drag_over").removeClass("et_pb_drag_over"),y.default.$topWindow(".et_pb_drag_over").removeClass("et_pb_drag_over")}),100),D=function(e){e.length&&e.hasClass("ui-sortable")&&(e.sortable("refresh"),e.sortable("refreshPositions"))},V=function(e,t,n,a){if(0!==n.length){var i=(0,o.default)(e,{isSection:n.hasClass("et_pb_section"),isRow:n.hasClass("et_pb_row"),isColumn:n.hasClass("et_pb_column")});(0,c.default)(i.preSortableInit)||i.preSortableInit(n,i,n),n.off(".makeElementSortable"),n.data("dragOptions",(0,r.default)(i)),n.sortable(t),n.on("sortstart.makeElementSortable",a),n.on("sort.makeElementSortable",a)}}}).call(this,n(9))},function(e,t,n){var o=n(52)("tail",n(356),n(124));o.placeholder=n(47),e.exports=o},function(e,t,n){var o=n(501),r=n(502);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var l=0;l<16;++l)t[a+l]=i[l];return t||r(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRerenderAliases=t.maybeConvertModuleType=void 0;var o=i(n(1)),r=i(n(48)),a=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var l={et_pb_section:function(e){var t=e.props.attrs,n=t.fullwidth,o=void 0===n?"off":n,r=t.specialty,i=void 0===r?"off":r;if(a.default.isOn(o))return"et_pb_section_fullwidth";if(a.default.isOn(i))return"et_pb_section_specialty";return"et_pb_section"},et_pb_slide:function(e){if("et_pb_fullwidth_slider"===e.props.parent_slug)return"et_pb_slide_fullwidth";return"et_pb_slide"},et_pb_column:s,et_pb_column_inner:s},u={et_pb_column:["et_pb_column_inner"],et_pb_column_inner:["et_pb_row"]};function s(e){return"specialty"===e.props.section_parent?"et_pb_column_specialty":"et_pb_column"}t.maybeConvertModuleType=function(e){var t=e.props.type,n=(0,o.default)(l,t,!1);return n?n(e):t};t.getRerenderAliases=function(e){var t=e.props.type;return(0,r.default)([t],(0,o.default)(u,t,[]))}},function(e,t,n){var o=n(24);e.exports=function(e){return o(e).toLowerCase()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=O(n(1)),r=O(n(4)),a=O(n(10)),i=O(n(3)),l=O(n(152)),u=O(n(5)),s=O(n(48)),d=O(n(14)),c=O(n(131)),f=O(n(119)),p=O(n(31)),h=O(n(8)),_=O(n(61)),m=O(n(63)),g=O(n(22)),b=O(n(283)),v=O(n(6)),y=O(n(158)),w=O(n(58));function O(e){return e&&e.__esModule?e:{default:e}}function k(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n2?n-2:1,r&&r<=n?o:i(o,n)):o}},mixin:function(e){return function(t){var n=this;if(!B(n))return e(n,Object(t));var o=[];return P(j(t),(function(e){B(t[e])&&o.push([e,n.prototype[e]])})),e(n,Object(t)),P(o,(function(e){var t=e[1];B(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:R(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var o=n?n.length:0;return C(e(t,n),o)}},runInContext:function(n){return function(o){return e(t,n(o),d)}}};function V(e,t){if(p){var n=o.iterateeRearg[e];if(n)return function(e,t){return G(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(N(i(e,n),t),n)}))}(t,n);var r=!c&&o.iterateeAry[e];if(r)return function(e,t){return G(e,(function(e){return"function"==typeof e?i(e,t):e}))}(t,r)}return t}function F(e,t,n){if(_&&(y||!o.skipFixed[e])){var r=o.methodSpread[e],i=r&&r.start;return void 0===i?S(t,n):function(e,t){return function(){for(var n=arguments.length,o=n-1,r=Array(n);n--;)r[n]=arguments[n];var i=r[t],l=r.slice(0,t);return i&&a.apply(l,i),t!=o&&a.apply(l,r.slice(t+1)),e.apply(this,l)}}(t,i)}return t}function W(e,t,n){return g&&n>1&&(w||!o.skipRearg[e])?N(t,o.methodRearg[e]||o.aryRearg[n]):t}function U(e,t){for(var n=-1,o=(t=I(t)).length,r=o-1,a=M(Object(e)),i=a;null!=i&&++n1?C(t,n):t}(0,r=V(a,r),e),!1}})),!r})),r||(r=i),r==t&&(r=v?C(r,1):function(){return t.apply(this,arguments)}),r.convert=H(a,t),r.placeholder=t.placeholder=n,r}if(!f)return z(n,s,b);var q=s,$=[];return P(L,(function(e){P(o.aryMethod[e],(function(e){var t=q[o.remap[e]||e];t&&$.push([e,z(e,t,q)])}))})),P(j(q),(function(e){var t=q[e];if("function"==typeof t){for(var n=$.length;n--;)if($[n][0]==e)return;t.convert=H(e,t),$.push([e,t])}})),P($,(function(e){q[e[0]]=e[1]})),q.convert=function(e){return q.runInContext.convert(e)(void 0)},q.placeholder=q,P(j(q),(function(e){P(o.realToAlias[e]||[],(function(t){q[t]=q[e]}))})),q}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,o={};for(var r in n){var a=n[r];e.call(o,a)?o[a].push(r):o[a]=[r]}return o}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,t,n){e.exports={ary:n(337),assign:n(288),clone:n(109),curry:n(289),forEach:n(106),isArray:n(3),isError:n(319),isFunction:n(34),isWeakMap:n(367),iteratee:n(368),keys:n(105),rearg:n(369),toInteger:n(33),toPath:n(370)}},function(e,t,n){var o=n(173),r=n(20);e.exports=function(e,t,n){var a=1&t,i=o(e);return function t(){var o=this&&this!==r&&this instanceof t?i:e;return o.apply(a?n:this,arguments)}}},function(e,t,n){var o=n(104),r=n(173),a=n(311),i=n(314),l=n(188),u=n(150),s=n(20);e.exports=function(e,t,n){var d=r(e);return function r(){for(var c=arguments.length,f=Array(c),p=c,h=l(r);p--;)f[p]=arguments[p];var _=c<3&&f[0]!==h&&f[c-1]!==h?[]:u(f,h);if((c-=_.length)1?"& ":"")+t[r],t=t.join(o>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var o=n(106),r=n(256),a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return o(a,(function(n){var o="_."+n[0];t&n[1]&&!r(e,o)&&e.push(o)})),e.sort()}},function(e,t,n){var o=n(98),r=n(69),a=Math.min;e.exports=function(e,t){for(var n=e.length,i=a(t.length,n),l=o(e);i--;){var u=t[i];e[i]=r(u,n)?l[u]:void 0}return e}},function(e,t,n){var o=n(104),r=n(173),a=n(20);e.exports=function(e,t,n,i){var l=1&t,u=r(e);return function t(){for(var r=-1,s=arguments.length,d=-1,c=i.length,f=Array(c+s),p=this&&this!==a&&this instanceof t?u:e;++d=200&&(c=u,f=!1,t=new o(t));e:for(;++de.length)&&(t=e.length);for(var n=0,o=new Array(t);n1,i=(0,s.default)(t,"option")&&(0,f.default)(t.option)&&t.option.length>1,l=a?e.option.filter((function(e){return e===B.default.getBaseName(e,!0)})):[],_=i?t.option.filter((function(e){return e===B.default.getBaseName(e,!0)})):[];if(!(0,p.default)(l)&&!(0,p.default)(_)&&(0,h.default)(l,_))return["paste_options","".concat(this.i18n.paste," ").concat(o)];if((0,d.default)(this.crossCopyOptions,t.option_family)&&(0,h.default)(e.option_family,t.option_family))return["paste_similar_options","".concat(this.i18n.paste," ").concat(o)];if(!(0,p.default)((0,c.default)(e.option,t.option))&&e.option_family===t.option_family&&(0,d.default)(this.likePasteOptions,t.option_family))return["paste_options","".concat(this.i18n.paste," ").concat(o)];if("composite"===e.option_family&&!(0,p.default)((0,c.default)(this.compositeOptions,e.option))){var g=k.default.getComponentAllFields(e.module_slug),b=(0,u.default)(g,"border_styles.composite_structure",{}),v=(0,m.default)(b).reduce((function(e,t){return L(L({},e),function(e,t){return(0,u.default)(e,"".concat(t,".controls"),{})}(b,t))}),{}),y=(0,m.default)(v);if(!(0,p.default)((0,c.default)(y,t.option)))return["paste_options","".concat(this.i18n.paste," ").concat(o)]}var w=this.getNestedAction(t,e);return!!w&&["option_option"===w?"paste_similar_options":"paste_options","".concat(this.i18n.paste," ").concat(o)]}},{key:"isCopiedValueAcceptible",value:function(e,t,n){var o="et_pb_row_inner"===(0,u.default)(e,"original_slug",(0,u.default)(e,"module_slug",""));if("column-structure"===(0,u.default)(e,"option_family","")&&o){var r=(0,u.default)(n,"[0].value","");return this.checkColumnStructureCompatibility(e.specialty_layout,r)}return!0}},{key:"checkColumnStructureCompatibility",value:function(e,t){var n=["4_4","1_2,1_2","1_3,1_3,1_3"];return(0,d.default)(["2_3,1_3","1_3,2_3"],e)&&n.push("1_4,1_4,1_4,1_4"),(0,d.default)(n,t)}},{key:"preparePayload",value:function(e,t){var n=e.props,o=n.optionId,i=n.optionLabel,s=n.optionFamily,c=n.tabSlug,f=n.toggleId,h=n.toggleGroupId,m=n.mode,g=n.optionContextMenu;if((0,d.default)(this.optionsBlocklist,o))return{};o=P.default.getFieldBaseName(o);var y=!1;if((0,b.default)(o,"button")&&(y=S.default.getHelper("button_option")),y&&y.constructor!==this.constructor)return y.preparePayload(e,t);var w=t.props,O=w.address,E=w.type,M=k.default.getComponentFieldCopyWith(E,o),C=(0,b.default)(o,"button")&&!(0,b.default)(o,"button_bg")?this.getComponentFieldDependsOn(E,o):[],T=(0,r.default)(M,o,C);if("composite_tab"===s&&(T=o.split(" "),"css"===h&&(T=map(T,(function(e){return"custom_css_".concat(e)}))),(0,l.default)(T,(function(e){var n=(0,u.default)(t,"props.attrs.".concat(e,"_last_edited"));(0,p.default)(n)||0!==(0,v.default)(n).indexOf("on")||(T=[].concat(N(T),["".concat(e,"_phone"),"".concat(e,"_tablet"),"".concat(e,"_last_edited")]))}))),"composite"===s&&(0,d.default)(["custom_css","css"],h)&&(T="custom_css_".concat(o)),(0,d.default)(["et_pb_row","et_pb_row_inner","et_pb_section"],E)&&(0,d.default)(["padding_1","padding_2","padding_3","padding_4","padding_5","padding_6"],o)){var B=o.substr(o.length-1);T=["padding_top_".concat(B),"padding_right_".concat(B),"padding_bottom_".concat(B),"padding_left_".concat(B),"padding_top_bottom_link_".concat(B),"padding_left_right_link_".concat(B),"padding_".concat(B)]}if((0,a.default)(o,"text_shadow_style")&&!(0,p.default)(T)){var x=N(T);(0,l.default)(x,(function(e){T=[].concat(N(T),["".concat(e,"_phone"),"".concat(e,"_tablet"),"".concat(e,"_last_edited")])}))}var j=(0,u.default)(t,"props.attrs.".concat(o,"_last_edited"));(0,p.default)(j)||0!==(0,v.default)(j).indexOf("on")||(T=[].concat(N(T),["".concat(o,"_phone"),"".concat(o,"_tablet"),"".concat(o,"_last_edited")]));var R=(0,d.default)(k.default.getBackgroundFieldsNames(),o),I=(0,d.default)(k.default.getBackgroundFieldsNames(!1,"button_bg"),o);(R||I)&&(T="hover"!==m?A.default.getFieldName(o,m):[o]);var L="button_bg_color"===o&&"background-field"===s;if("background"===o&&"background"===s||L){var D=L?"button_bg":"background";T=k.default.getBackgroundFieldsNames(!0,D)}if(T&&(0,b.default)(T[0],"background")&&(0,b.default)(s,"background-")){var V=/_\d+$/.test(o)?o.replace(/^.*(_\d+)$/,"$1"):"";switch(s){case"background-gradient":T=["background_color_gradient_start".concat(V),"background_color_gradient_end".concat(V),"use_background_color_gradient".concat(V),"background_color_gradient_type".concat(V),"background_color_gradient_direction".concat(V),"background_color_gradient_direction_radial".concat(V),"background_color_gradient_start_position".concat(V),"background_color_gradient_end_position".concat(V),"background_color_gradient_overlays_image".concat(V)];break;case"background-image":T=["bg_img".concat(V),"background_image".concat(V),"background_url".concat(V),"parallax".concat(V),"parallax_method".concat(V),"background_size".concat(V),"background_position".concat(V),"background_repeat".concat(V),"background_blend".concat(V)];break;case"background-video":T=["background_video_mp4".concat(V),"background_video_webm".concat(V),"background_video_width".concat(V),"background_video_height".concat(V),"allow_player_pause".concat(V),"background_video_pause_outside_viewport".concat(V)];break;default:T=["background_color".concat(V)]}}var F=(0,u.default)(t.props,"specialty_layout",""),W=this.getNestedOptionType(o),U=!!(0,_.default)(g)||g;return{type:this.getType(),optionTitle:i,option:T,option_family:s,option_mode:m,module_address:O,module_slug:E,tabSlug:c,toggleId:f,toggleGroupId:h,specialty_layout:F,nested_option:W,context_menu:U}}},{key:"getOptions",value:function(e,t){return!(0,p.default)(e)&&("transform"===e.option_family?["transform_styles_last_edited","transform_styles__hover_enabled"].concat(e.option):(0,f.default)(e.option)?e.option:[e.option])}},{key:"getOptionsToPaste",value:function(e,t,n){return"option_group"===this.getNestedAction(e,t)?this.getNestedOptionsToPaste(e,t,n):n}},{key:"getOptionsToUnset",value:function(e,t,n){return"option_group"===this.getNestedAction(e,t)?[]:n}},{key:"getSimilarOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var n=(0,u.default)(t,"option_family",""),o=(0,u.default)(e,"option_family","");if(""!==n&&""!==o&&n===o){"composite"===o&&(e.option=(0,y.default)([].concat(N(e.option),N((0,x.getCompositeFieldAttrs)(e.module_slug,e.option)))));var r=(0,u.default)(t,"option",[]),i=(0,u.default)(e,"option",[]),s=(0,g.default)(r,(function(e){return(0,a.default)(e,"_last_edited")})),d=(0,g.default)(i,(function(e){return(0,a.default)(e,"_last_edited")})),c=(0,g.default)(r,(function(e){return(0,a.default)(e,"__hover_enabled")})),f=(0,g.default)(i,(function(e){return(0,a.default)(e,"__hover_enabled")})),p=k.default.getComponentAllTabsFields({props:{type:e.module_slug}});(0,l.default)(i,(function(t){if(!c||f||(0,_.default)(p[t])||"tabs"!==(0,u.default)(p,[t,"hover"],!1)||e.option.push("".concat(t,"__hover"),"".concat(t,"__hover_enabled")),s&&!d){var n=!1;(0,_.default)(p["".concat(t,"_last_edited")])?(0,b.default)(t,"border_")?n=!0:(0,_.default)(p[t])||(n=(0,u.default)(p,[t,"mobile_options"],!1)):n=!0,n&&e.option.push("".concat(t,"_tablet"),"".concat(t,"_phone"),"".concat(t,"_last_edited"))}}))}}return this.getOptions(e)}},{key:"getOptionsBlocklist",value:function(e){return[]}},{key:"getComponentFieldDependsOn",value:function(e,t){var n=this;t=(0,f.default)(t)?t:[t];var o=[];return(0,l.default)(t,(function(t){var a=k.default.getComponentFieldDependsOn(e,t);o=(0,r.default)(o,a),(0,l.default)(a,(function(t){var a=n.getComponentFieldDependsOn(e,t);o=(0,r.default)(o,a)}))})),o=(0,r.default)(o,["custom_button"]),(0,y.default)(o)}},{key:"getType",value:function(){return"option"}},{key:"getTitle",value:function(e){return(0,u.default)(e,"optionTitle",this.i18n.option)}},{key:"getTypeName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?this.i18n.options:this.i18n.option}},{key:"goToAction",value:function(e){C.default.quickAccessSwitchTab(e.toggleGroupId),C.default.quickAccessActive({toggleId:e.toggleId,toggleGroupId:e.toggleGroupId})}},{key:"getOptionSuffixes",value:function(e,t){var n=(0,u.default)(e,"option_mode","desktop"),o=(0,u.default)(e,"option",[]),r=(0,u.default)(t,"attrs",{}),a=(0,u.default)(o,"0",""),i="hover"===n,l="sticky"===n,s=["",P.default.hoverSuffix(),P.default.enabledSuffix(),T.default.stickySuffix(),T.default.enabledSuffix()],c=(0,d.default)(k.default.getBackgroundFieldsNames(),a),f=(0,d.default)(k.default.getBackgroundFieldsNames(!1,"button_bg"),a);if(c||f){var p=f?"button_bg_color":"background";return i&&P.default.isEnabled(p,r)?[P.default.hoverSuffix()]:l&&T.default.isEnabled(p,r)?[T.default.stickySuffix()]:[""]}return s}},{key:"getNestedOptionType",value:function(e){return e=this.getNestedOptionAlias(e,"group"),(0,i.default)(this.getNestedSupportedGroup(),(function(t){return e.includes(t)}))||!1}}],n&&V(t.prototype,n),o&&V(t,o),R}(O.default),$=q;t.default=$},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var n=e,o=r(e);if(o){if(!o.path)return e;n=o.path}for(var i,l=t.isAbsolute(n),u=n.split(/\/+/),s=0,d=u.length-1;d>=0;d--)"."===(i=u[d])?u.splice(d,1):".."===i?s++:s>0&&(""===i?(u.splice(d+1,s),s=0):(u.splice(d,2),s--));return""===(n=u.join("/"))&&(n=l?"/":"."),o?(o.path=n,a(o)):n}function l(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),l=r(e);if(l&&(e=l.path||"/"),n&&!n.scheme)return l&&(n.scheme=l.scheme),a(n);if(n||t.match(o))return t;if(l&&!l.host&&!l.path)return l.host=t,a(l);var u="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return l?(l.path=u,a(l)):u}t.urlParse=r,t.urlGenerate=a,t.normalize=i,t.join=l,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var o=e.lastIndexOf("/");if(o<0)return t;if((e=e.slice(0,o)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function s(e){return e}function d(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?s:function(e){return d(e)?"$"+e:e},t.fromSetString=u?s:function(e){return d(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var o=c(e.source,t.source);return 0!==o||0!==(o=e.originalLine-t.originalLine)||0!==(o=e.originalColumn-t.originalColumn)||n||0!==(o=e.generatedColumn-t.generatedColumn)||0!==(o=e.generatedLine-t.generatedLine)?o:c(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var o=e.generatedLine-t.generatedLine;return 0!==o||0!==(o=e.generatedColumn-t.generatedColumn)||n||0!==(o=c(e.source,t.source))||0!==(o=e.originalLine-t.originalLine)||0!==(o=e.originalColumn-t.originalColumn)?o:c(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=c(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:c(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var o=r(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var u=o.path.lastIndexOf("/");u>=0&&(o.path=o.path.substring(0,u+1))}t=l(a(o),t)}return i(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getOverflowValues=t.getValueY=t.getValueX=t.getFieldY=t.getFieldX=t.OVERFLOW_AUTO=t.OVERFLOW_SCROLL=t.OVERFLOW_HIDDEN=t.OVERFLOW_VISIBLE=t.OVERFLOW_DEFAULT=void 0;var o,r=(o=n(1))&&o.__esModule?o:{default:o};t.OVERFLOW_DEFAULT="";var a="visible";t.OVERFLOW_VISIBLE=a;var i="hidden";t.OVERFLOW_HIDDEN=i;var l="scroll";t.OVERFLOW_SCROLL=l;var u="auto";t.OVERFLOW_AUTO=u;var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(e,"overflow-x")};t.getFieldX=s;var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(e,"overflow-y")};t.getFieldY=d;var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,r.default)(e,s(n),t)};t.getValueX=c;var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,r.default)(e,d(n),t)};t.getValueY=f;var p=function(){return["",u,i,l,a]};t.getOverflowValues=p;var h={OVERFLOW_DEFAULT:"",OVERFLOW_AUTO:u,OVERFLOW_HIDDEN:i,OVERFLOW_SCROLL:l,OVERFLOW_VISIBLE:a,getFieldX:s,getFieldY:d,getValueX:c,getValueY:f,getOverflowValues:p};t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(0)),a=b(n(7)),i=b(n(13)),l=b(n(1)),u=b(n(4)),s=b(n(41)),d=b(n(40)),c=b(n(193)),f=n(49),p=n(59),h=b(n(2)),_=b(n(17)),m=b(n(39)),g=b(n(15));function b(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(){return y=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u.ORDER_CLASS;return"".concat(e," .et-pb-slider-arrows .et-pb-arrow-prev, ").concat(e," .et-pb-slider-arrows .et-pb-arrow-next")};t.getArrowsSelector=m;var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ORDER_CLASS;return"".concat(e," .et-pb-controllers a, ").concat(e," .et-pb-controllers .et-pb-active-control")};t.getDotsSelector=g;var b=function(){return"arrows_custom_color"};t.getArrowsFieldName=b;var v=function(){return"dot_nav_custom_color"};t.getDotsFieldName=v;t.getArrowsCssStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=(0,c.generateStyles)({address:n,attrs:e,name:"arrows_custom_color",selector:m(t),cssProperty:"color",stickyPseudoSelectorLocation:s.default.hasValue(t)?"prefix":"order_class"});return o};t.getDotsCssStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=(0,c.generateStyles)({address:n,attrs:e,name:"dot_nav_custom_color",selector:g(t),cssProperty:"background-color",stickyPseudoSelectorLocation:s.default.hasValue(t)?"prefix":"order_class"});return o};t.getAttrsForSlide=function(){return["use_bg_overlay","bg_overlay_color","bg_overlay_color_last_edited","bg_overlay_color_tablet","bg_overlay_color_phone","use_text_overlay","text_overlay_color","text_overlay_color_last_edited","text_overlay_color_tablet","text_overlay_color_phone","text_border_radius","text_border_radius_last_edited","text_border_radius_tablet","text_border_radius_phone"]};t.reapplyModuleBackgroundOnSlide=function(e){var t=h(h({},{address:"",slidePostId:0,postFeaturedImage:!1,renderSlug:"",attrs:{},orderClassname:""}),e),n=t.address,u=t.orderClassname,c=t.renderSlug,f=(0,o.default)(t.attrs),p="et_pb_post_slide-".concat(t.slidePostId);return!!t.postFeaturedImage&&(!!(l.default.isResponsiveEnabled(f,"show_image")?(0,a.default)(l.default.getPropertyValues(f,"show_image"),"on"):s.default.isOn((0,r.default)(f,"show_image")))&&("background"===(0,r.default)(f,"image_placement")&&((l.default.isResponsiveEnabled(f,"parallax")?(0,a.default)(l.default.getPropertyValues(f,"parallax"),"on"):s.default.isOn((0,r.default)(f,"parallax")))?void 0:(t.postFeaturedImage&&((0,i.default)(f,"background_image",t.postFeaturedImage),(0,i.default)(f,"background_enable_image","on"),l.default.isResponsiveEnabled(f,"background")&&((0,i.default)(f,"background_image_last_edited",""),(0,i.default)(f,"background_image_tablet",t.postFeaturedImage),(0,i.default)(f,"background_image_phone",t.postFeaturedImage))),(0,d.getBackgroundStyle)({address:n,attrs:f,renderSlug:c,selector:".".concat(u," .").concat(p)})))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStarRatingStyle=t.getRatingAlignmentStyle=t.getRatingWidthStyle=void 0;var o=p(n(4)),r=p(n(8)),a=p(n(1)),i=p(n(5)),l=p(n(14)),u=p(n(354)),s=p(n(15)),d=n(2),c=n(153),f=p(n(22));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){return{width:"calc(5.4em + (".concat(e," * 4))")}};t.getRatingWidthStyle=h;var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop";if("desktop"===t&&(0,i.default)(["left","justify"],e))return{};var n={center:{left:"auto",right:"auto"},right:{left:"auto",right:"0"}},o=(0,a.default)(n,[e,"left"],"0"),r=(0,a.default)(n,[e,"right"],"auto");return{"margin-left":"".concat(o," !important"),"margin-right":"".concat(r," !important")}};t.getRatingAlignmentStyle=_;t.getStarRatingStyle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%%order_class%% .star-rating",n=[],a=["rating_letter_spacing","rating_text_align"];return(0,r.default)(a,(function(a){var i=s.default.getPropertyValues(e,a,"",!0),l={};(0,r.default)(i,(function(e,t){if(!(0,o.default)(e))switch(a){case"rating_letter_spacing":l[t]=h(e);break;case"rating_text_align":l[t]=_(e,t)}})),n.push(s.default.generateResponsiveCSS(l,t))})),n},(0,c.addAppFilter)("et.builder.get.woo.default.columns","et.builder.get.woo.default.columns",(function(){var e=f.default.getCurrentPage("page_layout");return e&&"et_full_width_page"!==e?"3":"4"})),(0,c.addAppFilter)("et.builder.get.woo.default.product","et.builder.get.woo.default.product",(function(){var e=f.default.postType,t=(0,d.condition)("is_layout_post_type");return"product"===e||t?"current":"latest"})),(0,c.addAppFilter)("et.builder.get.woo.default.tabs","et.builder.get.woo.default.tabs",(function(){var e=f.default.getCurrentPage("woocommerceTabs")||{},t=(0,l.default)(e);return(0,u.default)(t,"|")}))},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.set=t.get=t.merge=t.hasValue=t.toValue=t.split=t.parse=t.DELIMITER=void 0;var r=c(n(500)),a=c(n(24)),i=c(n(359)),l=c(n(297)),u=c(n(110)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(161));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt)return(0,l.default)(n,t);var o=(0,i.default)(t-n.length,(function(){return""}));return[].concat(f(n),f(o))};t.parse=m;var g=function(e,t){var n=s.hasValue(e)?e:"",o=(0,a.default)(n).split(_);return m(o,t)};t.split=g;t.toValue=function(e,t){return m(e,t).join(_)};t.hasValue=function(e,t){return g(e,t).filter(s.hasValue).length>0};t.merge=function(e,t,n){var o=g(e,n),a=g(t,n);return(0,r.default)(o,a,h).join(_)};t.get=function(e,t,n){return s.get(g(t,n)[e],"")};t.set=function(e,t,n,o){var r=g(n,o);return!(0,u.default)(t)||0>t||t>=r.length?n:(r[t]=s.get(e,""),r.join(_))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=b(n(192)),r=b(n(40)),a=b(n(34)),i=b(n(10)),l=b(n(213)),u=b(n(134)),s=b(n(1)),d=b(n(0)),c=b(n(29)),f=b(n(265)),p=b(n(13)),h=b(n(16)),_=b(n(9)),m=b(n(2)),g=(b(n(19)),b(n(91)));function b(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign||function(e){for(var t=1;tthis.props.valueMax&&(t=this.props.valueMax),t!==this.state.value&&(this.props._onChange(this.props.name,t),this.setState({value:t}))}});t.default=y},function(e,t,n){var o=n(46),r=n(60),a=n(90),i=n(78),l=Object.prototype,u=l.hasOwnProperty,s=o((function(e,t){e=Object(e);var n=-1,o=t.length,s=o>2?t[2]:void 0;for(s&&a(t[0],t[1],s)&&(o=1);++n.5?c/(2-i-l):c/(i+l),i){case o:u=(r-a)/c+(r1&&(n-=1),6*n<1?t+6*(e-t)*n:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}},{key:"hslToRgb",value:function(e,t,n){var o=e/360,r=t/100,a=n/100,i=a,l=a,u=a;if(0!==r){var s=a<.5?a*(1+r):a+r-a*r,d=2*a-s;i=this._adjustHslValue(s,d,o+1/3),l=this._adjustHslValue(s,d,o),u=this._adjustHslValue(s,d,o-1/3)}return[Math.round(255*i),Math.round(255*l),Math.round(255*u)]}},{key:"hexToRgb",value:function(e){var t,n=e.replace("#",""),o=new RegExp("(.{".concat(n.length/3,"})"),"g");if(n=n.match(o),!(0,a.default)(n)){for(var r=0;re.length)&&(t=e.length);for(var n=0,o=new Array(t);n=t?"":new Array(1+t-e.length>>>0).join(n);return o?e+r:r+e},a=function(e,t,n,o,a){var i=o-e.length;return i>0&&(e=n||"0"!==a?r(e,o,a,n):[e.slice(0,t.length),r("",i,"0",!0),e.slice(t.length)].join("")),e},i=function(e,t,n,o,i,l){return e=r((e>>>0).toString(t),i||0,"0",!1),a(e,"",n,o,l)},l=function(e,t,n,o,r){return null!=o&&(e=e.slice(0,o)),a(e,"",t,n,r)},u=function(e,o,u,s,d,c){var f,p,h,_,m;if("%%"===e)return"%";var g,b,v=" ",y=!1,w="";for(g=0,b=u.length;g-1?6:void 0,o&&0==+o)throw new Error("Argument number must be greater than zero");if(o&&+o>=t.length)throw new Error("Too few arguments");switch(m=o?t[+o]:t[n++],c){case"%":return"%";case"s":return l("".concat(m),y,s,d,v);case"c":return l(String.fromCharCode(+m),y,s,d,v);case"b":return i(m,2,y,s,d,v);case"o":return i(m,8,y,s,d,v);case"x":return i(m,16,y,s,d,v);case"X":return i(m,16,y,s,d,v).toUpperCase();case"u":return i(m,10,y,s,d,v);case"i":case"d":return f=+m||0,m=(p=(f=Math.round(f-f%1))<0?"-":w)+r(String(Math.abs(f)),d,"0",!1),y&&"0"===v&&(v=" "),a(m,p,y,s,v);case"e":case"E":case"f":case"F":case"g":case"G":return p=(f=+m)<0?"-":w,h=["toExponential","toFixed","toPrecision"]["efg".indexOf(c.toLowerCase())],_=["toString","toUpperCase"]["eEfFgG".indexOf(c)%2],m=p+Math.abs(f)[h](d),a(m,p,y,s,v)[_]();default:return""}};try{return o.replace(e,u)}catch(e){return!1}}},function(e,t,n){var o=n(97);e.exports=function(e,t){for(var n=-1,r=e.length;++n-1;);return n}},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(180)),a=v(n(42)),i=v(n(197)),l=v(n(110)),u=v(n(10)),s=v(n(61)),d=v(n(41)),c=v(n(1)),f=v(n(36)),p=v(n(8)),h=n(99),_=n(153),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(536)),g=v(n(6));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}var y=new h.AllHtmlEntities,w=[],O=0,k=0,S=null,E={},M=0,C=[],P={add:function(e,t,n,o,r){var a=this;if((0,_.doAction)("et.builder.history.add",n,e,o,t),(0,c.default)(o,"triggerModule")){var i=(0,c.default)(o,"triggerModule.theme_builder_area")||(0,c.default)(o,"triggerModule.props.attrs.theme_builder_area")||"post_content";g.default.setIsThemeBuilderAreaEdited(i)}if(0==M%r||!r){var l=function(){return a._add(e,t,n,o)};(0,u.default)(w[O])?l():this._shortThrottle(l)}M++},get:function(){return w},getIndex:function(){return O},clear:function(){O=0,w=[]},getTriggerModule:function(e){var t;t=(0,l.default)(e)?e:"redo"===e?parseInt(O)+1:O;var n=!(0,u.default)(w[t])&&(0,c.default)(w[t],"attrs.triggerModule",!1);return(0,r.default)(n)},undo:function(){return O=Math.max(0,parseInt(O)-1),(0,_.doAction)("et.builder.history.undo",w[O]),w[O]?(0,r.default)(w[O]):void 0},redo:function(){return O=Math.min(w.length-1,parseInt(O)+1),(0,_.doAction)("et.builder.history.redo",w[O]),w[O]?(0,r.default)(w[O]):void 0},setSavedPoint:function(){E={data:w[O].state,settings:w[O].settings},this.callCallbacks()},getSavedPoint:function(){return E},hasUnsavedChanges:function(){return!(0,d.default)(this.getSavedPoint(),this.getCurrentPoint())},getCurrentPoint:function(){return{data:w[O].state,settings:w[O].settings}},jumpTo:function(e){if(w[O])return(0,u.default)(w[O].state)?{state:(0,r.default)(w[Math.max(0,w.length-1)].state),settings:(0,r.default)(w[Math.max(0,w.length-1)].settings)}:((0,_.doAction)("et.builder.history.jumpto",w[e],w[O]),O=e,{state:(0,r.default)(w[O].state),settings:(0,r.default)(w[O].settings)})},saveAtCurrentIndex:function(){return w=(0,r.default)(w.slice(0,parseInt(O)+1))},addSubHistory:function(e,t,n,o,a,i){var l=this;(0,_.doAction)("et.builder.subhistory.add",n,e,i,t,o),g.default.getPageUsesDefaultEditor()&&!(0,c.default)(i,"triggerModule.props.attrs.theme_builder_area")&&g.default.setPageUsesDefaultEditor(!1);var s=(0,c.default)(i,"triggerModule.props.attrs.theme_builder_area")||"post_content";g.default.setIsThemeBuilderAreaEdited(s);var d=function(){if(S!==o)l._add({state:(0,r.default)(e),settings:(0,r.default)(t),subHistory:[{state:(0,r.default)(w[Math.max(0,parseInt(O))].state),settings:(0,r.default)(w[Math.max(0,parseInt(O))].settings)},{state:(0,r.default)(e),settings:(0,r.default)(t)}]},(0,r.default)(t),n,i),S=o;else{if((0,u.default)(w[O].subHistory))return;w[O].subHistory.length-1!==k&&l.saveSubHistoryAtCurrentIndex(),w[O].state=(0,r.default)(e),w[O].subHistory.push({state:(0,r.default)(e),settings:(0,r.default)(t)})}k=w[O].subHistory.length-1,l.callCallbacks()};a?this._throttle(d):this._shortThrottle(d)},undoSubHistory:function(){return(0,u.default)(w[O].subHistory)?{state:(0,r.default)(w[O].state),settings:(0,r.default)(w[O].settings)}:(k=Math.max(0,parseInt(k)-1),(0,_.doAction)("et.builder.subhistory.undo",w[O].subHistory[k]),{state:(0,r.default)(w[O].subHistory[k].state),settings:(0,r.default)(w[O].subHistory[k].settings)})},redoSubHistory:function(){return(0,u.default)(w[O].subHistory)?{state:(0,r.default)(w[O].state),settings:(0,r.default)(w[O].settings)}:(k=Math.min(w[O].subHistory.length-1,parseInt(k)+1),(0,_.doAction)("et.builder.subhistory.redo",w[O].subHistory[k]),{state:(0,r.default)(w[O].subHistory[k].state),settings:(0,r.default)(w[O].subHistory[k].settings)})},subHistoryJumpTo:function(e){return(0,u.default)(w[O].subHistory)?{state:(0,r.default)(w[O].state),settings:(0,r.default)(w[O].settings)}:((0,_.doAction)("et.builder.subhistory.jumpto",w[O].subHistory[e],w[O].subHistory[k]),k=e,{state:(0,r.default)(w[O].subHistory[e].state),settings:(0,r.default)(w[O].subHistory[e].settings)})},saveSubHistoryAtCurrentIndex:function(e){return(0,u.default)(w[O].subHistory)||(e?(w[O].subHistory=(0,r.default)(w[O].subHistory.slice(0,parseInt(k)+1)),w[O].state=(0,r.default)(w[O].subHistory[k].state),w[O].settings=(0,r.default)(w[O].subHistory[k].settings),S=null,delete w[O].subHistory):w[O].subHistory=(0,r.default)(w[O].subHistory.slice(0,parseInt(k)+1))),w},_add:function(e,t,n,o){this._limitSnapshots(),w.length-1!==O&&this.saveAtCurrentIndex();var a={label:m.getLabel(n),description:this._buildLabel(n,!1),index:w.length,time:Date.now(),state:(0,r.default)(e),settings:(0,r.default)(t),attrs:o};(0,u.default)(e.subHistory)||(a=(0,i.default)(a,e)),w.push(a),O=w.length-1,this.callCallbacks()},updateCurrentHistoryState:function(e){w[O].state=(0,r.default)(e)},_limitSnapshots:function(){if(!(w.length<200)){w.shift();for(var e=0,t=w.length;e1&&void 0!==arguments[1])||arguments[1],n=ETBuilderBackend.i18n.history.meta,o="";if((0,u.default)(e.verb)||(t&&(0,f.default)(n.verb,e.verb)&&(e.verb=n.verb[e.verb]),o+="".concat(e.verb," ")),!(0,u.default)(e.noun)){switch(!0){case e.noun.indexOf("regular")>0:e.noun="section";break;case e.noun.indexOf("specialty_layout")>0:e.noun="specialty_section";break;case e.noun.indexOf("column_inner")>0:e.noun="column";break;case e.noun.indexOf("row")>0:e.noun="row"}t&&(0,f.default)(n.noun,e.noun)?e.noun=n.noun[e.noun]:t&&!(0,u.default)((0,s.default)(ETBuilderBackend.modules,{label:e.noun}))&&(e.noun=(0,s.default)(ETBuilderBackend.modules,{label:e.noun}).title),o+=e.noun}return(0,u.default)(e.addition)||(t&&(0,f.default)(n.addition,e.addition)&&(e.addition=n.addition[e.addition]),o+=" ".concat(e.addition)),y.decode(o)},_getTime:function(){return(new Date).toLocaleTimeString()},onChange:function(e){C.push(e)},callCallbacks:function(){(0,p.default)(C,(function(e){return e()}))},_throttle:(0,a.default)((function(e){e()}),1e3),_shortThrottle:(0,a.default)((function(e){e()}),300)};t.default=P},function(e,t,n){var o=n(538);e.exports=function(e,t){var n=-1,r=e.length,a=r-1;for(t=void 0===t?r:t;++n"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];!function(){var e=[],t=Object.create(null);o.UNKNOWN=-1,o.unshift({name:"EOF"});for(var n=0,r=o.length;n5?{stiffness:2500,damping:80}:{stiffness:360,damping:20},i=(0,u.default)(o.data.formatBlock)?"":o.data.formatBlock;return o.data.iconColor=!0===e.isButtonActive(o.data.buttonCommand,i)?"#42E1A7":"#FFFFFF",0===r?{key:o.key,data:o.data,style:{opacity:(0,l.spring)(1,a)}}:{key:o.key,data:o.data,style:{opacity:(0,l.spring)(n[r-1].style.opacity,a)}}}))}},(function(e){return r.default.createElement(f.default,{className:"et-fb-inline-editor__default-menu"},e.map((function(e){return r.default.createElement(p.default,{key:e.key,className:e.data.className,buttonCommand:e.data.buttonCommand,formatBlock:e.data.formatBlock,inverse:!0,linkToMenu:e.data.linkToMenu,_onClick:n,style:e.style,tooltip:e.data.tooltip},r.default.createElement(h.default,{icon:e.data.icon,color:e.data.iconColor}))})))}))}}])&&k(t.prototype,n),o&&k(t,o),m}(r.Component);t.default=B,B.propTypes=P,B.defaultProps={items:[]},B.buttonNameToStyleMapping=T,B.tagStylesList=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sizing=void 0;var o=s(n(1)),r=s(n(24)),a=s(n(2)),i=s(n(290)),l=s(n(549)),u=s(n(22));function s(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"";d(this,e),this.getType=function(){return t},this.getProps=function(){return n},this.getPrefix=function(){return o}}var t,n,s;return t=e,n=[{key:"supports",value:function(){var e=u.default.getComponentAdvancedField(this.getType(),"advanced_common");return!1!==(0,o.default)(e,"".concat(this.getFeatureName(),".use_").concat(this.getFieldName()),!0)}},{key:"getFeatureName",value:function(){return""}},{key:"getFieldName",value:function(){return""}},{key:"getRawField",value:function(){return this.getPrefix()+this.getFieldName()}},{key:"getRawFieldEnabled",value:function(){return""}},{key:"getField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getRawField();if(!this.isEnabled(e))return t;switch(e){case"hover":return i.default.getHoverField(t);case"sticky":return l.default.getStickyField(t);case"tablet":return"".concat(t,"_tablet");case"phone":return"".concat(t,"_phone");default:return t}}},{key:"getEnabledField",value:function(){return"".concat(this.getRawFieldEnabled())}},{key:"isFeatureEnabled",value:function(){return a.default.isOn((0,o.default)(this.getProps(),this.getEnabledField()))}},{key:"isEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getProps();switch(e){case"hover":return this.isFeatureEnabled()&&i.default.isEnabled(this.getRawField(),t);case"sticky":return this.isFeatureEnabled()&&l.default.isEnabled(this.getRawField(),t);case"phone":case"tablet":return this.isFeatureEnabled()&&"on"===(0,o.default)(t,"".concat(this.getRawField(),"_last_edited"),"").split("|")[0];default:return this.isFeatureEnabled()}}},{key:"getValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!this.isEnabled(e))return"";var t=this.getDefaultValue(e),n=(0,r.default)((0,o.default)(this.getProps(),this.getField(e)));return n===t?"":n}},{key:"getRawValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,r.default)((0,o.default)(this.getProps(),this.getField(e)))}},{key:"getValueOrDefault",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isFeatureEnabled()?e&&!this.isEnabled(e)?this.getValueOrDefault():this.getValue(e)||this.getDefaultValue(e):""}},{key:"getRawValueOrDefault",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isFeatureEnabled()?this.getRawValue(e)||this.getDefaultValue(e):""}},{key:"getDefaultValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getRawField(),n=u.default.getComponentAdvancedField(this.getType(),t);if(!this.isEnabled(e))return(0,r.default)((0,o.default)(n,"default","auto"));switch(e){case"hover":case"sticky":return this.getValueOrDefault();case"tablet":return(0,r.default)((0,o.default)(n,"default_tablet"))||this.getValueOrDefault();case"phone":return(0,r.default)((0,o.default)(n,"default_phone"))||this.getValueOrDefault("tablet");default:return(0,r.default)((0,o.default)(n,"default","auto"))}}},{key:"getDefaultUnit",value:function(){var e=u.default.getComponentAdvancedField(this.getType(),this.getRawField());return(0,o.default)(e,"default_unit","px")}}],n&&c(t.prototype,n),s&&c(t,s),e}();t.Sizing=f},function(e,t,n){var o=n(1082),r=n(1083),a=n(30),i=n(3);e.exports=function(e,t){return function(n,l){var u=i(n)?o:r,s=t?t():{};return u(n,e,a(l,2),s)}}},function(e,t,n){"use strict";n.r(t),function(e,o){n.d(t,"cancelAnimationFrame",(function(){return h})),n.d(t,"requestAnimationFrame",(function(){return p}));let r=1;const a="object"==typeof self&&self.self==self?self:"object"==typeof e&&e.global==e?e:{},i=Date.now();let l={},u=Date.now();const s=e=>{if("function"!=typeof e)throw new TypeError(e+" is not a function");const t=Date.now(),n=t-u,o=n>16?0:16-n,s=r++;return l[s]=e,Object.keys(l).length>1||setTimeout((()=>{u=t;const e=l;l={},Object.keys(e).forEach((t=>e[t](a.performance&&"function"==typeof a.performance.now?a.performance.now():Date.now()-i)))}),o),s},d=e=>{delete l[e]},c=e=>"string"!=typeof e?s:""===e?a.requestAnimationFrame:a[e+"RequestAnimationFrame"],f=((e,t)=>{let n=0;for(;void 0!==e[n];){if(t(e[n]))return e[n];n+=1}})(["","webkit","moz","ms","o"],(e=>!!c(e))),p=c(f),h="string"!=typeof(_=f)?d:""===_?a.cancelAnimationFrame:a[_+"CancelAnimationFrame"]||a[_+"CancelRequestAnimationFrame"];var _;a.requestAnimationFrame=p,a.cancelAnimationFrame=h,o.exports&&(o.exports={requestAnimationFrame:p,cancelAnimationFrame:h});var m={requestAnimationFrame:p,cancelAnimationFrame:h};t.default=m}.call(this,n(92),n(810)(e))},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=k(n(349)),a=k(n(54)),i=k(n(181)),l=k(n(38)),u=k(n(12)),s=k(n(41)),d=k(n(4)),c=k(n(5)),f=k(n(1)),p=k(n(8)),h=k(n(42)),_=k(n(109)),m=k(n(9)),g=k(n(6)),b=k(n(22)),v=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=O(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(39)),y=n(15),w=n(2);function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(O=function(e){return e?n:t})(e)}function k(e){return e&&e.__esModule?e:{default:e}}function S(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n100&&l<=100?"100%":d}A(t,a.getField(n),d)}));t.updateWidth=B;var x=(0,a.default)((function(e,t){var n=s.default.getPreviewMode(),o=(0,b.getHeightDynamicHelper)(f.getType(t),f.getAttrs(t)),r=parseFloat(o.getValueOrDefault(n))||parseFloat(T("height",t)),a=(0,_.getUnit)(o.getValue(n)||o.getDefaultValue(n)),i=(0,g.toFixed)(1,(0,g.max)(0,r+P(e,a)))+a;A(t,o.getField(n),i)}));t.updateHeight=x;var j=function(e,t,n,o){var r=s.default.getPreviewMode(),a=e.getValue(r),i=e.getEdgeValue(t,r),l=(0,_.getUnit)(i),u=(0,_.getNumber)(i,0),d=(0,g.toFixed)(1,P(n,l)+u),f=d+l;if(c.altOnly()&&!e.getEdgeLink(t,r)){var p=e.getEdgeValue((0,h.getPairEdge)(t),r);(0,_.getUnit)(p)===l&&parseFloat(p)>>1,s=e[u];null!==s&&!a(s)&&(n?s<=t:s1&&void 0!==arguments[1]&&arguments[1];if(g.default.isSettingsModalOpen("settings_modal")){var n=g.default.getActiveModule();(0,s.default)(n,"props.address")!==(0,s.default)(e,"props.address")&&_.default.closeSettings(n)}t&&(0,s.default)(e,"module")&&_.default.closeSettings(e.module)},getColorCode:function(e){var t,n=e.props||e,o=(0,v.getComponentType)(e);switch(o){case"module":t=h.default.inverse;break;case"column":t=h.default.cadetBlue;break;case"row":t=h.default.success;break;case"section":t=h.default.info}if("section"===o)switch(!0){case(0,v.is)("fullwidth",n):t=h.default.primary;break;case(0,v.is)("specialty",n):t=h.default.warning}switch(!0){case I(e)&&!L(e):t=h.default.globalitem;break;case L(e):t=h.default.danger}return t},getColumnLimit:function(e){var t=e.props||e;return(0,v.is)("row-inner",t)?(0,l.default)(["2_3,1_3","1_3,2_3"],(0,s.default)(t,"specialty_layout",""))||"2_3"===(0,s.default)(t,"content.[0].attrs.saved_specialty_column_type","")?4:3:6},getLayerName:function(e){var t=e.props||e;if((0,v.is)("removed",e)){var n=(0,s.default)(t,"type");return n.includes("et_pb_wc")?b.default.getModuleNameBySlug(n):n}var o="";if((0,l.default)(["et_pb_section","et_pb_row","et_pb_row_inner","et_pb_column","et_pb_column_inner"],(0,s.default)(t,"type")))o=(0,d.default)(ETBuilderBackend.structureModules,{slug:(0,s.default)(t,"type")}).name;else{var r=(0,d.default)(ETBuilderBackend.modules,{label:(0,s.default)(t,"type")});(0,u.default)(r,"title")&&(o=r.title)}return o},handleAddLayerButton:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(0,s.default)(o,"isParent",!1),a=(0,s.default)(e,r?"props.parentModule":"props.editingModule"),i=(0,s.default)(a,"props.address"),l=(0,s.default)(e,"props.editingModule"),u=(0,s.default)(e,"props.parentModule"),d=(0,v.getComponentType)(a),f=g.default.getEventMode(),p="wireframe"===g.default.getPreviewMode();if(T(t,!0),_.default.cancelTooltip(),"column"===d&&!r){var h=(0,s.default)(e,"props.additionalAttrs");return _.default.setActiveLayer(a),_.default.buttonClick(e,l,u,h),void setTimeout((function(){return W(a)}),(0,s.default)(o,"scrollTimeout",100))}H("click"),_.default.setClickModeActiveModule(i),_.default.moduleActive(a),setTimeout((function(){var t,o="[data-address='".concat(i,"']"),s=v.default.$appWindow("html");if(r)t=s.find(o).find(".et-fb-add-wrap").find("button");else{var h=".et-fb-".concat(d,"-button-wrap--add");t=p&&"module"===d?s.find(o).parent().find("div:last-child").find(h):s.find(o).find(h)}if(0===t.length)return p?(_.default.toggleModuleParentsInWireFrame(a,"off"),H(f),void setTimeout((function(){return n(e)}),100)):void H(f);var m={position:(0,c.default)({},t.offset(),{element:t})};_.default.buttonClick(e,l,u,m)}),100),setTimeout((function(){return H(f)}),100)},hasChildLayers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"module";return!(0,a.default)(e)&&!(0,v.is)(t,e)&&((0,i.default)(e.content)&&!(0,a.default)(e.content))},highlightLayerOnBuilder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.props||e;if(!(0,a.default)(e)&&!g.default.getModuleDragging()){var o=(0,s.default)(n,"address")||e,r=v.default.$appWindow("[data-address='".concat(o,"']"));if(0!==r.length){var i=g.default.getAppPreference("builder_animation"),u=function(){var t=f.getAttrs(e),n=[p.OVERFLOW_HIDDEN,p.OVERFLOW_SCROLL,p.OVERFLOW_AUTO],o=(0,l.default)(n,p.getValueX(t)),r=(0,l.default)(n,p.getValueY(t));return o||r};r.toggleClass("et-fb-layers-view__highlight",t),r.toggleClass("et-fb-layers-view__highlight--overflow",t&&u()),r.toggleClass("et-fb-layers-view__highlight--animated",t&&i)}}},isLayerGlobal:function(e){var t=e.props||e;return g.default.isLibraryPostType()&&"global"===ETBuilderBackend.layoutScope||(0,y.hasValue)((0,s.default)(t,"attrs.global_module"))||(0,y.hasValue)((0,s.default)(t,"globalParent"))},isLayerLocked:function(e){var t=e.props||e;return(0,w.isLocked)((0,y.isOn)((0,s.default)(t,"attrs.locked")),(0,s.default)(t,"lockedParent"))},isLibraryItem:function(e){return(0,v.is)("module",e)&&g.default.isEditingLibraryItem("module")||(0,v.is)("row",e)&&g.default.isEditingLibraryItem("row")||(0,v.is)("section",e)&&g.default.isEditingLibraryItem("section")},isLibraryParent:function(e){return!(!(0,v.is)("section",e)||!g.default.isEditingLibraryItem("row")&&!g.default.isEditingLibraryItem("module"))||((0,v.is)("row",e)||(0,v.is)("column",e))&&g.default.isEditingLibraryItem("module")},isLockedParent:function(e){var t=e.props||e;return(0,y.isOn)((0,s.default)(t,"attrs.locked"))&&!(0,s.default)(t,"lockedParent")},scrollToLayerOnBuilder:function(e,t){var n=e.props||e;(0,a.default)(e)||v.default.scrollToAddress((0,s.default)(n,"address",e),t,g.default.getPreviewMode())},scrollToLayerOnModal:function(e){clearTimeout(r);var t=e.props||e;if(!(0,a.default)(e)){var n=(0,s.default)(t,"address")||e;r=setTimeout((function(){var e="[data-address='".concat(n,"']"),t=v.default.$topWindow(".et-fb-modal__layers-view").find(".et-fb-tabs"),o=v.default.$topWindow(e),r=t.find(".et-fb-layers-view");if(0!==o.length){var a=o.offset().top-r.offset().top;t.animate({scrollTop:a},300)}}),300)}},switchEventMode:function(e){_.default.buttonClick({props:{buttonName:m.default.ACTIVATE_EVENT_MODE}},void 0,void 0,{eventMode:e})},prepareProps:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return M(M({},e),t)}},T=P.forceSettingsClose,A=P.getColorCode,B=P.getColumnLimit,x=P.getLayerName,j=P.handleAddLayerButton,N=P.hasChildLayers,R=P.highlightLayerOnBuilder,I=P.isLayerGlobal,L=P.isLayerLocked,D=P.isLibraryItem,V=P.isLibraryParent,F=P.isLockedParent,W=P.scrollToLayerOnBuilder,U=P.scrollToLayerOnModal,H=P.switchEventMode,G=P.prepareProps;t.prepareProps=G,t.switchEventMode=H,t.scrollToLayerOnModal=U,t.scrollToLayerOnBuilder=W,t.isLockedParent=F,t.isLibraryParent=V,t.isLibraryItem=D,t.isLayerLocked=L,t.isLayerGlobal=I,t.highlightLayerOnBuilder=R,t.hasChildLayers=N,t.handleAddLayerButton=j,t.getLayerName=x,t.getColumnLimit=B,t.getColorCode=A,t.forceSettingsClose=T;var z=P;t.default=z},function(e,t,n){"use strict";e.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){var n;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)){3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),n="#".concat(n.join(""));var o=parseInt(n.slice(1,3),16),r=parseInt(n.slice(3,5),16),a=parseInt(n.slice(5,7),16);return"".concat(t?"rgba":"rgb","(").concat(o,", ").concat(r,", ").concat(a).concat(t?", ".concat(t):"",")")}throw new Error("Bad Hex")};t.default=o},function(e,t,n){var o=n(46),r=n(736),a=o((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,r(e,n)}));e.exports=a},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var o=new Uint8Array(16);e.exports=function(){return n(o),o}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},function(e,t){for(var n=[],o=0;o<256;++o)n[o]=(o+256).toString(16).substr(1);e.exports=function(e,t){var o=t||0,r=n;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},function(e,t,n){var o=n(35),r=n(25);e.exports=function(e){return!0===e||!1===e||r(e)&&"[object Boolean]"==o(e)}},function(e,t,n){var o=n(52)("get",n(1));o.placeholder=n(47),e.exports=o},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.handlers=void 0;var r,a=P(n(122)),i=P(n(61)),l=P(n(1)),u=P(n(4)),s=P(n(5)),d=P(n(291)),c=n(99),f=P(n(154)),p=n(22),h=P(n(58)),_=C(n(2)),m=C(n(161)),g=P(n(672)),b=P(n(673)),v=P(n(19)),y=C(n(536)),w=P(n(6)),O=P(n(610)),k=P(n(674)),S=n(391),E=n(474);function M(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(M=function(e){return e?n:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=M(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function P(e){return e&&e.__esModule?e:{default:e}}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;t||(t=w.default.getModuleEdit()),this.loadGlobalPresetsHistory(),I.clear(),Y.updateGlobalPresetsSubHistory(),w.default.isSettingsModalOpen("settings_modal")?this.switchSettingsModalFace("back"):(V=d.default.set(V,"settingsModalActiveFace","back"),$.openSettingsModal(w.default.getContextMenuModule())),t.isModuleItem&&(V=d.default.set(V,"isEditingModuleChild",!0)),D=e},maybeShowForbiddenWarning:function(){var e=p.ETBuilderComponentDefinitionStore.getCurrentUserRole();return!(0,s.default)(q,e)&&(_.default.showCoreModal("globalPresetsSaveForbidden"),!0)},saveModulePresetSettings:function(e){this.maybeShowForbiddenWarning()||(I.getLength()>1?this.showGlobalPresetsSubmitDialog(e):(this.switchSettingsModalFace("front"),I.clear()))},updateModuleGlobalPresetsSetting:function(e,t,n){var o=this,r=(0,S.getRerenderAliases)(e);w.default.rerenderModules(r),w.default.updateGlobalPresetsSubHistory(n),k.default.utils.handleStatus(t,(0,l.default)(e,"props.attrs",{}),r,p.ETBuilderComponentDefinitionStore.getComponentAdvancedFields(e),(function(){o.rerenderModules(r),w.default.emitSectionsContentChange()})),w.default.emitSectionsContentChange()},updateGlobalPresetsHistoryIntervals:function(e){I.setInterval(e)},rollbackGlobalPresetsSubHistory:function(){if(I.getLength()>1){var e=I.jumpTo(0),t=this.getModuleEdit();I.clear(),setTimeout((function(){return v.default.globalPresetsHistoryJump(e,t)}),0)}},updateGlobalPresetsSubHistory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=""===e?null:this.getHistoryDebounceRate(e);I.add(p.ETBuilderComponentDefinitionStore.getGlobalPresets(),t)},globalPresetsSubHistoryUndo:function(){var e=I.undo(),t=this.getModuleEdit();setTimeout((function(){return v.default.globalPresetsHistoryJump(e,t)}),0)},globalPresetsSubHistoryRedo:function(){var e=I.redo(),t=this.getModuleEdit();setTimeout((function(){return v.default.globalPresetsHistoryJump(e,t)}),0)},globalPresetsHistoryUndo:function(){if(!V.history.isLoading){var e=L.undo().settings;setTimeout((function(){return v.default.globalPresetsHistoryJump(e,"all")}),0)}},globalPresetsHistoryRedo:function(){if(!V.history.isLoading){var e=L.redo().settings;setTimeout((function(){return v.default.globalPresetsHistoryJump(e,"all")}),0)}},globalPresetsHistoryJumpTo:function(e){if(!V.history.isLoading){var t=L.jumpTo(e).settings;setTimeout((function(){return v.default.globalPresetsHistoryJump(t,"all")}),0)}},_getModulePluralName:function(e){var t=ETBuilderBackend.i18n.tooltips;return w.default.isStructureElement(e.props)?(0,i.default)(ETBuilderBackend.structureModules,{slug:e.props.type}).namePlural:"".concat((0,O.default)(e)," ").concat(t.globalPresets.modules)},showGlobalPresetsSubmitDialog:function(e){var t=ETBuilderBackend.i18n.tooltips,n=w.default.isStructureElement(e.props)?(0,i.default)(ETBuilderBackend.structureModules,{slug:e.props.type}).name:"".concat((0,O.default)(e)," ").concat(t.globalPresets.module),o=x.decode(_.default.sprintf(t.globalPresets.text.madeChanges,n)),r=this._getModulePluralName(e),a=x.decode(_.default.sprintf(t.globalPresets.text.wishToProceed.saveDefaults,r)),l={isVisible:!0,type:N,confirmationAction:h.default.GLOBAL_PRESETS_CONFIRM_SAVE,confirmationText:"".concat(o," ").concat(a),actionPayload:{}};V=d.default.set(V,"submitDialog",l),this.emitGlobalPresetsStateChange()},_getUpdateModulePresetStylesConfirmText:function(e){var t=ETBuilderBackend.i18n.tooltips.globalPresets.text.wishToProceed;return _.default.sprintf(t.applyStylesToActivePreset,this._getModulePluralName(e),this.getCurrentModulePresetName(e))},showApplyStylesToActivePresetConfirmDialog:function(e){var t={isVisible:!0,type:w.default.isSettingsModalOpen("settings_modal")?N:R,confirmationAction:h.default.GLOBAL_PRESETS_CONFIRM_APPLY_STYLES_TO_ACTIVE_PRESET,confirmationText:this._getUpdateModulePresetStylesConfirmText(e),actionPayload:{}};V=d.default.set(V,"submitDialog",t),this.emitGlobalPresetsStateChange()},showUpdateWithCurrentStylesConfirmDialog:function(e,t){this.simulateCurrentModuleHovered();var n=this.getModuleEdit(),o={isVisible:!0,type:w.default.isSettingsModalOpen("settings_modal")?N:R,confirmationAction:h.default.GLOBAL_PRESETS_CONFIRM_UPDATE_PRESET_WITH_CURRENT_STYLES,confirmationText:this._getUpdateModulePresetStylesConfirmText(n),actionPayload:{presetName:e,presetId:t}};V=d.default.set(V,"submitDialog",o),this.emitGlobalPresetsStateChange()},showDeletePresetConfirmDialog:function(e,t){var n=ETBuilderBackend.i18n.tooltips.globalPresets.text.wishToProceed,o=this.getModuleEdit(),r=_.default.sprintf(n.deletePreset,e,(0,O.default)(o)),a={isVisible:!0,type:N,confirmationAction:h.default.GLOBAL_PRESETS_CONFIRM_DELETE_PRESET,confirmationText:r,actionPayload:{presetId:t}};V=d.default.set(V,"submitDialog",a),this.emitGlobalPresetsStateChange()},_getAssignPresetToDefaultConfirmText:function(e){var t=ETBuilderBackend.i18n.tooltips.globalPresets.text.wishToProceed,n=this.getModuleEdit();return _.default.sprintf(t.assignPresetToDefault,"".concat(e,""),this._getModulePluralName(n),(0,O.default)(n))},showAssignPresetToDefaultConfirmDialog:function(e,t){var n={isVisible:!0,type:N,confirmationAction:h.default.GLOBAL_PRESETS_CONFIRM_ASSIGN_PRESET_TO_DEFAULT,confirmationText:this._getAssignPresetToDefaultConfirmText(e),actionPayload:{presetId:t}};V=d.default.set(V,"submitDialog",n),this.emitGlobalPresetsStateChange()},showSavePresetSettingsConfirmDialog:function(){var e=V.presetSettingsPopup,t=e.presetId,n=e.presetName,o=e.presetDefaultName,r=e.isPresetDefault,a=e.isMakingClone,i=e.isMakingPresetFromCurrentStyles?h.default.GLOBAL_PRESETS_CONFIRM_CREATE_PRESET_FROM_CURRENT_STYLES:h.default.GLOBAL_PRESETS_CONFIRM_SAVE_PRESET_SETTINGS,l=(0,_.stripHTMLTags)(n),u={isVisible:!0,type:N,confirmationAction:i,confirmationText:this._getAssignPresetToDefaultConfirmText(l),actionPayload:{presetId:t,presetName:l||o,isPresetDefault:m.isOn(r),isMakingClone:a}};V=d.default.set(V,"submitDialog",u),this.closePresetSettingsModal(),this.emitGlobalPresetsStateChange()},saveSubHistory:function(e){var t=I.getCurrent();V.isModuleCustomizerFullyMigrated||(t=d.default.merge(V.customDefaultsUnmigrated,t,{deep:!0}),V=d.default.set(V,"isModuleCustomizerFullyMigrated",!0),V=d.default.without(V,"customDefaultsUnmigrated"),setTimeout((function(){v.default.globalPresetsHistoryJump(t,"all")}),0));var n=y.getLabel({verb:"edited",noun:e.props.type});L.add({settings:t,time:Date.now(),label:n}),I.clear(),V=d.default.setIn(V,["history","isSaving"],!0),this.saveGlobalPresetsHistory()},confirmGlobalPresetsSubmitDialog:function(e){this.saveSubHistory(e),this.closeGlobalPresetsSubmitDialog(),this.switchSettingsModalFace("front")},closeGlobalPresetsSubmitDialog:function(){V=d.default.setIn(V,["submitDialog","isVisible"],!1),V=d.default.setIn(V,["submitDialog","presetId"],null),this.emitGlobalPresetsStateChange()},completeHistorySaving:function(){V=d.default.setIn(V,["history","isSaving"],!1)},completeHistoryLoading:function(){L.setLimit(100),V=d.default.setIn(V,["history","isLoading"],!1),V=d.default.setIn(V,["history","lastIndex"],L.getCurrentIndex()),this.emitGlobalPresetsStateChange()},reloadHistory:function(){V=d.default.setIn(V,["history","isLoading"],!0),V=d.default.setIn(V,["history","lastIndex"],0),V=d.default.setIn(V,["history","wasLoaded"],!1),this.emitGlobalPresetsStateChange(),this.loadGlobalPresetsHistory()},handleHistoryLoadError:function(){_.default.showCoreModal("globalPresetsLoadFailure"),V=d.default.setIn(V,["history","isLoading"],!1),this.emitGlobalPresetsStateChange()},handleHistorySaveError:function(e){console.error(e),_.default.showCoreModal("globalPresetsSaveFailure"),V=d.default.setIn(V,["history","isSaving"],!1),this.emitGlobalPresetsStateChange()},handleGlobalPresetsHistoryJump:function(e){"all"===e?this.rerenderModules("all"):e&&this.rerenderModules((0,S.getRerenderAliases)(e)),this.emitSectionsContentChange()},globalPresetsBeforeHistoryOpen:function(){V=d.default.setIn(V,["history","lastIndex"],L.getCurrentIndex())},globalPresetsBeforeHistoryClose:function(){if(!V.history.isLoading&&(V=d.default.set(V,"historyModalActiveTab",""),L.getCurrentIndex()!==V.history.lastIndex)){var e=L.jumpTo(V.history.lastIndex).settings;setTimeout((function(){return v.default.globalPresetsHistoryJump(e,"all")}),0)}},globalPresetsApplyHistoryChanges:function(){V.history.isLoading||(V=d.default.set(V,"historyModalActiveTab",""),L.getCurrentIndex()!==V.history.lastIndex&&(this.maybeShowForbiddenWarning()?this.globalPresetsHistoryJumpTo(V.history.lastIndex):(V=d.default.setIn(V,["history","isSaving"],!0),this.saveGlobalPresetsHistory())))},simulateCurrentModuleHovered:function(){var e=w.default.getMouseHoveredElement();(0,u.default)(e)||$.setLastHoveredElement(e)},confirmCreatePresetFromCurrentStyles:function(e,t){this.closeGlobalPresetsSubmitDialog();var n=e.props.type,o="default";($.performResetOptions((function(e,t){return!(0,E.isSettingExcluded)(t,e.toggle_slug,e.name,n)}),!1),t)||(o=p.ETBuilderComponentDefinitionStore.getModulePresetsList(e).sort((function(e,t){return t.created-e.created}))[0].id);$.updateModuleSetting({module:e,setting:p._module_preset,newValue:o}),this.rerenderModules((0,S.getRerenderAliases)(e)),w.default.emitSectionsContentChange(),"back"===V.settingsModalActiveFace&&(V=d.default.set(V,"presetsDropdownVisible",!0)),I.getLength()>1&&this.saveSubHistory(e);var r=y.getLabel({verb:"presetCreated",noun:e.props.type});L.add({settings:p.ETBuilderComponentDefinitionStore.getGlobalPresets(),time:Date.now(),label:r}),this.saveGlobalPresetsHistory(),this.closePresetSettingsModal(),this.openModuleGlobalPresets()},beforeApplyStylesToActivePreset:function(){this.simulateCurrentModuleHovered();var e=w.default.getModuleEdit();this.showApplyStylesToActivePresetConfirmDialog(e)},applyStylesToActivePreset:function(e){var t=e.props.type;$.performResetOptions((function(e,n){return!(0,E.isSettingExcluded)(n,e.toggle_slug,e.name,t)}));var n=this.getLastHoveredElement(),o=y.getLabel({verb:"edited",noun:n.payload.module_slug}),r=p.ETBuilderComponentDefinitionStore.getGlobalPresets();V.isModuleCustomizerFullyMigrated||(r=d.default.merge(V.customDefaultsUnmigrated,r,{deep:!0}),V=d.default.set(V,"isModuleCustomizerFullyMigrated",!0),V=d.default.without(V,"customDefaultsUnmigrated"),setTimeout((function(){v.default.globalPresetsHistoryJump(r,"all")}),0)),L.add({settings:r,time:Date.now(),label:o}),this.rerenderModules((0,S.getRerenderAliases)(e)),this.closeGlobalPresetsSubmitDialog(),this.emitSectionsContentChange(),this.saveGlobalPresetsHistory()},confirmUpdatePresetWithCurrentStyles:function(e,t){if(p.ETBuilderComponentDefinitionStore.getModulePresetId(e)===t)this.applyStylesToActivePreset(e);else{I.getLength()>1&&this.saveSubHistory(e);var n=y.getLabel({verb:"edited",noun:e.props.type});L.add({settings:p.ETBuilderComponentDefinitionStore.getGlobalPresets(),time:Date.now(),label:n}),this.rerenderModules((0,S.getRerenderAliases)(e)),this.closeGlobalPresetsSubmitDialog(),this.emitSectionsContentChange(),this.saveGlobalPresetsHistory()}},resetGlobalPresets:function(e){I.add(p.ETBuilderComponentDefinitionStore.getGlobalPresets()),this.rerenderModules((0,S.getRerenderAliases)(e)),this.emitSectionsContentChange()},setHistoryModalActiveTab:function(e){"global-history"===e&&this.loadGlobalPresetsHistory(),V=d.default.set(V,"historyModalActiveTab",e)},handleBackToParentAction:function(){V=d.default.set(V,"isEditingModuleChild",!1),setTimeout((function(){return v.default.closeSettings(!0)}),0)},handleChildItemEdit:function(e){V=d.default.set(V,"isEditingModuleChild",!0),setTimeout((function(){v.default.buttonClick({props:{buttonName:h.default.MODULE_ITEM_EDIT}},e)}),0)},importGlobalPresets:function(){var e=p.ETBuilderComponentDefinitionStore.getGlobalPresets(),t=y.getLabel({verb:"imported"});L.add({settings:e,time:Date.now(),label:t}),V=d.default.setIn(V,["history","isSaving"],!0),this.saveGlobalPresetsHistory()},loadGlobalPresetsHistory:function(){var e=this;V.history.wasLoaded||(V=d.default.setIn(V,["history","wasLoaded"],!0),b.default.instance().load().then((function(){return e.completeHistoryLoading()})).catch((function(){return e.handleHistoryLoadError()})))},saveGlobalPresetsHistory:function(){var e=this;b.default.instance().save().then((function(t){t.success?e.completeHistorySaving():e.handleHistorySaveError(t.data.error)})).catch((function(t){return e.handleHistorySaveError(t)}))},downloadGlobalPresetsBackup:function(){var e="data:text/json;charset=utf-8,".concat(encodeURIComponent(L.toJSON())),t=_.default.$topWindow(".et-builder-global-presets-save-failure-download")[0];t.setAttribute("href",e),t.setAttribute("download","global-defaults-backup.json"),t.trigger("click")},prepareToAddNewPreset:function(){var e=w.default.getModuleEdit(),t=(0,p.generateDefaultPresetName)(e),n=A(A({},V.presetSettingsPopup),{},{isVisible:!0,presetName:t,presetDefaultName:t});V=d.default.set(V,"presetSettingsPopup",n)},addNewPreset:function(){this.prepareToAddNewPreset(),this.emitPresetSettingsChange()},showNewPresetFromCurrentStylesDialog:function(){this.simulateCurrentModuleHovered(),this.prepareToAddNewPreset(),V=d.default.setIn(V,["presetSettingsPopup","isMakingPresetFromCurrentStyles"],!0),this.emitPresetSettingsChange()},editPresetSettings:function(e){var t=p.ETBuilderComponentDefinitionStore.i18n.modals.globalPresets.presets,n=w.default.getModuleEdit(),o=p.ETBuilderComponentDefinitionStore.getModulePresetsList(n).sort((function(e,t){return e.created-t.created})),r=o.findIndex((function(t){return t.id===e})),a=(0,O.default)(n),i="".concat(t.moduleNamePreset," ").concat(r+1).replace("%s",a),l=o[r],u=l.name,s=l.isDefault,c=A(A({},V.presetSettingsPopup),{},{isVisible:!0,presetId:e,presetName:u,presetDefaultName:i,isPresetDefault:m.toOnOff(s),isAssignToDefaultHidden:s,previousDefaultPresetId:p.ETBuilderComponentDefinitionStore.getModuleDefaultPresetId(n),previousPresetName:u});V=d.default.set(V,"presetSettingsPopup",c),this.emitPresetSettingsChange()},closePresetSettingsModal:function(){V=d.default.set(V,"presetSettingsPopup",{isVisible:!1,presetId:null,presetName:"",presetDefaultName:"",isPresetDefault:"off",isAssignToDefaultHidden:!1,isMakingClone:!1,isMakingPresetFromCurrentStyles:!1,previousDefaultPresetId:"",previousPresetName:""}),a.default.hide(),this.emitPresetSettingsChange()},confirmSavePresetSettings:function(e,t,n,o){this.closeGlobalPresetsSubmitDialog();var r=V.presetSettingsPopup,a=r.previousDefaultPresetId,i=r.isMakingClone,l=r.previousPresetName;if(o&&t!==a){$.updateModuleSetting({module:e,setting:p._module_preset,newValue:"default"}),I.getLength()>1&&this.saveSubHistory(e);var u=y.getLabel({verb:"presetAssignedAsDefault",noun:e.props.type});L.add({settings:p.ETBuilderComponentDefinitionStore.getGlobalPresets(),time:Date.now(),label:u}),this.saveGlobalPresetsHistory(),this.openModuleGlobalPresets()}else if(null===t||i){var s=p.ETBuilderComponentDefinitionStore.getModulePresetsList(e).sort((function(e,t){return t.created-e.created}));$.updateModuleSetting({module:e,setting:p._module_preset,newValue:s[0].id}),I.getLength()>1&&this.saveSubHistory(e);var c=y.getLabel({verb:"presetCreated",noun:e.props.type});L.add({settings:p.ETBuilderComponentDefinitionStore.getGlobalPresets(),time:Date.now(),label:c}),this.saveGlobalPresetsHistory(),this.openModuleGlobalPresets()}else if(n!==l){I.getLength()>1&&this.saveSubHistory(e);var f=y.getLabel({verb:"presetNameChanged",noun:e.props.type});L.add({settings:p.ETBuilderComponentDefinitionStore.getGlobalPresets(),time:Date.now(),label:f}),this.saveGlobalPresetsHistory()}this.rerenderModules((0,S.getRerenderAliases)(e)),w.default.emitSectionsContentChange(),"back"===V.settingsModalActiveFace&&(V=d.default.set(V,"presetsDropdownVisible",!0)),this.closePresetSettingsModal()},onModulePresetChange:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=w.default.getModuleEdit(),o=e,r=this.getCurrentModulePresetId(n,!1);if(r===o){if(!t)return;o="default"}$.updateModuleSetting({module:n,setting:p._module_preset,newValue:o}),I.getLength()>1&&this.saveSubHistory(n),this.emitPresetSettingsChange(),this.emitModulePresetChange(),w.default.emitSectionsContentChange()},onPresetSettingChange:function(e,t){V=d.default.setIn(V,["presetSettingsPopup",e],t),this.emitPresetSettingsChange()},getCurrentModulePresetId:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.props.address,o=$.getShortcodeObjAtAddress(n),r=(0,l.default)(o,"attrs.".concat(p._module_preset));return"default"===r?"default":r&&p.ETBuilderComponentDefinitionStore.isModulePresetExist(e,r)?r:t?p.ETBuilderComponentDefinitionStore.getModuleDefaultPresetId(e):"default"},getCurrentModulePresetName:function(e){var t=ETBuilderBackend.i18n.modals.globalPresets.presets,n=this.getCurrentModulePresetId(e),o=p.ETBuilderComponentDefinitionStore.getModulePresetsList(e);return o.length<=1||"default"===n?"".concat((0,O.default)(e)," ").concat(t.defaultPreset):o.find((function(e){return e.id===n})).name},confirmAssignPresetToDefault:function(e){this.closeGlobalPresetsSubmitDialog();var t=y.getLabel({verb:"presetAssignedAsDefault",noun:e.props.type});L.add({settings:p.ETBuilderComponentDefinitionStore.getGlobalPresets(),time:Date.now(),label:t}),this.saveGlobalPresetsHistory(),this.rerenderModules((0,S.getRerenderAliases)(e)),this.emitPresetSettingsChange(),w.default.emitSectionsContentChange()},clonePreset:function(e){var t=w.default.getModuleEdit(),n=(0,p.generateDefaultPresetName)(t),o={isVisible:!0,presetId:e,presetName:n,presetDefaultName:n,isMakingClone:!0,previousDefaultPresetId:p.ETBuilderComponentDefinitionStore.getModuleDefaultPresetId(t)};V=d.default.set(V,"presetSettingsPopup",o),this.emitPresetSettingsChange()},confirmDeletePreset:function(){this.closeGlobalPresetsSubmitDialog();var e=w.default.getModuleEdit(),t=y.getLabel({verb:"presetDeleted",noun:e.props.type});L.add({settings:p.ETBuilderComponentDefinitionStore.getGlobalPresets(),time:Date.now(),label:t}),this.saveGlobalPresetsHistory(),this.rerenderModules((0,S.getRerenderAliases)(e)),this.emitPresetSettingsChange(),w.default.emitSectionsContentChange()},openPresetsDropdown:function(){V=d.default.set(V,"presetsDropdownVisible",!0),this.emitPresetSettingsChange()},closePresetsDropdown:function(){V=d.default.set(V,"presetsDropdownVisible",!1),this.emitPresetSettingsChange()},editPresetStyles:function(e){this.openModuleGlobalPresets(),this.onModulePresetChange(e,!1)},resetGlobalPresetsState:function(){V=d.default.set(V,"presetsDropdownVisible",!1),V=d.default.set(V,"presetSettingsPopup",{isVisible:!1,presetId:null,presetName:"",presetDefaultName:"",isPresetDefault:"off",isAssignToDefaultHidden:!1,isMakingClone:!1,isMakingPresetFromCurrentStyles:!1,previousDefaultPresetId:"",previousPresetName:""}),this.emitPresetSettingsChange()},completeSettingsModalFlipAnimation:function(){null!==D&&(D(),D=null),V=d.default.set(V,"isModalFlipping",!1),this.emitSettingsModalFaceChange()}},K=(B(r={},h.default.INIT_GLOBAL_PRESETS_STORE,(function(e){e.initGlobalPresetsStore()})),B(r,h.default.OPEN_GLOBAL_PRESETS,(function(e,t){var n=t.module,o=t.resolve;e.openModuleGlobalPresets(o,n)})),B(r,h.default.COMPLETE_SETTINGS_MODAL_FLIP_ANIMATION,(function(e){e.completeSettingsModalFlipAnimation()})),B(r,h.default.UPDATE_MODULE_PRESET_SETTING,(function(e,t){var n=t.module,o=t.setting,r=t.settingType;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.updateModuleGlobalPresetsSetting(n,o,r)})),B(r,h.default.GLOBAL_PRESETS_HISTORY_LOAD,(function(e){e.loadGlobalPresetsHistory()})),B(r,h.default.GLOBAL_PRESETS_HISTORY_SAVE,(function(e){e.saveGlobalPresetsHistory()})),B(r,h.default.GLOBAL_PRESETS_HISTORY_JUMP,(function(e,t){var n=t.module;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.handleGlobalPresetsHistoryJump(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_OPEN,(function(e){e.openModuleGlobalPresets()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_CLOSE,(function(e){e.rollbackGlobalPresetsSubHistory(),e.switchSettingsModalFace("front")})),B(r,h.default.BUTTON_SAVE_MODULE_PRESET_SETTINGS,(function(e,t){var n=t.actionModule;e.saveModulePresetSettings(n)})),B(r,h.default.GLOBAL_PRESETS_HISTORY_SAVE_ERROR,(function(e,t){var n=t.error;e.handleHistorySaveError(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_SUBHISTORY_UNDO,(function(e){e.globalPresetsSubHistoryUndo()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_SUBHISTORY_REDO,(function(e){e.globalPresetsSubHistoryRedo()})),B(r,h.default.GLOBAL_PRESETS_CONFIRM_SAVE,(function(e,t){var n=t.module;e.confirmGlobalPresetsSubmitDialog(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_APPLY_STYLES_TO_CURRENT_PRESET,(function(e){e.beforeApplyStylesToActivePreset()})),B(r,h.default.GLOBAL_PRESETS_SHOW_NEW_PRESET_FROM_CURRENT_STYLES_DIALOG,(function(e){e.showNewPresetFromCurrentStylesDialog()})),B(r,h.default.GLOBAL_PRESETS_CONFIRM_CREATE_PRESET_FROM_CURRENT_STYLES,(function(e,t){var n=t.module,o=t.actionPayload;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.confirmCreatePresetFromCurrentStyles(n,o.isPresetDefault)})),B(r,h.default.GLOBAL_PRESETS_CONFIRM_APPLY_STYLES_TO_ACTIVE_PRESET,(function(e,t){var n=t.module;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.applyStylesToActivePreset(n)})),B(r,h.default.GLOBAL_PRESETS_CONFIRM_UPDATE_PRESET_WITH_CURRENT_STYLES,(function(e,t){var n=t.module,o=t.actionPayload;e.simulateCurrentModuleHovered(),f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.confirmUpdatePresetWithCurrentStyles(n,o.presetId)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_BACK_TO_PARENT,(function(e){e.handleBackToParentAction()})),B(r,h.default.RESET_MODULE_PRESET_SETTINGS,(function(e,t){var n=t.module;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.resetGlobalPresets(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_CONFIRMATION_DIALOG_CLOSE,(function(e){e.closeGlobalPresetsSubmitDialog()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_HISTORY_JUMP_TO,(function(e,t){var n=t.actionButton.props.historyIndex;e.globalPresetsHistoryJumpTo(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_HISTORY_UNDO,(function(e){e.globalPresetsHistoryUndo()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_HISTORY_REDO,(function(e){e.globalPresetsHistoryRedo()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_CHILD_ITEM_EDIT,(function(e,t){var n=t.actionModule;e.handleChildItemEdit(n)})),B(r,h.default.GLOBAL_PRESETS_HISTORY_SAVED,(function(e){e.completeHistorySaving()})),B(r,h.default.GLOBAL_PRESETS_HISTORY_RELOAD,(function(e){e.reloadHistory()})),B(r,h.default.MODAL_HISTORY_SET_ACTIVE_TAB,(function(e,t){var n=t.tab;e.setHistoryModalActiveTab(n)})),B(r,h.default.GLOBAL_PRESETS_IMPORT,(function(e){f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.importGlobalPresets()})),B(r,h.default.GLOBAL_PRESETS_DOWNLOAD_BACKUP,(function(e){e.downloadGlobalPresetsBackup()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_ADD_NEW_PRESET,(function(e){e.addNewPreset()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_EDIT_PRESET_SETTINGS,(function(e,t){var n=t.preset;e.editPresetSettings(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_UPDATE_PRESET_WITH_CURRENT_STYLES,(function(e,t){var n=t.presetName,o=t.presetId;e.showUpdateWithCurrentStylesConfirmDialog(n,o)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_PRESET_SETTINGS_CLOSE,(function(e){e.closePresetSettingsModal()})),B(r,h.default.BUTTON_GLOBAL_PRESETS_SAVE_PRESET_SETTINGS,(function(e){e.showSavePresetSettingsConfirmDialog()})),B(r,h.default.GLOBAL_PRESETS_CONFIRM_SAVE_PRESET_SETTINGS,(function(e,t){var n=t.module,o=t.actionPayload;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]);var r=o.presetId,a=o.presetName,i=o.isPresetDefault;e.confirmSavePresetSettings(n,r,a,i)})),B(r,h.default.GLOBAL_PRESETS_MODULE_PRESET_CHANGE,(function(e,t){var n=t.preset;e.onModulePresetChange(n)})),B(r,h.default.GLOBAL_PRESETS_PRESET_SETTING_CHANGE,(function(e,t){var n=t.name,o=t.value;e.onPresetSettingChange(n,o)})),B(r,h.default.GLOBAL_PRESETS_ASSIGN_PRESET_TO_DEFAULT,(function(e,t){var n=t.presetName,o=t.presetId;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.showAssignPresetToDefaultConfirmDialog(n,o)})),B(r,h.default.GLOBAL_PRESETS_CONFIRM_ASSIGN_PRESET_TO_DEFAULT,(function(e,t){var n=t.module;f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.confirmAssignPresetToDefault(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_CLONE_PRESET,(function(e,t){var n=t.preset;e.clonePreset(n)})),B(r,h.default.BUTTON_GLOBAL_PRESETS_DELETE_PRESET,(function(e,t){var n=t.presetName,o=t.presetId;e.showDeletePresetConfirmDialog(n,o)})),B(r,h.default.GLOBAL_PRESETS_CONFIRM_DELETE_PRESET,(function(e){f.default.waitFor([p.ETBuilderComponentDefinitionStore._dispatchToken]),e.confirmDeletePreset()})),B(r,h.default.GLOBAL_PRESETS_OPEN_PRESETS_DROPDOWN,(function(e){e.openPresetsDropdown()})),B(r,h.default.GLOBAL_PRESETS_CLOSE_PRESETS_DROPDOWN,(function(e){e.closePresetsDropdown()})),B(r,h.default.GLOBAL_PRESETS_EDIT_PRESET_STYLES,(function(e,t){var n=t.preset;e.editPresetStyles(n)})),r);t.handlers=K,_.default.$appWindow().on("et_fb_shortcode_object_loaded",(function(){v.default.initGlobalPresetsStore()}));var X={passMainStorePrivateFunctions:function(e){$=A({},e)},handlers:K,store:Y,SETTINGS_MODAL_DEFAULT_FACE:j,CONFIRMATION_DIALOG_TYPE_DEFAULT:N,CONFIRMATION_DIALOG_TYPE_CORE:R};t.default=X},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeFieldFromGlobalColors=function(e,t,n){var r=o.default.getGlobalColorsInfo(t);r=o.default.removeFieldFromGlobalColorsInfo(e,r),n({module:{props:t},setting:"global_colors_info",newValue:JSON.stringify(r)})},t.resetOptions=t.pasteSimilarOptions=t.pasteOptions=t.getOptionsToCopy=void 0;var o=N(n(325)),r=N(n(11)),a=N(n(152)),i=N(n(282)),l=N(n(211)),u=N(n(8)),s=N(n(1)),d=N(n(36)),c=N(n(5)),f=N(n(178)),p=N(n(3)),h=N(n(4)),_=N(n(12)),m=N(n(10)),g=N(n(14)),b=N(n(100)),v=N(n(281)),y=N(n(435)),w=N(n(326)),O=N(n(54)),k=N(n(48)),S=N(n(126)),E=N(n(41)),M=n(153),C=N(n(6)),P=N(n(22)),T=N(n(283)),A=N(n(290)),B=N(n(158)),x=N(n(2)),j=n(455);function N(e){return e&&e.__esModule?e:{default:e}}t.getOptionsToCopy=function(e){var t=C.default.getLastHoveredElement(),n=T.default.getHelper(t.payload.type),r=n.getModuleAddress(t.payload),l=C.default.getComponentAtAddress(r),d=n.getBackgroundOptions(t),f=["content","raw_content"],p=n.getOptions(t.payload,e),_=(0,j.getCompositeFieldAttrs)(l.type,p),m=[],b=o.default.getGlobalColorsInfo(l);if((0,u.default)(p,(function(e){e===B.default.getBaseName(e,!0)&&(m.push(e),B.default.isHoverEnabled(e,l)&&(m.push(B.default.getHoverName(e)),m.push(B.default.getHoverEnabledName(e))),B.default.isStickyEnabled(e,l)&&(m.push(B.default.getStickyName(e)),m.push(B.default.getStickyEnabledName(e))),B.default.isResponsiveEnabled(e,l)&&(m.push(B.default.getTabletName(e)),m.push(B.default.getPhoneName(e)),m.push(B.default.getResponsiveEnabledName(e))))})),"option"!==t.type&&n.hasColumn(l)){var v=(0,s.default)(l,"content.length",0);v>0&&(0,u.default)((0,w.default)(v),(function(e){var o=e+1,r=(0,g.default)((0,s.default)(P.default.columnSettingFields,"general",{}));(0,u.default)(r,(function(e){var r=e.replace("%s",o);d.push(r),n.isGroupOption("background",t)&&m.push(r)}))}))}var y=n.getOptionsBlocklist((0,i.default)(t.payload,d)),E=[],M="et_pb_counter"===(0,s.default)(l,"type");(0,u.default)((0,a.default)(m,_),(function(e){if(!(0,c.default)(y,B.default.getBaseName(e)))if((0,c.default)(f,e)){var t=(0,s.default)(l,"content",!1);E.push({name:"".concat(e),value:M?(0,s.default)(l,"attrs.".concat(e),t):t})}else E.push({name:e,value:(0,s.default)(l,"attrs.".concat(e),!1)})}));var N=(0,s.default)(l,["attrs",A.default.getHoverEnabledField("background")],!1);!1!==N&&E.push({name:A.default.getHoverEnabledField("background"),value:N});var R=n.getRemovableOptions(t,C.default.getAllowedComponentAdvancedFields({props:l}),(0,S.default)(E),_),I=x.default.intentionallyCloneDeep(t);return M&&"option"===I.type&&"content"===I.elementId&&((0,O.default)(I,"elementId","title"),(0,O.default)(I,"payload.option",["title"])),(0,h.default)(b)||(0,O.default)(I,"global_colors_info",b),{item:I,options:(0,S.default)(E),options_to_unset:(0,k.default)(R,_,d)}};t.pasteOptions=function(e,t,n,o){return R(e,t,n,o,!1)};t.pasteSimilarOptions=function(e,t,n,o){return R(e,t,n,o,!0)};t.resetOptions=function(e){var t=e.updateContentCallback,n=e.updateSettingCallback,r=e.setViewModeCallback,i=e.generateNewColumnsContentCallback,d=e.predicate,f=e.resetChildOptions,_=void 0===f||f,g=C.default.getLastHoveredElement();if(!(0,h.default)(g)){var b=[];b.push(g);var v=T.default.getHelper(g.payload.type).getModuleAddress(g.payload),w=C.default.getComponentAtAddress(v),O=[];_&&"module"===g.type&&!(0,m.default)(w.child_slug)&&(0,p.default)(w.content)&&(0,u.default)(w.content,(function(e){var t=T.default.getHelper("child_item").preparePayload({props:e});b.push({type:"child_item",payload:t})}));var k=function(e,t){if((0,c.default)(["wireframe","desktop"],C.default.getPreviewMode()))return!1;var n=["content","raw_content"],o=[];(0,u.default)(e,(function(e){var r=T.default.getHelper(e.payload.type),a=r.getOptionsToReset(e.payload,t),i=r.getModuleAddress(e.payload),l=C.default.getComponentAtAddress(i),s=r.getOptionsBlocklist(e.payload),d=r.getOptionSuffixes(e.payload,l);(0,u.default)(a,(function(e){(0,c.default)(n,e)||(0,c.default)(s,e)||(o.push(e),(0,u.default)(d,(function(t){o.push("".concat(e).concat(t))})))}))}));var r=!1;return(0,u.default)(o,(function(e){if((0,l.default)(e,"_last_edited"))return r=!0})),r}(b,d);return k&&r("desktop"),(0,u.default)(b,(function(e){var r=function(e,t,n,r,i){var l=T.default.getHelper(e.payload.type),d=l.getOptionsToReset(e.payload,i),f=l.getModuleAddress(e.payload),p=C.default.getComponentAtAddress(f),h=(0,j.getCompositeFieldAttrs)(p.type,d),_=l.getOptionsBlocklist(e.payload),m=["content","raw_content"],g="options_group"===(0,s.default)(e,"payload.type","")?(0,s.default)(e,"payload.toggleId",""):"",b=l.getOptionSuffixes(e.payload,p),v=(o.default.getModuleAttrsUsingGlobalColors(p),[]);"admin_label"===g&&(0,y.default)(_,"admin_label");return(0,u.default)(h,(function(e){(0,u.default)(b,(function(t){n({module:{props:p},setting:"".concat(e).concat(t),newValue:"",unsetSetting:!0}),(0,M.doAction)("et.builder.module.preset.setting.reset","".concat(e).concat(t),p,n)}))})),(0,u.default)(d,(function(o){(0,c.default)(_,o)||(0,u.default)(b,(function(i){if(A.default.enabledSuffix()===i&&"background_color"===o&&(o="background"),(0,c.default)(m,"".concat(o).concat(i)))"et_pb_counter"===(0,s.default)(p,"type")?(n({module:{props:p},setting:"".concat(o).concat(i),newValue:"",unsetSetting:!0}),t({props:p},"")):t({props:p},"");else if(n({module:{props:p},setting:"".concat(o).concat(i),newValue:"",unsetSetting:!0}),(0,M.doAction)("et.builder.module.preset.setting.reset","".concat(o).concat(i),p,n),"column_structure"===o&&""===i){var u=T.default.getDefaultsHelper(l.getModuleSlug(e.payload)).getDefaults(e.payload,p),d=(0,s.default)(u,"".concat(o).concat(i),""),f=r({props:p},d);t({props:p},f)}v=(0,a.default)(v,P.default.getComponentFieldComputedAffects(p.type,o))}))})),v}(e,t,n,i,d);O=(0,a.default)(O,r)})),{module:{props:C.default.getComponentAtAddress(v)},affected_options:(0,S.default)(O)}}};var R=function(e,t,n,i,p){var y=C.default.getLastHoveredElement();if(((0,c.default)(["module","fullwidth_module"],y.type)||(0,c.default)(["et_pb_column","et_pb_column_inner"],y.module_slug))&&(0,_.default)(y.payload.fields)){var w=(0,b.default)((0,v.default)(P.default.getComponentAllFields(y.elementId),(function(e){return!(0,d.default)(e,"type")})),(function(e){return""}));y.payload.fields=(0,r.default)(w,y.payload.fields)}if((0,h.default)(e.item))return!1;var k=!1,M=T.default.getHelper(y.payload.type),j=T.default.getHelper(e.item.payload.type),N=(0,s.default)(e,"item.type"),R=(0,s.default)(e,"item.payload.module_slug"),I=(0,s.default)(y,"type"),L=P.default.getComponentAllFields(y.payload.module_slug),D=(0,d.default)(y,"payload.module_slug")?(0,g.default)(L):[];if("option"===N){var V=M.getOptionsAlias((0,s.default)(e,"item.payload")),F="option"===I&&!(0,h.default)((0,f.default)((0,s.default)(y,"payload.option"),V)),W="options_group"===I&&!(0,h.default)((0,f.default)((0,s.default)(y,"payload.fields"),V)),U="tab"===I&&!(0,h.default)((0,f.default)((0,g.default)((0,s.default)(y,"payload.fields")),V)),H=(0,c.default)(["module","fullwidth_module"],I)&&!(0,h.default)((0,f.default)(D,V));if(F||W||U||H){var G=C.default.getAllowedComponentAdvancedFields({props:{type:R}}),z=[];(0,u.default)(e.options,(function(t){var n=(0,s.default)(G,[A.default.getFieldBaseName(t.name),"toggle_slug"],"options_group"),o=T.default.getHelper(n).getOptionsToPaste(e.item.payload,y.payload,[t]);z=(0,a.default)(z,o)})),(0,O.default)(e,"options",z),z=[],(0,u.default)(e.options_to_unset,(function(t){var n=(0,s.default)(G,[t,"toggle_slug"]),o=T.default.getHelper(n).getOptionsToPaste(e.item.payload,y.payload,[t]);z=(0,a.default)(z,o)})),(0,O.default)(e,"options_to_unset",z)}}var q=M.getModuleAddress(y.payload),$=C.default.getComponentAtAddress(q),Y=["content","raw_content"],K=[],X=(0,s.default)($,"attrs.global_colors_info"),Q=x.default.isJson(X)?JSON.parse(X):X,Z=(0,s.default)(e,"item.global_colors_info");if(!(0,m.default)(Z)){var J=Z;(0,m.default)(Q)||(J=o.default.mergeGlobalColorsInfos(Z,Q)),delete $.attrs.global_colors_info,(0,O.default)($,"attrs.global_colors_info",JSON.stringify(J))}if(e.options=j.getOptionsToPaste(e.item.payload,y.payload,e.options),e.options_to_unset=j.getOptionsToUnset(e.item.payload,y.payload,e.options_to_unset),p){if((0,d.default)(e,"options")&&(0,d.default)(e,"item.payload.option")){var ee=e.options.filter((function(e){return e.name===B.default.getBaseName(e.name,!0)})).map((function(e){return e.name})),te=e.item.payload.option.filter((function(e){return e===B.default.getBaseName(e,!0)}));(0,E.default)(ee,te)&&(e.item.payload.option=e.options.map((function(e){return e.name})))}var ne=M.getSimilarOptions(y.payload,e.item.payload);(0,u.default)(ne,(function(o,r){var l=(0,s.default)(e,"options",[]),d=(0,s.default)(e,"options.[".concat(r,"].value"),"");if(l.length!==ne.length)if("custom_padding"===(0,s.default)(l,"0.name","")){var f=(0,s.default)(l,"0.value","");d=(0,s.default)(f.split("|"),r,"")}else if((0,c.default)(ne,"custom_padding")){var p=[];(0,u.default)(l,(function(e){var t=((0,s.default)(e,"value","")||"").trim();p.push(t)})),d=p.join("|")}!1!==o.value&&((0,c.default)(Y,o)?k|=t({props:$},d):(0,h.default)(o.value)?n({module:{props:$},setting:o,newValue:"",unsetSetting:!0}):k|=n({module:{props:$},setting:o,newValue:d}),K=(0,a.default)(K,P.default.getComponentFieldComputedAffects($.type,o)),i($,o,d))}))}else{(0,u.default)(e.options_to_unset,(function(e){n({module:{props:$},setting:e,newValue:"",unsetSetting:!0})})),$=C.default.getComponentAtAddress(q);var oe="et_pb_counter"===(0,s.default)($,"type"),re=(0,s.default)($,"is_module_child",!1);(0,u.default)(e.options,(function(e){if(!1!==e.value){var o=e.name;oe&&"title"===o?o="content":re&&(0,l.default)(o,"text_shadow_style")&&""===e.value&&(e.value="none"),(0,c.default)(Y,o)?k|=oe?n({module:{props:$},setting:o,newValue:e.value,unsetSetting:!1,forceRerender:!0}):t({props:$},e.value):(0,h.default)(e.value)?n({module:{props:$},setting:o,newValue:"",unsetSetting:!0}):k|=n({module:{props:$},setting:o,newValue:e.value,unsetSetting:!1,forceRerender:!0,forceUpdate:!0}),K=(0,a.default)(K,P.default.getComponentFieldComputedAffects($.type,o)),i($,o,e.value),"options_group"!==N||(0,m.default)(L,"option.affects")||($=C.default.getComponentAtAddress(q))}}))}return!!k&&{module:{props:C.default.getComponentAtAddress(q)},affected_options:(0,S.default)(K)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(4)),r=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var i={getModuleNameBySlug:function(e){if((0,o.default)(e))return e;var t=e,n=t.includes("et_pb_wc_");return t=(t=t.replace("et_pb_wc_","")).replace(/_/g," "),n?"Woo ".concat(t):t},isInactiveWooModule:function(e){var t="et-fb-removed-component"===(0,r.default)(e,"component_path",""),n=!1!==(0,r.default)(e,"type",!1)&&e.type.includes("et_pb_wc_");return t&&n}};t.default=i},function(e,t,n){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){var o=n(1),r=Math.sqrt(2),a=Math.cos,i=Math.max,l=Math.min;function u(e){return l(e.duration,Date.now()-e.mouseDown)}function s(e){return e.mouseUp>0?Date.now()-e.mouseUp:0}function d(e){var t=e.duration,n=e.radius,r=.85*o(u(e),0,n,t),l=.15*o(s(e),0,n,t),d=.02*n*a(Date.now()/t);return i(0,r+l+d)}e.exports={getMaxRadius:function(e,t,n){return l(.5*i(e,t),n)},getBlotOpacity:function(e,t){return o(s(e),t,-t,e.duration)},getBlotOuterOpacity:function(e,t){return l(this.getBlotOpacity(e,t),o(u(e),0,.3,3*e.duration))},getBlotShiftX:function(e,t,n){return l(1,d(e)/t*2/r)*(n/2-e.x)},getBlotShiftY:function(e,t,n){return l(1,d(e)/t*2/r)*(n/2-e.y)},getBlotScale:function(e){return d(e)/e.radius}}},function(e,t){e.exports=function(e,t,n,o){return n*((e=e/o-1)*e*e*e*e+1)+t}},function(e,t,n){var o=n(0),r=function(e){var t=e.mouseUp,n=e.duration;return!t||Date.now()-t=0;n--)if(!t[n].mouseUp)return t[n].mouseUp=e}};return i}},function(e,t){e.exports={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"}},function(e,t){e.exports=n(0)},function(e,t){e.exports=function(e){return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}},function(e,t){var n=!1;"undefined"!=typeof window&&(n="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),e.exports=n},function(e,t,n){var o=Object.assign||function(e){for(var t=1;t0?o:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(394),r=n(301),a="__core-js_shared__",i=r[a]||(r[a]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(623)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(512),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(515)("keys"),r=n(458);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(456).f,r=n(331),a=n(198)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&o(e,a,{configurable:!0,value:t})}},function(e,t,n){var o=n(86);e.exports=function(e,t){var n;return o(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n(447)),r=c(n(4)),a=c(n(1)),i=c(n(5)),l=c(n(8)),u=c(n(126)),s=n(348),d=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"self",p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";f(this,t),h(this,"$base",void 0),h(this,"$target",void 0),h(this,"active_frames",{}),h(this,"exclude_scripts",/document\.location *=|apex\.live|(crm\.zoho|hotjar|googletagmanager|maps\.googleapis)\.com/i),h(this,"frames",[]),h(this,"_copyResourcesToFrame",(function(t){var r=n.$base("html"),a=r.find("body"),i=a.find("style, link"),l=r.find("head").find("style, link"),u=a.find("_script"),s=n.getFrameWindow(t);(0,o.default)(s,n.base_window);var d=t.contents().find("body");d.parent().addClass("et-core-frame__html"),l.each((function(){d.prev().append(e(this).clone())})),i.each((function(){d.append(e(this).clone())})),u.each((function(){var t=s.document.createElement("script");t.src=e(this).attr("src"),s.document.body.appendChild(t)}))})),h(this,"_createElement",(function(t,o){if(!(0,s.isElementExcluded)(t)){n._filterBaseElementContent(t);var r=o.importNode(t,!0),a=e(r).find("link, script, style");return e(r).find("#et-fb-app-frame, #et-bfb-app-frame, #wpadminbar").remove(),n._filterElementContent(r),a.each((function(t,r){var a=e(r),i=a.parent(),l=n._createResourceElement(r,o);a.remove(),l&&n._appendChildSafely(i[0],l)})),r}})),h(this,"_createFrame",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",r=n.$target("