diff --git a/assets/build/components/metabox-design/bundle.js b/assets/build/components/metabox-design/bundle.js index ed32d9a..3dad0eb 100644 --- a/assets/build/components/metabox-design/bundle.js +++ b/assets/build/components/metabox-design/bundle.js @@ -1 +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 a(){return Object.create(null)}function o(t){t.forEach(n)}function i(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function l(t,n,a,o){return t[1]&&o?e(a.ctx.slice(),t[1](o(n))):a.ctx}function s(t,e){t.appendChild(e)}function d(t,e,n){t.insertBefore(e,n||null)}function c(t){t.parentNode.removeChild(t)}function m(t,e){for(let n=0;nt.removeEventListener(e,n,a)}function g(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function _(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const a in e)null==e[a]?t.removeAttribute(a):"style"===a?t.style.cssText=e[a]:"__value"===a?t.value=t[a]=e[a]:n[a]&&n[a].set?t[a]=e[a]:g(t,a,e[a])}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function y(t,e){t.value=null==e?"":e}function v(t,e,n){t.classList[n?"add":"remove"](e)}let x;function h(t){x=t}const w=[],C=[],k=[],z=[],T=Promise.resolve();let M=!1;function q(t){k.push(t)}const L=new Set;let A=0;function E(){const t=x;do{for(;A{B.delete(t),a&&(n&&t.d(1),a())})),t.o(e)}}function F(t){t&&t.c()}function D(t,e,a,r){const{fragment:l,on_mount:s,on_destroy:d,after_update:c}=t.$$;l&&l.m(e,a),r||q((()=>{const e=s.map(n).filter(i);d?d.push(...e):o(e),t.$$.on_mount=[]})),c.forEach(q)}function j(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function G(t,e){-1===t.$$.dirty[0]&&(w.push(t),M||(M=!0,T.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=a.length?a[0]:n;return u.ctx&&l(u.ctx[t],u.ctx[t]=o)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](o),$&&G(e,t)),n})):[],u.update(),$=!0,o(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(c)}else u.fragment&&u.fragment.c();n.intro&&I(e.$$.fragment),D(e,n.target,n.anchor,n.customElement),E()}h(p)}class U{$destroy(){j(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.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 K(t,e,n){const a=t.slice();return a[6]=e[n],a[8]=n,a}function X(t,e,n){const a=t.slice();return a[6]=e[n],a[8]=n,a}function R(t){let e,n,a,o,i,r,l,m,_,y=t[6].name+"";function x(){return t[5](t[8])}return{c(){e=p("div"),n=p("span"),n.innerHTML='',a=$(),o=p("span"),i=u(y),l=$(),g(n,"class","flex items-center justify-center text-lg"),g(o,"class",r="ml-3 animate__animated "+(t[2][t[8]].button.active?`animate__${t[3].elements.tab}`:"")),g(e,"class","cursor-pointer flex flex-row items-center h-12 px-4 text-gray-400 bg-gray-100 hover:bg-primary-600 hover:text-white fab-option-navigation"),v(e,"fab-current-option-navigation",t[0]===t[8])},m(t,r){d(t,e,r),s(e,n),s(e,a),s(e,o),s(o,i),s(e,l),m||(_=f(e,"click",x),m=!0)},p(n,a){t=n,2&a&&y!==(y=t[6].name+"")&&b(i,y),4&a&&r!==(r="ml-3 animate__animated "+(t[2][t[8]].button.active?`animate__${t[3].elements.tab}`:""))&&g(o,"class",r),1&a&&v(e,"fab-current-option-navigation",t[0]===t[8])},d(t){t&&c(e),m=!1,_()}}}function W(t){let e,n,a,o,i,r,l,m,f,_=t[6].name+"";var y=t[6].component;return y&&(i=new y({})),{c(){e=p("div"),n=p("div"),a=u(_),o=$(),i&&F(i.$$.fragment),r=$(),g(n,"class","text-lg pb-4 mb-4 border-b border-gray-200"),g(e,"class",l="animate__animated animate__"+t[3].elements.content),g(e,"style",m=t[0]===t[8]?"":"display:none;")},m(t,l){d(t,e,l),s(e,n),s(n,a),s(e,o),i&&D(i,e,null),s(e,r),f=!0},p(t,n){if((!f||2&n)&&_!==(_=t[6].name+"")&&b(a,_),y!==(y=t[6].component)){if(i){P();const t=i;H(t.$$.fragment,1,0,(()=>{j(t,1)})),S()}y?(i=new y({}),F(i.$$.fragment),I(i.$$.fragment,1),D(i,e,r)):i=null}(!f||1&n&&m!==(m=t[0]===t[8]?"":"display:none;"))&&g(e,"style",m)},i(t){f||(i&&I(i.$$.fragment,t),f=!0)},o(t){i&&H(i.$$.fragment,t),f=!1},d(t){t&&c(e),i&&j(i)}}}function J(t){let e,n,a,o,i,r,l,u=t[1],f=[];for(let e=0;eH(b[t],1,1,(()=>{b[t]=null}));return{c(){e=p("div"),n=p("div"),a=p("div");for(let t=0;t({button:{active:!1}})));const l=t=>{n(0,o=t),n(2,r[t].button.active=!1,r),setTimeout((()=>{n(2,r[t].button.active=!0,r)}),100)};return t.$$set=t=>{"tabs"in t&&n(1,a=t.tabs),"activeTab"in t&&n(0,o=t.activeTab)},[o,a,r,i,l,t=>l(t)]}class Y extends U{constructor(t){super(),V(this,t,Q,J,r,{tabs:1,activeTab:0})}}function Z(t){let e,n;return{c(){e=p("div"),n=p("em"),g(e,"class","text-gray-400 mt-2 field-info")},m(a,o){d(a,e,o),s(e,n),n.innerHTML=t[3]},p(t,e){8&e&&(n.innerHTML=t[3])},d(t){t&&c(e)}}}function tt(t){let e,n,a,o,i,r,m,u,f;const _=t[5].default,b=function(t,e,n,a){if(t){const o=l(t,e,n,a);return t[0](o)}}(_,t,t[4],null);let y=t[3]&&Z(t);return{c(){e=p("div"),n=p("div"),a=p("label"),i=$(),r=p("div"),m=p("div"),b&&b.c(),u=$(),y&&y.c(),g(a,"for",o="field_"+t[0]),g(n,"class","font-medium text-gray-600 pt-2"),g(m,"class","flex"),g(r,"class","col-span-4"),g(e,"class",t[2])},m(o,l){d(o,e,l),s(e,n),s(n,a),a.innerHTML=t[1],s(e,i),s(e,r),s(r,m),b&&b.m(m,null),s(r,u),y&&y.m(r,null),f=!0},p(t,[n]){(!f||2&n)&&(a.innerHTML=t[1]),(!f||1&n&&o!==(o="field_"+t[0]))&&g(a,"for",o),b&&b.p&&(!f||16&n)&&function(t,e,n,a,o,i){if(o){const r=l(e,n,a,i);t.p(r,o)}}(b,_,t,t[4],f?function(t,e,n,a){if(t[2]&&a){const o=t[2](a(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let a=0;a32){const e=[],n=t.ctx.length/32;for(let t=0;t{"id"in t&&n(0,i=t.id),"text"in t&&n(1,r=t.text),"containerClass"in t&&n(2,l=t.containerClass),"info"in t&&n(3,s=t.info),"$$scope"in t&&n(4,o=t.$$scope)},[i,r,l,s,o,a]}class nt extends U{constructor(t){super(),V(this,t,et,tt,r,{id:0,text:1,containerClass:2,info:3})}}function at(t){let e,n;return{c(){e=p("div"),n=p("em"),g(e,"class","text-gray-400")},m(a,o){d(a,e,o),s(e,n),n.innerHTML=t[1]},p(t,e){2&e&&(n.innerHTML=t[1])},d(t){t&&c(e)}}}function ot(e){let n,a,o,i,r=e[1]&&at(e);return{c(){n=p("div"),a=p("span"),o=u(e[0]),i=$(),r&&r.c(),g(a,"class","text-lg"),g(n,"class","py-4 my-4 border-b border-gray-200")},m(t,e){d(t,n,e),s(n,a),s(a,o),s(n,i),r&&r.m(n,null)},p(t,[e]){1&e&&b(o,t[0]),t[1]?r?r.p(t,e):(r=at(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&c(n),r&&r.d()}}}function it(t,e,n){let{text:a=""}=e,{info:o=""}=e;return t.$$set=t=>{"text"in t&&n(0,a=t.text),"info"in t&&n(1,o=t.info)},[a,o]}class rt extends U{constructor(t){super(),V(this,t,it,ot,r,{text:0,info:1})}}function lt(t,e,n){const a=t.slice();return a[5]=e[n],a}function st(t){let e,n,a,o=t[5].text+"";return{c(){e=p("option"),n=u(o),e.__value=a=t[5].id,e.value=e.__value},m(t,a){d(t,e,a),s(e,n)},p(t,i){16&i&&o!==(o=t[5].text+"")&&b(n,o),16&i&&a!==(a=t[5].id)&&(e.__value=a,e.value=e.__value)},d(t){t&&c(e)}}}function dt(e){let n,a,o=e[4],i=[];for(let t=0;t{"id"in t&&n(0,a=t.id),"value"in t&&n(1,o=t.value),"name"in t&&n(2,i=t.name),"inputClass"in t&&n(3,r=t.inputClass),"selectOptions"in t&&n(4,l=t.selectOptions)},[a,o,i,r,l]}class mt extends U{constructor(t){super(),V(this,t,ct,dt,r,{id:0,value:1,name:2,inputClass:3,selectOptions:4})}}function pt(e){let n,a,o,i,r,l,m,_,y,v,x,h,w,C,k,z,T,M,q,L=e[4].text+"";return{c(){var t,s,d,c;n=p("div"),a=p("label"),o=p("div"),i=p("input"),m=$(),_=p("div"),y=$(),v=p("div"),h=$(),w=p("input"),k=$(),z=p("span"),T=u(L),g(i,"type","checkbox"),g(i,"id",r="switch_"+e[1]),g(i,"class","option_settings switch sr-only"),g(i,"data-option",l="field_"+e[1]),g(_,"class","fab absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition"),g(v,"class","block bg-gray-300 w-10 h-6 rounded-full"),g(o,"class","relative"),g(a,"for",x="switch_"+e[1]),g(a,"class","flex cursor-pointer"),g(w,"type","hidden"),g(w,"name",e[2]),g(w,"id",C="field_"+e[1]),w.value=e[0],g(z,"class","pl-2"),t=z,s="padding-top",null===(d="2px")?t.style.removeProperty(s):t.style.setProperty(s,d,c?"important":""),g(n,"class",e[3])},m(t,r){d(t,n,r),s(n,a),s(a,o),s(o,i),i.checked=e[0],s(o,m),s(o,_),s(o,y),s(o,v),s(n,h),s(n,w),s(n,k),s(n,z),s(z,T),M||(q=f(i,"change",e[5]),M=!0)},p(t,[e]){2&e&&r!==(r="switch_"+t[1])&&g(i,"id",r),2&e&&l!==(l="field_"+t[1])&&g(i,"data-option",l),1&e&&(i.checked=t[0]),2&e&&x!==(x="switch_"+t[1])&&g(a,"for",x),4&e&&g(w,"name",t[2]),2&e&&C!==(C="field_"+t[1])&&g(w,"id",C),1&e&&(w.value=t[0]),16&e&&L!==(L=t[4].text+"")&&b(T,L),8&e&&g(n,"class",t[3])},i:t,o:t,d(t){t&&c(n),M=!1,q()}}}function ut(t,e,n){let{id:a=""}=e,{value:o=0}=e,{name:i=""}=e,{inputClass:r="flex"}=e,{label:l={}}=e;var s;return o="string"!=typeof(s=o)||isNaN(s)||isNaN(parseFloat(s))?o:parseInt(o),o=o||"true"===o?1:0,t.$$set=t=>{"id"in t&&n(1,a=t.id),"value"in t&&n(0,o=t.value),"name"in t&&n(2,i=t.name),"inputClass"in t&&n(3,r=t.inputClass),"label"in t&&n(4,l=t.label)},[o,a,i,r,l,function(){o=this.checked,n(0,o)}]}class $t extends U{constructor(t){super(),V(this,t,ut,pt,r,{id:1,value:0,name:2,inputClass:3,label:4})}}function ft(e){let n,a;return{c(){n=p("input"),g(n,"type","text"),g(n,"id",a="field_"+e[0]),g(n,"name",e[2]),g(n,"class",e[5]),n.value=e[1],n.required=e[3],g(n,"placeholder",e[4])},m(t,e){d(t,n,e)},p(t,[e]){1&e&&a!==(a="field_"+t[0])&&g(n,"id",a),4&e&&g(n,"name",t[2]),32&e&&g(n,"class",t[5]),2&e&&n.value!==t[1]&&(n.value=t[1]),8&e&&(n.required=t[3]),16&e&&g(n,"placeholder",t[4])},i:t,o:t,d(t){t&&c(n)}}}function gt(t,e,n){let{id:a=""}=e,{value:o=""}=e,{name:i=""}=e,{required:r}=e,{placeholder:l}=e,{inputClass:s="border border-gray-200 py-2 px-3 text-grey-darkest w-full"}=e;return t.$$set=t=>{"id"in t&&n(0,a=t.id),"value"in t&&n(1,o=t.value),"name"in t&&n(2,i=t.name),"required"in t&&n(3,r=t.required),"placeholder"in t&&n(4,l=t.placeholder),"inputClass"in t&&n(5,s=t.inputClass)},[a,o,i,r,l,s]}class _t extends U{constructor(t){super(),V(this,t,gt,ft,r,{id:0,value:1,name:2,required:3,placeholder:4,inputClass:5})}}function bt(t){let e,n;return e=new _t({props:{id:"option_design_template_color",name:"fab_design_template[color]",inputClass:"colorpicker",value:t[0].template.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].template.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function yt(t){let e,n;return e=new mt({props:{id:"option_design_template_shape",name:"fab_design_template[shape]",inputClass:"field_option_design_template_shape select2",value:t[0].template.shape}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].template.shape),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function vt(t){let e,n,a,o,i,r;return e=new $t({props:{id:"design_responsive_mobile",name:"fab_design_responsive[device][mobile]",label:{text:"Mobile"},value:t[0].responsive.device.mobile}}),a=new $t({props:{id:"design_responsive_tablet",name:"fab_design_responsive[device][tablet]",label:{text:"Tablet"},inputClass:"flex pl-6",value:t[0].responsive.device.tablet}}),i=new $t({props:{id:"design_responsive_desktop",name:"fab_design_responsive[device][desktop]",label:{text:"Desktop"},inputClass:"flex pl-6",value:t[0].responsive.device.desktop}}),{c(){F(e.$$.fragment),n=$(),F(a.$$.fragment),o=$(),F(i.$$.fragment)},m(t,l){D(e,t,l),d(t,n,l),D(a,t,l),d(t,o,l),D(i,t,l),r=!0},p(t,n){const o={};1&n&&(o.value=t[0].responsive.device.mobile),e.$set(o);const r={};1&n&&(r.value=t[0].responsive.device.tablet),a.$set(r);const l={};1&n&&(l.value=t[0].responsive.device.desktop),i.$set(l)},i(t){r||(I(e.$$.fragment,t),I(a.$$.fragment,t),I(i.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),H(a.$$.fragment,t),H(i.$$.fragment,t),r=!1},d(t){j(e,t),t&&c(n),j(a,t),t&&c(o),j(i,t)}}}function xt(t){let e,n;return e=new $t({props:{id:"fab_design_standalone",name:"fab_design_standalone",label:{text:"Enable"},value:t[0].standalone}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].standalone),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function ht(t){let e,n;return e=new _t({props:{id:"option_design_icon_class",name:"fab_design_icon_class",value:t[0].icon_class}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].icon_class),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function wt(t){let e,n;return e=new _t({props:{id:"option_design_icon_color",name:"fab_design_template[icon][color]",inputClass:"colorpicker",value:t[0].template.icon.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].template.icon.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function Ct(t){let e,n;return e=new _t({props:{id:"option_design_tooltip_background_color",name:"fab_design_tooltip[color]",inputClass:"colorpicker",value:t[0].tooltip.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].tooltip.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function kt(t){let e,n;return e=new _t({props:{id:"option_design_tooltip_font_color",name:"fab_design_tooltip[font][color]",inputClass:"colorpicker",value:t[0].tooltip.font.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].tooltip.font.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function zt(t){let e,n,a,o,i,r,l,s,m,p,u,f,g,_,b,y,v,x;e=new nt({props:{id:"option_design_template_color",text:"Color",$$slots:{default:[bt]},$$scope:{ctx:t}}});let h="shape"===t[2].template.name&&function(t){let e,n;return e=new nt({props:{id:"option_design_template_shape",text:"Shape",info:'Please refer to Clippy to see the shape',$$slots:{default:[yt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};9&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}(t),w=t[1]&&function(t){let e,n;return e=new nt({props:{text:"Show In",$$slots:{default:[vt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};9&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}(t);return i=new nt({props:{text:"Standalone",info:"Seperates button from groups",$$slots:{default:[xt]},$$scope:{ctx:t}}}),l=new rt({props:{text:"Icon",info:"Icon Configuration"}}),m=new nt({props:{id:"option_design_icon_class",text:"Class",info:'Please refer to Font Awesome to see the icon class',$$slots:{default:[ht]},$$scope:{ctx:t}}}),u=new nt({props:{id:"option_design_icon_color",text:"Color",$$slots:{default:[wt]},$$scope:{ctx:t}}}),g=new rt({props:{text:"Tooltip",info:"Tooltip Configuration"}}),b=new nt({props:{id:"option_design_tooltip_background_color",text:"Background Color",$$slots:{default:[Ct]},$$scope:{ctx:t}}}),v=new nt({props:{id:"option_design_tooltip_font_color",text:"Font Color",$$slots:{default:[kt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=$(),h&&h.c(),a=$(),w&&w.c(),o=$(),F(i.$$.fragment),r=$(),F(l.$$.fragment),s=$(),F(m.$$.fragment),p=$(),F(u.$$.fragment),f=$(),F(g.$$.fragment),_=$(),F(b.$$.fragment),y=$(),F(v.$$.fragment)},m(t,c){D(e,t,c),d(t,n,c),h&&h.m(t,c),d(t,a,c),w&&w.m(t,c),d(t,o,c),D(i,t,c),d(t,r,c),D(l,t,c),d(t,s,c),D(m,t,c),d(t,p,c),D(u,t,c),d(t,f,c),D(g,t,c),d(t,_,c),D(b,t,c),d(t,y,c),D(v,t,c),x=!0},p(t,[n]){const a={};9&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a),"shape"===t[2].template.name&&h.p(t,n),t[1]&&w.p(t,n);const o={};9&n&&(o.$$scope={dirty:n,ctx:t}),i.$set(o);const r={};9&n&&(r.$$scope={dirty:n,ctx:t}),m.$set(r);const l={};9&n&&(l.$$scope={dirty:n,ctx:t}),u.$set(l);const s={};9&n&&(s.$$scope={dirty:n,ctx:t}),b.$set(s);const d={};9&n&&(d.$$scope={dirty:n,ctx:t}),v.$set(d)},i(t){x||(I(e.$$.fragment,t),I(h),I(w),I(i.$$.fragment,t),I(l.$$.fragment,t),I(m.$$.fragment,t),I(u.$$.fragment,t),I(g.$$.fragment,t),I(b.$$.fragment,t),I(v.$$.fragment,t),x=!0)},o(t){H(e.$$.fragment,t),H(h),H(w),H(i.$$.fragment,t),H(l.$$.fragment,t),H(m.$$.fragment,t),H(u.$$.fragment,t),H(g.$$.fragment,t),H(b.$$.fragment,t),H(v.$$.fragment,t),x=!1},d(t){j(e,t),t&&c(n),h&&h.d(t),t&&c(a),w&&w.d(t),t&&c(o),j(i,t),t&&c(r),j(l,t),t&&c(s),j(m,t),t&&c(p),j(u,t),t&&c(f),j(g,t),t&&c(_),j(b,t),t&&c(y),j(v,t)}}}function Tt(t,e,n){let{premium:a}=window.FAB_PLUGIN,{fab_design:o}=window.FAB_PLUGIN.options,{fab:i}=window.FAB_METABOX_DESIGN.data;return i.template.shape=i.template.shape?i.template.shape:o.template.shape,[i,a,o]}class Mt extends U{constructor(t){super(),V(this,t,Tt,zt,r,{})}}function qt(n){let a,o,i=[{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]],r={};for(let t=0;t{"id"in t&&n(1,a=t.id),"value"in t&&n(2,o=t.value),"name"in t&&n(3,i=t.name),"step"in t&&n(4,r=t.step),"required"in t&&n(5,l=t.required),"placeholder"in t&&n(6,s=t.placeholder),"inputClass"in t&&n(7,d=t.inputClass),"data"in t&&n(0,c=t.data)},[c,a,o,i,r,l,s,d]}class At extends U{constructor(t){super(),V(this,t,Lt,qt,r,{id:1,value:2,name:3,step:4,required:5,placeholder:6,inputClass:7,data:0})}}function Et(e){let n,a,i,r,l,m,_,v,x,h,w;return{c(){n=p("input"),r=$(),l=p("div"),m=u("("),_=p("span"),v=u(e[0]),x=u(")"),g(n,"type","range"),g(n,"id",a="field_"+e[1]),g(n,"name",e[2]),g(n,"min",e[3]),g(n,"max",e[4]),g(n,"step",e[5]),n.required=e[6],g(n,"placeholder",e[7]),g(n,"class",i="mt-4 "+e[8]),g(l,"class","pl-4 mt-2")},m(t,a){d(t,n,a),y(n,e[0]),d(t,r,a),d(t,l,a),s(l,m),s(l,_),s(_,v),s(l,x),h||(w=[f(n,"change",e[9]),f(n,"input",e[9])],h=!0)},p(t,[e]){2&e&&a!==(a="field_"+t[1])&&g(n,"id",a),4&e&&g(n,"name",t[2]),8&e&&g(n,"min",t[3]),16&e&&g(n,"max",t[4]),32&e&&g(n,"step",t[5]),64&e&&(n.required=t[6]),128&e&&g(n,"placeholder",t[7]),256&e&&i!==(i="mt-4 "+t[8])&&g(n,"class",i),1&e&&y(n,t[0]),1&e&&b(v,t[0])},i:t,o:t,d(t){t&&c(n),t&&c(r),t&&c(l),h=!1,o(w)}}}function Ot(t,e,n){let{id:a=""}=e,{value:o=""}=e,{name:i=""}=e,{min:r=0}=e,{max:l=1}=e,{step:s=.1}=e,{required:d}=e,{placeholder:c}=e,{inputClass:m="slider"}=e;return t.$$set=t=>{"id"in t&&n(1,a=t.id),"value"in t&&n(0,o=t.value),"name"in t&&n(2,i=t.name),"min"in t&&n(3,r=t.min),"max"in t&&n(4,l=t.max),"step"in t&&n(5,s=t.step),"required"in t&&n(6,d=t.required),"placeholder"in t&&n(7,c=t.placeholder),"inputClass"in t&&n(8,m=t.inputClass)},[o,a,i,r,l,s,d,c,m,function(){o=function(t){return""===t?null:+t}(this.value),n(0,o)}]}class Bt extends U{constructor(t){super(),V(this,t,Ot,Et,r,{id:1,value:0,name:2,min:3,max:4,step:5,required:6,placeholder:7,inputClass:8})}}function Nt(e){let n,a;return n=new mt({props:{id:"option_design_modal_theme",name:"fab_modal_theme[id]",inputClass:"select2 field_option_design_modal_theme",value:e[1].modal.theme.id}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Pt(e){let n,a;return n=new mt({props:{id:"option_design_modal_layout_id",name:"fab_modal_layout[id]",inputClass:"select2 field_option_design_modal_layout_id",value:e[1].modal.layout.id}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function St(e){let n,a;return n=new mt({props:{id:"option_design_modal_size",name:"fab_design_size_type",inputClass:"select2 field_option_design_modal_size",value:e[1].size.type}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function It(e){let n,a;return n=new _t({props:{id:"option_design_modal_size",name:"fab_design_size_custom",placeholder:"Custom Size %, px, em",value:e[1].size.custom}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Ht(e){let n,a,o,i,r,l,s,m;return n=new $t({props:{id:"fab_modal_navigation_backgroundDismiss",name:"fab_modal_navigation[backgroundDismiss]",label:{text:"backgroundDismiss"},value:e[1].modal.navigation.backgroundDismiss}}),o=new $t({props:{id:"fab_modal_navigation_buttons_maximize",name:"fab_modal_navigation[buttons][maximize]",label:{text:"Maximize"},inputClass:"flex pl-6",value:e[1].modal.navigation.buttons.maximize}}),r=new $t({props:{id:"fab_modal_navigation_draggable",name:"fab_modal_navigation[draggable]",label:{text:"Draggable"},inputClass:"flex pl-6",value:e[1].modal.navigation.draggable}}),s=new $t({props:{id:"fab_modal_navigation_escapeKey",name:"fab_modal_navigation[escapeKey]",label:{text:"escapeKey"},inputClass:"flex pl-6",value:e[1].modal.navigation.escapeKey}}),{c(){F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),F(r.$$.fragment),l=$(),F(s.$$.fragment)},m(t,e){D(n,t,e),d(t,a,e),D(o,t,e),d(t,i,e),D(r,t,e),d(t,l,e),D(s,t,e),m=!0},p:t,i(t){m||(I(n.$$.fragment,t),I(o.$$.fragment,t),I(r.$$.fragment,t),I(s.$$.fragment,t),m=!0)},o(t){H(n.$$.fragment,t),H(o.$$.fragment,t),H(r.$$.fragment,t),H(s.$$.fragment,t),m=!1},d(t){j(n,t),t&&c(a),j(o,t),t&&c(i),j(r,t),t&&c(l),j(s,t)}}}function Ft(e){let n,a;return n=new _t({props:{id:"modal_layout_background_color",name:"fab_modal_layout[background][color]",inputClass:"colorpicker",value:e[1].modal.layout.background.color}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Dt(e){let n,a;return n=new mt({props:{id:"option_animation_modal_in",name:"fab_design_animation[modal][in]",inputClass:"field_option_animation_element select2",value:e[1].animation.modal.in}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function jt(e){let n,a;return n=new mt({props:{id:"option_animation_modal_out",name:"fab_design_animation[modal][out]",inputClass:"field_option_animation_element select2",value:e[1].animation.modal.out}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Gt(e){let n,a;return n=new _t({props:{id:"modal_layout_overlay_color",name:"fab_modal_layout[overlay][color]",inputClass:"colorpicker",value:e[1].modal.layout.overlay.color}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Vt(e){let n,a;return n=new Bt({props:{id:"fab_modal_layout_overlay_opacity",name:"fab_modal_layout[overlay][opacity]",min:"0",max:"1",step:"0.1",value:e[1].modal.layout.overlay.opacity}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Ut(e){let n,a,o,i,r,l,s,m,u,f,_,b,y;return n=new At({props:{id:"fab_modal_layout_content_padding_top",name:"fab_modal_layout[content][padding][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.top,data:{layout:"padding"}}}),o=new At({props:{id:"fab_modal_layout_content_padding_right",name:"fab_modal_layout[content][padding][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.right,data:{layout:"padding"}}}),r=new At({props:{id:"fab_modal_layout_content_padding_bottom",name:"fab_modal_layout[content][padding][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.bottom,data:{layout:"padding"}}}),s=new At({props:{id:"fab_modal_layout_content_padding_left",name:"fab_modal_layout[content][padding][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.left,data:{layout:"padding"}}}),f=new mt({props:{id:"fab_modal_layout_content_padding_sizing",name:"fab_modal_layout[content][padding][sizing]",inputClass:"select2 fab_modal_layout_spacing_sizing",value:e[1].modal.layout.content.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(){F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),F(r.$$.fragment),l=$(),F(s.$$.fragment),m=$(),u=p("div"),F(f.$$.fragment),_=$(),b=p("div"),b.innerHTML='',g(u,"class","ml-4 w-20"),g(b,"class","pt-2.5 px-6 ml-4 bg-primary-600 text-white rounded-md cursor-pointer fab-linked-option hover:shadow-md"),g(b,"data-layout","padding")},m(t,e){D(n,t,e),d(t,a,e),D(o,t,e),d(t,i,e),D(r,t,e),d(t,l,e),D(s,t,e),d(t,m,e),d(t,u,e),D(f,u,null),d(t,_,e),d(t,b,e),y=!0},p:t,i(t){y||(I(n.$$.fragment,t),I(o.$$.fragment,t),I(r.$$.fragment,t),I(s.$$.fragment,t),I(f.$$.fragment,t),y=!0)},o(t){H(n.$$.fragment,t),H(o.$$.fragment,t),H(r.$$.fragment,t),H(s.$$.fragment,t),H(f.$$.fragment,t),y=!1},d(t){j(n,t),t&&c(a),j(o,t),t&&c(i),j(r,t),t&&c(l),j(s,t),t&&c(m),t&&c(u),j(f),t&&c(_),t&&c(b)}}}function Kt(e){let n,a,o,i,r,l,s,m,u,f,_,b,y;return n=new At({props:{id:"fab_modal_layout_content_margin_top",name:"fab_modal_layout[content][margin][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.top,data:{layout:"margin"}}}),o=new At({props:{id:"fab_modal_layout_content_margin_right",name:"fab_modal_layout[content][margin][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.right,data:{layout:"margin"}}}),r=new At({props:{id:"fab_modal_layout_content_margin_bottom",name:"fab_modal_layout[content][margin][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.bottom,data:{layout:"margin"}}}),s=new At({props:{id:"fab_modal_layout_content_margin_left",name:"fab_modal_layout[content][margin][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.left,data:{layout:"margin"}}}),f=new mt({props:{id:"fab_modal_layout_content_margin_sizing",name:"fab_modal_layout[content][margin][sizing]",inputClass:"select2 fab_modal_layout_spacing_sizing",value:e[1].modal.layout.content.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(){F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),F(r.$$.fragment),l=$(),F(s.$$.fragment),m=$(),u=p("div"),F(f.$$.fragment),_=$(),b=p("div"),b.innerHTML='',g(u,"class","ml-4 w-20"),g(b,"class","pt-2.5 px-6 ml-4 bg-primary-600 text-white rounded-md cursor-pointer fab-linked-option hover:shadow-md"),g(b,"data-layout","margin")},m(t,e){D(n,t,e),d(t,a,e),D(o,t,e),d(t,i,e),D(r,t,e),d(t,l,e),D(s,t,e),d(t,m,e),d(t,u,e),D(f,u,null),d(t,_,e),d(t,b,e),y=!0},p:t,i(t){y||(I(n.$$.fragment,t),I(o.$$.fragment,t),I(r.$$.fragment,t),I(s.$$.fragment,t),I(f.$$.fragment,t),y=!0)},o(t){H(n.$$.fragment,t),H(o.$$.fragment,t),H(r.$$.fragment,t),H(s.$$.fragment,t),H(f.$$.fragment,t),y=!1},d(t){j(n,t),t&&c(a),j(o,t),t&&c(i),j(r,t),t&&c(l),j(s,t),t&&c(m),t&&c(u),j(f),t&&c(_),t&&c(b)}}}function Xt(t){let e,n,a,o,i,r,l,s,m,u,f,_,b,y,v,x,h,w,C,k,z,T,M,q,L,A=t[0]&&function(t){let e,n;return e=new nt({props:{id:"option_design_modal_theme",text:"Theme",$$slots:{default:[Nt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};8&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}(t);n=new nt({props:{id:"option_design_modal_layout_id",text:"Layout",$$slots:{default:[Pt]},$$scope:{ctx:t}}}),o=new nt({props:{id:"option_design_modal_size",text:"Size",$$slots:{default:[St]},$$scope:{ctx:t}}}),l=new nt({props:{id:"option_design_modal_size",text:"Custom Size",$$slots:{default:[It]},$$scope:{ctx:t}}}),m=new nt({props:{text:"Navigation",$$slots:{default:[Ht]},$$scope:{ctx:t}}}),f=new nt({props:{id:"modal_layout_background_color",text:"Background Color",$$slots:{default:[Ft]},$$scope:{ctx:t}}});let E=t[0]&&function(t){let e,n,a,o,i,r;return e=new rt({props:{text:"Animation",info:'To see animation reference you can go to Animate.css'}}),a=new nt({props:{id:"option_animation_modal_in",text:"In",$$slots:{default:[Dt]},$$scope:{ctx:t}}}),i=new nt({props:{id:"option_animation_modal_out",text:"In",$$slots:{default:[jt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=$(),F(a.$$.fragment),o=$(),F(i.$$.fragment)},m(t,l){D(e,t,l),d(t,n,l),D(a,t,l),d(t,o,l),D(i,t,l),r=!0},p(t,e){const n={};8&e&&(n.$$scope={dirty:e,ctx:t}),a.$set(n);const o={};8&e&&(o.$$scope={dirty:e,ctx:t}),i.$set(o)},i(t){r||(I(e.$$.fragment,t),I(a.$$.fragment,t),I(i.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),H(a.$$.fragment,t),H(i.$$.fragment,t),r=!1},d(t){j(e,t),t&&c(n),j(a,t),t&&c(o),j(i,t)}}}(t);return y=new rt({props:{text:"Overlay",info:"Modal Overlay"}}),x=new nt({props:{id:"modal_layout_overlay_color",text:"Background Color",$$slots:{default:[Gt]},$$scope:{ctx:t}}}),w=new nt({props:{id:"fab_modal_layout_overlay_opacity",text:"Opacity",$$slots:{default:[Vt]},$$scope:{ctx:t}}}),k=new rt({props:{text:"Spacing",info:"Content Spacing"}}),T=new nt({props:{text:"Padding",$$slots:{default:[Ut]},$$scope:{ctx:t}}}),q=new nt({props:{text:"Margin",$$slots:{default:[Kt]},$$scope:{ctx:t}}}),{c(){A&&A.c(),e=$(),F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),r=p("div"),F(l.$$.fragment),s=$(),F(m.$$.fragment),u=$(),F(f.$$.fragment),_=$(),E&&E.c(),b=$(),F(y.$$.fragment),v=$(),F(x.$$.fragment),h=$(),F(w.$$.fragment),C=$(),F(k.$$.fragment),z=$(),F(T.$$.fragment),M=$(),F(q.$$.fragment),g(r,"id","setting_design_custom_size")},m(t,c){A&&A.m(t,c),d(t,e,c),D(n,t,c),d(t,a,c),D(o,t,c),d(t,i,c),d(t,r,c),D(l,r,null),d(t,s,c),D(m,t,c),d(t,u,c),D(f,t,c),d(t,_,c),E&&E.m(t,c),d(t,b,c),D(y,t,c),d(t,v,c),D(x,t,c),d(t,h,c),D(w,t,c),d(t,C,c),D(k,t,c),d(t,z,c),D(T,t,c),d(t,M,c),D(q,t,c),L=!0},p(t,[e]){t[0]&&A.p(t,e);const a={};8&e&&(a.$$scope={dirty:e,ctx:t}),n.$set(a);const i={};8&e&&(i.$$scope={dirty:e,ctx:t}),o.$set(i);const r={};8&e&&(r.$$scope={dirty:e,ctx:t}),l.$set(r);const s={};8&e&&(s.$$scope={dirty:e,ctx:t}),m.$set(s);const d={};8&e&&(d.$$scope={dirty:e,ctx:t}),f.$set(d),t[0]&&E.p(t,e);const c={};8&e&&(c.$$scope={dirty:e,ctx:t}),x.$set(c);const p={};8&e&&(p.$$scope={dirty:e,ctx:t}),w.$set(p);const u={};8&e&&(u.$$scope={dirty:e,ctx:t}),T.$set(u);const $={};8&e&&($.$$scope={dirty:e,ctx:t}),q.$set($)},i(t){L||(I(A),I(n.$$.fragment,t),I(o.$$.fragment,t),I(l.$$.fragment,t),I(m.$$.fragment,t),I(f.$$.fragment,t),I(E),I(y.$$.fragment,t),I(x.$$.fragment,t),I(w.$$.fragment,t),I(k.$$.fragment,t),I(T.$$.fragment,t),I(q.$$.fragment,t),L=!0)},o(t){H(A),H(n.$$.fragment,t),H(o.$$.fragment,t),H(l.$$.fragment,t),H(m.$$.fragment,t),H(f.$$.fragment,t),H(E),H(y.$$.fragment,t),H(x.$$.fragment,t),H(w.$$.fragment,t),H(k.$$.fragment,t),H(T.$$.fragment,t),H(q.$$.fragment,t),L=!1},d(t){A&&A.d(t),t&&c(e),j(n,t),t&&c(a),j(o,t),t&&c(i),t&&c(r),j(l),t&&c(s),j(m,t),t&&c(u),j(f,t),t&&c(_),E&&E.d(t),t&&c(b),j(y,t),t&&c(v),j(x,t),t&&c(h),j(w,t),t&&c(C),j(k,t),t&&c(z),j(T,t),t&&c(M),j(q,t)}}}function Rt(t){let{premium:e}=window.FAB_PLUGIN;window.FAB_PLUGIN.options;let{fab:n}=window.FAB_METABOX_DESIGN.data;return[e,n]}class Wt extends U{constructor(t){super(),V(this,t,Rt,Xt,r,{})}}function Jt(e){let n,a,o;return a=new Y({props:{tabs:e[0]}}),{c(){n=p("div"),F(a.$$.fragment),g(n,"class","fab-container metabox-design")},m(t,e){d(t,n,e),D(a,n,null),o=!0},p:t,i(t){o||(I(a.$$.fragment,t),o=!0)},o(t){H(a.$$.fragment,t),o=!1},d(t){t&&c(n),j(a)}}}function Qt(t){return[[{key:"button",name:"Button",component:Mt},{key:"modal",name:"Modal",component:Wt}]]}return app=new class extends U{constructor(t){super(),V(this,t,Qt,Jt,r,{})}}({target:document.querySelector("#fab-metabox-design-content")})}(); +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 a(){return Object.create(null)}function o(t){t.forEach(n)}function i(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function l(t,n,a,o){return t[1]&&o?e(a.ctx.slice(),t[1](o(n))):a.ctx}function s(t,e){t.appendChild(e)}function d(t,e,n){t.insertBefore(e,n||null)}function c(t){t.parentNode.removeChild(t)}function m(t,e){for(let n=0;nt.removeEventListener(e,n,a)}function g(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function _(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const a in e)null==e[a]?t.removeAttribute(a):"style"===a?t.style.cssText=e[a]:"__value"===a?t.value=t[a]=e[a]:n[a]&&n[a].set?t[a]=e[a]:g(t,a,e[a])}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function y(t,e){t.value=null==e?"":e}function v(t,e,n){t.classList[n?"add":"remove"](e)}let x;function h(t){x=t}const w=[],C=[],k=[],z=[],T=Promise.resolve();let M=!1;function q(t){k.push(t)}const L=new Set;let A=0;function E(){const t=x;do{for(;A{B.delete(t),a&&(n&&t.d(1),a())})),t.o(e)}}function F(t){t&&t.c()}function D(t,e,a,r){const{fragment:l,on_mount:s,on_destroy:d,after_update:c}=t.$$;l&&l.m(e,a),r||q((()=>{const e=s.map(n).filter(i);d?d.push(...e):o(e),t.$$.on_mount=[]})),c.forEach(q)}function j(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function G(t,e){-1===t.$$.dirty[0]&&(w.push(t),M||(M=!0,T.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=a.length?a[0]:n;return u.ctx&&l(u.ctx[t],u.ctx[t]=o)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](o),$&&G(e,t)),n})):[],u.update(),$=!0,o(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(c)}else u.fragment&&u.fragment.c();n.intro&&I(e.$$.fragment),D(e,n.target,n.anchor,n.customElement),E()}h(p)}class U{$destroy(){j(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.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 K(t,e,n){const a=t.slice();return a[6]=e[n],a[8]=n,a}function X(t,e,n){const a=t.slice();return a[6]=e[n],a[8]=n,a}function R(t){let e,n,a,o,i,r,l,m,_,y=t[6].name+"";function x(){return t[5](t[8])}return{c(){e=p("div"),n=p("span"),n.innerHTML='',a=$(),o=p("span"),i=u(y),l=$(),g(n,"class","flex items-center justify-center text-lg"),g(o,"class",r="ml-3 animate__animated "+(t[2][t[8]].button.active?`animate__${t[3].elements.tab}`:"")),g(e,"class","cursor-pointer flex flex-row items-center h-12 px-4 text-gray-400 bg-gray-100 hover:bg-primary-600 hover:text-white fab-option-navigation"),v(e,"fab-current-option-navigation",t[0]===t[8])},m(t,r){d(t,e,r),s(e,n),s(e,a),s(e,o),s(o,i),s(e,l),m||(_=f(e,"click",x),m=!0)},p(n,a){t=n,2&a&&y!==(y=t[6].name+"")&&b(i,y),4&a&&r!==(r="ml-3 animate__animated "+(t[2][t[8]].button.active?`animate__${t[3].elements.tab}`:""))&&g(o,"class",r),1&a&&v(e,"fab-current-option-navigation",t[0]===t[8])},d(t){t&&c(e),m=!1,_()}}}function W(t){let e,n,a,o,i,r,l,m,f,_=t[6].name+"";var y=t[6].component;return y&&(i=new y({})),{c(){e=p("div"),n=p("div"),a=u(_),o=$(),i&&F(i.$$.fragment),r=$(),g(n,"class","text-lg pb-4 mb-4 border-b border-gray-200"),g(e,"class",l="animate__animated animate__"+t[3].elements.content),g(e,"style",m=t[0]===t[8]?"":"display:none;")},m(t,l){d(t,e,l),s(e,n),s(n,a),s(e,o),i&&D(i,e,null),s(e,r),f=!0},p(t,n){if((!f||2&n)&&_!==(_=t[6].name+"")&&b(a,_),y!==(y=t[6].component)){if(i){P();const t=i;H(t.$$.fragment,1,0,(()=>{j(t,1)})),S()}y?(i=new y({}),F(i.$$.fragment),I(i.$$.fragment,1),D(i,e,r)):i=null}(!f||1&n&&m!==(m=t[0]===t[8]?"":"display:none;"))&&g(e,"style",m)},i(t){f||(i&&I(i.$$.fragment,t),f=!0)},o(t){i&&H(i.$$.fragment,t),f=!1},d(t){t&&c(e),i&&j(i)}}}function J(t){let e,n,a,o,i,r,l,u=t[1],f=[];for(let e=0;eH(b[t],1,1,(()=>{b[t]=null}));return{c(){e=p("div"),n=p("div"),a=p("div");for(let t=0;t({button:{active:!1}})));const l=t=>{n(0,o=t),n(2,r[t].button.active=!1,r),setTimeout((()=>{n(2,r[t].button.active=!0,r)}),100)};return t.$$set=t=>{"tabs"in t&&n(1,a=t.tabs),"activeTab"in t&&n(0,o=t.activeTab)},[o,a,r,i,l,t=>l(t)]}class Y extends U{constructor(t){super(),V(this,t,Q,J,r,{tabs:1,activeTab:0})}}function Z(t){let e,n;return{c(){e=p("div"),n=p("em"),g(e,"class","text-gray-400 mt-2 field-info")},m(a,o){d(a,e,o),s(e,n),n.innerHTML=t[3]},p(t,e){8&e&&(n.innerHTML=t[3])},d(t){t&&c(e)}}}function tt(t){let e,n,a,o,i,r,m,u,f;const _=t[5].default,b=function(t,e,n,a){if(t){const o=l(t,e,n,a);return t[0](o)}}(_,t,t[4],null);let y=t[3]&&Z(t);return{c(){e=p("div"),n=p("div"),a=p("label"),i=$(),r=p("div"),m=p("div"),b&&b.c(),u=$(),y&&y.c(),g(a,"for",o="field_"+t[0]),g(n,"class","font-medium text-gray-600 pt-2"),g(m,"class","flex"),g(r,"class","col-span-4"),g(e,"class",t[2])},m(o,l){d(o,e,l),s(e,n),s(n,a),a.innerHTML=t[1],s(e,i),s(e,r),s(r,m),b&&b.m(m,null),s(r,u),y&&y.m(r,null),f=!0},p(t,[n]){(!f||2&n)&&(a.innerHTML=t[1]),(!f||1&n&&o!==(o="field_"+t[0]))&&g(a,"for",o),b&&b.p&&(!f||16&n)&&function(t,e,n,a,o,i){if(o){const r=l(e,n,a,i);t.p(r,o)}}(b,_,t,t[4],f?function(t,e,n,a){if(t[2]&&a){const o=t[2](a(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let a=0;a32){const e=[],n=t.ctx.length/32;for(let t=0;t{"id"in t&&n(0,i=t.id),"text"in t&&n(1,r=t.text),"containerClass"in t&&n(2,l=t.containerClass),"info"in t&&n(3,s=t.info),"$$scope"in t&&n(4,o=t.$$scope)},[i,r,l,s,o,a]}class nt extends U{constructor(t){super(),V(this,t,et,tt,r,{id:0,text:1,containerClass:2,info:3})}}function at(t){let e,n;return{c(){e=p("div"),n=p("em"),g(e,"class","text-gray-400")},m(a,o){d(a,e,o),s(e,n),n.innerHTML=t[1]},p(t,e){2&e&&(n.innerHTML=t[1])},d(t){t&&c(e)}}}function ot(e){let n,a,o,i,r=e[1]&&at(e);return{c(){n=p("div"),a=p("span"),o=u(e[0]),i=$(),r&&r.c(),g(a,"class","text-lg"),g(n,"class","py-4 my-4 border-b border-gray-200")},m(t,e){d(t,n,e),s(n,a),s(a,o),s(n,i),r&&r.m(n,null)},p(t,[e]){1&e&&b(o,t[0]),t[1]?r?r.p(t,e):(r=at(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&c(n),r&&r.d()}}}function it(t,e,n){let{text:a=""}=e,{info:o=""}=e;return t.$$set=t=>{"text"in t&&n(0,a=t.text),"info"in t&&n(1,o=t.info)},[a,o]}class rt extends U{constructor(t){super(),V(this,t,it,ot,r,{text:0,info:1})}}function lt(t,e,n){const a=t.slice();return a[5]=e[n],a}function st(t){let e,n,a,o=t[5].text+"";return{c(){e=p("option"),n=u(o),e.__value=a=t[5].id,e.value=e.__value},m(t,a){d(t,e,a),s(e,n)},p(t,i){16&i&&o!==(o=t[5].text+"")&&b(n,o),16&i&&a!==(a=t[5].id)&&(e.__value=a,e.value=e.__value)},d(t){t&&c(e)}}}function dt(e){let n,a,o=e[4],i=[];for(let t=0;t{"id"in t&&n(0,a=t.id),"value"in t&&n(1,o=t.value),"name"in t&&n(2,i=t.name),"inputClass"in t&&n(3,r=t.inputClass),"selectOptions"in t&&n(4,l=t.selectOptions)},[a,o,i,r,l]}class mt extends U{constructor(t){super(),V(this,t,ct,dt,r,{id:0,value:1,name:2,inputClass:3,selectOptions:4})}}function pt(e){let n,a,o,i,r,l,m,_,y,v,x,h,w,C,k,z,T,M,q,L=e[4].text+"";return{c(){var t,s,d,c;n=p("div"),a=p("label"),o=p("div"),i=p("input"),m=$(),_=p("div"),y=$(),v=p("div"),h=$(),w=p("input"),k=$(),z=p("span"),T=u(L),g(i,"type","checkbox"),g(i,"id",r="switch_"+e[1]),g(i,"class","option_settings switch sr-only"),g(i,"data-option",l="field_"+e[1]),g(_,"class","fab absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition"),g(v,"class","block bg-gray-300 w-10 h-6 rounded-full"),g(o,"class","relative"),g(a,"for",x="switch_"+e[1]),g(a,"class","flex cursor-pointer"),g(w,"type","hidden"),g(w,"name",e[2]),g(w,"id",C="field_"+e[1]),w.value=e[0],g(z,"class","pl-2"),t=z,s="padding-top",null===(d="2px")?t.style.removeProperty(s):t.style.setProperty(s,d,c?"important":""),g(n,"class",e[3])},m(t,r){d(t,n,r),s(n,a),s(a,o),s(o,i),i.checked=e[0],s(o,m),s(o,_),s(o,y),s(o,v),s(n,h),s(n,w),s(n,k),s(n,z),s(z,T),M||(q=f(i,"change",e[5]),M=!0)},p(t,[e]){2&e&&r!==(r="switch_"+t[1])&&g(i,"id",r),2&e&&l!==(l="field_"+t[1])&&g(i,"data-option",l),1&e&&(i.checked=t[0]),2&e&&x!==(x="switch_"+t[1])&&g(a,"for",x),4&e&&g(w,"name",t[2]),2&e&&C!==(C="field_"+t[1])&&g(w,"id",C),1&e&&(w.value=t[0]),16&e&&L!==(L=t[4].text+"")&&b(T,L),8&e&&g(n,"class",t[3])},i:t,o:t,d(t){t&&c(n),M=!1,q()}}}function ut(t,e,n){let{id:a=""}=e,{value:o=0}=e,{name:i=""}=e,{inputClass:r="flex"}=e,{label:l={}}=e;var s;return o="string"!=typeof(s=o)||isNaN(s)||isNaN(parseFloat(s))?o:parseInt(o),o=o||"true"===o?1:0,t.$$set=t=>{"id"in t&&n(1,a=t.id),"value"in t&&n(0,o=t.value),"name"in t&&n(2,i=t.name),"inputClass"in t&&n(3,r=t.inputClass),"label"in t&&n(4,l=t.label)},[o,a,i,r,l,function(){o=this.checked,n(0,o)}]}class $t extends U{constructor(t){super(),V(this,t,ut,pt,r,{id:1,value:0,name:2,inputClass:3,label:4})}}function ft(e){let n,a;return{c(){n=p("input"),g(n,"type","text"),g(n,"id",a="field_"+e[0]),g(n,"name",e[2]),g(n,"class",e[5]),n.value=e[1],n.required=e[3],g(n,"placeholder",e[4])},m(t,e){d(t,n,e)},p(t,[e]){1&e&&a!==(a="field_"+t[0])&&g(n,"id",a),4&e&&g(n,"name",t[2]),32&e&&g(n,"class",t[5]),2&e&&n.value!==t[1]&&(n.value=t[1]),8&e&&(n.required=t[3]),16&e&&g(n,"placeholder",t[4])},i:t,o:t,d(t){t&&c(n)}}}function gt(t,e,n){let{id:a=""}=e,{value:o=""}=e,{name:i=""}=e,{required:r}=e,{placeholder:l}=e,{inputClass:s="border border-gray-200 py-2 px-3 text-grey-darkest w-full"}=e;return t.$$set=t=>{"id"in t&&n(0,a=t.id),"value"in t&&n(1,o=t.value),"name"in t&&n(2,i=t.name),"required"in t&&n(3,r=t.required),"placeholder"in t&&n(4,l=t.placeholder),"inputClass"in t&&n(5,s=t.inputClass)},[a,o,i,r,l,s]}class _t extends U{constructor(t){super(),V(this,t,gt,ft,r,{id:0,value:1,name:2,required:3,placeholder:4,inputClass:5})}}function bt(t){let e,n;return e=new _t({props:{id:"option_design_template_color",name:"fab_design_template[color]",inputClass:"colorpicker",value:t[0].template.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].template.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function yt(t){let e,n;return e=new mt({props:{id:"option_design_template_shape",name:"fab_design_template[shape]",inputClass:"field_option_design_template_shape select2",value:t[0].template.shape}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].template.shape),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function vt(t){let e,n,a,o,i,r;return e=new $t({props:{id:"design_responsive_mobile",name:"fab_design_responsive[device][mobile]",label:{text:"Mobile"},value:t[0].responsive.device.mobile}}),a=new $t({props:{id:"design_responsive_tablet",name:"fab_design_responsive[device][tablet]",label:{text:"Tablet"},inputClass:"flex pl-6",value:t[0].responsive.device.tablet}}),i=new $t({props:{id:"design_responsive_desktop",name:"fab_design_responsive[device][desktop]",label:{text:"Desktop"},inputClass:"flex pl-6",value:t[0].responsive.device.desktop}}),{c(){F(e.$$.fragment),n=$(),F(a.$$.fragment),o=$(),F(i.$$.fragment)},m(t,l){D(e,t,l),d(t,n,l),D(a,t,l),d(t,o,l),D(i,t,l),r=!0},p(t,n){const o={};1&n&&(o.value=t[0].responsive.device.mobile),e.$set(o);const r={};1&n&&(r.value=t[0].responsive.device.tablet),a.$set(r);const l={};1&n&&(l.value=t[0].responsive.device.desktop),i.$set(l)},i(t){r||(I(e.$$.fragment,t),I(a.$$.fragment,t),I(i.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),H(a.$$.fragment,t),H(i.$$.fragment,t),r=!1},d(t){j(e,t),t&&c(n),j(a,t),t&&c(o),j(i,t)}}}function xt(t){let e,n;return e=new $t({props:{id:"fab_design_standalone",name:"fab_design_standalone",label:{text:"Enable"},value:t[0].standalone}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].standalone),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function ht(t){let e,n;return e=new _t({props:{id:"option_design_icon_class",name:"fab_design_icon_class",value:t[0].icon_class}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].icon_class),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function wt(t){let e,n;return e=new _t({props:{id:"option_design_icon_color",name:"fab_design_template[icon][color]",inputClass:"colorpicker",value:t[0].template.icon.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].template.icon.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function Ct(t){let e,n;return e=new _t({props:{id:"option_design_tooltip_background_color",name:"fab_design_tooltip[color]",inputClass:"colorpicker",value:t[0].tooltip.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].tooltip.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function kt(t){let e,n;return e=new _t({props:{id:"option_design_tooltip_font_color",name:"fab_design_tooltip[font][color]",inputClass:"colorpicker",value:t[0].tooltip.font.color}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};1&n&&(a.value=t[0].tooltip.font.color),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}function zt(t){let e,n,a,o,i,r,l,s,m,p,u,f,g,_,b,y,v,x;e=new nt({props:{id:"option_design_template_color",text:"Color",$$slots:{default:[bt]},$$scope:{ctx:t}}});let h="shape"===t[2].template.name&&function(t){let e,n;return e=new nt({props:{id:"option_design_template_shape",text:"Shape",info:'Please refer to Clippy to see the shape',$$slots:{default:[yt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};9&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}(t),w=t[1]&&function(t){let e,n;return e=new nt({props:{text:"Show In",$$slots:{default:[vt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};9&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}(t);return i=new nt({props:{text:"Standalone",info:"Seperates button from groups",$$slots:{default:[xt]},$$scope:{ctx:t}}}),l=new rt({props:{text:"Icon",info:"Icon Configuration"}}),m=new nt({props:{id:"option_design_icon_class",text:"Class",info:'Please refer to Font Awesome to see the icon class',$$slots:{default:[ht]},$$scope:{ctx:t}}}),u=new nt({props:{id:"option_design_icon_color",text:"Color",$$slots:{default:[wt]},$$scope:{ctx:t}}}),g=new rt({props:{text:"Tooltip",info:"Tooltip Configuration"}}),b=new nt({props:{id:"option_design_tooltip_background_color",text:"Background Color",$$slots:{default:[Ct]},$$scope:{ctx:t}}}),v=new nt({props:{id:"option_design_tooltip_font_color",text:"Font Color",$$slots:{default:[kt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=$(),h&&h.c(),a=$(),w&&w.c(),o=$(),F(i.$$.fragment),r=$(),F(l.$$.fragment),s=$(),F(m.$$.fragment),p=$(),F(u.$$.fragment),f=$(),F(g.$$.fragment),_=$(),F(b.$$.fragment),y=$(),F(v.$$.fragment)},m(t,c){D(e,t,c),d(t,n,c),h&&h.m(t,c),d(t,a,c),w&&w.m(t,c),d(t,o,c),D(i,t,c),d(t,r,c),D(l,t,c),d(t,s,c),D(m,t,c),d(t,p,c),D(u,t,c),d(t,f,c),D(g,t,c),d(t,_,c),D(b,t,c),d(t,y,c),D(v,t,c),x=!0},p(t,[n]){const a={};9&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a),"shape"===t[2].template.name&&h.p(t,n),t[1]&&w.p(t,n);const o={};9&n&&(o.$$scope={dirty:n,ctx:t}),i.$set(o);const r={};9&n&&(r.$$scope={dirty:n,ctx:t}),m.$set(r);const l={};9&n&&(l.$$scope={dirty:n,ctx:t}),u.$set(l);const s={};9&n&&(s.$$scope={dirty:n,ctx:t}),b.$set(s);const d={};9&n&&(d.$$scope={dirty:n,ctx:t}),v.$set(d)},i(t){x||(I(e.$$.fragment,t),I(h),I(w),I(i.$$.fragment,t),I(l.$$.fragment,t),I(m.$$.fragment,t),I(u.$$.fragment,t),I(g.$$.fragment,t),I(b.$$.fragment,t),I(v.$$.fragment,t),x=!0)},o(t){H(e.$$.fragment,t),H(h),H(w),H(i.$$.fragment,t),H(l.$$.fragment,t),H(m.$$.fragment,t),H(u.$$.fragment,t),H(g.$$.fragment,t),H(b.$$.fragment,t),H(v.$$.fragment,t),x=!1},d(t){j(e,t),t&&c(n),h&&h.d(t),t&&c(a),w&&w.d(t),t&&c(o),j(i,t),t&&c(r),j(l,t),t&&c(s),j(m,t),t&&c(p),j(u,t),t&&c(f),j(g,t),t&&c(_),j(b,t),t&&c(y),j(v,t)}}}function Tt(t,e,n){let{premium:a}=window.FAB_PLUGIN,{fab_design:o}=window.FAB_PLUGIN.options,{fab:i}=window.FAB_METABOX_DESIGN.data;return i.template.shape=i.template.shape?i.template.shape:o.template.shape,[i,a,o]}class Mt extends U{constructor(t){super(),V(this,t,Tt,zt,r,{})}}function qt(n){let a,o,i=[{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]],r={};for(let t=0;t{"id"in t&&n(1,a=t.id),"value"in t&&n(2,o=t.value),"name"in t&&n(3,i=t.name),"step"in t&&n(4,r=t.step),"required"in t&&n(5,l=t.required),"placeholder"in t&&n(6,s=t.placeholder),"inputClass"in t&&n(7,d=t.inputClass),"data"in t&&n(0,c=t.data)},[c,a,o,i,r,l,s,d]}class At extends U{constructor(t){super(),V(this,t,Lt,qt,r,{id:1,value:2,name:3,step:4,required:5,placeholder:6,inputClass:7,data:0})}}function Et(e){let n,a,i,r,l,m,_,v,x,h,w;return{c(){n=p("input"),r=$(),l=p("div"),m=u("("),_=p("span"),v=u(e[0]),x=u(")"),g(n,"type","range"),g(n,"id",a="field_"+e[1]),g(n,"name",e[2]),g(n,"min",e[3]),g(n,"max",e[4]),g(n,"step",e[5]),n.required=e[6],g(n,"placeholder",e[7]),g(n,"class",i="mt-4 "+e[8]),g(l,"class","pl-4 mt-2")},m(t,a){d(t,n,a),y(n,e[0]),d(t,r,a),d(t,l,a),s(l,m),s(l,_),s(_,v),s(l,x),h||(w=[f(n,"change",e[9]),f(n,"input",e[9])],h=!0)},p(t,[e]){2&e&&a!==(a="field_"+t[1])&&g(n,"id",a),4&e&&g(n,"name",t[2]),8&e&&g(n,"min",t[3]),16&e&&g(n,"max",t[4]),32&e&&g(n,"step",t[5]),64&e&&(n.required=t[6]),128&e&&g(n,"placeholder",t[7]),256&e&&i!==(i="mt-4 "+t[8])&&g(n,"class",i),1&e&&y(n,t[0]),1&e&&b(v,t[0])},i:t,o:t,d(t){t&&c(n),t&&c(r),t&&c(l),h=!1,o(w)}}}function Ot(t,e,n){let{id:a=""}=e,{value:o=""}=e,{name:i=""}=e,{min:r=0}=e,{max:l=1}=e,{step:s=.1}=e,{required:d}=e,{placeholder:c}=e,{inputClass:m="slider"}=e;return t.$$set=t=>{"id"in t&&n(1,a=t.id),"value"in t&&n(0,o=t.value),"name"in t&&n(2,i=t.name),"min"in t&&n(3,r=t.min),"max"in t&&n(4,l=t.max),"step"in t&&n(5,s=t.step),"required"in t&&n(6,d=t.required),"placeholder"in t&&n(7,c=t.placeholder),"inputClass"in t&&n(8,m=t.inputClass)},[o,a,i,r,l,s,d,c,m,function(){o=function(t){return""===t?null:+t}(this.value),n(0,o)}]}class Bt extends U{constructor(t){super(),V(this,t,Ot,Et,r,{id:1,value:0,name:2,min:3,max:4,step:5,required:6,placeholder:7,inputClass:8})}}function Nt(e){let n,a,o;return{c(){n=p("p"),n.textContent="None modal/popup type action button!",a=$(),o=p("i"),o.textContent="Please change the type to modal/popup to access the setting."},m(t,e){d(t,n,e),d(t,a,e),d(t,o,e)},p:t,i:t,o:t,d(t){t&&c(n),t&&c(a),t&&c(o)}}}function Pt(t){let e,n,a,o,i,r,l,s,m,u,f,_,b,y,v,x,h,w,C,k,z,T,M,q,L,A=t[0]&&function(t){let e,n;return e=new nt({props:{id:"option_design_modal_theme",text:"Theme",$$slots:{default:[St]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,a){D(e,t,a),n=!0},p(t,n){const a={};64&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){j(e,t)}}}(t);n=new nt({props:{id:"option_design_modal_layout_id",text:"Layout",$$slots:{default:[It]},$$scope:{ctx:t}}}),o=new nt({props:{id:"option_design_modal_size",text:"Size",$$slots:{default:[Ht]},$$scope:{ctx:t}}}),l=new nt({props:{id:"option_design_modal_size",text:"Custom Size",$$slots:{default:[Ft]},$$scope:{ctx:t}}}),m=new nt({props:{text:"Navigation",$$slots:{default:[Dt]},$$scope:{ctx:t}}}),f=new nt({props:{id:"modal_layout_background_color",text:"Background Color",$$slots:{default:[jt]},$$scope:{ctx:t}}});let E=t[0]&&function(t){let e,n,a,o,i,r;return e=new rt({props:{text:"Animation",info:'To see animation reference you can go to Animate.css'}}),a=new nt({props:{id:"option_animation_modal_in",text:"In",$$slots:{default:[Gt]},$$scope:{ctx:t}}}),i=new nt({props:{id:"option_animation_modal_out",text:"In",$$slots:{default:[Vt]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=$(),F(a.$$.fragment),o=$(),F(i.$$.fragment)},m(t,l){D(e,t,l),d(t,n,l),D(a,t,l),d(t,o,l),D(i,t,l),r=!0},p(t,e){const n={};64&e&&(n.$$scope={dirty:e,ctx:t}),a.$set(n);const o={};64&e&&(o.$$scope={dirty:e,ctx:t}),i.$set(o)},i(t){r||(I(e.$$.fragment,t),I(a.$$.fragment,t),I(i.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),H(a.$$.fragment,t),H(i.$$.fragment,t),r=!1},d(t){j(e,t),t&&c(n),j(a,t),t&&c(o),j(i,t)}}}(t);return y=new rt({props:{text:"Overlay",info:"Modal Overlay"}}),x=new nt({props:{id:"modal_layout_overlay_color",text:"Background Color",$$slots:{default:[Ut]},$$scope:{ctx:t}}}),w=new nt({props:{id:"fab_modal_layout_overlay_opacity",text:"Opacity",$$slots:{default:[Kt]},$$scope:{ctx:t}}}),k=new rt({props:{text:"Spacing",info:"Content Spacing"}}),T=new nt({props:{text:"Padding",$$slots:{default:[Xt]},$$scope:{ctx:t}}}),q=new nt({props:{text:"Margin",$$slots:{default:[Rt]},$$scope:{ctx:t}}}),{c(){A&&A.c(),e=$(),F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),r=p("div"),F(l.$$.fragment),s=$(),F(m.$$.fragment),u=$(),F(f.$$.fragment),_=$(),E&&E.c(),b=$(),F(y.$$.fragment),v=$(),F(x.$$.fragment),h=$(),F(w.$$.fragment),C=$(),F(k.$$.fragment),z=$(),F(T.$$.fragment),M=$(),F(q.$$.fragment),g(r,"id","setting_design_custom_size")},m(t,c){A&&A.m(t,c),d(t,e,c),D(n,t,c),d(t,a,c),D(o,t,c),d(t,i,c),d(t,r,c),D(l,r,null),d(t,s,c),D(m,t,c),d(t,u,c),D(f,t,c),d(t,_,c),E&&E.m(t,c),d(t,b,c),D(y,t,c),d(t,v,c),D(x,t,c),d(t,h,c),D(w,t,c),d(t,C,c),D(k,t,c),d(t,z,c),D(T,t,c),d(t,M,c),D(q,t,c),L=!0},p(t,e){t[0]&&A.p(t,e);const a={};64&e&&(a.$$scope={dirty:e,ctx:t}),n.$set(a);const i={};64&e&&(i.$$scope={dirty:e,ctx:t}),o.$set(i);const r={};64&e&&(r.$$scope={dirty:e,ctx:t}),l.$set(r);const s={};64&e&&(s.$$scope={dirty:e,ctx:t}),m.$set(s);const d={};64&e&&(d.$$scope={dirty:e,ctx:t}),f.$set(d),t[0]&&E.p(t,e);const c={};64&e&&(c.$$scope={dirty:e,ctx:t}),x.$set(c);const p={};64&e&&(p.$$scope={dirty:e,ctx:t}),w.$set(p);const u={};64&e&&(u.$$scope={dirty:e,ctx:t}),T.$set(u);const $={};64&e&&($.$$scope={dirty:e,ctx:t}),q.$set($)},i(t){L||(I(A),I(n.$$.fragment,t),I(o.$$.fragment,t),I(l.$$.fragment,t),I(m.$$.fragment,t),I(f.$$.fragment,t),I(E),I(y.$$.fragment,t),I(x.$$.fragment,t),I(w.$$.fragment,t),I(k.$$.fragment,t),I(T.$$.fragment,t),I(q.$$.fragment,t),L=!0)},o(t){H(A),H(n.$$.fragment,t),H(o.$$.fragment,t),H(l.$$.fragment,t),H(m.$$.fragment,t),H(f.$$.fragment,t),H(E),H(y.$$.fragment,t),H(x.$$.fragment,t),H(w.$$.fragment,t),H(k.$$.fragment,t),H(T.$$.fragment,t),H(q.$$.fragment,t),L=!1},d(t){A&&A.d(t),t&&c(e),j(n,t),t&&c(a),j(o,t),t&&c(i),t&&c(r),j(l),t&&c(s),j(m,t),t&&c(u),j(f,t),t&&c(_),E&&E.d(t),t&&c(b),j(y,t),t&&c(v),j(x,t),t&&c(h),j(w,t),t&&c(C),j(k,t),t&&c(z),j(T,t),t&&c(M),j(q,t)}}}function St(e){let n,a;return n=new mt({props:{id:"option_design_modal_theme",name:"fab_modal_theme[id]",inputClass:"select2 field_option_design_modal_theme",value:e[1].modal.theme.id}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function It(e){let n,a;return n=new mt({props:{id:"option_design_modal_layout_id",name:"fab_modal_layout[id]",inputClass:"select2 field_option_design_modal_layout_id",value:e[1].modal.layout.id}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Ht(e){let n,a;return n=new mt({props:{id:"option_design_modal_size",name:"fab_design_size_type",inputClass:"select2 field_option_design_modal_size",value:e[1].size.type}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Ft(e){let n,a;return n=new _t({props:{id:"option_design_modal_size",name:"fab_design_size_custom",placeholder:"Custom Size %, px, em",value:e[1].size.custom}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Dt(e){let n,a,o,i,r,l,s,m;return n=new $t({props:{id:"fab_modal_navigation_backgroundDismiss",name:"fab_modal_navigation[backgroundDismiss]",label:{text:"backgroundDismiss"},value:e[1].modal.navigation.backgroundDismiss}}),o=new $t({props:{id:"fab_modal_navigation_buttons_maximize",name:"fab_modal_navigation[buttons][maximize]",label:{text:"Maximize"},inputClass:"flex pl-6",value:e[1].modal.navigation.buttons.maximize}}),r=new $t({props:{id:"fab_modal_navigation_draggable",name:"fab_modal_navigation[draggable]",label:{text:"Draggable"},inputClass:"flex pl-6",value:e[1].modal.navigation.draggable}}),s=new $t({props:{id:"fab_modal_navigation_escapeKey",name:"fab_modal_navigation[escapeKey]",label:{text:"escapeKey"},inputClass:"flex pl-6",value:e[1].modal.navigation.escapeKey}}),{c(){F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),F(r.$$.fragment),l=$(),F(s.$$.fragment)},m(t,e){D(n,t,e),d(t,a,e),D(o,t,e),d(t,i,e),D(r,t,e),d(t,l,e),D(s,t,e),m=!0},p:t,i(t){m||(I(n.$$.fragment,t),I(o.$$.fragment,t),I(r.$$.fragment,t),I(s.$$.fragment,t),m=!0)},o(t){H(n.$$.fragment,t),H(o.$$.fragment,t),H(r.$$.fragment,t),H(s.$$.fragment,t),m=!1},d(t){j(n,t),t&&c(a),j(o,t),t&&c(i),j(r,t),t&&c(l),j(s,t)}}}function jt(e){let n,a;return n=new _t({props:{id:"modal_layout_background_color",name:"fab_modal_layout[background][color]",inputClass:"colorpicker",value:e[1].modal.layout.background.color}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Gt(e){let n,a;return n=new mt({props:{id:"option_animation_modal_in",name:"fab_design_animation[modal][in]",inputClass:"field_option_animation_element select2",value:e[1].animation.modal.in}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Vt(e){let n,a;return n=new mt({props:{id:"option_animation_modal_out",name:"fab_design_animation[modal][out]",inputClass:"field_option_animation_element select2",value:e[1].animation.modal.out}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Ut(e){let n,a;return n=new _t({props:{id:"modal_layout_overlay_color",name:"fab_modal_layout[overlay][color]",inputClass:"colorpicker",value:e[1].modal.layout.overlay.color}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Kt(e){let n,a;return n=new Bt({props:{id:"fab_modal_layout_overlay_opacity",name:"fab_modal_layout[overlay][opacity]",min:"0",max:"1",step:"0.1",value:e[1].modal.layout.overlay.opacity}}),{c(){F(n.$$.fragment)},m(t,e){D(n,t,e),a=!0},p:t,i(t){a||(I(n.$$.fragment,t),a=!0)},o(t){H(n.$$.fragment,t),a=!1},d(t){j(n,t)}}}function Xt(e){let n,a,o,i,r,l,s,m,u,f,_,b,y;return n=new At({props:{id:"fab_modal_layout_content_padding_top",name:"fab_modal_layout[content][padding][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.top,data:{layout:"padding"}}}),o=new At({props:{id:"fab_modal_layout_content_padding_right",name:"fab_modal_layout[content][padding][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.right,data:{layout:"padding"}}}),r=new At({props:{id:"fab_modal_layout_content_padding_bottom",name:"fab_modal_layout[content][padding][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.bottom,data:{layout:"padding"}}}),s=new At({props:{id:"fab_modal_layout_content_padding_left",name:"fab_modal_layout[content][padding][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-padding",value:e[1].modal.layout.content.padding.left,data:{layout:"padding"}}}),f=new mt({props:{id:"fab_modal_layout_content_padding_sizing",name:"fab_modal_layout[content][padding][sizing]",inputClass:"select2 fab_modal_layout_spacing_sizing",value:e[1].modal.layout.content.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(){F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),F(r.$$.fragment),l=$(),F(s.$$.fragment),m=$(),u=p("div"),F(f.$$.fragment),_=$(),b=p("div"),b.innerHTML='',g(u,"class","ml-4 w-20"),g(b,"class","pt-2.5 px-6 ml-4 bg-primary-600 text-white rounded-md cursor-pointer fab-linked-option hover:shadow-md"),g(b,"data-layout","padding")},m(t,e){D(n,t,e),d(t,a,e),D(o,t,e),d(t,i,e),D(r,t,e),d(t,l,e),D(s,t,e),d(t,m,e),d(t,u,e),D(f,u,null),d(t,_,e),d(t,b,e),y=!0},p:t,i(t){y||(I(n.$$.fragment,t),I(o.$$.fragment,t),I(r.$$.fragment,t),I(s.$$.fragment,t),I(f.$$.fragment,t),y=!0)},o(t){H(n.$$.fragment,t),H(o.$$.fragment,t),H(r.$$.fragment,t),H(s.$$.fragment,t),H(f.$$.fragment,t),y=!1},d(t){j(n,t),t&&c(a),j(o,t),t&&c(i),j(r,t),t&&c(l),j(s,t),t&&c(m),t&&c(u),j(f),t&&c(_),t&&c(b)}}}function Rt(e){let n,a,o,i,r,l,s,m,u,f,_,b,y;return n=new At({props:{id:"fab_modal_layout_content_margin_top",name:"fab_modal_layout[content][margin][top]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.top,data:{layout:"margin"}}}),o=new At({props:{id:"fab_modal_layout_content_margin_right",name:"fab_modal_layout[content][margin][right]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.right,data:{layout:"margin"}}}),r=new At({props:{id:"fab_modal_layout_content_margin_bottom",name:"fab_modal_layout[content][margin][bottom]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.bottom,data:{layout:"margin"}}}),s=new At({props:{id:"fab_modal_layout_content_margin_left",name:"fab_modal_layout[content][margin][left]",inputClass:"border border-gray-200 p-2 text-grey-darkest w-20 ml-4 fab-modal-layout-spacing fab-modal-layout-margin",value:e[1].modal.layout.content.margin.left,data:{layout:"margin"}}}),f=new mt({props:{id:"fab_modal_layout_content_margin_sizing",name:"fab_modal_layout[content][margin][sizing]",inputClass:"select2 fab_modal_layout_spacing_sizing",value:e[1].modal.layout.content.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(){F(n.$$.fragment),a=$(),F(o.$$.fragment),i=$(),F(r.$$.fragment),l=$(),F(s.$$.fragment),m=$(),u=p("div"),F(f.$$.fragment),_=$(),b=p("div"),b.innerHTML='',g(u,"class","ml-4 w-20"),g(b,"class","pt-2.5 px-6 ml-4 bg-primary-600 text-white rounded-md cursor-pointer fab-linked-option hover:shadow-md"),g(b,"data-layout","margin")},m(t,e){D(n,t,e),d(t,a,e),D(o,t,e),d(t,i,e),D(r,t,e),d(t,l,e),D(s,t,e),d(t,m,e),d(t,u,e),D(f,u,null),d(t,_,e),d(t,b,e),y=!0},p:t,i(t){y||(I(n.$$.fragment,t),I(o.$$.fragment,t),I(r.$$.fragment,t),I(s.$$.fragment,t),I(f.$$.fragment,t),y=!0)},o(t){H(n.$$.fragment,t),H(o.$$.fragment,t),H(r.$$.fragment,t),H(s.$$.fragment,t),H(f.$$.fragment,t),y=!1},d(t){j(n,t),t&&c(a),j(o,t),t&&c(i),j(r,t),t&&c(l),j(s,t),t&&c(m),t&&c(u),j(f),t&&c(_),t&&c(b)}}}function Wt(t){let e,n,a,o;const i=[Pt,Nt],r=[];return e=function(t,e){return t[2].length&&t[3].length&&t[4].length?0:1}(t),n=r[e]=i[e](t),{c(){n.c(),a=u("")},m(t,n){r[e].m(t,n),d(t,a,n),o=!0},p(t,[e]){n.p(t,e)},i(t){o||(I(n),o=!0)},o(t){H(n),o=!1},d(t){r[e].d(t),t&&c(a)}}}function Jt(t){let{premium:e}=window.FAB_PLUGIN;window.FAB_PLUGIN.options;let{fab:n}=window.FAB_METABOX_DESIGN.data,{navigation:a,layout:o,theme:i}=n.modal;return[e,n,a,o,i]}class Qt extends U{constructor(t){super(),V(this,t,Jt,Wt,r,{})}}function Yt(e){let n,a,o;return a=new Y({props:{tabs:e[0]}}),{c(){n=p("div"),F(a.$$.fragment),g(n,"class","fab-container metabox-design")},m(t,e){d(t,n,e),D(a,n,null),o=!0},p:t,i(t){o||(I(a.$$.fragment,t),o=!0)},o(t){H(a.$$.fragment,t),o=!1},d(t){t&&c(n),j(a)}}}function Zt(t){return[[{key:"button",name:"Button",component:Mt},{key:"modal",name:"Modal",component:Qt}]]}return app=new class extends U{constructor(t){super(),V(this,t,Zt,Yt,r,{})}}({target:document.querySelector("#fab-metabox-design-content")})}(); diff --git a/config.json b/config.json index 317cbe3..6df4f40 100644 --- a/config.json +++ b/config.json @@ -1 +1 @@ -{"name":"Floating Awesome Button","version":"1.5.9","production":true,"premium":false,"url":{"wordpress":"https:\/\/wordpress.org\/plugins\/floating-awesome-button","contact":"https:\/\/artistudio.xyz\/contact"},"enableHooks":["action","filter","shortcode"],"description":"Floating Awesome Button (FAB) is customizable action button that can help you display custom content (modal, shortcodes, widgets, links, etc).","default":{"fab_animation":{"enable":1,"elements":{"logo":"bounceIn","tab":"heartBeat","content":"fadeIn","fab":"ripple","fab_active":"fadeIn","fab_inactive":"fadeOut"}},"fab_design":{"layout":{"position":"right"},"size":{"type":"medium","custom":""},"tooltip":{"enable":1},"template":{"name":"classic","shape":"","color":"#5b59ec","icon":{"class":"fas fa-ellipsis-h","color":"#fff"}}},"fab_order":[],"fab_assets":{"backend":{"fab-fontawesome-css":{"status":true,"type":"css","src":"vendor\/fontawesome\/css\/all.min.css"},"fab-jconfirm-css":{"status":true,"type":"css","src":"vendor\/jquery-confirm\/jquery-confirm.min.css"},"fab-jconfirm-js":{"status":true,"type":"js","src":"vendor\/jquery-confirm\/jquery-confirm.min.js"},"fab-select2-css":{"status":true,"type":"css","src":"vendor\/jquery-select2\/select2.min.css"},"fab-select2-js":{"status":true,"type":"js","src":"vendor\/jquery-select2\/select2.min.js"}},"frontend":{"fab-fontawesome-css":{"status":true,"type":"css","src":"vendor\/fontawesome\/css\/all.min.css"},"fab-jconfirm-css":{"status":true,"type":"css","src":"vendor\/jquery-confirm\/jquery-confirm.min.css"},"fab-jconfirm-js":{"status":true,"type":"js","src":"vendor\/jquery-confirm\/jquery-confirm.min.js"},"fab-jquery-hotkey-js":{"status":true,"type":"js","src":"vendor\/jquery-hotkey\/jquery.hotkeys.min.js"}}},"fab_hooks":[]}} \ No newline at end of file +{"name":"Floating Awesome Button","version":"1.5.10","production":true,"premium":false,"url":{"wordpress":"https:\/\/wordpress.org\/plugins\/floating-awesome-button","contact":"https:\/\/artistudio.xyz\/contact"},"enableHooks":["action","filter","shortcode"],"description":"Floating Awesome Button (FAB) is customizable action button that can help you display custom content (modal, shortcodes, widgets, links, etc).","default":{"fab_animation":{"enable":1,"elements":{"logo":"bounceIn","tab":"heartBeat","content":"fadeIn","fab":"ripple","fab_active":"fadeIn","fab_inactive":"fadeOut"}},"fab_design":{"layout":{"position":"right"},"size":{"type":"medium","custom":""},"tooltip":{"enable":1},"template":{"name":"classic","shape":"","color":"#5b59ec","icon":{"class":"fas fa-ellipsis-h","color":"#fff"}}},"fab_order":[],"fab_assets":{"backend":{"fab-fontawesome-css":{"status":true,"type":"css","src":"vendor\/fontawesome\/css\/all.min.css"},"fab-jconfirm-css":{"status":true,"type":"css","src":"vendor\/jquery-confirm\/jquery-confirm.min.css"},"fab-jconfirm-js":{"status":true,"type":"js","src":"vendor\/jquery-confirm\/jquery-confirm.min.js"},"fab-select2-css":{"status":true,"type":"css","src":"vendor\/jquery-select2\/select2.min.css"},"fab-select2-js":{"status":true,"type":"js","src":"vendor\/jquery-select2\/select2.min.js"}},"frontend":{"fab-fontawesome-css":{"status":true,"type":"css","src":"vendor\/fontawesome\/css\/all.min.css"},"fab-jconfirm-css":{"status":true,"type":"css","src":"vendor\/jquery-confirm\/jquery-confirm.min.css"},"fab-jconfirm-js":{"status":true,"type":"js","src":"vendor\/jquery-confirm\/jquery-confirm.min.js"},"fab-jquery-hotkey-js":{"status":true,"type":"js","src":"vendor\/jquery-hotkey\/jquery.hotkeys.min.js"}}},"fab_hooks":[]}} \ No newline at end of file diff --git a/floating-awesome-button.php b/floating-awesome-button.php index 52fa311..ccbe945 100644 --- a/floating-awesome-button.php +++ b/floating-awesome-button.php @@ -3,7 +3,7 @@ * Plugin Name: Floating Awesome Button * Plugin URI: https://artistudio.xyz * Description: Floating Awesome Button (FAB) is customizable action button that can help you display custom content (modal, shortcodes, widgets, links, etc). - * Version: 1.5.9 + * Version: 1.5.10 * Author: Agung Sundoro * Author URI: https://wiki.artistudio.xyz/ * License: GPL-3.0 diff --git a/readme.txt b/readme.txt index 273f5eb..c512bef 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: float menu, sticky button, popup, optin, scroll to top, social sharing Requires at least: 4.5 Tested up to: 5.9.0 Requires PHP: 5.6 -Stable tag: 1.5.9 +Stable tag: 1.5.10 License: GPL-3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -77,6 +77,8 @@ More Tutorial on YouTube : Thanks for using our plugin, your rating and feedback help us grow! If you enjoy it please feel free to spread the words πŸ‘Š 😚 πŸ‘ +* πŸ‘‹ πŸ‘Š [Join Our Slack Community](https://wpfab.slack.com) πŸ¦Έβ€ πŸ‘¨β€πŸš€ πŸ₯· + = Credits = This plugin is heavily using these free & open-source libraries @@ -102,12 +104,13 @@ who had helped provide and develop these libraries == Installation == * You can install the plugin from the WordPress Plugin Repositories or * Download the plugin and extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation - -To see a complete release versions of the plugins you can go to : -* πŸ“Ÿ [Github/Floating Awesome Button](https://github.com/artistudioxyz/floating-awesome-button) +* To see a complete release versions of the plugins you can go to : πŸ“Ÿ [Github/Floating Awesome Button](https://github.com/artistudioxyz/floating-awesome-button) == Changelog == += 1.5.10 = +* HOTFIX: FAB type link metabox design option not working + = 1.5.9 = * Restructure CSS styles to use less space * Optimize gutenberg support (Autoembed & Render) diff --git a/src/Controller/Metabox/MetaboxDesign.php b/src/Controller/Metabox/MetaboxDesign.php index f7dfae0..20a389b 100644 --- a/src/Controller/Metabox/MetaboxDesign.php +++ b/src/Controller/Metabox/MetaboxDesign.php @@ -69,10 +69,6 @@ public function backend_enequeue_metabox_design( $hook_suffix ) { /** Grab Data */ $fab = new FABItem( $post->ID ); $fab = $fab->getVars(); -// -// echo '
';
-//        var_dump($fab);
-//        exit;
 
         /** Add Inline Script */
         $this->WP->wp_localize_script( 'fab-local', 'FAB_METABOX_DESIGN', array(
diff --git a/src/Helper/FAB/FABItem.php b/src/Helper/FAB/FABItem.php
index f1dfc9a..46acc84 100644
--- a/src/Helper/FAB/FABItem.php
+++ b/src/Helper/FAB/FABItem.php
@@ -160,6 +160,7 @@ public function __construct( int $ID ) {
 		/** Get Plugin Instance */
 		$plugin   = \Fab\Plugin::getInstance();
 		$this->WP = $plugin->getWP();
+        $this->Helper = $plugin->getHelper();
 		$options  = $plugin->getConfig()->options;
 
 		/** Construct Class */
@@ -182,8 +183,9 @@ public function __construct( int $ID ) {
 		$this->hotkey          = ($this->hotkey==='none') ? '' : $this->hotkey;
 
         /** Animation */
+        $default = FABMetaboxDesign::$input['fab_design_animation']['default'];
         $this->animation = $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['animation']['meta_key'], true );
-        $this->animation = ( $this->animation ) ? $this->animation : FABMetaboxDesign::$input['fab_design_animation']['default'];
+        $this->animation = ( $this->animation ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->animation ) : $default;
 
         /** Module */
         if( 'anchor_link' === $this->type ){ $this->module = new FABModuleAnchorLink(); }
@@ -194,8 +196,9 @@ public function __construct( int $ID ) {
         elseif ( 'search' === $this->type ){ $this->module = new FABModuleSearch(); }
 
 		/** Responsive */
+        $default = FABMetaboxDesign::$input['fab_design_responsive']['default'];
 		$this->responsive = $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['responsive']['meta_key'], true );
-		$this->responsive = ( $this->responsive ) ? $this->responsive : FABMetaboxDesign::$input['fab_design_responsive']['default'];
+		$this->responsive = ( $this->responsive ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->responsive ) : $default;
 
         /** Standalone */
         $standalone = ['readingbar', 'scrolltotop'];
@@ -203,16 +206,19 @@ public function __construct( int $ID ) {
         $this->standalone = ($this->standalone===false) ? $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['standalone']['meta_key'], true ) : $this->standalone;
 
 		/** Trigger */
+        $default = FABMetaboxTrigger::$input['fab_trigger']['default'];
 		$this->trigger = $this->WP->get_post_meta( $this->ID, FABMetaboxTrigger::$post_metas['trigger']['meta_key'], true );
-		$this->trigger = ( $this->trigger ) ? $this->trigger : FABMetaboxTrigger::$input['fab_trigger']['default'];
+		$this->trigger = ( $this->trigger ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->trigger ) : $default;
 
         /** Template */
+        $default = FABMetaboxDesign::$input['fab_design_template']['default'];
         $this->template = $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['template']['meta_key'], true );
-        $this->template = ( $this->template ) ? $this->template : FABMetaboxDesign::$input['fab_design_template']['default'];
+        $this->template = ( $this->template ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->template ) : $default;
 
         /** Tooltip */
+        $default = FABMetaboxDesign::$input['fab_design_tooltip']['default'];
         $this->tooltip = $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['tooltip']['meta_key'], true );
-        $this->tooltip = ( $this->tooltip ) ? $this->tooltip : FABMetaboxDesign::$input['fab_design_tooltip']['default'];
+        $this->tooltip = ( $this->tooltip ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->tooltip ) : $default;
 
 		/** Location */
 		$this->locations = $this->WP->get_post_meta( $this->ID, FABMetaboxLocation::$post_metas['locations']['meta_key'], true );
diff --git a/src/Helper/FAB/FABModal.php b/src/Helper/FAB/FABModal.php
index 6a1393c..217c8b8 100644
--- a/src/Helper/FAB/FABModal.php
+++ b/src/Helper/FAB/FABModal.php
@@ -54,6 +54,7 @@ public function __construct(int $ID)
         /** Get Plugin Instance */
         $plugin   = \Fab\Plugin::getInstance();
         $this->WP = $plugin->getWP();
+        $this->Helper = $plugin->getHelper();
 
         /** Construct Class */
         $this->ID = $ID;
@@ -62,16 +63,19 @@ public function __construct(int $ID)
         $type = $this->WP->get_post_meta( $this->ID, FABMetaboxSetting::$post_metas['type']['meta_key'], true );
         if($type != 'link'){
             /** Layout */
+            $default = FABMetaboxDesign::$input['fab_modal_layout']['default'];
             $this->layout = $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['modal_layout']['meta_key'], true );
-            $this->layout = ( $this->layout ) ? $this->layout : FABMetaboxDesign::$input['fab_modal_layout']['default'];
+            $this->layout = ( $this->layout ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->layout ) : $default;
 
             /** Navigation */
+            $default = FABMetaboxDesign::$input['fab_modal_navigation']['default'];
             $this->navigation = $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['modal_navigation']['meta_key'], true );
-            $this->navigation = ( $this->navigation ) ? $this->navigation : FABMetaboxDesign::$input['fab_modal_navigation']['default'];
+            $this->navigation = ( $this->navigation ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->navigation ) : $default;
 
             /** Theme */
+            $default = FABMetaboxDesign::$input['fab_modal_theme']['default'];
             $this->theme = $this->WP->get_post_meta( $this->ID, FABMetaboxDesign::$post_metas['modal_theme']['meta_key'], true );
-            $this->theme = ( $this->theme ) ? $this->theme : FABMetaboxDesign::$input['fab_modal_theme']['default'];
+            $this->theme = ( $this->theme ) ? $this->Helper->ArrayMergeRecursive( (array) $default, (array) $this->theme ) : $default;
         }
 
     }
diff --git a/vendor/autoload.php b/vendor/autoload.php
index 3b80f19..ae3df82 100644
--- a/vendor/autoload.php
+++ b/vendor/autoload.php
@@ -4,4 +4,4 @@
 
 require_once __DIR__ . '/composer/autoload_real.php';
 
-return ComposerAutoloaderInite4e568d13db37aed56413dfbd585d1ba::getLoader();
+return ComposerAutoloaderInit554decf5efe21e95ee0f99b30e7cea15::getLoader();
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php
index 792e3ee..bd74587 100644
--- a/vendor/composer/autoload_real.php
+++ b/vendor/composer/autoload_real.php
@@ -2,7 +2,7 @@
 
 // autoload_real.php @generated by Composer
 
-class ComposerAutoloaderInite4e568d13db37aed56413dfbd585d1ba
+class ComposerAutoloaderInit554decf5efe21e95ee0f99b30e7cea15
 {
     private static $loader;
 
@@ -24,15 +24,15 @@ public static function getLoader()
 
         require __DIR__ . '/platform_check.php';
 
-        spl_autoload_register(array('ComposerAutoloaderInite4e568d13db37aed56413dfbd585d1ba', 'loadClassLoader'), true, true);
+        spl_autoload_register(array('ComposerAutoloaderInit554decf5efe21e95ee0f99b30e7cea15', 'loadClassLoader'), true, true);
         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
-        spl_autoload_unregister(array('ComposerAutoloaderInite4e568d13db37aed56413dfbd585d1ba', 'loadClassLoader'));
+        spl_autoload_unregister(array('ComposerAutoloaderInit554decf5efe21e95ee0f99b30e7cea15', 'loadClassLoader'));
 
         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
         if ($useStaticLoader) {
             require __DIR__ . '/autoload_static.php';
 
-            call_user_func(\Composer\Autoload\ComposerStaticInite4e568d13db37aed56413dfbd585d1ba::getInitializer($loader));
+            call_user_func(\Composer\Autoload\ComposerStaticInit554decf5efe21e95ee0f99b30e7cea15::getInitializer($loader));
         } else {
             $map = require __DIR__ . '/autoload_namespaces.php';
             foreach ($map as $namespace => $path) {
diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php
index a8b3ae9..7243859 100644
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -4,7 +4,7 @@
 
 namespace Composer\Autoload;
 
-class ComposerStaticInite4e568d13db37aed56413dfbd585d1ba
+class ComposerStaticInit554decf5efe21e95ee0f99b30e7cea15
 {
     public static $classMap = array (
         'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -89,7 +89,7 @@ class ComposerStaticInite4e568d13db37aed56413dfbd585d1ba
     public static function getInitializer(ClassLoader $loader)
     {
         return \Closure::bind(function () use ($loader) {
-            $loader->classMap = ComposerStaticInite4e568d13db37aed56413dfbd585d1ba::$classMap;
+            $loader->classMap = ComposerStaticInit554decf5efe21e95ee0f99b30e7cea15::$classMap;
 
         }, null, ClassLoader::class);
     }