Your IP : 18.116.24.148
(()=>{var e={825:()=>{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),i=!1;for(var o in pagelayer_empty(s)&&(s=t,i=!0),n){var p=n[o];if("object"!=typeof e||pagelayer_empty(e[o])||(r[o]=e[o]),pagelayer_empty(e[p])||(r[o]=e[p]),!pagelayer_empty(s)&&pagelayer_empty(r[o])&&!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(i)&&"desktop"!=l||(r[o]="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(),i=n>=0&&s<=r,o=(n<0&&s>0||n>0&&n<=l.height())&&t;return i||o},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},window.pagelayerRandstr=(e,a)=>{var t="",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";(a=a||0)&&(l+="&#$%@");for(var r=0;r<e;r++)t+=l.charAt(Math.floor(Math.random()*l.length));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=(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=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};t.r(e),t.d(e,{pagelayer_bg_video:()=>R,pagelayer_get_img_src:()=>Y,pagelayer_render_end_pl_accordion:()=>L,pagelayer_render_end_pl_anim_heading:()=>Z,pagelayer_render_end_pl_audio:()=>Ce,pagelayer_render_end_pl_before_after:()=>Se,pagelayer_render_end_pl_chart:()=>Le,pagelayer_render_end_pl_col:()=>M,pagelayer_render_end_pl_collapse:()=>D,pagelayer_render_end_pl_contact:()=>pe,pagelayer_render_end_pl_counter:()=>J,pagelayer_render_end_pl_fb_comments:()=>Ge,pagelayer_render_end_pl_grid_gallery:()=>Ae,pagelayer_render_end_pl_image:()=>K,pagelayer_render_end_pl_image_hotspot:()=>Ie,pagelayer_render_end_pl_image_map:()=>We,pagelayer_render_end_pl_img_portfolio:()=>Be,pagelayer_render_end_pl_post_comment:()=>ge,pagelayer_render_end_pl_review:()=>Me,pagelayer_render_end_pl_row:()=>I,pagelayer_render_end_pl_search:()=>Pe,pagelayer_render_end_pl_share:()=>se,pagelayer_render_end_pl_single_img:()=>He,pagelayer_render_end_pl_social:()=>ae,pagelayer_render_end_pl_social_grp:()=>te,pagelayer_render_end_pl_splash:()=>qe,pagelayer_render_end_pl_stars:()=>G,pagelayer_render_html_pl_post_excerpt:()=>ue,pagelayer_render_pl_anim_heading:()=>W,pagelayer_render_pl_archive_posts:()=>me,pagelayer_render_pl_audio:()=>xe,pagelayer_render_pl_author_box:()=>Qe,pagelayer_render_pl_before_after:()=>je,pagelayer_render_pl_call:()=>Ve,pagelayer_render_pl_chart:()=>Re,pagelayer_render_pl_chart_datasets:()=>De,pagelayer_render_pl_col:()=>H,pagelayer_render_pl_contact:()=>oe,pagelayer_render_pl_contact_item:()=>ce,pagelayer_render_pl_countdown:()=>re,pagelayer_render_pl_fb_comments:()=>Ue,pagelayer_render_pl_fb_embed:()=>ke,pagelayer_render_pl_fb_page:()=>Ne,pagelayer_render_pl_featured_img:()=>fe,pagelayer_render_pl_flipbox:()=>he,pagelayer_render_pl_google_maps:()=>V,pagelayer_render_pl_grid_gallery:()=>Te,pagelayer_render_pl_image:()=>X,pagelayer_render_pl_image_hotspot:()=>ze,pagelayer_render_pl_image_map:()=>Je,pagelayer_render_pl_inner_row:()=>F,pagelayer_render_pl_post_content:()=>de,pagelayer_render_pl_post_excerpt:()=>_e,pagelayer_render_pl_post_info_list:()=>we,pagelayer_render_pl_post_nav:()=>be,pagelayer_render_pl_post_title:()=>ye,pagelayer_render_pl_progress:()=>U,pagelayer_render_pl_row:()=>z,pagelayer_render_pl_search:()=>Oe,pagelayer_render_pl_service:()=>ie,pagelayer_render_pl_share:()=>ne,pagelayer_render_pl_single_img:()=>Fe,pagelayer_render_pl_testimonial:()=>le,pagelayer_render_pl_wp_title:()=>ve,pagelayer_social:()=>ee}),t(825);const a=window.wp.element,l=window.wp.data,r=e=>{const{deviceType:t}=e,[r,n]=(0,a.useState)(t||"desktop"),[s,i]=(0,a.useState)(!1),o={desktop:"Desktop",tablet:"Tablet",mobile:"Mobile"};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-elp-screen"},Object.keys(o).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(o[e])}n(e),i(!s)})(e)}))),(0,a.createElement)("i",{className:`pagelayer-prop-screen pli pli-${r}`,onClick:()=>i(!s)})))},n=e=>{const{label:t,prop:l}=e;var n=l?.screen,s=l?.units,i=0,o=l.c.val;if(s&&!pagelayer_empty(o))for(var p in l.units)(pagelayer_is_string(o)&&-1!=o.search(l.units[p])||"object"==typeof o&&-1!=o[0].search(l.units[p]))&&(i=p);const[c,m]=(0,a.useState)(i);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)))))},s=window.wp.i18n,i=window.wp.components,o=e=>{const{name:t,value:l,onChange:r,setAttributes:n,type:o,handleClick:p,showRemoveIcon:c=!0}=e,[m,g]=(0,a.useState)(!1),y=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(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=>{d.current&&u.current&&!d.current.contains(e.target)&&!u.current.contains(e.target)&&g(!1),_.current&&!_.current.contains(e.target)&&jQuery(y.current).find(".pagelayer-global-color-list").slideUp()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),(0,a.useEffect)((()=>{let e=jQuery(y.current).find(".pagelayer-global-color-list");jQuery(y.current).find(".pagelayer-elp-color-global").on("click",(function(a){a.stopPropagation(),e.slideToggle(),g(!1)})),jQuery(y.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:y},(0,a.createElement)("div",{className:`pagelayer-elp-color-global ${h}`}),(0,a.createElement)("div",{className:"pagelayer-elp-color-div",ref:d},(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)(i.Popover,{ref:u},(0,a.createElement)(i.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:i}=e,{name:o}=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:o,onChange:e=>{var a=e.target.value;if(s({[o]:a}),"animation"==o){var t=jQuery(`.p-${i["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")}))},y=window.wp.blockEditor,d=pagelayer_url+"/images/default-image.png",u=window.wp.primitives,_=(0,a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(u.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)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(u.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})),v=(0,a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(u.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)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(u.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)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(u.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})),E=(0,a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(u.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"})),w=(0,a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(u.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)(i.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)(i.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:$}=pagelayer_config,T=e=>{const{attributes:t,prop:l,value:r,setAttributes:s}=e,{name:i}=l.c,o=t?.tmpAtts?t.tmpAtts:{},p=pagelayer_empty(o[i+"-url"])?r:o[i+"-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)(y.MediaUpload,{title:`Select or Upload ${c}`,onSelect:e=>{const{id:a,url:t}=e,l={...o,[i+"-url"]:t};s({[i]: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:i,type:"text",value:p,placeholder:`Insert ${c} URL`,onChange:e=>(e=>{const a=e.target.value,t={...o,[i+"-url"]:a};s({[i]: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)(y.InnerBlocks.Content,null);if(t&&t.innerHTML){var r=t.innerHTML;if(!pagelayer_empty(l[r]))return(0,a.createElement)(y.RichText.Content,{value:l[r]})}return null},q={},O={};var P=".interface-interface-skeleton__content";function z(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),R(e)}function I(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&&B(e,"top"),"row_shape_type_bottom"in e.atts&&B(e,"bottom")}function B(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 F(e){z(e)}function H(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),R(e)}function M(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 R(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 L(e){pagelayer_pl_accordion(e.$)}function D(e){pagelayer_pl_collapse(e.$)}function V(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 ie(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 oe(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,"v3"==pagelayer_recaptch_version?e.atts.grecaptcha_v3=!0:e.atts.grecaptcha_v2=!0}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 ye(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 de(e){e.atts.post_content="Post Content Holder",e.CSS.css.push({sel:"{{element}} .entry-content",val:"min-height:20px;background-color:#e3e3e3;"})}function ue(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="",i='<li class="pagelayer-grid-page-item active">1</li>',o="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 y in a){0!=g&&p%g==0&&0!=p&&(s+='</ul><ul class="pagelayer-grid-gallery-ul">',i+='<li class="pagelayer-grid-page-item">'+ ++c+"</li>");var d=a[y];"custom"!=e.atts.size&&y in t&&e.atts.size in t[y]&&(d=t[y][e.atts.size]),s+='<li class="pagelayer-gallery-item" >',o||(s+="<div>"),o&&"media_file"==e.atts.link_to&&(s+='<a href="'+("media_file"==e.atts.link_to?d:e.atts.link||"")+'" class="pagelayer-ele-link">'),o&&"attachment"==e.atts.link_to&&(s+='<a href="'+r[y]+'" class="pagelayer-ele-link">'),o&&"lightbox"==e.atts.link_to&&(s+='<a href="'+a[y]+'" class="pagelayer-ele-link" data-lightbox-gallery="'+m+'" alt="'+l[y]+'" pagelayer-grid-gallery-type="'+e.atts.link_to+'">'),s+='<img class="pagelayer-img" src="'+d+'" title="'+l[y]+'" alt="'+l[y]+'">',"true"==e.atts.caption&&(s+='<span class="pagelayer-grid-gallery-caption">'+n[y]+"</span>"),o&&(s+="</a>"),o||(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>'+i+'<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 ze(e){e.tmp["img-url"]=e.tmp["img-url"]||e.atts.img}function Ie(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 Be(e){pagelayer_pl_img_portfolio(e.$)}function Fe(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 He(e){jQuery(e.$).parent().attr("data-groups",'["'+e.atts.cat_name+'"]'),pagelayer_pl_image(e.$)}function Me(e){var a=e.$.find(".pagelayer-stars-container");a.removeAttr("pagelayer-setup"),pagelayer_stars(a)}function Re(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 Le(e){var a=e.$;pagelayer_chart(a)}function De(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 Ve(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.$)}function Je(e){const[t,l]=(0,a.useState)("");e.atts.map_img_id=e.tmp["img_map-id-"+e.atts["img_map-size"]+"-url"]||e.tmp["map_img-id-url"],e.atts.map_img_id=e.atts.map_img_id||e.atts["map_img-id"],e.atts["pagelayer-srcset"]=e.atts.map_img_id+", "+e.atts.map_img_id+" 1x, ",(0,a.useEffect)((()=>{if(e.atts&&e.atts.pagelayer_image_map){let a="";e.atts.pagelayer_map_path="";for(const t in e.atts.pagelayer_image_map)a+=`<path class='pagelayer-imgmap-item' d='' stroke-width='2' data-cord='${e.atts.pagelayer_image_map[t]?.path||""}' data-id='${t}' fill-opacity='0.3' fill-rule='evenodd' data-link='${e.atts.pagelayer_image_map[t]?.link||""}'></path>`;l(a)}}),[]),e.atts.pagelayer_map_path=t,Y(e,{name:"map_img-id",size:"img_map-size"})}function We(e){pagelayer_pl_image_map(e.$),function(e,a){const{attributes:t,setAttributes:l}=a.props;var r=t.pagelayer_image_map||{},n=e.find("svg"),s=e.find(".pagelayer-imgmap-coordinates-wraper"),i=e.find(".pagelayer-imgmap-toolbar"),o=e.find(".pagelayer-imgmap-wrapper"),p=function(e){var a=e.find(".pagelayer-imgmap-coord"),t=!1;const l=()=>{t=!1,a.removeClass("pagelayer-mapele-dragging").off("mouseup click"),jQuery(document).off("mouseup.imgmap")};a.off("mousedown").on("mousedown",(function(a){a.stopPropagation(),a.preventDefault(),jQuery(a.target).hasClass("pagelayer-imgmap-remove-cord")||(t=!0,jQuery(this).addClass("pagelayer-mapele-dragging").mouseup(l).click(l),jQuery(document).on("mouseup.imgmap",l),n.off("mouseup mousemove"),n.mouseup((function(e){t=!1})),n.mousemove((function(a){if(!t)return;const l=e.find(".pagelayer-imgmap-coord.pagelayer-mapele-dragging");if(!l.length)return;const r=(a.offsetX/o.width()*100).toFixed(2),n=(a.offsetY/o.height()*100).toFixed(2);l.css({left:`${r}%`,top:`${n}%`}),c(r,n,l.data("id"))})))}))},c=function(a,t,l){const r=e.find(".pagelayer-imgmap-item.pagelayer-map-item-active"),n=r.attr("data-cord").split(",");n.splice(2*l,2,a,t),r.attr("data-cord",n.join(",")),pagelayer_resize_imgmap(e)},m=function(a){a.stopPropagation();const t=jQuery(this).parent(),l=t.attr("data-id"),r=n.find(".pagelayer-map-item-active"),s=r.attr("data-id"),i=r.attr("data-cord").split(",");i.splice(2*l,2),r.attr("data-cord",i.join(",")),t.remove(),e.find(`.pl-cord-${s}`).each(((e,a)=>{jQuery(a).attr("data-id",e)})),pagelayer_resize_imgmap(e)},g=function(){if(!(n.find(".pagelayer-map-item-active").length>0)){n.find(".pagelayer-map-item-active_is_editable").removeClass("pagelayer-map-item-active_is_editable");var a=jQuery(this).addClass("pagelayer-map-item-active_is_editable");h(!0,"selected"),i.find(".pagelayer-map_edit").off("click").on("click",(function(e){e.preventDefault(),d(a)})),e.on("click.handleOutsideClick",(function(t){t.preventDefault(),n.find(".pagelayer-map-item-active").length>0||jQuery(t.target).hasClass("pagelayer-imgmap-item")||(a.removeClass("pagelayer-map-item-active_is_editable"),h(!1,"selected"),h(!1),e.off("click.handleOutsideClick"))}))}},y=function(a){a in r&&delete r[a],l({pagelayer_image_map:{...r}}),E(a,"delete"),s.find(".pl-cord-"+a).remove(),e.find('.pagelayer-imgmap-item[data-id="'+a+'"]').remove()},d=function(a){setTimeout((()=>{h(!0),a.removeClass("pagelayer-map-item-active_is_editable").addClass("pagelayer-map-item-active"),n.css("cursor","crosshair");var t=a.attr("data-id"),l=r[t]&&r[t].link&&r[t].link.length>0?r[t].link:"";l.length>0&&i.find(".pagelayer-map_href").css("color","blue"),s.find(`.pl-cord-${t}`).show(),i.find(".pagelayer-imgmap-toolbar-link input[type=text]").val(l),E(t,"set_active"),p(e),s.find(".pagelayer-imgmap-remove-cord").off("click").on("click",m)}),100)};if(i.length<1){i=o.append('<div class="pagelayer-imgmap-toolbar">\n\t\t\t<span class="pagelayer-imgmap-toolbar-mover" title="Drag Toolbar"></span>\n\t\t\t<button class="pagelayer-imgmap-toolbar-item pagelayer-map_append" title="Add"><i class="fas fa-plus"></i></button>\n\t\t\t<button class="pagelayer-imgmap-toolbar-item pagelayer-map_save" title="Save"><i class="fas fa-check"></i></button>\n\t\t\t<button class="pagelayer-imgmap-toolbar-item pagelayer-map_edit" title="Edit"><i class="fas fa-edit"></i></button>\n\t\t\t<button class="pagelayer-imgmap-toolbar-item pagelayer-map_href" title="Insert Link"><i class="fas fa-link"></i></button>\n\t\t\t<button class="pagelayer-imgmap-toolbar-item pagelayer-map_remove" title="Delete"><i class="fas fa-trash"></i></button>\n\t\t\t<div class="pagelayer-imgmap-toolbar-link">\n\t\t\t\t<input type="text" name="url" placeholder="https://example.com" autocomplete="off">\n\t\t\t\t<span class="pagelayer-imgmap-save-link pagelayer-btn-success">Save</span>\n\t\t\t</div>\n\t\t\t<button class="pagelayer-map-list-trigger" title="Navigator"><i class="fas fa-sitemap"></i></button>\n\t\t\t<div class="pagelayer-imgmap-navigator">\n\t\t\t\t<div class="pagelayer-imgmap-navigator-header">\n\t\t\t\t\t<i class="fas fa-sitemap"></i><span>Navigator</span>\n\t\t\t\t\t<span class="fa fa-remove pagelayer-imgmap-navigator-close"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="pagelayer-imgmap-navigator-wrap"></div>\n\t\t\t</div>\n\t\t</div>').find(".pagelayer-imgmap-toolbar")}var u=i.find(".pagelayer-imgmap-toolbar-link"),_=u.find('input[type="text"]'),f=i.find(".pagelayer-imgmap-navigator"),v=f.find(".pagelayer-imgmap-navigator-wrap"),h=function(e=!0,a="edit"){var t=a,l="edit"==a?"selected":"edit";if(e)return i.addClass("pagelayer-imgmap-"+t),void i.removeClass("pagelayer-imgmap-"+l);i.removeClass("pagelayer-imgmap-"+t)},b=jQuery(pagelayerGetDocumentElement());i.find(".pagelayer-imgmap-toolbar-mover").off("mousedown").on("mousedown",(e=>{e.preventDefault(),i.addClass("pagelayer-imgmap-toolbar-dragging"),n.on("mousemove",(e=>{i.hasClass("pagelayer-imgmap-toolbar-dragging")&&i.css({left:e.offsetX-5+"px",top:e.offsetY-35+"px"})})),jQuery(b).off("mousedown.pl_svg_ele").on("mouseup.pl_svg_ele",(()=>{i.removeClass("pagelayer-imgmap-toolbar-dragging"),n.off("mousemove")}))})),i.find(".pagelayer-imgmap-toolbar-item").off("click").on("click",(function(e){e.stopPropagation();var a=jQuery(this),t=n.find(".pagelayer-map-item-active"),o=t.attr("data-id"),p=!1;if(_.length<1&&i.find(".pagelayer-map_href").css("color","inherit"),n.css("cursor","initial"),a.hasClass("pagelayer-map_append")){var c=pagelayerRandstr(6),m=pagelayer_create_imgmap_svg(["pagelayer-imgmap-item","pagelayer-map-item-active"],[["d",""],["data-id",c],["stroke-linejoin","round"],["fill-rule","evenodd"],["fill-opacity","0.3"],["stroke-width","2"],["data-cord","{{data}}"],["data-link","{{link_href}}"]]);E(c,"append",!0),n.find("g")[0].appendChild(m),n.find(".pagelayer-imgmap-item").off("click").on("click",g),p=!0}if(a.hasClass("pagelayer-map_remove")){let e=n.find(".pagelayer-map-item-active, .pagelayer-map-item-active_is_editable").attr("data-id");y(e)}if(a.hasClass("pagelayer-map_href")&&(i.find(".pagelayer-imgmap-toolbar-link").fadeToggle(),p=!0),a.hasClass("pagelayer-map_save")){if(s.find(".pl-cord-"+o).length<3)return alert("Please draw at least 3 coordinates!");var d=t.attr("data-cord")||"",f=v.find(`.pagelayer-imgmap-navigator-item[data-id="${o}"]`).find(".pagelayer-imgmap-navigator-title").text();r[o]=r[o]||{},r[o].path=d||"",r[o].title=f||"",l({pagelayer_image_map:{...r}}),jQuery(".pagelayer-map_href").css("color","block"==u.css("display")&&_.val()?"blue":"inherit"),E(o,"reset_active"),s.find(".pl-cord-"+o).hide(),s.find(".pagelayer-imgmap-coord").removeClass("pagelayer-mapele-dragging"),n.find(".pagelayer-imgmap-item").removeClass("pagelayer-map-item-active")}h(p)})),e.find(".pagelayer-imgmap-save-link").click((function(){let e=jQuery(this).parent(),a=n.find(".pagelayer-map-item-active").data("id");((r=r||{})[a]=r[a]||{}).link=e.find("input").val()||"",e.fadeOut()})),n.off("click").on("click",(function(a){var t=n.find(".pagelayer-map-item-active");if(t.length<1)return void i.css({left:a.offsetX-15,top:a.offsetY-40});_.val(""),n.css("cursor","crosshair");var[l,r]=[o.width(),o.height()],[c,g]=[(a.offsetX/l*100).toFixed(2),(a.offsetY/r*100).toFixed(2)],y=t.attr("data-cord")||"";(y="{{data}}"==y||""==y?[]:y.split(",")).push(c,g),t.attr("data-cord",y);const d=s.find(`.pl-cord-${t.attr("data-id")}`).length,u=`<div class="pagelayer-imgmap-coord pl-cord-${t.attr("data-id")}" \n\t\t\ttitle="Drag to reposition" data-id="${d}" \n\t\t\tstyle="left:${a.offsetX}px; top:${a.offsetY}px;">\n\t\t\t\t<span class="pagelayer-imgmap-remove-cord fa fa-trash"></span>\n\t\t\t</div>`;s.append(u),setTimeout((()=>pagelayer_resize_imgmap(e)),100),p(e),s.find(".pagelayer-imgmap-remove-cord").off("click mousedown").on("click",m)})),n.find(".pagelayer-imgmap-item").off("click").on("click",g),i.find(".pagelayer-map-list-trigger").off("click").on("click",(function(){f.toggle()})),f.find(".pagelayer-imgmap-navigator-close").on("click",(function(){f.hide()}));var E=function(a,t="append",s=!1){if(!a)return;const o=v.find(`.pagelayer-imgmap-navigator-item[data-id="${a}"]`);switch(t){case"append":if(o.length>0)return;const t=v.children(".pagelayer-imgmap-navigator-item").length+1,p=s?"pagelayer-navigator-item-active":"",c=r[a]?.title||`Map Item ${t}`,m=`\n\t\t\t\t<div class="pagelayer-imgmap-navigator-item ${p}" data-id="${a}">\n\t\t\t\t\t<div data-id="${a}" class="pagelayer-imgmap-navigator-item-drag"><i class="fas fa-th-list"></i></div>\n\t\t\t\t\t<div class="pagelayer-imgmap-navigator-title">${c}</div>\n\t\t\t\t\t<div class="pagelayer-imgmap-navigator-actions">\n\t\t\t\t\t\t${["Move Up","Edit","Delete","Move Down"].map(((e,t)=>`\n\t\t\t\t\t\t\t<button value="${a}" class="pagelayer-map-navigator-trigger ${["navigator_move_up","navigator_pagelayer-map_edit","navigator_pagelayer-map_remove","navigator_move_down"][t]}" title="${e}">\n\t\t\t\t\t\t\t\t<i class="${["fa fa-arrow-up","fa fa-pencil","fas fa-trash","fa fa-arrow-down"][t]}"></i>\n\t\t\t\t\t\t\t</button>`)).join("")}\n\t\t\t\t\t</div>\n\t\t\t\t</div>`;v.append(m),v.find(".pagelayer-map-navigator-trigger").off("click").on("click",(function(a){a.stopPropagation();var t=jQuery(this).val();if(jQuery(this).hasClass("navigator_pagelayer-map_edit")){const a=n.find(".pagelayer-map-item-active");if(a.length>0){if(t===a.attr("data-id"))return;i.find(".pagelayer-imgmap-toolbar-item.pagelayer-map_save").click()}let l=e.find(`.pagelayer-imgmap-item[data-id="${t}"]`);l.on("click",d(l))}else if(jQuery(this).hasClass("navigator_move_down")||jQuery(this).hasClass("navigator_move_up")){const a=jQuery(this).closest(".pagelayer-imgmap-navigator-item"),n=jQuery(this).hasClass("navigator_move_up"),s=n?a.prev():a.next();s.length>0&&(function(a,t=!1){const n=Object.keys(r),s=n.indexOf(a);if(-1===s||0===s&&!t||s===n.length-1&&t)return!1;const i=t?s+1:s-1;[n[s],n[i]]=[n[i],n[s]],r=n.reduce(((e,a)=>({...e,[a]:r[a]})),{}),l({pagelayer_image_map:r});const o=e.find(`path[data-id="${a}"]`);t?o.next().after(o):o.prev().before(o)}(t,!n),n?s.before(a):s.after(a))}else jQuery(this).hasClass("navigator_pagelayer-map_remove")&&(y(t),i.removeClass("pagelayer-imgmap-edit"))})),v.find(`.pagelayer-imgmap-navigator-item[data-id="${a}"] .pagelayer-imgmap-navigator-title`).off("blur").on("click",(function(){const e=jQuery(this).attr("contenteditable","true").focus(),t=e.text().trim();e.on("blur",(function(n){const s=e.text().trim();s?(r[a].title=s,l({pagelayer_image_map:{...r}})):(alert("Error changing title"),e.text(t)),e.attr("contenteditable","false").off("blur")}))}));break;case"delete":o.remove();break;case"reset_active":v.find(".pagelayer-imgmap-navigator-item").removeClass("pagelayer-navigator-item-active");break;case"set_active":o.hasClass("pagelayer-navigator-item-active")||(o.addClass("pagelayer-navigator-item-active"),jQuery(".pagelayer-imgmap-navigator-wrap").animate({scrollTop:0}))}};if(Object.keys(r).length>0)for(var w in r)E(w);pagelayer_resize_imgmap(e),jQuery(window).on("resize",(function(){pagelayer_resize_imgmap(e)}))}(e.$,e)}const Ze=["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}),{}),Ye=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","menuitem","textarea"];function Xe(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,""),Ye.indexOf(t)>-1)return Ke(e,a);var r="",n=[];if(jQuery(e).children().length>0)for(var s=e.childNodes,i=0;s.length>i;)n.push(l(s[i])),i+=1;else r=e.innerText;return Ke(e,a,r,n)};return jQuery(e).each((function(){t.push(l(this))})),t}function Ke(e,t,l,r){let n={},s=!1,i=!1;var o=e.localName;if(o=o.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=Ze[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&&(i=r),ea.includes(l)&&""===(r||"")&&(r=l),e[l]=r,e}),n)),s){var p={tagName:o,_props:t,propsName:s,value:e.innerHTML};return n={...n,...p},(0,a.createElement)(wp.PagelayerComponents.rich_text,n)}if(i){p={TagName:o,plTag:i,_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,[o,n].concat(m))}const ea=["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"],aa=window.wp.blocks,ta=pagelayer_url+"/images/pagelayer-logo-19.png",la=pagelayer_url+"/images/Spinner-3.gif",ra=()=>{const[e,t]=(0,a.useState)({}),[r,n]=(0,a.useState)("header"),[i,o]=(0,a.useState)(""),[p,c]=(0,a.useState)({}),[m,g]=(0,a.useState)(!1),[y,d]=(0,a.useState)([]),[u,_]=(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,aa.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 i=0;for(const e in h){if(i>=5*u)break;const a=i%u;a in n||(n[a]=[]),n[a].push(e),delete s[e],i++}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==y.length&&r in e&&!pagelayer_empty(e[r])&&b({...e[r].list})}),[y]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(na,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:ta,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,d([]),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:i,style:{border:"none",backgroundColor:"#724c8717",padding:"7px",width:"212px",borderRadius:"0px"},onChange:e=>o(e.target.value),placeholder:"Search"})),(0,a.createElement)("div",{className:"pagelayer-library-modal-tag-list"},Object.keys(p).map(((e,t)=>{const l=!i||e.includes(i),r=y.includes(e)?"pagelayer-tag-style-active":"";return l&&(0,a.createElement)("p",{key:t,onClick:()=>(e=>{const a=y.includes(e)?y.filter((a=>a!==e)):[...y,e],t={};a.forEach((e=>{e in p&&p[e].forEach((e=>{t[e]=e}))})),v([]),d(a),b(t)})(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:la,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")))))))},na=()=>((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:sa,pagelayer_styles:ia}=pagelayer_config,oa=["settings","options"];var pa=sa,ca=ia;for(const e in pa){let t=pagelayerBlockNameByTag(e),l=pa[e],r="pagelayer-shortcode ";"icon"in pa[e]?r+=pa[e].icon:r+="pagelayer-"+e;let n=(0,a.createElement)("i",{class:r});pagelayerCacheBlockTags[t]=e;var ma={};if("parent"in l){ma.parent=[];for(let e in l.parent)ma.parent[e]=pagelayerBlockNameByTag(l.parent[e])}else ma.category="pagelayer";var ga={};for(var ya in oa){var da=oa[ya];for(var ua in l[da]){var _a=ua in l?l[ua]:ca[ua];for(var fa in _a){if(ga[fa]=new Object,ga[fa]={type:_a[fa].type},"default"in _a[fa]&&!pagelayer_empty(_a[fa].default)){var va=_a[fa].default;if("units"in _a[fa])if(jQuery.isNumeric(va))va+=_a[fa].units[0];else{var ha="sep"in _a[fa]?_a[fa].sep:",",ba=va.split(ha);for(var Ea in ba)jQuery.isNumeric(ba[Ea])&&(ba[Ea]=ba[Ea]+_a[fa].units[0]);va=ba.join(ha)}ga[fa].default=va}var wa=["tablet","mobile"];if("screen"in _a[fa]||"typography"==_a[fa].type)for(var ka in wa){let e=fa+"_"+wa[ka];ga[e]=new Object,ga[e]={type:_a[fa].type}}}}}"pl_contact"==e&&(ga.con_post_id={type:"string"}),l.innerHTML&&l.innerHTML in ga&&(ga[l.innerHTML].source="html"),ga["pagelayer-id"]={type:"string"},ga.tmpAtts={type:"object",default:{}},ma.supports={html:!1};var Na={title:l.name,apiVersion:3,icon:n,attributes:ga,edit:function(a){return ja(e,a,l)},save:function(e){return(0,a.createElement)(Q,{...e,pl_props:l})}},xa={...ma,...Na};wp.blocks.registerBlockType(t,xa)}var Ca={};function ja(t,r,n){var s=t.replace("pl_","");const{InspectorControls:i}=wp.blockEditor,{TextControl:o}=wp.components,{setAttributes:p,className:c,attributes:m,isSelected:g,clientId:d}=r,u=(()=>{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=qa(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"]},i=pa[n];for(var o in oa){var p=oa[o];for(var c in i[p])if(e=c in i?i[c]:ca[c],!pagelayer_empty(e))for(var m in e){var g=e[m];if(!pagelayer_empty(i.skip_props)&&jQuery.inArray(m,i.skip_props)>-1)s(m);else if("req"in g){var y=g.req,d=!0;for(var u in y){var _=y[u],f="!"==u.substr(0,1);u=f?u.substr(1):u;var v=t.atts[u]||"";if(f){if("string"==typeof _&&_==v){d=!1;break}if("string"!=typeof _&&_.indexOf(v)>-1){d=!1;break}}else{if("string"==typeof _&&_!=v){d=!1;break}if("string"!=typeof _&&-1===_.indexOf(v)){d=!1;break}}}d||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 oa){var w=oa[E];if("settings"!=w||"post_props"!=s)for(var k in n[w]){var N=k in n?n[k]:ca[k],x=[],C={},j={};for(var S in N){var $=N[S];if(S in f.atts&&pagelayerLength(f.atts[S])<1&&delete f.atts[S],"group"!=$.type){if("link"==$.type&&"selector"in $&&"object"==typeof f.atts[S]){var T={};pagelayerLength(f.atts[S].link)<1?delete f.atts[S]:("target"in f.atts[S]&&!pagelayer_empty(f.atts[S].target)&&(T={sel:$.selector,val:'target="_blank"'},v.attr.push(T)),"rel"in f.atts[S]&&!pagelayer_empty(f.atts[S].rel)&&(T={sel:$.selector,val:'rel="nofollow"'},v.attr.push(T)),"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]+'"',T={sel:$.selector,val:r},v.attr.push(T))})),f.atts[S]=pagelayer_empty(f.atts[S].url)?f.atts[S].link:f.atts[S].url)}var A,Q;if("addClass"in $)for(var q in A="string"==typeof $.addClass?[$.addClass]:$.addClass){var O=jQuery.isNumeric(q)?"":q;if(A[q].match(/\{\{val\}\}/)&&"list"in $){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 z in $.list)if("object"==typeof $.list[z])for(var I in $.list[z])P(I);else P(z)}else T={sel:O,val:A[q].replace("{{val}}",f.atts[S])},S in f.atts?v.classes.push(T):v.remove_classes.push(T)}if("addAttr"in $&&"ele_id"!=S)for(var q in Q="string"==typeof $.addAttr?[$.addAttr]:$.addAttr)T={sel:O=jQuery.isNumeric(q)?"":q,val:Q[q]},S in f.atts?v.attr.push(T):v.remove_attr.push(T);if("css"in $){var B;B="string"==typeof $.css?[$.css]:$.css;var F={desktop:"",tablet:"_tablet",mobile:"_mobile"},H="typography"==$.type?pagelayerIsGlobalTypo(f.atts[S]):"";for(var M in F){var R=S+F[M];if(R in f.atts){var L=f.atts[R];if("color"==$.type&&(L=pagelayerParseColor(f.atts[R])),"typography"==$.type&&(L=pagelayerParseTypo(L,!1,H,M)),"gradient"==$.type){pagelayer_is_string(L)&&(L=L.split(","));for(let e in L)L[e]=pagelayerParseColor(L[e])}for(var q in B)T={sel:O=jQuery.isNumeric(q)?"{{element}}":q,val:Qa(B[q],L,$.sep||",")},"tablet"==M&&(T.sel="@media (max-width: "+pagelayer_settings.tablet_breakpoint+"px) and (min-width: "+(pagelayer_settings.mobile_breakpoint+1)+"px){"+T.sel,T.val=T.val+"}"),"mobile"==M&&(T.sel="@media (max-width: "+pagelayer_settings.mobile_breakpoint+"px){"+T.sel,T.val=T.val+"}"),v.css.push(T)}}}if("edit"in $){var D={prop:S,sel:$.edit};if(pagelayer_empty($.keep_prop)||(D.keep_prop=!0),v.edit.push(D),pagelayer_empty($.keep_prop))continue}var V=!0;if("req"in $||"show"in $){var U={};if("req"in $&&"show"in $)for(var G in U=JSON.parse(JSON.stringify($.req)),$.show)U[G]=$.show[G];else U="req"in $?$.req:$.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){V=!1;break}if("string"!=typeof W&&W.indexOf(Y)>-1){V=!1;break}}else{if("string"==typeof W&&W!=Y){V=!1;break}if("string"!=typeof W&&-1===W.indexOf(Y)){V=!1;break}}}}if(V&&g){var X=S;"screen"in $&&(X=S+{desktop:"",tablet:"_tablet",mobile:"_mobile"}[u]),$.c={},$.c.name=X,$.c.val=f.atts[X],pagelayerLength($.c.val)<1&&($.c.val="");var K=o,ee={prop:$,label:$.label,value:$.c.val,deviceType:u,...r};if($.type in wp.PagelayerComponents)K=wp.PagelayerComponents[$.type];else{ee.type=$.type;const _x=S;ee.onChange=function(e){p({[_x]:e})}}if("show_group"in $){var ae=x.push("Show Group"),te=$.show_group;j[ae-1]=[K,ee,te]}else K=(0,a.createElement)(K,ee),"group"in $?($.group in C||(C[$.group]=[]),C[$.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)(i,{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)),ie=e["pagelayer_render_"+t];"function"==typeof ie&&ie(f);var oe="",pe={"pagelayer-id":f.id},ce=!1;if(s in wp.PagelayerBlocks){var me=wp.PagelayerBlocks[s];ce=!0,oe=(0,a.createElement)(me,{_props:r,pl_props:n,tag:s,deviceType:u,jEleRef:_,data:f})}else{if("html"in n){var ge=n.html.replace(/src=/g,"plmodifysrc="),ye=jQuery("<div>"+ge+"</div>");if(v.edit.length>0)for(var q in v.edit)$=v.edit[q].prop,v.edit[q].keep_prop||ye.find('[if="{{'+$+'}}"]').removeAttr("if");if(ye.find("[if-ext]").each((function(){var e=jQuery(this),a=$a(e.attr("if-ext"));e.removeAttr("if-ext"),a in f.atts&&!pagelayer_empty(f.atts[a])||(e[0].outerHTML=e.html())})),ye.find("[if]").each((function(){var e=jQuery(this),a=$a(e.attr("if"));e.removeAttr("if"),a in f.atts&&!pagelayer_empty(f.atts[a])||e.remove()})),"has_group"in n&&"holder"in n&&(ye.find(n.holder).attr("pagelayer-group-holder",t),ce=!0),v.edit.length>0)for(var q in v.edit)$=v.edit[q].prop,((O=v.edit[q].sel).length<1?ye:ye.find(O)).attr({"pagelayer-editable":$});oe=Aa(ye[0].innerHTML.replace(/plmodifysrc=/g,"src="),f)}oe=Xe(oe,r)}var de="";if(v.css.length>0){var ue=[];for(var q in v.css){O=Ta(v.css[q].sel,f);var _e=v.css[q].val;O.length>0?ue.push(O+"{"+_e+"}"):ue.push(Ta(_e,f))}if(!pagelayer_empty(n.overide_css_selector))for(var fe in ue){var ve=Ta(n.overide_css_selector,f);ue[fe]=ue[fe].split(f.CSS.cssSel).join(ve),ue[fe]=ue[fe].split(f.CSS.wrap).join(ve)}de=Aa(ue.join("\n"),f)}pagelayer_empty(de)||(de=`<style>${de}</style>`);const he={className:f.className,ref:_,...pe},be=(0,y.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},Xe(de,r),(0,a.createElement)(we,{...Ee})):(0,a.createElement)("div",{...be},(0,a.createElement)("div",{...he},Xe(de,r),oe)));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]=Aa(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 Sa&&Sa[e.id].forEach((function(a,t){e.$.removeAttr(a)})),Sa[e.id]=[],pagelayerTrim(e.atts.ele_attributes.split(";")).forEach((function(a,t){var l=a.split(/=(.*)/),r=pagelayerTrim(l[0]);Sa[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 i=n[0]?.contentWindow?.document||n[0]?.contentDocument;s=jQuery(i)}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-${d}`).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)(ra,null),e),document.querySelector("body").appendChild(e),Ca=setInterval((function(){var e=document.querySelector(".interface-interface-skeleton__content");e&&(clearInterval(Ca),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 Sa={};function $a(e){return e.substring(2,e.length-2)}function Ta(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 Aa(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 Qa(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 qa(e,a){a=a||!1;var t=e["pagelayer-id"];return(a||!t||t.length<1)&&(t=(t=pagelayerRandstr(3)+Math.floor(Math.random()*Math.floor(9999)).toString()).toLowerCase()),jQuery(`.p-${t}`,pagelayerGetDocumentElement()).length>1&&(t=qa(e,!0)),t}const Oa=()=>{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"]}]},Pa=(0,a.memo)((e=>{const{_props:t,data:r}=e,{clientId:n,isSelected:i,setAttributes:o}=t,{atts:p,tmp:c,id:m,tag:g}=r,d="pagelayer/pl-col",u=[d],{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)((()=>[[d]]),[d]),templateLock:!1,renderAppender:!1,allowedBlocks:u,orientation:"horizontal"},w={className:`pagelayer-row-holder pagelayer-row pagelayer-auto pagelayer-width-${p.width_content}`};const k=(0,y.useInnerBlocksProps)(w,E);return(0,a.createElement)(a.Fragment,null,0==v?(0,a.createElement)("div",{className:"pagelayer-variation-div"},(0,a.createElement)(y.__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:Oa(),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,aa.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}),i&&(0,a.createElement)("div",{className:"pagelayer-block-appender"},(0,a.createElement)(y.InnerBlocks.ButtonBlockAppender,null))))})),{pagelayer_shortcodes:za}=pagelayer_config,Ia=za,Ba=(0,a.memo)((e=>{const{_props:t,plTag:l,TagName:r="div"}=e,{setAttributes:n,isSelected:s}=t,i=Ia[l],o=(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=o(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=Ia[a.sc];if(r&&"has_group"in r){var n=r.has_group,s=r[n.section][n.prop],i=pagelayerBlockNameByTag(s.sc),c=p(i,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(o(g,a.inner_content[m]));return t}for(var y=0;y<a.count;y++)t.push([e,{},l]);return t};var c=i.has_group,m=i[c.section][c.prop],g="pl_inner_row"===m.sc?"pl_row":m.sc,d={},u=[g=pagelayerBlockNameByTag(g)];"pl_inner_row"===m.sc&&(u=[]);const _=(0,a.useMemo)((()=>p(g,m)),[g,m]);if(_.length>0){var f={template:_,templateLock:!1,renderAppender:!1};d={...d,...f}}if(!pagelayer_empty(u)){var v={allowedBlocks:u};d={...d,...v}}var h={...e};delete h._props,delete h.plTag,delete h.TagName;const b=(0,y.useInnerBlocksProps)(h,d);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(r,{...b}),s&&(0,a.createElement)("div",{className:"pagelayer-block-appender"},(0,a.createElement)(y.InnerBlocks.ButtonBlockAppender,null)))})),Fa=window.React;var Ha={},Ma={};function Ra(e,a,t,l){if(pagelayer_empty(Ma[a]))return e;var r=jQuery("<div>").html(e),n=Ma[a];for($e in n){var s;if(!pagelayer_empty(n[$e].pagelayer_content)){var i=n[$e].ID;s=n[$e].pagelayer_content,r.find(".pagelayer-mega-editor-"+i).html(s[0].outerHTML)}}return r.html()}var La={},Da={};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:i}=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:()=>{return a=e,void s({[i]:a});var a}},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)(o,{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:i}=t.c;var o=pagelayer_empty(r)?["","","",""]:r;pagelayer_is_string(o)&&(o=o.split(","));const[p,c]=(0,a.useState)(!0),m=(0,a.useRef)(null),g=(e,a)=>{const l=parseFloat(a.target.value);let r=[...o];p?r=r.map((()=>l)):r[e]=l,t?.units&&(r=y(r)),s({[i]:r})},y=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(o[0]),onChange:e=>g(0,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-padding",value:parseFloat(o[1]),onChange:e=>g(1,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-padding",value:parseFloat(o[2]),onChange:e=>g(2,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-padding",value:parseFloat(o[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:i,value:o,setAttributes:m,deviceType:g}=e,{name:y}=l.c,d=(0,a.useRef)(null),u=(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(o)),k={desktop:"",tablet:"_tablet",mobile:"_mobile"};var N=pagelayerParseTypo(o,!1),x=pagelayerParseTypo(t[y+"_tablet"]),C=pagelayerParseTypo(t[y+"_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[y]={},e[y+"_tablet"]={},e[y+"_mobile"]={},pagelayer_empty(E)||(e[y]["global-font"]=E),d.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[y+"_tablet"][a]=l}else if(t.indexOf("_mobile")>-1){const a=t.replace("_mobile","");e[y+"_mobile"][a]=l}else e[y][t]=l})),m(e)},$=(e,a)=>{e.stopPropagation();var t=jQuery(d.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 T;(0,a.useEffect)((()=>{S()}),[E]),(0,a.useEffect)((()=>{var e=jQuery(d.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=>{d.current&&!d.current.contains(e.target)&&v(!1),u.current&&!u.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 i="";if(r.attr("pagelayer-set-global",1),s in l&&(i=l[s]),"object"==typeof i)for(const e in k){let a="";e in i&&(a=i[e]),r.find('.pagelayer-elp-typo-input[name="'+s+k[e]+'"]').val(a)}else n.length>1&&n.val(""),n.first().val(i);a||(clearTimeout(T),T=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=[],z=(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(z(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:d},(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:u},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=>$(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:i}=t.c,{min:o,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:i,min:o,max:p,step:c,value:r,onChange:e=>{let a=parseFloat(e.target.value);!isNaN(p)&&a>p&&(a=p),s({[i]:a})}})))},slider:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:i}=t.c,{min:o,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=y(a)),s({[i]:a})},y=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:o,max:p,step:c,onChange:g}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-slider-value",value:parseFloat(r),min:o,max:p,step:c,onChange:g})))},checkbox:e=>{const{prop:t,label:l,value:r,setAttributes:s}=e,{name:i}=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({[i]:a?"true":""})}})))},select:m,box_shadow:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:o}=t.c;var p=pagelayer_empty(l)?["","","","","",""]:l;pagelayer_is_string(p)&&(p=p.split(","));const[c,m]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),d=(0,a.useRef)(null),u=(0,a.useRef)(null),_=(0,a.useRef)(null),f=(e,a)=>{const t=[...p];t[e]=a,r({[o]:t})};return(0,a.useEffect)((()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&d.current&&!d.current.contains(e.target)&&m(!1),_.current&&!_.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:_},(0,a.createElement)("span",{className:"pagelayer-prop-edit",onClick:()=>y(!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:d},(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:u},(0,a.createElement)(i.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:i=["image"]}=e,{name:o}=l.c,p=t?.tmpAtts?{...t.tmpAtts}:{};var c=pagelayer_empty(p[o+"-url"])?"":p[o+"-url"];const m=e=>{e.stopPropagation();const a={...p};Object.keys(a).forEach((e=>{e.startsWith(o+"-")&&delete a[e]})),a[o+"-no-image-set"]=1,a[o+"-url"]=d,s({[o]:d,tmpAtts:a})};return(0,a.createElement)("div",{className:"components-base-control pagelayer-base-control"},(0,a.createElement)(n,{...e}),(0,a.createElement)(y.MediaUpload,{title:"Select Image",onSelect:e=>{const{id:a,url:t,title:l,alt:r,sizes:n}=e;var i={};for(var c in n)i[o+"-"+c+"-url"]=n[c].url;const m={...p,[o+"-url"]:t,[o+"-title"]:l,[o+"-alt"]:r,[o+"-no-image-set"]:"",...i};s({[o]:a,tmpAtts:m}),s({"pagelayer-srcset":t+", "+t+" 1x"})},allowedTypes:i,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:i}=t.c;var o=pagelayer_empty(r)?["",""]:r;pagelayer_is_string(o)&&(o=o.split(","));const[p,c]=(0,a.useState)(!0),m=(0,a.useRef)(null),g=(e,a)=>{const l=parseFloat(a.target.value);let r=[...o];p?r=r.map((()=>l)):r[e]=l,t?.units&&(r=y(r)),s({[i]:r})},y=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(o[0]),onChange:e=>g(0,e)}),(0,a.createElement)("input",{type:"number",className:"pagelayer-elp-dimension",value:parseFloat(o[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:i}=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 y=(e,a)=>{const t=[...g];t[e]=a,r({[i]: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=>y(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)(o,{onChange:e=>y(1,e),value:g[1],type:t.type,setAttributes:r,handleClick:e=>y(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=>y(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)(o,{onChange:e=>y(3,e),value:g[3],type:t.type,setAttributes:r,handleClick:e=>y(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=>y(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)(o,{onChange:e=>y(5,e),value:g[5],type:t.type,setAttributes:r,handleClick:e=>y(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=>y(6,parseFloat(e.target.value)),value:g[6]})))))},rich_text:e=>{const{_props:t,propsName:l,value:r,tagName:n}=e,{setAttributes:s,attributes:i}=t,[o,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 d=["p","h1","h2","h3","h4","h5","h6"];var u=jQuery(`<div>${r}</div>`)[0].childNodes,_=null;return 1==u.length&&3!=u[0].nodeType&&-1!=d.indexOf(u[0].localName)&&(_=u[0].localName,delete m.tagName),(0,a.useEffect)((()=>{c.current&&c.current.dispatchEvent(new Event("input",{bubbles:!0}))}),[o]),(0,a.useEffect)((()=>{u.length<1||p(d.indexOf(u[0].localName))}),[]),(0,a.createElement)(a.Fragment,null,_?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(y.BlockControls,{group:"block"},(0,a.createElement)(N,{options:[1,2,3,4,5,6,0],value:o,onChange:e=>p(e)})),(0,a.createElement)(n,{...m},(0,a.createElement)(y.RichText,{ref:c,key:"editable",tagName:_,keepPlaceholderOnFocus:!0,placeholder:"Add Content...",onChange:e=>(e=>{if(null!=o){var a=d[o],t=`<${a}>${e}</${a}>`;u[0].attributes.length>0&&(t=`<${a} ${u[0].attributes}>${e}</${a}>`),s({[l]:t})}})(e),value:u[0].innerHTML,...u[0].attributes}))):(0,a.createElement)(y.RichText,{key:"editable",keepPlaceholderOnFocus:!0,placeholder:"Add Content...",onChange:e=>s({[l]:e}),value:pagelayer_empty(i[l])?g:i[l],...m}))},icon:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c,[i,o]=(0,a.useState)(pagelayer_loaded_icons[0]),[p,c]=(0,a.useState)(!1),[m,g]=(0,a.useState)(""),[y,d]=(0,a.useState)({fas:!0,far:!1,fab:!1});var u=l;if(u){var _=u.split(" fa-");u=_[1]}const f=e=>{d((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?u:"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=>{o(e.target.value)},value:i},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:y.fas?"active":""},"Solid"),(0,a.createElement)("p",{onClick:()=>f("far"),className:y.far?"active":""},"Regular"),(0,a.createElement)("p",{onClick:()=>f("fab"),className:y.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[i]).map((e=>{if(e in y&&!pagelayer_empty(y[e]))return h[i][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:i}=e,{name:o}=l.c,p=t?.tmpAtts?t.tmpAtts:{},[c,m]=(0,a.useState)({}),[g,y]=(0,a.useState)(!1),[d,u]=(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),i({[o]:r})};(0,a.useEffect)((()=>{"selector"in l&&y(!0);var e=t[o];"object"!=typeof e&&(e={link:e});const a=o in p?p[o]: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,[o]:l};i({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;var l=!!a;h({[t]:l})};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,[o]:a};i({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:$,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:()=>u(!d)}),(0,a.createElement)("div",{className:"pagelayer-elp-link-list"}),g&&d&&(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:T,audio:T,media:T,multi_image:e=>{const{prop:t,label:l,value:r,setAttributes:i,attributes:o,allow:p=["image"]}=e,{name:c}=t.c,m=o?.tmpAtts?o.tmpAtts:{},[g,d]=(0,a.useState)([]),[u,_]=(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(",")),d(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)(y.MediaUpload,{title:"Select Image",onSelect:e=>{var a=[],t={},l={},r={},n={},s={};for(var o in e){const{id:i,url:c,title:m,link:y,caption:d,sizes:u}=e[o];var p="i"+i;for(var g in a.push(i),t[p]=c,r[p]=m,n[p]=y,s[p]=d,l[p]={},u)l[p][g]=u[g].url}_(t),d(a);const y={...m,[c+"-urls"]:t,[c+"-all-urls"]:l,[c+"-all-titles"]:r,[c+"-all-links"]:n,[c+"-all-captions"]:s};i({[c]:a,tmpAtts:y})},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()},u&&Object.keys(u).map((e=>(0,a.createElement)("div",{className:"pagelayer-elp-multi_image-thumb",style:{backgroundImage:`url(${u[e]})`}}))))))(e)}))},shadow:e=>{const{prop:t,label:l,value:r,setAttributes:o}=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),[y,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),_=(0,a.useRef)(null),f=(0,a.useRef)(null),v=(e,a)=>{const t=[...c];t[e]=a,o({[p]:t})};return(0,a.useEffect)((()=>{const e=e=>{_.current&&!_.current.contains(e.target)&&u.current&&!u.current.contains(e.target)&&g(!1),f.current&&!f.current.contains(e.target)&&d(!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:()=>d(!y)},(0,a.createElement)("i",{className:"pli pli-pencil"})),y&&(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)(i.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:i}=t.c;var o=pagelayer_empty(r)?[]:r;pagelayer_is_string(o)&&(o=o.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)},o.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=o.filter((a=>a!==e));s({[i]:a.join(",")})})(e)},"x"))))),p&&(0,a.createElement)("ul",{className:"pagelayer-elp-multiselect-ul "+(p?"open":""),name:i},Object.keys(t.list).map((e=>((e,t)=>{const l=o.includes(e)?"selected":"";return(0,a.createElement)("li",{className:"pagelayer-elp-multiselect-option","data-val":e,"data-selected":l,onClick:()=>(e=>{if(o.includes(e)){const a=o.filter((a=>a!==e));s({[i]:a.join(",")})}else{const a=[...o,e];s({[i]:a.join(",")})}})(e)},t)})(e,t.list[e]))))))},font_family:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c;var i=pagelayerParseTypo(l,!1);const o=[],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&&o.push((0,a.createElement)("optgroup",{label:pagelayerUcwords(e)}));for(const a in A[e])o.push(p(jQuery.isNumeric(a)?A[e][a]:a,A[e][a],e,i[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},o)))},textarea:e=>{const{prop:t,value:l,setAttributes:r}=e,{name:s}=t.c,i=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:i,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,[i,o]=(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)&&o(!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:()=>o(!i)},(0,a.createElement)("i",{className:"pli pli-pencil"})),i&&(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 i=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 ${i}`})),l&&(0,a.createElement)("div",{className:"pagelayer-elp-access-holder"},t)))},modal:e=>{const{prop:t,children:l,label:r}=e,{width:s}=t,[o,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"})),o&&(0,a.createElement)(i.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:Pa,col:e=>{const{_props:t,data:r}=e,{clientId:n}=t,{atts:s,tmp:i,id:o}=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)),d={templateLock:!1,renderAppender:c?void 0:y.InnerBlocks.ButtonBlockAppender,allowedBlocks:g},u={className:`pagelayer-col-holder ${m}`},_=(0,y.useInnerBlocksProps)(u,d);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:i["parallax_img-title"],alt:i["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:i}=n;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:`pagelayer-quote-holder pagelayer-quote-${i?.quote_style}`},i?.quotation_pos&&(0,a.createElement)("i",{className:`fa fa-quote-left pagelayer-quotation-${i.quotation_pos}`}),(0,a.createElement)("div",{className:"pagelayer-quote-content"},i?.double_indent&&(0,a.createElement)("i",{className:"fa fa-quote-left"}),(0,a.createElement)(y.RichText,{key:"editable",tagName:"span",keepPlaceholderOnFocus:!0,placeholder:"Add Quote description...",onChange:e=>s({quote_content:e}),value:i.quote_content}),i?.double_indent&&(0,a.createElement)("i",{className:"fa fa-quote-right"})),(0,a.createElement)("div",{className:"pagelayer-quote-cite"},i?.cite_url?(0,a.createElement)("a",{href:i.cite_url,className:"pagelayer-link-sel",onClick:e=>e.preventDefault()},(0,a.createElement)(y.RichText,{key:"editable",tagName:"span",className:"pagelayer-cite-holder",keepPlaceholderOnFocus:!0,placeholder:"Add Cite...",onChange:e=>s({cite:e}),value:i.cite})):(0,a.createElement)(y.RichText,{key:"editable",tagName:"span",className:"pagelayer-cite-holder",keepPlaceholderOnFocus:!0,placeholder:"Add Cite...",onChange:e=>s({cite:e}),value:i.cite}))))},tabs:e=>{const{_props:t,pl_props:r,tag:n,data:s}=e,{setAttributes:i,clientId:o}=t,{id:p,atts:c}=s,m=(0,a.useRef)(null),{getBlocks:g}=(0,l.select)("core/block-editor"),d=g(o),u=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},d.map((e=>(0,a.createElement)("span",{"tab-id":e.attributes["pagelayer-id"],className:"pagelayer-tablinks",client_id:e.clientId,onClick:u,default_active:e.attributes?.default_active},(0,a.createElement)("i",{className:e.attributes?.tab_icon}),(0,a.createElement)(y.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:u,value:e.attributes?.title}))))),(0,a.createElement)("div",{className:"pagelayer-tabcontainer"},(0,a.createElement)(Ba,{...f})))},video:e=>{const{_props:t,tag:l,data:r}=e,{setAttributes:n,isSelected:s}=t,{id:i,atts:o,tmp:p}=r;(0,a.useEffect)((()=>{pagelayer_pl_video(pagelayer_query(`.p-${i}`))})),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${i}`).find(".pagelayer-video-overlay");e.length>0&&e.show()}),[o]);var c=pagelayer_empty(p["src-url"])?o.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 o?"&autoplay=1":"&autoplay=0","mute"in o){var g="true"===o.mute?1:0;m.src+="&"+("vimeo"==m.type?"muted":"mute")+"="+g}"loop"in o&&(m.src+="&loop=1"),o.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-${o?.video_ratio}`},o?.vid_src&&(0,a.createElement)("iframe",{id:"embed_video",className:"pagelayer-video-iframe",width:"100%",height:"auto",src:o?.vid_src,frameborder:0}),o?.lightbox?(0,a.createElement)("a",{href:c},o?.overlay&&(0,a.createElement)("div",{className:"pagelayer-video-overlay",style:{backgroundImage:`url(${p["video_overlay_image-url"]})`}},(0,a.createElement)("i",{className:o.play_icon,"aria-hidden":"true"}))):(0,a.createElement)(a.Fragment,null,o?.overlay&&(0,a.createElement)("div",{className:"pagelayer-video-overlay",style:{backgroundImage:`url(${p["video_overlay_image-url"]})`}},(0,a.createElement)("i",{className:o.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:i,id:o}=r,[p,c]=(0,a.useState)({});(0,a.useEffect)((()=>{var e=i?.ids?i?.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})}))}),[i]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${o}`);pagelayer_empty(p)||pagelayer_pl_image_slider(e)}),[i,p]);var m={};return"controls"in i&&("arrows"!=i.controls&&"none"!=i.controls||(m["data-pager"]="false"),"pager"!=i.controls&&"none"!=i.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-${o}`);pagelayer_owl_destroy(e,".pagelayer-image-slider-ul");const t=p.urls,l=p.allUrls,r=p.allTitles,n=[],c="link_type"in i&&!pagelayer_empty(i.link_type);for(const e in t){let s=t[e];"custom"!==i.size&&e in l&&i.size in l[e]&&(s=l[e][i.size]);const o=(0,a.createElement)("li",{className:"pagelayer-slider-item",key:e},c?(0,a.createElement)("a",{href:"media_file"===i.link_type?pagelayer_empty(t[e])?s:t[e]:i.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(o)}return(0,a.createElement)(a.Fragment,null,n)})())))},testimonial_slider:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:i,tag:o}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),y=(0,l.select)("core/block-editor").getBlocks(s).length,d=()=>{let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-testimonials-holder"),pagelayer_pl_testimonial_slider(e)};if(p!=y){let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-testimonials-holder"),c(y)}(0,a.useEffect)((()=>{setTimeout(d,200)}),[n]),(0,a.useEffect)(d,[y,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${i}`);return e.find(".pagelayer-owl-carousel").on("refresh.pagelayer.owl",(function(){g(!m)})),e.find(".pagelayer-testimonials-holder > .pagelayer-owl-stage-outer").length<1&&d(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var u={plTag:o,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ba,{className:"pagelayer-testimonials-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...u}))},review_slider:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:i,tag:o}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),y=(0,l.select)("core/block-editor").getBlocks(s).length,d=()=>{let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-reviews-holder"),pagelayer_reviews_slider(e)};if(p!=y){let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-reviews-holder"),c(y)}(0,a.useEffect)((()=>{setTimeout(d,200)}),[n]),(0,a.useEffect)(d,[y,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${i}`);return e.find(".pagelayer-owl-carousel").on("refresh.pagelayer.owl",(function(){g(!m)})),e.find(".pagelayer-reviews-holder > .pagelayer-owl-stage-outer").length<1&&d(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var u={plTag:o,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-review-slides-container"},(0,a.createElement)(Ba,{className:"pagelayer-reviews-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...u})))},video_slider:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:i,tag:o}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),y=(0,l.select)("core/block-editor").getBlocks(s).length,d=()=>{let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-video-slider-holder"),pagelayer_pl_video_slider(e)};if(p!=y){let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-video-slider-holder"),c(y)}(0,a.useEffect)((()=>{setTimeout(d,200)}),[n]),(0,a.useEffect)(d,[y,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${i}`);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&&d(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var u={plTag:o,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ba,{className:"pagelayer-video-slider-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...u}))},slides:e=>{const{_props:t,data:r}=e,{attributes:n,clientId:s}=t,{id:i,tag:o}=r,[p,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1),y=(0,l.select)("core/block-editor").getBlocks(s).length,d=()=>{let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-slides-holder"),pagelayer_pl_slides(e)};if(p!=y){let e=pagelayer_query(`.p-${i}`);pagelayer_owl_destroy(e,".pagelayer-slides-holder"),c(y)}(0,a.useEffect)((()=>{setTimeout(d,400)}),[n]),(0,a.useEffect)(d,[y,m]),(0,a.useEffect)((()=>{var e=pagelayer_query(`.p-${i}`);return e.find(".pagelayer-owl-carousel").on("refresh.pagelayer.owl",(function(){g(!m)})),e.find(".pagelayer-slides-holder > .pagelayer-owl-stage-outer").length<1&&d(),()=>{e.find(".pagelayer-owl-carousel").unbind("refresh.pagelayer.owl")}}));var u={plTag:o,_props:t};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ba,{className:"pagelayer-slides-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme",...u}))},fb_btn:e=>{const{_props:t,pl_props:l,tag:r,data:n}=e,{attributes:s}=t,{id:i,atts:o}=n,p=(0,a.useRef)(null),[c,m]=(0,a.useState)(null);return(0,a.useEffect)((()=>{"current"==o.link_type&&(o["custom-url"]=pagelayer_post_permalink,m(o["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":o["fb-app-id"]?o["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":o["custom-url"]?o["custom-url"]:c,"data-layout":o?.layout,"data-action":o?.btn_action,"data-show-faces":o?.peoples_faces,"data-size":o?.btn_size,"data-share":o?.share_btn})))},posts:e=>{const{_props:t,pl_props:l,tag:r,data:n}=e,{id:s,atts:i}=n,{attributes:o}=t,[p,c]=(0,a.useState)([]),[m,g]=(0,a.useState)("");(0,a.useEffect)((()=>{const e={};e.pagelayer_nonce=pagelayer_ajax_nonce,i.count&&(e.posts_per_page=i.count),i.show_thumb&&(e.show_thumb=i.show_thumb),i.thumb_size&&(e.thumb_size=i.thumb_size),i.show_content&&(e.show_content=i.show_content),i.show_title&&(e.show_title=i.show_title),i.more&&(e.more=i.more),i.btn_type&&(e.btn_type=i.btn_type),i.size&&(e.size=i.size),i.icon_position&&(e.icon_position=i.icon_position),i.icon&&(e.icon=i.icon),i.show_more&&(e.show_more=i.show_more),i.meta_sep&&(e.meta_sep=i.meta_sep),i.exc_length&&(e.exc_length=i.exc_length),i.post_type&&(e.post_type=i.post_type),i.posts_order&&(e.order=i.posts_order),i.inc_term&&(e.term=i.inc_term),i.inc_author&&(e.author_name=i.inc_author),i.exc_term&&(e.exc_term=i.exc_term),i.exc_author&&(e.exc_author=i.exc_author),i.offset&&(e.offset=i.offset),i.ignore_sticky&&(e.ignore_sticky=i.ignore_sticky),i.orderby&&(e.orderby=i.orderby),i.by_period&&(e.by_period=i.by_period),i.before_date&&(e.before_date=i.before_date),i.after_date&&(e.after_date=i.after_date),i.thumb_img_type&&(e.thumb_img_type=i.thumb_img_type);var a=n.tmp["def_thumb_img-"+i.thumb_size+"-url"];if(i.def_thumb_img&&(e.def_thumb_img=pagelayer_empty(a)?n.tmp["def_thumb_img-url"]:a),!pagelayer_empty(i.meta)){var t=i.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}]))}})}),[o]);const y=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}`);i.enable_slider?setTimeout((()=>{y(e),pagelayer_pl_posts(e)}),50):y(e)}),[o,m]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"pagelayer-posts-container",dangerouslySetInnerHTML:{__html:m}}),i?.infinite_types&&(0,a.createElement)("div",{className:"pagelayer_load_button","data-text":i.infinite_final},(0,a.createElement)("a",{"data-max":i?.max_pages,className:`pagelayer-btn-holder pagelayer-btn-load pagelayer-ele-link ${i.infinite_btn_type} ${i.infinite_btn_size} ${i.infinite_btn_size} ${i?.load_btn_icon_position}`},i?.load_btn_icon&&(0,a.createElement)("i",{className:`${i.load_btn_icon} pagelayer-btn-load-icon`}),i?.infinite_text&&(0,a.createElement)("span",{className:"pagelayer-btn-load-text"},i.infinite_text),i?.load_btn_icon&&(0,a.createElement)("i",{className:`${i.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:i,atts:o}=r,[p,c]=(0,Fa.useState)([]),[m,g]=(0,Fa.useState)([]);return(0,Fa.useEffect)((()=>{const e={};e.pagelayer_nonce=pagelayer_ajax_nonce,o.type&&(e.post_type=o.type),o.filter_by&&(e.filter_by=o.filter_by),o.count&&(e.posts_per_page=o.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,Fa.useEffect)((()=>{pagelayer_post_folio(pagelayer_query(`.p-${i}`))}),[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:i}=r,[o,p]=(0,a.useState)({}),[c,m]=(0,a.useState)({});return(0,a.useEffect)((()=>{const e=`${pagelayer_ajax_url}&action=${"post_type"==i.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="",o="",g="";"post_type"==i.sitemap_type?(t=i.source_post,l=i.order_post,r=i.order,s=i.hierarchical,o=i.depth):(t=i.source_taxonomy,l=i.order_taxonomy,r=i.order,s=i.hierarchical,o=i.depth,g=i.hide_empty),jQuery.ajax({type:"POST",url:e,data:{type:t,post_order:l,order:r,hier:s,depth:o,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"},o.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:o}})))},wp_menu:e=>{const{_props:t,pl_props:l,data:r}=e,{id:n,atts:s}=r,{attributes:i,clientId:o,setAttributes:p}=t,c=(0,a.useRef)(null),[m,g]=(0,a.useState)(null),y=(e,a)=>{g(Xe(e,t))};return(0,a.useEffect)((()=>{const e=jQuery(c.current).closest("#block-"+o);var a=pagelayerGetCurrentWindow();return pagelayer_primary_menu(e),jQuery(a).on("resize.pl_menu"+o,(function(){pagelayer_primary_menu(e)})),()=>{jQuery(a).unbind("resize.pl_menu"+o)}}),[m]),(0,a.useEffect)((()=>{var e=jQuery(c.current).closest("#block-"+o),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(Ha[a])){var r=e.find(".pagelayer-wp_menu-ul").parent();r.length>0&&y(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=Ra(e,a),Ha[a]=e,y(e)}})}else{var n=Ra(Ha[a],a);y(n)}}),[i]),(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:i}=n,{attributes:o}=t,[p,c]=(0,a.useState)("");return(0,a.useEffect)((()=>{var e={};e.atts=JSON.parse(JSON.stringify(i)),e.atts["pagelayer-id"]=s,e.pagelayer_nonce=pagelayer_ajax_nonce,pagelayer_empty(La)||!pagelayer_compare_object(La,e)||pagelayer_empty(Da[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),Da[s]=t}})):c(Da[s])}),[o]),(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:p}})},addGroupBlock:Ba}})()})();