Plugin Directory

Changeset 3306323


Ignore:
Timestamp:
06/04/2025 10:52:07 AM (7 months ago)
Author:
artistudio
Message:

Release version 2.14.0

Location:
floating-awesome-button
Files:
865 added
17 deleted
33 edited

Legend:

Unmodified
Added
Removed
  • floating-awesome-button/trunk/assets/build/components/fab/bundle.js

    r3291532 r3306323  
    1 var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function o(){return Object.create(null)}function i(t){t.forEach(n)}function a(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s;function l(t,e,n,o){if(t){const i=c(t,e,n,o);return t[0](i)}}function c(t,n,o,i){return t[1]&&i?e(o.ctx.slice(),t[1](i(n))):o.ctx}function d(t,e,n,o){if(t[2]&&o){const i=t[2](o(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|i[o];return t}return e.dirty|i}return e.dirty}function f(t,e,n,o,i,a){if(i){const r=c(e,n,o,a);t.p(r,i)}}function u(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}const m="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function p(t,e){t.appendChild(e)}function b(t,e,n){t.insertBefore(e,n||null)}function g(t){t.parentNode&&t.parentNode.removeChild(t)}function h(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function y(t){return document.createElement(t)}function _(t){return document.createTextNode(t)}function $(){return _(" ")}function w(){return _("")}function v(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function j(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const x=["width","height"];function k(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set&&-1===x.indexOf(o)?t[o]=e[o]:j(t,o,e[o])}function E(t,e,n,o){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function N(t,e,n){t.classList[n?"add":"remove"](e)}class S{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){var o;this.e||(this.is_svg?this.e=(o=e.nodeName,document.createElementNS("http://www.w3.org/2000/svg",o)):this.e=y(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)b(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(g)}}function A(t,e){return new t(e)}let T;function I(t){T=t}function L(){if(!T)throw new Error("Function called outside component initialization");return T}function C(t){L().$$.on_mount.push(t)}function P(){const t=L();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const a=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,a)})),!a.defaultPrevented}return!0}}function O(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const B=[],z=[];let M=[];const D=[],Q=Promise.resolve();let U=!1;function H(t){M.push(t)}const F=new Set;let G=0;function W(){if(0!==G)return;const t=T;do{try{for(;G<B.length;){const t=B[G];G++,I(t),R(t.$$)}}catch(t){throw B.length=0,G=0,t}for(I(null),B.length=0,G=0;z.length;)z.pop()();for(let t=0;t<M.length;t+=1){const e=M[t];F.has(e)||(F.add(e),e())}M.length=0}while(B.length);for(;D.length;)D.pop()();U=!1,F.clear(),I(t)}function R(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(H)}}const J=new Set;let K;function q(){K={r:0,c:[],p:K}}function X(){K.r||i(K.c),K=K.p}function V(t,e){t&&t.i&&(J.delete(t),t.i(e))}function Y(t,e,n,o){if(t&&t.o){if(J.has(t))return;J.add(t),K.c.push((()=>{J.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function Z(t){t&&t.c()}function tt(t,e,o,r){const{fragment:s,after_update:l}=t.$$;s&&s.m(e,o),r||H((()=>{const e=t.$$.on_mount.map(n).filter(a);t.$$.on_destroy?t.$$.on_destroy.push(...e):i(e),t.$$.on_mount=[]})),l.forEach(H)}function et(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];M.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),M=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function nt(t,e){-1===t.$$.dirty[0]&&(B.push(t),U||(U=!0,Q.then(W)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ot(e,n,a,r,s,l,c,d=[-1]){const f=T;I(e);const u=e.$$={fragment:null,ctx:[],props:l,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:o(),dirty:d,skip_bound:!1,root:n.target||f.$$.root};c&&c(u.root);let m=!1;if(u.ctx=a?a(e,n.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return u.ctx&&s(u.ctx[t],u.ctx[t]=i)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](i),m&&nt(e,t)),n})):[],u.update(),m=!0,i(u.before_update),u.fragment=!!r&&r(u.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);u.fragment&&u.fragment.l(t),t.forEach(g)}else u.fragment&&u.fragment.c();n.intro&&V(e.$$.fragment),tt(e,n.target,n.anchor,n.customElement),W()}I(f)}class it{$destroy(){et(this,1),this.$destroy=t}$on(e,n){if(!a(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function at(t){let{mobile:e,tablet:n,desktop:o}=t.responsive.device,i=!1;return i=!!(window.innerWidth<=640&&e)||i,i=!!(window.innerWidth>640&&window.innerWidth<=1024&&n)||i,i=!!(window.innerWidth>1024&&o)||i,i}function rt(t,e,n){let o=t.scrollTop,i=e-o,a=0,r=function(){a+=20;const e=(s=a,l=o,c=i,(s/=n/2)<1?c/2*s*s+l:-c/2*(--s*(s-2)-1)+l);var s,l,c;t.scrollTop=e,a<n&&setTimeout(r,20)};r()}class st{static autoTriggerCookieKeys={adblock:"FABTriggerAdblock",exit_intent:"FABTriggerExitIntent",time_delay:"FABTriggerTimeDelay"};static get_container_animation=t=>(t.in=t.in||"",t.out=t.out||"",t.timeout=t.timeout||250,t);static get_container_class_name=(t,e)=>{let{fab_design:n}=window.FAB_PLUGIN.options;return t+=" ",t+="flex items-center place-content-center relative rounded-full cursor-pointer ",t+="animate__animated ","shape"===n.template.name&&e&&(t+=`fab-template-shape-${e} `),t};static get_container_data=t=>t?Object.fromEntries(Object.entries(t).map((([t,e])=>[`data-${t}`,e]))):{};static ripple_dom_animation=(t,e,n)=>"ripple"===t.in&&e?`\n              <div class="animation-ripple" style="background: ${n};"></div>\n              <div class="animation-ripple" style="background: ${n}; animation-delay: 0.6s;"></div>\n          `:"";static autotriggerType(t){if(t.trigger&&["time_delay","exit_intent","adblock"].includes(t.trigger.type))switch(t.trigger.type){case"time_delay":this.autoTrigger(t);break;case"exit_intent":const e=function(t,e={}){const n={delay:1e3,sensitivity:20,maxEvents:1,...e};let o,i=0;function a(e){e.clientY<n.sensitivity&&i<n.maxEvents&&(i++,t(),r())}function r(){clearTimeout(o),document.removeEventListener("mousemove",a)}return o=setTimeout((()=>{document.addEventListener("mousemove",a)}),n.delay),r}((()=>{this.autoTrigger(t),setTimeout(e,500)}),{sensitivity:20,maxEvents:2,delay:1e3});break;case"adblock":new Promise(((t,e)=>{const n=document.createElement("div");n.innerHTML="&nbsp;",n.className="adsbox adbox ad-box ads-box",document.body.appendChild(n),window.setTimeout((()=>{const e=0===n.offsetHeight||"none"===getComputedStyle(n).display||"hidden"===getComputedStyle(n).visibility;n.parentNode&&document.body.removeChild(n),t(e)}),100)})).then((e=>{e&&this.autoTrigger(t)}))}}static autoTrigger(t){let e=`${this.autoTriggerCookieKeys[t.trigger.type]}-${t.ID}`,n=function(t){let e=null;return document.cookie.split(";").some((n=>{let o=n.split("=");if(o[0].replace(" ","")===t)return e=o[1],!0})),e}(e);if(t.trigger.triggered)return;if(n&&t.trigger.cookie.expiration>0)return;t.trigger.triggered=!0;let o=void 0!==t.trigger.delay?t.trigger.delay.replace("ms",""):1e3;setTimeout((()=>{!function(t,e,n=30,o="/"){let i=[[t,e],["path",o]];n&&i.push(["max-age",24*n*60*60]),document.cookie=i.map((t=>t.join("="))).join(";")}(e,"true",t.trigger.cookie.expiration,"/"),jQuery(`#fab-link-${t.ID}`).click()}),o)}}function lt(t){let n,o,i,a,r,s,c,m,h=st.ripple_dom_animation(t[0],t[5],t[11])+"";const _=t[16].default,w=l(_,t,t[15],null);let j=[{id:t[2]},{class:a=t[1]+" "+t[8]},{style:r=("shape"!==t[10].template.name?`background: ${t[11]};`:"")+" "+(t[3].tooltipDisplay?"width:min-content;":"")+" "+t[9]+" font-size: "+t[10].font.size.value+t[10].font.size.unit+"; "+("bold"===t[10].font.style?"font-weight: bold;":`font-style: ${t[10].font.style};`)+" font-family: "+t[10].font.family+"; "+t[7]},st.get_container_data(t[4])],x={};for(let t=0;t<j.length;t+=1)x=e(x,j[t]);return{c(){n=y("div"),o=new S(!1),i=$(),w&&w.c(),o.a=i,k(n,x),N(n,"shadow-md","classic"===t[10].template.name),N(n,"fab-rotate-animation",t[6])},m(e,a){b(e,n,a),o.m(h,n),p(n,i),w&&w.m(n,null),s=!0,c||(m=v(n,"click",t[17]),c=!0)},p(t,[e]){(!s||33&e)&&h!==(h=st.ripple_dom_animation(t[0],t[5],t[11])+"")&&o.p(h),w&&w.p&&(!s||32768&e)&&f(w,_,t,t[15],s?d(_,t[15],e,null):u(t[15]),null),k(n,x=function(t,e){const n={},o={},i={$$scope:1};let a=t.length;for(;a--;){const r=t[a],s=e[a];if(s){for(const t in r)t in s||(o[t]=1);for(const t in s)i[t]||(n[t]=s[t],i[t]=1);t[a]=s}else for(const t in r)i[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}(j,[(!s||4&e)&&{id:t[2]},(!s||258&e&&a!==(a=t[1]+" "+t[8]))&&{class:a},(!s||648&e&&r!==(r=("shape"!==t[10].template.name?`background: ${t[11]};`:"")+" "+(t[3].tooltipDisplay?"width:min-content;":"")+" "+t[9]+" font-size: "+t[10].font.size.value+t[10].font.size.unit+"; "+("bold"===t[10].font.style?"font-weight: bold;":`font-style: ${t[10].font.style};`)+" font-family: "+t[10].font.family+"; "+t[7]))&&{style:r},16&e&&st.get_container_data(t[4])])),N(n,"shadow-md","classic"===t[10].template.name),N(n,"fab-rotate-animation",t[6])},i(t){s||(V(w,t),s=!0)},o(t){Y(w,t),s=!1},d(t){t&&g(n),w&&w.d(t),c=!1,m()}}}function ct(t,e,n){let{$$slots:o={},$$scope:i}=e,{id:a=null}=e,{fab:r={}}=e,{data:s={}}=e,{animation:l={}}=e,{shape:c=""}=e,{display:d=!0}=e,{rippleAnimation:f=!1}=e,{rotateAnimation:u=!1}=e,{classNames:m="fab "}=e,{style:p=""}=e,{fab_design:b}=window.FAB_PLUGIN.options,g="",h="",y=!1,_=r?.template?.color??b.template.color;return l=st.get_container_animation(l),m=st.get_container_class_name(m,c),st.autotriggerType(r),t.$$set=t=>{"id"in t&&n(2,a=t.id),"fab"in t&&n(3,r=t.fab),"data"in t&&n(4,s=t.data),"animation"in t&&n(0,l=t.animation),"shape"in t&&n(12,c=t.shape),"display"in t&&n(13,d=t.display),"rippleAnimation"in t&&n(5,f=t.rippleAnimation),"rotateAnimation"in t&&n(6,u=t.rotateAnimation),"classNames"in t&&n(1,m=t.classNames),"style"in t&&n(7,p=t.style),"$$scope"in t&&n(15,i=t.$$scope)},t.$$.update=()=>{24577&t.$$.dirty&&(d?(n(8,g=` animate__${l.in} `),n(9,h="display: flex;")):y&&l.out?n(8,g=` animate__${l.out} `):(n(9,h="display: none;"),n(14,y=!0)))},[l,m,a,r,s,f,u,p,g,h,b,_,c,d,y,i,o,function(e){O.call(this,t,e)}]}class dt extends it{constructor(t){super(),ot(this,t,ct,lt,r,{id:2,fab:3,data:4,animation:0,shape:12,display:13,rippleAnimation:5,rotateAnimation:6,classNames:1,style:7})}}class ft{static get_styles_object(t){return t.singleType||("#fff"===t.icon.color&&(t.icon.color=""),"#fff"===t.tooltip.font.color&&(t.tooltip.font.color="")),t.tooltip.font.color=t.tooltip.font.color?t.tooltip.font.color:t.icon.color,t}}class ut{static get_styles_object(t){return t.button.shape="none"!=item.template.shape?item.template.shape:fab_design.template.shape,t.button.shape=`fab-template-shape-${t.button.shape}`,t}}class mt{static is_single_type(t){return!!t.classNames.includes("fab-single-collection")}static get_class(t){let{fab_design:e}=window.FAB_PLUGIN.options,n="fab-links fab-link-container flex items-center place-content-center min-w-max cursor-pointer ";return n+=t.classNames?`${t.classNames} `:"",n+=`fab-link-type-${t.type} `,n+=mt.get_responsive_class(t),mt.is_single_type(t)||"classic"!==e.template.name||(n+="bg-white rounded-full border border-slate-100 shadow-md "),n}static get_styles_object(t){let{fab_design:e}=window.FAB_PLUGIN.options,n={singleType:mt.is_single_type(t),button:{color:t.template?.color||e.template.color},icon:{color:t.template?.icon?.color||e.template.icon.color},tooltip:{label:e.tooltip.enable&&t.title,color:t.tooltip?.color||e.template.color,font:{color:t.tooltip?.font?.color||e.template.icon.color}}};return"classic"===e.template.name?n=ft.get_styles_object(n):"shape"===e.template.name&&(n=ut.get_styles_object(n)),n}static get_styles(t,e){let{to_display:n,options:o}=window.FAB_PLUGIN,{fab_design:i}=o,a="";return mt.is_single_type(t)&&1!==n.length||"shape"===i.template.name||!e||(a+="width:min-content;"),a+=`padding: ${i.font.padding.top}${i.font.padding.sizing} `,a+=`${i.font.padding.right}${i.font.padding.sizing} `,a+=`${i.font.padding.bottom}${i.font.padding.sizing} `,a+=`${i.font.padding.left}${i.font.padding.sizing};`,a}static get_responsive_class(t){let e="";return e+=t.responsive.device.mobile?"flex ":"hidden ",e+=t.responsive.device.tablet?"sm:flex ":"sm:hidden ",e+=t.responsive.device.desktop?"lg:flex ":"lg:hidden ",e}static register_on_click_event(t){jQuery(`#fab-link-${t.ID}`).on("click",(function(){window.dispatchEvent(new CustomEvent(`fab-link-${t.ID}`,{detail:{fab_item:t}}))}))}static handle_click_analytics(t){const{rest_url:e}=window.FAB_PLUGIN;event.preventDefault();const n=t.linkHref?t.link:null,o="yes"===t.linkBehavior?"_blank":null;fetch(e+"fab/v1/clicked",{method:"POST",headers:{"X-WP-Nonce":window.FAB_PLUGIN.nonce.clicked,"Content-Type":"application/json"},body:JSON.stringify({post_id:t.ID})}).then((()=>{n&&("_blank"===o?window.open(n,"_blank"):window.location.href=n)})).catch((t=>{console.error("Error:",t),n&&("_blank"===o?window.open(n,"_blank"):window.location.href=n)}))}}class pt{static get_tooltip_class(t){let e="animate__animated animate__fadeIn text-md cursor-pointer ";return t.button.shape&&(e+="px-4 pt-4 ml-3 rounded-md "),e}static get_tooltip_styles(t,e){let n="";return n+=`color: ${t.tooltip.font.color};`,e||(n+="width: auto;"),t.button.shape&&(n+=`background-color: ${t.button.color};`,n+="height: 80%;"),n}}const bt=t=>({}),gt=t=>({}),ht=t=>({}),yt=t=>({});function _t(e){let n,o,a,r,s,c,m,h,w,x,k,E,S=e[0].icon_class&&$t(e),A=e[3].tooltip.label&&function(e){let n,o,i;const a=e[6].label,r=l(a,e,e[5],gt),s=r||function(e){let n,o=e[3].tooltip.label+"";return{c(){n=_(o)},m(t,e){b(t,n,e)},p:t,d(t){t&&g(n)}}}(e);return{c(){n=y("span"),s&&s.c(),j(n,"class",pt.get_tooltip_class(e[3])),j(n,"style",o=pt.get_tooltip_styles(e[3],e[1])),N(n,"pr-2",e[0].icon_class),N(n,"hidden",!e[1])},m(t,e){b(t,n,e),s&&s.m(n,null),i=!0},p(t,e){r&&r.p&&(!i||32&e)&&f(r,a,t,t[5],i?d(a,t[5],e,bt):u(t[5]),gt),(!i||2&e&&o!==(o=pt.get_tooltip_styles(t[3],t[1])))&&j(n,"style",o),(!i||1&e)&&N(n,"pr-2",t[0].icon_class),(!i||2&e)&&N(n,"hidden",!t[1])},i(t){i||(V(s,t),i=!0)},o(t){Y(s,t),i=!1},d(t){t&&g(n),s&&s.d(t)}}}(e);return{c(){n=y("a"),S&&S.c(),o=$(),A&&A.c(),j(n,"id",a=`fab-link-${e[0].ID}`),j(n,"title",r=e[0].title),j(n,"href",s=e[0].linkHref?e[0].link:void 0),j(n,"target",c="yes"===e[0].linkBehavior?"_blank":void 0),j(n,"class",m=mt.get_class(e[0])),j(n,"style",h=mt.get_styles(e[0],e[1])),j(n,"data-id",w=e[0].ID?e[0].ID:void 0),N(n,"px-6","shape"!==e[2].template.name&&e[1]),N(n,"pl-3","right"!==e[2].layout.position&&"shape"===e[2].template.name&&e[1])},m(t,i){b(t,n,i),S&&S.m(n,null),p(n,o),A&&A.m(n,null),x=!0,k||(E=[v(n,"mouseenter",e[7]),v(n,"mouseleave",e[8])],k=!0)},p(t,e){t[0].icon_class?S?(S.p(t,e),1&e&&V(S,1)):(S=$t(t),S.c(),V(S,1),S.m(n,o)):S&&(q(),Y(S,1,1,(()=>{S=null})),X()),t[3].tooltip.label&&A.p(t,e),(!x||1&e&&a!==(a=`fab-link-${t[0].ID}`))&&j(n,"id",a),(!x||1&e&&r!==(r=t[0].title))&&j(n,"title",r),(!x||1&e&&s!==(s=t[0].linkHref?t[0].link:void 0))&&j(n,"href",s),(!x||1&e&&c!==(c="yes"===t[0].linkBehavior?"_blank":void 0))&&j(n,"target",c),(!x||1&e&&m!==(m=mt.get_class(t[0])))&&j(n,"class",m),(!x||3&e&&h!==(h=mt.get_styles(t[0],t[1])))&&j(n,"style",h),(!x||1&e&&w!==(w=t[0].ID?t[0].ID:void 0))&&j(n,"data-id",w),(!x||7&e)&&N(n,"px-6","shape"!==t[2].template.name&&t[1]),(!x||7&e)&&N(n,"pl-3","right"!==t[2].layout.position&&"shape"===t[2].template.name&&t[1])},i(t){x||(V(S),V(A),x=!0)},o(t){Y(S),Y(A),x=!1},d(t){t&&g(n),S&&S.d(),A&&A.d(),k=!1,i(E)}}}function $t(t){let e,n;const o=t[6].icon,i=l(o,t,t[5],yt),a=i||function(t){let e,n,o,i;return{c(){e=y("em"),o=$(),i=y("div"),j(e,"class",n="relative "+t[0].icon_class),E(e,"color",t[3].icon.color),j(i,"class","bg-shape"),E(i,"--background-color",t[3].button.color),N(i,"fab-bg-shape-active","shape"===t[2].template.name)},m(t,n){b(t,e,n),b(t,o,n),b(t,i,n)},p(t,o){1&o&&n!==(n="relative "+t[0].icon_class)&&j(e,"class",n)},d(t){t&&g(e),t&&g(o),t&&g(i)}}}(t);return{c(){e=y("div"),a&&a.c(),j(e,"class","fab-container-icon flex flex-col h-auto p-3 items-center place-content-center cursor-pointer "+t[3].button.shape),N(e,"simptip-position-right","left"===t[2].layout.position),N(e,"simptip-position-left","left"!==t[2].layout.position)},m(t,o){b(t,e,o),a&&a.m(e,null),n=!0},p(t,e){i?i.p&&(!n||32&e)&&f(i,o,t,t[5],n?d(o,t[5],e,ht):u(t[5]),yt):a&&a.p&&(!n||1&e)&&a.p(t,n?e:-1)},i(t){n||(V(a,t),n=!0)},o(t){Y(a,t),n=!1},d(t){t&&g(e),a&&a.d(t)}}}function wt(t){let e,n,o=t[0]&&_t(t);return{c(){o&&o.c(),e=w()},m(t,i){o&&o.m(t,i),b(t,e,i),n=!0},p(t,[n]){t[0]?o?(o.p(t,n),1&n&&V(o,1)):(o=_t(t),o.c(),V(o,1),o.m(e.parentNode,e)):o&&(q(),Y(o,1,1,(()=>{o=null})),X())},i(t){n||(V(o),n=!0)},o(t){Y(o),n=!1},d(t){o&&o.d(t),t&&g(e)}}}function vt(t,e,n){let{$$slots:o={},$$scope:i}=e,{fab_item:a={}}=e,{classNames:r="fab-links "}=e;a.classNames=r;const s=P();let{fab_design:l}=window.FAB_PLUGIN.options,c=mt.get_styles_object(a),d=a.tooltipDisplay??!1;function f(t){const{fab_item:e}=t.detail;mt.handle_click_analytics(e),s("click",{fab_item:e})}var u;a?.hotkey&&function(t,e,n={}){const{target:o=document,preventDefault:i=!0}=n,a=t.toLowerCase().split("+"),r=new Set,s={ctrl:"control",cmd:"meta",command:"meta",esc:"escape",del:"delete",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function l(t){const n=t.key.toLowerCase(),o=s[n]||n;r.add(o),a.every((e=>{const n=s[e]||e;return r.has(n)||"control"===n&&t.ctrlKey||"shift"===n&&t.shiftKey||"alt"===n&&t.altKey||"meta"===n&&t.metaKey}))&&(i&&(t.preventDefault(),t.stopPropagation()),e(t))}function c(t){const e=t.key.toLowerCase(),n=s[e]||e;r.delete(n)}o.addEventListener("keydown",l),o.addEventListener("keyup",c)}(a.hotkey,(t=>{jQuery("#fab-link-"+a.ID).click()})),C((()=>{mt.register_on_click_event(a),window.addEventListener(`fab-link-${a.ID}`,f)})),u=()=>{window.removeEventListener(`fab-link-${a.ID}`,f)},L().$$.on_destroy.push(u);return t.$$set=t=>{"fab_item"in t&&n(0,a=t.fab_item),"classNames"in t&&n(4,r=t.classNames),"$$scope"in t&&n(5,i=t.$$scope)},[a,d,l,c,r,i,o,()=>{n(1,d=!0)},()=>{n(1,d=!!a.tooltip.alwaysdisplay)}]}class jt extends it{constructor(t){super(),ot(this,t,vt,wt,r,{fab_item:0,classNames:4})}}function xt(t){let e,n,o=t[2]&&function(t){let e,n;return e=new jt({props:{fab_item:t[0],classNames:t[1]}}),e.$on("click",t[3]),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.fab_item=t[0]),2&n&&(o.classNames=t[1]),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}(t);return{c(){o&&o.c(),e=w()},m(t,i){o&&o.m(t,i),b(t,e,i),n=!0},p(t,[e]){t[2]&&o.p(t,e)},i(t){n||(V(o),n=!0)},o(t){Y(o),n=!1},d(t){o&&o.d(t),t&&g(e)}}}function kt(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e;const a=document.querySelector(o.link);return t.$$set=t=>{"fab_item"in t&&n(0,o=t.fab_item),"classNames"in t&&n(1,i=t.classNames)},[o,i,a,function(t){jQuery(document).ready((function(){let t=jQuery(o.link).offset().top;t=t>=30?t-30:t,rt(document.documentElement,t,1e3)}))}]}class Et extends it{constructor(t){super(),ot(this,t,kt,xt,r,{fab_item:0,classNames:1})}}class Nt{static handle_click(t){let{fab_item:e}=t.detail;window.FAB_PLUGIN?.dialogs?.[`fab-modal-${e.ID}`]?window.FAB_PLUGIN.dialogs[`fab-modal-${e.ID}`].open():Nt.load_dialog(e)}static load_dialog(t){jQuery("#fab-checkbox").prop("checked",!1),jQuery("#fab-checkbox").prop("checked",!1),jQuery("#fab-checkbox").trigger("click"),jQuery("#fab-checkbox").click();let e=`#fab-modal-${t.ID}`,n=[`fab-modal-${t.ID}`,void 0!==t.modal.theme.id?`theme-${t.modal.theme.id}`:"theme-blank",t.size.type],o={title:jQuery(e).data("title"),icon:jQuery(e).data("icon"),content:jQuery(e).children(":first"),draggable:!!t?.modal?.navigation?.draggable,escapeKey:!!t?.modal?.navigation?.escapeKey,backgroundDismiss:!!t?.modal?.navigation?.backgroundDismiss,closeIconClass:"fas fa-times text-base",theme:n.join(","),animation:"fabcustomcloseanimation",closeAnimation:"fabcustomcloseanimation",animationSpeed:"1000",onOpenBefore:function(){let t=jQuery(".jconfirm-box-container");t.hide(),setTimeout((function(){t.show(),t.addClass("jconfirm-animation-fabmodalopen")}),1);let e="fab-container ";e+=this.draggable?"fab-modal-draggable ":"fab-modal-notdraggable",jQuery(".jconfirm").addClass(e)},onOpen:function(){if(jQuery(".jconfirm-closeIcon").before('<div class="jconfirm-navigation"></div>'),t?.modal?.navigation?.buttons?.maximize&&Nt.navigation_maximize(t),t?.hotkey&&Nt.navigation_hotkey(t.hotkey),this.draggable){let t=this.$el.find(".fab-modal-icon-container"),e=this;t.on("mousedown",(function(n){t.addClass("jconfirm-hand"),e.mouseX=n.clientX,e.mouseY=n.clientY,e.isDrag=!0}))}},onClose:function(){if(jQuery(".jconfirm-box-container").addClass("jconfirm-animation-fabmodalclose"),this.draggable){this.$el.find(".fab-modal-icon-container").unbind("mousedown")}}},i=window.FAB_PLUGIN.dialogs||{};i[`fab-modal-${t.ID}`]=jQuery.dialog(o),window.FAB_PLUGIN.dialogs=i}static event_close_link(){jQuery(".fabclosemodal").on("click",(function(){Nt.close_dialog()}))}static register_on_click_event(){jQuery(".fab-link-modal").on("click",(function(){let t=jQuery(this).data("id"),e=window.FAB_PLUGIN.to_display.find((e=>e.ID===t));Nt.handle_click({detail:{fab_item:e}})}))}static close_dialog(){let t=window.FAB_PLUGIN?.dialogs||{};if(Object.keys(t).length>0)for(let e in t)t[e].close()}static navigation_maximize(t){jQuery(".jconfirm-navigation").append('<div class="jconfirm-maximize cursor-pointer"><i class="fas fa-expand"></i></div>'),jQuery(".jconfirm-maximize").on("click",(function(){"true"==jQuery(".jconfirm-box").data("maximize")?(jQuery(".jconfirm").removeClass("jconfirm-maximized"),jQuery(".jconfirm-box-container").css("transform","translate(0)"),jQuery(".jconfirm-box").data("maximize","false"),jQuery("i",this).addClass("fa-expand"),jQuery("i",this).removeClass("fa-compress")):(jQuery(".jconfirm").addClass("jconfirm-maximized"),jQuery(".jconfirm-box-container").css("transform","translate(0,0)"),jQuery(".jconfirm-box").data("maximize","true"),jQuery("i",this).removeClass("fa-expand"),jQuery("i",this).addClass("fa-compress"))}))}static navigation_hotkey(t){t=`<div class="jconfirm-hotkey">${(t=(t=(t=(t=t.replace("ctrl","⌃")).replace("alt","⌥")).replace("shift","⇧")).replace("+"," ")).toUpperCase()}</div>`,jQuery(".jconfirm-navigation").prepend(t)}}function St(t){let e,n;return e=new jt({props:{fab_item:t[1],classNames:t[0]}}),e.$on("click",t[2]),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,[n]){const o={};2&n&&(o.fab_item=t[1]),1&n&&(o.classNames=t[0]),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function At(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e;return i+=" fab-link-modal",C((()=>{jQuery(document).ready((function(){Nt.event_close_link(),Nt.register_on_click_event()}))})),t.$$set=t=>{"fab_item"in t&&n(1,o=t.fab_item),"classNames"in t&&n(0,i=t.classNames)},[i,o,function(t){"auth_logout"===o.type&&setTimeout((()=>{const{link:e}=t.detail.fab_item;window.location.href=e}),3e3)}]}class Tt extends it{constructor(t){super(),ot(this,t,At,St,r,{fab_item:1,classNames:0})}}function It(t){let e,n;return e=new jt({props:{fab_item:t[1],classNames:t[0]}}),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,[n]){const o={};2&n&&(o.fab_item=t[1]),1&n&&(o.classNames=t[0]),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Lt(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e;return i+=" fab-link-modal",C((()=>{jQuery(document).ready((function(){Nt.event_close_link(),Nt.register_on_click_event()}))})),t.$$set=t=>{"fab_item"in t&&n(1,o=t.fab_item),"classNames"in t&&n(0,i=t.classNames)},[i,o]}class Ct extends it{constructor(t){super(),ot(this,t,Lt,It,r,{fab_item:1,classNames:0})}}function Pt(e){let n,o,i;return{c(){var t,a;n=y("div"),o=y("img"),j(o,"width","40"),t=o.src,a=i=e[2].image,s||(s=document.createElement("a")),s.href=a,t!==s.href&&j(o,"src",i),j(o,"alt",e[2].name),j(n,"slot","icon")},m(t,e){b(t,n,e),p(n,o)},p:t,d(t){t&&g(n)}}}function Ot(e){let n,o=e[2].regular_price_formatted+"";return{c(){n=y("span")},m(t,e){b(t,n,e),n.innerHTML=o},p:t,d(t){t&&g(n)}}}function Bt(e){let n,o,i,a=e[2].regular_price_formatted+"",r=e[2].sale_price_formatted+"";return{c(){n=y("span"),o=$(),i=y("span"),E(n,"text-decoration","line-through"),E(i,"font-weight","bold"),E(i,"margin-left","8px")},m(t,e){b(t,n,e),n.innerHTML=a,b(t,o,e),b(t,i,e),i.innerHTML=r},p:t,d(t){t&&g(n),t&&g(o),t&&g(i)}}}function zt(t){let e,n,o,i,a;let r=function(t){return t[2].sale_price?Bt:Ot}(t),s=r(t);return{c(){e=y("div"),n=y("div"),o=y("p"),o.textContent=`${t[2].post_title}`,i=$(),a=y("div"),s.c(),E(o,"margin-bottom","5px"),j(e,"slot","label")},m(t,r){b(t,e,r),p(e,n),p(n,o),p(n,i),p(n,a),s.m(a,null)},p(t,e){s.p(t,e)},d(t){t&&g(e),s.d()}}}function Mt(t){let e,n;return e=new jt({props:{fab_item:t[0],classNames:t[1],$$slots:{label:[zt],icon:[Pt]},$$scope:{ctx:t}}}),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,[n]){const o={};1&n&&(o.fab_item=t[0]),2&n&&(o.classNames=t[1]),8&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Dt(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e,{product:a}=o.third_party_data;return t.$$set=t=>{"fab_item"in t&&n(0,o=t.fab_item),"classNames"in t&&n(1,i=t.classNames)},[o,i,a]}class Qt extends it{constructor(t){super(),ot(this,t,Dt,Mt,r,{fab_item:0,classNames:1})}}function Ut(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ht,Ft,Gt=(Ht=function(t,e){var n;window,n=function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"./src/index.js":
     1var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function o(){return Object.create(null)}function i(t){t.forEach(n)}function a(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s;function l(t,e,n,o){if(t){const i=c(t,e,n,o);return t[0](i)}}function c(t,n,o,i){return t[1]&&i?e(o.ctx.slice(),t[1](i(n))):o.ctx}function d(t,e,n,o){if(t[2]&&o){const i=t[2](o(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|i[o];return t}return e.dirty|i}return e.dirty}function f(t,e,n,o,i,a){if(i){const r=c(e,n,o,a);t.p(r,i)}}function u(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}const m="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function p(t,e){t.appendChild(e)}function b(t,e,n){t.insertBefore(e,n||null)}function g(t){t.parentNode&&t.parentNode.removeChild(t)}function h(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function y(t){return document.createElement(t)}function _(t){return document.createTextNode(t)}function $(){return _(" ")}function w(){return _("")}function v(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function j(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const x=["width","height"];function k(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set&&-1===x.indexOf(o)?t[o]=e[o]:j(t,o,e[o])}function E(t,e,n,o){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function N(t,e,n){t.classList[n?"add":"remove"](e)}class S{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){var o;this.e||(this.is_svg?this.e=(o=e.nodeName,document.createElementNS("http://www.w3.org/2000/svg",o)):this.e=y(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)b(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(g)}}function A(t,e){return new t(e)}let T;function I(t){T=t}function L(){if(!T)throw new Error("Function called outside component initialization");return T}function C(t){L().$$.on_mount.push(t)}function P(){const t=L();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const a=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,a)})),!a.defaultPrevented}return!0}}function O(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const B=[],z=[];let M=[];const D=[],Q=Promise.resolve();let U=!1;function H(t){M.push(t)}const F=new Set;let G=0;function W(){if(0!==G)return;const t=T;do{try{for(;G<B.length;){const t=B[G];G++,I(t),R(t.$$)}}catch(t){throw B.length=0,G=0,t}for(I(null),B.length=0,G=0;z.length;)z.pop()();for(let t=0;t<M.length;t+=1){const e=M[t];F.has(e)||(F.add(e),e())}M.length=0}while(B.length);for(;D.length;)D.pop()();U=!1,F.clear(),I(t)}function R(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(H)}}const J=new Set;let K;function q(){K={r:0,c:[],p:K}}function X(){K.r||i(K.c),K=K.p}function V(t,e){t&&t.i&&(J.delete(t),t.i(e))}function Y(t,e,n,o){if(t&&t.o){if(J.has(t))return;J.add(t),K.c.push((()=>{J.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function Z(t){t&&t.c()}function tt(t,e,o,r){const{fragment:s,after_update:l}=t.$$;s&&s.m(e,o),r||H((()=>{const e=t.$$.on_mount.map(n).filter(a);t.$$.on_destroy?t.$$.on_destroy.push(...e):i(e),t.$$.on_mount=[]})),l.forEach(H)}function et(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];M.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),M=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function nt(t,e){-1===t.$$.dirty[0]&&(B.push(t),U||(U=!0,Q.then(W)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ot(e,n,a,r,s,l,c,d=[-1]){const f=T;I(e);const u=e.$$={fragment:null,ctx:[],props:l,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:o(),dirty:d,skip_bound:!1,root:n.target||f.$$.root};c&&c(u.root);let m=!1;if(u.ctx=a?a(e,n.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return u.ctx&&s(u.ctx[t],u.ctx[t]=i)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](i),m&&nt(e,t)),n})):[],u.update(),m=!0,i(u.before_update),u.fragment=!!r&&r(u.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);u.fragment&&u.fragment.l(t),t.forEach(g)}else u.fragment&&u.fragment.c();n.intro&&V(e.$$.fragment),tt(e,n.target,n.anchor,n.customElement),W()}I(f)}class it{$destroy(){et(this,1),this.$destroy=t}$on(e,n){if(!a(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function at(t){let{mobile:e,tablet:n,desktop:o}=t.responsive.device,i=!1;return i=!!(window.innerWidth<=640&&e)||i,i=!!(window.innerWidth>640&&window.innerWidth<=1024&&n)||i,i=!!(window.innerWidth>1024&&o)||i,i}function rt(t,e,n){let o=t.scrollTop,i=e-o,a=0,r=function(){a+=20;const e=(s=a,l=o,c=i,(s/=n/2)<1?c/2*s*s+l:-c/2*(--s*(s-2)-1)+l);var s,l,c;t.scrollTop=e,a<n&&setTimeout(r,20)};r()}class st{static autoTriggerCookieKeys={adblock:"FABTriggerAdblock",exit_intent:"FABTriggerExitIntent",time_delay:"FABTriggerTimeDelay"};static get_container_animation=t=>(t.in=t.in||"",t.out=t.out||"",t.timeout=t.timeout||250,t);static get_container_class_name=(t,e)=>{let{fab_design:n}=window.FAB_PLUGIN.options;return t+=" ",t+="flex items-center place-content-center relative rounded-full cursor-pointer ",t+="animate__animated ","shape"===n.template.name&&e&&(t+=`fab-template-shape-${e} `),t};static get_container_data=t=>t?Object.fromEntries(Object.entries(t).map((([t,e])=>[`data-${t}`,e]))):{};static ripple_dom_animation=(t,e,n)=>"ripple"===t.in&&e?`\n              <div class="animation-ripple" style="background: ${n};"></div>\n              <div class="animation-ripple" style="background: ${n}; animation-delay: 0.6s;"></div>\n          `:"";static autotriggerType(t){if(t.trigger&&["time_delay","exit_intent","adblock"].includes(t.trigger.type))switch(t.trigger.type){case"time_delay":this.autoTrigger(t);break;case"exit_intent":const e=function(t,e={}){const n={delay:1e3,sensitivity:20,maxEvents:1,...e};let o,i=0;function a(e){e.clientY<n.sensitivity&&i<n.maxEvents&&(i++,t(),r())}function r(){clearTimeout(o),document.removeEventListener("mousemove",a)}return o=setTimeout((()=>{document.addEventListener("mousemove",a)}),n.delay),r}((()=>{this.autoTrigger(t),setTimeout(e,500)}),{sensitivity:20,maxEvents:2,delay:1e3});break;case"adblock":new Promise(((t,e)=>{const n=document.createElement("div");n.innerHTML="&nbsp;",n.className="adsbox adbox ad-box ads-box",document.body.appendChild(n),window.setTimeout((()=>{const e=0===n.offsetHeight||"none"===getComputedStyle(n).display||"hidden"===getComputedStyle(n).visibility;n.parentNode&&document.body.removeChild(n),t(e)}),100)})).then((e=>{e&&this.autoTrigger(t)}))}}static autoTrigger(t){let e=`${this.autoTriggerCookieKeys[t.trigger.type]}-${t.ID}`,n=function(t){let e=null;return document.cookie.split(";").some((n=>{let o=n.split("=");if(o[0].replace(" ","")===t)return e=o[1],!0})),e}(e);if(t.trigger.triggered)return;if(n&&t.trigger.cookie.expiration>0)return;t.trigger.triggered=!0;let o=void 0!==t.trigger.delay?t.trigger.delay.replace("ms",""):1e3;setTimeout((()=>{!function(t,e,n=30,o="/"){let i=[[t,e],["path",o]];n&&i.push(["max-age",24*n*60*60]),document.cookie=i.map((t=>t.join("="))).join(";")}(e,"true",t.trigger.cookie.expiration,"/"),jQuery(`#fab-link-${t.ID}`).click()}),o)}}function lt(t){let n,o,i,a,r,s,c,m,h=st.ripple_dom_animation(t[0],t[5],t[11])+"";const _=t[16].default,w=l(_,t,t[15],null);let j=[{id:t[2]},{class:a=t[1]+" "+t[8]},{style:r=("shape"!==t[10].template.name?`background: ${t[11]};`:"")+" "+(t[3].tooltipDisplay?"width:min-content;":"")+" "+t[9]+" font-size: "+t[10].font.size.value+t[10].font.size.unit+"; "+("bold"===t[10].font.style?"font-weight: bold;":`font-style: ${t[10].font.style};`)+" font-family: "+t[10].font.family+"; "+t[7]},st.get_container_data(t[4])],x={};for(let t=0;t<j.length;t+=1)x=e(x,j[t]);return{c(){n=y("div"),o=new S(!1),i=$(),w&&w.c(),o.a=i,k(n,x),N(n,"shadow-md","classic"===t[10].template.name),N(n,"fab-rotate-animation",t[6])},m(e,a){b(e,n,a),o.m(h,n),p(n,i),w&&w.m(n,null),s=!0,c||(m=v(n,"click",t[17]),c=!0)},p(t,[e]){(!s||33&e)&&h!==(h=st.ripple_dom_animation(t[0],t[5],t[11])+"")&&o.p(h),w&&w.p&&(!s||32768&e)&&f(w,_,t,t[15],s?d(_,t[15],e,null):u(t[15]),null),k(n,x=function(t,e){const n={},o={},i={$$scope:1};let a=t.length;for(;a--;){const r=t[a],s=e[a];if(s){for(const t in r)t in s||(o[t]=1);for(const t in s)i[t]||(n[t]=s[t],i[t]=1);t[a]=s}else for(const t in r)i[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}(j,[(!s||4&e)&&{id:t[2]},(!s||258&e&&a!==(a=t[1]+" "+t[8]))&&{class:a},(!s||648&e&&r!==(r=("shape"!==t[10].template.name?`background: ${t[11]};`:"")+" "+(t[3].tooltipDisplay?"width:min-content;":"")+" "+t[9]+" font-size: "+t[10].font.size.value+t[10].font.size.unit+"; "+("bold"===t[10].font.style?"font-weight: bold;":`font-style: ${t[10].font.style};`)+" font-family: "+t[10].font.family+"; "+t[7]))&&{style:r},16&e&&st.get_container_data(t[4])])),N(n,"shadow-md","classic"===t[10].template.name),N(n,"fab-rotate-animation",t[6])},i(t){s||(V(w,t),s=!0)},o(t){Y(w,t),s=!1},d(t){t&&g(n),w&&w.d(t),c=!1,m()}}}function ct(t,e,n){let{$$slots:o={},$$scope:i}=e,{id:a=null}=e,{fab:r={}}=e,{data:s={}}=e,{animation:l={}}=e,{shape:c=""}=e,{display:d=!0}=e,{rippleAnimation:f=!1}=e,{rotateAnimation:u=!1}=e,{classNames:m="fab "}=e,{style:p=""}=e,{fab_design:b}=window.FAB_PLUGIN.options,g="",h="",y=!1,_=r?.template?.color??b.template.color;return l=st.get_container_animation(l),m=st.get_container_class_name(m,c),st.autotriggerType(r),t.$$set=t=>{"id"in t&&n(2,a=t.id),"fab"in t&&n(3,r=t.fab),"data"in t&&n(4,s=t.data),"animation"in t&&n(0,l=t.animation),"shape"in t&&n(12,c=t.shape),"display"in t&&n(13,d=t.display),"rippleAnimation"in t&&n(5,f=t.rippleAnimation),"rotateAnimation"in t&&n(6,u=t.rotateAnimation),"classNames"in t&&n(1,m=t.classNames),"style"in t&&n(7,p=t.style),"$$scope"in t&&n(15,i=t.$$scope)},t.$$.update=()=>{24577&t.$$.dirty&&(d?(n(8,g=` animate__${l.in} `),n(9,h="display: flex;")):y&&l.out?n(8,g=` animate__${l.out} `):(n(9,h="display: none;"),n(14,y=!0)))},[l,m,a,r,s,f,u,p,g,h,b,_,c,d,y,i,o,function(e){O.call(this,t,e)}]}class dt extends it{constructor(t){super(),ot(this,t,ct,lt,r,{id:2,fab:3,data:4,animation:0,shape:12,display:13,rippleAnimation:5,rotateAnimation:6,classNames:1,style:7})}}class ft{static get_styles_object(t){return t.singleType||("#fff"===t.icon.color&&(t.icon.color=""),"#fff"===t.tooltip.font.color&&(t.tooltip.font.color="")),t.tooltip.font.color=t.tooltip.font.color?t.tooltip.font.color:t.icon.color,t}}class ut{static get_styles_object(t){return t.button.shape="none"!=item.template.shape?item.template.shape:fab_design.template.shape,t.button.shape=`fab-template-shape-${t.button.shape}`,t}}class mt{static is_single_type(t){return!!t.classNames.includes("fab-single-collection")}static get_class(t){let{fab_design:e}=window.FAB_PLUGIN.options,n="fab-links fab-link-container flex items-center place-content-center min-w-max cursor-pointer ";return n+=t.classNames?`${t.classNames} `:"",n+=`fab-link-type-${t.type} `,n+=mt.get_responsive_class(t),mt.is_single_type(t)||"classic"!==e.template.name||(n+="bg-white rounded-full border border-slate-100 shadow-md "),n}static get_styles_object(t){let{fab_design:e}=window.FAB_PLUGIN.options,n={singleType:mt.is_single_type(t),button:{color:t.template?.color||e.template.color},icon:{color:t.template?.icon?.color||e.template.icon.color},tooltip:{label:e.tooltip.enable&&t.title,color:t.tooltip?.color||e.template.color,font:{color:t.tooltip?.font?.color||e.template.icon.color}}};return"classic"===e.template.name?n=ft.get_styles_object(n):"shape"===e.template.name&&(n=ut.get_styles_object(n)),n}static get_styles(t,e){let{to_display:n,options:o}=window.FAB_PLUGIN,{fab_design:i}=o,a="";return mt.is_single_type(t)&&1!==n.length||"shape"===i.template.name||!e||(a+="width:min-content;"),a+=`padding: ${i.font.padding.top}${i.font.padding.sizing} `,a+=`${i.font.padding.right}${i.font.padding.sizing} `,a+=`${i.font.padding.bottom}${i.font.padding.sizing} `,a+=`${i.font.padding.left}${i.font.padding.sizing};`,a}static get_responsive_class(t){let e="";return e+=t.responsive.device.mobile?"flex ":"hidden ",e+=t.responsive.device.tablet?"sm:flex ":"sm:hidden ",e+=t.responsive.device.desktop?"lg:flex ":"lg:hidden ",e}static register_on_click_event(t){jQuery(`#fab-link-${t.ID}`).on("click",(function(){window.dispatchEvent(new CustomEvent(`fab-link-${t.ID}`,{detail:{fab_item:t}}))}))}static handle_click_analytics(t){const{rest_url:e}=window.FAB_PLUGIN;event.preventDefault();const n=t.linkHref?t.link:null,o="yes"===t.linkBehavior?"_blank":null;fetch(e+"fab/v1/clicked",{method:"POST",headers:{"X-WP-Nonce":window.FAB_PLUGIN.nonce.clicked,"Content-Type":"application/json"},body:JSON.stringify({post_id:t.ID})}).then((()=>{n&&("_blank"===o?window.open(n,"_blank"):window.location.href=n)})).catch((t=>{console.error("Error:",t),n&&("_blank"===o?window.open(n,"_blank"):window.location.href=n)}))}}class pt{static get_tooltip_class(t){let e="animate__animated animate__fadeIn text-md cursor-pointer ";return t.button.shape&&(e+="px-4 pt-4 ml-3 rounded-md "),e}static get_tooltip_styles(t,e){let n="";return n+=`color: ${t.tooltip.font.color};`,e||(n+="width: auto;"),t.button.shape&&(n+=`background-color: ${t.button.color};`,n+="height: 80%;"),n}}const bt=t=>({}),gt=t=>({}),ht=t=>({}),yt=t=>({});function _t(e){let n,o,a,r,s,c,m,h,w,x,k,E,S=e[0].icon_class&&$t(e),A=e[3].tooltip.label&&function(e){let n,o,i;const a=e[6].label,r=l(a,e,e[5],gt),s=r||function(e){let n,o=e[3].tooltip.label+"";return{c(){n=_(o)},m(t,e){b(t,n,e)},p:t,d(t){t&&g(n)}}}(e);return{c(){n=y("span"),s&&s.c(),j(n,"class",pt.get_tooltip_class(e[3])),j(n,"style",o=pt.get_tooltip_styles(e[3],e[1])),N(n,"pr-2",e[0].icon_class),N(n,"hidden",!e[1])},m(t,e){b(t,n,e),s&&s.m(n,null),i=!0},p(t,e){r&&r.p&&(!i||32&e)&&f(r,a,t,t[5],i?d(a,t[5],e,bt):u(t[5]),gt),(!i||2&e&&o!==(o=pt.get_tooltip_styles(t[3],t[1])))&&j(n,"style",o),(!i||1&e)&&N(n,"pr-2",t[0].icon_class),(!i||2&e)&&N(n,"hidden",!t[1])},i(t){i||(V(s,t),i=!0)},o(t){Y(s,t),i=!1},d(t){t&&g(n),s&&s.d(t)}}}(e);return{c(){n=y("a"),S&&S.c(),o=$(),A&&A.c(),j(n,"id",a=`fab-link-${e[0].ID}`),j(n,"title",r=e[0].title),j(n,"href",s=e[0].linkHref?e[0].link:void 0),j(n,"target",c="yes"===e[0].linkBehavior?"_blank":void 0),j(n,"class",m=mt.get_class(e[0])),j(n,"style",h=mt.get_styles(e[0],e[1])),j(n,"data-id",w=e[0].ID?e[0].ID:void 0),N(n,"px-6","shape"!==e[2].template.name&&e[1]),N(n,"pl-3","right"!==e[2].layout.position&&"shape"===e[2].template.name&&e[1])},m(t,i){b(t,n,i),S&&S.m(n,null),p(n,o),A&&A.m(n,null),x=!0,k||(E=[v(n,"mouseenter",e[7]),v(n,"mouseleave",e[8])],k=!0)},p(t,e){t[0].icon_class?S?(S.p(t,e),1&e&&V(S,1)):(S=$t(t),S.c(),V(S,1),S.m(n,o)):S&&(q(),Y(S,1,1,(()=>{S=null})),X()),t[3].tooltip.label&&A.p(t,e),(!x||1&e&&a!==(a=`fab-link-${t[0].ID}`))&&j(n,"id",a),(!x||1&e&&r!==(r=t[0].title))&&j(n,"title",r),(!x||1&e&&s!==(s=t[0].linkHref?t[0].link:void 0))&&j(n,"href",s),(!x||1&e&&c!==(c="yes"===t[0].linkBehavior?"_blank":void 0))&&j(n,"target",c),(!x||1&e&&m!==(m=mt.get_class(t[0])))&&j(n,"class",m),(!x||3&e&&h!==(h=mt.get_styles(t[0],t[1])))&&j(n,"style",h),(!x||1&e&&w!==(w=t[0].ID?t[0].ID:void 0))&&j(n,"data-id",w),(!x||7&e)&&N(n,"px-6","shape"!==t[2].template.name&&t[1]),(!x||7&e)&&N(n,"pl-3","right"!==t[2].layout.position&&"shape"===t[2].template.name&&t[1])},i(t){x||(V(S),V(A),x=!0)},o(t){Y(S),Y(A),x=!1},d(t){t&&g(n),S&&S.d(),A&&A.d(),k=!1,i(E)}}}function $t(t){let e,n;const o=t[6].icon,i=l(o,t,t[5],yt),a=i||function(t){let e,n,o,i;return{c(){e=y("em"),o=$(),i=y("div"),j(e,"class",n="relative "+t[0].icon_class),E(e,"color",t[3].icon.color),j(i,"class","bg-shape"),E(i,"--background-color",t[3].button.color),N(i,"fab-bg-shape-active","shape"===t[2].template.name)},m(t,n){b(t,e,n),b(t,o,n),b(t,i,n)},p(t,o){1&o&&n!==(n="relative "+t[0].icon_class)&&j(e,"class",n)},d(t){t&&g(e),t&&g(o),t&&g(i)}}}(t);return{c(){e=y("div"),a&&a.c(),j(e,"class","fab-container-icon flex flex-col h-auto p-3 items-center place-content-center cursor-pointer "+t[3].button.shape),N(e,"simptip-position-right","left"===t[2].layout.position),N(e,"simptip-position-left","left"!==t[2].layout.position)},m(t,o){b(t,e,o),a&&a.m(e,null),n=!0},p(t,e){i?i.p&&(!n||32&e)&&f(i,o,t,t[5],n?d(o,t[5],e,ht):u(t[5]),yt):a&&a.p&&(!n||1&e)&&a.p(t,n?e:-1)},i(t){n||(V(a,t),n=!0)},o(t){Y(a,t),n=!1},d(t){t&&g(e),a&&a.d(t)}}}function wt(t){let e,n,o=t[0]&&_t(t);return{c(){o&&o.c(),e=w()},m(t,i){o&&o.m(t,i),b(t,e,i),n=!0},p(t,[n]){t[0]?o?(o.p(t,n),1&n&&V(o,1)):(o=_t(t),o.c(),V(o,1),o.m(e.parentNode,e)):o&&(q(),Y(o,1,1,(()=>{o=null})),X())},i(t){n||(V(o),n=!0)},o(t){Y(o),n=!1},d(t){o&&o.d(t),t&&g(e)}}}function vt(t,e,n){let{$$slots:o={},$$scope:i}=e,{fab_item:a={}}=e,{classNames:r="fab-links "}=e;a.classNames=r;const s=P();let{fab_design:l}=window.FAB_PLUGIN.options,c=mt.get_styles_object(a),d=a.tooltipDisplay??!1;function f(t){const{fab_item:e}=t.detail;mt.handle_click_analytics(e),s("click",{fab_item:e})}var u;a?.hotkey&&function(t,e,n={}){const{target:o=document,preventDefault:i=!0}=n,a=t.toLowerCase().split("+"),r=new Set,s={ctrl:"control",cmd:"meta",command:"meta",esc:"escape",del:"delete",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function l(t){const n=t.key.toLowerCase(),o=s[n]||n;r.add(o),a.every((e=>{const n=s[e]||e;return r.has(n)||"control"===n&&t.ctrlKey||"shift"===n&&t.shiftKey||"alt"===n&&t.altKey||"meta"===n&&t.metaKey}))&&(i&&(t.preventDefault(),t.stopPropagation()),e(t))}function c(t){const e=t.key.toLowerCase(),n=s[e]||e;r.delete(n)}o.addEventListener("keydown",l),o.addEventListener("keyup",c)}(a.hotkey,(t=>{jQuery("#fab-link-"+a.ID).click()})),C((()=>{mt.register_on_click_event(a),window.addEventListener(`fab-link-${a.ID}`,f)})),u=()=>{window.removeEventListener(`fab-link-${a.ID}`,f)},L().$$.on_destroy.push(u);return t.$$set=t=>{"fab_item"in t&&n(0,a=t.fab_item),"classNames"in t&&n(4,r=t.classNames),"$$scope"in t&&n(5,i=t.$$scope)},[a,d,l,c,r,i,o,()=>{n(1,d=!0)},()=>{n(1,d=!!a.tooltip.alwaysdisplay)}]}class jt extends it{constructor(t){super(),ot(this,t,vt,wt,r,{fab_item:0,classNames:4})}}function xt(t){let e,n,o=t[2]&&function(t){let e,n;return e=new jt({props:{fab_item:t[0],classNames:t[1]}}),e.$on("click",t[3]),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.fab_item=t[0]),2&n&&(o.classNames=t[1]),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}(t);return{c(){o&&o.c(),e=w()},m(t,i){o&&o.m(t,i),b(t,e,i),n=!0},p(t,[e]){t[2]&&o.p(t,e)},i(t){n||(V(o),n=!0)},o(t){Y(o),n=!1},d(t){o&&o.d(t),t&&g(e)}}}function kt(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e;const a=document.querySelector(o.link);return t.$$set=t=>{"fab_item"in t&&n(0,o=t.fab_item),"classNames"in t&&n(1,i=t.classNames)},[o,i,a,function(t){jQuery(document).ready((function(){let t=o.extraOptions.scroll_duration,e=jQuery(o.link).offset().top;e=e>=30?e-30:e,rt(document.documentElement,e,t)}))}]}class Et extends it{constructor(t){super(),ot(this,t,kt,xt,r,{fab_item:0,classNames:1})}}class Nt{static handle_click(t){let{fab_item:e}=t.detail;window.FAB_PLUGIN?.dialogs?.[`fab-modal-${e.ID}`]?window.FAB_PLUGIN.dialogs[`fab-modal-${e.ID}`].open():Nt.load_dialog(e)}static load_dialog(t){jQuery("#fab-checkbox").prop("checked",!1),jQuery("#fab-checkbox").prop("checked",!1),jQuery("#fab-checkbox").trigger("click"),jQuery("#fab-checkbox").click();let e=`#fab-modal-${t.ID}`,n=[`fab-modal-${t.ID}`,void 0!==t.modal.theme.id?`theme-${t.modal.theme.id}`:"theme-blank",t.size.type],o={title:jQuery(e).data("title"),icon:jQuery(e).data("icon"),content:jQuery(e).children(":first"),draggable:!!t?.modal?.navigation?.draggable,escapeKey:!!t?.modal?.navigation?.escapeKey,backgroundDismiss:!!t?.modal?.navigation?.backgroundDismiss,closeIconClass:"fas fa-times text-base",theme:n.join(","),animation:"fabcustomcloseanimation",closeAnimation:"fabcustomcloseanimation",animationSpeed:"1000",onOpenBefore:function(){let t=jQuery(".jconfirm-box-container");t.hide(),setTimeout((function(){t.show(),t.addClass("jconfirm-animation-fabmodalopen")}),1);let e="fab-container ";e+=this.draggable?"fab-modal-draggable ":"fab-modal-notdraggable",jQuery(".jconfirm").addClass(e)},onOpen:function(){if(jQuery(".jconfirm-closeIcon").before('<div class="jconfirm-navigation"></div>'),t?.modal?.navigation?.buttons?.maximize&&Nt.navigation_maximize(t),t?.hotkey&&Nt.navigation_hotkey(t.hotkey),this.draggable){let t=this.$el.find(".fab-modal-icon-container"),e=this;t.on("mousedown",(function(n){t.addClass("jconfirm-hand"),e.mouseX=n.clientX,e.mouseY=n.clientY,e.isDrag=!0}))}},onClose:function(){if(jQuery(".jconfirm-box-container").addClass("jconfirm-animation-fabmodalclose"),this.draggable){this.$el.find(".fab-modal-icon-container").unbind("mousedown")}}},i=window.FAB_PLUGIN.dialogs||{};i[`fab-modal-${t.ID}`]=jQuery.dialog(o),window.FAB_PLUGIN.dialogs=i}static event_close_link(){jQuery(".fabclosemodal").on("click",(function(){Nt.close_dialog()}))}static register_on_click_event(){jQuery(".fab-link-modal").on("click",(function(){let t=jQuery(this).data("id"),e=window.FAB_PLUGIN.to_display.find((e=>e.ID===t));Nt.handle_click({detail:{fab_item:e}})}))}static close_dialog(){let t=window.FAB_PLUGIN?.dialogs||{};if(Object.keys(t).length>0)for(let e in t)t[e].close()}static navigation_maximize(t){jQuery(".jconfirm-navigation").append('<div class="jconfirm-maximize cursor-pointer"><i class="fas fa-expand"></i></div>'),jQuery(".jconfirm-maximize").on("click",(function(){"true"==jQuery(".jconfirm-box").data("maximize")?(jQuery(".jconfirm").removeClass("jconfirm-maximized"),jQuery(".jconfirm-box-container").css("transform","translate(0)"),jQuery(".jconfirm-box").data("maximize","false"),jQuery("i",this).addClass("fa-expand"),jQuery("i",this).removeClass("fa-compress")):(jQuery(".jconfirm").addClass("jconfirm-maximized"),jQuery(".jconfirm-box-container").css("transform","translate(0,0)"),jQuery(".jconfirm-box").data("maximize","true"),jQuery("i",this).removeClass("fa-expand"),jQuery("i",this).addClass("fa-compress"))}))}static navigation_hotkey(t){t=`<div class="jconfirm-hotkey">${(t=(t=(t=(t=t.replace("ctrl","⌃")).replace("alt","⌥")).replace("shift","⇧")).replace("+"," ")).toUpperCase()}</div>`,jQuery(".jconfirm-navigation").prepend(t)}}function St(t){let e,n;return e=new jt({props:{fab_item:t[1],classNames:t[0]}}),e.$on("click",t[2]),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,[n]){const o={};2&n&&(o.fab_item=t[1]),1&n&&(o.classNames=t[0]),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function At(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e;return i+=" fab-link-modal",C((()=>{jQuery(document).ready((function(){Nt.event_close_link(),Nt.register_on_click_event()}))})),t.$$set=t=>{"fab_item"in t&&n(1,o=t.fab_item),"classNames"in t&&n(0,i=t.classNames)},[i,o,function(t){"auth_logout"===o.type&&setTimeout((()=>{const{link:e}=t.detail.fab_item;window.location.href=e}),3e3)}]}class Tt extends it{constructor(t){super(),ot(this,t,At,St,r,{fab_item:1,classNames:0})}}function It(t){let e,n;return e=new jt({props:{fab_item:t[1],classNames:t[0]}}),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,[n]){const o={};2&n&&(o.fab_item=t[1]),1&n&&(o.classNames=t[0]),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Lt(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e;return i+=" fab-link-modal",C((()=>{jQuery(document).ready((function(){Nt.event_close_link(),Nt.register_on_click_event()}))})),t.$$set=t=>{"fab_item"in t&&n(1,o=t.fab_item),"classNames"in t&&n(0,i=t.classNames)},[i,o]}class Ct extends it{constructor(t){super(),ot(this,t,Lt,It,r,{fab_item:1,classNames:0})}}function Pt(e){let n,o,i;return{c(){var t,a;n=y("div"),o=y("img"),j(o,"width","40"),t=o.src,a=i=e[2].image,s||(s=document.createElement("a")),s.href=a,t!==s.href&&j(o,"src",i),j(o,"alt",e[2].name),j(n,"slot","icon")},m(t,e){b(t,n,e),p(n,o)},p:t,d(t){t&&g(n)}}}function Ot(e){let n,o=e[2].regular_price_formatted+"";return{c(){n=y("span")},m(t,e){b(t,n,e),n.innerHTML=o},p:t,d(t){t&&g(n)}}}function Bt(e){let n,o,i,a=e[2].regular_price_formatted+"",r=e[2].sale_price_formatted+"";return{c(){n=y("span"),o=$(),i=y("span"),E(n,"text-decoration","line-through"),E(i,"font-weight","bold"),E(i,"margin-left","8px")},m(t,e){b(t,n,e),n.innerHTML=a,b(t,o,e),b(t,i,e),i.innerHTML=r},p:t,d(t){t&&g(n),t&&g(o),t&&g(i)}}}function zt(t){let e,n,o,i,a;let r=function(t){return t[2].sale_price?Bt:Ot}(t),s=r(t);return{c(){e=y("div"),n=y("div"),o=y("p"),o.textContent=`${t[2].post_title}`,i=$(),a=y("div"),s.c(),E(o,"margin-bottom","5px"),j(e,"slot","label")},m(t,r){b(t,e,r),p(e,n),p(n,o),p(n,i),p(n,a),s.m(a,null)},p(t,e){s.p(t,e)},d(t){t&&g(e),s.d()}}}function Mt(t){let e,n;return e=new jt({props:{fab_item:t[0],classNames:t[1],$$slots:{label:[zt],icon:[Pt]},$$scope:{ctx:t}}}),{c(){Z(e.$$.fragment)},m(t,o){tt(e,t,o),n=!0},p(t,[n]){const o={};1&n&&(o.fab_item=t[0]),2&n&&(o.classNames=t[1]),8&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){Y(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Dt(t,e,n){let{fab_item:o={}}=e,{classNames:i=""}=e,{product:a}=o.third_party_data;return t.$$set=t=>{"fab_item"in t&&n(0,o=t.fab_item),"classNames"in t&&n(1,i=t.classNames)},[o,i,a]}class Qt extends it{constructor(t){super(),ot(this,t,Dt,Mt,r,{fab_item:0,classNames:1})}}function Ut(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ht,Ft,Gt=(Ht=function(t,e){var n;window,n=function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"./src/index.js":
    22/*!**********************!*\
    33      !*** ./src/index.js ***!
  • floating-awesome-button/trunk/assets/build/components/setting/bundle.js

    r3285502 r3306323  
    1 var app=function(){"use strict";function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function i(){return Object.create(null)}function o(e){e.forEach(n)}function a(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let r;function l(e,t){return r||(r=document.createElement("a")),r.href=t,e===r.href}function c(t,n,i){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function d(e,t,n,i){if(e){const o=u(e,t,n,i);return e[0](o)}}function u(e,n,i,o){return e[1]&&o?t(i.ctx.slice(),e[1](o(n))):i.ctx}function f(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let i=0;i<n;i+=1)e[i]=t.dirty[i]|o[i];return e}return t.dirty|o}return t.dirty}function m(e,t,n,i,o,a){if(o){const s=u(t,n,i,a);e.p(s,o)}}function p(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function g(e,t){e.appendChild(t)}function $(e,t,n){e.insertBefore(t,n||null)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function b(e){return document.createElement(e)}function x(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function w(e){return document.createTextNode(e)}function y(){return w(" ")}function v(){return w("")}function k(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function C(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const T=["width","height"];function j(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)null==t[i]?e.removeAttribute(i):"style"===i?e.style.cssText=t[i]:"__value"===i?e.value=e[i]=t[i]:n[i]&&n[i].set&&-1===T.indexOf(i)?e[i]=t[i]:C(e,i,t[i])}function L(e,t){t=""+t,e.data!==t&&(e.data=t)}function N(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function O(e,t,n){e.classList[n?"add":"remove"](t)}function P(e,t){return new e(t)}let A;function E(e){A=e}function F(){if(!A)throw new Error("Function called outside component initialization");return A}function I(e){F().$$.on_mount.push(e)}function B(){const e=F();return(t,n,{cancelable:i=!1}={})=>{const o=e.$$.callbacks[t];if(o){const a=function(e,t,{bubbles:n=!1,cancelable:i=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,i,t),o}(t,n,{cancelable:i});return o.slice().forEach((t=>{t.call(e,a)})),!a.defaultPrevented}return!0}}const M=[],S=[];let z=[];const G=[],H=Promise.resolve();let q=!1;function U(e){z.push(e)}const V=new Set;let Q=0;function R(){if(0!==Q)return;const e=A;do{try{for(;Q<M.length;){const e=M[Q];Q++,E(e),D(e.$$)}}catch(e){throw M.length=0,Q=0,e}for(E(null),M.length=0,Q=0;S.length;)S.pop()();for(let e=0;e<z.length;e+=1){const t=z[e];V.has(t)||(V.add(t),t())}z.length=0}while(M.length);for(;G.length;)G.pop()();q=!1,V.clear(),E(e)}function D(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(U)}}const X=new Set;let K;function W(){K={r:0,c:[],p:K}}function J(){K.r||o(K.c),K=K.p}function Y(e,t){e&&e.i&&(X.delete(e),e.i(t))}function Z(e,t,n,i){if(e&&e.o){if(X.has(e))return;X.add(e),K.c.push((()=>{X.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}else i&&i()}function ee(e,t){const n={},i={},o={$$scope:1};let a=e.length;for(;a--;){const s=e[a],r=t[a];if(r){for(const e in s)e in r||(i[e]=1);for(const e in r)o[e]||(n[e]=r[e],o[e]=1);e[a]=r}else for(const e in s)o[e]=1}for(const e in i)e in n||(n[e]=void 0);return n}function te(e){e&&e.c()}function ne(e,t,i,s){const{fragment:r,after_update:l}=e.$$;r&&r.m(t,i),s||U((()=>{const t=e.$$.on_mount.map(n).filter(a);e.$$.on_destroy?e.$$.on_destroy.push(...t):o(t),e.$$.on_mount=[]})),l.forEach(U)}function ie(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];z.forEach((i=>-1===e.indexOf(i)?t.push(i):n.push(i))),n.forEach((e=>e())),z=t}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function oe(e,t){-1===e.$$.dirty[0]&&(M.push(e),q||(q=!0,H.then(R)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ae(t,n,a,s,r,l,c,d=[-1]){const u=A;E(t);const f=t.$$={fragment:null,ctx:[],props:l,update:e,not_equal:r,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:i(),dirty:d,skip_bound:!1,root:n.target||u.$$.root};c&&c(f.root);let m=!1;if(f.ctx=a?a(t,n.props||{},((e,n,...i)=>{const o=i.length?i[0]:n;return f.ctx&&r(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),m&&oe(t,e)),n})):[],f.update(),m=!0,o(f.before_update),f.fragment=!!s&&s(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(h)}else f.fragment&&f.fragment.c();n.intro&&Y(t.$$.fragment),ne(t,n.target,n.anchor,n.customElement),R()}E(u)}class se{$destroy(){ie(this,1),this.$destroy=e}$on(t,n){if(!a(n))return e;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const re=[];let{sections:le}=window.FAB_SETTING;const ce=function(t,n=e){let i;const o=new Set;function a(e){if(s(t,e)&&(t=e,i)){const e=!re.length;for(const e of o)e[1](),re.push(e,t);if(e){for(let e=0;e<re.length;e+=2)re[e][0](re[e+1]);re.length=0}}}return{set:a,update:function(e){a(e(t))},subscribe:function(s,r=e){const l=[s,r];return o.add(l),1===o.size&&(i=n(a)||e),s(t),()=>{o.delete(l),0===o.size&&i&&(i(),i=null)}}}}(le.find((e=>e.slug===new URL(window.location.href).searchParams.get("section")))||le[0]);function de(e,t,n){const i=e.slice();return i[9]=t[n],i}function ue(e,t,n){const i=e.slice();return i[9]=t[n],i[13]=n,i}function fe(e){let t,n,i,o,a,s,r=e[9].name+"";function l(){return e[7](e[13])}return{c(){t=b("li"),n=b("div"),i=w(r),C(n,"class",o="block animate__animated "+(e[1][e[13]].nav.active?`animate__${e[4].elements.tab}`:"")),C(t,"class","px-8 py-2 first:border-0 border-l-2 border-gray-100 nav-nonurl"),C(t,"data-tab","section-"+e[9].slug),O(t,"tab-active",e[0]===e[13])},m(e,o){$(e,t,o),g(t,n),g(n,i),a||(s=k(t,"click",l),a=!0)},p(i,a){e=i,2&a&&o!==(o="block animate__animated "+(e[1][e[13]].nav.active?`animate__${e[4].elements.tab}`:""))&&C(n,"class",o),1&a&&O(t,"tab-active",e[0]===e[13])},d(e){e&&h(t),a=!1,s()}}}function me(t){let n,i,o,a,s=t[9].name+"";return{c(){n=b("div"),i=b("div"),o=w(s),a=y(),C(i,"class","menu-item cursor-pointer text-gray-700 flex justify-between w-full px-4 py-2 text-sm leading-5 text-left"),C(i,"data-tab","section-"+t[9].slug),C(n,"class","py-1")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(n,a)},p:e,d(e){e&&h(n)}}}function pe(t){let n,i,o,a,s,r,l,c,d,u,f,m,p,x,w,v,k,T,j=t[2],L=[];for(let e=0;e<j.length;e+=1)L[e]=fe(ue(t,j,e));let N=t[2],O=[];for(let e=0;e<N.length;e+=1)O[e]=me(de(t,N,e));return{c(){n=b("div"),i=b("nav"),o=b("div"),a=b("div"),s=y(),r=b("h1"),r.textContent=`${t[3]}`,l=y(),c=b("div"),d=b("ul");for(let e=0;e<L.length;e+=1)L[e].c();u=y(),f=b("li"),f.innerHTML='<div class="block"><a href="https://artistudio.xyz/affiliate" target="_blank"><span class="text-primary-600 font-bold">Affiliate Program</span></a></div>',m=y(),p=b("div"),x=b("div"),w=b("span"),w.innerHTML='<button class="inline-flex justify-center w-full px-2 py-2 text-sm font-medium leading-5 text-gray-700 transition duration-150 ease-in-out bg-white rounded-md hover:text-gray-500 active:bg-gray-50 active:text-gray-800" type="button" aria-haspopup="true" aria-expanded="true" aria-controls="headlessui-menu-items-117"><svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg></button>',v=y(),k=b("div"),T=b("div");for(let e=0;e<O.length;e+=1)O[e].c();C(a,"class","w-4 h-4 bg-primary-600 rounded-full"),C(r,"class","text-gray-800 text-lg font-medium ml-4"),C(o,"class","text-white flex-shrink flex items-center relative rounded-lg bg-white py-2 px-4 mr-4 md:mr-8"),C(f,"class","px-8 py-2 first:border-0 border-l-2 border-gray-100 nav-nonurl animate__animated animate__tada"),C(d,"class","fab-menu-desktop nav-tab-wrapper hidden sm:inline-flex flex-row cursor-pointer mx-4 mt-3 p-2 nav-tab-general"),C(w,"class","rounded-md shadow-sm"),C(T,"class","absolute right-0 w-56 mt-2 origin-top-right bg-white border border-gray-200 divide-y divide-gray-100 rounded-md shadow-lg outline-none z-50"),C(T,"aria-labelledby","headlessui-menu-button-1"),C(T,"id","headlessui-menu-items-117"),C(k,"class","opacity-0 invisible dropdown-menu transition-all duration-300 transform origin-top-right -translate-y-2 scale-95 absolute z-50 right-0 mx-4"),C(x,"class","fab-menu-responsive mx-4 pr-3"),C(p,"class","sm:hidden inline-block float-right right-0"),C(c,"class","md:w-auto md:flex-grow md:flex md:items-center absolute display-inline-block float-right right-0"),C(i,"class","flex flex-wrap items-center px-4 py-2"),C(n,"class","header bg-white shadow-sm rounded-lg mt-6 mr-4")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(o,a),g(o,s),g(o,r),g(i,l),g(i,c),g(c,d);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(d,null);g(d,u),g(d,f),g(c,m),g(c,p),g(p,x),g(x,w),g(x,v),g(x,k),g(k,T);for(let e=0;e<O.length;e+=1)O[e]&&O[e].m(T,null)},p(e,[t]){if(55&t){let n;for(j=e[2],n=0;n<j.length;n+=1){const i=ue(e,j,n);L[n]?L[n].p(i,t):(L[n]=fe(i),L[n].c(),L[n].m(d,u))}for(;n<L.length;n+=1)L[n].d(1);L.length=j.length}if(4&t){let n;for(N=e[2],n=0;n<N.length;n+=1){const i=de(e,N,n);O[n]?O[n].p(i,t):(O[n]=me(i),O[n].c(),O[n].m(T,null))}for(;n<O.length;n+=1)O[n].d(1);O.length=N.length}},i:e,o:e,d(e){e&&h(n),_(L,e),_(O,e)}}}function ge(e,t,n){let i;c(e,ce,(e=>n(8,i=e)));let{sections:o}=window.FAB_SETTING,a=i?o.findIndex((e=>e.slug===i.slug)):o.findIndex((e=>e.active)),s=i||o[a];const{name:r}=window.FAB_PLUGIN,{fab_animation:l}=window.FAB_PLUGIN.options;let d=o.map((()=>({nav:{active:!1},section:{active:!1}})));const u=e=>{n(0,a=e),n(6,s=o[e]),n(1,d[e].nav.active=!1,d),setTimeout((()=>{n(1,d[e].nav.active=!0,d)}),100)};return e.$$.update=()=>{if(64&e.$$.dirty){ce.set(s);const e=new URL(window.location.href);e.searchParams.set("section",s.slug),window.history.pushState({},"",e.toString())}},[a,d,o,r,l,u,s,e=>u(e)]}class $e extends se{constructor(e){super(),ae(this,e,ge,pe,s,{})}}function he(t){let n,i,o;return{c(){n=b("div"),n.innerHTML='<em class="fas fa-arrow-up text-xl text-white my-4"></em>',C(n,"class","animate__animated animate__rotateIn cursor-pointer fixed shadow-md right-6 bottom-8 w-16 h-16 bg-primary-600 hover:bg-primary-700 rounded-full mouse transition ease-in duration-200 focus:outline-none text-center invisible md:visible"),N(n,"z-index","2")},m(e,a){$(e,n,a),i||(o=k(n,"click",t[1]),i=!0)},p:e,d(e){e&&h(n),i=!1,o()}}}function _e(t){let n,i=t[0]&&he(t);return{c(){i&&i.c(),n=v()},m(e,t){i&&i.m(e,t),$(e,n,t)},p(e,[t]){e[0]?i?i.p(e,t):(i=he(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:e,o:e,d(e){i&&i.d(e),e&&h(n)}}}function be(e,t,n){let i=!1;window.addEventListener("scroll",(function(){n(0,i=!(jQuery(window).scrollTop()<400))}));return[i,()=>{window.FAB_PLUGIN.scrollTo(document.documentElement,0,400)}]}class xe extends se{constructor(e){super(),ae(this,e,be,_e,s,{})}}function we(t){let n,i,o,a,s,r,l,c;return{c(){n=b("div"),i=b("form"),o=b("input"),a=y(),s=b("input"),r=y(),l=b("input"),c=w("\n\n    Are you sure you want to reset the setting?"),C(o,"type","hidden"),C(o,"name","clear-config"),o.value=t[0].clear,C(s,"type","hidden"),C(s,"id","clear-nonce"),C(s,"name","clear-nonce"),s.value=t[0].clear,C(l,"type","hidden"),C(l,"name","_wp_http_referer"),l.value="/wp-admin/options-general.php?page=floating-awesome-button-setting",C(i,"method","POST"),C(i,"id","clear-config-form"),C(n,"id","clear-config"),N(n,"display","none")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(i,a),g(i,s),g(i,r),g(i,l),g(i,c)},p:e,i:e,o:e,d(e){e&&h(n)}}}function ye(e){const{rest_url:t}=window.FAB_SETTING;let{nonce:n}=window.FAB_SETTING;return jQuery(document).ready((function(e){e(".reset-option").click((function(){jQuery.confirm({icon:"fas fa-sync",closeIcon:!0,animation:"scale",columnClass:"j-small",title:"Reset",content:jQuery("#clear-config").html(),buttons:{confirm(){const i=e("#clear-config-form").serialize();e.ajax({url:t+"fab/v1/clear-setting",type:"POST",beforeSend(e){e.setRequestHeader("X-WP-Nonce",n.setting)},data:i,success:e=>{window.location.reload()},error:(e,t,n)=>{console.error("Error:",n)}})},cancel(){}}})}))})),[n]}class ve extends se{constructor(e){super(),ae(this,e,ye,we,s,{})}}const ke=e=>({}),Ce=e=>({});function Te(e){let t,n;return{c(){t=b("div"),n=b("em"),C(t,"class","text-gray-400 mt-2 field-info")},m(i,o){$(i,t,o),g(t,n),n.innerHTML=e[3]},p(e,t){8&t&&(n.innerHTML=e[3])},d(e){e&&h(t)}}}function je(e){let t,n,i,o,a,s,r,l,c,u;const _=e[5].tooltip,x=d(_,e,e[4],Ce),w=e[5].default,v=d(w,e,e[4],null);let k=e[3]&&Te(e);return{c(){t=b("div"),n=b("div"),i=b("label"),a=y(),x&&x.c(),s=y(),r=b("div"),l=b("div"),v&&v.c(),c=y(),k&&k.c(),C(i,"for",o="field_"+e[0]),C(n,"class","font-medium text-gray-600 pt-2 flex justify-between"),C(l,"class","flex"),C(r,"class","col-span-4"),C(t,"class",e[2])},m(o,d){$(o,t,d),g(t,n),g(n,i),i.innerHTML=e[1],g(n,a),x&&x.m(n,null),g(t,s),g(t,r),g(r,l),v&&v.m(l,null),g(r,c),k&&k.m(r,null),u=!0},p(e,[n]){(!u||2&n)&&(i.innerHTML=e[1]),(!u||1&n&&o!==(o="field_"+e[0]))&&C(i,"for",o),x&&x.p&&(!u||16&n)&&m(x,_,e,e[4],u?f(_,e[4],n,ke):p(e[4]),Ce),v&&v.p&&(!u||16&n)&&m(v,w,e,e[4],u?f(w,e[4],n,null):p(e[4]),null),e[3]?k?k.p(e,n):(k=Te(e),k.c(),k.m(r,null)):k&&(k.d(1),k=null),(!u||4&n)&&C(t,"class",e[2])},i(e){u||(Y(x,e),Y(v,e),u=!0)},o(e){Z(x,e),Z(v,e),u=!1},d(e){e&&h(t),x&&x.d(e),v&&v.d(e),k&&k.d()}}}function Le(e,t,n){let{$$slots:i={},$$scope:o}=t,{id:a}=t,{text:s}=t,{containerClass:r="grid grid-cols-5 gap-4 py-4 fab-option-container-"}=t,{info:l}=t;return e.$$set=e=>{"id"in e&&n(0,a=e.id),"text"in e&&n(1,s=e.text),"containerClass"in e&&n(2,r=e.containerClass),"info"in e&&n(3,l=e.info),"$$scope"in e&&n(4,o=e.$$scope)},[a,s,r,l,o,i]}class Ne extends se{constructor(e){super(),ae(this,e,Le,je,s,{id:0,text:1,containerClass:2,info:3})}}function Oe(e){let t,n;return{c(){t=b("div"),n=b("em"),C(t,"class","text-gray-400")},m(i,o){$(i,t,o),g(t,n),n.innerHTML=e[1]},p(e,t){2&t&&(n.innerHTML=e[1])},d(e){e&&h(t)}}}function Pe(t){let n,i,o,a,s=t[1]&&Oe(t);return{c(){n=b("div"),i=b("span"),o=w(t[0]),a=y(),s&&s.c(),C(i,"class","text-lg"),C(n,"class","py-4 my-4 border-b border-gray-200")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(n,a),s&&s.m(n,null)},p(e,[t]){1&t&&L(o,e[0]),e[1]?s?s.p(e,t):(s=Oe(e),s.c(),s.m(n,null)):s&&(s.d(1),s=null)},i:e,o:e,d(e){e&&h(n),s&&s.d()}}}function Ae(e,t,n){let{text:i=""}=t,{info:o=""}=t;return e.$$set=e=>{"text"in e&&n(0,i=e.text),"info"in e&&n(1,o=e.info)},[i,o]}class Ee extends se{constructor(e){super(),ae(this,e,Ae,Pe,s,{text:0,info:1})}}function Fe(e,t,n){const i=e.slice();return i[5]=t[n],i}function Ie(e){let t,n,i,o=e[5].text+"";return{c(){t=b("option"),n=w(o),t.__value=i=e[5].id,t.value=t.__value},m(e,i){$(e,t,i),g(t,n)},p(e,a){16&a&&o!==(o=e[5].text+"")&&L(n,o),16&a&&i!==(i=e[5].id)&&(t.__value=i,t.value=t.__value)},d(e){e&&h(t)}}}function Be(t){let n,i,o=t[4],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ie(Fe(t,o,e));return{c(){n=b("select");for(let e=0;e<a.length;e+=1)a[e].c();C(n,"id",i="field_"+t[0]),C(n,"name",t[2]),C(n,"class",t[3]),C(n,"data-selected",t[1])},m(e,t){$(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(e,[t]){if(16&t){let i;for(o=e[4],i=0;i<o.length;i+=1){const s=Fe(e,o,i);a[i]?a[i].p(s,t):(a[i]=Ie(s),a[i].c(),a[i].m(n,null))}for(;i<a.length;i+=1)a[i].d(1);a.length=o.length}1&t&&i!==(i="field_"+e[0])&&C(n,"id",i),4&t&&C(n,"name",e[2]),8&t&&C(n,"class",e[3]),2&t&&C(n,"data-selected",e[1])},i:e,o:e,d(e){e&&h(n),_(a,e)}}}function Me(e,t,n){let{id:i=""}=t,{value:o=""}=t,{name:a=""}=t,{inputClass:s="select2"}=t,{selectOptions:r=[]}=t;return e.$$set=e=>{"id"in e&&n(0,i=e.id),"value"in e&&n(1,o=e.value),"name"in e&&n(2,a=e.name),"inputClass"in e&&n(3,s=e.inputClass),"selectOptions"in e&&n(4,r=e.selectOptions)},[i,o,a,s,r]}class Se extends se{constructor(e){super(),ae(this,e,Me,Be,s,{id:0,value:1,name:2,inputClass:3,selectOptions:4})}}function ze(t){let n,i,o,a,s,r,l,c,d,u,f,m,p,_,x,v,T,j,O,P=t[4].text+"";return{c(){n=b("div"),i=b("label"),o=b("div"),a=b("input"),l=y(),c=b("div"),d=y(),u=b("div"),m=y(),p=b("input"),x=y(),v=b("span"),T=w(P),C(a,"type","checkbox"),C(a,"id",s="switch_"+t[1]),C(a,"class","option_settings switch sr-only"),C(a,"data-option",r="field_"+t[1]),C(c,"class","fab absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition"),C(u,"class","block bg-gray-300 w-10 h-6 rounded-full"),C(o,"class","relative"),C(i,"for",f="switch_"+t[1]),C(i,"class","flex cursor-pointer"),C(p,"type","hidden"),C(p,"name",t[2]),C(p,"id",_="field_"+t[1]),p.value=t[0],C(v,"class","pl-2"),N(v,"padding-top","2px"),C(n,"class",t[3])},m(e,s){$(e,n,s),g(n,i),g(i,o),g(o,a),a.checked=t[0],g(o,l),g(o,c),g(o,d),g(o,u),g(n,m),g(n,p),g(n,x),g(n,v),g(v,T),j||(O=k(a,"change",t[5]),j=!0)},p(e,[t]){2&t&&s!==(s="switch_"+e[1])&&C(a,"id",s),2&t&&r!==(r="field_"+e[1])&&C(a,"data-option",r),1&t&&(a.checked=e[0]),2&t&&f!==(f="switch_"+e[1])&&C(i,"for",f),4&t&&C(p,"name",e[2]),2&t&&_!==(_="field_"+e[1])&&C(p,"id",_),1&t&&(p.value=e[0]),16&t&&P!==(P=e[4].text+"")&&L(T,P),8&t&&C(n,"class",e[3])},i:e,o:e,d(e){e&&h(n),j=!1,O()}}}function Ge(e,t,n){let{id:i=""}=t,{value:o=0}=t,{name:a=""}=t,{inputClass:s="flex"}=t,{label:r={}}=t;var l;return o="string"!=typeof(l=o)||isNaN(l)||isNaN(parseFloat(l))?o:parseInt(o),o=1===o||!0===o||"true"===o||"yes"===o?1:0,e.$$set=e=>{"id"in e&&n(1,i=e.id),"value"in e&&n(0,o=e.value),"name"in e&&n(2,a=e.name),"inputClass"in e&&n(3,s=e.inputClass),"label"in e&&n(4,r=e.label)},[o,i,a,s,r,function(){o=this.checked,n(0,o)}]}class He extends se{constructor(e){super(),ae(this,e,Ge,ze,s,{id:1,value:0,name:2,inputClass:3,label:4})}}function qe(t){let n,i;return n=new He({props:{id:"option_animation_enable",name:"fab_animation[enable]",label:{text:"Enable/Disable"},value:t[1].enable}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Ue(t){let n,i;return n=new Se({props:{id:"option_animation_logo",name:"fab_animation[elements][logo]",inputClass:"select2 field_option_animation_element",value:t[1].elements.logo}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Ve(t){let n,i;return n=new Se({props:{id:"option_animation_tab",name:"fab_animation[elements][tab]",inputClass:"select2 field_option_animation_element",value:t[1].elements.tab}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Qe(t){let n,i;return n=new Se({props:{id:"option_animation_content",name:"fab_animation[elements][content]",inputClass:"select2 field_option_animation_element",value:t[1].elements.content}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Re(t){let n,i;return n=new Se({props:{id:"option_animation_fab",name:"fab_animation[elements][fab]",inputClass:"select2 field_option_animation_element",value:t[1].elements.fab}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function De(t){let n,i;return n=new Se({props:{id:"option_animation_active",name:"fab_animation[elements][fab_active]",inputClass:"select2 field_option_animation_element",value:t[1].elements.fab_active}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Xe(t){let n,i;return n=new Se({props:{id:"option_animation_inactive",name:"fab_animation[elements][fab_inactive]",inputClass:"select2 field_option_animation_element",value:t[1].elements.fab_inactive}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Ke(e){let t,n,i,o,a;t=new Ne({props:{id:"option_animation_enable",text:"Enable Option",$$slots:{default:[qe]},$$scope:{ctx:e}}});let s=!e[2].production&&function(e){let t,n,i,o,a,s;return t=new Ne({props:{id:"option_animation_logo",text:"Logo Animation",$$slots:{default:[Ue]},$$scope:{ctx:e}}}),i=new Ne({props:{id:"option_animation_tab",text:"Section Tab",$$slots:{default:[Ve]},$$scope:{ctx:e}}}),a=new Ne({props:{id:"option_animation_content",text:"Section Content",$$slots:{default:[Qe]},$$scope:{ctx:e}}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment),o=y(),te(a.$$.fragment)},m(e,r){ne(t,e,r),$(e,n,r),ne(i,e,r),$(e,o,r),ne(a,e,r),s=!0},p(e,n){const o={};8&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const s={};8&n&&(s.$$scope={dirty:n,ctx:e}),i.$set(s);const r={};8&n&&(r.$$scope={dirty:n,ctx:e}),a.$set(r)},i(e){s||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),Y(a.$$.fragment,e),s=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),Z(a.$$.fragment,e),s=!1},d(e){ie(t,e),e&&h(n),ie(i,e),e&&h(o),ie(a,e)}}}(e),r=e[0]&&function(e){let t,n,i,o,a,s,r,l;return t=new Ee({props:{text:"Floating Button"}}),i=new Ne({props:{id:"option_animation_fab",text:"Parent",$$slots:{default:[Re]},$$scope:{ctx:e}}}),a=new Ne({props:{id:"option_animation_active",text:"List Active",$$slots:{default:[De]},$$scope:{ctx:e}}}),r=new Ne({props:{id:"option_animation_inactive",text:"List Inactive",$$slots:{default:[Xe]},$$scope:{ctx:e}}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment),o=y(),te(a.$$.fragment),s=y(),te(r.$$.fragment)},m(e,c){ne(t,e,c),$(e,n,c),ne(i,e,c),$(e,o,c),ne(a,e,c),$(e,s,c),ne(r,e,c),l=!0},p(e,t){const n={};8&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n);const o={};8&t&&(o.$$scope={dirty:t,ctx:e}),a.$set(o);const s={};8&t&&(s.$$scope={dirty:t,ctx:e}),r.$set(s)},i(e){l||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),Y(a.$$.fragment,e),Y(r.$$.fragment,e),l=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),Z(a.$$.fragment,e),Z(r.$$.fragment,e),l=!1},d(e){ie(t,e),e&&h(n),ie(i,e),e&&h(o),ie(a,e),e&&h(s),ie(r,e)}}}(e);return{c(){te(t.$$.fragment),n=y(),s&&s.c(),i=y(),r&&r.c(),o=v()},m(e,l){ne(t,e,l),$(e,n,l),s&&s.m(e,l),$(e,i,l),r&&r.m(e,l),$(e,o,l),a=!0},p(e,[n]){const i={};8&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i),e[2].production||s.p(e,n),e[0]&&r.p(e,n)},i(e){a||(Y(t.$$.fragment,e),Y(s),Y(r),a=!0)},o(e){Z(t.$$.fragment,e),Z(s),Z(r),a=!1},d(e){ie(t,e),e&&h(n),s&&s.d(e),e&&h(i),r&&r.d(e),e&&h(o)}}}function We(e){let{premium:t}=window.FAB_PLUGIN,{fab_animation:n}=window.FAB_PLUGIN.options,{config:i}=window.FAB_SETTING;return[t,n,i]}class Je extends se{constructor(e){super(),ae(this,e,We,Ke,s,{})}}function Ye(n){let i,o,a=[{type:"number"},{id:o="field_"+n[1]},{name:n[3]},{value:n[2]},{required:n[5]},{placeholder:n[6]},{step:n[4]},{class:n[7]},n[0]],s={};for(let e=0;e<a.length;e+=1)s=t(s,a[e]);return{c(){i=b("input"),j(i,s)},m(e,t){$(e,i,t),i.autofocus&&i.focus()},p(e,[t]){j(i,s=ee(a,[{type:"number"},2&t&&o!==(o="field_"+e[1])&&{id:o},8&t&&{name:e[3]},4&t&&i.value!==e[2]&&{value:e[2]},32&t&&{required:e[5]},64&t&&{placeholder:e[6]},16&t&&{step:e[4]},128&t&&{class:e[7]},1&t&&e[0]]))},i:e,o:e,d(e){e&&h(i)}}}function Ze(e,t,n){let{id:i=""}=t,{value:o=""}=t,{name:a=""}=t,{step:s="any"}=t,{required:r}=t,{placeholder:l}=t,{inputClass:c="border border-gray-200 py-2 px-3 text-grey-darkest w-full"}=t,{data:d={}}=t;return d&&(d=Object.keys(d).reduce((function(e,t){return e[`data-${t}`]=d[t],e}),{})),e.$$set=e=>{"id"in e&&n(1,i=e.id),"value"in e&&n(2,o=e.value),"name"in e&&n(3,a=e.name),"step"in e&&n(4,s=e.step),"required"in e&&n(5,r=e.required),"placeholder"in e&&n(6,l=e.placeholder),"inputClass"in e&&n(7,c=e.inputClass),"data"in e&&n(0,d=e.data)},[d,i,o,a,s,r,l,c]}class et extends se{constructor(e){super(),ae(this,e,Ze,Ye,s,{id:1,value:2,name:3,step:4,required:5,placeholder:6,inputClass:7,data:0})}}function tt(t){let n,i,o,a,s,r,l,c,d,u,f;return n=new et({props:{id:"option_design_layout_position_margin_top",name:"fab_design[layout][margin][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20",value:t[1].layout.margin.top}}),o=new et({props:{id:"option_design_layout_position_margin_right",name:"fab_design[layout][margin][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].layout.margin.right}}),s=new et({props:{id:"option_design_layout_position_margin_bottom",name:"fab_design[layout][margin][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].layout.margin.bottom}}),l=new et({props:{id:"option_design_layout_position_margin_left",name:"fab_design[layout][margin][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].layout.margin.left}}),u=new Se({props:{id:"option_design_layout_position_margin_sizing",name:"fab_design[layout][margin][sizing]",inputClass:"select2 fab_modal_layout_spacing_sizing",value:t[1].layout.margin.sizing,selectOptions:[{id:"px",text:"PX"},{id:"em",text:"EM"},{id:"%",text:"%"},{id:"rem",text:"REM"},{id:"vw",text:"VW"},{id:"vh",text:"VH"}]}}),{c(){te(n.$$.fragment),i=y(),te(o.$$.fragment),a=y(),te(s.$$.fragment),r=y(),te(l.$$.fragment),c=y(),d=b("div"),te(u.$$.fragment),C(d,"class","ml-4 w-20")},m(e,t){ne(n,e,t),$(e,i,t),ne(o,e,t),$(e,a,t),ne(s,e,t),$(e,r,t),ne(l,e,t),$(e,c,t),$(e,d,t),ne(u,d,null),f=!0},p:e,i(e){f||(Y(n.$$.fragment,e),Y(o.$$.fragment,e),Y(s.$$.fragment,e),Y(l.$$.fragment,e),Y(u.$$.fragment,e),f=!0)},o(e){Z(n.$$.fragment,e),Z(o.$$.fragment,e),Z(s.$$.fragment,e),Z(l.$$.fragment,e),Z(u.$$.fragment,e),f=!1},d(e){ie(n,e),e&&h(i),ie(o,e),e&&h(a),ie(s,e),e&&h(r),ie(l,e),e&&h(c),e&&h(d),ie(u)}}}function nt(t){let n,i;return n=new Se({props:{id:"option_design_template_name",name:"fab_design[template][name]",inputClass:"select2 field_option_design_template_name",value:t[1].template.name}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function it(t){let n,i;return n=new Se({props:{id:"option_design_template_shape",name:"fab_design[template][shape]",inputClass:"select2 field_option_design_template_shape",value:t[1].template.shape}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function ot(e){let t,n;return t=new Se({props:{id:"option_design_font_family",name:"fab_design[font][family]",inputClass:"select2 field_option_design_font_family",value:e[1].font.family,selectOptions:e[0]}}),{c(){te(t.$$.fragment)},m(e,i){ne(t,e,i),n=!0},p(e,n){const i={};1&n&&(i.selectOptions=e[0]),t.$set(i)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){ie(t,e)}}}function at(t){let n,i;return n=new Se({props:{id:"option_design_font_style",name:"fab_design[font][style]",inputClass:"select2 field_option_design_font_style",value:t[1].font.style}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function st(t){let n,i,o,a,s;return n=new et({props:{id:"option_design_font_size_value",name:"fab_design[font][size][value]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20",value:t[1].font.size.value}}),a=new Se({props:{id:"option_design_font_size_unit",name:"fab_design[font][size][unit]",inputClass:"select2 field_option_design_font_size_unit",value:t[1].font.size.unit,selectOptions:[{id:"px",text:"PX"},{id:"em",text:"EM"},{id:"%",text:"%"},{id:"rem",text:"REM"},{id:"vw",text:"VW"},{id:"vh",text:"VH"}]}}),{c(){te(n.$$.fragment),i=y(),o=b("div"),te(a.$$.fragment),C(o,"class","ml-4 w-20")},m(e,t){ne(n,e,t),$(e,i,t),$(e,o,t),ne(a,o,null),s=!0},p:e,i(e){s||(Y(n.$$.fragment,e),Y(a.$$.fragment,e),s=!0)},o(e){Z(n.$$.fragment,e),Z(a.$$.fragment,e),s=!1},d(e){ie(n,e),e&&h(i),e&&h(o),ie(a)}}}function rt(t){let n,i,o,a,s,r,l,c,d,u,f;return n=new et({props:{id:"option_design_font_padding_top",name:"fab_design[font][padding][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20",value:t[1].font.padding.top}}),o=new et({props:{id:"option_design_font_padding_right",name:"fab_design[font][padding][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].font.padding.right}}),s=new et({props:{id:"option_design_font_padding_bottom",name:"fab_design[font][padding][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].font.padding.bottom}}),l=new et({props:{id:"option_design_font_padding_left",name:"fab_design[font][padding][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].font.padding.left}}),u=new Se({props:{id:"option_design_font_padding_sizing",name:"fab_design[font][padding][sizing]",inputClass:"select2 field_option_design_font_padding_sizing",value:t[1].font.padding.sizing,selectOptions:[{id:"px",text:"PX"},{id:"em",text:"EM"},{id:"%",text:"%"},{id:"rem",text:"REM"},{id:"vw",text:"VW"},{id:"vh",text:"VH"}]}}),{c(){te(n.$$.fragment),i=y(),te(o.$$.fragment),a=y(),te(s.$$.fragment),r=y(),te(l.$$.fragment),c=y(),d=b("div"),te(u.$$.fragment),C(d,"class","ml-4 w-20")},m(e,t){ne(n,e,t),$(e,i,t),ne(o,e,t),$(e,a,t),ne(s,e,t),$(e,r,t),ne(l,e,t),$(e,c,t),$(e,d,t),ne(u,d,null),f=!0},p:e,i(e){f||(Y(n.$$.fragment,e),Y(o.$$.fragment,e),Y(s.$$.fragment,e),Y(l.$$.fragment,e),Y(u.$$.fragment,e),f=!0)},o(e){Z(n.$$.fragment,e),Z(o.$$.fragment,e),Z(s.$$.fragment,e),Z(l.$$.fragment,e),Z(u.$$.fragment,e),f=!1},d(e){ie(n,e),e&&h(i),ie(o,e),e&&h(a),ie(s,e),e&&h(r),ie(l,e),e&&h(c),e&&h(d),ie(u)}}}function lt(e){let t,n,i,o,a,s,r,l,c,d,u,f,m,p,g,_,b,x,w,v;return t=new Ee({props:{text:"Layout"}}),i=new Ne({props:{text:"Margin",$$slots:{default:[tt]},$$scope:{ctx:e}}}),a=new Ee({props:{text:"Template"}}),r=new Ne({props:{id:"option_design_template_name",text:"Name",$$slots:{default:[nt]},$$scope:{ctx:e}}}),c=new Ne({props:{id:"option_design_template_shape",text:"Shape",info:'Please refer to <code><a href="https://bennettfeely.com/clippy/" target="_blank">Clippy</a></code> to see the shape',$$slots:{default:[it]},$$scope:{ctx:e}}}),u=new Ee({props:{text:"Font"}}),m=new Ne({props:{text:"Font Family",info:'Please refer to <code><a href="https://fonts.google.com/" target="_blank">Google Fonts</a></code> to see the font',$$slots:{default:[ot]},$$scope:{ctx:e}}}),g=new Ne({props:{id:"option_design_font_style",text:"Font Style",$$slots:{default:[at]},$$scope:{ctx:e}}}),b=new Ne({props:{id:"option_design_font_size_value",text:"Size",$$slots:{default:[st]},$$scope:{ctx:e}}}),w=new Ne({props:{text:"Padding",$$slots:{default:[rt]},$$scope:{ctx:e}}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment),o=y(),te(a.$$.fragment),s=y(),te(r.$$.fragment),l=y(),te(c.$$.fragment),d=y(),te(u.$$.fragment),f=y(),te(m.$$.fragment),p=y(),te(g.$$.fragment),_=y(),te(b.$$.fragment),x=y(),te(w.$$.fragment)},m(e,h){ne(t,e,h),$(e,n,h),ne(i,e,h),$(e,o,h),ne(a,e,h),$(e,s,h),ne(r,e,h),$(e,l,h),ne(c,e,h),$(e,d,h),ne(u,e,h),$(e,f,h),ne(m,e,h),$(e,p,h),ne(g,e,h),$(e,_,h),ne(b,e,h),$(e,x,h),ne(w,e,h),v=!0},p(e,[t]){const n={};16&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n);const o={};16&t&&(o.$$scope={dirty:t,ctx:e}),r.$set(o);const a={};16&t&&(a.$$scope={dirty:t,ctx:e}),c.$set(a);const s={};17&t&&(s.$$scope={dirty:t,ctx:e}),m.$set(s);const l={};16&t&&(l.$$scope={dirty:t,ctx:e}),g.$set(l);const d={};16&t&&(d.$$scope={dirty:t,ctx:e}),b.$set(d);const u={};16&t&&(u.$$scope={dirty:t,ctx:e}),w.$set(u)},i(e){v||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),Y(a.$$.fragment,e),Y(r.$$.fragment,e),Y(c.$$.fragment,e),Y(u.$$.fragment,e),Y(m.$$.fragment,e),Y(g.$$.fragment,e),Y(b.$$.fragment,e),Y(w.$$.fragment,e),v=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),Z(a.$$.fragment,e),Z(r.$$.fragment,e),Z(c.$$.fragment,e),Z(u.$$.fragment,e),Z(m.$$.fragment,e),Z(g.$$.fragment,e),Z(b.$$.fragment,e),Z(w.$$.fragment,e),v=!1},d(e){ie(t,e),e&&h(n),ie(i,e),e&&h(o),ie(a,e),e&&h(s),ie(r,e),e&&h(l),ie(c,e),e&&h(d),ie(u,e),e&&h(f),ie(m,e),e&&h(p),ie(g,e),e&&h(_),ie(b,e),e&&h(x),ie(w,e)}}}function ct(e,t,n){let i=[],{fab_design:o}=window.FAB_PLUGIN.options,a=1,s=0;return I((async()=>{try{const e=await fetch(window.FAB_PLUGIN.fontsJsonUrl),t=await e.json();if(!Array.isArray(t))throw new Error("Data is not an array.");n(0,i=[...t]),s=i.length;const r=[],l=20;for(let m=0;m<i.length;m+=l)r.push(i.slice(m,m+l));const c=e=>{const t=`https://fonts.googleapis.com/css2?family=${e.map((e=>encodeURIComponent(e.id))).join("&family=")}&display=swap`;return new Promise((e=>{let n=document.createElement("link");n.href=t,n.rel="stylesheet",n.onload=e,document.head.appendChild(n)}))};for(let p of r)await c(p);function d(e){const t=100*(e-1),n=Math.min(t+100,s);return i.slice(t,n)}function u(e){if(!e.id)return e.text;const t=e.text.trim();return jQuery(`<span style="font-family: '${t}'">${t}</span>`)}function f(e,t,n){n(d(t).filter((t=>t.text.toLowerCase().includes(e.toLowerCase()))))}setTimeout((()=>{jQuery("#field_option_design_font_family").select2({placeholder:"--choose--",templateResult:u,ajax:{transport(e,t,n){const i=e.data.q||"",o=e.data.page||1;a=o,f(i,o,t)},delay:250,processResults:(e,t)=>(t.page=t.page||1,{results:e,pagination:{more:100*t.page<s}}),cache:!0}}),jQuery("#field_option_design_font_family").on("select2:select",(function(e){const t=e.params.data.text;jQuery("span#select2-field_option_design_font_family-container.select2-selection__rendered").css("font-family",`'${t}'`)}))}),80),setTimeout((()=>{jQuery("span#select2-field_option_design_font_family-container.select2-selection__rendered").text(o.font.family),jQuery("span#select2-field_option_design_font_family-container.select2-selection__rendered").css("font-family",`'${o.font.family}'`)}),100)}catch(g){console.error("Error fetching fonts:",g)}})),[i,o]}class dt extends se{constructor(e){super(),ae(this,e,ct,lt,s,{})}}function ut(e,t,n){const i=e.slice();return i[2]=t[n],i}function ft(t){let n,i,o,a;return{c(){n=b("div"),i=b("a"),o=b("em"),a=w("\n                        Create your first awesome button"),C(o,"class","fas fa-plus"),C(i,"href",t[0].admin_url+"post-new.php?post_type=fab"),C(i,"class","my-3 py-3 block w-full bg-primary-600 text-white text-center rounded-md"),C(n,"class","w-4/12 text-center")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(i,a)},p:e,d(e){e&&h(n)}}}function mt(e){let t,n=e[1].items,i=[];for(let t=0;t<n.length;t+=1)i[t]=pt(ut(e,n,t));return{c(){t=b("div");for(let e=0;e<i.length;e+=1)i[e].c();C(t,"id","fab-order"),C(t,"class","w-full")},m(e,n){$(e,t,n);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,null)},p(e,o){if(3&o){let a;for(n=e[1].items,a=0;a<n.length;a+=1){const s=ut(e,n,a);i[a]?i[a].p(s,o):(i[a]=pt(s),i[a].c(),i[a].m(t,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}},d(e){e&&h(t),_(i,e)}}}function pt(t){let n,i=!["readingbar","scrolltotop"].includes(t[2].type),o=i&&function(t){let n,i,o,a,s,r,l,c,d,u,f,m,p=t[2].title+"";return{c(){n=b("div"),i=b("div"),o=b("span"),o.innerHTML='<em class="fas fa-bars text-gray-500 mr-2"></em>',a=y(),s=b("em"),r=y(),l=w(p),c=y(),d=b("div"),u=b("a"),f=b("em"),m=y(),C(s,"class",t[2].icon_class+" text-primary-600 mr-2"),C(i,"class","inline-block"),C(f,"class","fas fa-link"),C(u,"href",t[0].admin_url+"post.php?post="+t[2].ID+"&action=edit"),C(u,"class","text-gray-500"),C(d,"class","inline-block float-right"),C(n,"data-id",t[2].ID),C(n,"class","bg-white fab-item shadow-sm hover:shadow-md border border-gray-200 rounded-lg px-6 py-4 mb-2 cursor-grab")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(i,a),g(i,s),g(i,r),g(i,l),g(n,c),g(n,d),g(d,u),g(u,f),g(n,m)},p:e,d(e){e&&h(n)}}}(t);return{c(){o&&o.c(),n=v()},m(e,t){o&&o.m(e,t),$(e,n,t)},p(e,t){i&&o.p(e,t)},d(e){o&&o.d(e),e&&h(n)}}}function gt(t){let n,i,o,a,s,r,l;let c=function(e){return e[1].items.length?mt:ft}(t),d=c(t);return{c(){n=b("input"),i=y(),o=b("div"),a=b("div"),a.textContent="Button Order",s=y(),r=b("div"),l=b("div"),d.c(),C(n,"type","hidden"),C(n,"name","fab_order"),n.value=JSON.stringify(t[1].order),C(a,"class","font-medium text-gray-600 pt-2"),C(l,"class","flex flex-wrap overflow-hidden"),C(r,"class","col-span-4"),C(o,"class","grid grid-cols-5 gap-4 py-6")},m(e,t){$(e,n,t),$(e,i,t),$(e,o,t),g(o,a),g(o,s),g(o,r),g(r,l),d.m(l,null)},p(e,[t]){d.p(e,t)},i:e,o:e,d(e){e&&h(n),e&&h(i),e&&h(o),d.d()}}}function $t(e){let{path:t}=window.FAB_PLUGIN,{fab_lists:n}=window.FAB_SETTING;return jQuery(document).ready((function(e){e("#fab-order").sortable({stop:(t,n)=>{let i=e.map(e(this).find(".fab-item"),(t=>e(t).data("id")));e('input[name="fab_order"]').val(JSON.stringify(i))}})})),[t,n]}class ht extends se{constructor(e){super(),ae(this,e,$t,gt,s,{})}}const _t=e=>{window.FAB_PLUGIN.scrollTo(document.documentElement,jQuery(`#${e}`).offset().top-40,400),window.location.hash=e};function bt(e,t,n){const i=e.slice();return i[5]=t[n][0],i[6]=t[n][1],i}function xt(e){let t,n,i,o,s,r,l,c,d,u,f=e[6].name+"";return{c(){t=b("li"),n=b("div"),i=b("span"),i.innerHTML='<i class="fa-solid fa-sliders"></i>',o=y(),s=b("span"),r=w(f),c=y(),C(i,"class","flex items-center justify-center text-lg text-gray-400"),C(s,"class","ml-3"),C(n,"data-id",l="setting-"+e[5]),C(n,"class","cursor-pointer flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 hover:bg-gray-100"),C(t,"class","my-px")},m(l,f){$(l,t,f),g(t,n),g(n,i),g(n,o),g(n,s),g(s,r),g(t,c),d||(u=k(n,"click",(function(){a(_t(`setting-${e[5]}`))&&_t(`setting-${e[5]}`).apply(this,arguments)})),d=!0)},p(t,i){e=t,1&i&&f!==(f=e[6].name+"")&&L(r,f),1&i&&l!==(l="setting-"+e[5])&&C(n,"data-id",l)},d(e){e&&h(t),d=!1,u()}}}function wt(e){let t,n=e[1][e[5]]||Object.keys(e[6].options).length>0,i=n&&xt(e);return{c(){i&&i.c(),t=v()},m(e,n){i&&i.m(e,n),$(e,t,n)},p(e,o){3&o&&(n=e[1][e[5]]||Object.keys(e[6].options).length>0),n?i?i.p(e,o):(i=xt(e),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(e){i&&i.d(e),e&&h(t)}}}function yt(t){let n,i,o,a,s,r,c,d,u,f=Object.entries(t[0]),m=[];for(let e=0;e<f.length;e+=1)m[e]=wt(bt(t,f,e));return{c(){n=b("div"),i=b("div"),o=b("div"),a=b("img"),r=y(),c=b("ul"),d=b("li"),d.innerHTML='<span class="flex font-medium text-sm text-gray-400 px-4 my-2 uppercase">Options</span>',u=y();for(let e=0;e<m.length;e+=1)m[e].c();C(a,"class","mx-auto animate__animated animate__pulse animate__infinite animate__slow"),l(a.src,s=t[3].plugin_url+"/assets/img/logo.gif")||C(a,"src",s),C(a,"alt",t[2]),C(o,"class","w-3/4 mx-auto"),C(i,"class","bg-cover-image shadow-sm bg-center bg-cover px-6 py-16"),C(d,"class","my-px"),C(c,"class","flex flex-col w-full p-4"),C(n,"class","hidden md:block w-full bg-white shadow-sm rounded-lg overflow-hidden")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(o,a),g(n,r),g(n,c),g(c,d),g(c,u);for(let e=0;e<m.length;e+=1)m[e]&&m[e].m(c,null)},p(e,[t]){if(3&t){let n;for(f=Object.entries(e[0]),n=0;n<f.length;n+=1){const i=bt(e,f,n);m[n]?m[n].p(i,t):(m[n]=wt(i),m[n].c(),m[n].m(c,null))}for(;n<m.length;n+=1)m[n].d(1);m.length=f.length}},i:e,o:e,d(e){e&&h(n),_(m,e)}}}function vt(e,t,n){let{features:i}=t,{settings:o}=t,{name:a,path:s,options:r}=window.FAB_PLUGIN;return I((()=>{const e=window.location.hash;e&&_t(e.replace("#",""))})),e.$$set=e=>{"features"in e&&n(0,i=e.features),"settings"in e&&n(1,o=e.settings)},[i,o,a,s]}class kt extends se{constructor(e){super(),ae(this,e,vt,yt,s,{features:0,settings:1})}}function Ct(t){let n,i,o,a;return{c(){n=b("input"),C(n,"type","text"),C(n,"id",i="field_"+t[0]),C(n,"name",t[2]),C(n,"class",t[5]),n.value=t[1],n.required=t[3],C(n,"placeholder",t[4])},m(e,i){$(e,n,i),o||(a=k(n,"click",t[6]),o=!0)},p(e,[t]){1&t&&i!==(i="field_"+e[0])&&C(n,"id",i),4&t&&C(n,"name",e[2]),32&t&&C(n,"class",e[5]),2&t&&n.value!==e[1]&&(n.value=e[1]),8&t&&(n.required=e[3]),16&t&&C(n,"placeholder",e[4])},i:e,o:e,d(e){e&&h(n),o=!1,a()}}}function Tt(e,t,n){let{id:i=""}=t,{value:o=""}=t,{name:a=""}=t,{required:s}=t,{placeholder:r}=t,{inputClass:l="border border-gray-200 py-2 px-3 text-grey-darkest w-full"}=t;const c=B();return e.$$set=e=>{"id"in e&&n(0,i=e.id),"value"in e&&n(1,o=e.value),"name"in e&&n(2,a=e.name),"required"in e&&n(3,s=e.required),"placeholder"in e&&n(4,r=e.placeholder),"inputClass"in e&&n(5,l=e.inputClass)},[i,o,a,s,r,l,function(){c("click")}]}class jt extends se{constructor(e){super(),ae(this,e,Tt,Ct,s,{id:0,value:1,name:2,required:3,placeholder:4,inputClass:5})}}function Lt(e,t,n){const i=e.slice();return i[6]=t[n][0],i[7]=t[n][1],i}function Nt(e){let t,n,i,o;return t=new Ee({props:{text:e[7].text,info:e[7].info}}),i=new It({props:{key:e[0],options:e[7].children,parentKey:[...e[2],e[6],"children"]}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment)},m(e,a){ne(t,e,a),$(e,n,a),ne(i,e,a),o=!0},p(e,n){const o={};2&n&&(o.text=e[7].text),2&n&&(o.info=e[7].info),t.$set(o);const a={};1&n&&(a.key=e[0]),2&n&&(a.options=e[7].children),6&n&&(a.parentKey=[...e[2],e[6],"children"]),i.$set(a)},i(e){o||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),o=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),o=!1},d(e){ie(t,e),e&&h(n),ie(i,e)}}}function Ot(e){let n,i;const o=[{id:e[4](e[6])},e[7],{containerClass:e[7].class?e[7].class.container:void 0}];let a={$$slots:{default:[Pt]},$$scope:{ctx:e}};for(let e=0;e<o.length;e+=1)a=t(a,o[e]);return n=new Ne({props:a}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p(e,t){const i=18&t?ee(o,[18&t&&{id:e[4](e[6])},2&t&&(a=e[7],"object"==typeof a&&null!==a?a:{}),2&t&&{containerClass:e[7].class?e[7].class.container:void 0}]):{};var a;1031&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Pt(e){let t,n,i;var o=e[3][e[7].type];function a(e){return{props:{id:e[4](e[6]),name:e[5]([...e[2],e[6],"value"],e[0]),value:e[7].value,label:e[7].label?e[7].label:void 0,inputClass:e[7].class?e[7].class.input:void 0,required:e[7].required?e[7].required:void 0}}}return o&&(t=P(o,a(e))),{c(){t&&te(t.$$.fragment),n=y()},m(e,o){t&&ne(t,e,o),$(e,n,o),i=!0},p(e,i){const s={};if(2&i&&(s.id=e[4](e[6])),7&i&&(s.name=e[5]([...e[2],e[6],"value"],e[0])),2&i&&(s.value=e[7].value),2&i&&(s.label=e[7].label?e[7].label:void 0),2&i&&(s.inputClass=e[7].class?e[7].class.input:void 0),2&i&&(s.required=e[7].required?e[7].required:void 0),2&i&&o!==(o=e[3][e[7].type])){if(t){W();const e=t;Z(e.$$.fragment,1,0,(()=>{ie(e,1)})),J()}o?(t=P(o,a(e)),te(t.$$.fragment),Y(t.$$.fragment,1),ne(t,n.parentNode,n)):t=null}else o&&t.$set(s)},i(e){i||(t&&Y(t.$$.fragment,e),i=!0)},o(e){t&&Z(t.$$.fragment,e),i=!1},d(e){t&&ie(t,e),e&&h(n)}}}function At(e){let t,n,i,o;const a=[Ot,Nt],s=[];function r(e,t){return e[7].children?1:0}return t=r(e),n=s[t]=a[t](e),{c(){n.c(),i=v()},m(e,n){s[t].m(e,n),$(e,i,n),o=!0},p(e,o){let l=t;t=r(e),t===l?s[t].p(e,o):(W(),Z(s[l],1,1,(()=>{s[l]=null})),J(),n=s[t],n?n.p(e,o):(n=s[t]=a[t](e),n.c()),Y(n,1),n.m(i.parentNode,i))},i(e){o||(Y(n),o=!0)},o(e){Z(n),o=!1},d(e){s[t].d(e),e&&h(i)}}}function Et(e){let t,n,i=Object.entries(e[1]),o=[];for(let t=0;t<i.length;t+=1)o[t]=At(Lt(e,i,t));const a=e=>Z(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=v()},m(e,i){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,i);$(e,t,i),n=!0},p(e,[n]){if(63&n){let s;for(i=Object.entries(e[1]),s=0;s<i.length;s+=1){const a=Lt(e,i,s);o[s]?(o[s].p(a,n),Y(o[s],1)):(o[s]=At(a),o[s].c(),Y(o[s],1),o[s].m(t.parentNode,t))}for(W(),s=i.length;s<o.length;s+=1)a(s);J()}},i(e){if(!n){for(let e=0;e<i.length;e+=1)Y(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)Z(o[e]);n=!1},d(e){_(o,e),e&&h(t)}}}function Ft(e,t,n){let{key:i=""}=t,{options:o={}}=t,{parentKey:a=[]}=t,s={number:et,select:Se,switch:He,text:jt};return e.$$set=e=>{"key"in e&&n(0,i=e.key),"options"in e&&n(1,o=e.options),"parentKey"in e&&n(2,a=e.parentKey)},[i,o,a,s,e=>`module_option_${[...a,e].join("_")}`,(e,t)=>`fab_${t}[${e.join("][")}]`]}class It extends se{constructor(e){super(),ae(this,e,Ft,Et,s,{key:0,options:1,parentKey:2})}}function Bt(e,t,n){const i=e.slice();return i[2]=t[n][0],i[3]=t[n][1],i}function Mt(e){let t,n,i,o,a,s,r,l,c,d,u,f,m,p,_,x=e[3].name+"",v=e[3].description&&St(e);const k=[Gt,zt],T=[];function j(e,t){return e[1][e[2]]?0:1}return u=j(e),f=T[u]=k[u](e),{c(){t=b("div"),n=b("div"),i=b("div"),o=b("div"),a=b("span"),a.innerHTML='<i class="fa-solid fa-sliders"></i>',s=y(),r=b("h2"),l=w(x),c=y(),v&&v.c(),d=y(),f.c(),m=y(),C(a,"class","text-lg"),C(r,"class","ml-3 text-2xl"),C(o,"class","flex items-center relative text-gray-600"),C(i,"class","pb-4"),C(n,"class","px-1 py-4"),C(t,"id",p="setting-"+e[2]),C(t,"class","bg-white shadow-sm rounded-lg px-6 py-2 mb-4 z-0")},m(e,f){$(e,t,f),g(t,n),g(n,i),g(i,o),g(o,a),g(o,s),g(o,r),g(r,l),g(i,c),v&&v.m(i,null),g(n,d),T[u].m(n,null),g(t,m),_=!0},p(e,o){(!_||1&o)&&x!==(x=e[3].name+"")&&L(l,x),e[3].description?v?v.p(e,o):(v=St(e),v.c(),v.m(i,null)):v&&(v.d(1),v=null);let a=u;u=j(e),u===a?T[u].p(e,o):(W(),Z(T[a],1,1,(()=>{T[a]=null})),J(),f=T[u],f?f.p(e,o):(f=T[u]=k[u](e),f.c()),Y(f,1),f.m(n,null)),(!_||1&o&&p!==(p="setting-"+e[2]))&&C(t,"id",p)},i(e){_||(Y(f),_=!0)},o(e){Z(f),_=!1},d(e){e&&h(t),v&&v.d(),T[u].d()}}}function St(e){let t,n,i=e[3].description+"";return{c(){t=b("div"),n=b("em"),C(t,"class","text-gray-400 mt-2 field-info")},m(e,o){$(e,t,o),g(t,n),n.innerHTML=i},p(e,t){1&t&&i!==(i=e[3].description+"")&&(n.innerHTML=i)},d(e){e&&h(t)}}}function zt(e){let t,n;return t=new It({props:{key:e[2],options:e[3].options}}),{c(){te(t.$$.fragment)},m(e,i){ne(t,e,i),n=!0},p(e,n){const i={};1&n&&(i.key=e[2]),1&n&&(i.options=e[3].options),t.$set(i)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){ie(t,e)}}}function Gt(e){let t,n,i;var o=e[1][e[2]];function a(e){return{props:{feature:e[3]}}}return o&&(t=P(o,a(e))),{c(){t&&te(t.$$.fragment),n=v()},m(e,o){t&&ne(t,e,o),$(e,n,o),i=!0},p(e,i){const s={};if(1&i&&(s.feature=e[3]),3&i&&o!==(o=e[1][e[2]])){if(t){W();const e=t;Z(e.$$.fragment,1,0,(()=>{ie(e,1)})),J()}o?(t=P(o,a(e)),te(t.$$.fragment),Y(t.$$.fragment,1),ne(t,n.parentNode,n)):t=null}else o&&t.$set(s)},i(e){i||(t&&Y(t.$$.fragment,e),i=!0)},o(e){t&&Z(t.$$.fragment,e),i=!1},d(e){e&&h(n),t&&ie(t,e)}}}function Ht(e){let t,n,i=e[1][e[2]]||Object.keys(e[3].options).length>0,o=i&&Mt(e);return{c(){o&&o.c(),t=v()},m(e,i){o&&o.m(e,i),$(e,t,i),n=!0},p(e,n){3&n&&(i=e[1][e[2]]||Object.keys(e[3].options).length>0),i?o?(o.p(e,n),3&n&&Y(o,1)):(o=Mt(e),o.c(),Y(o,1),o.m(t.parentNode,t)):o&&(W(),Z(o,1,1,(()=>{o=null})),J())},i(e){n||(Y(o),n=!0)},o(e){Z(o),n=!1},d(e){o&&o.d(e),e&&h(t)}}}function qt(e){let t,n,i=Object.entries(e[0]),o=[];for(let t=0;t<i.length;t+=1)o[t]=Ht(Bt(e,i,t));const a=e=>Z(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=v()},m(e,i){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,i);$(e,t,i),n=!0},p(e,[n]){if(3&n){let s;for(i=Object.entries(e[0]),s=0;s<i.length;s+=1){const a=Bt(e,i,s);o[s]?(o[s].p(a,n),Y(o[s],1)):(o[s]=Ht(a),o[s].c(),Y(o[s],1),o[s].m(t.parentNode,t))}for(W(),s=i.length;s<o.length;s+=1)a(s);J()}},i(e){if(!n){for(let e=0;e<i.length;e+=1)Y(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)Z(o[e]);n=!1},d(e){_(o,e),e&&h(t)}}}function Ut(e,t,n){let{features:i}=t,{settings:o}=t;return e.$$set=e=>{"features"in e&&n(0,i=e.features),"settings"in e&&n(1,o=e.settings)},[i,o]}class Vt extends se{constructor(e){super(),ae(this,e,Ut,qt,s,{features:0,settings:1})}}function Qt(e){let t,n,i,o,a,s,r,l,c,d,u,f,m,p,_,x,w;return a=new Vt({props:{settings:e[3],features:e[0]}}),l=new kt({props:{settings:e[3],features:e[0]}}),p=new ve({}),{c(){t=b("div"),n=b("form"),i=b("div"),o=b("main"),te(a.$$.fragment),s=y(),r=b("aside"),te(l.$$.fragment),c=y(),d=b("input"),u=y(),f=b("div"),f.textContent="Reset",m=y(),te(p.$$.fragment),C(o,"class","my-2 px-2 w-full overflow-hidden col-span-5 lg:col-span-4"),C(d,"type","submit"),C(d,"class","mt-3 py-3 w-full bg-primary-600 text-white rounded-md cursor-pointer shadow-sm"),d.value="Save",C(f,"class","reset-option mt-1.5 py-3 w-full bg-danger-600 text-white text-center rounded-md cursor-pointer"),C(r,"class","sticky md:top-20 my-2 px-2 w-full overflow-hidden lg:visible h-[calc(100vh-5rem)]"),C(i,"class","grid grid-cols-5 -mx-2"),C(n,"method","POST"),C(n,"id","setting-form"),C(t,"class","tab-content fab-sections py-6 mr-4 animate__animated animate__"+e[2].elements.content),O(t,"current","setting"===e[1].slug)},m(h,b){$(h,t,b),g(t,n),g(n,i),g(i,o),ne(a,o,null),g(i,s),g(i,r),ne(l,r,null),g(r,c),g(r,d),g(r,u),g(r,f),$(h,m,b),ne(p,h,b),_=!0,x||(w=k(n,"submit",e[4]),x=!0)},p(e,[n]){const i={};1&n&&(i.features=e[0]),a.$set(i);const o={};1&n&&(o.features=e[0]),l.$set(o),(!_||2&n)&&O(t,"current","setting"===e[1].slug)},i(e){_||(Y(a.$$.fragment,e),Y(l.$$.fragment,e),Y(p.$$.fragment,e),_=!0)},o(e){Z(a.$$.fragment,e),Z(l.$$.fragment,e),Z(p.$$.fragment,e),_=!1},d(e){e&&h(t),ie(a),ie(l),e&&h(m),ie(p,e),x=!1,w()}}}function Rt(e,t,n){let i;c(e,ce,(e=>n(1,i=e)));let{name:o,path:a,options:s,rest_url:r}=window.FAB_PLUGIN,{name:l=o,path:d=a,options:u=s,rest_url:f=r}=t,{fab_animation:m}=window.FAB_PLUGIN.options,{status:p,features:g,nonce:$}=window.FAB_SETTING,{status:h=p,features:_=g,nonce:b=$}=t,x={core_animation:Je,core_design:dt,core_order:ht};jQuery((function(e){window.FAB_PLUGIN.init_setting()}));return e.$$set=e=>{"name"in e&&n(5,l=e.name),"path"in e&&n(6,d=e.path),"options"in e&&n(7,u=e.options),"rest_url"in e&&n(8,f=e.rest_url),"status"in e&&n(9,h=e.status),"features"in e&&n(0,_=e.features),"nonce"in e&&n(10,b=e.nonce)},[_,i,m,x,e=>{e.preventDefault();const t=jQuery("#setting-form").serialize();jQuery.ajax({url:f+"fab/v1/setting",type:"POST",beforeSend(e){e.setRequestHeader("X-WP-Nonce",b.setting)},data:t,success:e=>{jQuery.dialog({icon:"fas fa-check",closeIcon:!0,animation:"scale",columnClass:"j-small",title:"Success",content:"Options saved successfully!"}),setTimeout((function(){window.location.reload()}),1e3)},error:(e,t,n)=>{console.error("Error:",n)}})},l,d,u,f,h,b]}class Dt extends se{constructor(e){super(),ae(this,e,Rt,Qt,s,{name:5,path:6,options:7,rest_url:8,status:9,features:0,nonce:10})}}function Xt(e,t,n){const i=e.slice();return i[8]=t[n],i[10]=n,i}function Kt(e){let t,n,i=e[8].options&&Object.keys(e[8].options).length,o=i&&function(e){let t,n,i,o,a,s,r,l,c,d,u,f,m,p,_,x,v,T,j,L,N=e[8].name+"",P=e[8].description+"";function A(){return e[7](e[10])}return v=new It({props:{key:e[8].key,options:e[8].options}}),{c(){t=b("div"),n=b("div"),i=b("div"),o=b("em"),s=y(),r=b("div"),l=b("div"),l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"></path></svg>',c=y(),d=b("h2"),u=w(N),f=y(),m=b("p"),p=w(P),_=y(),x=b("div"),te(v.$$.fragment),C(o,"class","fas fa-cog"),C(i,"class",a="text-3xl font-medium inline-block p-2 text-center transition focus:outline-none waves-effect cursor-pointer animate__animated "+(e[1][e[10]].button.active?`animate__${e[5].elements.tab}`:"")),O(i,"text-primary-600",e[0]===e[10]),O(i,"text-gray-600",e[0]!==e[10]),C(n,"class","float-right flex relative"),C(l,"class","text-gray-600 inline-block p-2 mr-4 text-center transition focus:outline-none waves-effect"),C(d,"class","text-gray-600 text-xl"),C(r,"class","flex items-center relative"),C(m,"class","my-2 text-gray-400"),C(x,"class","module-options mt-4 p-2 animate__animated animate__"+e[5].elements.content),O(x,"hidden",e[0]!==e[10]),C(t,"class","bg-white shadow-sm rounded-lg px-6 py-3 mb-6")},m(e,a){$(e,t,a),g(t,n),g(n,i),g(i,o),g(t,s),g(t,r),g(r,l),g(r,c),g(r,d),g(d,u),g(t,f),g(t,m),g(m,p),g(t,_),g(t,x),ne(v,x,null),T=!0,j||(L=k(i,"click",A),j=!0)},p(t,n){e=t,(!T||2&n&&a!==(a="text-3xl font-medium inline-block p-2 text-center transition focus:outline-none waves-effect cursor-pointer animate__animated "+(e[1][e[10]].button.active?`animate__${e[5].elements.tab}`:"")))&&C(i,"class",a),(!T||3&n)&&O(i,"text-primary-600",e[0]===e[10]),(!T||3&n)&&O(i,"text-gray-600",e[0]!==e[10]),(!T||1&n)&&O(x,"hidden",e[0]!==e[10])},i(e){T||(Y(v.$$.fragment,e),T=!0)},o(e){Z(v.$$.fragment,e),T=!1},d(e){e&&h(t),ie(v),j=!1,L()}}}(e);return{c(){o&&o.c(),t=v()},m(e,i){o&&o.m(e,i),$(e,t,i),n=!0},p(e,t){i&&o.p(e,t)},i(e){n||(Y(o),n=!0)},o(e){Z(o),n=!1},d(e){o&&o.d(e),e&&h(t)}}}function Wt(e){let t,n,i,o,a,s,r,l,c,d,u,f,m,p=e[3],x=[];for(let t=0;t<p.length;t+=1)x[t]=Kt(Xt(e,p,t));const w=e=>Z(x[e],1,1,(()=>{x[e]=null}));return{c(){t=b("div"),n=b("form"),i=b("input"),o=y(),a=b("input"),s=y(),r=b("input"),l=y();for(let e=0;e<x.length;e+=1)x[e].c();c=y(),d=b("input"),u=y(),f=b("button"),f.innerHTML='<svg class="w-6 h-6 inline-block" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="save" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#FFFFFF" d="M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"></path></svg>',C(i,"type","hidden"),C(i,"id","module-config"),C(i,"name","module-config"),i.value=e[4].module,C(a,"type","hidden"),C(a,"id","module-nonce"),C(a,"name","module-nonce"),a.value=e[4].module,C(r,"type","hidden"),C(r,"name","_wp_http_referer"),r.value="/wp-admin/options-general.php?page=floating-awesome-button-setting",C(d,"type","submit"),C(d,"class","hidden md:block my-3 py-4 px-12 float-right bg-primary-600 text-white rounded-md cursor-pointer"),d.value="Save",C(f,"type","submit"),C(f,"class","md:hidden fixed right-6 bottom-6 md:right-8 md:bottom-12 w-16 h-16 bg-primary-600 rounded-full hover:bg-primary-700 active:shadow-lg mouse shadow transition ease-in duration-200 focus:outline-none"),C(n,"method","POST"),C(n,"id","module-form"),C(t,"class","tab-content fab-sections py-6 mr-4 animate__animated animate__"+e[5].elements.content),O(t,"current","module"===e[2].slug)},m(e,p){$(e,t,p),g(t,n),g(n,i),g(n,o),g(n,a),g(n,s),g(n,r),g(n,l);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(n,null);g(n,c),g(n,d),g(n,u),g(n,f),m=!0},p(e,[i]){if(107&i){let t;for(p=e[3],t=0;t<p.length;t+=1){const o=Xt(e,p,t);x[t]?(x[t].p(o,i),Y(x[t],1)):(x[t]=Kt(o),x[t].c(),Y(x[t],1),x[t].m(n,c))}for(W(),t=p.length;t<x.length;t+=1)w(t);J()}(!m||4&i)&&O(t,"current","module"===e[2].slug)},i(e){if(!m){for(let e=0;e<p.length;e+=1)Y(x[e]);m=!0}},o(e){x=x.filter(Boolean);for(let e=0;e<x.length;e+=1)Z(x[e]);m=!1},d(e){e&&h(t),_(x,e)}}}function Jt(e,t,n){let i;c(e,ce,(e=>n(2,i=e)));let{modules:o,nonce:a}=window.FAB_SETTING;const{fab_animation:s}=window.FAB_PLUGIN.options;let r,l=o.map((()=>({button:{active:!1}})));const d=e=>{n(0,r=e===r?null:e),n(1,l[e].button.active=!1,l),setTimeout((()=>{n(1,l[e].button.active=!0,l)}),100),setTimeout((()=>{n(1,l[e].button.active=!1,l)}),1e3)};return[r,l,i,o,a,s,d,e=>d(e)]}class Yt extends se{constructor(e){super(),ae(this,e,Jt,Wt,s,{})}}function Zt(t){let n,i,o,a,s,r,c,d,u,f,m,p,_,v,k,T,j,L,N,P,A,E,F,I,B;return{c(){n=b("div"),i=b("div"),o=b("main"),a=b("div"),s=b("div"),r=b("img"),d=y(),u=b("div"),f=b("h2"),f.textContent=`${t[2]}`,m=y(),p=b("div"),_=b("div"),v=x("svg"),k=x("path"),T=y(),j=b("a"),L=w(t[3]),P=y(),A=b("a"),A.innerHTML='<i class="fab fa-youtube mr-2"></i>\n            Documentation',E=y(),F=b("a"),F.innerHTML='<i class="fab fa-youtube mr-2"></i>\n            Tutorial',I=y(),B=b("p"),B.textContent=`${t[4]}`,C(r,"class","mx-auto animate__animated animate__pulse animate__infinite animate__slow"),l(r.src,c=t[5].plugin_url+"/assets/img/logo.gif")||C(r,"src",c),C(r,"alt",t[2]),C(s,"class","w-3/4 mx-auto"),C(a,"class","bg-cover-image shadow-sm bg-center bg-cover px-6 py-16"),C(f,"class","text-3xl md:text-5xl font-medium mb-4"),C(k,"fill-rule","evenodd"),C(k,"d","M17.707 9.293a1 1 0 010 1.414l-7 7a1 1 0 01-1.414 0l-7-7A.997.997 0 012 10V5a3 3 0 013-3h5c.256 0 .512.098.707.293l7 7zM5 6a1 1 0 100-2 1 1 0 000 2z"),C(k,"clip-rule","evenodd"),C(v,"xmlns","http://www.w3.org/2000/svg"),C(v,"class","h-3 w-3 mt-0.5 mr-2"),C(v,"viewBox","0 0 20 20"),C(v,"fill","currentColor"),C(j,"href",N=t[0].url.wordpress),C(j,"target","_blank"),C(_,"class","text-sm inline-flex items-center leading-sm px-4 py-1 mb-4 bg-primary-600 text-white rounded-full"),C(A,"href","https://www.youtube.com/watch?v=MMuhc9pcYew&list=PLnwuifVLRkaXBV9IBTPZeLtduzCdt5cFh"),C(A,"target","_blank"),C(A,"class","text-sm inline-flex items-center leading-sm px-4 py-1 mb-4 ml-2 bg-red-600 text-white rounded-full"),C(F,"href","https://www.youtube.com/watch?v=CkSspyM9yjQ&list=PLnwuifVLRkaXH9I-QAAReVoEv9DClViPG"),C(F,"target","_blank"),C(F,"class","text-sm inline-flex items-center leading-sm px-4 py-1 mb-4 ml-2 bg-red-600 text-white rounded-full"),C(p,"class","flex items-center"),C(B,"class","text-lg"),C(u,"class","col-span-4 mx-8 md:mx-16 my-12 overflow-scroll md:overflow-auto"),C(o,"class","grid grid-cols-1 md:grid-cols-5 my-2 w-full bg-white shadow-sm rounded-lg overflow-hidden"),C(i,"class","-mx-2 my-2 px-2"),C(n,"class","tab-content fab-sections py-4 mr-4 animate__animated animate__"+t[6].elements.content),O(n,"current","about"===t[1].slug)},m(e,t){$(e,n,t),g(n,i),g(i,o),g(o,a),g(a,s),g(s,r),g(o,d),g(o,u),g(u,f),g(u,m),g(u,p),g(p,_),g(_,v),g(v,k),g(_,T),g(_,j),g(j,L),g(p,P),g(p,A),g(p,E),g(p,F),g(u,I),g(u,B)},p(e,[t]){1&t&&N!==(N=e[0].url.wordpress)&&C(j,"href",N),2&t&&O(n,"current","about"===e[1].slug)},i:e,o:e,d(e){e&&h(n)}}}function en(e,t,n){let i;c(e,ce,(e=>n(1,i=e)));let{config:o}=window.FAB_SETTING,{config:a=o}=t,{name:s,version:r,description:l,path:d}=window.FAB_PLUGIN,{fab_animation:u}=window.FAB_PLUGIN.options;return e.$$set=e=>{"config"in e&&n(0,a=e.config)},[a,i,s,r,l,d,u]}class tn extends se{constructor(e){super(),ae(this,e,en,Zt,s,{config:0})}}function nn(e,t,n){const i=e.slice();return i[6]=t[n],i}function on(e){let t,n;return{c(){t=b("i"),C(t,"class",n="fas "+("enabled"===e[6].status?"fa-trash":"fa-plug"))},m(e,n){$(e,t,n)},p(e,i){1&i&&n!==(n="fas "+("enabled"===e[6].status?"fa-trash":"fa-plug"))&&C(t,"class",n)},d(e){e&&h(t)}}}function an(t){let n;return{c(){n=b("i"),C(n,"class","fas fa-spinner fa-spin")},m(e,t){$(e,n,t)},p:e,d(e){e&&h(n)}}}function sn(e){let t,n,i,a,s,r,c,d,u,f,m,p,_,x,v,T,j,N,P,A,E,F,I=e[6].name+"",B=e[6].description+"",M=("enabled"===e[6].status?e[2].remove:e[2].add)+"";function S(e,t){return e[1][e[6].plugin_file]?an:on}let z=S(e),G=z(e);function H(){return e[4](e[6])}return{c(){t=b("div"),n=b("div"),i=b("div"),a=b("img"),c=y(),d=b("div"),u=b("h3"),f=w(I),m=y(),p=b("p"),_=w(B),x=y(),v=b("div"),G.c(),T=y(),j=b("span"),N=w(M),A=y(),l(a.src,s=e[6].icon_url)||C(a,"src",s),C(a,"alt",r=e[6].name+" Logo"),C(a,"class","w-20 h-20 mx-auto"),C(i,"class","col-span-1 py-6 text-center"),C(u,"class","text-lg font-bold pb-2"),C(p,"class","text-sm text-gray-500"),C(d,"class","col-span-2 py-4"),C(n,"class","grid grid-cols-3 gap-x-4"),C(j,"class","pl-1"),C(v,"class","text-blue-600 px-4 py-2 text-center cursor-pointer hover:bg-blue-600 border-t border-gray-200 hover:text-white transition-all duration-300"),C(v,"disabled",P=Object.values(e[1]).some(ln)),O(v,"bg-red-800","enabled"===e[6].status),O(v,"text-white","enabled"===e[6].status),O(v,"hover:bg-red-600","enabled"===e[6].status),O(v,"opacity-50",Object.values(e[1]).some(dn)),C(t,"class","h-full bg-white shadow-sm overflow-hidden h-full justify-between flex flex-col border border-gray-200 rounded-md")},m(e,o){$(e,t,o),g(t,n),g(n,i),g(i,a),g(n,c),g(n,d),g(d,u),g(u,f),g(d,m),g(d,p),g(p,_),g(t,x),g(t,v),G.m(v,null),g(v,T),g(v,j),g(j,N),g(t,A),E||(F=[k(v,"click",H),k(v,"keydown",cn)],E=!0)},p(t,n){e=t,1&n&&!l(a.src,s=e[6].icon_url)&&C(a,"src",s),1&n&&r!==(r=e[6].name+" Logo")&&C(a,"alt",r),1&n&&I!==(I=e[6].name+"")&&L(f,I),1&n&&B!==(B=e[6].description+"")&&L(_,B),z===(z=S(e))&&G?G.p(e,n):(G.d(1),G=z(e),G&&(G.c(),G.m(v,T))),1&n&&M!==(M=("enabled"===e[6].status?e[2].remove:e[2].add)+"")&&L(N,M),2&n&&P!==(P=Object.values(e[1]).some(ln))&&C(v,"disabled",P),1&n&&O(v,"bg-red-800","enabled"===e[6].status),1&n&&O(v,"text-white","enabled"===e[6].status),1&n&&O(v,"hover:bg-red-600","enabled"===e[6].status),2&n&&O(v,"opacity-50",Object.values(e[1]).some(dn))},d(e){e&&h(t),G.d(),E=!1,o(F)}}}function rn(t){let n,i=Object.values(t[0]),o=[];for(let e=0;e<i.length;e+=1)o[e]=sn(nn(t,i,e));return{c(){n=b("div");for(let e=0;e<o.length;e+=1)o[e].c();C(n,"class","grid grid-cols-1 md:grid-cols-4 gap-4")},m(e,t){$(e,n,t);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(n,null)},p(e,[t]){if(15&t){let a;for(i=Object.values(e[0]),a=0;a<i.length;a+=1){const s=nn(e,i,a);o[a]?o[a].p(s,t):(o[a]=sn(s),o[a].c(),o[a].m(n,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},i:e,o:e,d(e){e&&h(n),_(o,e)}}}const ln=e=>e,cn=()=>{},dn=e=>e;function un(e,t,n){let{integrations:i}=t,o={};const{labels:a}=window.FAB_SETTING,{rest_url:s}=window.FAB_PLUGIN,r=e=>{n(1,o[e.plugin_file]=!0,o),fetch(s+"fab/v1/integration",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e.plugin_file,status:e.status})}).then((e=>e.json())).then((e=>{setTimeout((()=>{window.location.reload()}),1e3)}))};return e.$$set=e=>{"integrations"in e&&n(0,i=e.integrations)},[i,o,a,r,e=>!Object.values(o).some((e=>e))&&r(e)]}class fn extends se{constructor(e){super(),ae(this,e,un,rn,s,{integrations:0})}}function mn(t){let n,i,o,a=Object.keys(t[1].plugin).length>0,s=Object.keys(t[1].theme).length>0,r=a&&function(t){let n,i,o,a;return o=new fn({props:{integrations:t[1].plugin}}),{c(){n=b("h2"),n.textContent="Plugin Integrations",i=y(),te(o.$$.fragment),C(n,"class","text-2xl font-semibold pb-4")},m(e,t){$(e,n,t),$(e,i,t),ne(o,e,t),a=!0},p:e,i(e){a||(Y(o.$$.fragment,e),a=!0)},o(e){Z(o.$$.fragment,e),a=!1},d(e){e&&h(n),e&&h(i),ie(o,e)}}}(t),l=s&&function(t){let n,i,o,a;return o=new fn({props:{integrations:t[1].theme}}),{c(){n=b("h2"),n.textContent="Theme Integrations",i=y(),te(o.$$.fragment),C(n,"class","text-2xl font-semibold pb-4")},m(e,t){$(e,n,t),$(e,i,t),ne(o,e,t),a=!0},p:e,i(e){a||(Y(o.$$.fragment,e),a=!0)},o(e){Z(o.$$.fragment,e),a=!1},d(e){e&&h(n),e&&h(i),ie(o,e)}}}(t);return{c(){n=b("div"),r&&r.c(),i=y(),l&&l.c(),C(n,"class","tab-content fab-sections py-4 mr-4 animate__animated animate__"+t[2].elements.content),O(n,"current","integration"===t[0].slug)},m(e,t){$(e,n,t),r&&r.m(n,null),g(n,i),l&&l.m(n,null),o=!0},p(e,[t]){a&&r.p(e,t),s&&l.p(e,t),(!o||1&t)&&O(n,"current","integration"===e[0].slug)},i(e){o||(Y(r),Y(l),o=!0)},o(e){Z(r),Z(l),o=!1},d(e){e&&h(n),r&&r.d(),l&&l.d()}}}function pn(e,t,n){let i;c(e,ce,(e=>n(0,i=e)));let{config:o}=window.FAB_SETTING,{config:a=o}=t,{name:s,version:r,description:l,path:d,integrations:u}=window.FAB_PLUGIN,{fab_animation:f}=window.FAB_PLUGIN.options;return e.$$set=e=>{"config"in e&&n(3,a=e.config)},[i,u,f,a]}class gn extends se{constructor(e){super(),ae(this,e,pn,mn,s,{config:3})}}function $n(t){let n,i,o,a,s,r,l,c,d,u,f,m,p,_;return i=new $e({}),a=new xe({}),l=new Dt({}),d=new Yt({}),f=new tn({}),p=new gn({}),{c(){n=b("div"),te(i.$$.fragment),o=y(),te(a.$$.fragment),s=y(),r=b("div"),te(l.$$.fragment),c=y(),te(d.$$.fragment),u=y(),te(f.$$.fragment),m=y(),te(p.$$.fragment),C(r,"class","content"),C(n,"class","fab-container")},m(e,t){$(e,n,t),ne(i,n,null),g(n,o),ne(a,n,null),g(n,s),g(n,r),ne(l,r,null),g(r,c),ne(d,r,null),g(r,u),ne(f,r,null),g(r,m),ne(p,r,null),_=!0},p:e,i(e){_||(Y(i.$$.fragment,e),Y(a.$$.fragment,e),Y(l.$$.fragment,e),Y(d.$$.fragment,e),Y(f.$$.fragment,e),Y(p.$$.fragment,e),_=!0)},o(e){Z(i.$$.fragment,e),Z(a.$$.fragment,e),Z(l.$$.fragment,e),Z(d.$$.fragment,e),Z(f.$$.fragment,e),Z(p.$$.fragment,e),_=!1},d(e){e&&h(n),ie(i),ie(a),ie(l),ie(d),ie(f),ie(p)}}}return new class extends se{constructor(e){super(),ae(this,e,null,$n,s,{})}}({target:document.querySelector("#fab-setting-dom")})}();
     1var app=function(){"use strict";function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function i(){return Object.create(null)}function o(e){e.forEach(n)}function s(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let r;function l(e,t){return r||(r=document.createElement("a")),r.href=t,e===r.href}function c(t,n,i){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function d(e,t,n,i){if(e){const o=u(e,t,n,i);return e[0](o)}}function u(e,n,i,o){return e[1]&&o?t(i.ctx.slice(),e[1](o(n))):i.ctx}function f(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let i=0;i<n;i+=1)e[i]=t.dirty[i]|o[i];return e}return t.dirty|o}return t.dirty}function m(e,t,n,i,o,s){if(o){const a=u(t,n,i,s);e.p(a,o)}}function p(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function g(e,t){e.appendChild(t)}function $(e,t,n){e.insertBefore(t,n||null)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function b(e){return document.createElement(e)}function x(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function w(e){return document.createTextNode(e)}function y(){return w(" ")}function v(){return w("")}function k(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function C(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const T=["width","height"];function j(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)null==t[i]?e.removeAttribute(i):"style"===i?e.style.cssText=t[i]:"__value"===i?e.value=e[i]=t[i]:n[i]&&n[i].set&&-1===T.indexOf(i)?e[i]=t[i]:C(e,i,t[i])}function L(e,t){t=""+t,e.data!==t&&(e.data=t)}function N(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function O(e,t,n){e.classList[n?"add":"remove"](t)}function P(e,t){return new e(t)}let A;function E(e){A=e}function F(){if(!A)throw new Error("Function called outside component initialization");return A}function I(e){F().$$.on_mount.push(e)}function B(){const e=F();return(t,n,{cancelable:i=!1}={})=>{const o=e.$$.callbacks[t];if(o){const s=function(e,t,{bubbles:n=!1,cancelable:i=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,i,t),o}(t,n,{cancelable:i});return o.slice().forEach((t=>{t.call(e,s)})),!s.defaultPrevented}return!0}}const M=[],S=[];let z=[];const G=[],H=Promise.resolve();let q=!1;function U(e){z.push(e)}const V=new Set;let Q=0;function R(){if(0!==Q)return;const e=A;do{try{for(;Q<M.length;){const e=M[Q];Q++,E(e),D(e.$$)}}catch(e){throw M.length=0,Q=0,e}for(E(null),M.length=0,Q=0;S.length;)S.pop()();for(let e=0;e<z.length;e+=1){const t=z[e];V.has(t)||(V.add(t),t())}z.length=0}while(M.length);for(;G.length;)G.pop()();q=!1,V.clear(),E(e)}function D(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(U)}}const X=new Set;let K;function W(){K={r:0,c:[],p:K}}function J(){K.r||o(K.c),K=K.p}function Y(e,t){e&&e.i&&(X.delete(e),e.i(t))}function Z(e,t,n,i){if(e&&e.o){if(X.has(e))return;X.add(e),K.c.push((()=>{X.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}else i&&i()}function ee(e,t){const n={},i={},o={$$scope:1};let s=e.length;for(;s--;){const a=e[s],r=t[s];if(r){for(const e in a)e in r||(i[e]=1);for(const e in r)o[e]||(n[e]=r[e],o[e]=1);e[s]=r}else for(const e in a)o[e]=1}for(const e in i)e in n||(n[e]=void 0);return n}function te(e){e&&e.c()}function ne(e,t,i,a){const{fragment:r,after_update:l}=e.$$;r&&r.m(t,i),a||U((()=>{const t=e.$$.on_mount.map(n).filter(s);e.$$.on_destroy?e.$$.on_destroy.push(...t):o(t),e.$$.on_mount=[]})),l.forEach(U)}function ie(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];z.forEach((i=>-1===e.indexOf(i)?t.push(i):n.push(i))),n.forEach((e=>e())),z=t}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function oe(e,t){-1===e.$$.dirty[0]&&(M.push(e),q||(q=!0,H.then(R)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(t,n,s,a,r,l,c,d=[-1]){const u=A;E(t);const f=t.$$={fragment:null,ctx:[],props:l,update:e,not_equal:r,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:i(),dirty:d,skip_bound:!1,root:n.target||u.$$.root};c&&c(f.root);let m=!1;if(f.ctx=s?s(t,n.props||{},((e,n,...i)=>{const o=i.length?i[0]:n;return f.ctx&&r(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),m&&oe(t,e)),n})):[],f.update(),m=!0,o(f.before_update),f.fragment=!!a&&a(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(h)}else f.fragment&&f.fragment.c();n.intro&&Y(t.$$.fragment),ne(t,n.target,n.anchor,n.customElement),R()}E(u)}class ae{$destroy(){ie(this,1),this.$destroy=e}$on(t,n){if(!s(n))return e;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const re=[];let{sections:le}=window.FAB_SETTING;const ce=function(t,n=e){let i;const o=new Set;function s(e){if(a(t,e)&&(t=e,i)){const e=!re.length;for(const e of o)e[1](),re.push(e,t);if(e){for(let e=0;e<re.length;e+=2)re[e][0](re[e+1]);re.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(a,r=e){const l=[a,r];return o.add(l),1===o.size&&(i=n(s)||e),a(t),()=>{o.delete(l),0===o.size&&i&&(i(),i=null)}}}}(le.find((e=>e.slug===new URL(window.location.href).searchParams.get("section")))||le[0]);function de(e,t,n){const i=e.slice();return i[9]=t[n],i}function ue(e,t,n){const i=e.slice();return i[9]=t[n],i[13]=n,i}function fe(e){let t,n,i,o,s,a,r,l=e[9].name+"";function c(){return e[7](e[13])}return{c(){t=b("li"),n=b("div"),i=w(l),s=y(),C(n,"class",o="block animate__animated "+(e[1][e[13]].nav.active?`animate__${e[4].elements.tab}`:"")),C(t,"class","px-8 py-2 first:border-0 border-l-2 border-gray-100 nav-nonurl"),C(t,"data-tab","section-"+e[9].slug),O(t,"tab-active",e[0]===e[13])},m(e,o){$(e,t,o),g(t,n),g(n,i),g(t,s),a||(r=k(t,"click",c),a=!0)},p(i,s){e=i,2&s&&o!==(o="block animate__animated "+(e[1][e[13]].nav.active?`animate__${e[4].elements.tab}`:""))&&C(n,"class",o),1&s&&O(t,"tab-active",e[0]===e[13])},d(e){e&&h(t),a=!1,r()}}}function me(t){let n,i,o,s,a=t[9].name+"";return{c(){n=b("div"),i=b("div"),o=w(a),s=y(),C(i,"class","menu-item cursor-pointer text-gray-700 flex justify-between w-full px-4 py-2 text-sm leading-5 text-left"),C(i,"data-tab","section-"+t[9].slug),C(n,"class","py-1")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(n,s)},p:e,d(e){e&&h(n)}}}function pe(t){let n,i,o,s,a,r,l,c,d,u,f,m,p,x,w,v,k=t[2],T=[];for(let e=0;e<k.length;e+=1)T[e]=fe(ue(t,k,e));let j=t[2],L=[];for(let e=0;e<j.length;e+=1)L[e]=me(de(t,j,e));return{c(){n=b("div"),i=b("nav"),o=b("div"),s=b("div"),a=y(),r=b("h1"),r.textContent=`${t[3]}`,l=y(),c=b("div"),d=b("ul");for(let e=0;e<T.length;e+=1)T[e].c();u=y(),f=b("div"),m=b("div"),p=b("span"),p.innerHTML='<button class="inline-flex justify-center w-full px-2 py-2 text-sm font-medium leading-5 text-gray-700 transition duration-150 ease-in-out bg-white rounded-md hover:text-gray-500 active:bg-gray-50 active:text-gray-800" type="button" aria-haspopup="true" aria-expanded="true" aria-controls="headlessui-menu-items-117"><svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg></button>',x=y(),w=b("div"),v=b("div");for(let e=0;e<L.length;e+=1)L[e].c();C(s,"class","w-4 h-4 bg-primary-600 rounded-full"),C(r,"class","text-gray-800 text-lg font-medium ml-4"),C(o,"class","text-white flex-shrink flex items-center relative rounded-lg bg-white py-2 px-4 mr-4 md:mr-8"),C(d,"class","fab-menu-desktop nav-tab-wrapper hidden sm:inline-flex flex-row cursor-pointer mx-4 mt-3 p-2 nav-tab-general"),C(p,"class","rounded-md shadow-sm"),C(v,"class","absolute right-0 w-56 mt-2 origin-top-right bg-white border border-gray-200 divide-y divide-gray-100 rounded-md shadow-lg outline-none z-50"),C(v,"aria-labelledby","headlessui-menu-button-1"),C(v,"id","headlessui-menu-items-117"),C(w,"class","opacity-0 invisible dropdown-menu transition-all duration-300 transform origin-top-right -translate-y-2 scale-95 absolute z-50 right-0 mx-4"),C(m,"class","fab-menu-responsive mx-4 pr-3"),C(f,"class","sm:hidden inline-block float-right right-0"),C(c,"class","md:w-auto md:flex-grow md:flex md:items-center absolute display-inline-block float-right right-0"),C(i,"class","flex flex-wrap items-center px-4 py-2"),C(n,"class","header bg-white shadow-sm rounded-lg mt-6 mr-4")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(o,s),g(o,a),g(o,r),g(i,l),g(i,c),g(c,d);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(d,null);g(c,u),g(c,f),g(f,m),g(m,p),g(m,x),g(m,w),g(w,v);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(v,null)},p(e,[t]){if(55&t){let n;for(k=e[2],n=0;n<k.length;n+=1){const i=ue(e,k,n);T[n]?T[n].p(i,t):(T[n]=fe(i),T[n].c(),T[n].m(d,null))}for(;n<T.length;n+=1)T[n].d(1);T.length=k.length}if(4&t){let n;for(j=e[2],n=0;n<j.length;n+=1){const i=de(e,j,n);L[n]?L[n].p(i,t):(L[n]=me(i),L[n].c(),L[n].m(v,null))}for(;n<L.length;n+=1)L[n].d(1);L.length=j.length}},i:e,o:e,d(e){e&&h(n),_(T,e),_(L,e)}}}function ge(e,t,n){let i;c(e,ce,(e=>n(8,i=e)));let{sections:o}=window.FAB_SETTING,s=i?o.findIndex((e=>e.slug===i.slug)):o.findIndex((e=>e.active)),a=i||o[s];const{name:r}=window.FAB_PLUGIN,{fab_animation:l}=window.FAB_PLUGIN.options;let d=o.map((()=>({nav:{active:!1},section:{active:!1}})));const u=e=>{n(0,s=e),n(6,a=o[e]),n(1,d[e].nav.active=!1,d),setTimeout((()=>{n(1,d[e].nav.active=!0,d)}),100)};return e.$$.update=()=>{if(64&e.$$.dirty){ce.set(a);const e=new URL(window.location.href);e.searchParams.set("section",a.slug),window.history.pushState({},"",e.toString())}},[s,d,o,r,l,u,a,e=>u(e)]}class $e extends ae{constructor(e){super(),se(this,e,ge,pe,a,{})}}function he(t){let n,i,o;return{c(){n=b("div"),n.innerHTML='<em class="fas fa-arrow-up text-xl text-white my-4"></em>',C(n,"class","animate__animated animate__rotateIn cursor-pointer fixed shadow-md right-6 bottom-8 w-16 h-16 bg-primary-600 hover:bg-primary-700 rounded-full mouse transition ease-in duration-200 focus:outline-none text-center invisible md:visible"),N(n,"z-index","2")},m(e,s){$(e,n,s),i||(o=k(n,"click",t[1]),i=!0)},p:e,d(e){e&&h(n),i=!1,o()}}}function _e(t){let n,i=t[0]&&he(t);return{c(){i&&i.c(),n=v()},m(e,t){i&&i.m(e,t),$(e,n,t)},p(e,[t]){e[0]?i?i.p(e,t):(i=he(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:e,o:e,d(e){i&&i.d(e),e&&h(n)}}}function be(e,t,n){let i=!1;window.addEventListener("scroll",(function(){n(0,i=!(jQuery(window).scrollTop()<400))}));return[i,()=>{window.FAB_PLUGIN.scrollTo(document.documentElement,0,400)}]}class xe extends ae{constructor(e){super(),se(this,e,be,_e,a,{})}}function we(t){let n,i,o,s,a,r,l,c;return{c(){n=b("div"),i=b("form"),o=b("input"),s=y(),a=b("input"),r=y(),l=b("input"),c=w("\n\n    Are you sure you want to reset the setting?"),C(o,"type","hidden"),C(o,"name","clear-config"),o.value=t[0].clear,C(a,"type","hidden"),C(a,"id","clear-nonce"),C(a,"name","clear-nonce"),a.value=t[0].clear,C(l,"type","hidden"),C(l,"name","_wp_http_referer"),l.value="/wp-admin/options-general.php?page=floating-awesome-button-setting",C(i,"method","POST"),C(i,"id","clear-config-form"),C(n,"id","clear-config"),N(n,"display","none")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(i,s),g(i,a),g(i,r),g(i,l),g(i,c)},p:e,i:e,o:e,d(e){e&&h(n)}}}function ye(e){const{rest_url:t}=window.FAB_SETTING;let{nonce:n}=window.FAB_SETTING;return jQuery(document).ready((function(e){e(".reset-option").click((function(){jQuery.confirm({icon:"fas fa-sync",closeIcon:!0,animation:"scale",columnClass:"j-small",title:"Reset",content:jQuery("#clear-config").html(),buttons:{confirm(){const i=e("#clear-config-form").serialize();e.ajax({url:t+"fab/v1/clear-setting",type:"POST",beforeSend(e){e.setRequestHeader("X-WP-Nonce",n.setting)},data:i,success:e=>{window.location.reload()},error:(e,t,n)=>{console.error("Error:",n)}})},cancel(){}}})}))})),[n]}class ve extends ae{constructor(e){super(),se(this,e,ye,we,a,{})}}const ke=e=>({}),Ce=e=>({});function Te(e){let t,n;return{c(){t=b("div"),n=b("em"),C(t,"class","text-gray-400 mt-2 field-info")},m(i,o){$(i,t,o),g(t,n),n.innerHTML=e[3]},p(e,t){8&t&&(n.innerHTML=e[3])},d(e){e&&h(t)}}}function je(e){let t,n,i,o,s,a,r,l,c,u;const _=e[5].tooltip,x=d(_,e,e[4],Ce),w=e[5].default,v=d(w,e,e[4],null);let k=e[3]&&Te(e);return{c(){t=b("div"),n=b("div"),i=b("label"),s=y(),x&&x.c(),a=y(),r=b("div"),l=b("div"),v&&v.c(),c=y(),k&&k.c(),C(i,"for",o="field_"+e[0]),C(n,"class","font-medium text-gray-600 pt-2 flex justify-between"),C(l,"class","flex"),C(r,"class","col-span-4"),C(t,"class",e[2])},m(o,d){$(o,t,d),g(t,n),g(n,i),i.innerHTML=e[1],g(n,s),x&&x.m(n,null),g(t,a),g(t,r),g(r,l),v&&v.m(l,null),g(r,c),k&&k.m(r,null),u=!0},p(e,[n]){(!u||2&n)&&(i.innerHTML=e[1]),(!u||1&n&&o!==(o="field_"+e[0]))&&C(i,"for",o),x&&x.p&&(!u||16&n)&&m(x,_,e,e[4],u?f(_,e[4],n,ke):p(e[4]),Ce),v&&v.p&&(!u||16&n)&&m(v,w,e,e[4],u?f(w,e[4],n,null):p(e[4]),null),e[3]?k?k.p(e,n):(k=Te(e),k.c(),k.m(r,null)):k&&(k.d(1),k=null),(!u||4&n)&&C(t,"class",e[2])},i(e){u||(Y(x,e),Y(v,e),u=!0)},o(e){Z(x,e),Z(v,e),u=!1},d(e){e&&h(t),x&&x.d(e),v&&v.d(e),k&&k.d()}}}function Le(e,t,n){let{$$slots:i={},$$scope:o}=t,{id:s}=t,{text:a}=t,{containerClass:r="grid grid-cols-5 gap-4 py-4 fab-option-container-"}=t,{info:l}=t;return e.$$set=e=>{"id"in e&&n(0,s=e.id),"text"in e&&n(1,a=e.text),"containerClass"in e&&n(2,r=e.containerClass),"info"in e&&n(3,l=e.info),"$$scope"in e&&n(4,o=e.$$scope)},[s,a,r,l,o,i]}class Ne extends ae{constructor(e){super(),se(this,e,Le,je,a,{id:0,text:1,containerClass:2,info:3})}}function Oe(e){let t,n;return{c(){t=b("div"),n=b("em"),C(t,"class","text-gray-400")},m(i,o){$(i,t,o),g(t,n),n.innerHTML=e[1]},p(e,t){2&t&&(n.innerHTML=e[1])},d(e){e&&h(t)}}}function Pe(t){let n,i,o,s,a=t[1]&&Oe(t);return{c(){n=b("div"),i=b("span"),o=w(t[0]),s=y(),a&&a.c(),C(i,"class","text-lg"),C(n,"class","py-4 my-4 border-b border-gray-200")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(n,s),a&&a.m(n,null)},p(e,[t]){1&t&&L(o,e[0]),e[1]?a?a.p(e,t):(a=Oe(e),a.c(),a.m(n,null)):a&&(a.d(1),a=null)},i:e,o:e,d(e){e&&h(n),a&&a.d()}}}function Ae(e,t,n){let{text:i=""}=t,{info:o=""}=t;return e.$$set=e=>{"text"in e&&n(0,i=e.text),"info"in e&&n(1,o=e.info)},[i,o]}class Ee extends ae{constructor(e){super(),se(this,e,Ae,Pe,a,{text:0,info:1})}}function Fe(e,t,n){const i=e.slice();return i[5]=t[n],i}function Ie(e){let t,n,i,o=e[5].text+"";return{c(){t=b("option"),n=w(o),t.__value=i=e[5].id,t.value=t.__value},m(e,i){$(e,t,i),g(t,n)},p(e,s){16&s&&o!==(o=e[5].text+"")&&L(n,o),16&s&&i!==(i=e[5].id)&&(t.__value=i,t.value=t.__value)},d(e){e&&h(t)}}}function Be(t){let n,i,o=t[4],s=[];for(let e=0;e<o.length;e+=1)s[e]=Ie(Fe(t,o,e));return{c(){n=b("select");for(let e=0;e<s.length;e+=1)s[e].c();C(n,"id",i="field_"+t[0]),C(n,"name",t[2]),C(n,"class",t[3]),C(n,"data-selected",t[1])},m(e,t){$(e,n,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(n,null)},p(e,[t]){if(16&t){let i;for(o=e[4],i=0;i<o.length;i+=1){const a=Fe(e,o,i);s[i]?s[i].p(a,t):(s[i]=Ie(a),s[i].c(),s[i].m(n,null))}for(;i<s.length;i+=1)s[i].d(1);s.length=o.length}1&t&&i!==(i="field_"+e[0])&&C(n,"id",i),4&t&&C(n,"name",e[2]),8&t&&C(n,"class",e[3]),2&t&&C(n,"data-selected",e[1])},i:e,o:e,d(e){e&&h(n),_(s,e)}}}function Me(e,t,n){let{id:i=""}=t,{value:o=""}=t,{name:s=""}=t,{inputClass:a="select2"}=t,{selectOptions:r=[]}=t;return e.$$set=e=>{"id"in e&&n(0,i=e.id),"value"in e&&n(1,o=e.value),"name"in e&&n(2,s=e.name),"inputClass"in e&&n(3,a=e.inputClass),"selectOptions"in e&&n(4,r=e.selectOptions)},[i,o,s,a,r]}class Se extends ae{constructor(e){super(),se(this,e,Me,Be,a,{id:0,value:1,name:2,inputClass:3,selectOptions:4})}}function ze(t){let n,i,o,s,a,r,l,c,d,u,f,m,p,_,x,v,T,j,O,P=t[4].text+"";return{c(){n=b("div"),i=b("label"),o=b("div"),s=b("input"),l=y(),c=b("div"),d=y(),u=b("div"),m=y(),p=b("input"),x=y(),v=b("span"),T=w(P),C(s,"type","checkbox"),C(s,"id",a="switch_"+t[1]),C(s,"class","option_settings switch sr-only"),C(s,"data-option",r="field_"+t[1]),C(c,"class","fab absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition"),C(u,"class","block bg-gray-300 w-10 h-6 rounded-full"),C(o,"class","relative"),C(i,"for",f="switch_"+t[1]),C(i,"class","flex cursor-pointer"),C(p,"type","hidden"),C(p,"name",t[2]),C(p,"id",_="field_"+t[1]),p.value=t[0],C(v,"class","pl-2"),N(v,"padding-top","2px"),C(n,"class",t[3])},m(e,a){$(e,n,a),g(n,i),g(i,o),g(o,s),s.checked=t[0],g(o,l),g(o,c),g(o,d),g(o,u),g(n,m),g(n,p),g(n,x),g(n,v),g(v,T),j||(O=k(s,"change",t[5]),j=!0)},p(e,[t]){2&t&&a!==(a="switch_"+e[1])&&C(s,"id",a),2&t&&r!==(r="field_"+e[1])&&C(s,"data-option",r),1&t&&(s.checked=e[0]),2&t&&f!==(f="switch_"+e[1])&&C(i,"for",f),4&t&&C(p,"name",e[2]),2&t&&_!==(_="field_"+e[1])&&C(p,"id",_),1&t&&(p.value=e[0]),16&t&&P!==(P=e[4].text+"")&&L(T,P),8&t&&C(n,"class",e[3])},i:e,o:e,d(e){e&&h(n),j=!1,O()}}}function Ge(e,t,n){let{id:i=""}=t,{value:o=0}=t,{name:s=""}=t,{inputClass:a="flex"}=t,{label:r={}}=t;var l;return o="string"!=typeof(l=o)||isNaN(l)||isNaN(parseFloat(l))?o:parseInt(o),o=1===o||!0===o||"true"===o||"yes"===o?1:0,e.$$set=e=>{"id"in e&&n(1,i=e.id),"value"in e&&n(0,o=e.value),"name"in e&&n(2,s=e.name),"inputClass"in e&&n(3,a=e.inputClass),"label"in e&&n(4,r=e.label)},[o,i,s,a,r,function(){o=this.checked,n(0,o)}]}class He extends ae{constructor(e){super(),se(this,e,Ge,ze,a,{id:1,value:0,name:2,inputClass:3,label:4})}}function qe(t){let n,i;return n=new He({props:{id:"option_animation_enable",name:"fab_animation[enable]",label:{text:"Enable/Disable"},value:t[1].enable}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Ue(t){let n,i;return n=new Se({props:{id:"option_animation_logo",name:"fab_animation[elements][logo]",inputClass:"select2 field_option_animation_element",value:t[1].elements.logo}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Ve(t){let n,i;return n=new Se({props:{id:"option_animation_tab",name:"fab_animation[elements][tab]",inputClass:"select2 field_option_animation_element",value:t[1].elements.tab}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Qe(t){let n,i;return n=new Se({props:{id:"option_animation_content",name:"fab_animation[elements][content]",inputClass:"select2 field_option_animation_element",value:t[1].elements.content}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Re(t){let n,i;return n=new Se({props:{id:"option_animation_fab",name:"fab_animation[elements][fab]",inputClass:"select2 field_option_animation_element",value:t[1].elements.fab}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function De(t){let n,i;return n=new Se({props:{id:"option_animation_active",name:"fab_animation[elements][fab_active]",inputClass:"select2 field_option_animation_element",value:t[1].elements.fab_active}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Xe(t){let n,i;return n=new Se({props:{id:"option_animation_inactive",name:"fab_animation[elements][fab_inactive]",inputClass:"select2 field_option_animation_element",value:t[1].elements.fab_inactive}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Ke(e){let t,n,i,o,s;t=new Ne({props:{id:"option_animation_enable",text:"Enable Option",$$slots:{default:[qe]},$$scope:{ctx:e}}});let a=!e[2].production&&function(e){let t,n,i,o,s,a;return t=new Ne({props:{id:"option_animation_logo",text:"Logo Animation",$$slots:{default:[Ue]},$$scope:{ctx:e}}}),i=new Ne({props:{id:"option_animation_tab",text:"Section Tab",$$slots:{default:[Ve]},$$scope:{ctx:e}}}),s=new Ne({props:{id:"option_animation_content",text:"Section Content",$$slots:{default:[Qe]},$$scope:{ctx:e}}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment),o=y(),te(s.$$.fragment)},m(e,r){ne(t,e,r),$(e,n,r),ne(i,e,r),$(e,o,r),ne(s,e,r),a=!0},p(e,n){const o={};8&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const a={};8&n&&(a.$$scope={dirty:n,ctx:e}),i.$set(a);const r={};8&n&&(r.$$scope={dirty:n,ctx:e}),s.$set(r)},i(e){a||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),a=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),Z(s.$$.fragment,e),a=!1},d(e){ie(t,e),e&&h(n),ie(i,e),e&&h(o),ie(s,e)}}}(e),r=e[0]&&function(e){let t,n,i,o,s,a,r,l;return t=new Ee({props:{text:"Floating Button"}}),i=new Ne({props:{id:"option_animation_fab",text:"Parent",$$slots:{default:[Re]},$$scope:{ctx:e}}}),s=new Ne({props:{id:"option_animation_active",text:"List Active",$$slots:{default:[De]},$$scope:{ctx:e}}}),r=new Ne({props:{id:"option_animation_inactive",text:"List Inactive",$$slots:{default:[Xe]},$$scope:{ctx:e}}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment),o=y(),te(s.$$.fragment),a=y(),te(r.$$.fragment)},m(e,c){ne(t,e,c),$(e,n,c),ne(i,e,c),$(e,o,c),ne(s,e,c),$(e,a,c),ne(r,e,c),l=!0},p(e,t){const n={};8&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n);const o={};8&t&&(o.$$scope={dirty:t,ctx:e}),s.$set(o);const a={};8&t&&(a.$$scope={dirty:t,ctx:e}),r.$set(a)},i(e){l||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(r.$$.fragment,e),l=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),Z(s.$$.fragment,e),Z(r.$$.fragment,e),l=!1},d(e){ie(t,e),e&&h(n),ie(i,e),e&&h(o),ie(s,e),e&&h(a),ie(r,e)}}}(e);return{c(){te(t.$$.fragment),n=y(),a&&a.c(),i=y(),r&&r.c(),o=v()},m(e,l){ne(t,e,l),$(e,n,l),a&&a.m(e,l),$(e,i,l),r&&r.m(e,l),$(e,o,l),s=!0},p(e,[n]){const i={};8&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i),e[2].production||a.p(e,n),e[0]&&r.p(e,n)},i(e){s||(Y(t.$$.fragment,e),Y(a),Y(r),s=!0)},o(e){Z(t.$$.fragment,e),Z(a),Z(r),s=!1},d(e){ie(t,e),e&&h(n),a&&a.d(e),e&&h(i),r&&r.d(e),e&&h(o)}}}function We(e){let{premium:t}=window.FAB_PLUGIN,{fab_animation:n}=window.FAB_PLUGIN.options,{config:i}=window.FAB_SETTING;return[t,n,i]}class Je extends ae{constructor(e){super(),se(this,e,We,Ke,a,{})}}function Ye(n){let i,o,s=[{type:"number"},{id:o="field_"+n[1]},{name:n[3]},{value:n[2]},{required:n[5]},{placeholder:n[6]},{step:n[4]},{class:n[7]},n[0]],a={};for(let e=0;e<s.length;e+=1)a=t(a,s[e]);return{c(){i=b("input"),j(i,a)},m(e,t){$(e,i,t),i.autofocus&&i.focus()},p(e,[t]){j(i,a=ee(s,[{type:"number"},2&t&&o!==(o="field_"+e[1])&&{id:o},8&t&&{name:e[3]},4&t&&i.value!==e[2]&&{value:e[2]},32&t&&{required:e[5]},64&t&&{placeholder:e[6]},16&t&&{step:e[4]},128&t&&{class:e[7]},1&t&&e[0]]))},i:e,o:e,d(e){e&&h(i)}}}function Ze(e,t,n){let{id:i=""}=t,{value:o=""}=t,{name:s=""}=t,{step:a="any"}=t,{required:r}=t,{placeholder:l}=t,{inputClass:c="border border-gray-200 py-2 px-3 text-grey-darkest w-full"}=t,{data:d={}}=t;return d&&(d=Object.keys(d).reduce((function(e,t){return e[`data-${t}`]=d[t],e}),{})),e.$$set=e=>{"id"in e&&n(1,i=e.id),"value"in e&&n(2,o=e.value),"name"in e&&n(3,s=e.name),"step"in e&&n(4,a=e.step),"required"in e&&n(5,r=e.required),"placeholder"in e&&n(6,l=e.placeholder),"inputClass"in e&&n(7,c=e.inputClass),"data"in e&&n(0,d=e.data)},[d,i,o,s,a,r,l,c]}class et extends ae{constructor(e){super(),se(this,e,Ze,Ye,a,{id:1,value:2,name:3,step:4,required:5,placeholder:6,inputClass:7,data:0})}}function tt(t){let n,i,o,s,a,r,l,c,d,u,f;return n=new et({props:{id:"option_design_layout_position_margin_top",name:"fab_design[layout][margin][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20",value:t[1].layout.margin.top}}),o=new et({props:{id:"option_design_layout_position_margin_right",name:"fab_design[layout][margin][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].layout.margin.right}}),a=new et({props:{id:"option_design_layout_position_margin_bottom",name:"fab_design[layout][margin][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].layout.margin.bottom}}),l=new et({props:{id:"option_design_layout_position_margin_left",name:"fab_design[layout][margin][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].layout.margin.left}}),u=new Se({props:{id:"option_design_layout_position_margin_sizing",name:"fab_design[layout][margin][sizing]",inputClass:"select2 fab_modal_layout_spacing_sizing",value:t[1].layout.margin.sizing,selectOptions:[{id:"px",text:"PX"},{id:"em",text:"EM"},{id:"%",text:"%"},{id:"rem",text:"REM"},{id:"vw",text:"VW"},{id:"vh",text:"VH"}]}}),{c(){te(n.$$.fragment),i=y(),te(o.$$.fragment),s=y(),te(a.$$.fragment),r=y(),te(l.$$.fragment),c=y(),d=b("div"),te(u.$$.fragment),C(d,"class","ml-4 w-20")},m(e,t){ne(n,e,t),$(e,i,t),ne(o,e,t),$(e,s,t),ne(a,e,t),$(e,r,t),ne(l,e,t),$(e,c,t),$(e,d,t),ne(u,d,null),f=!0},p:e,i(e){f||(Y(n.$$.fragment,e),Y(o.$$.fragment,e),Y(a.$$.fragment,e),Y(l.$$.fragment,e),Y(u.$$.fragment,e),f=!0)},o(e){Z(n.$$.fragment,e),Z(o.$$.fragment,e),Z(a.$$.fragment,e),Z(l.$$.fragment,e),Z(u.$$.fragment,e),f=!1},d(e){ie(n,e),e&&h(i),ie(o,e),e&&h(s),ie(a,e),e&&h(r),ie(l,e),e&&h(c),e&&h(d),ie(u)}}}function nt(t){let n,i;return n=new Se({props:{id:"option_design_template_name",name:"fab_design[template][name]",inputClass:"select2 field_option_design_template_name",value:t[1].template.name}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function it(t){let n,i;return n=new Se({props:{id:"option_design_template_shape",name:"fab_design[template][shape]",inputClass:"select2 field_option_design_template_shape",value:t[1].template.shape}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function ot(e){let t,n;return t=new Se({props:{id:"option_design_font_family",name:"fab_design[font][family]",inputClass:"select2 field_option_design_font_family",value:e[1].font.family,selectOptions:e[0]}}),{c(){te(t.$$.fragment)},m(e,i){ne(t,e,i),n=!0},p(e,n){const i={};1&n&&(i.selectOptions=e[0]),t.$set(i)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){ie(t,e)}}}function st(t){let n,i;return n=new Se({props:{id:"option_design_font_style",name:"fab_design[font][style]",inputClass:"select2 field_option_design_font_style",value:t[1].font.style}}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p:e,i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function at(t){let n,i,o,s,a;return n=new et({props:{id:"option_design_font_size_value",name:"fab_design[font][size][value]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20",value:t[1].font.size.value}}),s=new Se({props:{id:"option_design_font_size_unit",name:"fab_design[font][size][unit]",inputClass:"select2 field_option_design_font_size_unit",value:t[1].font.size.unit,selectOptions:[{id:"px",text:"PX"},{id:"em",text:"EM"},{id:"%",text:"%"},{id:"rem",text:"REM"},{id:"vw",text:"VW"},{id:"vh",text:"VH"}]}}),{c(){te(n.$$.fragment),i=y(),o=b("div"),te(s.$$.fragment),C(o,"class","ml-4 w-20")},m(e,t){ne(n,e,t),$(e,i,t),$(e,o,t),ne(s,o,null),a=!0},p:e,i(e){a||(Y(n.$$.fragment,e),Y(s.$$.fragment,e),a=!0)},o(e){Z(n.$$.fragment,e),Z(s.$$.fragment,e),a=!1},d(e){ie(n,e),e&&h(i),e&&h(o),ie(s)}}}function rt(t){let n,i,o,s,a,r,l,c,d,u,f;return n=new et({props:{id:"option_design_font_padding_top",name:"fab_design[font][padding][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20",value:t[1].font.padding.top}}),o=new et({props:{id:"option_design_font_padding_right",name:"fab_design[font][padding][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].font.padding.right}}),a=new et({props:{id:"option_design_font_padding_bottom",name:"fab_design[font][padding][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].font.padding.bottom}}),l=new et({props:{id:"option_design_font_padding_left",name:"fab_design[font][padding][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4",value:t[1].font.padding.left}}),u=new Se({props:{id:"option_design_font_padding_sizing",name:"fab_design[font][padding][sizing]",inputClass:"select2 field_option_design_font_padding_sizing",value:t[1].font.padding.sizing,selectOptions:[{id:"px",text:"PX"},{id:"em",text:"EM"},{id:"%",text:"%"},{id:"rem",text:"REM"},{id:"vw",text:"VW"},{id:"vh",text:"VH"}]}}),{c(){te(n.$$.fragment),i=y(),te(o.$$.fragment),s=y(),te(a.$$.fragment),r=y(),te(l.$$.fragment),c=y(),d=b("div"),te(u.$$.fragment),C(d,"class","ml-4 w-20")},m(e,t){ne(n,e,t),$(e,i,t),ne(o,e,t),$(e,s,t),ne(a,e,t),$(e,r,t),ne(l,e,t),$(e,c,t),$(e,d,t),ne(u,d,null),f=!0},p:e,i(e){f||(Y(n.$$.fragment,e),Y(o.$$.fragment,e),Y(a.$$.fragment,e),Y(l.$$.fragment,e),Y(u.$$.fragment,e),f=!0)},o(e){Z(n.$$.fragment,e),Z(o.$$.fragment,e),Z(a.$$.fragment,e),Z(l.$$.fragment,e),Z(u.$$.fragment,e),f=!1},d(e){ie(n,e),e&&h(i),ie(o,e),e&&h(s),ie(a,e),e&&h(r),ie(l,e),e&&h(c),e&&h(d),ie(u)}}}function lt(e){let t,n,i,o,s,a,r,l,c,d,u,f,m,p,g,_,b,x,w,v;return t=new Ee({props:{text:"Layout"}}),i=new Ne({props:{text:"Margin",$$slots:{default:[tt]},$$scope:{ctx:e}}}),s=new Ee({props:{text:"Template"}}),r=new Ne({props:{id:"option_design_template_name",text:"Name",$$slots:{default:[nt]},$$scope:{ctx:e}}}),c=new Ne({props:{id:"option_design_template_shape",text:"Shape",info:'Please refer to <code><a href="https://bennettfeely.com/clippy/" target="_blank">Clippy</a></code> to see the shape',$$slots:{default:[it]},$$scope:{ctx:e}}}),u=new Ee({props:{text:"Font"}}),m=new Ne({props:{text:"Font Family",info:'Please refer to <code><a href="https://fonts.google.com/" target="_blank">Google Fonts</a></code> to see the font',$$slots:{default:[ot]},$$scope:{ctx:e}}}),g=new Ne({props:{id:"option_design_font_style",text:"Font Style",$$slots:{default:[st]},$$scope:{ctx:e}}}),b=new Ne({props:{id:"option_design_font_size_value",text:"Size",$$slots:{default:[at]},$$scope:{ctx:e}}}),w=new Ne({props:{text:"Padding",$$slots:{default:[rt]},$$scope:{ctx:e}}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment),o=y(),te(s.$$.fragment),a=y(),te(r.$$.fragment),l=y(),te(c.$$.fragment),d=y(),te(u.$$.fragment),f=y(),te(m.$$.fragment),p=y(),te(g.$$.fragment),_=y(),te(b.$$.fragment),x=y(),te(w.$$.fragment)},m(e,h){ne(t,e,h),$(e,n,h),ne(i,e,h),$(e,o,h),ne(s,e,h),$(e,a,h),ne(r,e,h),$(e,l,h),ne(c,e,h),$(e,d,h),ne(u,e,h),$(e,f,h),ne(m,e,h),$(e,p,h),ne(g,e,h),$(e,_,h),ne(b,e,h),$(e,x,h),ne(w,e,h),v=!0},p(e,[t]){const n={};16&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n);const o={};16&t&&(o.$$scope={dirty:t,ctx:e}),r.$set(o);const s={};16&t&&(s.$$scope={dirty:t,ctx:e}),c.$set(s);const a={};17&t&&(a.$$scope={dirty:t,ctx:e}),m.$set(a);const l={};16&t&&(l.$$scope={dirty:t,ctx:e}),g.$set(l);const d={};16&t&&(d.$$scope={dirty:t,ctx:e}),b.$set(d);const u={};16&t&&(u.$$scope={dirty:t,ctx:e}),w.$set(u)},i(e){v||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(r.$$.fragment,e),Y(c.$$.fragment,e),Y(u.$$.fragment,e),Y(m.$$.fragment,e),Y(g.$$.fragment,e),Y(b.$$.fragment,e),Y(w.$$.fragment,e),v=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),Z(s.$$.fragment,e),Z(r.$$.fragment,e),Z(c.$$.fragment,e),Z(u.$$.fragment,e),Z(m.$$.fragment,e),Z(g.$$.fragment,e),Z(b.$$.fragment,e),Z(w.$$.fragment,e),v=!1},d(e){ie(t,e),e&&h(n),ie(i,e),e&&h(o),ie(s,e),e&&h(a),ie(r,e),e&&h(l),ie(c,e),e&&h(d),ie(u,e),e&&h(f),ie(m,e),e&&h(p),ie(g,e),e&&h(_),ie(b,e),e&&h(x),ie(w,e)}}}function ct(e,t,n){let i=[],{fab_design:o}=window.FAB_PLUGIN.options,s=1,a=0;return I((async()=>{try{const e=await fetch(window.FAB_PLUGIN.fontsJsonUrl),t=await e.json();if(!Array.isArray(t))throw new Error("Data is not an array.");n(0,i=[...t]),a=i.length;const r=[],l=20;for(let m=0;m<i.length;m+=l)r.push(i.slice(m,m+l));const c=e=>{const t=`https://fonts.googleapis.com/css2?family=${e.map((e=>encodeURIComponent(e.id))).join("&family=")}&display=swap`;return new Promise((e=>{let n=document.createElement("link");n.href=t,n.rel="stylesheet",n.onload=e,document.head.appendChild(n)}))};for(let p of r)await c(p);function d(e){const t=100*(e-1),n=Math.min(t+100,a);return i.slice(t,n)}function u(e){if(!e.id)return e.text;const t=e.text.trim();return jQuery(`<span style="font-family: '${t}'">${t}</span>`)}function f(e,t,n){n(d(t).filter((t=>t.text.toLowerCase().includes(e.toLowerCase()))))}setTimeout((()=>{jQuery("#field_option_design_font_family").select2({placeholder:"--choose--",templateResult:u,ajax:{transport(e,t,n){const i=e.data.q||"",o=e.data.page||1;s=o,f(i,o,t)},delay:250,processResults:(e,t)=>(t.page=t.page||1,{results:e,pagination:{more:100*t.page<a}}),cache:!0}}),jQuery("#field_option_design_font_family").on("select2:select",(function(e){const t=e.params.data.text;jQuery("span#select2-field_option_design_font_family-container.select2-selection__rendered").css("font-family",`'${t}'`)}))}),80),setTimeout((()=>{jQuery("span#select2-field_option_design_font_family-container.select2-selection__rendered").text(o.font.family),jQuery("span#select2-field_option_design_font_family-container.select2-selection__rendered").css("font-family",`'${o.font.family}'`)}),100)}catch(g){console.error("Error fetching fonts:",g)}})),[i,o]}class dt extends ae{constructor(e){super(),se(this,e,ct,lt,a,{})}}function ut(e,t,n){const i=e.slice();return i[2]=t[n],i}function ft(t){let n,i,o,s;return{c(){n=b("div"),i=b("a"),o=b("em"),s=w("\n                        Create your first awesome button"),C(o,"class","fas fa-plus"),C(i,"href",t[0].admin_url+"post-new.php?post_type=fab"),C(i,"class","my-3 py-3 block w-full bg-primary-600 text-white text-center rounded-md"),C(n,"class","w-4/12 text-center")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(i,s)},p:e,d(e){e&&h(n)}}}function mt(e){let t,n=e[1].items,i=[];for(let t=0;t<n.length;t+=1)i[t]=pt(ut(e,n,t));return{c(){t=b("div");for(let e=0;e<i.length;e+=1)i[e].c();C(t,"id","fab-order"),C(t,"class","w-full")},m(e,n){$(e,t,n);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,null)},p(e,o){if(3&o){let s;for(n=e[1].items,s=0;s<n.length;s+=1){const a=ut(e,n,s);i[s]?i[s].p(a,o):(i[s]=pt(a),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(e){e&&h(t),_(i,e)}}}function pt(t){let n,i=!["readingbar","scrolltotop"].includes(t[2].type),o=i&&function(t){let n,i,o,s,a,r,l,c,d,u,f,m,p=t[2].title+"";return{c(){n=b("div"),i=b("div"),o=b("span"),o.innerHTML='<em class="fas fa-bars text-gray-500 mr-2"></em>',s=y(),a=b("em"),r=y(),l=w(p),c=y(),d=b("div"),u=b("a"),f=b("em"),m=y(),C(a,"class",t[2].icon_class+" text-primary-600 mr-2"),C(i,"class","inline-block"),C(f,"class","fas fa-link"),C(u,"href",t[0].admin_url+"post.php?post="+t[2].ID+"&action=edit"),C(u,"class","text-gray-500"),C(d,"class","inline-block float-right"),C(n,"data-id",t[2].ID),C(n,"class","bg-white fab-item shadow-sm hover:shadow-md border border-gray-200 rounded-lg px-6 py-4 mb-2 cursor-grab")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(i,s),g(i,a),g(i,r),g(i,l),g(n,c),g(n,d),g(d,u),g(u,f),g(n,m)},p:e,d(e){e&&h(n)}}}(t);return{c(){o&&o.c(),n=v()},m(e,t){o&&o.m(e,t),$(e,n,t)},p(e,t){i&&o.p(e,t)},d(e){o&&o.d(e),e&&h(n)}}}function gt(t){let n,i,o,s,a,r,l;let c=function(e){return e[1].items.length?mt:ft}(t),d=c(t);return{c(){n=b("input"),i=y(),o=b("div"),s=b("div"),s.textContent="Button Order",a=y(),r=b("div"),l=b("div"),d.c(),C(n,"type","hidden"),C(n,"name","fab_order"),n.value=JSON.stringify(t[1].order),C(s,"class","font-medium text-gray-600 pt-2"),C(l,"class","flex flex-wrap overflow-hidden"),C(r,"class","col-span-4"),C(o,"class","grid grid-cols-5 gap-4 py-6")},m(e,t){$(e,n,t),$(e,i,t),$(e,o,t),g(o,s),g(o,a),g(o,r),g(r,l),d.m(l,null)},p(e,[t]){d.p(e,t)},i:e,o:e,d(e){e&&h(n),e&&h(i),e&&h(o),d.d()}}}function $t(e){let{path:t}=window.FAB_PLUGIN,{fab_lists:n}=window.FAB_SETTING;return jQuery(document).ready((function(e){e("#fab-order").sortable({stop:(t,n)=>{let i=e.map(e(this).find(".fab-item"),(t=>e(t).data("id")));e('input[name="fab_order"]').val(JSON.stringify(i))}})})),[t,n]}class ht extends ae{constructor(e){super(),se(this,e,$t,gt,a,{})}}const _t=e=>{window.FAB_PLUGIN.scrollTo(document.documentElement,jQuery(`#${e}`).offset().top-40,400),window.location.hash=e};function bt(e,t,n){const i=e.slice();return i[5]=t[n][0],i[6]=t[n][1],i}function xt(e){let t,n,i,o,a,r,l,c,d,u,f=e[6].name+"";return{c(){t=b("li"),n=b("div"),i=b("span"),i.innerHTML='<i class="fa-solid fa-sliders"></i>',o=y(),a=b("span"),r=w(f),c=y(),C(i,"class","flex items-center justify-center text-lg text-gray-400"),C(a,"class","ml-3"),C(n,"data-id",l="setting-"+e[5]),C(n,"class","cursor-pointer flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 hover:bg-gray-100"),C(t,"class","my-px")},m(l,f){$(l,t,f),g(t,n),g(n,i),g(n,o),g(n,a),g(a,r),g(t,c),d||(u=k(n,"click",(function(){s(_t(`setting-${e[5]}`))&&_t(`setting-${e[5]}`).apply(this,arguments)})),d=!0)},p(t,i){e=t,1&i&&f!==(f=e[6].name+"")&&L(r,f),1&i&&l!==(l="setting-"+e[5])&&C(n,"data-id",l)},d(e){e&&h(t),d=!1,u()}}}function wt(e){let t,n=e[1][e[5]]||Object.keys(e[6].options).length>0,i=n&&xt(e);return{c(){i&&i.c(),t=v()},m(e,n){i&&i.m(e,n),$(e,t,n)},p(e,o){3&o&&(n=e[1][e[5]]||Object.keys(e[6].options).length>0),n?i?i.p(e,o):(i=xt(e),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(e){i&&i.d(e),e&&h(t)}}}function yt(t){let n,i,o,s,a,r,c,d,u,f=Object.entries(t[0]),m=[];for(let e=0;e<f.length;e+=1)m[e]=wt(bt(t,f,e));return{c(){n=b("div"),i=b("div"),o=b("div"),s=b("img"),r=y(),c=b("ul"),d=b("li"),d.innerHTML='<span class="flex font-medium text-sm text-gray-400 px-4 my-2 uppercase">Options</span>',u=y();for(let e=0;e<m.length;e+=1)m[e].c();C(s,"class","mx-auto animate__animated animate__pulse animate__infinite animate__slow"),l(s.src,a=t[3].plugin_url+"/assets/img/logo.gif")||C(s,"src",a),C(s,"alt",t[2]),C(o,"class","w-3/4 mx-auto"),C(i,"class","bg-cover-image shadow-sm bg-center bg-cover px-6 py-16"),C(d,"class","my-px"),C(c,"class","flex flex-col w-full p-4"),C(n,"class","hidden md:block w-full bg-white shadow-sm rounded-lg overflow-hidden")},m(e,t){$(e,n,t),g(n,i),g(i,o),g(o,s),g(n,r),g(n,c),g(c,d),g(c,u);for(let e=0;e<m.length;e+=1)m[e]&&m[e].m(c,null)},p(e,[t]){if(3&t){let n;for(f=Object.entries(e[0]),n=0;n<f.length;n+=1){const i=bt(e,f,n);m[n]?m[n].p(i,t):(m[n]=wt(i),m[n].c(),m[n].m(c,null))}for(;n<m.length;n+=1)m[n].d(1);m.length=f.length}},i:e,o:e,d(e){e&&h(n),_(m,e)}}}function vt(e,t,n){let{features:i}=t,{settings:o}=t,{name:s,path:a,options:r}=window.FAB_PLUGIN;return I((()=>{const e=window.location.hash;e&&_t(e.replace("#",""))})),e.$$set=e=>{"features"in e&&n(0,i=e.features),"settings"in e&&n(1,o=e.settings)},[i,o,s,a]}class kt extends ae{constructor(e){super(),se(this,e,vt,yt,a,{features:0,settings:1})}}function Ct(t){let n,i,o,s;return{c(){n=b("input"),C(n,"type","text"),C(n,"id",i="field_"+t[0]),C(n,"name",t[2]),C(n,"class",t[5]),n.value=t[1],n.required=t[3],C(n,"placeholder",t[4])},m(e,i){$(e,n,i),o||(s=k(n,"click",t[6]),o=!0)},p(e,[t]){1&t&&i!==(i="field_"+e[0])&&C(n,"id",i),4&t&&C(n,"name",e[2]),32&t&&C(n,"class",e[5]),2&t&&n.value!==e[1]&&(n.value=e[1]),8&t&&(n.required=e[3]),16&t&&C(n,"placeholder",e[4])},i:e,o:e,d(e){e&&h(n),o=!1,s()}}}function Tt(e,t,n){let{id:i=""}=t,{value:o=""}=t,{name:s=""}=t,{required:a}=t,{placeholder:r}=t,{inputClass:l="border border-gray-200 py-2 px-3 text-grey-darkest w-full"}=t;const c=B();return e.$$set=e=>{"id"in e&&n(0,i=e.id),"value"in e&&n(1,o=e.value),"name"in e&&n(2,s=e.name),"required"in e&&n(3,a=e.required),"placeholder"in e&&n(4,r=e.placeholder),"inputClass"in e&&n(5,l=e.inputClass)},[i,o,s,a,r,l,function(){c("click")}]}class jt extends ae{constructor(e){super(),se(this,e,Tt,Ct,a,{id:0,value:1,name:2,required:3,placeholder:4,inputClass:5})}}function Lt(e,t,n){const i=e.slice();return i[6]=t[n][0],i[7]=t[n][1],i}function Nt(e){let t,n,i,o;return t=new Ee({props:{text:e[7].text,info:e[7].info}}),i=new It({props:{key:e[0],options:e[7].children,parentKey:[...e[2],e[6],"children"]}}),{c(){te(t.$$.fragment),n=y(),te(i.$$.fragment)},m(e,s){ne(t,e,s),$(e,n,s),ne(i,e,s),o=!0},p(e,n){const o={};2&n&&(o.text=e[7].text),2&n&&(o.info=e[7].info),t.$set(o);const s={};1&n&&(s.key=e[0]),2&n&&(s.options=e[7].children),6&n&&(s.parentKey=[...e[2],e[6],"children"]),i.$set(s)},i(e){o||(Y(t.$$.fragment,e),Y(i.$$.fragment,e),o=!0)},o(e){Z(t.$$.fragment,e),Z(i.$$.fragment,e),o=!1},d(e){ie(t,e),e&&h(n),ie(i,e)}}}function Ot(e){let n,i;const o=[{id:e[4](e[6])},e[7],{containerClass:e[7].class?e[7].class.container:void 0}];let s={$$slots:{default:[Pt]},$$scope:{ctx:e}};for(let e=0;e<o.length;e+=1)s=t(s,o[e]);return n=new Ne({props:s}),{c(){te(n.$$.fragment)},m(e,t){ne(n,e,t),i=!0},p(e,t){const i=18&t?ee(o,[18&t&&{id:e[4](e[6])},2&t&&(s=e[7],"object"==typeof s&&null!==s?s:{}),2&t&&{containerClass:e[7].class?e[7].class.container:void 0}]):{};var s;1031&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){i||(Y(n.$$.fragment,e),i=!0)},o(e){Z(n.$$.fragment,e),i=!1},d(e){ie(n,e)}}}function Pt(e){let t,n,i;var o=e[3][e[7].type];function s(e){return{props:{id:e[4](e[6]),name:e[5]([...e[2],e[6],"value"],e[0]),value:e[7].value,label:e[7].label?e[7].label:void 0,inputClass:e[7].class?e[7].class.input:void 0,required:e[7].required?e[7].required:void 0}}}return o&&(t=P(o,s(e))),{c(){t&&te(t.$$.fragment),n=y()},m(e,o){t&&ne(t,e,o),$(e,n,o),i=!0},p(e,i){const a={};if(2&i&&(a.id=e[4](e[6])),7&i&&(a.name=e[5]([...e[2],e[6],"value"],e[0])),2&i&&(a.value=e[7].value),2&i&&(a.label=e[7].label?e[7].label:void 0),2&i&&(a.inputClass=e[7].class?e[7].class.input:void 0),2&i&&(a.required=e[7].required?e[7].required:void 0),2&i&&o!==(o=e[3][e[7].type])){if(t){W();const e=t;Z(e.$$.fragment,1,0,(()=>{ie(e,1)})),J()}o?(t=P(o,s(e)),te(t.$$.fragment),Y(t.$$.fragment,1),ne(t,n.parentNode,n)):t=null}else o&&t.$set(a)},i(e){i||(t&&Y(t.$$.fragment,e),i=!0)},o(e){t&&Z(t.$$.fragment,e),i=!1},d(e){t&&ie(t,e),e&&h(n)}}}function At(e){let t,n,i,o;const s=[Ot,Nt],a=[];function r(e,t){return e[7].children?1:0}return t=r(e),n=a[t]=s[t](e),{c(){n.c(),i=v()},m(e,n){a[t].m(e,n),$(e,i,n),o=!0},p(e,o){let l=t;t=r(e),t===l?a[t].p(e,o):(W(),Z(a[l],1,1,(()=>{a[l]=null})),J(),n=a[t],n?n.p(e,o):(n=a[t]=s[t](e),n.c()),Y(n,1),n.m(i.parentNode,i))},i(e){o||(Y(n),o=!0)},o(e){Z(n),o=!1},d(e){a[t].d(e),e&&h(i)}}}function Et(e){let t,n,i=Object.entries(e[1]),o=[];for(let t=0;t<i.length;t+=1)o[t]=At(Lt(e,i,t));const s=e=>Z(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=v()},m(e,i){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,i);$(e,t,i),n=!0},p(e,[n]){if(63&n){let a;for(i=Object.entries(e[1]),a=0;a<i.length;a+=1){const s=Lt(e,i,a);o[a]?(o[a].p(s,n),Y(o[a],1)):(o[a]=At(s),o[a].c(),Y(o[a],1),o[a].m(t.parentNode,t))}for(W(),a=i.length;a<o.length;a+=1)s(a);J()}},i(e){if(!n){for(let e=0;e<i.length;e+=1)Y(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)Z(o[e]);n=!1},d(e){_(o,e),e&&h(t)}}}function Ft(e,t,n){let{key:i=""}=t,{options:o={}}=t,{parentKey:s=[]}=t,a={number:et,select:Se,switch:He,text:jt};return e.$$set=e=>{"key"in e&&n(0,i=e.key),"options"in e&&n(1,o=e.options),"parentKey"in e&&n(2,s=e.parentKey)},[i,o,s,a,e=>`module_option_${[...s,e].join("_")}`,(e,t)=>`fab_${t}[${e.join("][")}]`]}class It extends ae{constructor(e){super(),se(this,e,Ft,Et,a,{key:0,options:1,parentKey:2})}}function Bt(e,t,n){const i=e.slice();return i[2]=t[n][0],i[3]=t[n][1],i}function Mt(e){let t,n,i,o,s,a,r,l,c,d,u,f,m,p,_,x=e[3].name+"",v=e[3].description&&St(e);const k=[Gt,zt],T=[];function j(e,t){return e[1][e[2]]?0:1}return u=j(e),f=T[u]=k[u](e),{c(){t=b("div"),n=b("div"),i=b("div"),o=b("div"),s=b("span"),s.innerHTML='<i class="fa-solid fa-sliders"></i>',a=y(),r=b("h2"),l=w(x),c=y(),v&&v.c(),d=y(),f.c(),m=y(),C(s,"class","text-lg"),C(r,"class","ml-3 text-2xl"),C(o,"class","flex items-center relative text-gray-600"),C(i,"class","pb-4"),C(n,"class","px-1 py-4"),C(t,"id",p="setting-"+e[2]),C(t,"class","bg-white shadow-sm rounded-lg px-6 py-2 mb-4 z-0")},m(e,f){$(e,t,f),g(t,n),g(n,i),g(i,o),g(o,s),g(o,a),g(o,r),g(r,l),g(i,c),v&&v.m(i,null),g(n,d),T[u].m(n,null),g(t,m),_=!0},p(e,o){(!_||1&o)&&x!==(x=e[3].name+"")&&L(l,x),e[3].description?v?v.p(e,o):(v=St(e),v.c(),v.m(i,null)):v&&(v.d(1),v=null);let s=u;u=j(e),u===s?T[u].p(e,o):(W(),Z(T[s],1,1,(()=>{T[s]=null})),J(),f=T[u],f?f.p(e,o):(f=T[u]=k[u](e),f.c()),Y(f,1),f.m(n,null)),(!_||1&o&&p!==(p="setting-"+e[2]))&&C(t,"id",p)},i(e){_||(Y(f),_=!0)},o(e){Z(f),_=!1},d(e){e&&h(t),v&&v.d(),T[u].d()}}}function St(e){let t,n,i=e[3].description+"";return{c(){t=b("div"),n=b("em"),C(t,"class","text-gray-400 mt-2 field-info")},m(e,o){$(e,t,o),g(t,n),n.innerHTML=i},p(e,t){1&t&&i!==(i=e[3].description+"")&&(n.innerHTML=i)},d(e){e&&h(t)}}}function zt(e){let t,n;return t=new It({props:{key:e[2],options:e[3].options}}),{c(){te(t.$$.fragment)},m(e,i){ne(t,e,i),n=!0},p(e,n){const i={};1&n&&(i.key=e[2]),1&n&&(i.options=e[3].options),t.$set(i)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){ie(t,e)}}}function Gt(e){let t,n,i;var o=e[1][e[2]];function s(e){return{props:{feature:e[3]}}}return o&&(t=P(o,s(e))),{c(){t&&te(t.$$.fragment),n=v()},m(e,o){t&&ne(t,e,o),$(e,n,o),i=!0},p(e,i){const a={};if(1&i&&(a.feature=e[3]),3&i&&o!==(o=e[1][e[2]])){if(t){W();const e=t;Z(e.$$.fragment,1,0,(()=>{ie(e,1)})),J()}o?(t=P(o,s(e)),te(t.$$.fragment),Y(t.$$.fragment,1),ne(t,n.parentNode,n)):t=null}else o&&t.$set(a)},i(e){i||(t&&Y(t.$$.fragment,e),i=!0)},o(e){t&&Z(t.$$.fragment,e),i=!1},d(e){e&&h(n),t&&ie(t,e)}}}function Ht(e){let t,n,i=e[1][e[2]]||Object.keys(e[3].options).length>0,o=i&&Mt(e);return{c(){o&&o.c(),t=v()},m(e,i){o&&o.m(e,i),$(e,t,i),n=!0},p(e,n){3&n&&(i=e[1][e[2]]||Object.keys(e[3].options).length>0),i?o?(o.p(e,n),3&n&&Y(o,1)):(o=Mt(e),o.c(),Y(o,1),o.m(t.parentNode,t)):o&&(W(),Z(o,1,1,(()=>{o=null})),J())},i(e){n||(Y(o),n=!0)},o(e){Z(o),n=!1},d(e){o&&o.d(e),e&&h(t)}}}function qt(e){let t,n,i=Object.entries(e[0]),o=[];for(let t=0;t<i.length;t+=1)o[t]=Ht(Bt(e,i,t));const s=e=>Z(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=v()},m(e,i){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,i);$(e,t,i),n=!0},p(e,[n]){if(3&n){let a;for(i=Object.entries(e[0]),a=0;a<i.length;a+=1){const s=Bt(e,i,a);o[a]?(o[a].p(s,n),Y(o[a],1)):(o[a]=Ht(s),o[a].c(),Y(o[a],1),o[a].m(t.parentNode,t))}for(W(),a=i.length;a<o.length;a+=1)s(a);J()}},i(e){if(!n){for(let e=0;e<i.length;e+=1)Y(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)Z(o[e]);n=!1},d(e){_(o,e),e&&h(t)}}}function Ut(e,t,n){let{features:i}=t,{settings:o}=t;return e.$$set=e=>{"features"in e&&n(0,i=e.features),"settings"in e&&n(1,o=e.settings)},[i,o]}class Vt extends ae{constructor(e){super(),se(this,e,Ut,qt,a,{features:0,settings:1})}}function Qt(e){let t,n,i,o,s,a,r,l,c,d,u,f,m,p,_,x,w;return s=new Vt({props:{settings:e[3],features:e[0]}}),l=new kt({props:{settings:e[3],features:e[0]}}),p=new ve({}),{c(){t=b("div"),n=b("form"),i=b("div"),o=b("main"),te(s.$$.fragment),a=y(),r=b("aside"),te(l.$$.fragment),c=y(),d=b("input"),u=y(),f=b("div"),f.textContent="Reset",m=y(),te(p.$$.fragment),C(o,"class","my-2 px-2 w-full overflow-hidden col-span-5 lg:col-span-4"),C(d,"type","submit"),C(d,"class","mt-3 py-3 w-full bg-primary-600 text-white rounded-md cursor-pointer shadow-sm"),d.value="Save",C(f,"class","reset-option mt-1.5 py-3 w-full bg-danger-600 text-white text-center rounded-md cursor-pointer"),C(r,"class","sticky md:top-20 my-2 px-2 w-full overflow-hidden lg:visible h-[calc(100vh-5rem)]"),C(i,"class","grid grid-cols-5 -mx-2"),C(n,"method","POST"),C(n,"id","setting-form"),C(t,"class","tab-content fab-sections py-6 mr-4 animate__animated animate__"+e[2].elements.content),O(t,"current","setting"===e[1].slug)},m(h,b){$(h,t,b),g(t,n),g(n,i),g(i,o),ne(s,o,null),g(i,a),g(i,r),ne(l,r,null),g(r,c),g(r,d),g(r,u),g(r,f),$(h,m,b),ne(p,h,b),_=!0,x||(w=k(n,"submit",e[4]),x=!0)},p(e,[n]){const i={};1&n&&(i.features=e[0]),s.$set(i);const o={};1&n&&(o.features=e[0]),l.$set(o),(!_||2&n)&&O(t,"current","setting"===e[1].slug)},i(e){_||(Y(s.$$.fragment,e),Y(l.$$.fragment,e),Y(p.$$.fragment,e),_=!0)},o(e){Z(s.$$.fragment,e),Z(l.$$.fragment,e),Z(p.$$.fragment,e),_=!1},d(e){e&&h(t),ie(s),ie(l),e&&h(m),ie(p,e),x=!1,w()}}}function Rt(e,t,n){let i;c(e,ce,(e=>n(1,i=e)));let{name:o,path:s,options:a,rest_url:r}=window.FAB_PLUGIN,{name:l=o,path:d=s,options:u=a,rest_url:f=r}=t,{fab_animation:m}=window.FAB_PLUGIN.options,{status:p,features:g,nonce:$}=window.FAB_SETTING,{status:h=p,features:_=g,nonce:b=$}=t,x={core_animation:Je,core_design:dt,core_order:ht};jQuery((function(e){window.FAB_PLUGIN.init_setting()}));return e.$$set=e=>{"name"in e&&n(5,l=e.name),"path"in e&&n(6,d=e.path),"options"in e&&n(7,u=e.options),"rest_url"in e&&n(8,f=e.rest_url),"status"in e&&n(9,h=e.status),"features"in e&&n(0,_=e.features),"nonce"in e&&n(10,b=e.nonce)},[_,i,m,x,e=>{e.preventDefault();const t=jQuery("#setting-form").serialize();jQuery.ajax({url:f+"fab/v1/setting",type:"POST",beforeSend(e){e.setRequestHeader("X-WP-Nonce",b.setting)},data:t,success:e=>{jQuery.dialog({icon:"fas fa-check",closeIcon:!0,animation:"scale",columnClass:"j-small",title:"Success",content:"Options saved successfully!"}),setTimeout((function(){window.location.reload()}),1e3)},error:(e,t,n)=>{console.error("Error:",n)}})},l,d,u,f,h,b]}class Dt extends ae{constructor(e){super(),se(this,e,Rt,Qt,a,{name:5,path:6,options:7,rest_url:8,status:9,features:0,nonce:10})}}function Xt(e,t,n){const i=e.slice();return i[8]=t[n],i[10]=n,i}function Kt(e){let t,n,i=e[8].options&&Object.keys(e[8].options).length,o=i&&function(e){let t,n,i,o,s,a,r,l,c,d,u,f,m,p,_,x,v,T,j,L,N=e[8].name+"",P=e[8].description+"";function A(){return e[7](e[10])}return v=new It({props:{key:e[8].key,options:e[8].options}}),{c(){t=b("div"),n=b("div"),i=b("div"),o=b("em"),a=y(),r=b("div"),l=b("div"),l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"></path></svg>',c=y(),d=b("h2"),u=w(N),f=y(),m=b("p"),p=w(P),_=y(),x=b("div"),te(v.$$.fragment),C(o,"class","fas fa-cog"),C(i,"class",s="text-3xl font-medium inline-block p-2 text-center transition focus:outline-none waves-effect cursor-pointer animate__animated "+(e[1][e[10]].button.active?`animate__${e[5].elements.tab}`:"")),O(i,"text-primary-600",e[0]===e[10]),O(i,"text-gray-600",e[0]!==e[10]),C(n,"class","float-right flex relative"),C(l,"class","text-gray-600 inline-block p-2 mr-4 text-center transition focus:outline-none waves-effect"),C(d,"class","text-gray-600 text-xl"),C(r,"class","flex items-center relative"),C(m,"class","my-2 text-gray-400"),C(x,"class","module-options mt-4 p-2 animate__animated animate__"+e[5].elements.content),O(x,"hidden",e[0]!==e[10]),C(t,"class","bg-white shadow-sm rounded-lg px-6 py-3 mb-6")},m(e,s){$(e,t,s),g(t,n),g(n,i),g(i,o),g(t,a),g(t,r),g(r,l),g(r,c),g(r,d),g(d,u),g(t,f),g(t,m),g(m,p),g(t,_),g(t,x),ne(v,x,null),T=!0,j||(L=k(i,"click",A),j=!0)},p(t,n){e=t,(!T||2&n&&s!==(s="text-3xl font-medium inline-block p-2 text-center transition focus:outline-none waves-effect cursor-pointer animate__animated "+(e[1][e[10]].button.active?`animate__${e[5].elements.tab}`:"")))&&C(i,"class",s),(!T||3&n)&&O(i,"text-primary-600",e[0]===e[10]),(!T||3&n)&&O(i,"text-gray-600",e[0]!==e[10]),(!T||1&n)&&O(x,"hidden",e[0]!==e[10])},i(e){T||(Y(v.$$.fragment,e),T=!0)},o(e){Z(v.$$.fragment,e),T=!1},d(e){e&&h(t),ie(v),j=!1,L()}}}(e);return{c(){o&&o.c(),t=v()},m(e,i){o&&o.m(e,i),$(e,t,i),n=!0},p(e,t){i&&o.p(e,t)},i(e){n||(Y(o),n=!0)},o(e){Z(o),n=!1},d(e){o&&o.d(e),e&&h(t)}}}function Wt(e){let t,n,i,o,s,a,r,l,c,d,u,f,m,p=e[3],x=[];for(let t=0;t<p.length;t+=1)x[t]=Kt(Xt(e,p,t));const w=e=>Z(x[e],1,1,(()=>{x[e]=null}));return{c(){t=b("div"),n=b("form"),i=b("input"),o=y(),s=b("input"),a=y(),r=b("input"),l=y();for(let e=0;e<x.length;e+=1)x[e].c();c=y(),d=b("input"),u=y(),f=b("button"),f.innerHTML='<svg class="w-6 h-6 inline-block" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="save" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#FFFFFF" d="M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"></path></svg>',C(i,"type","hidden"),C(i,"id","module-config"),C(i,"name","module-config"),i.value=e[4].module,C(s,"type","hidden"),C(s,"id","module-nonce"),C(s,"name","module-nonce"),s.value=e[4].module,C(r,"type","hidden"),C(r,"name","_wp_http_referer"),r.value="/wp-admin/options-general.php?page=floating-awesome-button-setting",C(d,"type","submit"),C(d,"class","hidden md:block my-3 py-4 px-12 float-right bg-primary-600 text-white rounded-md cursor-pointer"),d.value="Save",C(f,"type","submit"),C(f,"class","md:hidden fixed right-6 bottom-6 md:right-8 md:bottom-12 w-16 h-16 bg-primary-600 rounded-full hover:bg-primary-700 active:shadow-lg mouse shadow transition ease-in duration-200 focus:outline-none"),C(n,"method","POST"),C(n,"id","module-form"),C(t,"class","tab-content fab-sections py-6 mr-4 animate__animated animate__"+e[5].elements.content),O(t,"current","module"===e[2].slug)},m(e,p){$(e,t,p),g(t,n),g(n,i),g(n,o),g(n,s),g(n,a),g(n,r),g(n,l);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(n,null);g(n,c),g(n,d),g(n,u),g(n,f),m=!0},p(e,[i]){if(107&i){let t;for(p=e[3],t=0;t<p.length;t+=1){const o=Xt(e,p,t);x[t]?(x[t].p(o,i),Y(x[t],1)):(x[t]=Kt(o),x[t].c(),Y(x[t],1),x[t].m(n,c))}for(W(),t=p.length;t<x.length;t+=1)w(t);J()}(!m||4&i)&&O(t,"current","module"===e[2].slug)},i(e){if(!m){for(let e=0;e<p.length;e+=1)Y(x[e]);m=!0}},o(e){x=x.filter(Boolean);for(let e=0;e<x.length;e+=1)Z(x[e]);m=!1},d(e){e&&h(t),_(x,e)}}}function Jt(e,t,n){let i;c(e,ce,(e=>n(2,i=e)));let{modules:o,nonce:s}=window.FAB_SETTING;const{fab_animation:a}=window.FAB_PLUGIN.options;let r,l=o.map((()=>({button:{active:!1}})));const d=e=>{n(0,r=e===r?null:e),n(1,l[e].button.active=!1,l),setTimeout((()=>{n(1,l[e].button.active=!0,l)}),100),setTimeout((()=>{n(1,l[e].button.active=!1,l)}),1e3)};return[r,l,i,o,s,a,d,e=>d(e)]}class Yt extends ae{constructor(e){super(),se(this,e,Jt,Wt,a,{})}}function Zt(t){let n,i,o,s,a,r,c,d,u,f,m,p,_,v,k,T,j,L,N,P,A,E,F,I,B,M,S;return{c(){n=b("div"),i=b("div"),o=b("main"),s=b("div"),a=b("div"),r=b("img"),d=y(),u=b("div"),f=b("h2"),f.textContent=`${t[2]}`,m=y(),p=b("div"),_=b("div"),v=x("svg"),k=x("path"),T=y(),j=b("a"),L=w(t[3]),P=y(),A=b("a"),A.innerHTML='<i class="fab fa-youtube mr-2"></i>\n            Documentation',E=y(),F=b("a"),F.innerHTML='<i class="fab fa-youtube mr-2"></i>\n            Tutorial',I=y(),B=b("a"),B.innerHTML='<i class="fas fa-coins mr-2"></i>\n            Affiliate Program',M=y(),S=b("p"),S.textContent=`${t[4]}`,C(r,"class","mx-auto animate__animated animate__pulse animate__infinite animate__slow"),l(r.src,c=t[5].plugin_url+"/assets/img/logo.gif")||C(r,"src",c),C(r,"alt",t[2]),C(a,"class","w-3/4 mx-auto"),C(s,"class","bg-cover-image shadow-sm bg-center bg-cover px-6 py-16"),C(f,"class","text-3xl md:text-5xl font-medium mb-4"),C(k,"fill-rule","evenodd"),C(k,"d","M17.707 9.293a1 1 0 010 1.414l-7 7a1 1 0 01-1.414 0l-7-7A.997.997 0 012 10V5a3 3 0 013-3h5c.256 0 .512.098.707.293l7 7zM5 6a1 1 0 100-2 1 1 0 000 2z"),C(k,"clip-rule","evenodd"),C(v,"xmlns","http://www.w3.org/2000/svg"),C(v,"class","h-3 w-3 mt-0.5 mr-2"),C(v,"viewBox","0 0 20 20"),C(v,"fill","currentColor"),C(j,"href",N=t[0].url.wordpress),C(j,"target","_blank"),C(_,"class","text-sm inline-flex items-center leading-sm px-4 py-1 mb-4 bg-primary-600 text-white rounded-full"),C(A,"href","https://www.youtube.com/watch?v=MMuhc9pcYew&list=PLnwuifVLRkaXBV9IBTPZeLtduzCdt5cFh"),C(A,"target","_blank"),C(A,"class","text-sm inline-flex items-center leading-sm px-4 py-1 mb-4 ml-2 bg-red-600 text-white rounded-full"),C(F,"href","https://www.youtube.com/watch?v=CkSspyM9yjQ&list=PLnwuifVLRkaXH9I-QAAReVoEv9DClViPG"),C(F,"target","_blank"),C(F,"class","text-sm inline-flex items-center leading-sm px-4 py-1 mb-4 ml-2 bg-red-600 text-white rounded-full"),C(B,"href","https://artistudio.xyz/affiliate"),C(B,"target","_blank"),C(B,"class","text-sm inline-flex items-center leading-sm px-4 py-1 mb-4 ml-2 bg-green-600 text-white rounded-full"),C(p,"class","flex items-center"),C(S,"class","text-lg"),C(u,"class","col-span-4 mx-8 md:mx-16 my-12 overflow-scroll md:overflow-auto"),C(o,"class","grid grid-cols-1 md:grid-cols-5 my-2 w-full bg-white shadow-sm rounded-lg overflow-hidden"),C(i,"class","-mx-2 my-2 px-2"),C(n,"class","tab-content fab-sections py-4 mr-4 animate__animated animate__"+t[6].elements.content),O(n,"current","about"===t[1].slug)},m(e,t){$(e,n,t),g(n,i),g(i,o),g(o,s),g(s,a),g(a,r),g(o,d),g(o,u),g(u,f),g(u,m),g(u,p),g(p,_),g(_,v),g(v,k),g(_,T),g(_,j),g(j,L),g(p,P),g(p,A),g(p,E),g(p,F),g(p,I),g(p,B),g(u,M),g(u,S)},p(e,[t]){1&t&&N!==(N=e[0].url.wordpress)&&C(j,"href",N),2&t&&O(n,"current","about"===e[1].slug)},i:e,o:e,d(e){e&&h(n)}}}function en(e,t,n){let i;c(e,ce,(e=>n(1,i=e)));let{config:o}=window.FAB_SETTING,{config:s=o}=t,{name:a,version:r,description:l,path:d}=window.FAB_PLUGIN,{fab_animation:u}=window.FAB_PLUGIN.options;return e.$$set=e=>{"config"in e&&n(0,s=e.config)},[s,i,a,r,l,d,u]}class tn extends ae{constructor(e){super(),se(this,e,en,Zt,a,{config:0})}}function nn(e,t,n){const i=e.slice();return i[6]=t[n],i}function on(e){let t,n;return{c(){t=b("i"),C(t,"class",n="fas "+("enabled"===e[6].status?"fa-trash":"fa-plug"))},m(e,n){$(e,t,n)},p(e,i){1&i&&n!==(n="fas "+("enabled"===e[6].status?"fa-trash":"fa-plug"))&&C(t,"class",n)},d(e){e&&h(t)}}}function sn(t){let n;return{c(){n=b("i"),C(n,"class","fas fa-spinner fa-spin")},m(e,t){$(e,n,t)},p:e,d(e){e&&h(n)}}}function an(e){let t,n,i,s,a,r,c,d,u,f,m,p,_,x,v,T,j,N,P,A,E,F,I=e[6].name+"",B=e[6].description+"",M=("enabled"===e[6].status?e[2].remove:e[2].add)+"";function S(e,t){return e[1][e[6].plugin_file]?sn:on}let z=S(e),G=z(e);function H(){return e[4](e[6])}return{c(){t=b("div"),n=b("div"),i=b("div"),s=b("img"),c=y(),d=b("div"),u=b("h3"),f=w(I),m=y(),p=b("p"),_=w(B),x=y(),v=b("div"),G.c(),T=y(),j=b("span"),N=w(M),A=y(),l(s.src,a=e[6].icon_url)||C(s,"src",a),C(s,"alt",r=e[6].name+" Logo"),C(s,"class","w-20 h-20 mx-auto"),C(i,"class","col-span-1 py-6 text-center"),C(u,"class","text-lg font-bold pb-2"),C(p,"class","text-sm text-gray-500"),C(d,"class","col-span-2 py-4"),C(n,"class","grid grid-cols-3 gap-x-4"),C(j,"class","pl-1"),C(v,"class","text-blue-600 px-4 py-2 text-center cursor-pointer hover:bg-blue-600 border-t border-gray-200 hover:text-white transition-all duration-300"),C(v,"disabled",P=Object.values(e[1]).some(ln)),O(v,"bg-red-800","enabled"===e[6].status),O(v,"text-white","enabled"===e[6].status),O(v,"hover:bg-red-600","enabled"===e[6].status),O(v,"opacity-50",Object.values(e[1]).some(dn)),C(t,"class","h-full bg-white shadow-sm overflow-hidden h-full justify-between flex flex-col border border-gray-200 rounded-md")},m(e,o){$(e,t,o),g(t,n),g(n,i),g(i,s),g(n,c),g(n,d),g(d,u),g(u,f),g(d,m),g(d,p),g(p,_),g(t,x),g(t,v),G.m(v,null),g(v,T),g(v,j),g(j,N),g(t,A),E||(F=[k(v,"click",H),k(v,"keydown",cn)],E=!0)},p(t,n){e=t,1&n&&!l(s.src,a=e[6].icon_url)&&C(s,"src",a),1&n&&r!==(r=e[6].name+" Logo")&&C(s,"alt",r),1&n&&I!==(I=e[6].name+"")&&L(f,I),1&n&&B!==(B=e[6].description+"")&&L(_,B),z===(z=S(e))&&G?G.p(e,n):(G.d(1),G=z(e),G&&(G.c(),G.m(v,T))),1&n&&M!==(M=("enabled"===e[6].status?e[2].remove:e[2].add)+"")&&L(N,M),2&n&&P!==(P=Object.values(e[1]).some(ln))&&C(v,"disabled",P),1&n&&O(v,"bg-red-800","enabled"===e[6].status),1&n&&O(v,"text-white","enabled"===e[6].status),1&n&&O(v,"hover:bg-red-600","enabled"===e[6].status),2&n&&O(v,"opacity-50",Object.values(e[1]).some(dn))},d(e){e&&h(t),G.d(),E=!1,o(F)}}}function rn(t){let n,i=Object.values(t[0]),o=[];for(let e=0;e<i.length;e+=1)o[e]=an(nn(t,i,e));return{c(){n=b("div");for(let e=0;e<o.length;e+=1)o[e].c();C(n,"class","grid grid-cols-1 md:grid-cols-4 gap-4")},m(e,t){$(e,n,t);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(n,null)},p(e,[t]){if(15&t){let s;for(i=Object.values(e[0]),s=0;s<i.length;s+=1){const a=nn(e,i,s);o[s]?o[s].p(a,t):(o[s]=an(a),o[s].c(),o[s].m(n,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=i.length}},i:e,o:e,d(e){e&&h(n),_(o,e)}}}const ln=e=>e,cn=()=>{},dn=e=>e;function un(e,t,n){let{integrations:i}=t,o={};const{labels:s}=window.FAB_SETTING,{rest_url:a}=window.FAB_PLUGIN,r=e=>{n(1,o[e.plugin_file]=!0,o),fetch(a+"fab/v1/integration",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e.plugin_file,status:e.status})}).then((e=>e.json())).then((e=>{setTimeout((()=>{window.location.reload()}),1e3)}))};return e.$$set=e=>{"integrations"in e&&n(0,i=e.integrations)},[i,o,s,r,e=>!Object.values(o).some((e=>e))&&r(e)]}class fn extends ae{constructor(e){super(),se(this,e,un,rn,a,{integrations:0})}}function mn(t){let n,i,o,s=Object.keys(t[1].plugin).length>0,a=Object.keys(t[1].theme).length>0,r=s&&function(t){let n,i,o,s;return o=new fn({props:{integrations:t[1].plugin}}),{c(){n=b("h2"),n.textContent="Plugin Integrations",i=y(),te(o.$$.fragment),C(n,"class","text-2xl font-semibold pb-4")},m(e,t){$(e,n,t),$(e,i,t),ne(o,e,t),s=!0},p:e,i(e){s||(Y(o.$$.fragment,e),s=!0)},o(e){Z(o.$$.fragment,e),s=!1},d(e){e&&h(n),e&&h(i),ie(o,e)}}}(t),l=a&&function(t){let n,i,o,s;return o=new fn({props:{integrations:t[1].theme}}),{c(){n=b("h2"),n.textContent="Theme Integrations",i=y(),te(o.$$.fragment),C(n,"class","text-2xl font-semibold pb-4")},m(e,t){$(e,n,t),$(e,i,t),ne(o,e,t),s=!0},p:e,i(e){s||(Y(o.$$.fragment,e),s=!0)},o(e){Z(o.$$.fragment,e),s=!1},d(e){e&&h(n),e&&h(i),ie(o,e)}}}(t);return{c(){n=b("div"),r&&r.c(),i=y(),l&&l.c(),C(n,"class","tab-content fab-sections py-4 mr-4 animate__animated animate__"+t[2].elements.content),O(n,"current","integration"===t[0].slug)},m(e,t){$(e,n,t),r&&r.m(n,null),g(n,i),l&&l.m(n,null),o=!0},p(e,[t]){s&&r.p(e,t),a&&l.p(e,t),(!o||1&t)&&O(n,"current","integration"===e[0].slug)},i(e){o||(Y(r),Y(l),o=!0)},o(e){Z(r),Z(l),o=!1},d(e){e&&h(n),r&&r.d(),l&&l.d()}}}function pn(e,t,n){let i;c(e,ce,(e=>n(0,i=e)));let{config:o}=window.FAB_SETTING,{config:s=o}=t,{name:a,version:r,description:l,path:d,integrations:u}=window.FAB_PLUGIN,{fab_animation:f}=window.FAB_PLUGIN.options;return e.$$set=e=>{"config"in e&&n(3,s=e.config)},[i,u,f,s]}class gn extends ae{constructor(e){super(),se(this,e,pn,mn,a,{config:3})}}function $n(t){let n,i,o,s,a,r,l,c,d,u,f,m,p,_;return i=new $e({}),s=new xe({}),l=new Dt({}),d=new Yt({}),f=new tn({}),p=new gn({}),{c(){n=b("div"),te(i.$$.fragment),o=y(),te(s.$$.fragment),a=y(),r=b("div"),te(l.$$.fragment),c=y(),te(d.$$.fragment),u=y(),te(f.$$.fragment),m=y(),te(p.$$.fragment),C(r,"class","content"),C(n,"class","fab-container")},m(e,t){$(e,n,t),ne(i,n,null),g(n,o),ne(s,n,null),g(n,a),g(n,r),ne(l,r,null),g(r,c),ne(d,r,null),g(r,u),ne(f,r,null),g(r,m),ne(p,r,null),_=!0},p:e,i(e){_||(Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(l.$$.fragment,e),Y(d.$$.fragment,e),Y(f.$$.fragment,e),Y(p.$$.fragment,e),_=!0)},o(e){Z(i.$$.fragment,e),Z(s.$$.fragment,e),Z(l.$$.fragment,e),Z(d.$$.fragment,e),Z(f.$$.fragment,e),Z(p.$$.fragment,e),_=!1},d(e){e&&h(n),ie(i),ie(s),ie(l),ie(d),ie(f),ie(p)}}}return new class extends ae{constructor(e){super(),se(this,e,null,$n,a,{})}}({target:document.querySelector("#fab-setting-dom")})}();
    22//# sourceMappingURL=bundle.js.map
  • floating-awesome-button/trunk/assets/build/manifest-sass.json

    r3303305 r3306323  
    11{
    2   "assets/css/backend/style.scss": "assets/build/css/backend.c46e2040.css",
    3   "assets/css/frontend/style.scss": "assets/build/css/frontend.110a0547.css",
     2  "assets/css/backend/style.scss": "assets/build/css/backend.6ee863b8.css",
     3  "assets/css/frontend/style.scss": "assets/build/css/frontend.68ec0660.css",
    44  "assets/css/fab-shapes/style.scss": "assets/build/css/fab-shapes.b9cf12b6.css",
    55  "assets/css/fab-modal/style.scss": "assets/build/css/fab-modal.3c8e238e.css"
  • floating-awesome-button/trunk/assets/build/manifest.json

    r3303305 r3306323  
    11{
    2   "_Average_Clicks-BT5xaIEB.js": {
    3     "file": "assets/Average_Clicks-BT5xaIEB.js",
     2  "_Average_Clicks-DMZBFGRu.js": {
     3    "file": "assets/Average_Clicks-DMZBFGRu.js",
    44    "name": "Average_Clicks",
    55    "imports": [
     
    3737    ]
    3838  },
    39   "_Type-CHH3v5m5.js": {
    40     "file": "assets/Type-CHH3v5m5.js",
     39  "_Type-CE_Qm-Rd.js": {
     40    "file": "assets/Type-CE_Qm-Rd.js",
    4141    "name": "Type",
    4242    "imports": [
    4343      "_runtime-dom.esm-bundler-CJHuMP2g.js"
    4444    ]
     45  },
     46  "_Website_Traffic-DUE7Otue.js": {
     47    "file": "assets/Website_Traffic-DUE7Otue.js",
     48    "name": "Website_Traffic",
     49    "imports": [
     50      "_google-site-kit-CKKrfKfE.js",
     51      "_CalendarChart-DJrDUIB4.js",
     52      "_runtime-dom.esm-bundler-CJHuMP2g.js"
     53    ]
     54  },
     55  "_google-site-kit-CKKrfKfE.js": {
     56    "file": "assets/google-site-kit-CKKrfKfE.js",
     57    "name": "google-site-kit"
    4558  },
    4659  "_pinia-DG51S3Uw.js": {
     
    5669  },
    5770  "assets/components/admin-header-fab/main.js": {
    58     "file": "components/admin-header-fab/bundle.BSgoSVyd.js",
     71    "file": "components/admin-header-fab/bundle.CVnhDAMp.js",
    5972    "name": "components/admin-header-fab/bundle.js",
    6073    "src": "assets/components/admin-header-fab/main.js",
     
    6376      "_runtime-dom.esm-bundler-CJHuMP2g.js",
    6477      "_pinia-DG51S3Uw.js",
    65       "_Average_Clicks-BT5xaIEB.js",
     78      "_Average_Clicks-DMZBFGRu.js",
    6679      "_Loading-DGmSbmA3.js"
    6780    ]
    6881  },
    6982  "assets/components/dashboard/main.js": {
    70     "file": "components/dashboard/bundle.DH9dPy9B.js",
     83    "file": "components/dashboard/bundle.maBbuJPU.js",
    7184    "name": "components/dashboard/bundle.js",
    7285    "src": "assets/components/dashboard/main.js",
     
    7588      "_runtime-dom.esm-bundler-CJHuMP2g.js",
    7689      "_pinia-DG51S3Uw.js",
    77       "_Average_Clicks-BT5xaIEB.js",
     90      "_Average_Clicks-DMZBFGRu.js",
    7891      "_CalendarChart-DJrDUIB4.js",
    7992      "_Templates-BEJVsj39.js",
    8093      "_Tooltip-DVs0LEDn.js",
    81       "_Loading-DGmSbmA3.js"
     94      "_Loading-DGmSbmA3.js",
     95      "_google-site-kit-CKKrfKfE.js"
    8296    ]
    8397  },
     
    95109  },
    96110  "assets/components/metabox-location/main.js": {
    97     "file": "components/metabox-location/bundle.D0x4qFnb.js",
     111    "file": "components/metabox-location/bundle.C2FZR_lp.js",
    98112    "name": "components/metabox-location/bundle.js",
    99113    "src": "assets/components/metabox-location/main.js",
     
    103117      "_pinia-DG51S3Uw.js",
    104118      "_Loading-DGmSbmA3.js",
    105       "_Type-CHH3v5m5.js"
     119      "_Type-CE_Qm-Rd.js"
    106120    ]
    107121  },
    108122  "assets/components/metabox-post/main.js": {
    109     "file": "components/metabox-post/bundle.I7XJ-x7Y.js",
     123    "file": "components/metabox-post/bundle.CgDeIkGP.js",
    110124    "name": "components/metabox-post/bundle.js",
    111125    "src": "assets/components/metabox-post/main.js",
     
    113127    "imports": [
    114128      "_runtime-dom.esm-bundler-CJHuMP2g.js",
    115       "_Templates-BEJVsj39.js"
     129      "_Website_Traffic-DUE7Otue.js",
     130      "_google-site-kit-CKKrfKfE.js",
     131      "_CalendarChart-DJrDUIB4.js"
    116132    ]
    117133  },
    118134  "assets/components/metabox-setting/main.js": {
    119     "file": "components/metabox-setting/bundle.BxRp-aFx.js",
     135    "file": "components/metabox-setting/bundle.BhYZD-6r.js",
    120136    "name": "components/metabox-setting/bundle.js",
    121137    "src": "assets/components/metabox-setting/main.js",
     
    124140      "_runtime-dom.esm-bundler-CJHuMP2g.js",
    125141      "_pinia-DG51S3Uw.js",
    126       "_Type-CHH3v5m5.js",
     142      "_Type-CE_Qm-Rd.js",
    127143      "_Tooltip-DVs0LEDn.js"
    128144    ]
     
    158174  },
    159175  "assets/components/wc-metabox-product/main.js": {
    160     "file": "components/wc-metabox-product/bundle.BMpAzuoc.js",
     176    "file": "components/wc-metabox-product/bundle.BPzEMyjG.js",
    161177    "name": "components/wc-metabox-product/bundle.js",
    162178    "src": "assets/components/wc-metabox-product/main.js",
     
    164180    "imports": [
    165181      "_runtime-dom.esm-bundler-CJHuMP2g.js",
    166       "_Templates-BEJVsj39.js"
     182      "_Website_Traffic-DUE7Otue.js",
     183      "_google-site-kit-CKKrfKfE.js",
     184      "_CalendarChart-DJrDUIB4.js"
    167185    ]
    168186  },
     
    180198  },
    181199  "assets/ts/integration/google-site-kit.ts": {
    182     "file": "js/integration/google-site-kit.min.CY9bRILA.js",
     200    "file": "js/integration/google-site-kit.min.C2lOnYFO.js",
    183201    "name": "js/integration/google-site-kit.min.js",
    184202    "src": "assets/ts/integration/google-site-kit.ts",
     203    "isEntry": true
     204  },
     205  "assets/ts/integration/wc-coupon.ts": {
     206    "file": "js/integration/wc-coupon.min.CbyXUzWG.js",
     207    "name": "js/integration/wc-coupon.min.js",
     208    "src": "assets/ts/integration/wc-coupon.ts",
     209    "isEntry": true
     210  },
     211  "assets/ts/integration/wc-product.ts": {
     212    "file": "js/integration/wc-product.min.BBr3Oads.js",
     213    "name": "js/integration/wc-product.min.js",
     214    "src": "assets/ts/integration/wc-product.ts",
    185215    "isEntry": true
    186216  },
  • floating-awesome-button/trunk/changelog.txt

    r3303305 r3306323  
    55This file contains older changelog entries, so we can keep the size of the standard WordPress readme.txt file reasonable.
    66For the latest changes, please see the "Changelog" section of the readme.txt file.
     7
     8= 2.14.0 (04.06.2025) =
     9* Add "Turn into FAB Button" for WooCommerce Coupons and Products
     10* Add Popular Templates section on Dashboard
     11* Add Social Share popup feature
     12* Update Google Site Kit integration with content analysis
     13* Move Affiliate Program link to About page
     14* Improve Dashboard Clicks chart display
     15* Hide usage tracking option on Premium
     16* Optimized performance for faster loading times
     17* Bug fixes and stability improvements
    718
    819= 2.13.0 (30.05.2025) =
  • floating-awesome-button/trunk/config.json

    r3303305 r3306323  
    1 {"default":{"fab_affiliate":{"code":""},"fab_animation":{"elements":{"content":"fadeIn","fab":"ripple","fab_active":"fadeIn","fab_inactive":"fadeOut","logo":"pulse","tab":"heartBeat"},"enable":1},"fab_design":{"font":{"family":"inherit","padding":{"bottom":10,"left":10,"right":10,"sizing":"px","top":10},"size":{"unit":"rem","value":1.25},"style":"normal"},"layout":{"margin":{"bottom":0,"left":0,"right":0,"sizing":"px","top":0},"position":"right-bottom"},"size":{"custom":"","type":"medium"},"template":{"color":"#5b59ec","icon":{"class":"fas fa-ellipsis-h","color":"#fff"},"name":"classic","shape":""},"tooltip":{"enable":1}},"fab_hooks":[],"fab_order":[]},"description":"Floating Awesome Button (FAB): Elevate engagement with customizable action buttons. Showcase modals, shortcodes, widgets \u0026 links effortlessly.","enableHooks":["action","filter","shortcode"],"name":"Floating Awesome Button","premium":false,"production":true,"url":{"contact":"https://artistudio.xyz/contact","wordpress":"https://wordpress.org/plugins/floating-awesome-button"},"version":"2.13.0"}
     1{"default":{"fab_affiliate":{"code":""},"fab_animation":{"elements":{"content":"fadeIn","fab":"ripple","fab_active":"fadeIn","fab_inactive":"fadeOut","logo":"pulse","tab":"heartBeat"},"enable":1},"fab_design":{"font":{"family":"inherit","padding":{"bottom":10,"left":10,"right":10,"sizing":"px","top":10},"size":{"unit":"rem","value":1.25},"style":"normal"},"layout":{"margin":{"bottom":0,"left":0,"right":0,"sizing":"px","top":0},"position":"right-bottom"},"size":{"custom":"","type":"medium"},"template":{"color":"#5b59ec","icon":{"class":"fas fa-ellipsis-h","color":"#fff"},"name":"classic","shape":""},"tooltip":{"enable":1}},"fab_hooks":[],"fab_order":[]},"description":"Floating Awesome Button (FAB): Elevate engagement with customizable action buttons. Showcase modals, shortcodes, widgets \u0026 links effortlessly.","enableHooks":["action","filter","shortcode"],"name":"Floating Awesome Button","premium":false,"production":true,"url":{"contact":"https://artistudio.xyz/contact","wordpress":"https://wordpress.org/plugins/floating-awesome-button"},"version":"2.14.0"}
  • floating-awesome-button/trunk/floating-awesome-button.php

    r3303305 r3306323  
    44 * Plugin URI:        https://artistudio.xyz
    55 * Description:       Floating Awesome Button (FAB): Elevate engagement with customizable action buttons. Showcase modals,shortcodes, widgets & links effortlessly.
    6  * Version:           2.13.0
     6 * Version:           2.14.0
    77 * Author:            Artistudio
    88 * Author URI:        https://brain.artistudio.xyz/artistudio/WordPress-floating-awesome-button
  • floating-awesome-button/trunk/readme.txt

    r3303305 r3306323  
    55Tested up to: 6.8.1
    66Requires PHP: 5.6
    7 Stable tag: 2.13.0
     7Stable tag: 2.14.0
    88License: GPL-3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    106106    - [Time Delay](https://www.youtube.com/watch?v=DNrst8mkQIo) : Auto trigger popup using time delay.
    107107
    108 = More Tutorial on YouTube =
    109 
    110 * [Documentation](https://www.youtube.com/watch?v=MMuhc9pcYew&list=PLnwuifVLRkaXBV9IBTPZeLtduzCdt5cFh) | [Tutorial](https://www.youtube.com/watch?v=CkSspyM9yjQ&list=PLnwuifVLRkaXH9I-QAAReVoEv9DClViPG) | [Cases](https://www.youtube.com/watch?v=QAyGqtpFLeI&list=PLnwuifVLRkaUukXin193wQxOk9ID1DRMF) | [Reacts](https://www.youtube.com/watch?v=htImWcDDZqA&list=PLnwuifVLRkaWw5oazR_i96YtMRHYNDMOq)
     108= More Tutorial =
     109
     110* [Dashboard](https://artistudio.xyz/tag/dashboard/) | [Templates](https://artistudio.xyz/tag/templates/) | [Location Rules](https://artistudio.xyz/tag/location-rules/)
    111111
    112112= Sharing is Caring =
     
    134134
    135135== Changelog ==
     136
     137= 2.14.0 (04.06.2025) =
     138* Add "Turn into FAB Button" for WooCommerce Coupons and Products
     139* Add Popular Templates section on Dashboard
     140* Add Social Share popup feature
     141* Update Google Site Kit integration with content analysis
     142* Move Affiliate Program link to About page
     143* Improve Dashboard Clicks chart display
     144* Hide usage tracking option on Premium
     145* Optimized performance for faster loading times
     146* Bug fixes and stability improvements
    136147
    137148= 2.13.0 (30.05.2025) =
     
    192203* Minor bug fixes and stability improvements
    193204
    194 = 2.6.0 (08.04.2025) =
    195 * Added Contact and Forum menu for easier user support 
    196 * Improved Template Recommendation system for better suggestions 
    197 * Integrated WPForms with new row actions support 
    198 * Added new Dashboard Page for centralized overview 
    199 * Optimized performance for faster loading times 
    200 * Minor bug fixes and stability improvements 
    201 
    202205For older changelog entries, please see the additional [changelog.txt](https://plugins.svn.wordpress.org/floating-awesome-button/trunk/changelog.txt) delivered with the plugin.
    203206
     
    2082113. Ready-to-use Templates
    2092124. Professional Themes
    210 5. Easy Button Settings
     2135. Viral Social Sharing
    2112146. Flexible Popup Placement
     2157. Easy Button Setting
    212216
    213217== Upgrade notice ==
  • floating-awesome-button/trunk/src/Controller/Backend/Dashboard.php

    r3303305 r3306323  
    9191                        'daily_clicks'    => \FAB()->Helper->get_documentation( 12451 ),
    9292                        'monthly_clicks'  => \FAB()->Helper->get_documentation( 12447 ),
    93                         'website_traffic' => \FAB()->Helper->get_documentation( 12457 ),
    9493                    ),
    9594                    'labels'         => array_merge(
    9695                        \Fab\Helper\FAB_Template::getInstance()->get_metabox_labels(),
    9796                        array(
    98                             'loading'           => __( 'Loading...', 'floating-awesome-button' ),
    99 
    10097                            // Main insights.
    10198                            'number_of_buttons' => __( 'Number of Buttons', 'floating-awesome-button' ),
     
    109106                            'templates'         => __( 'Popular Templates', 'floating-awesome-button' ),
    110107                            'no_data'           => __( 'No data', 'floating-awesome-button' ),
    111                             'missing_data'      => array(
    112                                 'title'   => __( 'Missing Data', 'floating-awesome-button' ),
    113                                 'tooltip' => __( 'Free users can only see up to 7 days of data. Upgrade Now!', 'floating-awesome-button' ),
    114                             ),
    115                             'months'            => array(
    116                                 'jan' => __( 'Jan', 'floating-awesome-button' ),
    117                                 'feb' => __( 'Feb', 'floating-awesome-button' ),
    118                                 'mar' => __( 'Mar', 'floating-awesome-button' ),
    119                                 'apr' => __( 'Apr', 'floating-awesome-button' ),
    120                                 'may' => __( 'May', 'floating-awesome-button' ),
    121                                 'jun' => __( 'Jun', 'floating-awesome-button' ),
    122                                 'jul' => __( 'Jul', 'floating-awesome-button' ),
    123                                 'aug' => __( 'Aug', 'floating-awesome-button' ),
    124                                 'sep' => __( 'Sep', 'floating-awesome-button' ),
    125                                 'oct' => __( 'Oct', 'floating-awesome-button' ),
    126                                 'nov' => __( 'Nov', 'floating-awesome-button' ),
    127                                 'dec' => __( 'Dec', 'floating-awesome-button' ),
    128                             ),
    129                             'threshold'         => array(
    130                                 '0_10'       => array(
    131                                     'label' => __( '0 - 10', 'floating-awesome-button' ),
    132                                     'color' => 'rgba(79, 70, 229, .25)',
    133                                     'min'   => 0,
    134                                     'max'   => 10,
    135                                 ),
    136                                 '11_100'     => array(
    137                                     'label' => __( '11 - 100', 'floating-awesome-button' ),
    138                                     'color' => 'rgba(79, 70, 229, .50)',
    139                                     'min'   => 11,
    140                                     'max'   => 100,
    141                                 ),
    142                                 '101_1000'   => array(
    143                                     'label' => __( '101 - 1000', 'floating-awesome-button' ),
    144                                     'color' => 'rgba(79, 70, 229, .75)',
    145                                     'min'   => 101,
    146                                     'max'   => 1000,
    147                                 ),
    148                                 '1001_10000' => array(
    149                                     'label' => __( '1001 - 10000', 'floating-awesome-button' ),
    150                                     'color' => 'rgba(79, 70, 229, 1)',
    151                                     'min'   => 1001,
    152                                     'max'   => 10000,
    153                                 ),
    154                             ),
    155108                        ),
    156109                    ),
  • floating-awesome-button/trunk/src/Controller/Insight/Insight.php

    r3291532 r3306323  
    6161        if ( ! wp_next_scheduled( $schedule_action ) ) {
    6262            wp_schedule_single_event( time(), $schedule_action );
    63         }
     63        } 
    6464    }
    6565
  • floating-awesome-button/trunk/src/Controller/Metabox/Metabox_Post.php

    r3274664 r3306323  
    2828     */
    2929    public function metabox_post_page() {
     30        global $post;
     31
    3032        // Don't show metabox on add new screens.
    3133        $screen = get_current_screen();
     
    3436        }
    3537
     38        // Don't show metabox on pages with query strings.
     39        $permalink = get_permalink( $post->ID );
     40        if( strpos( $permalink, '?' ) !== false ) {
     41            return;
     42        }
     43
    3644        // Add metabox.
    3745        add_meta_box(
    3846            'fab-metabox-post',
    39             __( 'Floating Awesome Button', 'floating-awesome-button' ),
     47            __( 'Insight by Floating Awesome Button (FAB)', 'floating-awesome-button' ),
    4048            array( $this, 'metabox_post_callback' ),
    4149            'post',
     
    4755        add_meta_box(
    4856            'fab-metabox-page',
    49             __( 'Floating Awesome Button', 'floating-awesome-button' ),
     57            __( 'Insight by Floating Awesome Button (FAB)', 'floating-awesome-button' ),
    5058            array( $this, 'metabox_post_callback' ),
    5159            'page',
     
    6371        global $post;
    6472
    65         // Supported Templates
    66         $supported_templates = array(
    67             'announcement-toast',
    68             'download',
    69             'latest-post-toast',
    70             'join-newsletter-toast',
    71             'reading-bar',
    72             'scroll-to-top',
    73             'popup',
    74             sprintf( 'single-%s', $post->post_type ),
    75         );
    76         $supported_templates = \Fab\Helper\FAB_Template::getInstance()->transform_metabox_templates(
    77             $supported_templates,
    78             array( sprintf( 'single-%s', $post->post_type ) ),
    79             'post_id'
    80         );
    81 
    82         // Enqueue style.
    83         \FAB()->WP->wp_enqueue_style_sass( 'fab', 'assets/css/backend/style.scss' );
    84         \FAB()->WP->wp_enqueue_style( 'fontawesome', apply_filters( 'fab_fontawesome_css', 'vendor/fontawesome/css/all.min.css' ) );
    85 
    8673        // Enqueue Script & component.
    8774        \FAB()->WP->wp_enqueue_script_component( 'metabox-post-component', 'assets/components/metabox-post/main.js', array(), FAB_VERSION, true );
     
    9279                'fab_backend_enqueue_metabox_post_localize',
    9380                array(
    94                     'templates' => apply_filters( 'fab_metabox_post_supported_templates', $supported_templates ),
     81                    'urls'      => array(),
     82                    'data'      => array(),
    9583                    'labels'    => \Fab\Helper\FAB_Template::getInstance()->get_metabox_labels(),
     84                    'documentations' => array(),
     85                    'post_id'   => $post->ID,
     86                    'nonce'     => wp_create_nonce( 'wp_rest' ),
    9687                )
    9788            )
    9889        );
     90
     91        // Enqueue style.
     92        \FAB()->WP->wp_enqueue_style_sass( 'fab', 'assets/css/backend/style.scss' );
     93
     94        // Load vendors.
     95        \FAB()->WP->wp_enqueue_script( 'fab-echarts', 'vendor/echarts/echarts.min.js', array(), FAB_VERSION, true );
     96        \FAB()->WP->wp_enqueue_style( 'fontawesome', apply_filters( 'fab_fontawesome_css', 'vendor/fontawesome/css/all.min.css' ) );
    9997
    10098        // Render View.
  • floating-awesome-button/trunk/src/Controller/Shortcodes.php

    r3297092 r3306323  
    1919    /**
    2020     * Check if the shortcodes should be rendered.
     21     *
     22     * TODO: AFAB-404 Remove shortcodes_should_be_rendered we can use ob_start and return to fix render on backend
    2123     *
    2224     * Rule:
     
    103105    }
    104106
     107    /**
     108     * Set View for [fab_social_sharing] shortcode
     109     *
     110     * @param array $atts Shortcode attributes.
     111     * @return string
     112     */
     113    public function fab_social_sharing( $atts ) {
     114        // Setup attributes.
     115        $atts = shortcode_atts(
     116            array(
     117                'title'   => get_the_title(),
     118                'url'     => get_the_permalink(),
     119                'exclude' => '',
     120            ),
     121            $atts,
     122            'fab_social_sharing'
     123        );
     124
     125        // Render view.
     126        ob_start();
     127            View::RenderStatic( 'Frontend.social_sharing', compact( 'atts' ) );
     128        return ob_get_clean();
     129    }
     130
    105131    /*
    106132    |--------------------------------------------------------------------------
     
    123149        // Add whatsapp form shortcode.
    124150        add_shortcode( 'fab_whatsapp_form', array( __CLASS__, 'jit_fab_whatsapp_form' ) );
     151
     152        // Add social sharing shortcode.
     153        add_shortcode( 'fab_social_sharing', array( __CLASS__, 'jit_fab_social_sharing' ) );
    125154    }
    126155}
  • floating-awesome-button/trunk/src/Controller/Third_Party_Integrations/Google_Site_Kit/Google_Site_Kit.php

    r3303305 r3306323  
    4343
    4444    /**
    45      * Enqueue scripts
     45     * Enqueue scripts on Google Site Kit dashboard
    4646     *
    4747     * @return void
    4848     */
    49     public function enqueue_scripts() {
     49    public function enqueue_scripts_on_google_site_kit_dashboard( $hook ) {
    5050        try {
    5151            $screen = get_current_screen();
    5252
    53             // Check if screen is Google Site Kit.
     53            // Google Site Kit screens.
    5454            $screens = array(
    5555                'toplevel_page_googlesitekit-dashboard', // Dashboard page.
    5656            );
    5757
    58             // Check if screen is in the array.
    59             if ( in_array( $screen->id, $screens, true ) && \Fab\Plugin\Helper::getInstance()->check_plugin_integration( FAB_SITE_KIT_PLUGIN_FILE ) === 'enabled' ) {
    60                 \FAB()->WP->wp_enqueue_script_typescript( 'fab-integration-google-site-kit', 'assets/ts/integration/google-site-kit.ts', array(), FAB_VERSION, true );
    61                 \FAB()->WP->wp_localize_script(
    62                     'fab-integration-google-site-kit',
    63                     'FAB_SITE_KIT',
     58            // Early return if screen is not Google Site Kit.
     59            if ( ! in_array( $screen->id, $screens, true ) || \Fab\Plugin\Helper::getInstance()->check_plugin_integration( FAB_SITE_KIT_PLUGIN_FILE ) !== 'enabled' ) {
     60                return;
     61            }
     62
     63            // Enqueue script.
     64            \FAB()->WP->wp_enqueue_script_typescript( 'fab-integration-google-site-kit', 'assets/ts/integration/google-site-kit.ts', array(), FAB_VERSION, true );
     65            \FAB()->WP->wp_localize_script(
     66                'fab-integration-google-site-kit',
     67                'FAB_SITE_KIT',
     68                apply_filters(
     69                    'fab_integration_google_site_kit_dashboard_data',
    6470                    array(
    6571                        'id'                => 'google-site-kit',
     
    6773                        'rest_api'          => get_rest_url( null, 'fab/v1/google-site-kit' ),
    6874                        'fab_dashboard_url' => admin_url( 'edit.php?post_type=fab&page=fab-dashboard&tab=Post' ),
     75                        'post_edit_url'     => admin_url( 'post.php?action=edit&post=' ),
    6976                        'logo_url'          => FAB_PLUGIN_URL . 'assets/img/logo.gif',
    70                         'is_analyzed'       => array(
    71                             'traffic' => get_transient( 'fab_google_site_kit_traffic' ) ? true : false,
    72                         ),
     77                        'data'              => array(),
    7378                        'label'             => array(
    7479                            'title'       => __( 'Floating Awesome Button (FAB)', 'floating-awesome-button' ),
     
    7681                        ),
    7782                    )
    78                 );
    79             }
     83                ),
     84            );
    8085        } catch ( \Exception $e ) {
    8186            // phpcs:ignore
     
    108113
    109114        // Add custom script to Google Site Kit page.
    110         add_action( 'admin_enqueue_scripts', array( __CLASS__, 'jit_enqueue_scripts' ) );
     115        add_action( 'admin_enqueue_scripts', array( __CLASS__, 'jit_enqueue_scripts_on_google_site_kit_dashboard' ) );
    111116    }
    112117}
  • floating-awesome-button/trunk/src/Controller/Third_Party_Integrations/Google_Site_Kit/Google_Site_Kit_API.php

    r3303305 r3306323  
    2121     */
    2222    public function register_routes() {
     23        // Register route for Google Site Kit.
    2324        \register_rest_route(
    2425            'fab/v1',
     
    3031                        return defined( 'FAB_REST_API_USER_IS_ADMIN' ) && FAB_REST_API_USER_IS_ADMIN;
    3132                    },
    32                     'callback'            => array( $this, 'google_site_kit_api' ),
     33                    'callback'            => array( $this, 'google_site_kit_api_create' ),
     34                ),
     35                array(
     36                    'methods'             => \WP_REST_Server::DELETABLE,
     37                    'permission_callback' => function () {
     38                        return defined( 'FAB_REST_API_USER_IS_ADMIN' ) && FAB_REST_API_USER_IS_ADMIN;
     39                    },
     40                    'callback'            => array( $this, 'google_site_kit_api_delete' ),
    3341                ),
    3442            )
     
    3745
    3846    /**
    39      * Google Site Kit API
     47     * Google Site Kit API Create
    4048     *
    4149     * @param \WP_REST_Request $request The request.
    4250     * @return \WP_REST_Response The response.
    4351     */
    44     public function google_site_kit_api( $request ) {
     52    public function google_site_kit_api_create( $request ) {
    4553        // Verify nonce.
    4654        $nonce = $request->get_header( 'X-WP-Nonce' );
     
    7381        }
    7482
    75         // Save to transient - expired in 30 days.
    76         set_transient( sprintf( 'fab_google_site_kit_%s', $type ), $data, 60 * 60 * 24 * 30 );
     83        // Get post ID.
     84        $post_id = $request->get_param( 'post_id' );
     85        if ( $post_id ) {
     86            // Save to post meta.
     87            update_post_meta( $post_id, sprintf( 'fab_google_site_kit_%s', $type ), $data );
     88        } else {
     89            // Save to transient - expired in 30 days.
     90            set_transient( sprintf( 'fab_google_site_kit_%s', $type ), $data, 60 * 60 * 24 * 30 );
     91        }
     92
     93        // Return success.
     94        return new \WP_REST_Response(
     95            array( 'success' => true ),
     96            200
     97        );
     98    }
     99
     100    /**
     101     * Google Site Kit API Delete
     102     *
     103     * @param \WP_REST_Request $request The request.
     104     * @return \WP_REST_Response The response.
     105     */
     106    public function google_site_kit_api_delete( $request ) {
     107        // Verify nonce.
     108        $nonce = $request->get_header( 'X-WP-Nonce' );
     109        if ( ! wp_verify_nonce( $nonce, 'wp_rest' ) ) {
     110            return new \WP_Error(
     111                'rest_cookie_invalid_nonce',
     112                __( 'Nonce verification failed', 'floating-awesome-button' ),
     113                array( 'status' => 403 )
     114            );
     115        }
     116
     117        // Get type.
     118        $type = $request->get_param( 'type' );
     119        if ( ! $type ) {
     120            return new \WP_Error(
     121                'invalid_type',
     122                __( 'Invalid type', 'floating-awesome-button' ),
     123                array( 'status' => 400 )
     124            );
     125        }
     126
     127        // Get post ID.
     128        $post_id = $request->get_param( 'post_id' );
     129        if ( $post_id ) {
     130            // Delete from post meta.
     131            delete_post_meta( $post_id, sprintf( 'fab_google_site_kit_%s', $type ) );
     132        } else {
     133            delete_transient( sprintf( 'fab_google_site_kit_%s', $type ) );
     134        }
    77135
    78136        // Return success.
  • floating-awesome-button/trunk/src/Controller/Third_Party_Integrations/Google_Site_Kit/Google_Site_Kit_Insight_Traffic.php

    r3303305 r3306323  
    2424        $this->insight_id           = 'google_site_kit_traffic';
    2525        $this->transient_name       = 'fab_google_site_kit_traffic';
    26         $this->transient_expiration = 12 * HOUR_IN_SECONDS;
     26        $this->transient_expiration = 30 * DAY_IN_SECONDS;
    2727    }
    2828
    2929    /**
    3030     * Generate insight.
    31      * NOTE: Because this insight is not based on posts, we need to return 0.
     31     * NOTE:
     32     * - Because this insight is not based WordPress internal data, then we need to return 0.
    3233     *
    3334     * @return int
    3435     */
    3536    public function generate_insight() {
    36         // Set the data to the cache.
    37         $this->set_transient( 0 );
     37        return get_transient( $this->transient_name ) ?? 0;
     38    }
    3839
    39         // Return the data.
    40         return 0;
     40    /**
     41     * Add data to the dashboard data.
     42     * - This is used to compare the data stored in the transient with the data from the Google Site Kit dashboard.
     43     * - by sending the data to the dashboard data, we can only request data that is not already in the transient.
     44     *
     45     * @param array $data The dashboard data.
     46     * @return array
     47     */
     48    public function add_data_to_dashboard_data( $data ) {
     49        // Add the insight to the dashboard data.
     50        $data['data'][ $this->insight_id ] = get_transient( $this->transient_name ) ?? array();
     51
     52        // Get query parameter permaLink.
     53        // This code is used to get the traffic data for a single post.
     54        $permaLink = isset( $_GET['permaLink'] ) ? $_GET['permaLink'] : null;
     55        if ( $permaLink ) {
     56            $url = urldecode( $permaLink );
     57            $post_id = url_to_postid( $url );
     58
     59            // If post ID is found, then add it to the data.
     60            // NOTE: We use the transient name instead of the insight ID because we use transient name as key in post meta.
     61            if( $post_id ){
     62                $data['data']['post_id'] = $post_id;
     63                $data['data']['google_site_kit_traffic_single_post'] = get_post_meta( $post_id, $this->transient_name, true ) ?? array();
     64            }
     65        }
     66
     67        return $data;
    4168    }
    4269
     
    5380        }
    5481
    55         // Add the insight to the dashboard data.
    56         $data['urls']['site_kit_dashboard']                         = admin_url( 'admin.php?page=googlesitekit-dashboard' );
     82        // Add urls.
     83        $data['urls']['site_kit_dashboard'] = admin_url( 'admin.php?page=googlesitekit-dashboard' );
     84
     85        // Add documentations.
     86        $data['documentations']['website_traffic'] = \FAB()->Helper->get_documentation( 12457 );
     87
     88        // Add labels.
    5789        $data['labels'][ $this->insight_type ][ $this->insight_id ] = array(
    5890            'title'   => __( 'Website Traffic', 'floating-awesome-button' ),
     
    6092            'missing' => __( 'We couldn\'t find any data for this insight.', 'floating-awesome-button' ),
    6193            'button'  => __( 'Analyze with Google Site Kit', 'floating-awesome-button' ),
     94            'resync'  => __( 'Sync new data', 'floating-awesome-button' ),
     95            'clear_data' => __( 'Clear data', 'floating-awesome-button' ),
     96            'add_site_kit_integration' => __( 'Add Site Kit Integration', 'floating-awesome-button' ),
     97        );
     98
     99        return $data;
     100    }
     101
     102    /**
     103     * Add data to the metabox post.
     104     *
     105     * @param array $data The dashboard data.
     106     * @return array
     107     */
     108    public function add_data_to_metabox_post( $data ) {
     109        global $post;
     110       
     111        // We use the transient name instead of the insight ID because we use transient name as key in post meta.
     112        $data['data']['google_site_kit_traffic_single_post'] = get_post_meta( $post->ID, $this->transient_name, true ) ?? array();
     113
     114        // If not premium, then return only 7 days data.
     115        if ( ! \Fab\Plugin\Helper::getInstance()->isPremiumPlan() ) {
     116            $data['data']['google_site_kit_traffic_single_post'] = array_slice( $data['data']['google_site_kit_traffic_single_post'], -7, null, true );
     117        }
     118
     119        // Add urls.
     120        $data['urls']['site_kit_dashboard'] = admin_url( 'admin.php?page=googlesitekit-dashboard&permaLink=' . get_permalink( $post->ID ) );
     121        $data['urls']['upgrade'] = \Fab\Plugin\Helper::getInstance()->getUpgradeURL();
     122
     123        // Add documentations.
     124        $data['documentations']['website_traffic'] = \FAB()->Helper->get_documentation( 12457 );
     125
     126        // Add labels.
     127        $data['labels']['google_site_kit_traffic_single_post'] = array(
     128            'title'   => __( 'Website Traffic', 'floating-awesome-button' ),
     129            'visits'  => __( 'Visits', 'floating-awesome-button' ),
     130            'missing' => __( 'We couldn\'t find any data for this insight.', 'floating-awesome-button' ),
     131            'button'  => __( 'Analyze with Google Site Kit', 'floating-awesome-button' ),
     132            'resync'  => __( 'Sync new data', 'floating-awesome-button' ),
     133            'clear_data' => __( 'Clear data', 'floating-awesome-button' ),
     134            'add_site_kit_integration' => __( 'Add Site Kit Integration', 'floating-awesome-button' ),
    62135        );
    63136
     
    80153        add_filter( 'fab_insights_dashboard', array( __CLASS__, 'jit_load_insight' ), 10, 2 );
    81154
     155        // Add data to the dashboard data.
     156        add_filter( 'fab_integration_google_site_kit_dashboard_data', array( __CLASS__, 'jit_add_data_to_dashboard_data' ), 10, 2 );
     157
    82158        // Add the insight to the dashboard data.
    83159        add_filter( 'fab_insights_dashboard_data', array( __CLASS__, 'jit_add_insight_to_dashboard_data' ), 10, 2 );
     160
     161        // Add data to the metabox post.
     162        add_filter( 'fab_backend_enqueue_metabox_post_localize', array( __CLASS__, 'jit_add_data_to_metabox_post' ), 10, 2 );
     163        add_filter( 'fab_backend_enqueue_wc_metabox_product_localize', array( __CLASS__, 'jit_add_data_to_metabox_post' ), 10, 2 );
    84164    }
    85165}
  • floating-awesome-button/trunk/src/Controller/Third_Party_Integrations/WooCommerce/Metabox/WC_Metabox_Product.php

    r3303305 r3306323  
    3636        add_meta_box(
    3737            'fab-metabox-product',
    38             __( 'Floating Awesome Button', 'floating-awesome-button' ),
     38            __( 'Insight by Floating Awesome Button (FAB)', 'floating-awesome-button' ),
    3939            array( $this, 'metabox_product_callback' ),
    4040            'product',
     
    5353        global $post;
    5454
    55         // Supported Templates.
    56         $supported_templates = array(
    57             'woocommerce-add-to-cart',
    58             'woocommerce-apply-coupon-cart-quantity',
    59             'woocommerce-apply-coupon-cart-subtotal',
    60             'woocommerce-apply-coupon-logged-in-customer',
    61             'woocommerce-apply-coupon',
    62             'woocommerce-buy-now',
    63             'woocommerce-cart-reminder',
    64             'woocommerce-featured-product',
    65         );
    66         $supported_templates = \Fab\Helper\FAB_Template::getInstance()->transform_metabox_templates(
    67             $supported_templates,
    68             array( 'woocommerce-featured-product' ),
    69             'product_id'
    70         );
    71 
    72         // Enqueue style.
    73         \FAB()->WP->wp_enqueue_style_sass( 'fab', 'assets/css/backend/style.scss' );
    74         \FAB()->WP->wp_enqueue_style( 'fontawesome', apply_filters( 'fab_fontawesome_css', 'vendor/fontawesome/css/all.min.css' ) );
    75 
    7655        // Enqueue Script & component.
    7756        \FAB()->WP->wp_enqueue_script_component( 'wc-metabox-product-component', 'assets/components/wc-metabox-product/main.js', array(), FAB_VERSION, true );
     
    8261                'fab_backend_enqueue_wc_metabox_product_localize',
    8362                array(
    84                     'templates' => apply_filters( 'fab_wc_metabox_supported_templates', $supported_templates ),
     63                    'urls'      => array(),
     64                    'data'      => array(),
    8565                    'labels'    => \Fab\Helper\FAB_Template::getInstance()->get_metabox_labels(),
     66                    'documentations' => array(),
     67                    'post_id'   => $post->ID,
     68                    'nonce'     => wp_create_nonce( 'wp_rest' ),
    8669                )
    8770            )
    8871        );
     72
     73        // Enqueue style.
     74        \FAB()->WP->wp_enqueue_style_sass( 'fab', 'assets/css/backend/style.scss' );
     75
     76        // Load vendors.
     77        \FAB()->WP->wp_enqueue_script( 'fab-echarts', 'vendor/echarts/echarts.min.js', array(), FAB_VERSION, true );
     78        \FAB()->WP->wp_enqueue_style( 'fontawesome', apply_filters( 'fab_fontawesome_css', 'vendor/fontawesome/css/all.min.css' ) );
    8979
    9080        // Render View
  • floating-awesome-button/trunk/src/Controller/Third_Party_Integrations/WooCommerce/Types/Apply_Coupon/WC_Apply_Coupon_Type.php

    r3303305 r3306323  
    184184    }
    185185
     186    /**
     187     * Add WooCommerce coupon integration.
     188     *
     189     * @return void
     190     */
     191    public function add_wc_coupon_integration() {
     192        $screen = get_current_screen();
     193
     194        // Early return if not on coupon edit page.
     195        if ( ! $screen || ( 'shop_coupon' !== $screen->post_type ) ) {
     196            return;
     197        }
     198
     199        // Enqueue script.
     200        \FAB()->WP->wp_enqueue_script_typescript( 'fab-integration-wc-coupon', 'assets/ts/integration/wc-coupon.ts', array(), FAB_VERSION, true );
     201        \FAB()->WP->wp_localize_script(
     202            'fab-integration-wc-coupon',
     203            'FAB_COUPON',
     204            array(
     205                'coupon' => array(
     206                    'id'          => get_the_ID(),
     207                    'convert_url' => wp_nonce_url(
     208                        admin_url( 'admin.php?action=fab_convert_coupon&coupon_id=' . get_the_ID() ),
     209                        'fab_convert_coupon_' . get_the_ID()
     210                    ),
     211                    'explore_url' => admin_url( 'edit.php?post_type=fab&page=floating-awesome-button-templates&search=coupon' ),
     212                ),
     213                'label'  => array(
     214                    'turn_into_fab' => __( 'Turn into FAB', 'floating-awesome-button' ),
     215                    'add_new_fab'   => __( 'Add New FAB Coupon', 'floating-awesome-button' ),
     216                ),
     217            )
     218        );
     219    }
     220
    186221    /*
    187222    |--------------------------------------------------------------------------
     
    199234        add_filter( 'fab_setting_types', array( __CLASS__, 'jit_add_fab_setting_types' ), 10, 1 );
    200235
    201         // Prevent error if woocommerce plugin is not active.
     236        /**
     237         * |--------------------------------------------------------------------------
     238         * | WOOCOMMERCE HOOKS
     239         * | - Prevent error if woocommerce plugin is not active.
     240         * |--------------------------------------------------------------------------
     241         */
    202242        if ( ! is_plugin_active( FAB_WOOCOMMERCE_PLUGIN_FILE ) ) {
    203243            return;
     
    210250        add_action( 'template_redirect', array( __CLASS__, 'jit_apply_coupon_from_url' ) );
    211251
    212         // Check if WooCommerce integration is enabled.
    213         if ( \Fab\Plugin\Helper::getInstance()->check_plugin_integration( FAB_WOOCOMMERCE_PLUGIN_FILE ) === 'enabled' ) {
    214             // Add convert coupon to coupon row action.
    215             add_filter( 'post_row_actions', array( __CLASS__, 'jit_add_fab_convert_coupon_action' ), 10, 2 );
    216             add_action( 'admin_action_fab_convert_coupon', array( __CLASS__, 'jit_convert_coupon_to_fab' ) );
    217         }
     252        /**
     253         * |--------------------------------------------------------------------------
     254         * | INTEGRATION
     255         * | - Early return if WooCommerce integration is not enabled.
     256         * |--------------------------------------------------------------------------
     257         */
     258        if ( \Fab\Plugin\Helper::getInstance()->check_plugin_integration( FAB_WOOCOMMERCE_PLUGIN_FILE ) !== 'enabled' ) {
     259            return;
     260        }
     261
     262        // Add convert coupon to coupon row action.
     263        add_filter( 'post_row_actions', array( __CLASS__, 'jit_add_fab_convert_coupon_action' ), 10, 2 );
     264        add_action( 'admin_action_fab_convert_coupon', array( __CLASS__, 'jit_convert_coupon_to_fab' ) );
     265
     266        // Add convert coupon page-title-action on index & edit coupon page.
     267        add_action( 'admin_enqueue_scripts', array( __CLASS__, 'jit_add_wc_coupon_integration' ) );
    218268    }
    219269}
  • floating-awesome-button/trunk/src/Controller/Third_Party_Integrations/WooCommerce/Types/Featured_Product/WC_Featured_Product_Type.php

    r3303305 r3306323  
    55! defined( 'WPINC ' ) || die;
    66
    7 use Fab\Interfaces\Model_Interface;
     7use Fab\Interfaces\JIT_Interface;
    88use Fab\Metabox\FABMetaboxSetting;
    99
     
    1414 * @subpackage Fab/Controller
    1515 */
    16 class WC_Featured_Product_Type extends WC_Group implements Model_Interface {
     16class WC_Featured_Product_Type extends WC_Group implements JIT_Interface {
    1717
    1818    /**
     
    276276
    277277    /**
    278      * Add fab metabox setting tabs fields.
    279      *
    280      * @param array $tabs The tabs.
    281      * @param array $fab The fab.
    282      * @return array
    283      */
    284     public function add_fab_metabox_setting_tabs_fields( $tabs, $fab ) {
    285         $product_id = \FAB()->WP->get_post_meta( $fab['ID'], FABMetaboxSetting::get_post_metas()['woocommerce_featured_product']['meta_key'], true );
    286         $product    = wc_get_product( $product_id );
    287 
    288         // Set featured product field.
    289         $tabs['setting']['fields']['featured_product'] = array(
    290             'type'        => 'select',
    291             'name'        => 'fab_setting_woocommerce_featured_product',
    292             'label'       => __( 'Featured Product', 'floating-awesome-button' ),
    293             'tooltip'     => __( 'Select a product to feature', 'floating-awesome-button' ),
    294             'placeholder' => __( 'Search for a product...', 'floating-awesome-button' ),
    295             'value'       => $product ? $product->get_id() . '-' . $product->get_name() : '',
    296             'options'     => $product ? array(
    297                 array(
    298                     'id'   => $product->get_id(),
    299                     'text' => $product->get_name(),
     278     * Add convert page-title-action on edit product page.
     279     *
     280     * @return void
     281     */
     282    public function add_wc_product_integration() {
     283        $screen = get_current_screen();
     284
     285        // Early return if not on product edit page.
     286        if ( ! $screen || ( 'product' !== $screen->post_type ) ) {
     287            return;
     288        }
     289
     290        // Enqueue script.
     291        \FAB()->WP->wp_enqueue_script_typescript( 'fab-integration-wc-product', 'assets/ts/integration/wc-product.ts', array(), FAB_VERSION, true );
     292        \FAB()->WP->wp_localize_script(
     293            'fab-integration-wc-product',
     294            'FAB_PRODUCT',
     295            array(
     296                'product' => array(
     297                    'id'          => get_the_ID(),
     298                    'convert_url' => wp_nonce_url(
     299                        admin_url( 'admin.php?action=fab_convert_product&product_id=' . get_the_ID() ),
     300                        'fab_convert_product_' . get_the_ID()
     301                    ),
    300302                ),
    301             ) : array(),
    302             'select2'     => array(
    303                 'allowClear'         => false,
    304                 'minimumInputLength' => 3,
    305                 'ajax'               => array(
    306                     'url'            => admin_url( 'admin-ajax.php' ),
    307                     'action'         => 'fab_search_products',
    308                     'dataType'       => 'json',
    309                     'delay'          => 250,
    310                     'processResults' => true,
    311                     'cache'          => true,
     303                'label'   => array(
     304                    'turn_into_fab' => __( 'Turn into FAB', 'floating-awesome-button' ),
    312305                ),
    313             ),
    314             'visible_if'  => array(
    315                 array(
    316                     'tab'      => 'setting',
    317                     'field'    => 'type',
    318                     'operator' => '==',
    319                     'value'    => $this->type,
    320                 ),
    321             ),
    322         );
    323 
    324         return $tabs;
     306            )
     307        );
    325308    }
    326309
     
    332315
    333316    /**
    334      * Execute Class.
     317     * JIT Method.
    335318     *
    336319     * @return void
    337320     */
    338     public function run() {
     321    public static function jit() {
    339322        // @backend - Add fab setting types
    340         add_filter( 'fab_setting_types', array( $this, 'add_fab_setting_types' ), 10, 1 );
    341 
    342         // Prevent error if WooCommerce plugin is not active.
     323        add_filter( 'fab_setting_types', array( __CLASS__, 'jit_add_fab_setting_types' ), 10, 1 );
     324
     325        /**
     326         * |--------------------------------------------------------------------------
     327         * | WOOCOMMERCE HOOKS
     328         * | - Prevent error if woocommerce plugin is not active.
     329         * |--------------------------------------------------------------------------
     330         */
    343331        if ( ! is_plugin_active( FAB_WOOCOMMERCE_PLUGIN_FILE ) ) {
    344332            return;
     
    346334
    347335        // @backend - Ajax search products
    348         add_action( 'wp_ajax_fab_search_products', array( $this, 'ajax_search_products' ) );
     336        add_action( 'wp_ajax_fab_search_products', array( __CLASS__, 'jit_ajax_search_products' ) );
    349337
    350338        // @backend - Add fab item data
    351         add_action( 'fab_item_data', array( $this, 'add_fab_item_data' ), 10, 1 );
     339        add_action( 'fab_item_data', array( __CLASS__, 'jit_add_fab_item_data' ), 10, 1 );
    352340
    353341        // @backend - Add fab setting input
    354         add_filter( 'fab_setting_input', array( $this, 'add_fab_setting_input' ), 10, 1 );
     342        add_filter( 'fab_setting_input', array( __CLASS__, 'jit_add_fab_setting_input' ), 10, 1 );
    355343
    356344        // @backend - Add fab setting post metas
    357         add_filter( 'fab_setting_post_metas', array( $this, 'add_fab_setting_post_metas' ), 10, 1 );
    358 
    359         // @backend - Filter template postmeta
    360         add_filter( 'fab_template_postmeta', array( $this, 'filter_template_postmeta' ), 10, 3 );
    361 
    362         // Add fab metabox setting tabs fields.
    363         add_filter( 'fab_metabox_setting_tabs', array( $this, 'add_fab_metabox_setting_tabs_fields' ), 10, 2 );
    364 
    365         // Check if WooCommerce integration is enabled
    366         if ( \Fab\Plugin\Helper::getInstance()->check_plugin_integration( FAB_WOOCOMMERCE_PLUGIN_FILE ) === 'enabled' ) {
    367             // Add convert product to product row action
    368             add_filter( 'post_row_actions', array( $this, 'add_fab_convert_product_action' ), 10, 2 );
    369             add_action( 'admin_action_fab_convert_product', array( $this, 'convert_product_to_fab' ) );
    370         }
     345        add_filter( 'fab_setting_post_metas', array( __CLASS__, 'jit_add_fab_setting_post_metas' ), 10, 1 );
     346
     347        /**
     348         * |--------------------------------------------------------------------------
     349         * | INTEGRATION
     350         * | - Early return if WooCommerce integration is not enabled.
     351         * |--------------------------------------------------------------------------
     352         */
     353        if ( \Fab\Plugin\Helper::getInstance()->check_plugin_integration( FAB_WOOCOMMERCE_PLUGIN_FILE ) !== 'enabled' ) {
     354            return;
     355        }
     356
     357        // Add convert product to product row action.
     358        add_filter( 'post_row_actions', array( __CLASS__, 'jit_add_fab_convert_product_action' ), 10, 2 );
     359        add_action( 'admin_action_fab_convert_product', array( __CLASS__, 'jit_convert_product_to_fab' ) );
     360
     361        // Add convert page-title-action on edit product page.
     362        add_action( 'admin_enqueue_scripts', array( __CLASS__, 'jit_add_wc_product_integration' ) );
    371363    }
    372364}
  • floating-awesome-button/trunk/src/Controller/Types/Anchor_Link/Anchor_Link_Type.php

    r3285502 r3306323  
    1515 */
    1616class Anchor_Link_Type extends Link_Group implements JIT_Interface {
     17
     18    /**
     19     * Post Metas.
     20     *
     21     * @var array
     22     */
     23    public $post_metas = array(
     24        'scroll_duration' => array(
     25            'meta_key' => 'fab_setting_scroll_duration',
     26            'default'  => 1000,
     27        ),
     28    );
    1729
    1830    /**
     
    5062        $link = ( $link && is_string( $link ) ) ? $link : '';
    5163        $instance->setLink( $link );
     64
     65        // Set Scroll Duration as Extra Option.
     66        $post_meta                        = $this->post_metas['scroll_duration'];
     67        $extra_options                    = $instance->getExtraOptions();
     68        $extra_options['scroll_duration'] = get_post_meta( $instance->getID(), $post_meta['meta_key'], true );
     69        $extra_options['scroll_duration'] = ( $extra_options['scroll_duration'] && is_numeric( $extra_options['scroll_duration'] ) ) ? $extra_options['scroll_duration'] : $post_meta['default'];
     70        $instance->setExtraOptions( $extra_options );
    5271    }
    5372
  • floating-awesome-button/trunk/src/Feature/Tracking.php

    r3285502 r3306323  
    5050                            '1' => 'yes',
    5151                        ),
     52                        'premium'   => false,
    5253                    ),
    5354                ),
  • floating-awesome-button/trunk/src/Helper/FAB/FABItem.php

    r3303305 r3306323  
    259259    /**
    260260     * Extra Options
     261     * - Print Target : CSS selector of element to print. Default is body.
     262     * - Scroll Duration : Window scroll duration in miliseconds.
    261263     *
    262264     * @access   protected
     
    316318     */
    317319    public function load_content() {
     320        global $wp_embed;
     321
    318322        // Load content from database.
    319323        $content = get_post_field( 'post_content', $this->ID );
    320324
    321         // Implement fab custom {...} placeholders.
    322         $content = $this->do_placeholder( $content );
     325        // Transform content.
     326        $content = $this->do_placeholder( $content ); // Implement fab custom {...} placeholders.
     327        $content = $wp_embed->autoembed( do_blocks( $content ) );
     328        $content = do_shortcode( $content );
    323329
    324330        // Assign content to properties.
     
    360366    public function construct_grab_module() {
    361367        $modules = array(
    362             FABModuleAnchorLink::class,
    363368            FABModuleAuthLogin::class,
    364369            FABModuleAuthLogout::class,
     
    469474     * Render FAB Content
    470475     *
    471      * @param string $content
     476     * @param string $content Content to render.
    472477     * @return void
    473478     */
    474479    public function render_content( $content = '' ) {
    475         global $wp_embed;
    476 
    477         // Render Elementor.
    478         if ( $this->builder !== 'elementor' ) {
    479             $content = get_post_field( 'post_content', $this->getID() ); // Get post content.
    480             $content = $wp_embed->autoembed( do_blocks( $content ) );
    481             $content = wp_kses_post( $content ); // Esc content.
    482         }
    483 
    484         // Output the content.
     480        // Get layout.
     481        $layout = isset( $this->getModal()->getLayout()['id'] ) ?
     482            $this->getModal()->getLayout()['id'] : 'stacked';
     483
     484        // Render content.
    485485        View::RenderStatic(
    486             sprintf(
    487                 'Template/modal/layout/%s',
    488                 isset( $this->getModal()->getLayout()['id'] ) ?
    489                     $this->getModal()->getLayout()['id'] : 'stacked'
    490             ),
     486            sprintf( 'Template/modal/layout/%s', $layout ),
    491487            array(
    492488                'fab_item' => $this,
    493                 'content'  => $content,
     489                'content'  => ( 'elementor' === $this->builder ) ? $content : $this->getContent(),
    494490            )
    495491        );
  • floating-awesome-button/trunk/src/Helper/FAB/FABModal.php

    r3280793 r3306323  
    2121 */
    2222class FABModal {
     23
     24    // Load traits.
     25    use GetterSetter;
    2326
    2427    /**
     
    146149        );
    147150    }
    148 
    149     /**
    150      * Magic method to handle dynamic getters and setters
    151      *
    152      * @param string $name          Method name.
    153      * @param array  $arguments     Method arguments.
    154      * @throws \WP_Error If method does not exist.
    155      * @return mixed
    156      */
    157     public function __call( $name, $arguments ) {
    158         // Extract property name from method name.
    159         $property = lcfirst( substr( $name, 3 ) );
    160 
    161         // Remove leading underscore if present.
    162         if ( strpos( $property, '_' ) === 0 ) {
    163             $property = substr( $property, 1 );
    164         }
    165 
    166         // Handle getter.
    167         if ( strpos( $name, 'get' ) === 0 && property_exists( $this, $property ) ) {
    168             return $this->$property;
    169         }
    170 
    171         // Handle setter.
    172         if ( strpos( $name, 'set' ) === 0 && property_exists( $this, $property ) ) {
    173             if ( ! isset( $arguments[0] ) ) {
    174                 return new \WP_Error(
    175                     'fab_invalid_argument',
    176                     sprintf( __( 'No value provided for setting %s', 'floating-awesome-button' ), $property )
    177                 );
    178             }
    179             $this->$property = $arguments[0];
    180             return;
    181         }
    182 
    183         return new \WP_Error( 'fab_method_not_found', esc_html( sprintf( __( 'Method %s does not exist.', 'floating-awesome-button' ), $name ) ) );
    184     }
    185151}
  • floating-awesome-button/trunk/src/Helper/FAB/FAB_Template.php

    r3303305 r3306323  
    232232    public function get_metabox_labels() {
    233233        return array(
     234            'loading'           => __( 'Loading...', 'floating-awesome-button' ),
    234235            'templates'              => __( 'Templates', 'floating-awesome-button' ),
    235236            'introduction'           => __( '<b>Floating Awesome Button (FAB)</b> helps you boost WooCommerce sales with eye-catching floating buttons that stay visible as customers browse. Create compelling calls-to-action, highlight special offers, and drive conversions with strategically placed buttons that guide customers through their shopping journey!', 'floating-awesome-button' ),
     
    242243            'explore_more_templates' => __( 'Explore More Templates', 'floating-awesome-button' ),
    243244            'read_more'              => __( 'Read More', 'floating-awesome-button' ),
     245            'missing_data'      => array(
     246                'title'   => __( 'Missing Data', 'floating-awesome-button' ),
     247                'tooltip' => __( 'Free users can only see up to 7 days of data. Upgrade Now!', 'floating-awesome-button' ),
     248            ),
     249            'months'            => array(
     250                'jan' => __( 'Jan', 'floating-awesome-button' ),
     251                'feb' => __( 'Feb', 'floating-awesome-button' ),
     252                'mar' => __( 'Mar', 'floating-awesome-button' ),
     253                'apr' => __( 'Apr', 'floating-awesome-button' ),
     254                'may' => __( 'May', 'floating-awesome-button' ),
     255                'jun' => __( 'Jun', 'floating-awesome-button' ),
     256                'jul' => __( 'Jul', 'floating-awesome-button' ),
     257                'aug' => __( 'Aug', 'floating-awesome-button' ),
     258                'sep' => __( 'Sep', 'floating-awesome-button' ),
     259                'oct' => __( 'Oct', 'floating-awesome-button' ),
     260                'nov' => __( 'Nov', 'floating-awesome-button' ),
     261                'dec' => __( 'Dec', 'floating-awesome-button' ),
     262            ),
     263            'threshold'         => array(
     264                '0_10'       => array(
     265                    'label' => __( '0 - 10', 'floating-awesome-button' ),
     266                    'color' => 'rgba(79, 70, 229, .25)',
     267                    'min'   => 0,
     268                    'max'   => 10,
     269                ),
     270                '11_100'     => array(
     271                    'label' => __( '11 - 100', 'floating-awesome-button' ),
     272                    'color' => 'rgba(79, 70, 229, .50)',
     273                    'min'   => 11,
     274                    'max'   => 100,
     275                ),
     276                '101_1000'   => array(
     277                    'label' => __( '101 - 1000', 'floating-awesome-button' ),
     278                    'color' => 'rgba(79, 70, 229, .75)',
     279                    'min'   => 101,
     280                    'max'   => 1000,
     281                ),
     282                '1001_10000' => array(
     283                    'label' => __( '1001 - 10000', 'floating-awesome-button' ),
     284                    'color' => 'rgba(79, 70, 229, 1)',
     285                    'min'   => 1001,
     286                    'max'   => 10000,
     287                ),
     288            ),
    244289        );
    245290    }
  • floating-awesome-button/trunk/src/Helper/Metabox/Setting/Tab_Cookie.php

    r3285502 r3306323  
    2929                        'info'        => __( 'This determines how long the user’s interaction with the button or modal is remembered.', 'floating-awesome-button' ),
    3030                        'placeholder' => '30',
    31                         'value'       => isset( $this->fab['trigger']['cookie']['expiration'] ) ? $this->fab['trigger']['cookie']['expiration'] : '',
     31                        'value'       => isset( $this->fab['trigger']['cookie']['expiration'] ) ? $this->fab['trigger']['cookie']['expiration'] : 30,
    3232                    ),
    3333                ),
  • floating-awesome-button/trunk/src/Helper/Metabox/Setting/Tab_Modal.php

    r3285502 r3306323  
    7979                    'label'      => __( 'Background Dismiss', 'floating-awesome-button' ),
    8080                    'value'      => isset( $this->fab['modal']['navigation']['backgroundDismiss'] ) ? $this->fab['modal']['navigation']['backgroundDismiss'] : false,
    81                     'inputClass' => 'flex pl-6',
     81                    'inputClass' => 'flex',
    8282                ),
    8383                'maximize'          => array(
     
    8686                    'label'      => __( 'Maximize', 'floating-awesome-button' ),
    8787                    'value'      => isset( $this->fab['modal']['navigation']['buttons']['maximize'] ) ? $this->fab['modal']['navigation']['buttons']['maximize'] : false,
    88                     'inputClass' => 'flex pl-6',
     88                    'inputClass' => 'flex',
    8989                ),
    9090                'draggable'         => array(
     
    9393                    'label'      => __( 'Draggable', 'floating-awesome-button' ),
    9494                    'value'      => isset( $this->fab['modal']['navigation']['draggable'] ) ? $this->fab['modal']['navigation']['draggable'] : false,
    95                     'inputClass' => 'flex pl-6',
     95                    'inputClass' => 'flex',
    9696                ),
    9797                'escapeKey'         => array(
     
    100100                    'label'      => __( 'Escape Key', 'floating-awesome-button' ),
    101101                    'value'      => isset( $this->fab['modal']['navigation']['escapeKey'] ) ? $this->fab['modal']['navigation']['escapeKey'] : false,
    102                     'inputClass' => 'flex pl-6',
     102                    'inputClass' => 'flex',
    103103                ),
    104104            ),
  • floating-awesome-button/trunk/src/Plugin/Bootstrap.php

    r3303305 r3306323  
    190190            $feature                              = new $feature();
    191191            $this->features[ $feature->getKey() ] = $feature;
     192
     193            // Execute JIT.
     194            if ( is_subclass_of( $feature, 'Fab\Interfaces\JIT_Interface' ) && method_exists( $feature, 'jit' ) ) {
     195                $feature::jit();
     196            }
     197
     198            // Run feature run method.
    192199            if ( method_exists( $feature, 'run' ) ) {
    193200                $feature->run();
     
    251258     */
    252259    public function load_modules_hooks() {
    253         $modules = $this->Helper->getDirFiles( $this->config->path['plugin_path'] . 'src/Helper/FABModule' ); // We use $this->config->path['plugin_path'] because activate hook is fired before plugins_loaded hook.
     260        $modules = $this->Helper->getDirFiles( $this->config->path['plugin_path'] . 'src/Helper/Module' ); // We use $this->config->path['plugin_path'] because activate hook is fired before plugins_loaded hook.
    254261        foreach ( $modules as &$module ) {
    255262            if ( in_array( basename( $module ), $this->ignored_files, true ) ) {
  • floating-awesome-button/trunk/src/Plugin/Feature.php

    r3274664 r3306323  
    33namespace Fab\Feature;
    44
    5 ! defined( 'WPINC ' ) or die;
     5! defined( 'WPINC ' ) || die;
    66
    77/**
    8  * Initiate plugins
     8 * Feature base class
     9 * - Feature class used to define a feature of the plugin.
     10 * - Feature class mainly used to group plugin settings together.
    911 *
    1012 * @package    Fab
    1113 * @subpackage Fab\Includes
    1214 */
    13 
    1415class Feature extends \Fab\Controller\Controller {
    1516
    16     // Load plugin traits
     17    // Load plugin traits.
    1718    use \Fab\Plugin\Helper\Singleton;
    1819
     
    7374        foreach ( $this->options as $section => &$section_data ) {
    7475            foreach ( $section_data['children'] as $key => &$value ) {
    75                 // If the option is premium and the user is not a premium user, unset the option.
    76                 if ( isset( $value['premium'] ) && true === $value['premium'] && ! \FAB()->Helper->isPremiumPlan() ) {
     76                // Unset the option if premium is set and it value not equal to current plan.
     77                if ( isset( $value['premium'] ) && \FAB()->Helper->isPremiumPlan() !== $value['premium'] ) {
    7778                    unset( $section_data['children'][ $key ] );
    7879                    continue;
  • floating-awesome-button/trunk/src/Plugin/View.php

    r3285502 r3306323  
    66
    77/**
    8  * Helper library for Triangle plugins
     8 * View class.
    99 *
    1010 * @package    Fab
    11  * @subpackage Fab\Includes
     11 * @subpackage Fab\Plugin
    1212 */
    1313class View {
     
    7070     * Helper to load content
    7171     *
    72      * @backend
    73      * @return  content
     72     * @param string $content Path to the view file.
     73     * @param array  $args    Data to pass to the view file.
     74     * @return void
    7475     */
    7576    public function loadContent( $content, $args = array() ) {
    76         extract( $this->data );
     77        extract( $this->data ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract
    7778        $path = json_decode( FAB_PATH );
    7879        require sprintf(
     
    200201    }
    201202
    202     /** Static View Render - Used For (Options, Metafields, etc) */
     203    /**
     204     * Static View Render - Used For (Options, Metafields, etc)
     205     *
     206     * @param string $path Path to the view file.
     207     * @param array  $data Data to pass to the view file.
     208     * @return void
     209     */
    203210    public static function RenderStatic( $path, $data = array() ) {
     211        // Extract data.
    204212        if ( ! empty( $data ) ) {
    205 extract( $data ); }
     213            extract( $data ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract
     214        }
     215
     216        // Render view.
    206217        require sprintf(
    207218            '%s%s.php',
  • floating-awesome-button/trunk/src/View/Tailwind/element.php

    r3285502 r3306323  
    2525<div class="hover:text-gray-500"></div>
    2626
    27 <div class="bg-gray-200 bg-blue-400 bg-green-400"></div>
     27<div class="
     28bg-gray-200 bg-gray-500 bg-gray-800
     29bg-blue-400 bg-blue-500 bg-blue-600 bg-blue-700 bg-blue-900
     30bg-green-400 bg-green-500 bg-green-700
     31bg-orange-500 bg-orange-600
     32bg-purple-600
     33bg-red-500 bg-red-600
     34bg-yellow-500
     35"></div>
    2836<div class="hover:bg-blue-500 hover:bg-red-600 hover:bg-red-800 hover:bg-green-600"></div>
    2937
  • floating-awesome-button/trunk/vendor/composer/autoload_classmap.php

    r3303305 r3306323  
    2222    'FabPremium\\Controller\\Schedule_Time_Location' => $baseDir . '/premium/Controller/Location/Schedule/Schedule_Time_Location.php',
    2323    'FabPremium\\Controller\\Schedule_Yearly_Location' => $baseDir . '/premium/Controller/Location/Schedule/Schedule_Yearly_Location.php',
     24    'FabPremium\\Controller\\Social_Sharing_Frontend' => $baseDir . '/premium/Controller/Types/Social_Sharing_Frontend.php',
    2425    'FabPremium\\Controller\\Taxonomy_Location' => $baseDir . '/premium/Controller/Location/Taxonomy_Location.php',
    2526    'FabPremium\\Controller\\Trigger' => $baseDir . '/premium/Controller/Trigger.php',
     
    4849    'Fab\\Bootstrap' => $baseDir . '/src/Plugin/Bootstrap.php',
    4950    'Fab\\Controller\\Analytics_Daily_Clicks' => $baseDir . '/src/Controller/Analytics/Analytics_Daily_Clicks.php',
     51    'Fab\\Controller\\Anchor_Link_Editor' => $baseDir . '/src/Controller/Types/Anchor_Link/Anchor_Link_Editor.php',
    5052    'Fab\\Controller\\Anchor_Link_Type' => $baseDir . '/src/Controller/Types/Anchor_Link/Anchor_Link_Type.php',
    5153    'Fab\\Controller\\Auth_Login_Type' => $baseDir . '/src/Controller/Types/Auth_Login/Auth_Login_Type.php',
     
    8587    'Fab\\Controller\\Link_Type' => $baseDir . '/src/Controller/Types/Link/Link_Type.php',
    8688    'Fab\\Controller\\Link_Type_Editor' => $baseDir . '/src/Controller/Types/Link/Link_Type_Editor.php',
    87     'Fab\\Controller\\MetaboxAction' => $baseDir . '/src/Controller/Metabox/MetaboxAction.php',
    88     'Fab\\Controller\\MetaboxSetting' => $baseDir . '/src/Controller/Metabox/MetaboxSetting.php',
    89     'Fab\\Controller\\MetaboxUpgrade' => $baseDir . '/src/Controller/Metabox/MetaboxUpgrade.php',
     89    'Fab\\Controller\\Metabox_Action' => $baseDir . '/src/Controller/Metabox/Metabox_Action.php',
    9090    'Fab\\Controller\\Metabox_Analytics' => $baseDir . '/src/Controller/Metabox/Metabox_Analytics.php',
    9191    'Fab\\Controller\\Metabox_Location' => $baseDir . '/src/Controller/Metabox/Metabox_Location.php',
    9292    'Fab\\Controller\\Metabox_Post' => $baseDir . '/src/Controller/Metabox/Metabox_Post.php',
     93    'Fab\\Controller\\Metabox_Setting' => $baseDir . '/src/Controller/Metabox/Metabox_Setting.php',
     94    'Fab\\Controller\\Metabox_Upgrade' => $baseDir . '/src/Controller/Metabox/Metabox_Upgrade.php',
    9395    'Fab\\Controller\\Modal_Popup_Group' => $baseDir . '/src/Controller/Types/Modal_Popup_Group.php',
    9496    'Fab\\Controller\\Modal_Type' => $baseDir . '/src/Controller/Types/Modal/Modal_Type.php',
     
    110112    'Fab\\Controller\\Single_Post_Type_Frontend' => $baseDir . '/src/Controller/Types/Single_Post/Single_Post_Type_Frontend.php',
    111113    'Fab\\Controller\\Single_Post_Type_Template' => $baseDir . '/src/Controller/Types/Single_Post/Single_Post_Type_Template.php',
     114    'Fab\\Controller\\Social_Sharing_Editor' => $baseDir . '/src/Controller/Types/Social_Sharing/Social_Sharing_Editor.php',
     115    'Fab\\Controller\\Social_Sharing_Frontend' => $baseDir . '/src/Controller/Types/Social_Sharing/Social_Sharing_Frontend.php',
     116    'Fab\\Controller\\Social_Sharing_Type' => $baseDir . '/src/Controller/Types/Social_Sharing/Social_Sharing_Type.php',
    112117    'Fab\\Controller\\Templates' => $baseDir . '/src/Controller/Backend/Templates.php',
    113118    'Fab\\Controller\\Toast_Group' => $baseDir . '/src/Controller/Types/Toast_Group.php',
     
    123128    'Fab\\Controller\\WC_Apply_Coupon_Type' => $baseDir . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Apply_Coupon/WC_Apply_Coupon_Type.php',
    124129    'Fab\\Controller\\WC_Cart_Reminder_Type' => $baseDir . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Cart_Reminder/WC_Cart_Reminder_Type.php',
     130    'Fab\\Controller\\WC_Featured_Product_Editor' => $baseDir . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Featured_Product/WC_Featured_Product_Editor.php',
     131    'Fab\\Controller\\WC_Featured_Product_Template' => $baseDir . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Featured_Product/WC_Featured_Product_Template.php',
    125132    'Fab\\Controller\\WC_Featured_Product_Type' => $baseDir . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Featured_Product/WC_Featured_Product_Type.php',
    126133    'Fab\\Controller\\WC_Group' => $baseDir . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/WC_Group.php',
     
    167174    'Fab\\Model\\Model' => $baseDir . '/src/Plugin/Model.php',
    168175    'Fab\\Module\\FABModule' => $baseDir . '/src/Helper/FAB/FABModule.php',
    169     'Fab\\Module\\FABModuleAnchorLink' => $baseDir . '/src/Helper/FABModule/FABModuleAnchorLink.php',
    170     'Fab\\Module\\FABModuleAuthLogin' => $baseDir . '/src/Helper/FABModule/FABModuleAuthLogin.php',
    171     'Fab\\Module\\FABModuleAuthLogout' => $baseDir . '/src/Helper/FABModule/FABModuleAuthLogout.php',
    172     'Fab\\Module\\FABModuleReadingBar' => $baseDir . '/src/Helper/FABModule/FABModuleReadingBar.php',
    173     'Fab\\Module\\FABModuleScrollToTop' => $baseDir . '/src/Helper/FABModule/FABModuleScrollToTop.php',
    174     'Fab\\Module\\FABModuleSearch' => $baseDir . '/src/Helper/FABModule/FABModuleSearch.php',
     176    'Fab\\Module\\FABModuleAuthLogin' => $baseDir . '/src/Helper/Module/FABModuleAuthLogin.php',
     177    'Fab\\Module\\FABModuleAuthLogout' => $baseDir . '/src/Helper/Module/FABModuleAuthLogout.php',
     178    'Fab\\Module\\FABModuleReadingBar' => $baseDir . '/src/Helper/Module/FABModuleReadingBar.php',
     179    'Fab\\Module\\FABModuleScrollToTop' => $baseDir . '/src/Helper/Module/FABModuleScrollToTop.php',
     180    'Fab\\Module\\FABModuleSearch' => $baseDir . '/src/Helper/Module/FABModuleSearch.php',
    175181    'Fab\\Plugin' => $baseDir . '/src/Plugin/Plugin.php',
    176182    'Fab\\Plugin\\Config' => $baseDir . '/src/Plugin/Config.php',
  • floating-awesome-button/trunk/vendor/composer/autoload_static.php

    r3303305 r3306323  
    2727        'FabPremium\\Controller\\Schedule_Time_Location' => __DIR__ . '/../..' . '/premium/Controller/Location/Schedule/Schedule_Time_Location.php',
    2828        'FabPremium\\Controller\\Schedule_Yearly_Location' => __DIR__ . '/../..' . '/premium/Controller/Location/Schedule/Schedule_Yearly_Location.php',
     29        'FabPremium\\Controller\\Social_Sharing_Frontend' => __DIR__ . '/../..' . '/premium/Controller/Types/Social_Sharing_Frontend.php',
    2930        'FabPremium\\Controller\\Taxonomy_Location' => __DIR__ . '/../..' . '/premium/Controller/Location/Taxonomy_Location.php',
    3031        'FabPremium\\Controller\\Trigger' => __DIR__ . '/../..' . '/premium/Controller/Trigger.php',
     
    5354        'Fab\\Bootstrap' => __DIR__ . '/../..' . '/src/Plugin/Bootstrap.php',
    5455        'Fab\\Controller\\Analytics_Daily_Clicks' => __DIR__ . '/../..' . '/src/Controller/Analytics/Analytics_Daily_Clicks.php',
     56        'Fab\\Controller\\Anchor_Link_Editor' => __DIR__ . '/../..' . '/src/Controller/Types/Anchor_Link/Anchor_Link_Editor.php',
    5557        'Fab\\Controller\\Anchor_Link_Type' => __DIR__ . '/../..' . '/src/Controller/Types/Anchor_Link/Anchor_Link_Type.php',
    5658        'Fab\\Controller\\Auth_Login_Type' => __DIR__ . '/../..' . '/src/Controller/Types/Auth_Login/Auth_Login_Type.php',
     
    9092        'Fab\\Controller\\Link_Type' => __DIR__ . '/../..' . '/src/Controller/Types/Link/Link_Type.php',
    9193        'Fab\\Controller\\Link_Type_Editor' => __DIR__ . '/../..' . '/src/Controller/Types/Link/Link_Type_Editor.php',
    92         'Fab\\Controller\\MetaboxAction' => __DIR__ . '/../..' . '/src/Controller/Metabox/MetaboxAction.php',
    93         'Fab\\Controller\\MetaboxSetting' => __DIR__ . '/../..' . '/src/Controller/Metabox/MetaboxSetting.php',
    94         'Fab\\Controller\\MetaboxUpgrade' => __DIR__ . '/../..' . '/src/Controller/Metabox/MetaboxUpgrade.php',
     94        'Fab\\Controller\\Metabox_Action' => __DIR__ . '/../..' . '/src/Controller/Metabox/Metabox_Action.php',
    9595        'Fab\\Controller\\Metabox_Analytics' => __DIR__ . '/../..' . '/src/Controller/Metabox/Metabox_Analytics.php',
    9696        'Fab\\Controller\\Metabox_Location' => __DIR__ . '/../..' . '/src/Controller/Metabox/Metabox_Location.php',
    9797        'Fab\\Controller\\Metabox_Post' => __DIR__ . '/../..' . '/src/Controller/Metabox/Metabox_Post.php',
     98        'Fab\\Controller\\Metabox_Setting' => __DIR__ . '/../..' . '/src/Controller/Metabox/Metabox_Setting.php',
     99        'Fab\\Controller\\Metabox_Upgrade' => __DIR__ . '/../..' . '/src/Controller/Metabox/Metabox_Upgrade.php',
    98100        'Fab\\Controller\\Modal_Popup_Group' => __DIR__ . '/../..' . '/src/Controller/Types/Modal_Popup_Group.php',
    99101        'Fab\\Controller\\Modal_Type' => __DIR__ . '/../..' . '/src/Controller/Types/Modal/Modal_Type.php',
     
    115117        'Fab\\Controller\\Single_Post_Type_Frontend' => __DIR__ . '/../..' . '/src/Controller/Types/Single_Post/Single_Post_Type_Frontend.php',
    116118        'Fab\\Controller\\Single_Post_Type_Template' => __DIR__ . '/../..' . '/src/Controller/Types/Single_Post/Single_Post_Type_Template.php',
     119        'Fab\\Controller\\Social_Sharing_Editor' => __DIR__ . '/../..' . '/src/Controller/Types/Social_Sharing/Social_Sharing_Editor.php',
     120        'Fab\\Controller\\Social_Sharing_Frontend' => __DIR__ . '/../..' . '/src/Controller/Types/Social_Sharing/Social_Sharing_Frontend.php',
     121        'Fab\\Controller\\Social_Sharing_Type' => __DIR__ . '/../..' . '/src/Controller/Types/Social_Sharing/Social_Sharing_Type.php',
    117122        'Fab\\Controller\\Templates' => __DIR__ . '/../..' . '/src/Controller/Backend/Templates.php',
    118123        'Fab\\Controller\\Toast_Group' => __DIR__ . '/../..' . '/src/Controller/Types/Toast_Group.php',
     
    128133        'Fab\\Controller\\WC_Apply_Coupon_Type' => __DIR__ . '/../..' . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Apply_Coupon/WC_Apply_Coupon_Type.php',
    129134        'Fab\\Controller\\WC_Cart_Reminder_Type' => __DIR__ . '/../..' . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Cart_Reminder/WC_Cart_Reminder_Type.php',
     135        'Fab\\Controller\\WC_Featured_Product_Editor' => __DIR__ . '/../..' . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Featured_Product/WC_Featured_Product_Editor.php',
     136        'Fab\\Controller\\WC_Featured_Product_Template' => __DIR__ . '/../..' . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Featured_Product/WC_Featured_Product_Template.php',
    130137        'Fab\\Controller\\WC_Featured_Product_Type' => __DIR__ . '/../..' . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/Featured_Product/WC_Featured_Product_Type.php',
    131138        'Fab\\Controller\\WC_Group' => __DIR__ . '/../..' . '/src/Controller/Third_Party_Integrations/WooCommerce/Types/WC_Group.php',
     
    172179        'Fab\\Model\\Model' => __DIR__ . '/../..' . '/src/Plugin/Model.php',
    173180        'Fab\\Module\\FABModule' => __DIR__ . '/../..' . '/src/Helper/FAB/FABModule.php',
    174         'Fab\\Module\\FABModuleAnchorLink' => __DIR__ . '/../..' . '/src/Helper/FABModule/FABModuleAnchorLink.php',
    175         'Fab\\Module\\FABModuleAuthLogin' => __DIR__ . '/../..' . '/src/Helper/FABModule/FABModuleAuthLogin.php',
    176         'Fab\\Module\\FABModuleAuthLogout' => __DIR__ . '/../..' . '/src/Helper/FABModule/FABModuleAuthLogout.php',
    177         'Fab\\Module\\FABModuleReadingBar' => __DIR__ . '/../..' . '/src/Helper/FABModule/FABModuleReadingBar.php',
    178         'Fab\\Module\\FABModuleScrollToTop' => __DIR__ . '/../..' . '/src/Helper/FABModule/FABModuleScrollToTop.php',
    179         'Fab\\Module\\FABModuleSearch' => __DIR__ . '/../..' . '/src/Helper/FABModule/FABModuleSearch.php',
     181        'Fab\\Module\\FABModuleAuthLogin' => __DIR__ . '/../..' . '/src/Helper/Module/FABModuleAuthLogin.php',
     182        'Fab\\Module\\FABModuleAuthLogout' => __DIR__ . '/../..' . '/src/Helper/Module/FABModuleAuthLogout.php',
     183        'Fab\\Module\\FABModuleReadingBar' => __DIR__ . '/../..' . '/src/Helper/Module/FABModuleReadingBar.php',
     184        'Fab\\Module\\FABModuleScrollToTop' => __DIR__ . '/../..' . '/src/Helper/Module/FABModuleScrollToTop.php',
     185        'Fab\\Module\\FABModuleSearch' => __DIR__ . '/../..' . '/src/Helper/Module/FABModuleSearch.php',
    180186        'Fab\\Plugin' => __DIR__ . '/../..' . '/src/Plugin/Plugin.php',
    181187        'Fab\\Plugin\\Config' => __DIR__ . '/../..' . '/src/Plugin/Config.php',
Note: See TracChangeset for help on using the changeset viewer.