D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
softaculous
/
sitepad
/
editor
/
site-data
/
plugins
/
pagelayer
/
js
/
blocks
/
Filename :
index.js
back
Copy
!function(){var e={250:function(){window.pagelayerBlockNameByTag=e=>"pagelayer/"+e.replaceAll("_","-"),window.pagelayerLength=e=>{var a,t,l,r=0,n=[void 0,null,!1];for(t=0,l=n.length;t<l;t++)if(e===n[t])return r;if("object"==typeof e){if(e.hasOwnProperty("length"))return e.length;for(a in e)r++;return r}return String(e).length},window.pagelayer_video_url=(e,a)=>{a=a||!1;var t=/vimeo\.com/,l="",r="",n={};switch(/youtube\.com|youtu\.be/.exec(e)?l="youtube":t.exec(e)&&(l="vimeo"),l){case"youtube":var s=/watch/;/youtube\.com/.exec(e)?s.exec(e)?r=e.split("?v="):s.exec(e)&&(r=e.split("embed/")):/youtu\.be/.exec(e)&&(r=e.split(".be/")),n={type:"youtube",src:"https://www.youtube.com/embed/"+r[1],id:r[1]},pagelayer_yt_api_register();break;case"vimeo":/player\.vimeo\.com/.exec(e)&&/video/.exec(e)?r=e.split("video/"):t.exec(e)&&(r=e.split(".com/")),n={type:"vimeo",src:"https://player.vimeo.com/video/"+r[1],id:r[1]};break;default:n={type:"local",src:e}}return a?n:n.src},window.pagelayer_yt_api_register=()=>{jQuery("#pagelayer-youtube-script-js").length>0||jQuery("body").append('<script src="https://www.youtube.com/iframe_api" id="pagelayer-youtube-script-js"><\/script>')},window.pagelayer_owl_destroy=(e,a)=>{if(!(e.length<1)){var t=e.find(a),l=e.attr("pagelayer-setup");l&&l.length>0&&t.children(".pagelayer-owl-stage-outer").length>0&&(t.pagelayerOwlCarousel("destroy"),t.find('[class^="pagelayer-owl-"]').remove(),e.removeAttr("pagelayer-setup"))}},window.pagelayerParseTypo=(e,a,t,l)=>{if(a=a||!1,l=l||"desktop",t=t||"",pagelayer_empty(e)&&(e={}),pagelayer_is_string(e)&&"$"!=e.substr(0,1))return e.split(",");var r=["","","","","","","","","","",""],n=["font-family","font-size","font-style","font-weight","font-variant","text-decoration-line","text-decoration-style","line-height","text-transform","letter-spacing","word-spacing"],s=pagelayerIsGlobalTypo(e),o=!1;for(var i in pagelayer_empty(s)&&(s=t,o=!0),n){var p=n[i];if("object"!=typeof e||pagelayer_empty(e[i])||(r[i]=e[i]),pagelayer_empty(e[p])||(r[i]=e[p]),!pagelayer_empty(s)&&pagelayer_empty(r[i])&&!a){var c=pagelayer_global_fonts[s].value;!(p in c)||pagelayer_empty(c[p])||"object"==typeof c[p]&&pagelayer_empty(c[p][l])||"object"!=typeof c[p]&&!pagelayer_empty(o)&&"desktop"!=l||(r[i]="var(--pagelayer-font-"+s+"-"+p+")")}}return r},window.pagelayerIsGlobalTypo=e=>{var a="";return pagelayer_is_string(e)&&"$"==e.substr(0,1)&&(a=e.substr(1)),"object"==typeof e&&"global-font"in e&&(a=e["global-font"]),pagelayer_empty(a)||a in pagelayer_global_fonts||(a="primary"),a},window.pagelayerUcwords=e=>(e+"").replace(/^([a-z])|\s+([a-z])/g,(function(e){return e.toUpperCase()})),window.pagelayer_htmlEntities=e=>String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),window.pagelayer_isElementInView=(e,a,t)=>{t=t||!0;var l=jQuery(a),r=l.height(),n=(l.scrollTop(),jQuery(e).offset().top-l.offset().top),s=n+jQuery(e).height(),o=n>=0&&s<=r,i=(n<0&&s>0||n>0&&n<=l.height())&&t;return o||i},window.pagelayerIsGlobalColor=e=>{var a="$"==e.substr(0,1)?e.substr(1):"";return!pagelayer_empty(a)&&(a in pagelayer_global_colors||(a="primary"),a)},window.pagelayerParseColor=(e,a=!0)=>{var t=pagelayerIsGlobalColor(e);return pagelayer_empty(t)?e:pagelayer_empty(a)?pagelayer_global_colors[t].value:"var(--pagelayer-color-"+t+")"},window.pagelayerTrim=(e,a)=>{if("string"!=typeof e)return e;var t=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","","\u2028","\u2029"," "].join(""),l=0,r=0;for(e+="",a&&(t=(a+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),l=e.length,r=0;r<l;r++)if(-1===t.indexOf(e.charAt(r))){e=e.substring(r);break}for(r=(l=e.length)-1;r>=0;r--)if(-1===t.indexOf(e.charAt(r))){e=e.substring(0,r+1);break}return-1===t.indexOf(e.charAt(0))?e:""},window.pagelayer_compare_object=(e,a)=>{var t=!0;for(var l in e)if(e[l]!==a[l]){t=!1;break}for(var l in a)if(e[l]!==a[l]){t=!1;break}return t}}},a={};function t(l){var r=a[l];if(void 0!==r)return r.exports;var n=a[l]={exports:{}};return e[l](n,n.exports,t),n.exports}t.d=function(e,a){for(var l in a)t.o(a,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:a[l]})},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};t.r(e),t.d(e,{pagelayer_bg_video:function(){return M},pagelayer_get_img_src:function(){return Y},pagelayer_render_end_pl_accordion:function(){return R},pagelayer_render_end_pl_anim_heading:function(){return Z},pagelayer_render_end_pl_audio:function(){return Ce},pagelayer_render_end_pl_before_after:function(){return Se},pagelayer_render_end_pl_chart:function(){return Re},pagelayer_render_end_pl_col:function(){return L},pagelayer_render_end_pl_collapse:function(){return V},pagelayer_render_end_pl_contact:function(){return pe},pagelayer_render_end_pl_counter:function(){return J},pagelayer_render_end_pl_fb_comments:function(){return Ge},pagelayer_render_end_pl_grid_gallery:function(){return Ae},pagelayer_render_end_pl_image:function(){return K},pagelayer_render_end_pl_image_hotspot:function(){return Be},pagelayer_render_end_pl_img_portfolio:function(){return ze},pagelayer_render_end_pl_post_comment:function(){return ge},pagelayer_render_end_pl_review:function(){return Le},pagelayer_render_end_pl_row:function(){return B},pagelayer_render_end_pl_search:function(){return Pe},pagelayer_render_end_pl_share:function(){return se},pagelayer_render_end_pl_single_img:function(){return Fe},pagelayer_render_end_pl_social:function(){return ae},pagelayer_render_end_pl_social_grp:function(){return te},pagelayer_render_end_pl_splash:function(){return qe},pagelayer_render_end_pl_stars:function(){return G},pagelayer_render_html_pl_post_excerpt:function(){return de},pagelayer_render_pl_anim_heading:function(){return W},pagelayer_render_pl_archive_posts:function(){return me},pagelayer_render_pl_audio:function(){return xe},pagelayer_render_pl_author_box:function(){return Qe},pagelayer_render_pl_before_after:function(){return je},pagelayer_render_pl_call:function(){return De},pagelayer_render_pl_chart:function(){return Me},pagelayer_render_pl_chart_datasets:function(){return Ve},pagelayer_render_pl_col:function(){return F},pagelayer_render_pl_contact:function(){return ie},pagelayer_render_pl_contact_item:function(){return ce},pagelayer_render_pl_countdown:function(){return re},pagelayer_render_pl_fb_comments:function(){return Ue},pagelayer_render_pl_fb_embed:function(){return ke},pagelayer_render_pl_fb_page:function(){return Ne},pagelayer_render_pl_featured_img:function(){return fe},pagelayer_render_pl_flipbox:function(){return he},pagelayer_render_pl_google_maps:function(){return D},pagelayer_render_pl_grid_gallery:function(){return Te},pagelayer_render_pl_image:function(){return X},pagelayer_render_pl_image_hotspot:function(){return Ie},pagelayer_render_pl_inner_row:function(){return H},pagelayer_render_pl_post_content:function(){return ye},pagelayer_render_pl_post_excerpt:function(){return _e},pagelayer_render_pl_post_info_list:function(){return we},pagelayer_render_pl_post_nav:function(){return be},pagelayer_render_pl_post_title:function(){return ue},pagelayer_render_pl_progress:function(){return U},pagelayer_render_pl_row:function(){return I},pagelayer_render_pl_search:function(){return Oe},pagelayer_render_pl_service:function(){return oe},pagelayer_render_pl_share:function(){return ne},pagelayer_render_pl_single_img:function(){return He},pagelayer_render_pl_testimonial:function(){return le},pagelayer_render_pl_wp_title:function(){return ve},pagelayer_social:function(){return ee}}),t(250);var a=window.wp.element,l=window.wp.data;const r=e=>{const{deviceType:t}=e,[r,n]=(0,a.useState)(t||"desktop"),[s,o]=(0,a.useState)(!1),i={desktop:"Desktop",tablet:"Tablet",mobile:"Mobile"};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-elp-screen"},Object.keys(i).map((e=>(0,a.createElement)("i",{key:e,className:`pli pli-${e} ${s?"open":""}`,onClick:()=>(e=>{if(null!==(0,l.dispatch)("core/edit-post")){const{__experimentalSetPreviewDeviceType:a}=(0,l.dispatch)("core/edit-post");a(i[e])}n(e),o(!s)})(e)}))),(0,a.createElement)("i",{className:`pagelayer-prop-screen pli pli-${r}`,onClick:()=>o(!s)})))},n=e=>{const{label:t,prop:l}=e;var n=l?.screen,s=l?.units,o=0,i=l.c.val;if(s&&!pagelayer_empty(i))for(var p in l.units)(pagelayer_is_string(i)&&-1!=i.search(l.units[p])||"object"==typeof i&&-1!=i[0].search(l.units[p]))&&(o=p);const[c,m]=(0,a.useState)(o);return(0,a.createElement)("div",{className:"pagelayer-elp-label-div"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},t),n&&(0,a.createElement)(r,{...e}),s&&(0,a.createElement)("div",{className:"pagelayer-elp-units"},l.units.map(((e,t)=>(0,a.createElement)("span",{key:t,onClick:()=>(e=>{m(e)})(t),className:t==c?"selected":""},e)))))};var s=window.wp.i18n,o=window.wp.components;const i=e=>{const{name:t,value:l,onChange:r,setAttributes:n,type:i,handleClick:p,showRemoveIcon:c=!0}=e,[m,g]=(0,a.useState)(!1),u=(0,a.useRef)(null),y=(0,a.useRef)(null),d=(0,a.useRef)(null),_=(0,a.useRef)(null);let f=l;var v=pagelayerIsGlobalColor(f),h="";pagelayer_empty(v)||(f=pagelayer_global_colors[v].value,h="pagelayer-active-global"),(0,a.useEffect)((()=>{const e=e=>{y.current&&d.current&&!y.current.contains(e.target)&&!d.current.contains(e.target)&&g(!1),_.current&&!_.current.contains(e.target)&&jQuery(u.current).find(".pagelayer-global-color-list").slideUp()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),(0,a.useEffect)((()=>{let e=jQuery(u.current).find(".pagelayer-global-color-list");jQuery(u.current).find(".pagelayer-elp-color-global").on("click",(function(a){a.stopPropagation(),e.slideToggle(),g(!1)})),jQuery(u.current).find(".pagelayer-global-color-list-item").on("click",(function(a){e.slideUp()}))}),[]);var b="pagelayer-blank-preview",E={};return pagelayer_empty(l)||(b="",E={backgroundColor:v?f:l}),(0,a.createElement)("div",{className:"pagelayer-elp-color-div-holder",ref:u},(0,a.createElement)("div",{className:`pagelayer-elp-color-global ${h}`}),(0,a.createElement)("div",{className:"pagelayer-elp-color-div",ref:y},(0,a.createElement)("div",{className:`pagelayer-elp-color-preview ${b}`,onClick:()=>g(!m),style:E}),c&&(0,a.createElement)("span",{className:"pagelayer-elp-remove-color",onClick:()=>{n({[t]:""}),g(!1)}},(0,a.createElement)("i",{className:"pli pli-cross"})),m&&(0,a.createElement)(o.Popover,{ref:d},(0,a.createElement)(o.ColorPicker,{color:l||"",onChangeComplete:e=>{e.rgb&&r(1!=e.rgb.a?"rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":e.hex)},disableAlpha:!1}))),(0,a.createElement)("div",{className:"pagelayer-global-color-list",ref:_},(0,a.createElement)("div",{className:"pagelayer-global-setting-color"},(0,a.createElement)("b",null,(0,s.__)("Global Colors")),(0,a.createElement)("span",{className:"pli pli-service",onClick:e=>{e.stopPropagation(),window.open(pagelayer_customizer_url+"&autofocus%5Bsection%5D=pagelayer_global_colors_sec","_blank")}})),Object.keys(pagelayer_global_colors).map((e=>{const t=pagelayer_global_colors[e],l=e===v?"pagelayer-global-selected":"";return(0,a.createElement)("div",{key:e,className:`pagelayer-global-color-list-item ${l}`,"data-global-id":e,onClick:()=>p(e)},(0,a.createElement)("span",{className:"pagelayer-global-color-pre",style:{background:t.value}}),(0,a.createElement)("span",{className:"pagelayer-global-color-title"},t.title),(0,a.createElement)("span",{className:"pagelayer-global-color-code"},t.value))}))))},{pagelayer_fonts:p}=pagelayer_config,c=e=>{var a=e.val();if(a&&"Default"!=a)switch(a=a.replace(" ","+"),e.find("option:selected").attr("type")){case"google":if(0==pagelayer_query("#pagelayer-google-fonts").length){if(""==a)return;pagelayer_query("head").append('<link id="pagelayer-google-fonts" href="https://fonts.googleapis.com/css?family='+a+':100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">')}else{var t=pagelayer_query("#pagelayer-google-fonts").attr("href");-1==t.indexOf(a)&&(t=t+"|"+a+":100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i",pagelayer_query("#pagelayer-google-fonts").attr("href",t))}break;case"custom":if(!pagelayer_empty(pagelayer_query("style[id="+a+"_plf]").length))break;jQuery.ajax({url:pagelayer_ajax_url+"&action=pagelayer_custom_font",type:"POST",dataType:"json",data:{pagelayer_nonce:pagelayer_ajax_nonce,font_name:a},success:function(e){"style"in e&&pagelayer_query("body").append(e.style)}})}},m=e=>{const{prop:t,label:l,value:r,setAttributes:s,attributes:o}=e,{name:i}=t.c;return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control pagelayer-flex"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-select-div pagelayer-elp-pos-rel"},(0,a.createElement)("select",{className:"pagelayer-elp-select pagelayer-select",name:i,onChange:e=>{var a=e.target.value;if(s({[i]:a}),"animation"==i){var t=jQuery(`.p-${o["pagelayer-id"]}`),l=jQuery(e.target);g(t,l,a)}}},Object.keys(t.list).map(((e,l)=>"string"==typeof t.list[e]?(0,a.createElement)("option",{key:l,value:e,selected:e==r?"selected":""},t.list[e]):(0,a.createElement)("optgroup",{key:l,label:e},Object.keys(t.list[e]).map(((l,n)=>(0,a.createElement)("option",{key:n,value:l,selected:l==r?"selected":""},t.list[e][l])))))))))},g=(e,a,t)=>{var l=e.attr("class");l=l.split(/\s+/),jQuery(a).find("option").each((function(){-1!=jQuery.inArray(jQuery(this).val(),l)&&e.removeClass(jQuery(this).val())})),e.css("animation-name",""),e.removeClass("pagelayer-wow").addClass(t+" animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function(){jQuery(this).removeClass(t+" animated")}))};var u=window.wp.blockEditor;const y=pagelayer_url+"/images/default-image.png";var d=window.wp.primitives,_=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),f=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})),v=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})),h=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})),b=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})),E=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"}));const w=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})),k=[1,2,3,4,5,6];function N({options:e=k,value:t,onChange:l}){return(0,a.createElement)(o.DropdownMenu,{icon:(0,a.createElement)(C,{level:t}),controls:e.map((e=>((e,t,l)=>{const r=e===t;return{icon:(0,a.createElement)(C,{level:e,isPressed:r}), // translators: %s: heading level e.g: "1", "2", "3" isActive:r,onClick:()=>l(e)}})(e,t,l))),label:(0,s.__)("Change level")})}const x={0:_,1:f,2:v,3:h,4:b,5:E,6:w};function C({level:e}){return x[e]?(0,a.createElement)(o.Icon,{icon:x[e]}):null}var j={};function S(e,a){const t="pagelayer_"+e;let l={},r=!1;try{l=JSON.parse(localStorage.getItem(t)),l.version!==a&&(r=!0)}catch(e){r=!0}return r&&jQuery.ajax({url:e,type:"GET",dataType:"text",success:function(e){l={version:a,val:e},localStorage.setItem(t,JSON.stringify(l))}}),l.val}wp.domReady((function(){pagelayer_loaded_icons.forEach((e=>{jQuery.when(S(pagelayer_url+"/fonts/"+e+".json",pagelayer_ver)).then((()=>{j[e]=JSON.parse(S(pagelayer_url+"/fonts/"+e+".json",pagelayer_ver))}))}))}));const{internal_linking_nonce:T}=pagelayer_config,$=e=>{const{attributes:t,prop:l,value:r,setAttributes:s}=e,{name:o}=l.c,i=t?.tmpAtts?t.tmpAtts:{},p=pagelayer_empty(i[o+"-url"])?r:i[o+"-url"];var c="Media",m=[],g=l?.type;"video"==g?(m=["video"],c="Video"):"audio"==g&&(m=["audio"],c="Audio");return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)(u.MediaUpload,{title:`Select or Upload ${c}`,onSelect:e=>{const{id:a,url:t}=e,l={...i,[o+"-url"]:t};s({[o]:a,tmpAtts:l})},allowedTypes:m,value:r,render:({open:e})=>(e=>(0,a.createElement)("div",{className:"pagelayer-elp-media-div pagelayer-elp-input-icon"},(0,a.createElement)("input",{className:"pagelayer-elp-media",name:o,type:"text",value:p,placeholder:`Insert ${c} URL`,onChange:e=>(e=>{const a=e.target.value,t={...i,[o+"-url"]:a};s({[o]:a,tmpAtts:t})})(e)}),(0,a.createElement)("span",{className:"pagelayer-elp-add-media",onClick:()=>{e()},title:"Open Media Library"},(0,a.createElement)("i",{className:"pli pli-menu"}))))(e)}))},{pagelayer_fonts:A}=pagelayer_config,Q=e=>{const{pl_props:t,attributes:l}=e;if(e.innerBlocks&&e.innerBlocks.length>0)return(0,a.createElement)(u.InnerBlocks.Content,null);if(t&&t.innerHTML){var r=t.innerHTML;if(!pagelayer_empty(l[r]))return(0,a.createElement)(u.RichText.Content,{value:l[r]})}return null},q={},O={};var P=".interface-interface-skeleton__content";function I(e){var a=pagelayer_empty(e.tmp["bg_slider-urls"])?[]:"object"==typeof e.tmp["bg_slider-urls"]?e.tmp["bg_slider-urls"]:JSON.parse(e.tmp["bg_slider-urls"]);if(e.atts.slider="",!pagelayer_empty(a))for(var t in a)e.atts.slider+='<div class="pagelayer-bgimg-slide" style="background-image:url('+a[t]+')"></div>';pagelayer_empty(e.atts.parallax_img)||(e.atts.parallax_img_src=e.tmp["parallax_img-"+e.atts.parallax_id_size+"-url"]||e.tmp["parallax_img-url"],e.atts.parallax_img_src=e.atts.parallax_img_src||e.atts.parallax_img),M(e)}function B(e){var a=e.$.parent();e.$.hasClass("pagelayer-row-stretch-full")?(pagelayer_pl_row_full(e.$,jQuery(P)),function(e){var a=jQuery(P).width();e.css({width:a,"max-width":"100vw"}),e.offset({left:0}),e.children(".pagelayer-row").css({left:0})}(a),e.$.addClass("pagelayer-row-stretch-had-full")):e.$.hasClass("pagelayer-row-stretch-had-full")&&(e.$.removeAttr("style"),a.removeAttr("style"),e.$.removeClass("pagelayer-row-stretch-had-full")),e.$.children(".pagelayer-background-video").removeAttr("pagelayer-setup"),pagelayer_pl_row_video(e.$),e.$.find(".pagelayer-parallax-window img").each((function(){pagelayer_pl_row_parallax(jQuery(this))})),e.$.find(".pagelayer-bgimg-slider").each((function(){pagelayer_pl_row_slider(jQuery(this))})),"row_shape_type_top"in e.atts&&z(e,"top"),"row_shape_type_bottom"in e.atts&&z(e,"bottom")}function z(e,a){var t=e.atts["row_shape_type_"+a]+"-"+a+".svg";if(t in O)e.$.find(".pagelayer-svg-"+a).html(O[t]);else{var l=pagelayer_url+"/images/shapes/"+t;jQuery.get(l,(function(l){e.$.find(".pagelayer-svg-"+a).html(l),O[t]=l}),"html")}}function H(e){I(e)}function F(e){var a=pagelayer_empty(e.tmp["bg_slider-urls"])?[]:"object"==typeof e.tmp["bg_slider-urls"]?e.tmp["bg_slider-urls"]:JSON.parse(e.tmp["bg_slider-urls"]);if(e.atts.slider="",!pagelayer_empty(a))for(var t in a)e.atts.slider+='<div class="pagelayer-bgimg-slide" style="background-image:url('+a[t]+')"></div>';pagelayer_empty(e.atts.parallax_img)||(e.atts.parallax_img_src=e.tmp["parallax_img-"+e.atts.parallax_id_size+"-url"]||e.tmp["parallax_img-url"],e.atts.parallax_img_src=e.atts.parallax_img_src||e.atts.parallax_img),M(e)}function L(e){var a=e.$.parent();if(a.hasClass("pagelayer-col")||a.addClass("pagelayer-col"),!pagelayer_empty(e.atts.col)){for(var t=1;t<=12;t++)if(a.hasClass("pagelayer-col-"+t)){a.removeClass("pagelayer-col-"+t);break}a.addClass("pagelayer-col-"+e.atts.col),a.css("width","")}e.atts.col_width&&a.css("width",""),e.$.children(".pagelayer-background-video").removeAttr("pagelayer-setup"),pagelayer_pl_row_video(e.$),e.$.find(".pagelayer-parallax-window img").each((function(){pagelayer_pl_row_parallax(jQuery(this))})),e.$.find(".pagelayer-bgimg-slider").each((function(){pagelayer_pl_row_slider(jQuery(this))}))}function M(e){e.tmp["bg_video_src-url"]=e.tmp["bg_video_src-url"]||e.atts.bg_video_src;var a=e.tmp["bg_video_src-url"];if(!pagelayer_empty(a)){var t=pagelayer_video_url(a,!0);if(t.src+=-1==t.src.indexOf("?")?"?":"","true"==e.atts.mute?(t.src+="&mute=1",e.atts.mute=" muted "):(t.src+="&mute=0",e.atts.mute=""),"true"!=e.atts.stop_loop?(t.src+="&loop=1",e.atts.stop_loop=" loop "):(t.src+="&loop=0",e.atts.stop_loop=""),"youtube"==t.type){var l='data-loop="'+(pagelayer_empty(e.atts.stop_loop)?0:1)+'" data-mute="'+(pagelayer_empty(e.atts.mute)?0:1)+'" data-videoid="'+t.id.split("&")[0]+'"';e.atts.vid_src='<div class = "pagelayer-youtube-video" '+l+"></div>"}else"vimeo"==t.type?e.atts.vid_src='<iframe src="'+t.src+'&background=1&autoplay=1&byline=0&title=0" allowfullscreen="1" webkitallowfullscreen="1" mozallowfullscreen="1" frameborder="0"></iframe>':e.atts.vid_src="<video autoplay playsinline "+e.atts.mute+e.atts.stop_loop+'><source src="'+t.src+'" type="video/mp4"></video>'}}function R(e){pagelayer_pl_accordion(e.$)}function V(e){pagelayer_pl_collapse(e.$)}function D(e){if(e.atts.show_v2=!0,pagelayer_empty(e.atts.api_version))return void(e.atts.src_code="");const{pagelayer_gmaps_key:a}=pagelayer_config;e.atts.show_v2=!1;var t=pagelayer_empty(a)?"":a,l=pagelayer_empty(e.atts.api_key)?t:e.atts.api_key;"view"==e.atts.map_modes&&(e.atts.center=pagelayer_empty(e.atts.center)?"-33.8569,151.2152":e.atts.center);var r=(pagelayer_empty(e.atts.center)?"":"¢er="+e.atts.center)+("streetview"==e.atts.map_modes?"":"&maptype="+e.atts.map_type+"&zoom="+e.atts.zoom);switch(e.atts.map_modes){case"place":r+=encodeURI("&q="+(pagelayer_empty(e.atts.address)?"New York, New York, USA":e.atts.address));break;case"directions":r+=encodeURI("&origin="+(pagelayer_empty(e.atts.direction_origin)?"Oslow Norway":e.atts.direction_origin)),r+=encodeURI("&destination="+(pagelayer_empty(e.atts.direction_destination)?"Telemark Norway":e.atts.direction_destination)),r+=pagelayer_empty(e.atts.direction_waypoints)?"":"&waypoints="+e.atts.direction_waypoints.trim().split(" ").join("|"),r+=pagelayer_empty(e.atts.direction_modes)?"":"&mode="+e.atts.direction_modes,r+=pagelayer_empty(e.atts.direction_avoid)?"":"&avoid="+e.atts.direction_avoid.split(",").join("|"),r+=pagelayer_empty(e.atts.direction_units)?"":"&units="+e.atts.direction_units;break;case"streetview":r+="&pano="+(pagelayer_empty(e.atts.streetview_pano)?"eTnPNGoy4bxR9LpjjfFuOw":e.atts.streetview_pano),r+="&location="+(pagelayer_empty(e.atts.streetview_location)?"46.414382,10.013988":e.atts.streetview_location),r+=pagelayer_empty(e.atts.streetview_heading)?"":"&heading="+e.atts.streetview_heading,r+=pagelayer_empty(e.atts.streetview_pitch)?"":"&pitch="+e.atts.streetview_pitch,r+=pagelayer_empty(e.atts.streetview_fov)?"":"&fov="+e.atts.streetview_fov;break;case"search":r+=encodeURI("&q="+(pagelayer_empty(e.atts.search_term)?"Record stores in Seattle":e.atts.search_term))}var n="https://www.google.com/maps/embed/v1/"+e.atts.map_modes+"?key="+l+r;e.atts.src_code='<iframe width="600" height="450" style="border:0" loading="lazy" allowfullscreen src="'+n+'"></iframe>'}function U(e){const{attributes:t}=e.props;(0,a.useEffect)((()=>{clearTimeout(q[e.id]),q[e.id]=setTimeout((()=>{e.$.find(".pagelayer-progress-container").removeAttr("pagelayer-setup"),pagelayer_progress()}),500)}),[t]);var l=pagelayerGetCurrentWindow();jQuery(l).unbind("scroll.progressbar",pagelayer_progress),jQuery(l).on("scroll.progressbar",pagelayer_progress)}function G(e){var a=e.$.find(".pagelayer-stars-container");a.removeAttr("pagelayer-setup"),pagelayer_stars(a)}function J(e){e.$.find(".pagelayer-counter-content").removeAttr("pagelayer-setup"),pagelayer_counter();var a=pagelayerGetCurrentWindow();jQuery(a).unbind("scroll.plcounter",pagelayer_counter),jQuery(a).on("scroll.plcounter",pagelayer_counter)}function W(e){var a;(e.atts.rotate_html="",pagelayer_empty(e.atts.rotate_text))||(a=e.atts.rotate_text.split(","),e.atts.rotate_html+='<div class="pagelayer-animated-heading pagelayer-rotating-text pagelayer-words-wrapper">',jQuery.each(a,(function(t){e.atts.rotate_html+="<span",0==t&&(e.atts.rotate_html+=' class="pagelayer-is-visible"'),e.atts.rotate_html+=">"+a[t]+"</span>"})),e.atts.rotate_html+="</div>");e.atts.rotate_req="",-1!=jQuery.inArray(e.atts.animations,["pagelayer-aheading-rotate2","pagelayer-aheading-rotate3","type","pagelayer-aheading-scale"])&&(e.atts.rotate_req="letters "),"pagelayer-aheading-clip"==e.atts.animations&&(e.atts.rotate_req="is-full-width ")}function Z(e){pagelayer_anim_heading(e.$)}function Y(e,a){if(!pagelayer_empty(e.tmp[a.name+"-retina-url"])&&0==e.tmp[a.name+"-retina-url"].includes("default-image")){var t=e.tmp[a.name+"-retina-"+e.atts[a.size]+"-url"];t=pagelayer_empty(t)?e.tmp[a.name+"-retina-url"]:t,e.atts["pagelayer-srcset"]+=t+" 2x, "}if(!pagelayer_empty(e.tmp[a.name+"-retina-mobile-url"])&&0==e.tmp[a.name+"-retina-mobile-url"].includes("default-image")){var l=e.tmp[a.name+"-retina-mobile-"+e.atts[a.size]+"-url"];l=pagelayer_empty(l)?e.tmp[a.name+"-retina-mobile-url"]:l,e.atts["pagelayer-srcset"]+=l+" 3x"}}function X(e){e.atts.func_id=e.tmp["id-"+e.atts["id-size"]+"-url"]||e.tmp["id-url"],e.atts.func_id=e.atts.func_id||e.atts.id,e.atts["pagelayer-srcset"]=e.atts.func_id+", "+e.atts.func_id+" 1x, ",Y(e,{name:"id",size:"id-size"}),"link_type"in e.atts&&("custom_url"==e.atts.link_type&&(e.atts.func_link=e.tmp.link||""),"media_file"==e.atts.link_type&&(e.atts.func_link=e.tmp["id-url"]||e.atts.id),"lightbox"==e.atts.link_type&&(e.atts.func_link=e.tmp["id-url"]||e.atts.id))}function K(e){pagelayer_pl_image(e.$)}function ee(e,a){var t=e.find(a),l=t.attr("data-icon");if(!pagelayer_empty(l)){var r=l.split(" fa-");t.attr("class",a.substr(1)),t.addClass("pagelayer-"+r[1])}}function ae(e){ee(e.$,".pagelayer-icon-holder")}function te(e){e.$.find(".pagelayer-icon-holder").removeClass((function(e,a){return(a.match(/(^|\s)pagelayer-animation-\S+/g)||[]).join(" ")})),pagelayer_pl_social_profile(e.$)}function le(e){e.atts.func_image=e.tmp["avatar-"+e.atts.custom_size+"-url"]||e.tmp["avatar-url"],e.atts.func_image=e.atts.func_image||e.atts.avatar}function re(e){pagelayer_empty(e.atts.custom_label_text)&&(e.atts.days_label_text="Days",e.atts.hours_label_text="Hours",e.atts.minutes_label_text="Minutes",e.atts.seconds_label_text="Seconds");const{attributes:t}=e.props;(0,a.useEffect)((()=>{var a=pagelayer_query(e.CSS.cssSel),t=e.atts.display_expired_text;t?a.attr("display_expired_text",t):a.removeAttr("display_expired_text",t),a.find(".pagelayer-countdown-expired").hide(),a.find(".pagelayer-countdown-counter").css("display","flex"),pagelayer_countdown(a),pagelayer_empty(e.atts.days)&&pagelayer_empty(e.atts.hours)&&pagelayer_empty(e.atts.minutes)&&pagelayer_empty(e.atts.seconds)&&a.find(".pagelayer-countdown-counter").html("<h2>Countdown Timer Holder</h2>")}),[t])}function ne(e){if(!("text"in e.atts)||pagelayer_empty(e.atts.text)){var a="";if(!pagelayer_empty(e.atts.icon)){var t=e.atts.icon.split(" fa-");a=t[1]}jQuery.each({Facebook:["facebook","facebook-official","facebook-f","facebook-messenger","facebook-square"],Twitter:["twitter","twitter-square"],"Google+":["google-plus","google-plus-square","google-plus-g"],Instagram:["instagram"],Linkedin:["linkedin","linkedin-square","linkedin-in"],Pinterest:["pinterest","pinterest-p","pinterest-square"],Reddit:["reddit-alien","reddit-square","reddit"],Skype:["skype"],Stumbleupon:["stumbleupon","stumbleupon-circle"],Telegram:["telegram","telegram-plane"],Tumblr:["tumblr","tumblr-square"],VK:["vk"],Weibo:["weibo"],WhatsApp:["whatsapp","whatsapp-square"],WordPress:["wordpress","wordpress-simple"],Xing:["xing","xing-square"],Delicious:["delicious"],Dribbble:["dribbble","dribbble-square"],Snapchat:["snapchat-ghost"],Pocket:["get-pocket"],Email:["envelope","envelope-open","envelope-o"]},(function(t,l){-1!=jQuery.inArray(a,l)&&(e.atts.icon_label=t)}))}else e.atts.icon_label=e.atts.text}function se(e){ee(e.$,".pagelayer-share-content")}function oe(e){e.atts.func_image=e.tmp["service_image-"+e.atts.service_image_size+"-url"]||e.tmp["service_image-url"],e.atts.func_image=e.atts.func_image||e.atts.service_image,e.atts["pagelayer-srcset"]=e.atts.func_image+", "+e.atts.func_image+" 1x, ",Y(e,{name:"service_image",size:"service_image_size"})}function ie(e){const{attributes:t}=e.props;(0,a.useEffect)((()=>{const e=setTimeout((()=>{if(pagelayer_empty(t.contact_custom_templ))return;const e=function(){var e=jQuery('[data-type="pagelayer/pl-contact"]'),a={};if(e.length>0){const t=[];e.each((function(){t.push(jQuery(this).data("block"))}));const{select:l}=wp.data;l("core/block-editor").getBlocksByClientId(t).map((e=>{const{attributes:t}=e,l=t["pagelayer-id"];var r=["to_email","from_email","cont_subject","cont_header","cont_body","cont_use_html"];if(pagelayer_empty(t.contact_custom_templ))return!0;for(var n in a[l]={},r){var s=r[n];pagelayer_empty(t[s])||(a[l][s]=t[s])}}))}return a}();pagelayer_empty(e)||wp.data.dispatch("core/editor").editPost({meta:{pagelayer_contact_templates:e}})}),500);return()=>{clearTimeout(e)}}),[t["pagelayer-id"],t.to_email,t.from_email,t.cont_subject,t.cont_header,t.cont_body,t.cont_use_html]),e.atts.con_post_id=pagelayer_postID,e.atts.grecaptcha=pagelayer_recaptch_site_key}function pe(e){const{attributes:a,setAttributes:t}=e.props;jQuery(e.$).find(".pagelayer-recaptcha").each((function(){var e=jQuery(this),a=e.attr("recaptcha-widget-id");pagelayer_empty(window.grecaptcha)||pagelayer_empty(a)&&0!=a?pagelayer_recaptcha_loader(e,!0):grecaptcha.reset(a)}));var l=e.$.find(".pagelayer-message-box");e.atts.show_msg_box?2==l.length&&(l.eq(0).text("Demo success box"),l.eq(0).addClass("pagelayer-cf-msg-suc"),l.eq(1).text("Demo failed box"),l.eq(1).addClass("pagelayer-cf-msg-err")):(l.removeClass("pagelayer-cf-msg-suc pagelayer-cf-msg-err"),l.text("")),"con_post_id"in a&&pagelayer_postID==a.con_post_id||t({con_post_id:pagelayer_postID})}function ce(e){var a="",t="",l="",r="";pagelayer_empty(e.atts.required)||(r="required"),!pagelayer_empty(e.atts.label_name)&&pagelayer_empty(e.atts.label_as_holder)&&(a='<label for="'+e.atts.field_name+'"><span class="pagelayer-form-label">'+e.atts.label_name+"</span>",pagelayer_empty(r)||(a+=" *"),a+="</label>"),pagelayer_empty(e.atts.label_as_holder)?pagelayer_empty(e.atts.placeholder)||(l=e.atts.placeholder):l=e.atts.label_name;var n=".jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.ppt,.pptx,.odt,.avi,.ogg,.m4a,.mov,.mp3,.mp4,.mpg,.wav,.wmv";if(pagelayer_empty(e.atts.accept_file)||(n=e.atts.accept_file),"select"==e.atts.field_type){if(a+='<select name="'+e.atts.field_name+'" '+r+">",pagelayer_empty(e.atts.label_name)||pagelayer_empty(e.atts.label_as_holder)?a+='<option value="" disabled selected>---</option>':a+='<option value="" disabled selected>'+e.atts.label_name+"</option>",!pagelayer_empty(e.atts.values))for(var s in t=e.atts.values.split("\n"))a+='<option value="'+t[s].trim()+'">'+t[s].trim()+"</option>";a+="</select>"}else if("checkbox"==e.atts.field_type){if(!pagelayer_empty(e.atts.values)){for(var s in a+='<div class="pagelayer-radcheck-holder pagelayer-contact-checkbox" '+r+">",t=e.atts.values.split("\n"))a+='<div><input type="checkbox" id="'+e.id+t[s].trim()+'" name="'+e.atts.field_name+'[]" value="'+t[s].trim()+'" /><label for="'+e.id+t[s].trim()+'" class="pagelayer-form-label">'+t[s].trim()+"</label></div>";a+="</div>"}}else if("radio"==e.atts.field_type){if(!pagelayer_empty(e.atts.values)){for(var s in a+='<div class="pagelayer-radcheck-holder">',t=e.atts.values.split("\n"))a+='<div><input type="radio" name="'+e.atts.field_name+'" value="'+t[s].trim()+'" '+r+"/><span>"+t[s].trim()+"</span></div>";a+="</div>"}}else"textarea"==e.atts.field_type?a+='<textarea name="'+e.atts.field_name+'" rows="'+e.atts.textarea_rows+'" placeholder="'+l+'" '+r+"></textarea>":"file"==e.atts.field_type?a+='<input type="'+e.atts.field_type+'" name="'+e.atts.field_name+'" placeholder="'+l+'" accept="'+n+'" '+r+" />":"label"==e.atts.field_type?a+="":a+='<input type="'+e.atts.field_type+'" name="'+e.atts.field_name+'" placeholder="'+l+'" '+r+"/>";e.atts.fieldhtml=a}function me(e){e.atts.pagelayer_pagination_top="",e.atts.pagelayer_pagination_bottom=""}function ge(e){var a=pagelayer_postID;"custom"==e.atts.post_type&&e.atts.post_id&&(a=e.atts.post_id),jQuery.ajax({url:pagelayer_ajax_url+"&action=pagelayer_post_comment&postID="+a,type:"post",data:{pagelayer_nonce:pagelayer_ajax_nonce},success:function(a){e.$.find(".pagelayer-post-comment-container").html(a)}})}function ue(e){e.atts.open_html_tag=pagelayer_empty(e.atts.html_tag)?"":"<"+e.atts.html_tag+">",e.atts.close_html_tag=pagelayer_empty(e.atts.html_tag)?"":"</"+e.atts.html_tag+">"}function ye(e){e.atts.post_content="Post Content Holder",e.CSS.css.push({sel:"{{element}} .entry-content",val:"min-height:20px;background-color:#e3e3e3;"})}function de(e){e.$.find(".pagelayer-post-excerpt").addClass("pagelayer-empty-widget")}function _e(e){e.tmp.post_excerpt='<div class="pagelayer-post-excerpt pagelayer-empty-widget"></div>'}function fe(e){var a={};a.pagelayer_nonce=pagelayer_ajax_nonce,a.post_id=pagelayer_postID,"size"in e.atts&&(a.size=e.atts.size),jQuery.ajax({url:pagelayer_ajax_url+"action=pagelayer_fetch_featured_img",type:"post",data:a,dataType:"json",success:function(a){var t="",l="",r="";pagelayer_empty(a)?t=(t=e.tmp["img-"+e.atts.size+"-url"]||e.tmp["img-url"])||e.atts.img:(t=a.url,r=a.alt,l=a.title,e.atts.size+"-url"in a&&(t=a[e.atts.size+"-url"]));var n='<img class="pagelayer-img" src="'+pagelayer_url+'/images/default-image.png" />';t&&(n='<img class="pagelayer-img" src="'+t+'" title="'+l+'" alt="'+r+'"/>'),e.$.find(".pagelayer-featured-img").html(n),"link_type"in e.atts&&("custom_url"==e.atts.link_type&&e.$.find("a").attr("href",e.tmp.link),"media_file"!=e.atts.link_type&&"lightbox"!=e.atts.link_type||e.$.find("a").attr("href",t)),pagelayer_pl_image(e.$)}})}function ve(e){pagelayer_empty(e.atts.logo_img_type)?pagelayer_empty(pagelayer_site_logo)||(e.atts.func_image=pagelayer_site_logo[e.atts.logo_img_size+"-url"]||pagelayer_site_logo.url,e.atts["logo_img-title"]=pagelayer_empty(pagelayer_site_logo.title)?"":pagelayer_site_logo.title,e.atts["logo_img-alt"]=pagelayer_empty(pagelayer_site_logo.alt)?"":pagelayer_site_logo.alt):(e.atts.func_image=e.tmp["logo_img-"+e.atts.logo_img_size+"-url"]||e.tmp["logo_img-url"],e.atts.func_image=pagelayer_empty(e.atts.func_image)?e.atts.logo_img:e.atts.func_image)}function he(e){clearTimeout(a);var a=setTimeout((()=>{var a=e.$;const{attributes:t}=e.props;e.atts.func_image=e.tmp["heading_image-"+e.atts.heading_image_size+"-url"]||e.tmp["heading_image-url"],e.atts.func_image=e.atts.func_image||e.atts.heading_image;var l=t?.back_section;l?a.attr("back_section",l):a.removeAttr("back_section",l)}),500)}function be(e){const{attributes:t}=e.props;(0,a.useEffect)((()=>(q[e.id]=setTimeout((()=>{jQuery.ajax({url:pagelayer_ajax_url+"&action=pagelayer_post_nav&postID="+pagelayer_postID,type:"post",data:{pagelayer_nonce:pagelayer_ajax_nonce,data:e.atts},async:!1,success:function(a){var t=jQuery.parseJSON(a),l=pagelayer_query(e.CSS.cssSel);l.find(".pagelayer-prev-post").html(t.atts.prev_link),l.find(".pagelayer-next-post").html(t.atts.next_link)}})}),500),()=>{clearTimeout(q[e.id])})),[t])}var Ee={};function we(e){e.atts.post_info_content=1;const{attributes:t}=e.props;(0,a.useEffect)((()=>{clearTimeout(Ee[e.id]),Ee[e.id]=setTimeout((function(){jQuery.ajax({url:pagelayer_ajax_url+"&action=pagelayer_post_info&postID="+pagelayer_postID,type:"post",data:{pagelayer_nonce:pagelayer_ajax_nonce,el:e.atts},success:function(a){var t=jQuery.parseJSON(a);pagelayer_empty(t.post_info_content)?e.$.find(".pagelayer-post-info-list-container").hide():(e.$.find(".pagelayer-post-info-list-container").show(),e.$.find(".pagelayer-post-info-label").html(t.post_info_content),e.$.find(".pagelayer-post-info-icon img").attr("src",t.avatar_url),e.$.find(".pagelayer-post-info-list-container > a").attr("href",t.link))}})}),500)}),[t])}function ke(e){const{attributes:t}=e.props;(0,a.useEffect)((()=>{pagelayer_fb_apps(pagelayer_query(e.CSS.cssSel))}),[t])}function Ne(e){const{attributes:t}=e.props;(0,a.useEffect)((()=>{pagelayer_fb_apps(pagelayer_query(e.CSS.cssSel))}),[t])}function xe(e){const{clientId:t}=e.props;e.tmp["src-url"]=e.tmp["src-url"]||e.atts.src,(0,a.useEffect)((()=>{var a=pagelayer_query("#block-"+t);a.length<1||a.find(".pagelayer-audio-container").html(`<audio controls>\n\t\t\t<source src="${e.tmp["src-url"]}"></source>\n\t\t</audio>`)}))}function Ce(e){pagelayer_audio(e.$)}function je(e){e.tmp["before_image-url"]=e.tmp["before_image-url"]||e.atts.before_image,e.tmp["after_image-url"]=e.tmp["after_image-url"]||e.atts.after_image}function Se(e){pagelayer_before_after_slider(e.$)}function Te(e){var a=pagelayer_empty(e.tmp["ids-urls"])?[]:"object"==typeof e.tmp["ids-urls"]?e.tmp["ids-urls"]:JSON.parse(e.tmp["ids-urls"]),t=pagelayer_empty(e.tmp["ids-all-urls"])?[]:"object"==typeof e.tmp["ids-all-urls"]?e.tmp["ids-all-urls"]:JSON.parse(e.tmp["ids-all-urls"]),l=pagelayer_empty(e.tmp["ids-all-titles"])?[]:"object"==typeof e.tmp["ids-all-titles"]?e.tmp["ids-all-titles"]:JSON.parse(e.tmp["ids-all-titles"]),r=pagelayer_empty(e.tmp["ids-all-links"])?[]:"object"==typeof e.tmp["ids-all-links"]?e.tmp["ids-all-links"]:JSON.parse(e.tmp["ids-all-links"]),n=pagelayer_empty(e.tmp["ids-all-captions"])?[]:"object"==typeof e.tmp["ids-all-captions"]?e.tmp["ids-all-captions"]:JSON.parse(e.tmp["ids-all-captions"]),s="",o='<li class="pagelayer-grid-page-item active">1</li>',i="link_to"in e.atts&&!pagelayer_empty(e.atts.link_to),p=0,c=1;if(pagelayer_empty(e.tmp))return s='<h4 style="text-align:center;">Please Select Images!</h4>',e.atts.ul=s,void(e.atts.pagin="");s+='<ul class="pagelayer-grid-gallery-ul">';var m="gallery-id-"+Math.floor(100*Math.random()+1),g=e.atts.images_no;for(var u in a){0!=g&&p%g==0&&0!=p&&(s+='</ul><ul class="pagelayer-grid-gallery-ul">',o+='<li class="pagelayer-grid-page-item">'+ ++c+"</li>");var y=a[u];"custom"!=e.atts.size&&u in t&&e.atts.size in t[u]&&(y=t[u][e.atts.size]),s+='<li class="pagelayer-gallery-item" >',i||(s+="<div>"),i&&"media_file"==e.atts.link_to&&(s+='<a href="'+("media_file"==e.atts.link_to?y:e.atts.link||"")+'" class="pagelayer-ele-link">'),i&&"attachment"==e.atts.link_to&&(s+='<a href="'+r[u]+'" class="pagelayer-ele-link">'),i&&"lightbox"==e.atts.link_to&&(s+='<a href="'+a[u]+'" class="pagelayer-ele-link" data-lightbox-gallery="'+m+'" alt="'+l[u]+'" pagelayer-grid-gallery-type="'+e.atts.link_to+'">'),s+='<img class="pagelayer-img" src="'+y+'" title="'+l[u]+'" alt="'+l[u]+'">',"true"==e.atts.caption&&(s+='<span class="pagelayer-grid-gallery-caption">'+n[u]+"</span>"),i&&(s+="</a>"),i||(s+="</div>"),s+="</li>",p++}s+="</ul>",e.atts.pagin=c>1?'<div class="pagelayer-grid-gallery-pagination"><ul class="pagelayer-grid-page-ul"><li class="pagelayer-grid-page-item">«</li>'+o+'<li class="pagelayer-grid-page-item">»</li></ul></div>':"",e.tmp["gallery-random-id"]=m,e.atts.ul=s}function Ae(e){pagelayer_pl_grid_lightbox(e.$)}function Qe(e){"current"==e.atts.box_source?(e.tmp["avatar-url"]=pagelayer_author.avatar,e.atts.display_name=pagelayer_author.display_name,e.atts.description=pagelayer_author.description,e.atts.user_url=pagelayer_author.user_url):e.tmp["avatar-url"]=e.tmp["avatar-url"]||e.atts.avatar,e.atts.display_html="<"+e.atts.name_style+">"+e.atts.display_name+"</"+e.atts.name_style+">",e.atts.avatar_html='<img class="pagelayer-img pagelayer-author-image" src="'+e.tmp["avatar-url"]+'" title="{{{avatar-title}}}" alt="{{{avatar-alt}}}">',void 0===e.atts.tmpAtts["avatar-url"]&&jQuery(".pagelayer-author-profile-pic").css("display","none")}function qe(e){var a=e.$,t=a.find(".pagelayer-splash-container");a.unbind("click"),a.on("click",".pagelayer-splash-close, .pagelayer-splash-bg-close",(function(e){e.stopPropagation(),t.fadeOut()})),a.on("click",(function(e){t.fadeIn()})),"custom"==e.atts.style?t.css({background:e.atts.shadow_color,color:e.atts.content_color}):t.css({background:"",color:""}),t.removeClass().addClass("pagelayer-splash-container pagelayer-splash-"+e.atts.style)}function Oe(e){"placeholder"in e.atts&&(e.tmp.placeholder=pagelayer_htmlEntities(e.atts.placeholder))}function Pe(e){e.$.find("input").on("click input",(function(e){e.stopPropagation()})),pagelayer_search_form(e.$)}function Ie(e){e.tmp["img-url"]=e.tmp["img-url"]||e.atts.img}function Be(e){e.$.find(".pagelayer-hotspots-icon-holder").removeClass((function(e,a){return(a.match(/(^|\s)pagelayer-animation-\S+/g)||[]).join(" ")})),pagelayer_image_hotspot(e.$)}function ze(e){pagelayer_pl_img_portfolio(e.$)}function He(e){e.atts.func_img=e.tmp["img-"+e.atts["img-size"]+"-url"]||e.tmp["img-url"],e.atts.func_img=e.atts.func_img||e.atts.img,"link_type"in e.atts&&("custom_url"==e.atts.link_type&&(e.atts.func_link=pagelayer_empty(e.tmp.link)?"":e.tmp.link),"media_file"==e.atts.link_type&&(e.atts.func_link=e.tmp["img-url"]||e.atts.img),"lightbox"==e.atts.link_type&&(e.atts.func_link=e.tmp["img-url"]||e.atts.img))}function Fe(e){jQuery(e.$).parent().attr("data-groups",'["'+e.atts.cat_name+'"]'),pagelayer_pl_image(e.$)}function Le(e){var a=e.$.find(".pagelayer-stars-container");a.removeAttr("pagelayer-setup"),pagelayer_stars(a)}function Me(e){e.atts.xcolor=pagelayer_empty(e.atts.xcolor)?"":pagelayerParseColor(e.atts.xcolor,!1),e.atts.ycolor=pagelayer_empty(e.atts.ycolor)?"":pagelayerParseColor(e.atts.ycolor,!1)}function Re(e){var a=e.$;pagelayer_chart(a)}function Ve(e){e.atts.chart_border_color=pagelayer_empty(e.atts.chart_border_color)?"":pagelayerParseColor(e.atts.chart_border_color,!1),e.atts.bg_color=pagelayer_empty(e.atts.bg_color)?"":pagelayerParseColor(e.atts.bg_color,!1)}function De(e){e.tmp["cta_image-url"]=e.tmp["cta_image-url"]||e.atts.cta_image}function Ue(e){"current"==e.atts.link_type&&(e.atts["custom-url"]=pagelayer_post_permalink)}function Ge(e){pagelayer_fb_apps(e.$)}const Je=["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap","onClick"].concat(["autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave"]).concat(["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlns","xmlnsXlink","xmlBase","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan"]).reduce((function(e,a){const t=a.toLowerCase();return t!==a&&(e[t]=a),e}),{}),We=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","menuitem","textarea"];function Ze(e,a){var t=[];const l=e=>{if(3===(e=jQuery(e)[0]).nodeType)return e.data;if(8===e.nodeType)return"";var t=e.localName;if(t=t.replace(/[^\w-]/g,""),We.indexOf(t)>-1)return Ye(e,a);var r="",n=[];if(jQuery(e).children().length>0)for(var s=e.childNodes,o=0;s.length>o;)n.push(l(s[o])),o+=1;else r=e.innerText;return Ye(e,a,r,n)};return jQuery(e).each((function(){t.push(l(this))})),t}function Ye(e,t,l,r){let n={},s=!1,o=!1;var i=e.localName;if(i=i.replace(/[^\w-]/g,""),r=r||[],e.attributes&&(n=Object.entries(e.attributes).reduce(((e,[a,t])=>{var l=t.nodeName,r=t.nodeValue;return"style"===(l=Je[l.replace(/[-:]/,"")]||l)?r=function(e){const a=(e=e||"").split(/;(?!base64)/);var t={};for(let e=0;e<a.length;++e){let l,r,n;l=a[e].split(":"),l.length>2&&(l[1]=l.slice(1).join(":")),r=l[0],n=l[1],"string"==typeof n&&(n=n.trim()),null!=r&&null!=n&&r.length>0&&n.length>0&&(0!==r.indexOf("--")&&(r=r.trim().split("-").map(((e,a)=>0===a?e:e.charAt(0).toUpperCase()+e.slice(1))).join("")),t[r]=n)}return t}(r):"class"===l?l="className":"for"===l?l="htmlFor":l.startsWith("on")?r=Function(r):"pagelayer-editable"===l?s=r:"pagelayer-group-holder"===l&&(o=r),Xe.includes(l)&&""===(r||"")&&(r=l),e[l]=r,e}),n)),s){var p={tagName:i,_props:t,propsName:s,value:e.innerHTML};return n={...n,...p},(0,a.createElement)(wp.PagelayerComponents.rich_text,n)}if(o){p={TagName:i,plTag:o,_props:t},n={...n,...p};var c=wp.PagelayerBlocks.addGroupBlock;return(0,a.createElement)(c,n)}const m=null!=l?[l].concat(r):r;return a.createElement.apply(null,[i,n].concat(m))}const Xe=["allowFullScreen","allowpaymentrequest","async","autoFocus","autoPlay","checked","controls","default","disabled","formNoValidate","hidden","ismap","itemScope","loop","multiple","muted","nomodule","noValidate","open","playsinline","readOnly","required","reversed","selected","truespeed"];var Ke=window.wp.blocks;const ea=pagelayer_url+"/images/pagelayer-logo-19.png",aa=pagelayer_url+"/images/Spinner-3.gif",ta=()=>{const[e,t]=(0,a.useState)({}),[r,n]=(0,a.useState)("header"),[o,i]=(0,a.useState)(""),[p,c]=(0,a.useState)({}),[m,g]=(0,a.useState)(!1),[u,y]=(0,a.useState)([]),[d,_]=(0,a.useState)(3),[f,v]=(0,a.useState)([]),[h,b]=(0,a.useState)([]),[E,w]=(0,a.useState)({}),k={section:(0,s.__)("sections"),header:(0,s.__)("Header"),footer:(0,s.__)("Footer"),page:(0,s.__)("Page")};return(0,a.useEffect)((()=>{const e=window.innerWidth;e>=1500?_(4):e>=992?_(3):e>=768?_(2):e>=360&&_(1)}),[]),(0,a.useEffect)((()=>(jQuery(".pagelayer-section-holder").on("click",(function(e){var a=jQuery(e.target).closest(".pagelayer-section-item");if(!(a.length<1||a.find(".pagelayer-section-pro-req").length>0)){e.preventDefault();var t=a.attr("pagelayer-add-section-id");g(!0),jQuery.ajax({url:pagelayer_ajax_url+"&action=pagelayer_get_section_blocks",type:"POST",data:{pagelayer_nonce:pagelayer_ajax_nonce,pagelayer_section_id:t},success:function(e){try{if(e=JSON.parse(e),!pagelayer_empty(e.error))return console.log("Error getting the section"),jQuery(".pagelayer-library-modal-container").hide(),void g(!1);var a=(0,Ke.parse)(e.code);(0,l.dispatch)("core/block-editor").insertBlocks(a)}catch(e){return console.log("Error getting the section"),jQuery(".pagelayer-library-modal-container").hide(),void g(!1)}},complete:function(){jQuery(".pagelayer-library-modal-container").hide(),g(!1)}})}})),()=>{jQuery(".pagelayer-section-holder").unbind("click")}))),(0,a.useEffect)((()=>{!(r in e)||pagelayer_empty(e[r])?(g(!0),fetch(`https://api.pagelayer.com/library.php?give=${r}`).then((e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((a=>{t({...e,[r]:a}),b({...a.list}),c(a.tags),g(!1)})).catch((e=>{console.error("Error fetching data:",e),g(!1)}))):b({...e[r].list})}),[r]),(0,a.useEffect)((()=>{var a=!1;const t=()=>{var t=jQuery(".pagelayer-library-modal-container"),l=t.find(".pagelayer-section-is-visible");if(!(r in e)||!pagelayer_isElementInView(l,t))return;if(0===Object.keys(h).length||a)return;a=!0;const n=[...f],s={...h};let o=0;for(const e in h){if(o>=5*d)break;const a=o%d;a in n||(n[a]=[]),n[a].push(e),delete s[e],o++}b(s),v(n),a=!1};return t(),jQuery(".pagelayer-section-modal-body").on("scroll",t),()=>{jQuery(".pagelayer-section-modal-body").unbind("scroll")}}),[h]),(0,a.useEffect)((()=>{Object.keys(p).forEach((e=>{E[e]=p[e].length})),w(E)}),[p]),(0,a.useEffect)((()=>{Object.keys(p).length>0&&0==u.length&&r in e&&!pagelayer_empty(e[r])&&b({...e[r].list})}),[u]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(la,null),(0,a.createElement)("div",{className:"pagelayer-library-modal-container",style:{display:"none"}},(0,a.createElement)("nav",{className:"pagelayer-library-modal-nav"},(0,a.createElement)("button",null,(0,a.createElement)("img",{src:ea,alt:"Pagelayer Logo"}),(0,s.__)("Pagelayer Library")),(0,a.createElement)("div",{className:"pagelayer-library-modal-ul-container"},(0,a.createElement)("ul",{className:"pagelayer-library-modal-ul"},Object.keys(k).map(((t,l)=>(0,a.createElement)("li",null,(0,a.createElement)("button",{className:r===t?"pagelayer-active-modal-btn":"",onClick:()=>{return a=t,y([]),void(r!==a&&(v([]),n(a),a in e&&c(e[a].tags)));var a}},k[t])))))),(0,a.createElement)("span",{className:"pagelayer-library-modal-close"},"×")),(0,a.createElement)("div",{className:"pagelayer-library-modal-content",id:"modal"},(0,a.createElement)("div",{className:"pagelayer-library-modal-tags"},(0,a.createElement)("div",{className:"pagelayer-library-modal-tag-div"},(0,a.createElement)("input",{type:"text",value:o,style:{border:"none",backgroundColor:"#724c8717",padding:"7px",width:"212px",borderRadius:"0px"},onChange:e=>i(e.target.value),placeholder:"Search"})),(0,a.createElement)("div",{className:"pagelayer-library-modal-tag-list"},Object.keys(p).map(((e,t)=>{const l=!o||e.includes(o),r=u.includes(e)?"pagelayer-tag-style-active":"";return l&&(0,a.createElement)("p",{key:t,onClick:()=>((e,a)=>{const t=u.includes(e)?u.filter((a=>a!==e)):[...u,e],l={};t.forEach((e=>{e in p&&p[e].forEach((e=>{l[e]=e}))})),v([]),y(t),b(l)})(e),style:{cursor:"pointer"},className:r},`${e} (${E[e]})`)})))),(0,a.createElement)("div",{className:"pagelayer-section-modal-body",style:m?{overflow:"hidden"}:{overflow:"auto"}},f.map((t=>{if(r in e)return(0,a.createElement)("div",{className:"pagelayer-section-holder","pagelayer-section-type":r},t.map((t=>(0,a.createElement)("div",{key:t,className:"pagelayer-section-item","pagelayer-add-section-id":t},(0,a.createElement)("img",{src:`${e[r].image_url}${t}/screenshot.jpg`,alt:"Pagelayer code screenshot",loading:"lazy"}),!pagelayer_empty(e[r].list[t])&&pagelayer_empty(pagelayer_pro)&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-section-pro-req"},(0,s.__)("Pro")),(0,a.createElement)("div",{className:"pagelayer-section-pro-txt"},(0,s.__)("This feature is a part of"),(0,a.createElement)("a",{href:pagelayer_pro_url,target:"_blank"},pagelayer_pro_txt),(0,s.__)("You will need purchase"),(0,a.createElement)("a",{href:pagelayer_pro_url,target:"_blank"},pagelayer_pro_txt),(0,s.__)("to use this feature.")))))))})),(0,a.createElement)("div",{className:"pagelayer-section-is-visible"})),m&&(0,a.createElement)("div",{className:"pagelayer-library-loader"},(0,a.createElement)("img",{src:aa,alt:"Loading..."})),m&&(0,a.createElement)("div",{className:"pagelayer-add-section-modal-overlay"},(0,a.createElement)("div",{className:"pagelayer-section-wait"},(0,a.createElement)("div",{className:"pagelayer-loader"},(0,a.createElement)("div",{className:"pagelayer-percent-parent"})),(0,a.createElement)("br",null),(0,a.createElement)("span",null,(0,s.__)("Please wait a moment")))))))},la=()=>((0,a.useEffect)((()=>{var e=jQuery("#pagelayer-editor-button-modal"),a=jQuery(".edit-post-header-toolbar");if(!(a.length<1))return e.detach(),a.parent().append(e),e.show(),jQuery("#pagelayer-library-modal-btn").on("click",(function(e){e.preventDefault(),jQuery(".pagelayer-library-modal-container").show()})),jQuery(".pagelayer-library-modal-close").click((function(){jQuery(".pagelayer-library-modal-container").hide()})),()=>{jQuery("#pagelayer-library-modal-btn").unbind("click"),jQuery(".pagelayer-library-modal-close").unbind("click")}})),(0,a.createElement)("div",{id:"pagelayer-editor-button-modal",style:{marginLeft:"15px"}},(0,a.createElement)("a",{id:"pagelayer-library-modal-btn",className:"button button-primary button-large",style:{height:"auto",padding:"4px 8px",fontSize:"13px",display:"flex",alignItems:"center",width:"max-content"}},(0,a.createElement)("img",{src:`${pagelayer_url}/images/pagelayer-logo-40.png`,align:"top",width:"22",style:{marginRight:"4px"}}),(0,a.createElement)("span",null,(0,s.__)("Library"))))),{pagelayer_shortcodes:ra,pagelayer_styles:na}=pagelayer_config,sa=["settings","options"];var oa=ra,ia=na;for(const e in oa){let t=pagelayerBlockNameByTag(e),l=oa[e],r="pagelayer-shortcode ";"icon"in oa[e]?r+=oa[e].icon:r+="pagelayer-"+e;let n=(0,a.createElement)("i",{class:r});pagelayerCacheBlockTags[t]=e;var pa={};if("parent"in l){pa.parent=[];for(let e in l.parent)pa.parent[e]=pagelayerBlockNameByTag(l.parent[e])}else pa.category="pagelayer";var ca={};for(var ma in sa){var ga=sa[ma];for(var ua in l[ga]){var ya=ua in l?l[ua]:ia[ua];for(var da in ya){if(ca[da]=new Object,ca[da]={type:ya[da].type},"default"in ya[da]&&!pagelayer_empty(ya[da].default)){var _a=ya[da].default;if("units"in ya[da])if(jQuery.isNumeric(_a))_a+=ya[da].units[0];else{var fa="sep"in ya[da]?ya[da].sep:",",va=_a.split(fa);for(var ha in va)jQuery.isNumeric(va[ha])&&(va[ha]=va[ha]+ya[da].units[0]);_a=va.join(fa)}ca[da].default=_a}var ba=["tablet","mobile"];if("screen"in ya[da]||"typography"==ya[da].type)for(var Ea in ba){let e=da+"_"+ba[Ea];ca[e]=new Object,ca[e]={type:ya[da].type}}}}}"pl_contact"==e&&(ca.con_post_id={type:"string"}),l.innerHTML&&l.innerHTML in ca&&(ca[l.innerHTML].source="html"),ca["pagelayer-id"]={type:"string"},ca.tmpAtts={type:"object",default:{}},pa.supports={html:!1};var wa={title:l.name,apiVersion:3,icon:n,attributes:ca,edit:function(a){return xa(e,a,l)},save:function(e){return(0,a.createElement)(Q,{...e,pl_props:l})}},ka={...pa,...wa};wp.blocks.registerBlockType(t,ka)}var Na={};function xa(t,r,n){var s=t.replace("pl_","");const{InspectorControls:o}=wp.blockEditor,{TextControl:i}=wp.components,{setAttributes:p,className:c,attributes:m,isSelected:g,clientId:y}=r,d=(()=>{const{deviceType:e}=(0,l.useSelect)((e=>({deviceType:e("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop"})),[]);return e||""})().toLowerCase(),_=(0,a.useRef)(null),f=function(e,a){var t=new Object;const{attributes:l,name:r}=e;if(t.id=Aa(l),t.tag=pagelayerCacheBlockTags[r],t.atts={...l},t.tmp={},t.atts.tmpAtts&&(t.tmp=t.atts.tmpAtts),a=a||!1){var n=t.tag,s=function(e){delete t.atts[e],delete t.atts[e+"_tablet"],delete t.atts[e+"_mobile"]},o=oa[n];for(var i in sa){var p=sa[i];for(var c in o[p])if(e=c in o?o[c]:ia[c],!pagelayer_empty(e))for(var m in e){var g=e[m];if(!pagelayer_empty(o.skip_props)&&jQuery.inArray(m,o.skip_props)>-1)s(m);else if("req"in g){var u=g.req,y=!0;for(var d in u){var _=u[d],f="!"==d.substr(0,1);d=f?d.substr(1):d;var v=t.atts[d]||"";if(f){if("string"==typeof _&&_==v){y=!1;break}if("string"!=typeof _&&_.indexOf(v)>-1){y=!1;break}}else{if("string"==typeof _&&_!=v){y=!1;break}if("string"!=typeof _&&-1===_.indexOf(v)){y=!1;break}}}y||s(m)}}}}return t}(r,!0);(0,a.useLayoutEffect)((()=>{"pagelayer-id"in f.atts&&f.atts["pagelayer-id"]===f.id||(f.atts["pagelayer-id"]=f.id,p({"pagelayer-id":f.id}))})),f.props=r;var v={classes:[],remove_classes:[],attr:[],remove_attr:[],css:[],edit:[],cssSel:".p-"+f.id,sel:'[pagelayer-id="'+f.id+'"]',wrap:'[pagelayer-wrap-id="'+f.id+'"]'};f.className=c+" p-"+f.id+" pagelayer-"+s,f.CSS=v;var h=[],b=[];for(var E in sa){var w=sa[E];if("settings"!=w||"post_props"!=s)for(var k in n[w]){var N=k in n?n[k]:ia[k],x=[],C={},j={};for(var S in N){var T=N[S];if(S in f.atts&&pagelayerLength(f.atts[S])<1&&delete f.atts[S],"group"!=T.type){if("link"==T.type&&"selector"in T&&"object"==typeof f.atts[S]){var $={};pagelayerLength(f.atts[S].link)<1?delete f.atts[S]:("target"in f.atts[S]&&!pagelayer_empty(f.atts[S].target)&&($={sel:T.selector,val:'target="_blank"'},v.attr.push($)),"rel"in f.atts[S]&&!pagelayer_empty(f.atts[S].rel)&&($={sel:T.selector,val:'rel="nofollow"'},v.attr.push($)),"attrs"in f.atts[S]&&!pagelayer_empty(f.atts[S].attrs)&&pagelayerTrim(f.atts[S].attrs.split(";")).forEach((function(e,a){var t=e.split(/=(.*)/),l=pagelayerTrim(t[0]),r="";l.length<1||pagelayer_empty(l.match(/^[a-z_]+[\w:.-]*$/i))||(r=t.length<2?l+'=""':l+'="'+t[1]+'"',$={sel:T.selector,val:r},v.attr.push($))})),f.atts[S]=pagelayer_empty(f.atts[S].url)?f.atts[S].link:f.atts[S].url)}var A,Q;if("addClass"in T)for(var q in A="string"==typeof T.addClass?[T.addClass]:T.addClass){var O=jQuery.isNumeric(q)?"":q;if(A[q].match(/\{\{val\}\}/)&&"list"in T){var P=e=>{var a={sel:O,val:A[q].replace("{{val}}",e)};f.atts[S]==e?v.classes.push(a):v.remove_classes.push(a)};for(var I in T.list)if("object"==typeof T.list[I])for(var B in T.list[I])P(B);else P(I)}else $={sel:O,val:A[q].replace("{{val}}",f.atts[S])},S in f.atts?v.classes.push($):v.remove_classes.push($)}if("addAttr"in T&&"ele_id"!=S)for(var q in Q="string"==typeof T.addAttr?[T.addAttr]:T.addAttr)$={sel:O=jQuery.isNumeric(q)?"":q,val:Q[q]},S in f.atts?v.attr.push($):v.remove_attr.push($);if("css"in T){var z;z="string"==typeof T.css?[T.css]:T.css;var H={desktop:"",tablet:"_tablet",mobile:"_mobile"},F="typography"==T.type?pagelayerIsGlobalTypo(f.atts[S]):"";for(var L in H){var M=S+H[L];if(M in f.atts){var R=f.atts[M];if("color"==T.type&&(R=pagelayerParseColor(f.atts[M])),"typography"==T.type&&(R=pagelayerParseTypo(R,!1,F,L)),"gradient"==T.type){pagelayer_is_string(R)&&(R=R.split(","));for(let e in R)R[e]=pagelayerParseColor(R[e])}for(var q in z)$={sel:O=jQuery.isNumeric(q)?"{{element}}":q,val:$a(z[q],R,T.sep||",")},"tablet"==L&&($.sel="@media (max-width: "+pagelayer_settings.tablet_breakpoint+"px) and (min-width: "+(pagelayer_settings.mobile_breakpoint+1)+"px){"+$.sel,$.val=$.val+"}"),"mobile"==L&&($.sel="@media (max-width: "+pagelayer_settings.mobile_breakpoint+"px){"+$.sel,$.val=$.val+"}"),v.css.push($)}}}if("edit"in T){var V={prop:S,sel:T.edit};if(pagelayer_empty(T.keep_prop)||(V.keep_prop=!0),v.edit.push(V),pagelayer_empty(T.keep_prop))continue}var D=!0;if("req"in T||"show"in T){var U={};if("req"in T&&"show"in T)for(var G in U=JSON.parse(JSON.stringify(T.req)),T.show)U[G]=T.show[G];else U="req"in T?T.req:T.show;for(var J in U){var W=U[J],Z="!"==J.substr(0,1);J=Z?J.substr(1):J;var Y=f.atts[J]||"";if(Z){if("string"==typeof W&&W==Y){D=!1;break}if("string"!=typeof W&&W.indexOf(Y)>-1){D=!1;break}}else{if("string"==typeof W&&W!=Y){D=!1;break}if("string"!=typeof W&&-1===W.indexOf(Y)){D=!1;break}}}}if(D&&g){var X=S;"screen"in T&&(X=S+{desktop:"",tablet:"_tablet",mobile:"_mobile"}[d]),T.c={},T.c.name=X,T.c.val=f.atts[X],pagelayerLength(T.c.val)<1&&(T.c.val="");var K=i,ee={prop:T,label:T.label,value:T.c.val,deviceType:d,...r};if(T.type in wp.PagelayerComponents)K=wp.PagelayerComponents[T.type];else{ee.type=T.type;const _x=S;ee.onChange=function(e){p({[_x]:e})}}if("show_group"in T){var ae=x.push("Show Group"),te=T.show_group;j[ae-1]=[K,ee,te]}else K=(0,a.createElement)(K,ee),"group"in T?(T.group in C||(C[T.group]=[]),C[T.group].push(K)):x.push(K)}}}if(!pagelayer_empty(j))for(var le in j){var re=j[le];te=re[2],x[le]=(0,a.createElement)(re[0],re[1],C[te])}if(!pagelayer_empty(x)){var ne=(0,a.createElement)(wp.components.PanelBody,{title:n[w][k],className:"pagelayer-panel__body",initialOpen:!1},x);"settings"!=w?b.push(ne):h.push(ne)}}}var se=(0,a.createElement)(o,{key:"inspector1"},(0,a.createElement)(wp.PagelayerComponents.setting_tabs,{}),(0,a.createElement)("div",{className:"pagelayer-components-tabs pl-settings"},h),(0,a.createElement)("div",{className:"pagelayer-components-tabs pl-options"},b)),oe=e["pagelayer_render_"+t];"function"==typeof oe&&oe(f);var ie="",pe={"pagelayer-id":f.id},ce=!1;if(s in wp.PagelayerBlocks){var me=wp.PagelayerBlocks[s];ce=!0,ie=(0,a.createElement)(me,{_props:r,pl_props:n,tag:s,deviceType:d,jEleRef:_,data:f})}else{if("html"in n){var ge=n.html.replace(/src=/g,"plmodifysrc="),ue=jQuery("<div>"+ge+"</div>");if(v.edit.length>0)for(var q in v.edit)T=v.edit[q].prop,v.edit[q].keep_prop||ue.find('[if="{{'+T+'}}"]').removeAttr("if");if(ue.find("[if-ext]").each((function(){var e=jQuery(this),a=ja(e.attr("if-ext"));e.removeAttr("if-ext"),a in f.atts&&!pagelayer_empty(f.atts[a])||(e[0].outerHTML=e.html())})),ue.find("[if]").each((function(){var e=jQuery(this),a=ja(e.attr("if"));e.removeAttr("if"),a in f.atts&&!pagelayer_empty(f.atts[a])||e.remove()})),"has_group"in n&&"holder"in n&&(ue.find(n.holder).attr("pagelayer-group-holder",t),ce=!0),v.edit.length>0)for(var q in v.edit)T=v.edit[q].prop,((O=v.edit[q].sel).length<1?ue:ue.find(O)).attr({"pagelayer-editable":T});ie=Ta(ue[0].innerHTML.replace(/plmodifysrc=/g,"src="),f)}ie=Ze(ie,r)}var ye="";if(v.css.length>0){var de=[];for(var q in v.css){O=Sa(v.css[q].sel,f);var _e=v.css[q].val;O.length>0?de.push(O+"{"+_e+"}"):de.push(Sa(_e,f))}if(!pagelayer_empty(n.overide_css_selector))for(var fe in de){var ve=Sa(n.overide_css_selector,f);de[fe]=de[fe].split(f.CSS.cssSel).join(ve),de[fe]=de[fe].split(f.CSS.wrap).join(ve)}ye=Ta(de.join("\n"),f)}pagelayer_empty(ye)||(ye=`<style>${ye}</style>`);const he={className:f.className,ref:_,...pe},be=(0,u.useBlockProps)({"pagelayer-wrap-id":f.id});var Ee={plTag:t,_props:r,ref:_,className:f.className,...pe};const we=wp.PagelayerBlocks.addGroupBlock;var ke=(0,a.createElement)(a.Fragment,null,g&&se,n?.has_group&&!ce?(0,a.createElement)("div",{...be},Ze(ye,r),(0,a.createElement)(we,{...Ee})):(0,a.createElement)("div",{...be},(0,a.createElement)("div",{...he},Ze(ye,r),ie)));return(0,a.useEffect)((()=>{const a=pagelayer_query(`.p-${f.id}`);if(v.classes.length>0)for(const e of v.classes){const t=e.sel.replace("{{element}}",""),l=t.length<1?a:a.find(t);l.hasClass(e.val)||l.addClass(e.val)}if(v.remove_classes.length>0)for(const e of v.remove_classes){const t=e.sel.replace("{{element}}",""),l=t.length<1?a:a.find(t);l.hasClass(e.val)&&l.removeClass(e.val)}if(v.attr.length>0)for(const e of v.attr){const t=e.sel.replace("{{element}}",""),l=t.length<1?a:a.find(t),r=e.val.split(/=(.*)/);r[1]=Ta(r[1],f),r[1]=pagelayerTrim(r[1],'"'),!l.attr(r[0])!==r[1]&&l.attr(r[0],r[1])}if(v.remove_attr.length>0)for(const e of v.remove_attr){const t=e.sel.replace("{{element}}",""),l=t.length<1?a:a.find(t),r=e.val.split("=");l.is("["+r[0]+"]")&&l.removeAttr(r[0])}f.$=pagelayer_query(`.p-${f.id}`);var l=e["pagelayer_render_end_"+t];if("function"==typeof l&&l(f),f.atts.ele_attributes&&function(e){e.id in Ca&&Ca[e.id].forEach((function(a,t){e.$.removeAttr(a)})),Ca[e.id]=[],pagelayerTrim(e.atts.ele_attributes.split(";")).forEach((function(a,t){var l=a.split(/=(.*)/),r=pagelayerTrim(l[0]);Ca[e.id].push(r),r.length<1||pagelayer_empty(r.match(/^[a-z_]+[\w:.-]*$/i))||(l.length<2?e.$.attr(r,""):e.$.attr(r,l[1]))}))}(f),"pagelayer_scrolling_effects"in window){var r=jQuery(".interface-interface-skeleton__content");if(f.atts.ele_scrolling_effects){var n=jQuery('iframe[name="editor-canvas"]'),s=r;if(n.length>0){var o=n[0]?.contentWindow?.document||n[0]?.contentDocument;s=jQuery(o)}pagelayer_scrolling_effects(f.$,s)}if(f.atts.ele_mouse_effects&&pagelayer_mouse_effects(f.$),pagelayer_empty(f.atts.ele_sticky_pos))return;pagelayer_ele_sticky_handler(f.$,r)}}),[v,f.atts]),(0,a.useEffect)((()=>{setTimeout((()=>{const e=document.querySelectorAll('iframe[name="editor-canvas"]');if(!e?.length)return;const a=e=>{const a=document.getElementById(e);return!!a&&a.cloneNode(!0)},t=e=>{const a=document.getElementById(e);return!!a&&a.textContent};for(const l of e){const e=l?.contentWindow.document||l?.contentDocument;if(!e?.head)continue;const r=t=>{if(e.getElementById(t))return;const l=a(t);l&&e.head.appendChild(l)},n=a=>{const l=t(a);if(!l)return;const r=e.getElementById(a);if(r)r.textContent=l;else{const t=document.createElement("style");t.setAttribute("id",a),t.textContent=l,e.head.appendChild(t)}};r("dashicons-css"),r("pagelayer-block-icon-css"),r("pagelayer-block-editor-css"),r("pagelayer-frontend-css"),r("mediaelement-css"),n("pagelayer-block-global-style"),n("pagelayer-global-styles")}}))}),[]),(0,a.useLayoutEffect)((()=>()=>{const e=pagelayer_query(`#block-${y}`).parent(".pagelayer-owl-item").closest(".pagelayer-owl-carousel");e.length<1||pagelayer_owl_destroy(e.closest("[pagelayer-id][pagelayer-setup]"),".pagelayer-owl-carousel")}),[]),ke}wp.domReady((function(){var e=document.createElement("div");wp.element.render((0,a.createElement)(ta,null),e),document.querySelector("body").appendChild(e),Na=setInterval((function(){var e=document.querySelector(".interface-interface-skeleton__content");e&&(clearInterval(Na),new WOW({boxClass:"pagelayer-wow",scrollContainer:".interface-interface-skeleton__content"}).init(),jQuery(e).on("scroll",(function(){window.dispatchEvent(new Event("scroll"))})),jQuery(e).on("resize",(function(){window.dispatchEvent(new Event("resize"))})))}),100),jQuery(document).on("click","[pagelayer-id]",(function(e){e.preventDefault()})),jQuery(document).on("mousedown",".block-editor-block-mover-button",(function(e){const a=wp.data.select("core/block-editor").getSelectedBlockClientId();var t=(pagelayer_empty(a)?pagelayer_query(".wp-block.is-multi-selected"):pagelayer_query("#block-"+a)).parent(".pagelayer-owl-item").closest(".pagelayer-owl-carousel");t.length<1||(jQuery(this)[0].dispatchEvent(new Event("click",{bubbles:!0})),t.trigger("refresh.pagelayer.owl"),pagelayer_owl_destroy(t.closest("[pagelayer-id][pagelayer-setup]"),".pagelayer-owl-carousel"))}))}));var Ca={};function ja(e){return e.substring(2,e.length-2)}function Sa(e,a){return(e=(e=e.split("{{element}}").join(a.CSS.cssSel)).split("{{wrap}}").join(a.CSS.wrap)).split("{{ele_id}}").join(a.id)}function Ta(e,a){for(var t in a.tmp)e=e.split("{{{"+t+"}}}").join(a.tmp[t]);for(var t in a.atts)e=e.split("{{"+t+"}}").join(a.atts[t]);return e}function $a(e,a,t){t=t||",";var l=function(e,a,t){return a=function(e){if((e=String(e)).match(/^#([a-f0-9]{6})ff$/))return e.substr(0,7);if(e.match(/^#([a-f0-9]{8})$/)){var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);e="rgba("+parseInt(a[1],16)+", "+parseInt(a[2],16)+", "+parseInt(a[3],16)+", "+(parseInt(a[4],16)/255).toFixed(2)+")"}return e}(a),a.match(/var\(/)&&(t=t.replace(/[-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t=new RegExp(t+"?[^\\s|;]+","ig")),e.split(t).join(a)};if((e=l(e,a,"{{val}}")).match(/val\[\d/))for(var r in"object"==typeof a&&null!==a||(a=String(a).split(t)),a)e=l(e,a[r],"{{val["+r+"]}}");return e}function Aa(e,a){a=a||!1;var t=e["pagelayer-id"];return(a||!t||t.length<1)&&(t=function(e,a){var t="",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";(a=a||0)&&(l+="&#$%@");for(var r=0;r<3;r++)t+=l.charAt(Math.floor(Math.random()*l.length));return t}()+(9999,Math.floor(Math.random()*Math.floor(9999))).toString(),t=t.toLowerCase()),jQuery(`.p-${t}`,pagelayerGetDocumentElement()).length>1&&(t=Aa(e,!0)),t}const Qa=()=>{const e="pagelayer/pl-col";return[{name:"one-column",icon:(0,a.createElement)("svg",{width:"100",height:"50",xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 100 54.54"},(0,a.createElement)("path",{d:"M385,133.37v54.54H285V133.37Z",transform:"translate(-285 -133.37)"})),label:(0,s.__)("One Column"),innerBlocks:[[e,{col:12}]],scope:["block"]},{name:"two-column-equal",icon:(0,a.createElement)("svg",{width:"100",height:"50",xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 100 54.54"},(0,a.createElement)("path",{d:"M461,133.37v54.54H412V133.37Zm51,0v54.54H463V133.37Z",transform:"translate(-412 -133.37)"})),label:(0,s.__)("Two columns equal split"),isDefault:!0,innerBlocks:[[e,{col:6}],[e,{col:6}]],scope:["block"]},{name:"75_25-column-split",icon:(0,a.createElement)("svg",{width:"100",height:"50",viewBox:"0 0 114 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.00001 0C0.895439 0 7.62939e-06 0.895447 7.62939e-06 2V58C7.62939e-06 59.1046 0.895439 60 2.00001 60H73C74.1046 60 75 59.1046 75 58V2C75 0.895447 74.1046 0 73 0H2.00001ZM79 0C77.8954 0 77 0.895447 77 2V58C77 59.1046 77.8954 60 79 60H112C113.105 60 114 59.1046 114 58V2C114 0.895447 113.105 0 112 0H79Z",fill:"inherit"})),label:(0,s.__)("Seventy five tweenty five columns split"),innerBlocks:[[e,{col:9}],[e,{col:3}]],scope:["block"]},{name:"25_75-column-split",icon:(0,a.createElement)("svg",{width:"100",height:"50",viewBox:"0 0 114 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35 60C36.1046 60 37 59.1046 37 58L37 2C37 0.895447 36.1046 0 35 0H2.00002C0.895447 0 1.52588e-05 0.895447 1.52588e-05 2L7.62939e-06 58C7.62939e-06 59.1046 0.895439 60 2.00001 60H35ZM112 60C113.105 60 114 59.1046 114 58V2C114 0.895447 113.105 0 112 0H41C39.8954 0 39 0.895447 39 2L39 58C39 59.1046 39.8954 60 41 60H112Z",fill:"inherit"})),label:(0,s.__)("Tweenty five seventy five columns split"),innerBlocks:[[e,{col:3}],[e,{col:9}]],scope:["block"]},{name:"three-column-equal",icon:(0,a.createElement)("svg",{width:"100",height:"50",viewBox:"0 0 114 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895447 0.895432 0 2 0H35C36.1046 0 37 0.895447 37 2V58C37 59.1046 36.1046 60 35 60H2C0.895432 60 0 59.1046 0 58V2ZM39 2C39 0.895447 39.8954 0 41 0H73C74.1046 0 75 0.895447 75 2V58C75 59.1046 74.1046 60 73 60H41C39.8954 60 39 59.1046 39 58V2ZM79 0C77.8954 0 77 0.895447 77 2V58C77 59.1046 77.8954 60 79 60H112C113.105 60 114 59.1046 114 58V2C114 0.895447 113.105 0 112 0H79Z",fill:"inherit"})),label:(0,s.__)("Three columns equal split"),innerBlocks:[[e,{col:4}],[e,{col:4}],[e,{col:4}]],scope:["block"]},{name:"four-column-equal",icon:(0,a.createElement)("svg",{width:"100",height:"50",viewBox:"0 0 114 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.895416 0 0 0.895447 0 2V58C0 59.1046 0.895416 60 2 60H25C26.1046 60 27 59.1046 27 58V2C27 0.895447 26.1046 0 25 0H2ZM31 0C29.8954 0 29 0.895447 29 2V58C29 59.1046 29.8954 60 31 60H54C55.1046 60 56 59.1046 56 58V2C56 0.895447 55.1046 0 54 0H31ZM89 0C87.8954 0 87 0.895447 87 2V58C87 59.1046 87.8954 60 89 60H112C113.105 60 114 59.1046 114 58V2C114 0.895447 113.105 0 112 0H89ZM58 2C58 0.895447 58.8954 0 60 0H83C84.1046 0 85 0.895447 85 2V58C85 59.1046 84.1046 60 83 60H60C58.8954 60 58 59.1046 58 58V2Z",fill:"inherit"})),label:(0,s.__)("Four columns equal split"),innerBlocks:[[e,{col:3}],[e,{col:3}],[e,{col:3}],[e,{col:3}]],scope:["block"]}]},qa=(0,a.memo)((e=>{const{_props:t,data:r}=e,{clientId:n,isSelected:o,setAttributes:i}=t,{atts:p,tmp:c,id:m,tag:g}=r,y="pagelayer/pl-col",d=[y],{getBlocks:_}=(0,l.select)("core/block-editor"),f=_(n),v=f.length,[h,b]=(0,a.useState)(v);(0,a.useEffect)((()=>{if(v!=h){b(v);var e={col:Math.floor(12/v)};f.map((a=>{var t,r;t=a.clientId,r={...e,col_width:""},(0,l.dispatch)("core/block-editor").updateBlockAttributes(t,r)}))}}),[v]);var E={template:(0,a.useMemo)((()=>[[y]]),[y]),templateLock:!1,renderAppender:!1,allowedBlocks:d,orientation:"horizontal"},w={className:`pagelayer-row-holder pagelayer-row pagelayer-auto pagelayer-width-${p.width_content}`};const k=(0,u.useInnerBlocksProps)(w,E);return(0,a.createElement)(a.Fragment,null,0==v?(0,a.createElement)("div",{className:"pagelayer-variation-div"},(0,a.createElement)(u.__experimentalBlockVariationPicker,{icon:(0,a.createElement)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"25.000000pt",height:"23.000000pt",viewBox:"0 0 25.000000 23.000000",preserveAspectRatio:"xMidYMid meet"},(0,a.createElement)("g",null,(0,a.createElement)("path",{d:"M4 6H20M4 12H20M4 18H20",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),label:(0,s.__)("Row"),variations:Qa(),instructions:(0,s.__)("Please select a column layout."),onSelect:e=>(e=>{e.innerBlocks&&(b(e.innerBlocks.length),(0,l.dispatch)("core/block-editor").replaceInnerBlocks(n,(0,Ke.createBlocksFromInnerBlocksTemplate)(e.innerBlocks)))})(e)})):(0,a.createElement)(a.Fragment,null,p?.bg_video_src&&(0,a.createElement)("div",{className:"pagelayer-background-video",dangerouslySetInnerHTML:{__html:p.vid_src}}),p?.bg_slider&&(0,a.createElement)("div",{className:"pagelayer-bgimg-slider",dangerouslySetInnerHTML:{__html:p.slider}}),p?.parallax_img&&(0,a.createElement)("div",{className:"pagelayer-parallax-window"},(0,a.createElement)("img",{className:"pagelayer-img",src:p.parallax_img_src,title:c["parallax_img-title"],alt:c["parallax_img-alt"]})),p?.row_shape_position&&(0,a.createElement)("div",{className:"pagelayer-row-shape"},(0,a.createElement)("div",{className:"pagelayer-row-svg"},p?.row_shape_type_top&&(0,a.createElement)("svg",{className:"pagelayer-svg-top"},p.svg_top),p?.row_shape_type_bottom&&(0,a.createElement)("svg",{className:"pagelayer-svg-bottom"},p.svg_bottom))),p?.overlay_type&&(0,a.createElement)("div",{className:"pagelayer-background-overlay"}),(0,a.createElement)("div",{...k}),o&&(0,a.createElement)("div",{className:"pagelayer-block-appender"},(0,a.createElement)(u.InnerBlocks.ButtonBlockAppender,null))))})),{pagelayer_shortcodes:Oa}=pagelayer_config,Pa=Oa,Ia=(0,a.memo)((e=>{const{_props:t,plTag:l,TagName:r="div"}=e,{setAttributes:n,isSelected:s}=t,o=Pa[l],i=(e,a)=>{var t=[];if("inner_content"in a[e]){const n=a[e].inner_content;for(var l in n)for(var r in n[l]){let e=i(r,n[l]);t.push(e)}}var n=pagelayerBlockNameByTag(e);let s={};return e in a&&"atts"in a[e]&&(s={...s,...a[e].atts}),[n,s,t]},p=(e,a)=>{const t=[];var l=[];e="pagelayer/pl-inner-row"==e?"pagelayer/pl-row":e;const r=Pa[a.sc];if(r&&"has_group"in r){var n=r.has_group,s=r[n.section][n.prop],o=pagelayerBlockNameByTag(s.sc),c=p(o,s);l=[...l,...c]}if("pl_inner_row"==a.sc){if(a&&"inner_content"in a&&!pagelayer_empty(a.inner_content))for(var m in a.inner_content)for(var g in a.inner_content[m])t.push(i(g,a.inner_content[m]));return t}for(var u=0;u<a.count;u++)t.push([e,{},l]);return t};var c=o.has_group,m=o[c.section][c.prop],g="pl_inner_row"===m.sc?"pl_row":m.sc,y={},d=[g=pagelayerBlockNameByTag(g)];"pl_inner_row"===m.sc&&(d=[]);const _=(0,a.useMemo)((()=>p(g,m)),[g,m]);if(_.length>0){var f={template:_,templateLock:!1,renderAppender:!1};y={...y,...f}}if(!pagelayer_empty(d)){var v={allowedBlocks:d};y={...y,...v}}var h={...e};delete h._props,delete h.plTag,delete h.TagName;const b=(0,u.useInnerBlocksProps)(h,y);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(r,{...b}),s&&(0,a.createElement)("div",{className:"pagelayer-block-appender"},(0,a.createElement)(u.InnerBlocks.ButtonBlockAppender,null)))}));var Ba=window.React,za={},Ha={};function Fa(e,a,t,l){if(pagelayer_empty(Ha[a]))return e;var r=jQuery("<div>").html(e),n=Ha[a];for($e in n){var s;if(!pagelayer_empty(n[$e].pagelayer_content)){var o=n[$e].ID;s=n[$e].pagelayer_content,r.find(".pagelayer-mega-editor-"+o).html(s[0].outerHTML)}}return r.html()}var La={},Ma={};wp.PagelayerComponents={setting_tabs:e=>{const[t,l]=(0,a.useState)("settings"),r=e=>{l(e)};return(0,a.useEffect)((()=>{r(t);var e=document.querySelector(".components-panel");return e.setAttribute("pagelayer-component-tab",t),()=>{e.removeAttribute("pagelayer-component-tab")}}),[t]),(0,a.useEffect)((()=>(document.querySelectorAll(".pagelayer-components-tabs").forEach((e=>{var a=e.querySelectorAll(".pagelayer-panel__body.is-opened"),t=e.querySelector(".pagelayer-panel__body");a.length<1&&t&&t.querySelector(".components-button").click()})),jQuery(document).on("mouseup.components_toggle_panel",".components-panel__body",(function(){var e=jQuery(this),a=e.closest(".pl-settings").length>0?".pl-settings":":not(.pl-settings)";jQuery(a).find(".components-panel__body.is-opened").not(e).find(".components-button").click()})),()=>{jQuery(document).unbind("mouseup.components_toggle_panel")})),[]),(0,a.createElement)("div",{className:"pagelayer-setting-tabs"},(0,a.createElement)("button",{className:"pagelayer-setting-tab "+("settings"==t?"is-active":""),onClick:()=>r("settings")},(0,a.createElement)("i",{className:"fas fa-paint-brush"}),"Settings"),(0,a.createElement)("button",{className:"pagelayer-setting-tab "+("options"==t?"is-active":""),onClick:()=>r("options")},(0,a.createElement)("i",{className:"pli pli-service"}),"Options"))},radio:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:o}=t.c;return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-radio-div"},Object.keys(t.list).map((e=>(0,a.createElement)("a",{className:"pagelayer-elp-radio "+(r===e?"pagelayer-elp-radio-active":""),onClick:()=>{s({[o]:e})}},t.list[e])))))},color:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c;return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)(i,{name:s,value:l,onChange:(e="")=>{r({[s]:e})},setAttributes:r,type:t.type,handleClick:e=>{r({[s]:"$"+e})}}))},padding:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:o}=t.c;var i=pagelayer_empty(r)?["","","",""]:r;pagelayer_is_string(i)&&(i=i.split(","));const[p,c]=(0,a.useState)(!0),m=(0,a.useRef)(null),g=(e,a)=>{const l=parseFloat(a.target.value);let r=[...i];p?r=r.map((()=>l)):r[e]=l,t?.units&&(r=u(r)),s({[o]:r})},u=e=>{var a=m.current.querySelectorAll(".pagelayer-elp-units .selected")[0].innerHTML;if(Array.isArray(e))for(var t in e)e[t].length<1||(e[t]=parseFloat(e[t])+a);else e=parseFloat(e)+a;return e};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control",ref:m},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-padding-div"},(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-padding",value:parseFloat(i[0]),onChange:e=>g(0,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-padding",value:parseFloat(i[1]),onChange:e=>g(1,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-padding",value:parseFloat(i[2]),onChange:e=>g(2,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-padding",value:parseFloat(i[3]),onChange:e=>g(3,e)}),(0,a.createElement)("i",{className:"pli pli-link"+(p?" pagelayer-elp-padding-linked":""),onClick:()=>c(!p)})))},typography:e=>{const{attributes:t,prop:l,label:o,value:i,setAttributes:m,deviceType:g}=e,{name:u}=l.c,y=(0,a.useRef)(null),d=(0,a.useRef)(null),_=(0,a.useRef)(null),[f,v]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),[E,w]=(0,a.useState)(pagelayerIsGlobalTypo(i)),k={desktop:"",tablet:"_tablet",mobile:"_mobile"};var N=pagelayerParseTypo(i,!1),x=pagelayerParseTypo(t[u+"_tablet"]),C=pagelayerParseTypo(t[u+"_mobile"]);const j=e=>{var a=jQuery(e.target);"font-family"==jQuery(e.target).attr("name")&&c(jQuery(e.target)),a.closest("[pagelayer-set-global]").removeAttr("pagelayer-set-global"),S()},S=()=>{if(!f)return;const e={};e[u]={},e[u+"_tablet"]={},e[u+"_mobile"]={},pagelayer_empty(E)||(e[u]["global-font"]=E),y.current.querySelectorAll(".pagelayer-elp-typo-input").forEach((a=>{const t=a.getAttribute("name"),l=a.value,r=jQuery(a).closest("[pagelayer-set-global]");if(!(""==l&&r.length<1&&pagelayer_empty(E)||r.length>0||pagelayer_empty(l)))if(t.indexOf("_tablet")>-1){const a=t.replace("_tablet","");e[u+"_tablet"][a]=l}else if(t.indexOf("_mobile")>-1){const a=t.replace("_mobile","");e[u+"_mobile"][a]=l}else e[u][t]=l})),m(e)},T=(e,a)=>{e.stopPropagation();var t=jQuery(y.current);if(b(!1),E==a)return t.find("[pagelayer-set-global]").removeAttr("pagelayer-set-global"),void w("");w(a);var l=t.find('.pagelayer-elp-typo-input[name="font-family"]');t.find(".pagelayer-elp-label .pagelayer-typo-default").each((function(){A(jQuery(this),!0,a)})),c(l)};var $;(0,a.useEffect)((()=>{S()}),[E]),(0,a.useEffect)((()=>{var e=jQuery(y.current);return e.on("click",".pagelayer-typo-default",(function(e,a){A(jQuery(e.target),a)})),pagelayer_empty(E)||(e.find(".pagelayer-elp-typo").attr("pagelayer-set-global",1),e.find(".pagelayer-elp-typo").find("select, input").each((function(){var e=jQuery(this),a=e.val();if(pagelayer_empty(a))return!0;e.closest(".pagelayer-elp-typo").removeAttr("pagelayer-set-global")})),e.find('[pagelayer-set-global="1"] .pagelayer-typo-default').trigger("click",[!0])),()=>{e.unbind("click",".pagelayer-typo-default")}}),[f]),(0,a.useEffect)((()=>{const e=e=>{y.current&&!y.current.contains(e.target)&&v(!1),d.current&&!d.current.contains(e.target)&&_.current&&!_.current.contains(e.target)&&b(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]);const A=(e,a,t=null)=>{if(a=a||!1,t=t||E,pagelayer_empty(t)||!pagelayer_global_fonts[t])return;const l=pagelayer_global_fonts[t].value,r=e.closest(".pagelayer-elp-typo"),n=r.find(".pagelayer-elp-typo-input"),s=n.first().attr("name");let o="";if(r.attr("pagelayer-set-global",1),s in l&&(o=l[s]),"object"==typeof o)for(const e in k){let a="";e in o&&(a=o[e]),r.find('.pagelayer-elp-typo-input[name="'+s+k[e]+'"]').val(a)}else n.length>1&&n.val(""),n.first().val(o);a||(clearTimeout($),$=setTimeout(S,200))},Q=e=>(0,a.createElement)("label",{...e},e.children,(0,a.createElement)("span",{className:"pagelayer-typo-default",title:(0,s.__)("Restore Global")},(0,a.createElement)("i",{className:"fas fa-undo"}))),q={style:{"":"Default",normal:"Normal",italic:"Italic",oblique:"Oblique"},weight:{"":"Default",100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900",normal:"Normal",lighter:"Lighter",bold:"Bold",bolder:"Bolder",unset:"Unset"},variant:{"":"Default",normal:"Normal","small-caps":"Small Caps"},"deco-line":{"":"Default",none:"None",overline:"Overline","line-through":"Line Through",underline:"Underline","underline overline":"Underline Overline"},"deco-style":{"":"Default",solid:"Solid",double:"Double",dotted:"Dotted",dashed:"Dashed",wavy:"Wavy"},transform:{"":"Default",capitalize:"Capitalize",uppercase:"Uppercase",lowercase:"Lowercase"},fonts:p},O=(e,t,l,r)=>(r=r||{},(0,a.createElement)("select",{name:e,className:"pagelayer-elp-typo-input pagelayer-elp-select",onChange:j,...r},Object.keys(t).map((e=>((e="",t,l="")=>{const r=e.toLowerCase()===l.toLowerCase(),n=t||"Default";return(0,a.createElement)("option",{value:e,selected:r},n)})(e,t[e],l))))),P=[],I=(e,t,l,r)=>{const n=e!==r?"":'selected="selected"',s=t||"Default";return(0,a.createElement)("option",{className:"pagelayer-elp-typo-sele-op",value:e,type:l,selected:n},s)};for(const e in q.fonts){"default"!==e&&P.push((0,a.createElement)("optgroup",{label:pagelayerUcwords(e)}));for(const a in q.fonts[e])P.push(I(jQuery.isNumeric(a)?q.fonts[e][a]:a,q.fonts[e][a],e,N[0]))}return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-prop-holder "+(E?"pagelayer-global-on":""),ref:y},(0,a.createElement)("span",{className:"pagelayer-prop-edit",onClick:()=>v(!f)},(0,a.createElement)("i",{className:"pli pli-pencil"})),f&&(0,a.createElement)("div",{className:"pagelayer-elp-typo-div","pagelayer-screen-mode":g},(0,a.createElement)("div",{className:"pagelayer-elp-global-typo"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Global Fonts")),(0,a.createElement)("span",{className:"pagelayer-elp-typo-icons"},(0,a.createElement)("span",{className:"pagelayer-elp-global-icon "+(E?"pagelayer-active-global":""),onClick:()=>b(!h),ref:_}),(0,a.createElement)("span",{className:"pli pli-service",onClick:e=>{e.stopPropagation(),window.open(pagelayer_customizer_url+"&autofocus%5Bsection%5D=pagelayer_global_fonts_sec","_blank")}})),h&&(0,a.createElement)("div",{className:"pagelayer-global-font-list",ref:d},Object.keys(pagelayer_global_fonts).map((e=>(0,a.createElement)("div",{className:"pagelayer-global-font-list-item "+(e==E?"pagelayer-global-selected":""),"data-global-id":e,onClick:a=>T(a,e)},(0,a.createElement)("span",{className:"pagelayer-global-font-title"},pagelayer_global_fonts[e].title)))))),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Font Family")),(0,a.createElement)("select",{className:"pagelayer-elp-typo-input pagelayer-elp-select",name:"font-family",onChange:j},P)),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Font Size"),(0,a.createElement)(r,{...e})),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",max:"200",min:"0",step:"1",name:"font-size","pagelayer-show-device":"desktop",value:N[1],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",max:"200",min:"0",step:"1",name:"font-size_tablet","pagelayer-show-device":"tablet",value:x[1],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",max:"200",min:"0",step:"1",name:"font-size_mobile","pagelayer-show-device":"mobile",value:C[1],onChange:j})),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Font Style")),O("font-style",q.style,N[2])),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Font Weight"),(0,a.createElement)(r,{...e})),O("font-weight",q.weight,N[3],{"pagelayer-show-device":"desktop"}),O("font-weight_tablet",q.weight,x[3],{"pagelayer-show-device":"tablet"}),O("font-weight_mobile",q.weight,C[3],{"pagelayer-show-device":"mobile"})),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Font Variant")),O("font-variant",q.variant,N[4])),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Decoration Line")),O("text-decoration-line",q["deco-line"],N[5])),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Decoration Style")),O("text-decoration-style",q["deco-style"],N[6])),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Line Height"),(0,a.createElement)(r,{...e})),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"100",step:"0.1",name:"line-height","pagelayer-show-device":"desktop",value:N[7],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"100",step:"0.1",name:"line-height_tablet","pagelayer-show-device":"tablet",value:x[7],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"100",step:"0.1",name:"line-height_mobile","pagelayer-show-device":"mobile",value:C[7],onChange:j})),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Text Transform")),O("text-transform",q.transform,N[8])),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Letter Spacing"),(0,a.createElement)(r,{...e})),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"100",step:"0.1",name:"letter-spacing","pagelayer-show-device":"desktop",value:N[9],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"100",step:"0.1",name:"letter-spacing_tablet","pagelayer-show-device":"tablet",value:x[9],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"100",step:"0.1",name:"letter-spacing_mobile","pagelayer-show-device":"mobile",value:C[9],onChange:j})),(0,a.createElement)("div",{className:"pagelayer-elp-typo"},(0,a.createElement)(Q,{className:"pagelayer-elp-label"},(0,s.__)("Word Spacing"),(0,a.createElement)(r,{...e})),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"50",step:"0.1",name:"word-spacing","pagelayer-show-device":"desktop",value:N[10],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"50",step:"0.1",name:"word-spacing_tablet","pagelayer-show-device":"tablet",value:x[10],onChange:j}),(0,a.createElement)("input",{className:"pagelayer-elp-typo-input",type:"number",min:"0",max:"50",step:"0.1",name:"word-spacing_mobile","pagelayer-show-device":"mobile",value:C[10],onChange:j})))))},spinner:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:o}=t.c,{min:i,max:p,step:c}=t;return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-spinner-div"},(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-spinner",name:o,min:i,max:p,step:c,value:r,onChange:e=>{let a=parseFloat(e.target.value);!isNaN(p)&&a>p&&(a=p),s({[o]:a})}})))},slider:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:o}=t.c,{min:i,max:p,step:c}=t,m=(0,a.useRef)(null),g=e=>{let a=parseFloat(e.target.value);!isNaN(p)&&a>p&&(a=p),t?.units&&(a=u(a)),s({[o]:a})},u=e=>{var a=m.current.querySelectorAll(".pagelayer-elp-units .selected")[0].innerHTML;if(Array.isArray(e))for(var t in e)e[t].length<1||(e[t]=parseFloat(e[t])+a);else e=parseFloat(e)+a;return e};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control",ref:m},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-slider-div"},(0,a.createElement)("input",{type:"range",className:"pagelayer-elp-slider",value:parseFloat(r),min:i,max:p,step:c,onChange:g}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-slider-value",value:parseFloat(r),min:i,max:p,step:c,onChange:g})))},checkbox:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:o}=t.c;return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-checkbox-div"},(0,a.createElement)("input",{type:"checkbox",className:"pagelayer-elp-checkbox",checked:"true"===r,onChange:e=>{const a=e.target.checked;s({[o]:a?"true":""})}})))},select:m,box_shadow:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:i}=t.c;var p=pagelayer_empty(l)?["","","","","",""]:l;pagelayer_is_string(p)&&(p=p.split(","));const[c,m]=(0,a.useState)(!1),[g,u]=(0,a.useState)(!1),y=(0,a.useRef)(null),d=(0,a.useRef)(null),_=(0,a.useRef)(null),f=(e,a)=>{const t=[...p];t[e]=a,r({[i]:t})};return(0,a.useEffect)((()=>{const e=e=>{d.current&&!d.current.contains(e.target)&&y.current&&!y.current.contains(e.target)&&m(!1),_.current&&!_.current.contains(e.target)&&u(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-prop-holder",ref:_},(0,a.createElement)("span",{className:"pagelayer-prop-edit",onClick:()=>u(!g)},(0,a.createElement)("i",{className:"pli pli-pencil"})),g&&(0,a.createElement)("div",{className:"pagelayer-elp-shadow-div"},(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-horizontal"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Horizontal")),(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"number",max:"100",min:"-100",step:"1",name:"horizontal",value:p[0],onChange:e=>f(0,parseFloat(e.target.value))})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-vertical"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Vertical")),(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"number",max:"100",min:"-100",step:"1",name:"vertical",value:p[1],onChange:e=>f(1,parseFloat(e.target.value))})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-blur"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Blur")),(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"number",max:"100",min:"-100",step:"1",name:"blur",value:p[2],onChange:e=>f(2,parseFloat(e.target.value))})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-spread"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Spread")),(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"number",max:"100",min:"-100",step:"1",name:"spread",value:p[4],onChange:e=>f(4,parseFloat(e.target.value))})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-color"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Color")),(0,a.createElement)("div",{className:"pagelayer-elp-color-div",ref:y},(0,a.createElement)("div",{className:"pagelayer-elp-color-preview "+(""===p[3]?"pagelayer-blank-preview":""),onClick:()=>m(!c),style:{backgroundColor:p[3]}}),(0,a.createElement)("span",{className:"pagelayer-elp-remove-color",onClick:e=>{f(3,""),m(!1)}},(0,a.createElement)("i",{className:"pli pli-cross"})))),c&&(0,a.createElement)("div",{ref:d},(0,a.createElement)(o.ColorPicker,{color:p[3],onChangeComplete:e=>{e.rgb&&((e="")=>{f(3,e)})(1!=e.rgb.a?"rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":e.hex)},disableAlpha:!1})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-inset"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Shadow")),(0,a.createElement)("select",{className:"pagelayer-elp-shadow-input pagelayer-elp-select",name:"inset",onChange:e=>f(5,e.target.value)},(0,a.createElement)("option",{value:""},(0,s.__)("Outset")),(0,a.createElement)("option",{value:"inset",selected:"inset"==p[5]?"selected":""},(0,s.__)("Inset")))))))},image:e=>{const{attributes:t,prop:l,value:r,setAttributes:s,allow:o=["image"]}=e,{name:i}=l.c,p=t?.tmpAtts?{...t.tmpAtts}:{};var c=pagelayer_empty(p[i+"-url"])?"":p[i+"-url"];const m=e=>{e.stopPropagation();const a={...p};Object.keys(a).forEach((e=>{e.startsWith(i+"-")&&delete a[e]})),a[i+"-no-image-set"]=1,a[i+"-url"]=y,s({[i]:y,tmpAtts:a})};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)(u.MediaUpload,{title:"Select Image",onSelect:e=>{const{id:a,url:t,title:l,alt:r,sizes:n}=e;var o={};for(var c in n)o[i+"-"+c+"-url"]=n[c].url;const m={...p,[i+"-url"]:t,[i+"-title"]:l,[i+"-alt"]:r,[i+"-no-image-set"]:"",...o};s({[i]:a,tmpAtts:m}),s({"pagelayer-srcset":t+", "+t+" 1x"})},allowedTypes:o,value:r,render:({open:e})=>(e=>{const t=pagelayer_empty(c)?"":"pagelayer-has-image";return(0,a.createElement)("div",{className:`pagelayer-elp-image-div ${t}`,style:{backgroundImage:`url("${c}")`},onClick:()=>{e()}},(0,a.createElement)("span",{className:"pagelayer-elp-remove-image",onClick:m},(0,a.createElement)("i",{className:"pli pli-cross"})),(0,a.createElement)("span",{className:"pagelayer-elp-add-image"},(0,a.createElement)("i",{className:"dashicons dashicons-plus-alt2"})))})(e)}))},dimension:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:o}=t.c;var i=pagelayer_empty(r)?["",""]:r;pagelayer_is_string(i)&&(i=i.split(","));const[p,c]=(0,a.useState)(!0),m=(0,a.useRef)(null),g=(e,a)=>{const l=parseFloat(a.target.value);let r=[...i];p?r=r.map((()=>l)):r[e]=l,t?.units&&(r=u(r)),s({[o]:r})},u=e=>{var a=m.current.querySelectorAll(".pagelayer-elp-units .selected")[0].innerHTML;if(Array.isArray(e))for(var t in e)e[t].length<1||(e[t]=parseFloat(e[t])+a);else e=parseFloat(e)+a;return e};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control",ref:m},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-dimension-div"},(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-dimension",value:parseFloat(i[0]),onChange:e=>g(0,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-dimension",value:parseFloat(i[1]),onChange:e=>g(1,e)}),(0,a.createElement)("i",{className:"pli pli-link"+(p?" pagelayer-elp-padding-linked":""),onClick:()=>c(!p)})))},gradient:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:o}=t.c,p=(0,a.useRef)(null),c=(0,a.useRef)(null),m=(0,a.useRef)(null);var g=pagelayer_empty(l)?["","","","","","",""]:l;pagelayer_is_string(g)&&(g=g.split(","));const u=(e,a)=>{const t=[...g];t[e]=a,r({[o]:t.toString()})};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-gradient-div"},(0,a.createElement)("div",{className:"pagelayer-elp-gradient-div"},(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-gradient-angle"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Angle")),(0,a.createElement)("input",{className:"pagelayer-elp-gradient-input pagelayer-elp-gradient-angle",type:"number",max:"360",min:"0",step:"1",onChange:e=>u(0,parseFloat(e.target.value)),value:g[0]})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-gradient-color",ref:p},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Color")," 1"),(0,a.createElement)(i,{onChange:e=>u(1,e),value:g[1],type:t.type,setAttributes:r,handleClick:e=>u(1,"$"+e),showRemoveIcon:!1})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-gradient-per1"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Percentage")," 1"),(0,a.createElement)("input",{className:"pagelayer-elp-gradient-input",type:"number",max:"100",min:"-100",step:"1",onChange:e=>u(2,parseFloat(e.target.value)),value:g[2]})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-gradient-color",ref:c},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Color")," 2"),(0,a.createElement)(i,{onChange:e=>u(3,e),value:g[3],type:t.type,setAttributes:r,handleClick:e=>u(3,"$"+e),showRemoveIcon:!1})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-gradient-per2"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Percentage")," 2"),(0,a.createElement)("input",{className:"pagelayer-elp-gradient-input pagelayer-elp-gradient-per2",type:"number",max:"100",min:"0",step:"1",onChange:e=>u(4,parseFloat(e.target.value)),value:g[4]})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-gradient-color",ref:m},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Color")," 3"),(0,a.createElement)(i,{onChange:e=>u(5,e),value:g[5],type:t.type,setAttributes:r,handleClick:e=>u(5,"$"+e),showRemoveIcon:!1})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-gradient-per3"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Percentage")," 3"),(0,a.createElement)("input",{className:"pagelayer-elp-gradient-input pagelayer-elp-gradient-per3",type:"number",max:"100",min:"0",step:"1",onChange:e=>u(6,parseFloat(e.target.value)),value:g[6]})))))},rich_text:e=>{const{_props:t,propsName:l,value:r,tagName:n}=e,{setAttributes:s,attributes:o}=t,[i,p]=(0,a.useState)(null),c=(0,a.useRef)(null);var m={...e},g=pagelayerTrim(r);g==`{{${l}}}`&&(g=""),delete m._props,delete m.propsName,delete m.value,delete m["pagelayer-editable"];const y=["p","h1","h2","h3","h4","h5","h6"];var d=jQuery(`<div>${r}</div>`)[0].childNodes,_=null;return 1==d.length&&3!=d[0].nodeType&&-1!=y.indexOf(d[0].localName)&&(_=d[0].localName,delete m.tagName),(0,a.useEffect)((()=>{c.current&&c.current.dispatchEvent(new Event("input",{bubbles:!0}))}),[i]),(0,a.useEffect)((()=>{d.length<1||p(y.indexOf(d[0].localName))}),[]),(0,a.createElement)(a.Fragment,null,_?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(u.BlockControls,{group:"block"},(0,a.createElement)(N,{options:[1,2,3,4,5,6,0],value:i,onChange:e=>p(e)})),(0,a.createElement)(n,{...m},(0,a.createElement)(u.RichText,{ref:c,key:"editable",tagName:_,keepPlaceholderOnFocus:!0,placeholder:"Add Content...",onChange:e=>(e=>{if(null!=i){var a=y[i],t=`<${a}>${e}</${a}>`;d[0].attributes.length>0&&(t=`<${a} ${d[0].attributes}>${e}</${a}>`),s({[l]:t})}})(e),value:d[0].innerHTML,...d[0].attributes}))):(0,a.createElement)(u.RichText,{key:"editable",keepPlaceholderOnFocus:!0,placeholder:"Add Content...",onChange:e=>s({[l]:e}),value:pagelayer_empty(o[l])?g:o[l],...m}))},icon:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c,[o,i]=(0,a.useState)(pagelayer_loaded_icons[0]),[p,c]=(0,a.useState)(!1),[m,g]=(0,a.useState)(""),[u,y]=(0,a.useState)({fas:!0,far:!1,fab:!1});var d=l;if(d){var _=d.split(" fa-");d=_[1]}const f=e=>{y((a=>({...a,[e]:!a[e]})))},v=e=>{r({[s]:e.currentTarget.children[0].getAttribute("class")})};var h={};if("list"in t&&t.list.length>0)for(var b in j)for(var E in h[b]={},j[b]){h[b][E]={};var w=[];t.list.forEach((function(e){j[b][E].icons.includes(e)&&w.push(e)})),h[b][E].icons=w,h[b][E].pre=E}else h=j;return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-icon-div",onClick:()=>{c(!p)}},(0,a.createElement)("div",{className:"pagelayer-elp-icon-preview"},(0,a.createElement)("i",{className:l}),(0,a.createElement)("span",{className:"pagelayer-elp-icon-name"},l?d:"Choose icon")),(0,a.createElement)("span",{className:"pagelayer-elp-icon-open",onClick:()=>c(!p)},"▼"),(0,a.createElement)("span",{className:"pagelayer-elp-icon-close",style:{display:l?"block":"none"},onClick:()=>{r({[s]:""})}},(0,a.createElement)("b",null,"× "))),p&&(0,a.createElement)("div",{className:"pagelayer-elp-icon-selector"},pagelayer_loaded_icons.length>1&&(0,a.createElement)("select",{className:"pagelayer-elp-icon-sets",onChange:e=>{i(e.target.value)},value:o},pagelayer_loaded_icons.map((e=>(0,a.createElement)("option",{key:e,value:e},e)))),(0,a.createElement)("span",{className:"pagelayer-elp-icon-type"},(0,a.createElement)("p",{onClick:()=>f("fas"),className:u.fas?"active":""},"Solid"),(0,a.createElement)("p",{onClick:()=>f("far"),className:u.far?"active":""},"Regular"),(0,a.createElement)("p",{onClick:()=>f("fab"),className:u.fab?"active":""},"Brand")),(0,a.createElement)("input",{type:"text",className:"pagelayer-elp-search-icon",name:"search-icon",placeholder:"search",value:m,onChange:e=>{g(e.target.value)}}),(0,a.createElement)("div",{className:"pagelayer-elp-icon-list"},Object.keys(h[o]).map((e=>{if(e in u&&!pagelayer_empty(u[e]))return h[o][e].icons.filter((e=>e.includes(m.toLowerCase())||m.length<1)).map((t=>((e,t)=>(0,a.createElement)("span",{className:"pagelayer-elp-icon-span",onClick:v},(0,a.createElement)("i",{className:`${t} fa-${e}`,icon:e})," ",e))(t,e)))})))))},link:e=>{const{attributes:t,prop:l,value:r,setAttributes:o}=e,{name:i}=l.c,p=t?.tmpAtts?t.tmpAtts:{},[c,m]=(0,a.useState)({}),[g,u]=(0,a.useState)(!1),[y,d]=(0,a.useState)(!1),[_,f]=(0,a.useState)(""),v=(0,a.useRef)(null),h=e=>{var a={...c};for(var t in e)pagelayer_empty(e[t])?delete a[t]:a[t]=e[t];var l,r="object"==typeof(l=a)&&1==pagelayerLength(l)&&"link"in l?l.link:l;r=pagelayer_empty(r)?"":r,m(a),o({[i]:r})};(0,a.useEffect)((()=>{"selector"in l&&u(!0);var e=t[i];"object"!=typeof e&&(e={link:e});const a=i in p?p[i]:e?.link;pagelayer_empty(a)||f(a),h(e)}),[l]),(0,a.useEffect)((()=>{var e=jQuery(v.current).find(".pagelayer-elp-link-list");e.on("click",(function(a){a.stopPropagation();var t=jQuery(a.target).closest(".pagelayer-elp-link-item");if(t.length<1)return;var l=t.attr("data-permalink"),r=t.attr("data-id");jQuery(v.current).find(".pagelayer-elp-link").val(l),h({link:r});const n={...p,[i]:l};o({tmpAtts:n}),f(l),e.hide()})),jQuery(document).on("click",(function(a){e.hide()}))}),[]);const b=e=>{const{checked:a}=e.target,t=e.target.name;h({[t]:!!a})};var E={};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control",ref:v},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-link-div pagelayer-elp-input-icon "+(g?"":"pagelayer-elp-link-no-addons")},(0,a.createElement)("input",{className:"pagelayer-elp-link",type:"text",value:_,onChange:e=>{var a=e.target.value;f(a),h({link:a});const t={...p,[i]:a};o({tmpAtts:t})},onInput:e=>{e.stopPropagation();const a=e.target.value;var t=jQuery(v.current).find(".pagelayer-elp-link-list");t.is(":visible")||t.show(),clearTimeout(E),E=setTimeout((function(){jQuery.ajax({url:pagelayer_ajax_url,type:"post",data:{action:"wp-link-ajax",_ajax_linking_nonce:T,search:a},success:function(e){var a=jQuery.parseJSON(e),l="";if(pagelayer_empty(a))l=(0,s.__)("Custom Url");else if("object"==typeof a)for(var r in a){var n=a[r];l+='<div class="pagelayer-elp-link-item" data-id="'+n.ID+'" data-permalink="'+n.permalink+'"><div class="pagelayer-elp-link-title"><span class="pagelayer-elp-link-item-title" title="'+n.title+'">'+n.title+'</span><span class="pagelayer-elp-link-item-perma" title="'+n.permalink+'">'+n.permalink+'</span></div><div class="pagelayer-elp-link-info"><span title="'+n.info+'">'+n.info+"</span></div></div>"}t.html(l)},fail:function(e){t.html("Some error occured in getting the link data")}})}),200)}}),(0,a.createElement)("i",{className:"pli pli-service pagelayer-elp-link-icon",title:"link_options",onClick:()=>d(!y)}),(0,a.createElement)("div",{className:"pagelayer-elp-link-list"}),g&&y&&(0,a.createElement)("div",{className:"pagelayer-elp-link-addons"},(0,a.createElement)("div",{className:"pagelayer-elp-link-cb-div"},(0,a.createElement)("div",{className:"pagelayer-elp-link-label-div"},(0,a.createElement)("label",{className:"pagelayer-elp-link-label"},(0,s.__)("Open link in new window (tab)"))),(0,a.createElement)("div",null,(0,a.createElement)("input",{type:"checkbox",name:"target",className:"pagelayer-elp-checkbox",checked:!pagelayer_empty(c.target),onChange:b}))),(0,a.createElement)("div",{className:"pagelayer-elp-link-cb-div"},(0,a.createElement)("div",{className:"pagelayer-elp-link-label-div"},(0,a.createElement)("label",{className:"pagelayer-elp-link-label"},(0,s.__)("Add Nofollow"))),(0,a.createElement)("div",null,(0,a.createElement)("input",{type:"checkbox",name:"rel",className:"pagelayer-elp-checkbox",checked:!pagelayer_empty(c.rel),onChange:b}))),(0,a.createElement)("div",{className:"pagelayer-elp-link-ca"},(0,a.createElement)("div",{className:"pagelayer-elp-link-label-div"},(0,a.createElement)("label",{className:"pagelayer-elp-link-label"},(0,s.__)("Custom Attributes"))),(0,a.createElement)("input",{type:"text",className:"pagelayer-elp-text",placeholder:"key = value",value:c?.attrs,onChange:e=>h({attrs:e.target.value})}),(0,a.createElement)("p",{className:"pagelayer-elp-link-desc"},(0,s.__)("Setting custom attribute for link. "),(0,a.createElement)("strong",null,(0,s.__)("attribute = value")),(0,s.__)("In this way the attribute and its value can be added. Separate key-value pairs using"),(0,a.createElement)("strong",null," ",(0,s.__)("semicolon ;")),".")))))},video:$,audio:$,media:$,multi_image:e=>{const{prop:t,label:l,value:r,setAttributes:o,attributes:i,allow:p=["image"]}=e,{name:c}=t.c,m=i?.tmpAtts?i.tmpAtts:{},[g,y]=(0,a.useState)([]),[d,_]=(0,a.useState)({});return(0,a.useEffect)((()=>{var e=[];pagelayer_empty(t.c.val)||(e=t.c.val,pagelayer_is_string(e)&&(e=t.c.val.split(",")),y(e)),wp.media.query({post__in:e}).more().then((()=>{var a={};for(var t in e){var l=wp.media.attachment(e[t]).get("url");a["i"+t]=l}_(a)}))}),[]),(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)(u.MediaUpload,{title:"Select Image",onSelect:e=>{var a=[],t={},l={},r={},n={},s={};for(var i in e){const{id:o,url:c,title:m,link:u,caption:y,sizes:d}=e[i];var p="i"+o;for(var g in a.push(o),t[p]=c,r[p]=m,n[p]=u,s[p]=y,l[p]={},d)l[p][g]=d[g].url}_(t),y(a);const u={...m,[c+"-urls"]:t,[c+"-all-urls"]:l,[c+"-all-titles"]:r,[c+"-all-links"]:n,[c+"-all-captions"]:s};o({[c]:a,tmpAtts:u})},allowedTypes:p,value:g,multiple:!0,gallery:!0,addToGallery:!0,autoOpen:!0,render:({open:e})=>(e=>(0,a.createElement)("div",{className:"pagelayer-elp-multi_image-div"},(0,a.createElement)("center",null,(0,a.createElement)("button",{className:"pagelayer-elp-button",onClick:()=>e()},(0,s.__)("Add Images"))),(0,a.createElement)("div",{className:"pagelayer-elp-multi_image-thumbs",onClick:()=>e()},d&&Object.keys(d).map((e=>(0,a.createElement)("div",{className:"pagelayer-elp-multi_image-thumb",style:{backgroundImage:`url(${d[e]})`}}))))))(e)}))},shadow:e=>{const{prop:t,label:l,value:r,setAttributes:i}=e,{name:p}=t.c;var c=pagelayer_empty(r)?["","","",""]:r;pagelayer_is_string(r)&&(c=r.split(","));const[m,g]=(0,a.useState)(!1),[u,y]=(0,a.useState)(!1),d=(0,a.useRef)(null),_=(0,a.useRef)(null),f=(0,a.useRef)(null),v=(e,a)=>{const t=[...c];t[e]=a,i({[p]:t})};return(0,a.useEffect)((()=>{const e=e=>{_.current&&!_.current.contains(e.target)&&d.current&&!d.current.contains(e.target)&&g(!1),f.current&&!f.current.contains(e.target)&&y(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-prop-holder",ref:f},(0,a.createElement)("span",{className:"pagelayer-prop-edit",onClick:()=>y(!u)},(0,a.createElement)("i",{className:"pli pli-pencil"})),u&&(0,a.createElement)("div",{className:"pagelayer-elp-shadow-div"},(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-horizontal"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Horizontal")),(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"number",max:"100",min:"-100",step:"1",name:"horizontal",value:c[0],onChange:e=>v(0,parseFloat(e.target.value))})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-vertical"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Vertical")),(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"number",max:"100",min:"-100",step:"1",name:"vertical",value:c[1],onChange:e=>v(1,parseFloat(e.target.value))})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-blur"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Blur")),(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"number",max:"100",min:"-100",step:"1",name:"blur",value:c[2],onChange:e=>v(2,parseFloat(e.target.value))})),(0,a.createElement)("div",{className:"pagelayer-elp-prop-grp pagelayer-elp-shadow-color"},(0,a.createElement)("label",{className:"pagelayer-elp-label"},(0,s.__)("Color")),(0,a.createElement)("div",{className:"pagelayer-elp-color-div",ref:_},(0,a.createElement)("div",{className:"pagelayer-elp-color-preview "+(""===c[3]?"pagelayer-blank-preview":""),onClick:()=>g(!m),style:{backgroundColor:c[3]}}),(0,a.createElement)("span",{className:"pagelayer-elp-remove-color",onClick:()=>{v(3,""),g(!1)}},(0,a.createElement)("i",{className:"pli pli-cross"})))),m&&(0,a.createElement)("div",{ref:_,className:"test"},(0,a.createElement)(o.ColorPicker,{color:c[3],onChangeComplete:e=>{e.rgb&&((e="")=>{v(3,e)})(1!=e.rgb.a?"rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":e.hex)},disableAlpha:!1})))))},datetime:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c;return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)("div",{className:"pagelayer-form-item","pagelayer-elp-name":s},(0,a.createElement)("div",{className:"pagelayer-elp-label-div",type:e.prop.type},(0,a.createElement)(n,{...e})),(0,a.createElement)("div",{className:"pagelayer-elp-datetime-div"},(0,a.createElement)("input",{className:"pagelayer-elp-shadow-input",type:"date",name:s,value:l,style:{width:"100%"},onChange:e=>r({[s]:e.target.value})}))))},multiselect:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:o}=t.c;var i=pagelayer_empty(r)?[]:r;pagelayer_is_string(i)&&(i=i.split(","));const[p,c]=(0,a.useState)(!1);return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-multiselect-div pagelayer-elp-pos-rel"},(0,a.createElement)("div",{className:"pagelayer-elp-multiselect",onClick:()=>c(!p)},i.map((e=>(0,a.createElement)("span",{className:"pagelayer-elp-multiselect-selected","data-val":e},t.list[e]," ",(0,a.createElement)("span",{className:"pagelayer-elp-multiselect-remove",onClick:()=>(e=>{const a=i.filter((a=>a!==e));s({[o]:a.join(",")})})(e)},"x"))))),p&&(0,a.createElement)("ul",{className:"pagelayer-elp-multiselect-ul "+(p?"open":""),name:o},Object.keys(t.list).map((e=>((e,t)=>{const l=i.includes(e)?"selected":"";return(0,a.createElement)("li",{className:"pagelayer-elp-multiselect-option","data-val":e,"data-selected":l,onClick:()=>(e=>{if(i.includes(e)){const a=i.filter((a=>a!==e));s({[o]:a.join(",")})}else{const a=[...i,e];s({[o]:a.join(",")})}})(e)},t)})(e,t.list[e]))))))},font_family:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c;var o=pagelayerParseTypo(l,!1);const i=[],p=(e,t,l,r)=>{const n=e!==r?"":'selected="selected"',s=t||"Default";return(0,a.createElement)("option",{className:"pagelayer-elp-select-option",value:e,type:l,selected:n},s)};for(const e in A){"default"!=e&&i.push((0,a.createElement)("optgroup",{label:pagelayerUcwords(e)}));for(const a in A[e])i.push(p(jQuery.isNumeric(a)?A[e][a]:a,A[e][a],e,o[0]))}return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{class:"pagelayer-elp-select-div pagelayer-elp-pos-rel"},(0,a.createElement)("select",{className:"pagelayer-elp-select pagelayer-select",onChange:e=>{c(jQuery(e.target)),r({[s]:e.target.value})},name:t.c.name},i)))},textarea:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c,o=t.rows?t.rows:"";return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-textarea-div"},(0,a.createElement)("textarea",{rows:o,className:"pagelayer-elp-textarea",onChange:e=>{r({[s]:e.target.value})}},l)))},filter:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c,[o,i]=(0,a.useState)(!1);var p=pagelayer_empty(l)?[0,100,100,0,0,100,100]:l;pagelayer_is_string(p)&&(p=p.split(","));const c=(0,a.useRef)(null),m=[["blur","10","0.1"],["brightness","200","1"],["contrast","200","1"],["grayscale","200","1"],["hue","360","1"],["opacity","100","1"],["saturate","200","1"]];return(0,a.useEffect)((()=>{const e=e=>{c.current&&!c.current.contains(e.target)&&i(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-prop-holder",ref:c},(0,a.createElement)("span",{className:"pagelayer-prop-edit",onClick:()=>i(!o)},(0,a.createElement)("i",{className:"pli pli-pencil"})),o&&(0,a.createElement)("div",{className:"pagelayer-elp-filter-div"},m.map(((e,t)=>(0,a.createElement)("div",{className:`pagelayer-elp-prop-grp pagelayer-elp-filter-${m[t][0]}`},(0,a.createElement)("label",{className:"pagelayer-elp-label"},m[t][0]),(0,a.createElement)("input",{className:`pagelayer-elp-slider pagelayer-elp-filter-input pagelayer-elp-filter-${m[t][0]}`,type:"range",max:m[t][1],min:"0",step:m[t][2],value:p[t],onChange:e=>((e,a)=>{const t=parseFloat(a.target.value);let l=[...p];l[e]=t,r({[s]:l})})(t,e)}),(0,a.createElement)("span",{className:"pagelayer-elp-filter-val"})))))))},access:e=>{const{children:t}=e,[l,r]=(0,a.useState)(!1),s=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&r(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]);const o=l?"pli-caret-open":"";return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-access-div",ref:s},(0,a.createElement)("span",{className:"pagelayer-elp-access",onClick:()=>r(!l)},(0,a.createElement)("i",{className:`pli pli-caret-right ${o}`})),l&&(0,a.createElement)("div",{className:"pagelayer-elp-access-holder"},t)))},modal:e=>{const{prop:t,children:l,label:r}=e,{width:s}=t,[i,p]=(0,a.useState)(!1),c=(0,a.useRef)(null),m=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=e=>{c.current&&!c.current.contains(e.target)&&m.current&&!m.current.contains(e.target)&&p(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]);var g=pagelayer_empty(s)?{}:{width:s};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)("div",{className:"pagelayer-elp-modal-div"},(0,a.createElement)("span",{className:"pagelayer-elp-modal",onClick:()=>p(!0),ref:m},(0,a.createElement)("i",{className:"pli pli-window"})),i&&(0,a.createElement)(o.Popover,{className:"pagelayer-elp-modal-wrapper",position:"top-start"},(0,a.createElement)("div",{className:"pagelayer-elp-modal-wrap",style:g,ref:c},(0,a.createElement)("div",{className:"pagelayer-elp-modal-header"},r,(0,a.createElement)("i",{className:"pagelayer-elp-modal-close pli pli-cross","aria-hidden":"true",onClick:()=>p(!1)})),(0,a.createElement)("hr",null),(0,a.createElement)("div",{className:"pagelayer-elp-modal-holder"},l)))))},menus:m},wp.PagelayerBlocks={row:qa,col:e=>{const{_props:t,data:r}=e,{clientId:n}=t,{atts:s,tmp:o,id:i}=r,{getBlockOrder:p}=(0,l.select)("core/block-editor"),c=p(n).length>0,m=c?"pagelayer-has-child":"",g=wp.blocks.getBlockTypes().map((e=>e.name)).filter((e=>"pagelayer/pl-col"!==e)),y={templateLock:!1,renderAppender:c?void 0:u.InnerBlocks.ButtonBlockAppender,allowedBlocks:g},d={className:`pagelayer-col-holder ${m}`},_=(0,u.useInnerBlocksProps)(d,y);return(0,a.createElement)(a.Fragment,null,s?.bg_video_src&&(0,a.createElement)("div",{className:"pagelayer-background-video",dangerouslySetInnerHTML:{__html:s.vid_src}}),s?.bg_slider&&(0,a.createElement)("div",{className:"pagelayer-bgimg-slider",dangerouslySetInnerHTML:{__html:s.slider}}),s?.parallax_img&&(0,a.createElement)("div",{className:"pagelayer-parallax-window"},(0,a.createElement)("img",{className:"pagelayer-img",src:s.parallax_img_src,title:o["parallax_img-title"],alt:o["parallax_img-alt"]})),s?.overlay_type&&(0,a.createElement)("div",{className:"pagelayer-background-overlay"}),(0,a.createElement)("div",{..._}))},quote:e=>{const{_props:t,pl_props:l,tag:r,data:n}=e,{setAttributes:s}=t,{atts:o}=n;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:`pagelayer-quote-holder pagelayer-quote-${o?.quote_style}`},o?.quotation_pos&&(0,a.createElement)("i",{className:`fa fa-quote-left pagelayer-quotation-${o.quotation_pos}`}),(0,a.createElement)("div",{className:"pagelayer-quote-content"},o?.double_indent&&(0,a.createElement)("i",{className:"fa fa-quote-left"}),(0,a.createElement)(u.RichText,{key:"editable",tagName:"span",keepPlaceholderOnFocus:!0,placeholder:"Add Quote description...",onChange:e=>s({quote_content:e}),value:o.quote_content}),o?.double_indent&&(0,a.createElement)("i",{className:"fa fa-quote-right"})),(0,a.createElement)("div",{className:"pagelayer-quote-cite"},o?.cite_url?(0,a.createElement)("a",{href:o.cite_url,className:"pagelayer-link-sel",onClick:e=>e.preventDefault()},(0,a.createElement)(u.RichText,{key:"editable",tagName:"span",className:"pagelayer-cite-holder",keepPlaceholderOnFocus:!0,placeholder:"Add Cite...",onChange:e=>s({cite:e}),value:o.cite})):(0,a.createElement)(u.RichText,{key:"editable",tagName:"span",className:"pagelayer-cite-holder",keepPlaceholderOnFocus:!0,placeholder:"Add Cite...",onChange:e=>s({cite:e}),value:o.cite}))))},tabs:e=>{const{_props:t,pl_props:r,tag:n,data:s}=e,{setAttributes:o,clientId:i}=t,{id:p,atts:c}=s,m=(0,a.useRef)(null),{getBlocks:g}=(0,l.select)("core/block-editor"),y=g(i),d=e=>{var a=jQuery(e.target).closest(".pagelayer-tablinks"),t=a.attr("client_id");a.parent().find(".pagelayer-tablinks").removeClass("active"),a.addClass("active");var l=pagelayer_query("#block-"+t);l.parent().children().each((function(){jQuery(this).children(".pagelayer-tab").hide()})),l.children(".pagelayer-tab").show()};(0,a.useEffect)((()=>{var e=jQuery(m.current),a=e.find('[default_active="true"]');setTimeout((()=>{a.length>0?a.last()[0].click():e.find(".pagelayer-tablinks").length>0&&e.find(".pagelayer-tablinks")[0].click()}),100)}),[]);var _=null;(0,a.useEffect)((()=>{var e=jQuery(m.current).children();if(c.rotate>0){var a=0;_=setInterval((function(){a>=e.length&&(a=0),jQuery(e[a])[0].click(),a++}),c.rotate)}else clearInterval(_);return()=>{clearInterval(_)}}),[c?.rotate]);var f={plTag:"pl_"+n,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-tabs-holder",ref:m},y.map((e=>(0,a.createElement)("span",{"tab-id":e.attributes["pagelayer-id"],className:"pagelayer-tablinks",client_id:e.clientId,onClick:d,default_active:e.attributes?.default_active},(0,a.createElement)("i",{className:e.attributes?.tab_icon}),(0,a.createElement)(u.RichText,{key:"editable",tagName:"span",keepPlaceholderOnFocus:!0,placeholder:"Add Tab Title...",onChange:a=>{return t=e.clientId,r=a,void(0,l.dispatch)("core/block-editor").updateBlockAttributes(t,{title:r});var t,r},onClick:d,value:e.attributes?.title}))))),(0,a.createElement)("div",{className:"pagelayer-tabcontainer"},(0,a.createElement)(Ia,{...f})))},video:e=>{const{_props:t,tag:l,data:r}=e,{setAttributes:n,isSelected:s}=t,{id:o,atts:i,tmp:p}=r;(0,a.useEffect)((()=>{pagelayer_pl_video(pagelayer_query(`.p-${o}`))})),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${o}`).find(".pagelayer-video-overlay");e.length>0&&e.show()}),[i]);var c=pagelayer_empty(p["src-url"])?i.src:p["src-url"],m=pagelayer_video_url(c,!0);if("src"in m&&!pagelayer_empty(m.src)){if(m.src+=-1==m.src.indexOf("?")?"?":"",m.src+="autoplay"in i?"&autoplay=1":"&autoplay=0","mute"in i){var g="true"===i.mute?1:0;m.src+="&"+("vimeo"==m.type?"muted":"mute")+"="+g}"loop"in i&&(m.src+="&loop=1"),i.vid_src=m.src+("youtube"==m.type?"&playlist="+m.id:"")}return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:`pagelayer-video-holder pagelayer-video-${i?.video_ratio}`},i?.vid_src&&(0,a.createElement)("iframe",{id:"embed_video",className:"pagelayer-video-iframe",width:"100%",height:"auto",src:i?.vid_src,frameborder:0}),i?.lightbox?(0,a.createElement)("a",{href:c},i?.overlay&&(0,a.createElement)("div",{className:"pagelayer-video-overlay",style:{backgroundImage:`url(${p["video_overlay_image-url"]})`}},(0,a.createElement)("i",{className:i.play_icon,"aria-hidden":"true"}))):(0,a.createElement)(a.Fragment,null,i?.overlay&&(0,a.createElement)("div",{className:"pagelayer-video-overlay",style:{backgroundImage:`url(${p["video_overlay_image-url"]})`}},(0,a.createElement)("i",{className:i.play_icon,"aria-hidden":"true"}))),!s&&(0,a.createElement)("div",{className:"pagelayer-video-edit"},(0,a.createElement)("span",{className:"fa fa-pencil"}))))},image_slider:e=>{const{_props:t,tag:l,data:r}=e,{setAttributes:n}=t,{atts:o,id:i}=r,[p,c]=(0,a.useState)({});(0,a.useEffect)((()=>{var e=o?.ids?o?.ids:[];wp.media.query({post__in:e}).more().then((function(){var a={},t={},l={};for(var r in e){var n=wp.media.attachment(e[r]),s="i"+e[r];for(var r in a[s]=n.get("url"),t[s]=n.get("title"),l[s]={},n.get("sizes"))l[s][r]=n.attributes.sizes[r].url}c({urls:a,allUrls:l,allTitles:t})}))}),[o]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${i}`);pagelayer_empty(p)||pagelayer_pl_image_slider(e)}),[o,p]);var m={};return"controls"in o&&("arrows"!=o.controls&&"none"!=o.controls||(m["data-pager"]="false"),"pager"!=o.controls&&"none"!=o.controls||(m["data-controls"]="false")),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-image-slider-div"},(0,a.createElement)("ul",{className:"pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...m},(()=>{if(pagelayer_empty(p)||pagelayer_empty(p.urls))return(0,a.createElement)("h4",{style:{textAlign:"center"}},(0,s.__)("Please select Images from left side Widget properties."));var e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-image-slider-ul");const t=p.urls,l=p.allUrls,r=p.allTitles,n=[],c="link_type"in o&&!pagelayer_empty(o.link_type);for(const e in t){let s=t[e];"custom"!==o.size&&e in l&&o.size in l[e]&&(s=l[e][o.size]);const i=(0,a.createElement)("li",{className:"pagelayer-slider-item",key:e},c?(0,a.createElement)("a",{href:"media_file"===o.link_type?pagelayer_empty(t[e])?s:t[e]:o.link||"",className:"pagelayer-link-sel"},(0,a.createElement)("img",{className:"pagelayer-img",src:s,title:r[e],alt:r[e]})):(0,a.createElement)("img",{className:"pagelayer-img",src:s,title:r[e],alt:r[e]}));n.push(i)}return(0,a.createElement)(a.Fragment,null,n)})())))},testimonial_slider:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:o,tag:i}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),u=(0,l.select)("core/block-editor").getBlocks(s).length,y=()=>{let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-testimonials-holder"),pagelayer_pl_testimonial_slider(e)};if(p!=u){let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-testimonials-holder"),c(u)}(0,a.useEffect)((()=>{setTimeout(y,200)}),[n]),(0,a.useEffect)(y,[u,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${o}`);return e.find(".pagelayer-owl-carousel").on("refresh.pagelayer.owl",(function(){g(!m)})),e.find(".pagelayer-testimonials-holder > .pagelayer-owl-stage-outer").length<1&&y(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var d={plTag:i,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ia,{className:"pagelayer-testimonials-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...d}))},review_slider:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:o,tag:i}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),u=(0,l.select)("core/block-editor").getBlocks(s).length,y=()=>{let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-reviews-holder"),pagelayer_reviews_slider(e)};if(p!=u){let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-reviews-holder"),c(u)}(0,a.useEffect)((()=>{setTimeout(y,200)}),[n]),(0,a.useEffect)(y,[u,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${o}`);return e.find(".pagelayer-owl-carousel").on("refresh.pagelayer.owl",(function(){g(!m)})),e.find(".pagelayer-reviews-holder > .pagelayer-owl-stage-outer").length<1&&y(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var d={plTag:i,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-review-slides-container"},(0,a.createElement)(Ia,{className:"pagelayer-reviews-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...d})))},video_slider:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:o,tag:i}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),u=(0,l.select)("core/block-editor").getBlocks(s).length,y=()=>{let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-video-slider-holder"),pagelayer_pl_video_slider(e)};if(p!=u){let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-video-slider-holder"),c(u)}(0,a.useEffect)((()=>{setTimeout(y,200)}),[n]),(0,a.useEffect)(y,[u,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${o}`);return e.find(".pagelayer-owl-carousel").on("refresh.pagelayer.owl",(function(){g(!m)})),e.find(".pagelayer-video-slider-holder > .pagelayer-owl-stage-outer").length<1&&y(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var d={plTag:i,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ia,{className:"pagelayer-video-slider-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...d}))},slides:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:o,tag:i}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),u=(0,l.select)("core/block-editor").getBlocks(s).length,y=()=>{let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-slides-holder"),pagelayer_pl_slides(e)};if(p!=u){let e=pagelayer_query(`.p-${o}`);pagelayer_owl_destroy(e,".pagelayer-slides-holder"),c(u)}(0,a.useEffect)((()=>{setTimeout(y,400)}),[n]),(0,a.useEffect)(y,[u,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${o}`);return e.find(".pagelayer-owl-carousel").on("refresh.pagelayer.owl",(function(){g(!m)})),e.find(".pagelayer-slides-holder > .pagelayer-owl-stage-outer").length<1&&y(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var d={plTag:i,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ia,{className:"pagelayer-slides-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...d}))},fb_btn:e=>{const{_props:t,pl_props:l,tag:r,data:n}=e,{attributes:s}=t,{id:o,atts:i}=n,p=(0,a.useRef)(null),[c,m]=(0,a.useState)(null);return(0,a.useEffect)((()=>{"current"==i.link_type&&(i["custom-url"]=pagelayer_post_permalink,m(i["custom-url"]));const e=setTimeout((()=>{pagelayer_fb_apps(jQuery(p.current))}),300);return()=>{clearTimeout(e)}}),[s]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-fb-btn-container","pagelayer-facebook-load":"1",ref:p},(0,a.createElement)("span",{className:"pagelayer-app-details","pagelayer-app-id":i["fb-app-id"]?i["fb-app-id"]:""}),(0,a.createElement)("div",{id:"fb-root"}),(0,a.createElement)("div",{className:"fb-like pagelayer-fb-btn-details",id:"fb-like-btn","data-href":i["custom-url"]?i["custom-url"]:c,"data-layout":i?.layout,"data-action":i?.btn_action,"data-show-faces":i?.peoples_faces,"data-size":i?.btn_size,"data-share":i?.share_btn})))},posts:e=>{const{_props:t,pl_props:l,tag:r,data:n}=e,{id:s,atts:o}=n,{attributes:i}=t,[p,c]=(0,a.useState)([]),[m,g]=(0,a.useState)("");(0,a.useEffect)((()=>{const e={};e.pagelayer_nonce=pagelayer_ajax_nonce,o.count&&(e.posts_per_page=o.count),o.show_thumb&&(e.show_thumb=o.show_thumb),o.thumb_size&&(e.thumb_size=o.thumb_size),o.show_content&&(e.show_content=o.show_content),o.show_title&&(e.show_title=o.show_title),o.more&&(e.more=o.more),o.btn_type&&(e.btn_type=o.btn_type),o.size&&(e.size=o.size),o.icon_position&&(e.icon_position=o.icon_position),o.icon&&(e.icon=o.icon),o.show_more&&(e.show_more=o.show_more),o.meta_sep&&(e.meta_sep=o.meta_sep),o.exc_length&&(e.exc_length=o.exc_length),o.post_type&&(e.post_type=o.post_type),o.posts_order&&(e.order=o.posts_order),o.inc_term&&(e.term=o.inc_term),o.inc_author&&(e.author_name=o.inc_author),o.exc_term&&(e.exc_term=o.exc_term),o.exc_author&&(e.exc_author=o.exc_author),o.offset&&(e.offset=o.offset),o.ignore_sticky&&(e.ignore_sticky=o.ignore_sticky),o.orderby&&(e.orderby=o.orderby),o.by_period&&(e.by_period=o.by_period),o.before_date&&(e.before_date=o.before_date),o.after_date&&(e.after_date=o.after_date),o.thumb_img_type&&(e.thumb_img_type=o.thumb_img_type);var a=n.tmp["def_thumb_img-"+o.thumb_size+"-url"];if(o.def_thumb_img&&(e.def_thumb_img=pagelayer_empty(a)?n.tmp["def_thumb_img-url"]:a),!pagelayer_empty(o.meta)){var t=o.meta.split(",");jQuery.each(t,(function(a,t){e[t]=t}))}const l=JSON.stringify(e),r=p.find((e=>JSON.stringify(e.post)===l));r?g(r.data):jQuery.ajax({url:pagelayer_ajax_url+"action=pagelayer_posts_data",type:"post",data:e,success:function(a){g(a),c((t=>[...t,{post:e,data:a}]))}})}),[i]);const u=e=>{pagelayer_owl_destroy(e,".pagelayer-posts-container"),e.find(".pagelayer-posts-container").removeClass((function(e,a){const t=a.match(/pagelayer-owl-\S+/g);return t?t.join(" "):""}))};return(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${s}`);o.enable_slider?setTimeout((()=>{u(e),pagelayer_pl_posts(e)}),50):u(e)}),[i,m]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-posts-container",dangerouslySetInnerHTML:{__html:m}}),o?.infinite_types&&(0,a.createElement)("div",{className:"pagelayer_load_button","data-text":o.infinite_final},(0,a.createElement)("a",{"data-max":o?.max_pages,className:`pagelayer-btn-holder pagelayer-btn-load pagelayer-ele-link ${o.infinite_btn_type} ${o.infinite_btn_size} ${o.infinite_btn_size} ${o?.load_btn_icon_position}`},o?.load_btn_icon&&(0,a.createElement)("i",{className:`${o.load_btn_icon} pagelayer-btn-load-icon`}),o?.infinite_text&&(0,a.createElement)("span",{className:"pagelayer-btn-load-text"},o.infinite_text),o?.load_btn_icon&&(0,a.createElement)("i",{className:`${o.load_btn_icon} pagelayer-btn-load-icon`})),(0,a.createElement)("div",{className:"pagelayer-loader-holder"},(0,a.createElement)("i",{className:"fa fa-spinner fa-spin fa-3x fa-fw","aria-hidden":"true"}))))},post_folio:e=>{const{_props:t,tag:l,data:r}=e,{className:n,attributes:s}=t,{id:o,atts:i}=r,[p,c]=(0,Ba.useState)([]),[m,g]=(0,Ba.useState)([]);return(0,Ba.useEffect)((()=>{const e={};e.pagelayer_nonce=pagelayer_ajax_nonce,i.type&&(e.post_type=i.type),i.filter_by&&(e.filter_by=i.filter_by),i.count&&(e.posts_per_page=i.count);const a=JSON.stringify(e),t=p.find((e=>JSON.stringify(e.post)===a));t?g(t.data):jQuery.ajax({url:pagelayer_ajax_url+"action=pagelayer_fetch_posts",type:"post",data:e,success:function(a){g(a),c((t=>[...t,{post:e,data:a}]))}})}),[s.type,s.filter_by,s.count]),(0,Ba.useEffect)((()=>{pagelayer_post_folio(pagelayer_query(`.p-${o}`))}),[s.type,s.filter_by,s.count,m]),(0,a.createElement)("div",{className:"pagelayer-postfolio-section",dangerouslySetInnerHTML:{__html:m}})},sitemap_item:e=>{const{_props:t,pl_props:l,data:r}=e,{attributes:n}=t,{atts:o}=r,[i,p]=(0,a.useState)({}),[c,m]=(0,a.useState)({});return(0,a.useEffect)((()=>{const e=`${pagelayer_ajax_url}&action=${"post_type"==o.sitemap_type?"pagelayer_get_pages_list":"pagelayer_get_taxonomy_list"}`,a=JSON.stringify({...n,title:""});if(c[a])p(c[a]);else{var t="",l="",r="",s="",i="",g="";"post_type"==o.sitemap_type?(t=o.source_post,l=o.order_post,r=o.order,s=o.hierarchical,i=o.depth):(t=o.source_taxonomy,l=o.order_taxonomy,r=o.order,s=o.hierarchical,i=o.depth,g=o.hide_empty),jQuery.ajax({type:"POST",url:e,data:{type:t,post_order:l,order:r,hier:s,depth:i,empty:g,pagelayer_nonce:pagelayer_ajax_nonce},success:function(e){p(e);var t={...c};t[a]=e,m(t)},error:function(e){console.error("Error fetching data:--\x3e",e)}}),jQuery(".pagelayer-sitemap-div-holder[data-nofollow] .pagelayer-sitemap-list-item a").attr("rel","nofollow")}}),[n]),(0,a.createElement)("div",{className:"pagelayer-sitemap-section"},i.length>0&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("span",null,n.title?n.title:"post_type"===n.sitemap_type?(0,s.__)("Pages"):(0,s.__)("Categories")),(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:i}})))},wp_menu:e=>{const{_props:t,pl_props:l,data:r}=e,{id:n,atts:s}=r,{attributes:o,clientId:i,setAttributes:p}=t,c=(0,a.useRef)(null),[m,g]=(0,a.useState)(null),u=(e,a)=>{g(Ze(e,t))};return(0,a.useEffect)((()=>{const e=jQuery(c.current).closest("#block-"+i);var a=pagelayerGetCurrentWindow();return pagelayer_primary_menu(e),jQuery(a).on("resize.pl_menu"+i,(function(){pagelayer_primary_menu(e)})),()=>{jQuery(a).unbind("resize.pl_menu"+i)}}),[m]),(0,a.useEffect)((()=>{var e=jQuery(c.current).closest("#block-"+i),a=s.nav_list,t="",l="";if(e.parent().closest(".pagelayer-wp_menu").length>0&&(0==a?t=!0:(pagelayer_empty(a)||pagelayer_empty(0))&&(l="Primary Menu Holder. Please select the correct menu or parent menu.",t=!0)),p({inside_mega:t}),!pagelayer_empty(t))return pagelayer_empty(l)&&(l="Primary Menu Holder. Please select the correct menu."),void g(l);if(pagelayer_empty(s.menu_toggle_icon)&&(s.menu_toggle_icon="fas fa-bars"),pagelayer_empty(za[a])){var r=e.find(".pagelayer-wp_menu-ul").parent();r.length>0&&u(r[0].outerHTML),jQuery.ajax({url:pagelayer_ajax_url+"&action=pagelayer_fetch_primary_menu&postID="+pagelayer_postID,type:"post",data:{pagelayer_nonce:pagelayer_ajax_nonce,nav_list:a,pagelayer_nav_items:{},"pagelayer-live":1},success:function(e){e=Fa(e,a),za[a]=e,u(e)}})}else{var n=Fa(za[a],a);u(n)}}),[o]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-wp-menu-holder","data-layout":s?.layout,"data-submenu_ind":s?.submenu_ind,"data-drop_breakpoint":s?.drop_breakpoint,ref:c},(0,a.createElement)("div",{className:"pagelayer-primary-menu-bar"},(0,a.createElement)("i",{className:s?.menu_toggle_icon})),(0,a.createElement)("div",{className:`pagelayer-wp-menu-container pagelayer-menu-type-${s.layout} pagelayer-menu-hover-${s.pointer} ${s.m_animation} ${s.slide_style}`,"data-align":s?.align},(0,a.createElement)("div",{className:"pagelayer-wp_menu-close"},(0,a.createElement)("i",{className:"fas fa-times"})),m)))},archive_posts:e=>{const{_props:t,pl_props:l,tag:r,data:n}=e,{id:s,atts:o}=n,{attributes:i}=t,[p,c]=(0,a.useState)("");return(0,a.useEffect)((()=>{var e={};e.atts=JSON.parse(JSON.stringify(o)),e.atts["pagelayer-id"]=s,e.pagelayer_nonce=pagelayer_ajax_nonce,pagelayer_empty(La)||!pagelayer_compare_object(La,e)||pagelayer_empty(Ma[s])?(La=e,jQuery.ajax({url:pagelayer_ajax_url+"action=pagelayer_archive_posts_data",type:"post",data:e,success:function(e){var a=jQuery(e);a.children("style").remove();var t=a.html();c(t),Ma[s]=t}})):c(Ma[s])}),[i]),(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:p}})},addGroupBlock:Ia}}()}();