File: /var/www/html/wordpress/wp-content/plugins/popups-for-divi/scripts/divi5-build.js
(()=>{const{__:e,_x:o,_n:t,_nx:i}=wp.i18n;window.vendor.wp.hooks.addFilter("divi.module.wrapper.render","divi",((e,o)=>{const{name:t,attrs:i,elements:n,state:p}=o;if("divi/section"!==t)return e;const{CommonStyle:s,StyleContainer:a}=window.divi.module,{StyleDeclarations:r}=window.divi.styleLibrary,{isEdited:l}=e.props;e.props.classname;var u,d=i.da_is_popup.innerContent.desktop.value.isPopup||"off",c=i.da_popup_slug.innerContent.desktop.value||"",v=i.da_exit_intent.innerContent.desktop.value||"off",h=i.da_has_close.innerContent.desktop.value.showCloseButton||"on",m=i.da_alt_close.innerContent.desktop.value.altClose||"off",g=i.da_dark_close.innerContent.desktop.value.darkClose||"off",_=i.da_not_modal.innerContent.desktop.value.notModal||"on",y=i.da_is_singular.innerContent.desktop.value||"off",b=i.da_with_loader.innerContent.desktop.value||"off",k=i.da_has_shadow.innerContent.desktop.value.hasShadow||"on",C=(i.module_class||"").split(" "),f=["popup","on-exit","no-close","close-alt","dark","is-modal","single","with-loader","no-shadow","not-mobile","not-tablet","not-desktop"];return C=C.filter((function(e){return-1===f.indexOf(e)})),"on"===d&&C.push("popup"),"on"===v&&C.push("on-exit"),"on"!==h?C.push("no-close"):("on"===m&&C.push("close-alt"),"on"===g&&C.push("dark")),"on"!==_&&C.push("is-modal"),"on"===y&&C.push("single"),"on"===b&&C.push("with-loader"),"on"!==k&&C.push("no-shadow"),e.props.classname=e.props.classname.concat(C.join(" ")),e.props.htmlAttrs.id=c?("string"!=typeof(u=c)&&(u=""),(u=(u=(u=u.replace(/#/g,"")).replace(/[^a-zA-Z0-9\-_]/g,"-")).replace(/\-+/g,"-")).replace(/^\-+|\-+$/g,"")):"",window.vendor.wp.element.cloneElement(e,{},e.props.children)})),window.vendor.wp.hooks.addFilter("divi.moduleLibrary.moduleSettings.groups.divi.section","divi",((o,t)=>(o.popupsForDivi={groupName:"popupsForDivi",panel:"advanced",priority:1,multiElements:!0,component:{name:"divi/composite",props:{groupLabel:e("Popup","divi-popup")}}},o.da_behavior={groupName:"da_behavior",panel:"popup",priority:1,multiElements:!0,component:{name:"divi/composite",props:{groupLabel:e("Behavior","divi-popup")}}},o.da_close={groupName:"da_close",panel:"popup",priority:1,multiElements:!0,component:{name:"divi/composite",props:{groupLabel:e("Close Button","divi-popup")}}},o.da_layout={groupName:"da_layout",panel:"popup",priority:1,multiElements:!0,component:{name:"divi/composite",props:{groupLabel:e("Layout","divi-popup")}}},o.da_visibility={groupName:"da_visibility",panel:"popup",priority:1,multiElements:!0,component:{name:"divi/composite",props:{groupLabel:e("Visibility","divi-popup")}}},o))),window.vendor.wp.hooks.addFilter("divi.moduleLibrary.moduleAttributes.divi.section","divi",((o,t)=>{o.da_is_popup={type:"object",selector:"{{selector}} .popup",default:{innerContent:{desktop:{value:{isPopup:"off"}}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_is_popup.innerContent",subName:"isPopup",label:e("This is a Popup","divi-popup"),description:e("Turn this section into an On-Page Popup. Note, that this Popup is available on this page only. To create a global Popup, place an On-Page Popup into the theme Footer (or Header) using Divis Theme Builder.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"}}}},attributes:{class:"popup"},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o.da_popup_slug={type:"object",default:{innerContent:{desktop:{value:""}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_popup_slug.innerContent",label:e("Popup ID","divi-popup"),description:e('Assign a unique ID to the Popup. You can display this Popup by using this name in an anchor link, like "#slug". The Popup ID is case-sensitive and we recommend to always use a lower-case ID.',"divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{sticky:!1,responsive:!1,dynamicContent:{type:"text"},preset:"content"},component:{name:"divi/text",type:"field"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},childrenSanitizer:"et_core_esc_previously",inlineEditor:"plainText",tagName:"span"},o.da_not_modal={type:"object",selector:"{{selector}} .popup.is-modal",default:{innerContent:{desktop:{value:{notModal:"on"}}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_not_modal.innerContent",subName:"notModal",label:e("Close on Background-Click","divi-popup"),description:e("Here you can decide whether the Popup can be closed by clicking somewhere outside the Popup. When this option is disabled, the Popup can only be closed via a Close Button or pressing the ESC key on the keyboard.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"is-modal"},childrenSanitizer:"et_core_esc_previously",inlineEditor:"plainText",tagName:"span"},o.da_is_singular={type:"object",selector:"{{selector}} .popup.single",default:{innerContent:{desktop:{value:"off"}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_is_singular.innerContent",label:e("Close other Popups","divi-popup"),description:e("Here you can decide whether this Popup should automatically close all other Popups when it is opened.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"single"},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o.da_exit_intent={type:"object",selector:"{{selector}} .popup.on-exit",default:{innerContent:{desktop:{value:"off"}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_exit_intent.innerContent",label:e("Enable Exit Intent","divi-popup"),description:e("When you enable the Exit Intent trigger, this Popup is automatically opened before the user leaves the current webpage. Note that the Exit Intent only works on desktop browsers, not on touch devices.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"on-exit"},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o.da_has_close={type:"object",selector:"{{selector}} .popup.no-close",default:{innerContent:{desktop:{value:{showCloseButton:"on"}}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_has_close.innerContent",subName:"showCloseButton",label:e("Show Close Button","divi-popup"),description:e("Do you want to display the default Close button in the top-right corner of the Popup","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"no-close"},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o.da_dark_close={type:"object",selector:"{{selector}} .popup.dark",default:{innerContent:{desktop:{value:{darkClose:"off"}}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_dark_close.innerContent",subName:"darkClose",label:e("Close Button Color","divi-popup"),description:e("Here you can choose whether the Close button should be dark or light?. If the section has a light background, use a dark button. When the background is dark, use a light button.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/select",props:{options:{on:{label:"Light"},off:{label:"Dark"}}}},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"dark"},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o.da_alt_close={type:"object",selector:"{{selector}} .popup.close-alt",default:{innerContent:{desktop:{value:{altClose:"off"}}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_alt_close.innerContent",subName:"altClose",label:e("Transparent Background","divi-popup"),description:e("Here you can choose whether the Close button has a Background color or only displays the Icon.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"close-alt"},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o.da_has_shadow={type:"object",selector:"{{selector}} .popup.no-shadow",default:{innerContent:{desktop:{value:{hasShadow:"on"}}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_has_shadow.innerContent",subName:"hasShadow",label:e("Add a default Shadow","divi-popup"),description:e("Decide whether you want to add a default shadow to your Popup. You should disable this option, when you set a custom Box-Shadow for this Section.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"no-shadow"},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o.da_with_loader={type:"object",selector:"{{selector}} .popup.with-loader",default:{innerContent:{desktop:{value:"off"}}},settings:{innerContent:{groupType:"group-item",item:{attrName:"da_with_loader.innerContent",label:e("Show Loader","divi-popup"),description:e("Decide whether to display a loading animation inside the Popup. This should be turned on, when the Popup contains an iframe or other content that is loaded dynamically.","divi-popup"),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:"content"},component:{type:"field",name:"divi/toggle"},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},attributes:{class:"with-loader"},childrenSanitizer:"et_core_esc_previously",tagName:"span"};let i=[{id:"phone",label:e("Phone","divi-popup"),value:"Phone"},{id:"tablet",label:e("Tablet","divi-popup"),value:"Tablet"},{id:"desktop",label:e("Desktop","divi-popup"),value:"Desktop"}];return o.da_disable_devices={type:"object",settings:{innerContent:{groupType:"group-item",item:{attrName:"da_disable_devices.innerContent",subName:"disabledOn",label:e("Disable on","divi-popup"),description:e("This will disable the Popup on selected devices.","divi-popup"),getValue:({attrValue:e})=>(e=e?.desktop?.value?.disabledOn,"string"==typeof e&&-1!==e.indexOf("|")&&(d4Values=e.split("|"),(e=[])[0]="on"===d4Values[0]?"Phone":"",e[1]="on"===d4Values[1]?"Tablet":"",e[2]="on"===d4Values[2]?"Desktop":""),e),groupSlug:"popupsForDivi",priority:40,render:!0,features:{hover:!1,sticky:!1,responsive:!1,preset:["style","html"]},component:{type:"field",name:"divi/checkboxes",props:{options:i}},visible:({attrs:e})=>"on"===e?.da_is_popup?.innerContent?.desktop?.value?.isPopup}}},childrenSanitizer:"et_core_esc_previously",tagName:"span"},o}))})();