Plugin Directory

Changeset 2832117

Timestamp:
12/12/2022 06:01:17 AM (20 months ago)
Author:
kraftplugins
Message:

committed with grunt-push-svn

Location:
affiliatex
Files:
209 added
18 edited

Legend:

Unmodified
Added
Removed
  • affiliatex/trunk/affiliatex.php

    r2751896 r2832117  
    88 * Text Domain:     affiliatex
    99 * Domain Path:     /languages
    10  * Version:         1.2.0
     10 * Version:         1.2.
    1111 * Requires at least: 5.8
    1212 * Requires PHP:      7.0
  • affiliatex/trunk/app/build/adminJS.asset.php

    r2751896 r2832117  
    1 <?php return array('dependencies' => array('jquery', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => 'e2b3b2a89abfdcf68b028ac5b04bdfc3');
     1<?php return array('dependencies' => array('jquery', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '');
  • affiliatex/trunk/app/build/adminJS.js

    r2666671 r2832117  
    1 var affiliateBlocksExports="object"==typeof affiliateBlocksExports?affiliateBlocksExports:{};affiliateBlocksExports.adminJS=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=84)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t,n){"use strict";n.d(t,"w",(function(){return i})),n.d(t,"a",(function(){return ve})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return ye})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return q})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Se})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return Ae})),n.d(t,"j",(function(){return Fe})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return x})),n.d(t,"m",(function(){return N})),n.d(t,"n",(function(){return L})),n.d(t,"o",(function(){return z})),n.d(t,"p",(function(){return be})),n.d(t,"q",(function(){return me})),n.d(t,"r",(function(){return he})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return Te})),n.d(t,"u",(function(){return _})),n.d(t,"v",(function(){return k})),n.d(t,"x",(function(){return je})),n.d(t,"y",(function(){return S})),n.d(t,"z",(function(){return Ie})),n.d(t,"A",(function(){return He})),n.d(t,"B",(function(){return De})),n.d(t,"C",(function(){return Re})),n.d(t,"D",(function(){return ze}));let r=v();const i=e=>h(e,r);let a=v();i.write=e=>h(e,a);let o=v();i.onStart=e=>h(e,o);let s=v();i.onFrame=e=>h(e,s);let c=v();i.onFinish=e=>h(e,c);let l=[];i.setTimeout=(e,t)=>{let n=i.now()+t,r=()=>{let e=l.findIndex(e=>e.cancel==r);~e&&l.splice(e,1),y.count-=~e?1:0},a={time:n,handler:e,cancel:r};return l.splice(u(n),0,a),y.count+=1,m(),a};let u=e=>~(~l.findIndex(t=>t.time>e)||~l.length);i.cancel=e=>{r.delete(e),a.delete(e)},i.sync=e=>{p=!0,i.batchedUpdates(e),p=!1},i.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,i.onStart(n)}return r.handler=e,r.cancel=()=>{o.delete(n),t=null},r};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};i.use=e=>d=e,i.now="undefined"!=typeof performance?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):g()};let f=-1,p=!1;function h(e,t){p?(t.delete(e),e(0)):(t.add(e),m())}function m(){f<0&&(f=0,"demand"!==i.frameLoop&&d(b))}function b(){~f&&(d(b),i.batchedUpdates(g))}function g(){let e=f;f=i.now();let t=u(f);t&&(O(l.splice(0,t),e=>e.handler()),y.count-=t),o.flush(),r.flush(e?Math.min(64,f-e):16.667),s.flush(),a.flush(),c.flush()}function v(){let e=new Set,t=e;return{add(n){y.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(y.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,y.count-=t.size,O(t,t=>t(n)&&e.add(t)),y.count+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){i.catch(e)}})}const y={count:0,clear(){f=-1,l=[],o=v(),r=v(),s=v(),a=v(),c=v(),y.count=0}};var j=n(4);function k(){}const w=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function _(e,t){if(E.arr(e)){if(!E.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const C=(e,t)=>e.forEach(t);function x(e,t,n){for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const S=e=>E.und(e)?[]:E.arr(e)?e:[e];function N(e,t){if(e.size){const n=Array.from(e);e.clear(),C(n,t)}}const L=(e,...t)=>N(e,e=>e(...t));let P,F,M=null,A=!1,T=k;var R=Object.freeze({__proto__:null,get createStringInterpolator(){return P},get to(){return F},get colors(){return M},get skipAnimation(){return A},get willAdvance(){return T},assign:e=>{e.to&&(F=e.to),e.now&&(i.now=e.now),void 0!==e.colors&&(M=e.colors),null!=e.skipAnimation&&(A=e.skipAnimation),e.createStringInterpolator&&(P=e.createStringInterpolator),e.requestAnimationFrame&&i.use(e.requestAnimationFrame),e.batchedUpdates&&(i.batchedUpdates=e.batchedUpdates),e.willAdvance&&(T=e.willAdvance),e.frameLoop&&(i.frameLoop=e.frameLoop)}});const V=new Set;let I=[],B=[],D=0;const z={get idle(){return!V.size&&!I.length},start(e){D>e.priority?(V.add(e),i.onStart(H)):(W(e),i($))},advance:$,sort(e){if(D)i.onFrame(()=>z.sort(e));else{const t=I.indexOf(e);~t&&(I.splice(t,1),U(e))}},clear(){I=[],V.clear()}};function H(){V.forEach(W),V.clear(),i($)}function W(e){I.includes(e)||U(e)}function U(e){I.splice(function(t,n){const r=t.findIndex(t=>t.priority>e.priority);return r<0?t.length:r}(I),0,e)}function $(e){const t=B;for(let n=0;n<I.length;n++){const r=I[n];D=r.priority,r.idle||(T(r),r.advance(e),r.idle||t.push(r))}return D=0,B=I,B.length=0,I=t,I.length>0}const q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function K(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const G=new RegExp("rgb"+K(Z,Z,Z)),X=new RegExp("rgba"+K(Z,Z,Z,Z)),Q=new RegExp("hsl"+K(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),J=new RegExp("hsla"+K(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),Y=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,te=/^#([0-9a-fA-F]{6})$/,ne=/^#([0-9a-fA-F]{8})$/;function re(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ie(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=re(i,r,e+1/3),o=re(i,r,e),s=re(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function ae(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function oe(e){return(parseFloat(e)%360+360)%360/360}function se(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ce(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function le(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=te.exec(e))?parseInt(t[1]+"ff",16)>>>0:M&&void 0!==M[e]?M[e]:(t=G.exec(e))?(ae(t[1])<<24|ae(t[2])<<16|ae(t[3])<<8|255)>>>0:(t=X.exec(e))?(ae(t[1])<<24|ae(t[2])<<16|ae(t[3])<<8|se(t[4]))>>>0:(t=Y.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ne.exec(e))?parseInt(t[1],16)>>>0:(t=ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Q.exec(e))?(255|ie(oe(t[1]),ce(t[2]),ce(t[3])))>>>0:(t=J.exec(e))?(ie(oe(t[1]),ce(t[2]),ce(t[3]))|se(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const ue=(e,t,n)=>{if(E.fun(e))return e;if(E.arr(e))return ue({range:e,output:t,extrapolate:n});if(E.str(e.output[0]))return P(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if("identity"===o)return l;"clamp"===o&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,a[t],a[t+1],i[t],i[t+1],c,o,s,r.map)}};function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const fe=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),he=e=>Boolean(e&&e[fe]),me=e=>e&&e[fe]?e[fe]():e,be=e=>e[pe]||null;function ge(e,t){let n=e[pe];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}class ve{constructor(e){if(this[fe]=void 0,this[pe]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Oe(this,e)}}const Oe=(e,t)=>ke(e,fe,t);function ye(e,t){if(e[fe]){let n=e[pe];n||ke(e,pe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function je(e,t){let n=e[pe];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[pe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const ke=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),we=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ee=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;let _e;const Ce=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,xe=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Se=e=>{_e||(_e=M?new RegExp(`(${Object.keys(M).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>me(e).replace(Ee,le).replace(_e,le)),n=t.map(e=>e.match(we).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ue(de({},e,{output:t})));return e=>{let n=0;return t[0].replace(we,()=>String(r[n++](e))).replace(Ce,xe)}},Ne="react-spring: ",Le=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(Ne+"once requires a function parameter");return(...e)=>{n||(t(...e),n=!0)}},Pe=Le(console.warn);function Fe(){Pe(Ne+'The "interpolate" function is deprecated in v9 (use "to" instead)')}const Me=Le(console.warn);function Ae(){Me(Ne+'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions')}function Te(e){return E.str(e)&&("#"==e[0]||/\d/.test(e)||e in(M||{}))}const Re=e=>Object(j.useEffect)(e,Ve),Ve=[];function Ie(){const e=Object(j.useState)()[1],t=Object(j.useState)(Be)[0];return Re(t.unmount),()=>{t.current&&e({})}}function Be(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function De(e,t){const[n]=Object(j.useState)(()=>({inputs:t,result:e()})),r=Object(j.useRef)(),i=r.current;let a=i;return a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n,Object(j.useEffect)(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function ze(e){const t=Object(j.useRef)();return Object(j.useEffect)(()=>{t.current=e}),t.current}const He="undefined"!=typeof window&&window.document&&window.document.createElement?j.useLayoutEffect:j.useEffect},function(e,t,n){"use strict";n.d(t,"b",(function(){return m}));var r=n(11),i=n.n(r),a=n(0),o=n(1),s=n(5),c=n.n(s),l=n(44),u=n.n(l),d=n(7),f=n(8);const p=n(51);p.keys().forEach(p);const h=e=>{let t=p.keys().map(e=>e.replace(/^\.\//,"").replace(/\.js$/,"")).indexOf(e);return t>-1&&p.keys()[t]},m=e=>{const t={};return h(e.type)?p(h(e.type)).default:t[e.type]?t[e.type]:null},b=({option:e,value:t})=>void 0===t?e.value:t;t.a=({option:e,value:t,values:n,onChange:r,onChangeFor:s,hasRevertButton:l,id:p,purpose:h})=>{const[g,v]=Object(a.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),O=()=>{v(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")},y=e=>{v(e),wp.customize&&wp.customize.previewedDevice.set(e)};Object(a.useEffect)(()=>{if(("ct-typography"===e.type||Object(f.d)(e))&&wp.customize)return setTimeout(()=>wp.customize.previewedDevice.bind(O),1e3),()=>{("ct-typography"===e.type||Object(f.d)(e))&&wp.customize&&wp.customize.previewedDevice.unbind(O)}},[]);let j=m(e),k={content:null,option:e};const w=Object(f.e)(b({value:t,option:e}),Object(f.d)(e)),E=Object(f.d)(e,{ignoreHidden:!0})?Object(f.b)({option:e,value:w,device:g}):w,_=t=>{e.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),e.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==e.switchDeviceOnChange&&wp.customize.previewedDevice.set(e.switchDeviceOnChange),e.sync&&(Object.keys(e.sync).length>0||Array.isArray(e.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:e.sync.id||e.id,option:e}),r(t)},C=n=>{const r=Object(f.e)(b({value:t,option:e}),Object(f.d)(e));_(Object(f.d)(e,{ignoreHidden:!0})?{...r,["tablet"===g&&"skip"===Object(f.c)("tablet",e.responsive)?"mobile":g]:n,..."desktop"===g?Object.keys(r).reduce((t,i)=>({...t,..."desktop"!==i&&"__changed"!==i&&Object.keys(Object(f.e)(e.value)).reduce((t,n)=>!!t&&Object(f.e)(e.value)[n]===Object(f.e)(e.value).desktop,!0)&&-1===(r.__changed||[]).indexOf("tablet")?{[i]:n}:{}}),{}):{},..."tablet"===g&&"skip"!==Object(f.c)("tablet",e.responsive)?Object.keys(r).reduce((t,i)=>({...t,..."desktop"!==i&&"tablet"!==i&&"__changed"!==i&&Object.keys(Object(f.e)(e.value)).reduce((t,n)=>!!t&&Object(f.e)(e.value)[n]===Object(f.e)(e.value).desktop,!0)&&-1===(r.__changed||[]).indexOf(i)?{[i]:n}:{}}),{}):{},__changed:[...r.__changed||[],..."desktop"!==g?[g]:[]].filter((e,t,n)=>n.indexOf(e)===t)}:n)};if(!j)return Object(a.createElement)("div",null,"Unimplemented option: ",e.type);let x={design:!0,label:!0,wrapperAttr:{}},S=()=>null,N=null,L=()=>null,P=()=>({});x={...x,...j.renderingConfig||{}},e.design&&(x.design=e.design),j.LabelToolbar&&(S=j.LabelToolbar),j.ControlEnd&&(L=j.ControlEnd),j.MetaWrapper&&(N=j.MetaWrapper),j.sectionClassName&&(P=j.sectionClassName);let F=Object(a.createElement)(a.Fragment,null,k&&k.content,Object(a.createElement)(j,{key:p,option:{...e,value:Object(f.d)(e,{ignoreHidden:!0})?Object(f.b)({device:g,option:e,value:Object(f.e)(e.value||"")}):Object(f.e)(e.value||"",Object(f.d)(e))},value:E,id:p,values:n,onChangeFor:s,device:g,onChange:C}));if(!x.design||"none"===x.design)return F;let M=Object(d.d)({id:p,option:e,values:n,renderingConfig:x}),A=-1!==Object.keys(e).indexOf("desc")&&e.desc,T=-1!==Object.keys(e).indexOf("link")&&(e.link||" ");const R="boolean"==typeof x.design?"block":x.design;if("compact"===x.design)return Object(a.createElement)("section",e.sectionAttr||{},M&&Object(a.createElement)("label",null,M),(Object(f.d)(e)&&Object(f.c)(g,e.responsive)||!Object(f.d)(e))&&F,T&&Object(a.createElement)("a",i()({dangerouslySetInnerHTML:{__html:T}},e.linkAttr||{})));const V=({wrapperAttr:{className:n,...r}={},...s}={})=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",i()({className:c()("ct-control",n,{}),"data-design":R},e.divider?{"data-divider":e.divider}:{},Object(f.d)(e)&&!Object(f.c)(g,e.responsive)||"disabled"===e.state?{"data-state":"disabled"}:{},e.wrapperAttr||{},r),Object(a.createElement)("header",null,M&&Object(a.createElement)("label",null,M),"ct-image-picker"!==e.type&&"ct-layers"!==e.type&&"ct-image-uploader"!==e.type&&"ct-panel"!==e.type&&l&&!e.disableRevertButton&&Object(a.createElement)("button",{type:"button",disabled:u()(e.value,b({value:t,option:e})),className:"rara-revert",onClick:()=>_(e.value)}),Object(a.createElement)(S,{option:e,value:E,id:p,onChange:C}),Object(f.d)(e,{ignoreHidden:!0})&&R.indexOf("block")>-1&&Object(a.createElement)(f.a,{device:g,responsiveDescriptor:e.responsive,setDevice:y})),Object(f.d)(e)&&!Object(f.c)(g,e.responsive)&&Object(a.createElement)("div",{className:"ct-disabled-notification"},e.disabledDeviceMessage||Object(o.__)("Option can't be edited for current device","affiliatex")),(Object(f.d)(e)&&Object(f.c)(g,e.responsive)||!Object(f.d)(e))&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("section",i()({},e.sectionAttr||{},{className:c()({"ct-responsive-container":Object(f.d)(e,{ignoreHidden:!0})&&"inline"===R},P({design:R,option:e}),(e.sectionAttr||{}).class||"")}),Object(f.d)(e,{ignoreHidden:!0})&&"inline"===R&&Object(a.createElement)(f.a,{device:g,responsiveDescriptor:e.responsive,setDevice:y}),F,T&&Object(a.createElement)("a",i()({dangerouslySetInnerHTML:{__html:T}},e.linkAttr||{}))),Object(a.createElement)(L,null),A&&Object(a.createElement)("div",{dangerouslySetInnerHTML:{__html:A},className:"ct-option-description"}))));return N?Object(a.createElement)(N,{id:p,option:e,value:E,onChangeFor:s,values:n,getActualOption:V}):V()}},function(e,t){e.exports=window.React},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&e.push(o)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return l})),n.d(t,"t",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"r",(function(){return f})),n.d(t,"s",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"l",(function(){return g})),n.d(t,"g",(function(){return v})),n.d(t,"f",(function(){return O})),n.d(t,"h",(function(){return y})),n.d(t,"n",(function(){return j})),n.d(t,"b",(function(){return k}));var r="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},a=Array.prototype,o=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,l=a.slice,u=o.toString,d=o.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,m=Object.keys,b=Object.create,g=f&&ArrayBuffer.isView,v=isNaN,O=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1}).call(this,n(46))},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n(21);const i=({id:e,option:t,values:n,renderingConfig:i})=>{let a=-1===Object.keys(t).indexOf("label")?(o=e,(o=null==o?"":String(o)).charAt(0).toUpperCase()+o.slice(1)).replace(/\_|\-/g," "):t.label;var o;return a!==a.toString()&&(a=Object.keys(a).reduce((e,t)=>e||(Object(r.a)(Object(r.b)(a[t]),n)?t:e),null)||Object.keys(a)[0]),""===a&&(a=!0),i&&!i.label&&(a=!1),a},a=e=>!0===e.enable&&(e.inset?"inset":"")+" "+e.h_offset+"px "+e.v_offset+"px "+e.blur+"px "+e.spread+"px "+e.color.color+";",o=e=>100*e.split("")[1],s=e=>{var t=e.split("");return"n"===t[0]?"normal":"i"===t[0]?"italic":"Default"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(0),i=n(5),a=n.n(i),o=n(3),s=n(41);n.d(t,"e",(function(){return s.maybePromoteScalarValueIntoResponsive}));const c=(e,t)=>({desktop:!0,tablet:!0,mobile:!0,..."boolean"==typeof t?{}:t||{}}[e]),l=(e,t={})=>{let{ignoreHidden:n=!1}=t,r=Object(o.b)(e);return!(null==r||!r.hiddenResponsive||n)||!!e.responsive},u=({value:e,option:t,device:n})=>"tablet"===n&&"skip"===c(n,t.responsive)?e.mobile:e[n];t.a=({device:e,setDevice:t,responsiveDescriptor:n})=>Object(r.createElement)("div",{className:"ct-control-options"},Object(r.createElement)("ul",{className:"ct-responsive-controls ct-devices"},["desktop","tablet","mobile"].filter(e=>"skip"!==c(e,n)).map(i=>Object(r.createElement)("li",{onClick:()=>t(i),className:a()({active:i===e,"ct-disabled":!c(i,n)},"ct-"+i),key:i}))))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return s}));var r=n(2),i=n(4);const a=Symbol.for("Animated:node"),o=e=>e&&e[a],s=(e,t)=>Object(r.h)(e,a,t),c=e=>e&&e[a]&&e[a].getPayload();class l{constructor(){this.payload=void 0,s(this,this)}getPayload(){return this.payload||[]}}class u extends l{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,r.s.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new u(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return r.s.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,r.s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class d extends u{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Object(r.f)({output:[e,e]})}static create(e){return new d(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(r.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Object(r.f)({output:[this.getValue(),e]})),this._value=0,super.reset()}}const f={dependencies:null};class p extends l{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Object(r.l)(this.source,(n,i)=>{var o;(o=n)&&o[a]===o?t[i]=n.getValue(e):Object(r.r)(n)?t[i]=Object(r.q)(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Object(r.k)(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Object(r.l)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){f.dependencies&&Object(r.r)(e)&&f.dependencies.add(e);const t=c(e);t&&Object(r.k)(t,e=>this.add(e))}}class h extends p{constructor(e){super(e)}static create(e){return new h(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(m)),!0)}}function m(e){return(Object(r.t)(e)?d:u).create(e)}function b(e){const t=o(e);return t?t.constructor:r.s.arr(e)?h:Object(r.t)(e)?d:u}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const v=(e,t)=>{const n=!r.s.fun(e)||e.prototype&&e.prototype.isReactComponent;return Object(i.forwardRef)((a,o)=>{const s=Object(i.useRef)(null),c=n&&Object(i.useCallback)(e=>{s.current=function(e,t){return e&&(r.s.fun(e)?e(t):e.current=t),t}(o,e)},[o]),[l,u]=function(e,t){const n=new Set;return f.dependencies=n,e.style&&(e=g({},e,{style:t.createAnimatedStyle(e.style)})),e=new p(e),f.dependencies=null,[e,n]}(a,t),d=Object(r.z)(),h=()=>{const e=s.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},m=new O(h,u),b=Object(i.useRef)();Object(r.A)(()=>{const e=b.current;b.current=m,Object(r.k)(u,e=>Object(r.c)(e,m)),e&&(Object(r.k)(e.deps,t=>Object(r.x)(t,e)),r.w.cancel(e.update))}),Object(i.useEffect)(h,[]),Object(r.C)(()=>()=>{const e=b.current;Object(r.k)(e.deps,t=>Object(r.x)(t,e))});const v=t.getComponentProps(l.getValue());return i.createElement(e,g({},v,{ref:c}))})};class O{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&r.w.write(this.update)}}const y=Symbol.for("AnimatedComponent"),j=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new p(e)),getComponentProps:i=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},o=e=>{const t=k(e)||"Anonymous";return(e=r.s.str(e)?o[e]||(o[e]=v(e,a)):e[y]||(e[y]=v(e,a))).displayName=`Animated(${t})`,e};return Object(r.l)(e,(t,n)=>{r.s.arr(e)&&(n=k(t)),o[n]=o(t)}),{animated:o}},k=e=>r.s.str(e)?e:e&&r.s.str(e.displayName)?e.displayName:r.s.fun(e)&&e.name||null},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"w",(function(){return i})),n.d(t,"s",(function(){return a})),n.d(t,"x",(function(){return o})),n.d(t,"t",(function(){return s})),n.d(t,"u",(function(){return l})),n.d(t,"v",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"p",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"r",(function(){return g})),n.d(t,"o",(function(){return v})),n.d(t,"h",(function(){return O})),n.d(t,"l",(function(){return y})),n.d(t,"n",(function(){return j})),n.d(t,"i",(function(){return k})),n.d(t,"j",(function(){return w})),n.d(t,"q",(function(){return E})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return C})),n.d(t,"g",(function(){return x}));var r=n(0);n(4);const i=()=>Object(r.createElement)("svg",{width:"200",height:"264",viewBox:"0 0 200 264",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.252 259.342C120.708 262.368 110.545 264 100 264C91.5906 264 83.4235 262.962 75.6201 261.007C75.8681 260.046 76 259.038 76 258C76 251.733 71.1959 246.588 65.0696 246.047C65.674 244.139 66 242.108 66 240C66 228.954 57.0457 220 46 220C42.886 220 39.9383 220.712 37.3105 221.981C35.6579 217.33 31.2179 214 26 214C22.0547 214 18.5541 215.904 16.3669 218.843C6.01953 203.096 0 184.251 0 164C0 108.772 44.7715 64 100 64C155.228 64 200 108.772 200 164C200 182.678 194.879 200.16 185.965 215.118C184.095 210.924 179.889 208 175 208C170.051 208 165.802 210.996 163.967 215.272C160.818 213.204 157.05 212 153 212C141.954 212 133 220.954 133 232C133 236.05 134.204 239.818 136.272 242.967C131.996 244.802 129 249.051 129 254C129 255.919 129.451 257.734 130.252 259.342ZM172.997 232.348C173.138 232.198 173.278 232.048 173.418 231.897C173.277 231.878 173.138 231.857 172.999 231.834C173 231.889 173 231.945 173 232C173 232.116 172.999 232.232 172.997 232.348Z",fill:"#26D8FF"}),Object(r.createElement)("path",{d:"M111 111.472C111 109.242 113.347 107.792 115.342 108.789L138.983 120.61C144.873 123.555 148.153 129.997 147.071 136.492L140.031 178.733C139.673 180.881 137.219 181.944 135.407 180.736L112.336 165.355C111.501 164.799 111 163.862 111 162.859V111.472Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M90 111.472C90 109.242 87.6531 107.792 85.6584 108.789L62.0168 120.61C56.127 123.555 52.8465 129.997 53.9291 136.492L60.9694 178.733C61.3273 180.881 63.7813 181.944 65.5926 180.736L88.6641 165.355C89.4987 164.799 90 163.862 90 162.859V111.472Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M118.625 157H82.8913C79.7186 157 76.9824 154.897 76.2642 151.845C74.4948 144.325 71.5245 130.451 69.6681 115.045C67.8093 99.6197 67.0786 82.7464 69.7394 69.1926C73.1658 51.7394 84.0696 30.319 92.2057 16.0467C96.0887 9.23522 105.428 9.23522 109.311 16.0467C117.447 30.319 128.351 51.7394 131.777 69.1926C134.438 82.7464 133.707 99.6197 131.848 115.045C129.992 130.451 127.021 144.325 125.252 151.845C124.534 154.897 121.798 157 118.625 157Z",fill:"white",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M123.333 43.7511C123.011 43.8023 122.633 43.8615 122.206 43.927C120.713 44.1559 118.626 44.4613 116.249 44.7673C111.483 45.3808 105.596 45.9906 100.998 46C96.3074 46.0096 90.2998 45.3999 85.4365 44.7816C83.0109 44.4732 80.8811 44.1642 79.358 43.9323C78.9113 43.8642 78.5168 43.8029 78.1826 43.7501C82.5891 33.5843 87.8067 23.7631 92.201 16.0544C96.0838 9.24285 105.432 9.24285 109.315 16.0544C113.709 23.7634 118.927 33.585 123.333 43.7511Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M86.392 174L114.608 174C115.548 174 116.358 174.43 116.778 175.148C118.436 177.981 121.487 184.507 120.934 193.438C120.455 201.171 117.233 208.861 113.399 215.433C109.571 221.995 105.175 227.369 102.436 230.458C101.381 231.647 99.6187 231.647 98.5643 230.458C95.8248 227.369 91.4294 221.995 87.6013 215.433C83.767 208.861 80.545 201.171 80.0661 193.438C79.5131 184.508 82.5642 177.981 84.2215 175.148C84.6418 174.43 85.4515 174 86.392 174Z",fill:"#FFB800",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M107.797 180L93.2034 180C91.917 180 90.7071 180.62 90.1461 181.778C89.1292 183.876 87.7481 187.727 88.0396 192.77C88.5507 201.615 94.2718 210.248 97.7815 214.763C99.1912 216.576 101.809 216.576 103.218 214.763C106.728 210.248 112.449 201.615 112.96 192.77C113.252 187.727 111.871 183.876 110.854 181.778C110.293 180.62 109.083 180 107.797 180Z",fill:"#E7A600"}),Object(r.createElement)("path",{d:"M77.3099 159.382C77.6022 157.994 78.8269 157 80.2456 157H121.754C123.173 157 124.398 157.994 124.69 159.382L127.006 170.382C127.398 172.247 125.976 174 124.07 174H77.9298C76.0243 174 74.6016 172.247 74.9941 170.382L77.3099 159.382Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("circle",{cx:"101",cy:"71",r:"14",fill:"#A9F0FF",stroke:"#185C6A",strokeWidth:"4"})),a=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#E7EFFF"}),Object(r.createElement)("path",{d:"M16 31.5C16 30.837 16.2634 30.2011 16.7322 29.7322C17.2011 29.2634 17.837 29 18.5 29H32",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M18.5 14H32V34H18.5C17.837 34 17.2011 33.7366 16.7322 33.2678C16.2634 32.7989 16 32.163 16 31.5V16.5C16 15.837 16.2634 15.2011 16.7322 14.7322C17.2011 14.2634 17.837 14 18.5 14V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),o=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#FFE7E7"}),Object(r.createElement)("path",{d:"M34.54 18.42C34.4212 17.9454 34.1793 17.5106 33.8387 17.1594C33.498 16.8082 33.0708 16.5532 32.6 16.42C30.88 16 24 16 24 16C24 16 17.12 16 15.4 16.46C14.9293 16.5932 14.502 16.8482 14.1614 17.1994C13.8207 17.5506 13.5788 17.9854 13.46 18.46C13.1452 20.2056 12.9912 21.9763 13 23.75C12.9888 25.537 13.1428 27.3213 13.46 29.08C13.591 29.5398 13.8383 29.9581 14.1782 30.2945C14.518 30.6308 14.9388 30.8738 15.4 31C17.12 31.46 24 31.46 24 31.46C24 31.46 30.88 31.46 32.6 31C33.0708 30.8668 33.498 30.6118 33.8387 30.2606C34.1793 29.9094 34.4212 29.4746 34.54 29C34.8524 27.2676 35.0063 25.5103 35 23.75C35.0112 21.963 34.8572 20.1787 34.54 18.42V18.42Z",stroke:"#F13A3A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21.75 27.02L27.5 23.75L21.75 20.48V27.02Z",stroke:"#F13A3A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),s=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#D7F9DF"}),Object(r.createElement)("path",{d:"M24 34C29.5228 34 34 29.5228 34 24C34 18.4772 29.5228 14 24 14C18.4772 14 14 18.4772 14 24C14 29.5228 18.4772 34 24 34Z",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M24 28C26.2091 28 28 26.2091 28 24C28 21.7909 26.2091 20 24 20C21.7909 20 20 21.7909 20 24C20 26.2091 21.7909 28 24 28Z",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M16.93 16.9302L21.17 21.1702",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M26.83 26.8301L31.07 31.0701",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M26.83 21.1702L31.07 16.9302",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M26.83 21.1701L30.36 17.6401",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M16.93 31.0701L21.17 26.8301",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),c=()=>Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M8.00016 14.6663C11.6821 14.6663 14.6668 11.6816 14.6668 7.99967C14.6668 4.31778 11.6821 1.33301 8.00016 1.33301C4.31826 1.33301 1.3335 4.31778 1.3335 7.99967C1.3335 11.6816 4.31826 14.6663 8.00016 14.6663Z",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 5.33301V7.99967",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 10.667H8.00667",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),l=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{clipPath:"url(#clip0)"},Object(r.createElement)("path",{d:"M31 19.4826L25 9.09011L24 7.36011L23 9.09011L17 19.4826L3.99998 42.0001H18L24 31.6076L30 42.0001H44L31 19.4826ZM24 27.6076L19.31 19.4826L22.36 14.2001L24 11.3601L28.5475 19.2326L28.69 19.4826L24 27.6076ZM22.2675 30.6076L16.845 40.0001H7.46498L18.155 21.4826L22.845 29.6076L22.2675 30.6076ZM32 40.0001H31.155L25.7325 30.6076L25.155 29.6076L29.845 21.4826L40.535 40.0001H32Z",fill:"white"})),Object(r.createElement)("defs",null,Object(r.createElement)("clipPath",{id:"clip0"},Object(r.createElement)("rect",{width:"40",height:"34.64",fill:"white",transform:"translate(4 7)"})))),u=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M21 4H3C1.89543 4 1 4.89543 1 6V18C1 19.1046 1.89543 20 3 20H21C22.1046 20 23 19.1046 23 18V6C23 4.89543 22.1046 4 21 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M7 12L17 12",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),d=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M9 16C9 19.866 12.134 23 16 23C19.866 23 23 19.866 23 16C23 12.134 19.866 9 16 9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M18.4 13.6001L13.6 18.4001",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M13.6 13.6001L18.4 18.4001",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M11 6L7.5625 9L6 7.5",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),f=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M9 15L12.3329 23L13.5162 19.5162L17 18.3329L9 15Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M14 20L17 23",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20 20H21C22.1046 20 23 19.1046 23 18V6C23 4.89543 22.1046 4 21 4H3C1.89543 4 1 4.89543 1 6V18C1 19.1046 1.89543 20 3 20H7",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),p=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M18 8C18 6.4087 17.3679 4.88258 16.2426 3.75736C15.1174 2.63214 13.5913 2 12 2C10.4087 2 8.88258 2.63214 7.75736 3.75736C6.63214 4.88258 6 6.4087 6 8C6 15 3 17 3 17H21C21 17 18 15 18 8Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M13.73 21C13.5542 21.3031 13.3018 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),h=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M2 21C2 19.3431 3.34315 18 5 18H9C10.6569 18 12 19.3431 12 21V22H2V21Z",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M13.7867 10.9196L10.5341 14.1723C10.309 14.3973 10.0187 14.5386 9.72695 14.5652C9.43521 14.5917 9.16596 14.5012 8.97842 14.3137L5.44289 10.7782C5.25535 10.5906 5.16489 10.3214 5.19141 10.0296C5.21794 9.73789 5.35926 9.44756 5.58431 9.22252L12.3725 2.43429C12.5976 2.20925 12.8879 2.06792 13.1796 2.0414C13.4714 2.01488 13.7406 2.10533 13.9282 2.29287L17.4637 5.8284C17.6512 6.01594 17.7417 6.28519 17.7152 6.57693C17.6887 6.86867 17.5473 7.159 17.3223 7.38404L14.0696 10.6367",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M12.5139 12.1924L15.3424 9.36396L21.7063 15.7279C22.0969 16.1184 22.0969 16.7516 21.7063 17.1421L20.2921 18.5563C19.9016 18.9469 19.2684 18.9469 18.8779 18.5563L12.5139 12.1924Z",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}))),m=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M21 9V20H3V9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20 4H4C2.89543 4 2 4.89543 2 6V8C2 8.55228 2.44772 9 3 9H21C21.5523 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}))),b=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M10 22H6C5.46957 22 4.96086 21.7893 4.58579 21.4142C4.21071 21.0391 4 20.5304 4 20V4C4 3.46957 4.21071 2.96086 4.58579 2.58579C4.96086 2.21071 5.46957 2 6 2H14L20 8C20 8 20 8.21895 20 9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M15 17.25L16.3333 18.5L19 16",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M14 2V8H20",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M9 13H8",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M10 9H9H8",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("circle",{cx:"17",cy:"17",r:"5",stroke:"#2670FF",strokeWidth:"2"}))),g=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M18.2222 1H5.77778C4.79594 1 4 2.09441 4 3.44444V20.5556C4 21.9056 4.79594 23 5.77778 23H18.2222C19.2041 23 20 21.9056 20 20.5556V3.44444C20 2.09441 19.2041 1 18.2222 1Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M12 1L12 23",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M7 12H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M7 7H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M15 12H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M15 7H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M7 17H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M15 17H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}))),v=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M21 9V20H3V13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M11 9C16.3444 9 19.5252 9 21.001 9C21.5533 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4H13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M5 1L6.236 3.63302L9 4.05783L7 6.1062L7.472 9L5 7.63302L2.528 9L3 6.1062L1 4.05783L3.764 3.63302L5 1Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),O=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{x:"3",y:"18",width:"18",height:"4",rx:"1",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 8C8.55228 8 9 7.55228 9 7C9 6.44772 8.55228 6 8 6C7.44772 6 7 6.44772 7 7C7 7.55228 7.44772 8 8 8Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21 9.63636L16.9375 6L8 14",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("rect",{x:"3",y:"2",width:"18",height:"12",rx:"2",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}))),y=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M1 9H0C0 9.55228 0.447715 10 1 10L1 9ZM1 15V14C0.447715 14 0 14.4477 0 15H1ZM2 6C2 5.44771 2.44771 5 3 5V3C1.34315 3 0 4.34314 0 6H2ZM2 9V6H0V9H2ZM5 12C5 9.79086 3.20914 8 1 8V10C2.10457 10 3 10.8954 3 12H5ZM1 16C3.20914 16 5 14.2091 5 12H3C3 13.1046 2.10457 14 1 14V16ZM2 18V15H0V18H2ZM3 19C2.44771 19 2 18.5523 2 18H0C0 19.6569 1.34315 21 3 21V19ZM21 19H3V21H21V19ZM22 18C22 18.5523 21.5523 19 21 19V21C22.6569 21 24 19.6569 24 18H22ZM22 6V18H24V6H22ZM21 5C21.5523 5 22 5.44772 22 6H24C24 4.34315 22.6569 3 21 3V5ZM3 5H21V3H3V5Z",fill:"#2670FF"}),Object(r.createElement)("path",{d:"M15 9L9 15",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M9 10C9.55228 10 10 9.55228 10 9C10 8.44772 9.55228 8 9 8C8.44772 8 8 8.44772 8 9C8 9.55228 8.44772 10 9 10Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M15 16C15.5523 16 16 15.5523 16 15C16 14.4477 15.5523 14 15 14C14.4477 14 14 14.4477 14 15C14 15.5523 14.4477 16 15 16Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),j=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M18.5 23C21.5376 23 24 20.5376 24 17.5C24 14.4624 21.5376 12 18.5 12C15.4624 12 13 14.4624 13 17.5C13 20.5376 15.4624 23 18.5 23Z",fill:"#2670FF"}),Object(r.createElement)("path",{d:"M21 9V20H3V9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20 4H4C2.89543 4 2 4.89543 2 6V8C2 8.55228 2.44772 9 3 9H21C21.5523 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20.5 15.5L16.5 19.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M16.5 15.5L20.5 19.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M5.5 23C8.53757 23 11 20.5376 11 17.5C11 14.4624 8.53757 12 5.5 12C2.46243 12 0 14.4624 0 17.5C0 20.5376 2.46243 23 5.5 23Z",fill:"#2670FF"}),Object(r.createElement)("path",{d:"M8 16L4.5625 19L3 17.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),k=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3 9H21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3 15H21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M9 10L9 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M15 10L15 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),w=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("line",{x1:"6",y1:"6",x2:"8",y2:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("line",{x1:"16",y1:"6",x2:"18",y2:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M2 9H20C21.1046 9 22 9.89543 22 11V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19V9Z",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M2 5C2 3.89543 2.89543 3 4 3H10C11.1046 3 12 3.89543 12 5V9H2V5Z",stroke:"#2670FF",strokeWidth:"2"}))),E=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{x:"1",y:"5",width:"23",height:"14",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("rect",{x:"20",y:"9",width:"4",height:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("rect",{x:"1",y:"9",width:"4",height:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"13",y1:"5",x2:"13",y2:"11",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("line",{x1:"13",y1:"12",x2:"13",y2:"18",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("circle",{cx:"13",cy:"12",r:"1",stroke:"#2670FF",strokeWidth:"2"}))),_=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M10 3H3V10H10V3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21 3H14V10H21V3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21 14H14V21H21V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M10 14H3V21H10V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),C=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M8.04346 6H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8.04346 12H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8.04346 18H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3.04346 6H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3.04346 12H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3.04346 18H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),x=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M1 5V4C0.447715 4 0 4.44772 0 5H1ZM1 19H0C0 19.5523 0.447715 20 1 20L1 19ZM7 4C6.44772 4 6 4.44772 6 5C6 5.55228 6.44772 6 7 6V4ZM3 6C3.55228 6 4 5.55228 4 5C4 4.44772 3.55228 4 3 4V6ZM0 6.75C0 7.30228 0.447715 7.75 1 7.75C1.55228 7.75 2 7.30228 2 6.75H0ZM2 10.25C2 9.69772 1.55228 9.25 1 9.25C0.447715 9.25 0 9.69772 0 10.25H2ZM0 13.75C0 14.3023 0.447715 14.75 1 14.75C1.55228 14.75 2 14.3023 2 13.75H0ZM2 17.25C2 16.6977 1.55228 16.25 1 16.25C0.447715 16.25 0 16.6977 0 17.25H2ZM3 20C3.55228 20 4 19.5523 4 19C4 18.4477 3.55228 18 3 18V20ZM7 18C6.44772 18 6 18.4477 6 19C6 19.5523 6.44772 20 7 20V18ZM9 4H7V6H9V4ZM3 4H1V6H3V4ZM0 5V6.75H2V5H0ZM0 10.25V13.75H2V10.25H0ZM0 17.25V19H2V17.25H0ZM1 20H3V18H1V20ZM7 20H9V18H7V20Z",fill:"#2670FF"}),Object(r.createElement)("rect",{x:"12",y:"5",width:"11",height:"14",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"12",y1:"3",x2:"12",y2:"21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"})))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),i=n.n(r),a=n(14),o=n.n(a),s=n(0),c=n(5),l=n.n(c);const u=(e,t)=>{"function"==typeof e?e(t):e.current=t};class d extends s.Component{constructor(...e){super(...e),o()(this,"childNode",Object(s.createRef)()),o()(this,"checkIsInside",e=>[this.childNode,...this.props.additionalRefs||[]].reduce((t,n)=>t||(n&&n.current?n.current.contains(e.target):t),!1)),o()(this,"onMouseDown",e=>{const{useCapture:t}=this.props;this.checkIsInside(e)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),document.addEventListener("mouseup",this.onMouseUp,t),this.removeMouseUp=()=>{document.removeEventListener("mouseup",this.onMouseUp,t)})}),o()(this,"onMouseUp",e=>{const{onOutsideClick:t}=this.props;this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.checkIsInside(e)||t(e)}),o()(this,"setChildNodeRef",e=>{this.props.wrapperProps&&this.props.wrapperProps.ref&&u(this.props.wrapperProps.ref,e),u(this.childNode,e)})}componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}UNSAFE_componentWillReceiveProps({disabled:e,useCapture:t}){const{disabled:n}=this.props;n!==e&&(e?this.removeEventListeners():this.addMouseDownEventListener(t))}componentWillUnmount(){this.removeEventListeners()}addMouseDownEventListener(e){document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=()=>{document.removeEventListener("mousedown",this.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:n,wrapperProps:r}=this.props;return Object(s.createElement)("div",i()({className:l()(n)},r||{},{ref:this.setChildNodeRef}),e)}}d.defaultProps={disabled:!1,useCapture:!0,display:"block"}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c}));const r=e=>"System Default"===e?"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'":e.replace("ct_typekit_",""),i=(e,t)=>{let n=((e,t)=>Object.values(t).find(t=>t.families.map(({family:e})=>e).indexOf(e)>-1))(e,t);return n?n.families.find(({family:t})=>t===e):null},a=(e,t)=>e.all_variations.indexOf(t.variation)>-1?t.variation:e.all_variations.indexOf("n4")>-1?"n4":e.all_variations[0],o=e=>({n1:"100",i1:"100",n2:"200",i2:"200",n3:"300",i3:"300",n4:"400",i4:"400",n5:"500",i5:"500",n6:"600",i6:"600",n7:"700",i7:"700",n8:"800",i8:"800",n9:"900",i9:"900",Default:"Default"}[e]),s=e=>({n1:"Thin 100",i1:"Thin 100 Italic",n2:"Extra-Light 200",i2:"Extra-Light 200 Italic",n3:"Light 300",i3:"Light 300 Italic",n4:"Regular",i4:"Regular 400 Italic",n5:"Medium 500",i5:"Medium 500 Italic",n6:"Semi-Bold 600",i6:"Semi-Bold 600 Italic",n7:"Bold 700",i7:"Bold 700 Italic",n8:"Extra-Bold 800",i8:"Extra-Bold 800 Italic",n9:"Ultra-Bold 900",i9:"Ultra-Bold 900 Italic",Default:"Default Weight"}[e]),c=e=>0===e.indexOf("ct_font")?e.replace("ct_font_","").replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_","")):0===e.indexOf("ct_typekit")?e.replace("ct_typekit_","").replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-"," ").replace("_"," ")):e},,function(e,t,n){"use strict";n.d(t,"animated",(function(){return w}));var r=n(29);n.o(r,"Transition")&&n.d(t,"Transition",(function(){return r.Transition}));var i=n(32),a=n(2),o=n(12);function s(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const c=["style","children","scrollTop","scrollLeft"],l=/^--/;function u(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||l.test(e)||f.hasOwnProperty(e)&&f[e]?(""+t).trim():t+"px"}const d={};let f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const p=["Webkit","Ms","Moz","O"];f=Object.keys(f).reduce((e,t)=>(p.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),f);const h=["x","y","z"],m=/^(matrix|translate|scale|rotate|skew)/,b=/^(translate)/,g=/^(rotate|skew)/,v=(e,t)=>a.s.num(e)&&0!==e?e+t:e,O=(e,t)=>a.s.arr(e)?e.every(e=>O(e,t)):a.s.num(e)?e===t:parseFloat(e)===t;class y extends o.a{constructor(e){let{x:t,y:n,z:r}=e,i=s(e,h);const o=[],c=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),c.push(e=>[`translate3d(${e.map(e=>v(e,"px")).join(",")})`,O(e,0)])),Object(a.l)(i,(e,t)=>{if("transform"===t)o.push([e||""]),c.push(e=>[e,""===e]);else if(m.test(t)){if(delete i[t],a.s.und(e))return;const n=b.test(t)?"px":g.test(t)?"deg":"";o.push(Object(a.y)(e)),c.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${v(i,n)})`,O(i,0)]:e=>[`${t}(${e.map(e=>v(e,n)).join(",")})`,O(e,t.startsWith("scale")?1:0)])}}),o.length&&(i.transform=new j(o,c)),super(i)}}class j extends a.a{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Object(a.k)(this.inputs,(n,r)=>{const i=Object(a.q)(n[0]),[o,s]=this.transforms[r](a.s.arr(i)?i:n.map(a.q));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){1==e&&Object(a.k)(this.inputs,e=>Object(a.k)(e,e=>Object(a.r)(e)&&Object(a.c)(e,this)))}observerRemoved(e){0==e&&Object(a.k)(this.inputs,e=>Object(a.k)(e,e=>Object(a.r)(e)&&Object(a.x)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Object(a.d)(this,e)}}const k=["scrollTop","scrollLeft"];r.Globals.assign({batchedUpdates:i.unstable_batchedUpdates,createStringInterpolator:a.g,colors:a.e});const w=Object(o.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:a,scrollTop:o,scrollLeft:f}=r,p=s(r,c),h=Object.values(p),m=Object.keys(p).map(t=>n||e.hasAttribute(t)?t:d[t]||(d[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==a&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){const n=u(t,i[t]);l.test(t)?e.style.setProperty(t,n):e.style[t]=n}m.forEach((t,n)=>{e.setAttribute(t,h[n])}),void 0!==o&&(e.scrollTop=o),void 0!==f&&(e.scrollLeft=f)},createAnimatedStyle:e=>new y(e),getComponentProps:e=>s(e,k)}).animated},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function e(t,n,r){var i=(t="string"==typeof t?t.split("/"):[t]).shift();return void 0===n[i]?r:t.length?e(t=t.join("/"),n[i],r):n[i]},o=function(e){return"string"==typeof e&&(e=e.split("/")),e.length>1&&e.pop(),e},s=function(e){return e.all||e.any||(e={all:e}),e},c=function e(t,n){var s=Object.values(t)[0],c=function(e){return!(e.length>4)&&(0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all")},l=Object.keys(s).map((function(t,l){var u=Object.values(s)[l];return"all"===c(t)||"any"===c(t)?e(r({},t,u),n):function(e,t,n){var s=function(e,t){var n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return a(e,n)};if(e.indexOf(":")>-1){var s=null;if(function(e){var c,l=(c=e,Array.isArray(c)?c:Array.from(c)),u=l[0],d=l.slice(1);if("visibility"===(d=d.join(":"))&&(s=n(u,i({},t,r({},o(u),a(o(u),t)[t.wp_customizer_current_view]?"yes":"no")))),"responsive"===d&&(s=n(u,i({},t,r({},o(u),a(o(u),t)[t.wp_customizer_current_view]||a(o(u),t))))),"truthy"===d&&(s=n(u)?"yes":"no"),d.indexOf("array-ids:")>-1){var f=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(_n=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,i=e}finally{try{!_n&&o.return&&o.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(d.split(":"),3),p=(f[0],f[1]),h=f[2],m=n(u).find((function(e){return e.id===p}));s=m&&a(h,m)||"no"}if(d.indexOf("json:")>-1&&(s=n(u+"/"+d.split(":")[1]).toString()),"array_length"===d){var b=n(u);s=(b||[]).length.toString()}if(!s)throw new Error("Unknown matcher received. Please verify for typos. The received matcher: "+d+".")}(e.split(":")),s)return s;e=e.split(":")[0]}var c=n(e);return!!c&&(c.desktop?c:c.toString())}(t,n);if(e&&e.toString()&&0===e.toString().indexOf("~")){var c=e.replace("~","");return s.desktop?s.desktop===c||s.tablet===c||s.mobile===c:s===c}return s=s.toString(),e=e.toString(),!!s&&(e.indexOf("|")>-1?0===e.indexOf("!")?-1===e.substring(1).split("|").map((function(e){return e.trim()})).includes(s.trim()):e.split("|").map((function(e){return e.trim()})).indexOf(s.trim())>-1:0===e.indexOf("!")?s!==e.substring(1).trim():0===e.indexOf("*")?s.indexOf(e.trim().substring(1).trim())>-1:s===e.trim())}(u,t,n)}));return"all"===c(Object.keys(t)[0])?l.every((function(e){return!!e})):"any"===c(Object.keys(t)[0])?l.some((function(e){return!!e})):void 0}},function(e,t,n){"use strict";var r=n(0);t.a=({contentRef:e,shouldCalculate:t=!0,ref:n,defaultHeight:i=0}={})=>{const a=Object(r.useRef)(),[o,s]=Object(r.useState)(null),c=()=>{t&&s(Math.random())},l=t=>{let n=e||a;n&&n.current&&!n.current.contains(t.target)&&c()};Object(r.useEffect)(()=>{let t;return setTimeout(()=>{c()},500),window.addEventListener("resize",c),window.addEventListener("scroll",l,!0),n.current&&(t=new window.ResizeObserver(c),t.observe(n.current,{attributes:!0}),n.current.closest(".ct-tabs-scroll")&&t.observe(n.current.closest(".ct-tabs-scroll"),{attributes:!0}),n.current.closest(".customize-pane-child")&&t.observe(n.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:a.current)&&(t||(t=new window.ResizeObserver(c)),t.observe(e?e.current:a.current,{attributes:!0})),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",l,!0),t&&t.disconnect()}},[t,a.current,e,n.current]);let{right:u,yOffset:d,position:f,otherStyles:p}=Object(r.useMemo)(()=>{let r=0,o=0,s="bottom",c={};if(!t)return{yOffset:o,right:r,position:s};if(n.current){let t=n.current.getBoundingClientRect(),l=n.current.closest(".ct-select-input")?n.current.closest(".ct-select-input"):n.current,u=getComputedStyle(l,":before").content;if(o=t.top+t.height,r=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(r=t.left),u.indexOf("ref-width")>-1){let e=t.width;if(u.indexOf("left")>-1&&l.previousElementSibling&&(e=document.body.classList.contains("rtl")?l.previousElementSibling.getBoundingClientRect().right-t.left:t.right-l.previousElementSibling.getBoundingClientRect().left),u.indexOf("right")>-1){let n=l.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(r=n.left,e=t.right-n.left):(r=window.innerWidth-n.right,e=n.right-t.left)}c["--x-select-dropdown-width"]=e+"px"}let d=e&&e.current||a.current?function(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),a=(e=>window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e)))(e);if(6==a.length){const e=a;let o=e[0]*e[3]-e[1]*e[2];return{width:r/e[0],height:i/e[3],left:(n*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/o,top:(-n*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/o}}return{top:t,left:n,width:r,height:i}}(e?e.current:a.current):{height:i};o+d.height>window.innerHeight&&t.top-15>d.height&&(s="top",o=window.innerHeight-t.bottom+t.height)}return{yOffset:o,right:r,position:s,otherStyles:c}},[o,t,n,n.current,e,a.current,i]);return{refreshPopover:c,styles:{"--modal-y-offset":d+"px","--modal-x-offset":u+"px",...p},position:f,popoverProps:{ref:e||a,...f?{"data-position":f}:{}}}}},function(e,t){e.exports=window.wp.components},function(e,t,n){"use strict";var r=n(0),i=n(23),a=n(5),o=n.n(a);t.a=({value:e,onChange:t})=>{let n=i.GradientPicker||i.__experimentalGradientPicker;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n,{value:e.gradient||"",onChange:n=>{t({...e,gradient:n})}}),Object(r.createElement)("ul",{className:"ct-gradient-swatches"},[{name:"Vivid cyan blue to vivid purple",gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:"Light green cyan to vivid green cyan",gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:"Luminous vivid amber to luminous vivid orange",gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:"Luminous vivid orange to vivid red",gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:"Very light gray to cyan bluish gray",gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"}].map(({gradient:n,slug:i})=>Object(r.createElement)("li",{onClick:()=>{t({...e,gradient:e.gradient===n?"":n})},className:o()({active:n===e.gradient}),style:{"--background-image":n},key:i}))))}},function(e,t){var n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function a(e){return 3*e}function o(e,t,n){return((r(t,n)*e+i(t,n))*e+a(t))*e}function s(e,t,n){return 3*r(t,n)*e*e+2*i(t,n)*e+a(t)}function c(e){return e}e.exports=function(e,t,r,i){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&r===i)return c;for(var a=n?new Float32Array(11):new Array(11),l=0;l<11;++l)a[l]=o(.1*l,e,r);return function(n){return 0===n?0:1===n?1:o(function(t){for(var n=0,i=1;10!==i&&a[i]<=t;++i)n+=.1;--i;var c=n+(t-a[i])/(a[i+1]-a[i])*.1,l=s(c,e,r);return l>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var a=s(t,n,r);if(0===a)return t;t-=(o(t,n,r)-e)/a}return t}(t,c,e,r):0===l?c:function(e,t,n,r,i){var a,s,c=0;do{(a=o(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++c<10);return s}(t,n,n+.1,e,r)}(n),t,i)}}},,function(e,t,n){"use strict";var r=n(0),i=n(11),a=n.n(i),o=n(23),s=({onChange:e,value:t,value:{color:n}})=>Object(r.createElement)("div",null,Object(r.createElement)(o.ColorPicker,{color:n,enableAlpha:!0,onChangeComplete:r=>{r.rgb?e({...t,color:1===r.rgb.a?r.hex:`rgba(${r.rgb.r}, ${r.rgb.g}, ${r.rgb.b}, ${r.rgb.a})`}):e({...t,color:1===n.getAlpha()?hex:n.toRgbString()})}})),c=n(5),l=n.n(c),u=(n(1),n(22));const d=e=>e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE";var f=({containerRef:e,el:t,value:n,picker:i,onChange:o,option:c,style:u,wrapperProps:f={},inline_modal:p,appendToBody:h})=>{const m=Object(r.useMemo)(()=>n.color===d(c)?{color:"",key:"empty"}:{key:"color",color:n.color},[n,c,i]),b=Object(r.useMemo)(()=>f.ref&&f.ref.current&&t&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(f.ref.current,t.current),[f.ref&&f.ref.current,t&&t.current]);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",a()({tabIndex:"0",className:l()("app-color-picker-modal",{"app-option-modal":!p&&h},c.modalClassName),style:{...b,...u||{}}},f),Object(r.createElement)(s,{key:m.key,onChange:e=>o(e),value:{...n,color:m.color}})))},p=n(31),h=n(25),m=n.n(h);t.a=({option:e,value:t,onChange:n,picker:i,onPickingChange:a,stopTransitioning:o,innerRef:s,containerRef:c,modalRef:h,isTransitioning:b,isPicking:g})=>{const v=Object(r.useRef)(),{appendToBody:O=!0}=e,{refreshPopover:y,styles:j,popoverProps:k}=Object(u.a)({contentRef:h,ref:c||{},defaultHeight:379,shouldCalculate:!e.inline_modal||O});if(e.inline_modal)return Object(r.createElement)(f,{containerRef:c,option:e,onChange:n,picker:i,value:t,inline_modal:!!e.inline_modal});let w=null;return b!==i.id&&(g||"").split(":")[0]!==i.id||(w=Object(r.createPortal)(Object(r.createElement)(p.a,{items:g,onRest:()=>o(),config:{duration:100,easing:m()(.25,.1,.25,1)},from:-1===(g||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(g||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(g||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},a=>(a||"").split(":")[0]===i.id&&(a=>Object(r.createElement)(f,{style:{...a,...O?j:{}},option:e,onChange:n,picker:i,value:t,el:v,wrapperProps:O?k:{ref:h},appendToBody:O}))),O?document.body:v.current.closest("section").parentNode)),Object(r.createElement)("div",{ref:e=>{v.current=e,s&&(s.current=e)},className:l()("app-color-picker-single",{"ct-no-color":(t||{}).color===d(e)})},Object(r.createElement)("span",{tabIndex:"0"},Object(r.createElement)("span",{tabIndex:"0",onClick:e=>{e.stopPropagation(),y();let t=g?g.split(":")[0]===i.id?null:`${i.id}:${g.split(":")[0]}`:i.id;a(t)},style:{background:(t||{}).color}},Object(r.createElement)("i",{className:"affiliate-blocks-tooltip-top"},i.title))),w)}},,function(e,t,n){"use strict";n.d(t,"Transition",(function(){return be}));var r=n(2);n.d(t,"Globals",(function(){return r.b}));var i=n(4),a=n(12);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,...t){return r.s.fun(e)?e(...t):e}n(42),n(43);const c=(e,t)=>!0===e||!!(t&&e&&(r.s.fun(e)?e(t):Object(r.y)(e).includes(t))),l=(e,t)=>r.s.obj(e)?t&&e[t]:e,u=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,d=e=>e,f=(e,t=d)=>{let n=p;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const i={};for(const a of n){const n=t(e[a],a);r.s.und(n)||(i[a]=n)}return i},p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],h={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function m(e){const t=function(e){const t={};let n=0;if(Object(r.l)(e,(e,r)=>{h[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Object(r.l)(e,(e,r)=>r in t||(n[r]=e)),n}return o({},e)}function b(e){return e=Object(r.q)(e),r.s.arr(e)?e.map(b):Object(r.t)(e)?r.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function g(e){for(const t in e)return!0;return!1}function v(e){return r.s.fun(e)||r.s.arr(e)&&r.s.obj(e[0])}function O(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function y(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const j=o({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class k{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,j)}}function w(e,t){if(r.s.und(t.decay)){const n=!r.s.und(t.tension)||!r.s.und(t.friction);!n&&r.s.und(t.frequency)&&r.s.und(t.damping)&&r.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const E=[];class _{constructor(){this.changed=!1,this.values=E,this.toValues=null,this.fromValues=E,this.to=void 0,this.from=void 0,this.config=new k,this.immediate=!1}}function C(e,{key:t,props:n,defaultProps:i,state:a,actions:l}){return new Promise((u,d)=>{var f;let p,h,m=c(null!=(f=n.cancel)?f:null==i?void 0:i.cancel,t);if(m)v();else{r.s.und(n.pause)||(a.paused=c(n.pause,t));let e=null==i?void 0:i.pause;!0!==e&&(e=a.paused||c(e,t)),p=s(n.delay||0,t),e?(a.resumeQueue.add(g),l.pause()):(l.resume(),g())}function b(){a.resumeQueue.add(g),a.timeouts.delete(h),h.cancel(),p=h.time-r.w.now()}function g(){p>0?(h=r.w.setTimeout(v,p),a.pauseQueue.add(b),a.timeouts.add(h)):v()}function v(){a.pauseQueue.delete(b),a.timeouts.delete(h),e<=(a.cancelId||0)&&(m=!0);try{l.start(o({},n,{callId:e,cancel:m}),u)}catch(e){d(e)}}})}const x=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?L(e.get()):t.every(e=>e.noop)?S(e.get()):N(e.get(),t.every(e=>e.finished)),S=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),N=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),L=e=>({value:e,cancelled:!0,finished:!1});function P(e,t,n,i){const{callId:a,parentId:s,onRest:c}=t,{asyncTo:l,promise:u}=n;return s||e!==l||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const d=f(t,(e,t)=>"onRest"===t?void 0:e);let p,h;const m=new Promise((e,t)=>(p=e,h=t)),b=e=>{const t=a<=(n.cancelId||0)&&L(i)||a!==n.asyncId&&N(i,!1);if(t)throw e.result=t,h(e),e},g=(e,t)=>{const s=new M,c=new A;return(async()=>{if(r.b.skipAnimation)throw F(n),c.result=N(i,!1),h(c),c;b(s);const l=r.s.obj(e)?o({},e):o({},t,{to:e});l.parentId=a,Object(r.l)(d,(e,t)=>{r.s.und(l[t])&&(l[t]=e)});const u=await i.start(l);return b(s),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let v;if(r.b.skipAnimation)return F(n),N(i,!1);try{let t;t=r.s.arr(e)?(async e=>{for(const t of e)await g(t)})(e):Promise.resolve(e(g,i.stop.bind(i))),await Promise.all([t.then(p),m]),v=N(i.get(),!0,!1)}catch(e){if(e instanceof M)v=e.result;else{if(!(e instanceof A))throw e;v=e.result}}finally{a==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?u:void 0)}return r.s.fun(c)&&r.w.batchedUpdates(()=>{c(v,i,i.item)}),v})():u}function F(e,t){Object(r.m)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class M extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class A extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const T=e=>e instanceof V;let R=1;class V extends r.a{constructor(...e){super(...e),this.id=R++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Object(a.e)(this);return e&&e.getValue()}to(...e){return r.b.to(this,e)}interpolate(...e){return Object(r.j)(),r.b.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Object(r.d)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||r.o.sort(this),Object(r.d)(this,{type:"priority",parent:this,priority:e})}}const I=Symbol.for("SpringPhase"),B=e=>(1&e[I])>0,D=e=>(2&e[I])>0,z=e=>(4&e[I])>0,H=(e,t)=>t?e[I]|=3:e[I]&=-3,W=(e,t)=>t?e[I]|=4:e[I]&=-5;class U extends V{constructor(e,t){if(super(),this.key=void 0,this.animation=new _,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!r.s.und(e)||!r.s.und(t)){const n=r.s.obj(e)?o({},e):o({},t,{from:e});r.s.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(D(this)||this._state.asyncTo)||z(this)}get goal(){return Object(r.q)(this.animation.to)}get velocity(){const e=Object(a.e)(this);return e instanceof a.c?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return B(this)}get isAnimating(){return D(this)}get isPaused(){return z(this)}advance(e){let t=!0,n=!1;const i=this.animation;let{config:o,toValues:s}=i;const c=Object(a.g)(i.to);!c&&Object(r.r)(i.to)&&(s=Object(r.y)(Object(r.q)(i.to))),i.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==a.b?1:c?c[u].lastPosition:s[u];let f=i.immediate,p=d;if(!f){if(p=l.lastPosition,o.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=i.fromValues[u],a=null!=l.v0?l.v0:l.v0=r.s.arr(o.velocity)?o.velocity[u]:o.velocity;let s;if(r.s.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);p=n+a/(1-e)*(1-r),f=Math.abs(l.lastPosition-p)<.1,s=a*r}else{s=null==l.lastVelocity?a:l.lastVelocity;const t=o.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n))),i=o.restVelocity||t/10,c=o.clamp?0:o.bounce,u=!r.s.und(c),h=n==d?l.v0>0:n<d;let m,b=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(m=Math.abs(s)>i,m||(f=Math.abs(d-p)<=t,!f));++e)u&&(b=p==d||p>d==h,b&&(s=-s*c,p=d)),s+=(1e-6*-o.tension*(p-d)+.001*-o.friction*s)/o.mass*g,p+=s*g}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),p=n+o.easing(r)*(d-n),s=(p-l.lastPosition)/e,f=1==r}l.lastVelocity=s,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}c&&!c[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(p,o.round)&&(n=!0)});const l=Object(a.e)(this),u=l.getValue();if(t){const e=Object(r.q)(i.to);u===e&&!n||o.decay?n&&o.decay&&this._onChange(u):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return r.w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(D(this)){const{to:e,config:t}=this.animation;r.w.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return r.s.und(e)?(n=this.queue||[],this.queue=[]):n=[r.s.obj(e)?e:o({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>x(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),F(this._state,e&&this._lastCallId),r.w.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:i}=e;n=r.s.obj(n)?n[t]:n,(null==n||v(n))&&(n=void 0),i=r.s.obj(i)?i[t]:i,null==i&&(i=void 0);const o={to:n,from:i};return B(this)||(e.reverse&&([n,i]=[i,n]),i=Object(r.q)(i),r.s.und(i)?Object(a.e)(this)||this._set(n):this._set(i)),o}_update(e,t){let n=o({},e);const{key:i,defaultProps:a}=this;n.default&&Object.assign(a,f(n,(e,t)=>/^on/.test(t)?l(e,i):e)),X(this,n,"onProps"),Q(this,"onProps",n,this);const s=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const c=this._state;return C(++this._lastCallId,{key:i,props:n,defaultProps:a,state:c,actions:{pause:()=>{z(this)||(W(this,!0),Object(r.n)(c.pauseQueue),Q(this,"onPause",N(this,$(this,this.animation.to)),this))},resume:()=>{z(this)&&(W(this,!1),D(this)&&this._resume(),Object(r.n)(c.resumeQueue),Q(this,"onResume",N(this,$(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=q(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(L(this));const i=!r.s.und(e.to),l=!r.s.und(e.from);if(i||l){if(!(t.callId>this._lastToId))return n(L(this));this._lastToId=t.callId}const{key:u,defaultProps:d,animation:f}=this,{to:p,from:h}=f;let{to:m=p,from:g=h}=e;!l||i||t.default&&!r.s.und(m)||(m=g),t.reverse&&([m,g]=[g,m]);const O=!Object(r.u)(g,h);O&&(f.from=g),g=Object(r.q)(g);const y=!Object(r.u)(m,p);y&&this._focus(m);const k=v(t.to),{config:E}=f,{decay:_,velocity:C}=E;(i||l)&&(E.velocity=0),t.config&&!k&&function(e,t,n){n&&(w(n=o({},n),t),t=o({},n,t)),w(e,t),Object.assign(e,t);for(const t in j)null==e[t]&&(e[t]=j[t]);let{mass:i,frequency:a,damping:s}=e;r.s.und(a)||(a<.01&&(a=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/a,2)*i,e.friction=4*Math.PI*s*i/a)}(E,s(t.config,u),t.config!==d.config?s(d.config,u):void 0);let x=Object(a.e)(this);if(!x||r.s.und(m))return n(N(this,!0));const F=r.s.und(t.reset)?l&&!t.default:!r.s.und(g)&&c(t.reset,u),M=F?g:this.get(),A=b(m),T=r.s.num(A)||r.s.arr(A)||Object(r.t)(A),R=!k&&(!T||c(d.immediate||t.immediate,u));if(y){const e=Object(a.f)(m);if(e!==x.constructor){if(!R)throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`);x=this._set(A)}}const V=x.constructor;let I=Object(r.r)(m),z=!1;if(!I){const e=F||!B(this)&&O;(y||e)&&(z=Object(r.u)(b(M),A),I=!z),(Object(r.u)(f.immediate,R)||R)&&Object(r.u)(E.decay,_)&&Object(r.u)(E.velocity,C)||(I=!0)}if(z&&D(this)&&(f.changed&&!F?I=!0:I||this._stop(p)),!k&&((I||Object(r.r)(p))&&(f.values=x.getPayload(),f.toValues=Object(r.r)(m)?null:V==a.b?[1]:Object(r.y)(A)),f.immediate!=R&&(f.immediate=R,R||F||this._set(p)),I)){const{onRest:e}=f;Object(r.k)(G,e=>X(this,t,e));const i=N(this,$(this,p));Object(r.n)(this._pendingCalls,i),this._pendingCalls.add(n),f.changed&&r.w.batchedUpdates(()=>{f.changed=!F,null==e||e(i,this),F?s(d.onRest,i):null==f.onStart||f.onStart(i,this)})}F&&this._set(M),k?n(P(t.to,t,this._state,this)):I?this._start():D(this)&&!y?this._pendingCalls.add(n):n(S(M))}_focus(e){const t=this.animation;e!==t.to&&(Object(r.p)(this)&&this._detach(),t.to=e,Object(r.p)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Object(r.r)(t)&&(Object(r.c)(t,this),T(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Object(r.r)(e)&&Object(r.x)(e,this)}_set(e,t=!0){const n=Object(r.q)(e);if(!r.s.und(n)){const e=Object(a.e)(this);if(!e||!Object(r.u)(n,e.getValue())){const i=Object(a.f)(n);e&&e.constructor==i?e.setValue(n):Object(a.h)(this,i.create(n)),e&&r.w.batchedUpdates(()=>{this._onChange(n,t)})}}return Object(a.e)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Q(this,"onStart",N(this,$(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),s(this.animation.onChange,e,this)),s(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Object(a.e)(this).reset(Object(r.q)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),D(this)||(H(this,!0),z(this)||this._resume())}_resume(){r.b.skipAnimation?this.finish():r.o.start(this)}_stop(e,t){if(D(this)){H(this,!1);const n=this.animation;Object(r.k)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(r.d)(this,{type:"idle",parent:this});const i=t?L(this.get()):N(this.get(),$(this,null!=e?e:n.to));Object(r.n)(this._pendingCalls,i),n.changed&&(n.changed=!1,Q(this,"onRest",i,this))}}}function $(e,t){const n=b(t),i=b(e.get());return Object(r.u)(i,n)}function q(e,t=e.loop,n=e.to){let r=s(t);if(r){const i=!0!==r&&m(r),a=(i||e).reverse,s=!i||i.reset;return Z(o({},e,{loop:t,default:!1,pause:void 0,to:!a||v(n)?n:void 0,from:s?e.from:void 0,reset:s},i))}}function Z(e){const{to:t,from:n}=e=m(e),i=new Set;return r.s.obj(t)&&K(t,i),r.s.obj(n)&&K(n,i),e.keys=i.size?Array.from(i):null,e}function K(e,t){Object(r.l)(e,(e,n)=>null!=e&&t.add(n))}const G=["onStart","onRest","onChange","onPause","onResume"];function X(e,t,n){e.animation[n]=t[n]!==u(t,n)?l(t[n],e.key):void 0}function Q(e,t,...n){var r,i,a,o;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(a=(o=e.defaultProps)[t])||a.call(o,...n)}const J=["onStart","onChange","onRest"];let Y=1;class ee{constructor(e,t){this.id=Y++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(o({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];r.s.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Z(e)),this}start(e){let{queue:t}=this;return e?t=Object(r.y)(e).map(Z):this.queue=[],this._flush?this._flush(this,t):(ie(this,t),function(e,t){return Promise.all(t.map(t=>async function e(t,n,i){const{keys:a,to:o,from:s,loop:c,onRest:l,onResolve:d}=n,f=r.s.obj(n.default)&&n.default;c&&(n.loop=!1),!1===o&&(n.to=null),!1===s&&(n.from=null);const p=r.s.arr(o)||r.s.fun(o)?o:void 0;p?(n.to=void 0,n.onRest=void 0,f&&(f.onRest=void 0)):Object(r.k)(J,e=>{const i=n[e];if(r.s.fun(i)){const r=t._events[e];n[e]=({finished:e,cancelled:t})=>{const n=r.get(i);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(i,{value:null,finished:e||!1,cancelled:t||!1})},f&&(f[e]=n[e])}});const h=t._state;n.pause===!h.paused?(h.paused=n.pause,Object(r.n)(n.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(n.pause=!0);const m=(a||Object.keys(t.springs)).map(e=>t.springs[e].start(n)),b=!0===n.cancel||!0===u(n,"cancel");(p||b&&h.asyncId)&&m.push(C(++t._lastAsyncId,{props:n,state:h,actions:{pause:r.v,resume:r.v,start(e,n){b?(F(h,t._lastAsyncId),n(L(t))):(e.onRest=l,n(P(p,e,h,t)))}}})),h.paused&&await new Promise(e=>{h.resumeQueue.add(e)});const g=x(t,await Promise.all(m));if(c&&g.finished&&(!i||!g.noop)){const r=q(n,c,o);if(r)return ie(t,[r]),e(t,r,!0)}return d&&r.w.batchedUpdates(()=>d(g,t,t.item)),g}(e,t))).then(t=>x(e,t))}(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Object(r.k)(Object(r.y)(t),t=>n[t].stop(!!e))}else F(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(r.s.und(e))this.start({pause:!0});else{const t=this.springs;Object(r.k)(Object(r.y)(e),e=>t[e].pause())}return this}resume(e){if(r.s.und(e))this.start({pause:!1});else{const t=this.springs;Object(r.k)(Object(r.y)(e),e=>t[e].resume())}return this}each(e){Object(r.l)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,a=this._changed.size>0;(i&&!this._started||a&&!this._started)&&(this._started=!0,Object(r.m)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!i&&this._started,s=a||o&&n.size?this.get():null;a&&t.size&&Object(r.m)(t,([e,t])=>{t.value=s,e(t,this,this._item)}),o&&(this._started=!1,Object(r.m)(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}r.w.onFrame(this._onFrame)}}function te(e,t){const n=o({},e.springs);return t&&Object(r.k)(Object(r.y)(t),e=>{r.s.und(e.keys)&&(e=Z(e)),r.s.obj(e.to)||(e=o({},e,{to:void 0})),re(n,e,e=>ne(e))}),function(e,t){Object(r.l)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Object(r.c)(t,e))})}(e,n),n}function ne(e,t){const n=new U;return n.key=e,t&&Object(r.c)(n,t),n}function re(e,t,n){t.keys&&Object(r.k)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ie(e,t){Object(r.k)(t,t=>{re(e.springs,t,t=>ne(t,e))})}function ae(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const oe=["children"],se=e=>{let{children:t}=e,n=ae(e,oe);const a=Object(i.useContext)(ce),o=n.pause||!!a.pause,s=n.immediate||!!a.immediate;n=Object(r.B)(()=>({pause:o,immediate:s}),[o,s]);const{Provider:c}=ce;return i.createElement(c,{value:n},t)},ce=(le=se,ue={},Object.assign(le,i.createContext(ue)),le.Provider._context=le,le.Consumer._context=le,le);var le,ue;se.Provider=ce.Provider,se.Consumer=ce.Consumer;const de=()=>{const e=[],t=function(t){Object(r.i)();const i=[];return Object(r.k)(e,(e,a)=>{if(r.s.und(t))i.push(e.start());else{const r=n(t,e,a);r&&i.push(e.start(r))}}),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Object(r.k)(e,e=>e.pause(...arguments)),this},t.resume=function(){return Object(r.k)(e,e=>e.resume(...arguments)),this},t.set=function(t){Object(r.k)(e,e=>e.set(t))},t.start=function(t){const n=[];return Object(r.k)(e,(e,i)=>{if(r.s.und(t))n.push(e.start());else{const r=this._getProps(t,e,i);r&&n.push(e.start(r))}}),n},t.stop=function(){return Object(r.k)(e,e=>e.stop(...arguments)),this},t.update=function(t){return Object(r.k)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return r.s.fun(e)?e(n,t):e};return t._getProps=n,t};let fe;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(fe||(fe={}));let pe=1;function he(e,{key:t,keys:n=t},i){if(null===n){const t=new Set;return e.map(e=>{const n=i&&i.find(n=>n.item===e&&n.phase!==fe.LEAVE&&!t.has(n));return n?(t.add(n),n.key):pe++})}return r.s.und(n)?e:r.s.fun(n)?e.map(n):Object(r.y)(n)}const me=["items","children"];function be(e){let{items:t,children:n}=e;return function(e,t,n){const a=r.s.fun(t)&&t,{reset:c,sort:l,trail:u=0,expires:d=!0,onDestroyed:p,ref:h,config:b}=a?a():t,v=Object(i.useMemo)(()=>a||3==arguments.length?de():void 0,[]),j=Object(r.y)(e),k=[],w=Object(i.useRef)(null),E=c?null:w.current;Object(r.A)(()=>{w.current=k}),Object(r.C)(()=>()=>Object(r.k)(w.current,e=>{e.expired&&clearTimeout(e.expirationId),O(e.ctrl,v),e.ctrl.stop(!0)}));const _=he(j,a?a():t,E),C=c&&w.current||[];Object(r.A)(()=>Object(r.k)(C,({ctrl:e,item:t,key:n})=>{O(e,v),s(p,t,n)}));const x=[];if(E&&Object(r.k)(E,(e,t)=>{e.expired?(clearTimeout(e.expirationId),C.push(e)):~(t=x[t]=_.indexOf(e.key))&&(k[t]=e)}),Object(r.k)(j,(e,t)=>{k[t]||(k[t]={key:_[t],item:e,phase:fe.MOUNT,ctrl:new ee},k[t].ctrl.item=e)}),x.length){let e=-1;const{leave:n}=a?a():t;Object(r.k)(x,(t,r)=>{const i=E[r];~t?(e=k.indexOf(i),k[e]=o({},i,{item:j[t]})):n&&k.splice(++e,0,i)})}r.s.fun(l)&&k.sort((e,t)=>l(e.item,t.item));let S=-u;const N=Object(r.z)(),L=f(t),P=new Map;Object(r.k)(k,(e,n)=>{const i=e.key,c=e.phase,l=a?a():t;let f,p,g=s(l.delay||0,i);if(c==fe.MOUNT)f=l.enter,p=fe.ENTER;else{const e=_.indexOf(i)<0;if(c!=fe.LEAVE)if(e)f=l.leave,p=fe.LEAVE;else{if(!(f=l.update))return;p=fe.UPDATE}else{if(e)return;f=l.enter,p=fe.ENTER}}if(f=s(f,e.item,n),f=r.s.obj(f)?m(f):{to:f},!f.config){const t=b||L.config;f.config=s(t,e.item,n,p)}S+=u;const v=o({},L,{delay:g+S,ref:h,immediate:l.immediate,reset:!1},f);if(p==fe.ENTER&&r.s.und(v.from)){const i=a?a():t,o=r.s.und(i.initial)||E?i.from:i.initial;v.from=s(o,e.item,n)}const{onResolve:O}=v;v.onResolve=e=>{s(O,e);const t=w.current,n=t.find(e=>e.key===i);if(n&&(!e.cancelled||n.phase==fe.UPDATE)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if(n.phase==fe.LEAVE){const t=s(d,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(N,r)))}}e&&t.some(e=>e.expired)&&N()}};const y=te(e.ctrl,v);P.set(e,{phase:p,springs:y,payload:v})});const F=Object(i.useContext)(se),M=Object(r.D)(F),A=F!==M&&g(F);Object(r.A)(()=>{A&&Object(r.k)(k,e=>{e.ctrl.start({default:F})})},[F]),Object(r.A)(()=>{Object(r.k)(P,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,null==v||v.add(r),A&&e==fe.ENTER&&r.start({default:F}),t&&(y(r,t.ref),r.ref?r.update(t):r.start(t))})},c?void 0:n);const T=e=>i.createElement(i.Fragment,null,k.map((t,n)=>{const{springs:a}=P.get(t)||t.ctrl,s=e(o({},a),t.item,t,n);return s&&s.type?i.createElement(s.type,o({},s.props,{key:r.s.str(t.key)||r.s.num(t.key)?t.key:t.ctrl.id,ref:s.ref})):s}));return v?[T,v]:T}(t,ae(e,me))(n)}class ge extends V{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Object(r.f)(...t);const n=this._get(),i=Object(a.f)(n);Object(a.h)(this,i.create(n))}advance(e){const t=this._get(),n=this.get();Object(r.u)(t,n)||(Object(a.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Oe(this._active)&&ye(this)}_get(){const e=r.s.arr(this.source)?this.source.map(r.q):Object(r.y)(Object(r.q)(this.source));return this.calc(...e)}_start(){this.idle&&!Oe(this._active)&&(this.idle=!1,Object(r.k)(Object(a.g)(this),e=>{e.done=!1}),r.b.skipAnimation?(r.w.batchedUpdates(()=>this.advance()),ye(this)):r.o.start(this))}_attach(){let e=1;Object(r.k)(Object(r.y)(this.source),t=>{Object(r.r)(t)&&Object(r.c)(t,this),T(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Object(r.k)(Object(r.y)(this.source),e=>{Object(r.r)(e)&&Object(r.x)(e,this)}),this._active.clear(),ye(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(r.y)(this.source).reduce((e,t)=>Math.max(e,(T(t)?t.priority:0)+1),0))}}function ve(e){return!1!==e.idle}function Oe(e){return!e.size||Array.from(e).every(ve)}function ye(e){e.idle||(e.idle=!0,Object(r.k)(Object(a.g)(e),e=>{e.done=!0}),Object(r.d)(e,{type:"idle",parent:e}))}r.b.assign({createStringInterpolator:r.g,to:(e,t)=>new ge(e,t)}),r.o.advance},function(e,t,n){"use strict";var r=n(0),i=n(27),a=n(17),o=n(21);t.a=({option:e,values:t,value:n,onChange:s})=>{const[{isPicking:c,isTransitioning:l},u]=Object(r.useState)({isPicking:null,isTransitioning:null}),d=Object(r.useRef)(),f=Object(r.useRef)();return Object(r.createElement)(a.a,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:d},className:"app-color-picker-container",additionalRefs:[f],onOutsideClick:()=>{u(({isPicking:e})=>({isPicking:null,isTransitioning:e}))}},e.pickers.filter(e=>!e.condition||Object(o.a)(Object(o.b)(e.condition),t)).map(t=>Object(r.createElement)(i.a,{containerRef:d,picker:t,key:t.id,option:e,isPicking:c,modalRef:f,isTransitioning:l,onPickingChange:e=>u({isTransitioning:t.id,isPicking:e}),stopTransitioning:()=>u(e=>({...e,isTransitioning:!1})),onChange:e=>s({...n,[t.id]:e}),value:n[t.id]||e.value[t.id]})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ke}));var r=n(16),i=n(13),a=n(10),o=n(9),s=n(4),c=n.n(s),l=n(32),u=n.n(l),d=void 0,f=void 0,p=[],h=function(e){return"undefined"!=typeof window&&window.requestAnimationFrame(e)},m=void 0,b=function(){return Date.now()},g=void 0,v=function(){function e(){}var t=e.prototype;return t.attach=function(){},t.detach=function(){},t.getValue=function(){},t.getAnimatedValue=function(){return this.getValue()},t.addChild=function(e){},t.removeChild=function(e){},t.getChildren=function(){return[]},e}(),O=function(e){return Object.keys(e).map((function(t){return e[t]}))},y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).children=[],t.getChildren=function(){return t.children},t.getPayload=function(e){return void 0===e&&(e=void 0),void 0!==e&&t.payload?t.payload[e]:t.payload||Object(a.a)(Object(a.a)(t))},t}Object(i.a)(t,e);var n=t.prototype;return n.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},n.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},t}(v),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.getAnimatedValue=function(){return t.getValue()},t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(Object(a.a)(Object(a.a)(t)))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(Object(a.a)(Object(a.a)(t)))}))},t}return Object(i.a)(t,e),t}(y),k=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.getAnimatedValue=function(){return t.getValue(!0)},t.attach=function(){return O(t.payload).forEach((function(e){return e instanceof v&&e.addChild(Object(a.a)(Object(a.a)(t)))}))},t.detach=function(){return O(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(Object(a.a)(Object(a.a)(t)))}))},t}return Object(i.a)(t,e),t.prototype.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},t}(y),w=function(e){function t(t){var n;return n=e.call(this)||this,!(t=t||{}).transform||t.transform instanceof v||(t=f.transform(t)),n.payload=t,n}return Object(i.a)(t,e),t}(k),E={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},_=function(){function e(){}return e.create=function(t,n,r){if("function"==typeof t)return t;if(m&&t.output&&"string"==typeof t.output[0])return m(t);if(Array.isArray(t))return e.create({range:t,output:n,extrapolate:r||"extend"});var i=t.output,a=t.range||[0,1],o=t.easing||function(e){return e},s="extend",c=t.map;void 0!==t.extrapolateLeft?s=t.extrapolateLeft:void 0!==t.extrapolate&&(s=t.extrapolate);var l="extend";return void 0!==t.extrapolateRight?l=t.extrapolateRight:void 0!==t.extrapolate&&(l=t.extrapolate),function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,i,a,o,s,c){var l=c?c(e):e;if(l<t){if("identity"===o)return l;"clamp"===o&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,a[t],a[t+1],i[t],i[t+1],o,s,l,c)}},e}(),C="[-+]?\\d*\\.?\\d+";function x(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var S=new RegExp("rgb"+x(C,C,C)),N=new RegExp("rgba"+x(C,C,C,C)),L=new RegExp("hsl"+x(C,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),P=new RegExp("hsla"+x(C,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",C)),F=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,M=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,A=/^#([0-9a-fA-F]{6})$/,T=/^#([0-9a-fA-F]{8})$/;function R(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function V(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=R(i,r,e+1/3),o=R(i,r,e),s=R(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function I(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function B(e){return(parseFloat(e)%360+360)%360/360}function D(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function z(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function H(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=A.exec(t))?parseInt(n[1]+"ff",16)>>>0:E.hasOwnProperty(t)?E[t]:(n=S.exec(t))?(I(n[1])<<24|I(n[2])<<16|I(n[3])<<8|255)>>>0:(n=N.exec(t))?(I(n[1])<<24|I(n[2])<<16|I(n[3])<<8|D(n[4]))>>>0:(n=F.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=T.exec(t))?parseInt(n[1],16)>>>0:(n=M.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=L.exec(t))?(255|V(B(n[1]),z(n[2]),z(n[3])))>>>0:(n=P.exec(t))?(V(B(n[1]),z(n[2]),z(n[3]))|D(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var W=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,U=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,$=new RegExp("("+Object.keys(E).join("|")+")","g"),q=function(e){function t(n,r,i){var o;return(o=e.call(this)||this).getValue=function(){var e;return(e=o).calc.apply(e,o.payload.map((function(e){return e.getValue()})))},o.updateConfig=function(e,t){return o.calc=_.create(e,t)},o.interpolate=function(e,n){return new t(Object(a.a)(Object(a.a)(o)),e,n)},o.payload=n instanceof j&&!n.updateConfig?n.payload:Array.isArray(n)?n:[n],o.calc=_.create(r,i),o}return Object(i.a)(t,e),t}(j),Z=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.getValue=function(){return n.value},n.updateStyles=function(){return function e(t,n){"function"==typeof t.update?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(Object(a.a)(Object(a.a)(n)),n.animatedStyles)},n.updateValue=function(e){return n.flush(n.value=e)},n.interpolate=function(e,t){return new q(Object(a.a)(Object(a.a)(n)),e,t)},n.value=t,n.animatedStyles=new Set,n.done=!1,n.startPosition=t,n.lastPosition=t,n.lastVelocity=void 0,n.lastTime=void 0,n.controller=void 0,n}Object(i.a)(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((function(e){return e.update()}))},n.prepare=function(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())},t}(y),K=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===n.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):n.payload.forEach((function(r,i){return n.payload[i].setValue(e,t)}))},n.getValue=function(){return n.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new q(Object(a.a)(Object(a.a)(n)),e,t)},n.payload=t.map((function(e){return new Z(e)})),n}return Object(i.a)(t,e),t}(j);function G(e,t){return null==e?t:e}function X(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function Q(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return void 0!==n||e===t}function J(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e}function Y(e){return Object.keys(e).map((function(t){return e[t]}))}function ee(e){var t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,Object(r.a)(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),n=Object.keys(e).reduce((function(n,r){var i;return void 0!==t[r]?n:Object(o.a)({},n,((i={})[r]=e[r],i))}),{});return Object(o.a)({to:t},n)}function te(e,t){var n,r=t[0],i=t[1];return Object(o.a)({},e,((n={})[r]=new(Array.isArray(i)?K:Z)(i),n))}function ne(e){var t=e.from,n=e.to,r=e.native,i=Object.entries(Object(o.a)({},t,n));return r?i.reduce(te,{}):Object(o.a)({},t,n)}function re(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}var ie=function(e){return"auto"===e},ae={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oe=["Webkit","Ms","Moz","O"];function se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ae.hasOwnProperty(e)&&ae[e]?(""+t).trim():t+"px"}ae=Object.keys(ae).reduce((function(e,t){return oe.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ae);var ce={};g=function(e){return new w(e)},m=function(e){var t=e.output.map((function(e){return e.replace(U,H)})).map((function(e){return e.replace($,H)})),n=t[0].match(W).map((function(){return[]}));t.forEach((function(e){e.match(W).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(W).map((function(t,r){return _.create(Object(o.a)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(W,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,i){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+i+")"}))}},p=E,d=function(e,t){var n=e.from,r=e.to,i=e.children;if(Y(r).some(ie)||Y(n).some(ie)){var a=i(ne(e));if(a){Array.isArray(a)&&(a={type:"div",props:{children:a}});var s=a.props.style;return c.a.createElement(a.type,Object(o.a)({key:a.key?a.key:void 0},a.props,{style:Object(o.a)({},s,{position:"absolute",visibility:"hidden"}),ref:function(i){if(i){var a,s,c=u.a.findDOMNode(i),l=getComputedStyle(c);if("border-box"===l.boxSizing)a=c.offsetWidth,s=c.offsetHeight;else{var d=parseFloat(l.paddingLeft||0)+parseFloat(l.paddingRight||0),f=parseFloat(l.paddingTop||0)+parseFloat(l.paddingBottom||0),p=parseFloat(l.borderLeftWidth||0)+parseFloat(l.borderRightWidth||0),h=parseFloat(l.borderTopWidth||0)+parseFloat(l.borderBottomWidth||0);a=c.offsetWidth-d-p,s=c.offsetHeight-f-h}var m=function(e,t){return function(n,r){var i,a=r[0],s=r[1];return Object(o.a)({},n,((i={})[a]="auto"===s?~a.indexOf("height")?t:e:s,i))}}(a,s);t(Object(o.a)({},e,{from:Object.entries(n).reduce(m,n),to:Object.entries(r).reduce(m,r)}))}}}))}}},function(e,t){f={fn:e,transform:t}}((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,i=t.children,a=t.scrollTop,o=t.scrollLeft,s=Object(r.a)(t,["style","children","scrollTop","scrollLeft"]);for(var c in void 0!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==i&&(e.textContent=i),n)if(n.hasOwnProperty(c)){var l=0===c.indexOf("--"),u=se(c,n[c],l);"float"===c&&(c="cssFloat"),l?e.style.setProperty(c,u):e.style[c]=u}for(var d in s){var f=ce[d]||(ce[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,s[d])}}),(function(e){return e}));var le=!1,ue=new Set,de=function e(){var t=b(),n=ue,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}for(var o=a,s=!0,c=!0,l=0;l<o.configs.length;l++){for(var u=o.configs[l],d=void 0,f=void 0,p=0;p<u.animatedValues.length;p++){var m=u.animatedValues[p];if(!m.done){var g=u.fromValues[p],O=u.toValues[p],y=m.lastPosition,j=O instanceof v,k=Array.isArray(u.initialVelocity)?u.initialVelocity[p]:u.initialVelocity;if(j&&(O=O.getValue()),u.immediate||!j&&!u.decay&&g===O)m.updateValue(O),m.done=!0;else if(u.delay&&t-o.startTime<u.delay)s=!1;else if(c=!1,"string"!=typeof g&&"string"!=typeof O){if(void 0!==u.duration)y=g+u.easing((t-o.startTime-u.delay)/u.duration)*(O-g),d=t>=o.startTime+u.delay+u.duration;else if(u.decay)y=g+k/(1-.998)*(1-Math.exp(-(1-.998)*(t-o.startTime))),(d=Math.abs(m.lastPosition-y)<.1)&&(O=y);else{f=void 0!==m.lastTime?m.lastTime:t,k=void 0!==m.lastVelocity?m.lastVelocity:u.initialVelocity,t>f+64&&(f=t);for(var w=Math.floor(t-f),E=0;E<w;++E)y+=1*(k+=(-u.tension*(y-O)+-u.friction*k)/u.mass*1/1e3)/1e3;var _=!(!u.clamp||0===u.tension)&&(g<O?y>O:y<O),C=Math.abs(k)<=u.precision,x=0===u.tension||Math.abs(O-y)<=u.precision;d=_||C&&x,m.lastVelocity=k,m.lastTime=t}j&&!u.toValues[p].done&&(d=!1),d?(m.value!==O&&(y=O),m.done=!0):s=!1,m.updateValue(y),m.lastPosition=y}else m.updateValue(O),m.done=!0}}!o.props.onFrame&&o.props.native||(o.animatedProps[u.name]=u.interpolation.getValue())}!o.props.onFrame&&o.props.native||(!o.props.native&&o.onUpdate&&o.onUpdate(),o.props.onFrame&&o.props.onFrame(o.animatedProps)),s&&(ue.delete(o),o.debouncedOnEnd({finished:!0,noChange:c}))}ue.size?h(e):le=!1},fe=function(e){ue.has(e)&&ue.delete(e)},pe=function(){function e(e,t){var n=this;void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=function(){return n.props.native?n.interpolations:n.animatedProps},this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update(Object(o.a)({},e,t))}var t=e.prototype;return t.update=function(e){var t=this;this.props=Object(o.a)({},this.props,e);var n=this.props.interpolateTo?ee(this.props):this.props,r=n.from,i=void 0===r?{}:r,a=n.to,s=void 0===a?{}:a,c=n.config,l=void 0===c?{}:c,u=n.delay,d=void 0===u?0:u,f=n.reverse,h=n.attach,m=n.reset,b=n.immediate,g=n.autoStart,v=n.ref;if(f){var O=[s,i];i=O[0],s=O[1]}this.hasChanged=!1;var y=h&&h(this),j=m?{}:this.merged;if(this.merged=Object(o.a)({},i,j,s),this.animations=Object.entries(this.merged).reduce((function(e,n,r){var a,s,c,u=n[0],f=n[1],h=!m&&e[u]||{},g="number"==typeof f,v="string"==typeof f&&!f.startsWith("#")&&!/\d/.test(f)&&!p[f],O=!g&&!v&&Array.isArray(f),j=void 0!==i[u]?i[u]:f,k=g||O||v?f:1,w=J(l,u);if(y&&(k=y.animations[u].parent),void 0===w.decay&&Q(h.changes,f))return e;if(t.hasChanged=!0,g||v)s=c=h.parent||new Z(j);else if(O)s=c=h.parent||new K(j);else{var E=h.interpolation&&h.interpolation.calc(h.parent.value);h.parent?(s=h.parent).setValue(0,!1):s=new Z(0);var _={output:[void 0!==E?E:j,f]};h.interpolation?(c=h.interpolation,h.interpolation.updateConfig(_)):c=s.interpolate(_)}J(b,u)&&s.setValue(f,!1);var C=X(s.getPayload());return C.forEach((function(e){return e.prepare(t)})),Object(o.a)({},e,((a={})[u]=Object(o.a)({},h,{name:u,parent:s,interpolation:c,animatedValues:C,changes:f,fromValues:X(s.getValue()),toValues:X(y?k.getPayload():k),immediate:J(b,u),delay:G(w.delay,d||0),initialVelocity:G(w.velocity,0),clamp:G(w.clamp,!1),precision:G(w.precision,.01),tension:G(w.tension,170),friction:G(w.friction,26),mass:G(w.mass,1),duration:w.duration,easing:G(w.easing,(function(e){return e})),decay:w.decay}),a))}),this.animations),this.hasChanged)for(var k in this.configs=Y(this.animations),this.animatedProps={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.animatedProps[k]=this.animations[k].interpolation.getValue();for(var w=arguments.length,E=new Array(w>1?w-1:0),_=1;_<w;_++)E[_-1]=arguments[_];v||!g&&!E.length||this.start.apply(this,E);var C=E[0],x=E[1];return this.onEnd="function"==typeof C&&C,this.onUpdate=x,this.getValues()},t.start=function(e,t){var n=this;return this.startTime=b(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),this,ue.has(this)||(ue.add(this),le||h(de),le=!0),new Promise((function(e){return n.resolve=e}))},t.stop=function(e){void 0===e&&(e=!1),e&&Y(this.animations).forEach((function(e){return e.changes=void 0})),this.debouncedOnEnd({finished:e})},t.destroy=function(){fe(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]},t.debouncedOnEnd=function(e){fe(this),this.isActive=!1;var t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null},e}(),he=function(e){function t(t,n){var r;return r=e.call(this)||this,t.style&&(t=Object(o.a)({},t,{style:g(t.style)})),r.payload=t,r.update=n,r.attach(),r}return Object(i.a)(t,e),t}(k);function me(e){var t=function(t){function n(e){var n;return(n=t.call(this)||this).callback=function(){n.node&&!1===f.fn(n.node,n.propsAnimated.getAnimatedValue(),Object(a.a)(Object(a.a)(n)))&&n.forceUpdate()},n.attachProps(e),n}Object(i.a)(n,t);var s=n.prototype;return s.componentWillUnmount=function(){this.propsAnimated&&this.propsAnimated.detach()},s.setNativeProps=function(e){!1===f.fn(this.node,e,this)&&this.forceUpdate()},s.attachProps=function(e){e.forwardRef;var t=Object(r.a)(e,["forwardRef"]),n=this.propsAnimated;this.propsAnimated=new he(t,this.callback),n&&n.detach()},s.shouldComponentUpdate=function(e){var t=e.style,n=Object(r.a)(e,["style"]),i=this.props,a=i.style;return!(Q(Object(r.a)(i,["style"]),n)&&Q(a,t)||(this.attachProps(e),0))},s.render=function(){var t=this,n=this.propsAnimated.getValue(),i=(n.scrollTop,n.scrollLeft,Object(r.a)(n,["scrollTop","scrollLeft"]));return c.a.createElement(e,Object(o.a)({},i,{ref:function(e){return t.node=re(e,t.props.forwardRef)}}))},n}(c.a.Component);return c.a.forwardRef((function(e,n){return c.a.createElement(t,Object(o.a)({},e,{forwardRef:n}))}))}var be=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},t.controller=new pe(null,null),t.didUpdate=!1,t.didInject=!1,t.finished=!0,t.start=function(){t.finished=!1;var e=t.mounted;t.controller.start((function(n){return t.finish(Object(o.a)({},n,{wasMounted:e}))}),t.update)},t.stop=function(){return t.controller.stop(!0)},t.update=function(){return t.mounted&&t.setState({internal:!0})},t.finish=function(e){var n=e.finished,r=e.noChange,i=e.wasMounted;t.finished=!0,t.mounted&&n&&(!t.props.onRest||!i&&r||t.props.onRest(t.controller.merged),t.mounted&&t.didInject&&(t.afterInject=ne(t.props),t.setState({internal:!0})),t.mounted&&(t.didInject||t.props.after)&&t.setState({internal:!0}),t.didInject=!1)},t}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.componentDidUpdate(),this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1,this.stop()},t.getDerivedStateFromProps=function(e,t){var n=t.internal,r=t.lastProps,i=e.from,a=e.to,o=e.reset,s=e.force;return{propsChanged:!Q(a,r.to)||!Q(i,r.from)||o&&!n||s&&!n,lastProps:e,internal:!1}},n.render=function(){var e=this,t=this.props.children,n=this.state.propsChanged;if(this.props.inject&&n&&!this.injectProps){var r=this.props.inject(this.props,(function(t){e.injectProps=t,e.setState({internal:!0})}));if(r)return r}(this.injectProps||n)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):n&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);var i=Object(o.a)({},this.controller.getValues(),this.afterInject);return this.finished&&(i=Object(o.a)({},i,this.props.after)),Object.keys(i).length?t(i):null},n.componentDidUpdate=function(){this.didUpdate&&this.start(),this.didUpdate=!1},t}(c.a.Component);be.defaultProps={from:{},to:{},config:{tension:170,friction:26},native:!1,immediate:!1,reset:!1,force:!1,inject:d};var ge=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).first=!0,t.instances=new Set,t.hook=function(e,n,r,i){return t.instances.add(e),(i?n===r-1:0===n)?void 0:Array.from(t.instances)[i?n+1:n-1]},t}Object(i.a)(t,e);var n=t.prototype;return n.render=function(){var e=this,t=this.props,n=t.items,i=t.children,a=t.from,s=void 0===a?{}:a,l=t.initial,u=t.reverse,d=t.keys,f=t.delay,p=t.onRest,h=Object(r.a)(t,["items","children","from","initial","reverse","keys","delay","onRest"]),m=X(n);return X(m).map((function(t,n){return c.a.createElement(be,Object(o.a)({onRest:0===n?p:null,key:"function"==typeof d?d(t):X(d)[n],from:e.first&&void 0!==l?l||{}:s},h,{delay:0===n&&f||void 0,attach:function(t){return e.hook(t,n,m.length,u)},children:function(e){var r=i(t,n);return r?r(e):null}}))}))},n.componentDidUpdate=function(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()},t}(c.a.PureComponent);ge.defaultProps={keys:function(e){return e}};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).guid=0,t.state={props:{},resolve:function(){return null},last:!0,index:0},t.next=function(e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=0),t.running=!0,new Promise((function(i){t.mounted&&t.setState((function(t){return{props:e,resolve:i,last:n,index:r}}),(function(){return t.running=!1}))}))},t}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.componentDidUpdate({})},n.componentWillUnmount=function(){this.mounted=!1},n.componentDidUpdate=function(e){var t=this,n=this.props,r=n.states,i=n.filter,a=n.state;(e.state!==this.props.state||this.props.reset&&!this.running||!Q(r[a],e.states[e.state]))&&r&&a&&r[a]&&function(){var e=++t.guid,n=r[a];if(n)if(Array.isArray(n))for(var o=Promise.resolve(),s=function(r){var a=r,s=n[a],c=a===n.length-1;o=o.then((function(){return e===t.guid&&t.next(i(s),c,a)}))},c=0;c<n.length;c++)s(c);else if("function"==typeof n){var l=0;n((function(n,r){return void 0===r&&(r=!1),e===t.guid&&t.next(i(n),r,l++)}),(function(){return h((function(){return t.instance&&t.instance.stop()}))}),t.props)}else t.next(i(r[a]))}()},n.render=function(){var e=this,t=this.state,n=t.props,i=t.resolve,a=t.last,s=t.index;if(!n||0===Object.keys(n).length)return null;var l=this.props,u=(l.state,l.filter,l.states,l.config),d=l.primitive,f=l.onRest,p=l.forwardRef,h=Object(r.a)(l,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(u)&&(u=u[s]),c.a.createElement(d,Object(o.a)({ref:function(t){return e.instance=re(t,p)},config:u},h,n,{onRest:function(e){i(e),f&&a&&f(e)}}))},t}(c.a.PureComponent);ve.defaultProps={state:"__default"};var Oe=c.a.forwardRef((function(e,t){return c.a.createElement(ve,Object(o.a)({},e,{forwardRef:t}))}));Oe.create=function(e){return function(t,n){var r;return void 0===n&&(n=function(e){return e}),("function"==typeof t||Array.isArray(t))&&((r={}).__default=t,t=r),function(r){return c.a.createElement(ve,Object(o.a)({primitive:e,states:t,filter:n},r))}}},Oe.Spring=function(e){return Oe.create(be)(e,ee)},Oe.Trail=function(e){return Oe.create(ge)(e,ee)};var ye=0,je=function(e){var t=e.items,n=e.keys,i=Object(r.a)(e,["items","keys"]);return t=X(void 0!==t?t:null),n="function"==typeof n?t.map(n):X(n),Object(o.a)({items:t,keys:n.map((function(e){return String(e)}))},i)},ke=function(e){Object(i.a)(n,e);var t=n.prototype;function n(t){var n;return(n=e.call(this,t)||this).destroyItem=function(e,t,r){return function(i){var a=n.props,o=a.onRest,s=a.onDestroyed;n.mounted&&(s&&s(e),n.setState((function(e){return{deleted:e.deleted.filter((function(e){return e.key!==t}))}})),o&&o(e,r,i))}},n.state={first:!0,transitions:[],current:{},deleted:[],prevProps:t},n}return t.componentDidMount=function(){this.mounted=!0},t.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n=t.first,i=t.prevProps,a=Object(r.a)(t,["first","prevProps"]),s=je(e),c=s.items,l=s.keys,u=s.initial,d=s.from,f=s.enter,p=s.leave,h=s.update,m=s.trail,b=void 0===m?0:m,g=s.unique,v=s.config,O=je(i),y=O.keys,j=O.items,k=Object(o.a)({},a.current),w=[].concat(a.deleted),E=Object.keys(k),_=new Set(E),C=new Set(l),x=l.filter((function(e){return!_.has(e)})),S=a.transitions.filter((function(e){return!e.destroyed&&!C.has(e.originalKey)})).map((function(e){return e.originalKey})),N=l.filter((function(e){return _.has(e)})),L=0;x.forEach((function(e){g&&w.find((function(t){return t.originalKey===e}))&&(w=w.filter((function(t){return t.originalKey!==e})));var t=l.indexOf(e),r=c[t];k[e]={state:"enter",originalKey:e,key:g?String(e):ye++,item:r,trail:L+=b,config:J(v,r,"enter"),from:J(n&&void 0!==u?u||{}:d,r),to:J(f,r)}})),S.forEach((function(e){var t=y.indexOf(e),n=j[t];w.push(Object(o.a)({},k[e],{state:"leave",destroyed:!0,left:y[Math.max(0,t-1)],right:y[Math.min(y.length,t+1)],trail:L+=b,config:J(v,n,"leave"),to:J(p,n)})),delete k[e]})),N.forEach((function(e){var t=l.indexOf(e),n=c[t];k[e]=Object(o.a)({},k[e],{item:n,state:"update",trail:L+=b,config:J(v,n,"update"),to:J(h,n)})}));var P=l.map((function(e){return k[e]}));return w.forEach((function(e){var t,n=e.left,i=e.right,a=Object(r.a)(e,["left","right"]);-1!==(t=P.findIndex((function(e){return e.originalKey===n})))&&(t+=1),-1===t&&(t=P.findIndex((function(e){return e.originalKey===i}))),-1===t&&(t=w.findIndex((function(e){return e.originalKey===n}))),-1===t&&(t=w.findIndex((function(e){return e.originalKey===i}))),t=Math.max(0,t),P=[].concat(P.slice(0,t),[a],P.slice(t))})),{first:n&&0===x.length,transitions:P,current:k,deleted:w,prevProps:e}},t.render=function(){var e=this,t=this.props,n=(t.initial,t.from,t.enter,t.leave,t.update,t.onDestroyed,t.keys,t.items,t.onFrame),i=t.onRest,a=t.onStart,s=(t.trail,t.config,t.children),l=(t.unique,t.reset),u=Object(r.a)(t,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map((function(t,r){var d,f=t.state,p=t.key,h=t.item,m=t.from,b=t.to,g=t.trail,v=t.config,O=t.destroyed;return c.a.createElement(Oe,Object(o.a)({reset:l&&"enter"===f,primitive:be,state:f,filter:ee,states:(d={},d[f]=b,d),key:p,onRest:O?e.destroyItem(h,p,f):i&&function(e){return i(h,f,e)},onStart:a&&function(){return a(h,f)},onFrame:n&&function(e){return n(h,f,e)},delay:g,config:v},u,{from:m,children:function(e){var t=s(h,f,r);return t?t(e):null}}))}))},n}(c.a.PureComponent);ke.defaultProps={keys:function(e){return e},unique:!1,reset:!1},["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].reduce((function(e,t){return e[t]=me(t),e}),me)},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";var r=n(11),i=n.n(r),a=n(0),o=n(20),s=n(25),c=n.n(s),l=n(5),u=n.n(l),d=n(1),f=n(3),p=({option:e,value:t,sizeRef:n,onChange:r,props:i})=>Object(a.createElement)(o.animated.ul,{style:i,className:"ct-typography-options",key:"options"},Object(a.createElement)("li",{key:"size"},Object(a.createElement)(f.a,{value:t.size,values:t,id:"size",option:{id:"size",label:Object(d.__)("Font Size","affiliatex"),type:"ab-slider",value:e.value.size,ref:n,responsive:e.typography_responsive||!0,units:[{unit:"px",min:0,max:200},{unit:"em",min:0,max:50},{unit:"rem",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"vw",min:0,max:100}]},hasRevertButton:!1,onChange:e=>r({...t,size:e})})),Object(a.createElement)("li",{key:"line-height"},Object(a.createElement)(f.a,{value:t["line-height"],values:t,id:"line-height",option:{id:"line-height",label:Object(d.__)("Line Height","affiliatex"),type:"ab-slider",value:e.value["line-height"],responsive:e.typography_responsive||!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!1,onChange:e=>r({...t,"line-height":e})})),Object(a.createElement)("li",{key:"letter-spacing"},Object(a.createElement)(f.a,{value:t["letter-spacing"],values:t,id:"letter-spacing",option:{id:"letter-spacing",label:Object(d.__)("Letter Spacing","affiliatex"),type:"ab-slider",value:e.value["letter-spacing"],responsive:e.typography_responsive||!0,defaultPosition:"center",units:[{unit:"em",min:-5,max:5,decimals:1},{unit:"px",min:-20,max:20,decimals:1},{unit:"rem",min:-5,max:5,decimals:1}]},hasRevertButton:!1,onChange:e=>r({...t,"letter-spacing":e})})),Object(a.createElement)("li",{key:"variant",className:"ct-typography-variant"},Object(a.createElement)("ul",{className:u()("ct-text-transform")},["capitalize","uppercase"].map(e=>Object(a.createElement)("li",{key:e,onClick:()=>r({...t,"text-transform":t["text-transform"]===e?"none":e}),className:u()({active:e===t["text-transform"]}),"data-variant":e},Object(a.createElement)("i",{className:"affiliate-blocks-tooltip-top"},{capitalize:Object(d.__)("Capitalize","affiliatex"),uppercase:Object(d.__)("Uppercase","affiliatex")}[e])))),Object(a.createElement)("ul",{className:u()("ct-text-decoration")},["line-through","underline"].map(e=>Object(a.createElement)("li",{key:e,onClick:()=>r({...t,"text-decoration":t["text-decoration"]===e?"none":e}),className:u()({active:e===t["text-decoration"]}),"data-variant":e},Object(a.createElement)("i",{className:"affiliate-blocks-tooltip-top"},{"line-through":Object(d.__)("Line Through","affiliatex"),underline:Object(d.__)("Underline","affiliatex")}[e])))))),h=n(9),m=n(13),b=n(10),g=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function v(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(i=t[n])||g(r)&&g(i)))return!1;var r,i;return!0}var O=function(e,t){var n;void 0===t&&(t=v);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}},y=n(4),j=(n(16),"object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function k(e){cancelAnimationFrame(e.id)}var w=null;function E(e){if(void 0===e&&(e=!1),null===w||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?w="positive-descending":(t.scrollLeft=1,w=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),w}return w}var _=function(e,t){return e};function C(e){var t,n,r=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Object(b.a)(Object(b.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(b.a)(Object(b.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=O((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})})),n._callOnScroll=void 0,n._callOnScroll=O((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,o=i.direction,s=i.itemSize,c=i.layout,l=n._getItemStyleCache(u&&s,u&&c,u&&o);if(l.hasOwnProperty(e))t=l[e];else{var d=r(n.props,e,n._instanceProps),f=a(n.props,e,n._instanceProps),p="horizontal"===o||"horizontal"===c,h="rtl"===o,m=p?d:0;l[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=O((function(e,__,t){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,a=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,o=i;if("rtl"===t)switch(E()){case"negative":o=-i;break;case"positive-descending":o=a-r-i}return o=Math.max(0,Math.min(o,a-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:o,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,a=t.scrollTop;n.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r,i;null!==n._resetIsScrollingTimeoutId&&k(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=(e=n._resetIsScrolling,t=150,r=j(),i={id:requestAnimationFrame((function n(){j()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}))})},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(m.a)(t,e),t.getDerivedStateFromProps=function(e,t){return x(e,t),d(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(o(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(E()){case"negative":a.scrollLeft=-i;break;case"positive-ascending":a.scrollLeft=i;break;default:var o=a.clientWidth,s=a.scrollWidth;a.scrollLeft=s-o-i}else a.scrollLeft=i;else a.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&k(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,a=e.height,o=e.innerRef,s=e.innerElementType,c=e.innerTagName,l=e.itemCount,u=e.itemData,d=e.itemKey,f=void 0===d?_:d,p=e.layout,m=e.outerElementType,b=e.outerTagName,g=e.style,v=e.useIsScrolling,O=e.width,j=this.state.isScrolling,k="horizontal"===r||"horizontal"===p,w=k?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],x=E[1],S=[];if(l>0)for(var N=C;N<=x;N++)S.push(Object(y.createElement)(t,{data:u,key:f(N,u),index:N,isScrolling:v?j:void 0,style:this._getItemStyle(N)}));var L=i(this.props,this._instanceProps);return Object(y.createElement)(m||b||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Object(h.a)({position:"relative",height:a,width:O,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},g)},Object(y.createElement)(s||c||"div",{children:S,ref:o,style:{height:k?"100%":L,pointerEvents:j?"none":void 0,width:k?L:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var a=this.state,o=a.scrollDirection,s=a.scrollOffset,c=a.scrollUpdateWasRequested;this._callOnScroll(o,s,c)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,a=r.scrollDirection,o=r.scrollOffset;if(0===t)return[0,0,0,0];var l=s(this.props,o,this._instanceProps),u=c(this.props,l,o,this._instanceProps),d=i&&"backward"!==a?1:Math.max(1,n),f=i&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,l-d),Math.max(0,Math.min(t-1,u+f)),l,u]},t}(y.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var x=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},S=C({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var i=e.direction,a=e.height,o=e.itemCount,s=e.itemSize,c=e.layout,l=e.width,u="horizontal"===i||"horizontal"===c?l:a,d=Math.max(0,o*s-u),f=Math.min(d,t*s),p=Math.max(0,t*s-u+s);switch("smart"===n&&(n=r>=p-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return p;case"center":var h=Math.round(p+(f-p)/2);return h<Math.ceil(u/2)?0:h>d+Math.floor(u/2)?d:h;case"auto":default:return r>=p&&r<=f?r:r<p?p:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,a=e.itemCount,o=e.itemSize,s=e.layout,c=e.width,l=t*o,u="horizontal"===r||"horizontal"===s?c:i,d=Math.ceil((u+n-l)/o);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}),N=n(39),L=n.n(N),P=n(18);let F=[];const M=({data:{linearFontsList:e,onPickFamily:t,value:n},index:r,style:i})=>{const o=e[r];return Object(a.createElement)("div",{style:i,onClick:()=>t(o),className:u()("ct-typography-single-font","ct-"+o.source,{active:o.family===n.family}),key:o.family},Object(a.createElement)("span",{className:"ct-font-name"},o.display||o.family),Object(a.createElement)("span",{style:{fontFamily:Object(P.d)(o.family)},className:"ct-font-preview"},"Simply dummy text"))};var A=({option:e,value:t,onPickFamily:n,typographyList:r,linearFontsList:i,currentView:o,searchTerm:s})=>{const c=Object(a.useRef)(null),[l,u]=(Object(a.useRef)(null),Object(a.useState)(null));Object(a.useEffect)(()=>{t.family&&c.current.scrollToItem(i.map(({family:e})=>e).indexOf(t.family),"start")},[]);const d=()=>{l&&clearTimeout(l),u(setTimeout(()=>{if(!c.current)return;const[e]=c.current._getRangeToRender(),t=(Math.ceil(i.length/25),Math.ceil((e+1)/25));(e=>{if(0===e.length)return;F=[...F,...e.map(({family:e})=>e)];const t=e.map(({family:e})=>e).filter(e=>-1===e.indexOf("ct_typekit")),n=e.filter(({family:e})=>e.indexOf("ct_typekit")>-1);(t.length>0||n.length>0)&&L.a.load({...t.length>0?{google:{families:t}}:{},...n.length>0?{typekit:{id:n[0].kit}}:{},classes:!1,text:"abcdefghijklmnopqrstuvwxyz"})})([...Array(25)].map((e,n)=>25*(t-1)+n).map(e=>i[e]).filter(e=>!!e).filter(({source:e,family:t})=>-1===F.indexOf(t)&&("google"===e||"typekit"===e)))},100))};return Object(a.useEffect)(()=>{d()},[i]),Object(a.createElement)(S,{height:360,itemCount:i.length,itemSize:85,ref:c,onScroll:e=>{d()},itemData:{linearFontsList:i,onPickFamily:n,value:t},onItemsRendered:({overscanStartIndex:e,overscanStopIndex:t})=>{},className:"ct-typography-fonts"},M)},T=({option:e,value:t,onChange:n,typographyList:r,props:i})=>{const s=Object(P.c)(t.family,r),c=Object(a.useRef)(null);return Object(a.useEffect)(()=>{s&&(c.current.scrollTop=(c.current.children[s.all_variations.indexOf(t.variation)]||c.current.children[0]).offsetTop-c.current.offsetTop)},[s]),Object(a.createElement)(o.animated.ul,{style:i,className:"ct-typography-variations",ref:c},s&&s.all_variations.map(e=>Object(a.createElement)("li",{onClick:()=>n({...t,variation:e}),className:u()({active:e===t.variation}),key:e},Object(a.createElement)("span",{className:"ct-variation-name","data-variation":e},Object(P.e)(e)))))};t.a=({option:e,value:t,initialView:n,currentView:r,previousView:s,setCurrentView:l,setInititialView:d,onChange:f,wrapperProps:h={}})=>{const[m,b]=Object(a.useState)((({isDefault:e})=>({system:{type:"system",families:[...e?[]:["Default"],"System Default","Arial","Verdana","Trebuchet","Georgia","Times New Roman","Palatino","Helvetica","Myriad Pro","Lucida","Gill Sans","Impact","Serif","monospace"].map(e=>({source:"system",family:e,variations:[],all_variations:[..."Default"===e?["Default"]:[],"n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}))}}))(e)),[g,v]=Object(a.useState)(!1),[O,y]=Object(a.useState)(""),j=Object(a.useMemo)(()=>"_"===s||"search"===r&&"fonts"===s||"search"===s&&"fonts"===r?"static":"options"===s||"fonts"===s&&"variations"===r?"right":"left",[r,s]),k=Object(a.useRef)(null),w=Object(a.useRef)(null),E=Object.keys(m).reduce((e,t)=>[...e,...(m[t].families||[]).filter(({family:e})=>function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var i=0,a=0;i<r;i++){for(var o=e.charCodeAt(i);a<n;)if(t.charCodeAt(a++)===o)continue e;return!1}return!0}(O.toLowerCase(),e.toLowerCase()))],[]);Object(a.useEffect)(()=>{n&&"done"!==n&&(y(""),setTimeout(()=>{})),"font_size"===n&&setTimeout(()=>w.current&&w.current.focus(),100)},[n]),Object(a.useEffect)(()=>{(async()=>{const t=new FormData;t.append("action","affiliatex_get_fonts_list");try{const n=await fetch(ajaxurl,{method:"POST",body:t});if(200===n.status){const{success:t,data:r}=await n.json();t&&b({...r.fonts,system:{...r.fonts.system,families:[...e.isDefault?[]:[{source:"system",family:"Default",variations:[],all_variations:["Default","n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}],...r.fonts.system.families]}})}}catch(e){}})()},[]),Object(a.useEffect)(()=>{"search"===r&&k.current.focus()},[r]);const _=e=>{f({...t,family:e.family,variation:Object(P.a)(e,t)})};return Object(a.createElement)(o.animated.div,i()({className:"ct-option-modal ct-typography-modal"},h),Object(a.createElement)("div",{className:"ct-typography-container"},Object(a.createElement)("ul",{className:u()("ct-typography-top",{"rara-switch-panel":"options"!==r,"ct-static":"_"===s})},Object(a.createElement)("li",{className:"ct-back",onClick:()=>l("options")},Object(a.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},Object(a.createElement)("path",{d:"M14.2,6.8H2.6l4-4c0.3-0.3,0.3-0.8,0-1.1c-0.3-0.3-0.8-0.3-1.1,0L0.2,7l0,0c0,0-0.1,0.1-0.1,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1l0,0c0,0,0,0,0,0c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1C0.2,8,0.2,8,0.2,8l5.3,5.3c0.3,0.3,0.8,0.3,1.1,0c0.3-0.3,0.3-0.8,0-1.1l-4-4h11.7c0.4,0,0.8-0.3,0.8-0.8S14.7,6.8,14.2,6.8z"}))),Object(a.createElement)("li",{className:u()("ct-font",{active:"search"===r||"fonts"===r}),onClick:()=>{l("fonts"===r?"search":"fonts"),y("")}},"search"!==r&&Object(a.createElement)("span",null,Object(P.b)(t.family)),"search"===r&&Object(a.createElement)("input",{onClick:e=>e.stopPropagation(),ref:k,autoFocus:!0,value:O,onKeyUp:e=>{13==e.keyCode&&E.length>0&&(_(E[0]),l("options"),y(""))},onChange:({target:{value:e}})=>y(e)}),Object(a.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 15 15"},"search"===r&&Object(a.createElement)("path",{d:"M8.9,7.5l4.6-4.6c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0L7.5,6.1L2.9,1.5c-0.4-0.4-1-0.4-1.4,0c-0.4,0.4-0.4,1,0,1.4l4.6,4.6l-4.6,4.6c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l4.6-4.6l4.6,4.6c0.4,0.4,1,0.4,1.4,0c0.4-0.4,0.4-1,0-1.4L8.9,7.5z"}),"search"!==r&&Object(a.createElement)("path",{d:"M14.6,14.6c-0.6,0.6-1.4,0.6-2,0l-2.5-2.5c-1,0.7-2.2,1-3.5,1C2.9,13.1,0,10.2,0,6.6S2.9,0,6.6,0c3.6,0,6.6,2.9,6.6,6.6c0,1.3-0.4,2.5-1,3.5l2.5,2.5C15.1,13.1,15.1,14,14.6,14.6z M6.6,1.9C4,1.9,1.9,4,1.9,6.6s2.1,4.7,4.7,4.7c2.6,0,4.7-2.1,4.7-4.7C11.3,4,9.2,1.9,6.6,1.9z"}))),Object(a.createElement)("li",{className:u()("ct-weight",{active:"variations"===r}),onClick:()=>l("variations")},Object(a.createElement)("span",{"data-variation":t.variation},Object(P.f)(t.variation)))),Object(a.createElement)(o.Transition,{items:r,immediate:"static"===j,config:(e,t)=>({duration:210,easing:c()(.455,.03,.515,.955)}),from:{transform:"left"===j?"translateX(100%)":"translateX(-100%)",position:"absolute"},enter:{transform:"translateX(0%)",position:"absolute"},leave:{position:"absolute",transform:"left"===j?"translateX(-100%)":"translateX(100%)"}},(n,r,i,c)=>"options"===r?Object(a.createElement)(p,{sizeRef:w,value:t,option:e,onChange:f,props:n,currentView:r}):"fonts"===r||"search"===r?Object(a.createElement)(o.animated.div,{style:n,key:r},Object(a.createElement)(A,{typographyList:m,searchTerm:O,linearFontsList:E,currentView:`${r}:${s}`,onPickFamily:e=>{_(e)},value:t})):"variations"===r?Object(a.createElement)(T,{currentView:r,props:n,typographyList:m,onChange:e=>{f(e)},value:t}):void 0)))}},,function(e,t){e.exports=window.wp.hooks},,function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(5),a=n.n(i);const o=({option:{behavior:e="words"},value:t})=>"words"===e?"yes"===t:!!t,s=({value:e,option:t={},onChange:n,onClick:i})=>Object(r.createElement)("div",{className:a()({"ct-option-switch":!0,"ct-active":o({option:t,value:e})}),onClick:r=>{i&&i(r),n((({option:e={},option:{behavior:t="words"},value:n})=>o({option:e,value:n})?"words"===t&&"no":"words"!==t||"yes")({option:t,value:e}))}},Object(r.createElement)("span",null));s.renderingConfig={design:"inline"},t.default=s},function(e,t){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var i=(t[1]-t[0])/(e[1]-e[0]),a=t[0]+i*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],a)):a}}},function(e,t,n){var r;!function(){function i(e,t,n){return e.call.apply(e.bind,arguments)}function a(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function o(e,t,n){return(o=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:a).apply(null,arguments)}var s=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var l=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r&&t.appendChild(e.c.createTextNode(r)),t}function d(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var a=!1,o=0;o<r.length;o+=1)if(t[i]===r[o]){a=!0;break}a||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(a=!1,o=0;o<n.length;o+=1)if(r[i]===n[o]){a=!0;break}a||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function m(e,t,n){function r(){s&&i&&a&&(s(o),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,a=!0,o=null,s=n||null;l?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,o=Error("Stylesheet failed to load"),r()}):setTimeout((function(){i=!0,r()}),0),d(e,"head",t)}function b(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var a=u(e,"script",{src:t}),o=!1;return a.onload=a.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,n&&n(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&i.removeChild(a))},i.appendChild(a),setTimeout((function(){o||(o=!0,n&&n(Error("Script load timeout")))}),r||5e3),a}return null}function g(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,y(e)}}function O(e,t){e.c=t,y(e)}function y(e){0==e.a&&e.c&&(e.c(),e.c=null)}function j(e){this.a=e||"-"}function k(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function E(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function x(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new j("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function S(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),p(e.f,n,r)}N(e,"inactive")}function N(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,E(n)):e.h[t]())}function L(){this.c={}}function P(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function F(e){d(e.c,"body",e.a)}function M(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function A(e,t,n,r,i,a){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=a||void 0}function T(e,t,n,r,i,a,o){this.v=e,this.B=t,this.c=n,this.a=r,this.s=o||"BESbswy",this.f={},this.w=i||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new P(this.c,this.s),this.h=new P(this.c,this.s),this.j=new P(this.c,this.s),this.m=new P(this.c,this.s),e=M(e=new k(this.a.c+",serif",E(this.a))),this.g.a.style.cssText=e,e=M(e=new k(this.a.c+",sans-serif",E(this.a))),this.h.a.style.cssText=e,e=M(e=new k("serif",E(this.a))),this.j.a.style.cssText=e,e=M(e=new k("sans-serif",E(this.a))),this.m.a.style.cssText=e,F(this.g),F(this.h),F(this.j),F(this.m)}j.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},A.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise((function(r,i){!function a(){s()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var R={D:"serif",C:"sans-serif"},V=null;function I(){if(null===V){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);V=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return V}function B(e,t,n){for(var r in R)if(R.hasOwnProperty(r)&&t===e.f[R[r]]&&n===e.f[R[r]])return!0;return!1}function D(e,t){setTimeout(o((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)}),e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}T.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),function e(t){var n,r=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(n=r===t.f.serif&&i===t.f["sans-serif"])||(n=I()&&B(t,r,i)),n?s()-t.A>=t.w?I()&&B(t,r,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?D(t,t.v):D(t,t.B):function(t){setTimeout(o((function(){e(this)}),t),50)}(t):D(t,t.v)}(this)};var H=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),N(e,"active")):S(e.a))}function U(e){this.j=e,this.a=new L,this.h=0,this.f=this.g=!0}function $(e,t,n,r,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=r||{};if(0===n.length&&a)S(t.a);else{t.f+=n.length,a&&(t.j=a);var c,l=[];for(c=0;c<n.length;c++){var u=n[c],d=s[u.c],f=t.a,h=u;if(f.g&&p(f.f,[f.a.c("wf",h.c,E(h).toString(),"loading")]),N(f,"fontloading",h),f=null,null===H)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=h?42<parseInt(h[1],10):!m}else H=!1;f=H?new A(o(t.g,t),o(t.h,t),t.c,u,t.s,d):new T(o(t.g,t),o(t.h,t),t.c,u,t.s,e,d),l.push(f)}for(c=0;c<l.length;c++)l[c].start()}}),0)}function q(e,t){this.c=e,this.a=t}function Z(e,t){this.c=e,this.a=t}function K(e,t){this.c=e||G,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&p(t.f,[t.a.c("wf",e.c,E(e).toString(),"active")],[t.a.c("wf",e.c,E(e).toString(),"loading"),t.a.c("wf",e.c,E(e).toString(),"inactive")]),N(t,"fontactive",e),this.m=!0,W(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=h(t.f,t.a.c("wf",e.c,E(e).toString(),"active")),r=[],i=[t.a.c("wf",e.c,E(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,E(e).toString(),"inactive")),p(t.f,r,i)}N(t,"fontinactive",e),W(this)},U.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=n.timeout;!function(e){e.g&&p(e.f,[e.a.c("wf","loading")]),N(e,"loading")}(t),r=function(e,t,n){var r,i=[];for(r in t)if(t.hasOwnProperty(r)){var a=e.c[r];a&&i.push(a(t[r],n))}return i}(e.a,n,e.c);var a=new z(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){$(e,a,t,n,r)}))}(this,new x(this.c,e),e)},q.prototype.load=function(e){var t=this,n=t.a.projectId,r=t.a.version;if(n){var i=t.c.o;b(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(r?"?v="+r:""),(function(r){r?e([]):(i["__MonotypeConfiguration__"+n]=function(){return t.a},function t(){if(i["__mti_fntLst"+n]){var r,a=i["__mti_fntLst"+n](),o=[];if(a)for(var s=0;s<a.length;s++){var c=a[s].fontfamily;null!=a[s].fontStyle&&null!=a[s].fontWeight?(r=a[s].fontStyle+a[s].fontWeight,o.push(new k(c,r))):o.push(new k(c))}e(o)}else setTimeout((function(){t()}),50)}())})).id="__MonotypeAPIScript__"+n}else e([])},Z.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],a=this.a.testStrings||{},o=new g;for(t=0,n=r.length;t<n;t++)m(this.c,r[t],v(o));var s=[];for(t=0,n=i.length;t<n;t++)if((r=i[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new k(r[0],c[l]));else s.push(new k(r[0]));O(o,(function(){e(s,a)}))};var G="https://fonts.googleapis.com/css";function X(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},ee=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function te(e,t){this.c=e,this.a=t}var ne={Arimo:!0,Cousine:!0,Tinos:!0};function re(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}te.prototype.load=function(e){var t=new g,n=this.c,r=new K(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var a="";2==i.length&&""!=i[1]&&(a=":"),e.a.push(i.join(a))}}(r,i);var a=new X(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),a=["n4"];if(2<=r.length){var o;if(o=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(d=ee.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":Y[u],null==(d=d[1])||""==d)d="4";else var d=J[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&o.push(u)}0<o.length&&(a=o),3==r.length&&(o=[],0<(r=(r=r[2])?r.split(","):o).length&&(r=Q[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=Q[i])&&(e.c[i]=r),r=0;r<a.length;r+=1)e.a.push(new k(i,a[r]))}}(a),m(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),v(t)),O(t,(function(){e(a.a,a.c,ne)}))},re.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?b(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],i=0;i<t.length;i+=2)for(var a=t[i],o=t[i+1],s=0;s<o.length;s++)r.push(new k(a,o[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i=0,a=n.fonts.length;i<a;++i){var o=n.fonts[i];r.a.push(new k(o.name,C("font-weight:"+o.weight+";font-style:"+o.style)))}e(r.a)},b(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new U(window);ae.a.c.custom=function(e,t){return new Z(t,e)},ae.a.c.fontdeck=function(e,t){return new ie(t,e)},ae.a.c.monotype=function(e,t){return new q(t,e)},ae.a.c.typekit=function(e,t){return new re(t,e)},ae.a.c.google=function(e,t){return new te(t,e)};var oe={load:o(ae.load,ae)};void 0===(r=function(){return oe}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){e.exports=n(63)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maybePromoteScalarValueIntoResponsive=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},function(e,t){},function(e,t){},function(e,t,n){var r=Array.prototype.slice,i=n(49),a=n(50),o=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var l,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=r.call(e),t=r.call(t),o(e,t,n));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var d=i(e),f=i(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),l=d.length-1;l>=0;l--)if(d[l]!=f[l])return!1;for(l=d.length-1;l>=0;l--)if(u=d[l],!o(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";var r=n(0),i=n(20),a=n(1),o=n(25),s=n.n(o),c=n(5),l=n.n(c),u=n(17),d=n(8),f=n(18),p=n(33),h=n(22);t.a=({option:{label:e="",desc:t="",attr:n={}},option:o,value:c,device:m,onChange:b})=>{const[g,v]=Object(r.useState)("_:_"),O=Object(r.useRef)();let[y,j]=Object(r.useMemo)(()=>g.split(":"),[g]);const k=Object(r.useCallback)(e=>v(`${e}:${y}`),[y]),[{isOpen:w,isTransitioning:E},_]=Object(r.useState)({isOpen:!1,isTransitioning:!1}),{styles:C,popoverProps:x}=Object(h.a)({ref:O,defaultHeight:430,shouldCalculate:E||w}),S=e=>{_(t=>({...t,isOpen:e,isTransitioning:!0}))},N=Object(r.useRef)(),L=Object(r.useRef)(),P=Object(r.useRef)(),F=Object(r.useRef)(),M=Object(r.useMemo)(()=>{const e=y,t="options"===e?L.current:"fonts"===e?N.current:"variations"===e?P.current:L.current;return x.ref&&x.ref.current&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(x.ref.current,t)},[w,y,x.ref,x.ref&&x.ref.current,N&&N.current,P&&P.current,L&&L.current,F&&F.current]);return Object(r.createElement)("div",{className:l()("ct-typography",{})},Object(r.createElement)(u.a,{disabled:!w,useCapture:!1,className:"ct-typohraphy-value",additionalRefs:[x.ref],onOutsideClick:()=>{S(!1)},wrapperProps:{ref:O,onClick:e=>{e.preventDefault(),w?k("options"):(v("options:_"),S("options"))}}},Object(r.createElement)("div",null,Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("fonts"):(v("fonts:_"),S("fonts"))},className:"ct-font",ref:N},Object(r.createElement)("span",null,"Default"===c.family?"Default Family":Object(f.b)(c.family))),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("options"):(v("options:_"),S("font_size"))},ref:L,className:"ct-size"},Object(r.createElement)("span",null,"CT_CSS_SKIP_RULE"===Object(d.e)(c.size)[m]?Object(a.__)("Default Size","affiliatex"):Object(d.e)(c.size)[m])),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{ref:P,onClick:e=>{e.stopPropagation(),w?k("variations"):(v("variations:_"),S("variations"))},className:"ct-weight"},Object(r.createElement)("span",null,Object(f.e)(c.variation)))),Object(r.createElement)("a",{ref:F})),(E||w)&&Object(r.createPortal)(Object(r.createElement)(i.Transition,{items:w,onRest:e=>{_(e=>({...e,isTransitioning:!1}))},config:{duration:100,easing:s()(.25,.1,.25,1)},from:w?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:w?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:w?{opacity:1}:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(e,t)=>t?Object(r.createElement)(p.a,{wrapperProps:{style:{...e,...C,...M},...x},onChange:b,value:c,option:o,initialView:t,setInititialView:e=>S(e),currentView:y,previousView:j,setCurrentView:k}):null),document.body))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r,i;n(77),r=[n(76)],void 0===(i=function(e){return function(){var t,n,r,i=0,a={clear:function(n,r){var i=u();t||o(i),s(n,i,r)||function(n){for(var r=t.children(),i=r.length-1;i>=0;i--)s(e(r[i]),n)}(i)},remove:function(n){var r=u();t||o(r),n&&0===e(":focus",n).length?d(n):t.children().length&&t.remove()},error:function(e,t,n){return l({type:"error",iconClass:u().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:o,info:function(e,t,n){return l({type:"info",iconClass:u().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return l({type:"success",iconClass:u().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return l({type:"warning",iconClass:u().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return a;function o(n,r){return n||(n=u()),(t=e("#"+n.containerId)).length||r&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t}function s(t,n,r){var i=!(!r||!r.force)&&r.force;return!(!t||!i&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){d(t)}}),0))}function c(e){n&&n(e)}function l(n){var a=u(),s=n.iconClass||a.iconClass;if(void 0!==n.optionsOverride&&(a=e.extend(a,n.optionsOverride),s=n.optionsOverride.iconClass||s),!function(e,t){if(e.preventDuplicates){if(t.message===r)return!0;r=t.message}return!1}(a,n)){i++,t=o(a,!0);var l=null,f=e("<div/>"),p=e("<div/>"),h=e("<div/>"),m=e("<div/>"),b=e(a.closeHtml),g={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:i,state:"visible",startTime:new Date,options:a,map:n};return n.iconClass&&f.addClass(a.toastClass).addClass(s),function(){if(n.title){var e=n.title;a.escapeHtml&&(e=O(n.title)),p.append(e).addClass(a.titleClass),f.append(p)}}(),function(){if(n.message){var e=n.message;a.escapeHtml&&(e=O(n.message)),h.append(e).addClass(a.messageClass),f.append(h)}}(),a.closeButton&&(b.addClass(a.closeClass).attr("role","button"),f.prepend(b)),a.progressBar&&(m.addClass(a.progressClass),f.prepend(m)),a.rtl&&f.addClass("rtl"),a.newestOnTop?t.prepend(f):t.append(f),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}f.attr("aria-live",e)}(),f.hide(),f[a.showMethod]({duration:a.showDuration,easing:a.showEasing,complete:a.onShown}),a.timeOut>0&&(l=setTimeout(y,a.timeOut),g.maxHideTime=parseFloat(a.timeOut),g.hideEta=(new Date).getTime()+g.maxHideTime,a.progressBar&&(g.intervalId=setInterval((function(){var e=(g.hideEta-(new Date).getTime())/g.maxHideTime*100;m.width(e+"%")}),10))),a.closeOnHover&&f.hover((function(){clearTimeout(l),g.hideEta=0,f.stop(!0,!0)[a.showMethod]({duration:a.showDuration,easing:a.showEasing})}),(function(){(a.timeOut>0||a.extendedTimeOut>0)&&(l=setTimeout(y,a.extendedTimeOut),g.maxHideTime=parseFloat(a.extendedTimeOut),g.hideEta=(new Date).getTime()+g.maxHideTime)})),!a.onclick&&a.tapToDismiss&&f.click(y),a.closeButton&&b&&b.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),a.onCloseClick&&a.onCloseClick(e),y(!0)})),a.onclick&&f.click((function(e){a.onclick(e),y()})),c(v),a.debug&&console&&console.log(v),f}function O(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function y(t){var n=t&&!1!==a.closeMethod?a.closeMethod:a.hideMethod,r=t&&!1!==a.closeDuration?a.closeDuration:a.hideDuration,i=t&&!1!==a.closeEasing?a.closeEasing:a.hideEasing;if(!e(":focus",f).length||t)return clearTimeout(g.intervalId),f[n]({duration:r,easing:i,complete:function(){d(f),clearTimeout(l),a.onHidden&&"hidden"!==v.state&&a.onHidden(),v.state="hidden",v.endTime=new Date,c(v)}})}}function u(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},a.options)}function d(e){t||(t=o()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),r=void 0))}}()}.apply(t,r))||(e.exports=i)},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:i).supported=r,t.unsupported=i},function(e,t,n){var r={"./ab-background.js":58,"./ab-border.js":52,"./ab-box-shadow.js":59,"./ab-color-picker.js":53,"./ab-radio.js":54,"./ab-slider.js":55,"./ab-spacing.js":57,"./ab-switch.js":37,"./ab-typography.js":56};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=51},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),a=n(5),o=n.n(a),s=n(30),c=n(17);const l=(e,t,n)=>Math.max(e,Math.min(t,n));t.default=({value:e,option:t,onChange:n})=>{const[a,u]=Object(r.useState)(!1);return Object(r.createElement)("div",{className:o()("ct-option-border")},Object(r.createElement)("div",{className:o()("ct-value-changer",{active:a,"ct-disabled":"none"===e.style||e.inherit})},Object(r.createElement)("input",{type:"number",value:e.width,onChange:({target:{value:t}})=>n({...e,width:l(1,5,parseInt(t,10)||1)})}),Object(r.createElement)("span",{className:"ct-value-divider"}),Object(r.createElement)("span",{className:"ct-current-value","data-style":e.inherit?"none":e.style,onClick:()=>u(!a)},e.inherit?Object(i.__)("Inherit","affiliatex"):"none"===e.style?e.style:null),Object(r.createElement)(c.a,{disabled:!a,onOutsideClick:()=>{a&&u(!1)}},Object(r.createElement)("ul",{className:"ct-styles-list"},["solid","dashed","dotted","double","none"].reduce((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(i=>Object(r.createElement)("li",{key:i[0]},i.map(i=>Object(r.createElement)("span",{className:o()({active:i===e.style}),"data-style":i,key:i,onClick:()=>{n({...e,style:i,...Object.keys(t.value).indexOf("inherit")>-1?{inherit:!1}:{}}),u(!1)},"data-style":i},"none"===i?i:null))))))),Object(r.createElement)(s.a,{onChange:t=>n({...e,color:t.default}),option:{pickers:[{id:"default",title:"Initial"}]},value:{default:e.color}}))}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(21),a=n(27),o=n(17);t.default=({option:e,values:t,value:n,onChange:s})=>{const[{isPicking:c,isTransitioning:l},u]=Object(r.useState)({isPicking:null,isTransitioning:null}),d=Object(r.useRef)(),f=Object(r.useRef)();return Object(r.createElement)(o.a,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:d},className:"app-color-picker-container",additionalRefs:[f],onOutsideClick:()=>{u(({isPicking:e})=>({isPicking:null,isTransitioning:e}))}},e.pickers.filter(e=>!e.condition||Object(i.a)(Object(i.b)(e.condition),t)).map(t=>Object(r.createElement)(a.a,{containerRef:d,picker:t,key:t.id,option:e,isPicking:c,modalRef:f,isTransitioning:l,onPickingChange:e=>u({isTransitioning:t.id,isPicking:e}),stopTransitioning:()=>u(e=>({...e,isTransitioning:!1})),onChange:e=>s({...n,[t.id]:e}),value:n[t.id]||e.value[t.id]})))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n(11),i=n.n(r),a=n(0),o=n(5),s=n.n(o),c=n(21);class l extends a.Component{renderAsText(){}renderAsRadio(){const{inline:e=!1}=this.props.option;return Object(a.createElement)("div",i()({className:"ct-radio-option"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).map(e=>Object(a.createElement)("label",{key:e},Object(a.createElement)("input",{type:"radio",checked:e===this.props.value,onChange:()=>this.props.onChange(e)}),this.props.option.choices[e])))}render(){if("radio"===this.props.option.view)return this.renderAsRadio();const{inline:e=!1}=this.props.option;return Object(a.createElement)("ul",i()({className:"ct-radio-option ct-buttons-group"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).filter(e=>!this.props.option.conditions||!this.props.option.conditions[e]||Object(c.a)(Object(c.b)(this.props.option.conditions[e]),this.props.values)).map(e=>Object(a.createElement)("li",i()({className:s()({active:e===this.props.value}),onClick:()=>this.props.onChange(e),key:e,dangerouslySetInnerHTML:{__html:this.props.option.choices[e]}},this.props.singleChoiceProps?this.props.singleChoiceProps(e):{}))))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return b}));var r=n(11),i=n.n(r),a=n(14),o=n.n(a),s=n(0),c=n(5),l=n.n(c),u=n(38),d=n.n(u),f=n(17);const p=(e,t,n)=>Math.max(e,Math.min(t,n)),h=(e,t=1)=>{const n=Math.pow(10,t);return Math.round(e*n+Number.EPSILON)/n},m=({option:e,onChange:t,is_open:n,toggleOpen:r,currentUnit:i,getNumericValue:a,getAllowedDecimalPlaces:o})=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("span",{onClick:()=>r(),className:"ct-current-value"},i||"―"),Object(s.createElement)(f.a,{onOutsideClick:()=>{n&&r()}},Object(s.createElement)("ul",{className:"ct-units-list"},e.units.filter(({unit:e})=>e!==i).reduce((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(n=>Object(s.createElement)("li",{key:n[0].unit},n.map(({unit:n})=>Object(s.createElement)("span",{key:n,onClick:()=>{(n=>{const r=a();t(`${h(p(e.units.find(({unit:e})=>e===n).min,e.units.find(({unit:e})=>e===n).max,""===r?-1/0:r),o(n))}${n}`)})(n),r()}},n||"―")))))));class b extends s.Component{constructor(...e){super(...e),o()(this,"state",{is_dragging:!1,is_open:!1}),o()(this,"el",Object(s.createRef)()),o()(this,"hasUnitsList",()=>this.props.option.units&&this.props.option.units.length>1),o()(this,"getAllowedDecimalPlaces",(e=null)=>{const t=this.props.option.units?this.props.option.units.find(({unit:t})=>t===(e||this.getCurrentUnit())).decimals:this.props.option.decimals;return 0===t||t?t:0}),o()(this,"withDefault",(e,t)=>this.props.option.units&&this.props.option.units.find(({unit:t})=>t===e)?e:e||t),o()(this,"getCurrentUnit",()=>this.props.option.units?this.withDefault(this.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),this.props.option.units[0].unit):""),o()(this,"getMax",()=>this.props.option.units?this.props.option.units.find(({unit:e})=>e===this.getCurrentUnit()).max:this.props.option.max),o()(this,"getMin",()=>this.props.option.units?this.props.option.units.find(({unit:e})=>e===this.getCurrentUnit()).min:this.props.option.min),o()(this,"getNumericValue",({forPosition:e=!1}={})=>{const t=parseFloat(this.props.value,10);if(0===t)return t;if(!t){if(this.props.option.defaultPosition&&"center"===this.props.option.defaultPosition&&e){let e=parseFloat(this.getMin(),10);return(parseFloat(this.getMax(),10)-e)/2+e}return""}return t}),o()(this,"handleMove",e=>{this.state.is_dragging&&this.computeAndSendNewValue(e)}),o()(this,"handleUp",()=>{this.setState({is_dragging:!1}),this.detachEvents()}),o()(this,"handleBlur",()=>{if("CT_CSS_SKIP_RULE"===this.props.option.value){if("CT_CSS_SKIP_RULE"===this.props.value)return;if(""===this.getNumericValue())return void this.props.onChange("CT_CSS_SKIP_RULE")}this.props.onChange(`${p(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),parseFloat(this.getNumericValue(),10))}${this.getCurrentUnit()}`)}),o()(this,"handleChange",e=>{"CT_CSS_SKIP_RULE"!==this.props.option.value||""!==e.toString().trim()?this.props.onChange(`${((e,t)=>Math.min(e,t))(parseFloat(this.getMax(),10),parseFloat(e||this.getMin()))}${this.getCurrentUnit()}`):this.props.onChange("CT_CSS_SKIP_RULE")})}computeAndSendNewValue({pageX:e}){let{top:t,left:n,right:r,width:i}=this.el.current.getBoundingClientRect(),a=e-n-pageXOffset;this.props.onChange(`${h(d()([0,i],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?i-a:a),this.getAllowedDecimalPlaces())}${this.getCurrentUnit()}`)}attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}render(){const e=""+d()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(p(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)));return Object(s.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),Object(s.createElement)("div",i()({onMouseDown:({pageX:e,pageY:t})=>{this.attachEvents(),this.setState({is_dragging:!0})},onClick:e=>this.computeAndSendNewValue(e),ref:this.el,className:"ab-slider"},this.props.option.steps?{"data-steps":""}:{}),Object(s.createElement)("div",{style:{width:e+"%"}}),Object(s.createElement)("span",{style:{"--position":e+"%"}}),this.props.option.steps&&Object(s.createElement)("section",{className:this.props.option.steps},Object(s.createElement)("i",{className:"minus"}),Object(s.createElement)("i",{className:"zero"}),Object(s.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&Object(s.createElement)("div",{className:l()("ab-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},Object(s.createElement)("input",i()({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1/Math.pow(10,this.getAllowedDecimalPlaces()),value:this.getNumericValue(),onBlur:()=>this.handleBlur(),onChange:({target:{value:e}})=>this.handleChange(e)})),Object(s.createElement)("span",{className:"ct-value-divider"}),!this.hasUnitsList()&&Object(s.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&Object(s.createElement)(m,{option:this.props.option,onChange:this.props.onChange,is_open:this.state.is_open,toggleOpen:()=>this.setState({is_open:!this.state.is_open}),currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue,getAllowedDecimalPlaces:this.getAllowedDecimalPlaces})))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(20),a=n(1),o=n(25),s=n.n(o),c=n(5),l=n.n(c),u=n(8),d=n(22),f=n(17),p=n(18),h=n(33);t.default=({option:{label:e="",desc:t="",attr:n={}},option:o,value:c,device:m,onChange:b})=>{const[g,v]=Object(r.useState)("_:_"),O=Object(r.useRef)();let[y,j]=Object(r.useMemo)(()=>g.split(":"),[g]);const k=Object(r.useCallback)(e=>v(`${e}:${y}`),[y]),[{isOpen:w,isTransitioning:E},_]=Object(r.useState)({isOpen:!1,isTransitioning:!1}),{styles:C,popoverProps:x}=Object(d.a)({ref:O,defaultHeight:430,shouldCalculate:E||w}),S=e=>{_(t=>({...t,isOpen:e,isTransitioning:!0}))},N=Object(r.useRef)(),L=Object(r.useRef)(),P=Object(r.useRef)(),F=Object(r.useRef)(),M=Object(r.useMemo)(()=>{const e=y,t="options"===e?L.current:"fonts"===e?N.current:"variations"===e?P.current:L.current;return x.ref&&x.ref.current&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(x.ref.current,t)},[w,y,x.ref,x.ref&&x.ref.current,N&&N.current,P&&P.current,L&&L.current,F&&F.current]);return Object(r.createElement)("div",{className:l()("ct-typography",{})},Object(r.createElement)(f.a,{disabled:!w,useCapture:!1,className:"ct-typohraphy-value",additionalRefs:[x.ref],onOutsideClick:()=>{S(!1)},wrapperProps:{ref:O,onClick:e=>{e.preventDefault(),w?k("options"):(v("options:_"),S("options"))}}},Object(r.createElement)("div",null,Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("fonts"):(v("fonts:_"),S("fonts"))},className:"ct-font",ref:N},Object(r.createElement)("span",null,"Default"===c.family?"Default Family":Object(p.b)(c.family))),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("options"):(v("options:_"),S("font_size"))},ref:L,className:"ct-size"},Object(r.createElement)("span",null,"CT_CSS_SKIP_RULE"===Object(u.e)(c.size)[m]?Object(a.__)("Default Size","affiliatex"):Object(u.e)(c.size)[m])),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{ref:P,onClick:e=>{e.stopPropagation(),w?k("variations"):(v("variations:_"),S("variations"))},className:"ct-weight"},Object(r.createElement)("span",null,Object(p.e)(c.variation)))),Object(r.createElement)("a",{ref:F})),(E||w)&&Object(r.createPortal)(Object(r.createElement)(i.Transition,{items:w,onRest:e=>{_(e=>({...e,isTransitioning:!1}))},config:{duration:100,easing:s()(.25,.1,.25,1)},from:w?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:w?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:w?{opacity:1}:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(e,t)=>t?Object(r.createElement)(h.a,{wrapperProps:{style:{...e,...C,...M},...x},onChange:b,value:c,option:o,initialView:t,setInititialView:e=>S(e),currentView:y,previousView:j,setCurrentView:k}):null),document.body))}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"VERSION",(function(){return u.e})),n.d(r,"restArguments",(function(){return d})),n.d(r,"isObject",(function(){return f})),n.d(r,"isNull",(function(){return p})),n.d(r,"isUndefined",(function(){return h})),n.d(r,"isBoolean",(function(){return m})),n.d(r,"isElement",(function(){return b})),n.d(r,"isString",(function(){return v})),n.d(r,"isNumber",(function(){return O})),n.d(r,"isDate",(function(){return y})),n.d(r,"isRegExp",(function(){return j})),n.d(r,"isError",(function(){return k})),n.d(r,"isSymbol",(function(){return w})),n.d(r,"isArrayBuffer",(function(){return E})),n.d(r,"isDataView",(function(){return F})),n.d(r,"isArray",(function(){return M})),n.d(r,"isFunction",(function(){return x})),n.d(r,"isArguments",(function(){return R})),n.d(r,"isFinite",(function(){return V})),n.d(r,"isNaN",(function(){return I})),n.d(r,"isTypedArray",(function(){return $})),n.d(r,"isEmpty",(function(){return G})),n.d(r,"isMatch",(function(){return X})),n.d(r,"isEqual",(function(){return Y})),n.d(r,"isMap",(function(){return ce})),n.d(r,"isWeakMap",(function(){return le})),n.d(r,"isSet",(function(){return ue})),n.d(r,"isWeakSet",(function(){return de})),n.d(r,"keys",(function(){return K})),n.d(r,"allKeys",(function(){return ee})),n.d(r,"values",(function(){return fe})),n.d(r,"pairs",(function(){return pe})),n.d(r,"invert",(function(){return he})),n.d(r,"functions",(function(){return me})),n.d(r,"methods",(function(){return me})),n.d(r,"extend",(function(){return ge})),n.d(r,"extendOwn",(function(){return ve})),n.d(r,"assign",(function(){return ve})),n.d(r,"defaults",(function(){return Oe})),n.d(r,"create",(function(){return je})),n.d(r,"clone",(function(){return ke})),n.d(r,"tap",(function(){return we})),n.d(r,"get",(function(){return xe})),n.d(r,"has",(function(){return Se})),n.d(r,"mapObject",(function(){return Re})),n.d(r,"identity",(function(){return Ne})),n.d(r,"constant",(function(){return B})),n.d(r,"noop",(function(){return Ve})),n.d(r,"toPath",(function(){return Ee})),n.d(r,"property",(function(){return Pe})),n.d(r,"propertyOf",(function(){return Ie})),n.d(r,"matcher",(function(){return Le})),n.d(r,"matches",(function(){return Le})),n.d(r,"times",(function(){return Be})),n.d(r,"random",(function(){return De})),n.d(r,"now",(function(){return ze})),n.d(r,"escape",(function(){return Ue})),n.d(r,"unescape",(function(){return $e})),n.d(r,"templateSettings",(function(){return qe})),n.d(r,"template",(function(){return Je})),n.d(r,"result",(function(){return Ye})),n.d(r,"uniqueId",(function(){return tt})),n.d(r,"chain",(function(){return nt})),n.d(r,"iteratee",(function(){return Ae})),n.d(r,"partial",(function(){return at})),n.d(r,"bind",(function(){return ot})),n.d(r,"bindAll",(function(){return lt})),n.d(r,"memoize",(function(){return ut})),n.d(r,"delay",(function(){return dt})),n.d(r,"defer",(function(){return ft})),n.d(r,"throttle",(function(){return pt})),n.d(r,"debounce",(function(){return ht})),n.d(r,"wrap",(function(){return mt})),n.d(r,"negate",(function(){return bt})),n.d(r,"compose",(function(){return gt})),n.d(r,"after",(function(){return vt})),n.d(r,"before",(function(){return Ot})),n.d(r,"once",(function(){return yt})),n.d(r,"findKey",(function(){return jt})),n.d(r,"findIndex",(function(){return wt})),n.d(r,"findLastIndex",(function(){return Et})),n.d(r,"sortedIndex",(function(){return _t})),n.d(r,"indexOf",(function(){return xt})),n.d(r,"lastIndexOf",(function(){return St})),n.d(r,"find",(function(){return Nt})),n.d(r,"detect",(function(){return Nt})),n.d(r,"findWhere",(function(){return Lt})),n.d(r,"each",(function(){return Pt})),n.d(r,"forEach",(function(){return Pt})),n.d(r,"map",(function(){return Ft})),n.d(r,"collect",(function(){return Ft})),n.d(r,"reduce",(function(){return At})),n.d(r,"foldl",(function(){return At})),n.d(r,"inject",(function(){return At})),n.d(r,"reduceRight",(function(){return Tt})),n.d(r,"foldr",(function(){return Tt})),n.d(r,"filter",(function(){return Rt})),n.d(r,"select",(function(){return Rt})),n.d(r,"reject",(function(){return Vt})),n.d(r,"every",(function(){return It})),n.d(r,"all",(function(){return It})),n.d(r,"some",(function(){return Bt})),n.d(r,"any",(function(){return Bt})),n.d(r,"contains",(function(){return Dt})),n.d(r,"includes",(function(){return Dt})),n.d(r,"include",(function(){return Dt})),n.d(r,"invoke",(function(){return zt})),n.d(r,"pluck",(function(){return Ht})),n.d(r,"where",(function(){return Wt})),n.d(r,"max",(function(){return Ut})),n.d(r,"min",(function(){return $t})),n.d(r,"shuffle",(function(){return Zt})),n.d(r,"sample",(function(){return qt})),n.d(r,"sortBy",(function(){return Kt})),n.d(r,"groupBy",(function(){return Xt})),n.d(r,"indexBy",(function(){return Qt})),n.d(r,"countBy",(function(){return Jt})),n.d(r,"partition",(function(){return Yt})),n.d(r,"toArray",(function(){return tn})),n.d(r,"size",(function(){return nn})),n.d(r,"pick",(function(){return an})),n.d(r,"omit",(function(){return on})),n.d(r,"first",(function(){return cn})),n.d(r,"head",(function(){return cn})),n.d(r,"take",(function(){return cn})),n.d(r,"initial",(function(){return sn})),n.d(r,"last",(function(){return un})),n.d(r,"rest",(function(){return ln})),n.d(r,"tail",(function(){return ln})),n.d(r,"drop",(function(){return ln})),n.d(r,"compact",(function(){return dn})),n.d(r,"flatten",(function(){return fn})),n.d(r,"without",(function(){return hn})),n.d(r,"uniq",(function(){return mn})),n.d(r,"unique",(function(){return mn})),n.d(r,"union",(function(){return bn})),n.d(r,"intersection",(function(){return gn})),n.d(r,"difference",(function(){return pn})),n.d(r,"unzip",(function(){return vn})),n.d(r,"transpose",(function(){return vn})),n.d(r,"zip",(function(){return On})),n.d(r,"object",(function(){return yn})),n.d(r,"range",(function(){return jn})),n.d(r,"chunk",(function(){return kn})),n.d(r,"mixin",(function(){return En})),n.d(r,"default",(function(){return Cn}));var i=n(11),a=n.n(i),o=n(0),s=n(1),c=n(5),l=n.n(c),u=n(6);function d(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(i=0;i<t;i++)a[i]=arguments[i];return a[t]=r,e.apply(this,a)}}function f(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function p(e){return null===e}function h(e){return void 0===e}function m(e){return!0===e||!1===e||"[object Boolean]"===u.t.call(e)}function b(e){return!(!e||1!==e.nodeType)}function g(e){var t="[object "+e+"]";return function(e){return u.t.call(e)===t}}var v=g("String"),O=g("Number"),y=g("Date"),j=g("RegExp"),k=g("Error"),w=g("Symbol"),E=g("ArrayBuffer"),_=g("Function"),C=u.p.document&&u.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof C&&(_=function(e){return"function"==typeof e||!1});var x=_,S=g("Object"),N=u.s&&S(new DataView(new ArrayBuffer(8))),L="undefined"!=typeof Map&&S(new Map),P=g("DataView"),F=N?function(e){return null!=e&&x(e.getInt8)&&E(e.buffer)}:P,M=u.k||g("Array");function A(e,t){return null!=e&&u.i.call(e,t)}var T=g("Arguments");!function(){T(arguments)||(T=function(e){return A(e,"callee")})}();var R=T;function V(e){return!w(e)&&Object(u.f)(e)&&!isNaN(parseFloat(e))}function I(e){return O(e)&&Object(u.g)(e)}function B(e){return function(){return e}}function D(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=u.b}}function z(e){return function(t){return null==t?void 0:t[e]}}var H=z("byteLength"),W=D(H),U=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,$=u.r?function(e){return u.l?Object(u.l)(e)&&!F(e):W(e)&&U.test(u.t.call(e))}:B(!1),q=z("length");function Z(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=u.n.length,r=e.constructor,i=x(r)&&r.prototype||u.c,a="constructor";for(A(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=u.n[n])in e&&e[a]!==i[a]&&!t.contains(a)&&t.push(a)}function K(e){if(!f(e))return[];if(u.m)return Object(u.m)(e);var t=[];for(var n in e)A(e,n)&&t.push(n);return u.h&&Z(e,t),t}function G(e){if(null==e)return!0;var t=q(e);return"number"==typeof t&&(M(e)||v(e)||R(e))?0===t:0===q(K(e))}function X(e,t){var n=K(t),r=n.length;if(null==e)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0}function Q(e){return e instanceof Q?e:this instanceof Q?void(this._wrapped=e):new Q(e)}function J(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,H(e))}function Y(e,t){return function e(t,n,r,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;return("function"===a||"object"===a||"object"==typeof n)&&function t(n,r,i,a){n instanceof Q&&(n=n._wrapped),r instanceof Q&&(r=r._wrapped);var o=u.t.call(n);if(o!==u.t.call(r))return!1;if(N&&"[object Object]"==o&&F(n)){if(!F(r))return!1;o="[object DataView]"}switch(o){case"[object RegExp]":case"[object String]":return""+n==""+r;case"[object Number]":return+n!=+n?+r!=+r:0==+n?1/+n==1/r:+n==+r;case"[object Date]":case"[object Boolean]":return+n==+r;case"[object Symbol]":return u.d.valueOf.call(n)===u.d.valueOf.call(r);case"[object ArrayBuffer]":case"[object DataView]":return t(J(n),J(r),i,a)}var s="[object Array]"===o;if(!s&&$(n)){if(H(n)!==H(r))return!1;if(n.buffer===r.buffer&&n.byteOffset===r.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof n||"object"!=typeof r)return!1;var c=n.constructor,l=r.constructor;if(c!==l&&!(x(c)&&c instanceof c&&x(l)&&l instanceof l)&&"constructor"in n&&"constructor"in r)return!1}a=a||[];for(var d=(i=i||[]).length;d--;)if(i[d]===n)return a[d]===r;if(i.push(n),a.push(r),s){if((d=n.length)!==r.length)return!1;for(;d--;)if(!e(n[d],r[d],i,a))return!1}else{var f,p=K(n);if(d=p.length,K(r).length!==d)return!1;for(;d--;)if(!A(r,f=p[d])||!e(n[f],r[f],i,a))return!1}return i.pop(),a.pop(),!0}(t,n,r,i)}(e,t)}function ee(e){if(!f(e))return[];var t=[];for(var n in e)t.push(n);return u.h&&Z(e,t),t}function te(e){var t=q(e);return function(n){if(null==n)return!1;var r=ee(n);if(q(r))return!1;for(var i=0;i<t;i++)if(!x(n[e[i]]))return!1;return e!==oe||!x(n[ne])}}Q.VERSION=u.e,Q.prototype.value=function(){return this._wrapped},Q.prototype.valueOf=Q.prototype.toJSON=Q.prototype.value,Q.prototype.toString=function(){return String(this._wrapped)};var ne="forEach",re=["clear","delete"],ie=["get","has","set"],ae=re.concat(ne,ie),oe=re.concat(ie),se=["add"].concat(re,ne,"has"),ce=L?te(ae):g("Map"),le=L?te(oe):g("WeakMap"),ue=L?te(se):g("Set"),de=g("WeakSet");function fe(e){for(var t=K(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function pe(e){for(var t=K(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function he(e){for(var t={},n=K(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function me(e){var t=[];for(var n in e)x(e[n])&&t.push(n);return t.sort()}function be(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,c=0;c<s;c++){var l=o[c];t&&void 0!==n[l]||(n[l]=a[l])}return n}}var ge=be(ee),ve=be(K),Oe=be(ee,!0);function ye(e){if(!f(e))return{};if(u.j)return Object(u.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function je(e,t){var n=ye(e);return t&&ve(n,t),n}function ke(e){return f(e)?M(e)?e.slice():ge({},e):e}function we(e,t){return t(e),e}function Ee(e){return M(e)?e:[e]}function _e(e){return Q.toPath(e)}function Ce(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function xe(e,t,n){var r=Ce(e,_e(t));return h(r)?n:r}function Se(e,t){for(var n=(t=_e(t)).length,r=0;r<n;r++){var i=t[r];if(!A(e,i))return!1;e=e[i]}return!!n}function Ne(e){return e}function Le(e){return e=ve({},e),function(t){return X(t,e)}}function Pe(e){return e=_e(e),function(t){return Ce(t,e)}}function Fe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}}function Me(e,t,n){return null==e?Ne:x(e)?Fe(e,t,n):f(e)&&!M(e)?Le(e):Pe(e)}function Ae(e,t){return Me(e,t,1/0)}function Te(e,t,n){return Q.iteratee!==Ae?Q.iteratee(e,t):Me(e,t,n)}function Re(e,t,n){t=Te(t,n);for(var r=K(e),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=t(e[s],s,e)}return a}function Ve(){}function Ie(e){return null==e?Ve:function(t){return xe(e,t)}}function Be(e,t,n){var r=Array(Math.max(0,e));t=Fe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}Q.toPath=Ee,Q.iteratee=Ae;var ze=Date.now||function(){return(new Date).getTime()};function He(e){var t=function(t){return e[t]},n="(?:"+K(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var We={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=He(We),$e=He(he(We)),qe=Q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ze=/(.)^/,Ke={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ge=/\\|'|\r|\n|\u2028|\u2029/g;function Xe(e){return"\\"+Ke[e]}var Qe=/^\s*(\w|\$)+\s*$/;function Je(e,t,n){!t&&n&&(t=n),t=Oe({},t,Q.templateSettings);var r=RegExp([(t.escape||Ze).source,(t.interpolate||Ze).source,(t.evaluate||Ze).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(r,(function(t,n,r,o,s){return a+=e.slice(i,s).replace(Ge,Xe),i=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t})),a+="';\n";var o,s=t.variable;if(s){if(!Qe.test(s))throw new Error("variable is not a bare identifier: "+s)}else a="with(obj||{}){\n"+a+"}\n",s="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{o=new Function(s,"_",a)}catch(e){throw e.source=a,e}var c=function(e){return o.call(this,e,Q)};return c.source="function("+s+"){\n"+a+"}",c}function Ye(e,t,n){var r=(t=_e(t)).length;if(!r)return x(n)?n.call(e):n;for(var i=0;i<r;i++){var a=null==e?void 0:e[t[i]];void 0===a&&(a=n,i=r),e=x(a)?a.call(e):a}return e}var et=0;function tt(e){var t=++et+"";return e?e+t:t}function nt(e){var t=Q(e);return t._chain=!0,t}function rt(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=ye(e.prototype),o=e.apply(a,i);return f(o)?o:a}var it=d((function(e,t){var n=it.placeholder,r=function(){for(var i=0,a=t.length,o=Array(a),s=0;s<a;s++)o[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)o.push(arguments[i++]);return rt(e,r,this,this,o)};return r}));it.placeholder=Q;var at=it,ot=d((function(e,t,n){if(!x(e))throw new TypeError("Bind must be called on a function");var r=d((function(i){return rt(e,r,t,this,n.concat(i))}));return r})),st=D(q);function ct(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,a=0,o=q(e);a<o;a++){var s=e[a];if(st(s)&&(M(s)||R(s)))if(t>1)ct(s,t-1,n,r),i=r.length;else for(var c=0,l=s.length;c<l;)r[i++]=s[c++];else n||(r[i++]=s)}return r}var lt=d((function(e,t){var n=(t=ct(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=ot(e[r],e)}return e}));function ut(e,t){var n=function(r){var i=n.cache,a=""+(t?t.apply(this,arguments):r);return A(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n}var dt=d((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),ft=at(dt,Q,1);function pt(e,t,n){var r,i,a,o,s=0;n||(n={});var c=function(){s=!1===n.leading?0:ze(),r=null,o=e.apply(i,a),r||(i=a=null)},l=function(){var l=ze();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,a=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=l,o=e.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}function ht(e,t,n){var r,i,a,o,s,c=function(){var l=ze()-i;t>l?r=setTimeout(c,t-l):(r=null,n||(o=e.apply(s,a)),r||(a=s=null))},l=d((function(l){return s=this,a=l,i=ze(),r||(r=setTimeout(c,t),n&&(o=e.apply(s,a))),o}));return l.cancel=function(){clearTimeout(r),r=a=s=null},l}function mt(e,t){return at(t,e)}function bt(e){return function(){return!e.apply(this,arguments)}}function gt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function vt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ot(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var yt=at(Ot,2);function jt(e,t,n){t=Te(t,n);for(var r,i=K(e),a=0,o=i.length;a<o;a++)if(t(e[r=i[a]],r,e))return r}function kt(e){return function(t,n,r){n=Te(n,r);for(var i=q(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}var wt=kt(1),Et=kt(-1);function _t(e,t,n,r){for(var i=(n=Te(n,r,1))(t),a=0,o=q(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<i?a=s+1:o=s}return a}function Ct(e,t,n){return function(r,i,a){var o=0,s=q(r);if("number"==typeof a)e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return r[a=n(r,i)]===i?a:-1;if(i!=i)return(a=t(u.q.call(r,o,s),I))>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(r[a]===i)return a;return-1}}var xt=Ct(1,wt,_t),St=Ct(-1,Et);function Nt(e,t,n){var r=(st(e)?wt:jt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Lt(e,t){return Nt(e,Le(t))}function Pt(e,t,n){var r,i;if(t=Fe(t,n),st(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=K(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e}function Ft(e,t,n){t=Te(t,n);for(var r=!st(e)&&K(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=t(e[s],s,e)}return a}function Mt(e){var t=function(t,n,r,i){var a=!st(t)&&K(t),o=(a||t).length,s=e>0?0:o-1;for(i||(r=t[a?a[s]:s],s+=e);s>=0&&s<o;s+=e){var c=a?a[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var a=arguments.length>=3;return t(e,Fe(n,i,4),r,a)}}var At=Mt(1),Tt=Mt(-1);function Rt(e,t,n){var r=[];return t=Te(t,n),Pt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function Vt(e,t,n){return Rt(e,bt(Te(t)),n)}function It(e,t,n){t=Te(t,n);for(var r=!st(e)&&K(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0}function Bt(e,t,n){t=Te(t,n);for(var r=!st(e)&&K(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1}function Dt(e,t,n,r){return st(e)||(e=fe(e)),("number"!=typeof n||r)&&(n=0),xt(e,t,n)>=0}var zt=d((function(e,t,n){var r,i;return x(t)?i=t:(t=_e(t),r=t.slice(0,-1),t=t[t.length-1]),Ft(e,(function(e){var a=i;if(!a){if(r&&r.length&&(e=Ce(e,r)),null==e)return;a=e[t]}return null==a?a:a.apply(e,n)}))}));function Ht(e,t){return Ft(e,Pe(t))}function Wt(e,t){return Rt(e,Le(t))}function Ut(e,t,n){var r,i,a=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=st(e)?e:fe(e)).length;s<c;s++)null!=(r=e[s])&&r>a&&(a=r);else t=Te(t,n),Pt(e,(function(e,n,r){((i=t(e,n,r))>o||i===-1/0&&a===-1/0)&&(a=e,o=i)}));return a}function $t(e,t,n){var r,i,a=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=st(e)?e:fe(e)).length;s<c;s++)null!=(r=e[s])&&r<a&&(a=r);else t=Te(t,n),Pt(e,(function(e,n,r){((i=t(e,n,r))<o||i===1/0&&a===1/0)&&(a=e,o=i)}));return a}function qt(e,t,n){if(null==t||n)return st(e)||(e=fe(e)),e[De(e.length-1)];var r=st(e)?ke(e):fe(e),i=q(r);t=Math.max(Math.min(t,i),0);for(var a=i-1,o=0;o<t;o++){var s=De(o,a),c=r[o];r[o]=r[s],r[s]=c}return r.slice(0,t)}function Zt(e){return qt(e,1/0)}function Kt(e,t,n){var r=0;return t=Te(t,n),Ht(Ft(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Gt(e,t){return function(n,r,i){var a=t?[[],[]]:{};return r=Te(r,i),Pt(n,(function(t,i){var o=r(t,i,n);e(a,t,o)})),a}}var Xt=Gt((function(e,t,n){A(e,n)?e[n].push(t):e[n]=[t]})),Qt=Gt((function(e,t,n){e[n]=t})),Jt=Gt((function(e,t,n){A(e,n)?e[n]++:e[n]=1})),Yt=Gt((function(e,t,n){e[n?0:1].push(t)}),!0),en=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function tn(e){return e?M(e)?u.q.call(e):v(e)?e.match(en):st(e)?Ft(e,Ne):fe(e):[]}function nn(e){return null==e?0:st(e)?e.length:K(e).length}function rn(e,t,n){return t in n}var an=d((function(e,t){var n={},r=t[0];if(null==e)return n;x(r)?(t.length>1&&(r=Fe(r,t[1])),t=ee(e)):(r=rn,t=ct(t,!1,!1),e=Object(e));for(var i=0,a=t.length;i<a;i++){var o=t[i],s=e[o];r(s,o,e)&&(n[o]=s)}return n})),on=d((function(e,t){var n,r=t[0];return x(r)?(r=bt(r),t.length>1&&(n=t[1])):(t=Ft(ct(t,!1,!1),String),r=function(e,n){return!Dt(t,n)}),an(e,r,n)}));function sn(e,t,n){return u.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function cn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:sn(e,e.length-t)}function ln(e,t,n){return u.q.call(e,null==t||n?1:t)}function un(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:ln(e,Math.max(0,e.length-t))}function dn(e){return Rt(e,Boolean)}function fn(e,t){return ct(e,t,!1)}var pn=d((function(e,t){return t=ct(t,!0,!0),Rt(e,(function(e){return!Dt(t,e)}))})),hn=d((function(e,t){return pn(e,t)}));function mn(e,t,n,r){m(t)||(r=n,n=t,t=!1),null!=n&&(n=Te(n,r));for(var i=[],a=[],o=0,s=q(e);o<s;o++){var c=e[o],l=n?n(c,o,e):c;t&&!n?(o&&a===l||i.push(c),a=l):n?Dt(a,l)||(a.push(l),i.push(c)):Dt(i,c)||i.push(c)}return i}var bn=d((function(e){return mn(ct(e,!0,!0))}));function gn(e){for(var t=[],n=arguments.length,r=0,i=q(e);r<i;r++){var a=e[r];if(!Dt(t,a)){var o;for(o=1;o<n&&Dt(arguments[o],a);o++);o===n&&t.push(a)}}return t}function vn(e){for(var t=e&&Ut(e,q).length||0,n=Array(t),r=0;r<t;r++)n[r]=Ht(e,r);return n}var On=d(vn);function yn(e,t){for(var n={},r=0,i=q(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function jn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i}function kn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.q.call(e,r,r+=t));return n}function wn(e,t){return e._chain?Q(t).chain():t}function En(e){return Pt(me(e),(function(t){var n=Q[t]=e[t];Q.prototype[t]=function(){var e=[this._wrapped];return u.o.apply(e,arguments),wn(this,n.apply(Q,e))}})),Q}Pt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=u.a[e];Q.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),wn(this,n)}})),Pt(["concat","join","slice"],(function(e){var t=u.a[e];Q.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),wn(this,e)}}));var Cn=Q,xn=En(r);xn._=xn;var Sn=xn,Nn=({disabled:e,className:t="",value:n,onBlur:r,onChange:i,placeholder:a=Object(s.__)("Default","affiliatex")})=>Object(o.createElement)("input",{type:"text",value:n,onKeyDown:e=>{Sn.contains([46,8,9,27,13,110,190,27],e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||109==e.keyCode||189==e.keyCode||173==e.keyCode||67==e.keyCode&&!0===e.ctrlKey||88==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&Sn.isNumber(parseInt(n,10))&&i(parseInt(n,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&Sn.isNumber(parseInt(n,10))&&i(parseInt(n,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:({target:{value:e}})=>i(e),placeholder:a,onBlur:()=>r&&r,className:l()({inactive:"auto"===n})}),Ln=n(17);t.default=({value:e,option:t,onChange:n})=>{const[r,i]=Object(o.useState)(!1),c=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}],u=()=>["top","right","bottom","left"].find(t=>"auto"!==e[t]),d=()=>{return t=e[u()].toString().replace(/[0-9]/g,"").replace(/\./g,""),c.find(({unit:e})=>e===t)?t:t||c[0].unit;var t},f=(e,t="")=>"auto"===e?e:`${0===parseFloat(e)?0:parseFloat(e)||""}${t}`;return Object(o.createElement)("div",{className:l()("ct-option-spacing",{linked:e.linked})},["top","right","bottom","left"].map(r=>Object(o.createElement)("span",{key:r},Object(o.createElement)(Nn,a()({placeholder:"",value:f(e[r]),onChange:t=>{return i=t,a=r,void(e.linked?n({...e,top:"auto"===e.top?e.top:f(i,d()),left:"auto"===e.left?e.left:f(i,d()),right:"auto"===e.right?e.right:f(i,d()),bottom:"auto"===e.bottom?e.bottom:f(i,d())}):n({...e,[a]:f(i,d())}));var i,a},placeholder:""},t.inputAttr)),Object(o.createElement)("small",null,{top:Object(s.__)("Top","affiliatex"),bottom:Object(s.__)("Bottom","affiliatex"),left:Object(s.__)("Left","affiliatex"),right:Object(s.__)("Right","affiliatex")}[r]))),Object(o.createElement)("div",{className:l()("ct-spacing-controls ct-value-changer",{active:r})},Object(o.createElement)("a",{onClick:t=>{if(t.preventDefault(),e.linked)return void n({...e,linked:!1});const r=e[u()];n({...e,top:"auto"!==e.top?r:e.top,left:"auto"!==e.left?r:e.left,bottom:"auto"!==e.bottom?r:e.bottom,right:"auto"!==e.right?r:e.right,linked:!0})}},Object(o.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},e.linked?Object(o.createElement)("path",{d:"M12.2,5.5V4.7c0-2.6-2.1-4.7-4.7-4.7S2.8,2.1,2.8,4.7v0.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z M10.7,5.5H4.3V4.7c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2V5.5z"}):Object(o.createElement)("path",{d:"M12.2,5.5h-1.6H9.9h-5H4.7l0-0.2C4.4,3.5,5.5,1.9,7.3,1.5c1.1-0.2,2.2,0.1,2.8,0.9l1.3-0.9c-1-1.1-2.6-1.8-4.3-1.5C4.5,0.5,2.8,2.9,3.2,5.5H2.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z"}))),Object(o.createElement)("span",{className:"ct-value-divider"}),Object(o.createElement)("div",{onClick:()=>i(!r),className:"ct-current-value"},d()||"―"),Object(o.createElement)(Ln.a,{onOutsideClick:()=>{r&&i(!1)}},Object(o.createElement)("ul",{className:"ct-units-list"},c.filter(({unit:e})=>e!==d()).reduce((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(t=>Object(o.createElement)("li",{key:t[0].unit},t.map(({unit:t})=>Object(o.createElement)("span",{key:t,onClick:()=>{n({...e,top:f(e.top,t),left:f(e.left,t),right:f(e.right,t),bottom:f(e.bottom,t)}),i(!1)}},t||"―"))))))))}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),a=n(5),o=n.n(a),s=n(17),c=n(22),l=n(3);const u=[{id:"type-1",title:Object(i.__)("Hideout","affiliatex"),src:"patterns/hideout.svg"},{id:"type-2",title:Object(i.__)("Triangles","affiliatex"),src:"patterns/triangles.svg"},{id:"type-3",title:Object(i.__)("Bubbles","affiliatex"),src:"patterns/bubbles.svg"},{id:"type-4",title:Object(i.__)("Wiggle","affiliatex"),src:"patterns/wiggle.svg"},{id:"type-5",title:Object(i.__)("Polka Dots","affiliatex"),src:"patterns/polka-dots.svg"},{id:"type-6",title:Object(i.__)("Overlaping Circles","affiliatex"),src:"patterns/overlaping-circles.svg"},{id:"type-7",title:Object(i.__)("Texture","affiliatex"),src:"patterns/texture.svg"},{id:"type-8",title:Object(i.__)("Diagonal Lines","affiliatex"),src:"patterns/diagonal-lines.svg"},{id:"type-9",title:Object(i.__)("Rain","affiliatex"),src:"patterns/rain.svg"},{id:"type-10",title:Object(i.__)("Stripes","affiliatex"),src:"patterns/stripes.svg"},{id:"type-11",title:Object(i.__)("Diagonal Stripes","affiliatex"),src:"patterns/diagonal-stripes.svg"},{id:"type-12",title:Object(i.__)("Intersecting Circles","affiliatex"),src:"patterns/intersecting-circles.svg"},{id:"type-13",title:Object(i.__)("Bank Note","affiliatex"),src:"patterns/bank-note.svg"},{id:"type-14",title:Object(i.__)("Zig Zag","affiliatex"),src:"patterns/zig-zag.svg"},{id:"type-15",title:Object(i.__)("Endless Clouds","affiliatex"),src:"patterns/endless-clouds.svg"},{id:"type-16",title:Object(i.__)("Honey Comb","affiliatex"),src:"patterns/honey-comb.svg"},{id:"type-17",title:Object(i.__)("Cross Stripes","affiliatex"),src:"patterns/cross-stripes.svg"},{id:"type-18",title:Object(i.__)("Autumn","affiliatex"),src:"patterns/autumn.svg"}];var d=({option:e,value:t,onChange:n})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:"ct-patterns-list"},u.map(e=>Object(r.createElement)("li",{onClick:()=>n({...t,background_pattern:e.id}),className:o()({active:e.id===t.background_pattern}),key:e.id,title:e.title},Object(r.createElement)("img",{src:(window.rt_localizations||rt_customizer_localizations).static_public_url+"images/"+e.src})))),Object(r.createElement)(l.a,{value:t.patternColor,values:t,option:{id:"patternColor",label:Object(i.__)("Pattern Color","affiliatex"),type:"ct-color-picker",design:"inline",value:e.value.patternColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],skipNoColorPill:!0,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>n({...t,patternColor:e})})),f=({option:e,value:t,onChange:n,setOutsideClickFreezed:a})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.a,{value:t.background_image,values:t,option:{id:"background_image",label:!1,type:"ct-image-uploader",value:e.value.background_image,has_position_picker:!0,emptyLabel:Object(i.__)("Select Image","affiliatex"),filledLabel:Object(i.__)("Change Image","affiliatex"),onFrameOpen:()=>{a(!0)},onFrameClose:()=>{a(!1)}},hasRevertButton:!1,onChange:e=>n({...t,background_image:e})}),Object(r.createElement)(l.a,{value:t.background_repeat,values:t,option:{id:"background_repeat",label:Object(i.__)("Background Repeat","affiliatex"),attr:{"data-type":"repeat"},type:"ct-radio",view:"text",design:"block",value:e.value.background_repeat,choices:{"no-repeat":'<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>',"repeat-x":'<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>',"repeat-y":'<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>',repeat:'<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>'}},hasRevertButton:!1,onChange:e=>n({...t,background_repeat:e})}),Object(r.createElement)(l.a,{value:t.background_size,values:t,option:{id:"background_size",label:Object(i.__)("Background Size","affiliatex"),type:"ct-radio",view:"text",design:"block",value:e.value.background_size,choices:{auto:Object(i.__)("Auto","affiliatex"),cover:Object(i.__)("Cover","affiliatex"),contain:Object(i.__)("Contain","affiliatex")}},hasRevertButton:!1,onChange:e=>n({...t,background_size:e})}),Object(r.createElement)(l.a,{value:t.background_attachment,values:t,option:{id:"background_size",label:Object(i.__)("Background Attachment","affiliatex"),type:"ct-radio",view:"text",design:"block",value:e.value.background_attachment,choices:{scroll:Object(i.__)("Scroll","affiliatex"),fixed:Object(i.__)("Fixed","affiliatex"),inherit:Object(i.__)("Inherit","affiliatex")}},hasRevertButton:!1,onChange:e=>n({...t,background_attachment:e})}),t.background_image.url&&Object(r.createElement)(l.a,{value:t.overlayColor,values:t,option:{id:"overlayColor",label:Object(i.__)("Image Overlay Color","affiliatex"),type:"ct-color-picker",design:"inline",value:e.value.overlayColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>n({...t,overlayColor:e})})),p=n(24),h=({option:e,value:t,isOpen:n,onChange:a,setOutsideClickFreezed:s})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:e=>{e.preventDefault()}},["color","gradient","image"].map(e=>Object(r.createElement)("li",{"data-type":e,key:e,className:o()({active:e===t.background_type||"image"===e&&("pattern"===t.background_type||"image"===t.background_type)}),onClick:()=>a({...t,background_type:e,..."gradient"===e?{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}:{}})},{color:Object(i.__)("Color","affiliatex"),gradient:Object(i.__)("Gradient","affiliatex"),image:Object(i.__)("Image","affiliatex")}[e]))),Object(r.createElement)("div",{className:o()({"ct-image-tab ct-options-container":"image"===t.background_type||"pattern"===t.background_type,"ct-gradient-tab ct-color-picker-modal":"gradient"===t.background_type,"ct-color-tab":"color"===t.background_type})},("image"===t.background_type||"pattern"===t.background_type)&&Object(r.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:e=>{e.preventDefault()}},["image","pattern"].map(e=>Object(r.createElement)("li",{"data-type":e,key:e,className:o()({active:e===t.background_type}),onClick:()=>a({...t,background_type:e})},{pattern:Object(i.__)("Pattern","affiliatex"),image:Object(i.__)("Image","affiliatex")}[e]))),"pattern"===t.background_type&&Object(r.createElement)(d,{option:e,onChange:a,value:t}),"image"===t.background_type&&Object(r.createElement)(f,{setOutsideClickFreezed:s,option:e,onChange:a,value:t}),"gradient"===t.background_type&&Object(r.createElement)(p.a,{value:t,onChange:a}),"gradient"!==t.background_type&&Object(r.createElement)(l.a,{value:t.backgroundColor,values:t,option:{id:"backgroundColor",label:"color"!==t.background_type&&Object(i.__)("Background Color","affiliatex"),type:"ct-color-picker",skipNoColorPill:!0,design:"color"===t.background_type?"none":"inline",value:e.value.backgroundColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],inline_modal:"color"===t.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>a({...t,backgroundColor:e})})));t.default=({option:e,value:t,onChange:n})=>{const[a,l]=Object(r.useState)(!1),[d,f]=Object(r.useState)(!1),p=Object(r.useRef)(),m="color"===(t=(e=>!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e)(t)).background_type&&("CT_CSS_SKIP_RULE"===t.backgroundColor.default.color||"transparent"===t.backgroundColor.default.color),{styles:b,popoverProps:g}=Object(c.a)({ref:p,defaultHeight:434,shouldCalculate:p&&p.current});return Object(r.createElement)("div",{ref:p,className:o()("ct-background",{active:a})},Object(r.createElement)("div",{className:o()("ct-background-preview",{"no-color":m}),onClick:e=>{e.preventDefault(),l(!a),"color"===t.background_type&&("CT_CSS_SKIP_RULE"!==t.backgroundColor.default.color&&"transparent"!==t.backgroundColor.default.color||n({...t,backgroundColor:{default:{color:"#ffffff"}}}))},"data-background-type":t.background_type,style:{...t.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:t.backgroundColor.default.color},"--background-position":`${Math.round(100*parseFloat(t.background_image.x))}% ${Math.round(100*parseFloat(t.background_image.y))}%`,"--pattern-mask":"pattern"===t.background_type?`url(${v=t.background_pattern,(window.rt_localizations||rt_customizer_localizations).static_public_url+"images/"+u.find(e=>e.id===v).src})`:"","--background-image":"gradient"===t.background_type?t.gradient:t.background_image.url?`url(${t.background_image.url})`:"none","--pattern-color":t.patternColor.default.color}},Object(r.createElement)("i",{className:"ct-tooltip-top"},{inherit:Object(i.__)("Inherited","affliatex"),pattern:Object(i.__)("Pattern","affliatex"),gradient:Object(i.__)("Gradient","affliatex"),color:Object(i.__)("Color","affliatex"),image:Object(i.__)("Image","affliatex")}[m?"inherit":t.background_type]),m&&Object(r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},Object(r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),p&&p.current&&Object(r.createPortal)(Object(r.createElement)(s.a,{useCapture:!1,display:"block",disabled:!a||d,onOutsideClick:()=>{setTimeout(()=>l(!1))},wrapperProps:{style:b,...g,className:o()("ct-option-modal ct-background-modal",{active:a})}},Object(r.createElement)(h,{onChange:n,value:t,option:e,isOpen:a,setOutsideClickFreezed:f})),document.body));var v}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),a=n(5),o=n.n(a),s=n(27),c=n(17),l=n(11),u=n.n(l),d=n(25),f=n.n(d),p=n(31),h=n(3),m=n(22),b=n(37),g=({option:e,value:t,onChange:n,picker:a,onPickingChange:s,stopTransitioning:c,el:l,hOffsetRef:d,vOffsetRef:g,blurRef:v,spreadRef:O,isTransitioning:y,isPicking:j})=>{const{styles:k,popoverProps:w}=Object(m.a)({ref:l,defaultHeight:e.hide_shadow_placement?437:507,shouldCalculate:y===a.id||(j||"").split(":")[0]===a.id});return(y===a.id||(j||"").split(":")[0]===a.id)&&Object(r.createPortal)(Object(r.createElement)(p.a,{items:j,onRest:e=>{c()},config:{duration:100,easing:f()(.25,.1,.25,1)},from:-1===(j||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(j||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(j||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},s=>(s||"").split(":")[0]===a.id&&(a=>Object(r.createElement)("div",u()({style:{...a,...k}},w,{className:"ct-option-modal ct-box-shadow-modal",onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDownCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),Object(r.createElement)("div",{className:"ct-shadow-trigger"},Object(r.createElement)("label",null,Object(i.__)("Enable/Disable","affiliatex")),Object(r.createElement)(b.default,{value:t.enable?"yes":"no",onChange:()=>{n({...t,enable:!t.enable})}})),Object(r.createElement)("div",{className:"shadow-sliders"},Object(r.createElement)(h.a,{value:t.h_offset,values:t,id:"h_offset",option:{id:"h_offset",label:Object(i.__)("Horizontal Offset","affiliatex"),type:"ab-slider",steps:"half",value:e.value.h_offset,min:-100,max:100,design:"compact",ref:d},hasRevertButton:!1,onChange:e=>n({...t,h_offset:e})}),Object(r.createElement)(h.a,{value:t.v_offset,values:t,id:"v_offset",option:{steps:"half",id:"v_offset",label:Object(i.__)("Vertical Offset","affiliatex"),type:"ab-slider",value:e.value.v_offset,min:-100,max:100,design:"compact",ref:g},hasRevertButton:!1,onChange:e=>n({...t,v_offset:e})}),Object(r.createElement)(h.a,{value:t.blur,values:t,id:"blur",option:{steps:"positive",id:"blur",label:Object(i.__)("Blur","affiliatex"),type:"ab-slider",value:e.value.blur,min:0,max:100,design:"compact",ref:v},hasRevertButton:!1,onChange:e=>{n({...t,blur:e})}}),Object(r.createElement)(h.a,{value:t.spread,values:t,id:"spread",option:{steps:"half",id:"spread",label:Object(i.__)("Spread","affiliatex"),type:"ab-slider",value:e.value.spread,min:-100,max:100,design:"compact",ref:O},hasRevertButton:!1,onChange:e=>n({...t,spread:e})})),!e.hide_shadow_placement&&Object(r.createElement)("ul",{className:"ct-shadow-style"},Object(r.createElement)("li",{onClick:()=>n({...t,inset:!1}),className:o()({active:!t.inset})},"Outline"),Object(r.createElement)("li",{onClick:()=>n({...t,inset:!0}),className:o()({active:t.inset})},"Inset"))))),document.body)};t.default=({value:e,option:t,onChange:n})=>{const[{isPicking:a,isTransitioning:l},u]=Object(r.useState)({isPicking:null,isTransitioning:null}),[d,f]=Object(r.useState)(null),p=Object(r.useRef)(),h=Object(r.useRef)(),m=Object(r.useRef)(),b=Object(r.useRef)(),v=Object(r.useRef)(),O=Object(r.useRef)(),y=Object(r.useRef)(),j=Object(r.useRef)();return Object(r.createElement)("div",{ref:p,className:o()("ct-box-shadow",{"ct-disabled":!e.enable||e.inherit})},Object(r.createElement)(s.a,{innerRef:h,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:a,isTransitioning:l,modalRef:j,containerRef:y,onPickingChange:t=>{e.enable&&u({isTransitioning:"default",isPicking:t})},stopTransitioning:()=>u({isPicking:a,isTransitioning:!1}),onChange:t=>n({...e,color:t}),value:e.color}),Object(r.createElement)(c.a,{useCapture:!1,disabled:!a,className:"ct-box-shadow-values",additionalRefs:[h,j],onOutsideClick:()=>{a&&u({isTransitioning:a.split(":")[0],isPicking:null})},wrapperProps:{ref:y,onClick:e=>{e.preventDefault();let t=a?"opts"===a.split(":")[0]?null:"opts:"+a.split(":")[0]:"opts";u({isTransitioning:"opts",isPicking:t})}}},Object(r.createElement)("span",null,e.inherit?Object(i.__)("Inherit","affiliatex"):e.enable?Object(i.__)("Adjust","affiliatex"):Object(i.__)("None","affiliatex"))),Object(r.createElement)(g,{el:p,value:e,onChange:e=>n({...e,inherit:!1}),option:t,isPicking:a,isTransitioning:l,hOffsetRef:m,vOffsetRef:b,blurRef:v,spreadRef:O,picker:{id:"opts"},onPickingChange:t=>{e.enable&&u({isTransitioning:"opts",isPicking:t})},stopTransitioning:()=>u({isPicking:a,isTransitioning:!1})}))}},,,,function(e,t,n){"use strict";var r=n(64);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,function(e,t,n){var r=n(74);e.exports=function e(t,n,i){return r(n)||(i=n||i,n=[]),i=i||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var i=[],a=0;a<t.length;a++)i.push(e(t[a],n,r).source);return u(new RegExp("(?:"+i.join("|")+")",d(r)),n)}(t,n,i):function(e,t,n){return f(a(e,n),t,n)}(t,n,i)},e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,o=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(o,p),o=p+d.length,f)s+=f[1];else{var h=e[o],m=n[2],b=n[3],g=n[4],v=n[5],O=n[6],y=n[7];s&&(r.push(s),s="");var j=null!=m&&null!=h&&h!==m,k="+"===O||"*"===O,w="?"===O||"*"===O,E=n[2]||u,_=g||v;r.push({name:b||a++,prefix:m||"",delimiter:E,optional:w,repeat:k,partial:j,asterisk:!!y,pattern:_?l(_):y?".*":"[^"+c(E)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var a="",s=t||{},c=(i||{}).pretty?o:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,f=s[u.name];if(null==f){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=c(f[p]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(f),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,a=!1!==n.end,o="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)o+=c(l);else{var f=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+f+p+")*"),o+=p=l.optional?l.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=c(n.delimiter||"/"),m=o.slice(-h.length)===h;return i||(o=(m?o.slice(0,-h.length):o)+"(?:"+h+"(?=$))?"),o+=a?"$":i&&m?"":"(?="+h+"|$)",u(new RegExp("^"+o,d(n)),t)}},function(e,t,n){"use strict";e.exports=n(75)},function(e,t,n){"use strict";(function(e){var r=n(4),i=n.n(r),a=n(13),o=n(40),s=n.n(o),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=i.a.createContext||function(e,t){var n,i,o="__create-react-context-"+(c["__global_unique_id__"]=(c.__global_unique_id__||0)+1)+"__",u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(a.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((a=r)===(o=i)?0!==a||1/a==1/o:a!=a&&o!=o)?n=0:(n="function"==typeof t?t(r,i):1073741823,0!=(n|=0)&&this.emitter.set(e.value,n))}var a,o},r.render=function(){return this.props.children},n}(r.Component);u.childContextTypes=((n={})[o]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(a.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[o]=s.a.object,i),{Provider:u,Consumer:d}};t.a=u}).call(this,n(46))},function(e,t,n){"use strict";var r=n(67),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=c(t),m=c(n),b=0;b<o.length;++b){var g=o[b];if(!(a[g]||r&&r[g]||m&&m[g]||s&&s[g])){var v=f(n,g);try{l(t,g,v)}catch(e){}}}}return t}},function(e,t){e.exports=window.wp.date},,,,function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,O=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case o:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case b:case l:return e;default:return t}}case a:return t}}}function w(e){return k(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=b,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||k(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===b},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===c||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===O||e.$$typeof===y||e.$$typeof===j||e.$$typeof===v)},t.typeOf=k},function(e,t){e.exports=window.jQuery},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(9);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var s=function(e,t){if(!e)throw new Error("Invariant failed")};function c(e){return"/"===e.charAt(0)?e:"/"+e}function l(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function u(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function f(e,t,n,r){var s;"string"==typeof e?(s=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(s=Object(i.a)({},e)).pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(s.key=n),r?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&a(e),c=t&&a(t),l=s||c;if(e&&a(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=i.length;f>=0;f--){var p=i[f];"."===p?o(i,f):".."===p?(o(i,f),d++):d&&(o(i,f),d--)}if(!l)for(;d--;d)i.unshift("..");!l||""===i[0]||i[0]&&a(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}(s.pathname,r.pathname)):s.pathname=r.pathname:s.pathname||(s.pathname="/"),s}function p(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var h=!("undefined"==typeof window||!window.document||!window.document.createElement);function m(e,t){t(window.confirm(e))}function b(){try{return window.history.state||{}}catch(e){return{}}}function g(e){void 0===e&&(e={}),h||s(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,g=o.forceRefresh,v=void 0!==g&&g,O=o.getUserConfirmation,y=void 0===O?m:O,j=o.keyLength,k=void 0===j?6:j,w=e.basename?u(c(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return w&&(a=l(a,w)),f(a,r,n)}function _(){return Math.random().toString(36).substr(2,k)}var C=p();function x(e){Object(i.a)(B,e),B.length=n.length,C.notifyListeners(B.location,B.action)}function S(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(E(e.state))}function N(){P(E(b()))}var L=!1;function P(e){L?(L=!1,x()):C.confirmTransitionTo(e,"POP",y,(function(t){t?x({action:"POP",location:e}):function(e){var t=B.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(L=!0,T(i))}(e)}))}var F=E(b()),M=[F.key];function A(e){return w+d(e)}function T(e){n.go(e)}var R=0;function V(e){1===(R+=e)&&1===e?(window.addEventListener("popstate",S),a&&window.addEventListener("hashchange",N)):0===R&&(window.removeEventListener("popstate",S),a&&window.removeEventListener("hashchange",N))}var I=!1,B={length:n.length,action:"POP",location:F,createHref:A,push:function(e,t){var i=f(e,t,_(),B.location);C.confirmTransitionTo(i,"PUSH",y,(function(e){if(e){var t=A(i),a=i.key,o=i.state;if(r)if(n.pushState({key:a,state:o},null,t),v)window.location.href=t;else{var s=M.indexOf(B.location.key),c=M.slice(0,s+1);c.push(i.key),M=c,x({action:"PUSH",location:i})}else window.location.href=t}}))},replace:function(e,t){var i=f(e,t,_(),B.location);C.confirmTransitionTo(i,"REPLACE",y,(function(e){if(e){var t=A(i),a=i.key,o=i.state;if(r)if(n.replaceState({key:a,state:o},null,t),v)window.location.replace(t);else{var s=M.indexOf(B.location.key);-1!==s&&(M[s]=i.key),x({action:"REPLACE",location:i})}else window.location.replace(t)}}))},go:T,goBack:function(){T(-1)},goForward:function(){T(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return I||(V(1),I=!0),function(){return I&&(I=!1,V(-1)),t()}},listen:function(e){var t=C.appendListener(e);return V(1),function(){V(-1),t()}}};return B}var v=n(13),O=n(4),y=n.n(O),j=(n(40),n(68)),k=n(66),w=n.n(k),E=(n(67),n(16)),_=(n(69),function(e){var t=Object(j.a)();return t.displayName=e,t}),C=_("Router-History"),x=_("Router"),S=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(v.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return y.a.createElement(x.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},y.a.createElement(C.Provider,{children:this.props.children||null,value:this.props.history}))},t}(y.a.Component);y.a.Component,y.a.Component;var N={},L=0;y.a.Component,y.a.Component,y.a.Component;var P=y.a.useContext;function F(){return P(x).location}var M=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=g(t.props),t}return Object(v.a)(t,e),t.prototype.render=function(){return y.a.createElement(S,{history:this.history,children:this.props.children})},t}(y.a.Component);y.a.Component;var A=function(e,t){return"function"==typeof e?e(t):e},T=function(e,t){return"string"==typeof e?f(e,null,null,t):e},R=function(e){return e},V=y.a.forwardRef;void 0===V&&(V=R);var I=V((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,o=Object(E.a)(e,["innerRef","navigate","onClick"]),s=o.target,c=Object(i.a)({},o,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=R!==V&&t||n,y.a.createElement("a",c)})),B=V((function(e,t){var n=e.component,r=void 0===n?I:n,a=e.replace,o=e.to,c=e.innerRef,l=Object(E.a)(e,["component","replace","to","innerRef"]);return y.a.createElement(x.Consumer,null,(function(e){e||s(!1);var n=e.history,u=T(A(o,e.location),e.location),f=u?n.createHref(u):"",p=Object(i.a)({},l,{href:f,navigate:function(){var t=A(o,e.location),r=d(e.location)===d(T(t));(a||r?n.replace:n.push)(t)}});return R!==V?p.ref=t||c:p.innerRef=c,y.a.createElement(r,p)}))})),D=function(e){return e},z=y.a.forwardRef;void 0===z&&(z=D),z((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,a=e.activeClassName,o=void 0===a?"active":a,c=e.activeStyle,l=e.className,u=e.exact,d=e.isActive,f=e.location,p=e.sensitive,h=e.strict,m=e.style,b=e.to,g=e.innerRef,v=Object(E.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return y.a.createElement(x.Consumer,null,(function(e){e||s(!1);var n=f||e.location,a=T(A(b,n),n),O=a.pathname,j=O&&O.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=j?function(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=void 0!==i&&i,o=n.strict,s=void 0!==o&&o,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=N[n]||(N[n]={});if(r[e])return r[e];var i=[],a={regexp:w()(e,i,t),keys:i};return L<1e4&&(r[e]=a,L++),a}(n,{end:a,strict:s,sensitive:l}),i=r.regexp,o=r.keys,c=i.exec(e);if(!c)return null;var u=c[0],d=c.slice(1),f=e===u;return a&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:o.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}(n.pathname,{path:j,exact:u,sensitive:p,strict:h}):null,E=!!(d?d(k,n):k),_="function"==typeof l?l(E):l,C="function"==typeof m?m(E):m;E&&(_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(_,o),C=Object(i.a)({},C,c));var x=Object(i.a)({"aria-current":E&&r||null,className:_,style:C,to:a},v);return D!==z?x.ref=t||g:x.innerRef=g,y.a.createElement(B,x)}))}));var H=n(1),W=n(15),U=()=>Object(r.createElement)("header",{className:"ab-header"},Object(r.createElement)("div",{className:"container"},Object(r.createElement)("div",{className:"ab-header-wrapper"},Object(r.createElement)("div",{className:"logo"},Object(r.createElement)(W.u,null)),Object(r.createElement)("div",{className:"ab-text-holder"},Object(r.createElement)("h2",{className:"ab-title"},Object(H.__)("AffiliateX - Gutenberg Blocks for Affiliate Marketing","affiliatex")),Object(r.createElement)("div",{className:"ab-header-desc"},Object(r.createElement)("p",null,Object(H.__)("AffiliateX is a Gutenberg blocks plugin for affiliate marketers. You can create highly effective affiliate marketing blogs with AffiliateX blocks, increasing the conversion rate and boost your affiliate income.","affiliatex"))))))),$=n(35),q=Object($.applyFilters)("affiliateX_dashboard_tabs",[{id:"home",label:Object(H.__)("Home","affiliatex")},{id:"customization",label:Object(H.__)("Customization","affiliatex")},{id:"blocks",label:Object(H.__)("Blocks","affiliatex")},{id:"recommended",label:Object(H.__)("Recommended Themes","affiliatex")},{id:"changelog",label:Object(H.__)("Changelog","affiliatex")}]);function Z(){return new URLSearchParams(F().search)}var K=()=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("nav",{className:"navbar"},Object(r.createElement)("div",{className:"container"},Object(r.createElement)("div",{className:"navbar-wrapper"},Object(r.createElement)("ul",{className:"nav-menu"},q&&q.map((e,t)=>{return Object(r.createElement)("li",{key:t,className:"nav-item"},Object(r.createElement)(B,{to:0===t?"?page=affiliatex_blocks":"?page=affiliatex_blocks&tab="+e.id,className:`link-tabs ${n=e.id,Z().get("tab")===n?"active":""} ${0===t&&null==Z().get("tab")?"active":""}`},e.label));var n})))))),G=e=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"card-wrapper"},Object(r.createElement)("div",{className:"ab-top-wrap"},Object(r.createElement)("div",{className:"ab-icon"},e.CardIcon),Object(r.createElement)("h4",{className:"ab-card-title"},e.CardTitle)),Object(r.createElement)("p",null,e.CardContent),Object(r.createElement)("a",{href:e.CardLink,className:e.ButtonClass,target:"_blank"},e.CardBtnContent))),X=()=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"general-wrapper"},Object(r.createElement)("div",{className:"container"},!AffiliateXAdmin.proActive&&Object(r.createElement)("div",{className:"ab-free-wrapper"},Object(r.createElement)("div",{className:"free-grid"},Object(r.createElement)("span",{className:"desc"},Object(H.__)("Upgrade to AffiliateX Pro","affiliatex")),Object(r.createElement)("div",{className:"ab-desc"},Object(r.createElement)("p",null,Object(H.__)("With AffiliateX Pro, you get more features to build professional looking websites, drive more leads and boost your conversion.","affiliatex"))),Object(r.createElement)("div",{className:"ab-features"},Object(r.createElement)("ul",{className:"lists"},Object(r.createElement)("li",null,Object(H.__)("All free Gutenberg blocks","affiliatex")),Object(r.createElement)("li",null,Object(H.__)("10 Premium Gutenberg blocks","affiliatex")),Object(r.createElement)("li",null,Object(H.__)("All future Gutenberg blocks","affiliatex")),Object(r.createElement)("li",null,Object(H.__)("Priority Support","affiliatex")))),Object(r.createElement)("a",{href:"https://kraftplugins.com/affiliatex/pricing/?utm_source=affiliatex&utm_medium=getting_started&utm_campaign=pro_upgrade",target:"_blank",className:"ab-primary-btn"},Object(H.__)("Upgrade Now","affiliatex"))),Object(r.createElement)("div",{className:"ab-img-wrapper"},Object(r.createElement)(W.w,null))),Object($.applyFilters)("affx_add_license_settings",null),Object(r.createElement)("div",{className:"ab-card-wrapper"},Object(r.createElement)(G,{CardIcon:Object(r.createElement)(W.s,null),CardTitle:Object(H.__)("Documentation","affiliatex"),CardContent:Object(H.__)("Need help with using our plugin as quickly as possible? Visit our well-organized Knowledge Base!","affiliatex"),CardBtnContent:Object(H.__)("View Documentation","affiliatex"),CardLink:"https://kraftplugins.com/affiliatex/docs/",ButtonClass:"ab-primary-btn no-bg"}),Object(r.createElement)(G,{CardIcon:Object(r.createElement)(W.x,null),CardTitle:Object(H.__)("Feature Request","affiliatex"),CardContent:Object(H.__)("Looking for a feature that’s missing? Place a request here.","affiliatex"),CardBtnContent:Object(H.__)("Submit a Request","affiliatex"),CardLink:"https://kraftplugins.com/feature-request/",ButtonClass:"ab-primary-btn no-bg"}),Object(r.createElement)(G,{CardIcon:Object(r.createElement)(W.t,null),CardTitle:Object(H.__)("Support","affiliatex"),CardContent:Object(H.__)("If the Knowledge Base didn't answer your queries, submit us a support ticket here. Our response time usually is less than a business day, except on the weekends.","affiliatex"),CardBtnContent:Object(H.__)("Submit a Ticket","affiliatex"),CardLink:"https://kraftplugins.com/support-ticket/",ButtonClass:"ab-primary-btn no-bg"}))))),Q=function({id:e,optionType:t="",checked:n,type:i,Values:a,setValues:o,className:s,label:c}){const[l,u]=Object(r.useState)(n);return Object(r.useEffect)(()=>{u(n)},[n]),Object(r.createElement)("div",{className:"ab-toggle-wrap "+s},Object(r.createElement)("label",{htmlFor:e},Object(r.createElement)("input",{id:e,type:"checkbox",name:i,checked:n,onClick:e=>{if(t&&""!=t)if(!0===e.target.checked){let n={...a};n[t][e.target.name]=!0,o(n),u(!0)}else{let n={...a};n[t][e.target.name]=!1,o(n),u(!1)}else if(!0===e.target.checked){let t={...a};t[e.target.name]=!0,o(t),u(!0)}else{let t={...a};t[e.target.name]=!1,o(t),u(!1)}},className:"switch"}),Object(r.createElement)("span",null,Object(r.createElement)("span",{className:"switch"}),c&&Object(r.createElement)("span",{className:"label"},c),!c&&Object(r.createElement)("span",{className:"label"},1==l?Object(H.__)("Enabled","affiliatex"):Object(H.__)("Disabled","affiliatex")))))},J=e=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ab-block-wrap"},Object(r.createElement)("div",{className:"ab-single-block-wrap"},Object(r.createElement)("div",{className:"single-block-icon"},e.SingleBlockIcon),Object(r.createElement)("h5",{className:"ab-block-title"},e.SingleBlockTitle),Object(r.createElement)("span",{className:"ab-question-icon"},Object(r.createElement)(W.v,null))))),Y=n(47),ee=n.n(Y),te=n(48),ne=n.n(te),re=()=>{const e=AffiliateXAdmin.licenseActive?"pro-blocks-enabled":"pro-blocks-disabled",[t,n]=Object(r.useState)({buttons:!0,prosAndCons:!0,cta:!0,notice:!0,verdict:!0,singleProduct:!0,specifications:!0,versusLine:!0,singleProductProsAndCons:!0,productImageButton:!0,singleCoupon:!0,couponGrid:!0,productTabs:!0,couponListing:!0,topProducts:!0,versus:!0,productTable:!0,productComparison:!0});Object(r.useEffect)(()=>{let e=new FormData;e.append("action","get_block_settings"),e.append("security",AffiliateXAdmin.ajax_nonce),ee()({url:ajaxurl,method:"POST",body:e}).then(e=>{!0===e.success&&""!=e.data&&n(JSON.parse(e.data))}),ne.a.options.positionClass="toast-bottom-full-width",ne.a.options.timeOut="5000"},[]);const i=e=>{n({buttons:e,prosAndCons:e,cta:e,notice:e,verdict:e,singleProduct:e,specifications:e,versusLine:e,singleProductProsAndCons:e,productImageButton:e,singleCoupon:e,couponGrid:e,productTabs:e,couponListing:e,topProducts:e,versus:e})};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ab-block-wrap"},Object(r.createElement)("div",{className:"container"},Object(r.createElement)("div",{className:"ab-block-top"},Object(r.createElement)("div",{className:"details-wrap"},Object(r.createElement)("h3",{className:"title"},Object(H.__)("Block Settings","affiliatex")),Object(r.createElement)("div",{className:"ab-desc"},Object(r.createElement)("p",null,Object(H.__)("You can disable the blocks which you do not want. Please note that, if you disable the blocks added to your posts/pages, it will stop working.","affiliatex")))),Object(r.createElement)("div",{className:"btn-wrap"},Object(r.createElement)("button",{type:"button",className:"ab-primary-btn",onClick:()=>{let e=new FormData;e.append("data",JSON.stringify(t)),e.append("action","save_block_settings"),e.append("security",AffiliateXAdmin.ajax_nonce),ee()({url:ajaxurl,method:"POST",body:e}).then(e=>{!0===e.success&&ne.a.success(e.data)})}},Object(H.__)("Save Changes","affiliatex")))),Object(r.createElement)("div",{className:"ab-block-grid"},Object(r.createElement)("div",{className:"ab-top-wrap"},Object(r.createElement)("h5",{className:"ab-block-title"},Object(H.__)("Blocks","affiliatex")),Object(r.createElement)("div",{className:"ab-blocks-btn-wrap"},Object(r.createElement)("button",{type:"button",className:"ab-primary-btn no-bg",onClick:()=>i(!0)},Object(H.__)("Enable all Blocks","affiliatex")),Object(r.createElement)("button",{type:"button",className:"ab-primary-btn grey-bg",onClick:()=>i(!1)},Object(H.__)("Disable all Blocks","affiliatex")))),Object(r.createElement)("div",{className:"ab-main-block-wrap"},Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.a,null),SingleBlockTitle:Object(H.__)("Button Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-1",type:"buttons",checked:t.buttons,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.k,null),SingleBlockTitle:Object(H.__)("Pros and Cons Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-2",type:"prosAndCons",checked:t.prosAndCons,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.b,null),SingleBlockTitle:Object(H.__)("CTA Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-3",type:"cta",checked:t.cta,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.e,null),SingleBlockTitle:Object(H.__)("Notice Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-4",type:"notice",checked:t.notice,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.p,null),SingleBlockTitle:Object(H.__)("Verdict Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-5",type:"verdict",checked:t.verdict,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.m,null),SingleBlockTitle:Object(H.__)("Single Product Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-6",type:"singleProduct",checked:t.singleProduct,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.f,null),SingleBlockTitle:Object(H.__)("Specifications Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-7",type:"specifications",checked:t.specifications,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.r,null),SingleBlockTitle:Object(H.__)("Versus Line Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-8",type:"versusLine",checked:t.versusLine,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.i,null),SingleBlockTitle:Object(H.__)("Product Table Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-9",type:"productTable",checked:t.productTable,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.g,null),SingleBlockTitle:Object(H.__)("Product Comparison Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-10",type:"productComparison",checked:t.productComparison,Values:t,setValues:n})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.o,null),SingleBlockTitle:Object(H.__)("Top Product Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-11",type:"topProducts",checked:t.topProducts,Values:t,setValues:n,className:e})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.h,null),SingleBlockTitle:Object(H.__)("Product Image Button Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-12",type:"productImageButton",checked:t.productImageButton,Values:t,setValues:n,className:e})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.l,null),SingleBlockTitle:Object(H.__)("Single Coupon Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-13",type:"singleCoupon",checked:t.singleCoupon,Values:t,setValues:n,className:e})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.n,null),SingleBlockTitle:Object(H.__)("Single Product Pros and Cons Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-14",type:"singleProductProsAndCons",checked:t.singleProductProsAndCons,Values:t,setValues:n,className:e})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.d,null),SingleBlockTitle:Object(H.__)("Coupon List Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-15",type:"couponListing",checked:t.couponListing,Values:t,setValues:n,className:e})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.c,null),SingleBlockTitle:Object(H.__)("Coupon Grid Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-16",type:"couponGrid",checked:t.couponGrid,Values:t,setValues:n,className:e})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.j,null),SingleBlockTitle:Object(H.__)("Product Tabs Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-17",type:"productTabs",checked:t.productTabs,Values:t,setValues:n,className:e})),Object(r.createElement)("div",{className:"ab-block-main-wrapper"},Object(r.createElement)(J,{SingleBlockIcon:Object(r.createElement)(W.q,null),SingleBlockTitle:Object(H.__)("Versus Block","affiliatex")}),Object(r.createElement)(Q,{id:"switch-18",type:"versus",checked:t.versus,Values:t,setValues:n,className:e})))))))},ie=n(70);const ae=({versionDescriptor:e})=>{const[t,...n]=e.descriptor.split(/\r?\n/);return Object(r.createElement)("div",{className:"main--details"},Object(r.createElement)("div",{className:"affiliate--versions"},Object(r.createElement)("div",{className:"version--title"},Object(r.createElement)("h5",null,sprintf(// translators: placeholder here means the actual version.
    2 Object(H.__)("Version: %s","affiliatex"),e.version))),Object(r.createElement)("div",{className:"relase-date"},Object(r.createElement)("p",null,sprintf(// translators: placeholder here means the actual date.
    3 Object(H.__)("Released on %s","affiliatex"),e.date)))),Object(r.createElement)("div",{className:"ab-fixes",dangerouslySetInnerHTML:{__html:`<ul class="list-item"><li>\n\n                        ${n.join("\n").trim().split("\n").map(e=>e.replace(/^-\s/,"")).map(e=>e.replace(/`(.*?)`/g,"<code>$1</code>")).join("</li><li>")}\n                        </li></ul>`.replace(/New Feature:/g,`<div class="changelog-list-title"><span class="changelog-tag tag-success">${Object(H.__)("New Feature","affiliatex")}</span></div>`).replace(/Fixes:/g,`<div class="changelog-list-title"><span class="changelog-tag tag-danger">${Object(H.__)("Fixes","affiliatex")}</span></div>`).replace(/Update:/g,`<div class="changelog-list-title"><span class="changelog-tag tag-warning">${Object(H.__)("Update","affiliatex")}</span></div>`).replace(/Enhancement:/g,`<div class="changelog-list-title"><span class="changelog-tag tag-info">${Object(H.__)("Enhancement","affiliatex")}</span></div>`)}}))};var oe=()=>{let e=null;const[t,n]=Object(r.useState)(!e),[i,a]=Object(r.useState)(e),[o,s]=Object(r.useState)(0),[c,l]=Object(r.useState)(1),u=e=>{l(e)};return Object(r.useEffect)(()=>{(async(t=!1)=>{t&&n(!0);const r=new FormData;r.append("action","affx_get_latest_changelog");try{const t=await fetch(ajaxurl,{method:"POST",body:r});if(200===t.status){const{success:n,data:r}=await t.json();n&&r.changelog&&(a(r.changelog),e=r.changelog)}}catch(e){}n(!1)})(!e)},[]),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ab-changelog"},Object(r.createElement)("div",{className:"container"},Object(r.createElement)("h3",{className:"title"},Object(H.__)("Changelog","affiliatex")),Object(r.createElement)("div",{className:"changelog--wrapper"},Object(r.createElement)("div",{className:"button--wrapper"},Object(r.createElement)("div",{className:"ab--btns"},Object(r.createElement)("button",{className:1===c?"btn-tabs active-tabs":"btn-tabs",onClick:()=>{u(1),s(0)}},Object(H.__)("AffiliateX","affiliatex")),AffiliateXAdmin.proActive&&Object(r.createElement)("button",{className:"tabs",className:2===c?"btn-tabs active-tabs":"btn-tabs",onClick:()=>{u(2),s(1)}},Object(H.__)("AffiliateX Pro","affiliatex")))),Object(r.createElement)("div",{className:"content--wrapper content active-content"},i&&i[o].changelog?((e,{hasBetas:t}={})=>e.replace(/\r/g,"").replace(/(\r\n|\r|\n){3,}/g,"$1\n\n").split("\n\n").map(e=>{let[t,n]=e.split(/\r?\n/)[0].split(":");return{version:t,date:Object(ie.dateI18n)("F j, Y",new Date(null==n?void 0:n.trim())),descriptor:e}}).filter(({version:e})=>!!t||-1===e.indexOf("beta")).filter(({version:e})=>!!t||3===e.split(".").length))(i[o].changelog,{hasBetas:!1}).map(e=>Object(r.createElement)(ae,{key:e.version,versionDescriptor:e})):Object(r.createElement)("div",{className:"affiliate--versions"},Object(H.__)("No changelog present at the moment.","affiliatex")))))))},se=n(23),ce=n(30),le=n(45),ue=()=>{const[e,t]=Object(r.useState)({typography:{family:"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"},fontColor:"#292929",btnColor:"#2670FF",btnHoverColor:"#084ACA",editorWidth:"inherit",editorCustomWidth:"1170",editorCustomSidebarWidth:"330",editorSidebarWidth:"inherit",disableFontAwesome:!1});return Object(r.useEffect)(()=>{let e=new FormData;e.append("action","get_customization_settings"),e.append("security",AffiliateXAdmin.ajax_nonce),ee()({url:ajaxurl,method:"POST",body:e}).then(e=>{!0===e.success&&""!=e.data&&t(JSON.parse(e.data))})},[]),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ab-customization-wrapper"},Object(r.createElement)("div",{className:"container"},Object(r.createElement)("div",{className:"customization-wrap"},Object(r.createElement)("div",{className:"details-wrap"},Object(r.createElement)("h3",{className:"title"},Object(H.__)("Customization Settings","affiliatex")),Object(r.createElement)("div",{className:"ab-desc"},Object(r.createElement)("p",null,Object(H.__)("The following settings will configure the default styling of the blocks which can be overridden for individual blocks in their settings.","affiliatex")))),Object(r.createElement)("div",{className:"btn-wrap"},Object(r.createElement)("a",{className:"ab-primary-btn",onClick:function(){let t=new FormData;t.append("data",JSON.stringify(e)),t.append("action","save_customization_settings"),t.append("security",AffiliateXAdmin.ajax_nonce),ee()({url:ajaxurl,method:"POST",body:t}).then(e=>{!0===e.success&&ne.a.success(e.data)})}},Object(H.__)("Save Changes","affiliatex")))),Object(r.createElement)("div",{className:"affx-customize-card"},Object(r.createElement)("div",{className:"affx-customize-option"},Object(r.createElement)("h3",{className:"affx-option-title"},Object(H.__)("Typography","affiliatex")),Object(r.createElement)("div",{className:"affx-option-fields"},Object(r.createElement)("div",{className:"affx-option-field"},Object(r.createElement)("div",{className:"affx-option-label-wrap"},Object(r.createElement)("h4",{className:"affx-field-label"},Object(H.__)("Font Family","affiliatex")),Object(r.createElement)("p",{className:"affx-field-info"},Object(H.__)("Set the default font family for the blocks.","affiliatex"))),Object(r.createElement)("div",{className:"affx-option-input-wrap"},Object(r.createElement)(le.a,{onChange:n=>{!function(n){let r={...e};r.typography=n,t(r)}(n)},value:e.typography,option:{value:e.typography},device:"desktop"}))))),Object(r.createElement)("div",{className:"affx-customize-option"},Object(r.createElement)("h3",{className:"affx-option-title"},Object(H.__)("Button Color","affiliatex")),Object(r.createElement)("div",{className:"affx-option-fields"},Object(r.createElement)("div",{className:"affx-option-field"},Object(r.createElement)("div",{className:"affx-option-label-wrap"},Object(r.createElement)("h4",{className:"affx-field-label"},Object(H.__)("Font Color","affiliatex")),Object(r.createElement)("div",{className:"affx-field-info"},Object(r.createElement)("p",null," ",Object(H.__)("Select the font color for different states.","affiliatex")," "))),Object(r.createElement)("div",{className:"affx-option-input-wrap"},Object(r.createElement)(ce.a,{value:{fontColor:{color:e.fontColor}},onChange:n=>function(n){let r={...e};r.fontColor=n,t(r)}(n.fontColor.color),option:{pickers:[{id:"fontColor",title:Object(H.__)("Font Color","affiliatex")}]}}))),Object(r.createElement)("div",{className:"affx-option-field"},Object(r.createElement)("div",{className:"affx-option-label-wrap"},Object(r.createElement)("h4",{className:"affx-field-label"},Object(H.__)("Button Color","affiliatex")),Object(r.createElement)("div",{className:"affx-field-info"},Object(r.createElement)("p",null,Object(H.__)("Select the secondary colors for different states.","affiliatex")))),Object(r.createElement)("div",{className:"affx-option-input-wrap"},Object(r.createElement)(ce.a,{value:{btnColor:{color:e.btnColor},btnHoverColor:{color:e.btnHoverColor}},onChange:n=>function(n,r){let i={...e};i.btnColor=n,i.btnHoverColor=r,t(i)}(n.btnColor.color,n.btnHoverColor.color),option:{pickers:[{id:"btnColor",title:Object(H.__)("Button Color","affiliatex")},{id:"btnHoverColor",title:Object(H.__)("Button Hover Color","affiliatex")}]}}))))),Object(r.createElement)("div",{className:"affx-customize-option"},Object(r.createElement)("h3",{className:"affx-option-title"},Object(H.__)("Editor","affiliatex")),Object(r.createElement)("div",{className:"affx-option-fields"},Object(r.createElement)("div",{className:"affx-option-field"},Object(r.createElement)("div",{className:"affx-option-label-wrap"},Object(r.createElement)("h4",{className:"affx-field-label"},Object(H.__)("Editor Width","affiliatex")),Object(r.createElement)("div",{className:"affx-field-info"},Object(r.createElement)("p",null,Object(H.__)("Select the font color for different states.","affiliatex")))),Object(r.createElement)("div",{className:"affx-option-input-wrap"},Object(r.createElement)("div",{className:"affx-width-control"},Object(r.createElement)(se.RadioControl,{selected:e.editorWidth,options:[{label:Object(H.__)("Inherit","affiliatex"),value:"inherit"},{label:Object(H.__)("Custom","affiliatex"),value:"custom"}],onChange:n=>function(n){let r={...e};r.editorWidth=n,t(r)}(n)}),"custom"===e.editorWidth&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("input",{type:"number",placeholder:"0px",defaultValue:e.editorCustomWidth,onKeyUp:n=>function(n){let r={...e};r.editorCustomWidth=n.target.value,t(r)}(n)}),Object(r.createElement)("span",{className:"affx-unit"},"px"))))),Object(r.createElement)("div",{className:"affx-option-field"},Object(r.createElement)("div",{className:"affx-option-label-wrap"},Object(r.createElement)("h4",{className:"affx-field-label"},Object(H.__)("Sidebar Width","affiliatex")),Object(r.createElement)("div",{className:"affx-field-info"},Object(r.createElement)("p",null,Object(H.__)("Select the secondary colors for different states.","affiliatex")))),Object(r.createElement)("div",{className:"affx-option-input-wrap"},Object(r.createElement)("div",{className:"affx-width-control"},Object(r.createElement)(se.RadioControl,{selected:e.editorSidebarWidth,options:[{label:Object(H.__)("Inherit","affiliatex"),value:"inherit"},{label:Object(H.__)("Custom","affiliatex"),value:"custom"}],onChange:n=>function(n){let r={...e};r.editorSidebarWidth=n,t(r)}(n)}),"custom"===e.editorSidebarWidth&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("input",{type:"number",placeholder:"0px",defaultValue:e.editorCustomSidebarWidth,onKeyUp:n=>function(n){let r={...e};r.editorCustomSidebarWidth=n.target.value,t(r)}(n)}),Object(r.createElement)("span",{className:"affx-unit"},"px"))))))),Object(r.createElement)("div",{className:"affx-customize-option"},Object(r.createElement)("h3",{className:"affx-option-title"},Object(H.__)("Assets","affiliatex")),Object(r.createElement)("div",{className:"affx-option-fields"},Object(r.createElement)("div",{className:"affx-option-field"},Object(r.createElement)("div",{className:"affx-option-label-wrap"},Object(r.createElement)("h4",{className:"affx-field-label"},Object(H.__)("Disable FontAwesome","affiliatex")),Object(r.createElement)("div",{className:"affx-field-info"},Object(r.createElement)("p",null,Object(H.__)("Enable this option if you want to disable FontAwesome assets on your frontend.","affiliatex")))),Object(r.createElement)("div",{className:"affx-option-input-wrap"},Object(r.createElement)("div",{className:"affx-width-control"},Object(r.createElement)(Q,{id:"switch-1",type:"disableFontAwesome",checked:e.disableFontAwesome,Values:e,setValues:t}))))))))))},de=e=>Object(r.createElement)("div",{className:"ab-themes-wrap-main"},Object(r.createElement)("div",{className:"ab-themes"},Object(r.createElement)("div",{className:"ab-image"}),Object(r.createElement)("div",{className:"ab-themes-wrap"},Object(r.createElement)("div",{className:"ab-theme-image"},Object(r.createElement)("img",{src:e.screenShot})),Object(r.createElement)("div",{className:"title-holder"},Object(r.createElement)("h5",{className:"ab-themes-title"},e.ThemesTitle),Object(r.createElement)("span",{className:"ab-theme-author"},Object(H.__)("By","affiliatex")," ",Object(r.createElement)("span",{className:"author"}," ",e.Author," "))),Object(r.createElement)("div",{className:"ab-theme-desc"},e.description),Object(r.createElement)("a",{href:e.themeLink,target:"_blank",className:e.Abthemesbtn},Object(H.__)("View Theme","affiliatex"))))),fe=()=>Object(r.createElement)("div",{className:"ab-recommend-themes"},Object(r.createElement)("div",{className:"container"},Object(r.createElement)("div",{className:"details-wrap"},Object(r.createElement)("h3",{className:"title"},Object(H.__)("Recommended Themes","affiliatex")),Object(r.createElement)("div",{className:"ab-desc"},Object(r.createElement)("p",null,Object(H.__)("AffiliateX works with any theme of your choice without any issues. Here are some of the themes we recommend.","affiliatex")))),Object(r.createElement)("div",{className:"ab-themes-grid"},Object(r.createElement)(de,{ThemesTitle:"Rishi",Author:"Rishi Theme",Abthemesbtn:"ab-themes-btn",description:Object(H.__)("Rishi Theme is a core web vitals optimized WordPress theme. It is lightning fast, lightweight and highly customizable. Speed optimized and SEO-friendly.","affiliatex"),screenShot:AffiliateXAdmin.pluginUrl+"app/src/images/rishi-theme.jpg",themeLink:"https://rishitheme.com/?utm_source=affiliatex&utm_medium=getting_started&utm_campaign=plugin_promo",CardBtnContent:Object(H.__)("View Theme","affiliatex")}))));const pe=g();function he({path:e}){return"customization"===e?Object(r.createElement)(ue,null):"blocks"===e?Object(r.createElement)(re,null):"recommended"===e?Object(r.createElement)(fe,null):"changelog"===e?Object(r.createElement)(oe,null):Object(r.createElement)(X,null)}function me(){let e=new URLSearchParams(F().search);return Object(r.createElement)(he,{path:e.get("tab")})}var be=function(e){return Object(r.createElement)(M,{history:pe},Object(r.createElement)(r.Fragment,null,Object(r.createElement)(U,null),Object(r.createElement)(K,null),Object(r.createElement)(me,null)))};function ge(){return Object(r.createElement)(be,null)}!function(){let e=document.getElementById("affiliateXAdminPageRoot");document.addEventListener("DOMContentLoaded",(function(){null!==e&&Object(r.render)(Object(r.createElement)(ge,null),e)}))}()}]);
     1var affiliateBlocksExports="object"==typeof affiliateBlocksExports?affiliateBlocksExports:{};affiliateBlocksExports.adminJS=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=84)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t,n){"use strict";n.d(t,"w",(function(){return i})),n.d(t,"a",(function(){return ve})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return ye})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return q})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Se})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return Ae})),n.d(t,"j",(function(){return Fe})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return x})),n.d(t,"m",(function(){return N})),n.d(t,"n",(function(){return L})),n.d(t,"o",(function(){return z})),n.d(t,"p",(function(){return be})),n.d(t,"q",(function(){return me})),n.d(t,"r",(function(){return he})),n.d(t,"s",(function(){return e=({versionDescriptor:e})=>{const[t,...n]=e.descriptor.split(/\r?\n/);return Object(r.createElement)("div",{className:"main--details"},Object(r.createElement)("div",{className:"affiliate--versions"},Object(r.createElement)("div",{className:"version--title"},Object(r.createElement)("h5",null,sprintf(// translators: placeholder here means the actual version.
     2Object(.__)("Version: %s","affiliatex"),e.version))),Object(r.createElement)("div",{className:"relase-date"},Object(r.createElement)("p",null,sprintf(// translators: placeholder here means the actual date.
     3Object(e,null),e)}))}()}]);
  • affiliatex/trunk/app/build/blockComponents.asset.php

    r2751896 r2832117  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bffa4f9c45865311c8c3deb1197e1ca0');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '');
  • affiliatex/trunk/app/build/blockComponents.js

    r2666671 r2832117  
    1 var affiliateBlocksExports="object"==typeof affiliateBlocksExports?affiliateBlocksExports:{};affiliateBlocksExports.blockComponents=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=81)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t,n){"use strict";n.d(t,"w",(function(){return i})),n.d(t,"a",(function(){return ve})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return je})),n.d(t,"d",(function(){return be})),n.d(t,"e",(function(){return Z})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Se})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return Re})),n.d(t,"j",(function(){return Pe})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"m",(function(){return L})),n.d(t,"n",(function(){return F})),n.d(t,"o",(function(){return W})),n.d(t,"p",(function(){return ge})),n.d(t,"q",(function(){return me})),n.d(t,"r",(function(){return he})),n.d(t,"s",(function(){return C})),n.d(t,"t",(function(){return Ve})),n.d(t,"u",(function(){return _})),n.d(t,"v",(function(){return k})),n.d(t,"x",(function(){return Oe})),n.d(t,"y",(function(){return S})),n.d(t,"z",(function(){return Ne})),n.d(t,"A",(function(){return He})),n.d(t,"B",(function(){return De})),n.d(t,"C",(function(){return Ie})),n.d(t,"D",(function(){return We}));let r=v();const i=e=>h(e,r);let o=v();i.write=e=>h(e,o);let a=v();i.onStart=e=>h(e,a);let s=v();i.onFrame=e=>h(e,s);let c=v();i.onFinish=e=>h(e,c);let l=[];i.setTimeout=(e,t)=>{let n=i.now()+t,r=()=>{let e=l.findIndex(e=>e.cancel==r);~e&&l.splice(e,1),j.count-=~e?1:0},o={time:n,handler:e,cancel:r};return l.splice(u(n),0,o),j.count+=1,m(),o};let u=e=>~(~l.findIndex(t=>t.time>e)||~l.length);i.cancel=e=>{r.delete(e),o.delete(e)},i.sync=e=>{p=!0,i.batchedUpdates(e),p=!1},i.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,i.onStart(n)}return r.handler=e,r.cancel=()=>{a.delete(n),t=null},r};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};i.use=e=>d=e,i.now="undefined"!=typeof performance?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):b()};let f=-1,p=!1;function h(e,t){p?(t.delete(e),e(0)):(t.add(e),m())}function m(){f<0&&(f=0,"demand"!==i.frameLoop&&d(g))}function g(){~f&&(d(g),i.batchedUpdates(b))}function b(){let e=f;f=i.now();let t=u(f);t&&(y(l.splice(0,t),e=>e.handler()),j.count-=t),a.flush(),r.flush(e?Math.min(64,f-e):16.667),s.flush(),o.flush(),c.flush()}function v(){let e=new Set,t=e;return{add(n){j.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(j.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,j.count-=t.size,y(t,t=>t(n)&&e.add(t)),j.count+=e.size,t=e)}}}function y(e,t){e.forEach(e=>{try{t(e)}catch(e){i.catch(e)}})}const j={count:0,clear(){f=-1,l=[],a=v(),r=v(),s=v(),o=v(),c=v(),j.count=0}};var O=n(4);function k(){}const w=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function _(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const E=(e,t)=>e.forEach(t);function x(e,t,n){for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const S=e=>C.und(e)?[]:C.arr(e)?e:[e];function L(e,t){if(e.size){const n=Array.from(e);e.clear(),E(n,t)}}const F=(e,...t)=>L(e,e=>e(...t));let M,P,A=null,R=!1,V=k;var I=Object.freeze({__proto__:null,get createStringInterpolator(){return M},get to(){return P},get colors(){return A},get skipAnimation(){return R},get willAdvance(){return V},assign:e=>{e.to&&(P=e.to),e.now&&(i.now=e.now),void 0!==e.colors&&(A=e.colors),null!=e.skipAnimation&&(R=e.skipAnimation),e.createStringInterpolator&&(M=e.createStringInterpolator),e.requestAnimationFrame&&i.use(e.requestAnimationFrame),e.batchedUpdates&&(i.batchedUpdates=e.batchedUpdates),e.willAdvance&&(V=e.willAdvance),e.frameLoop&&(i.frameLoop=e.frameLoop)}});const T=new Set;let N=[],z=[],D=0;const W={get idle(){return!T.size&&!N.length},start(e){D>e.priority?(T.add(e),i.onStart(H)):(B(e),i(q))},advance:q,sort(e){if(D)i.onFrame(()=>W.sort(e));else{const t=N.indexOf(e);~t&&(N.splice(t,1),U(e))}},clear(){N=[],T.clear()}};function H(){T.forEach(B),T.clear(),i(q)}function B(e){N.includes(e)||U(e)}function U(e){N.splice(function(t,n){const r=t.findIndex(t=>t.priority>e.priority);return r<0?t.length:r}(N),0,e)}function q(e){const t=z;for(let n=0;n<N.length;n++){const r=N[n];D=r.priority,r.idle||(V(r),r.advance(e),r.idle||t.push(r))}return D=0,z=N,z.length=0,N=t,N.length>0}const Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},$="[-+]?\\d*\\.?\\d+";function K(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const G=new RegExp("rgb"+K($,$,$)),Q=new RegExp("rgba"+K($,$,$,$)),X=new RegExp("hsl"+K($,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),J=new RegExp("hsla"+K($,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",$)),Y=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,te=/^#([0-9a-fA-F]{6})$/,ne=/^#([0-9a-fA-F]{8})$/;function re(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ie(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=re(i,r,e+1/3),a=re(i,r,e),s=re(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function oe(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ae(e){return(parseFloat(e)%360+360)%360/360}function se(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ce(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function le(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=te.exec(e))?parseInt(t[1]+"ff",16)>>>0:A&&void 0!==A[e]?A[e]:(t=G.exec(e))?(oe(t[1])<<24|oe(t[2])<<16|oe(t[3])<<8|255)>>>0:(t=Q.exec(e))?(oe(t[1])<<24|oe(t[2])<<16|oe(t[3])<<8|se(t[4]))>>>0:(t=Y.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ne.exec(e))?parseInt(t[1],16)>>>0:(t=ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=X.exec(e))?(255|ie(ae(t[1]),ce(t[2]),ce(t[3])))>>>0:(t=J.exec(e))?(ie(ae(t[1]),ce(t[2]),ce(t[3]))|se(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const ue=(e,t,n)=>{if(C.fun(e))return e;if(C.arr(e))return ue({range:e,output:t,extrapolate:n});if(C.str(e.output[0]))return M(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,c){let l=c?c(e):e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,o[t],o[t+1],i[t],i[t+1],c,a,s,r.map)}};function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const fe=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),he=e=>Boolean(e&&e[fe]),me=e=>e&&e[fe]?e[fe]():e,ge=e=>e[pe]||null;function be(e,t){let n=e[pe];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}class ve{constructor(e){if(this[fe]=void 0,this[pe]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ye(this,e)}}const ye=(e,t)=>ke(e,fe,t);function je(e,t){if(e[fe]){let n=e[pe];n||ke(e,pe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Oe(e,t){let n=e[pe];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[pe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const ke=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),we=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ce=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;let _e;const Ee=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,xe=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Se=e=>{_e||(_e=A?new RegExp(`(${Object.keys(A).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>me(e).replace(Ce,le).replace(_e,le)),n=t.map(e=>e.match(we).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ue(de({},e,{output:t})));return e=>{let n=0;return t[0].replace(we,()=>String(r[n++](e))).replace(Ee,xe)}},Le="react-spring: ",Fe=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(Le+"once requires a function parameter");return(...e)=>{n||(t(...e),n=!0)}},Me=Fe(console.warn);function Pe(){Me(Le+'The "interpolate" function is deprecated in v9 (use "to" instead)')}const Ae=Fe(console.warn);function Re(){Ae(Le+'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions')}function Ve(e){return C.str(e)&&("#"==e[0]||/\d/.test(e)||e in(A||{}))}const Ie=e=>Object(O.useEffect)(e,Te),Te=[];function Ne(){const e=Object(O.useState)()[1],t=Object(O.useState)(ze)[0];return Ie(t.unmount),()=>{t.current&&e({})}}function ze(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function De(e,t){const[n]=Object(O.useState)(()=>({inputs:t,result:e()})),r=Object(O.useRef)(),i=r.current;let o=i;return o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=n,Object(O.useEffect)(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function We(e){const t=Object(O.useRef)();return Object(O.useEffect)(()=>{t.current=e}),t.current}const He="undefined"!=typeof window&&window.document&&window.document.createElement?O.useLayoutEffect:O.useEffect},function(e,t,n){"use strict";n.d(t,"b",(function(){return m}));var r=n(11),i=n.n(r),o=n(0),a=n(1),s=n(5),c=n.n(s),l=n(44),u=n.n(l),d=n(7),f=n(8);const p=n(51);p.keys().forEach(p);const h=e=>{let t=p.keys().map(e=>e.replace(/^\.\//,"").replace(/\.js$/,"")).indexOf(e);return t>-1&&p.keys()[t]},m=e=>{const t={};return h(e.type)?p(h(e.type)).default:t[e.type]?t[e.type]:null},g=({option:e,value:t})=>void 0===t?e.value:t;t.a=({option:e,value:t,values:n,onChange:r,onChangeFor:s,hasRevertButton:l,id:p,purpose:h})=>{const[b,v]=Object(o.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),y=()=>{v(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")},j=e=>{v(e),wp.customize&&wp.customize.previewedDevice.set(e)};Object(o.useEffect)(()=>{if(("ct-typography"===e.type||Object(f.d)(e))&&wp.customize)return setTimeout(()=>wp.customize.previewedDevice.bind(y),1e3),()=>{("ct-typography"===e.type||Object(f.d)(e))&&wp.customize&&wp.customize.previewedDevice.unbind(y)}},[]);let O=m(e),k={content:null,option:e};const w=Object(f.e)(g({value:t,option:e}),Object(f.d)(e)),C=Object(f.d)(e,{ignoreHidden:!0})?Object(f.b)({option:e,value:w,device:b}):w,_=t=>{e.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),e.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==e.switchDeviceOnChange&&wp.customize.previewedDevice.set(e.switchDeviceOnChange),e.sync&&(Object.keys(e.sync).length>0||Array.isArray(e.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:e.sync.id||e.id,option:e}),r(t)},E=n=>{const r=Object(f.e)(g({value:t,option:e}),Object(f.d)(e));_(Object(f.d)(e,{ignoreHidden:!0})?{...r,["tablet"===b&&"skip"===Object(f.c)("tablet",e.responsive)?"mobile":b]:n,..."desktop"===b?Object.keys(r).reduce((t,i)=>({...t,..."desktop"!==i&&"__changed"!==i&&Object.keys(Object(f.e)(e.value)).reduce((t,n)=>!!t&&Object(f.e)(e.value)[n]===Object(f.e)(e.value).desktop,!0)&&-1===(r.__changed||[]).indexOf("tablet")?{[i]:n}:{}}),{}):{},..."tablet"===b&&"skip"!==Object(f.c)("tablet",e.responsive)?Object.keys(r).reduce((t,i)=>({...t,..."desktop"!==i&&"tablet"!==i&&"__changed"!==i&&Object.keys(Object(f.e)(e.value)).reduce((t,n)=>!!t&&Object(f.e)(e.value)[n]===Object(f.e)(e.value).desktop,!0)&&-1===(r.__changed||[]).indexOf(i)?{[i]:n}:{}}),{}):{},__changed:[...r.__changed||[],..."desktop"!==b?[b]:[]].filter((e,t,n)=>n.indexOf(e)===t)}:n)};if(!O)return Object(o.createElement)("div",null,"Unimplemented option: ",e.type);let x={design:!0,label:!0,wrapperAttr:{}},S=()=>null,L=null,F=()=>null,M=()=>({});x={...x,...O.renderingConfig||{}},e.design&&(x.design=e.design),O.LabelToolbar&&(S=O.LabelToolbar),O.ControlEnd&&(F=O.ControlEnd),O.MetaWrapper&&(L=O.MetaWrapper),O.sectionClassName&&(M=O.sectionClassName);let P=Object(o.createElement)(o.Fragment,null,k&&k.content,Object(o.createElement)(O,{key:p,option:{...e,value:Object(f.d)(e,{ignoreHidden:!0})?Object(f.b)({device:b,option:e,value:Object(f.e)(e.value||"")}):Object(f.e)(e.value||"",Object(f.d)(e))},value:C,id:p,values:n,onChangeFor:s,device:b,onChange:E}));if(!x.design||"none"===x.design)return P;let A=Object(d.d)({id:p,option:e,values:n,renderingConfig:x}),R=-1!==Object.keys(e).indexOf("desc")&&e.desc,V=-1!==Object.keys(e).indexOf("link")&&(e.link||" ");const I="boolean"==typeof x.design?"block":x.design;if("compact"===x.design)return Object(o.createElement)("section",e.sectionAttr||{},A&&Object(o.createElement)("label",null,A),(Object(f.d)(e)&&Object(f.c)(b,e.responsive)||!Object(f.d)(e))&&P,V&&Object(o.createElement)("a",i()({dangerouslySetInnerHTML:{__html:V}},e.linkAttr||{})));const T=({wrapperAttr:{className:n,...r}={},...s}={})=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",i()({className:c()("ct-control",n,{}),"data-design":I},e.divider?{"data-divider":e.divider}:{},Object(f.d)(e)&&!Object(f.c)(b,e.responsive)||"disabled"===e.state?{"data-state":"disabled"}:{},e.wrapperAttr||{},r),Object(o.createElement)("header",null,A&&Object(o.createElement)("label",null,A),"ct-image-picker"!==e.type&&"ct-layers"!==e.type&&"ct-image-uploader"!==e.type&&"ct-panel"!==e.type&&l&&!e.disableRevertButton&&Object(o.createElement)("button",{type:"button",disabled:u()(e.value,g({value:t,option:e})),className:"rara-revert",onClick:()=>_(e.value)}),Object(o.createElement)(S,{option:e,value:C,id:p,onChange:E}),Object(f.d)(e,{ignoreHidden:!0})&&I.indexOf("block")>-1&&Object(o.createElement)(f.a,{device:b,responsiveDescriptor:e.responsive,setDevice:j})),Object(f.d)(e)&&!Object(f.c)(b,e.responsive)&&Object(o.createElement)("div",{className:"ct-disabled-notification"},e.disabledDeviceMessage||Object(a.__)("Option can't be edited for current device","affiliatex")),(Object(f.d)(e)&&Object(f.c)(b,e.responsive)||!Object(f.d)(e))&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("section",i()({},e.sectionAttr||{},{className:c()({"ct-responsive-container":Object(f.d)(e,{ignoreHidden:!0})&&"inline"===I},M({design:I,option:e}),(e.sectionAttr||{}).class||"")}),Object(f.d)(e,{ignoreHidden:!0})&&"inline"===I&&Object(o.createElement)(f.a,{device:b,responsiveDescriptor:e.responsive,setDevice:j}),P,V&&Object(o.createElement)("a",i()({dangerouslySetInnerHTML:{__html:V}},e.linkAttr||{}))),Object(o.createElement)(F,null),R&&Object(o.createElement)("div",{dangerouslySetInnerHTML:{__html:R},className:"ct-option-description"}))));return L?Object(o.createElement)(L,{id:p,option:e,value:C,onChangeFor:s,values:n,getActualOption:T}):T()}},function(e,t){e.exports=window.React},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return l})),n.d(t,"t",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"r",(function(){return f})),n.d(t,"s",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"l",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"h",(function(){return j})),n.d(t,"n",(function(){return O})),n.d(t,"b",(function(){return k}));var r="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},o=Array.prototype,a=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=o.push,l=o.slice,u=a.toString,d=a.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,m=Object.keys,g=Object.create,b=f&&ArrayBuffer.isView,v=isNaN,y=isFinite,j=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1}).call(this,n(46))},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(21);const i=({id:e,option:t,values:n,renderingConfig:i})=>{let o=-1===Object.keys(t).indexOf("label")?(a=e,(a=null==a?"":String(a)).charAt(0).toUpperCase()+a.slice(1)).replace(/\_|\-/g," "):t.label;var a;return o!==o.toString()&&(o=Object.keys(o).reduce((e,t)=>e||(Object(r.a)(Object(r.b)(o[t]),n)?t:e),null)||Object.keys(o)[0]),""===o&&(o=!0),i&&!i.label&&(o=!1),o},o=e=>!0===e.enable&&(e.inset?"inset":"")+" "+e.h_offset+"px "+e.v_offset+"px "+e.blur+"px "+e.spread+"px "+e.color.color+";",a=e=>100*e.split("")[1],s=e=>{var t=e.split("");return"n"===t[0]?"normal":"i"===t[0]?"italic":"Default"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(0),i=n(5),o=n.n(i),a=n(3),s=n(41);n.d(t,"e",(function(){return s.maybePromoteScalarValueIntoResponsive}));const c=(e,t)=>({desktop:!0,tablet:!0,mobile:!0,..."boolean"==typeof t?{}:t||{}}[e]),l=(e,t={})=>{let{ignoreHidden:n=!1}=t,r=Object(a.b)(e);return!(null==r||!r.hiddenResponsive||n)||!!e.responsive},u=({value:e,option:t,device:n})=>"tablet"===n&&"skip"===c(n,t.responsive)?e.mobile:e[n];t.a=({device:e,setDevice:t,responsiveDescriptor:n})=>Object(r.createElement)("div",{className:"ct-control-options"},Object(r.createElement)("ul",{className:"ct-responsive-controls ct-devices"},["desktop","tablet","mobile"].filter(e=>"skip"!==c(e,n)).map(i=>Object(r.createElement)("li",{onClick:()=>t(i),className:o()({active:i===e,"ct-disabled":!c(i,n)},"ct-"+i),key:i}))))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return s}));var r=n(2),i=n(4);const o=Symbol.for("Animated:node"),a=e=>e&&e[o],s=(e,t)=>Object(r.h)(e,o,t),c=e=>e&&e[o]&&e[o].getPayload();class l{constructor(){this.payload=void 0,s(this,this)}getPayload(){return this.payload||[]}}class u extends l{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,r.s.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new u(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return r.s.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,r.s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class d extends u{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Object(r.f)({output:[e,e]})}static create(e){return new d(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(r.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Object(r.f)({output:[this.getValue(),e]})),this._value=0,super.reset()}}const f={dependencies:null};class p extends l{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Object(r.l)(this.source,(n,i)=>{var a;(a=n)&&a[o]===a?t[i]=n.getValue(e):Object(r.r)(n)?t[i]=Object(r.q)(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Object(r.k)(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Object(r.l)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){f.dependencies&&Object(r.r)(e)&&f.dependencies.add(e);const t=c(e);t&&Object(r.k)(t,e=>this.add(e))}}class h extends p{constructor(e){super(e)}static create(e){return new h(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(m)),!0)}}function m(e){return(Object(r.t)(e)?d:u).create(e)}function g(e){const t=a(e);return t?t.constructor:r.s.arr(e)?h:Object(r.t)(e)?d:u}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const v=(e,t)=>{const n=!r.s.fun(e)||e.prototype&&e.prototype.isReactComponent;return Object(i.forwardRef)((o,a)=>{const s=Object(i.useRef)(null),c=n&&Object(i.useCallback)(e=>{s.current=function(e,t){return e&&(r.s.fun(e)?e(t):e.current=t),t}(a,e)},[a]),[l,u]=function(e,t){const n=new Set;return f.dependencies=n,e.style&&(e=b({},e,{style:t.createAnimatedStyle(e.style)})),e=new p(e),f.dependencies=null,[e,n]}(o,t),d=Object(r.z)(),h=()=>{const e=s.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},m=new y(h,u),g=Object(i.useRef)();Object(r.A)(()=>{const e=g.current;g.current=m,Object(r.k)(u,e=>Object(r.c)(e,m)),e&&(Object(r.k)(e.deps,t=>Object(r.x)(t,e)),r.w.cancel(e.update))}),Object(i.useEffect)(h,[]),Object(r.C)(()=>()=>{const e=g.current;Object(r.k)(e.deps,t=>Object(r.x)(t,e))});const v=t.getComponentProps(l.getValue());return i.createElement(e,b({},v,{ref:c}))})};class y{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&r.w.write(this.update)}}const j=Symbol.for("AnimatedComponent"),O=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new p(e)),getComponentProps:i=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},a=e=>{const t=k(e)||"Anonymous";return(e=r.s.str(e)?a[e]||(a[e]=v(e,o)):e[j]||(e[j]=v(e,o))).displayName=`Animated(${t})`,e};return Object(r.l)(e,(t,n)=>{r.s.arr(e)&&(n=k(t)),a[n]=a(t)}),{animated:a}},k=e=>r.s.str(e)?e:e&&r.s.str(e.displayName)?e.displayName:r.s.fun(e)&&e.name||null},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"w",(function(){return i})),n.d(t,"s",(function(){return o})),n.d(t,"x",(function(){return a})),n.d(t,"t",(function(){return s})),n.d(t,"u",(function(){return l})),n.d(t,"v",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"p",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"l",(function(){return j})),n.d(t,"n",(function(){return O})),n.d(t,"i",(function(){return k})),n.d(t,"j",(function(){return w})),n.d(t,"q",(function(){return C})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"g",(function(){return x}));var r=n(0);n(4);const i=()=>Object(r.createElement)("svg",{width:"200",height:"264",viewBox:"0 0 200 264",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.252 259.342C120.708 262.368 110.545 264 100 264C91.5906 264 83.4235 262.962 75.6201 261.007C75.8681 260.046 76 259.038 76 258C76 251.733 71.1959 246.588 65.0696 246.047C65.674 244.139 66 242.108 66 240C66 228.954 57.0457 220 46 220C42.886 220 39.9383 220.712 37.3105 221.981C35.6579 217.33 31.2179 214 26 214C22.0547 214 18.5541 215.904 16.3669 218.843C6.01953 203.096 0 184.251 0 164C0 108.772 44.7715 64 100 64C155.228 64 200 108.772 200 164C200 182.678 194.879 200.16 185.965 215.118C184.095 210.924 179.889 208 175 208C170.051 208 165.802 210.996 163.967 215.272C160.818 213.204 157.05 212 153 212C141.954 212 133 220.954 133 232C133 236.05 134.204 239.818 136.272 242.967C131.996 244.802 129 249.051 129 254C129 255.919 129.451 257.734 130.252 259.342ZM172.997 232.348C173.138 232.198 173.278 232.048 173.418 231.897C173.277 231.878 173.138 231.857 172.999 231.834C173 231.889 173 231.945 173 232C173 232.116 172.999 232.232 172.997 232.348Z",fill:"#26D8FF"}),Object(r.createElement)("path",{d:"M111 111.472C111 109.242 113.347 107.792 115.342 108.789L138.983 120.61C144.873 123.555 148.153 129.997 147.071 136.492L140.031 178.733C139.673 180.881 137.219 181.944 135.407 180.736L112.336 165.355C111.501 164.799 111 163.862 111 162.859V111.472Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M90 111.472C90 109.242 87.6531 107.792 85.6584 108.789L62.0168 120.61C56.127 123.555 52.8465 129.997 53.9291 136.492L60.9694 178.733C61.3273 180.881 63.7813 181.944 65.5926 180.736L88.6641 165.355C89.4987 164.799 90 163.862 90 162.859V111.472Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M118.625 157H82.8913C79.7186 157 76.9824 154.897 76.2642 151.845C74.4948 144.325 71.5245 130.451 69.6681 115.045C67.8093 99.6197 67.0786 82.7464 69.7394 69.1926C73.1658 51.7394 84.0696 30.319 92.2057 16.0467C96.0887 9.23522 105.428 9.23522 109.311 16.0467C117.447 30.319 128.351 51.7394 131.777 69.1926C134.438 82.7464 133.707 99.6197 131.848 115.045C129.992 130.451 127.021 144.325 125.252 151.845C124.534 154.897 121.798 157 118.625 157Z",fill:"white",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M123.333 43.7511C123.011 43.8023 122.633 43.8615 122.206 43.927C120.713 44.1559 118.626 44.4613 116.249 44.7673C111.483 45.3808 105.596 45.9906 100.998 46C96.3074 46.0096 90.2998 45.3999 85.4365 44.7816C83.0109 44.4732 80.8811 44.1642 79.358 43.9323C78.9113 43.8642 78.5168 43.8029 78.1826 43.7501C82.5891 33.5843 87.8067 23.7631 92.201 16.0544C96.0838 9.24285 105.432 9.24285 109.315 16.0544C113.709 23.7634 118.927 33.585 123.333 43.7511Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M86.392 174L114.608 174C115.548 174 116.358 174.43 116.778 175.148C118.436 177.981 121.487 184.507 120.934 193.438C120.455 201.171 117.233 208.861 113.399 215.433C109.571 221.995 105.175 227.369 102.436 230.458C101.381 231.647 99.6187 231.647 98.5643 230.458C95.8248 227.369 91.4294 221.995 87.6013 215.433C83.767 208.861 80.545 201.171 80.0661 193.438C79.5131 184.508 82.5642 177.981 84.2215 175.148C84.6418 174.43 85.4515 174 86.392 174Z",fill:"#FFB800",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M107.797 180L93.2034 180C91.917 180 90.7071 180.62 90.1461 181.778C89.1292 183.876 87.7481 187.727 88.0396 192.77C88.5507 201.615 94.2718 210.248 97.7815 214.763C99.1912 216.576 101.809 216.576 103.218 214.763C106.728 210.248 112.449 201.615 112.96 192.77C113.252 187.727 111.871 183.876 110.854 181.778C110.293 180.62 109.083 180 107.797 180Z",fill:"#E7A600"}),Object(r.createElement)("path",{d:"M77.3099 159.382C77.6022 157.994 78.8269 157 80.2456 157H121.754C123.173 157 124.398 157.994 124.69 159.382L127.006 170.382C127.398 172.247 125.976 174 124.07 174H77.9298C76.0243 174 74.6016 172.247 74.9941 170.382L77.3099 159.382Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(r.createElement)("circle",{cx:"101",cy:"71",r:"14",fill:"#A9F0FF",stroke:"#185C6A",strokeWidth:"4"})),o=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#E7EFFF"}),Object(r.createElement)("path",{d:"M16 31.5C16 30.837 16.2634 30.2011 16.7322 29.7322C17.2011 29.2634 17.837 29 18.5 29H32",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M18.5 14H32V34H18.5C17.837 34 17.2011 33.7366 16.7322 33.2678C16.2634 32.7989 16 32.163 16 31.5V16.5C16 15.837 16.2634 15.2011 16.7322 14.7322C17.2011 14.2634 17.837 14 18.5 14V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),a=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#FFE7E7"}),Object(r.createElement)("path",{d:"M34.54 18.42C34.4212 17.9454 34.1793 17.5106 33.8387 17.1594C33.498 16.8082 33.0708 16.5532 32.6 16.42C30.88 16 24 16 24 16C24 16 17.12 16 15.4 16.46C14.9293 16.5932 14.502 16.8482 14.1614 17.1994C13.8207 17.5506 13.5788 17.9854 13.46 18.46C13.1452 20.2056 12.9912 21.9763 13 23.75C12.9888 25.537 13.1428 27.3213 13.46 29.08C13.591 29.5398 13.8383 29.9581 14.1782 30.2945C14.518 30.6308 14.9388 30.8738 15.4 31C17.12 31.46 24 31.46 24 31.46C24 31.46 30.88 31.46 32.6 31C33.0708 30.8668 33.498 30.6118 33.8387 30.2606C34.1793 29.9094 34.4212 29.4746 34.54 29C34.8524 27.2676 35.0063 25.5103 35 23.75C35.0112 21.963 34.8572 20.1787 34.54 18.42V18.42Z",stroke:"#F13A3A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21.75 27.02L27.5 23.75L21.75 20.48V27.02Z",stroke:"#F13A3A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),s=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#D7F9DF"}),Object(r.createElement)("path",{d:"M24 34C29.5228 34 34 29.5228 34 24C34 18.4772 29.5228 14 24 14C18.4772 14 14 18.4772 14 24C14 29.5228 18.4772 34 24 34Z",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M24 28C26.2091 28 28 26.2091 28 24C28 21.7909 26.2091 20 24 20C21.7909 20 20 21.7909 20 24C20 26.2091 21.7909 28 24 28Z",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M16.93 16.9302L21.17 21.1702",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M26.83 26.8301L31.07 31.0701",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M26.83 21.1702L31.07 16.9302",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M26.83 21.1701L30.36 17.6401",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M16.93 31.0701L21.17 26.8301",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),c=()=>Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M8.00016 14.6663C11.6821 14.6663 14.6668 11.6816 14.6668 7.99967C14.6668 4.31778 11.6821 1.33301 8.00016 1.33301C4.31826 1.33301 1.3335 4.31778 1.3335 7.99967C1.3335 11.6816 4.31826 14.6663 8.00016 14.6663Z",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 5.33301V7.99967",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 10.667H8.00667",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),l=()=>Object(r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{clipPath:"url(#clip0)"},Object(r.createElement)("path",{d:"M31 19.4826L25 9.09011L24 7.36011L23 9.09011L17 19.4826L3.99998 42.0001H18L24 31.6076L30 42.0001H44L31 19.4826ZM24 27.6076L19.31 19.4826L22.36 14.2001L24 11.3601L28.5475 19.2326L28.69 19.4826L24 27.6076ZM22.2675 30.6076L16.845 40.0001H7.46498L18.155 21.4826L22.845 29.6076L22.2675 30.6076ZM32 40.0001H31.155L25.7325 30.6076L25.155 29.6076L29.845 21.4826L40.535 40.0001H32Z",fill:"white"})),Object(r.createElement)("defs",null,Object(r.createElement)("clipPath",{id:"clip0"},Object(r.createElement)("rect",{width:"40",height:"34.64",fill:"white",transform:"translate(4 7)"})))),u=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M21 4H3C1.89543 4 1 4.89543 1 6V18C1 19.1046 1.89543 20 3 20H21C22.1046 20 23 19.1046 23 18V6C23 4.89543 22.1046 4 21 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M7 12L17 12",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),d=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M9 16C9 19.866 12.134 23 16 23C19.866 23 23 19.866 23 16C23 12.134 19.866 9 16 9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M18.4 13.6001L13.6 18.4001",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M13.6 13.6001L18.4 18.4001",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M11 6L7.5625 9L6 7.5",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),f=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M9 15L12.3329 23L13.5162 19.5162L17 18.3329L9 15Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M14 20L17 23",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20 20H21C22.1046 20 23 19.1046 23 18V6C23 4.89543 22.1046 4 21 4H3C1.89543 4 1 4.89543 1 6V18C1 19.1046 1.89543 20 3 20H7",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),p=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M18 8C18 6.4087 17.3679 4.88258 16.2426 3.75736C15.1174 2.63214 13.5913 2 12 2C10.4087 2 8.88258 2.63214 7.75736 3.75736C6.63214 4.88258 6 6.4087 6 8C6 15 3 17 3 17H21C21 17 18 15 18 8Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M13.73 21C13.5542 21.3031 13.3018 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),h=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M2 21C2 19.3431 3.34315 18 5 18H9C10.6569 18 12 19.3431 12 21V22H2V21Z",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M13.7867 10.9196L10.5341 14.1723C10.309 14.3973 10.0187 14.5386 9.72695 14.5652C9.43521 14.5917 9.16596 14.5012 8.97842 14.3137L5.44289 10.7782C5.25535 10.5906 5.16489 10.3214 5.19141 10.0296C5.21794 9.73789 5.35926 9.44756 5.58431 9.22252L12.3725 2.43429C12.5976 2.20925 12.8879 2.06792 13.1796 2.0414C13.4714 2.01488 13.7406 2.10533 13.9282 2.29287L17.4637 5.8284C17.6512 6.01594 17.7417 6.28519 17.7152 6.57693C17.6887 6.86867 17.5473 7.159 17.3223 7.38404L14.0696 10.6367",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M12.5139 12.1924L15.3424 9.36396L21.7063 15.7279C22.0969 16.1184 22.0969 16.7516 21.7063 17.1421L20.2921 18.5563C19.9016 18.9469 19.2684 18.9469 18.8779 18.5563L12.5139 12.1924Z",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}))),m=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M21 9V20H3V9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20 4H4C2.89543 4 2 4.89543 2 6V8C2 8.55228 2.44772 9 3 9H21C21.5523 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}))),g=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M10 22H6C5.46957 22 4.96086 21.7893 4.58579 21.4142C4.21071 21.0391 4 20.5304 4 20V4C4 3.46957 4.21071 2.96086 4.58579 2.58579C4.96086 2.21071 5.46957 2 6 2H14L20 8C20 8 20 8.21895 20 9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M15 17.25L16.3333 18.5L19 16",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M14 2V8H20",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M9 13H8",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M10 9H9H8",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("circle",{cx:"17",cy:"17",r:"5",stroke:"#2670FF",strokeWidth:"2"}))),b=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M18.2222 1H5.77778C4.79594 1 4 2.09441 4 3.44444V20.5556C4 21.9056 4.79594 23 5.77778 23H18.2222C19.2041 23 20 21.9056 20 20.5556V3.44444C20 2.09441 19.2041 1 18.2222 1Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M12 1L12 23",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M7 12H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M7 7H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M15 12H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M15 7H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M7 17H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M15 17H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}))),v=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M21 9V20H3V13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M11 9C16.3444 9 19.5252 9 21.001 9C21.5533 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4H13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M5 1L6.236 3.63302L9 4.05783L7 6.1062L7.472 9L5 7.63302L2.528 9L3 6.1062L1 4.05783L3.764 3.63302L5 1Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),y=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{x:"3",y:"18",width:"18",height:"4",rx:"1",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8 8C8.55228 8 9 7.55228 9 7C9 6.44772 8.55228 6 8 6C7.44772 6 7 6.44772 7 7C7 7.55228 7.44772 8 8 8Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21 9.63636L16.9375 6L8 14",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("rect",{x:"3",y:"2",width:"18",height:"12",rx:"2",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}))),j=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M1 9H0C0 9.55228 0.447715 10 1 10L1 9ZM1 15V14C0.447715 14 0 14.4477 0 15H1ZM2 6C2 5.44771 2.44771 5 3 5V3C1.34315 3 0 4.34314 0 6H2ZM2 9V6H0V9H2ZM5 12C5 9.79086 3.20914 8 1 8V10C2.10457 10 3 10.8954 3 12H5ZM1 16C3.20914 16 5 14.2091 5 12H3C3 13.1046 2.10457 14 1 14V16ZM2 18V15H0V18H2ZM3 19C2.44771 19 2 18.5523 2 18H0C0 19.6569 1.34315 21 3 21V19ZM21 19H3V21H21V19ZM22 18C22 18.5523 21.5523 19 21 19V21C22.6569 21 24 19.6569 24 18H22ZM22 6V18H24V6H22ZM21 5C21.5523 5 22 5.44772 22 6H24C24 4.34315 22.6569 3 21 3V5ZM3 5H21V3H3V5Z",fill:"#2670FF"}),Object(r.createElement)("path",{d:"M15 9L9 15",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M9 10C9.55228 10 10 9.55228 10 9C10 8.44772 9.55228 8 9 8C8.44772 8 8 8.44772 8 9C8 9.55228 8.44772 10 9 10Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M15 16C15.5523 16 16 15.5523 16 15C16 14.4477 15.5523 14 15 14C14.4477 14 14 14.4477 14 15C14 15.5523 14.4477 16 15 16Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),O=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M18.5 23C21.5376 23 24 20.5376 24 17.5C24 14.4624 21.5376 12 18.5 12C15.4624 12 13 14.4624 13 17.5C13 20.5376 15.4624 23 18.5 23Z",fill:"#2670FF"}),Object(r.createElement)("path",{d:"M21 9V20H3V9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20 4H4C2.89543 4 2 4.89543 2 6V8C2 8.55228 2.44772 9 3 9H21C21.5523 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M20.5 15.5L16.5 19.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M16.5 15.5L20.5 19.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M5.5 23C8.53757 23 11 20.5376 11 17.5C11 14.4624 8.53757 12 5.5 12C2.46243 12 0 14.4624 0 17.5C0 20.5376 2.46243 23 5.5 23Z",fill:"#2670FF"}),Object(r.createElement)("path",{d:"M8 16L4.5625 19L3 17.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),k=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3 9H21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3 15H21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M9 10L9 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M15 10L15 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),w=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("line",{x1:"6",y1:"6",x2:"8",y2:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("line",{x1:"16",y1:"6",x2:"18",y2:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(r.createElement)("path",{d:"M2 9H20C21.1046 9 22 9.89543 22 11V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19V9Z",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("path",{d:"M2 5C2 3.89543 2.89543 3 4 3H10C11.1046 3 12 3.89543 12 5V9H2V5Z",stroke:"#2670FF",strokeWidth:"2"}))),C=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{x:"1",y:"5",width:"23",height:"14",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("rect",{x:"20",y:"9",width:"4",height:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("rect",{x:"1",y:"9",width:"4",height:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"13",y1:"5",x2:"13",y2:"11",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("line",{x1:"13",y1:"12",x2:"13",y2:"18",stroke:"#2670FF",strokeWidth:"2"}),Object(r.createElement)("circle",{cx:"13",cy:"12",r:"1",stroke:"#2670FF",strokeWidth:"2"}))),_=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M10 3H3V10H10V3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21 3H14V10H21V3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M21 14H14V21H21V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M10 14H3V21H10V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),E=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M8.04346 6H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8.04346 12H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M8.04346 18H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3.04346 6H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3.04346 12H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{d:"M3.04346 18H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),x=()=>Object(r.createElement)("div",{className:"affiliate-main-icon"},Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M1 5V4C0.447715 4 0 4.44772 0 5H1ZM1 19H0C0 19.5523 0.447715 20 1 20L1 19ZM7 4C6.44772 4 6 4.44772 6 5C6 5.55228 6.44772 6 7 6V4ZM3 6C3.55228 6 4 5.55228 4 5C4 4.44772 3.55228 4 3 4V6ZM0 6.75C0 7.30228 0.447715 7.75 1 7.75C1.55228 7.75 2 7.30228 2 6.75H0ZM2 10.25C2 9.69772 1.55228 9.25 1 9.25C0.447715 9.25 0 9.69772 0 10.25H2ZM0 13.75C0 14.3023 0.447715 14.75 1 14.75C1.55228 14.75 2 14.3023 2 13.75H0ZM2 17.25C2 16.6977 1.55228 16.25 1 16.25C0.447715 16.25 0 16.6977 0 17.25H2ZM3 20C3.55228 20 4 19.5523 4 19C4 18.4477 3.55228 18 3 18V20ZM7 18C6.44772 18 6 18.4477 6 19C6 19.5523 6.44772 20 7 20V18ZM9 4H7V6H9V4ZM3 4H1V6H3V4ZM0 5V6.75H2V5H0ZM0 10.25V13.75H2V10.25H0ZM0 17.25V19H2V17.25H0ZM1 20H3V18H1V20ZM7 20H9V18H7V20Z",fill:"#2670FF"}),Object(r.createElement)("rect",{x:"12",y:"5",width:"11",height:"14",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(r.createElement)("line",{x1:"12",y1:"3",x2:"12",y2:"21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"})))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),i=n.n(r),o=n(14),a=n.n(o),s=n(0),c=n(5),l=n.n(c);const u=(e,t)=>{"function"==typeof e?e(t):e.current=t};class d extends s.Component{constructor(...e){super(...e),a()(this,"childNode",Object(s.createRef)()),a()(this,"checkIsInside",e=>[this.childNode,...this.props.additionalRefs||[]].reduce((t,n)=>t||(n&&n.current?n.current.contains(e.target):t),!1)),a()(this,"onMouseDown",e=>{const{useCapture:t}=this.props;this.checkIsInside(e)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),document.addEventListener("mouseup",this.onMouseUp,t),this.removeMouseUp=()=>{document.removeEventListener("mouseup",this.onMouseUp,t)})}),a()(this,"onMouseUp",e=>{const{onOutsideClick:t}=this.props;this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.checkIsInside(e)||t(e)}),a()(this,"setChildNodeRef",e=>{this.props.wrapperProps&&this.props.wrapperProps.ref&&u(this.props.wrapperProps.ref,e),u(this.childNode,e)})}componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}UNSAFE_componentWillReceiveProps({disabled:e,useCapture:t}){const{disabled:n}=this.props;n!==e&&(e?this.removeEventListeners():this.addMouseDownEventListener(t))}componentWillUnmount(){this.removeEventListeners()}addMouseDownEventListener(e){document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=()=>{document.removeEventListener("mousedown",this.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:n,wrapperProps:r}=this.props;return Object(s.createElement)("div",i()({className:l()(n)},r||{},{ref:this.setChildNodeRef}),e)}}d.defaultProps={disabled:!1,useCapture:!0,display:"block"}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c}));const r=e=>"System Default"===e?"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'":e.replace("ct_typekit_",""),i=(e,t)=>{let n=((e,t)=>Object.values(t).find(t=>t.families.map(({family:e})=>e).indexOf(e)>-1))(e,t);return n?n.families.find(({family:t})=>t===e):null},o=(e,t)=>e.all_variations.indexOf(t.variation)>-1?t.variation:e.all_variations.indexOf("n4")>-1?"n4":e.all_variations[0],a=e=>({n1:"100",i1:"100",n2:"200",i2:"200",n3:"300",i3:"300",n4:"400",i4:"400",n5:"500",i5:"500",n6:"600",i6:"600",n7:"700",i7:"700",n8:"800",i8:"800",n9:"900",i9:"900",Default:"Default"}[e]),s=e=>({n1:"Thin 100",i1:"Thin 100 Italic",n2:"Extra-Light 200",i2:"Extra-Light 200 Italic",n3:"Light 300",i3:"Light 300 Italic",n4:"Regular",i4:"Regular 400 Italic",n5:"Medium 500",i5:"Medium 500 Italic",n6:"Semi-Bold 600",i6:"Semi-Bold 600 Italic",n7:"Bold 700",i7:"Bold 700 Italic",n8:"Extra-Bold 800",i8:"Extra-Bold 800 Italic",n9:"Ultra-Bold 900",i9:"Ultra-Bold 900 Italic",Default:"Default Weight"}[e]),c=e=>0===e.indexOf("ct_font")?e.replace("ct_font_","").replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_","")):0===e.indexOf("ct_typekit")?e.replace("ct_typekit_","").replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-"," ").replace("_"," ")):e},function(e,t,n){"use strict";function r(e,t,n=!1,r=""){var i="",o="",a="";for(var s in"tablet"==r?i="1024":"mobile"==r&&(i="767"),e){var c=e[s],l="";for(var u in c){var d=!0;"string"==typeof c[u]&&0===c[u].length&&(d=!1),"font-family"===u&&void 0!==c[u]&&"Default"===c[u]||void 0!==c[u]&&d&&(l+="font-family"===u?u+": '"+c[u]+"';":u+": "+c[u]+";")}0!==l.length&&(o+=t,o+=s+"{",o+=l,o+="}")}return n&&void 0!==o&&0!==o.length&&(a+="@media only screen and (max-width: "+i+"px) {",a+=o,a+="}"),n?a:o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"animated",(function(){return w}));var r=n(29);n.o(r,"Transition")&&n.d(t,"Transition",(function(){return r.Transition}));var i=n(32),o=n(2),a=n(12);function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const c=["style","children","scrollTop","scrollLeft"],l=/^--/;function u(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||l.test(e)||f.hasOwnProperty(e)&&f[e]?(""+t).trim():t+"px"}const d={};let f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const p=["Webkit","Ms","Moz","O"];f=Object.keys(f).reduce((e,t)=>(p.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),f);const h=["x","y","z"],m=/^(matrix|translate|scale|rotate|skew)/,g=/^(translate)/,b=/^(rotate|skew)/,v=(e,t)=>o.s.num(e)&&0!==e?e+t:e,y=(e,t)=>o.s.arr(e)?e.every(e=>y(e,t)):o.s.num(e)?e===t:parseFloat(e)===t;class j extends a.a{constructor(e){let{x:t,y:n,z:r}=e,i=s(e,h);const a=[],c=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),c.push(e=>[`translate3d(${e.map(e=>v(e,"px")).join(",")})`,y(e,0)])),Object(o.l)(i,(e,t)=>{if("transform"===t)a.push([e||""]),c.push(e=>[e,""===e]);else if(m.test(t)){if(delete i[t],o.s.und(e))return;const n=g.test(t)?"px":b.test(t)?"deg":"";a.push(Object(o.y)(e)),c.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${v(i,n)})`,y(i,0)]:e=>[`${t}(${e.map(e=>v(e,n)).join(",")})`,y(e,t.startsWith("scale")?1:0)])}}),a.length&&(i.transform=new O(a,c)),super(i)}}class O extends o.a{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Object(o.k)(this.inputs,(n,r)=>{const i=Object(o.q)(n[0]),[a,s]=this.transforms[r](o.s.arr(i)?i:n.map(o.q));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){1==e&&Object(o.k)(this.inputs,e=>Object(o.k)(e,e=>Object(o.r)(e)&&Object(o.c)(e,this)))}observerRemoved(e){0==e&&Object(o.k)(this.inputs,e=>Object(o.k)(e,e=>Object(o.r)(e)&&Object(o.x)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Object(o.d)(this,e)}}const k=["scrollTop","scrollLeft"];r.Globals.assign({batchedUpdates:i.unstable_batchedUpdates,createStringInterpolator:o.g,colors:o.e});const w=Object(a.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:f}=r,p=s(r,c),h=Object.values(p),m=Object.keys(p).map(t=>n||e.hasAttribute(t)?t:d[t]||(d[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=u(t,i[t]);l.test(t)?e.style.setProperty(t,n):e.style[t]=n}m.forEach((t,n)=>{e.setAttribute(t,h[n])}),void 0!==a&&(e.scrollTop=a),void 0!==f&&(e.scrollLeft=f)},createAnimatedStyle:e=>new j(e),getComponentProps:e=>s(e,k)}).animated},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function e(t,n,r){var i=(t="string"==typeof t?t.split("/"):[t]).shift();return void 0===n[i]?r:t.length?e(t=t.join("/"),n[i],r):n[i]},a=function(e){return"string"==typeof e&&(e=e.split("/")),e.length>1&&e.pop(),e},s=function(e){return e.all||e.any||(e={all:e}),e},c=function e(t,n){var s=Object.values(t)[0],c=function(e){return!(e.length>4)&&(0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all")},l=Object.keys(s).map((function(t,l){var u=Object.values(s)[l];return"all"===c(t)||"any"===c(t)?e(r({},t,u),n):function(e,t,n){var s=function(e,t){var n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return o(e,n)};if(e.indexOf(":")>-1){var s=null;if(function(e){var c,l=(c=e,Array.isArray(c)?c:Array.from(c)),u=l[0],d=l.slice(1);if("visibility"===(d=d.join(":"))&&(s=n(u,i({},t,r({},a(u),o(a(u),t)[t.wp_customizer_current_view]?"yes":"no")))),"responsive"===d&&(s=n(u,i({},t,r({},a(u),o(a(u),t)[t.wp_customizer_current_view]||o(a(u),t))))),"truthy"===d&&(s=n(u)?"yes":"no"),d.indexOf("array-ids:")>-1){var f=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,i=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(d.split(":"),3),p=(f[0],f[1]),h=f[2],m=n(u).find((function(e){return e.id===p}));s=m&&o(h,m)||"no"}if(d.indexOf("json:")>-1&&(s=n(u+"/"+d.split(":")[1]).toString()),"array_length"===d){var g=n(u);s=(g||[]).length.toString()}if(!s)throw new Error("Unknown matcher received. Please verify for typos. The received matcher: "+d+".")}(e.split(":")),s)return s;e=e.split(":")[0]}var c=n(e);return!!c&&(c.desktop?c:c.toString())}(t,n);if(e&&e.toString()&&0===e.toString().indexOf("~")){var c=e.replace("~","");return s.desktop?s.desktop===c||s.tablet===c||s.mobile===c:s===c}return s=s.toString(),e=e.toString(),!!s&&(e.indexOf("|")>-1?0===e.indexOf("!")?-1===e.substring(1).split("|").map((function(e){return e.trim()})).includes(s.trim()):e.split("|").map((function(e){return e.trim()})).indexOf(s.trim())>-1:0===e.indexOf("!")?s!==e.substring(1).trim():0===e.indexOf("*")?s.indexOf(e.trim().substring(1).trim())>-1:s===e.trim())}(u,t,n)}));return"all"===c(Object.keys(t)[0])?l.every((function(e){return!!e})):"any"===c(Object.keys(t)[0])?l.some((function(e){return!!e})):void 0}},function(e,t,n){"use strict";var r=n(0);t.a=({contentRef:e,shouldCalculate:t=!0,ref:n,defaultHeight:i=0}={})=>{const o=Object(r.useRef)(),[a,s]=Object(r.useState)(null),c=()=>{t&&s(Math.random())},l=t=>{let n=e||o;n&&n.current&&!n.current.contains(t.target)&&c()};Object(r.useEffect)(()=>{let t;return setTimeout(()=>{c()},500),window.addEventListener("resize",c),window.addEventListener("scroll",l,!0),n.current&&(t=new window.ResizeObserver(c),t.observe(n.current,{attributes:!0}),n.current.closest(".ct-tabs-scroll")&&t.observe(n.current.closest(".ct-tabs-scroll"),{attributes:!0}),n.current.closest(".customize-pane-child")&&t.observe(n.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:o.current)&&(t||(t=new window.ResizeObserver(c)),t.observe(e?e.current:o.current,{attributes:!0})),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",l,!0),t&&t.disconnect()}},[t,o.current,e,n.current]);let{right:u,yOffset:d,position:f,otherStyles:p}=Object(r.useMemo)(()=>{let r=0,a=0,s="bottom",c={};if(!t)return{yOffset:a,right:r,position:s};if(n.current){let t=n.current.getBoundingClientRect(),l=n.current.closest(".ct-select-input")?n.current.closest(".ct-select-input"):n.current,u=getComputedStyle(l,":before").content;if(a=t.top+t.height,r=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(r=t.left),u.indexOf("ref-width")>-1){let e=t.width;if(u.indexOf("left")>-1&&l.previousElementSibling&&(e=document.body.classList.contains("rtl")?l.previousElementSibling.getBoundingClientRect().right-t.left:t.right-l.previousElementSibling.getBoundingClientRect().left),u.indexOf("right")>-1){let n=l.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(r=n.left,e=t.right-n.left):(r=window.innerWidth-n.right,e=n.right-t.left)}c["--x-select-dropdown-width"]=e+"px"}let d=e&&e.current||o.current?function(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),o=(e=>window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e)))(e);if(6==o.length){const e=o;let a=e[0]*e[3]-e[1]*e[2];return{width:r/e[0],height:i/e[3],left:(n*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/a,top:(-n*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/a}}return{top:t,left:n,width:r,height:i}}(e?e.current:o.current):{height:i};a+d.height>window.innerHeight&&t.top-15>d.height&&(s="top",a=window.innerHeight-t.bottom+t.height)}return{yOffset:a,right:r,position:s,otherStyles:c}},[a,t,n,n.current,e,o.current,i]);return{refreshPopover:c,styles:{"--modal-y-offset":d+"px","--modal-x-offset":u+"px",...p},position:f,popoverProps:{ref:e||o,...f?{"data-position":f}:{}}}}},function(e,t){e.exports=window.wp.components},function(e,t,n){"use strict";var r=n(0),i=n(23),o=n(5),a=n.n(o);t.a=({value:e,onChange:t})=>{let n=i.GradientPicker||i.__experimentalGradientPicker;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n,{value:e.gradient||"",onChange:n=>{t({...e,gradient:n})}}),Object(r.createElement)("ul",{className:"ct-gradient-swatches"},[{name:"Vivid cyan blue to vivid purple",gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:"Light green cyan to vivid green cyan",gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:"Luminous vivid amber to luminous vivid orange",gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:"Luminous vivid orange to vivid red",gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:"Very light gray to cyan bluish gray",gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"}].map(({gradient:n,slug:i})=>Object(r.createElement)("li",{onClick:()=>{t({...e,gradient:e.gradient===n?"":n})},className:a()({active:n===e.gradient}),style:{"--background-image":n},key:i}))))}},function(e,t){var n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function o(e){return 3*e}function a(e,t,n){return((r(t,n)*e+i(t,n))*e+o(t))*e}function s(e,t,n){return 3*r(t,n)*e*e+2*i(t,n)*e+o(t)}function c(e){return e}e.exports=function(e,t,r,i){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&r===i)return c;for(var o=n?new Float32Array(11):new Array(11),l=0;l<11;++l)o[l]=a(.1*l,e,r);return function(n){return 0===n?0:1===n?1:a(function(t){for(var n=0,i=1;10!==i&&o[i]<=t;++i)n+=.1;--i;var c=n+(t-o[i])/(o[i+1]-o[i])*.1,l=s(c,e,r);return l>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=s(t,n,r);if(0===o)return t;t-=(a(t,n,r)-e)/o}return t}(t,c,e,r):0===l?c:function(e,t,n,r,i){var o,s,c=0;do{(o=a(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(o)>1e-7&&++c<10);return s}(t,n,n+.1,e,r)}(n),t,i)}}},function(e,t,n){"use strict";var r=n(0);t.a=({value:e,label:t,icons:n,enableSearch:i,onChange:o})=>{const[a,s]=Object(r.useState)(""),[c,l]=Object(r.useState)(n||[]);return Object(r.useEffect)(()=>{if(i&&a.length>=2){const e=n.filter(e=>-1!==e.name.toLowerCase().search(a.toLowerCase()));l(e)}else l(n)},[a]),Object(r.createElement)("div",{className:"affiliatex-field affiliatex-field-icon-list affiliatex-field-icon-list-selector"},t&&Object(r.createElement)("label",null,t),Object(r.createElement)("div",{className:"affiliatex-icon-list-wrapper"},i&&Object(r.createElement)("input",{type:"text",value:a,placeholder:"Search...",onChange:e=>s(e.target.value),autoComplete:"off"}),Object(r.createElement)("div",{className:"affiliatex-icon-list-icons"},c.map(t=>Object(r.createElement)("span",{className:e==t?"affiliatex-active":"",onClick:()=>o(t)},Object(r.createElement)("span",{className:t.value}))))))}},function(e,t,n){"use strict";var r=n(0),i=n(11),o=n.n(i),a=n(23),s=({onChange:e,value:t,value:{color:n}})=>Object(r.createElement)("div",null,Object(r.createElement)(a.ColorPicker,{color:n,enableAlpha:!0,onChangeComplete:r=>{r.rgb?e({...t,color:1===r.rgb.a?r.hex:`rgba(${r.rgb.r}, ${r.rgb.g}, ${r.rgb.b}, ${r.rgb.a})`}):e({...t,color:1===n.getAlpha()?hex:n.toRgbString()})}})),c=n(5),l=n.n(c),u=(n(1),n(22));const d=e=>e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE";var f=({containerRef:e,el:t,value:n,picker:i,onChange:a,option:c,style:u,wrapperProps:f={},inline_modal:p,appendToBody:h})=>{const m=Object(r.useMemo)(()=>n.color===d(c)?{color:"",key:"empty"}:{key:"color",color:n.color},[n,c,i]),g=Object(r.useMemo)(()=>f.ref&&f.ref.current&&t&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(f.ref.current,t.current),[f.ref&&f.ref.current,t&&t.current]);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",o()({tabIndex:"0",className:l()("app-color-picker-modal",{"app-option-modal":!p&&h},c.modalClassName),style:{...g,...u||{}}},f),Object(r.createElement)(s,{key:m.key,onChange:e=>a(e),value:{...n,color:m.color}})))},p=n(31),h=n(25),m=n.n(h);t.a=({option:e,value:t,onChange:n,picker:i,onPickingChange:o,stopTransitioning:a,innerRef:s,containerRef:c,modalRef:h,isTransitioning:g,isPicking:b})=>{const v=Object(r.useRef)(),{appendToBody:y=!0}=e,{refreshPopover:j,styles:O,popoverProps:k}=Object(u.a)({contentRef:h,ref:c||{},defaultHeight:379,shouldCalculate:!e.inline_modal||y});if(e.inline_modal)return Object(r.createElement)(f,{containerRef:c,option:e,onChange:n,picker:i,value:t,inline_modal:!!e.inline_modal});let w=null;return g!==i.id&&(b||"").split(":")[0]!==i.id||(w=Object(r.createPortal)(Object(r.createElement)(p.a,{items:b,onRest:()=>a(),config:{duration:100,easing:m()(.25,.1,.25,1)},from:-1===(b||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(b||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(b||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},o=>(o||"").split(":")[0]===i.id&&(o=>Object(r.createElement)(f,{style:{...o,...y?O:{}},option:e,onChange:n,picker:i,value:t,el:v,wrapperProps:y?k:{ref:h},appendToBody:y}))),y?document.body:v.current.closest("section").parentNode)),Object(r.createElement)("div",{ref:e=>{v.current=e,s&&(s.current=e)},className:l()("app-color-picker-single",{"ct-no-color":(t||{}).color===d(e)})},Object(r.createElement)("span",{tabIndex:"0"},Object(r.createElement)("span",{tabIndex:"0",onClick:e=>{e.stopPropagation(),j();let t=b?b.split(":")[0]===i.id?null:`${i.id}:${b.split(":")[0]}`:i.id;o(t)},style:{background:(t||{}).color}},Object(r.createElement)("i",{className:"affiliate-blocks-tooltip-top"},i.title))),w)}},,function(e,t,n){"use strict";n.d(t,"Transition",(function(){return ge}));var r=n(2);n.d(t,"Globals",(function(){return r.b}));var i=n(4),o=n(12);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,...t){return r.s.fun(e)?e(...t):e}n(42),n(43);const c=(e,t)=>!0===e||!!(t&&e&&(r.s.fun(e)?e(t):Object(r.y)(e).includes(t))),l=(e,t)=>r.s.obj(e)?t&&e[t]:e,u=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,d=e=>e,f=(e,t=d)=>{let n=p;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const i={};for(const o of n){const n=t(e[o],o);r.s.und(n)||(i[o]=n)}return i},p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],h={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function m(e){const t=function(e){const t={};let n=0;if(Object(r.l)(e,(e,r)=>{h[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Object(r.l)(e,(e,r)=>r in t||(n[r]=e)),n}return a({},e)}function g(e){return e=Object(r.q)(e),r.s.arr(e)?e.map(g):Object(r.t)(e)?r.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function b(e){for(const t in e)return!0;return!1}function v(e){return r.s.fun(e)||r.s.arr(e)&&r.s.obj(e[0])}function y(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function j(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const O=a({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class k{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,O)}}function w(e,t){if(r.s.und(t.decay)){const n=!r.s.und(t.tension)||!r.s.und(t.friction);!n&&r.s.und(t.frequency)&&r.s.und(t.damping)&&r.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const C=[];class _{constructor(){this.changed=!1,this.values=C,this.toValues=null,this.fromValues=C,this.to=void 0,this.from=void 0,this.config=new k,this.immediate=!1}}function E(e,{key:t,props:n,defaultProps:i,state:o,actions:l}){return new Promise((u,d)=>{var f;let p,h,m=c(null!=(f=n.cancel)?f:null==i?void 0:i.cancel,t);if(m)v();else{r.s.und(n.pause)||(o.paused=c(n.pause,t));let e=null==i?void 0:i.pause;!0!==e&&(e=o.paused||c(e,t)),p=s(n.delay||0,t),e?(o.resumeQueue.add(b),l.pause()):(l.resume(),b())}function g(){o.resumeQueue.add(b),o.timeouts.delete(h),h.cancel(),p=h.time-r.w.now()}function b(){p>0?(h=r.w.setTimeout(v,p),o.pauseQueue.add(g),o.timeouts.add(h)):v()}function v(){o.pauseQueue.delete(g),o.timeouts.delete(h),e<=(o.cancelId||0)&&(m=!0);try{l.start(a({},n,{callId:e,cancel:m}),u)}catch(e){d(e)}}})}const x=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?F(e.get()):t.every(e=>e.noop)?S(e.get()):L(e.get(),t.every(e=>e.finished)),S=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),L=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),F=e=>({value:e,cancelled:!0,finished:!1});function M(e,t,n,i){const{callId:o,parentId:s,onRest:c}=t,{asyncTo:l,promise:u}=n;return s||e!==l||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const d=f(t,(e,t)=>"onRest"===t?void 0:e);let p,h;const m=new Promise((e,t)=>(p=e,h=t)),g=e=>{const t=o<=(n.cancelId||0)&&F(i)||o!==n.asyncId&&L(i,!1);if(t)throw e.result=t,h(e),e},b=(e,t)=>{const s=new A,c=new R;return(async()=>{if(r.b.skipAnimation)throw P(n),c.result=L(i,!1),h(c),c;g(s);const l=r.s.obj(e)?a({},e):a({},t,{to:e});l.parentId=o,Object(r.l)(d,(e,t)=>{r.s.und(l[t])&&(l[t]=e)});const u=await i.start(l);return g(s),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let v;if(r.b.skipAnimation)return P(n),L(i,!1);try{let t;t=r.s.arr(e)?(async e=>{for(const t of e)await b(t)})(e):Promise.resolve(e(b,i.stop.bind(i))),await Promise.all([t.then(p),m]),v=L(i.get(),!0,!1)}catch(e){if(e instanceof A)v=e.result;else{if(!(e instanceof R))throw e;v=e.result}}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?u:void 0)}return r.s.fun(c)&&r.w.batchedUpdates(()=>{c(v,i,i.item)}),v})():u}function P(e,t){Object(r.m)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class A extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class R extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const V=e=>e instanceof T;let I=1;class T extends r.a{constructor(...e){super(...e),this.id=I++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Object(o.e)(this);return e&&e.getValue()}to(...e){return r.b.to(this,e)}interpolate(...e){return Object(r.j)(),r.b.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Object(r.d)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||r.o.sort(this),Object(r.d)(this,{type:"priority",parent:this,priority:e})}}const N=Symbol.for("SpringPhase"),z=e=>(1&e[N])>0,D=e=>(2&e[N])>0,W=e=>(4&e[N])>0,H=(e,t)=>t?e[N]|=3:e[N]&=-3,B=(e,t)=>t?e[N]|=4:e[N]&=-5;class U extends T{constructor(e,t){if(super(),this.key=void 0,this.animation=new _,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!r.s.und(e)||!r.s.und(t)){const n=r.s.obj(e)?a({},e):a({},t,{from:e});r.s.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(D(this)||this._state.asyncTo)||W(this)}get goal(){return Object(r.q)(this.animation.to)}get velocity(){const e=Object(o.e)(this);return e instanceof o.c?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return z(this)}get isAnimating(){return D(this)}get isPaused(){return W(this)}advance(e){let t=!0,n=!1;const i=this.animation;let{config:a,toValues:s}=i;const c=Object(o.g)(i.to);!c&&Object(r.r)(i.to)&&(s=Object(r.y)(Object(r.q)(i.to))),i.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==o.b?1:c?c[u].lastPosition:s[u];let f=i.immediate,p=d;if(!f){if(p=l.lastPosition,a.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=i.fromValues[u],o=null!=l.v0?l.v0:l.v0=r.s.arr(a.velocity)?a.velocity[u]:a.velocity;let s;if(r.s.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);p=n+o/(1-e)*(1-r),f=Math.abs(l.lastPosition-p)<.1,s=o*r}else{s=null==l.lastVelocity?o:l.lastVelocity;const t=a.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n))),i=a.restVelocity||t/10,c=a.clamp?0:a.bounce,u=!r.s.und(c),h=n==d?l.v0>0:n<d;let m,g=!1;const b=1,v=Math.ceil(e/b);for(let e=0;e<v&&(m=Math.abs(s)>i,m||(f=Math.abs(d-p)<=t,!f));++e)u&&(g=p==d||p>d==h,g&&(s=-s*c,p=d)),s+=(1e-6*-a.tension*(p-d)+.001*-a.friction*s)/a.mass*b,p+=s*b}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),p=n+a.easing(r)*(d-n),s=(p-l.lastPosition)/e,f=1==r}l.lastVelocity=s,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}c&&!c[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(p,a.round)&&(n=!0)});const l=Object(o.e)(this),u=l.getValue();if(t){const e=Object(r.q)(i.to);u===e&&!n||a.decay?n&&a.decay&&this._onChange(u):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return r.w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(D(this)){const{to:e,config:t}=this.animation;r.w.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return r.s.und(e)?(n=this.queue||[],this.queue=[]):n=[r.s.obj(e)?e:a({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>x(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),P(this._state,e&&this._lastCallId),r.w.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:i}=e;n=r.s.obj(n)?n[t]:n,(null==n||v(n))&&(n=void 0),i=r.s.obj(i)?i[t]:i,null==i&&(i=void 0);const a={to:n,from:i};return z(this)||(e.reverse&&([n,i]=[i,n]),i=Object(r.q)(i),r.s.und(i)?Object(o.e)(this)||this._set(n):this._set(i)),a}_update(e,t){let n=a({},e);const{key:i,defaultProps:o}=this;n.default&&Object.assign(o,f(n,(e,t)=>/^on/.test(t)?l(e,i):e)),Q(this,n,"onProps"),X(this,"onProps",n,this);const s=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const c=this._state;return E(++this._lastCallId,{key:i,props:n,defaultProps:o,state:c,actions:{pause:()=>{W(this)||(B(this,!0),Object(r.n)(c.pauseQueue),X(this,"onPause",L(this,q(this,this.animation.to)),this))},resume:()=>{W(this)&&(B(this,!1),D(this)&&this._resume(),Object(r.n)(c.resumeQueue),X(this,"onResume",L(this,q(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=Z(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(F(this));const i=!r.s.und(e.to),l=!r.s.und(e.from);if(i||l){if(!(t.callId>this._lastToId))return n(F(this));this._lastToId=t.callId}const{key:u,defaultProps:d,animation:f}=this,{to:p,from:h}=f;let{to:m=p,from:b=h}=e;!l||i||t.default&&!r.s.und(m)||(m=b),t.reverse&&([m,b]=[b,m]);const y=!Object(r.u)(b,h);y&&(f.from=b),b=Object(r.q)(b);const j=!Object(r.u)(m,p);j&&this._focus(m);const k=v(t.to),{config:C}=f,{decay:_,velocity:E}=C;(i||l)&&(C.velocity=0),t.config&&!k&&function(e,t,n){n&&(w(n=a({},n),t),t=a({},n,t)),w(e,t),Object.assign(e,t);for(const t in O)null==e[t]&&(e[t]=O[t]);let{mass:i,frequency:o,damping:s}=e;r.s.und(o)||(o<.01&&(o=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/o,2)*i,e.friction=4*Math.PI*s*i/o)}(C,s(t.config,u),t.config!==d.config?s(d.config,u):void 0);let x=Object(o.e)(this);if(!x||r.s.und(m))return n(L(this,!0));const P=r.s.und(t.reset)?l&&!t.default:!r.s.und(b)&&c(t.reset,u),A=P?b:this.get(),R=g(m),V=r.s.num(R)||r.s.arr(R)||Object(r.t)(R),I=!k&&(!V||c(d.immediate||t.immediate,u));if(j){const e=Object(o.f)(m);if(e!==x.constructor){if(!I)throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`);x=this._set(R)}}const T=x.constructor;let N=Object(r.r)(m),W=!1;if(!N){const e=P||!z(this)&&y;(j||e)&&(W=Object(r.u)(g(A),R),N=!W),(Object(r.u)(f.immediate,I)||I)&&Object(r.u)(C.decay,_)&&Object(r.u)(C.velocity,E)||(N=!0)}if(W&&D(this)&&(f.changed&&!P?N=!0:N||this._stop(p)),!k&&((N||Object(r.r)(p))&&(f.values=x.getPayload(),f.toValues=Object(r.r)(m)?null:T==o.b?[1]:Object(r.y)(R)),f.immediate!=I&&(f.immediate=I,I||P||this._set(p)),N)){const{onRest:e}=f;Object(r.k)(G,e=>Q(this,t,e));const i=L(this,q(this,p));Object(r.n)(this._pendingCalls,i),this._pendingCalls.add(n),f.changed&&r.w.batchedUpdates(()=>{f.changed=!P,null==e||e(i,this),P?s(d.onRest,i):null==f.onStart||f.onStart(i,this)})}P&&this._set(A),k?n(M(t.to,t,this._state,this)):N?this._start():D(this)&&!j?this._pendingCalls.add(n):n(S(A))}_focus(e){const t=this.animation;e!==t.to&&(Object(r.p)(this)&&this._detach(),t.to=e,Object(r.p)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Object(r.r)(t)&&(Object(r.c)(t,this),V(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Object(r.r)(e)&&Object(r.x)(e,this)}_set(e,t=!0){const n=Object(r.q)(e);if(!r.s.und(n)){const e=Object(o.e)(this);if(!e||!Object(r.u)(n,e.getValue())){const i=Object(o.f)(n);e&&e.constructor==i?e.setValue(n):Object(o.h)(this,i.create(n)),e&&r.w.batchedUpdates(()=>{this._onChange(n,t)})}}return Object(o.e)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,X(this,"onStart",L(this,q(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),s(this.animation.onChange,e,this)),s(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Object(o.e)(this).reset(Object(r.q)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),D(this)||(H(this,!0),W(this)||this._resume())}_resume(){r.b.skipAnimation?this.finish():r.o.start(this)}_stop(e,t){if(D(this)){H(this,!1);const n=this.animation;Object(r.k)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(r.d)(this,{type:"idle",parent:this});const i=t?F(this.get()):L(this.get(),q(this,null!=e?e:n.to));Object(r.n)(this._pendingCalls,i),n.changed&&(n.changed=!1,X(this,"onRest",i,this))}}}function q(e,t){const n=g(t),i=g(e.get());return Object(r.u)(i,n)}function Z(e,t=e.loop,n=e.to){let r=s(t);if(r){const i=!0!==r&&m(r),o=(i||e).reverse,s=!i||i.reset;return $(a({},e,{loop:t,default:!1,pause:void 0,to:!o||v(n)?n:void 0,from:s?e.from:void 0,reset:s},i))}}function $(e){const{to:t,from:n}=e=m(e),i=new Set;return r.s.obj(t)&&K(t,i),r.s.obj(n)&&K(n,i),e.keys=i.size?Array.from(i):null,e}function K(e,t){Object(r.l)(e,(e,n)=>null!=e&&t.add(n))}const G=["onStart","onRest","onChange","onPause","onResume"];function Q(e,t,n){e.animation[n]=t[n]!==u(t,n)?l(t[n],e.key):void 0}function X(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const J=["onStart","onChange","onRest"];let Y=1;class ee{constructor(e,t){this.id=Y++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(a({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];r.s.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push($(e)),this}start(e){let{queue:t}=this;return e?t=Object(r.y)(e).map($):this.queue=[],this._flush?this._flush(this,t):(ie(this,t),function(e,t){return Promise.all(t.map(t=>async function e(t,n,i){const{keys:o,to:a,from:s,loop:c,onRest:l,onResolve:d}=n,f=r.s.obj(n.default)&&n.default;c&&(n.loop=!1),!1===a&&(n.to=null),!1===s&&(n.from=null);const p=r.s.arr(a)||r.s.fun(a)?a:void 0;p?(n.to=void 0,n.onRest=void 0,f&&(f.onRest=void 0)):Object(r.k)(J,e=>{const i=n[e];if(r.s.fun(i)){const r=t._events[e];n[e]=({finished:e,cancelled:t})=>{const n=r.get(i);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(i,{value:null,finished:e||!1,cancelled:t||!1})},f&&(f[e]=n[e])}});const h=t._state;n.pause===!h.paused?(h.paused=n.pause,Object(r.n)(n.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(n.pause=!0);const m=(o||Object.keys(t.springs)).map(e=>t.springs[e].start(n)),g=!0===n.cancel||!0===u(n,"cancel");(p||g&&h.asyncId)&&m.push(E(++t._lastAsyncId,{props:n,state:h,actions:{pause:r.v,resume:r.v,start(e,n){g?(P(h,t._lastAsyncId),n(F(t))):(e.onRest=l,n(M(p,e,h,t)))}}})),h.paused&&await new Promise(e=>{h.resumeQueue.add(e)});const b=x(t,await Promise.all(m));if(c&&b.finished&&(!i||!b.noop)){const r=Z(n,c,a);if(r)return ie(t,[r]),e(t,r,!0)}return d&&r.w.batchedUpdates(()=>d(b,t,t.item)),b}(e,t))).then(t=>x(e,t))}(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Object(r.k)(Object(r.y)(t),t=>n[t].stop(!!e))}else P(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(r.s.und(e))this.start({pause:!0});else{const t=this.springs;Object(r.k)(Object(r.y)(e),e=>t[e].pause())}return this}resume(e){if(r.s.und(e))this.start({pause:!1});else{const t=this.springs;Object(r.k)(Object(r.y)(e),e=>t[e].resume())}return this}each(e){Object(r.l)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,Object(r.m)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const a=!i&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&Object(r.m)(t,([e,t])=>{t.value=s,e(t,this,this._item)}),a&&(this._started=!1,Object(r.m)(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}r.w.onFrame(this._onFrame)}}function te(e,t){const n=a({},e.springs);return t&&Object(r.k)(Object(r.y)(t),e=>{r.s.und(e.keys)&&(e=$(e)),r.s.obj(e.to)||(e=a({},e,{to:void 0})),re(n,e,e=>ne(e))}),function(e,t){Object(r.l)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Object(r.c)(t,e))})}(e,n),n}function ne(e,t){const n=new U;return n.key=e,t&&Object(r.c)(n,t),n}function re(e,t,n){t.keys&&Object(r.k)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ie(e,t){Object(r.k)(t,t=>{re(e.springs,t,t=>ne(t,e))})}function oe(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const ae=["children"],se=e=>{let{children:t}=e,n=oe(e,ae);const o=Object(i.useContext)(ce),a=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=Object(r.B)(()=>({pause:a,immediate:s}),[a,s]);const{Provider:c}=ce;return i.createElement(c,{value:n},t)},ce=(le=se,ue={},Object.assign(le,i.createContext(ue)),le.Provider._context=le,le.Consumer._context=le,le);var le,ue;se.Provider=ce.Provider,se.Consumer=ce.Consumer;const de=()=>{const e=[],t=function(t){Object(r.i)();const i=[];return Object(r.k)(e,(e,o)=>{if(r.s.und(t))i.push(e.start());else{const r=n(t,e,o);r&&i.push(e.start(r))}}),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Object(r.k)(e,e=>e.pause(...arguments)),this},t.resume=function(){return Object(r.k)(e,e=>e.resume(...arguments)),this},t.set=function(t){Object(r.k)(e,e=>e.set(t))},t.start=function(t){const n=[];return Object(r.k)(e,(e,i)=>{if(r.s.und(t))n.push(e.start());else{const r=this._getProps(t,e,i);r&&n.push(e.start(r))}}),n},t.stop=function(){return Object(r.k)(e,e=>e.stop(...arguments)),this},t.update=function(t){return Object(r.k)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return r.s.fun(e)?e(n,t):e};return t._getProps=n,t};let fe;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(fe||(fe={}));let pe=1;function he(e,{key:t,keys:n=t},i){if(null===n){const t=new Set;return e.map(e=>{const n=i&&i.find(n=>n.item===e&&n.phase!==fe.LEAVE&&!t.has(n));return n?(t.add(n),n.key):pe++})}return r.s.und(n)?e:r.s.fun(n)?e.map(n):Object(r.y)(n)}const me=["items","children"];function ge(e){let{items:t,children:n}=e;return function(e,t,n){const o=r.s.fun(t)&&t,{reset:c,sort:l,trail:u=0,expires:d=!0,onDestroyed:p,ref:h,config:g}=o?o():t,v=Object(i.useMemo)(()=>o||3==arguments.length?de():void 0,[]),O=Object(r.y)(e),k=[],w=Object(i.useRef)(null),C=c?null:w.current;Object(r.A)(()=>{w.current=k}),Object(r.C)(()=>()=>Object(r.k)(w.current,e=>{e.expired&&clearTimeout(e.expirationId),y(e.ctrl,v),e.ctrl.stop(!0)}));const _=he(O,o?o():t,C),E=c&&w.current||[];Object(r.A)(()=>Object(r.k)(E,({ctrl:e,item:t,key:n})=>{y(e,v),s(p,t,n)}));const x=[];if(C&&Object(r.k)(C,(e,t)=>{e.expired?(clearTimeout(e.expirationId),E.push(e)):~(t=x[t]=_.indexOf(e.key))&&(k[t]=e)}),Object(r.k)(O,(e,t)=>{k[t]||(k[t]={key:_[t],item:e,phase:fe.MOUNT,ctrl:new ee},k[t].ctrl.item=e)}),x.length){let e=-1;const{leave:n}=o?o():t;Object(r.k)(x,(t,r)=>{const i=C[r];~t?(e=k.indexOf(i),k[e]=a({},i,{item:O[t]})):n&&k.splice(++e,0,i)})}r.s.fun(l)&&k.sort((e,t)=>l(e.item,t.item));let S=-u;const L=Object(r.z)(),F=f(t),M=new Map;Object(r.k)(k,(e,n)=>{const i=e.key,c=e.phase,l=o?o():t;let f,p,b=s(l.delay||0,i);if(c==fe.MOUNT)f=l.enter,p=fe.ENTER;else{const e=_.indexOf(i)<0;if(c!=fe.LEAVE)if(e)f=l.leave,p=fe.LEAVE;else{if(!(f=l.update))return;p=fe.UPDATE}else{if(e)return;f=l.enter,p=fe.ENTER}}if(f=s(f,e.item,n),f=r.s.obj(f)?m(f):{to:f},!f.config){const t=g||F.config;f.config=s(t,e.item,n,p)}S+=u;const v=a({},F,{delay:b+S,ref:h,immediate:l.immediate,reset:!1},f);if(p==fe.ENTER&&r.s.und(v.from)){const i=o?o():t,a=r.s.und(i.initial)||C?i.from:i.initial;v.from=s(a,e.item,n)}const{onResolve:y}=v;v.onResolve=e=>{s(y,e);const t=w.current,n=t.find(e=>e.key===i);if(n&&(!e.cancelled||n.phase==fe.UPDATE)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if(n.phase==fe.LEAVE){const t=s(d,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(L,r)))}}e&&t.some(e=>e.expired)&&L()}};const j=te(e.ctrl,v);M.set(e,{phase:p,springs:j,payload:v})});const P=Object(i.useContext)(se),A=Object(r.D)(P),R=P!==A&&b(P);Object(r.A)(()=>{R&&Object(r.k)(k,e=>{e.ctrl.start({default:P})})},[P]),Object(r.A)(()=>{Object(r.k)(M,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,null==v||v.add(r),R&&e==fe.ENTER&&r.start({default:P}),t&&(j(r,t.ref),r.ref?r.update(t):r.start(t))})},c?void 0:n);const V=e=>i.createElement(i.Fragment,null,k.map((t,n)=>{const{springs:o}=M.get(t)||t.ctrl,s=e(a({},o),t.item,t,n);return s&&s.type?i.createElement(s.type,a({},s.props,{key:r.s.str(t.key)||r.s.num(t.key)?t.key:t.ctrl.id,ref:s.ref})):s}));return v?[V,v]:V}(t,oe(e,me))(n)}class be extends T{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Object(r.f)(...t);const n=this._get(),i=Object(o.f)(n);Object(o.h)(this,i.create(n))}advance(e){const t=this._get(),n=this.get();Object(r.u)(t,n)||(Object(o.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ye(this._active)&&je(this)}_get(){const e=r.s.arr(this.source)?this.source.map(r.q):Object(r.y)(Object(r.q)(this.source));return this.calc(...e)}_start(){this.idle&&!ye(this._active)&&(this.idle=!1,Object(r.k)(Object(o.g)(this),e=>{e.done=!1}),r.b.skipAnimation?(r.w.batchedUpdates(()=>this.advance()),je(this)):r.o.start(this))}_attach(){let e=1;Object(r.k)(Object(r.y)(this.source),t=>{Object(r.r)(t)&&Object(r.c)(t,this),V(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Object(r.k)(Object(r.y)(this.source),e=>{Object(r.r)(e)&&Object(r.x)(e,this)}),this._active.clear(),je(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(r.y)(this.source).reduce((e,t)=>Math.max(e,(V(t)?t.priority:0)+1),0))}}function ve(e){return!1!==e.idle}function ye(e){return!e.size||Array.from(e).every(ve)}function je(e){e.idle||(e.idle=!0,Object(r.k)(Object(o.g)(e),e=>{e.done=!0}),Object(r.d)(e,{type:"idle",parent:e}))}r.b.assign({createStringInterpolator:r.g,to:(e,t)=>new be(e,t)}),r.o.advance},function(e,t,n){"use strict";var r=n(0),i=n(27),o=n(17),a=n(21);t.a=({option:e,values:t,value:n,onChange:s})=>{const[{isPicking:c,isTransitioning:l},u]=Object(r.useState)({isPicking:null,isTransitioning:null}),d=Object(r.useRef)(),f=Object(r.useRef)();return Object(r.createElement)(o.a,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:d},className:"app-color-picker-container",additionalRefs:[f],onOutsideClick:()=>{u(({isPicking:e})=>({isPicking:null,isTransitioning:e}))}},e.pickers.filter(e=>!e.condition||Object(a.a)(Object(a.b)(e.condition),t)).map(t=>Object(r.createElement)(i.a,{containerRef:d,picker:t,key:t.id,option:e,isPicking:c,modalRef:f,isTransitioning:l,onPickingChange:e=>u({isTransitioning:t.id,isPicking:e}),stopTransitioning:()=>u(e=>({...e,isTransitioning:!1})),onChange:e=>s({...n,[t.id]:e}),value:n[t.id]||e.value[t.id]})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ke}));var r=n(16),i=n(13),o=n(10),a=n(9),s=n(4),c=n.n(s),l=n(32),u=n.n(l),d=void 0,f=void 0,p=[],h=function(e){return"undefined"!=typeof window&&window.requestAnimationFrame(e)},m=void 0,g=function(){return Date.now()},b=void 0,v=function(){function e(){}var t=e.prototype;return t.attach=function(){},t.detach=function(){},t.getValue=function(){},t.getAnimatedValue=function(){return this.getValue()},t.addChild=function(e){},t.removeChild=function(e){},t.getChildren=function(){return[]},e}(),y=function(e){return Object.keys(e).map((function(t){return e[t]}))},j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).children=[],t.getChildren=function(){return t.children},t.getPayload=function(e){return void 0===e&&(e=void 0),void 0!==e&&t.payload?t.payload[e]:t.payload||Object(o.a)(Object(o.a)(t))},t}Object(i.a)(t,e);var n=t.prototype;return n.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},n.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},t}(v),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.getAnimatedValue=function(){return t.getValue()},t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(Object(o.a)(Object(o.a)(t)))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(Object(o.a)(Object(o.a)(t)))}))},t}return Object(i.a)(t,e),t}(j),k=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.getAnimatedValue=function(){return t.getValue(!0)},t.attach=function(){return y(t.payload).forEach((function(e){return e instanceof v&&e.addChild(Object(o.a)(Object(o.a)(t)))}))},t.detach=function(){return y(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(Object(o.a)(Object(o.a)(t)))}))},t}return Object(i.a)(t,e),t.prototype.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},t}(j),w=function(e){function t(t){var n;return n=e.call(this)||this,!(t=t||{}).transform||t.transform instanceof v||(t=f.transform(t)),n.payload=t,n}return Object(i.a)(t,e),t}(k),C={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},_=function(){function e(){}return e.create=function(t,n,r){if("function"==typeof t)return t;if(m&&t.output&&"string"==typeof t.output[0])return m(t);if(Array.isArray(t))return e.create({range:t,output:n,extrapolate:r||"extend"});var i=t.output,o=t.range||[0,1],a=t.easing||function(e){return e},s="extend",c=t.map;void 0!==t.extrapolateLeft?s=t.extrapolateLeft:void 0!==t.extrapolate&&(s=t.extrapolate);var l="extend";return void 0!==t.extrapolateRight?l=t.extrapolateRight:void 0!==t.extrapolate&&(l=t.extrapolate),function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,c){var l=c?c(e):e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,o[t],o[t+1],i[t],i[t+1],a,s,l,c)}},e}(),E="[-+]?\\d*\\.?\\d+";function x(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var S=new RegExp("rgb"+x(E,E,E)),L=new RegExp("rgba"+x(E,E,E,E)),F=new RegExp("hsl"+x(E,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),M=new RegExp("hsla"+x(E,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",E)),P=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,A=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,R=/^#([0-9a-fA-F]{6})$/,V=/^#([0-9a-fA-F]{8})$/;function I(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function T(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=I(i,r,e+1/3),a=I(i,r,e),s=I(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function N(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function z(e){return(parseFloat(e)%360+360)%360/360}function D(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function W(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function H(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=R.exec(t))?parseInt(n[1]+"ff",16)>>>0:C.hasOwnProperty(t)?C[t]:(n=S.exec(t))?(N(n[1])<<24|N(n[2])<<16|N(n[3])<<8|255)>>>0:(n=L.exec(t))?(N(n[1])<<24|N(n[2])<<16|N(n[3])<<8|D(n[4]))>>>0:(n=P.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=V.exec(t))?parseInt(n[1],16)>>>0:(n=A.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=F.exec(t))?(255|T(z(n[1]),W(n[2]),W(n[3])))>>>0:(n=M.exec(t))?(T(z(n[1]),W(n[2]),W(n[3]))|D(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var B=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,U=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,q=new RegExp("("+Object.keys(C).join("|")+")","g"),Z=function(e){function t(n,r,i){var a;return(a=e.call(this)||this).getValue=function(){var e;return(e=a).calc.apply(e,a.payload.map((function(e){return e.getValue()})))},a.updateConfig=function(e,t){return a.calc=_.create(e,t)},a.interpolate=function(e,n){return new t(Object(o.a)(Object(o.a)(a)),e,n)},a.payload=n instanceof O&&!n.updateConfig?n.payload:Array.isArray(n)?n:[n],a.calc=_.create(r,i),a}return Object(i.a)(t,e),t}(O),$=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.getValue=function(){return n.value},n.updateStyles=function(){return function e(t,n){"function"==typeof t.update?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(Object(o.a)(Object(o.a)(n)),n.animatedStyles)},n.updateValue=function(e){return n.flush(n.value=e)},n.interpolate=function(e,t){return new Z(Object(o.a)(Object(o.a)(n)),e,t)},n.value=t,n.animatedStyles=new Set,n.done=!1,n.startPosition=t,n.lastPosition=t,n.lastVelocity=void 0,n.lastTime=void 0,n.controller=void 0,n}Object(i.a)(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((function(e){return e.update()}))},n.prepare=function(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())},t}(j),K=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===n.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):n.payload.forEach((function(r,i){return n.payload[i].setValue(e,t)}))},n.getValue=function(){return n.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new Z(Object(o.a)(Object(o.a)(n)),e,t)},n.payload=t.map((function(e){return new $(e)})),n}return Object(i.a)(t,e),t}(O);function G(e,t){return null==e?t:e}function Q(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function X(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return void 0!==n||e===t}function J(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e}function Y(e){return Object.keys(e).map((function(t){return e[t]}))}function ee(e){var t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,Object(r.a)(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),n=Object.keys(e).reduce((function(n,r){var i;return void 0!==t[r]?n:Object(a.a)({},n,((i={})[r]=e[r],i))}),{});return Object(a.a)({to:t},n)}function te(e,t){var n,r=t[0],i=t[1];return Object(a.a)({},e,((n={})[r]=new(Array.isArray(i)?K:$)(i),n))}function ne(e){var t=e.from,n=e.to,r=e.native,i=Object.entries(Object(a.a)({},t,n));return r?i.reduce(te,{}):Object(a.a)({},t,n)}function re(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}var ie=function(e){return"auto"===e},oe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ae=["Webkit","Ms","Moz","O"];function se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||oe.hasOwnProperty(e)&&oe[e]?(""+t).trim():t+"px"}oe=Object.keys(oe).reduce((function(e,t){return ae.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),oe);var ce={};b=function(e){return new w(e)},m=function(e){var t=e.output.map((function(e){return e.replace(U,H)})).map((function(e){return e.replace(q,H)})),n=t[0].match(B).map((function(){return[]}));t.forEach((function(e){e.match(B).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(B).map((function(t,r){return _.create(Object(a.a)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(B,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,i){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+i+")"}))}},p=C,d=function(e,t){var n=e.from,r=e.to,i=e.children;if(Y(r).some(ie)||Y(n).some(ie)){var o=i(ne(e));if(o){Array.isArray(o)&&(o={type:"div",props:{children:o}});var s=o.props.style;return c.a.createElement(o.type,Object(a.a)({key:o.key?o.key:void 0},o.props,{style:Object(a.a)({},s,{position:"absolute",visibility:"hidden"}),ref:function(i){if(i){var o,s,c=u.a.findDOMNode(i),l=getComputedStyle(c);if("border-box"===l.boxSizing)o=c.offsetWidth,s=c.offsetHeight;else{var d=parseFloat(l.paddingLeft||0)+parseFloat(l.paddingRight||0),f=parseFloat(l.paddingTop||0)+parseFloat(l.paddingBottom||0),p=parseFloat(l.borderLeftWidth||0)+parseFloat(l.borderRightWidth||0),h=parseFloat(l.borderTopWidth||0)+parseFloat(l.borderBottomWidth||0);o=c.offsetWidth-d-p,s=c.offsetHeight-f-h}var m=function(e,t){return function(n,r){var i,o=r[0],s=r[1];return Object(a.a)({},n,((i={})[o]="auto"===s?~o.indexOf("height")?t:e:s,i))}}(o,s);t(Object(a.a)({},e,{from:Object.entries(n).reduce(m,n),to:Object.entries(r).reduce(m,r)}))}}}))}}},function(e,t){f={fn:e,transform:t}}((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,i=t.children,o=t.scrollTop,a=t.scrollLeft,s=Object(r.a)(t,["style","children","scrollTop","scrollLeft"]);for(var c in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i),n)if(n.hasOwnProperty(c)){var l=0===c.indexOf("--"),u=se(c,n[c],l);"float"===c&&(c="cssFloat"),l?e.style.setProperty(c,u):e.style[c]=u}for(var d in s){var f=ce[d]||(ce[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,s[d])}}),(function(e){return e}));var le=!1,ue=new Set,de=function e(){var t=g(),n=ue,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}for(var a=o,s=!0,c=!0,l=0;l<a.configs.length;l++){for(var u=a.configs[l],d=void 0,f=void 0,p=0;p<u.animatedValues.length;p++){var m=u.animatedValues[p];if(!m.done){var b=u.fromValues[p],y=u.toValues[p],j=m.lastPosition,O=y instanceof v,k=Array.isArray(u.initialVelocity)?u.initialVelocity[p]:u.initialVelocity;if(O&&(y=y.getValue()),u.immediate||!O&&!u.decay&&b===y)m.updateValue(y),m.done=!0;else if(u.delay&&t-a.startTime<u.delay)s=!1;else if(c=!1,"string"!=typeof b&&"string"!=typeof y){if(void 0!==u.duration)j=b+u.easing((t-a.startTime-u.delay)/u.duration)*(y-b),d=t>=a.startTime+u.delay+u.duration;else if(u.decay)j=b+k/(1-.998)*(1-Math.exp(-(1-.998)*(t-a.startTime))),(d=Math.abs(m.lastPosition-j)<.1)&&(y=j);else{f=void 0!==m.lastTime?m.lastTime:t,k=void 0!==m.lastVelocity?m.lastVelocity:u.initialVelocity,t>f+64&&(f=t);for(var w=Math.floor(t-f),C=0;C<w;++C)j+=1*(k+=(-u.tension*(j-y)+-u.friction*k)/u.mass*1/1e3)/1e3;var _=!(!u.clamp||0===u.tension)&&(b<y?j>y:j<y),E=Math.abs(k)<=u.precision,x=0===u.tension||Math.abs(y-j)<=u.precision;d=_||E&&x,m.lastVelocity=k,m.lastTime=t}O&&!u.toValues[p].done&&(d=!1),d?(m.value!==y&&(j=y),m.done=!0):s=!1,m.updateValue(j),m.lastPosition=j}else m.updateValue(y),m.done=!0}}!a.props.onFrame&&a.props.native||(a.animatedProps[u.name]=u.interpolation.getValue())}!a.props.onFrame&&a.props.native||(!a.props.native&&a.onUpdate&&a.onUpdate(),a.props.onFrame&&a.props.onFrame(a.animatedProps)),s&&(ue.delete(a),a.debouncedOnEnd({finished:!0,noChange:c}))}ue.size?h(e):le=!1},fe=function(e){ue.has(e)&&ue.delete(e)},pe=function(){function e(e,t){var n=this;void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=function(){return n.props.native?n.interpolations:n.animatedProps},this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update(Object(a.a)({},e,t))}var t=e.prototype;return t.update=function(e){var t=this;this.props=Object(a.a)({},this.props,e);var n=this.props.interpolateTo?ee(this.props):this.props,r=n.from,i=void 0===r?{}:r,o=n.to,s=void 0===o?{}:o,c=n.config,l=void 0===c?{}:c,u=n.delay,d=void 0===u?0:u,f=n.reverse,h=n.attach,m=n.reset,g=n.immediate,b=n.autoStart,v=n.ref;if(f){var y=[s,i];i=y[0],s=y[1]}this.hasChanged=!1;var j=h&&h(this),O=m?{}:this.merged;if(this.merged=Object(a.a)({},i,O,s),this.animations=Object.entries(this.merged).reduce((function(e,n,r){var o,s,c,u=n[0],f=n[1],h=!m&&e[u]||{},b="number"==typeof f,v="string"==typeof f&&!f.startsWith("#")&&!/\d/.test(f)&&!p[f],y=!b&&!v&&Array.isArray(f),O=void 0!==i[u]?i[u]:f,k=b||y||v?f:1,w=J(l,u);if(j&&(k=j.animations[u].parent),void 0===w.decay&&X(h.changes,f))return e;if(t.hasChanged=!0,b||v)s=c=h.parent||new $(O);else if(y)s=c=h.parent||new K(O);else{var C=h.interpolation&&h.interpolation.calc(h.parent.value);h.parent?(s=h.parent).setValue(0,!1):s=new $(0);var _={output:[void 0!==C?C:O,f]};h.interpolation?(c=h.interpolation,h.interpolation.updateConfig(_)):c=s.interpolate(_)}J(g,u)&&s.setValue(f,!1);var E=Q(s.getPayload());return E.forEach((function(e){return e.prepare(t)})),Object(a.a)({},e,((o={})[u]=Object(a.a)({},h,{name:u,parent:s,interpolation:c,animatedValues:E,changes:f,fromValues:Q(s.getValue()),toValues:Q(j?k.getPayload():k),immediate:J(g,u),delay:G(w.delay,d||0),initialVelocity:G(w.velocity,0),clamp:G(w.clamp,!1),precision:G(w.precision,.01),tension:G(w.tension,170),friction:G(w.friction,26),mass:G(w.mass,1),duration:w.duration,easing:G(w.easing,(function(e){return e})),decay:w.decay}),o))}),this.animations),this.hasChanged)for(var k in this.configs=Y(this.animations),this.animatedProps={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.animatedProps[k]=this.animations[k].interpolation.getValue();for(var w=arguments.length,C=new Array(w>1?w-1:0),_=1;_<w;_++)C[_-1]=arguments[_];v||!b&&!C.length||this.start.apply(this,C);var E=C[0],x=C[1];return this.onEnd="function"==typeof E&&E,this.onUpdate=x,this.getValues()},t.start=function(e,t){var n=this;return this.startTime=g(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),this,ue.has(this)||(ue.add(this),le||h(de),le=!0),new Promise((function(e){return n.resolve=e}))},t.stop=function(e){void 0===e&&(e=!1),e&&Y(this.animations).forEach((function(e){return e.changes=void 0})),this.debouncedOnEnd({finished:e})},t.destroy=function(){fe(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]},t.debouncedOnEnd=function(e){fe(this),this.isActive=!1;var t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null},e}(),he=function(e){function t(t,n){var r;return r=e.call(this)||this,t.style&&(t=Object(a.a)({},t,{style:b(t.style)})),r.payload=t,r.update=n,r.attach(),r}return Object(i.a)(t,e),t}(k);function me(e){var t=function(t){function n(e){var n;return(n=t.call(this)||this).callback=function(){n.node&&!1===f.fn(n.node,n.propsAnimated.getAnimatedValue(),Object(o.a)(Object(o.a)(n)))&&n.forceUpdate()},n.attachProps(e),n}Object(i.a)(n,t);var s=n.prototype;return s.componentWillUnmount=function(){this.propsAnimated&&this.propsAnimated.detach()},s.setNativeProps=function(e){!1===f.fn(this.node,e,this)&&this.forceUpdate()},s.attachProps=function(e){e.forwardRef;var t=Object(r.a)(e,["forwardRef"]),n=this.propsAnimated;this.propsAnimated=new he(t,this.callback),n&&n.detach()},s.shouldComponentUpdate=function(e){var t=e.style,n=Object(r.a)(e,["style"]),i=this.props,o=i.style;return!(X(Object(r.a)(i,["style"]),n)&&X(o,t)||(this.attachProps(e),0))},s.render=function(){var t=this,n=this.propsAnimated.getValue(),i=(n.scrollTop,n.scrollLeft,Object(r.a)(n,["scrollTop","scrollLeft"]));return c.a.createElement(e,Object(a.a)({},i,{ref:function(e){return t.node=re(e,t.props.forwardRef)}}))},n}(c.a.Component);return c.a.forwardRef((function(e,n){return c.a.createElement(t,Object(a.a)({},e,{forwardRef:n}))}))}var ge=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},t.controller=new pe(null,null),t.didUpdate=!1,t.didInject=!1,t.finished=!0,t.start=function(){t.finished=!1;var e=t.mounted;t.controller.start((function(n){return t.finish(Object(a.a)({},n,{wasMounted:e}))}),t.update)},t.stop=function(){return t.controller.stop(!0)},t.update=function(){return t.mounted&&t.setState({internal:!0})},t.finish=function(e){var n=e.finished,r=e.noChange,i=e.wasMounted;t.finished=!0,t.mounted&&n&&(!t.props.onRest||!i&&r||t.props.onRest(t.controller.merged),t.mounted&&t.didInject&&(t.afterInject=ne(t.props),t.setState({internal:!0})),t.mounted&&(t.didInject||t.props.after)&&t.setState({internal:!0}),t.didInject=!1)},t}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.componentDidUpdate(),this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1,this.stop()},t.getDerivedStateFromProps=function(e,t){var n=t.internal,r=t.lastProps,i=e.from,o=e.to,a=e.reset,s=e.force;return{propsChanged:!X(o,r.to)||!X(i,r.from)||a&&!n||s&&!n,lastProps:e,internal:!1}},n.render=function(){var e=this,t=this.props.children,n=this.state.propsChanged;if(this.props.inject&&n&&!this.injectProps){var r=this.props.inject(this.props,(function(t){e.injectProps=t,e.setState({internal:!0})}));if(r)return r}(this.injectProps||n)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):n&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);var i=Object(a.a)({},this.controller.getValues(),this.afterInject);return this.finished&&(i=Object(a.a)({},i,this.props.after)),Object.keys(i).length?t(i):null},n.componentDidUpdate=function(){this.didUpdate&&this.start(),this.didUpdate=!1},t}(c.a.Component);ge.defaultProps={from:{},to:{},config:{tension:170,friction:26},native:!1,immediate:!1,reset:!1,force:!1,inject:d};var be=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).first=!0,t.instances=new Set,t.hook=function(e,n,r,i){return t.instances.add(e),(i?n===r-1:0===n)?void 0:Array.from(t.instances)[i?n+1:n-1]},t}Object(i.a)(t,e);var n=t.prototype;return n.render=function(){var e=this,t=this.props,n=t.items,i=t.children,o=t.from,s=void 0===o?{}:o,l=t.initial,u=t.reverse,d=t.keys,f=t.delay,p=t.onRest,h=Object(r.a)(t,["items","children","from","initial","reverse","keys","delay","onRest"]),m=Q(n);return Q(m).map((function(t,n){return c.a.createElement(ge,Object(a.a)({onRest:0===n?p:null,key:"function"==typeof d?d(t):Q(d)[n],from:e.first&&void 0!==l?l||{}:s},h,{delay:0===n&&f||void 0,attach:function(t){return e.hook(t,n,m.length,u)},children:function(e){var r=i(t,n);return r?r(e):null}}))}))},n.componentDidUpdate=function(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()},t}(c.a.PureComponent);be.defaultProps={keys:function(e){return e}};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).guid=0,t.state={props:{},resolve:function(){return null},last:!0,index:0},t.next=function(e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=0),t.running=!0,new Promise((function(i){t.mounted&&t.setState((function(t){return{props:e,resolve:i,last:n,index:r}}),(function(){return t.running=!1}))}))},t}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.componentDidUpdate({})},n.componentWillUnmount=function(){this.mounted=!1},n.componentDidUpdate=function(e){var t=this,n=this.props,r=n.states,i=n.filter,o=n.state;(e.state!==this.props.state||this.props.reset&&!this.running||!X(r[o],e.states[e.state]))&&r&&o&&r[o]&&function(){var e=++t.guid,n=r[o];if(n)if(Array.isArray(n))for(var a=Promise.resolve(),s=function(r){var o=r,s=n[o],c=o===n.length-1;a=a.then((function(){return e===t.guid&&t.next(i(s),c,o)}))},c=0;c<n.length;c++)s(c);else if("function"==typeof n){var l=0;n((function(n,r){return void 0===r&&(r=!1),e===t.guid&&t.next(i(n),r,l++)}),(function(){return h((function(){return t.instance&&t.instance.stop()}))}),t.props)}else t.next(i(r[o]))}()},n.render=function(){var e=this,t=this.state,n=t.props,i=t.resolve,o=t.last,s=t.index;if(!n||0===Object.keys(n).length)return null;var l=this.props,u=(l.state,l.filter,l.states,l.config),d=l.primitive,f=l.onRest,p=l.forwardRef,h=Object(r.a)(l,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(u)&&(u=u[s]),c.a.createElement(d,Object(a.a)({ref:function(t){return e.instance=re(t,p)},config:u},h,n,{onRest:function(e){i(e),f&&o&&f(e)}}))},t}(c.a.PureComponent);ve.defaultProps={state:"__default"};var ye=c.a.forwardRef((function(e,t){return c.a.createElement(ve,Object(a.a)({},e,{forwardRef:t}))}));ye.create=function(e){return function(t,n){var r;return void 0===n&&(n=function(e){return e}),("function"==typeof t||Array.isArray(t))&&((r={}).__default=t,t=r),function(r){return c.a.createElement(ve,Object(a.a)({primitive:e,states:t,filter:n},r))}}},ye.Spring=function(e){return ye.create(ge)(e,ee)},ye.Trail=function(e){return ye.create(be)(e,ee)};var je=0,Oe=function(e){var t=e.items,n=e.keys,i=Object(r.a)(e,["items","keys"]);return t=Q(void 0!==t?t:null),n="function"==typeof n?t.map(n):Q(n),Object(a.a)({items:t,keys:n.map((function(e){return String(e)}))},i)},ke=function(e){Object(i.a)(n,e);var t=n.prototype;function n(t){var n;return(n=e.call(this,t)||this).destroyItem=function(e,t,r){return function(i){var o=n.props,a=o.onRest,s=o.onDestroyed;n.mounted&&(s&&s(e),n.setState((function(e){return{deleted:e.deleted.filter((function(e){return e.key!==t}))}})),a&&a(e,r,i))}},n.state={first:!0,transitions:[],current:{},deleted:[],prevProps:t},n}return t.componentDidMount=function(){this.mounted=!0},t.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n=t.first,i=t.prevProps,o=Object(r.a)(t,["first","prevProps"]),s=Oe(e),c=s.items,l=s.keys,u=s.initial,d=s.from,f=s.enter,p=s.leave,h=s.update,m=s.trail,g=void 0===m?0:m,b=s.unique,v=s.config,y=Oe(i),j=y.keys,O=y.items,k=Object(a.a)({},o.current),w=[].concat(o.deleted),C=Object.keys(k),_=new Set(C),E=new Set(l),x=l.filter((function(e){return!_.has(e)})),S=o.transitions.filter((function(e){return!e.destroyed&&!E.has(e.originalKey)})).map((function(e){return e.originalKey})),L=l.filter((function(e){return _.has(e)})),F=0;x.forEach((function(e){b&&w.find((function(t){return t.originalKey===e}))&&(w=w.filter((function(t){return t.originalKey!==e})));var t=l.indexOf(e),r=c[t];k[e]={state:"enter",originalKey:e,key:b?String(e):je++,item:r,trail:F+=g,config:J(v,r,"enter"),from:J(n&&void 0!==u?u||{}:d,r),to:J(f,r)}})),S.forEach((function(e){var t=j.indexOf(e),n=O[t];w.push(Object(a.a)({},k[e],{state:"leave",destroyed:!0,left:j[Math.max(0,t-1)],right:j[Math.min(j.length,t+1)],trail:F+=g,config:J(v,n,"leave"),to:J(p,n)})),delete k[e]})),L.forEach((function(e){var t=l.indexOf(e),n=c[t];k[e]=Object(a.a)({},k[e],{item:n,state:"update",trail:F+=g,config:J(v,n,"update"),to:J(h,n)})}));var M=l.map((function(e){return k[e]}));return w.forEach((function(e){var t,n=e.left,i=e.right,o=Object(r.a)(e,["left","right"]);-1!==(t=M.findIndex((function(e){return e.originalKey===n})))&&(t+=1),-1===t&&(t=M.findIndex((function(e){return e.originalKey===i}))),-1===t&&(t=w.findIndex((function(e){return e.originalKey===n}))),-1===t&&(t=w.findIndex((function(e){return e.originalKey===i}))),t=Math.max(0,t),M=[].concat(M.slice(0,t),[o],M.slice(t))})),{first:n&&0===x.length,transitions:M,current:k,deleted:w,prevProps:e}},t.render=function(){var e=this,t=this.props,n=(t.initial,t.from,t.enter,t.leave,t.update,t.onDestroyed,t.keys,t.items,t.onFrame),i=t.onRest,o=t.onStart,s=(t.trail,t.config,t.children),l=(t.unique,t.reset),u=Object(r.a)(t,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map((function(t,r){var d,f=t.state,p=t.key,h=t.item,m=t.from,g=t.to,b=t.trail,v=t.config,y=t.destroyed;return c.a.createElement(ye,Object(a.a)({reset:l&&"enter"===f,primitive:ge,state:f,filter:ee,states:(d={},d[f]=g,d),key:p,onRest:y?e.destroyItem(h,p,f):i&&function(e){return i(h,f,e)},onStart:o&&function(){return o(h,f)},onFrame:n&&function(e){return n(h,f,e)},delay:b,config:v},u,{from:m,children:function(e){var t=s(h,f,r);return t?t(e):null}}))}))},n}(c.a.PureComponent);ke.defaultProps={keys:function(e){return e},unique:!1,reset:!1},["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].reduce((function(e,t){return e[t]=me(t),e}),me)},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";var r=n(11),i=n.n(r),o=n(0),a=n(20),s=n(25),c=n.n(s),l=n(5),u=n.n(l),d=n(1),f=n(3),p=({option:e,value:t,sizeRef:n,onChange:r,props:i})=>Object(o.createElement)(a.animated.ul,{style:i,className:"ct-typography-options",key:"options"},Object(o.createElement)("li",{key:"size"},Object(o.createElement)(f.a,{value:t.size,values:t,id:"size",option:{id:"size",label:Object(d.__)("Font Size","affiliatex"),type:"ab-slider",value:e.value.size,ref:n,responsive:e.typography_responsive||!0,units:[{unit:"px",min:0,max:200},{unit:"em",min:0,max:50},{unit:"rem",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"vw",min:0,max:100}]},hasRevertButton:!1,onChange:e=>r({...t,size:e})})),Object(o.createElement)("li",{key:"line-height"},Object(o.createElement)(f.a,{value:t["line-height"],values:t,id:"line-height",option:{id:"line-height",label:Object(d.__)("Line Height","affiliatex"),type:"ab-slider",value:e.value["line-height"],responsive:e.typography_responsive||!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!1,onChange:e=>r({...t,"line-height":e})})),Object(o.createElement)("li",{key:"letter-spacing"},Object(o.createElement)(f.a,{value:t["letter-spacing"],values:t,id:"letter-spacing",option:{id:"letter-spacing",label:Object(d.__)("Letter Spacing","affiliatex"),type:"ab-slider",value:e.value["letter-spacing"],responsive:e.typography_responsive||!0,defaultPosition:"center",units:[{unit:"em",min:-5,max:5,decimals:1},{unit:"px",min:-20,max:20,decimals:1},{unit:"rem",min:-5,max:5,decimals:1}]},hasRevertButton:!1,onChange:e=>r({...t,"letter-spacing":e})})),Object(o.createElement)("li",{key:"variant",className:"ct-typography-variant"},Object(o.createElement)("ul",{className:u()("ct-text-transform")},["capitalize","uppercase"].map(e=>Object(o.createElement)("li",{key:e,onClick:()=>r({...t,"text-transform":t["text-transform"]===e?"none":e}),className:u()({active:e===t["text-transform"]}),"data-variant":e},Object(o.createElement)("i",{className:"affiliate-blocks-tooltip-top"},{capitalize:Object(d.__)("Capitalize","affiliatex"),uppercase:Object(d.__)("Uppercase","affiliatex")}[e])))),Object(o.createElement)("ul",{className:u()("ct-text-decoration")},["line-through","underline"].map(e=>Object(o.createElement)("li",{key:e,onClick:()=>r({...t,"text-decoration":t["text-decoration"]===e?"none":e}),className:u()({active:e===t["text-decoration"]}),"data-variant":e},Object(o.createElement)("i",{className:"affiliate-blocks-tooltip-top"},{"line-through":Object(d.__)("Line Through","affiliatex"),underline:Object(d.__)("Underline","affiliatex")}[e])))))),h=n(9),m=n(13),g=n(10),b=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function v(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(i=t[n])||b(r)&&b(i)))return!1;var r,i;return!0}var y=function(e,t){var n;void 0===t&&(t=v);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}},j=n(4),O=(n(16),"object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function k(e){cancelAnimationFrame(e.id)}var w=null;function C(e){if(void 0===e&&(e=!1),null===w||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?w="positive-descending":(t.scrollLeft=1,w=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),w}return w}var _=function(e,t){return e};function E(e){var t,n,r=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Object(g.a)(Object(g.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(g.a)(Object(g.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=y((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})})),n._callOnScroll=void 0,n._callOnScroll=y((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,c=i.layout,l=n._getItemStyleCache(u&&s,u&&c,u&&a);if(l.hasOwnProperty(e))t=l[e];else{var d=r(n.props,e,n._instanceProps),f=o(n.props,e,n._instanceProps),p="horizontal"===a||"horizontal"===c,h="rtl"===a,m=p?d:0;l[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=y((function(e,__,t){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(C()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r,i;null!==n._resetIsScrollingTimeoutId&&k(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=(e=n._resetIsScrolling,t=150,r=O(),i={id:requestAnimationFrame((function n(){O()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}))})},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(m.a)(t,e),t.getDerivedStateFromProps=function(e,t){return x(e,t),d(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(C()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&k(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,o=e.height,a=e.innerRef,s=e.innerElementType,c=e.innerTagName,l=e.itemCount,u=e.itemData,d=e.itemKey,f=void 0===d?_:d,p=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,O=this.state.isScrolling,k="horizontal"===r||"horizontal"===p,w=k?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],x=C[1],S=[];if(l>0)for(var L=E;L<=x;L++)S.push(Object(j.createElement)(t,{data:u,key:f(L,u),index:L,isScrolling:v?O:void 0,style:this._getItemStyle(L)}));var F=i(this.props,this._instanceProps);return Object(j.createElement)(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Object(h.a)({position:"relative",height:o,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},b)},Object(j.createElement)(s||c||"div",{children:S,ref:a,style:{height:k?"100%":F,pointerEvents:O?"none":void 0,width:k?F:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,c=o.scrollUpdateWasRequested;this._callOnScroll(a,s,c)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var l=s(this.props,a,this._instanceProps),u=c(this.props,l,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),f=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,l-d),Math.max(0,Math.min(t-1,u+f)),l,u]},t}(j.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var x=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},S=E({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var i=e.direction,o=e.height,a=e.itemCount,s=e.itemSize,c=e.layout,l=e.width,u="horizontal"===i||"horizontal"===c?l:o,d=Math.max(0,a*s-u),f=Math.min(d,t*s),p=Math.max(0,t*s-u+s);switch("smart"===n&&(n=r>=p-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return p;case"center":var h=Math.round(p+(f-p)/2);return h<Math.ceil(u/2)?0:h>d+Math.floor(u/2)?d:h;case"auto":default:return r>=p&&r<=f?r:r<p?p:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,s=e.layout,c=e.width,l=t*a,u="horizontal"===r||"horizontal"===s?c:i,d=Math.ceil((u+n-l)/a);return Math.max(0,Math.min(o-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}),L=n(39),F=n.n(L),M=n(18);let P=[];const A=({data:{linearFontsList:e,onPickFamily:t,value:n},index:r,style:i})=>{const a=e[r];return Object(o.createElement)("div",{style:i,onClick:()=>t(a),className:u()("ct-typography-single-font","ct-"+a.source,{active:a.family===n.family}),key:a.family},Object(o.createElement)("span",{className:"ct-font-name"},a.display||a.family),Object(o.createElement)("span",{style:{fontFamily:Object(M.d)(a.family)},className:"ct-font-preview"},"Simply dummy text"))};var R=({option:e,value:t,onPickFamily:n,typographyList:r,linearFontsList:i,currentView:a,searchTerm:s})=>{const c=Object(o.useRef)(null),[l,u]=(Object(o.useRef)(null),Object(o.useState)(null));Object(o.useEffect)(()=>{t.family&&c.current.scrollToItem(i.map(({family:e})=>e).indexOf(t.family),"start")},[]);const d=()=>{l&&clearTimeout(l),u(setTimeout(()=>{if(!c.current)return;const[e]=c.current._getRangeToRender(),t=(Math.ceil(i.length/25),Math.ceil((e+1)/25));(e=>{if(0===e.length)return;P=[...P,...e.map(({family:e})=>e)];const t=e.map(({family:e})=>e).filter(e=>-1===e.indexOf("ct_typekit")),n=e.filter(({family:e})=>e.indexOf("ct_typekit")>-1);(t.length>0||n.length>0)&&F.a.load({...t.length>0?{google:{families:t}}:{},...n.length>0?{typekit:{id:n[0].kit}}:{},classes:!1,text:"abcdefghijklmnopqrstuvwxyz"})})([...Array(25)].map((e,n)=>25*(t-1)+n).map(e=>i[e]).filter(e=>!!e).filter(({source:e,family:t})=>-1===P.indexOf(t)&&("google"===e||"typekit"===e)))},100))};return Object(o.useEffect)(()=>{d()},[i]),Object(o.createElement)(S,{height:360,itemCount:i.length,itemSize:85,ref:c,onScroll:e=>{d()},itemData:{linearFontsList:i,onPickFamily:n,value:t},onItemsRendered:({overscanStartIndex:e,overscanStopIndex:t})=>{},className:"ct-typography-fonts"},A)},V=({option:e,value:t,onChange:n,typographyList:r,props:i})=>{const s=Object(M.c)(t.family,r),c=Object(o.useRef)(null);return Object(o.useEffect)(()=>{s&&(c.current.scrollTop=(c.current.children[s.all_variations.indexOf(t.variation)]||c.current.children[0]).offsetTop-c.current.offsetTop)},[s]),Object(o.createElement)(a.animated.ul,{style:i,className:"ct-typography-variations",ref:c},s&&s.all_variations.map(e=>Object(o.createElement)("li",{onClick:()=>n({...t,variation:e}),className:u()({active:e===t.variation}),key:e},Object(o.createElement)("span",{className:"ct-variation-name","data-variation":e},Object(M.e)(e)))))};t.a=({option:e,value:t,initialView:n,currentView:r,previousView:s,setCurrentView:l,setInititialView:d,onChange:f,wrapperProps:h={}})=>{const[m,g]=Object(o.useState)((({isDefault:e})=>({system:{type:"system",families:[...e?[]:["Default"],"System Default","Arial","Verdana","Trebuchet","Georgia","Times New Roman","Palatino","Helvetica","Myriad Pro","Lucida","Gill Sans","Impact","Serif","monospace"].map(e=>({source:"system",family:e,variations:[],all_variations:[..."Default"===e?["Default"]:[],"n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}))}}))(e)),[b,v]=Object(o.useState)(!1),[y,j]=Object(o.useState)(""),O=Object(o.useMemo)(()=>"_"===s||"search"===r&&"fonts"===s||"search"===s&&"fonts"===r?"static":"options"===s||"fonts"===s&&"variations"===r?"right":"left",[r,s]),k=Object(o.useRef)(null),w=Object(o.useRef)(null),C=Object.keys(m).reduce((e,t)=>[...e,...(m[t].families||[]).filter(({family:e})=>function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var i=0,o=0;i<r;i++){for(var a=e.charCodeAt(i);o<n;)if(t.charCodeAt(o++)===a)continue e;return!1}return!0}(y.toLowerCase(),e.toLowerCase()))],[]);Object(o.useEffect)(()=>{n&&"done"!==n&&(j(""),setTimeout(()=>{})),"font_size"===n&&setTimeout(()=>w.current&&w.current.focus(),100)},[n]),Object(o.useEffect)(()=>{(async()=>{const t=new FormData;t.append("action","affiliatex_get_fonts_list");try{const n=await fetch(ajaxurl,{method:"POST",body:t});if(200===n.status){const{success:t,data:r}=await n.json();t&&g({...r.fonts,system:{...r.fonts.system,families:[...e.isDefault?[]:[{source:"system",family:"Default",variations:[],all_variations:["Default","n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}],...r.fonts.system.families]}})}}catch(e){}})()},[]),Object(o.useEffect)(()=>{"search"===r&&k.current.focus()},[r]);const _=e=>{f({...t,family:e.family,variation:Object(M.a)(e,t)})};return Object(o.createElement)(a.animated.div,i()({className:"ct-option-modal ct-typography-modal"},h),Object(o.createElement)("div",{className:"ct-typography-container"},Object(o.createElement)("ul",{className:u()("ct-typography-top",{"rara-switch-panel":"options"!==r,"ct-static":"_"===s})},Object(o.createElement)("li",{className:"ct-back",onClick:()=>l("options")},Object(o.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},Object(o.createElement)("path",{d:"M14.2,6.8H2.6l4-4c0.3-0.3,0.3-0.8,0-1.1c-0.3-0.3-0.8-0.3-1.1,0L0.2,7l0,0c0,0-0.1,0.1-0.1,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1l0,0c0,0,0,0,0,0c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1C0.2,8,0.2,8,0.2,8l5.3,5.3c0.3,0.3,0.8,0.3,1.1,0c0.3-0.3,0.3-0.8,0-1.1l-4-4h11.7c0.4,0,0.8-0.3,0.8-0.8S14.7,6.8,14.2,6.8z"}))),Object(o.createElement)("li",{className:u()("ct-font",{active:"search"===r||"fonts"===r}),onClick:()=>{l("fonts"===r?"search":"fonts"),j("")}},"search"!==r&&Object(o.createElement)("span",null,Object(M.b)(t.family)),"search"===r&&Object(o.createElement)("input",{onClick:e=>e.stopPropagation(),ref:k,autoFocus:!0,value:y,onKeyUp:e=>{13==e.keyCode&&C.length>0&&(_(C[0]),l("options"),j(""))},onChange:({target:{value:e}})=>j(e)}),Object(o.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 15 15"},"search"===r&&Object(o.createElement)("path",{d:"M8.9,7.5l4.6-4.6c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0L7.5,6.1L2.9,1.5c-0.4-0.4-1-0.4-1.4,0c-0.4,0.4-0.4,1,0,1.4l4.6,4.6l-4.6,4.6c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l4.6-4.6l4.6,4.6c0.4,0.4,1,0.4,1.4,0c0.4-0.4,0.4-1,0-1.4L8.9,7.5z"}),"search"!==r&&Object(o.createElement)("path",{d:"M14.6,14.6c-0.6,0.6-1.4,0.6-2,0l-2.5-2.5c-1,0.7-2.2,1-3.5,1C2.9,13.1,0,10.2,0,6.6S2.9,0,6.6,0c3.6,0,6.6,2.9,6.6,6.6c0,1.3-0.4,2.5-1,3.5l2.5,2.5C15.1,13.1,15.1,14,14.6,14.6z M6.6,1.9C4,1.9,1.9,4,1.9,6.6s2.1,4.7,4.7,4.7c2.6,0,4.7-2.1,4.7-4.7C11.3,4,9.2,1.9,6.6,1.9z"}))),Object(o.createElement)("li",{className:u()("ct-weight",{active:"variations"===r}),onClick:()=>l("variations")},Object(o.createElement)("span",{"data-variation":t.variation},Object(M.f)(t.variation)))),Object(o.createElement)(a.Transition,{items:r,immediate:"static"===O,config:(e,t)=>({duration:210,easing:c()(.455,.03,.515,.955)}),from:{transform:"left"===O?"translateX(100%)":"translateX(-100%)",position:"absolute"},enter:{transform:"translateX(0%)",position:"absolute"},leave:{position:"absolute",transform:"left"===O?"translateX(-100%)":"translateX(100%)"}},(n,r,i,c)=>"options"===r?Object(o.createElement)(p,{sizeRef:w,value:t,option:e,onChange:f,props:n,currentView:r}):"fonts"===r||"search"===r?Object(o.createElement)(a.animated.div,{style:n,key:r},Object(o.createElement)(R,{typographyList:m,searchTerm:y,linearFontsList:C,currentView:`${r}:${s}`,onPickFamily:e=>{_(e)},value:t})):"variations"===r?Object(o.createElement)(V,{currentView:r,props:n,typographyList:m,onChange:e=>{f(e)},value:t}):void 0)))}},,,,function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(5),o=n.n(i);const a=({option:{behavior:e="words"},value:t})=>"words"===e?"yes"===t:!!t,s=({value:e,option:t={},onChange:n,onClick:i})=>Object(r.createElement)("div",{className:o()({"ct-option-switch":!0,"ct-active":a({option:t,value:e})}),onClick:r=>{i&&i(r),n((({option:e={},option:{behavior:t="words"},value:n})=>a({option:e,value:n})?"words"===t&&"no":"words"!==t||"yes")({option:t,value:e}))}},Object(r.createElement)("span",null));s.renderingConfig={design:"inline"},t.default=s},function(e,t){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var i=(t[1]-t[0])/(e[1]-e[0]),o=t[0]+i*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],o)):o}}},function(e,t,n){var r;!function(){function i(e,t,n){return e.call.apply(e.bind,arguments)}function o(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:o).apply(null,arguments)}var s=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var l=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r&&t.appendChild(e.c.createTextNode(r)),t}function d(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function m(e,t,n){function r(){s&&i&&o&&(s(a),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=!0,a=null,s=n||null;l?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){i=!0,r()}),0),d(e,"head",t)}function g(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var o=u(e,"script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),o}return null}function b(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,j(e)}}function y(e,t){e.c=t,j(e)}function j(e){0==e.a&&e.c&&(e.c(),e.c=null)}function O(e){this.a=e||"-"}function k(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function E(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function x(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new O("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function S(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),p(e.f,n,r)}L(e,"inactive")}function L(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function F(){this.c={}}function M(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function P(e){d(e.c,"body",e.a)}function A(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function R(e,t,n,r,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function V(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new M(this.c,this.s),this.h=new M(this.c,this.s),this.j=new M(this.c,this.s),this.m=new M(this.c,this.s),e=A(e=new k(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=A(e=new k(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=A(e=new k("serif",C(this.a))),this.j.a.style.cssText=e,e=A(e=new k("sans-serif",C(this.a))),this.m.a.style.cssText=e,P(this.g),P(this.h),P(this.j),P(this.m)}O.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},R.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise((function(r,i){!function o(){s()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(o,25)}),(function(){i()}))}()})),i=null,o=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([o,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var I={D:"serif",C:"sans-serif"},T=null;function N(){if(null===T){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);T=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return T}function z(e,t,n){for(var r in I)if(I.hasOwnProperty(r)&&t===e.f[I[r]]&&n===e.f[I[r]])return!0;return!1}function D(e,t){setTimeout(a((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)}),e),0)}function W(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),function e(t){var n,r=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(n=r===t.f.serif&&i===t.f["sans-serif"])||(n=N()&&z(t,r,i)),n?s()-t.A>=t.w?N()&&z(t,r,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?D(t,t.v):D(t,t.B):function(t){setTimeout(a((function(){e(this)}),t),50)}(t):D(t,t.v)}(this)};var H=null;function B(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),L(e,"active")):S(e.a))}function U(e){this.j=e,this.a=new F,this.h=0,this.f=this.g=!0}function q(e,t,n,r,i){var o=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=r||{};if(0===n.length&&o)S(t.a);else{t.f+=n.length,o&&(t.j=o);var c,l=[];for(c=0;c<n.length;c++){var u=n[c],d=s[u.c],f=t.a,h=u;if(f.g&&p(f.f,[f.a.c("wf",h.c,C(h).toString(),"loading")]),L(f,"fontloading",h),f=null,null===H)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=h?42<parseInt(h[1],10):!m}else H=!1;f=H?new R(a(t.g,t),a(t.h,t),t.c,u,t.s,d):new V(a(t.g,t),a(t.h,t),t.c,u,t.s,e,d),l.push(f)}for(c=0;c<l.length;c++)l[c].start()}}),0)}function Z(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function K(e,t){this.c=e||G,this.a=[],this.f=[],this.g=t||""}W.prototype.g=function(e){var t=this.a;t.g&&p(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),L(t,"fontactive",e),this.m=!0,B(this)},W.prototype.h=function(e){var t=this.a;if(t.g){var n=h(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],i=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),p(t.f,r,i)}L(t,"fontinactive",e),B(this)},U.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=n.timeout;!function(e){e.g&&p(e.f,[e.a.c("wf","loading")]),L(e,"loading")}(t),r=function(e,t,n){var r,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&i.push(o(t[r],n))}return i}(e.a,n,e.c);var o=new W(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){q(e,o,t,n,r)}))}(this,new x(this.c,e),e)},Z.prototype.load=function(e){var t=this,n=t.a.projectId,r=t.a.version;if(n){var i=t.c.o;g(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(r?"?v="+r:""),(function(r){r?e([]):(i["__MonotypeConfiguration__"+n]=function(){return t.a},function t(){if(i["__mti_fntLst"+n]){var r,o=i["__mti_fntLst"+n](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(r=o[s].fontStyle+o[s].fontWeight,a.push(new k(c,r))):a.push(new k(c))}e(a)}else setTimeout((function(){t()}),50)}())})).id="__MonotypeAPIScript__"+n}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],o=this.a.testStrings||{},a=new b;for(t=0,n=r.length;t<n;t++)m(this.c,r[t],v(a));var s=[];for(t=0,n=i.length;t<n;t++)if((r=i[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new k(r[0],c[l]));else s.push(new k(r[0]));y(a,(function(){e(s,o)}))};var G="https://fonts.googleapis.com/css";function Q(e){this.f=e,this.a=[],this.c={}}var X={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},ee=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function te(e,t){this.c=e,this.a=t}var ne={Arimo:!0,Cousine:!0,Tinos:!0};function re(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}te.prototype.load=function(e){var t=new b,n=this.c,r=new K(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var o="";2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}}(r,i);var o=new Q(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),o=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(d=ee.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":Y[u],null==(d=d[1])||""==d)d="4";else var d=J[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&a.push(u)}0<a.length&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=X[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=X[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new k(i,o[r]))}}(o),m(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),v(t)),y(t,(function(){e(o.a,o.c,ne)}))},re.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new k(o,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i=0,o=n.fonts.length;i<o;++i){var a=n.fonts[i];r.a.push(new k(a.name,E("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var oe=new U(window);oe.a.c.custom=function(e,t){return new $(t,e)},oe.a.c.fontdeck=function(e,t){return new ie(t,e)},oe.a.c.monotype=function(e,t){return new Z(t,e)},oe.a.c.typekit=function(e,t){return new re(t,e)},oe.a.c.google=function(e,t){return new te(t,e)};var ae={load:a(oe.load,oe)};void 0===(r=function(){return ae}.call(t,n,t,e))||(e.exports=r)}()},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maybePromoteScalarValueIntoResponsive=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},function(e,t){},function(e,t){},function(e,t,n){var r=Array.prototype.slice,i=n(49),o=n(50),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var l,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var d=i(e),f=i(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),l=d.length-1;l>=0;l--)if(d[l]!=f[l])return!1;for(l=d.length-1;l>=0;l--)if(u=d[l],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";var r=n(0),i=n(20),o=n(1),a=n(25),s=n.n(a),c=n(5),l=n.n(c),u=n(17),d=n(8),f=n(18),p=n(33),h=n(22);t.a=({option:{label:e="",desc:t="",attr:n={}},option:a,value:c,device:m,onChange:g})=>{const[b,v]=Object(r.useState)("_:_"),y=Object(r.useRef)();let[j,O]=Object(r.useMemo)(()=>b.split(":"),[b]);const k=Object(r.useCallback)(e=>v(`${e}:${j}`),[j]),[{isOpen:w,isTransitioning:C},_]=Object(r.useState)({isOpen:!1,isTransitioning:!1}),{styles:E,popoverProps:x}=Object(h.a)({ref:y,defaultHeight:430,shouldCalculate:C||w}),S=e=>{_(t=>({...t,isOpen:e,isTransitioning:!0}))},L=Object(r.useRef)(),F=Object(r.useRef)(),M=Object(r.useRef)(),P=Object(r.useRef)(),A=Object(r.useMemo)(()=>{const e=j,t="options"===e?F.current:"fonts"===e?L.current:"variations"===e?M.current:F.current;return x.ref&&x.ref.current&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(x.ref.current,t)},[w,j,x.ref,x.ref&&x.ref.current,L&&L.current,M&&M.current,F&&F.current,P&&P.current]);return Object(r.createElement)("div",{className:l()("ct-typography",{})},Object(r.createElement)(u.a,{disabled:!w,useCapture:!1,className:"ct-typohraphy-value",additionalRefs:[x.ref],onOutsideClick:()=>{S(!1)},wrapperProps:{ref:y,onClick:e=>{e.preventDefault(),w?k("options"):(v("options:_"),S("options"))}}},Object(r.createElement)("div",null,Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("fonts"):(v("fonts:_"),S("fonts"))},className:"ct-font",ref:L},Object(r.createElement)("span",null,"Default"===c.family?"Default Family":Object(f.b)(c.family))),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("options"):(v("options:_"),S("font_size"))},ref:F,className:"ct-size"},Object(r.createElement)("span",null,"CT_CSS_SKIP_RULE"===Object(d.e)(c.size)[m]?Object(o.__)("Default Size","affiliatex"):Object(d.e)(c.size)[m])),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{ref:M,onClick:e=>{e.stopPropagation(),w?k("variations"):(v("variations:_"),S("variations"))},className:"ct-weight"},Object(r.createElement)("span",null,Object(f.e)(c.variation)))),Object(r.createElement)("a",{ref:P})),(C||w)&&Object(r.createPortal)(Object(r.createElement)(i.Transition,{items:w,onRest:e=>{_(e=>({...e,isTransitioning:!1}))},config:{duration:100,easing:s()(.25,.1,.25,1)},from:w?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:w?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:w?{opacity:1}:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(e,t)=>t?Object(r.createElement)(p.a,{wrapperProps:{style:{...e,...E,...A},...x},onChange:g,value:c,option:a,initialView:t,setInititialView:e=>S(e),currentView:j,previousView:O,setCurrentView:k}):null),document.body))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:i).supported=r,t.unsupported=i},function(e,t,n){var r={"./ab-background.js":58,"./ab-border.js":52,"./ab-box-shadow.js":59,"./ab-color-picker.js":53,"./ab-radio.js":54,"./ab-slider.js":55,"./ab-spacing.js":57,"./ab-switch.js":37,"./ab-typography.js":56};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=51},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),o=n(5),a=n.n(o),s=n(30),c=n(17);const l=(e,t,n)=>Math.max(e,Math.min(t,n));t.default=({value:e,option:t,onChange:n})=>{const[o,u]=Object(r.useState)(!1);return Object(r.createElement)("div",{className:a()("ct-option-border")},Object(r.createElement)("div",{className:a()("ct-value-changer",{active:o,"ct-disabled":"none"===e.style||e.inherit})},Object(r.createElement)("input",{type:"number",value:e.width,onChange:({target:{value:t}})=>n({...e,width:l(1,5,parseInt(t,10)||1)})}),Object(r.createElement)("span",{className:"ct-value-divider"}),Object(r.createElement)("span",{className:"ct-current-value","data-style":e.inherit?"none":e.style,onClick:()=>u(!o)},e.inherit?Object(i.__)("Inherit","affiliatex"):"none"===e.style?e.style:null),Object(r.createElement)(c.a,{disabled:!o,onOutsideClick:()=>{o&&u(!1)}},Object(r.createElement)("ul",{className:"ct-styles-list"},["solid","dashed","dotted","double","none"].reduce((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(i=>Object(r.createElement)("li",{key:i[0]},i.map(i=>Object(r.createElement)("span",{className:a()({active:i===e.style}),"data-style":i,key:i,onClick:()=>{n({...e,style:i,...Object.keys(t.value).indexOf("inherit")>-1?{inherit:!1}:{}}),u(!1)},"data-style":i},"none"===i?i:null))))))),Object(r.createElement)(s.a,{onChange:t=>n({...e,color:t.default}),option:{pickers:[{id:"default",title:"Initial"}]},value:{default:e.color}}))}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(21),o=n(27),a=n(17);t.default=({option:e,values:t,value:n,onChange:s})=>{const[{isPicking:c,isTransitioning:l},u]=Object(r.useState)({isPicking:null,isTransitioning:null}),d=Object(r.useRef)(),f=Object(r.useRef)();return Object(r.createElement)(a.a,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:d},className:"app-color-picker-container",additionalRefs:[f],onOutsideClick:()=>{u(({isPicking:e})=>({isPicking:null,isTransitioning:e}))}},e.pickers.filter(e=>!e.condition||Object(i.a)(Object(i.b)(e.condition),t)).map(t=>Object(r.createElement)(o.a,{containerRef:d,picker:t,key:t.id,option:e,isPicking:c,modalRef:f,isTransitioning:l,onPickingChange:e=>u({isTransitioning:t.id,isPicking:e}),stopTransitioning:()=>u(e=>({...e,isTransitioning:!1})),onChange:e=>s({...n,[t.id]:e}),value:n[t.id]||e.value[t.id]})))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n(11),i=n.n(r),o=n(0),a=n(5),s=n.n(a),c=n(21);class l extends o.Component{renderAsText(){}renderAsRadio(){const{inline:e=!1}=this.props.option;return Object(o.createElement)("div",i()({className:"ct-radio-option"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).map(e=>Object(o.createElement)("label",{key:e},Object(o.createElement)("input",{type:"radio",checked:e===this.props.value,onChange:()=>this.props.onChange(e)}),this.props.option.choices[e])))}render(){if("radio"===this.props.option.view)return this.renderAsRadio();const{inline:e=!1}=this.props.option;return Object(o.createElement)("ul",i()({className:"ct-radio-option ct-buttons-group"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).filter(e=>!this.props.option.conditions||!this.props.option.conditions[e]||Object(c.a)(Object(c.b)(this.props.option.conditions[e]),this.props.values)).map(e=>Object(o.createElement)("li",i()({className:s()({active:e===this.props.value}),onClick:()=>this.props.onChange(e),key:e,dangerouslySetInnerHTML:{__html:this.props.option.choices[e]}},this.props.singleChoiceProps?this.props.singleChoiceProps(e):{}))))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(11),i=n.n(r),o=n(14),a=n.n(o),s=n(0),c=n(5),l=n.n(c),u=n(38),d=n.n(u),f=n(17);const p=(e,t,n)=>Math.max(e,Math.min(t,n)),h=(e,t=1)=>{const n=Math.pow(10,t);return Math.round(e*n+Number.EPSILON)/n},m=({option:e,onChange:t,is_open:n,toggleOpen:r,currentUnit:i,getNumericValue:o,getAllowedDecimalPlaces:a})=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("span",{onClick:()=>r(),className:"ct-current-value"},i||"―"),Object(s.createElement)(f.a,{onOutsideClick:()=>{n&&r()}},Object(s.createElement)("ul",{className:"ct-units-list"},e.units.filter(({unit:e})=>e!==i).reduce((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(n=>Object(s.createElement)("li",{key:n[0].unit},n.map(({unit:n})=>Object(s.createElement)("span",{key:n,onClick:()=>{(n=>{const r=o();t(`${h(p(e.units.find(({unit:e})=>e===n).min,e.units.find(({unit:e})=>e===n).max,""===r?-1/0:r),a(n))}${n}`)})(n),r()}},n||"―")))))));class g extends s.Component{constructor(...e){super(...e),a()(this,"state",{is_dragging:!1,is_open:!1}),a()(this,"el",Object(s.createRef)()),a()(this,"hasUnitsList",()=>this.props.option.units&&this.props.option.units.length>1),a()(this,"getAllowedDecimalPlaces",(e=null)=>{const t=this.props.option.units?this.props.option.units.find(({unit:t})=>t===(e||this.getCurrentUnit())).decimals:this.props.option.decimals;return 0===t||t?t:0}),a()(this,"withDefault",(e,t)=>this.props.option.units&&this.props.option.units.find(({unit:t})=>t===e)?e:e||t),a()(this,"getCurrentUnit",()=>this.props.option.units?this.withDefault(this.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),this.props.option.units[0].unit):""),a()(this,"getMax",()=>this.props.option.units?this.props.option.units.find(({unit:e})=>e===this.getCurrentUnit()).max:this.props.option.max),a()(this,"getMin",()=>this.props.option.units?this.props.option.units.find(({unit:e})=>e===this.getCurrentUnit()).min:this.props.option.min),a()(this,"getNumericValue",({forPosition:e=!1}={})=>{const t=parseFloat(this.props.value,10);if(0===t)return t;if(!t){if(this.props.option.defaultPosition&&"center"===this.props.option.defaultPosition&&e){let e=parseFloat(this.getMin(),10);return(parseFloat(this.getMax(),10)-e)/2+e}return""}return t}),a()(this,"handleMove",e=>{this.state.is_dragging&&this.computeAndSendNewValue(e)}),a()(this,"handleUp",()=>{this.setState({is_dragging:!1}),this.detachEvents()}),a()(this,"handleBlur",()=>{if("CT_CSS_SKIP_RULE"===this.props.option.value){if("CT_CSS_SKIP_RULE"===this.props.value)return;if(""===this.getNumericValue())return void this.props.onChange("CT_CSS_SKIP_RULE")}this.props.onChange(`${p(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),parseFloat(this.getNumericValue(),10))}${this.getCurrentUnit()}`)}),a()(this,"handleChange",e=>{"CT_CSS_SKIP_RULE"!==this.props.option.value||""!==e.toString().trim()?this.props.onChange(`${((e,t)=>Math.min(e,t))(parseFloat(this.getMax(),10),parseFloat(e||this.getMin()))}${this.getCurrentUnit()}`):this.props.onChange("CT_CSS_SKIP_RULE")})}computeAndSendNewValue({pageX:e}){let{top:t,left:n,right:r,width:i}=this.el.current.getBoundingClientRect(),o=e-n-pageXOffset;this.props.onChange(`${h(d()([0,i],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?i-o:o),this.getAllowedDecimalPlaces())}${this.getCurrentUnit()}`)}attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}render(){const e=""+d()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(p(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)));return Object(s.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),Object(s.createElement)("div",i()({onMouseDown:({pageX:e,pageY:t})=>{this.attachEvents(),this.setState({is_dragging:!0})},onClick:e=>this.computeAndSendNewValue(e),ref:this.el,className:"ab-slider"},this.props.option.steps?{"data-steps":""}:{}),Object(s.createElement)("div",{style:{width:e+"%"}}),Object(s.createElement)("span",{style:{"--position":e+"%"}}),this.props.option.steps&&Object(s.createElement)("section",{className:this.props.option.steps},Object(s.createElement)("i",{className:"minus"}),Object(s.createElement)("i",{className:"zero"}),Object(s.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&Object(s.createElement)("div",{className:l()("ab-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},Object(s.createElement)("input",i()({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1/Math.pow(10,this.getAllowedDecimalPlaces()),value:this.getNumericValue(),onBlur:()=>this.handleBlur(),onChange:({target:{value:e}})=>this.handleChange(e)})),Object(s.createElement)("span",{className:"ct-value-divider"}),!this.hasUnitsList()&&Object(s.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&Object(s.createElement)(m,{option:this.props.option,onChange:this.props.onChange,is_open:this.state.is_open,toggleOpen:()=>this.setState({is_open:!this.state.is_open}),currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue,getAllowedDecimalPlaces:this.getAllowedDecimalPlaces})))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(20),o=n(1),a=n(25),s=n.n(a),c=n(5),l=n.n(c),u=n(8),d=n(22),f=n(17),p=n(18),h=n(33);t.default=({option:{label:e="",desc:t="",attr:n={}},option:a,value:c,device:m,onChange:g})=>{const[b,v]=Object(r.useState)("_:_"),y=Object(r.useRef)();let[j,O]=Object(r.useMemo)(()=>b.split(":"),[b]);const k=Object(r.useCallback)(e=>v(`${e}:${j}`),[j]),[{isOpen:w,isTransitioning:C},_]=Object(r.useState)({isOpen:!1,isTransitioning:!1}),{styles:E,popoverProps:x}=Object(d.a)({ref:y,defaultHeight:430,shouldCalculate:C||w}),S=e=>{_(t=>({...t,isOpen:e,isTransitioning:!0}))},L=Object(r.useRef)(),F=Object(r.useRef)(),M=Object(r.useRef)(),P=Object(r.useRef)(),A=Object(r.useMemo)(()=>{const e=j,t="options"===e?F.current:"fonts"===e?L.current:"variations"===e?M.current:F.current;return x.ref&&x.ref.current&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(x.ref.current,t)},[w,j,x.ref,x.ref&&x.ref.current,L&&L.current,M&&M.current,F&&F.current,P&&P.current]);return Object(r.createElement)("div",{className:l()("ct-typography",{})},Object(r.createElement)(f.a,{disabled:!w,useCapture:!1,className:"ct-typohraphy-value",additionalRefs:[x.ref],onOutsideClick:()=>{S(!1)},wrapperProps:{ref:y,onClick:e=>{e.preventDefault(),w?k("options"):(v("options:_"),S("options"))}}},Object(r.createElement)("div",null,Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("fonts"):(v("fonts:_"),S("fonts"))},className:"ct-font",ref:L},Object(r.createElement)("span",null,"Default"===c.family?"Default Family":Object(p.b)(c.family))),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{onClick:e=>{e.stopPropagation(),w?k("options"):(v("options:_"),S("font_size"))},ref:F,className:"ct-size"},Object(r.createElement)("span",null,"CT_CSS_SKIP_RULE"===Object(u.e)(c.size)[m]?Object(o.__)("Default Size","affiliatex"):Object(u.e)(c.size)[m])),Object(r.createElement)("i",null,"/"),Object(r.createElement)("span",{ref:M,onClick:e=>{e.stopPropagation(),w?k("variations"):(v("variations:_"),S("variations"))},className:"ct-weight"},Object(r.createElement)("span",null,Object(p.e)(c.variation)))),Object(r.createElement)("a",{ref:P})),(C||w)&&Object(r.createPortal)(Object(r.createElement)(i.Transition,{items:w,onRest:e=>{_(e=>({...e,isTransitioning:!1}))},config:{duration:100,easing:s()(.25,.1,.25,1)},from:w?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:w?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:w?{opacity:1}:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(e,t)=>t?Object(r.createElement)(h.a,{wrapperProps:{style:{...e,...E,...A},...x},onChange:g,value:c,option:a,initialView:t,setInititialView:e=>S(e),currentView:j,previousView:O,setCurrentView:k}):null),document.body))}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"VERSION",(function(){return u.e})),n.d(r,"restArguments",(function(){return d})),n.d(r,"isObject",(function(){return f})),n.d(r,"isNull",(function(){return p})),n.d(r,"isUndefined",(function(){return h})),n.d(r,"isBoolean",(function(){return m})),n.d(r,"isElement",(function(){return g})),n.d(r,"isString",(function(){return v})),n.d(r,"isNumber",(function(){return y})),n.d(r,"isDate",(function(){return j})),n.d(r,"isRegExp",(function(){return O})),n.d(r,"isError",(function(){return k})),n.d(r,"isSymbol",(function(){return w})),n.d(r,"isArrayBuffer",(function(){return C})),n.d(r,"isDataView",(function(){return P})),n.d(r,"isArray",(function(){return A})),n.d(r,"isFunction",(function(){return x})),n.d(r,"isArguments",(function(){return I})),n.d(r,"isFinite",(function(){return T})),n.d(r,"isNaN",(function(){return N})),n.d(r,"isTypedArray",(function(){return q})),n.d(r,"isEmpty",(function(){return G})),n.d(r,"isMatch",(function(){return Q})),n.d(r,"isEqual",(function(){return Y})),n.d(r,"isMap",(function(){return ce})),n.d(r,"isWeakMap",(function(){return le})),n.d(r,"isSet",(function(){return ue})),n.d(r,"isWeakSet",(function(){return de})),n.d(r,"keys",(function(){return K})),n.d(r,"allKeys",(function(){return ee})),n.d(r,"values",(function(){return fe})),n.d(r,"pairs",(function(){return pe})),n.d(r,"invert",(function(){return he})),n.d(r,"functions",(function(){return me})),n.d(r,"methods",(function(){return me})),n.d(r,"extend",(function(){return be})),n.d(r,"extendOwn",(function(){return ve})),n.d(r,"assign",(function(){return ve})),n.d(r,"defaults",(function(){return ye})),n.d(r,"create",(function(){return Oe})),n.d(r,"clone",(function(){return ke})),n.d(r,"tap",(function(){return we})),n.d(r,"get",(function(){return xe})),n.d(r,"has",(function(){return Se})),n.d(r,"mapObject",(function(){return Ie})),n.d(r,"identity",(function(){return Le})),n.d(r,"constant",(function(){return z})),n.d(r,"noop",(function(){return Te})),n.d(r,"toPath",(function(){return Ce})),n.d(r,"property",(function(){return Me})),n.d(r,"propertyOf",(function(){return Ne})),n.d(r,"matcher",(function(){return Fe})),n.d(r,"matches",(function(){return Fe})),n.d(r,"times",(function(){return ze})),n.d(r,"random",(function(){return De})),n.d(r,"now",(function(){return We})),n.d(r,"escape",(function(){return Ue})),n.d(r,"unescape",(function(){return qe})),n.d(r,"templateSettings",(function(){return Ze})),n.d(r,"template",(function(){return Je})),n.d(r,"result",(function(){return Ye})),n.d(r,"uniqueId",(function(){return tt})),n.d(r,"chain",(function(){return nt})),n.d(r,"iteratee",(function(){return Re})),n.d(r,"partial",(function(){return ot})),n.d(r,"bind",(function(){return at})),n.d(r,"bindAll",(function(){return lt})),n.d(r,"memoize",(function(){return ut})),n.d(r,"delay",(function(){return dt})),n.d(r,"defer",(function(){return ft})),n.d(r,"throttle",(function(){return pt})),n.d(r,"debounce",(function(){return ht})),n.d(r,"wrap",(function(){return mt})),n.d(r,"negate",(function(){return gt})),n.d(r,"compose",(function(){return bt})),n.d(r,"after",(function(){return vt})),n.d(r,"before",(function(){return yt})),n.d(r,"once",(function(){return jt})),n.d(r,"findKey",(function(){return Ot})),n.d(r,"findIndex",(function(){return wt})),n.d(r,"findLastIndex",(function(){return Ct})),n.d(r,"sortedIndex",(function(){return _t})),n.d(r,"indexOf",(function(){return xt})),n.d(r,"lastIndexOf",(function(){return St})),n.d(r,"find",(function(){return Lt})),n.d(r,"detect",(function(){return Lt})),n.d(r,"findWhere",(function(){return Ft})),n.d(r,"each",(function(){return Mt})),n.d(r,"forEach",(function(){return Mt})),n.d(r,"map",(function(){return Pt})),n.d(r,"collect",(function(){return Pt})),n.d(r,"reduce",(function(){return Rt})),n.d(r,"foldl",(function(){return Rt})),n.d(r,"inject",(function(){return Rt})),n.d(r,"reduceRight",(function(){return Vt})),n.d(r,"foldr",(function(){return Vt})),n.d(r,"filter",(function(){return It})),n.d(r,"select",(function(){return It})),n.d(r,"reject",(function(){return Tt})),n.d(r,"every",(function(){return Nt})),n.d(r,"all",(function(){return Nt})),n.d(r,"some",(function(){return zt})),n.d(r,"any",(function(){return zt})),n.d(r,"contains",(function(){return Dt})),n.d(r,"includes",(function(){return Dt})),n.d(r,"include",(function(){return Dt})),n.d(r,"invoke",(function(){return Wt})),n.d(r,"pluck",(function(){return Ht})),n.d(r,"where",(function(){return Bt})),n.d(r,"max",(function(){return Ut})),n.d(r,"min",(function(){return qt})),n.d(r,"shuffle",(function(){return $t})),n.d(r,"sample",(function(){return Zt})),n.d(r,"sortBy",(function(){return Kt})),n.d(r,"groupBy",(function(){return Qt})),n.d(r,"indexBy",(function(){return Xt})),n.d(r,"countBy",(function(){return Jt})),n.d(r,"partition",(function(){return Yt})),n.d(r,"toArray",(function(){return tn})),n.d(r,"size",(function(){return nn})),n.d(r,"pick",(function(){return on})),n.d(r,"omit",(function(){return an})),n.d(r,"first",(function(){return cn})),n.d(r,"head",(function(){return cn})),n.d(r,"take",(function(){return cn})),n.d(r,"initial",(function(){return sn})),n.d(r,"last",(function(){return un})),n.d(r,"rest",(function(){return ln})),n.d(r,"tail",(function(){return ln})),n.d(r,"drop",(function(){return ln})),n.d(r,"compact",(function(){return dn})),n.d(r,"flatten",(function(){return fn})),n.d(r,"without",(function(){return hn})),n.d(r,"uniq",(function(){return mn})),n.d(r,"unique",(function(){return mn})),n.d(r,"union",(function(){return gn})),n.d(r,"intersection",(function(){return bn})),n.d(r,"difference",(function(){return pn})),n.d(r,"unzip",(function(){return vn})),n.d(r,"transpose",(function(){return vn})),n.d(r,"zip",(function(){return yn})),n.d(r,"object",(function(){return jn})),n.d(r,"range",(function(){return On})),n.d(r,"chunk",(function(){return kn})),n.d(r,"mixin",(function(){return Cn})),n.d(r,"default",(function(){return En}));var i=n(11),o=n.n(i),a=n(0),s=n(1),c=n(5),l=n.n(c),u=n(6);function d(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function f(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function p(e){return null===e}function h(e){return void 0===e}function m(e){return!0===e||!1===e||"[object Boolean]"===u.t.call(e)}function g(e){return!(!e||1!==e.nodeType)}function b(e){var t="[object "+e+"]";return function(e){return u.t.call(e)===t}}var v=b("String"),y=b("Number"),j=b("Date"),O=b("RegExp"),k=b("Error"),w=b("Symbol"),C=b("ArrayBuffer"),_=b("Function"),E=u.p.document&&u.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof E&&(_=function(e){return"function"==typeof e||!1});var x=_,S=b("Object"),L=u.s&&S(new DataView(new ArrayBuffer(8))),F="undefined"!=typeof Map&&S(new Map),M=b("DataView"),P=L?function(e){return null!=e&&x(e.getInt8)&&C(e.buffer)}:M,A=u.k||b("Array");function R(e,t){return null!=e&&u.i.call(e,t)}var V=b("Arguments");!function(){V(arguments)||(V=function(e){return R(e,"callee")})}();var I=V;function T(e){return!w(e)&&Object(u.f)(e)&&!isNaN(parseFloat(e))}function N(e){return y(e)&&Object(u.g)(e)}function z(e){return function(){return e}}function D(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=u.b}}function W(e){return function(t){return null==t?void 0:t[e]}}var H=W("byteLength"),B=D(H),U=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,q=u.r?function(e){return u.l?Object(u.l)(e)&&!P(e):B(e)&&U.test(u.t.call(e))}:z(!1),Z=W("length");function $(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=u.n.length,r=e.constructor,i=x(r)&&r.prototype||u.c,o="constructor";for(R(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=u.n[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function K(e){if(!f(e))return[];if(u.m)return Object(u.m)(e);var t=[];for(var n in e)R(e,n)&&t.push(n);return u.h&&$(e,t),t}function G(e){if(null==e)return!0;var t=Z(e);return"number"==typeof t&&(A(e)||v(e)||I(e))?0===t:0===Z(K(e))}function Q(e,t){var n=K(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function X(e){return e instanceof X?e:this instanceof X?void(this._wrapped=e):new X(e)}function J(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,H(e))}function Y(e,t){return function e(t,n,r,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var o=typeof t;return("function"===o||"object"===o||"object"==typeof n)&&function t(n,r,i,o){n instanceof X&&(n=n._wrapped),r instanceof X&&(r=r._wrapped);var a=u.t.call(n);if(a!==u.t.call(r))return!1;if(L&&"[object Object]"==a&&P(n)){if(!P(r))return!1;a="[object DataView]"}switch(a){case"[object RegExp]":case"[object String]":return""+n==""+r;case"[object Number]":return+n!=+n?+r!=+r:0==+n?1/+n==1/r:+n==+r;case"[object Date]":case"[object Boolean]":return+n==+r;case"[object Symbol]":return u.d.valueOf.call(n)===u.d.valueOf.call(r);case"[object ArrayBuffer]":case"[object DataView]":return t(J(n),J(r),i,o)}var s="[object Array]"===a;if(!s&&q(n)){if(H(n)!==H(r))return!1;if(n.buffer===r.buffer&&n.byteOffset===r.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof n||"object"!=typeof r)return!1;var c=n.constructor,l=r.constructor;if(c!==l&&!(x(c)&&c instanceof c&&x(l)&&l instanceof l)&&"constructor"in n&&"constructor"in r)return!1}o=o||[];for(var d=(i=i||[]).length;d--;)if(i[d]===n)return o[d]===r;if(i.push(n),o.push(r),s){if((d=n.length)!==r.length)return!1;for(;d--;)if(!e(n[d],r[d],i,o))return!1}else{var f,p=K(n);if(d=p.length,K(r).length!==d)return!1;for(;d--;)if(!R(r,f=p[d])||!e(n[f],r[f],i,o))return!1}return i.pop(),o.pop(),!0}(t,n,r,i)}(e,t)}function ee(e){if(!f(e))return[];var t=[];for(var n in e)t.push(n);return u.h&&$(e,t),t}function te(e){var t=Z(e);return function(n){if(null==n)return!1;var r=ee(n);if(Z(r))return!1;for(var i=0;i<t;i++)if(!x(n[e[i]]))return!1;return e!==ae||!x(n[ne])}}X.VERSION=u.e,X.prototype.value=function(){return this._wrapped},X.prototype.valueOf=X.prototype.toJSON=X.prototype.value,X.prototype.toString=function(){return String(this._wrapped)};var ne="forEach",re=["clear","delete"],ie=["get","has","set"],oe=re.concat(ne,ie),ae=re.concat(ie),se=["add"].concat(re,ne,"has"),ce=F?te(oe):b("Map"),le=F?te(ae):b("WeakMap"),ue=F?te(se):b("Set"),de=b("WeakSet");function fe(e){for(var t=K(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function pe(e){for(var t=K(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function he(e){for(var t={},n=K(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function me(e){var t=[];for(var n in e)x(e[n])&&t.push(n);return t.sort()}function ge(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,c=0;c<s;c++){var l=a[c];t&&void 0!==n[l]||(n[l]=o[l])}return n}}var be=ge(ee),ve=ge(K),ye=ge(ee,!0);function je(e){if(!f(e))return{};if(u.j)return Object(u.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Oe(e,t){var n=je(e);return t&&ve(n,t),n}function ke(e){return f(e)?A(e)?e.slice():be({},e):e}function we(e,t){return t(e),e}function Ce(e){return A(e)?e:[e]}function _e(e){return X.toPath(e)}function Ee(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function xe(e,t,n){var r=Ee(e,_e(t));return h(r)?n:r}function Se(e,t){for(var n=(t=_e(t)).length,r=0;r<n;r++){var i=t[r];if(!R(e,i))return!1;e=e[i]}return!!n}function Le(e){return e}function Fe(e){return e=ve({},e),function(t){return Q(t,e)}}function Me(e){return e=_e(e),function(t){return Ee(t,e)}}function Pe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ae(e,t,n){return null==e?Le:x(e)?Pe(e,t,n):f(e)&&!A(e)?Fe(e):Me(e)}function Re(e,t){return Ae(e,t,1/0)}function Ve(e,t,n){return X.iteratee!==Re?X.iteratee(e,t):Ae(e,t,n)}function Ie(e,t,n){t=Ve(t,n);for(var r=K(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o}function Te(){}function Ne(e){return null==e?Te:function(t){return xe(e,t)}}function ze(e,t,n){var r=Array(Math.max(0,e));t=Pe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}X.toPath=Ce,X.iteratee=Re;var We=Date.now||function(){return(new Date).getTime()};function He(e){var t=function(t){return e[t]},n="(?:"+K(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Be={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=He(Be),qe=He(he(Be)),Ze=X.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},$e=/(.)^/,Ke={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ge=/\\|'|\r|\n|\u2028|\u2029/g;function Qe(e){return"\\"+Ke[e]}var Xe=/^\s*(\w|\$)+\s*$/;function Je(e,t,n){!t&&n&&(t=n),t=ye({},t,X.templateSettings);var r=RegExp([(t.escape||$e).source,(t.interpolate||$e).source,(t.evaluate||$e).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(Ge,Qe),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,s=t.variable;if(s){if(!Xe.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(e){throw e.source=o,e}var c=function(e){return a.call(this,e,X)};return c.source="function("+s+"){\n"+o+"}",c}function Ye(e,t,n){var r=(t=_e(t)).length;if(!r)return x(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=x(o)?o.call(e):o}return e}var et=0;function tt(e){var t=++et+"";return e?e+t:t}function nt(e){var t=X(e);return t._chain=!0,t}function rt(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=je(e.prototype),a=e.apply(o,i);return f(a)?a:o}var it=d((function(e,t){var n=it.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return rt(e,r,this,this,a)};return r}));it.placeholder=X;var ot=it,at=d((function(e,t,n){if(!x(e))throw new TypeError("Bind must be called on a function");var r=d((function(i){return rt(e,r,t,this,n.concat(i))}));return r})),st=D(Z);function ct(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=Z(e);o<a;o++){var s=e[o];if(st(s)&&(A(s)||I(s)))if(t>1)ct(s,t-1,n,r),i=r.length;else for(var c=0,l=s.length;c<l;)r[i++]=s[c++];else n||(r[i++]=s)}return r}var lt=d((function(e,t){var n=(t=ct(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=at(e[r],e)}return e}));function ut(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return R(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var dt=d((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),ft=ot(dt,X,1);function pt(e,t,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:We(),r=null,a=e.apply(i,o),r||(i=o=null)},l=function(){var l=We();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=l,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}function ht(e,t,n){var r,i,o,a,s,c=function(){var l=We()-i;t>l?r=setTimeout(c,t-l):(r=null,n||(a=e.apply(s,o)),r||(o=s=null))},l=d((function(l){return s=this,o=l,i=We(),r||(r=setTimeout(c,t),n&&(a=e.apply(s,o))),a}));return l.cancel=function(){clearTimeout(r),r=o=s=null},l}function mt(e,t){return ot(t,e)}function gt(e){return function(){return!e.apply(this,arguments)}}function bt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function vt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function yt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var jt=ot(yt,2);function Ot(e,t,n){t=Ve(t,n);for(var r,i=K(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function kt(e){return function(t,n,r){n=Ve(n,r);for(var i=Z(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var wt=kt(1),Ct=kt(-1);function _t(e,t,n,r){for(var i=(n=Ve(n,r,1))(t),o=0,a=Z(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function Et(e,t,n){return function(r,i,o){var a=0,s=Z(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.q.call(r,a,s),N))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}}var xt=Et(1,wt,_t),St=Et(-1,Ct);function Lt(e,t,n){var r=(st(e)?wt:Ot)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Ft(e,t){return Lt(e,Fe(t))}function Mt(e,t,n){var r,i;if(t=Pe(t,n),st(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=K(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Pt(e,t,n){t=Ve(t,n);for(var r=!st(e)&&K(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function At(e){var t=function(t,n,r,i){var o=!st(t)&&K(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Pe(n,i,4),r,o)}}var Rt=At(1),Vt=At(-1);function It(e,t,n){var r=[];return t=Ve(t,n),Mt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function Tt(e,t,n){return It(e,gt(Ve(t)),n)}function Nt(e,t,n){t=Ve(t,n);for(var r=!st(e)&&K(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function zt(e,t,n){t=Ve(t,n);for(var r=!st(e)&&K(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Dt(e,t,n,r){return st(e)||(e=fe(e)),("number"!=typeof n||r)&&(n=0),xt(e,t,n)>=0}var Wt=d((function(e,t,n){var r,i;return x(t)?i=t:(t=_e(t),r=t.slice(0,-1),t=t[t.length-1]),Pt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=Ee(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function Ht(e,t){return Pt(e,Me(t))}function Bt(e,t){return It(e,Fe(t))}function Ut(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=st(e)?e:fe(e)).length;s<c;s++)null!=(r=e[s])&&r>o&&(o=r);else t=Ve(t,n),Mt(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function qt(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=st(e)?e:fe(e)).length;s<c;s++)null!=(r=e[s])&&r<o&&(o=r);else t=Ve(t,n),Mt(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}function Zt(e,t,n){if(null==t||n)return st(e)||(e=fe(e)),e[De(e.length-1)];var r=st(e)?ke(e):fe(e),i=Z(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=De(a,o),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)}function $t(e){return Zt(e,1/0)}function Kt(e,t,n){var r=0;return t=Ve(t,n),Ht(Pt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Gt(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Ve(r,i),Mt(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Qt=Gt((function(e,t,n){R(e,n)?e[n].push(t):e[n]=[t]})),Xt=Gt((function(e,t,n){e[n]=t})),Jt=Gt((function(e,t,n){R(e,n)?e[n]++:e[n]=1})),Yt=Gt((function(e,t,n){e[n?0:1].push(t)}),!0),en=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function tn(e){return e?A(e)?u.q.call(e):v(e)?e.match(en):st(e)?Pt(e,Le):fe(e):[]}function nn(e){return null==e?0:st(e)?e.length:K(e).length}function rn(e,t,n){return t in n}var on=d((function(e,t){var n={},r=t[0];if(null==e)return n;x(r)?(t.length>1&&(r=Pe(r,t[1])),t=ee(e)):(r=rn,t=ct(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),an=d((function(e,t){var n,r=t[0];return x(r)?(r=gt(r),t.length>1&&(n=t[1])):(t=Pt(ct(t,!1,!1),String),r=function(e,n){return!Dt(t,n)}),on(e,r,n)}));function sn(e,t,n){return u.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function cn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:sn(e,e.length-t)}function ln(e,t,n){return u.q.call(e,null==t||n?1:t)}function un(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:ln(e,Math.max(0,e.length-t))}function dn(e){return It(e,Boolean)}function fn(e,t){return ct(e,t,!1)}var pn=d((function(e,t){return t=ct(t,!0,!0),It(e,(function(e){return!Dt(t,e)}))})),hn=d((function(e,t){return pn(e,t)}));function mn(e,t,n,r){m(t)||(r=n,n=t,t=!1),null!=n&&(n=Ve(n,r));for(var i=[],o=[],a=0,s=Z(e);a<s;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?Dt(o,l)||(o.push(l),i.push(c)):Dt(i,c)||i.push(c)}return i}var gn=d((function(e){return mn(ct(e,!0,!0))}));function bn(e){for(var t=[],n=arguments.length,r=0,i=Z(e);r<i;r++){var o=e[r];if(!Dt(t,o)){var a;for(a=1;a<n&&Dt(arguments[a],o);a++);a===n&&t.push(o)}}return t}function vn(e){for(var t=e&&Ut(e,Z).length||0,n=Array(t),r=0;r<t;r++)n[r]=Ht(e,r);return n}var yn=d(vn);function jn(e,t){for(var n={},r=0,i=Z(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function On(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function kn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.q.call(e,r,r+=t));return n}function wn(e,t){return e._chain?X(t).chain():t}function Cn(e){return Mt(me(e),(function(t){var n=X[t]=e[t];X.prototype[t]=function(){var e=[this._wrapped];return u.o.apply(e,arguments),wn(this,n.apply(X,e))}})),X}Mt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=u.a[e];X.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),wn(this,n)}})),Mt(["concat","join","slice"],(function(e){var t=u.a[e];X.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),wn(this,e)}}));var En=X,xn=Cn(r);xn._=xn;var Sn=xn,Ln=({disabled:e,className:t="",value:n,onBlur:r,onChange:i,placeholder:o=Object(s.__)("Default","affiliatex")})=>Object(a.createElement)("input",{type:"text",value:n,onKeyDown:e=>{Sn.contains([46,8,9,27,13,110,190,27],e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||109==e.keyCode||189==e.keyCode||173==e.keyCode||67==e.keyCode&&!0===e.ctrlKey||88==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&Sn.isNumber(parseInt(n,10))&&i(parseInt(n,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&Sn.isNumber(parseInt(n,10))&&i(parseInt(n,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:({target:{value:e}})=>i(e),placeholder:o,onBlur:()=>r&&r,className:l()({inactive:"auto"===n})}),Fn=n(17);t.default=({value:e,option:t,onChange:n})=>{const[r,i]=Object(a.useState)(!1),c=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}],u=()=>["top","right","bottom","left"].find(t=>"auto"!==e[t]),d=()=>{return t=e[u()].toString().replace(/[0-9]/g,"").replace(/\./g,""),c.find(({unit:e})=>e===t)?t:t||c[0].unit;var t},f=(e,t="")=>"auto"===e?e:`${0===parseFloat(e)?0:parseFloat(e)||""}${t}`;return Object(a.createElement)("div",{className:l()("ct-option-spacing",{linked:e.linked})},["top","right","bottom","left"].map(r=>Object(a.createElement)("span",{key:r},Object(a.createElement)(Ln,o()({placeholder:"",value:f(e[r]),onChange:t=>{return i=t,o=r,void(e.linked?n({...e,top:"auto"===e.top?e.top:f(i,d()),left:"auto"===e.left?e.left:f(i,d()),right:"auto"===e.right?e.right:f(i,d()),bottom:"auto"===e.bottom?e.bottom:f(i,d())}):n({...e,[o]:f(i,d())}));var i,o},placeholder:""},t.inputAttr)),Object(a.createElement)("small",null,{top:Object(s.__)("Top","affiliatex"),bottom:Object(s.__)("Bottom","affiliatex"),left:Object(s.__)("Left","affiliatex"),right:Object(s.__)("Right","affiliatex")}[r]))),Object(a.createElement)("div",{className:l()("ct-spacing-controls ct-value-changer",{active:r})},Object(a.createElement)("a",{onClick:t=>{if(t.preventDefault(),e.linked)return void n({...e,linked:!1});const r=e[u()];n({...e,top:"auto"!==e.top?r:e.top,left:"auto"!==e.left?r:e.left,bottom:"auto"!==e.bottom?r:e.bottom,right:"auto"!==e.right?r:e.right,linked:!0})}},Object(a.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},e.linked?Object(a.createElement)("path",{d:"M12.2,5.5V4.7c0-2.6-2.1-4.7-4.7-4.7S2.8,2.1,2.8,4.7v0.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z M10.7,5.5H4.3V4.7c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2V5.5z"}):Object(a.createElement)("path",{d:"M12.2,5.5h-1.6H9.9h-5H4.7l0-0.2C4.4,3.5,5.5,1.9,7.3,1.5c1.1-0.2,2.2,0.1,2.8,0.9l1.3-0.9c-1-1.1-2.6-1.8-4.3-1.5C4.5,0.5,2.8,2.9,3.2,5.5H2.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z"}))),Object(a.createElement)("span",{className:"ct-value-divider"}),Object(a.createElement)("div",{onClick:()=>i(!r),className:"ct-current-value"},d()||"―"),Object(a.createElement)(Fn.a,{onOutsideClick:()=>{r&&i(!1)}},Object(a.createElement)("ul",{className:"ct-units-list"},c.filter(({unit:e})=>e!==d()).reduce((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(t=>Object(a.createElement)("li",{key:t[0].unit},t.map(({unit:t})=>Object(a.createElement)("span",{key:t,onClick:()=>{n({...e,top:f(e.top,t),left:f(e.left,t),right:f(e.right,t),bottom:f(e.bottom,t)}),i(!1)}},t||"―"))))))))}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),o=n(5),a=n.n(o),s=n(17),c=n(22),l=n(3);const u=[{id:"type-1",title:Object(i.__)("Hideout","affiliatex"),src:"patterns/hideout.svg"},{id:"type-2",title:Object(i.__)("Triangles","affiliatex"),src:"patterns/triangles.svg"},{id:"type-3",title:Object(i.__)("Bubbles","affiliatex"),src:"patterns/bubbles.svg"},{id:"type-4",title:Object(i.__)("Wiggle","affiliatex"),src:"patterns/wiggle.svg"},{id:"type-5",title:Object(i.__)("Polka Dots","affiliatex"),src:"patterns/polka-dots.svg"},{id:"type-6",title:Object(i.__)("Overlaping Circles","affiliatex"),src:"patterns/overlaping-circles.svg"},{id:"type-7",title:Object(i.__)("Texture","affiliatex"),src:"patterns/texture.svg"},{id:"type-8",title:Object(i.__)("Diagonal Lines","affiliatex"),src:"patterns/diagonal-lines.svg"},{id:"type-9",title:Object(i.__)("Rain","affiliatex"),src:"patterns/rain.svg"},{id:"type-10",title:Object(i.__)("Stripes","affiliatex"),src:"patterns/stripes.svg"},{id:"type-11",title:Object(i.__)("Diagonal Stripes","affiliatex"),src:"patterns/diagonal-stripes.svg"},{id:"type-12",title:Object(i.__)("Intersecting Circles","affiliatex"),src:"patterns/intersecting-circles.svg"},{id:"type-13",title:Object(i.__)("Bank Note","affiliatex"),src:"patterns/bank-note.svg"},{id:"type-14",title:Object(i.__)("Zig Zag","affiliatex"),src:"patterns/zig-zag.svg"},{id:"type-15",title:Object(i.__)("Endless Clouds","affiliatex"),src:"patterns/endless-clouds.svg"},{id:"type-16",title:Object(i.__)("Honey Comb","affiliatex"),src:"patterns/honey-comb.svg"},{id:"type-17",title:Object(i.__)("Cross Stripes","affiliatex"),src:"patterns/cross-stripes.svg"},{id:"type-18",title:Object(i.__)("Autumn","affiliatex"),src:"patterns/autumn.svg"}];var d=({option:e,value:t,onChange:n})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:"ct-patterns-list"},u.map(e=>Object(r.createElement)("li",{onClick:()=>n({...t,background_pattern:e.id}),className:a()({active:e.id===t.background_pattern}),key:e.id,title:e.title},Object(r.createElement)("img",{src:(window.rt_localizations||rt_customizer_localizations).static_public_url+"images/"+e.src})))),Object(r.createElement)(l.a,{value:t.patternColor,values:t,option:{id:"patternColor",label:Object(i.__)("Pattern Color","affiliatex"),type:"ct-color-picker",design:"inline",value:e.value.patternColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],skipNoColorPill:!0,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>n({...t,patternColor:e})})),f=({option:e,value:t,onChange:n,setOutsideClickFreezed:o})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.a,{value:t.background_image,values:t,option:{id:"background_image",label:!1,type:"ct-image-uploader",value:e.value.background_image,has_position_picker:!0,emptyLabel:Object(i.__)("Select Image","affiliatex"),filledLabel:Object(i.__)("Change Image","affiliatex"),onFrameOpen:()=>{o(!0)},onFrameClose:()=>{o(!1)}},hasRevertButton:!1,onChange:e=>n({...t,background_image:e})}),Object(r.createElement)(l.a,{value:t.background_repeat,values:t,option:{id:"background_repeat",label:Object(i.__)("Background Repeat","affiliatex"),attr:{"data-type":"repeat"},type:"ct-radio",view:"text",design:"block",value:e.value.background_repeat,choices:{"no-repeat":'<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>',"repeat-x":'<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>',"repeat-y":'<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>',repeat:'<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>'}},hasRevertButton:!1,onChange:e=>n({...t,background_repeat:e})}),Object(r.createElement)(l.a,{value:t.background_size,values:t,option:{id:"background_size",label:Object(i.__)("Background Size","affiliatex"),type:"ct-radio",view:"text",design:"block",value:e.value.background_size,choices:{auto:Object(i.__)("Auto","affiliatex"),cover:Object(i.__)("Cover","affiliatex"),contain:Object(i.__)("Contain","affiliatex")}},hasRevertButton:!1,onChange:e=>n({...t,background_size:e})}),Object(r.createElement)(l.a,{value:t.background_attachment,values:t,option:{id:"background_size",label:Object(i.__)("Background Attachment","affiliatex"),type:"ct-radio",view:"text",design:"block",value:e.value.background_attachment,choices:{scroll:Object(i.__)("Scroll","affiliatex"),fixed:Object(i.__)("Fixed","affiliatex"),inherit:Object(i.__)("Inherit","affiliatex")}},hasRevertButton:!1,onChange:e=>n({...t,background_attachment:e})}),t.background_image.url&&Object(r.createElement)(l.a,{value:t.overlayColor,values:t,option:{id:"overlayColor",label:Object(i.__)("Image Overlay Color","affiliatex"),type:"ct-color-picker",design:"inline",value:e.value.overlayColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>n({...t,overlayColor:e})})),p=n(24),h=({option:e,value:t,isOpen:n,onChange:o,setOutsideClickFreezed:s})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:e=>{e.preventDefault()}},["color","gradient","image"].map(e=>Object(r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===t.background_type||"image"===e&&("pattern"===t.background_type||"image"===t.background_type)}),onClick:()=>o({...t,background_type:e,..."gradient"===e?{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}:{}})},{color:Object(i.__)("Color","affiliatex"),gradient:Object(i.__)("Gradient","affiliatex"),image:Object(i.__)("Image","affiliatex")}[e]))),Object(r.createElement)("div",{className:a()({"ct-image-tab ct-options-container":"image"===t.background_type||"pattern"===t.background_type,"ct-gradient-tab ct-color-picker-modal":"gradient"===t.background_type,"ct-color-tab":"color"===t.background_type})},("image"===t.background_type||"pattern"===t.background_type)&&Object(r.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:e=>{e.preventDefault()}},["image","pattern"].map(e=>Object(r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===t.background_type}),onClick:()=>o({...t,background_type:e})},{pattern:Object(i.__)("Pattern","affiliatex"),image:Object(i.__)("Image","affiliatex")}[e]))),"pattern"===t.background_type&&Object(r.createElement)(d,{option:e,onChange:o,value:t}),"image"===t.background_type&&Object(r.createElement)(f,{setOutsideClickFreezed:s,option:e,onChange:o,value:t}),"gradient"===t.background_type&&Object(r.createElement)(p.a,{value:t,onChange:o}),"gradient"!==t.background_type&&Object(r.createElement)(l.a,{value:t.backgroundColor,values:t,option:{id:"backgroundColor",label:"color"!==t.background_type&&Object(i.__)("Background Color","affiliatex"),type:"ct-color-picker",skipNoColorPill:!0,design:"color"===t.background_type?"none":"inline",value:e.value.backgroundColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],inline_modal:"color"===t.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>o({...t,backgroundColor:e})})));t.default=({option:e,value:t,onChange:n})=>{const[o,l]=Object(r.useState)(!1),[d,f]=Object(r.useState)(!1),p=Object(r.useRef)(),m="color"===(t=(e=>!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e)(t)).background_type&&("CT_CSS_SKIP_RULE"===t.backgroundColor.default.color||"transparent"===t.backgroundColor.default.color),{styles:g,popoverProps:b}=Object(c.a)({ref:p,defaultHeight:434,shouldCalculate:p&&p.current});return Object(r.createElement)("div",{ref:p,className:a()("ct-background",{active:o})},Object(r.createElement)("div",{className:a()("ct-background-preview",{"no-color":m}),onClick:e=>{e.preventDefault(),l(!o),"color"===t.background_type&&("CT_CSS_SKIP_RULE"!==t.backgroundColor.default.color&&"transparent"!==t.backgroundColor.default.color||n({...t,backgroundColor:{default:{color:"#ffffff"}}}))},"data-background-type":t.background_type,style:{...t.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:t.backgroundColor.default.color},"--background-position":`${Math.round(100*parseFloat(t.background_image.x))}% ${Math.round(100*parseFloat(t.background_image.y))}%`,"--pattern-mask":"pattern"===t.background_type?`url(${v=t.background_pattern,(window.rt_localizations||rt_customizer_localizations).static_public_url+"images/"+u.find(e=>e.id===v).src})`:"","--background-image":"gradient"===t.background_type?t.gradient:t.background_image.url?`url(${t.background_image.url})`:"none","--pattern-color":t.patternColor.default.color}},Object(r.createElement)("i",{className:"ct-tooltip-top"},{inherit:Object(i.__)("Inherited","affliatex"),pattern:Object(i.__)("Pattern","affliatex"),gradient:Object(i.__)("Gradient","affliatex"),color:Object(i.__)("Color","affliatex"),image:Object(i.__)("Image","affliatex")}[m?"inherit":t.background_type]),m&&Object(r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},Object(r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),p&&p.current&&Object(r.createPortal)(Object(r.createElement)(s.a,{useCapture:!1,display:"block",disabled:!o||d,onOutsideClick:()=>{setTimeout(()=>l(!1))},wrapperProps:{style:g,...b,className:a()("ct-option-modal ct-background-modal",{active:o})}},Object(r.createElement)(h,{onChange:n,value:t,option:e,isOpen:o,setOutsideClickFreezed:f})),document.body));var v}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),o=n(5),a=n.n(o),s=n(27),c=n(17),l=n(11),u=n.n(l),d=n(25),f=n.n(d),p=n(31),h=n(3),m=n(22),g=n(37),b=({option:e,value:t,onChange:n,picker:o,onPickingChange:s,stopTransitioning:c,el:l,hOffsetRef:d,vOffsetRef:b,blurRef:v,spreadRef:y,isTransitioning:j,isPicking:O})=>{const{styles:k,popoverProps:w}=Object(m.a)({ref:l,defaultHeight:e.hide_shadow_placement?437:507,shouldCalculate:j===o.id||(O||"").split(":")[0]===o.id});return(j===o.id||(O||"").split(":")[0]===o.id)&&Object(r.createPortal)(Object(r.createElement)(p.a,{items:O,onRest:e=>{c()},config:{duration:100,easing:f()(.25,.1,.25,1)},from:-1===(O||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(O||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(O||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},s=>(s||"").split(":")[0]===o.id&&(o=>Object(r.createElement)("div",u()({style:{...o,...k}},w,{className:"ct-option-modal ct-box-shadow-modal",onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDownCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),Object(r.createElement)("div",{className:"ct-shadow-trigger"},Object(r.createElement)("label",null,Object(i.__)("Enable/Disable","affiliatex")),Object(r.createElement)(g.default,{value:t.enable?"yes":"no",onChange:()=>{n({...t,enable:!t.enable})}})),Object(r.createElement)("div",{className:"shadow-sliders"},Object(r.createElement)(h.a,{value:t.h_offset,values:t,id:"h_offset",option:{id:"h_offset",label:Object(i.__)("Horizontal Offset","affiliatex"),type:"ab-slider",steps:"half",value:e.value.h_offset,min:-100,max:100,design:"compact",ref:d},hasRevertButton:!1,onChange:e=>n({...t,h_offset:e})}),Object(r.createElement)(h.a,{value:t.v_offset,values:t,id:"v_offset",option:{steps:"half",id:"v_offset",label:Object(i.__)("Vertical Offset","affiliatex"),type:"ab-slider",value:e.value.v_offset,min:-100,max:100,design:"compact",ref:b},hasRevertButton:!1,onChange:e=>n({...t,v_offset:e})}),Object(r.createElement)(h.a,{value:t.blur,values:t,id:"blur",option:{steps:"positive",id:"blur",label:Object(i.__)("Blur","affiliatex"),type:"ab-slider",value:e.value.blur,min:0,max:100,design:"compact",ref:v},hasRevertButton:!1,onChange:e=>{n({...t,blur:e})}}),Object(r.createElement)(h.a,{value:t.spread,values:t,id:"spread",option:{steps:"half",id:"spread",label:Object(i.__)("Spread","affiliatex"),type:"ab-slider",value:e.value.spread,min:-100,max:100,design:"compact",ref:y},hasRevertButton:!1,onChange:e=>n({...t,spread:e})})),!e.hide_shadow_placement&&Object(r.createElement)("ul",{className:"ct-shadow-style"},Object(r.createElement)("li",{onClick:()=>n({...t,inset:!1}),className:a()({active:!t.inset})},"Outline"),Object(r.createElement)("li",{onClick:()=>n({...t,inset:!0}),className:a()({active:t.inset})},"Inset"))))),document.body)};t.default=({value:e,option:t,onChange:n})=>{const[{isPicking:o,isTransitioning:l},u]=Object(r.useState)({isPicking:null,isTransitioning:null}),[d,f]=Object(r.useState)(null),p=Object(r.useRef)(),h=Object(r.useRef)(),m=Object(r.useRef)(),g=Object(r.useRef)(),v=Object(r.useRef)(),y=Object(r.useRef)(),j=Object(r.useRef)(),O=Object(r.useRef)();return Object(r.createElement)("div",{ref:p,className:a()("ct-box-shadow",{"ct-disabled":!e.enable||e.inherit})},Object(r.createElement)(s.a,{innerRef:h,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:o,isTransitioning:l,modalRef:O,containerRef:j,onPickingChange:t=>{e.enable&&u({isTransitioning:"default",isPicking:t})},stopTransitioning:()=>u({isPicking:o,isTransitioning:!1}),onChange:t=>n({...e,color:t}),value:e.color}),Object(r.createElement)(c.a,{useCapture:!1,disabled:!o,className:"ct-box-shadow-values",additionalRefs:[h,O],onOutsideClick:()=>{o&&u({isTransitioning:o.split(":")[0],isPicking:null})},wrapperProps:{ref:j,onClick:e=>{e.preventDefault();let t=o?"opts"===o.split(":")[0]?null:"opts:"+o.split(":")[0]:"opts";u({isTransitioning:"opts",isPicking:t})}}},Object(r.createElement)("span",null,e.inherit?Object(i.__)("Inherit","affiliatex"):e.enable?Object(i.__)("Adjust","affiliatex"):Object(i.__)("None","affiliatex"))),Object(r.createElement)(b,{el:p,value:e,onChange:e=>n({...e,inherit:!1}),option:t,isPicking:o,isTransitioning:l,hOffsetRef:m,vOffsetRef:g,blurRef:v,spreadRef:y,picker:{id:"opts"},onPickingChange:t=>{e.enable&&u({isTransitioning:"opts",isPicking:t})},stopTransitioning:()=>u({isPicking:o,isTransitioning:!1})}))}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3);n.d(t,"GenericOptionType",(function(){return r.a}));var i=n(30);n.d(t,"ColorPicker",(function(){return i.a}));var o=n(26);n.d(t,"IconSelector",(function(){return o.a}));var a=n(45);n.d(t,"Typography",(function(){return a.a}));var s=n(22);n.d(t,"usePopoverMaker",(function(){return s.a}));var c=n(24);n.d(t,"GradientPicker",(function(){return c.a}));var l=n(7);n.d(t,"cssBoxShadow",(function(){return l.a})),n.d(t,"fontWeightVariation",(function(){return l.c})),n.d(t,"fontStyle",(function(){return l.b}));var u=n(19);n.d(t,"generateCSS",(function(){return u.a}));var d=n(15);n.d(t,"AffxTopProductIcon",(function(){return d.o})),n.d(t,"AffxProductImageButtonIcon",(function(){return d.h})),n.d(t,"AffxSingleCoupon",(function(){return d.l})),n.d(t,"AffxSingleProductProsCons",(function(){return d.n})),n.d(t,"AffxProductTable",(function(){return d.i})),n.d(t,"AffxProductTabs",(function(){return d.j})),n.d(t,"AffxVersus",(function(){return d.q})),n.d(t,"AffxCouponGrid",(function(){return d.c})),n.d(t,"AffxCouponList",(function(){return d.d}))}]);
     1var affiliateBlocksExports="object"==typeof affiliateBlocksExports?affiliateBlocksExports:{};affiliateBlocksExports.blockComponents=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=81)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t,n){"use strict";n.d(t,"w",(function(){return i})),n.d(t,"a",(function(){return ve})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return je})),n.d(t,"d",(function(){return be})),n.d(t,"e",(function(){return Z})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Se})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return Re})),n.d(t,"j",(function(){return Pe})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"m",(function(){return L})),n.d(t,"n",(function(){return F})),n.d(t,"o",(function(){return W})),n.d(t,"p",(function(){return ge})),n.d(t,"q",(function(){return me})),n.d(t,"r",(function(){return he})),n.d(t,"s",(function(){return C})),n.d(t,"t",(function(){return Ve})),n.d(t,"u",(function(){return _})),n.d(t,"v",(function(){return k})),n.d(t,"x",(function(){return Oe})),n.d(t,"y",(function(){return S})),n.d(t,"z",(function(){return Ne})),n.d(t,"A",(function(){return He})),n.d(t,"B",(function(){return De})),n.d(t,"C",(function(){return Ie})),n.d(t,"D",(function(){return We}));let r=v();const i=e=>h(e,r);let o=v();i.write=e=>h(e,o);let a=v();i.onStart=e=>h(e,a);let s=v();i.onFrame=e=>h(e,s);let c=v();i.onFinish=e=>h(e,c);let l=[];i.setTimeout=(e,t)=>{let n=i.now()+t,r=()=>{let e=l.findIndex(e=>e.cancel==r);~e&&l.splice(e,1),j.count-=~e?1:0},o={time:n,handler:e,cancel:r};return l.splice(u(n),0,o),j.count+=1,m(),o};let u=e=>~(~l.findIndex(t=>t.time>e)||~l.length);i.cancel=e=>{r.delete(e),o.delete(e)},i.sync=e=>{p=!0,i.batchedUpdates(e),p=!1},i.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,i.onStart(n)}return r.handler=e,r.cancel=()=>{a.delete(n),t=null},r};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};i.use=e=>d=e,i.now="undefined"!=typeof performance?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):b()};let f=-1,p=!1;function h(e,t){p?(t.delete(e),e(0)):(t.add(e),m())}function m(){f<0&&(f=0,"demand"!==i.frameLoop&&d(g))}function g(){~f&&(d(g),i.batchedUpdates(b))}function b(){let e=f;f=i.now();let t=u(f);t&&(y(l.splice(0,t),e=>e.handler()),j.count-=t),a.flush(),r.flush(e?Math.min(64,f-e):16.667),s.flush(),o.flush(),c.flush()}function v(){let e=new Set,t=e;return{add(n){j.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(j.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,j.count-=t.size,y(t,t=>t(n)&&e.add(t)),j.count+=e.size,t=e)}}}function y(e,t){e.forEach(e=>{try{t(e)}catch(e){i.catch(e)}})}const j={count:0,clear(){f=-1,l=[],a=v(),r=v(),s=v(),o=v(),c=v(),j.count=0}};var O=n(4);function k(){}const w=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function _(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const E=(e,t)=>e.forEach(t);function x(e,t,n){for(const r in e));n.d(t,"AffxTopProductIcon",(function(){return d.o})),n.d(t,"AffxProductImageButtonIcon",(function(){return d.h})),n.d(t,"AffxSingleCoupon",(function(){return d.l})),n.d(t,"AffxSingleProductProsCons",(function(){return d.n})),n.d(t,"AffxProductTable",(function(){return d.i})),n.d(t,"AffxProductTabs",(function(){return d.j})),n.d(t,"AffxVersus",(function(){return d.q})),n.d(t,"AffxCouponGrid",(function(){return d.c})),n.d(t,"AffxCouponList",(function(){return d.d}))}]);
  • affiliatex/trunk/app/build/blocks.asset.php

    r2751896 r2832117  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text'), 'version' => '1e9830b839a05746e9f6c895be59095c');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text'), 'version' => '');
  • affiliatex/trunk/app/build/blocks.js

    r2710402 r2832117  
    1 var affiliateBlocksExports="object"==typeof affiliateBlocksExports?affiliateBlocksExports:{};affiliateBlocksExports.blocks=function(e){var t={};function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=83)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t,a){"use strict";a.d(t,"w",(function(){return i})),a.d(t,"a",(function(){return ve})),a.d(t,"b",(function(){return A})),a.d(t,"c",(function(){return ye})),a.d(t,"d",(function(){return he})),a.d(t,"e",(function(){return $})),a.d(t,"f",(function(){return pe})),a.d(t,"g",(function(){return Te})),a.d(t,"h",(function(){return k})),a.d(t,"i",(function(){return Le})),a.d(t,"j",(function(){return Se})),a.d(t,"k",(function(){return E})),a.d(t,"l",(function(){return _})),a.d(t,"m",(function(){return B})),a.d(t,"n",(function(){return N})),a.d(t,"o",(function(){return V})),a.d(t,"p",(function(){return ge})),a.d(t,"q",(function(){return me})),a.d(t,"r",(function(){return be})),a.d(t,"s",(function(){return C})),a.d(t,"t",(function(){return Pe})),a.d(t,"u",(function(){return w})),a.d(t,"v",(function(){return j})),a.d(t,"x",(function(){return Oe})),a.d(t,"y",(function(){return T})),a.d(t,"z",(function(){return Fe})),a.d(t,"A",(function(){return We})),a.d(t,"B",(function(){return He})),a.d(t,"C",(function(){return Ae})),a.d(t,"D",(function(){return Ve}));let o=v();const i=e=>b(e,o);let n=v();i.write=e=>b(e,n);let l=v();i.onStart=e=>b(e,l);let r=v();i.onFrame=e=>b(e,r);let c=v();i.onFinish=e=>b(e,c);let s=[];i.setTimeout=(e,t)=>{let a=i.now()+t,o=()=>{let e=s.findIndex(e=>e.cancel==o);~e&&s.splice(e,1),y.count-=~e?1:0},n={time:a,handler:e,cancel:o};return s.splice(p(a),0,n),y.count+=1,m(),n};let p=e=>~(~s.findIndex(t=>t.time>e)||~s.length);i.cancel=e=>{o.delete(e),n.delete(e)},i.sync=e=>{u=!0,i.batchedUpdates(e),u=!1},i.throttle=e=>{let t;function a(){try{e(...t)}finally{t=null}}function o(...e){t=e,i.onStart(a)}return o.handler=e,o.cancel=()=>{l.delete(a),t=null},o};let f="undefined"!=typeof window?window.requestAnimationFrame:()=>{};i.use=e=>f=e,i.now="undefined"!=typeof performance?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):h()};let d=-1,u=!1;function b(e,t){u?(t.delete(e),e(0)):(t.add(e),m())}function m(){d<0&&(d=0,"demand"!==i.frameLoop&&f(g))}function g(){~d&&(f(g),i.batchedUpdates(h))}function h(){let e=d;d=i.now();let t=p(d);t&&(x(s.splice(0,t),e=>e.handler()),y.count-=t),l.flush(),o.flush(e?Math.min(64,d-e):16.667),r.flush(),n.flush(),c.flush()}function v(){let e=new Set,t=e;return{add(a){y.count+=t!=e||e.has(a)?0:1,e.add(a)},delete:a=>(y.count-=t==e&&e.has(a)?1:0,e.delete(a)),flush(a){t.size&&(e=new Set,y.count-=t.size,x(t,t=>t(a)&&e.add(t)),y.count+=e.size,t=e)}}}function x(e,t){e.forEach(e=>{try{t(e)}catch(e){i.catch(e)}})}const y={count:0,clear(){d=-1,s=[],l=v(),o=v(),r=v(),n=v(),c=v(),y.count=0}};var O=a(4);function j(){}const k=(e,t,a)=>Object.defineProperty(e,t,{value:a,writable:!0,configurable:!0}),C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function w(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}return e===t}const E=(e,t)=>e.forEach(t);function _(e,t,a){for(const o in e)e.hasOwnProperty(o)&&t.call(a,e[o],o)}const T=e=>C.und(e)?[]:C.arr(e)?e:[e];function B(e,t){if(e.size){const a=Array.from(e);e.clear(),E(a,t)}}const N=(e,...t)=>B(e,e=>e(...t));let R,S,I=null,L=!1,P=j;var A=Object.freeze({__proto__:null,get createStringInterpolator(){return R},get to(){return S},get colors(){return I},get skipAnimation(){return L},get willAdvance(){return P},assign:e=>{e.to&&(S=e.to),e.now&&(i.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(L=e.skipAnimation),e.createStringInterpolator&&(R=e.createStringInterpolator),e.requestAnimationFrame&&i.use(e.requestAnimationFrame),e.batchedUpdates&&(i.batchedUpdates=e.batchedUpdates),e.willAdvance&&(P=e.willAdvance),e.frameLoop&&(i.frameLoop=e.frameLoop)}});const z=new Set;let F=[],M=[],H=0;const V={get idle(){return!z.size&&!F.length},start(e){H>e.priority?(z.add(e),i.onStart(W)):(D(e),i(U))},advance:U,sort(e){if(H)i.onFrame(()=>V.sort(e));else{const t=F.indexOf(e);~t&&(F.splice(t,1),q(e))}},clear(){F=[],z.clear()}};function W(){z.forEach(D),z.clear(),i(U)}function D(e){F.includes(e)||q(e)}function q(e){F.splice(function(t,a){const o=t.findIndex(t=>t.priority>e.priority);return o<0?t.length:o}(F),0,e)}function U(e){const t=M;for(let a=0;a<F.length;a++){const o=F[a];H=o.priority,o.idle||(P(o),o.advance(e),o.idle||t.push(o))}return H=0,M=F,M.length=0,F=t,F.length>0}const $={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},G="[-+]?\\d*\\.?\\d+";function Z(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const X=new RegExp("rgb"+Z(G,G,G)),K=new RegExp("rgba"+Z(G,G,G,G)),Q=new RegExp("hsl"+Z(G,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),Y=new RegExp("hsla"+Z(G,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",G)),J=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,te=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function oe(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function ie(e,t,a){const o=a<.5?a*(1+t):a+t-a*t,i=2*a-o,n=oe(i,o,e+1/3),l=oe(i,o,e),r=oe(i,o,e-1/3);return Math.round(255*n)<<24|Math.round(255*l)<<16|Math.round(255*r)<<8}function ne(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function le(e){return(parseFloat(e)%360+360)%360/360}function re(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ce(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=te.exec(e))?parseInt(t[1]+"ff",16)>>>0:I&&void 0!==I[e]?I[e]:(t=X.exec(e))?(ne(t[1])<<24|ne(t[2])<<16|ne(t[3])<<8|255)>>>0:(t=K.exec(e))?(ne(t[1])<<24|ne(t[2])<<16|ne(t[3])<<8|re(t[4]))>>>0:(t=J.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ae.exec(e))?parseInt(t[1],16)>>>0:(t=ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Q.exec(e))?(255|ie(le(t[1]),ce(t[2]),ce(t[3])))>>>0:(t=Y.exec(e))?(ie(le(t[1]),ce(t[2]),ce(t[3]))|re(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const pe=(e,t,a)=>{if(C.fun(e))return e;if(C.arr(e))return pe({range:e,output:t,extrapolate:a});if(C.str(e.output[0]))return R(e);const o=e,i=o.output,n=o.range||[0,1],l=o.extrapolateLeft||o.extrapolate||"extend",r=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||(e=>e);return e=>{const t=function(e,t){for(var a=1;a<t.length-1&&!(t[a]>=e);++a);return a-1}(e,n);return function(e,t,a,o,i,n,l,r,c){let s=c?c(e):e;if(s<t){if("identity"===l)return s;"clamp"===l&&(s=t)}if(s>a){if("identity"===r)return s;"clamp"===r&&(s=a)}return o===i?o:t===a?e<=t?o:i:(t===-1/0?s=-s:a===1/0?s-=t:s=(s-t)/(a-t),s=n(s),o===-1/0?s=-s:i===1/0?s+=o:s=s*(i-o)+o,s)}(e,n[t],n[t+1],i[t],i[t+1],c,l,r,o.map)}};function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e}).apply(this,arguments)}const de=Symbol.for("FluidValue.get"),ue=Symbol.for("FluidValue.observers"),be=e=>Boolean(e&&e[de]),me=e=>e&&e[de]?e[de]():e,ge=e=>e[ue]||null;function he(e,t){let a=e[ue];a&&a.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}class ve{constructor(e){if(this[de]=void 0,this[ue]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");xe(this,e)}}const xe=(e,t)=>je(e,de,t);function ye(e,t){if(e[de]){let a=e[ue];a||je(e,ue,a=new Set),a.has(t)||(a.add(t),e.observerAdded&&e.observerAdded(a.size,t))}return t}function Oe(e,t){let a=e[ue];if(a&&a.has(t)){const o=a.size-1;o?a.delete(t):e[ue]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const je=(e,t,a)=>Object.defineProperty(e,t,{value:a,writable:!0,configurable:!0}),ke=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ce=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;let we;const Ee=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,_e=(e,t,a,o,i)=>`rgba(${Math.round(t)}, ${Math.round(a)}, ${Math.round(o)}, ${i})`,Te=e=>{we||(we=I?new RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>me(e).replace(Ce,se).replace(we,se)),a=t.map(e=>e.match(ke).map(Number)),o=a[0].map((e,t)=>a.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>pe(fe({},e,{output:t})));return e=>{let a=0;return t[0].replace(ke,()=>String(o[a++](e))).replace(Ee,_e)}},Be="react-spring: ",Ne=e=>{const t=e;let a=!1;if("function"!=typeof t)throw new TypeError(Be+"once requires a function parameter");return(...e)=>{a||(t(...e),a=!0)}},Re=Ne(console.warn);function Se(){Re(Be+'The "interpolate" function is deprecated in v9 (use "to" instead)')}const Ie=Ne(console.warn);function Le(){Ie(Be+'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions')}function Pe(e){return C.str(e)&&("#"==e[0]||/\d/.test(e)||e in(I||{}))}const Ae=e=>Object(O.useEffect)(e,ze),ze=[];function Fe(){const e=Object(O.useState)()[1],t=Object(O.useState)(Me)[0];return Ae(t.unmount),()=>{t.current&&e({})}}function Me(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function He(e,t){const[a]=Object(O.useState)(()=>({inputs:t,result:e()})),o=Object(O.useRef)(),i=o.current;let n=i;return n?Boolean(t&&n.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}(t,n.inputs))||(n={inputs:t,result:e()}):n=a,Object(O.useEffect)(()=>{o.current=n,i==a&&(a.inputs=a.result=void 0)},[n]),n.result}function Ve(e){const t=Object(O.useRef)();return Object(O.useEffect)(()=>{t.current=e}),t.current}const We="undefined"!=typeof window&&window.document&&window.document.createElement?O.useLayoutEffect:O.useEffect},function(e,t,a){"use strict";a.d(t,"b",(function(){return m}));var o=a(11),i=a.n(o),n=a(0),l=a(1),r=a(5),c=a.n(r),s=a(44),p=a.n(s),f=a(7),d=a(8);const u=a(51);u.keys().forEach(u);const b=e=>{let t=u.keys().map(e=>e.replace(/^\.\//,"").replace(/\.js$/,"")).indexOf(e);return t>-1&&u.keys()[t]},m=e=>{const t={};return b(e.type)?u(b(e.type)).default:t[e.type]?t[e.type]:null},g=({option:e,value:t})=>void 0===t?e.value:t;t.a=({option:e,value:t,values:a,onChange:o,onChangeFor:r,hasRevertButton:s,id:u,purpose:b})=>{const[h,v]=Object(n.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),x=()=>{v(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")},y=e=>{v(e),wp.customize&&wp.customize.previewedDevice.set(e)};Object(n.useEffect)(()=>{if(("ct-typography"===e.type||Object(d.d)(e))&&wp.customize)return setTimeout(()=>wp.customize.previewedDevice.bind(x),1e3),()=>{("ct-typography"===e.type||Object(d.d)(e))&&wp.customize&&wp.customize.previewedDevice.unbind(x)}},[]);let O=m(e),j={content:null,option:e};const k=Object(d.e)(g({value:t,option:e}),Object(d.d)(e)),C=Object(d.d)(e,{ignoreHidden:!0})?Object(d.b)({option:e,value:k,device:h}):k,w=t=>{e.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),e.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==e.switchDeviceOnChange&&wp.customize.previewedDevice.set(e.switchDeviceOnChange),e.sync&&(Object.keys(e.sync).length>0||Array.isArray(e.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:e.sync.id||e.id,option:e}),o(t)},E=a=>{const o=Object(d.e)(g({value:t,option:e}),Object(d.d)(e));w(Object(d.d)(e,{ignoreHidden:!0})?{...o,["tablet"===h&&"skip"===Object(d.c)("tablet",e.responsive)?"mobile":h]:a,..."desktop"===h?Object.keys(o).reduce((t,i)=>({...t,..."desktop"!==i&&"__changed"!==i&&Object.keys(Object(d.e)(e.value)).reduce((t,a)=>!!t&&Object(d.e)(e.value)[a]===Object(d.e)(e.value).desktop,!0)&&-1===(o.__changed||[]).indexOf("tablet")?{[i]:a}:{}}),{}):{},..."tablet"===h&&"skip"!==Object(d.c)("tablet",e.responsive)?Object.keys(o).reduce((t,i)=>({...t,..."desktop"!==i&&"tablet"!==i&&"__changed"!==i&&Object.keys(Object(d.e)(e.value)).reduce((t,a)=>!!t&&Object(d.e)(e.value)[a]===Object(d.e)(e.value).desktop,!0)&&-1===(o.__changed||[]).indexOf(i)?{[i]:a}:{}}),{}):{},__changed:[...o.__changed||[],..."desktop"!==h?[h]:[]].filter((e,t,a)=>a.indexOf(e)===t)}:a)};if(!O)return Object(n.createElement)("div",null,"Unimplemented option: ",e.type);let _={design:!0,label:!0,wrapperAttr:{}},T=()=>null,B=null,N=()=>null,R=()=>({});_={..._,...O.renderingConfig||{}},e.design&&(_.design=e.design),O.LabelToolbar&&(T=O.LabelToolbar),O.ControlEnd&&(N=O.ControlEnd),O.MetaWrapper&&(B=O.MetaWrapper),O.sectionClassName&&(R=O.sectionClassName);let S=Object(n.createElement)(n.Fragment,null,j&&j.content,Object(n.createElement)(O,{key:u,option:{...e,value:Object(d.d)(e,{ignoreHidden:!0})?Object(d.b)({device:h,option:e,value:Object(d.e)(e.value||"")}):Object(d.e)(e.value||"",Object(d.d)(e))},value:C,id:u,values:a,onChangeFor:r,device:h,onChange:E}));if(!_.design||"none"===_.design)return S;let I=Object(f.d)({id:u,option:e,values:a,renderingConfig:_}),L=-1!==Object.keys(e).indexOf("desc")&&e.desc,P=-1!==Object.keys(e).indexOf("link")&&(e.link||" ");const A="boolean"==typeof _.design?"block":_.design;if("compact"===_.design)return Object(n.createElement)("section",e.sectionAttr||{},I&&Object(n.createElement)("label",null,I),(Object(d.d)(e)&&Object(d.c)(h,e.responsive)||!Object(d.d)(e))&&S,P&&Object(n.createElement)("a",i()({dangerouslySetInnerHTML:{__html:P}},e.linkAttr||{})));const z=({wrapperAttr:{className:a,...o}={},...r}={})=>Object(n.createElement)(n.Fragment,null,Object(n.createElement)("div",i()({className:c()("ct-control",a,{}),"data-design":A},e.divider?{"data-divider":e.divider}:{},Object(d.d)(e)&&!Object(d.c)(h,e.responsive)||"disabled"===e.state?{"data-state":"disabled"}:{},e.wrapperAttr||{},o),Object(n.createElement)("header",null,I&&Object(n.createElement)("label",null,I),"ct-image-picker"!==e.type&&"ct-layers"!==e.type&&"ct-image-uploader"!==e.type&&"ct-panel"!==e.type&&s&&!e.disableRevertButton&&Object(n.createElement)("button",{type:"button",disabled:p()(e.value,g({value:t,option:e})),className:"rara-revert",onClick:()=>w(e.value)}),Object(n.createElement)(T,{option:e,value:C,id:u,onChange:E}),Object(d.d)(e,{ignoreHidden:!0})&&A.indexOf("block")>-1&&Object(n.createElement)(d.a,{device:h,responsiveDescriptor:e.responsive,setDevice:y})),Object(d.d)(e)&&!Object(d.c)(h,e.responsive)&&Object(n.createElement)("div",{className:"ct-disabled-notification"},e.disabledDeviceMessage||Object(l.__)("Option can't be edited for current device","affiliatex")),(Object(d.d)(e)&&Object(d.c)(h,e.responsive)||!Object(d.d)(e))&&Object(n.createElement)(n.Fragment,null,Object(n.createElement)("section",i()({},e.sectionAttr||{},{className:c()({"ct-responsive-container":Object(d.d)(e,{ignoreHidden:!0})&&"inline"===A},R({design:A,option:e}),(e.sectionAttr||{}).class||"")}),Object(d.d)(e,{ignoreHidden:!0})&&"inline"===A&&Object(n.createElement)(d.a,{device:h,responsiveDescriptor:e.responsive,setDevice:y}),S,P&&Object(n.createElement)("a",i()({dangerouslySetInnerHTML:{__html:P}},e.linkAttr||{}))),Object(n.createElement)(N,null),L&&Object(n.createElement)("div",{dangerouslySetInnerHTML:{__html:L},className:"ct-option-description"}))));return B?Object(n.createElement)(B,{id:u,option:e,value:C,onChangeFor:r,values:a,getActualOption:z}):z()}},function(e,t){e.exports=window.React},function(e,t,a){var o;!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var l=i.apply(null,o);l&&e.push(l)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var r in o)a.call(o,r)&&o[r]&&e.push(r);else e.push(o.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,[]))||(e.exports=o)}()},function(e,t,a){"use strict";(function(e){a.d(t,"e",(function(){return o})),a.d(t,"p",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return l})),a.d(t,"d",(function(){return r})),a.d(t,"o",(function(){return c})),a.d(t,"q",(function(){return s})),a.d(t,"t",(function(){return p})),a.d(t,"i",(function(){return f})),a.d(t,"r",(function(){return d})),a.d(t,"s",(function(){return u})),a.d(t,"k",(function(){return b})),a.d(t,"m",(function(){return m})),a.d(t,"j",(function(){return g})),a.d(t,"l",(function(){return h})),a.d(t,"g",(function(){return v})),a.d(t,"f",(function(){return x})),a.d(t,"h",(function(){return y})),a.d(t,"n",(function(){return O})),a.d(t,"b",(function(){return j}));var o="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},n=Array.prototype,l=Object.prototype,r="undefined"!=typeof Symbol?Symbol.prototype:null,c=n.push,s=n.slice,p=l.toString,f=l.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,b=Array.isArray,m=Object.keys,g=Object.create,h=d&&ArrayBuffer.isView,v=isNaN,x=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1}).call(this,a(46))},function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return r}));var o=a(21);const i=({id:e,option:t,values:a,renderingConfig:i})=>{let n=-1===Object.keys(t).indexOf("label")?(l=e,(l=null==l?"":String(l)).charAt(0).toUpperCase()+l.slice(1)).replace(/\_|\-/g," "):t.label;var l;return n!==n.toString()&&(n=Object.keys(n).reduce((e,t)=>e||(Object(o.a)(Object(o.b)(n[t]),a)?t:e),null)||Object.keys(n)[0]),""===n&&(n=!0),i&&!i.label&&(n=!1),n},n=e=>!0===e.enable&&(e.inset?"inset":"")+" "+e.h_offset+"px "+e.v_offset+"px "+e.blur+"px "+e.spread+"px "+e.color.color+";",l=e=>100*e.split("")[1],r=e=>{var t=e.split("");return"n"===t[0]?"normal":"i"===t[0]?"italic":"Default"}},function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return s})),a.d(t,"b",(function(){return p}));var o=a(0),i=a(5),n=a.n(i),l=a(3),r=a(41);a.d(t,"e",(function(){return r.maybePromoteScalarValueIntoResponsive}));const c=(e,t)=>({desktop:!0,tablet:!0,mobile:!0,..."boolean"==typeof t?{}:t||{}}[e]),s=(e,t={})=>{let{ignoreHidden:a=!1}=t,o=Object(l.b)(e);return!(null==o||!o.hiddenResponsive||a)||!!e.responsive},p=({value:e,option:t,device:a})=>"tablet"===a&&"skip"===c(a,t.responsive)?e.mobile:e[a];t.a=({device:e,setDevice:t,responsiveDescriptor:a})=>Object(o.createElement)("div",{className:"ct-control-options"},Object(o.createElement)("ul",{className:"ct-responsive-controls ct-devices"},["desktop","tablet","mobile"].filter(e=>"skip"!==c(e,a)).map(i=>Object(o.createElement)("li",{onClick:()=>t(i),className:n()({active:i===e,"ct-disabled":!c(i,a)},"ct-"+i),key:i}))))},function(e,t,a){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e}).apply(this,arguments)}a.d(t,"a",(function(){return o}))},function(e,t,a){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a.d(t,"a",(function(){return o}))},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,a.apply(this,arguments)}e.exports=a,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),a.d(t,"b",(function(){return f})),a.d(t,"c",(function(){return p})),a.d(t,"d",(function(){return O})),a.d(t,"e",(function(){return l})),a.d(t,"f",(function(){return g})),a.d(t,"g",(function(){return c})),a.d(t,"h",(function(){return r}));var o=a(2),i=a(4);const n=Symbol.for("Animated:node"),l=e=>e&&e[n],r=(e,t)=>Object(o.h)(e,n,t),c=e=>e&&e[n]&&e[n].getPayload();class s{constructor(){this.payload=void 0,r(this,this)}getPayload(){return this.payload||[]}}class p extends s{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,o.s.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new p(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return o.s.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,o.s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class f extends p{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Object(o.f)({output:[e,e]})}static create(e){return new f(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(o.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Object(o.f)({output:[this.getValue(),e]})),this._value=0,super.reset()}}const d={dependencies:null};class u extends s{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Object(o.l)(this.source,(a,i)=>{var l;(l=a)&&l[n]===l?t[i]=a.getValue(e):Object(o.r)(a)?t[i]=Object(o.q)(a):e||(t[i]=a)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Object(o.k)(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Object(o.l)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){d.dependencies&&Object(o.r)(e)&&d.dependencies.add(e);const t=c(e);t&&Object(o.k)(t,e=>this.add(e))}}class b extends u{constructor(e){super(e)}static create(e){return new b(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,a)=>t.setValue(e[a])).some(Boolean):(super.setValue(e.map(m)),!0)}}function m(e){return(Object(o.t)(e)?f:p).create(e)}function g(e){const t=l(e);return t?t.constructor:o.s.arr(e)?b:Object(o.t)(e)?f:p}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e}).apply(this,arguments)}const v=(e,t)=>{const a=!o.s.fun(e)||e.prototype&&e.prototype.isReactComponent;return Object(i.forwardRef)((n,l)=>{const r=Object(i.useRef)(null),c=a&&Object(i.useCallback)(e=>{r.current=function(e,t){return e&&(o.s.fun(e)?e(t):e.current=t),t}(l,e)},[l]),[s,p]=function(e,t){const a=new Set;return d.dependencies=a,e.style&&(e=h({},e,{style:t.createAnimatedStyle(e.style)})),e=new u(e),d.dependencies=null,[e,a]}(n,t),f=Object(o.z)(),b=()=>{const e=r.current;a&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&f()},m=new x(b,p),g=Object(i.useRef)();Object(o.A)(()=>{const e=g.current;g.current=m,Object(o.k)(p,e=>Object(o.c)(e,m)),e&&(Object(o.k)(e.deps,t=>Object(o.x)(t,e)),o.w.cancel(e.update))}),Object(i.useEffect)(b,[]),Object(o.C)(()=>()=>{const e=g.current;Object(o.k)(e.deps,t=>Object(o.x)(t,e))});const v=t.getComponentProps(s.getValue());return i.createElement(e,h({},v,{ref:c}))})};class x{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&o.w.write(this.update)}}const y=Symbol.for("AnimatedComponent"),O=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:a=(e=>new u(e)),getComponentProps:i=(e=>e)}={})=>{const n={applyAnimatedValues:t,createAnimatedStyle:a,getComponentProps:i},l=e=>{const t=j(e)||"Anonymous";return(e=o.s.str(e)?l[e]||(l[e]=v(e,n)):e[y]||(e[y]=v(e,n))).displayName=`Animated(${t})`,e};return Object(o.l)(e,(t,a)=>{o.s.arr(e)&&(a=j(t)),l[a]=l(t)}),{animated:l}},j=e=>o.s.str(e)?e:e&&o.s.str(e.displayName)?e.displayName:o.s.fun(e)&&e.name||null},function(e,t,a){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}a.d(t,"a",(function(){return i}))},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,a){"use strict";a.d(t,"w",(function(){return i})),a.d(t,"s",(function(){return n})),a.d(t,"x",(function(){return l})),a.d(t,"t",(function(){return r})),a.d(t,"u",(function(){return s})),a.d(t,"v",(function(){return c})),a.d(t,"a",(function(){return p})),a.d(t,"k",(function(){return f})),a.d(t,"b",(function(){return d})),a.d(t,"e",(function(){return u})),a.d(t,"p",(function(){return b})),a.d(t,"m",(function(){return m})),a.d(t,"f",(function(){return g})),a.d(t,"r",(function(){return h})),a.d(t,"o",(function(){return v})),a.d(t,"h",(function(){return x})),a.d(t,"l",(function(){return y})),a.d(t,"n",(function(){return O})),a.d(t,"i",(function(){return j})),a.d(t,"j",(function(){return k})),a.d(t,"q",(function(){return C})),a.d(t,"c",(function(){return w})),a.d(t,"d",(function(){return E})),a.d(t,"g",(function(){return _}));var o=a(0);a(4);const i=()=>Object(o.createElement)("svg",{width:"200",height:"264",viewBox:"0 0 200 264",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.252 259.342C120.708 262.368 110.545 264 100 264C91.5906 264 83.4235 262.962 75.6201 261.007C75.8681 260.046 76 259.038 76 258C76 251.733 71.1959 246.588 65.0696 246.047C65.674 244.139 66 242.108 66 240C66 228.954 57.0457 220 46 220C42.886 220 39.9383 220.712 37.3105 221.981C35.6579 217.33 31.2179 214 26 214C22.0547 214 18.5541 215.904 16.3669 218.843C6.01953 203.096 0 184.251 0 164C0 108.772 44.7715 64 100 64C155.228 64 200 108.772 200 164C200 182.678 194.879 200.16 185.965 215.118C184.095 210.924 179.889 208 175 208C170.051 208 165.802 210.996 163.967 215.272C160.818 213.204 157.05 212 153 212C141.954 212 133 220.954 133 232C133 236.05 134.204 239.818 136.272 242.967C131.996 244.802 129 249.051 129 254C129 255.919 129.451 257.734 130.252 259.342ZM172.997 232.348C173.138 232.198 173.278 232.048 173.418 231.897C173.277 231.878 173.138 231.857 172.999 231.834C173 231.889 173 231.945 173 232C173 232.116 172.999 232.232 172.997 232.348Z",fill:"#26D8FF"}),Object(o.createElement)("path",{d:"M111 111.472C111 109.242 113.347 107.792 115.342 108.789L138.983 120.61C144.873 123.555 148.153 129.997 147.071 136.492L140.031 178.733C139.673 180.881 137.219 181.944 135.407 180.736L112.336 165.355C111.501 164.799 111 163.862 111 162.859V111.472Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(o.createElement)("path",{d:"M90 111.472C90 109.242 87.6531 107.792 85.6584 108.789L62.0168 120.61C56.127 123.555 52.8465 129.997 53.9291 136.492L60.9694 178.733C61.3273 180.881 63.7813 181.944 65.5926 180.736L88.6641 165.355C89.4987 164.799 90 163.862 90 162.859V111.472Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(o.createElement)("path",{d:"M118.625 157H82.8913C79.7186 157 76.9824 154.897 76.2642 151.845C74.4948 144.325 71.5245 130.451 69.6681 115.045C67.8093 99.6197 67.0786 82.7464 69.7394 69.1926C73.1658 51.7394 84.0696 30.319 92.2057 16.0467C96.0887 9.23522 105.428 9.23522 109.311 16.0467C117.447 30.319 128.351 51.7394 131.777 69.1926C134.438 82.7464 133.707 99.6197 131.848 115.045C129.992 130.451 127.021 144.325 125.252 151.845C124.534 154.897 121.798 157 118.625 157Z",fill:"white",stroke:"#262B33",strokeWidth:"2"}),Object(o.createElement)("path",{d:"M123.333 43.7511C123.011 43.8023 122.633 43.8615 122.206 43.927C120.713 44.1559 118.626 44.4613 116.249 44.7673C111.483 45.3808 105.596 45.9906 100.998 46C96.3074 46.0096 90.2998 45.3999 85.4365 44.7816C83.0109 44.4732 80.8811 44.1642 79.358 43.9323C78.9113 43.8642 78.5168 43.8029 78.1826 43.7501C82.5891 33.5843 87.8067 23.7631 92.201 16.0544C96.0838 9.24285 105.432 9.24285 109.315 16.0544C113.709 23.7634 118.927 33.585 123.333 43.7511Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(o.createElement)("path",{d:"M86.392 174L114.608 174C115.548 174 116.358 174.43 116.778 175.148C118.436 177.981 121.487 184.507 120.934 193.438C120.455 201.171 117.233 208.861 113.399 215.433C109.571 221.995 105.175 227.369 102.436 230.458C101.381 231.647 99.6187 231.647 98.5643 230.458C95.8248 227.369 91.4294 221.995 87.6013 215.433C83.767 208.861 80.545 201.171 80.0661 193.438C79.5131 184.508 82.5642 177.981 84.2215 175.148C84.6418 174.43 85.4515 174 86.392 174Z",fill:"#FFB800",stroke:"#262B33",strokeWidth:"2"}),Object(o.createElement)("path",{d:"M107.797 180L93.2034 180C91.917 180 90.7071 180.62 90.1461 181.778C89.1292 183.876 87.7481 187.727 88.0396 192.77C88.5507 201.615 94.2718 210.248 97.7815 214.763C99.1912 216.576 101.809 216.576 103.218 214.763C106.728 210.248 112.449 201.615 112.96 192.77C113.252 187.727 111.871 183.876 110.854 181.778C110.293 180.62 109.083 180 107.797 180Z",fill:"#E7A600"}),Object(o.createElement)("path",{d:"M77.3099 159.382C77.6022 157.994 78.8269 157 80.2456 157H121.754C123.173 157 124.398 157.994 124.69 159.382L127.006 170.382C127.398 172.247 125.976 174 124.07 174H77.9298C76.0243 174 74.6016 172.247 74.9941 170.382L77.3099 159.382Z",fill:"#F13A3A",stroke:"#262B33",strokeWidth:"2"}),Object(o.createElement)("circle",{cx:"101",cy:"71",r:"14",fill:"#A9F0FF",stroke:"#185C6A",strokeWidth:"4"})),n=()=>Object(o.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#E7EFFF"}),Object(o.createElement)("path",{d:"M16 31.5C16 30.837 16.2634 30.2011 16.7322 29.7322C17.2011 29.2634 17.837 29 18.5 29H32",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M18.5 14H32V34H18.5C17.837 34 17.2011 33.7366 16.7322 33.2678C16.2634 32.7989 16 32.163 16 31.5V16.5C16 15.837 16.2634 15.2011 16.7322 14.7322C17.2011 14.2634 17.837 14 18.5 14V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),l=()=>Object(o.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#FFE7E7"}),Object(o.createElement)("path",{d:"M34.54 18.42C34.4212 17.9454 34.1793 17.5106 33.8387 17.1594C33.498 16.8082 33.0708 16.5532 32.6 16.42C30.88 16 24 16 24 16C24 16 17.12 16 15.4 16.46C14.9293 16.5932 14.502 16.8482 14.1614 17.1994C13.8207 17.5506 13.5788 17.9854 13.46 18.46C13.1452 20.2056 12.9912 21.9763 13 23.75C12.9888 25.537 13.1428 27.3213 13.46 29.08C13.591 29.5398 13.8383 29.9581 14.1782 30.2945C14.518 30.6308 14.9388 30.8738 15.4 31C17.12 31.46 24 31.46 24 31.46C24 31.46 30.88 31.46 32.6 31C33.0708 30.8668 33.498 30.6118 33.8387 30.2606C34.1793 29.9094 34.4212 29.4746 34.54 29C34.8524 27.2676 35.0063 25.5103 35 23.75C35.0112 21.963 34.8572 20.1787 34.54 18.42V18.42Z",stroke:"#F13A3A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M21.75 27.02L27.5 23.75L21.75 20.48V27.02Z",stroke:"#F13A3A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),r=()=>Object(o.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"48",height:"48",rx:"8",fill:"#D7F9DF"}),Object(o.createElement)("path",{d:"M24 34C29.5228 34 34 29.5228 34 24C34 18.4772 29.5228 14 24 14C18.4772 14 14 18.4772 14 24C14 29.5228 18.4772 34 24 34Z",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M24 28C26.2091 28 28 26.2091 28 24C28 21.7909 26.2091 20 24 20C21.7909 20 20 21.7909 20 24C20 26.2091 21.7909 28 24 28Z",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M16.93 16.9302L21.17 21.1702",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M26.83 26.8301L31.07 31.0701",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M26.83 21.1702L31.07 16.9302",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M26.83 21.1701L30.36 17.6401",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M16.93 31.0701L21.17 26.8301",stroke:"#24B644",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),c=()=>Object(o.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M8.00016 14.6663C11.6821 14.6663 14.6668 11.6816 14.6668 7.99967C14.6668 4.31778 11.6821 1.33301 8.00016 1.33301C4.31826 1.33301 1.3335 4.31778 1.3335 7.99967C1.3335 11.6816 4.31826 14.6663 8.00016 14.6663Z",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M8 5.33301V7.99967",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M8 10.667H8.00667",stroke:"#A3ACBF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),s=()=>Object(o.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("g",{clipPath:"url(#clip0)"},Object(o.createElement)("path",{d:"M31 19.4826L25 9.09011L24 7.36011L23 9.09011L17 19.4826L3.99998 42.0001H18L24 31.6076L30 42.0001H44L31 19.4826ZM24 27.6076L19.31 19.4826L22.36 14.2001L24 11.3601L28.5475 19.2326L28.69 19.4826L24 27.6076ZM22.2675 30.6076L16.845 40.0001H7.46498L18.155 21.4826L22.845 29.6076L22.2675 30.6076ZM32 40.0001H31.155L25.7325 30.6076L25.155 29.6076L29.845 21.4826L40.535 40.0001H32Z",fill:"white"})),Object(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"clip0"},Object(o.createElement)("rect",{width:"40",height:"34.64",fill:"white",transform:"translate(4 7)"})))),p=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M21 4H3C1.89543 4 1 4.89543 1 6V18C1 19.1046 1.89543 20 3 20H21C22.1046 20 23 19.1046 23 18V6C23 4.89543 22.1046 4 21 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M7 12L17 12",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),f=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M9 16C9 19.866 12.134 23 16 23C19.866 23 23 19.866 23 16C23 12.134 19.866 9 16 9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M18.4 13.6001L13.6 18.4001",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M13.6 13.6001L18.4 18.4001",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M11 6L7.5625 9L6 7.5",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),d=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M9 15L12.3329 23L13.5162 19.5162L17 18.3329L9 15Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M14 20L17 23",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M20 20H21C22.1046 20 23 19.1046 23 18V6C23 4.89543 22.1046 4 21 4H3C1.89543 4 1 4.89543 1 6V18C1 19.1046 1.89543 20 3 20H7",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),u=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M18 8C18 6.4087 17.3679 4.88258 16.2426 3.75736C15.1174 2.63214 13.5913 2 12 2C10.4087 2 8.88258 2.63214 7.75736 3.75736C6.63214 4.88258 6 6.4087 6 8C6 15 3 17 3 17H21C21 17 18 15 18 8Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M13.73 21C13.5542 21.3031 13.3018 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),b=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M2 21C2 19.3431 3.34315 18 5 18H9C10.6569 18 12 19.3431 12 21V22H2V21Z",stroke:"#2670FF",strokeWidth:"2"}),Object(o.createElement)("path",{d:"M13.7867 10.9196L10.5341 14.1723C10.309 14.3973 10.0187 14.5386 9.72695 14.5652C9.43521 14.5917 9.16596 14.5012 8.97842 14.3137L5.44289 10.7782C5.25535 10.5906 5.16489 10.3214 5.19141 10.0296C5.21794 9.73789 5.35926 9.44756 5.58431 9.22252L12.3725 2.43429C12.5976 2.20925 12.8879 2.06792 13.1796 2.0414C13.4714 2.01488 13.7406 2.10533 13.9282 2.29287L17.4637 5.8284C17.6512 6.01594 17.7417 6.28519 17.7152 6.57693C17.6887 6.86867 17.5473 7.159 17.3223 7.38404L14.0696 10.6367",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M12.5139 12.1924L15.3424 9.36396L21.7063 15.7279C22.0969 16.1184 22.0969 16.7516 21.7063 17.1421L20.2921 18.5563C19.9016 18.9469 19.2684 18.9469 18.8779 18.5563L12.5139 12.1924Z",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}))),m=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M21 9V20H3V9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M20 4H4C2.89543 4 2 4.89543 2 6V8C2 8.55228 2.44772 9 3 9H21C21.5523 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}))),g=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M10 22H6C5.46957 22 4.96086 21.7893 4.58579 21.4142C4.21071 21.0391 4 20.5304 4 20V4C4 3.46957 4.21071 2.96086 4.58579 2.58579C4.96086 2.21071 5.46957 2 6 2H14L20 8C20 8 20 8.21895 20 9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M15 17.25L16.3333 18.5L19 16",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M14 2V8H20",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M9 13H8",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M10 9H9H8",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("circle",{cx:"17",cy:"17",r:"5",stroke:"#2670FF",strokeWidth:"2"}))),h=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M18.2222 1H5.77778C4.79594 1 4 2.09441 4 3.44444V20.5556C4 21.9056 4.79594 23 5.77778 23H18.2222C19.2041 23 20 21.9056 20 20.5556V3.44444C20 2.09441 19.2041 1 18.2222 1Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M12 1L12 23",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M7 12H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("path",{d:"M7 7H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("path",{d:"M15 12H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("path",{d:"M15 7H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("path",{d:"M7 17H9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("path",{d:"M15 17H17",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}))),v=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M21 9V20H3V13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M11 9C16.3444 9 19.5252 9 21.001 9C21.5533 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4H13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("path",{d:"M5 1L6.236 3.63302L9 4.05783L7 6.1062L7.472 9L5 7.63302L2.528 9L3 6.1062L1 4.05783L3.764 3.63302L5 1Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),x=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{x:"3",y:"18",width:"18",height:"4",rx:"1",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M8 8C8.55228 8 9 7.55228 9 7C9 6.44772 8.55228 6 8 6C7.44772 6 7 6.44772 7 7C7 7.55228 7.44772 8 8 8Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M21 9.63636L16.9375 6L8 14",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("rect",{x:"3",y:"2",width:"18",height:"12",rx:"2",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}))),y=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M1 9H0C0 9.55228 0.447715 10 1 10L1 9ZM1 15V14C0.447715 14 0 14.4477 0 15H1ZM2 6C2 5.44771 2.44771 5 3 5V3C1.34315 3 0 4.34314 0 6H2ZM2 9V6H0V9H2ZM5 12C5 9.79086 3.20914 8 1 8V10C2.10457 10 3 10.8954 3 12H5ZM1 16C3.20914 16 5 14.2091 5 12H3C3 13.1046 2.10457 14 1 14V16ZM2 18V15H0V18H2ZM3 19C2.44771 19 2 18.5523 2 18H0C0 19.6569 1.34315 21 3 21V19ZM21 19H3V21H21V19ZM22 18C22 18.5523 21.5523 19 21 19V21C22.6569 21 24 19.6569 24 18H22ZM22 6V18H24V6H22ZM21 5C21.5523 5 22 5.44772 22 6H24C24 4.34315 22.6569 3 21 3V5ZM3 5H21V3H3V5Z",fill:"#2670FF"}),Object(o.createElement)("path",{d:"M15 9L9 15",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M9 10C9.55228 10 10 9.55228 10 9C10 8.44772 9.55228 8 9 8C8.44772 8 8 8.44772 8 9C8 9.55228 8.44772 10 9 10Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M15 16C15.5523 16 16 15.5523 16 15C16 14.4477 15.5523 14 15 14C14.4477 14 14 14.4477 14 15C14 15.5523 14.4477 16 15 16Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),O=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M18.5 23C21.5376 23 24 20.5376 24 17.5C24 14.4624 21.5376 12 18.5 12C15.4624 12 13 14.4624 13 17.5C13 20.5376 15.4624 23 18.5 23Z",fill:"#2670FF"}),Object(o.createElement)("path",{d:"M21 9V20H3V9",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M20 4H4C2.89543 4 2 4.89543 2 6V8C2 8.55228 2.44772 9 3 9H21C21.5523 9 22 8.55228 22 8V6C22 4.89543 21.1046 4 20 4Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M20.5 15.5L16.5 19.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M16.5 15.5L20.5 19.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M5.5 23C8.53757 23 11 20.5376 11 17.5C11 14.4624 8.53757 12 5.5 12C2.46243 12 0 14.4624 0 17.5C0 20.5376 2.46243 23 5.5 23Z",fill:"#2670FF"}),Object(o.createElement)("path",{d:"M8 16L4.5625 19L3 17.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),j=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M3 9H21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M3 15H21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M9 10L9 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M15 10L15 21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),k=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("line",{x1:"6",y1:"6",x2:"8",y2:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("line",{x1:"16",y1:"6",x2:"18",y2:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"}),Object(o.createElement)("path",{d:"M2 9H20C21.1046 9 22 9.89543 22 11V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19V9Z",stroke:"#2670FF",strokeWidth:"2"}),Object(o.createElement)("path",{d:"M2 5C2 3.89543 2.89543 3 4 3H10C11.1046 3 12 3.89543 12 5V9H2V5Z",stroke:"#2670FF",strokeWidth:"2"}))),C=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{x:"1",y:"5",width:"23",height:"14",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(o.createElement)("rect",{x:"20",y:"9",width:"4",height:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(o.createElement)("rect",{x:"1",y:"9",width:"4",height:"6",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(o.createElement)("line",{x1:"13",y1:"5",x2:"13",y2:"11",stroke:"#2670FF",strokeWidth:"2"}),Object(o.createElement)("line",{x1:"13",y1:"12",x2:"13",y2:"18",stroke:"#2670FF",strokeWidth:"2"}),Object(o.createElement)("circle",{cx:"13",cy:"12",r:"1",stroke:"#2670FF",strokeWidth:"2"}))),w=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M10 3H3V10H10V3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M21 3H14V10H21V3Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M21 14H14V21H21V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M10 14H3V21H10V14Z",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),E=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M8.04346 6H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M8.04346 12H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M8.04346 18H21.0435",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M3.04346 6H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M3.04346 12H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.createElement)("path",{d:"M3.04346 18H3.05346",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),_=()=>Object(o.createElement)("div",{className:"affiliate-main-icon"},Object(o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M1 5V4C0.447715 4 0 4.44772 0 5H1ZM1 19H0C0 19.5523 0.447715 20 1 20L1 19ZM7 4C6.44772 4 6 4.44772 6 5C6 5.55228 6.44772 6 7 6V4ZM3 6C3.55228 6 4 5.55228 4 5C4 4.44772 3.55228 4 3 4V6ZM0 6.75C0 7.30228 0.447715 7.75 1 7.75C1.55228 7.75 2 7.30228 2 6.75H0ZM2 10.25C2 9.69772 1.55228 9.25 1 9.25C0.447715 9.25 0 9.69772 0 10.25H2ZM0 13.75C0 14.3023 0.447715 14.75 1 14.75C1.55228 14.75 2 14.3023 2 13.75H0ZM2 17.25C2 16.6977 1.55228 16.25 1 16.25C0.447715 16.25 0 16.6977 0 17.25H2ZM3 20C3.55228 20 4 19.5523 4 19C4 18.4477 3.55228 18 3 18V20ZM7 18C6.44772 18 6 18.4477 6 19C6 19.5523 6.44772 20 7 20V18ZM9 4H7V6H9V4ZM3 4H1V6H3V4ZM0 5V6.75H2V5H0ZM0 10.25V13.75H2V10.25H0ZM0 17.25V19H2V17.25H0ZM1 20H3V18H1V20ZM7 20H9V18H7V20Z",fill:"#2670FF"}),Object(o.createElement)("rect",{x:"12",y:"5",width:"11",height:"14",stroke:"#2670FF",strokeWidth:"2",strokeLinejoin:"round"}),Object(o.createElement)("line",{x1:"12",y1:"3",x2:"12",y2:"21",stroke:"#2670FF",strokeWidth:"2",strokeLinecap:"round"})))},function(e,t,a){"use strict";function o(e,t){if(null==e)return{};var a,o,i={},n=Object.keys(e);for(o=0;o<n.length;o++)a=n[o],t.indexOf(a)>=0||(i[a]=e[a]);return i}a.d(t,"a",(function(){return o}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var o=a(11),i=a.n(o),n=a(14),l=a.n(n),r=a(0),c=a(5),s=a.n(c);const p=(e,t)=>{"function"==typeof e?e(t):e.current=t};class f extends r.Component{constructor(...e){super(...e),l()(this,"childNode",Object(r.createRef)()),l()(this,"checkIsInside",e=>[this.childNode,...this.props.additionalRefs||[]].reduce((t,a)=>t||(a&&a.current?a.current.contains(e.target):t),!1)),l()(this,"onMouseDown",e=>{const{useCapture:t}=this.props;this.checkIsInside(e)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),document.addEventListener("mouseup",this.onMouseUp,t),this.removeMouseUp=()=>{document.removeEventListener("mouseup",this.onMouseUp,t)})}),l()(this,"onMouseUp",e=>{const{onOutsideClick:t}=this.props;this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.checkIsInside(e)||t(e)}),l()(this,"setChildNodeRef",e=>{this.props.wrapperProps&&this.props.wrapperProps.ref&&p(this.props.wrapperProps.ref,e),p(this.childNode,e)})}componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}UNSAFE_componentWillReceiveProps({disabled:e,useCapture:t}){const{disabled:a}=this.props;a!==e&&(e?this.removeEventListeners():this.addMouseDownEventListener(t))}componentWillUnmount(){this.removeEventListeners()}addMouseDownEventListener(e){document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=()=>{document.removeEventListener("mousedown",this.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:a,wrapperProps:o}=this.props;return Object(r.createElement)("div",i()({className:s()(a)},o||{},{ref:this.setChildNodeRef}),e)}}f.defaultProps={disabled:!1,useCapture:!0,display:"block"}},function(e,t,a){"use strict";a.d(t,"d",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"f",(function(){return l})),a.d(t,"e",(function(){return r})),a.d(t,"b",(function(){return c}));const o=e=>"System Default"===e?"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'":e.replace("ct_typekit_",""),i=(e,t)=>{let a=((e,t)=>Object.values(t).find(t=>t.families.map(({family:e})=>e).indexOf(e)>-1))(e,t);return a?a.families.find(({family:t})=>t===e):null},n=(e,t)=>e.all_variations.indexOf(t.variation)>-1?t.variation:e.all_variations.indexOf("n4")>-1?"n4":e.all_variations[0],l=e=>({n1:"100",i1:"100",n2:"200",i2:"200",n3:"300",i3:"300",n4:"400",i4:"400",n5:"500",i5:"500",n6:"600",i6:"600",n7:"700",i7:"700",n8:"800",i8:"800",n9:"900",i9:"900",Default:"Default"}[e]),r=e=>({n1:"Thin 100",i1:"Thin 100 Italic",n2:"Extra-Light 200",i2:"Extra-Light 200 Italic",n3:"Light 300",i3:"Light 300 Italic",n4:"Regular",i4:"Regular 400 Italic",n5:"Medium 500",i5:"Medium 500 Italic",n6:"Semi-Bold 600",i6:"Semi-Bold 600 Italic",n7:"Bold 700",i7:"Bold 700 Italic",n8:"Extra-Bold 800",i8:"Extra-Bold 800 Italic",n9:"Ultra-Bold 900",i9:"Ultra-Bold 900 Italic",Default:"Default Weight"}[e]),c=e=>0===e.indexOf("ct_font")?e.replace("ct_font_","").replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_","")):0===e.indexOf("ct_typekit")?e.replace("ct_typekit_","").replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-"," ").replace("_"," ")):e},function(e,t,a){"use strict";function o(e,t,a=!1,o=""){var i="",n="",l="";for(var r in"tablet"==o?i="1024":"mobile"==o&&(i="767"),e){var c=e[r],s="";for(var p in c){var f=!0;"string"==typeof c[p]&&0===c[p].length&&(f=!1),"font-family"===p&&void 0!==c[p]&&"Default"===c[p]||void 0!==c[p]&&f&&(s+="font-family"===p?p+": '"+c[p]+"';":p+": "+c[p]+";")}0!==s.length&&(n+=t,n+=r+"{",n+=s,n+="}")}return a&&void 0!==n&&0!==n.length&&(l+="@media only screen and (max-width: "+i+"px) {",l+=n,l+="}"),a?l:n}a.d(t,"a",(function(){return o}))},function(e,t,a){"use strict";a.d(t,"animated",(function(){return k}));var o=a(29);a.o(o,"Transition")&&a.d(t,"Transition",(function(){return o.Transition}));var i=a(32),n=a(2),l=a(12);function r(e,t){if(null==e)return{};var a,o,i={},n=Object.keys(e);for(o=0;o<n.length;o++)a=n[o],t.indexOf(a)>=0||(i[a]=e[a]);return i}const c=["style","children","scrollTop","scrollLeft"],s=/^--/;function p(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||s.test(e)||d.hasOwnProperty(e)&&d[e]?(""+t).trim():t+"px"}const f={};let d={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const u=["Webkit","Ms","Moz","O"];d=Object.keys(d).reduce((e,t)=>(u.forEach(a=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(a,t)]=e[t]),e),d);const b=["x","y","z"],m=/^(matrix|translate|scale|rotate|skew)/,g=/^(translate)/,h=/^(rotate|skew)/,v=(e,t)=>n.s.num(e)&&0!==e?e+t:e,x=(e,t)=>n.s.arr(e)?e.every(e=>x(e,t)):n.s.num(e)?e===t:parseFloat(e)===t;class y extends l.a{constructor(e){let{x:t,y:a,z:o}=e,i=r(e,b);const l=[],c=[];(t||a||o)&&(l.push([t||0,a||0,o||0]),c.push(e=>[`translate3d(${e.map(e=>v(e,"px")).join(",")})`,x(e,0)])),Object(n.l)(i,(e,t)=>{if("transform"===t)l.push([e||""]),c.push(e=>[e,""===e]);else if(m.test(t)){if(delete i[t],n.s.und(e))return;const a=g.test(t)?"px":h.test(t)?"deg":"";l.push(Object(n.y)(e)),c.push("rotate3d"===t?([e,t,o,i])=>[`rotate3d(${e},${t},${o},${v(i,a)})`,x(i,0)]:e=>[`${t}(${e.map(e=>v(e,a)).join(",")})`,x(e,t.startsWith("scale")?1:0)])}}),l.length&&(i.transform=new O(l,c)),super(i)}}class O extends n.a{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Object(n.k)(this.inputs,(a,o)=>{const i=Object(n.q)(a[0]),[l,r]=this.transforms[o](n.s.arr(i)?i:a.map(n.q));e+=" "+l,t=t&&r}),t?"none":e}observerAdded(e){1==e&&Object(n.k)(this.inputs,e=>Object(n.k)(e,e=>Object(n.r)(e)&&Object(n.c)(e,this)))}observerRemoved(e){0==e&&Object(n.k)(this.inputs,e=>Object(n.k)(e,e=>Object(n.r)(e)&&Object(n.x)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Object(n.d)(this,e)}}const j=["scrollTop","scrollLeft"];o.Globals.assign({batchedUpdates:i.unstable_batchedUpdates,createStringInterpolator:n.g,colors:n.e});const k=Object(l.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const a="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:i,children:n,scrollTop:l,scrollLeft:d}=o,u=r(o,c),b=Object.values(u),m=Object.keys(u).map(t=>a||e.hasAttribute(t)?t:f[t]||(f[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==n&&(e.textContent=n);for(let t in i)if(i.hasOwnProperty(t)){const a=p(t,i[t]);s.test(t)?e.style.setProperty(t,a):e.style[t]=a}m.forEach((t,a)=>{e.setAttribute(t,b[a])}),void 0!==l&&(e.scrollTop=l),void 0!==d&&(e.scrollLeft=d)},createAnimatedStyle:e=>new y(e),getComponentProps:e=>r(e,j)}).animated},function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return c}));var o=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},n=function e(t,a,o){var i=(t="string"==typeof t?t.split("/"):[t]).shift();return void 0===a[i]?o:t.length?e(t=t.join("/"),a[i],o):a[i]},l=function(e){return"string"==typeof e&&(e=e.split("/")),e.length>1&&e.pop(),e},r=function(e){return e.all||e.any||(e={all:e}),e},c=function e(t,a){var r=Object.values(t)[0],c=function(e){return!(e.length>4)&&(0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all")},s=Object.keys(r).map((function(t,s){var p=Object.values(r)[s];return"all"===c(t)||"any"===c(t)?e(o({},t,p),a):function(e,t,a){var r=function(e,t){var a=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return n(e,a)};if(e.indexOf(":")>-1){var r=null;if(function(e){var c,s=(c=e,Array.isArray(c)?c:Array.from(c)),p=s[0],f=s.slice(1);if("visibility"===(f=f.join(":"))&&(r=a(p,i({},t,o({},l(p),n(l(p),t)[t.wp_customizer_current_view]?"yes":"no")))),"responsive"===f&&(r=a(p,i({},t,o({},l(p),n(l(p),t)[t.wp_customizer_current_view]||n(l(p),t))))),"truthy"===f&&(r=a(p)?"yes":"no"),f.indexOf("array-ids:")>-1){var d=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],_n=!0,o=!1,i=void 0;try{for(var n,l=e[Symbol.iterator]();!(_n=(n=l.next()).done)&&(a.push(n.value),!t||a.length!==t);_n=!0);}catch(e){o=!0,i=e}finally{try{!_n&&l.return&&l.return()}finally{if(o)throw i}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(f.split(":"),3),u=(d[0],d[1]),b=d[2],m=a(p).find((function(e){return e.id===u}));r=m&&n(b,m)||"no"}if(f.indexOf("json:")>-1&&(r=a(p+"/"+f.split(":")[1]).toString()),"array_length"===f){var g=a(p);r=(g||[]).length.toString()}if(!r)throw new Error("Unknown matcher received. Please verify for typos. The received matcher: "+f+".")}(e.split(":")),r)return r;e=e.split(":")[0]}var c=a(e);return!!c&&(c.desktop?c:c.toString())}(t,a);if(e&&e.toString()&&0===e.toString().indexOf("~")){var c=e.replace("~","");return r.desktop?r.desktop===c||r.tablet===c||r.mobile===c:r===c}return r=r.toString(),e=e.toString(),!!r&&(e.indexOf("|")>-1?0===e.indexOf("!")?-1===e.substring(1).split("|").map((function(e){return e.trim()})).includes(r.trim()):e.split("|").map((function(e){return e.trim()})).indexOf(r.trim())>-1:0===e.indexOf("!")?r!==e.substring(1).trim():0===e.indexOf("*")?r.indexOf(e.trim().substring(1).trim())>-1:r===e.trim())}(p,t,a)}));return"all"===c(Object.keys(t)[0])?s.every((function(e){return!!e})):"any"===c(Object.keys(t)[0])?s.some((function(e){return!!e})):void 0}},function(e,t,a){"use strict";var o=a(0);t.a=({contentRef:e,shouldCalculate:t=!0,ref:a,defaultHeight:i=0}={})=>{const n=Object(o.useRef)(),[l,r]=Object(o.useState)(null),c=()=>{t&&r(Math.random())},s=t=>{let a=e||n;a&&a.current&&!a.current.contains(t.target)&&c()};Object(o.useEffect)(()=>{let t;return setTimeout(()=>{c()},500),window.addEventListener("resize",c),window.addEventListener("scroll",s,!0),a.current&&(t=new window.ResizeObserver(c),t.observe(a.current,{attributes:!0}),a.current.closest(".ct-tabs-scroll")&&t.observe(a.current.closest(".ct-tabs-scroll"),{attributes:!0}),a.current.closest(".customize-pane-child")&&t.observe(a.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:n.current)&&(t||(t=new window.ResizeObserver(c)),t.observe(e?e.current:n.current,{attributes:!0})),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",s,!0),t&&t.disconnect()}},[t,n.current,e,a.current]);let{right:p,yOffset:f,position:d,otherStyles:u}=Object(o.useMemo)(()=>{let o=0,l=0,r="bottom",c={};if(!t)return{yOffset:l,right:o,position:r};if(a.current){let t=a.current.getBoundingClientRect(),s=a.current.closest(".ct-select-input")?a.current.closest(".ct-select-input"):a.current,p=getComputedStyle(s,":before").content;if(l=t.top+t.height,o=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(o=t.left),p.indexOf("ref-width")>-1){let e=t.width;if(p.indexOf("left")>-1&&s.previousElementSibling&&(e=document.body.classList.contains("rtl")?s.previousElementSibling.getBoundingClientRect().right-t.left:t.right-s.previousElementSibling.getBoundingClientRect().left),p.indexOf("right")>-1){let a=s.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(o=a.left,e=t.right-a.left):(o=window.innerWidth-a.right,e=a.right-t.left)}c["--x-select-dropdown-width"]=e+"px"}let f=e&&e.current||n.current?function(e){let{top:t,left:a,width:o,height:i}=e.getBoundingClientRect(),n=(e=>window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e)))(e);if(6==n.length){const e=n;let l=e[0]*e[3]-e[1]*e[2];return{width:o/e[0],height:i/e[3],left:(a*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/l,top:(-a*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/l}}return{top:t,left:a,width:o,height:i}}(e?e.current:n.current):{height:i};l+f.height>window.innerHeight&&t.top-15>f.height&&(r="top",l=window.innerHeight-t.bottom+t.height)}return{yOffset:l,right:o,position:r,otherStyles:c}},[l,t,a,a.current,e,n.current,i]);return{refreshPopover:c,styles:{"--modal-y-offset":f+"px","--modal-x-offset":p+"px",...u},position:d,popoverProps:{ref:e||n,...d?{"data-position":d}:{}}}}},function(e,t){e.exports=window.wp.components},function(e,t,a){"use strict";var o=a(0),i=a(23),n=a(5),l=a.n(n);t.a=({value:e,onChange:t})=>{let a=i.GradientPicker||i.__experimentalGradientPicker;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(a,{value:e.gradient||"",onChange:a=>{t({...e,gradient:a})}}),Object(o.createElement)("ul",{className:"ct-gradient-swatches"},[{name:"Vivid cyan blue to vivid purple",gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:"Light green cyan to vivid green cyan",gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:"Luminous vivid amber to luminous vivid orange",gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:"Luminous vivid orange to vivid red",gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:"Very light gray to cyan bluish gray",gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"}].map(({gradient:a,slug:i})=>Object(o.createElement)("li",{onClick:()=>{t({...e,gradient:e.gradient===a?"":a})},className:l()({active:a===e.gradient}),style:{"--background-image":a},key:i}))))}},function(e,t){var a="function"==typeof Float32Array;function o(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function l(e,t,a){return((o(t,a)*e+i(t,a))*e+n(t))*e}function r(e,t,a){return 3*o(t,a)*e*e+2*i(t,a)*e+n(t)}function c(e){return e}e.exports=function(e,t,o,i){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&o===i)return c;for(var n=a?new Float32Array(11):new Array(11),s=0;s<11;++s)n[s]=l(.1*s,e,o);return function(a){return 0===a?0:1===a?1:l(function(t){for(var a=0,i=1;10!==i&&n[i]<=t;++i)a+=.1;--i;var c=a+(t-n[i])/(n[i+1]-n[i])*.1,s=r(c,e,o);return s>=.001?function(e,t,a,o){for(var i=0;i<4;++i){var n=r(t,a,o);if(0===n)return t;t-=(l(t,a,o)-e)/n}return t}(t,c,e,o):0===s?c:function(e,t,a,o,i){var n,r,c=0;do{(n=l(r=t+(a-t)/2,o,i)-e)>0?a=r:t=r}while(Math.abs(n)>1e-7&&++c<10);return r}(t,a,a+.1,e,o)}(a),t,i)}}},function(e,t,a){"use strict";var o=a(0);t.a=({value:e,label:t,icons:a,enableSearch:i,onChange:n})=>{const[l,r]=Object(o.useState)(""),[c,s]=Object(o.useState)(a||[]);return Object(o.useEffect)(()=>{if(i&&l.length>=2){const e=a.filter(e=>-1!==e.name.toLowerCase().search(l.toLowerCase()));s(e)}else s(a)},[l]),Object(o.createElement)("div",{className:"affiliatex-field affiliatex-field-icon-list affiliatex-field-icon-list-selector"},t&&Object(o.createElement)("label",null,t),Object(o.createElement)("div",{className:"affiliatex-icon-list-wrapper"},i&&Object(o.createElement)("input",{type:"text",value:l,placeholder:"Search...",onChange:e=>r(e.target.value),autoComplete:"off"}),Object(o.createElement)("div",{className:"affiliatex-icon-list-icons"},c.map(t=>Object(o.createElement)("span",{className:e==t?"affiliatex-active":"",onClick:()=>n(t)},Object(o.createElement)("span",{className:t.value}))))))}},function(e,t,a){"use strict";var o=a(0),i=a(11),n=a.n(i),l=a(23),r=({onChange:e,value:t,value:{color:a}})=>Object(o.createElement)("div",null,Object(o.createElement)(l.ColorPicker,{color:a,enableAlpha:!0,onChangeComplete:o=>{o.rgb?e({...t,color:1===o.rgb.a?o.hex:`rgba(${o.rgb.r}, ${o.rgb.g}, ${o.rgb.b}, ${o.rgb.a})`}):e({...t,color:1===a.getAlpha()?hex:a.toRgbString()})}})),c=a(5),s=a.n(c),p=(a(1),a(22));const f=e=>e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE";var d=({containerRef:e,el:t,value:a,picker:i,onChange:l,option:c,style:p,wrapperProps:d={},inline_modal:u,appendToBody:b})=>{const m=Object(o.useMemo)(()=>a.color===f(c)?{color:"",key:"empty"}:{key:"color",color:a.color},[a,c,i]),g=Object(o.useMemo)(()=>d.ref&&d.ref.current&&t&&((e,t)=>{if(!e)return;if(!t)return;let a=getComputedStyle(e),o=parseFloat(a.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-o-6+"px"}})(d.ref.current,t.current),[d.ref&&d.ref.current,t&&t.current]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",n()({tabIndex:"0",className:s()("app-color-picker-modal",{"app-option-modal":!u&&b},c.modalClassName),style:{...g,...p||{}}},d),Object(o.createElement)(r,{key:m.key,onChange:e=>l(e),value:{...a,color:m.color}})))},u=a(31),b=a(25),m=a.n(b);t.a=({option:e,value:t,onChange:a,picker:i,onPickingChange:n,stopTransitioning:l,innerRef:r,containerRef:c,modalRef:b,isTransitioning:g,isPicking:h})=>{const v=Object(o.useRef)(),{appendToBody:x=!0}=e,{refreshPopover:y,styles:O,popoverProps:j}=Object(p.a)({contentRef:b,ref:c||{},defaultHeight:379,shouldCalculate:!e.inline_modal||x});if(e.inline_modal)return Object(o.createElement)(d,{containerRef:c,option:e,onChange:a,picker:i,value:t,inline_modal:!!e.inline_modal});let k=null;return g!==i.id&&(h||"").split(":")[0]!==i.id||(k=Object(o.createPortal)(Object(o.createElement)(u.a,{items:h,onRest:()=>l(),config:{duration:100,easing:m()(.25,.1,.25,1)},from:-1===(h||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(h||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(h||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},n=>(n||"").split(":")[0]===i.id&&(n=>Object(o.createElement)(d,{style:{...n,...x?O:{}},option:e,onChange:a,picker:i,value:t,el:v,wrapperProps:x?j:{ref:b},appendToBody:x}))),x?document.body:v.current.closest("section").parentNode)),Object(o.createElement)("div",{ref:e=>{v.current=e,r&&(r.current=e)},className:s()("app-color-picker-single",{"ct-no-color":(t||{}).color===f(e)})},Object(o.createElement)("span",{tabIndex:"0"},Object(o.createElement)("span",{tabIndex:"0",onClick:e=>{e.stopPropagation(),y();let t=h?h.split(":")[0]===i.id?null:`${i.id}:${h.split(":")[0]}`:i.id;n(t)},style:{background:(t||{}).color}},Object(o.createElement)("i",{className:"affiliate-blocks-tooltip-top"},i.title))),k)}},function(e,t){e.exports=window.wp.blocks},function(e,t,a){"use strict";a.d(t,"Transition",(function(){return ge}));var o=a(2);a.d(t,"Globals",(function(){return o.b}));var i=a(4),n=a(12);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e}).apply(this,arguments)}function r(e,...t){return o.s.fun(e)?e(...t):e}a(42),a(43);const c=(e,t)=>!0===e||!!(t&&e&&(o.s.fun(e)?e(t):Object(o.y)(e).includes(t))),s=(e,t)=>o.s.obj(e)?t&&e[t]:e,p=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,f=e=>e,d=(e,t=f)=>{let a=u;e.default&&!0!==e.default&&(e=e.default,a=Object.keys(e));const i={};for(const n of a){const a=t(e[n],n);o.s.und(a)||(i[n]=a)}return i},u=["config","onProps","onStart","onChange","onPause","onResume","onRest"],b={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function m(e){const t=function(e){const t={};let a=0;if(Object(o.l)(e,(e,o)=>{b[o]||(t[o]=e,a++)}),a)return t}(e);if(t){const a={to:t};return Object(o.l)(e,(e,o)=>o in t||(a[o]=e)),a}return l({},e)}function g(e){return e=Object(o.q)(e),o.s.arr(e)?e.map(g):Object(o.t)(e)?o.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function h(e){for(const t in e)return!0;return!1}function v(e){return o.s.fun(e)||o.s.arr(e)&&o.s.obj(e[0])}function x(e,t){var a;null==(a=e.ref)||a.delete(e),null==t||t.delete(e)}function y(e,t){var a;t&&e.ref!==t&&(null==(a=e.ref)||a.delete(e),t.add(e),e.ref=t)}const O=l({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class j{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,O)}}function k(e,t){if(o.s.und(t.decay)){const a=!o.s.und(t.tension)||!o.s.und(t.friction);!a&&o.s.und(t.frequency)&&o.s.und(t.damping)&&o.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),a&&(e.frequency=void 0)}else e.duration=void 0}const C=[];class w{constructor(){this.changed=!1,this.values=C,this.toValues=null,this.fromValues=C,this.to=void 0,this.from=void 0,this.config=new j,this.immediate=!1}}function E(e,{key:t,props:a,defaultProps:i,state:n,actions:s}){return new Promise((p,f)=>{var d;let u,b,m=c(null!=(d=a.cancel)?d:null==i?void 0:i.cancel,t);if(m)v();else{o.s.und(a.pause)||(n.paused=c(a.pause,t));let e=null==i?void 0:i.pause;!0!==e&&(e=n.paused||c(e,t)),u=r(a.delay||0,t),e?(n.resumeQueue.add(h),s.pause()):(s.resume(),h())}function g(){n.resumeQueue.add(h),n.timeouts.delete(b),b.cancel(),u=b.time-o.w.now()}function h(){u>0?(b=o.w.setTimeout(v,u),n.pauseQueue.add(g),n.timeouts.add(b)):v()}function v(){n.pauseQueue.delete(g),n.timeouts.delete(b),e<=(n.cancelId||0)&&(m=!0);try{s.start(l({},a,{callId:e,cancel:m}),p)}catch(e){f(e)}}})}const _=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?N(e.get()):t.every(e=>e.noop)?T(e.get()):B(e.get(),t.every(e=>e.finished)),T=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),B=(e,t,a=!1)=>({value:e,finished:t,cancelled:a}),N=e=>({value:e,cancelled:!0,finished:!1});function R(e,t,a,i){const{callId:n,parentId:r,onRest:c}=t,{asyncTo:s,promise:p}=a;return r||e!==s||t.reset?a.promise=(async()=>{a.asyncId=n,a.asyncTo=e;const f=d(t,(e,t)=>"onRest"===t?void 0:e);let u,b;const m=new Promise((e,t)=>(u=e,b=t)),g=e=>{const t=n<=(a.cancelId||0)&&N(i)||n!==a.asyncId&&B(i,!1);if(t)throw e.result=t,b(e),e},h=(e,t)=>{const r=new I,c=new L;return(async()=>{if(o.b.skipAnimation)throw S(a),c.result=B(i,!1),b(c),c;g(r);const s=o.s.obj(e)?l({},e):l({},t,{to:e});s.parentId=n,Object(o.l)(f,(e,t)=>{o.s.und(s[t])&&(s[t]=e)});const p=await i.start(s);return g(r),a.paused&&await new Promise(e=>{a.resumeQueue.add(e)}),p})()};let v;if(o.b.skipAnimation)return S(a),B(i,!1);try{let t;t=o.s.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,i.stop.bind(i))),await Promise.all([t.then(u),m]),v=B(i.get(),!0,!1)}catch(e){if(e instanceof I)v=e.result;else{if(!(e instanceof L))throw e;v=e.result}}finally{n==a.asyncId&&(a.asyncId=r,a.asyncTo=r?s:void 0,a.promise=r?p:void 0)}return o.s.fun(c)&&o.w.batchedUpdates(()=>{c(v,i,i.item)}),v})():p}function S(e,t){Object(o.m)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class I extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class L extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const P=e=>e instanceof z;let A=1;class z extends o.a{constructor(...e){super(...e),this.id=A++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Object(n.e)(this);return e&&e.getValue()}to(...e){return o.b.to(this,e)}interpolate(...e){return Object(o.j)(),o.b.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Object(o.d)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||o.o.sort(this),Object(o.d)(this,{type:"priority",parent:this,priority:e})}}const F=Symbol.for("SpringPhase"),M=e=>(1&e[F])>0,H=e=>(2&e[F])>0,V=e=>(4&e[F])>0,W=(e,t)=>t?e[F]|=3:e[F]&=-3,D=(e,t)=>t?e[F]|=4:e[F]&=-5;class q extends z{constructor(e,t){if(super(),this.key=void 0,this.animation=new w,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!o.s.und(e)||!o.s.und(t)){const a=o.s.obj(e)?l({},e):l({},t,{from:e});o.s.und(a.default)&&(a.default=!0),this.start(a)}}get idle(){return!(H(this)||this._state.asyncTo)||V(this)}get goal(){return Object(o.q)(this.animation.to)}get velocity(){const e=Object(n.e)(this);return e instanceof n.c?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return M(this)}get isAnimating(){return H(this)}get isPaused(){return V(this)}advance(e){let t=!0,a=!1;const i=this.animation;let{config:l,toValues:r}=i;const c=Object(n.g)(i.to);!c&&Object(o.r)(i.to)&&(r=Object(o.y)(Object(o.q)(i.to))),i.values.forEach((s,p)=>{if(s.done)return;const f=s.constructor==n.b?1:c?c[p].lastPosition:r[p];let d=i.immediate,u=f;if(!d){if(u=s.lastPosition,l.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const a=i.fromValues[p],n=null!=s.v0?s.v0:s.v0=o.s.arr(l.velocity)?l.velocity[p]:l.velocity;let r;if(o.s.und(l.duration))if(l.decay){const e=!0===l.decay?.998:l.decay,o=Math.exp(-(1-e)*t);u=a+n/(1-e)*(1-o),d=Math.abs(s.lastPosition-u)<.1,r=n*o}else{r=null==s.lastVelocity?n:s.lastVelocity;const t=l.precision||(a==f?.005:Math.min(1,.001*Math.abs(f-a))),i=l.restVelocity||t/10,c=l.clamp?0:l.bounce,p=!o.s.und(c),b=a==f?s.v0>0:a<f;let m,g=!1;const h=1,v=Math.ceil(e/h);for(let e=0;e<v&&(m=Math.abs(r)>i,m||(d=Math.abs(f-u)<=t,!d));++e)p&&(g=u==f||u>f==b,g&&(r=-r*c,u=f)),r+=(1e-6*-l.tension*(u-f)+.001*-l.friction*r)/l.mass*h,u+=r*h}else{let o=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,s.durationProgress>0&&(s.elapsedTime=l.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(l.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),u=a+l.easing(o)*(f-a),r=(u-s.lastPosition)/e,d=1==o}s.lastVelocity=r,Number.isNaN(u)&&(console.warn("Got NaN while animating:",this),d=!0)}c&&!c[p].done&&(d=!1),d?s.done=!0:t=!1,s.setValue(u,l.round)&&(a=!0)});const s=Object(n.e)(this),p=s.getValue();if(t){const e=Object(o.q)(i.to);p===e&&!a||l.decay?a&&l.decay&&this._onChange(p):(s.setValue(e),this._onChange(e)),this._stop()}else a&&this._onChange(p)}set(e){return o.w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(H(this)){const{to:e,config:t}=this.animation;o.w.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let a;return o.s.und(e)?(a=this.queue||[],this.queue=[]):a=[o.s.obj(e)?e:l({},t,{to:e})],Promise.all(a.map(e=>this._update(e))).then(e=>_(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),S(this._state,e&&this._lastCallId),o.w.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:a,from:i}=e;a=o.s.obj(a)?a[t]:a,(null==a||v(a))&&(a=void 0),i=o.s.obj(i)?i[t]:i,null==i&&(i=void 0);const l={to:a,from:i};return M(this)||(e.reverse&&([a,i]=[i,a]),i=Object(o.q)(i),o.s.und(i)?Object(n.e)(this)||this._set(a):this._set(i)),l}_update(e,t){let a=l({},e);const{key:i,defaultProps:n}=this;a.default&&Object.assign(n,d(a,(e,t)=>/^on/.test(t)?s(e,i):e)),K(this,a,"onProps"),Q(this,"onProps",a,this);const r=this._prepareNode(a);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const c=this._state;return E(++this._lastCallId,{key:i,props:a,defaultProps:n,state:c,actions:{pause:()=>{V(this)||(D(this,!0),Object(o.n)(c.pauseQueue),Q(this,"onPause",B(this,U(this,this.animation.to)),this))},resume:()=>{V(this)&&(D(this,!1),H(this)&&this._resume(),Object(o.n)(c.resumeQueue),Q(this,"onResume",B(this,U(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then(e=>{if(a.loop&&e.finished&&(!t||!e.noop)){const e=$(a);if(e)return this._update(e,!0)}return e})}_merge(e,t,a){if(t.cancel)return this.stop(!0),a(N(this));const i=!o.s.und(e.to),s=!o.s.und(e.from);if(i||s){if(!(t.callId>this._lastToId))return a(N(this));this._lastToId=t.callId}const{key:p,defaultProps:f,animation:d}=this,{to:u,from:b}=d;let{to:m=u,from:h=b}=e;!s||i||t.default&&!o.s.und(m)||(m=h),t.reverse&&([m,h]=[h,m]);const x=!Object(o.u)(h,b);x&&(d.from=h),h=Object(o.q)(h);const y=!Object(o.u)(m,u);y&&this._focus(m);const j=v(t.to),{config:C}=d,{decay:w,velocity:E}=C;(i||s)&&(C.velocity=0),t.config&&!j&&function(e,t,a){a&&(k(a=l({},a),t),t=l({},a,t)),k(e,t),Object.assign(e,t);for(const t in O)null==e[t]&&(e[t]=O[t]);let{mass:i,frequency:n,damping:r}=e;o.s.und(n)||(n<.01&&(n=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/n,2)*i,e.friction=4*Math.PI*r*i/n)}(C,r(t.config,p),t.config!==f.config?r(f.config,p):void 0);let _=Object(n.e)(this);if(!_||o.s.und(m))return a(B(this,!0));const S=o.s.und(t.reset)?s&&!t.default:!o.s.und(h)&&c(t.reset,p),I=S?h:this.get(),L=g(m),P=o.s.num(L)||o.s.arr(L)||Object(o.t)(L),A=!j&&(!P||c(f.immediate||t.immediate,p));if(y){const e=Object(n.f)(m);if(e!==_.constructor){if(!A)throw Error(`Cannot animate between ${_.constructor.name} and ${e.name}, as the "to" prop suggests`);_=this._set(L)}}const z=_.constructor;let F=Object(o.r)(m),V=!1;if(!F){const e=S||!M(this)&&x;(y||e)&&(V=Object(o.u)(g(I),L),F=!V),(Object(o.u)(d.immediate,A)||A)&&Object(o.u)(C.decay,w)&&Object(o.u)(C.velocity,E)||(F=!0)}if(V&&H(this)&&(d.changed&&!S?F=!0:F||this._stop(u)),!j&&((F||Object(o.r)(u))&&(d.values=_.getPayload(),d.toValues=Object(o.r)(m)?null:z==n.b?[1]:Object(o.y)(L)),d.immediate!=A&&(d.immediate=A,A||S||this._set(u)),F)){const{onRest:e}=d;Object(o.k)(X,e=>K(this,t,e));const i=B(this,U(this,u));Object(o.n)(this._pendingCalls,i),this._pendingCalls.add(a),d.changed&&o.w.batchedUpdates(()=>{d.changed=!S,null==e||e(i,this),S?r(f.onRest,i):null==d.onStart||d.onStart(i,this)})}S&&this._set(I),j?a(R(t.to,t,this._state,this)):F?this._start():H(this)&&!y?this._pendingCalls.add(a):a(T(I))}_focus(e){const t=this.animation;e!==t.to&&(Object(o.p)(this)&&this._detach(),t.to=e,Object(o.p)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Object(o.r)(t)&&(Object(o.c)(t,this),P(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Object(o.r)(e)&&Object(o.x)(e,this)}_set(e,t=!0){const a=Object(o.q)(e);if(!o.s.und(a)){const e=Object(n.e)(this);if(!e||!Object(o.u)(a,e.getValue())){const i=Object(n.f)(a);e&&e.constructor==i?e.setValue(a):Object(n.h)(this,i.create(a)),e&&o.w.batchedUpdates(()=>{this._onChange(a,t)})}}return Object(n.e)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Q(this,"onStart",B(this,U(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),r(this.animation.onChange,e,this)),r(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Object(n.e)(this).reset(Object(o.q)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),H(this)||(W(this,!0),V(this)||this._resume())}_resume(){o.b.skipAnimation?this.finish():o.o.start(this)}_stop(e,t){if(H(this)){W(this,!1);const a=this.animation;Object(o.k)(a.values,e=>{e.done=!0}),a.toValues&&(a.onChange=a.onPause=a.onResume=void 0),Object(o.d)(this,{type:"idle",parent:this});const i=t?N(this.get()):B(this.get(),U(this,null!=e?e:a.to));Object(o.n)(this._pendingCalls,i),a.changed&&(a.changed=!1,Q(this,"onRest",i,this))}}}function U(e,t){const a=g(t),i=g(e.get());return Object(o.u)(i,a)}function $(e,t=e.loop,a=e.to){let o=r(t);if(o){const i=!0!==o&&m(o),n=(i||e).reverse,r=!i||i.reset;return G(l({},e,{loop:t,default:!1,pause:void 0,to:!n||v(a)?a:void 0,from:r?e.from:void 0,reset:r},i))}}function G(e){const{to:t,from:a}=e=m(e),i=new Set;return o.s.obj(t)&&Z(t,i),o.s.obj(a)&&Z(a,i),e.keys=i.size?Array.from(i):null,e}function Z(e,t){Object(o.l)(e,(e,a)=>null!=e&&t.add(a))}const X=["onStart","onRest","onChange","onPause","onResume"];function K(e,t,a){e.animation[a]=t[a]!==p(t,a)?s(t[a],e.key):void 0}function Q(e,t,...a){var o,i,n,l;null==(o=(i=e.animation)[t])||o.call(i,...a),null==(n=(l=e.defaultProps)[t])||n.call(l,...a)}const Y=["onStart","onChange","onRest"];let J=1;class ee{constructor(e,t){this.id=J++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(l({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,a)=>e[a]=t.get()),e}set(e){for(const t in e){const a=e[t];o.s.und(a)||this.springs[t].set(a)}}update(e){return e&&this.queue.push(G(e)),this}start(e){let{queue:t}=this;return e?t=Object(o.y)(e).map(G):this.queue=[],this._flush?this._flush(this,t):(ie(this,t),function(e,t){return Promise.all(t.map(t=>async function e(t,a,i){const{keys:n,to:l,from:r,loop:c,onRest:s,onResolve:f}=a,d=o.s.obj(a.default)&&a.default;c&&(a.loop=!1),!1===l&&(a.to=null),!1===r&&(a.from=null);const u=o.s.arr(l)||o.s.fun(l)?l:void 0;u?(a.to=void 0,a.onRest=void 0,d&&(d.onRest=void 0)):Object(o.k)(Y,e=>{const i=a[e];if(o.s.fun(i)){const o=t._events[e];a[e]=({finished:e,cancelled:t})=>{const a=o.get(i);a?(e||(a.finished=!1),t&&(a.cancelled=!0)):o.set(i,{value:null,finished:e||!1,cancelled:t||!1})},d&&(d[e]=a[e])}});const b=t._state;a.pause===!b.paused?(b.paused=a.pause,Object(o.n)(a.pause?b.pauseQueue:b.resumeQueue)):b.paused&&(a.pause=!0);const m=(n||Object.keys(t.springs)).map(e=>t.springs[e].start(a)),g=!0===a.cancel||!0===p(a,"cancel");(u||g&&b.asyncId)&&m.push(E(++t._lastAsyncId,{props:a,state:b,actions:{pause:o.v,resume:o.v,start(e,a){g?(S(b,t._lastAsyncId),a(N(t))):(e.onRest=s,a(R(u,e,b,t)))}}})),b.paused&&await new Promise(e=>{b.resumeQueue.add(e)});const h=_(t,await Promise.all(m));if(c&&h.finished&&(!i||!h.noop)){const o=$(a,c,l);if(o)return ie(t,[o]),e(t,o,!0)}return f&&o.w.batchedUpdates(()=>f(h,t,t.item)),h}(e,t))).then(t=>_(e,t))}(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const a=this.springs;Object(o.k)(Object(o.y)(t),t=>a[t].stop(!!e))}else S(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(o.s.und(e))this.start({pause:!0});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].pause())}return this}resume(e){if(o.s.und(e))this.start({pause:!1});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].resume())}return this}each(e){Object(o.l)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:a}=this._events,i=this._active.size>0,n=this._changed.size>0;(i&&!this._started||n&&!this._started)&&(this._started=!0,Object(o.m)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const l=!i&&this._started,r=n||l&&a.size?this.get():null;n&&t.size&&Object(o.m)(t,([e,t])=>{t.value=r,e(t,this,this._item)}),l&&(this._started=!1,Object(o.m)(a,([e,t])=>{t.value=r,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}o.w.onFrame(this._onFrame)}}function te(e,t){const a=l({},e.springs);return t&&Object(o.k)(Object(o.y)(t),e=>{o.s.und(e.keys)&&(e=G(e)),o.s.obj(e.to)||(e=l({},e,{to:void 0})),oe(a,e,e=>ae(e))}),function(e,t){Object(o.l)(t,(t,a)=>{e.springs[a]||(e.springs[a]=t,Object(o.c)(t,e))})}(e,a),a}function ae(e,t){const a=new q;return a.key=e,t&&Object(o.c)(a,t),a}function oe(e,t,a){t.keys&&Object(o.k)(t.keys,o=>{(e[o]||(e[o]=a(o)))._prepareNode(t)})}function ie(e,t){Object(o.k)(t,t=>{oe(e.springs,t,t=>ae(t,e))})}function ne(e,t){if(null==e)return{};var a,o,i={},n=Object.keys(e);for(o=0;o<n.length;o++)a=n[o],t.indexOf(a)>=0||(i[a]=e[a]);return i}const le=["children"],re=e=>{let{children:t}=e,a=ne(e,le);const n=Object(i.useContext)(ce),l=a.pause||!!n.pause,r=a.immediate||!!n.immediate;a=Object(o.B)(()=>({pause:l,immediate:r}),[l,r]);const{Provider:c}=ce;return i.createElement(c,{value:a},t)},ce=(se=re,pe={},Object.assign(se,i.createContext(pe)),se.Provider._context=se,se.Consumer._context=se,se);var se,pe;re.Provider=ce.Provider,re.Consumer=ce.Consumer;const fe=()=>{const e=[],t=function(t){Object(o.i)();const i=[];return Object(o.k)(e,(e,n)=>{if(o.s.und(t))i.push(e.start());else{const o=a(t,e,n);o&&i.push(e.start(o))}}),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const a=e.indexOf(t);~a&&e.splice(a,1)},t.pause=function(){return Object(o.k)(e,e=>e.pause(...arguments)),this},t.resume=function(){return Object(o.k)(e,e=>e.resume(...arguments)),this},t.set=function(t){Object(o.k)(e,e=>e.set(t))},t.start=function(t){const a=[];return Object(o.k)(e,(e,i)=>{if(o.s.und(t))a.push(e.start());else{const o=this._getProps(t,e,i);o&&a.push(e.start(o))}}),a},t.stop=function(){return Object(o.k)(e,e=>e.stop(...arguments)),this},t.update=function(t){return Object(o.k)(e,(e,a)=>e.update(this._getProps(t,e,a))),this};const a=function(e,t,a){return o.s.fun(e)?e(a,t):e};return t._getProps=a,t};let de;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(de||(de={}));let ue=1;function be(e,{key:t,keys:a=t},i){if(null===a){const t=new Set;return e.map(e=>{const a=i&&i.find(a=>a.item===e&&a.phase!==de.LEAVE&&!t.has(a));return a?(t.add(a),a.key):ue++})}return o.s.und(a)?e:o.s.fun(a)?e.map(a):Object(o.y)(a)}const me=["items","children"];function ge(e){let{items:t,children:a}=e;return function(e,t,a){const n=o.s.fun(t)&&t,{reset:c,sort:s,trail:p=0,expires:f=!0,onDestroyed:u,ref:b,config:g}=n?n():t,v=Object(i.useMemo)(()=>n||3==arguments.length?fe():void 0,[]),O=Object(o.y)(e),j=[],k=Object(i.useRef)(null),C=c?null:k.current;Object(o.A)(()=>{k.current=j}),Object(o.C)(()=>()=>Object(o.k)(k.current,e=>{e.expired&&clearTimeout(e.expirationId),x(e.ctrl,v),e.ctrl.stop(!0)}));const w=be(O,n?n():t,C),E=c&&k.current||[];Object(o.A)(()=>Object(o.k)(E,({ctrl:e,item:t,key:a})=>{x(e,v),r(u,t,a)}));const _=[];if(C&&Object(o.k)(C,(e,t)=>{e.expired?(clearTimeout(e.expirationId),E.push(e)):~(t=_[t]=w.indexOf(e.key))&&(j[t]=e)}),Object(o.k)(O,(e,t)=>{j[t]||(j[t]={key:w[t],item:e,phase:de.MOUNT,ctrl:new ee},j[t].ctrl.item=e)}),_.length){let e=-1;const{leave:a}=n?n():t;Object(o.k)(_,(t,o)=>{const i=C[o];~t?(e=j.indexOf(i),j[e]=l({},i,{item:O[t]})):a&&j.splice(++e,0,i)})}o.s.fun(s)&&j.sort((e,t)=>s(e.item,t.item));let T=-p;const B=Object(o.z)(),N=d(t),R=new Map;Object(o.k)(j,(e,a)=>{const i=e.key,c=e.phase,s=n?n():t;let d,u,h=r(s.delay||0,i);if(c==de.MOUNT)d=s.enter,u=de.ENTER;else{const e=w.indexOf(i)<0;if(c!=de.LEAVE)if(e)d=s.leave,u=de.LEAVE;else{if(!(d=s.update))return;u=de.UPDATE}else{if(e)return;d=s.enter,u=de.ENTER}}if(d=r(d,e.item,a),d=o.s.obj(d)?m(d):{to:d},!d.config){const t=g||N.config;d.config=r(t,e.item,a,u)}T+=p;const v=l({},N,{delay:h+T,ref:b,immediate:s.immediate,reset:!1},d);if(u==de.ENTER&&o.s.und(v.from)){const i=n?n():t,l=o.s.und(i.initial)||C?i.from:i.initial;v.from=r(l,e.item,a)}const{onResolve:x}=v;v.onResolve=e=>{r(x,e);const t=k.current,a=t.find(e=>e.key===i);if(a&&(!e.cancelled||a.phase==de.UPDATE)&&a.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if(a.phase==de.LEAVE){const t=r(f,a.item);if(!1!==t){const o=!0===t?0:t;if(a.expired=!0,!e&&o>0)return void(o<=2147483647&&(a.expirationId=setTimeout(B,o)))}}e&&t.some(e=>e.expired)&&B()}};const y=te(e.ctrl,v);R.set(e,{phase:u,springs:y,payload:v})});const S=Object(i.useContext)(re),I=Object(o.D)(S),L=S!==I&&h(S);Object(o.A)(()=>{L&&Object(o.k)(j,e=>{e.ctrl.start({default:S})})},[S]),Object(o.A)(()=>{Object(o.k)(R,({phase:e,payload:t},a)=>{const{ctrl:o}=a;a.phase=e,null==v||v.add(o),L&&e==de.ENTER&&o.start({default:S}),t&&(y(o,t.ref),o.ref?o.update(t):o.start(t))})},c?void 0:a);const P=e=>i.createElement(i.Fragment,null,j.map((t,a)=>{const{springs:n}=R.get(t)||t.ctrl,r=e(l({},n),t.item,t,a);return r&&r.type?i.createElement(r.type,l({},r.props,{key:o.s.str(t.key)||o.s.num(t.key)?t.key:t.ctrl.id,ref:r.ref})):r}));return v?[P,v]:P}(t,ne(e,me))(a)}class he extends z{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Object(o.f)(...t);const a=this._get(),i=Object(n.f)(a);Object(n.h)(this,i.create(a))}advance(e){const t=this._get(),a=this.get();Object(o.u)(t,a)||(Object(n.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xe(this._active)&&ye(this)}_get(){const e=o.s.arr(this.source)?this.source.map(o.q):Object(o.y)(Object(o.q)(this.source));return this.calc(...e)}_start(){this.idle&&!xe(this._active)&&(this.idle=!1,Object(o.k)(Object(n.g)(this),e=>{e.done=!1}),o.b.skipAnimation?(o.w.batchedUpdates(()=>this.advance()),ye(this)):o.o.start(this))}_attach(){let e=1;Object(o.k)(Object(o.y)(this.source),t=>{Object(o.r)(t)&&Object(o.c)(t,this),P(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Object(o.k)(Object(o.y)(this.source),e=>{Object(o.r)(e)&&Object(o.x)(e,this)}),this._active.clear(),ye(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(o.y)(this.source).reduce((e,t)=>Math.max(e,(P(t)?t.priority:0)+1),0))}}function ve(e){return!1!==e.idle}function xe(e){return!e.size||Array.from(e).every(ve)}function ye(e){e.idle||(e.idle=!0,Object(o.k)(Object(n.g)(e),e=>{e.done=!0}),Object(o.d)(e,{type:"idle",parent:e}))}o.b.assign({createStringInterpolator:o.g,to:(e,t)=>new he(e,t)}),o.o.advance},function(e,t,a){"use strict";var o=a(0),i=a(27),n=a(17),l=a(21);t.a=({option:e,values:t,value:a,onChange:r})=>{const[{isPicking:c,isTransitioning:s},p]=Object(o.useState)({isPicking:null,isTransitioning:null}),f=Object(o.useRef)(),d=Object(o.useRef)();return Object(o.createElement)(n.a,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"app-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p(({isPicking:e})=>({isPicking:null,isTransitioning:e}))}},e.pickers.filter(e=>!e.condition||Object(l.a)(Object(l.b)(e.condition),t)).map(t=>Object(o.createElement)(i.a,{containerRef:f,picker:t,key:t.id,option:e,isPicking:c,modalRef:d,isTransitioning:s,onPickingChange:e=>p({isTransitioning:t.id,isPicking:e}),stopTransitioning:()=>p(e=>({...e,isTransitioning:!1})),onChange:e=>r({...a,[t.id]:e}),value:a[t.id]||e.value[t.id]})))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return je}));var o=a(16),i=a(13),n=a(10),l=a(9),r=a(4),c=a.n(r),s=a(32),p=a.n(s),f=void 0,d=void 0,u=[],b=function(e){return"undefined"!=typeof window&&window.requestAnimationFrame(e)},m=void 0,g=function(){return Date.now()},h=void 0,v=function(){function e(){}var t=e.prototype;return t.attach=function(){},t.detach=function(){},t.getValue=function(){},t.getAnimatedValue=function(){return this.getValue()},t.addChild=function(e){},t.removeChild=function(e){},t.getChildren=function(){return[]},e}(),x=function(e){return Object.keys(e).map((function(t){return e[t]}))},y=function(e){function t(){for(var t,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).children=[],t.getChildren=function(){return t.children},t.getPayload=function(e){return void 0===e&&(e=void 0),void 0!==e&&t.payload?t.payload[e]:t.payload||Object(n.a)(Object(n.a)(t))},t}Object(i.a)(t,e);var a=t.prototype;return a.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},a.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},t}(v),O=function(e){function t(){for(var t,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).payload=[],t.getAnimatedValue=function(){return t.getValue()},t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(Object(n.a)(Object(n.a)(t)))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(Object(n.a)(Object(n.a)(t)))}))},t}return Object(i.a)(t,e),t}(y),j=function(e){function t(){for(var t,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).payload={},t.getAnimatedValue=function(){return t.getValue(!0)},t.attach=function(){return x(t.payload).forEach((function(e){return e instanceof v&&e.addChild(Object(n.a)(Object(n.a)(t)))}))},t.detach=function(){return x(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(Object(n.a)(Object(n.a)(t)))}))},t}return Object(i.a)(t,e),t.prototype.getValue=function(e){void 0===e&&(e=!1);var t={};for(var a in this.payload){var o=this.payload[a];(!e||o instanceof v)&&(t[a]=o instanceof v?o[e?"getAnimatedValue":"getValue"]():o)}return t},t}(y),k=function(e){function t(t){var a;return a=e.call(this)||this,!(t=t||{}).transform||t.transform instanceof v||(t=d.transform(t)),a.payload=t,a}return Object(i.a)(t,e),t}(j),C={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},w=function(){function e(){}return e.create=function(t,a,o){if("function"==typeof t)return t;if(m&&t.output&&"string"==typeof t.output[0])return m(t);if(Array.isArray(t))return e.create({range:t,output:a,extrapolate:o||"extend"});var i=t.output,n=t.range||[0,1],l=t.easing||function(e){return e},r="extend",c=t.map;void 0!==t.extrapolateLeft?r=t.extrapolateLeft:void 0!==t.extrapolate&&(r=t.extrapolate);var s="extend";return void 0!==t.extrapolateRight?s=t.extrapolateRight:void 0!==t.extrapolate&&(s=t.extrapolate),function(e){var t=function(e,t){for(var a=1;a<t.length-1&&!(t[a]>=e);++a);return a-1}(e,n);return function(e,t,a,o,i,n,l,r,c){var s=c?c(e):e;if(s<t){if("identity"===l)return s;"clamp"===l&&(s=t)}if(s>a){if("identity"===r)return s;"clamp"===r&&(s=a)}return o===i?o:t===a?e<=t?o:i:(t===-1/0?s=-s:a===1/0?s-=t:s=(s-t)/(a-t),s=n(s),o===-1/0?s=-s:i===1/0?s+=o:s=s*(i-o)+o,s)}(e,n[t],n[t+1],i[t],i[t+1],l,r,s,c)}},e}(),E="[-+]?\\d*\\.?\\d+";function _(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var T=new RegExp("rgb"+_(E,E,E)),B=new RegExp("rgba"+_(E,E,E,E)),N=new RegExp("hsl"+_(E,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),R=new RegExp("hsla"+_(E,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",E)),S=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,I=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,L=/^#([0-9a-fA-F]{6})$/,P=/^#([0-9a-fA-F]{8})$/;function A(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function z(e,t,a){var o=a<.5?a*(1+t):a+t-a*t,i=2*a-o,n=A(i,o,e+1/3),l=A(i,o,e),r=A(i,o,e-1/3);return Math.round(255*n)<<24|Math.round(255*l)<<16|Math.round(255*r)<<8}function F(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function M(e){return(parseFloat(e)%360+360)%360/360}function H(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function V(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function W(e){var t,a,o="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(a=L.exec(t))?parseInt(a[1]+"ff",16)>>>0:C.hasOwnProperty(t)?C[t]:(a=T.exec(t))?(F(a[1])<<24|F(a[2])<<16|F(a[3])<<8|255)>>>0:(a=B.exec(t))?(F(a[1])<<24|F(a[2])<<16|F(a[3])<<8|H(a[4]))>>>0:(a=S.exec(t))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+"ff",16)>>>0:(a=P.exec(t))?parseInt(a[1],16)>>>0:(a=I.exec(t))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+a[4]+a[4],16)>>>0:(a=N.exec(t))?(255|z(M(a[1]),V(a[2]),V(a[3])))>>>0:(a=R.exec(t))?(z(M(a[1]),V(a[2]),V(a[3]))|H(a[4]))>>>0:null;return null===o?e:"rgba("+((4278190080&(o=o||0))>>>24)+", "+((16711680&o)>>>16)+", "+((65280&o)>>>8)+", "+(255&o)/255+")"}var D=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,U=new RegExp("("+Object.keys(C).join("|")+")","g"),$=function(e){function t(a,o,i){var l;return(l=e.call(this)||this).getValue=function(){var e;return(e=l).calc.apply(e,l.payload.map((function(e){return e.getValue()})))},l.updateConfig=function(e,t){return l.calc=w.create(e,t)},l.interpolate=function(e,a){return new t(Object(n.a)(Object(n.a)(l)),e,a)},l.payload=a instanceof O&&!a.updateConfig?a.payload:Array.isArray(a)?a:[a],l.calc=w.create(o,i),l}return Object(i.a)(t,e),t}(O),G=function(e){function t(t){var a;return(a=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),a.value=e,t&&a.flush()},a.getValue=function(){return a.value},a.updateStyles=function(){return function e(t,a){"function"==typeof t.update?a.add(t):t.getChildren().forEach((function(t){return e(t,a)}))}(Object(n.a)(Object(n.a)(a)),a.animatedStyles)},a.updateValue=function(e){return a.flush(a.value=e)},a.interpolate=function(e,t){return new $(Object(n.a)(Object(n.a)(a)),e,t)},a.value=t,a.animatedStyles=new Set,a.done=!1,a.startPosition=t,a.lastPosition=t,a.lastVelocity=void 0,a.lastTime=void 0,a.controller=void 0,a}Object(i.a)(t,e);var a=t.prototype;return a.flush=function(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((function(e){return e.update()}))},a.prepare=function(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())},t}(y),Z=function(e){function t(t){var a;return(a=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===a.payload.length&&e.forEach((function(e,o){return a.payload[o].setValue(e,t)})):a.payload.forEach((function(o,i){return a.payload[i].setValue(e,t)}))},a.getValue=function(){return a.payload.map((function(e){return e.getValue()}))},a.interpolate=function(e,t){return new $(Object(n.a)(Object(n.a)(a)),e,t)},a.payload=t.map((function(e){return new G(e)})),a}return Object(i.a)(t,e),t}(O);function X(e,t){return null==e?t:e}function K(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function Q(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;var a;for(a in e)if(!(a in t))return!1;for(a in t)if(e[a]!==t[a])return!1;return void 0!==a||e===t}function Y(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,a):e}function J(e){return Object.keys(e).map((function(t){return e[t]}))}function ee(e){var t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,Object(o.a)(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),a=Object.keys(e).reduce((function(a,o){var i;return void 0!==t[o]?a:Object(l.a)({},a,((i={})[o]=e[o],i))}),{});return Object(l.a)({to:t},a)}function te(e,t){var a,o=t[0],i=t[1];return Object(l.a)({},e,((a={})[o]=new(Array.isArray(i)?Z:G)(i),a))}function ae(e){var t=e.from,a=e.to,o=e.native,i=Object.entries(Object(l.a)({},t,a));return o?i.reduce(te,{}):Object(l.a)({},t,a)}function oe(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}var ie=function(e){return"auto"===e},ne={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},le=["Webkit","Ms","Moz","O"];function re(e,t,a){return null==t||"boolean"==typeof t||""===t?"":a||"number"!=typeof t||0===t||ne.hasOwnProperty(e)&&ne[e]?(""+t).trim():t+"px"}ne=Object.keys(ne).reduce((function(e,t){return le.forEach((function(a){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(a,t)]=e[t]})),e}),ne);var ce={};h=function(e){return new k(e)},m=function(e){var t=e.output.map((function(e){return e.replace(q,W)})).map((function(e){return e.replace(U,W)})),a=t[0].match(D).map((function(){return[]}));t.forEach((function(e){e.match(D).forEach((function(e,t){return a[t].push(+e)}))}));var o=t[0].match(D).map((function(t,o){return w.create(Object(l.a)({},e,{output:a[o]}))}));return function(e){var a=0;return t[0].replace(D,(function(){return o[a++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,a,o,i){return"rgba("+Math.round(t)+", "+Math.round(a)+", "+Math.round(o)+", "+i+")"}))}},u=C,f=function(e,t){var a=e.from,o=e.to,i=e.children;if(J(o).some(ie)||J(a).some(ie)){var n=i(ae(e));if(n){Array.isArray(n)&&(n={type:"div",props:{children:n}});var r=n.props.style;return c.a.createElement(n.type,Object(l.a)({key:n.key?n.key:void 0},n.props,{style:Object(l.a)({},r,{position:"absolute",visibility:"hidden"}),ref:function(i){if(i){var n,r,c=p.a.findDOMNode(i),s=getComputedStyle(c);if("border-box"===s.boxSizing)n=c.offsetWidth,r=c.offsetHeight;else{var f=parseFloat(s.paddingLeft||0)+parseFloat(s.paddingRight||0),d=parseFloat(s.paddingTop||0)+parseFloat(s.paddingBottom||0),u=parseFloat(s.borderLeftWidth||0)+parseFloat(s.borderRightWidth||0),b=parseFloat(s.borderTopWidth||0)+parseFloat(s.borderBottomWidth||0);n=c.offsetWidth-f-u,r=c.offsetHeight-d-b}var m=function(e,t){return function(a,o){var i,n=o[0],r=o[1];return Object(l.a)({},a,((i={})[n]="auto"===r?~n.indexOf("height")?t:e:r,i))}}(n,r);t(Object(l.a)({},e,{from:Object.entries(a).reduce(m,a),to:Object.entries(o).reduce(m,o)}))}}}))}}},function(e,t){d={fn:e,transform:t}}((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var a=t.style,i=t.children,n=t.scrollTop,l=t.scrollLeft,r=Object(o.a)(t,["style","children","scrollTop","scrollLeft"]);for(var c in void 0!==n&&(e.scrollTop=n),void 0!==l&&(e.scrollLeft=l),void 0!==i&&(e.textContent=i),a)if(a.hasOwnProperty(c)){var s=0===c.indexOf("--"),p=re(c,a[c],s);"float"===c&&(c="cssFloat"),s?e.style.setProperty(c,p):e.style[c]=p}for(var f in r){var d=ce[f]||(ce[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(d)&&e.setAttribute(d,r[f])}}),(function(e){return e}));var se=!1,pe=new Set,fe=function e(){var t=g(),a=pe,o=Array.isArray(a),i=0;for(a=o?a:a[Symbol.iterator]();;){var n;if(o){if(i>=a.length)break;n=a[i++]}else{if((i=a.next()).done)break;n=i.value}for(var l=n,r=!0,c=!0,s=0;s<l.configs.length;s++){for(var p=l.configs[s],f=void 0,d=void 0,u=0;u<p.animatedValues.length;u++){var m=p.animatedValues[u];if(!m.done){var h=p.fromValues[u],x=p.toValues[u],y=m.lastPosition,O=x instanceof v,j=Array.isArray(p.initialVelocity)?p.initialVelocity[u]:p.initialVelocity;if(O&&(x=x.getValue()),p.immediate||!O&&!p.decay&&h===x)m.updateValue(x),m.done=!0;else if(p.delay&&t-l.startTime<p.delay)r=!1;else if(c=!1,"string"!=typeof h&&"string"!=typeof x){if(void 0!==p.duration)y=h+p.easing((t-l.startTime-p.delay)/p.duration)*(x-h),f=t>=l.startTime+p.delay+p.duration;else if(p.decay)y=h+j/(1-.998)*(1-Math.exp(-(1-.998)*(t-l.startTime))),(f=Math.abs(m.lastPosition-y)<.1)&&(x=y);else{d=void 0!==m.lastTime?m.lastTime:t,j=void 0!==m.lastVelocity?m.lastVelocity:p.initialVelocity,t>d+64&&(d=t);for(var k=Math.floor(t-d),C=0;C<k;++C)y+=1*(j+=(-p.tension*(y-x)+-p.friction*j)/p.mass*1/1e3)/1e3;var w=!(!p.clamp||0===p.tension)&&(h<x?y>x:y<x),E=Math.abs(j)<=p.precision,_=0===p.tension||Math.abs(x-y)<=p.precision;f=w||E&&_,m.lastVelocity=j,m.lastTime=t}O&&!p.toValues[u].done&&(f=!1),f?(m.value!==x&&(y=x),m.done=!0):r=!1,m.updateValue(y),m.lastPosition=y}else m.updateValue(x),m.done=!0}}!l.props.onFrame&&l.props.native||(l.animatedProps[p.name]=p.interpolation.getValue())}!l.props.onFrame&&l.props.native||(!l.props.native&&l.onUpdate&&l.onUpdate(),l.props.onFrame&&l.props.onFrame(l.animatedProps)),r&&(pe.delete(l),l.debouncedOnEnd({finished:!0,noChange:c}))}pe.size?b(e):se=!1},de=function(e){pe.has(e)&&pe.delete(e)},ue=function(){function e(e,t){var a=this;void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=function(){return a.props.native?a.interpolations:a.animatedProps},this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update(Object(l.a)({},e,t))}var t=e.prototype;return t.update=function(e){var t=this;this.props=Object(l.a)({},this.props,e);var a=this.props.interpolateTo?ee(this.props):this.props,o=a.from,i=void 0===o?{}:o,n=a.to,r=void 0===n?{}:n,c=a.config,s=void 0===c?{}:c,p=a.delay,f=void 0===p?0:p,d=a.reverse,b=a.attach,m=a.reset,g=a.immediate,h=a.autoStart,v=a.ref;if(d){var x=[r,i];i=x[0],r=x[1]}this.hasChanged=!1;var y=b&&b(this),O=m?{}:this.merged;if(this.merged=Object(l.a)({},i,O,r),this.animations=Object.entries(this.merged).reduce((function(e,a,o){var n,r,c,p=a[0],d=a[1],b=!m&&e[p]||{},h="number"==typeof d,v="string"==typeof d&&!d.startsWith("#")&&!/\d/.test(d)&&!u[d],x=!h&&!v&&Array.isArray(d),O=void 0!==i[p]?i[p]:d,j=h||x||v?d:1,k=Y(s,p);if(y&&(j=y.animations[p].parent),void 0===k.decay&&Q(b.changes,d))return e;if(t.hasChanged=!0,h||v)r=c=b.parent||new G(O);else if(x)r=c=b.parent||new Z(O);else{var C=b.interpolation&&b.interpolation.calc(b.parent.value);b.parent?(r=b.parent).setValue(0,!1):r=new G(0);var w={output:[void 0!==C?C:O,d]};b.interpolation?(c=b.interpolation,b.interpolation.updateConfig(w)):c=r.interpolate(w)}Y(g,p)&&r.setValue(d,!1);var E=K(r.getPayload());return E.forEach((function(e){return e.prepare(t)})),Object(l.a)({},e,((n={})[p]=Object(l.a)({},b,{name:p,parent:r,interpolation:c,animatedValues:E,changes:d,fromValues:K(r.getValue()),toValues:K(y?j.getPayload():j),immediate:Y(g,p),delay:X(k.delay,f||0),initialVelocity:X(k.velocity,0),clamp:X(k.clamp,!1),precision:X(k.precision,.01),tension:X(k.tension,170),friction:X(k.friction,26),mass:X(k.mass,1),duration:k.duration,easing:X(k.easing,(function(e){return e})),decay:k.decay}),n))}),this.animations),this.hasChanged)for(var j in this.configs=J(this.animations),this.animatedProps={},this.interpolations={},this.animations)this.interpolations[j]=this.animations[j].interpolation,this.animatedProps[j]=this.animations[j].interpolation.getValue();for(var k=arguments.length,C=new Array(k>1?k-1:0),w=1;w<k;w++)C[w-1]=arguments[w];v||!h&&!C.length||this.start.apply(this,C);var E=C[0],_=C[1];return this.onEnd="function"==typeof E&&E,this.onUpdate=_,this.getValues()},t.start=function(e,t){var a=this;return this.startTime=g(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),this,pe.has(this)||(pe.add(this),se||b(fe),se=!0),new Promise((function(e){return a.resolve=e}))},t.stop=function(e){void 0===e&&(e=!1),e&&J(this.animations).forEach((function(e){return e.changes=void 0})),this.debouncedOnEnd({finished:e})},t.destroy=function(){de(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]},t.debouncedOnEnd=function(e){de(this),this.isActive=!1;var t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null},e}(),be=function(e){function t(t,a){var o;return o=e.call(this)||this,t.style&&(t=Object(l.a)({},t,{style:h(t.style)})),o.payload=t,o.update=a,o.attach(),o}return Object(i.a)(t,e),t}(j);function me(e){var t=function(t){function a(e){var a;return(a=t.call(this)||this).callback=function(){a.node&&!1===d.fn(a.node,a.propsAnimated.getAnimatedValue(),Object(n.a)(Object(n.a)(a)))&&a.forceUpdate()},a.attachProps(e),a}Object(i.a)(a,t);var r=a.prototype;return r.componentWillUnmount=function(){this.propsAnimated&&this.propsAnimated.detach()},r.setNativeProps=function(e){!1===d.fn(this.node,e,this)&&this.forceUpdate()},r.attachProps=function(e){e.forwardRef;var t=Object(o.a)(e,["forwardRef"]),a=this.propsAnimated;this.propsAnimated=new be(t,this.callback),a&&a.detach()},r.shouldComponentUpdate=function(e){var t=e.style,a=Object(o.a)(e,["style"]),i=this.props,n=i.style;return!(Q(Object(o.a)(i,["style"]),a)&&Q(n,t)||(this.attachProps(e),0))},r.render=function(){var t=this,a=this.propsAnimated.getValue(),i=(a.scrollTop,a.scrollLeft,Object(o.a)(a,["scrollTop","scrollLeft"]));return c.a.createElement(e,Object(l.a)({},i,{ref:function(e){return t.node=oe(e,t.props.forwardRef)}}))},a}(c.a.Component);return c.a.forwardRef((function(e,a){return c.a.createElement(t,Object(l.a)({},e,{forwardRef:a}))}))}var ge=function(e){function t(){for(var t,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},t.controller=new ue(null,null),t.didUpdate=!1,t.didInject=!1,t.finished=!0,t.start=function(){t.finished=!1;var e=t.mounted;t.controller.start((function(a){return t.finish(Object(l.a)({},a,{wasMounted:e}))}),t.update)},t.stop=function(){return t.controller.stop(!0)},t.update=function(){return t.mounted&&t.setState({internal:!0})},t.finish=function(e){var a=e.finished,o=e.noChange,i=e.wasMounted;t.finished=!0,t.mounted&&a&&(!t.props.onRest||!i&&o||t.props.onRest(t.controller.merged),t.mounted&&t.didInject&&(t.afterInject=ae(t.props),t.setState({internal:!0})),t.mounted&&(t.didInject||t.props.after)&&t.setState({internal:!0}),t.didInject=!1)},t}Object(i.a)(t,e);var a=t.prototype;return a.componentDidMount=function(){this.componentDidUpdate(),this.mounted=!0},a.componentWillUnmount=function(){this.mounted=!1,this.stop()},t.getDerivedStateFromProps=function(e,t){var a=t.internal,o=t.lastProps,i=e.from,n=e.to,l=e.reset,r=e.force;return{propsChanged:!Q(n,o.to)||!Q(i,o.from)||l&&!a||r&&!a,lastProps:e,internal:!1}},a.render=function(){var e=this,t=this.props.children,a=this.state.propsChanged;if(this.props.inject&&a&&!this.injectProps){var o=this.props.inject(this.props,(function(t){e.injectProps=t,e.setState({internal:!0})}));if(o)return o}(this.injectProps||a)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):a&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);var i=Object(l.a)({},this.controller.getValues(),this.afterInject);return this.finished&&(i=Object(l.a)({},i,this.props.after)),Object.keys(i).length?t(i):null},a.componentDidUpdate=function(){this.didUpdate&&this.start(),this.didUpdate=!1},t}(c.a.Component);ge.defaultProps={from:{},to:{},config:{tension:170,friction:26},native:!1,immediate:!1,reset:!1,force:!1,inject:f};var he=function(e){function t(){for(var t,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).first=!0,t.instances=new Set,t.hook=function(e,a,o,i){return t.instances.add(e),(i?a===o-1:0===a)?void 0:Array.from(t.instances)[i?a+1:a-1]},t}Object(i.a)(t,e);var a=t.prototype;return a.render=function(){var e=this,t=this.props,a=t.items,i=t.children,n=t.from,r=void 0===n?{}:n,s=t.initial,p=t.reverse,f=t.keys,d=t.delay,u=t.onRest,b=Object(o.a)(t,["items","children","from","initial","reverse","keys","delay","onRest"]),m=K(a);return K(m).map((function(t,a){return c.a.createElement(ge,Object(l.a)({onRest:0===a?u:null,key:"function"==typeof f?f(t):K(f)[a],from:e.first&&void 0!==s?s||{}:r},b,{delay:0===a&&d||void 0,attach:function(t){return e.hook(t,a,m.length,p)},children:function(e){var o=i(t,a);return o?o(e):null}}))}))},a.componentDidUpdate=function(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()},t}(c.a.PureComponent);he.defaultProps={keys:function(e){return e}};var ve=function(e){function t(){for(var t,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).guid=0,t.state={props:{},resolve:function(){return null},last:!0,index:0},t.next=function(e,a,o){return void 0===a&&(a=!0),void 0===o&&(o=0),t.running=!0,new Promise((function(i){t.mounted&&t.setState((function(t){return{props:e,resolve:i,last:a,index:o}}),(function(){return t.running=!1}))}))},t}Object(i.a)(t,e);var a=t.prototype;return a.componentDidMount=function(){this.mounted=!0,this.componentDidUpdate({})},a.componentWillUnmount=function(){this.mounted=!1},a.componentDidUpdate=function(e){var t=this,a=this.props,o=a.states,i=a.filter,n=a.state;(e.state!==this.props.state||this.props.reset&&!this.running||!Q(o[n],e.states[e.state]))&&o&&n&&o[n]&&function(){var e=++t.guid,a=o[n];if(a)if(Array.isArray(a))for(var l=Promise.resolve(),r=function(o){var n=o,r=a[n],c=n===a.length-1;l=l.then((function(){return e===t.guid&&t.next(i(r),c,n)}))},c=0;c<a.length;c++)r(c);else if("function"==typeof a){var s=0;a((function(a,o){return void 0===o&&(o=!1),e===t.guid&&t.next(i(a),o,s++)}),(function(){return b((function(){return t.instance&&t.instance.stop()}))}),t.props)}else t.next(i(o[n]))}()},a.render=function(){var e=this,t=this.state,a=t.props,i=t.resolve,n=t.last,r=t.index;if(!a||0===Object.keys(a).length)return null;var s=this.props,p=(s.state,s.filter,s.states,s.config),f=s.primitive,d=s.onRest,u=s.forwardRef,b=Object(o.a)(s,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(p)&&(p=p[r]),c.a.createElement(f,Object(l.a)({ref:function(t){return e.instance=oe(t,u)},config:p},b,a,{onRest:function(e){i(e),d&&n&&d(e)}}))},t}(c.a.PureComponent);ve.defaultProps={state:"__default"};var xe=c.a.forwardRef((function(e,t){return c.a.createElement(ve,Object(l.a)({},e,{forwardRef:t}))}));xe.create=function(e){return function(t,a){var o;return void 0===a&&(a=function(e){return e}),("function"==typeof t||Array.isArray(t))&&((o={}).__default=t,t=o),function(o){return c.a.createElement(ve,Object(l.a)({primitive:e,states:t,filter:a},o))}}},xe.Spring=function(e){return xe.create(ge)(e,ee)},xe.Trail=function(e){return xe.create(he)(e,ee)};var ye=0,Oe=function(e){var t=e.items,a=e.keys,i=Object(o.a)(e,["items","keys"]);return t=K(void 0!==t?t:null),a="function"==typeof a?t.map(a):K(a),Object(l.a)({items:t,keys:a.map((function(e){return String(e)}))},i)},je=function(e){Object(i.a)(a,e);var t=a.prototype;function a(t){var a;return(a=e.call(this,t)||this).destroyItem=function(e,t,o){return function(i){var n=a.props,l=n.onRest,r=n.onDestroyed;a.mounted&&(r&&r(e),a.setState((function(e){return{deleted:e.deleted.filter((function(e){return e.key!==t}))}})),l&&l(e,o,i))}},a.state={first:!0,transitions:[],current:{},deleted:[],prevProps:t},a}return t.componentDidMount=function(){this.mounted=!0},t.componentWillUnmount=function(){this.mounted=!1},a.getDerivedStateFromProps=function(e,t){var a=t.first,i=t.prevProps,n=Object(o.a)(t,["first","prevProps"]),r=Oe(e),c=r.items,s=r.keys,p=r.initial,f=r.from,d=r.enter,u=r.leave,b=r.update,m=r.trail,g=void 0===m?0:m,h=r.unique,v=r.config,x=Oe(i),y=x.keys,O=x.items,j=Object(l.a)({},n.current),k=[].concat(n.deleted),C=Object.keys(j),w=new Set(C),E=new Set(s),_=s.filter((function(e){return!w.has(e)})),T=n.transitions.filter((function(e){return!e.destroyed&&!E.has(e.originalKey)})).map((function(e){return e.originalKey})),B=s.filter((function(e){return w.has(e)})),N=0;_.forEach((function(e){h&&k.find((function(t){return t.originalKey===e}))&&(k=k.filter((function(t){return t.originalKey!==e})));var t=s.indexOf(e),o=c[t];j[e]={state:"enter",originalKey:e,key:h?String(e):ye++,item:o,trail:N+=g,config:Y(v,o,"enter"),from:Y(a&&void 0!==p?p||{}:f,o),to:Y(d,o)}})),T.forEach((function(e){var t=y.indexOf(e),a=O[t];k.push(Object(l.a)({},j[e],{state:"leave",destroyed:!0,left:y[Math.max(0,t-1)],right:y[Math.min(y.length,t+1)],trail:N+=g,config:Y(v,a,"leave"),to:Y(u,a)})),delete j[e]})),B.forEach((function(e){var t=s.indexOf(e),a=c[t];j[e]=Object(l.a)({},j[e],{item:a,state:"update",trail:N+=g,config:Y(v,a,"update"),to:Y(b,a)})}));var R=s.map((function(e){return j[e]}));return k.forEach((function(e){var t,a=e.left,i=e.right,n=Object(o.a)(e,["left","right"]);-1!==(t=R.findIndex((function(e){return e.originalKey===a})))&&(t+=1),-1===t&&(t=R.findIndex((function(e){return e.originalKey===i}))),-1===t&&(t=k.findIndex((function(e){return e.originalKey===a}))),-1===t&&(t=k.findIndex((function(e){return e.originalKey===i}))),t=Math.max(0,t),R=[].concat(R.slice(0,t),[n],R.slice(t))})),{first:a&&0===_.length,transitions:R,current:j,deleted:k,prevProps:e}},t.render=function(){var e=this,t=this.props,a=(t.initial,t.from,t.enter,t.leave,t.update,t.onDestroyed,t.keys,t.items,t.onFrame),i=t.onRest,n=t.onStart,r=(t.trail,t.config,t.children),s=(t.unique,t.reset),p=Object(o.a)(t,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map((function(t,o){var f,d=t.state,u=t.key,b=t.item,m=t.from,g=t.to,h=t.trail,v=t.config,x=t.destroyed;return c.a.createElement(xe,Object(l.a)({reset:s&&"enter"===d,primitive:ge,state:d,filter:ee,states:(f={},f[d]=g,f),key:u,onRest:x?e.destroyItem(b,u,d):i&&function(e){return i(b,d,e)},onStart:n&&function(){return n(b,d)},onFrame:a&&function(e){return a(b,d,e)},delay:h,config:v},p,{from:m,children:function(e){var t=r(b,d,o);return t?t(e):null}}))}))},a}(c.a.PureComponent);je.defaultProps={keys:function(e){return e},unique:!1,reset:!1},["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].reduce((function(e,t){return e[t]=me(t),e}),me)},function(e,t){e.exports=window.ReactDOM},function(e,t,a){"use strict";var o=a(11),i=a.n(o),n=a(0),l=a(20),r=a(25),c=a.n(r),s=a(5),p=a.n(s),f=a(1),d=a(3),u=({option:e,value:t,sizeRef:a,onChange:o,props:i})=>Object(n.createElement)(l.animated.ul,{style:i,className:"ct-typography-options",key:"options"},Object(n.createElement)("li",{key:"size"},Object(n.createElement)(d.a,{value:t.size,values:t,id:"size",option:{id:"size",label:Object(f.__)("Font Size","affiliatex"),type:"ab-slider",value:e.value.size,ref:a,responsive:e.typography_responsive||!0,units:[{unit:"px",min:0,max:200},{unit:"em",min:0,max:50},{unit:"rem",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"vw",min:0,max:100}]},hasRevertButton:!1,onChange:e=>o({...t,size:e})})),Object(n.createElement)("li",{key:"line-height"},Object(n.createElement)(d.a,{value:t["line-height"],values:t,id:"line-height",option:{id:"line-height",label:Object(f.__)("Line Height","affiliatex"),type:"ab-slider",value:e.value["line-height"],responsive:e.typography_responsive||!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!1,onChange:e=>o({...t,"line-height":e})})),Object(n.createElement)("li",{key:"letter-spacing"},Object(n.createElement)(d.a,{value:t["letter-spacing"],values:t,id:"letter-spacing",option:{id:"letter-spacing",label:Object(f.__)("Letter Spacing","affiliatex"),type:"ab-slider",value:e.value["letter-spacing"],responsive:e.typography_responsive||!0,defaultPosition:"center",units:[{unit:"em",min:-5,max:5,decimals:1},{unit:"px",min:-20,max:20,decimals:1},{unit:"rem",min:-5,max:5,decimals:1}]},hasRevertButton:!1,onChange:e=>o({...t,"letter-spacing":e})})),Object(n.createElement)("li",{key:"variant",className:"ct-typography-variant"},Object(n.createElement)("ul",{className:p()("ct-text-transform")},["capitalize","uppercase"].map(e=>Object(n.createElement)("li",{key:e,onClick:()=>o({...t,"text-transform":t["text-transform"]===e?"none":e}),className:p()({active:e===t["text-transform"]}),"data-variant":e},Object(n.createElement)("i",{className:"affiliate-blocks-tooltip-top"},{capitalize:Object(f.__)("Capitalize","affiliatex"),uppercase:Object(f.__)("Uppercase","affiliatex")}[e])))),Object(n.createElement)("ul",{className:p()("ct-text-decoration")},["line-through","underline"].map(e=>Object(n.createElement)("li",{key:e,onClick:()=>o({...t,"text-decoration":t["text-decoration"]===e?"none":e}),className:p()({active:e===t["text-decoration"]}),"data-variant":e},Object(n.createElement)("i",{className:"affiliate-blocks-tooltip-top"},{"line-through":Object(f.__)("Line Through","affiliatex"),underline:Object(f.__)("Underline","affiliatex")}[e])))))),b=a(9),m=a(13),g=a(10),h=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function v(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((o=e[a])===(i=t[a])||h(o)&&h(i)))return!1;var o,i;return!0}var x=function(e,t){var a;void 0===t&&(t=v);var o,i=[],n=!1;return function(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];return n&&a===this&&t(l,i)||(o=e.apply(this,l),n=!0,a=this,i=l),o}},y=a(4),O=(a(16),"object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function j(e){cancelAnimationFrame(e.id)}var k=null;function C(e){if(void 0===e&&(e=!1),null===k||e){var t=document.createElement("div"),a=t.style;a.width="50px",a.height="50px",a.overflow="scroll",a.direction="rtl";var o=document.createElement("div"),i=o.style;return i.width="100px",i.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?k="positive-descending":(t.scrollLeft=1,k=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),k}return k}var w=function(e,t){return e};function E(e){var t,a,o=e.getItemOffset,i=e.getEstimatedTotalSize,n=e.getItemSize,l=e.getOffsetForIndexAndAlignment,r=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,s=e.initInstanceProps,p=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return a=t=function(e){function t(t){var a;return(a=e.call(this,t)||this)._instanceProps=s(a.props,Object(g.a)(Object(g.a)(a))),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:Object(g.a)(Object(g.a)(a)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof a.props.initialScrollOffset?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=x((function(e,t,o,i){return a.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:o,visibleStopIndex:i})})),a._callOnScroll=void 0,a._callOnScroll=x((function(e,t,o){return a.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:o})})),a._getItemStyle=void 0,a._getItemStyle=function(e){var t,i=a.props,l=i.direction,r=i.itemSize,c=i.layout,s=a._getItemStyleCache(p&&r,p&&c,p&&l);if(s.hasOwnProperty(e))t=s[e];else{var f=o(a.props,e,a._instanceProps),d=n(a.props,e,a._instanceProps),u="horizontal"===l||"horizontal"===c,b="rtl"===l,m=u?f:0;s[e]=t={position:"absolute",left:b?void 0:m,right:b?m:void 0,top:u?0:f,height:u?"100%":d,width:u?d:"100%"}}return t},a._getItemStyleCache=void 0,a._getItemStyleCache=x((function(e,__,t){return{}})),a._onScrollHorizontal=function(e){var t=e.currentTarget,o=t.clientWidth,i=t.scrollLeft,n=t.scrollWidth;a.setState((function(e){if(e.scrollOffset===i)return null;var t=a.props.direction,l=i;if("rtl"===t)switch(C()){case"negative":l=-i;break;case"positive-descending":l=n-o-i}return l=Math.max(0,Math.min(l,n-o)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:l,scrollUpdateWasRequested:!1}}),a._resetIsScrollingDebounced)},a._onScrollVertical=function(e){var t=e.currentTarget,o=t.clientHeight,i=t.scrollHeight,n=t.scrollTop;a.setState((function(e){if(e.scrollOffset===n)return null;var t=Math.max(0,Math.min(n,i-o));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),a._resetIsScrollingDebounced)},a._outerRefSetter=function(e){var t=a.props.outerRef;a._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},a._resetIsScrollingDebounced=function(){var e,t,o,i;null!==a._resetIsScrollingTimeoutId&&j(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=(e=a._resetIsScrolling,t=150,o=O(),i={id:requestAnimationFrame((function a(){O()-o>=t?e.call(null):i.id=requestAnimationFrame(a)}))})},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},(function(){a._getItemStyleCache(-1,null)}))},a}Object(m.a)(t,e),t.getDerivedStateFromProps=function(e,t){return _(e,t),f(e),null};var a=t.prototype;return a.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},a.scrollToItem=function(e,t){void 0===t&&(t="auto");var a=this.props.itemCount,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,a-1)),this.scrollTo(l(this.props,e,t,o,this._instanceProps))},a.componentDidMount=function(){var e=this.props,t=e.direction,a=e.initialScrollOffset,o=e.layout;if("number"==typeof a&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===o?i.scrollLeft=a:i.scrollTop=a}this._callPropsCallbacks()},a.componentDidUpdate=function(){var e=this.props,t=e.direction,a=e.layout,o=this.state,i=o.scrollOffset;if(o.scrollUpdateWasRequested&&null!=this._outerRef){var n=this._outerRef;if("horizontal"===t||"horizontal"===a)if("rtl"===t)switch(C()){case"negative":n.scrollLeft=-i;break;case"positive-ascending":n.scrollLeft=i;break;default:var l=n.clientWidth,r=n.scrollWidth;n.scrollLeft=r-l-i}else n.scrollLeft=i;else n.scrollTop=i}this._callPropsCallbacks()},a.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&j(this._resetIsScrollingTimeoutId)},a.render=function(){var e=this.props,t=e.children,a=e.className,o=e.direction,n=e.height,l=e.innerRef,r=e.innerElementType,c=e.innerTagName,s=e.itemCount,p=e.itemData,f=e.itemKey,d=void 0===f?w:f,u=e.layout,m=e.outerElementType,g=e.outerTagName,h=e.style,v=e.useIsScrolling,x=e.width,O=this.state.isScrolling,j="horizontal"===o||"horizontal"===u,k=j?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],_=C[1],T=[];if(s>0)for(var B=E;B<=_;B++)T.push(Object(y.createElement)(t,{data:p,key:d(B,p),index:B,isScrolling:v?O:void 0,style:this._getItemStyle(B)}));var N=i(this.props,this._instanceProps);return Object(y.createElement)(m||g||"div",{className:a,onScroll:k,ref:this._outerRefSetter,style:Object(b.a)({position:"relative",height:n,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},h)},Object(y.createElement)(r||c||"div",{children:T,ref:l,style:{height:j?"100%":N,pointerEvents:O?"none":void 0,width:j?N:"100%"}}))},a._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],a=e[1],o=e[2],i=e[3];this._callOnItemsRendered(t,a,o,i)}if("function"==typeof this.props.onScroll){var n=this.state,l=n.scrollDirection,r=n.scrollOffset,c=n.scrollUpdateWasRequested;this._callOnScroll(l,r,c)}},a._getRangeToRender=function(){var e=this.props,t=e.itemCount,a=e.overscanCount,o=this.state,i=o.isScrolling,n=o.scrollDirection,l=o.scrollOffset;if(0===t)return[0,0,0,0];var s=r(this.props,l,this._instanceProps),p=c(this.props,s,l,this._instanceProps),f=i&&"backward"!==n?1:Math.max(1,a),d=i&&"forward"!==n?1:Math.max(1,a);return[Math.max(0,s-f),Math.max(0,Math.min(t-1,p+d)),s,p]},t}(y.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},a}var _=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},T=E({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,a,o){var i=e.direction,n=e.height,l=e.itemCount,r=e.itemSize,c=e.layout,s=e.width,p="horizontal"===i||"horizontal"===c?s:n,f=Math.max(0,l*r-p),d=Math.min(f,t*r),u=Math.max(0,t*r-p+r);switch("smart"===a&&(a=o>=u-p&&o<=d+p?"auto":"center"),a){case"start":return d;case"end":return u;case"center":var b=Math.round(u+(d-u)/2);return b<Math.ceil(p/2)?0:b>f+Math.floor(p/2)?f:b;case"auto":default:return o>=u&&o<=d?o:o<u?u:d}},getStartIndexForOffset:function(e,t){var a=e.itemCount,o=e.itemSize;return Math.max(0,Math.min(a-1,Math.floor(t/o)))},getStopIndexForStartIndex:function(e,t,a){var o=e.direction,i=e.height,n=e.itemCount,l=e.itemSize,r=e.layout,c=e.width,s=t*l,p="horizontal"===o||"horizontal"===r?c:i,f=Math.ceil((p+a-s)/l);return Math.max(0,Math.min(n-1,t+f-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}),B=a(39),N=a.n(B),R=a(18);let S=[];const I=({data:{linearFontsList:e,onPickFamily:t,value:a},index:o,style:i})=>{const l=e[o];return Object(n.createElement)("div",{style:i,onClick:()=>t(l),className:p()("ct-typography-single-font","ct-"+l.source,{active:l.family===a.family}),key:l.family},Object(n.createElement)("span",{className:"ct-font-name"},l.display||l.family),Object(n.createElement)("span",{style:{fontFamily:Object(R.d)(l.family)},className:"ct-font-preview"},"Simply dummy text"))};var L=({option:e,value:t,onPickFamily:a,typographyList:o,linearFontsList:i,currentView:l,searchTerm:r})=>{const c=Object(n.useRef)(null),[s,p]=(Object(n.useRef)(null),Object(n.useState)(null));Object(n.useEffect)(()=>{t.family&&c.current.scrollToItem(i.map(({family:e})=>e).indexOf(t.family),"start")},[]);const f=()=>{s&&clearTimeout(s),p(setTimeout(()=>{if(!c.current)return;const[e]=c.current._getRangeToRender(),t=(Math.ceil(i.length/25),Math.ceil((e+1)/25));(e=>{if(0===e.length)return;S=[...S,...e.map(({family:e})=>e)];const t=e.map(({family:e})=>e).filter(e=>-1===e.indexOf("ct_typekit")),a=e.filter(({family:e})=>e.indexOf("ct_typekit")>-1);(t.length>0||a.length>0)&&N.a.load({...t.length>0?{google:{families:t}}:{},...a.length>0?{typekit:{id:a[0].kit}}:{},classes:!1,text:"abcdefghijklmnopqrstuvwxyz"})})([...Array(25)].map((e,a)=>25*(t-1)+a).map(e=>i[e]).filter(e=>!!e).filter(({source:e,family:t})=>-1===S.indexOf(t)&&("google"===e||"typekit"===e)))},100))};return Object(n.useEffect)(()=>{f()},[i]),Object(n.createElement)(T,{height:360,itemCount:i.length,itemSize:85,ref:c,onScroll:e=>{f()},itemData:{linearFontsList:i,onPickFamily:a,value:t},onItemsRendered:({overscanStartIndex:e,overscanStopIndex:t})=>{},className:"ct-typography-fonts"},I)},P=({option:e,value:t,onChange:a,typographyList:o,props:i})=>{const r=Object(R.c)(t.family,o),c=Object(n.useRef)(null);return Object(n.useEffect)(()=>{r&&(c.current.scrollTop=(c.current.children[r.all_variations.indexOf(t.variation)]||c.current.children[0]).offsetTop-c.current.offsetTop)},[r]),Object(n.createElement)(l.animated.ul,{style:i,className:"ct-typography-variations",ref:c},r&&r.all_variations.map(e=>Object(n.createElement)("li",{onClick:()=>a({...t,variation:e}),className:p()({active:e===t.variation}),key:e},Object(n.createElement)("span",{className:"ct-variation-name","data-variation":e},Object(R.e)(e)))))};t.a=({option:e,value:t,initialView:a,currentView:o,previousView:r,setCurrentView:s,setInititialView:f,onChange:d,wrapperProps:b={}})=>{const[m,g]=Object(n.useState)((({isDefault:e})=>({system:{type:"system",families:[...e?[]:["Default"],"System Default","Arial","Verdana","Trebuchet","Georgia","Times New Roman","Palatino","Helvetica","Myriad Pro","Lucida","Gill Sans","Impact","Serif","monospace"].map(e=>({source:"system",family:e,variations:[],all_variations:[..."Default"===e?["Default"]:[],"n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}))}}))(e)),[h,v]=Object(n.useState)(!1),[x,y]=Object(n.useState)(""),O=Object(n.useMemo)(()=>"_"===r||"search"===o&&"fonts"===r||"search"===r&&"fonts"===o?"static":"options"===r||"fonts"===r&&"variations"===o?"right":"left",[o,r]),j=Object(n.useRef)(null),k=Object(n.useRef)(null),C=Object.keys(m).reduce((e,t)=>[...e,...(m[t].families||[]).filter(({family:e})=>function(e,t){var a=t.length,o=e.length;if(o>a)return!1;if(o===a)return e===t;e:for(var i=0,n=0;i<o;i++){for(var l=e.charCodeAt(i);n<a;)if(t.charCodeAt(n++)===l)continue e;return!1}return!0}(x.toLowerCase(),e.toLowerCase()))],[]);Object(n.useEffect)(()=>{a&&"done"!==a&&(y(""),setTimeout(()=>{})),"font_size"===a&&setTimeout(()=>k.current&&k.current.focus(),100)},[a]),Object(n.useEffect)(()=>{(async()=>{const t=new FormData;t.append("action","affiliatex_get_fonts_list");try{const a=await fetch(ajaxurl,{method:"POST",body:t});if(200===a.status){const{success:t,data:o}=await a.json();t&&g({...o.fonts,system:{...o.fonts.system,families:[...e.isDefault?[]:[{source:"system",family:"Default",variations:[],all_variations:["Default","n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}],...o.fonts.system.families]}})}}catch(e){}})()},[]),Object(n.useEffect)(()=>{"search"===o&&j.current.focus()},[o]);const w=e=>{d({...t,family:e.family,variation:Object(R.a)(e,t)})};return Object(n.createElement)(l.animated.div,i()({className:"ct-option-modal ct-typography-modal"},b),Object(n.createElement)("div",{className:"ct-typography-container"},Object(n.createElement)("ul",{className:p()("ct-typography-top",{"rara-switch-panel":"options"!==o,"ct-static":"_"===r})},Object(n.createElement)("li",{className:"ct-back",onClick:()=>s("options")},Object(n.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},Object(n.createElement)("path",{d:"M14.2,6.8H2.6l4-4c0.3-0.3,0.3-0.8,0-1.1c-0.3-0.3-0.8-0.3-1.1,0L0.2,7l0,0c0,0-0.1,0.1-0.1,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1l0,0c0,0,0,0,0,0c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1C0.2,8,0.2,8,0.2,8l5.3,5.3c0.3,0.3,0.8,0.3,1.1,0c0.3-0.3,0.3-0.8,0-1.1l-4-4h11.7c0.4,0,0.8-0.3,0.8-0.8S14.7,6.8,14.2,6.8z"}))),Object(n.createElement)("li",{className:p()("ct-font",{active:"search"===o||"fonts"===o}),onClick:()=>{s("fonts"===o?"search":"fonts"),y("")}},"search"!==o&&Object(n.createElement)("span",null,Object(R.b)(t.family)),"search"===o&&Object(n.createElement)("input",{onClick:e=>e.stopPropagation(),ref:j,autoFocus:!0,value:x,onKeyUp:e=>{13==e.keyCode&&C.length>0&&(w(C[0]),s("options"),y(""))},onChange:({target:{value:e}})=>y(e)}),Object(n.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 15 15"},"search"===o&&Object(n.createElement)("path",{d:"M8.9,7.5l4.6-4.6c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0L7.5,6.1L2.9,1.5c-0.4-0.4-1-0.4-1.4,0c-0.4,0.4-0.4,1,0,1.4l4.6,4.6l-4.6,4.6c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l4.6-4.6l4.6,4.6c0.4,0.4,1,0.4,1.4,0c0.4-0.4,0.4-1,0-1.4L8.9,7.5z"}),"search"!==o&&Object(n.createElement)("path",{d:"M14.6,14.6c-0.6,0.6-1.4,0.6-2,0l-2.5-2.5c-1,0.7-2.2,1-3.5,1C2.9,13.1,0,10.2,0,6.6S2.9,0,6.6,0c3.6,0,6.6,2.9,6.6,6.6c0,1.3-0.4,2.5-1,3.5l2.5,2.5C15.1,13.1,15.1,14,14.6,14.6z M6.6,1.9C4,1.9,1.9,4,1.9,6.6s2.1,4.7,4.7,4.7c2.6,0,4.7-2.1,4.7-4.7C11.3,4,9.2,1.9,6.6,1.9z"}))),Object(n.createElement)("li",{className:p()("ct-weight",{active:"variations"===o}),onClick:()=>s("variations")},Object(n.createElement)("span",{"data-variation":t.variation},Object(R.f)(t.variation)))),Object(n.createElement)(l.Transition,{items:o,immediate:"static"===O,config:(e,t)=>({duration:210,easing:c()(.455,.03,.515,.955)}),from:{transform:"left"===O?"translateX(100%)":"translateX(-100%)",position:"absolute"},enter:{transform:"translateX(0%)",position:"absolute"},leave:{position:"absolute",transform:"left"===O?"translateX(-100%)":"translateX(100%)"}},(a,o,i,c)=>"options"===o?Object(n.createElement)(u,{sizeRef:k,value:t,option:e,onChange:d,props:a,currentView:o}):"fonts"===o||"search"===o?Object(n.createElement)(l.animated.div,{style:a,key:o},Object(n.createElement)(L,{typographyList:m,searchTerm:x,linearFontsList:C,currentView:`${o}:${r}`,onPickFamily:e=>{w(e)},value:t})):"variations"===o?Object(n.createElement)(P,{currentView:o,props:a,typographyList:m,onChange:e=>{d(e)},value:t}):void 0)))}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(71),i=a(4),n=function(){return(n=Object.assign||function(e){for(var t,a=1,o=arguments.length;a<o;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function l(e,t,a){if(a||2===arguments.length)for(var o,i=0,n=t.length;i<n;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}function r(e){var t=e.size,a=void 0===t?25:t;return o.jsx("svg",n({fill:"currentColor",width:a,height:a,viewBox:"0 0 24 24"},{children:o.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"},void 0)}),void 0)}t.Rating=function(e){var t=e.ratingValue,a=e.onClick,c=e.stars,s=void 0===c?5:c,p=e.size,f=void 0===p?25:p,d=e.transition,u=void 0!==d&&d,b=e.fillColor,m=void 0===b?"#f1a545":b,g=e.emptyColor,h=void 0===g?"#cccccc":g,v=e.className,x=void 0===v?"":v,y=e.children,O=i.useState(t||null),j=O[0],k=O[1];return o.jsx("span",n({className:x},{children:l([],Array(s)).map((function(e,i){return o.jsx("span",n({onMouseEnter:function(){return k(i+1)},onMouseLeave:function(){return k(null)},onClick:function(){return a&&a(i+1)},"aria-hidden":"true",style:{color:(j||t)&&(j||t)>i?m:h,width:f,height:f,cursor:"pointer",transition:u?"color 0.2s ease-in-out 0s":"",display:"inline-flex"}},{children:y||o.jsx(r,{size:f},void 0)}),i)}))}),void 0)},t.RatingView=function(e){var t=e.ratingValue,a=e.stars,i=void 0===a?5:a,c=e.size,s=void 0===c?25:c,p=e.fillColor,f=void 0===p?"#f1a545":p,d=e.emptyColor,u=void 0===d?"#cccccc":d,b=e.className,m=void 0===b?"":b,g=e.children;return o.jsx("span",n({className:m},{children:l([],Array(i)).map((function(e,a){return o.jsx("span",n({style:{color:t&&t>a?f:u,width:s,height:s,display:"inline-flex"}},{children:g||o.jsx(r,{size:s},void 0)}),a)}))}),void 0)}},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.wp.richText},function(e,t,a){"use strict";a.r(t);var o=a(0),i=a(5),n=a.n(i);const l=({option:{behavior:e="words"},value:t})=>"words"===e?"yes"===t:!!t,r=({value:e,option:t={},onChange:a,onClick:i})=>Object(o.createElement)("div",{className:n()({"ct-option-switch":!0,"ct-active":l({option:t,value:e})}),onClick:o=>{i&&i(o),a((({option:e={},option:{behavior:t="words"},value:a})=>l({option:e,value:a})?"words"===t&&"no":"words"!==t||"yes")({option:t,value:e}))}},Object(o.createElement)("span",null));r.renderingConfig={design:"inline"},t.default=r},function(e,t){e.exports=function(e,t,a){return function(o){if(e[0]===e[1]||t[0]===t[1])return t[0];var i=(t[1]-t[0])/(e[1]-e[0]),n=t[0]+i*(o-e[0]);return a?Math.min(t[1],Math.max(t[0],n)):n}}},function(e,t,a){var o;!function(){function i(e,t,a){return e.call.apply(e.bind,arguments)}function n(e,t,a){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var a=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(a,o),e.apply(t,a)}}return function(){return e.apply(t,arguments)}}function l(e,t,a){return(l=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:n).apply(null,arguments)}var r=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var s=!!window.FontFace;function p(e,t,a,o){if(t=e.c.createElement(t),a)for(var i in a)a.hasOwnProperty(i)&&("style"==i?t.style.cssText=a[i]:t.setAttribute(i,a[i]));return o&&t.appendChild(e.c.createTextNode(o)),t}function f(e,t,a){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(a,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,a){t=t||[],a=a||[];for(var o=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var n=!1,l=0;l<o.length;l+=1)if(t[i]===o[l]){n=!0;break}n||o.push(t[i])}for(t=[],i=0;i<o.length;i+=1){for(n=!1,l=0;l<a.length;l+=1)if(o[i]===a[l]){n=!0;break}n||t.push(o[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function b(e,t){for(var a=e.className.split(/\s+/),o=0,i=a.length;o<i;o++)if(a[o]==t)return!0;return!1}function m(e,t,a){function o(){r&&i&&n&&(r(l),r=null)}t=p(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,n=!0,l=null,r=a||null;s?(t.onload=function(){i=!0,o()},t.onerror=function(){i=!0,l=Error("Stylesheet failed to load"),o()}):setTimeout((function(){i=!0,o()}),0),f(e,"head",t)}function g(e,t,a,o){var i=e.c.getElementsByTagName("head")[0];if(i){var n=p(e,"script",{src:t}),l=!1;return n.onload=n.onreadystatechange=function(){l||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(l=!0,a&&a(null),n.onload=n.onreadystatechange=null,"HEAD"==n.parentNode.tagName&&i.removeChild(n))},i.appendChild(n),setTimeout((function(){l||(l=!0,a&&a(Error("Script load timeout")))}),o||5e3),n}return null}function h(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,y(e)}}function x(e,t){e.c=t,y(e)}function y(e){0==e.a&&e.c&&(e.c(),e.c=null)}function O(e){this.a=e||"-"}function j(e,t){this.c=e,this.f=4,this.a="n";var a=(t||"n4").match(/^([nio])([1-9])$/i);a&&(this.a=a[1],this.f=parseInt(a[2],10))}function k(e){var t=[];e=e.split(/,\s*/);for(var a=0;a<e.length;a++){var o=e[a].replace(/['"]/g,"");-1!=o.indexOf(" ")||/^\d/.test(o)?t.push("'"+o+"'"):t.push(o)}return t.join(",")}function C(e){return e.a+e.f}function w(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function E(e){var t=4,a="n",o=null;return e&&((o=e.match(/(normal|oblique|italic)/i))&&o[1]&&(a=o[1].substr(0,1).toLowerCase()),(o=e.match(/([1-9]00|normal|bold)/i))&&o[1]&&(/bold/i.test(o[1])?t=7:/[1-9]00/.test(o[1])&&(t=parseInt(o[1].substr(0,1),10)))),a+t}function _(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new O("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function T(e){if(e.g){var t=b(e.f,e.a.c("wf","active")),a=[],o=[e.a.c("wf","loading")];t||a.push(e.a.c("wf","inactive")),u(e.f,a,o)}B(e,"inactive")}function B(e,t,a){e.j&&e.h[t]&&(a?e.h[t](a.c,C(a)):e.h[t]())}function N(){this.c={}}function R(e,t){this.c=e,this.f=t,this.a=p(this.c,"span",{"aria-hidden":"true"},this.f)}function S(e){f(e.c,"body",e.a)}function I(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+k(e.c)+";font-style:"+w(e)+";font-weight:"+e.f+"00;"}function L(e,t,a,o,i,n){this.g=e,this.j=t,this.a=o,this.c=a,this.f=i||3e3,this.h=n||void 0}function P(e,t,a,o,i,n,l){this.v=e,this.B=t,this.c=a,this.a=o,this.s=l||"BESbswy",this.f={},this.w=i||3e3,this.u=n||null,this.m=this.j=this.h=this.g=null,this.g=new R(this.c,this.s),this.h=new R(this.c,this.s),this.j=new R(this.c,this.s),this.m=new R(this.c,this.s),e=I(e=new j(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=I(e=new j(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=I(e=new j("serif",C(this.a))),this.j.a.style.cssText=e,e=I(e=new j("sans-serif",C(this.a))),this.m.a.style.cssText=e,S(this.g),S(this.h),S(this.j),S(this.m)}O.prototype.c=function(e){for(var t=[],a=0;a<arguments.length;a++)t.push(arguments[a].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},L.prototype.start=function(){var e=this.c.o.document,t=this,a=r(),o=new Promise((function(o,i){!function n(){r()-a>=t.f?i():e.fonts.load(function(e){return w(e)+" "+e.f+"00 300px "+k(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(n,25)}),(function(){i()}))}()})),i=null,n=new Promise((function(e,a){i=setTimeout(a,t.f)}));Promise.race([n,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var A={D:"serif",C:"sans-serif"},z=null;function F(){if(null===z){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);z=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return z}function M(e,t,a){for(var o in A)if(A.hasOwnProperty(o)&&t===e.f[A[o]]&&a===e.f[A[o]])return!0;return!1}function H(e,t){setTimeout(l((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function V(e,t,a){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=a}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),function e(t){var a,o=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(a=o===t.f.serif&&i===t.f["sans-serif"])||(a=F()&&M(t,o,i)),a?r()-t.A>=t.w?F()&&M(t,o,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?H(t,t.v):H(t,t.B):function(t){setTimeout(l((function(){e(this)}),t),50)}(t):H(t,t.v)}(this)};var W=null;function D(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),B(e,"active")):T(e.a))}function q(e){this.j=e,this.a=new N,this.h=0,this.f=this.g=!0}function U(e,t,a,o,i){var n=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,r=o||{};if(0===a.length&&n)T(t.a);else{t.f+=a.length,n&&(t.j=n);var c,s=[];for(c=0;c<a.length;c++){var p=a[c],f=r[p.c],d=t.a,b=p;if(d.g&&u(d.f,[d.a.c("wf",b.c,C(b).toString(),"loading")]),B(d,"fontloading",b),d=null,null===W)if(window.FontFace){b=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);W=b?42<parseInt(b[1],10):!m}else W=!1;d=W?new L(l(t.g,t),l(t.h,t),t.c,p,t.s,f):new P(l(t.g,t),l(t.h,t),t.c,p,t.s,e,f),s.push(d)}for(c=0;c<s.length;c++)s[c].start()}}),0)}function $(e,t){this.c=e,this.a=t}function G(e,t){this.c=e,this.a=t}function Z(e,t){this.c=e||X,this.a=[],this.f=[],this.g=t||""}V.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),B(t,"fontactive",e),this.m=!0,D(this)},V.prototype.h=function(e){var t=this.a;if(t.g){var a=b(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),o=[],i=[t.a.c("wf",e.c,C(e).toString(),"loading")];a||o.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),u(t.f,o,i)}B(t,"fontinactive",e),D(this)},q.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,a){var o=[],i=a.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),B(e,"loading")}(t),o=function(e,t,a){var o,i=[];for(o in t)if(t.hasOwnProperty(o)){var n=e.c[o];n&&i.push(n(t[o],a))}return i}(e.a,a,e.c);var n=new V(e.c,t,i);for(e.h=o.length,t=0,a=o.length;t<a;t++)o[t].load((function(t,a,o){U(e,n,t,a,o)}))}(this,new _(this.c,e),e)},$.prototype.load=function(e){var t=this,a=t.a.projectId,o=t.a.version;if(a){var i=t.c.o;g(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+a+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+a]=function(){return t.a},function t(){if(i["__mti_fntLst"+a]){var o,n=i["__mti_fntLst"+a](),l=[];if(n)for(var r=0;r<n.length;r++){var c=n[r].fontfamily;null!=n[r].fontStyle&&null!=n[r].fontWeight?(o=n[r].fontStyle+n[r].fontWeight,l.push(new j(c,o))):l.push(new j(c))}e(l)}else setTimeout((function(){t()}),50)}())})).id="__MonotypeAPIScript__"+a}else e([])},G.prototype.load=function(e){var t,a,o=this.a.urls||[],i=this.a.families||[],n=this.a.testStrings||{},l=new h;for(t=0,a=o.length;t<a;t++)m(this.c,o[t],v(l));var r=[];for(t=0,a=i.length;t<a;t++)if((o=i[t].split(":"))[1])for(var c=o[1].split(","),s=0;s<c.length;s+=1)r.push(new j(o[0],c[s]));else r.push(new j(o[0]));x(l,(function(){e(r,n)}))};var X="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},J={i:"i",italic:"i",n:"n",normal:"n"},ee=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function te(e,t){this.c=e,this.a=t}var ae={Arimo:!0,Cousine:!0,Tinos:!0};function oe(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}te.prototype.load=function(e){var t=new h,a=this.c,o=new Z(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var a=t.length,o=0;o<a;o++){var i=t[o].split(":");3==i.length&&e.f.push(i.pop());var n="";2==i.length&&""!=i[1]&&(n=":"),e.a.push(i.join(n))}}(o,i);var n=new K(i);!function(e){for(var t=e.f.length,a=0;a<t;a++){var o=e.f[a].split(":"),i=o[0].replace(/\+/g," "),n=["n4"];if(2<=o.length){var l;if(l=[],r=o[1])for(var r,c=(r=r.split(",")).length,s=0;s<c;s++){var p;if((p=r[s]).match(/^[\w-]+$/))if(null==(f=ee.exec(p.toLowerCase())))p="";else{if(p=null==(p=f[2])||""==p?"n":J[p],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));p=[p,f].join("")}else p="";p&&l.push(p)}0<l.length&&(n=l),3==o.length&&(l=[],0<(o=(o=o[2])?o.split(","):l).length&&(o=Q[o[0]])&&(e.c[i]=o))}for(e.c[i]||(o=Q[i])&&(e.c[i]=o),o=0;o<n.length;o+=1)e.a.push(new j(i,n[o]))}}(n),m(a,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,a=[],o=0;o<t;o++)a.push(e.a[o].replace(/ /g,"+"));return t=e.c+"?family="+a.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(o),v(t)),x(t,(function(){e(n.a,n.c,ae)}))},oe.prototype.load=function(e){var t=this.a.id,a=this.c.o;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){t=a.Typekit.config.fn;for(var o=[],i=0;i<t.length;i+=2)for(var n=t[i],l=t[i+1],r=0;r<l.length;r++)o.push(new j(n,l[r]));try{a.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(o)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,a=this.c.o,o=this;t?(a.__webfontfontdeckmodule__||(a.__webfontfontdeckmodule__={}),a.__webfontfontdeckmodule__[t]=function(t,a){for(var i=0,n=a.fonts.length;i<n;++i){var l=a.fonts[i];o.a.push(new j(l.name,E("font-weight:"+l.weight+";font-style:"+l.style)))}e(o.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ne=new q(window);ne.a.c.custom=function(e,t){return new G(t,e)},ne.a.c.fontdeck=function(e,t){return new ie(t,e)},ne.a.c.monotype=function(e,t){return new $(t,e)},ne.a.c.typekit=function(e,t){return new oe(t,e)},ne.a.c.google=function(e,t){return new te(t,e)};var le={load:l(ne.load,ne)};void 0===(o=function(){return le}.call(t,a,t,e))||(e.exports=o)}()},function(e,t,a){e.exports=a(63)()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maybePromoteScalarValueIntoResponsive=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},function(e,t){},function(e,t){},function(e,t,a){var o=Array.prototype.slice,i=a(49),n=a(50),l=e.exports=function(e,t,a){return a||(a={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?a.strict?e===t:e==t:function(e,t,a){var s,p;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(n(e))return!!n(t)&&(e=o.call(e),t=o.call(t),l(e,t,a));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var f=i(e),d=i(t)}catch(e){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),s=f.length-1;s>=0;s--)if(f[s]!=d[s])return!1;for(s=f.length-1;s>=0;s--)if(p=f[s],!l(e[p],t[p],a))return!1;return typeof e==typeof t}(e,t,a))};function r(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,a){"use strict";var o=a(0),i=a(20),n=a(1),l=a(25),r=a.n(l),c=a(5),s=a.n(c),p=a(17),f=a(8),d=a(18),u=a(33),b=a(22);t.a=({option:{label:e="",desc:t="",attr:a={}},option:l,value:c,device:m,onChange:g})=>{const[h,v]=Object(o.useState)("_:_"),x=Object(o.useRef)();let[y,O]=Object(o.useMemo)(()=>h.split(":"),[h]);const j=Object(o.useCallback)(e=>v(`${e}:${y}`),[y]),[{isOpen:k,isTransitioning:C},w]=Object(o.useState)({isOpen:!1,isTransitioning:!1}),{styles:E,popoverProps:_}=Object(b.a)({ref:x,defaultHeight:430,shouldCalculate:C||k}),T=e=>{w(t=>({...t,isOpen:e,isTransitioning:!0}))},B=Object(o.useRef)(),N=Object(o.useRef)(),R=Object(o.useRef)(),S=Object(o.useRef)(),I=Object(o.useMemo)(()=>{const e=y,t="options"===e?N.current:"fonts"===e?B.current:"variations"===e?R.current:N.current;return _.ref&&_.ref.current&&((e,t)=>{if(!e)return;if(!t)return;let a=getComputedStyle(e),o=parseFloat(a.left);return{"--option-modal-arrow-position":(t=t.getBoundingClientRect()).left+t.width/2-o-6+"px"}})(_.ref.current,t)},[k,y,_.ref,_.ref&&_.ref.current,B&&B.current,R&&R.current,N&&N.current,S&&S.current]);return Object(o.createElement)("div",{className:s()("ct-typography",{})},Object(o.createElement)(p.a,{disabled:!k,useCapture:!1,className:"ct-typohraphy-value",additionalRefs:[_.ref],onOutsideClick:()=>{T(!1)},wrapperProps:{ref:x,onClick:e=>{e.preventDefault(),k?j("options"):(v("options:_"),T("options"))}}},Object(o.createElement)("div",null,Object(o.createElement)("span",{onClick:e=>{e.stopPropagation(),k?j("fonts"):(v("fonts:_"),T("fonts"))},className:"ct-font",ref:B},Object(o.createElement)("span",null,"Default"===c.family?"Default Family":Object(d.b)(c.family))),Object(o.createElement)("i",null,"/"),Object(o.createElement)("span",{onClick:e=>{e.stopPropagation(),k?j("options"):(v("options:_"),T("font_size"))},ref:N,className:"ct-size"},Object(o.createElement)("span",null,"CT_CSS_SKIP_RULE"===Object(f.e)(c.size)[m]?Object(n.__)("Default Size","affiliatex"):Object(f.e)(c.size)[m])),Object(o.createElement)("i",null,"/"),Object(o.createElement)("span",{ref:R,onClick:e=>{e.stopPropagation(),k?j("variations"):(v("variations:_"),T("variations"))},className:"ct-weight"},Object(o.createElement)("span",null,Object(d.e)(c.variation)))),Object(o.createElement)("a",{ref:S})),(C||k)&&Object(o.createPortal)(Object(o.createElement)(i.Transition,{items:k,onRest:e=>{w(e=>({...e,isTransitioning:!1}))},config:{duration:100,easing:r()(.25,.1,.25,1)},from:k?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:k?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:k?{opacity:1}:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(e,t)=>t?Object(o.createElement)(u.a,{wrapperProps:{style:{...e,...E,...I},..._},onChange:g,value:c,option:l,initialView:t,setInititialView:e=>T(e),currentView:y,previousView:O,setCurrentView:j}):null),document.body))}},function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(e){"object"==typeof window&&(a=window)}e.exports=a},,,function(e,t){function a(e){var t=[];for(var a in e)t.push(a);return t}(e.exports="function"==typeof Object.keys?Object.keys:a).shim=a},function(e,t){var a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=a?o:i).supported=o,t.unsupported=i},function(e,t,a){var o={"./ab-background.js":58,"./ab-border.js":52,"./ab-box-shadow.js":59,"./ab-color-picker.js":53,"./ab-radio.js":54,"./ab-slider.js":55,"./ab-spacing.js":57,"./ab-switch.js":37,"./ab-typography.js":56};function i(e){var t=n(e);return a(t)}function n(e){if(!a.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=n,e.exports=i,i.id=51},function(e,t,a){"use strict";a.r(t);var o=a(0),i=a(1),n=a(5),l=a.n(n),r=a(30),c=a(17);const s=(e,t,a)=>Math.max(e,Math.min(t,a));t.default=({value:e,option:t,onChange:a})=>{const[n,p]=Object(o.useState)(!1);return Object(o.createElement)("div",{className:l()("ct-option-border")},Object(o.createElement)("div",{className:l()("ct-value-changer",{active:n,"ct-disabled":"none"===e.style||e.inherit})},Object(o.createElement)("input",{type:"number",value:e.width,onChange:({target:{value:t}})=>a({...e,width:s(1,5,parseInt(t,10)||1)})}),Object(o.createElement)("span",{className:"ct-value-divider"}),Object(o.createElement)("span",{className:"ct-current-value","data-style":e.inherit?"none":e.style,onClick:()=>p(!n)},e.inherit?Object(i.__)("Inherit","affiliatex"):"none"===e.style?e.style:null),Object(o.createElement)(c.a,{disabled:!n,onOutsideClick:()=>{n&&p(!1)}},Object(o.createElement)("ul",{className:"ct-styles-list"},["solid","dashed","dotted","double","none"].reduce((e,t,a)=>[...e.slice(0,a%2==0?void 0:-1),...a%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(i=>Object(o.createElement)("li",{key:i[0]},i.map(i=>Object(o.createElement)("span",{className:l()({active:i===e.style}),"data-style":i,key:i,onClick:()=>{a({...e,style:i,...Object.keys(t.value).indexOf("inherit")>-1?{inherit:!1}:{}}),p(!1)},"data-style":i},"none"===i?i:null))))))),Object(o.createElement)(r.a,{onChange:t=>a({...e,color:t.default}),option:{pickers:[{id:"default",title:"Initial"}]},value:{default:e.color}}))}},function(e,t,a){"use strict";a.r(t);var o=a(0),i=a(21),n=a(27),l=a(17);t.default=({option:e,values:t,value:a,onChange:r})=>{const[{isPicking:c,isTransitioning:s},p]=Object(o.useState)({isPicking:null,isTransitioning:null}),f=Object(o.useRef)(),d=Object(o.useRef)();return Object(o.createElement)(l.a,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"app-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p(({isPicking:e})=>({isPicking:null,isTransitioning:e}))}},e.pickers.filter(e=>!e.condition||Object(i.a)(Object(i.b)(e.condition),t)).map(t=>Object(o.createElement)(n.a,{containerRef:f,picker:t,key:t.id,option:e,isPicking:c,modalRef:d,isTransitioning:s,onPickingChange:e=>p({isTransitioning:t.id,isPicking:e}),stopTransitioning:()=>p(e=>({...e,isTransitioning:!1})),onChange:e=>r({...a,[t.id]:e}),value:a[t.id]||e.value[t.id]})))}},function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return s}));var o=a(11),i=a.n(o),n=a(0),l=a(5),r=a.n(l),c=a(21);class s extends n.Component{renderAsText(){}renderAsRadio(){const{inline:e=!1}=this.props.option;return Object(n.createElement)("div",i()({className:"ct-radio-option"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).map(e=>Object(n.createElement)("label",{key:e},Object(n.createElement)("input",{type:"radio",checked:e===this.props.value,onChange:()=>this.props.onChange(e)}),this.props.option.choices[e])))}render(){if("radio"===this.props.option.view)return this.renderAsRadio();const{inline:e=!1}=this.props.option;return Object(n.createElement)("ul",i()({className:"ct-radio-option ct-buttons-group"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).filter(e=>!this.props.option.conditions||!this.props.option.conditions[e]||Object(c.a)(Object(c.b)(this.props.option.conditions[e]),this.props.values)).map(e=>Object(n.createElement)("li",i()({className:r()({active:e===this.props.value}),onClick:()=>this.props.onChange(e),key:e,dangerouslySetInnerHTML:{__html:this.props.option.choices[e]}},this.props.singleChoiceProps?this.props.singleChoiceProps(e):{}))))}}},function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return g}));var o=a(11),i=a.n(o),n=a(14),l=a.n(n),r=a(0),c=a(5),s=a.n(c),p=a(38),f=a.n(p),d=a(17);const u=(e,t,a)=>Math.max(e,Math.min(t,a)),b=(e,t=1)=>{const a=Math.pow(10,t);return Math.round(e*a+Number.EPSILON)/a},m=({option:e,onChange:t,is_open:a,toggleOpen:o,currentUnit:i,getNumericValue:n,getAllowedDecimalPlaces:l})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{onClick:()=>o(),className:"ct-current-value"},i||"―"),Object(r.createElement)(d.a,{onOutsideClick:()=>{a&&o()}},Object(r.createElement)("ul",{className:"ct-units-list"},e.units.filter(({unit:e})=>e!==i).reduce((e,t,a)=>[...e.slice(0,a%2==0?void 0:-1),...a%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(a=>Object(r.createElement)("li",{key:a[0].unit},a.map(({unit:a})=>Object(r.createElement)("span",{key:a,onClick:()=>{(a=>{const o=n();t(`${b(u(e.units.find(({unit:e})=>e===a).min,e.units.find(({unit:e})=>e===a).max,""===o?-1/0:o),l(a))}${a}`)})(a),o()}},a||"―")))))));class g extends r.Component{constructor(...e){super(...e),l()(this,"state",{is_dragging:!1,is_open:!1}),l()(this,"el",Object(r.createRef)()),l()(this,"hasUnitsList",()=>this.props.option.units&&this.props.option.units.length>1),l()(this,"getAllowedDecimalPlaces",(e=null)=>{const t=this.props.option.units?this.props.option.units.find(({unit:t})=>t===(e||this.getCurrentUnit())).decimals:this.props.option.decimals;return 0===t||t?t:0}),l()(this,"withDefault",(e,t)=>this.props.option.units&&this.props.option.units.find(({unit:t})=>t===e)?e:e||t),l()(this,"getCurrentUnit",()=>this.props.option.units?this.withDefault(this.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),this.props.option.units[0].unit):""),l()(this,"getMax",()=>this.props.option.units?this.props.option.units.find(({unit:e})=>e===this.getCurrentUnit()).max:this.props.option.max),l()(this,"getMin",()=>this.props.option.units?this.props.option.units.find(({unit:e})=>e===this.getCurrentUnit()).min:this.props.option.min),l()(this,"getNumericValue",({forPosition:e=!1}={})=>{const t=parseFloat(this.props.value,10);if(0===t)return t;if(!t){if(this.props.option.defaultPosition&&"center"===this.props.option.defaultPosition&&e){let e=parseFloat(this.getMin(),10);return(parseFloat(this.getMax(),10)-e)/2+e}return""}return t}),l()(this,"handleMove",e=>{this.state.is_dragging&&this.computeAndSendNewValue(e)}),l()(this,"handleUp",()=>{this.setState({is_dragging:!1}),this.detachEvents()}),l()(this,"handleBlur",()=>{if("CT_CSS_SKIP_RULE"===this.props.option.value){if("CT_CSS_SKIP_RULE"===this.props.value)return;if(""===this.getNumericValue())return void this.props.onChange("CT_CSS_SKIP_RULE")}this.props.onChange(`${u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),parseFloat(this.getNumericValue(),10))}${this.getCurrentUnit()}`)}),l()(this,"handleChange",e=>{"CT_CSS_SKIP_RULE"!==this.props.option.value||""!==e.toString().trim()?this.props.onChange(`${((e,t)=>Math.min(e,t))(parseFloat(this.getMax(),10),parseFloat(e||this.getMin()))}${this.getCurrentUnit()}`):this.props.onChange("CT_CSS_SKIP_RULE")})}computeAndSendNewValue({pageX:e}){let{top:t,left:a,right:o,width:i}=this.el.current.getBoundingClientRect(),n=e-a-pageXOffset;this.props.onChange(`${b(f()([0,i],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?i-n:n),this.getAllowedDecimalPlaces())}${this.getCurrentUnit()}`)}attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}render(){const e=""+f()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)));return Object(r.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),Object(r.createElement)("div",i()({onMouseDown:({pageX:e,pageY:t})=>{this.attachEvents(),this.setState({is_dragging:!0})},onClick:e=>this.computeAndSendNewValue(e),ref:this.el,className:"ab-slider"},this.props.option.steps?{"data-steps":""}:{}),Object(r.createElement)("div",{style:{width:e+"%"}}),Object(r.createElement)("span",{style:{"--position":e+"%"}}),this.props.option.steps&&Object(r.createElement)("section",{className:this.props.option.steps},Object(r.createElement)("i",{className:"minus"}),Object(r.createElement)("i",{className:"zero"}),Object(r.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&Object(r.createElement)("div",{className:s()("ab-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},Object(r.createElement)("input",i()({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1/Math.pow(10,this.getAllowedDecimalPlaces()),value:this.getNumericValue(),onBlur:()=>this.handleBlur(),onChange:({target:{value:e}})=>this.handleChange(e)})),Object(r.createElement)("span",{className:"ct-value-divider"}),!this.hasUnitsList()&&Object(r.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&Object(r.createElement)(m,{option:this.props.option,onChange:this.props.onChange,is_open:this.state.is_open,toggleOpen:()=>this.setState({is_open:!this.state.is_open}),currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue,getAllowedDecimalPlaces:this.getAllowedDecimalPlaces})))}}},function(e,t,a){"use strict";a.r(t);var o=a(0),i=a(20),n=a(1),l=a(25),r=a.n(l),c=a(5),s=a.n(c),p=a(8),f=a(22),d=a(17),u=a(18),b=a(33);t.default=({option:{label:e="",desc:t="",attr:a={}},option:l,value:c,device:m,onChange:g})=>{const[h,v]=Object(o.useState)("_:_"),x=Object(o.useRef)();let[y,O]=Object(o.useMemo)(()=>h.split(":"),[h]);const j=Object(o.useCallback)(e=>v(`${e}:${y}`),[y]),[{isOpen:k,isTransitioning:C},w]=Object(o.useState)({isOpen:!1,isTransitioning:!1}),{styles:E,popoverProps:_}=Object(f.a)({ref:x,defaultHeight:430,shouldCalculate:C||k}),T=e=>{w(t=>({...t,isOpen:e,isTransitioning:!0}))},B=Object(o.useRef)(),N=Object(o.useRef)(),R=Object(o.useRef)(),S=Object(o.useRef)(),I=Object(o.useMemo)(()=>{const e=y,t="options"===e?N.current:"fonts"===e?B.current:"variations"===e?R.current:N.current;return _.ref&&_.ref.current&&((e,t)=>{if(!e)return;if(!t)return;let a=getComputedStyle(e),o=parseFloat(a.left);return{"--option-modal-arrow-position":(t=t.getBoundingClientRect()).left+t.width/2-o-6+"px"}})(_.ref.current,t)},[k,y,_.ref,_.ref&&_.ref.current,B&&B.current,R&&R.current,N&&N.current,S&&S.current]);return Object(o.createElement)("div",{className:s()("ct-typography",{})},Object(o.createElement)(d.a,{disabled:!k,useCapture:!1,className:"ct-typohraphy-value",additionalRefs:[_.ref],onOutsideClick:()=>{T(!1)},wrapperProps:{ref:x,onClick:e=>{e.preventDefault(),k?j("options"):(v("options:_"),T("options"))}}},Object(o.createElement)("div",null,Object(o.createElement)("span",{onClick:e=>{e.stopPropagation(),k?j("fonts"):(v("fonts:_"),T("fonts"))},className:"ct-font",ref:B},Object(o.createElement)("span",null,"Default"===c.family?"Default Family":Object(u.b)(c.family))),Object(o.createElement)("i",null,"/"),Object(o.createElement)("span",{onClick:e=>{e.stopPropagation(),k?j("options"):(v("options:_"),T("font_size"))},ref:N,className:"ct-size"},Object(o.createElement)("span",null,"CT_CSS_SKIP_RULE"===Object(p.e)(c.size)[m]?Object(n.__)("Default Size","affiliatex"):Object(p.e)(c.size)[m])),Object(o.createElement)("i",null,"/"),Object(o.createElement)("span",{ref:R,onClick:e=>{e.stopPropagation(),k?j("variations"):(v("variations:_"),T("variations"))},className:"ct-weight"},Object(o.createElement)("span",null,Object(u.e)(c.variation)))),Object(o.createElement)("a",{ref:S})),(C||k)&&Object(o.createPortal)(Object(o.createElement)(i.Transition,{items:k,onRest:e=>{w(e=>({...e,isTransitioning:!1}))},config:{duration:100,easing:r()(.25,.1,.25,1)},from:k?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:k?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:k?{opacity:1}:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(e,t)=>t?Object(o.createElement)(b.a,{wrapperProps:{style:{...e,...E,...I},..._},onChange:g,value:c,option:l,initialView:t,setInititialView:e=>T(e),currentView:y,previousView:O,setCurrentView:j}):null),document.body))}},function(e,t,a){"use strict";a.r(t);var o={};a.r(o),a.d(o,"VERSION",(function(){return p.e})),a.d(o,"restArguments",(function(){return f})),a.d(o,"isObject",(function(){return d})),a.d(o,"isNull",(function(){return u})),a.d(o,"isUndefined",(function(){return b})),a.d(o,"isBoolean",(function(){return m})),a.d(o,"isElement",(function(){return g})),a.d(o,"isString",(function(){return v})),a.d(o,"isNumber",(function(){return x})),a.d(o,"isDate",(function(){return y})),a.d(o,"isRegExp",(function(){return O})),a.d(o,"isError",(function(){return j})),a.d(o,"isSymbol",(function(){return k})),a.d(o,"isArrayBuffer",(function(){return C})),a.d(o,"isDataView",(function(){return S})),a.d(o,"isArray",(function(){return I})),a.d(o,"isFunction",(function(){return _})),a.d(o,"isArguments",(function(){return A})),a.d(o,"isFinite",(function(){return z})),a.d(o,"isNaN",(function(){return F})),a.d(o,"isTypedArray",(function(){return U})),a.d(o,"isEmpty",(function(){return X})),a.d(o,"isMatch",(function(){return K})),a.d(o,"isEqual",(function(){return J})),a.d(o,"isMap",(function(){return ce})),a.d(o,"isWeakMap",(function(){return se})),a.d(o,"isSet",(function(){return pe})),a.d(o,"isWeakSet",(function(){return fe})),a.d(o,"keys",(function(){return Z})),a.d(o,"allKeys",(function(){return ee})),a.d(o,"values",(function(){return de})),a.d(o,"pairs",(function(){return ue})),a.d(o,"invert",(function(){return be})),a.d(o,"functions",(function(){return me})),a.d(o,"methods",(function(){return me})),a.d(o,"extend",(function(){return he})),a.d(o,"extendOwn",(function(){return ve})),a.d(o,"assign",(function(){return ve})),a.d(o,"defaults",(function(){return xe})),a.d(o,"create",(function(){return Oe})),a.d(o,"clone",(function(){return je})),a.d(o,"tap",(function(){return ke})),a.d(o,"get",(function(){return _e})),a.d(o,"has",(function(){return Te})),a.d(o,"mapObject",(function(){return Ae})),a.d(o,"identity",(function(){return Be})),a.d(o,"constant",(function(){return M})),a.d(o,"noop",(function(){return ze})),a.d(o,"toPath",(function(){return Ce})),a.d(o,"property",(function(){return Re})),a.d(o,"propertyOf",(function(){return Fe})),a.d(o,"matcher",(function(){return Ne})),a.d(o,"matches",(function(){return Ne})),a.d(o,"times",(function(){return Me})),a.d(o,"random",(function(){return He})),a.d(o,"now",(function(){return Ve})),a.d(o,"escape",(function(){return qe})),a.d(o,"unescape",(function(){return Ue})),a.d(o,"templateSettings",(function(){return $e})),a.d(o,"template",(function(){return Ye})),a.d(o,"result",(function(){return Je})),a.d(o,"uniqueId",(function(){return tt})),a.d(o,"chain",(function(){return at})),a.d(o,"iteratee",(function(){return Le})),a.d(o,"partial",(function(){return nt})),a.d(o,"bind",(function(){return lt})),a.d(o,"bindAll",(function(){return st})),a.d(o,"memoize",(function(){return pt})),a.d(o,"delay",(function(){return ft})),a.d(o,"defer",(function(){return dt})),a.d(o,"throttle",(function(){return ut})),a.d(o,"debounce",(function(){return bt})),a.d(o,"wrap",(function(){return mt})),a.d(o,"negate",(function(){return gt})),a.d(o,"compose",(function(){return ht})),a.d(o,"after",(function(){return vt})),a.d(o,"before",(function(){return xt})),a.d(o,"once",(function(){return yt})),a.d(o,"findKey",(function(){return Ot})),a.d(o,"findIndex",(function(){return kt})),a.d(o,"findLastIndex",(function(){return Ct})),a.d(o,"sortedIndex",(function(){return wt})),a.d(o,"indexOf",(function(){return _t})),a.d(o,"lastIndexOf",(function(){return Tt})),a.d(o,"find",(function(){return Bt})),a.d(o,"detect",(function(){return Bt})),a.d(o,"findWhere",(function(){return Nt})),a.d(o,"each",(function(){return Rt})),a.d(o,"forEach",(function(){return Rt})),a.d(o,"map",(function(){return St})),a.d(o,"collect",(function(){return St})),a.d(o,"reduce",(function(){return Lt})),a.d(o,"foldl",(function(){return Lt})),a.d(o,"inject",(function(){return Lt})),a.d(o,"reduceRight",(function(){return Pt})),a.d(o,"foldr",(function(){return Pt})),a.d(o,"filter",(function(){return At})),a.d(o,"select",(function(){return At})),a.d(o,"reject",(function(){return zt})),a.d(o,"every",(function(){return Ft})),a.d(o,"all",(function(){return Ft})),a.d(o,"some",(function(){return Mt})),a.d(o,"any",(function(){return Mt})),a.d(o,"contains",(function(){return Ht})),a.d(o,"includes",(function(){return Ht})),a.d(o,"include",(function(){return Ht})),a.d(o,"invoke",(function(){return Vt})),a.d(o,"pluck",(function(){return Wt})),a.d(o,"where",(function(){return Dt})),a.d(o,"max",(function(){return qt})),a.d(o,"min",(function(){return Ut})),a.d(o,"shuffle",(function(){return Gt})),a.d(o,"sample",(function(){return $t})),a.d(o,"sortBy",(function(){return Zt})),a.d(o,"groupBy",(function(){return Kt})),a.d(o,"indexBy",(function(){return Qt})),a.d(o,"countBy",(function(){return Yt})),a.d(o,"partition",(function(){return Jt})),a.d(o,"toArray",(function(){return ta})),a.d(o,"size",(function(){return aa})),a.d(o,"pick",(function(){return ia})),a.d(o,"omit",(function(){return na})),a.d(o,"first",(function(){return ra})),a.d(o,"head",(function(){return ra})),a.d(o,"take",(function(){return ra})),a.d(o,"initial",(function(){return la})),a.d(o,"last",(function(){return sa})),a.d(o,"rest",(function(){return ca})),a.d(o,"tail",(function(){return ca})),a.d(o,"drop",(function(){return ca})),a.d(o,"compact",(function(){return pa})),a.d(o,"flatten",(function(){return fa})),a.d(o,"without",(function(){return ua})),a.d(o,"uniq",(function(){return ba})),a.d(o,"unique",(function(){return ba})),a.d(o,"union",(function(){return ma})),a.d(o,"intersection",(function(){return ga})),a.d(o,"difference",(function(){return da})),a.d(o,"unzip",(function(){return ha})),a.d(o,"transpose",(function(){return ha})),a.d(o,"zip",(function(){return va})),a.d(o,"object",(function(){return xa})),a.d(o,"range",(function(){return ya})),a.d(o,"chunk",(function(){return Oa})),a.d(o,"mixin",(function(){return ka})),a.d(o,"default",(function(){return Ca}));var i=a(11),n=a.n(i),l=a(0),r=a(1),c=a(5),s=a.n(c),p=a(6);function f(e,t){return t=null==t?e.length-1:+t,function(){for(var a=Math.max(arguments.length-t,0),o=Array(a),i=0;i<a;i++)o[i]=arguments[i+t];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,arguments[0],o);case 2:return e.call(this,arguments[0],arguments[1],o)}var n=Array(t+1);for(i=0;i<t;i++)n[i]=arguments[i];return n[t]=o,e.apply(this,n)}}function d(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function u(e){return null===e}function b(e){return void 0===e}function m(e){return!0===e||!1===e||"[object Boolean]"===p.t.call(e)}function g(e){return!(!e||1!==e.nodeType)}function h(e){var t="[object "+e+"]";return function(e){return p.t.call(e)===t}}var v=h("String"),x=h("Number"),y=h("Date"),O=h("RegExp"),j=h("Error"),k=h("Symbol"),C=h("ArrayBuffer"),w=h("Function"),E=p.p.document&&p.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof E&&(w=function(e){return"function"==typeof e||!1});var _=w,T=h("Object"),B=p.s&&T(new DataView(new ArrayBuffer(8))),N="undefined"!=typeof Map&&T(new Map),R=h("DataView"),S=B?function(e){return null!=e&&_(e.getInt8)&&C(e.buffer)}:R,I=p.k||h("Array");function L(e,t){return null!=e&&p.i.call(e,t)}var P=h("Arguments");!function(){P(arguments)||(P=function(e){return L(e,"callee")})}();var A=P;function z(e){return!k(e)&&Object(p.f)(e)&&!isNaN(parseFloat(e))}function F(e){return x(e)&&Object(p.g)(e)}function M(e){return function(){return e}}function H(e){return function(t){var a=e(t);return"number"==typeof a&&a>=0&&a<=p.b}}function V(e){return function(t){return null==t?void 0:t[e]}}var W=V("byteLength"),D=H(W),q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,U=p.r?function(e){return p.l?Object(p.l)(e)&&!S(e):D(e)&&q.test(p.t.call(e))}:M(!1),$=V("length");function G(e,t){t=function(e){for(var t={},a=e.length,o=0;o<a;++o)t[e[o]]=!0;return{contains:function(e){return t[e]},push:function(a){return t[a]=!0,e.push(a)}}}(t);var a=p.n.length,o=e.constructor,i=_(o)&&o.prototype||p.c,n="constructor";for(L(e,n)&&!t.contains(n)&&t.push(n);a--;)(n=p.n[a])in e&&e[n]!==i[n]&&!t.contains(n)&&t.push(n)}function Z(e){if(!d(e))return[];if(p.m)return Object(p.m)(e);var t=[];for(var a in e)L(e,a)&&t.push(a);return p.h&&G(e,t),t}function X(e){if(null==e)return!0;var t=$(e);return"number"==typeof t&&(I(e)||v(e)||A(e))?0===t:0===$(Z(e))}function K(e,t){var a=Z(t),o=a.length;if(null==e)return!o;for(var i=Object(e),n=0;n<o;n++){var l=a[n];if(t[l]!==i[l]||!(l in i))return!1}return!0}function Q(e){return e instanceof Q?e:this instanceof Q?void(this._wrapped=e):new Q(e)}function Y(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,W(e))}function J(e,t){return function e(t,a,o,i){if(t===a)return 0!==t||1/t==1/a;if(null==t||null==a)return!1;if(t!=t)return a!=a;var n=typeof t;return("function"===n||"object"===n||"object"==typeof a)&&function t(a,o,i,n){a instanceof Q&&(a=a._wrapped),o instanceof Q&&(o=o._wrapped);var l=p.t.call(a);if(l!==p.t.call(o))return!1;if(B&&"[object Object]"==l&&S(a)){if(!S(o))return!1;l="[object DataView]"}switch(l){case"[object RegExp]":case"[object String]":return""+a==""+o;case"[object Number]":return+a!=+a?+o!=+o:0==+a?1/+a==1/o:+a==+o;case"[object Date]":case"[object Boolean]":return+a==+o;case"[object Symbol]":return p.d.valueOf.call(a)===p.d.valueOf.call(o);case"[object ArrayBuffer]":case"[object DataView]":return t(Y(a),Y(o),i,n)}var r="[object Array]"===l;if(!r&&U(a)){if(W(a)!==W(o))return!1;if(a.buffer===o.buffer&&a.byteOffset===o.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof a||"object"!=typeof o)return!1;var c=a.constructor,s=o.constructor;if(c!==s&&!(_(c)&&c instanceof c&&_(s)&&s instanceof s)&&"constructor"in a&&"constructor"in o)return!1}n=n||[];for(var f=(i=i||[]).length;f--;)if(i[f]===a)return n[f]===o;if(i.push(a),n.push(o),r){if((f=a.length)!==o.length)return!1;for(;f--;)if(!e(a[f],o[f],i,n))return!1}else{var d,u=Z(a);if(f=u.length,Z(o).length!==f)return!1;for(;f--;)if(!L(o,d=u[f])||!e(a[d],o[d],i,n))return!1}return i.pop(),n.pop(),!0}(t,a,o,i)}(e,t)}function ee(e){if(!d(e))return[];var t=[];for(var a in e)t.push(a);return p.h&&G(e,t),t}function te(e){var t=$(e);return function(a){if(null==a)return!1;var o=ee(a);if($(o))return!1;for(var i=0;i<t;i++)if(!_(a[e[i]]))return!1;return e!==le||!_(a[ae])}}Q.VERSION=p.e,Q.prototype.value=function(){return this._wrapped},Q.prototype.valueOf=Q.prototype.toJSON=Q.prototype.value,Q.prototype.toString=function(){return String(this._wrapped)};var ae="forEach",oe=["clear","delete"],ie=["get","has","set"],ne=oe.concat(ae,ie),le=oe.concat(ie),re=["add"].concat(oe,ae,"has"),ce=N?te(ne):h("Map"),se=N?te(le):h("WeakMap"),pe=N?te(re):h("Set"),fe=h("WeakSet");function de(e){for(var t=Z(e),a=t.length,o=Array(a),i=0;i<a;i++)o[i]=e[t[i]];return o}function ue(e){for(var t=Z(e),a=t.length,o=Array(a),i=0;i<a;i++)o[i]=[t[i],e[t[i]]];return o}function be(e){for(var t={},a=Z(e),o=0,i=a.length;o<i;o++)t[e[a[o]]]=a[o];return t}function me(e){var t=[];for(var a in e)_(e[a])&&t.push(a);return t.sort()}function ge(e,t){return function(a){var o=arguments.length;if(t&&(a=Object(a)),o<2||null==a)return a;for(var i=1;i<o;i++)for(var n=arguments[i],l=e(n),r=l.length,c=0;c<r;c++){var s=l[c];t&&void 0!==a[s]||(a[s]=n[s])}return a}}var he=ge(ee),ve=ge(Z),xe=ge(ee,!0);function ye(e){if(!d(e))return{};if(p.j)return Object(p.j)(e);var t=function(){};t.prototype=e;var a=new t;return t.prototype=null,a}function Oe(e,t){var a=ye(e);return t&&ve(a,t),a}function je(e){return d(e)?I(e)?e.slice():he({},e):e}function ke(e,t){return t(e),e}function Ce(e){return I(e)?e:[e]}function we(e){return Q.toPath(e)}function Ee(e,t){for(var a=t.length,o=0;o<a;o++){if(null==e)return;e=e[t[o]]}return a?e:void 0}function _e(e,t,a){var o=Ee(e,we(t));return b(o)?a:o}function Te(e,t){for(var a=(t=we(t)).length,o=0;o<a;o++){var i=t[o];if(!L(e,i))return!1;e=e[i]}return!!a}function Be(e){return e}function Ne(e){return e=ve({},e),function(t){return K(t,e)}}function Re(e){return e=we(e),function(t){return Ee(t,e)}}function Se(e,t,a){if(void 0===t)return e;switch(null==a?3:a){case 1:return function(a){return e.call(t,a)};case 3:return function(a,o,i){return e.call(t,a,o,i)};case 4:return function(a,o,i,n){return e.call(t,a,o,i,n)}}return function(){return e.apply(t,arguments)}}function Ie(e,t,a){return null==e?Be:_(e)?Se(e,t,a):d(e)&&!I(e)?Ne(e):Re(e)}function Le(e,t){return Ie(e,t,1/0)}function Pe(e,t,a){return Q.iteratee!==Le?Q.iteratee(e,t):Ie(e,t,a)}function Ae(e,t,a){t=Pe(t,a);for(var o=Z(e),i=o.length,n={},l=0;l<i;l++){var r=o[l];n[r]=t(e[r],r,e)}return n}function ze(){}function Fe(e){return null==e?ze:function(t){return _e(e,t)}}function Me(e,t,a){var o=Array(Math.max(0,e));t=Se(t,a,1);for(var i=0;i<e;i++)o[i]=t(i);return o}function He(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}Q.toPath=Ce,Q.iteratee=Le;var Ve=Date.now||function(){return(new Date).getTime()};function We(e){var t=function(t){return e[t]},a="(?:"+Z(e).join("|")+")",o=RegExp(a),i=RegExp(a,"g");return function(e){return e=null==e?"":""+e,o.test(e)?e.replace(i,t):e}}var De={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qe=We(De),Ue=We(be(De)),$e=Q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ge=/(.)^/,Ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Xe=/\\|'|\r|\n|\u2028|\u2029/g;function Ke(e){return"\\"+Ze[e]}var Qe=/^\s*(\w|\$)+\s*$/;function Ye(e,t,a){!t&&a&&(t=a),t=xe({},t,Q.templateSettings);var o=RegExp([(t.escape||Ge).source,(t.interpolate||Ge).source,(t.evaluate||Ge).source].join("|")+"|$","g"),i=0,n="__p+='";e.replace(o,(function(t,a,o,l,r){return n+=e.slice(i,r).replace(Xe,Ke),i=r+t.length,a?n+="'+\n((__t=("+a+"))==null?'':_.escape(__t))+\n'":o?n+="'+\n((__t=("+o+"))==null?'':__t)+\n'":l&&(n+="';\n"+l+"\n__p+='"),t})),n+="';\n";var l,r=t.variable;if(r){if(!Qe.test(r))throw new Error("variable is not a bare identifier: "+r)}else n="with(obj||{}){\n"+n+"}\n",r="obj";n="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+n+"return __p;\n";try{l=new Function(r,"_",n)}catch(e){throw e.source=n,e}var c=function(e){return l.call(this,e,Q)};return c.source="function("+r+"){\n"+n+"}",c}function Je(e,t,a){var o=(t=we(t)).length;if(!o)return _(a)?a.call(e):a;for(var i=0;i<o;i++){var n=null==e?void 0:e[t[i]];void 0===n&&(n=a,i=o),e=_(n)?n.call(e):n}return e}var et=0;function tt(e){var t=++et+"";return e?e+t:t}function at(e){var t=Q(e);return t._chain=!0,t}function ot(e,t,a,o,i){if(!(o instanceof t))return e.apply(a,i);var n=ye(e.prototype),l=e.apply(n,i);return d(l)?l:n}var it=f((function(e,t){var a=it.placeholder,o=function(){for(var i=0,n=t.length,l=Array(n),r=0;r<n;r++)l[r]=t[r]===a?arguments[i++]:t[r];for(;i<arguments.length;)l.push(arguments[i++]);return ot(e,o,this,this,l)};return o}));it.placeholder=Q;var nt=it,lt=f((function(e,t,a){if(!_(e))throw new TypeError("Bind must be called on a function");var o=f((function(i){return ot(e,o,t,this,a.concat(i))}));return o})),rt=H($);function ct(e,t,a,o){if(o=o||[],t||0===t){if(t<=0)return o.concat(e)}else t=1/0;for(var i=o.length,n=0,l=$(e);n<l;n++){var r=e[n];if(rt(r)&&(I(r)||A(r)))if(t>1)ct(r,t-1,a,o),i=o.length;else for(var c=0,s=r.length;c<s;)o[i++]=r[c++];else a||(o[i++]=r)}return o}var st=f((function(e,t){var a=(t=ct(t,!1,!1)).length;if(a<1)throw new Error("bindAll must be passed function names");for(;a--;){var o=t[a];e[o]=lt(e[o],e)}return e}));function pt(e,t){var a=function(o){var i=a.cache,n=""+(t?t.apply(this,arguments):o);return L(i,n)||(i[n]=e.apply(this,arguments)),i[n]};return a.cache={},a}var ft=f((function(e,t,a){return setTimeout((function(){return e.apply(null,a)}),t)})),dt=nt(ft,Q,1);function ut(e,t,a){var o,i,n,l,r=0;a||(a={});var c=function(){r=!1===a.leading?0:Ve(),o=null,l=e.apply(i,n),o||(i=n=null)},s=function(){var s=Ve();r||!1!==a.leading||(r=s);var p=t-(s-r);return i=this,n=arguments,p<=0||p>t?(o&&(clearTimeout(o),o=null),r=s,l=e.apply(i,n),o||(i=n=null)):o||!1===a.trailing||(o=setTimeout(c,p)),l};return s.cancel=function(){clearTimeout(o),r=0,o=i=n=null},s}function bt(e,t,a){var o,i,n,l,r,c=function(){var s=Ve()-i;t>s?o=setTimeout(c,t-s):(o=null,a||(l=e.apply(r,n)),o||(n=r=null))},s=f((function(s){return r=this,n=s,i=Ve(),o||(o=setTimeout(c,t),a&&(l=e.apply(r,n))),l}));return s.cancel=function(){clearTimeout(o),o=n=r=null},s}function mt(e,t){return nt(t,e)}function gt(e){return function(){return!e.apply(this,arguments)}}function ht(){var e=arguments,t=e.length-1;return function(){for(var a=t,o=e[t].apply(this,arguments);a--;)o=e[a].call(this,o);return o}}function vt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function xt(e,t){var a;return function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=null),a}}var yt=nt(xt,2);function Ot(e,t,a){t=Pe(t,a);for(var o,i=Z(e),n=0,l=i.length;n<l;n++)if(t(e[o=i[n]],o,e))return o}function jt(e){return function(t,a,o){a=Pe(a,o);for(var i=$(t),n=e>0?0:i-1;n>=0&&n<i;n+=e)if(a(t[n],n,t))return n;return-1}}var kt=jt(1),Ct=jt(-1);function wt(e,t,a,o){for(var i=(a=Pe(a,o,1))(t),n=0,l=$(e);n<l;){var r=Math.floor((n+l)/2);a(e[r])<i?n=r+1:l=r}return n}function Et(e,t,a){return function(o,i,n){var l=0,r=$(o);if("number"==typeof n)e>0?l=n>=0?n:Math.max(n+r,l):r=n>=0?Math.min(n+1,r):n+r+1;else if(a&&n&&r)return o[n=a(o,i)]===i?n:-1;if(i!=i)return(n=t(p.q.call(o,l,r),F))>=0?n+l:-1;for(n=e>0?l:r-1;n>=0&&n<r;n+=e)if(o[n]===i)return n;return-1}}var _t=Et(1,kt,wt),Tt=Et(-1,Ct);function Bt(e,t,a){var o=(rt(e)?kt:Ot)(e,t,a);if(void 0!==o&&-1!==o)return e[o]}function Nt(e,t){return Bt(e,Ne(t))}function Rt(e,t,a){var o,i;if(t=Se(t,a),rt(e))for(o=0,i=e.length;o<i;o++)t(e[o],o,e);else{var n=Z(e);for(o=0,i=n.length;o<i;o++)t(e[n[o]],n[o],e)}return e}function St(e,t,a){t=Pe(t,a);for(var o=!rt(e)&&Z(e),i=(o||e).length,n=Array(i),l=0;l<i;l++){var r=o?o[l]:l;n[l]=t(e[r],r,e)}return n}function It(e){var t=function(t,a,o,i){var n=!rt(t)&&Z(t),l=(n||t).length,r=e>0?0:l-1;for(i||(o=t[n?n[r]:r],r+=e);r>=0&&r<l;r+=e){var c=n?n[r]:r;o=a(o,t[c],c,t)}return o};return function(e,a,o,i){var n=arguments.length>=3;return t(e,Se(a,i,4),o,n)}}var Lt=It(1),Pt=It(-1);function At(e,t,a){var o=[];return t=Pe(t,a),Rt(e,(function(e,a,i){t(e,a,i)&&o.push(e)})),o}function zt(e,t,a){return At(e,gt(Pe(t)),a)}function Ft(e,t,a){t=Pe(t,a);for(var o=!rt(e)&&Z(e),i=(o||e).length,n=0;n<i;n++){var l=o?o[n]:n;if(!t(e[l],l,e))return!1}return!0}function Mt(e,t,a){t=Pe(t,a);for(var o=!rt(e)&&Z(e),i=(o||e).length,n=0;n<i;n++){var l=o?o[n]:n;if(t(e[l],l,e))return!0}return!1}function Ht(e,t,a,o){return rt(e)||(e=de(e)),("number"!=typeof a||o)&&(a=0),_t(e,t,a)>=0}var Vt=f((function(e,t,a){var o,i;return _(t)?i=t:(t=we(t),o=t.slice(0,-1),t=t[t.length-1]),St(e,(function(e){var n=i;if(!n){if(o&&o.length&&(e=Ee(e,o)),null==e)return;n=e[t]}return null==n?n:n.apply(e,a)}))}));function Wt(e,t){return St(e,Re(t))}function Dt(e,t){return At(e,Ne(t))}function qt(e,t,a){var o,i,n=-1/0,l=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var r=0,c=(e=rt(e)?e:de(e)).length;r<c;r++)null!=(o=e[r])&&o>n&&(n=o);else t=Pe(t,a),Rt(e,(function(e,a,o){((i=t(e,a,o))>l||i===-1/0&&n===-1/0)&&(n=e,l=i)}));return n}function Ut(e,t,a){var o,i,n=1/0,l=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var r=0,c=(e=rt(e)?e:de(e)).length;r<c;r++)null!=(o=e[r])&&o<n&&(n=o);else t=Pe(t,a),Rt(e,(function(e,a,o){((i=t(e,a,o))<l||i===1/0&&n===1/0)&&(n=e,l=i)}));return n}function $t(e,t,a){if(null==t||a)return rt(e)||(e=de(e)),e[He(e.length-1)];var o=rt(e)?je(e):de(e),i=$(o);t=Math.max(Math.min(t,i),0);for(var n=i-1,l=0;l<t;l++){var r=He(l,n),c=o[l];o[l]=o[r],o[r]=c}return o.slice(0,t)}function Gt(e){return $t(e,1/0)}function Zt(e,t,a){var o=0;return t=Pe(t,a),Wt(St(e,(function(e,a,i){return{value:e,index:o++,criteria:t(e,a,i)}})).sort((function(e,t){var a=e.criteria,o=t.criteria;if(a!==o){if(a>o||void 0===a)return 1;if(a<o||void 0===o)return-1}return e.index-t.index})),"value")}function Xt(e,t){return function(a,o,i){var n=t?[[],[]]:{};return o=Pe(o,i),Rt(a,(function(t,i){var l=o(t,i,a);e(n,t,l)})),n}}var Kt=Xt((function(e,t,a){L(e,a)?e[a].push(t):e[a]=[t]})),Qt=Xt((function(e,t,a){e[a]=t})),Yt=Xt((function(e,t,a){L(e,a)?e[a]++:e[a]=1})),Jt=Xt((function(e,t,a){e[a?0:1].push(t)}),!0),ea=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ta(e){return e?I(e)?p.q.call(e):v(e)?e.match(ea):rt(e)?St(e,Be):de(e):[]}function aa(e){return null==e?0:rt(e)?e.length:Z(e).length}function oa(e,t,a){return t in a}var ia=f((function(e,t){var a={},o=t[0];if(null==e)return a;_(o)?(t.length>1&&(o=Se(o,t[1])),t=ee(e)):(o=oa,t=ct(t,!1,!1),e=Object(e));for(var i=0,n=t.length;i<n;i++){var l=t[i],r=e[l];o(r,l,e)&&(a[l]=r)}return a})),na=f((function(e,t){var a,o=t[0];return _(o)?(o=gt(o),t.length>1&&(a=t[1])):(t=St(ct(t,!1,!1),String),o=function(e,a){return!Ht(t,a)}),ia(e,o,a)}));function la(e,t,a){return p.q.call(e,0,Math.max(0,e.length-(null==t||a?1:t)))}function ra(e,t,a){return null==e||e.length<1?null==t||a?void 0:[]:null==t||a?e[0]:la(e,e.length-t)}function ca(e,t,a){return p.q.call(e,null==t||a?1:t)}function sa(e,t,a){return null==e||e.length<1?null==t||a?void 0:[]:null==t||a?e[e.length-1]:ca(e,Math.max(0,e.length-t))}function pa(e){return At(e,Boolean)}function fa(e,t){return ct(e,t,!1)}var da=f((function(e,t){return t=ct(t,!0,!0),At(e,(function(e){return!Ht(t,e)}))})),ua=f((function(e,t){return da(e,t)}));function ba(e,t,a,o){m(t)||(o=a,a=t,t=!1),null!=a&&(a=Pe(a,o));for(var i=[],n=[],l=0,r=$(e);l<r;l++){var c=e[l],s=a?a(c,l,e):c;t&&!a?(l&&n===s||i.push(c),n=s):a?Ht(n,s)||(n.push(s),i.push(c)):Ht(i,c)||i.push(c)}return i}var ma=f((function(e){return ba(ct(e,!0,!0))}));function ga(e){for(var t=[],a=arguments.length,o=0,i=$(e);o<i;o++){var n=e[o];if(!Ht(t,n)){var l;for(l=1;l<a&&Ht(arguments[l],n);l++);l===a&&t.push(n)}}return t}function ha(e){for(var t=e&&qt(e,$).length||0,a=Array(t),o=0;o<t;o++)a[o]=Wt(e,o);return a}var va=f(ha);function xa(e,t){for(var a={},o=0,i=$(e);o<i;o++)t?a[e[o]]=t[o]:a[e[o][0]]=e[o][1];return a}function ya(e,t,a){null==t&&(t=e||0,e=0),a||(a=t<e?-1:1);for(var o=Math.max(Math.ceil((t-e)/a),0),i=Array(o),n=0;n<o;n++,e+=a)i[n]=e;return i}function Oa(e,t){if(null==t||t<1)return[];for(var a=[],o=0,i=e.length;o<i;)a.push(p.q.call(e,o,o+=t));return a}function ja(e,t){return e._chain?Q(t).chain():t}function ka(e){return Rt(me(e),(function(t){var a=Q[t]=e[t];Q.prototype[t]=function(){var e=[this._wrapped];return p.o.apply(e,arguments),ja(this,a.apply(Q,e))}})),Q}Rt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=p.a[e];Q.prototype[e]=function(){var a=this._wrapped;return null!=a&&(t.apply(a,arguments),"shift"!==e&&"splice"!==e||0!==a.length||delete a[0]),ja(this,a)}})),Rt(["concat","join","slice"],(function(e){var t=p.a[e];Q.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),ja(this,e)}}));var Ca=Q,wa=ka(o);wa._=wa;var Ea=wa,_a=({disabled:e,className:t="",value:a,onBlur:o,onChange:i,placeholder:n=Object(r.__)("Default","affiliatex")})=>Object(l.createElement)("input",{type:"text",value:a,onKeyDown:e=>{Ea.contains([46,8,9,27,13,110,190,27],e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||109==e.keyCode||189==e.keyCode||173==e.keyCode||67==e.keyCode&&!0===e.ctrlKey||88==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&Ea.isNumber(parseInt(a,10))&&i(parseInt(a,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&Ea.isNumber(parseInt(a,10))&&i(parseInt(a,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:({target:{value:e}})=>i(e),placeholder:n,onBlur:()=>o&&o,className:s()({inactive:"auto"===a})}),Ta=a(17);t.default=({value:e,option:t,onChange:a})=>{const[o,i]=Object(l.useState)(!1),c=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}],p=()=>["top","right","bottom","left"].find(t=>"auto"!==e[t]),f=()=>{return t=e[p()].toString().replace(/[0-9]/g,"").replace(/\./g,""),c.find(({unit:e})=>e===t)?t:t||c[0].unit;var t},d=(e,t="")=>"auto"===e?e:`${0===parseFloat(e)?0:parseFloat(e)||""}${t}`;return Object(l.createElement)("div",{className:s()("ct-option-spacing",{linked:e.linked})},["top","right","bottom","left"].map(o=>Object(l.createElement)("span",{key:o},Object(l.createElement)(_a,n()({placeholder:"",value:d(e[o]),onChange:t=>{return i=t,n=o,void(e.linked?a({...e,top:"auto"===e.top?e.top:d(i,f()),left:"auto"===e.left?e.left:d(i,f()),right:"auto"===e.right?e.right:d(i,f()),bottom:"auto"===e.bottom?e.bottom:d(i,f())}):a({...e,[n]:d(i,f())}));var i,n},placeholder:""},t.inputAttr)),Object(l.createElement)("small",null,{top:Object(r.__)("Top","affiliatex"),bottom:Object(r.__)("Bottom","affiliatex"),left:Object(r.__)("Left","affiliatex"),right:Object(r.__)("Right","affiliatex")}[o]))),Object(l.createElement)("div",{className:s()("ct-spacing-controls ct-value-changer",{active:o})},Object(l.createElement)("a",{onClick:t=>{if(t.preventDefault(),e.linked)return void a({...e,linked:!1});const o=e[p()];a({...e,top:"auto"!==e.top?o:e.top,left:"auto"!==e.left?o:e.left,bottom:"auto"!==e.bottom?o:e.bottom,right:"auto"!==e.right?o:e.right,linked:!0})}},Object(l.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},e.linked?Object(l.createElement)("path",{d:"M12.2,5.5V4.7c0-2.6-2.1-4.7-4.7-4.7S2.8,2.1,2.8,4.7v0.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z M10.7,5.5H4.3V4.7c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2V5.5z"}):Object(l.createElement)("path",{d:"M12.2,5.5h-1.6H9.9h-5H4.7l0-0.2C4.4,3.5,5.5,1.9,7.3,1.5c1.1-0.2,2.2,0.1,2.8,0.9l1.3-0.9c-1-1.1-2.6-1.8-4.3-1.5C4.5,0.5,2.8,2.9,3.2,5.5H2.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z"}))),Object(l.createElement)("span",{className:"ct-value-divider"}),Object(l.createElement)("div",{onClick:()=>i(!o),className:"ct-current-value"},f()||"―"),Object(l.createElement)(Ta.a,{onOutsideClick:()=>{o&&i(!1)}},Object(l.createElement)("ul",{className:"ct-units-list"},c.filter(({unit:e})=>e!==f()).reduce((e,t,a)=>[...e.slice(0,a%2==0?void 0:-1),...a%2==0?[[t]]:[[e[e.length-1][0],t]]],[]).map(t=>Object(l.createElement)("li",{key:t[0].unit},t.map(({unit:t})=>Object(l.createElement)("span",{key:t,onClick:()=>{a({...e,top:d(e.top,t),left:d(e.left,t),right:d(e.right,t),bottom:d(e.bottom,t)}),i(!1)}},t||"―"))))))))}},function(e,t,a){"use strict";a.r(t);var o=a(0),i=a(1),n=a(5),l=a.n(n),r=a(17),c=a(22),s=a(3);const p=[{id:"type-1",title:Object(i.__)("Hideout","affiliatex"),src:"patterns/hideout.svg"},{id:"type-2",title:Object(i.__)("Triangles","affiliatex"),src:"patterns/triangles.svg"},{id:"type-3",title:Object(i.__)("Bubbles","affiliatex"),src:"patterns/bubbles.svg"},{id:"type-4",title:Object(i.__)("Wiggle","affiliatex"),src:"patterns/wiggle.svg"},{id:"type-5",title:Object(i.__)("Polka Dots","affiliatex"),src:"patterns/polka-dots.svg"},{id:"type-6",title:Object(i.__)("Overlaping Circles","affiliatex"),src:"patterns/overlaping-circles.svg"},{id:"type-7",title:Object(i.__)("Texture","affiliatex"),src:"patterns/texture.svg"},{id:"type-8",title:Object(i.__)("Diagonal Lines","affiliatex"),src:"patterns/diagonal-lines.svg"},{id:"type-9",title:Object(i.__)("Rain","affiliatex"),src:"patterns/rain.svg"},{id:"type-10",title:Object(i.__)("Stripes","affiliatex"),src:"patterns/stripes.svg"},{id:"type-11",title:Object(i.__)("Diagonal Stripes","affiliatex"),src:"patterns/diagonal-stripes.svg"},{id:"type-12",title:Object(i.__)("Intersecting Circles","affiliatex"),src:"patterns/intersecting-circles.svg"},{id:"type-13",title:Object(i.__)("Bank Note","affiliatex"),src:"patterns/bank-note.svg"},{id:"type-14",title:Object(i.__)("Zig Zag","affiliatex"),src:"patterns/zig-zag.svg"},{id:"type-15",title:Object(i.__)("Endless Clouds","affiliatex"),src:"patterns/endless-clouds.svg"},{id:"type-16",title:Object(i.__)("Honey Comb","affiliatex"),src:"patterns/honey-comb.svg"},{id:"type-17",title:Object(i.__)("Cross Stripes","affiliatex"),src:"patterns/cross-stripes.svg"},{id:"type-18",title:Object(i.__)("Autumn","affiliatex"),src:"patterns/autumn.svg"}];var f=({option:e,value:t,onChange:a})=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("ul",{className:"ct-patterns-list"},p.map(e=>Object(o.createElement)("li",{onClick:()=>a({...t,background_pattern:e.id}),className:l()({active:e.id===t.background_pattern}),key:e.id,title:e.title},Object(o.createElement)("img",{src:(window.rt_localizations||rt_customizer_localizations).static_public_url+"images/"+e.src})))),Object(o.createElement)(s.a,{value:t.patternColor,values:t,option:{id:"patternColor",label:Object(i.__)("Pattern Color","affiliatex"),type:"ct-color-picker",design:"inline",value:e.value.patternColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],skipNoColorPill:!0,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>a({...t,patternColor:e})})),d=({option:e,value:t,onChange:a,setOutsideClickFreezed:n})=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.a,{value:t.background_image,values:t,option:{id:"background_image",label:!1,type:"ct-image-uploader",value:e.value.background_image,has_position_picker:!0,emptyLabel:Object(i.__)("Select Image","affiliatex"),filledLabel:Object(i.__)("Change Image","affiliatex"),onFrameOpen:()=>{n(!0)},onFrameClose:()=>{n(!1)}},hasRevertButton:!1,onChange:e=>a({...t,background_image:e})}),Object(o.createElement)(s.a,{value:t.background_repeat,values:t,option:{id:"background_repeat",label:Object(i.__)("Background Repeat","affiliatex"),attr:{"data-type":"repeat"},type:"ct-radio",view:"text",design:"block",value:e.value.background_repeat,choices:{"no-repeat":'<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>',"repeat-x":'<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>',"repeat-y":'<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>',repeat:'<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>'}},hasRevertButton:!1,onChange:e=>a({...t,background_repeat:e})}),Object(o.createElement)(s.a,{value:t.background_size,values:t,option:{id:"background_size",label:Object(i.__)("Background Size","affiliatex"),type:"ct-radio",view:"text",design:"block",value:e.value.background_size,choices:{auto:Object(i.__)("Auto","affiliatex"),cover:Object(i.__)("Cover","affiliatex"),contain:Object(i.__)("Contain","affiliatex")}},hasRevertButton:!1,onChange:e=>a({...t,background_size:e})}),Object(o.createElement)(s.a,{value:t.background_attachment,values:t,option:{id:"background_size",label:Object(i.__)("Background Attachment","affiliatex"),type:"ct-radio",view:"text",design:"block",value:e.value.background_attachment,choices:{scroll:Object(i.__)("Scroll","affiliatex"),fixed:Object(i.__)("Fixed","affiliatex"),inherit:Object(i.__)("Inherit","affiliatex")}},hasRevertButton:!1,onChange:e=>a({...t,background_attachment:e})}),t.background_image.url&&Object(o.createElement)(s.a,{value:t.overlayColor,values:t,option:{id:"overlayColor",label:Object(i.__)("Image Overlay Color","affiliatex"),type:"ct-color-picker",design:"inline",value:e.value.overlayColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>a({...t,overlayColor:e})})),u=a(24),b=({option:e,value:t,isOpen:a,onChange:n,setOutsideClickFreezed:r})=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:e=>{e.preventDefault()}},["color","gradient","image"].map(e=>Object(o.createElement)("li",{"data-type":e,key:e,className:l()({active:e===t.background_type||"image"===e&&("pattern"===t.background_type||"image"===t.background_type)}),onClick:()=>n({...t,background_type:e,..."gradient"===e?{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}:{}})},{color:Object(i.__)("Color","affiliatex"),gradient:Object(i.__)("Gradient","affiliatex"),image:Object(i.__)("Image","affiliatex")}[e]))),Object(o.createElement)("div",{className:l()({"ct-image-tab ct-options-container":"image"===t.background_type||"pattern"===t.background_type,"ct-gradient-tab ct-color-picker-modal":"gradient"===t.background_type,"ct-color-tab":"color"===t.background_type})},("image"===t.background_type||"pattern"===t.background_type)&&Object(o.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:e=>{e.preventDefault()}},["image","pattern"].map(e=>Object(o.createElement)("li",{"data-type":e,key:e,className:l()({active:e===t.background_type}),onClick:()=>n({...t,background_type:e})},{pattern:Object(i.__)("Pattern","affiliatex"),image:Object(i.__)("Image","affiliatex")}[e]))),"pattern"===t.background_type&&Object(o.createElement)(f,{option:e,onChange:n,value:t}),"image"===t.background_type&&Object(o.createElement)(d,{setOutsideClickFreezed:r,option:e,onChange:n,value:t}),"gradient"===t.background_type&&Object(o.createElement)(u.a,{value:t,onChange:n}),"gradient"!==t.background_type&&Object(o.createElement)(s.a,{value:t.backgroundColor,values:t,option:{id:"backgroundColor",label:"color"!==t.background_type&&Object(i.__)("Background Color","affiliatex"),type:"ct-color-picker",skipNoColorPill:!0,design:"color"===t.background_type?"none":"inline",value:e.value.backgroundColor,pickers:[{title:Object(i.__)("Initial","affiliatex"),id:"default"}],inline_modal:"color"===t.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>n({...t,backgroundColor:e})})));t.default=({option:e,value:t,onChange:a})=>{const[n,s]=Object(o.useState)(!1),[f,d]=Object(o.useState)(!1),u=Object(o.useRef)(),m="color"===(t=(e=>!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e)(t)).background_type&&("CT_CSS_SKIP_RULE"===t.backgroundColor.default.color||"transparent"===t.backgroundColor.default.color),{styles:g,popoverProps:h}=Object(c.a)({ref:u,defaultHeight:434,shouldCalculate:u&&u.current});return Object(o.createElement)("div",{ref:u,className:l()("ct-background",{active:n})},Object(o.createElement)("div",{className:l()("ct-background-preview",{"no-color":m}),onClick:e=>{e.preventDefault(),s(!n),"color"===t.background_type&&("CT_CSS_SKIP_RULE"!==t.backgroundColor.default.color&&"transparent"!==t.backgroundColor.default.color||a({...t,backgroundColor:{default:{color:"#ffffff"}}}))},"data-background-type":t.background_type,style:{...t.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:t.backgroundColor.default.color},"--background-position":`${Math.round(100*parseFloat(t.background_image.x))}% ${Math.round(100*parseFloat(t.background_image.y))}%`,"--pattern-mask":"pattern"===t.background_type?`url(${v=t.background_pattern,(window.rt_localizations||rt_customizer_localizations).static_public_url+"images/"+p.find(e=>e.id===v).src})`:"","--background-image":"gradient"===t.background_type?t.gradient:t.background_image.url?`url(${t.background_image.url})`:"none","--pattern-color":t.patternColor.default.color}},Object(o.createElement)("i",{className:"ct-tooltip-top"},{inherit:Object(i.__)("Inherited","affliatex"),pattern:Object(i.__)("Pattern","affliatex"),gradient:Object(i.__)("Gradient","affliatex"),color:Object(i.__)("Color","affliatex"),image:Object(i.__)("Image","affliatex")}[m?"inherit":t.background_type]),m&&Object(o.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},Object(o.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),u&&u.current&&Object(o.createPortal)(Object(o.createElement)(r.a,{useCapture:!1,display:"block",disabled:!n||f,onOutsideClick:()=>{setTimeout(()=>s(!1))},wrapperProps:{style:g,...h,className:l()("ct-option-modal ct-background-modal",{active:n})}},Object(o.createElement)(b,{onChange:a,value:t,option:e,isOpen:n,setOutsideClickFreezed:d})),document.body));var v}},function(e,t,a){"use strict";a.r(t);var o=a(0),i=a(1),n=a(5),l=a.n(n),r=a(27),c=a(17),s=a(11),p=a.n(s),f=a(25),d=a.n(f),u=a(31),b=a(3),m=a(22),g=a(37),h=({option:e,value:t,onChange:a,picker:n,onPickingChange:r,stopTransitioning:c,el:s,hOffsetRef:f,vOffsetRef:h,blurRef:v,spreadRef:x,isTransitioning:y,isPicking:O})=>{const{styles:j,popoverProps:k}=Object(m.a)({ref:s,defaultHeight:e.hide_shadow_placement?437:507,shouldCalculate:y===n.id||(O||"").split(":")[0]===n.id});return(y===n.id||(O||"").split(":")[0]===n.id)&&Object(o.createPortal)(Object(o.createElement)(u.a,{items:O,onRest:e=>{c()},config:{duration:100,easing:d()(.25,.1,.25,1)},from:-1===(O||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(O||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(O||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},r=>(r||"").split(":")[0]===n.id&&(n=>Object(o.createElement)("div",p()({style:{...n,...j}},k,{className:"ct-option-modal ct-box-shadow-modal",onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDownCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),Object(o.createElement)("div",{className:"ct-shadow-trigger"},Object(o.createElement)("label",null,Object(i.__)("Enable/Disable","affiliatex")),Object(o.createElement)(g.default,{value:t.enable?"yes":"no",onChange:()=>{a({...t,enable:!t.enable})}})),Object(o.createElement)("div",{className:"shadow-sliders"},Object(o.createElement)(b.a,{value:t.h_offset,values:t,id:"h_offset",option:{id:"h_offset",label:Object(i.__)("Horizontal Offset","affiliatex"),type:"ab-slider",steps:"half",value:e.value.h_offset,min:-100,max:100,design:"compact",ref:f},hasRevertButton:!1,onChange:e=>a({...t,h_offset:e})}),Object(o.createElement)(b.a,{value:t.v_offset,values:t,id:"v_offset",option:{steps:"half",id:"v_offset",label:Object(i.__)("Vertical Offset","affiliatex"),type:"ab-slider",value:e.value.v_offset,min:-100,max:100,design:"compact",ref:h},hasRevertButton:!1,onChange:e=>a({...t,v_offset:e})}),Object(o.createElement)(b.a,{value:t.blur,values:t,id:"blur",option:{steps:"positive",id:"blur",label:Object(i.__)("Blur","affiliatex"),type:"ab-slider",value:e.value.blur,min:0,max:100,design:"compact",ref:v},hasRevertButton:!1,onChange:e=>{a({...t,blur:e})}}),Object(o.createElement)(b.a,{value:t.spread,values:t,id:"spread",option:{steps:"half",id:"spread",label:Object(i.__)("Spread","affiliatex"),type:"ab-slider",value:e.value.spread,min:-100,max:100,design:"compact",ref:x},hasRevertButton:!1,onChange:e=>a({...t,spread:e})})),!e.hide_shadow_placement&&Object(o.createElement)("ul",{className:"ct-shadow-style"},Object(o.createElement)("li",{onClick:()=>a({...t,inset:!1}),className:l()({active:!t.inset})},"Outline"),Object(o.createElement)("li",{onClick:()=>a({...t,inset:!0}),className:l()({active:t.inset})},"Inset"))))),document.body)};t.default=({value:e,option:t,onChange:a})=>{const[{isPicking:n,isTransitioning:s},p]=Object(o.useState)({isPicking:null,isTransitioning:null}),[f,d]=Object(o.useState)(null),u=Object(o.useRef)(),b=Object(o.useRef)(),m=Object(o.useRef)(),g=Object(o.useRef)(),v=Object(o.useRef)(),x=Object(o.useRef)(),y=Object(o.useRef)(),O=Object(o.useRef)();return Object(o.createElement)("div",{ref:u,className:l()("ct-box-shadow",{"ct-disabled":!e.enable||e.inherit})},Object(o.createElement)(r.a,{innerRef:b,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:n,isTransitioning:s,modalRef:O,containerRef:y,onPickingChange:t=>{e.enable&&p({isTransitioning:"default",isPicking:t})},stopTransitioning:()=>p({isPicking:n,isTransitioning:!1}),onChange:t=>a({...e,color:t}),value:e.color}),Object(o.createElement)(c.a,{useCapture:!1,disabled:!n,className:"ct-box-shadow-values",additionalRefs:[b,O],onOutsideClick:()=>{n&&p({isTransitioning:n.split(":")[0],isPicking:null})},wrapperProps:{ref:y,onClick:e=>{e.preventDefault();let t=n?"opts"===n.split(":")[0]?null:"opts:"+n.split(":")[0]:"opts";p({isTransitioning:"opts",isPicking:t})}}},Object(o.createElement)("span",null,e.inherit?Object(i.__)("Inherit","affiliatex"):e.enable?Object(i.__)("Adjust","affiliatex"):Object(i.__)("None","affiliatex"))),Object(o.createElement)(h,{el:u,value:e,onChange:e=>a({...e,inherit:!1}),option:t,isPicking:n,isTransitioning:s,hOffsetRef:m,vOffsetRef:g,blurRef:v,spreadRef:x,picker:{id:"opts"},onPickingChange:t=>{e.enable&&p({isTransitioning:"opts",isPicking:t})},stopTransitioning:()=>p({isPicking:n,isTransitioning:!1})}))}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.data},,function(e,t,a){"use strict";var o=a(64);function i(){}function n(){}n.resetWarningCache=i,e.exports=function(){function e(e,t,a,i,n,l){if(l!==o){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:i};return a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=window.wp.primitives},,,,,,function(e,t,a){"use strict";e.exports=a(72)},function(e,t,a){"use strict";a(73);var o=a(4),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),t.Fragment=n("react.fragment")}var l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,a){var o,n={},s=null,p=null;for(o in void 0!==a&&(s=""+a),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(p=t.ref),t)r.call(t,o)&&!c.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===n[o]&&(n[o]=t[o]);return{$$typeof:i,type:e,key:s,ref:p,props:n,_owner:l.current}}t.jsx=s,t.jsxs=s},function(e,t,a){"use strict";var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function l(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,r,c=l(e),s=1;s<arguments.length;s++){for(var p in a=Object(arguments[s]))i.call(a,p)&&(c[p]=a[p]);if(o){r=o(a);for(var f=0;f<r.length;f++)n.call(a,r[f])&&(c[r[f]]=a[r[f]])}}return c}},,,,,,,,,,function(e,t,a){"use strict";a.r(t);var o,i=a(0),n=a(1);const l=AffiliateX.customizationData;var r={block_id:{type:"string"},buttonLabel:{type:"string",default:"Button"},buttonTextColor:{type:"string",default:"#ffffff"},buttonborderHoverColor:{type:"string",default:"#ffffff"},buttonTextHoverColor:{type:"string",default:"#ffffff"},buttonBGColor:{type:"string",default:(null==l?void 0:l.btnColor)||"#2670FF"},buttonBGHoverColor:{type:"string",default:(null==l?void 0:l.btnHoverColor)||"#084ACA"},buttonTypography:{type:"object",default:{family:(null==l||null===(o=l.typography)||void 0===o?void 0:o.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},buttonMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},buttonPadding:{type:"object",default:{desktop:{top:"",left:"",right:"",bottom:""},mobile:{top:"",left:"",right:"",bottom:""},tablet:{top:"",left:"",right:"",bottom:""}}},iconPosition:{type:"string",default:"axBtnleft"},buttonURL:{type:"string",default:""},buttonREL:{type:"string",default:""},openInNewTab:{type:"boolean",default:!1},btnRelNoFollow:{type:"boolean",default:!1},btnRelSponsored:{type:"boolean",default:!1},btnDownload:{type:"boolean",default:!1},roundedButton:{type:"boolean",default:!1},buttonRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},buttonSize:{type:"string",default:"medium"},buttonWidth:{type:"string",default:"flexible"},buttonBorder:{type:"object",default:{width:"1",style:"none",color:{color:"#dddddd"}}},buttonBGType:{type:"string",default:"solid"},buttonBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},buttonAlignment:{type:"string",default:"flex-start"},buttonShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},buttonIconSize:{type:"string",default:"18px"},buttonIconColor:{type:"string",default:"#ffffff"},buttonIconHoverColor:{type:"string",default:"#ffffff"},edButtonIcon:{type:"boolean",default:!1},buttonFixWidth:{type:"string",default:"100px"},ButtonIcon:{type:"object",default:{name:"thumb-up-simple",value:"far fa-thumbs-up"}},layoutStyle:{type:"string",default:"layout-type-1"},priceTagPosition:{type:"string",default:"tagBtnright"},productPrice:{type:"string",default:"$145"},priceTextColor:{type:"string",default:"#2670FF"},priceBackgroundColor:{type:"string",default:"#ffff"}},c=a(3),s=a(26),p=a(24),f=({attributes:e,setAttributes:t})=>{const{InspectorControls:a,URLInput:o}=wp.blockEditor,{PanelBody:l,ToggleControl:f,SelectControl:d}=wp.components,{buttonTextColor:u,buttonTextHoverColor:b,buttonBGColor:m,buttonBGHoverColor:g,buttonTypography:h,buttonMargin:v,buttonPadding:x,iconPosition:y,edButtonIcon:O,buttonSize:j,buttonWidth:k,buttonBorder:C,buttonBGType:w,buttonBgGradient:E,buttonAlignment:_,buttonShadow:T,ButtonIcon:B,buttonIconSize:N,buttonIconColor:R,buttonRadius:S,buttonFixWidth:I,buttonURL:L,btnRelNoFollow:P,btnRelSponsored:A,btnDownload:z,openInNewTab:F,buttonborderHoverColor:M,buttonIconHoverColor:H,layoutStyle:V,priceTagPosition:W,priceTextColor:D,priceBackgroundColor:q}=e,U=[];return P&&U.push("nofollow"),A&&U.push("sponsored"),Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(l,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(d,{label:Object(n.__)("Choose Layout","affiliatex"),value:V,options:[{value:"layout-type-1",label:Object(n.__)("Default Button","affiliatex")},{value:"layout-type-2",label:Object(n.__)("Price Button","affiliatex")}],onChange:e=>t({layoutStyle:e})})),"layout-type-2"===V&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:W,values:W,id:"price-tag-position",option:{id:"price-tag-position",label:Object(n.__)("Price Tag Position","affiliatex"),type:"ab-radio",choices:{tagBtnleft:Object(n.__)("Left","affiliatex"),tagBtnright:Object(n.__)("Right","affiliatex")},value:"tagBtnright"},hasRevertButton:!0,onChange:e=>t({priceTagPosition:e})}))),Object(i.createElement)(l,{title:Object(n.__)("Button Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-btn-new-tab"},Object(i.createElement)(o,{value:L,onChange:e=>t({buttonURL:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(f,{label:Object(n.__)('Add rel="nofollow"?',"affiliatex"),checked:!!P,onChange:()=>t({btnRelNoFollow:!P}),autoFocus:!0}),Object(i.createElement)(f,{label:Object(n.__)('Add rel="sponsored"?',"affiliatex"),checked:!!A,onChange:()=>t({btnRelSponsored:!A}),autoFocus:!0}),Object(i.createElement)(f,{label:Object(n.__)("Add download attribute","affiliatex"),checked:!!z,onChange:()=>t({btnDownload:!z}),autoFocus:!0}),Object(i.createElement)(f,{label:Object(n.__)("Open Link in new window","affiliatex"),checked:!!F,onChange:()=>t({openInNewTab:!F}),autoFocus:!0})),Object(i.createElement)("div",{className:"affiliate-blocks-option border-hover"},Object(i.createElement)("label",null,Object(n.__)("Button Border","affiliatex")),Object(i.createElement)(c.a,{value:C,values:C,id:"button-border",option:{id:"button-border",type:"ab-border",value:r.buttonBorder.default},hasRevertButton:!0,onChange:e=>t({buttonBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},C&&"none"!=C.style&&Object(i.createElement)(c.a,{className:"border-hover-color",value:{borderHoverColor:{color:M}},option:{id:"border-hover-color",label:Object(n.__)("Border Hover Color","affiliatex"),type:"ab-color-picker",value:{borderHoverColor:{color:r.buttonborderHoverColor.default}},pickers:[{id:"borderHoverColor",title:Object(n.__)("Border Hover Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({buttonborderHoverColor:e.borderHoverColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"product-radius",option:{id:"product-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:r.buttonRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({buttonRadius:e})})),"fixed"!=k&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:j,values:j,id:"button-size",option:{id:"button-size",label:Object(n.__)("Button Size","affiliatex"),type:"ab-radio",choices:{small:Object(n.__)("S","affiliatex"),medium:Object(n.__)("M","affiliatex"),large:Object(n.__)("L","affiliatex"),xlarge:Object(n.__)("XL","affiliatex")},value:"medium"},hasRevertButton:!0,onChange:e=>t({buttonSize:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"button-width",option:{id:"button-width",label:Object(n.__)("Button Width","affiliatex"),type:"ab-radio",choices:{fixed:Object(n.__)("Fixed","affiliatex"),flexible:Object(n.__)("Flexible","affiliatex"),full:Object(n.__)("Full","affiliatex")},value:"flexible"},hasRevertButton:!0,onChange:e=>t({buttonWidth:e})}),"fixed"==k&&Object(i.createElement)(c.a,{value:I,values:I,id:"button-fix-width",option:{id:"button-fix-width",label:Object(n.__)("Button Size","affiliatex"),type:"ab-slider",value:r.buttonFixWidth.default,units:[{unit:"px",min:0,max:600}]},hasRevertButton:!0,onChange:e=>{t({buttonFixWidth:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:_,values:_,id:"button-alignment",option:{id:"button-alignment",label:Object(n.__)("Button Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{"flex-start":"",center:"","flex-end":""},value:"flex-start"},hasRevertButton:!0,onChange:e=>t({buttonAlignment:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"button-shadow",option:{id:"button-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:T},hasRevertButton:!0,onChange:e=>t({buttonShadow:e})}))),Object(i.createElement)(l,{title:Object(n.__)("Icon Settings","affiliatex"),initialOpen:!1},Object(i.createElement)(f,{label:Object(n.__)("Enable Icon in button","affiliatex"),className:"affiliate-blocks-option",checked:!!O,onChange:()=>t({edButtonIcon:!O})}),1==O&&Object(i.createElement)("div",{className:"affx-btn-icon-wrapper"},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+B.value},Object(i.createElement)("label",null,Object(n.__)("Select Title Icon","affiliatex")),Object(i.createElement)(s.a,{value:B.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({ButtonIcon:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:y,values:y,id:"icon-position",option:{id:"icon-position",label:Object(n.__)("Icon Position","affiliatex"),type:"ab-radio",choices:{axBtnleft:Object(n.__)("Left","affiliatex"),axBtnright:Object(n.__)("Right","affiliatex")}},hasRevertButton:!0,onChange:e=>t({iconPosition:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-size"},Object(i.createElement)(c.a,{value:N,values:N,id:"button-icon-size",option:{id:"button-icon-size",label:Object(n.__)("Icon Size","affiliatex"),type:"ab-slider",value:N,units:[{unit:"px",min:0,max:200}]},hasRevertButton:!1,onChange:e=>t({buttonIconSize:e})})))),Object(i.createElement)(l,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:u},textHoverColor:{color:b}},values:{textColor:{color:u},textHoverColor:{color:b}},option:{id:"button-text-color",label:Object(n.__)("Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:r.buttonTextColor.default},textHoverColor:{color:r.buttonTextHoverColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color","affiliatex")},{id:"textHoverColor",title:Object(n.__)("Text Hover Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({buttonTextColor:e.textColor.color,buttonTextHoverColor:e.textHoverColor.color})})),1==O&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{buttoniconcolor:{color:R},buttonIconHoverColor:{color:H}},option:{id:"button-icon-color",label:Object(n.__)("Icon Color","affiliatex"),type:"ab-color-picker",value:{buttoniconcolor:{color:r.buttonIconColor.default},buttonIconHoverColor:{color:r.buttonIconHoverColor.default}},pickers:[{id:"buttoniconcolor",title:Object(n.__)("Button Icon Color","affiliatex")},{id:"buttonIconHoverColor",title:Object(n.__)("Button Icon Hover Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({buttonIconColor:e.buttoniconcolor.color,buttonIconHoverColor:e.buttonIconHoverColor.color})})),"layout-type-2"===V&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)("label",null,Object(n.__)("Price Tag Color","affiliatex")),Object(i.createElement)(c.a,{value:{textColor:{color:D},textBgColor:{color:q}},option:{id:"button-price-tag-color",type:"ab-color-picker",value:{textColor:{color:r.priceTextColor.default},textBgColor:{color:r.priceBackgroundColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color","affiliatex")},{id:"textBgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({priceTextColor:e.textColor.color,priceBackgroundColor:e.textBgColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:w,values:w,option:{id:"button-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")},value:"solid"},hasRevertButton:!0,onChange:e=>t({buttonBGType:e})})),"solid"===w&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:m},backgroundHoverColor:{color:g}},option:{id:"button-price-tag-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:r.buttonBGColor.default},backgroundHoverColor:{color:r.buttonBGHoverColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color","affiliatex")},{id:"backgroundHoverColor",title:Object(n.__)("Background Hover Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({buttonBGColor:e.backgroundColor.color,buttonBGHoverColor:e.backgroundHoverColor.color})})),"gradient"===w&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)("label",null,Object(n.__)("Background Gradient","affiliatex")),Object(i.createElement)(p.a,{value:E,onChange:e=>t({buttonBgGradient:e})}))),Object(i.createElement)(l,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"button-typography",option:{id:"button-typography",label:Object(n.__)("Button Typography","affiliatex"),type:"ab-typography",value:r.buttonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({buttonTypography:e})}}))),Object(i.createElement)(l,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:v,values:v,id:"button-margin",option:{id:"button-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:r.buttonMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({buttonMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:x,values:x,id:"button-padding",option:{id:"button-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:r.buttonPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({buttonPadding:e})}))))},d=a(19),u=a(7),b=a(5),m=a.n(b),g=a(40),h=a.n(g),v=a(39),x=a.n(v);if(void 0===y)var y=[];const{Component:O}=wp.element;class j extends O{constructor(e){super(e),this.state={status:void 0},this.handleLoading=()=>{this.setState({status:"loading"})},this.addFont=e=>{y.includes(e)||y.push(e)},this.handleActive=()=>{this.setState({status:"active"})},this.handleInactive=()=>{this.setState({status:"inactive"})},this.loadFonts=()=>{y.includes(this.props.config.google.families[0])||(x.a.load({...this.props.config,loading:this.handleLoading,active:this.handleActive,inactive:this.handleInactive}),this.addFont(this.props.config.google.families[0]))}}componentDidMount(){this.loadFonts()}componentDidUpdate(e,t){const{onStatus:a,config:o}=this.props;t.status!==this.state.status&&a(this.state.status),e.config!==o&&this.loadFonts()}render(){const{children:e}=this.props;return e||null}}j.propTypes={config:h.a.object.isRequired,children:h.a.element,onStatus:h.a.func.isRequired},j.defaultProps={onStatus:()=>{}};var k=j;const{RichText:C}=wp.blockEditor;var w,E,_=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-blocks-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-blocks-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{buttonTypography:o,buttonTextColor:i,buttonTextHoverColor:n,buttonMargin:l,buttonBGColor:r,buttonPadding:c,buttonBGHoverColor:s,buttonBorder:p,buttonAlignment:f,buttonShadow:b,buttonBGType:m,buttonBgGradient:g,buttonIconSize:h,buttonRadius:v,buttonFixWidth:x,buttonborderHoverColor:y,buttonIconColor:O,buttonIconHoverColor:j,priceTextColor:k,priceBackgroundColor:C}=e;var w,E,_={};(_={" .affiliatex-button":{"font-family":o.family,"font-size":o.size.desktop,"font-weight":o.variation,"line-height":o["line-height"].desktop,"text-transform":o["text-transform"],"text-decoration":o["text-decoration"],color:i,"margin-top":l.desktop.top,"margin-left":l.desktop.left,"margin-right":l.desktop.right,"margin-bottom":l.desktop.bottom,"background-color":r,"padding-top":c.desktop.top,"padding-left":c.desktop.left,"padding-right":c.desktop.right,"padding-bottom":c.desktop.bottom,"border-style":p.style,"border-width":p.width+"px","border-color":p.color.color,"box-shadow":Object(u.a)(b)?Object(u.a)(b):"","letter-spacing":o["letter-spacing"].desktop,"font-weight":Object(u.c)(o.variation),"font-style":Object(u.b)(o.variation),"border-radius":v.desktop.top+" "+v.desktop.right+" "+v.desktop.bottom+" "+v.desktop.left}," .btn-is-fixed":{"max-width":x,width:"100%"}," .affx-btn-inner":{"justify-content":f}," .affiliatex-button:hover":{color:n,background:s,"border-color":y}," .button-icon":{"font-size":h,color:O}," .affiliatex-button:hover .button-icon":{color:j}," .affiliatex-button .price-tag":{color:k,"background-color":C,"--border-top-left-radius":v.desktop.top,"--border-top-right-radius":v.desktop.right,"--border-bottom-right-radius":v.desktop.bottom,"--border-bottom-left-radius":v.desktop.left}," .affiliatex-button .price-tag::before":{"background-color":C}})[" .affiliatex-button"].background="solid"===m?r:g.gradient,E={" .affiliatex-button":{"font-size":o.size.tablet,"line-height":o["line-height"].tablet,"margin-top":l.tablet.top,"margin-left":l.tablet.left,"margin-right":l.tablet.right,"margin-bottom":l.tablet.bottom,"padding-top":c.tablet.top,"padding-left":c.tablet.left,"padding-right":c.tablet.right,"padding-bottom":c.tablet.bottom,"border-radius":v.tablet.top+" "+v.tablet.right+" "+v.tablet.bottom+" "+v.tablet.left}},w={" .affiliatex-button":{"font-size":o.size.mobile,"line-height":o["line-height"].mobile,"margin-top":l.mobile.top,"margin-left":l.mobile.left,"margin-right":l.mobile.right,"margin-bottom":l.mobile.bottom,"padding-top":c.mobile.top,"padding-left":c.mobile.left,"padding-right":c.mobile.right,"padding-bottom":c.mobile.bottom,"border-radius":v.mobile.top+" "+v.mobile.right+" "+v.mobile.bottom+" "+v.mobile.left}};var T="";return T=Object(d.a)(_,`#${t}-${a}`),(T+=Object(d.a)(E,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(w,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-blocks-style",l))},[e]);const{buttonTypography:r,buttonLabel:c,buttonURL:s,edButtonIcon:p,buttonSize:b,buttonWidth:g,buttonAlignment:h,ButtonIcon:v,iconPosition:x,layoutStyle:y,priceTagPosition:O,productPrice:j}=e,{Fragment:w}=wp.element;let E;if("Default"!==r.family){const e={google:{families:[r.family+(r.variation?":"+r.variation:"")]}};E=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(w,null,Object(i.createElement)(f,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-blocks-style-"+l,className:"affx-btn-wrapper"},Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)(w,null,Object(i.createElement)("span",{className:m()(`affiliatex-button btn-align-${h} btn-is-${b} ${"fixed"==g?"btn-is-fixed":"full"===g?"btn-is-fullw":"flexible"===g?"btn-is-flex-"+b:""}\n\t\t\t\t\t\t\t\t${"layout-type-2"==y&&"tagBtnleft"==O?"left-price-tag":"layout-type-2"==y&&"tagBtnright"==O?"right-price-tag":""}\n\t\t\t\t\t\t\t\t${1==p&&x&&"axBtnright"==x?"icon-right":"icon-left"}`)},1==p&&x&&"axBtnleft"==x&&Object(i.createElement)("i",{className:"button-icon "+v.value}),Object(i.createElement)(C,{placeholder:Object(n.__)("Button","affiliatex"),value:c,className:"affiliatex-btn",formattingControls:["bold","italic","underline"],href:s,onChange:e=>t({buttonLabel:e})}),"layout-type-2"==y&&O&&Object(i.createElement)(C,{tagName:"span",placeholder:"$00",value:j,className:"price-tag",onChange:e=>t({productPrice:e})}),1==p&&x&&"axBtnright"==x&&Object(i.createElement)("i",{class:"button-icon "+v.value}))))),E)},T=a(11),B=a.n(T),N=({attributes:e,className:t})=>{const{buttonLabel:a,buttonSize:o,buttonWidth:l,buttonURL:r,iconPosition:c,block_id:s,ButtonIcon:p,edButtonIcon:f,btnRelSponsored:d,openInNewTab:u,btnRelNoFollow:b,buttonAlignment:g,btnDownload:h,layoutStyle:v,priceTagPosition:x,productPrice:y}=e,{RichText:O}=wp.blockEditor;return Object(i.createElement)("div",{id:"affiliatex-blocks-style-"+s,className:"affx-btn-wrapper"},Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:r,className:m()(`affiliatex-button btn-align-${g} btn-is-${o} ${"fixed"==l?"btn-is-fixed":"full"===l?"btn-is-fullw":"flexible"===l?"btn-is-flex-"+o:""}\n\t\t\t\t\t\t\t${"layout-type-2"==v&&"tagBtnleft"==x?"left-price-tag":"layout-type-2"==v&&"tagBtnright"==x?"right-price-tag":""}\n\t\t\t\t\t\t\t${1==f&&c&&"axBtnright"==c?"icon-right":"icon-left"}`),rel:Object(n.__)("noopener","affiliatex")},b?{rel:"noopener nofollow"}:"",d?{rel:"noopener sponsored"}:"",b&&d?{rel:"noopener nofollow sponsored"}:"",u?{target:"_blank"}:"",h?{download:"affiliatex"}:""),1==f&&c&&"axBtnleft"==c&&Object(i.createElement)("i",{class:"button-icon "+p.value}),Object(i.createElement)("span",{className:"affiliatex-btn"},Object(i.createElement)(O.Content,{placeholder:Object(n.__)("Button","affiliatex"),value:a})),"layout-type-2"==v&&x&&Object(i.createElement)(O.Content,{tagName:"span",placeholder:"$00",value:y,className:"price-tag"}),1==f&&c&&"axBtnright"==c&&Object(i.createElement)("i",{class:"button-icon "+p.value}))))},R=a(15),S=a(28);Object(S.registerBlockType)("affiliatex/buttons",{title:Object(n.__)("AffiliateX Buttons","affiliatex"),description:Object(n.__)("Add a customizable button.","affiliatex"),icon:R.a,category:"affiliatex",supports:{multiple:!0},keywords:[Object(n.__)("Buttons","affliatex"),Object(n.__)("AffiliateX Buttons","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:r,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(_,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(N,{attributes:e,className:t})});const I=AffiliateX.customizationData;var L={block_id:{type:"string"},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},prosListItems:{type:"array",filterElements:!0,default:[]},consListItems:{type:"array",filterElements:!0,default:[]},prosIconStatus:{type:"boolean",default:!0},consIconStatus:{type:"boolean",default:!0},contentAlignment:{type:"string",default:"left"},prosIcon:{type:"object",default:{name:"check-circle",value:"far fa-circle"}},consIcon:{type:"object",default:{name:"times-circle",value:"far fa-circle"}},prosListIcon:{type:"object",default:{name:"thumb-up-simple",value:"far fa-thumbs-up"}},consListIcon:{type:"object",default:{name:"thumb-down-simple",value:"far fa-thumbs-down"}},titleTag1:{type:"string",default:"p"},layoutStyle:{type:"string",default:"layout-type-1"},prosTitle:{type:"string",default:"Pros"},consTitle:{type:"string",default:"Cons"},contentType:{type:"string",default:"list"},prosContent:{type:"string",default:""},consContent:{type:"string",default:""},listType:{type:"string",default:"unordered"},unorderedType:{type:"string",default:"icon"},alignment:{type:"string",default:"left"},alignmentThree:{type:"string",default:"center"},titleBgColor:{type:"string",default:""},titleTextColor:{type:"string",default:""},titleTypography:{type:"object",default:{family:(null==I||null===(w=I.typography)||void 0===w?void 0:w.family)||"Default",variation:"n5",size:{desktop:"20px",mobile:"20px",tablet:"20px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},listTypography:{type:"object",default:{family:(null==I||null===(E=I.typography)||void 0===E?void 0:E.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},listTextColor:{type:"string",default:""},prosListBgType:{type:"string",default:"solid"},prosListBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},prosListBgColor:{type:"string",default:"#F5FFF8"},consListBgType:{type:"string",default:"solid"},consListBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},consListBgColor:{type:"string",default:"#FFF5F5"},prosBgType:{type:"string",default:"solid"},prosBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"}},prosBgColor:{type:"string",default:"#24B644"},prosIconColor:{type:"string",default:"#24B644"},prosIconSize:{type:"number",default:18},prosTextColor:{type:"string",default:"#ffffff"},prosTextColorThree:{type:"string",default:"#24B644"},consBgType:{type:"string",default:"solid"},consBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)"}},consBgColor:{type:"string",default:"#F13A3A"},consTextColor:{type:"string",default:"#ffffff"},consTextColorThree:{type:"string",default:"#F13A3A"},consIconColor:{type:"string",default:"#F13A3A"},consIconSize:{type:"number",default:18},consListColor:{type:"string",default:(null==I?void 0:I.fontColor)||"#292929"},prosListColor:{type:"string",default:(null==I?void 0:I.fontColor)||"#292929"},titleMargin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},titlePadding:{type:"object",default:{desktop:{top:"10px",left:"20px",right:"20px",bottom:"10px"},mobile:{top:"10px",left:"20px",right:"20px",bottom:"10px"},tablet:{top:"10px",left:"20px",right:"20px",bottom:"10px"}}},contentMargin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentPadding:{type:"object",default:{desktop:{top:"10px",left:"20px",right:"20px",bottom:"10px"},mobile:{top:"10px",left:"20px",right:"20px",bottom:"10px"},tablet:{top:"10px",left:"20px",right:"20px",bottom:"10px"}}},margin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"30px"},mobile:{top:"0",left:"0",right:"0",bottom:"30px"},tablet:{top:"0",left:"0",right:"0",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},prosBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},prosBorderThree:{type:"object",default:{style:"solid",color:{color:"#ffffff"}}},titleBorderWidthOne:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},titleBorderRadiusOne:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},titleBorderWidthTwo:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},titleBorderRadiusTwo:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},titleBorderWidthThree:{type:"object",default:{desktop:{top:"4px",left:"4px",right:"4px",bottom:"4px"},mobile:{top:"4px",left:"4px",right:"4px",bottom:"4px"},tablet:{top:"4px",left:"4px",right:"4px",bottom:"4px"}}},titleBorderRadiusThree:{type:"object",default:{desktop:{top:"50px",left:"50px",right:"50px",bottom:"50px"},mobile:{top:"50px",left:"50px",right:"50px",bottom:"50px"},tablet:{top:"50px",left:"50px",right:"50px",bottom:"50px"}}},titleBorderWidthFour:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},titleBorderRadiusFour:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},prosContentBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},prosContentBorderThree:{type:"object",default:{width:"1",style:"solid",color:{color:"#24B644"}}},contentBorderWidthOne:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},contentBorderRadiusOne:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentBorderWidthTwo:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},contentBorderRadiusTwo:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentBorderWidthThree:{type:"object",default:{desktop:{top:"4px",left:"4px",right:"4px",bottom:"4px"},mobile:{top:"4px",left:"4px",right:"4px",bottom:"4px"},tablet:{top:"4px",left:"4px",right:"4px",bottom:"4px"}}},contentBorderRadiusThree:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentBorderWidthFour:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},contentBorderRadiusFour:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},consBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},consBorderThree:{type:"object",default:{style:"solid",color:{color:"#ffffff"}}},consContentBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},consContentBorderThree:{type:"object",default:{style:"solid",color:{color:"#F13A3A"}}}},P=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{TextControl:r,ToggleControl:f,PanelBody:d,SelectControl:u,RangeControl:b}=wp.components,{prosTitle:m,consTitle:g,prosIconStatus:h,consIconStatus:v,prosIcon:x,consIcon:y,titleTag1:O,layoutStyle:j,boxShadow:k,alignment:C,alignmentThree:w,titleTypography:E,listTypography:_,contentType:T,listType:B,unorderedType:N,prosListIcon:R,consListIcon:S,prosTextColor:I,prosTextColorThree:P,prosIconSize:A,prosIconColor:z,prosBgType:F,prosBgColor:M,prosBgGradient:H,prosListColor:V,consTextColor:W,consIconSize:D,consTextColorThree:q,consIconColor:U,consBgType:$,consBgColor:G,consBgGradient:Z,consListColor:X,prosListBgType:K,prosListBgColor:Q,prosListBgGradient:Y,consListBgType:J,consListBgColor:ee,consListBgGradient:te,titleMargin:ae,titlePadding:oe,contentMargin:ie,contentPadding:ne,prosBorder:le,prosBorderThree:re,titleBorderWidthOne:ce,titleBorderRadiusOne:se,titleBorderWidthTwo:pe,titleBorderRadiusTwo:fe,titleBorderWidthThree:de,titleBorderRadiusThree:ue,titleBorderWidthFour:be,titleBorderRadiusFour:me,prosContentBorder:ge,prosContentBorderThree:he,contentBorderWidthOne:ve,contentBorderRadiusOne:xe,contentBorderWidthTwo:ye,contentBorderRadiusTwo:Oe,contentBorderWidthThree:je,contentBorderRadiusThree:ke,contentBorderWidthFour:Ce,contentBorderRadiusFour:we,consBorder:Ee,consBorderThree:_e,consContentBorder:Te,consContentBorderThree:Be,margin:Ne,padding:Re,contentAlignment:Se}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(d,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(u,{label:Object(n.__)("Choose Layout","affiliatex"),value:j,options:[{value:"layout-type-1",label:"Layout One"},{value:"layout-type-2",label:"Layout Two"},{value:"layout-type-3",label:"Layout Three"},{value:"layout-type-4",label:"Layout Four"}],onChange:e=>t({layoutStyle:e})}))),Object(i.createElement)(d,{title:Object(n.__)("General Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(u,{label:Object(n.__)("Pros and Cons Heading Tag","affiliatex"),className:"affiliate-blocks-option",value:O,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({titleTag1:e})})),"layout-type-4"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"box-shadow",option:{id:"box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:L.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"text-alignment",option:{id:"text-alignment",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:L.alignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({alignment:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:w,values:w,id:"text-alignment-three",option:{id:"text-alignment-three",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:L.alignmentThree.default,choices:{"flex-start":"",center:"","flex-end":""}},hasRevertButton:!0,onChange:e=>t({alignmentThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"content-type",option:{id:"content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",value:L.contentType.default,choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")}},hasRevertButton:!0,onChange:e=>t({contentType:e})})),"list"===T&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"list-type",option:{id:"list-type",label:Object(n.__)("List Type","affiliatex"),type:"ab-radio",value:L.listType.default,choices:{unordered:Object(n.__)("Unordered","affiliatex"),ordered:Object(n.__)("Ordered","affiliatex")}},hasRevertButton:!0,onChange:e=>t({listType:e})})),"list"===T&&"unordered"===B&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"unordered-type",option:{id:"unordered-type",label:Object(n.__)("Unordered Type","affiliatex"),type:"ab-radio",value:L.unorderedType.default,choices:{icon:Object(n.__)("Show Icon","affiliatex"),bullet:Object(n.__)("Show Bullet","affiliatex")}},hasRevertButton:!0,onChange:e=>t({unorderedType:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Se,values:Se,id:"content-alignment",option:{id:"content-alignment",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},value:L.contentAlignment.default,type:"ab-radio",choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({contentAlignment:e})}))),Object(i.createElement)(d,{title:Object(n.__)("Pros Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)(r,{label:Object(n.__)("Pros Heading Title","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:m,onChange:e=>t({prosTitle:e})}),Object(i.createElement)(f,{label:Object(n.__)("Enable Pros Title Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!h,onChange:()=>t({prosIconStatus:!h})}),h&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+R.value},Object(i.createElement)("label",null,Object(n.__)("Select Pros Title Icon","affiliatex")),Object(i.createElement)(s.a,{value:R.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({prosListIcon:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(b,{value:A,min:5,max:40,step:1,onChange:e=>t({prosIconSize:e})}))),"list"===T&&"unordered"===B&&"icon"===N&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+x.value},Object(i.createElement)("label",null,Object(n.__)("Select Pros List Icon","affiliatex")),Object(i.createElement)(s.a,{value:x.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({prosIcon:e})}}))),Object(i.createElement)(d,{title:Object(n.__)("Cons Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)(r,{label:Object(n.__)("Cons Heading Title","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:g,onChange:e=>t({consTitle:e})}),Object(i.createElement)(f,{label:Object(n.__)("Enable Cons Title Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!v,onChange:()=>t({consIconStatus:!v})}),v&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+S.value},Object(i.createElement)("label",null,Object(n.__)("Select Cons Title Icon","affiliatex")),Object(i.createElement)(s.a,{value:S.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({consListIcon:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(b,{value:D,min:5,max:40,step:1,onChange:e=>t({consIconSize:e})}))),"list"===T&&"unordered"===B&&"icon"===N&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+y.value},Object(i.createElement)("label",null,Object(n.__)("Select Cons List Icon","affiliatex")),Object(i.createElement)(s.a,{value:y.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({consIcon:e})}}))),Object(i.createElement)(d,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:le,values:le,id:"pros-border",option:{id:"pros-border",label:Object(n.__)("Pros Title Border","affiliatex"),type:"ab-border",value:L.prosBorder.default},hasRevertButton:!0,onChange:e=>t({prosBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:re,values:re,id:"pros-border",option:{id:"pros-border",label:Object(n.__)("Pros Title Border","affiliatex"),type:"ab-border",value:L.prosBorderThree.default},hasRevertButton:!0,onChange:e=>t({prosBorderThree:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:ge,values:ge,id:"pros-content-border",option:{id:"pros-content-border",label:Object(n.__)("Pros Content Border","affiliatex"),type:"ab-border",value:L.prosContentBorder.default},hasRevertButton:!0,onChange:e=>t({prosContentBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:he,values:he,id:"pros-content-border",option:{id:"pros-content-border",label:Object(n.__)("Pros Content Border","affiliatex"),type:"ab-border",value:L.prosContentBorderThree.default},hasRevertButton:!0,onChange:e=>t({prosContentBorderThree:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:Ee,values:Ee,id:"cons-border",option:{id:"cons-border",label:Object(n.__)("Cons Title Border","affiliatex"),type:"ab-border",value:L.consBorder.default},hasRevertButton:!0,onChange:e=>t({consBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:_e,values:_e,id:"cons-border",option:{id:"cons-border",label:Object(n.__)("Cons Title Border","affiliatex"),type:"ab-border",value:L.consBorderThree.default},hasRevertButton:!0,onChange:e=>t({consBorderThree:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:Te,values:Te,id:"cons-content-border",option:{id:"cons-content-border",label:Object(n.__)("Cons Content Border","affiliatex"),type:"ab-border",value:L.consContentBorder.default},hasRevertButton:!0,onChange:e=>t({consContentBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:Be,values:Be,id:"cons-content-border",option:{id:"cons-content-border",label:Object(n.__)("Cons Content Border","affiliatex"),type:"ab-border",value:L.consContentBorderThree.default},hasRevertButton:!0,onChange:e=>t({consContentBorderThree:e})})),"layout-type-1"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ce,values:ce,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthOne:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:se,values:se,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusOne:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ve,values:ve,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthOne:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:xe,values:xe,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusOne:e})}))),"layout-type-2"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:pe,values:pe,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthTwo:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:fe,values:fe,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusTwo:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ye,values:ye,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthTwo:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Oe,values:Oe,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusTwo:e})}))),"layout-type-3"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:de,values:de,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ue,values:ue,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:je,values:je,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ke,values:ke,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusThree:e})}))),"layout-type-4"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:be,values:be,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthFour:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:me,values:me,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusFour:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ce,values:Ce,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthFour:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:we,values:we,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusFour:e})})))),Object(i.createElement)(d,{title:Object(n.__)("Colors","affiliatex"),className:"affx-panel-label",initialOpen:!1},"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:P},consTextColor:{color:q}},option:{id:"prosandcons-text-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosTextColorThree.default},consTextColor:{color:L.consTextColorThree.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Title Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosTextColorThree:e.prosTextColor.color,consTextColorThree:e.consTextColor.color})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:I},consTextColor:{color:W}},option:{id:"prosandcons-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosTextColor.default},consTextColor:{color:L.consTextColor.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Title Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosTextColor:e.prosTextColor.color,consTextColor:e.consTextColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:V},consTextColor:{color:X}},option:{id:"prosandcons-content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosListColor.default},consTextColor:{color:L.consListColor.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Content Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosListColor:e.prosTextColor.color,consListColor:e.consTextColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:z},consTextColor:{color:U}},option:{id:"prosandcons-content-color",label:Object(n.__)("Checkmark Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosIconColor.default},consTextColor:{color:L.consIconColor.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Checkmark Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Checkmark Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosIconColor:e.prosTextColor.color,consIconColor:e.consTextColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:F,values:F,id:"pros-bg-type",option:{id:"pros-bg-type",label:Object(n.__)("Pros Background Type","affiliatex"),type:"ab-radio",value:L.prosBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({prosBgType:e})})),"solid"===F&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:M}},option:{id:"pc-pros-bg-color",label:Object(n.__)("Pros Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.prosBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Pros Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosBgColor:e.bgColor.color})})),"gradient"===F&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:H,onChange:e=>t({prosBgGradient:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:K,values:K,id:"list-bg-type",option:{id:"list-bg-type",label:Object(n.__)("Pros List Background Type","affiliatex"),type:"ab-radio",value:L.prosListBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({prosListBgType:e})})),"solid"===K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:Q}},option:{id:"pc-pros-list-bg-color",label:Object(n.__)("Pros List Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.prosListBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("List Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosListBgColor:e.bgColor.color})})),"gradient"===K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:Y,onChange:e=>t({prosListBgGradient:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:$,values:$,id:"cons-bg-type",option:{id:"cons-bg-type",label:Object(n.__)("Cons Background Type","affiliatex"),type:"ab-radio",value:L.consBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({consBgType:e})})),"solid"===$&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:G}},option:{id:"pc-cons-bg-color",label:Object(n.__)("Cons Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.consBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Cons Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({consBgColor:e.bgColor.color})})),"gradient"===$&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:Z,onChange:e=>t({consBgGradient:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:J,values:J,id:"list-bg-type",option:{id:"list-bg-type",label:Object(n.__)("Cons List Background Type","affiliatex"),type:"ab-radio",value:L.consListBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({consListBgType:e})})),"solid"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:ee}},option:{id:"pc-con-list-bg-color",label:Object(n.__)("Cons List Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.consListBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("List Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({consListBgColor:e.bgColor.color})})),"gradient"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:te,onChange:e=>t({consListBgGradient:e})}))),Object(i.createElement)(d,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:L.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:_,id:"list-typography",option:{id:"list-typography",label:Object(n.__)("List/Content Typography","affiliatex"),type:"ab-typography",value:L.listTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({listTypography:e})}}))),Object(i.createElement)(d,{title:Object(n.__)("Spacing Settings","affiliatex"),initialOpen:!1},"layout-type-3"!==j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ae,values:ae,id:"title-margin",option:{id:"title-margin",label:Object(n.__)("Title Margin","affiliatex"),type:"ab-spacing",value:L.titleMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:oe,values:oe,id:"title-padding",option:{id:"title-padding",label:Object(n.__)("Title Padding","affiliatex"),type:"ab-spacing",value:L.titlePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titlePadding:e})}))),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ie,values:ie,id:"content-margin",option:{id:"content-margin",label:Object(n.__)("Content Margin","affiliatex"),type:"ab-spacing",value:L.contentMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ne,values:ne,id:"content-padding",option:{id:"content-padding",label:Object(n.__)("Content Padding","affiliatex"),type:"ab-spacing",value:L.contentPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ne,values:Ne,id:"margin",option:{id:"margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:L.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Re,values:Re,id:"padding",option:{id:"padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:L.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))};const{RichText:A}=wp.blockEditor;var z,F,M,H,V,W=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-pros-cons-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-pros-cons-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{prosIconSize:o,consIconSize:i,boxShadow:n,alignment:l,alignmentThree:r,titleTypography:c,listTypography:s,prosTextColor:p,prosTextColorThree:f,prosBgType:b,prosBgColor:m,prosBgGradient:g,prosListColor:h,consTextColor:v,consTextColorThree:x,consBgType:y,consBgColor:O,consBgGradient:j,consListColor:k,prosListBgType:C,prosListBgColor:w,prosListBgGradient:E,consListBgType:_,consListBgColor:T,consListBgGradient:B,contentType:N,consIconColor:R,listType:S,unorderedType:I,prosIconColor:L,titleMargin:P,titlePadding:A,contentMargin:z,contentPadding:F,layoutStyle:M,prosBorder:H,prosBorderThree:V,titleBorderWidthOne:W,titleBorderRadiusOne:D,titleBorderWidthTwo:q,titleBorderRadiusTwo:U,titleBorderWidthThree:$,titleBorderRadiusThree:G,titleBorderWidthFour:Z,titleBorderRadiusFour:X,prosContentBorder:K,prosContentBorderThree:Q,contentBorderWidthOne:Y,contentBorderRadiusOne:J,contentBorderWidthTwo:ee,contentBorderRadiusTwo:te,contentBorderWidthThree:ae,contentBorderRadiusThree:oe,contentBorderWidthFour:ie,contentBorderRadiusFour:ne,consBorder:le,consBorderThree:re,consContentBorder:ce,consContentBorderThree:se,contentAlignment:pe,margin:fe,padding:de}=e;var ue,be,me={};(me={" .affx-pros-cons-inner-wrapper.layout-type-1":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-2 .affx-pros-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-2 .affx-cons-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-3 .affx-pros-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-3 .affx-cons-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper":{"margin-top":fe.desktop.top,"margin-left":fe.desktop.left,"margin-right":fe.desktop.right,"margin-bottom":fe.desktop.bottom,"padding-top":de.desktop.top,"padding-left":de.desktop.left,"padding-right":de.desktop.right,"padding-bottom":de.desktop.bottom}," .pros-icon-title-wrap .affiliatex-block-pros":{"margin-top":P.desktop.top,"margin-left":P.desktop.left,"margin-right":P.desktop.right,"margin-bottom":P.desktop.bottom,"padding-top":A.desktop.top,"padding-left":A.desktop.left,"padding-right":A.desktop.right,"padding-bottom":A.desktop.bottom}," .cons-icon-title-wrap .affiliatex-block-cons":{"margin-top":P.desktop.top,"margin-left":P.desktop.left,"margin-right":P.desktop.right,"margin-bottom":P.desktop.bottom,"padding-top":A.desktop.top,"padding-left":A.desktop.left,"padding-right":A.desktop.right,"padding-bottom":A.desktop.bottom}," .affx-pros-cons-inner-wrapper.layout-type-1 .pros-icon-title-wrap .affiliatex-block-pros":{"border-style":H.style,"border-width":W.desktop.top+" "+W.desktop.right+" "+W.desktop.bottom+" "+W.desktop.left,"border-color":H.color.color,"border-radius":D.desktop.top+" "+D.desktop.right+" "+D.desktop.bottom+" "+D.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-pros":{"border-style":K.style,"border-width":Y.desktop.top+" "+Y.desktop.right+" "+Y.desktop.bottom+" "+Y.desktop.left,"border-color":K.color.color,"border-radius":J.desktop.top+" "+J.desktop.right+" "+J.desktop.bottom+" "+J.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .pros-icon-title-wrap .affiliatex-block-pros":{"border-style":H.style,"border-width":q.desktop.top+" "+q.desktop.right+" "+q.desktop.bottom+" "+q.desktop.left,"border-color":H.color.color,"border-radius":U.desktop.top+" "+U.desktop.right+" "+U.desktop.bottom+" "+U.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-pros":{"border-style":K.style,"border-width":ee.desktop.top+" "+ee.desktop.right+" "+ee.desktop.bottom+" "+ee.desktop.left,"border-color":K.color.color,"border-radius":te.desktop.top+" "+te.desktop.right+" "+te.desktop.bottom+" "+te.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .pros-icon-title-wrap .affiliatex-block-pros":{"border-style":H.style,"border-width":Z.desktop.top+" "+Z.desktop.right+" "+Z.desktop.bottom+" "+Z.desktop.left,"border-color":H.color.color,"border-radius":X.desktop.top+" "+X.desktop.right+" "+X.desktop.bottom+" "+X.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .cons-icon-title-wrap .affiliatex-block-cons":{"border-style":le.style,"border-width":W.desktop.top+" "+W.desktop.right+" "+W.desktop.bottom+" "+W.desktop.left,"border-color":le.color.color,"border-radius":D.desktop.top+" "+D.desktop.right+" "+D.desktop.bottom+" "+D.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-cons":{"border-style":ce.style,"border-width":Y.desktop.top+" "+Y.desktop.right+" "+Y.desktop.bottom+" "+Y.desktop.left,"border-color":ce.color.color,"border-radius":J.desktop.top+" "+J.desktop.right+" "+J.desktop.bottom+" "+J.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .cons-icon-title-wrap .affiliatex-block-cons":{"border-style":le.style,"border-width":q.desktop.top+" "+q.desktop.right+" "+q.desktop.bottom+" "+q.desktop.left,"border-color":le.color.color,"border-radius":U.desktop.top+" "+U.desktop.right+" "+U.desktop.bottom+" "+U.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-cons":{"border-style":ce.style,"border-width":ee.desktop.top+" "+ee.desktop.right+" "+ee.desktop.bottom+" "+ee.desktop.left,"border-color":ce.color.color,"border-radius":te.desktop.top+" "+te.desktop.right+" "+te.desktop.bottom+" "+te.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .cons-icon-title-wrap .affiliatex-block-cons":{"border-style":le.style,"border-width":Z.desktop.top+" "+Z.desktop.right+" "+Z.desktop.bottom+" "+Z.desktop.left,"border-color":le.color.color,"border-radius":X.desktop.top+" "+X.desktop.right+" "+X.desktop.bottom+" "+X.desktop.left}," .affiliatex-block-cons":{"text-align":l}," .affiliatex-block-cons .affiliatex-title":{"font-family":c.family,"font-weight":Object(u.c)(c.variation),"font-style":Object(u.b)(c.variation),"font-size":c.size.desktop,"line-height":c["line-height"].desktop,"text-transform":c["text-transform"],"text-decoration":c["text-decoration"],"letter-spacing":c["letter-spacing"].desktop}," .affiliatex-block-pros":{"text-align":l}," .affiliatex-block-pros .affiliatex-title":{"font-family":c.family,"font-weight":Object(u.c)(c.variation),"font-style":Object(u.b)(c.variation),"font-size":c.size.desktop,"line-height":c["line-height"].desktop,"text-transform":c["text-transform"],"text-decoration":c["text-decoration"],"letter-spacing":c["letter-spacing"].desktop}," .affiliatex-content":{"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom,"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affiliatex-list":{"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom,"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affiliatex-cons":{"text-align":pe}," .affiliatex-pros":{"text-align":pe}," .affiliatex-cons p":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:k}," .affiliatex-cons li":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:k,display:"left"!=pe?"block":"flex"}," .affiliatex-pros p":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:h}," .affiliatex-pros li":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:h,display:"left"!=pe?"block":"flex"}," .affiliatex-block-pros .affiliatex-icon::before":{"font-size":o+"px"}," .affiliatex-block-cons .affiliatex-icon::before":{"font-size":i+"px"}," .affiliatex-pros ul li::before":{color:L}," .affiliatex-pros li::marker":{color:L}," .affiliatex-pros ul.bullet li::before":{background:L}," .affiliatex-cons ul li::before":{color:R}," .affiliatex-cons li::marker":{color:R}," .affiliatex-cons ul.bullet li::before":{background:R}," .affiliatex-pros ol li::before":{"border-color":L,color:L}," .affiliatex-cons ol li::before":{"border-color":R,color:R}," .affx-pros-cons-inner-wrapper.layout-type-3  .pros-icon-title-wrap":{"border-style":Q.style,"border-width":ae.desktop.top+" "+ae.desktop.right+" 0 "+ae.desktop.left,"border-color":Q.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .cons-icon-title-wrap":{"border-style":se.style,"border-width":ae.desktop.top+" "+ae.desktop.right+" 0 "+ae.desktop.left,"border-color":se.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-pros":{"border-style":Q.style,"border-width":"0 "+ae.desktop.right+" "+ae.desktop.bottom+" "+ae.desktop.left,"border-color":Q.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-cons":{"border-style":se.style,"border-width":"0 "+ae.desktop.right+" "+ae.desktop.bottom+" "+ae.desktop.left,"border-color":se.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before":{"border-style":V.style,"border-width":$.desktop.top+" "+$.desktop.right+" "+$.desktop.bottom+" "+$.desktop.left,"border-color":V.color.color,"border-radius":G.desktop.top+" "+G.desktop.right+" "+G.desktop.bottom+" "+G.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before":{"border-style":re.style,"border-width":$.desktop.top+" "+$.desktop.right+" "+$.desktop.bottom+" "+$.desktop.left,"border-color":re.color.color,"border-radius":G.desktop.top+" "+G.desktop.right+" "+G.desktop.bottom+" "+G.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .pros-title-icon":{"justify-content":r}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .cons-title-icon":{"justify-content":r}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros":{"align-items":r,"margin-top":"0px","margin-left":"0px","margin-right":"0px","margin-bottom":"0px","padding-top":"0px","padding-left":"10px","padding-right":"10px","padding-bottom":"0px"}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons":{"align-items":r,"margin-top":"0px","margin-left":"0px","margin-right":"0px","margin-bottom":"0px","padding-top":"0px","padding-left":"10px","padding-right":"10px","padding-bottom":"0px"}," .affx-pros-cons-inner-wrapper.layout-type-4 .affx-pros-inner .affiliatex-pros":{background:"transparent",border:"none","border-radius":"0"}," .affx-pros-cons-inner-wrapper.layout-type-4 .affx-cons-inner .affiliatex-cons":{background:"transparent",border:"none","border-radius":"0"}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros ul li":{"border-style":K.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":K.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons ul li":{"border-style":ce.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":ce.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list":{padding:"0"}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-content li":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list li":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p":{"border-style":K.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":K.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left,"margin-top":"10px"}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p":{"border-style":ce.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":ce.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left,"margin-top":"10px"}," .affx-pros-inner .affiliatex-pros":{}," .affx-cons-inner .affiliatex-cons":{}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros li":{}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons li":{}," .affiliatex-pros ul":{}," .affiliatex-cons ul":{}})[" .affiliatex-block-pros"].background="solid"===b?m:g.gradient,me[" .affiliatex-block-cons"].background="solid"===y?O:j.gradient,me[" .affx-pros-inner .affiliatex-pros"].background="solid"===C?w:E.gradient,me[" .affx-cons-inner .affiliatex-cons"].background="solid"===_?T:B.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros"].background="solid"===C?w:E.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons"].background="solid"===_?T:B.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before"].background="solid"===b?m:g.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before"].background="solid"===y?O:j.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros li"].background="solid"===C?w:E.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons li"].background="solid"===_?T:B.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p"].background="solid"===C?w:E.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p"].background="solid"===_?T:B.gradient,me[" .affiliatex-pros ul"]["list-style"]="list"==N&&"unordered"==S&&"icon"==I?"none":"",me[" .affiliatex-cons ul"]["list-style"]="list"==N&&"unordered"==S&&"icon"==I?"none":"",me[" .affiliatex-block-pros .affiliatex-title"].color="layout-type-3"===M?f:p,me[" .affiliatex-block-cons .affiliatex-title"].color="layout-type-3"===M?x:v,be={" .pros-icon-title-wrap .affiliatex-block-pros":{"margin-top":P.tablet.top,"margin-left":P.tablet.left,"margin-right":P.tablet.right,"margin-bottom":P.tablet.bottom,"padding-top":A.tablet.top,"padding-left":A.tablet.left,"padding-right":A.tablet.right,"padding-bottom":A.tablet.bottom}," .cons-icon-title-wrap .affiliatex-block-cons":{"margin-top":P.tablet.top,"margin-left":P.tablet.left,"margin-right":P.tablet.right,"margin-bottom":P.tablet.bottom,"padding-top":A.tablet.top,"padding-left":A.tablet.left,"padding-right":A.tablet.right,"padding-bottom":A.tablet.bottom}," .affx-pros-cons-inner-wrapper.layout-type-1 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":W.tablet.top+" "+W.tablet.right+" "+W.tablet.bottom+" "+W.tablet.left,"border-radius":D.tablet.top+" "+D.tablet.right+" "+D.tablet.bottom+" "+D.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-pros":{"border-width":Y.tablet.top+" "+Y.tablet.right+" "+Y.tablet.bottom+" "+Y.tablet.left,"border-radius":J.tablet.top+" "+J.tablet.right+" "+J.tablet.bottom+" "+J.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":q.tablet.top+" "+q.tablet.right+" "+q.tablet.bottom+" "+q.tablet.left,"border-radius":U.tablet.top+" "+U.tablet.right+" "+U.tablet.bottom+" "+U.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-pros":{"border-width":ee.tablet.top+" "+ee.tablet.right+" "+ee.tablet.bottom+" "+ee.tablet.left,"border-radius":te.tablet.top+" "+te.tablet.right+" "+te.tablet.bottom+" "+te.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":Z.tablet.top+" "+Z.tablet.right+" "+Z.tablet.bottom+" "+Z.tablet.left,"border-radius":X.tablet.top+" "+X.tablet.right+" "+X.tablet.bottom+" "+X.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":W.tablet.top+" "+W.tablet.right+" "+W.tablet.bottom+" "+W.tablet.left,"border-radius":D.tablet.top+" "+D.tablet.right+" "+D.tablet.bottom+" "+D.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-cons":{"border-width":Y.tablet.top+" "+Y.tablet.right+" "+Y.tablet.bottom+" "+Y.tablet.left,"border-radius":J.tablet.top+" "+J.tablet.right+" "+J.tablet.bottom+" "+J.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":q.tablet.top+" "+q.tablet.right+" "+q.tablet.bottom+" "+q.tablet.left,"border-radius":U.tablet.top+" "+U.tablet.right+" "+U.tablet.bottom+" "+U.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-cons":{"border-width":ee.tablet.top+" "+ee.tablet.right+" "+ee.tablet.bottom+" "+ee.tablet.left,"border-radius":te.tablet.top+" "+te.tablet.right+" "+te.tablet.bottom+" "+te.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":Z.tablet.top+" "+Z.tablet.right+" "+Z.tablet.bottom+" "+Z.tablet.left,"border-radius":X.tablet.top+" "+X.tablet.right+" "+X.tablet.bottom+" "+X.tablet.left}," .affiliatex-block-cons .affiliatex-title":{"font-size":c.size.tablet,"line-height":c["line-height"].tablet,"letter-spacing":c["letter-spacing"].tablet}," .affiliatex-block-pros .affiliatex-title":{"font-size":c.size.tablet,"line-height":c["line-height"].tablet,"letter-spacing":c["letter-spacing"].tablet}," .affiliatex-content":{"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom,"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affiliatex-list":{"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom,"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affiliatex-cons p":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affiliatex-cons li":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affiliatex-pros p":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affiliatex-pros li":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affx-pros-cons-inner-wrapper.layout-type-3  .pros-icon-title-wrap":{"border-width":ae.tablet.top+" "+ae.tablet.right+" 0 "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .cons-icon-title-wrap":{"border-width":ae.tablet.top+" "+ae.tablet.right+" 0 "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-pros":{"border-width":"0 "+ae.tablet.right+" "+ae.tablet.bottom+" "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-cons":{"border-width":"0 "+ae.tablet.right+" "+ae.tablet.bottom+" "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before":{"border-width":$.tablet.top+" "+$.tablet.right+" "+$.tablet.bottom+" "+$.tablet.left,"border-radius":G.tablet.top+" "+G.tablet.right+" "+G.tablet.bottom+" "+G.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before":{"border-width":$.tablet.top+" "+$.tablet.right+" "+$.tablet.bottom+" "+$.tablet.left,"border-radius":G.tablet.top+" "+G.tablet.right+" "+G.tablet.bottom+" "+G.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros ul li":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons ul li":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-content li":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list li":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper":{"margin-top":fe.tablet.top,"margin-left":fe.tablet.left,"margin-right":fe.tablet.right,"margin-bottom":fe.tablet.bottom,"padding-top":de.tablet.top,"padding-left":de.tablet.left,"padding-right":de.tablet.right,"padding-bottom":de.tablet.bottom}},ue={" .pros-icon-title-wrap .affiliatex-block-pros":{"margin-top":P.mobile.top,"margin-left":P.mobile.left,"margin-right":P.mobile.right,"margin-bottom":P.mobile.bottom,"padding-top":A.mobile.top,"padding-left":A.mobile.left,"padding-right":A.mobile.right,"padding-bottom":A.mobile.bottom}," .cons-icon-title-wrap .affiliatex-block-cons":{"margin-top":P.mobile.top,"margin-left":P.mobile.left,"margin-right":P.mobile.right,"margin-bottom":P.mobile.bottom,"padding-top":A.mobile.top,"padding-left":A.mobile.left,"padding-right":A.mobile.right,"padding-bottom":A.mobile.bottom}," .affx-pros-cons-inner-wrapper.layout-type-1 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":W.mobile.top+" "+W.mobile.right+" "+W.mobile.bottom+" "+W.mobile.left,"border-radius":D.mobile.top+" "+D.mobile.right+" "+D.mobile.bottom+" "+D.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-pros":{"border-width":Y.mobile.top+" "+Y.mobile.right+" "+Y.mobile.bottom+" "+Y.mobile.left,"border-radius":J.mobile.top+" "+J.mobile.right+" "+J.mobile.bottom+" "+J.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":q.mobile.top+" "+q.mobile.right+" "+q.mobile.bottom+" "+q.mobile.left,"border-radius":U.mobile.top+" "+U.mobile.right+" "+U.mobile.bottom+" "+U.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-pros":{"border-width":ee.mobile.top+" "+ee.mobile.right+" "+ee.mobile.bottom+" "+ee.mobile.left,"border-radius":te.mobile.top+" "+te.mobile.right+" "+te.mobile.bottom+" "+te.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":Z.mobile.top+" "+Z.mobile.right+" "+Z.mobile.bottom+" "+Z.mobile.left,"border-radius":X.mobile.top+" "+X.mobile.right+" "+X.mobile.bottom+" "+X.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":W.mobile.top+" "+W.mobile.right+" "+W.mobile.bottom+" "+W.mobile.left,"border-radius":D.mobile.top+" "+D.mobile.right+" "+D.mobile.bottom+" "+D.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-cons":{"border-width":Y.mobile.top+" "+Y.mobile.right+" "+Y.mobile.bottom+" "+Y.mobile.left,"border-radius":J.mobile.top+" "+J.mobile.right+" "+J.mobile.bottom+" "+J.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":q.mobile.top+" "+q.mobile.right+" "+q.mobile.bottom+" "+q.mobile.left,"border-radius":U.mobile.top+" "+U.mobile.right+" "+U.mobile.bottom+" "+U.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-cons":{"border-width":ee.mobile.top+" "+ee.mobile.right+" "+ee.mobile.bottom+" "+ee.mobile.left,"border-radius":te.mobile.top+" "+te.mobile.right+" "+te.mobile.bottom+" "+te.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":Z.mobile.top+" "+Z.mobile.right+" "+Z.mobile.bottom+" "+Z.mobile.left,"border-radius":X.mobile.top+" "+X.mobile.right+" "+X.mobile.bottom+" "+X.mobile.left}," .affiliatex-block-cons .affiliatex-title":{"font-size":c.size.mobile,"line-height":c["line-height"].mobile,"letter-spacing":c["letter-spacing"].mobile}," .affiliatex-block-pros .affiliatex-title":{"font-size":c.size.mobile,"line-height":c["line-height"].mobile,"letter-spacing":c["letter-spacing"].mobile}," .affiliatex-content":{"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom,"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affiliatex-list":{"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom,"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affiliatex-cons p":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-cons li":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-pros p":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-pros li":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affx-pros-cons-inner-wrapper.layout-type-3  .pros-icon-title-wrap":{"border-width":ae.mobile.top+" "+ae.mobile.right+" 0 "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .cons-icon-title-wrap":{"border-width":ae.mobile.top+" "+ae.mobile.right+" 0 "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-pros":{"border-width":"0 "+ae.mobile.right+" "+ae.mobile.bottom+" "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-cons":{"border-width":"0 "+ae.mobile.right+" "+ae.mobile.bottom+" "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before":{"border-width":$.mobile.top+" "+$.mobile.right+" "+$.mobile.bottom+" "+$.mobile.left,"border-radius":G.mobile.top+" "+G.mobile.right+" "+G.mobile.bottom+" "+G.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before":{"border-width":$.mobile.top+" "+$.mobile.right+" "+$.mobile.bottom+" "+$.mobile.left,"border-radius":G.mobile.top+" "+G.mobile.right+" "+G.mobile.bottom+" "+G.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros ul li":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons ul li":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-content li":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list li":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper":{"margin-top":fe.mobile.top,"margin-left":fe.mobile.left,"margin-right":fe.mobile.right,"margin-bottom":fe.mobile.bottom,"padding-top":de.mobile.top,"padding-left":de.mobile.left,"padding-right":de.mobile.right,"padding-bottom":de.mobile.bottom}};var ge="";return ge=Object(d.a)(me,`#${t}-${a}`),(ge+=Object(d.a)(be,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(ue,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-pros-cons-style",l))},[e]);const{Fragment:r}=wp.element,{titleTypography:c,listTypography:s,titleTag1:p,layoutStyle:f,prosTitle:b,consTitle:m,prosIcon:g,consIcon:h,prosListItems:v,consListItems:x,listType:y,prosContent:O,contentType:j,consContent:C,prosListIcon:w,consListIcon:E,unorderedType:_,prosIconStatus:T,consIconStatus:B}=e,N=p;let R,S;if("Default"!==c.family){const e={google:{families:[c.family+(c.variation?":"+c.variation:"")]}};R=Object(i.createElement)(k,{config:e})}if("Default"!==s.family){const e={google:{families:[s.family+(s.variation?":"+s.variation:"")]}};S=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(r,null,Object(i.createElement)(P,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-pros-cons-style-"+l,className:"affx-pros-cons-wrapper"+(a?" "+a:"")},Object(i.createElement)("div",{className:"affx-pros-cons-inner-wrapper "+f},Object(i.createElement)("div",{className:"affx-pros-inner"},Object(i.createElement)("div",{className:"pros-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-pros"},Object(i.createElement)(A,{tagName:N,value:b,className:"affiliatex-title affiliatex-icon "+(T?" affiliatex-icon-"+w.name:""),onChange:e=>t({prosTitle:e})}))),Object(i.createElement)("div",{className:"affiliatex-pros"},"list"===j&&"bullet"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered bullet",placeholder:Object(n.__)("Enter new item","affiliatex"),value:v,onChange:e=>t({prosListItems:e}),keepPlaceholderOnFocus:!0}),"list"===j&&"icon"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered icon affiliatex-icon affiliatex-icon-"+g.name,placeholder:Object(n.__)("Enter new item","affiliatex"),value:v,onChange:e=>t({prosListItems:e}),keepPlaceholderOnFocus:!0}),"paragraph"===j&&Object(i.createElement)(A,{tagName:"p",value:O,placeholder:Object(n.__)("Pros Content","affiliatex"),className:"affiliatex-content",onChange:e=>t({prosContent:e})}))),Object(i.createElement)("div",{className:"affx-cons-inner"},Object(i.createElement)("div",{className:"cons-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-cons"},Object(i.createElement)(A,{tagName:N,value:m,className:"affiliatex-title affiliatex-icon "+(B?" affiliatex-icon-"+E.name:""),onChange:e=>t({consTitle:e})}))),Object(i.createElement)("div",{className:"affiliatex-cons"},"list"===j&&"bullet"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered bullet",placeholder:Object(n.__)("Enter new item","affiliatex"),value:x,onChange:e=>t({consListItems:e}),keepPlaceholderOnFocus:!0}),"list"===j&&"icon"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered icon affiliatex-icon affiliatex-icon-"+h.name,placeholder:Object(n.__)("Enter new item","affiliatex"),value:x,onChange:e=>t({consListItems:e}),keepPlaceholderOnFocus:!0}),"paragraph"===j&&Object(i.createElement)(A,{tagName:"p",value:C,className:"affiliatex-content",placeholder:Object(n.__)("Cons Content","affiliatex"),onChange:e=>t({consContent:e})}))))),R,S)},D=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,prosTitle:n,consTitle:l,prosIcon:r,consIcon:c,titleTag1:s,layoutStyle:p,prosListItems:f,consListItems:d,listType:u,prosContent:b,contentType:m,consContent:g,prosListIcon:h,consListIcon:v,unorderedType:x,prosIconStatus:y,consIconStatus:O}=e,j=s;return Object(i.createElement)("div",{id:"affiliatex-pros-cons-style-"+o,className:"affx-pros-cons-wrapper"+(t?" "+t:"")},Object(i.createElement)("div",{className:"affx-pros-cons-inner-wrapper "+p},Object(i.createElement)("div",{className:"affx-pros-inner"},Object(i.createElement)("div",{className:"pros-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-pros"},Object(i.createElement)(a.Content,{tagName:j,value:n,className:"affiliatex-title affiliatex-icon "+(y?" affiliatex-icon-"+h.name:"")}))),Object(i.createElement)("div",{className:"affiliatex-pros"},"list"===m&&"bullet"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:f,className:"affiliatex-list bullet"}),"list"===m&&"icon"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:f,className:"affiliatex-list icon affiliatex-icon affiliatex-icon-"+r.name}),"paragraph"===m&&Object(i.createElement)(a.Content,{tagName:"p",value:b,className:"affiliatex-content"}))),Object(i.createElement)("div",{className:"affx-cons-inner"},Object(i.createElement)("div",{className:"cons-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-cons"},Object(i.createElement)(a.Content,{tagName:j,value:l,className:"affiliatex-title affiliatex-icon "+(O?" affiliatex-icon-"+v.name:"")}))),Object(i.createElement)("div",{className:"affiliatex-cons"},"list"===m&&"bullet"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:d,className:"affiliatex-list bullet"}),"list"===m&&"icon"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:d,className:"affiliatex-list icon affiliatex-icon affiliatex-icon-"+c.name}),"paragraph"===m&&Object(i.createElement)(a.Content,{tagName:"p",value:g,className:"affiliatex-content"})))))};Object(S.registerBlockType)("affiliatex/pros-and-cons",{title:Object(n.__)("AffiliateX Pros and Cons","affiliatex"),description:Object(n.__)("Add a customizable pros and cons block","affiliatex"),icon:R.k,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("Pros and Cons","affiliatex"),Object(n.__)("Pros","affiliatex"),Object(n.__)("Cons","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:L,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(W,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(D,{attributes:e,className:t})});const q=AffiliateX.customizationData;var U={block_id:{type:"string"},productComparisonTable:{type:"array",default:[{title:"",imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",ribbonText:Object(n.__)("Our Pick","affiliatex"),imageId:"",imageAlt:"",price:"$59.00",rating:4,button:"Buy Now",buttonURL:"",btnRelNoFollow:!1,btnRelSponsored:!1,btnOpenInNewTab:!1,btnDownload:!1},{title:"",imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",ribbonText:"",imageId:"",imageAlt:"",price:"$59.00",rating:4,button:"Buy Now",buttonURL:"",btnRelNoFollow:!1,btnRelSponsored:!1,btnOpenInNewTab:!1,btnDownload:!1}]},comparisonSpecs:{type:"array",default:[{title:"",specs:[]}]},titleColor:{type:"string",default:"#262B33"},ribbonColor:{type:"string",default:"#F13A3A"},ribbonTextColor:{type:"string",default:"#fff"},starColor:{type:"string",default:"#FFB800"},starInactiveColor:{type:"string",default:"#A3ACBF"},pcRibbon:{type:"boolean",default:!0},pcImage:{type:"boolean",default:!0},pcTitle:{type:"boolean",default:!0},pcRating:{type:"boolean",default:!0},pcPrice:{type:"boolean",default:!0},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},pcButton:{type:"boolean",default:!0},pcButtonIcon:{type:"boolean",default:!0},buttonIcon:{type:"string",default:{name:"angle-right",value:"fas fa-angle-right"}},buttonIconAlign:{type:"string",default:"right"},buttonPadding:{type:"object",default:{desktop:{top:"10px",left:"10px",right:"10px",bottom:"10px"},mobile:{top:"10px",left:"10px",right:"10px",bottom:"10px"},tablet:{top:"10px",left:"10px",right:"10px",bottom:"10px"}}},buttonMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},border:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},borderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},borderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},priceColor:{type:"string",default:"#262B33"},tableRowBgColor:{type:"string",default:"#F5F7FA"},contentColor:{type:"string",default:q.fontColor||"#292929"},buttonTextColor:{type:"string",default:"#fff"},buttonTextHoverColor:{type:"string",default:"#fff"},bgType:{type:"string",default:"solid"},bgColorSolid:{type:"string",default:"#FFFFFF"},bgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},buttonBgColor:{type:"string",default:q.btnColor||"#2670FF"},buttonBgHoverColor:{type:"string",default:q.btnHoverColor||"#084ACA"},titleTypography:{type:"object",default:{family:(null==q||null===(z=q.typography)||void 0===z?void 0:z.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ribbonTypography:{type:"object",default:{family:(null==q||null===(F=q.typography)||void 0===F?void 0:F.family)||"Default",variation:"n4",size:{desktop:"13px",mobile:"13px",tablet:"13px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},priceTypography:{type:"object",default:{family:(null==q||null===(M=q.typography)||void 0===M?void 0:M.family)||"Default",variation:"n4",size:{desktop:"20px",mobile:"20px",tablet:"20px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},buttonTypography:{type:"object",default:{family:(null==q||null===(H=q.typography)||void 0===H?void 0:H.family)||"Default",variation:"n4",size:{desktop:"16px",mobile:"16px",tablet:"16px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},contentTypography:{type:"object",default:{family:(null==q||null===(V=q.typography)||void 0===V?void 0:V.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},margin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"24px",left:"24px",right:"24px",bottom:"24px"},mobile:{top:"16px",left:"16px",right:"16px",bottom:"16px"},tablet:{top:"16px",left:"16px",right:"16px",bottom:"16px"}}},imagePadding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}},$=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{PanelBody:o,ToggleControl:l}=wp.components,{pcRibbon:r,starColor:f,starInactiveColor:d,pcImage:u,pcTitle:b,pcRating:m,pcPrice:g,boxShadow:h,pcButton:v,pcButtonIcon:x,buttonIconAlign:y,buttonIcon:O,buttonPadding:j,buttonMargin:k,border:C,borderWidth:w,borderRadius:E,priceColor:_,tableRowBgColor:T,contentColor:B,buttonTextColor:N,buttonTextHoverColor:R,bgType:S,bgColorSolid:I,bgColorGradient:L,buttonBgColor:P,buttonBgHoverColor:A,titleTypography:z,ribbonTypography:F,priceTypography:M,buttonTypography:H,contentTypography:V,margin:W,padding:D,titleColor:q,ribbonColor:$,ribbonTextColor:G,imagePadding:Z}=e;return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(o,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-pc-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Ribbon","affiliatex"),checked:!!r,onChange:()=>t({pcRibbon:!r})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Images","affiliatex"),checked:!!u,onChange:()=>t({pcImage:!u})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Title","affiliatex"),checked:!!b,onChange:()=>t({pcTitle:!b})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Prices","affiliatex"),checked:!!g,onChange:()=>t({pcPrice:!g})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Ratings","affiliatex"),checked:!!m,onChange:()=>t({pcRating:!m})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"pc-box-shadow",option:{id:"pc-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:U.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})))),Object(i.createElement)(o,{title:Object(n.__)("Button Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Button","affiliatex"),checked:!!v,onChange:()=>t({pcButton:!v})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!x,onChange:()=>t({pcButtonIcon:!x})})),x&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+O.value},Object(i.createElement)("label",null,Object(n.__)("Select Icon","affiliatex")),Object(i.createElement)(s.a,{value:O.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({buttonIcon:e})}})),x&&Object(i.createElement)(c.a,{value:y,values:y,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Icon Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:U.buttonIconAlign.default,choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({buttonIconAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:j,values:j,id:"pc-button-padding",option:{id:"pc-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:U.buttonPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({buttonPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"pc-button-margin",option:{id:"pc-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:U.buttonMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({buttonMargin:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"pc-border",option:{id:"pc-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:U.border.default},hasRevertButton:!0,onChange:e=>t({border:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:w,values:w,id:"pc-border-width",option:{id:"pc-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:U.borderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,values:E,id:"pc-border-radius",option:{id:"pc-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:U.borderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderRadius:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},r&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ribbonColor:{color:$},ribbonTextColor:{color:G}},option:{id:"pc-ribbon-color",label:Object(n.__)("Ribbon Color","affiliatex"),type:"ab-color-picker",value:{ribbonColor:{color:U.ribbonColor.default},ribbonTextColor:{color:U.ribbonTextColor.default}},pickers:[{id:"ribbonColor",title:Object(n.__)("Text Color")},{id:"ribbonTextColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({ribbonColor:e.ribbonColor.color,ribbonTextColor:e.ribbonTextColor.color})})),b&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{titleColor:{color:q}},option:{id:"pc-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{titleColor:{color:U.titleColor.default}},pickers:[{id:"titleColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({titleColor:e.titleColor.color})})),g&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:_}},option:{id:"pc-title-color",label:Object(n.__)("Price Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:U.priceColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Price Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({priceColor:e.textColor.color})})),m&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:f},inactiveColor:{color:d}},option:{id:"pc-star-color",label:Object(n.__)("Star Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:U.starColor.default},inactiveColor:{color:U.starInactiveColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Star Color","affiliatex")},{id:"inactiveColor",title:Object(n.__)("Inactive Star Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({starColor:e.ratingColor.color,starInactiveColor:e.inactiveColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:T}},option:{id:"pc-tablebg-color",label:Object(n.__)("Alternate Table Row Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:U.tableRowBgColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({tableRowBgColor:e.backgroundColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:B}},option:{id:"pc-tablebg-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:U.contentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")}]},hasRevertButton:!0,onChange:e=>t({contentColor:e.textColor.color})})),v&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:N},textHoverColor:{color:R}},option:{id:"pc-text-color",label:Object(n.__)("Button Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:U.buttonTextColor.default},textHoverColor:{color:U.buttonTextHoverColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textHoverColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({buttonTextColor:e.textColor.color,buttonTextHoverColor:e.textHoverColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:P},backgroundHoverColor:{color:A}},option:{id:"pc-text-color",label:Object(n.__)("Button Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:U.buttonBgColor.default},backgroundHoverColor:{color:U.buttonBgHoverColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")},{id:"backgroundHoverColor",title:Object(n.__)("Background Hover Color")}]},hasRevertButton:!0,onChange:e=>t({buttonBgColor:e.backgroundColor.color,buttonBgHoverColor:e.backgroundHoverColor.color})}))),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"pc-bg-type",option:{id:"pc-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:U.bgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({bgType:e})})),"solid"===S&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:I}},option:{id:"pc-bg-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:U.bgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({bgColorSolid:e.bgColor.color})})),"gradient"===S&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:L,onChange:e=>t({bgColorGradient:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-pc-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option pc-title-typography"},Object(i.createElement)(c.a,{value:z,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:U.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-title-typography"},Object(i.createElement)(c.a,{value:F,id:"ribbon-typography",option:{id:"ribbon-typography",label:Object(n.__)("Ribbon Typography","affiliatex"),type:"ab-typography",value:U.ribbonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ribbonTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-title-typography"},Object(i.createElement)(c.a,{value:M,id:"pricing-typography",option:{id:"pricing-typography",label:Object(n.__)("Pricing Typography","affiliatex"),type:"ab-typography",value:U.priceTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({priceTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-content-typography"},Object(i.createElement)(c.a,{value:H,id:"button-typography",option:{id:"button-typography",label:Object(n.__)("Button Typography","affiliatex"),type:"ab-typography",value:U.buttonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({buttonTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-typography"},Object(i.createElement)(c.a,{value:V,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:U.contentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({contentTypography:e})}})))),Object(i.createElement)(o,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Z,values:Z,id:"pc-image-padding",option:{id:"pc-image-padding",label:Object(n.__)("Image Padding","affiliatex"),type:"ab-spacing",value:U.imagePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({imagePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:W,values:W,id:"pc-margin",option:{id:"pc-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:U.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:D,values:D,id:"pc-padding",option:{id:"pc-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:U.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))},G=a(34),Z=a(65),X=Object(i.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(i.createElement)(Z.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));const{Fragment:K}=wp.element,{URLPopover:Q,URLInput:Y}=wp.blockEditor,{Button:J,ToggleControl:ee}=wp.components;var te=({index:e,url:t,opensInNewTab:a,relNoFollow:o,relSponsored:l,download:r,onChangeProductLinks:c,setSelectedButton:s,buttonNumber:p})=>Object(i.createElement)(K,null,Object(i.createElement)(Q,{onClose:()=>{s(null)},onMouseLeave:()=>{s(null)},className:"affx-custom-popover"},Object(i.createElement)("div",{className:"affiliate-url-input",style:{width:"250px"}},Object(i.createElement)("form",{onSubmit:e=>{e.preventDefault(),s(null)}},Object(i.createElement)(Y,{placeholder:Object(n.__)("https://www.example.com","affiliatex"),className:"button-url",value:t,onChange:t=>{c(t,e,`button${p}URL`)},required:!1,autoFocus:!1}),Object(i.createElement)(J,{icon:X,label:Object(n.__)("Apply","affiliatex"),type:"submit"})),Object(i.createElement)(ee,{label:Object(n.__)("Open in new tab","affiliatex"),checked:a,onChange:t=>{c(t,e,`btn${p}OpenInNewTab`)}}),Object(i.createElement)(ee,{label:Object(n.__)('Add rel="nofollow"',"affiliatex"),checked:o,onChange:t=>{c(t,e,`btn${p}RelNoFollow`)}}),Object(i.createElement)(ee,{label:Object(n.__)('Add rel="sponsored"',"affiliatex"),checked:l,onChange:t=>{c(t,e,`btn${p}RelSponsored`)}}),Object(i.createElement)(ee,{label:Object(n.__)("Add download attribute","affiliatex"),checked:r,onChange:t=>{c(t,e,`btn${p}Download`)}}))));const{RichText:ae,MediaUpload:oe}=wp.blockEditor,{Button:ie}=wp.components,{Fragment:ne}=wp.element;var le,re,ce,se,pe,fe,de,ue,be,me=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-product-comparison-blocks-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-product-comparison-blocks-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{boxShadow:o,buttonPadding:i,buttonMargin:n,border:l,borderWidth:r,borderRadius:c,priceColor:s,tableRowBgColor:p,contentColor:f,buttonTextColor:b,buttonTextHoverColor:m,bgType:g,bgColorSolid:h,bgColorGradient:v,buttonBgColor:x,buttonBgHoverColor:y,titleTypography:O,ribbonTypography:j,priceTypography:k,buttonTypography:C,contentTypography:w,margin:E,padding:_,ribbonColor:T,ribbonTextColor:B,titleColor:N,imagePadding:R}=e;var S,I,L={};(L={" .affx-product-comparison-block-container":{"margin-top":E.desktop.top,"margin-left":E.desktop.left,"margin-right":E.desktop.right,"margin-bottom":E.desktop.bottom,"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color,"border-radius":c.desktop.top+" "+c.desktop.right+" "+c.desktop.bottom+" "+c.desktop.left}," .affx-product-versus-table":{color:f,"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.desktop,"line-height":w["line-height"].desktop,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].desktop}," .affx-comparison-title":{"font-family":O.family,"text-decoration":O["text-decoration"],"font-weight":Object(u.c)(O.variation),"font-style":Object(u.b)(O.variation),"font-size":O.size.desktop,"line-height":O["line-height"].desktop,"text-transform":O["text-transform"],"letter-spacing":O["letter-spacing"].desktop,color:N}," .affx-versus-table-wrap tr:first-child th:first-child":{"border-top-left-radius":c.desktop.top}," .affx-versus-table-wrap tr:first-child th:last-child":{"border-top-right-radius":c.desktop.right}," .affx-versus-table-wrap tr:first-child th:last-child .affx-versus-product":{"border-top-right-radius":c.desktop.right,overflow:"hidden"}," .affx-versus-table-wrap tr:last-child td:first-child":{"border-bottom-left-radius":c.desktop.left}," .affx-versus-table-wrap tr:last-child td:last-child":{"border-bottom-right-radius":c.desktop.bottom}," .affx-versus-table-wrap td":{"padding-top":_.desktop.top,"padding-left":_.desktop.left,"padding-right":_.desktop.right,"padding-bottom":_.desktop.bottom,"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color}," .affx-versus-table-wrap th":{"padding-top":_.desktop.top,"padding-left":_.desktop.left,"padding-right":_.desktop.right,"padding-bottom":_.desktop.bottom,"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color}," .affx-versus-table-wrap .affx-pc-ribbon":{"font-family":j.family,"text-decoration":j["text-decoration"],"font-weight":Object(u.c)(j.variation),"font-style":Object(u.b)(j.variation),"font-size":j.size.desktop,"line-height":j["line-height"].desktop,"text-transform":j["text-transform"],"letter-spacing":j["letter-spacing"].desktop,background:T,color:B}," .affx-versus-table-wrap .affx-pc-ribbon::before":{background:T}," .affx-versus-table-wrap .affx-pc-ribbon::after":{background:T}," .affx-versus-table-wrap .affiliatex-button":{"font-family":C.family,"text-decoration":C["text-decoration"],"font-weight":Object(u.c)(C.variation),"font-style":Object(u.b)(C.variation),"font-size":C.size.desktop,"line-height":C["line-height"].desktop,"text-transform":C["text-transform"],"letter-spacing":C["letter-spacing"].desktop}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button":{color:b,"background-color":x,"margin-top":n.desktop.top,"margin-left":n.desktop.left,"margin-right":n.desktop.right,"margin-bottom":n.desktop.bottom,"padding-top":i.desktop.top,"padding-left":i.desktop.left,"padding-right":i.desktop.right,"padding-bottom":i.desktop.bottom}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button:hover":{color:m,"background-color":y}," .affx-versus-table-wrap .affx-price":{color:s,"font-family":k.family,"font-weight":Object(u.c)(k.variation),"font-style":Object(u.b)(k.variation),"font-size":k.size.desktop,"line-height":k["line-height"].desktop,"text-transform":k["text-transform"],"text-decoration":k["text-decoration"],"letter-spacing":k["letter-spacing"].desktop}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header":{background:p}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.desktop,"line-height":w["line-height"].desktop,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].desktop}," .affx-versus-table-wrap .affx-product-versus-table th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.desktop,"line-height":w["line-height"].desktop,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].desktop}," .affx-versus-table-wrap .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}," .affx-versus-table-wrap .affx-versus-product-img":{"padding-top":R.desktop.top,"padding-left":R.desktop.left,"padding-right":R.desktop.right,"padding-bottom":R.desktop.bottom}})[" .affx-product-comparison-block-container"].background="solid"===g?h:v.gradient,L[" .affx-product-comparison-block-container"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",I={" .affx-product-comparison-block-container":{"margin-top":E.tablet.top,"margin-left":E.tablet.left,"margin-right":E.tablet.right,"margin-bottom":E.tablet.bottom,"border-style":l.style,"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-color":l.color.color,"border-radius":c.tablet.top+" "+c.tablet.right+" "+c.tablet.bottom+" "+c.tablet.left}," .affx-product-versus-table":{color:f,"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.tablet,"line-height":w["line-height"].tablet,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].tablet}," .affx-comparison-title":{"font-family":O.family,"text-decoration":O["text-decoration"],"font-weight":Object(u.c)(O.variation),"font-style":Object(u.b)(O.variation),"font-size":O.size.tablet,"line-height":O["line-height"].tablet,"text-transform":O["text-transform"],"letter-spacing":O["letter-spacing"].tablet,color:N}," .affx-versus-table-wrap tr:first-child th:first-child":{"border-top-left-radius":c.tablet.top}," .affx-versus-table-wrap tr:first-child th:last-child":{"border-top-right-radius":c.tablet.right}," .affx-versus-table-wrap tr:first-child th:last-child .affx-versus-product":{"border-top-right-radius":c.tablet.right,overflow:"hidden"}," .affx-versus-table-wrap tr:last-child td:first-child":{"border-bottom-left-radius":c.tablet.left}," .affx-versus-table-wrap tr:last-child td:last-child":{"border-bottom-right-radius":c.tablet.bottom}," .affx-versus-table-wrap td":{"padding-top":_.tablet.top,"padding-left":_.tablet.left,"padding-right":_.tablet.right,"padding-bottom":_.tablet.bottom,"border-style":l.style,"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-color":l.color.color}," .affx-versus-table-wrap th":{"padding-top":_.tablet.top,"padding-left":_.tablet.left,"padding-right":_.tablet.right,"padding-bottom":_.tablet.bottom,"border-style":l.style,"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-color":l.color.color}," .affx-versus-table-wrap .affx-pc-ribbon":{"font-family":j.family,"text-decoration":j["text-decoration"],"font-weight":Object(u.c)(j.variation),"font-style":Object(u.b)(j.variation),"font-size":j.size.tablet,"line-height":j["line-height"].tablet,"text-transform":j["text-transform"],"letter-spacing":j["letter-spacing"].tablet,background:T,color:B}," .affx-versus-table-wrap .affx-pc-ribbon::before":{background:T}," .affx-versus-table-wrap .affx-pc-ribbon::after":{background:T}," .affx-versus-table-wrap .affiliatex-button":{"font-family":C.family,"text-decoration":C["text-decoration"],"font-weight":Object(u.c)(C.variation),"font-style":Object(u.b)(C.variation),"font-size":C.size.tablet,"line-height":C["line-height"].tablet,"text-transform":C["text-transform"],"letter-spacing":C["letter-spacing"].tablet}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button":{color:b,"background-color":x,"margin-top":n.tablet.top,"margin-left":n.tablet.left,"margin-right":n.tablet.right,"margin-bottom":n.tablet.bottom,"padding-top":i.tablet.top,"padding-left":i.tablet.left,"padding-right":i.tablet.right,"padding-bottom":i.tablet.bottom}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button:hover":{color:m,"background-color":y}," .affx-versus-table-wrap .affx-price":{color:s,"font-family":k.family,"font-weight":Object(u.c)(k.variation),"font-style":Object(u.b)(k.variation),"font-size":k.size.tablet,"line-height":k["line-height"].tablet,"text-transform":k["text-transform"],"text-decoration":k["text-decoration"],"letter-spacing":k["letter-spacing"].tablet}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header":{background:p}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.tablet,"line-height":w["line-height"].tablet,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].tablet}," .affx-versus-table-wrap .affx-product-versus-table th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.tablet,"line-height":w["line-height"].tablet,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].tablet}," .affx-versus-table-wrap .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}," .affx-versus-table-wrap .affx-versus-product-img":{"padding-top":R.tablet.top,"padding-left":R.tablet.left,"padding-right":R.tablet.right,"padding-bottom":R.tablet.bottom}},S={" .affx-product-comparison-block-container":{"margin-top":E.mobile.top,"margin-left":E.mobile.left,"margin-right":E.mobile.right,"margin-bottom":E.mobile.bottom,"border-style":l.style,"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-color":l.color.color,"border-radius":c.mobile.top+" "+c.mobile.right+" "+c.mobile.bottom+" "+c.mobile.left}," .affx-product-versus-table":{color:f,"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.mobile,"line-height":w["line-height"].mobile,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].mobile}," .affx-comparison-title":{"font-family":O.family,"text-decoration":O["text-decoration"],"font-weight":Object(u.c)(O.variation),"font-style":Object(u.b)(O.variation),"font-size":O.size.mobile,"line-height":O["line-height"].mobile,"text-transform":O["text-transform"],"letter-spacing":O["letter-spacing"].mobile,color:N}," .affx-versus-table-wrap tr:first-child th:first-child":{"border-top-left-radius":c.mobile.top}," .affx-versus-table-wrap tr:first-child th:last-child":{"border-top-right-radius":c.mobile.right}," .affx-versus-table-wrap tr:first-child th:last-child .affx-versus-product":{"border-top-right-radius":c.mobile.right,overflow:"hidden"}," .affx-versus-table-wrap tr:last-child td:first-child":{"border-bottom-left-radius":c.mobile.left}," .affx-versus-table-wrap tr:last-child td:last-child":{"border-bottom-right-radius":c.mobile.bottom}," .affx-versus-table-wrap td":{"padding-top":_.mobile.top,"padding-left":_.mobile.left,"padding-right":_.mobile.right,"padding-bottom":_.mobile.bottom,"border-style":l.style,"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-color":l.color.color}," .affx-versus-table-wrap th":{"padding-top":_.mobile.top,"padding-left":_.mobile.left,"padding-right":_.mobile.right,"padding-bottom":_.mobile.bottom,"border-style":l.style,"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-color":l.color.color}," .affx-versus-table-wrap .affx-pc-ribbon":{"font-family":j.family,"text-decoration":j["text-decoration"],"font-weight":Object(u.c)(j.variation),"font-style":Object(u.b)(j.variation),"font-size":j.size.mobile,"line-height":j["line-height"].mobile,"text-transform":j["text-transform"],"letter-spacing":j["letter-spacing"].mobile,background:T,color:B}," .affx-versus-table-wrap .affx-pc-ribbon::before":{background:T}," .affx-versus-table-wrap .affx-pc-ribbon::after":{background:T}," .affx-versus-table-wrap .affiliatex-button":{"font-family":C.family,"text-decoration":C["text-decoration"],"font-weight":Object(u.c)(C.variation),"font-style":Object(u.b)(C.variation),"font-size":C.size.mobile,"line-height":C["line-height"].mobile,"text-transform":C["text-transform"],"letter-spacing":C["letter-spacing"].mobile}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button":{color:b,"background-color":x,"margin-top":n.mobile.top,"margin-left":n.mobile.left,"margin-right":n.mobile.right,"margin-bottom":n.mobile.bottom,"padding-top":i.mobile.top,"padding-left":i.mobile.left,"padding-right":i.mobile.right,"padding-bottom":i.mobile.bottom}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button:hover":{color:m,"background-color":y}," .affx-versus-table-wrap .affx-price":{color:s,"font-family":k.family,"font-weight":Object(u.c)(k.variation),"font-style":Object(u.b)(k.variation),"font-size":k.size.mobile,"line-height":k["line-height"].mobile,"text-transform":k["text-transform"],"text-decoration":k["text-decoration"],"letter-spacing":k["letter-spacing"].mobile}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header":{background:p}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.mobile,"line-height":w["line-height"].mobile,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].mobile}," .affx-versus-table-wrap .affx-product-versus-table th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.mobile,"line-height":w["line-height"].mobile,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].mobile}," .affx-versus-table-wrap .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}," .affx-versus-table-wrap .affx-versus-product-img":{"padding-top":R.mobile.top,"padding-left":R.mobile.left,"padding-right":R.mobile.right,"padding-bottom":R.mobile.bottom}};var P="";return P=Object(d.a)(L,`#${t}-${a}`),(P+=Object(d.a)(I,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(S,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-product-comparison-blocks-style",l))},[e]);const{productComparisonTable:r,comparisonSpecs:c,itemCount:s,specsCount:p,pcRibbon:f,pcTitle:b,starColor:m,starInactiveColor:g,pcImage:h,pcRating:v,pcPrice:x,pcButton:y,pcButtonIcon:O,buttonIconAlign:j,buttonIcon:C,titleTypography:w,ribbonTypography:E,priceTypography:_,buttonTypography:T,contentTypography:B}=e,[N,R]=Object(i.useState)(null),S=(e,a,o,i)=>{let n=[...c];n[a]="specs"===i?{...n[a],specs:{...n[a][""+i],[""+o]:e}}:{...n[a],[""+i]:e},t({comparisonSpecs:n})},I=(e,a,o)=>{let i=[...r];i[a]={...i[a],[""+o]:e},t({productComparisonTable:i})};let L,P,A,z,F;if("Default"!==w.family){const e={google:{families:[w.family+(w.variation?":"+w.variation:"")]}};L=Object(i.createElement)(k,{config:e})}if("Default"!==E.family){const e={google:{families:[E.family+(E.variation?":"+E.variation:"")]}};P=Object(i.createElement)(k,{config:e})}if("Default"!==_.family){const e={google:{families:[_.family+(_.variation?":"+_.variation:"")]}};A=Object(i.createElement)(k,{config:e})}if("Default"!==T.family){const e={google:{families:[T.family+(T.variation?":"+T.variation:"")]}};z=Object(i.createElement)(k,{config:e})}if("Default"!==B.family){const e={google:{families:[B.family+(B.variation?":"+B.variation:"")]}};F=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(ne,null,Object(i.createElement)($,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-product-comparison-blocks-style-"+l,className:a},Object(i.createElement)("div",{className:"affx-versus-block-container affx-product-comparison-block-container"},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table layout-1"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{className:"data-label",style:{width:92/(r.length+1)+"%"}}),null==r?void 0:r.map((e,a)=>Object(i.createElement)("th",{className:"affx-product-col",key:a,style:{width:92/(r.length+1)+"%"}},Object(i.createElement)("button",{type:"button",className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...r];a.splice(e,1),t({productComparisonTable:a,itemCount:p-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"})))),f&&Object(i.createElement)(ae,{tagName:"span",placeholder:Object(n.__)("Ribbon Text","affiliatex"),className:"affx-pc-ribbon",value:e.ribbonText,onChange:e=>I(e,a,"ribbonText")}),Object(i.createElement)("div",{className:"affx-versus-product"},h&&Object(i.createElement)("div",{className:"affx-versus-product-img"},Object(i.createElement)("img",{src:e.imageUrl}),null!=e&&e.imageId?Object(i.createElement)("div",{className:"upload-btn-wrapper"},o?Object(i.createElement)(oe,{onSelect:e=>((e,a)=>{let o=[...r];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productComparisonTable:o})})(e,a),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(ie,{className:"affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(ie,{className:"remove-image",onClick:()=>(e=>{let a=[...r];a[e]={...a[e],imageUrl:AffiliateXPro.pluginUrl+"app/src/images/fallback.jpg",imageId:null,imageAlt:null},t({productComparisonTable:a})})(a)},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(oe,{onSelect:e=>((e,a)=>{let o=[...r];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productComparisonTable:o})})(e,a),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(ie,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affx-product-content"},b&&Object(i.createElement)("div",{className:"affx-product-title-wrap"},Object(i.createElement)(ae,{tagName:"h2",placeholder:Object(n.__)("Product Title","affiliatex"),className:"affx-comparison-title",value:e.title,onChange:e=>I(e,a,"title")})),x&&Object(i.createElement)("div",{className:"affx-price-wrap"},Object(i.createElement)("span",{className:"affx-price"},Object(i.createElement)(ae,{placeholder:"Price",value:e.price,onChange:e=>I(e,a,"price")}))),v&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.Rating,{onClick:e=>I(e,a,"rating"),ratingValue:e.rating,fillColor:m,emptyColor:g,className:"rating-stars"})),Object(i.createElement)("div",{className:"affx-btn-wrap"},y&&Object(i.createElement)("span",{className:"affiliatex-button affx-winner-button "+(O&&"icon-btn icon-"+j),onMouseEnter:()=>R(a)},1==O&&j&&"left"==j&&Object(i.createElement)("i",{className:"button-icon "+C.value}),Object(i.createElement)(ae,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button,formattingControls:["bold","italic","underline"],href:e.buttonURL,onChange:e=>I(e,a,"button")}),1==O&&j&&"right"==j&&Object(i.createElement)("i",{className:"button-icon "+C.value}),N==a&&Object(i.createElement)(te,{index:a,buttonNumber:"",url:e.buttonURL,opensInNewTab:e.btnOpenInNewTab,relNoFollow:e.btnRelNoFollow,relSponsored:e.btnRelSponsored,download:e.btnDownload,onChangeProductLinks:I,setSelectedButton:R}))))))),Object(i.createElement)("th",{className:"affx-product-col affx-add-col"},Object(i.createElement)(ie,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{title:"",imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",ribbonText:"",imageId:"",imageAlt:"",price:"$59.00",rating:4,button:"Buy Now",buttonURL:"",btnRelNoFollow:!1,btnRelSponsored:!1,btnOpenInNewTab:!1,btnDownload:!1}],t({productComparisonTable:o}),a=e.length,t({itemCount:a})})(r)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Product","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})))))),Object(i.createElement)("tbody",null,null==c?void 0:c.map((e,a)=>Object(i.createElement)("tr",{key:a},null==r?void 0:r.map((t,o)=>0!=o?Object(i.createElement)("td",null,Object(i.createElement)(ae,{placeholder:"Specification",value:e.specs[o],onChange:e=>S(e,a,o,"specs")})):Object(i.createElement)(ne,null,Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(ae,{placeholder:"Title",value:e.title,onChange:e=>S(e,a,o,"title")})),Object(i.createElement)("td",null,Object(i.createElement)(ae,{placeholder:"Specification",value:e.specs[o],onChange:e=>S(e,a,o,"specs")})))),Object(i.createElement)("td",null,Object(i.createElement)("button",{type:"button",className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...c];a.splice(e,1),t({comparisonSpecs:a,itemCount:s-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))))))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"affx-product-col",colSpan:r.length+2},Object(i.createElement)(ie,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{title:"",specs:[]}],t({comparisonSpecs:o}),a=e.length,t({specsCount:a})})(c)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Product","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})))))))))),L,P,A,z,F)},ge=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,productComparisonTable:l,comparisonSpecs:r,pcRibbon:c,pcTitle:s,starColor:p,starInactiveColor:f,pcImage:d,pcRating:u,pcPrice:b,pcButton:m,pcButtonIcon:g,buttonIconAlign:h,buttonIcon:v}=e;return Object(i.createElement)("div",{id:"affiliatex-product-comparison-blocks-style-"+o,className:t},Object(i.createElement)("div",{className:"affx-versus-block-container affx-product-comparison-block-container"},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table layout-1"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{className:"data-label",style:{width:92/(l.length+1)+"%"}}),null==l?void 0:l.map((e,t)=>Object(i.createElement)("th",{className:"affx-product-col",key:t,style:{width:92/(l.length+1)+"%"}},c&&""!=e.ribbonText&&Object(i.createElement)(a.Content,{tagName:"span",className:"affx-pc-ribbon",value:e.ribbonText}),Object(i.createElement)("div",{className:"affx-versus-product"},d&&Object(i.createElement)("div",{className:"affx-versus-product-img"},Object(i.createElement)("img",{src:e.imageUrl,alt:e.imageAlt})),Object(i.createElement)("div",{className:"affx-product-content"},s&&Object(i.createElement)("div",{className:"affx-product-title-wrap"},Object(i.createElement)(a.Content,{tagName:"h2",className:"affx-comparison-title",value:e.title})),b&&Object(i.createElement)("div",{className:"affx-price-wrap"},Object(i.createElement)("span",{className:"affx-price"},Object(i.createElement)(a.Content,{value:e.price}))),u&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.RatingView,{ratingValue:e.rating,fillColor:p,emptyColor:f,className:"rating-stars"})),Object(i.createElement)("div",{className:"affx-btn-wrap"},m&&e.button&&Object(i.createElement)("a",B()({href:e.buttonURL,className:"affiliatex-button affx-winner-button "+(g&&"icon-btn icon-"+h),rel:Object(n.__)("noopener","affiliatex")},e.btnRelNoFollow?{rel:"noopener nofollow"}:"",e.btnRelSponsored?{rel:"noopener sponsored"}:"",e.btnRelNoFollow&&e.btnRelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btnOpenInNewTab?{target:"_blank"}:"",e.btnDownload?{download:"affiliatex"}:""),1==g&&h&&"left"==h&&Object(i.createElement)("i",{className:"button-icon "+v.value}),Object(i.createElement)(a.Content,{value:e.button}),1==g&&h&&"right"==h&&Object(i.createElement)("i",{className:"button-icon "+v.value}))))))))),Object(i.createElement)("tbody",null,null==r?void 0:r.map((e,t)=>Object(i.createElement)("tr",{key:t},null==l?void 0:l.map((t,o)=>0!=o?Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.specs[o]})):Object(i.createElement)(i.Fragment,null,Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(a.Content,{value:e.title})),Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.specs[o]})))))))))))};Object(S.registerBlockType)("affiliatex/product-comparison",{title:Object(n.__)("AffiliateX Product Comparison","affiliatex"),description:Object(n.__)("Add a customizable product comparison block","affiliatex"),icon:R.g,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("product","affiliatex"),Object(n.__)("comparison","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:U,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(me,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(ge,{attributes:e,className:t})});const he=AffiliateX.customizationData;var ve={block_id:{type:"string"},imageColTitle:{type:"string",default:"Image"},productColTitle:{type:"string",default:"Product"},featuresColTitle:{type:"string",default:"Features"},ratingColTitle:{type:"string",default:"Rating"},priceColTitle:{type:"string",default:"Price"},productTable:{type:"array",default:[{imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",imageId:"",imageAlt:"",ribbon:"Our Pick",name:"Product Name",features:"Product Features",featuresList:[],offerPrice:"$49.00",regularPrice:"$59.00",rating:"5",button1:"Purchase Now",button1URL:"",btn1RelNoFollow:!1,btn1RelSponsored:!1,btn1OpenInNewTab:!1,btn1Download:!1,button2:"Check on Amazon",button2URL:"",btn2RelNoFollow:!1,btn2RelSponsored:!1,btn2OpenInNewTab:!1,btn2Download:!1}]},edImage:{type:"boolean",default:!0},edRibbon:{type:"boolean",default:!0},edProductName:{type:"boolean",default:!0},edRating:{type:"boolean",default:!0},edPrice:{type:"boolean",default:!1},edCounter:{type:"boolean",default:!0},edButton1:{type:"boolean",default:!0},edButton1Icon:{type:"boolean",default:!0},button1Icon:{type:"string",default:{name:"angle-right",value:"fas fa-angle-right"}},button1IconAlign:{type:"string",default:"right"},edButton2:{type:"boolean",default:!0},edButton2Icon:{type:"boolean",default:!0},button2Icon:{type:"string",default:{name:"angle-right",value:"fas fa-angle-right"}},button2IconAlign:{type:"string",default:"right"},layoutStyle:{type:"string",default:"layoutOne"},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(137,138,140,0.2)"}}},border:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},borderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},borderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},button1Padding:{type:"object",default:{desktop:{top:"10px",left:"5px",right:"5px",bottom:"10px"},mobile:{top:"10px",left:"5px",right:"5px",bottom:"10px"},tablet:{top:"10px",left:"5px",right:"5px",bottom:"10px"}}},button1Margin:{type:"object",default:{desktop:{top:"5px",left:"0px",right:"0px",bottom:"5px"},mobile:{top:"5px",left:"0px",right:"0px",bottom:"5px"},tablet:{top:"5px",left:"0px",right:"0px",bottom:"5px"}}},button2Padding:{type:"object",default:{desktop:{top:"10px",left:"5px",right:"5px",bottom:"10px"},mobile:{top:"10px",left:"5px",right:"5px",bottom:"10px"},tablet:{top:"10px",left:"5px",right:"5px",bottom:"10px"}}},button2Margin:{type:"object",default:{desktop:{top:"5px",left:"0px",right:"0px",bottom:"5px"},mobile:{top:"5px",left:"0px",right:"0px",bottom:"5px"},tablet:{top:"5px",left:"0px",right:"0px",bottom:"5px"}}},ribbonColor:{type:"string",default:"#FFFFFF"},ribbonBgColor:{type:"string",default:"#F13A3A"},counterColor:{type:"string",default:"#FFFFFF"},counterBgColor:{type:"string",default:"#24B644"},tableHeaderColor:{type:"string",default:"#FFFFFF"},tableHeaderBgColor:{type:"string",default:"#084ACA"},priceColor:{type:"string",default:"#262B33"},ratingColor:{type:"string",default:"#FFFFFF"},ratingBgColor:{type:"string",default:"#24B644"},rating2Color:{type:"string",default:"#262B33"},rating2BgColor:{type:"string",default:"#24B644"},starColor:{type:"string",default:"#FFB800"},starInactiveColor:{type:"string",default:"#A3ACBF"},contentColor:{type:"string",default:he.fontColor||"#292929"},titleColor:{type:"string",default:he.fontColor||"#292929"},bgType:{type:"string",default:"solid"},bgColorSolid:{type:"string",default:"#FFFFFF"},bgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},button1TextColor:{type:"string",default:"#fff"},button1TextHoverColor:{type:"string",default:"#fff"},button1BgColor:{type:"string",default:he.btnColor||"#2670FF"},button1BgHoverColor:{type:"string",default:he.btnHoverColor||"#084ACA"},button2TextColor:{type:"string",default:"#fff"},button2TextHoverColor:{type:"string",default:"#fff"},button2BgColor:{type:"string",default:"#FFB800"},button2BgHoverColor:{type:"string",default:"#084ACA"},margin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"24px",left:"24px",right:"24px",bottom:"24px"},mobile:{top:"16px",left:"16px",right:"16px",bottom:"16px"},tablet:{top:"16px",left:"16px",right:"16px",bottom:"16px"}}},ribbonTypography:{type:"object",default:{family:(null==he||null===(le=he.typography)||void 0===le?void 0:le.family)||"Default",variation:"n5",size:{desktop:"13px",mobile:"13px",tablet:"13px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},counterTypography:{type:"object",default:{family:(null==he||null===(re=he.typography)||void 0===re?void 0:re.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ratingTypography:{type:"object",default:{family:(null==he||null===(ce=he.typography)||void 0===ce?void 0:ce.family)||"Default",variation:"n7",size:{desktop:"13px",mobile:"13px",tablet:"13px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},rating2Typography:{type:"object",default:{family:(null==he||null===(se=he.typography)||void 0===se?void 0:se.family)||"Default",variation:"n4",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},priceTypography:{type:"object",default:{family:(null==he||null===(pe=he.typography)||void 0===pe?void 0:pe.family)||"Default",variation:"n4",size:{desktop:"22px",mobile:"22px",tablet:"22px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},buttonTypography:{type:"object",default:{family:(null==he||null===(fe=he.typography)||void 0===fe?void 0:fe.family)||"Default",variation:"n4",size:{desktop:"14px",mobile:"14px",tablet:"14px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},headerTypography:{type:"object",default:{family:(null==he||null===(de=he.typography)||void 0===de?void 0:de.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},titleTypography:{type:"object",default:{family:(null==he||null===(ue=he.typography)||void 0===ue?void 0:ue.family)||"Default",variation:"n4",size:{desktop:"22px",mobile:"22px",tablet:"22px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},contentTypography:{type:"object",default:{family:(null==he||null===(be=he.typography)||void 0===be?void 0:be.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"16px",tablet:"16px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productContentType:{type:"string",default:"paragraph"},contentListType:{type:"string",default:"unordered"},productIconList:{type:"string",default:{name:"check-circle-outline",value:"far fa-check-circle"}},productIconColor:{type:"string",default:"#24B644"},imagePadding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}},xe=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{PanelBody:o,ToggleControl:l,SelectControl:r}=wp.components,{layoutStyle:f,edImage:d,edRibbon:u,edProductName:b,edRating:m,edPrice:g,edCounter:h,edButton1:v,edButton1Icon:x,button1Icon:y,button1IconAlign:O,edButton2:j,edButton2Icon:k,button2Icon:C,button2IconAlign:w,boxShadow:E,border:_,borderWidth:T,borderRadius:B,button1Padding:N,button1Margin:R,button2Padding:S,button2Margin:I,ribbonColor:L,ribbonBgColor:P,counterColor:A,counterBgColor:z,tableHeaderColor:F,tableHeaderBgColor:M,priceColor:H,ratingColor:V,ratingBgColor:W,rating2Color:D,rating2BgColor:q,starColor:U,starInactiveColor:$,titleColor:G,contentColor:Z,bgType:X,bgColorSolid:K,bgColorGradient:Q,button1TextColor:Y,button1TextHoverColor:J,button1BgColor:ee,button1BgHoverColor:te,button2TextColor:ae,button2TextHoverColor:oe,button2BgColor:ie,button2BgHoverColor:ne,margin:le,padding:re,ribbonTypography:ce,counterTypography:se,priceTypography:pe,buttonTypography:fe,headerTypography:de,titleTypography:ue,contentTypography:be,ratingTypography:me,rating2Typography:ge,productIconList:he,productContentType:xe,contentListType:ye,productIconColor:Oe,imagePadding:je}=e;return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(o,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(r,{label:Object(n.__)("Choose Layout","affiliatex"),value:f,options:[{value:"layoutOne",label:"Layout 1"},{value:"layoutTwo",label:"Layout 2"},{value:"layoutThree",label:"Layout 3"}],onChange:e=>t({layoutStyle:e})}))),Object(i.createElement)(o,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-pdt-tbl-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Image","affiliatex"),checked:!!d,onChange:()=>t({edImage:!d})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Ribbon","affiliatex"),checked:!!u,onChange:()=>t({edRibbon:!u})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Product Name","affiliatex"),checked:!!b,onChange:()=>t({edProductName:!b})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Rating","affiliatex"),checked:!!m,onChange:()=>t({edRating:!m})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Price","affiliatex"),checked:!!g,onChange:()=>t({edPrice:!g})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Counter","affiliatex"),checked:!!h,onChange:()=>t({edCounter:!h})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:E,values:E,id:"pdt-tbl-box-shadow",option:{id:"pdt-tbl-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:ve.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})))),Object(i.createElement)(o,{title:"Content Settings",className:"affx-content-panel",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:xe,values:xe,id:"product-content-type",option:{id:"product-content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")},value:ve.productContentType.default},hasRevertButton:!0,onChange:e=>t({productContentType:e})})),"list"===xe&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ye,values:ye,id:"list-type",option:{id:"list-type",type:"ab-radio",choices:{unordered:Object(n.__)("Unordered List","affiliatex"),ordered:Object(n.__)("Ordered List","affiliatex")},value:ve.contentListType.default},hasRevertButton:!0,onChange:e=>t({contentListType:e})})),"list"===xe&&"unordered"===ye&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+he.value},Object(i.createElement)("label",null,Object(n.__)("Select List Icon","affiliatex")),Object(i.createElement)(s.a,{value:he.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({productIconList:e})}}))),Object(i.createElement)(o,{title:Object(n.__)("Primary Button Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Primary Button","affiliatex"),checked:!!v,onChange:()=>t({edButton1:!v})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!x,onChange:()=>t({edButton1Icon:!x})})),x&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+y.value},Object(i.createElement)("label",null,Object(n.__)("Select Icon","affiliatex")),Object(i.createElement)(s.a,{value:y.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({button1Icon:e})}})),x&&Object(i.createElement)(c.a,{value:O,values:O,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Icon Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",right:""},value:ve.button1IconAlign.default},hasRevertButton:!0,onChange:e=>t({button1IconAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"pdt-tbl-button-padding",option:{id:"pdt-tbl-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:ve.button1Padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button1Padding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"pdt-tbl-button-margin",option:{id:"pdt-tbl-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:ve.button1Margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button1Margin:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Secondary Button Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Secondary Button","affiliatex"),checked:!!j,onChange:()=>t({edButton2:!j})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!k,onChange:()=>t({edButton2Icon:!k})})),k&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+C.value},Object(i.createElement)("label",null,Object(n.__)("Select Icon","affiliatex")),Object(i.createElement)(s.a,{value:C.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({button2Icon:e})}})),k&&Object(i.createElement)(c.a,{value:w,values:w,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Icon Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",right:""},value:ve.button2IconAlign.default},hasRevertButton:!0,onChange:e=>t({button2IconAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"pdt-tbl-button-padding",option:{id:"pdt-tbl-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:ve.button2Padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button2Padding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:I,values:I,id:"pdt-tbl-button-margin",option:{id:"pdt-tbl-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:ve.button2Margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button2Margin:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:_,values:_,id:"pdt-tbl-border",option:{id:"pdt-tbl-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:ve.border.default},hasRevertButton:!0,onChange:e=>t({border:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"pdt-tbl-border-width",option:{id:"pdt-tbl-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:ve.borderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"pdt-tbl-border-radius",option:{id:"pdt-tbl-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:ve.borderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderRadius:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},1==u&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:L},textBgColor:{color:P}},option:{id:"pc-ribbon-color",label:Object(n.__)("Ribbon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.ribbonColor.default},textBgColor:{color:ve.ribbonBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({ribbonColor:e.textColor.color,ribbonBgColor:e.textBgColor.color})})),1==h&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:A},textBgColor:{color:z}},option:{id:"pc-counter-color",label:Object(n.__)("Counter Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.counterColor.default},textBgColor:{color:ve.counterBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({counterColor:e.textColor.color,counterBgColor:e.textBgColor.color})})),1==m&&f&&"layoutOne"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:V},ratingBgColor:{color:W}},option:{id:"pc-rating-color",label:Object(n.__)("Rating Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:ve.ratingColor.default},ratingBgColor:{color:ve.ratingBgColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Rating Color","affiliatex")},{id:"ratingBgColor",title:Object(n.__)("Rating Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({ratingColor:e.ratingColor.color,ratingBgColor:e.ratingBgColor.color})})),1==m&&f&&"layoutTwo"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:D},ratingBgColor:{color:q}},option:{id:"pc-rating-2-color",label:Object(n.__)("Rating Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:ve.rating2Color.default},ratingBgColor:{color:ve.rating2BgColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Rating Color","affiliatex")},{id:"ratingBgColor",title:Object(n.__)("Rating Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({rating2Color:e.ratingColor.color,rating2BgColor:e.ratingBgColor.color})})),1==m&&f&&"layoutThree"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:U},inactiveColor:{color:$}},option:{id:"pc-star-color",label:Object(n.__)("Star Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:ve.starColor.default},inactiveColor:{color:ve.starInactiveColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Star Color","affiliatex")},{id:"inactiveColor",title:Object(n.__)("Inactive Star Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({starColor:e.ratingColor.color,starInactiveColor:e.inactiveColor.color})})),1==g&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:H}},option:{id:"pc-price-color",label:Object(n.__)("Price Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.priceColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Price Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({priceColor:e.textColor.color})})),"layoutThree"!=f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:F},textBgColor:{color:M}},option:{id:"pc-table-header-color",label:Object(n.__)("Table Header Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.tableHeaderColor.default},textBgColor:{color:ve.tableHeaderBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({tableHeaderColor:e.textColor.color,tableHeaderBgColor:e.textBgColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:G}},option:{id:"pc-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.titleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color")}]},hasRevertButton:!0,onChange:e=>t({titleColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:Z}},option:{id:"pc-content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.contentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")}]},hasRevertButton:!0,onChange:e=>t({contentColor:e.textColor.color})})),"list"===xe&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:Oe}},option:{id:"pc-list-icon-color",label:Object(n.__)("List Icon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.productIconColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productIconColor:e.textColor.color})})),1==v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:Y},textHoverColor:{color:J}},option:{id:"pc-primary-btn-text-color",label:Object(n.__)("Primary Button Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.button1TextColor.default},textHoverColor:{color:ve.button1TextHoverColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textHoverColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button1TextColor:e.textColor.color,button1TextHoverColor:e.textHoverColor.color})})),1==v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:ee},backgroundHoverColor:{color:te}},option:{id:"pc-primary-btn-color",label:Object(n.__)("Primary Button Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:ve.button1BgColor.default},backgroundHoverColor:{color:ve.button1BgHoverColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")},{id:"backgroundHoverColor",title:Object(n.__)("Background Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button1BgColor:e.backgroundColor.color,button1BgHoverColor:e.backgroundHoverColor.color})})),1==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:ae},textHoverColor:{color:oe}},option:{id:"pc-secn-btn-txt-color",label:Object(n.__)("Secondary Button Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.button2TextColor.default},textHoverColor:{color:ve.button2TextHoverColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textHoverColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button2TextColor:e.textColor.color,button2TextHoverColor:e.textHoverColor.color})})),1==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:ie},backgroundHoverColor:{color:ne}},option:{id:"pc-second-btn-color",label:Object(n.__)("Secondary Button Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:ve.button2BgColor.default},backgroundHoverColor:{color:ve.button2BgHoverColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")},{id:"backgroundHoverColor",title:Object(n.__)("Background Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button2BgColor:e.backgroundColor.color,button2BgHoverColor:e.backgroundHoverColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:X,values:X,id:"pdt-tbl-bg-type",option:{id:"pdt-tbl-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")},value:ve.bgType.default},hasRevertButton:!0,onChange:e=>t({bgType:e})})),"solid"===X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:K}},option:{id:"pc-background-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:ve.bgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({bgColorSolid:e.bgColor.color})})),"gradient"===X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:Q,onChange:e=>t({bgColorGradient:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-pdt-tbl-typography"},u&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-title-typography"},Object(i.createElement)(c.a,{value:ce,option:{id:"ribbon-typography",label:Object(n.__)("Ribbon Typography","affiliatex"),type:"ab-typography",value:ve.ribbonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ribbonTypography:e})}})),h&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-title-typography"},Object(i.createElement)(c.a,{value:se,option:{id:"counter-typography",label:Object(n.__)("Counter Typography","affiliatex"),type:"ab-typography",value:ve.counterTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({counterTypography:e})}})),m&&f&&"layoutOne"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-rating-typography"},Object(i.createElement)(c.a,{value:me,option:{id:"rating-typography",label:Object(n.__)("Rating Typography","affiliatex"),type:"ab-typography",value:ve.ratingTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ratingTypography:e})}})),m&&f&&"layoutTwo"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-rating-typography"},Object(i.createElement)(c.a,{value:ge,option:{id:"rating-typography",label:Object(n.__)("Rating Typography","affiliatex"),type:"ab-typography",value:ve.rating2Typography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({rating2Typography:e})}})),g&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-title-typography"},Object(i.createElement)(c.a,{value:pe,option:{id:"price-typography",label:Object(n.__)("Pricing Typography","affiliatex"),type:"ab-typography",value:ve.priceTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({priceTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-content-typography"},Object(i.createElement)(c.a,{value:fe,option:{id:"button-typography",label:Object(n.__)("Button Typography","affiliatex"),type:"ab-typography",value:ve.buttonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({buttonTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-typography"},Object(i.createElement)(c.a,{value:de,option:{id:"table-typography",label:Object(n.__)("Table Header Typography","affiliatex"),type:"ab-typography",value:ve.headerTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({headerTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-typography"},Object(i.createElement)(c.a,{value:ue,option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:ve.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-typography"},Object(i.createElement)(c.a,{value:be,option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:ve.contentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({contentTypography:e})}})))),Object(i.createElement)(o,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:je,values:je,id:"pdt-tbl-img-padding",option:{id:"pdt-tbl-img-padding",label:Object(n.__)("Image Padding","affiliatex"),type:"ab-spacing",value:ve.imagePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({imagePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:le,values:le,id:"pdt-tbl-margin",option:{id:"pdt-tbl-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:ve.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:re,values:re,id:"pdt-tbl-padding",option:{id:"pdt-tbl-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:ve.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))};const{Button:ye}=wp.components;var Oe=({productTable:e,handleProductRow:t})=>Object(i.createElement)(ye,{isDefault:!0,className:"affx-add-pdt-row-btn components_panel_btn",onClick:()=>t(e)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Product Row","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})));const{Button:je}=wp.components;var ke=({index:e,handleRemoveProductRow:t})=>Object(i.createElement)(je,{className:"affx-pdt-row-remove-btn",onClick:()=>{t(e)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))));const{RichText:Ce}=wp.blockEditor,{TextControl:we}=wp.components,Ee=({value:e,label:t,type:a,onChange:o})=>Object(i.createElement)(i.Fragment,null,!a&&Object(i.createElement)("div",{className:"affx-rating-number"},Object(i.createElement)(Ce,{tagName:"span",type:"number",placeholder:"0.0",value:e,className:"affx-rating-num num",onChange:o}),Object(i.createElement)(Ce,{tagName:"span",type:"number",placeholder:"score label",value:t,className:"affx-rating-number-label label"})),"circle"===a&&Object(i.createElement)("div",{className:"affx-circle-progress-container"},Object(i.createElement)("span",{className:"circle-wrap",style:{"--data-deg":"rotate("+e/10*100/100*180+"deg)"}},Object(i.createElement)("span",{className:"circle-mask full"},Object(i.createElement)("span",{className:"fill"})),Object(i.createElement)("span",{className:"circle-mask"},Object(i.createElement)("span",{className:"fill"}))),Object(i.createElement)(we,{type:"number",placeholder:"5",value:e.toString(),className:"affx-circle-inside",onChange:o,hideLabelFromVision:!0,max:10,stepSize:1}))),_e=({value:e,onChange:t})=>Object(i.createElement)("span",{className:"star-rating-single-wrap"},Object(i.createElement)(we,{type:"number",placeholder:"5",value:e.toString(),className:"affx-pdt-rating",onChange:t,hideLabelFromVision:!0,max:10,stepSize:1})),{Button:Te}=wp.components,{RichText:Be,MediaUpload:Ne}=wp.blockEditor;var Re=e=>{const{attributes:t,setAttributes:a,handleChangeIndex:o,onSelectImage:l,onReplaceImage:r,onRemoveImage:c,onChangeProductDetails:s,setSelectedButton:p,handleRemoveProductRow:f,handleProductRow:d,selectedButton:u}=e,{productTable:b,layoutStyle:m,imageColTitle:g,productColTitle:h,featuresColTitle:v,ratingColTitle:x,priceColTitle:y,edImage:O,edRibbon:j,edProductName:k,edRating:C,edPrice:w,edCounter:E,edButton1:_,edButton1Icon:T,button1Icon:B,button1IconAlign:N,edButton2:R,edButton2Icon:S,button2Icon:I,button2IconAlign:L,productContentType:P,contentListType:A,productIconList:z,isSelected:F}=t;return Object(i.createElement)("table",{className:"affx-pdt-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,O&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)(Be,{tagName:"span",placeholder:"Image",value:g,onChange:e=>a({imageColTitle:e})})),Object(i.createElement)("td",null,Object(i.createElement)(Be,{tagName:"span",placeholder:"Product Name",value:h,onChange:e=>a({productColTitle:e})})),"layoutOne"==m&&Object(i.createElement)("td",null,Object(i.createElement)(Be,{tagName:"span",placeholder:"Features",value:v,onChange:e=>a({featuresColTitle:e})})),"layoutTwo"==m&&C&&Object(i.createElement)("td",null,Object(i.createElement)(Be,{tagName:"span",placeholder:"Rating",value:x,onChange:e=>a({ratingColTitle:e}),className:"affx-rating-col"})),Object(i.createElement)("td",{className:"affx-price-col"},Object(i.createElement)(Be,{tagName:"span",placeholder:"Price",value:y,onChange:e=>a({priceColTitle:e})})),Object(i.createElement)("td",null))),Object(i.createElement)("tbody",null,null==b?void 0:b.map((e,t)=>Object(i.createElement)("tr",{key:t,className:"affx-toolbar-row"},O&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)("div",{className:"affx-pdt-img-container"},j&&Object(i.createElement)(Be,{tagName:"span",className:"affx-pdt-ribbon affx-ribbon-2",placeholder:"Ribbon text",value:e.ribbon,onChange:e=>s(e,t,"ribbon")}),E&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl}),null!=e&&e.imageId?Object(i.createElement)("div",{className:"upload-btn-wrapper"},F?Object(i.createElement)(Ne,{onSelect:e=>r(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Te,{className:"affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(Te,{className:"remove-image",onClick:()=>c(t)},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(Ne,{onSelect:e=>l(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Te,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),"layoutOne"==m&&C&&Object(i.createElement)(_e,{value:e.rating,onChange:e=>s(e,t,"rating")}))),Object(i.createElement)("td",null,k&&Object(i.createElement)(Be,{tagName:"h5",className:"affx-pdt-name",placeholder:"Product Name",value:e.name,onChange:e=>s(e,t,"name")}),"layoutTwo"==m&&Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===P&&Object(i.createElement)(Be,{tagName:"unordered"==A?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+z.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:e.featuresList,onChange:e=>s(e,t,"featuresList")}),"paragraph"===P&&Object(i.createElement)(Be,{tagName:"p",value:e.features,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>s(e,t,"features")}))),"layoutOne"==m&&Object(i.createElement)("td",null,"list"===P&&Object(i.createElement)(Be,{tagName:"unordered"==A?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+z.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:e.featuresList,onChange:e=>s(e,t,"featuresList")}),"paragraph"===P&&Object(i.createElement)(Be,{tagName:"p",value:e.features,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>s(e,t,"features")})),"layoutTwo"==m&&C&&Object(i.createElement)("td",{className:"affx-rating-col"},Object(i.createElement)(Ee,{value:e.rating.toString(),onChange:e=>s(e,t,"rating"),type:"circle"})),Object(i.createElement)("td",{className:"affx-price-col"},w&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},Object(i.createElement)(Be,{tagName:"span",className:"affx-pdt-offer-price",placeholder:"$00",value:e.offerPrice,onChange:e=>s(e,t,"offerPrice")}),Object(i.createElement)(Be,{tagName:"del",className:"affx-pdt-reg-price",placeholder:"$00",value:e.regularPrice,onChange:e=>s(e,t,"regularPrice")})),(_||R)&&Object(i.createElement)("div",{className:"affx-btn-wrapper"},_&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button primary "+(T&&"icon-btn icon-"+N),onMouseEnter:()=>p(t+"-first-button")},1==T&&N&&"left"==N&&Object(i.createElement)("i",{className:"button-icon "+B.value}),Object(i.createElement)(Be,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button1,formattingControls:["bold","italic","underline"],href:e.button1URL,onChange:e=>s(e,t,"button1")}),1==T&&N&&"right"==N&&Object(i.createElement)("i",{className:"button-icon "+B.value}),u==t+"-first-button"&&Object(i.createElement)(te,{index:t,buttonNumber:1,url:e.button1URL,opensInNewTab:e.btn1OpenInNewTab,relNoFollow:e.btn1RelNoFollow,relSponsored:e.btn1RelSponsored,download:e.btn1Download,onChangeProductLinks:s,setSelectedButton:p}))),R&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button secondary "+(S&&"icon-btn icon-"+L),onMouseEnter:()=>p(t+"-second-button")},1==S&&L&&"left"==L&&Object(i.createElement)("i",{className:"button-icon "+I.value}),Object(i.createElement)(Be,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button2,formattingControls:["bold","italic","underline"],href:e.button2URL,onChange:e=>s(e,t,"button2")}),1==S&&L&&"right"==L&&Object(i.createElement)("i",{className:"button-icon "+I.value}),u==t+"-second-button"&&Object(i.createElement)(te,{index:t,buttonNumber:2,url:e.button2URL,opensInNewTab:e.btn2OpenInNewTab,relNoFollow:e.btn2RelNoFollow,relSponsored:e.btn2RelSponsored,download:e.btn2Download,onChangeProductLinks:s,setSelectedButton:p}))))),t>0?Object(i.createElement)("td",null,Object(i.createElement)(ke,{index:t,handleRemoveProductRow:f}),Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"up")}},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"down")},disabled:t===b.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))):Object(i.createElement)("td",null,Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"up")},disabled:!0},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"down")},disabled:t===b.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{colSpan:"5",className:"row-appender"},Object(i.createElement)(Oe,{productTable:b,handleProductRow:d})))))};const{Button:Se}=wp.components,{Fragment:Ie}=wp.element,{RichText:Le,MediaUpload:Pe}=wp.blockEditor;var Ae=e=>{const{attributes:t,onSelectImage:a,onReplaceImage:o,onRemoveImage:l,onChangeProductDetails:r,handleRemoveProductRow:c,handleProductRow:s,setSelectedButton:p,selectedButton:f,handleChangeIndex:d}=e,{productTable:u,edImage:b,edRibbon:m,edProductName:g,edRating:h,edPrice:v,edCounter:x,edButton1:y,edButton1Icon:O,button1Icon:j,button1IconAlign:k,edButton2:C,edButton2Icon:w,button2Icon:E,button2IconAlign:_,starColor:T,starInactiveColor:B,productContentType:N,contentListType:R,productIconList:S,isSelected:I}=t;return Object(i.createElement)(Ie,null,null==u?void 0:u.map((e,t)=>Object(i.createElement)("div",{className:"affx-pdt-table-single affx-toolbar-row",key:t},b&&Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl}),null!=e&&e.imageId?Object(i.createElement)("div",{className:"upload-btn-wrapper"},I?Object(i.createElement)(Pe,{onSelect:e=>o(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Se,{className:"affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(Se,{className:"remove-image",onClick:()=>l(t)},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(Pe,{onSelect:e=>a(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Se,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affx-pdt-content-wrap"},Object(i.createElement)("div",{className:"affx-content-left"},x&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),m&&Object(i.createElement)(Le,{tagName:"span",className:"affx-pdt-ribbon",placeholder:"Ribbon text",value:e.ribbon,onChange:e=>r(e,t,"ribbon")}),g&&Object(i.createElement)(Le,{tagName:"h5",className:"affx-pdt-name",placeholder:"Product Name",value:e.name,onChange:e=>r(e,t,"name")}),h&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.Rating,{onClick:e=>r(e,t,"rating"),ratingValue:parseInt(e.rating),fillColor:T,emptyColor:B,className:"rating-stars"})),v&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},Object(i.createElement)(Le,{tagName:"span",className:"affx-pdt-offer-price",placeholder:"$00",value:e.offerPrice,onChange:e=>r(e,t,"offerPrice")}),Object(i.createElement)(Le,{tagName:"del",className:"affx-pdt-reg-price",placeholder:"$00",value:e.regularPrice,onChange:e=>r(e,t,"regularPrice")})),Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===N&&Object(i.createElement)(Le,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:e.featuresList,onChange:e=>r(e,t,"featuresList")}),"paragraph"===N&&Object(i.createElement)(Le,{tagName:"p",value:e.features,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>r(e,t,"features")}))),(y||C)&&Object(i.createElement)("div",{className:"affx-pdt-button-wrap"},Object(i.createElement)("div",{className:"affx-btn-wrapper"},y&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button primary "+(O&&"icon-btn icon-"+k),onMouseEnter:()=>p(t+"-first-button")},1==O&&k&&"left"==k&&Object(i.createElement)("i",{className:"button-icon "+j.value}),Object(i.createElement)(Le,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button1,formattingControls:["bold","italic","underline"],href:e.button1URL,onChange:e=>r(e,t,"button1")}),1==O&&k&&"right"==k&&Object(i.createElement)("i",{className:"button-icon "+j.value}),f==t+"-first-button"&&Object(i.createElement)(te,{index:t,buttonNumber:1,url:e.button1URL,opensInNewTab:e.btn1OpenInNewTab,relNoFollow:e.btn1RelNoFollow,relSponsored:e.btn1RelSponsored,download:e.btn1Download,onChangeProductLinks:r,setSelectedButton:p}))),C&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button secondary "+(w&&"icon-btn icon-"+_),onMouseEnter:()=>p(t+"-second-button")},1==w&&_&&"left"==_&&Object(i.createElement)("i",{className:"button-icon "+E.value}),Object(i.createElement)(Le,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button2,formattingControls:["bold","italic","underline"],href:e.button2URL,onChange:e=>r(e,t,"button2")}),1==w&&_&&"right"==_&&Object(i.createElement)("i",{className:"button-icon "+E.value}),f==t+"-second-button"&&Object(i.createElement)(te,{index:t,buttonNumber:2,url:e.button2URL,opensInNewTab:e.btn2OpenInNewTab,relNoFollow:e.btn2RelNoFollow,relSponsored:e.btn2RelSponsored,download:e.btn2Download,onChangeProductLinks:r,setSelectedButton:p})))))),t>0?Object(i.createElement)(Ie,null,Object(i.createElement)(ke,{index:t,handleRemoveProductRow:c}),Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"up")}},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"down")},disabled:t===u.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))):Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"up")},disabled:!0},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"down")},disabled:t===u.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))),Object(i.createElement)("div",{className:"row-appender"},Object(i.createElement)(Oe,{productTable:u,handleProductRow:s})))};const{Fragment:ze}=wp.element;var Fe,Me,He=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-pdt-table-style-"+n),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:n});var a=document.getElementById("affiliatex-pdt-table-style-"+n);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{boxShadow:o,border:i,borderWidth:n,borderRadius:l,button1Padding:r,button1Margin:c,button2Padding:s,button2Margin:p,ribbonColor:f,ribbonBgColor:b,counterColor:m,counterBgColor:g,tableHeaderColor:h,tableHeaderBgColor:v,priceColor:x,ratingColor:y,ratingBgColor:O,rating2Color:j,rating2BgColor:k,contentColor:C,titleColor:w,bgType:E,bgColorSolid:_,bgColorGradient:T,button1TextColor:B,button1TextHoverColor:N,button1BgColor:R,button1BgHoverColor:S,button2TextColor:I,button2TextHoverColor:L,button2BgColor:P,button2BgHoverColor:A,margin:z,padding:F,ribbonTypography:M,priceTypography:H,buttonTypography:V,contentTypography:W,counterTypography:D,titleTypography:q,headerTypography:U,ratingTypography:$,rating2Typography:G,productIconColor:Z,imagePadding:X}=e;var K,Q,Y={};(Y={" .affx-pdt-table-wrapper":{color:C,"font-family":W.family,"text-decoration":W["text-decoration"],"font-weight":Object(u.c)(W.variation),"font-style":Object(u.b)(W.variation),"font-size":W.size.desktop,"line-height":W["line-height"].desktop,"text-transform":W["text-transform"],"letter-spacing":W["letter-spacing"].desktop,"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom}," .star-rating-single-wrap":{color:y,background:O,"font-family":$.family,"text-decoration":$["text-decoration"],"font-weight":Object(u.c)($.variation),"font-style":Object(u.b)($.variation),"font-size":$.size.desktop,"line-height":$["line-height"].desktop,"text-transform":$["text-transform"],"letter-spacing":$["letter-spacing"].desktop}," .circle-wrap .circle-mask .fill":{background:k}," .affx-circle-progress-container .affx-circle-inside":{color:j,"font-family":G.family,"text-decoration":G["text-decoration"],"font-weight":Object(u.c)(G.variation),"font-style":Object(u.b)(G.variation),"font-size":G.size.desktop,"line-height":G["line-height"].desktop,"text-transform":G["text-transform"],"letter-spacing":G["letter-spacing"].desktop}," .affx-pdt-table-wrapper p":{color:C,"font-family":W.family,"text-decoration":W["text-decoration"],"font-weight":Object(u.c)(W.variation),"font-style":Object(u.b)(W.variation),"font-size":W.size.desktop,"line-height":W["line-height"].desktop,"text-transform":W["text-transform"],"letter-spacing":W["letter-spacing"].desktop}," .affx-pdt-table-wrapper li":{color:C,"font-family":W.family,"text-decoration":W["text-decoration"],"font-weight":Object(u.c)(W.variation),"font-style":Object(u.b)(W.variation),"font-size":W.size.desktop,"line-height":W["line-height"].desktop,"text-transform":W["text-transform"],"letter-spacing":W["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affx-pdt-name":{color:w,"font-family":q.family,"text-decoration":q["text-decoration"],"font-weight":Object(u.c)(q.variation),"font-style":Object(u.b)(q.variation),"font-size":q.size.desktop,"line-height":q["line-height"].desktop,"text-transform":q["text-transform"],"letter-spacing":q["letter-spacing"].desktop}," .affx-pdt-table-wrapper:not(.layout-3)":{"border-style":i.style,"border-width":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"border-color":i.color.color}," .affx-pdt-table-single":{"border-style":i.style,"border-width":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"border-color":i.color.color,"border-radius":l.desktop.top+" "+l.desktop.right+" "+l.desktop.bottom+" "+l.desktop.left,"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom}," .affx-pdt-table-wrapper td":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pdt-table-wrapper th":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pdt-table-wrapper .affx-pdt-counter":{color:m,background:g,"font-family":D.family,"text-decoration":D["text-decoration"],"font-weight":Object(u.c)(D.variation),"font-style":Object(u.b)(D.variation),"font-size":D.size.desktop,"line-height":D["line-height"].desktop,"text-transform":D["text-transform"],"letter-spacing":D["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affx-pdt-ribbon":{"font-family":M.family,"text-decoration":M["text-decoration"],"font-weight":Object(u.c)(M.variation),"font-style":Object(u.b)(M.variation),"font-size":M.size.desktop,"line-height":M["line-height"].desktop,"text-transform":M["text-transform"],"letter-spacing":M["letter-spacing"].desktop,color:f,background:b}," .affx-pdt-table-wrapper .affx-pdt-ribbon::before":{background:b}," .affx-pdt-table-wrapper .affiliatex-button":{"font-family":V.family,"text-decoration":V["text-decoration"],"font-weight":Object(u.c)(V.variation),"font-style":Object(u.b)(V.variation),"font-size":V.size.desktop,"line-height":V["line-height"].desktop,"text-transform":V["text-transform"],"letter-spacing":V["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affiliatex-button.primary":{color:B,"background-color":R,"margin-top":c.desktop.top,"margin-left":c.desktop.left,"margin-right":c.desktop.right,"margin-bottom":c.desktop.bottom,"padding-top":r.desktop.top,"padding-left":r.desktop.left,"padding-right":r.desktop.right,"padding-bottom":r.desktop.bottom}," .affx-pdt-table-wrapper .affiliatex-button.secondary":{color:I,"background-color":P,"margin-top":p.desktop.top,"margin-left":p.desktop.left,"margin-right":p.desktop.right,"margin-bottom":p.desktop.bottom,"padding-top":s.desktop.top,"padding-left":s.desktop.left,"padding-right":s.desktop.right,"padding-bottom":s.desktop.bottom}," .affx-pdt-table-wrapper .affiliatex-button.primary:hover":{color:N,"background-color":S}," .affx-pdt-table-wrapper .affiliatex-button.secondary:hover":{color:L,"background-color":A}," .affx-pdt-table-wrapper .affx-pdt-price-wrap":{color:x,"font-family":H.family,"font-weight":Object(u.c)(H.variation),"font-style":Object(u.b)(H.variation),"font-size":H.size.desktop,"line-height":H["line-height"].desktop,"text-transform":H["text-transform"],"text-decoration":H["text-decoration"],"letter-spacing":H["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affx-pdt-table thead td":{background:v,"border-color":v,color:h,"font-family":U.family,"text-decoration":U["text-decoration"],"font-weight":Object(u.c)(U.variation),"font-style":Object(u.b)(U.variation),"font-size":U.size.desktop,"line-height":U["line-height"].desktop,"text-transform":U["text-transform"],"letter-spacing":U["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affiliatex-icon li:before":{color:Z}," .affx-pdt-table":{}," .affx-pdt-table-wrapper .affx-pdt-img-container":{"padding-top":X.desktop.top,"padding-left":X.desktop.left,"padding-right":X.desktop.right,"padding-bottom":X.desktop.bottom}})[" .affx-pdt-table-wrapper:not(.layout-3)"].background="solid"===E?_:T.gradient,Y[" .affx-pdt-table"].background="solid"===E?_:T.gradient,Y[" .affx-pdt-table-single"].background="solid"===E?_:T.gradient,Y[" .affx-pdt-table-wrapper:not(.layout-3)"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",Y[" .affx-pdt-table-single"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",Q={" .affx-pdt-table-wrapper":{"font-size":W.size.tablet,"line-height":W["line-height"].tablet,"letter-spacing":W["letter-spacing"].tablet}," .star-rating-single-wrap":{"font-size":$.size.tablet,"line-height":$["line-height"].tablet,"letter-spacing":$["letter-spacing"].tablet}," .affx-circle-progress-container .affx-circle-inside":{"font-size":G.size.tablet,"line-height":G["line-height"].tablet,"letter-spacing":G["letter-spacing"].tablet}," .affx-pdt-table-wrapper p":{"font-size":W.size.tablet,"line-height":W["line-height"].tablet,"letter-spacing":W["letter-spacing"].tablet}," .affx-pdt-table-wrapper li":{"font-size":W.size.tablet,"line-height":W["line-height"].tablet,"letter-spacing":W["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-name":{"font-size":q.size.tablet,"line-height":q["line-height"].tablet,"letter-spacing":q["letter-spacing"].tablet}," .affx-pdt-table-wrapper:not(.layout-3)":{"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom}," .affx-pdt-table-single":{"border-width":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left,"border-radius":l.tablet.top+" "+l.tablet.right+" "+l.tablet.bottom+" "+l.tablet.left,"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom}," .affx-pdt-table-wrapper td":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom,"border-width":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left}," .affx-pdt-table-wrapper th":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affx-pdt-table-wrapper .affx-pdt-counter":{"font-size":D.size.tablet,"line-height":D["line-height"].tablet,"letter-spacing":D["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-ribbon":{"font-size":M.size.tablet,"line-height":M["line-height"].tablet,"letter-spacing":M["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affiliatex-button":{"font-size":V.size.tablet,"line-height":V["line-height"].tablet,"letter-spacing":V["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affiliatex-button.primary":{"margin-top":c.tablet.top,"margin-left":c.tablet.left,"margin-right":c.tablet.right,"margin-bottom":c.tablet.bottom,"padding-top":r.tablet.top,"padding-left":r.tablet.left,"padding-right":r.tablet.right,"padding-bottom":r.tablet.bottom}," .affx-pdt-table-wrapper .affiliatex-button.secondary":{"margin-top":p.tablet.top,"margin-left":p.tablet.left,"margin-right":p.tablet.right,"margin-bottom":p.tablet.bottom,"padding-top":s.tablet.top,"padding-left":s.tablet.left,"padding-right":s.tablet.right,"padding-bottom":s.tablet.bottom}," .affx-pdt-table-wrapper .affx-pdt-price-wrap":{"font-size":H.size.tablet,"line-height":H["line-height"].tablet,"letter-spacing":H["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-table thead td":{"font-size":U.size.tablet,"line-height":U["line-height"].tablet,"letter-spacing":U["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-img-container":{"padding-top":X.tablet.top,"padding-left":X.tablet.left,"padding-right":X.tablet.right,"padding-bottom":X.tablet.bottom}},K={" .affx-pdt-table-wrapper":{"font-size":W.size.mobile,"line-height":W["line-height"].mobile,"letter-spacing":W["letter-spacing"].mobile}," .star-rating-single-wrap":{"font-size":$.size.mobile,"line-height":$["line-height"].mobile,"letter-spacing":$["letter-spacing"].mobile}," .affx-circle-progress-container .affx-circle-inside":{"font-size":G.size.mobile,"line-height":G["line-height"].mobile,"letter-spacing":G["letter-spacing"].mobile}," .affx-pdt-table-wrapper p":{"font-size":W.size.mobile,"line-height":W["line-height"].mobile,"letter-spacing":W["letter-spacing"].mobile}," .affx-pdt-table-wrapper li":{"font-size":W.size.mobile,"line-height":W["line-height"].mobile,"letter-spacing":W["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-name":{"font-size":q.size.mobile,"line-height":q["line-height"].mobile,"letter-spacing":q["letter-spacing"].mobile}," .affx-pdt-table-wrapper:not(.layout-3)":{"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom}," .affx-pdt-table-single":{"border-width":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left,"border-radius":l.mobile.top+" "+l.mobile.right+" "+l.mobile.bottom+" "+l.mobile.left,"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom}," .affx-pdt-table-wrapper td":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom,"border-width":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left}," .affx-pdt-table-wrapper th":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affx-pdt-table-wrapper .affx-pdt-counter":{"font-size":D.size.mobile,"line-height":D["line-height"].mobile,"letter-spacing":D["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-ribbon":{"font-size":M.size.mobile,"line-height":M["line-height"].mobile,"letter-spacing":M["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affiliatex-button":{"font-size":V.size.mobile,"line-height":V["line-height"].mobile,"letter-spacing":V["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affiliatex-button.primary":{"margin-top":c.mobile.top,"margin-left":c.mobile.left,"margin-right":c.mobile.right,"margin-bottom":c.mobile.bottom,"padding-top":r.mobile.top,"padding-left":r.mobile.left,"padding-right":r.mobile.right,"padding-bottom":r.mobile.bottom}," .affx-pdt-table-wrapper .affiliatex-button.secondary":{"margin-top":p.mobile.top,"margin-left":p.mobile.left,"margin-right":p.mobile.right,"margin-bottom":p.mobile.bottom,"padding-top":s.mobile.top,"padding-left":s.mobile.left,"padding-right":s.mobile.right,"padding-bottom":s.mobile.bottom}," .affx-pdt-table-wrapper .affx-pdt-price-wrap":{"font-size":H.size.mobile,"line-height":H["line-height"].mobile,"letter-spacing":H["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-table thead td":{"font-size":U.size.mobile,"line-height":U["line-height"].mobile,"letter-spacing":U["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-img-container":{"padding-top":X.mobile.top,"padding-left":X.mobile.left,"padding-right":X.mobile.right,"padding-bottom":X.mobile.bottom}};var J="";return J=Object(d.a)(Y,`#${t}-${a}`),(J+=Object(d.a)(Q,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(K,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-pdt-table-style",n))},[e]);const{productTable:l,itemCount:r,layoutStyle:c,ribbonTypography:s,counterTypography:p,ratingTypography:f,rating2Typography:b,priceTypography:m,buttonTypography:g,headerTypography:h,titleTypography:v,contentTypography:x}=e;let y,O,j,C,w,E,_,T,B;if("Default"!==s.family){const e={google:{families:[s.family+(s.variation?":"+s.variation:"")]}};y=Object(i.createElement)(k,{config:e})}if("Default"!==p.family){const e={google:{families:[p.family+(p.variation?":"+p.variation:"")]}};O=Object(i.createElement)(k,{config:e})}if("Default"!==f.family){const e={google:{families:[f.family+(f.variation?":"+f.variation:"")]}};j=Object(i.createElement)(k,{config:e})}if("Default"!==b.family){const e={google:{families:[b.family+(b.variation?":"+b.variation:"")]}};C=Object(i.createElement)(k,{config:e})}if("Default"!==m.family){const e={google:{families:[m.family+(m.variation?":"+m.variation:"")]}};w=Object(i.createElement)(k,{config:e})}if("Default"!==g.family){const e={google:{families:[g.family+(g.variation?":"+g.variation:"")]}};E=Object(i.createElement)(k,{config:e})}if("Default"!==h.family){const e={google:{families:[h.family+(h.variation?":"+h.variation:"")]}};_=Object(i.createElement)(k,{config:e})}if("Default"!==v.family){const e={google:{families:[v.family+(v.variation?":"+v.variation:"")]}};T=Object(i.createElement)(k,{config:e})}if("Default"!==x.family){const e={google:{families:[x.family+(x.variation?":"+x.variation:"")]}};B=Object(i.createElement)(k,{config:e})}const[N,R]=Object(i.useState)(null),S=(e,a)=>{let o=[...l];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productTable:o})},I=(e,a)=>{let o=[...l];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productTable:o})},L=e=>{let a=[...l];a[e]={...a[e],imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",imageId:null,imageAlt:null},t({productTable:a})},P=(e,a,o)=>{let i=[...l];i[a]={...i[a],[""+o]:e},t({productTable:i})},A=e=>{let a=0,o=[...e];o=[...e,{imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",imageId:"",imageAlt:"",ribbon:"",name:"Product Name",features:"Product Features",featuresList:[],offerPrice:"$49.00",regularPrice:"$59.00",rating:"",button1:"Purchase Now",button1URL:"",btn1RelNoFollow:!1,btn1RelSponsored:!1,btn1OpenInNewTab:!1,btn1Download:!1,button2:"Check on Amazon",button2URL:"",btn2RelNoFollow:!1,btn2RelSponsored:!1,btn2OpenInNewTab:!1,btn2Download:!1}],t({productTable:o}),a=e.length,t({itemCount:a})},z=e=>{let a=[...l];a.splice(e,1),t({productTable:a,itemCount:r-1})},F=(e,a)=>{let o=[...l];"up"==a&&0!==e?(o.splice(e,1),o.splice(e-1,0,l[e])):"down"==a&&e!==o.length-1&&(o.splice(e,1),o.splice(e+1,0,l[e])),t({productTable:o})};return Object(i.createElement)(ze,null,Object(i.createElement)(xe,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-pdt-table-style-"+n,className:a},Object(i.createElement)("div",{className:"affx-pdt-table-container--free affx-block-admin "+(c&&"layoutThree"==c?"layout-3":"")},Object(i.createElement)("div",{className:"affx-pdt-table-wrapper"},c&&("layoutOne"==c||"layoutTwo"==c)&&Object(i.createElement)(Re,{attributes:e,setAttributes:t,handleChangeIndex:F,onSelectImage:S,onReplaceImage:I,onRemoveImage:L,onChangeProductDetails:P,setSelectedButton:R,selectedButton:N,handleProductRow:A,handleRemoveProductRow:z,isSelected:o}),c&&"layoutThree"==c&&Object(i.createElement)(Ae,{attributes:e,setAttributes:t,handleChangeIndex:F,onSelectImage:S,onReplaceImage:I,onRemoveImage:L,onChangeProductDetails:P,setSelectedButton:R,selectedButton:N,handleProductRow:A,handleRemoveProductRow:z,isSelected:o})))),y,O,j,C,w,E,_,T,B)},Ve=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,productTable:l,layoutStyle:r,imageColTitle:c,productColTitle:s,featuresColTitle:p,ratingColTitle:f,priceColTitle:d,edImage:u,edRibbon:b,edProductName:m,edRating:g,edPrice:h,edCounter:v,edButton1:x,edButton1Icon:y,button1Icon:O,button1IconAlign:j,edButton2:k,edButton2Icon:C,button2Icon:w,button2IconAlign:E,starColor:_,starInactiveColor:T,productContentType:N,contentListType:R,productIconList:S}=e,I=()=>{let e=[...l],t=[];return e.map(e=>e.rating).forEach(e=>{e.length>0&&t.push(e)}),t};return Object(i.createElement)("div",{id:"affiliatex-pdt-table-style-"+o,className:""+t},Object(i.createElement)("div",{className:"affx-pdt-table-container--free affx-block-admin "+(r&&"layoutThree"==r?"layout-3":"")},Object(i.createElement)("div",{className:"affx-pdt-table-wrapper"},r&&("layoutOne"==r||"layoutTwo"==r)&&Object(i.createElement)("table",{className:"affx-pdt-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,u&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:c}))),Object(i.createElement)("td",null,Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:s}))),"layoutOne"==r&&Object(i.createElement)("td",null,Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:p}))),"layoutTwo"==r&&g&&I().length>0&&Object(i.createElement)("td",{className:"affx-rating-col"},Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:f}))),Object(i.createElement)("td",{className:"affx-price-col"},Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:d}))))),Object(i.createElement)("tbody",null,null==l?void 0:l.map((e,t)=>Object(i.createElement)("tr",{key:t},u&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)("div",{className:"affx-pdt-img-container"},b&&e.ribbon&&Object(i.createElement)("span",{className:"affx-pdt-ribbon affx-ribbon-2"},Object(i.createElement)(a.Content,{value:e.ribbon})),v&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl,alt:e.imageAlt})),"layoutOne"==r&&g&&e.rating&&Object(i.createElement)("span",{className:"star-rating-single-wrap"},Object(i.createElement)(a.Content,{value:e.rating.toString()})))),Object(i.createElement)("td",null,m&&Object(i.createElement)("h5",{className:"affx-pdt-name"},Object(i.createElement)(a.Content,{value:e.name})),"layoutTwo"==r&&Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===N&&Object(i.createElement)(a.Content,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,value:e.featuresList}),"paragraph"===N&&Object(i.createElement)(a.Content,{tagName:"p",value:e.features,className:"affiliatex-content"}))),"layoutOne"==r&&Object(i.createElement)("td",null,"list"===N&&Object(i.createElement)(a.Content,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,value:e.featuresList}),"paragraph"===N&&Object(i.createElement)(a.Content,{tagName:"p",value:e.features,className:"affiliatex-content"})),"layoutTwo"==r&&g&&e.rating&&I().length>0&&Object(i.createElement)("td",{className:"affx-rating-col"},Object(i.createElement)("div",{className:"affx-circle-progress-container"},Object(i.createElement)("span",{className:"circle-wrap",style:{"--data-deg":"rotate("+e.rating.toString()/10*100/100*180+"deg)"}},Object(i.createElement)("span",{className:"circle-mask full"},Object(i.createElement)("span",{className:"fill"})),Object(i.createElement)("span",{className:"circle-mask"},Object(i.createElement)("span",{className:"fill"}))),Object(i.createElement)("span",{className:"affx-circle-inside"},Object(i.createElement)(a.Content,{value:e.rating.toString()})))),"layoutTwo"==r&&g&&I().length>0&&0==e.rating&&Object(i.createElement)("td",null),Object(i.createElement)("td",{className:"affx-price-col"},h&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},e.offerPrice&&Object(i.createElement)("span",{className:"affx-pdt-offer-price"},Object(i.createElement)(a.Content,{value:e.offerPrice})),e.regularPrice&&Object(i.createElement)("del",{className:"affx-pdt-reg-price"},Object(i.createElement)(a.Content,{value:e.regularPrice}))),(x||k)&&Object(i.createElement)("div",{className:"affx-btn-wrapper"},x&&e.button1&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button1URL,className:"affiliatex-button primary "+(y&&"icon-btn icon-"+j),rel:Object(n.__)("noopener","affiliatex")},e.btn1RelNoFollow?{rel:"noopener nofollow"}:"",e.btn1RelSponsored?{rel:"noopener sponsored"}:"",e.btn1RelNoFollow&&e.btn1RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn1OpenInNewTab?{target:"_blank"}:"",e.btn1Download?{download:"affiliatex"}:""),1==y&&j&&"left"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}),Object(i.createElement)(a.Content,{value:e.button1}),1==y&&j&&"right"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}))),k&&e.button2&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button2URL,className:"affiliatex-button secondary "+(C&&"icon-btn icon-"+E),rel:Object(n.__)("noopener","affiliatex")},e.btn2RelNoFollow?{rel:"noopener nofollow"}:"",e.btn2RelSponsored?{rel:"noopener sponsored"}:"",e.btn2RelNoFollow&&e.btn2RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn2OpenInNewTab?{target:"_blank"}:"",e.btn2Download?{download:"affiliatex"}:""),1==C&&E&&"left"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}),Object(i.createElement)(a.Content,{value:e.button2}),1==C&&E&&"right"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}))))))))),r&&"layoutThree"==r&&Object(i.createElement)(i.Fragment,null,null==l?void 0:l.map((e,t)=>Object(i.createElement)("div",{className:"affx-pdt-table-single",key:t},u&&Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl,alt:e.imageAlt})),Object(i.createElement)("div",{className:"affx-pdt-content-wrap"},Object(i.createElement)("div",{className:"affx-content-left"},v&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),b&&e.ribbon&&Object(i.createElement)("span",{className:"affx-pdt-ribbon"},Object(i.createElement)(a.Content,{value:e.ribbon})),m&&Object(i.createElement)("h5",{className:"affx-pdt-name"},Object(i.createElement)(a.Content,{value:e.name})),g&&e.rating&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.RatingView,{ratingValue:parseInt(e.rating),fillColor:_,emptyColor:T,className:"rating-stars"})),h&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},e.offerPrice&&Object(i.createElement)("span",{className:"affx-pdt-offer-price"},Object(i.createElement)(a.Content,{value:e.offerPrice})),e.regularPrice&&Object(i.createElement)("del",{className:"affx-pdt-reg-price"},Object(i.createElement)(a.Content,{value:e.regularPrice}))),Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===N&&Object(i.createElement)(a.Content,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,value:e.featuresList}),"paragraph"===N&&Object(i.createElement)(a.Content,{tagName:"p",value:e.features,className:"affiliatex-content"}))),(x||k)&&Object(i.createElement)("div",{className:"affx-pdt-button-wrap"},Object(i.createElement)("div",{className:"affx-btn-wrapper"},x&&e.button1&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button1URL,className:"affiliatex-button primary "+(y&&"icon-btn icon-"+j),rel:Object(n.__)("noopener","affiliatex")},e.btn1RelNoFollow?{rel:"noopener nofollow"}:"",e.btn1RelSponsored?{rel:"noopener sponsored"}:"",e.btn1RelNoFollow&&e.btn1RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn1OpenInNewTab?{target:"_blank"}:"",e.btn1Download?{download:"affiliatex"}:""),1==y&&j&&"left"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}),Object(i.createElement)(a.Content,{value:e.button1}),1==y&&j&&"right"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}))),k&&e.button2&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button2URL,className:"affiliatex-button secondary "+(C&&"icon-btn icon-"+E),rel:Object(n.__)("noopener","affiliatex")},e.btn2RelNoFollow?{rel:"noopener nofollow"}:"",e.btn2RelSponsored?{rel:"noopener sponsored"}:"",e.btn2RelNoFollow&&e.btn2RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn2OpenInNewTab?{target:"_blank"}:"",e.btn2Download?{download:"affiliatex"}:""),1==C&&E&&"left"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}),Object(i.createElement)(a.Content,{value:e.button2}),1==C&&E&&"right"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}))))))))))))};Object(S.registerBlockType)("affiliatex/product-table",{title:Object(n.__)("AffiliateX Product Table","affiliatex"),description:Object(n.__)("Add a customizable product table block","affiliatex"),icon:R.i,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("product","affiliatex"),Object(n.__)("table","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:ve,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(He,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Ve,{attributes:e,className:t})});const We=AffiliateX.customizationData;var De={block_id:{type:"string"},ctaTitle:{type:"string",default:Object(n.__)("Call to Action Title.","affiliatex")},ctaContent:{type:"string",default:Object(n.__)("Start creating CTAs in seconds, and convert more of your visitors into leads.","affiliatex")},ctaLayout:{type:"string",default:"layoutOne"},ctaBGType:{type:"string",default:"color"},imgURL:{type:"string",default:AffiliateX.pluginUrl+"app/src/images/fallback.jpg"},imgID:{type:"number",default:""},imgAlt:{type:"string",default:""},overlayOpacity:{type:"decimalPoint",default:.1},imagePosition:{type:"string",default:"center"},ctaBgColorType:{type:"string",default:"solid"},ctaBgGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},ctaBGColor:{type:"string",default:"#fff"},columnReverse:{type:"boolean",default:!1},ctaAlignment:{type:"string",default:"center"},contentAlignment:{type:"string",default:"center"},ctaButtonAlignment:{type:"string",default:"center"},ctaTitleTypography:{type:"object",default:{family:(null==We||null===(Fe=We.typography)||void 0===Fe?void 0:Fe.family)||"Default",variation:"n5",size:{desktop:"40px",mobile:"40px",tablet:"40px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ctaContentTypography:{type:"object",default:{family:(null==We||null===(Me=We.typography)||void 0===Me?void 0:Me.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},edButtons:{type:"boolean",default:!0},edButtonTwo:{type:"boolean",default:!0},ctaBorder:{type:"object",default:{style:"solid",color:{color:"#E6ECF7"}}},ctaBorderWidth:{type:"object",default:{top:"1px",left:"1px",right:"1px",bottom:"1px"}},ctaBorderRadius:{type:"object",default:{desktop:{top:"8px",left:"8px",right:"8px",bottom:"8px"},mobile:{top:"8px",left:"8px",right:"8px",bottom:"8px"},tablet:{top:"8px",left:"8px",right:"8px",bottom:"8px"}}},ctaTitleColor:{type:"string",default:"#262B33"},ctaTextColor:{type:"string",default:(null==We?void 0:We.fontColor)||"#292929"},ctaBoxPadding:{type:"object",default:{desktop:{top:"60px",left:"30px",right:"30px",bottom:"60px"},mobile:{top:"60px",left:"30px",right:"30px",bottom:"60px"},tablet:{top:"60px",left:"30px",right:"30px",bottom:"60px"}}},ctaMargin:{type:"object",default:{desktop:{top:"0px",left:"0",right:"0",bottom:"30px"},mobile:{top:"0px",left:"0",right:"0",bottom:"30px"},tablet:{top:"0px",left:"0",right:"0",bottom:"30px"}}},ctaBoxShadow:{type:"object",default:{enable:!0,h_offset:2,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}}},qe=a(23),Ue=(a(45),a(30),({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l,MediaUpload:r}=wp.blockEditor,{PanelBody:s,ToggleControl:p}=wp.components,{ctaLayout:f,ctaBGType:d,imgURL:u,imgID:b,imgAlt:m,ctaBGColor:g,overlayOpacity:h,imagePosition:v,ctaAlignment:x,contentAlignment:y,ctaTitleColor:O,ctaTextColor:j,ctaTitleTypography:k,ctaContentTypography:C,edButtons:w,edButtonTwo:E,ctaBorder:_,ctaBorderWidth:T,ctaBorderRadius:B,ctaBoxPadding:N,ctaMargin:R,ctaBoxShadow:S,columnReverse:I,ctaButtonAlignment:L}=e,P=e=>{t({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},A=()=>{t({imgID:null,imgURL:null,imgAlt:null})};return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(s,{title:Object(n.__)("Layout Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-layout-option"},Object(i.createElement)(qe.SelectControl,{value:f,options:[{value:"layoutOne",label:"Layout One"},{value:"layoutTwo",label:"Layout Two"}],onChange:e=>t({ctaLayout:e})})),"layoutOne"===f&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:x,values:x,id:"cta-alignment",option:{id:"cta-alignment",label:Object(n.__)("Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",center:"",right:""},value:De.ctaAlignment.default},hasRevertButton:!0,onChange:e=>t({ctaAlignment:e})}))),"layoutTwo"===f&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s,{title:Object(n.__)("CTA Image","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},b?Object(i.createElement)("div",{className:"image-wrapper"},Object(i.createElement)("img",{src:u,alt:m}),o?Object(i.createElement)(qe.Button,{className:"remove-image",onClick:A},Object(n.__)(" Remove Image","affiliatex")):null):Object(i.createElement)(r,{onSelect:P,type:"image",value:b,render:({open:e})=>Object(i.createElement)(qe.Button,{className:"upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-bg-postion-option"},Object(i.createElement)(qe.SelectControl,{label:Object(n.__)("Image Position","affiliatex"),value:v,options:[{value:"center",label:"Center Center"},{value:"centerLeft",label:"Center Left"},{value:"centerRight",label:"Center Right"},{value:"topCenter",label:"Top Center"},{value:"topLeft",label:"Top Left"},{value:"topRight",label:"Top Right"},{value:"bottomCenter",label:"Bottom Center"},{value:"bottomLeft",label:"Bottom Left"},{value:"bottomRight",label:"Bottom Right"}],onChange:e=>t({imagePosition:e})})),"layoutTwo"===f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-column-reverse"},Object(i.createElement)(p,{label:Object(n.__)("Enable Column Reverse","affiliatex"),checked:!!I,onChange:()=>t({columnReverse:!I})})))),Object(i.createElement)(s,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-option"},Object(i.createElement)(p,{label:Object(n.__)("Enable Buttons","affiliatex"),checked:!!w,onChange:()=>t({edButtons:!w})}),!0===w&&Object(i.createElement)(p,{label:Object(n.__)("Enable Button Two","affiliatex"),checked:!!E,onChange:()=>t({edButtonTwo:!E})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:_,values:_,id:"cta-border",option:{id:"cta-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:De.ctaBorder.default},hasRevertButton:!0,onChange:e=>t({ctaBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"cta-border-width",option:{id:"cta-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:De.ctaBorderWidth.default,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"cta-border-radius",option:{id:"cta-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:De.ctaBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaBorderRadius:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"cta-box-shadow",option:{id:"cta-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:De.ctaBoxShadow.default},hasRevertButton:!0,onChange:e=>t({ctaBoxShadow:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:y,values:y,id:"content-alignment",option:{id:"content-alignment",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",center:"",right:""},value:De.contentAlignment.default},hasRevertButton:!0,onChange:e=>t({contentAlignment:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,values:L,id:"button-alignment",option:{id:"button-alignment",label:Object(n.__)("Button Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",center:"",right:""},value:De.ctaButtonAlignment.default},hasRevertButton:!0,onChange:e=>t({ctaButtonAlignment:e})}))),Object(i.createElement)(s,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{titleColor:{color:O}},option:{id:"cta-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{titleColor:{color:De.ctaTitleColor.default}},pickers:[{id:"titleColor",title:Object(n.__)("Title Color")}]},hasRevertButton:!0,onChange:e=>t({ctaTitleColor:e.titleColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:j}},onChange:e=>t({ctaTextColor:e.textColor.color}),option:{id:"cta-text-color",label:Object(n.__)("Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:De.ctaTextColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color")}]},hasRevertButton:!0})),"layoutOne"===f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-bg-option"},Object(i.createElement)(c.a,{value:d,values:d,id:"cta-bg-type",option:{id:"cta-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:De.ctaBGType.default,choices:{color:Object(n.__)("Color","affiliatex"),image:Object(n.__)("Image","affiliatex")}},hasRevertButton:!0,onChange:e=>t({ctaBGType:e})})),("layoutOne"===f&&"color"===d||"layoutTwo"===f)&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-bg-option"},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:g}},onChange:e=>t({ctaBGColor:e.backgroundColor.color}),option:{id:"cta-background-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:De.ctaBGColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0}))),"layoutOne"===f&&"image"===d&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:a},b?Object(i.createElement)("div",{className:"image-wrapper"},Object(i.createElement)("img",{src:u,alt:m}),o?Object(i.createElement)(qe.Button,{className:"remove-image",onClick:A},Object(n.__)(" Remove Image","affiliatex")):null):Object(i.createElement)(r,{onSelect:P,type:"image",value:b,render:({open:e})=>Object(i.createElement)(qe.Button,{className:"upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),"layoutOne"===f&&"image"===d&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-bg-postion-option"},Object(i.createElement)(qe.SelectControl,{label:Object(n.__)("Image Position","affiliatex"),value:v,options:[{value:"center",label:"Center Center"},{value:"centerLeft",label:"Center Left"},{value:"centerRight",label:"Center Right"},{value:"topCenter",label:"Top Center"},{value:"topLeft",label:"Top Left"},{value:"topRight",label:"Top Right"},{value:"bottomCenter",label:"Bottom Center"},{value:"bottomLeft",label:"Bottom Left"},{value:"bottomRight",label:"Bottom Right"}],onChange:e=>t({imagePosition:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-opacity"},Object(i.createElement)("label",null,Object(n.__)("Overlay Opacity","affiliatex")),Object(i.createElement)(qe.RangeControl,{value:h,min:0,max:1,step:.1,onChange:e=>t({overlayOpacity:e})}))))),Object(i.createElement)(s,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-title-typography"},Object(i.createElement)(c.a,{id:"cta-title-typography",value:k,option:{id:"cta-title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:De.ctaTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ctaTitleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-content-typography"},Object(i.createElement)(c.a,{id:"cta-content-typography",value:C,option:{id:"cta-content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:De.ctaContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ctaContentTypography:e})}}))),Object(i.createElement)(s,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-padding-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"cta-box-padding",option:{id:"cta-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:De.ctaBoxPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaBoxPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-margin-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"cta-margin",option:{id:"cta-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:De.ctaMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaMargin:e})}))))});const{InnerBlocks:$e,RichText:Ge}=wp.blockEditor;var Ze,Xe,Ke=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{imgURL:o,contentAlignment:i,ctaBGColor:n,ctaBgGradient:l,overlayOpacity:r,imagePosition:c,ctaTitleColor:s,ctaTextColor:p,ctaTitleTypography:f,ctaContentTypography:b,ctaBorder:m,ctaBorderWidth:g,ctaBgColorType:h,ctaBorderRadius:v,ctaBoxPadding:x,ctaMargin:y,ctaBoxShadow:O,ctaButtonAlignment:j}=e;var k,C,w={};const E="center"===c?"center center":"centerLeft"===c?"center left":"centerRight"===c?"center right":"topCenter"===c?"top center":"topLeft"===c?"top left":"topRight"===c?"top right":"bottomCenter"===c?"bottom center":"bottomLeft"===c?"bottom left":"bottomRight"===c?"bottom right":"",_="solid"===h?n:l.gradient;(w={" .layout-type-1":{"background-image":"url("+o+")"}," .layout-type-3":{"background-image":"url("+o+")"}," .image-wrapper":{"background-image":"url("+o+")","background-position":E}," .bg-color":{background:_},".wp-block-affiliatex-cta > div":{"background-size":"cover","background-repeat":"no-repeat","background-position":E,"border-style":m.style,"border-width":g.top+" "+g.right+" "+g.bottom+" "+g.left,"border-radius":v.desktop.top+" "+v.desktop.left+"  "+v.desktop.right+" "+v.desktop.bottom,"border-color":m.color.color,"padding-top":x.desktop.top,"padding-left":x.desktop.left,"padding-right":x.desktop.right,"padding-bottom":x.desktop.bottom,"margin-top":y.desktop.top,"margin-left":y.desktop.left,"margin-right":y.desktop.right,"margin-bottom":y.desktop.bottom},".wp-block-affiliatex-cta h2":{color:s,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop,"text-align":i},".wp-block-affiliatex-cta .affliatex-cta-content":{color:p,"font-family":b.family,"font-weight":Object(u.c)(b.variation),"font-style":Object(u.b)(b.variation),"font-size":b.size.desktop,"line-height":b["line-height"].desktop,"text-transform":b["text-transform"],"text-decoration":b["text-decoration"],"letter-spacing":b["letter-spacing"].desktop,"text-align":i}," .img-opacity::before":{opacity:r},".wp-block-affiliatex-cta .layout-type-2":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"},".wp-block-affiliatex-cta .layout-type-2 .content-wrapper":{background:_,"padding-top":x.desktop.top,"padding-left":x.desktop.left,"padding-right":x.desktop.right,"padding-bottom":x.desktop.bottom}," .button-wrapper":{"justify-content":j}})[".wp-block-affiliatex-cta > div"]["box-shadow"]=Object(u.a)(O)?Object(u.a)(O):"",C={".wp-block-affiliatex-cta > div":{"font-size":f.size.tablet,"border-radius":v.tablet.top+" "+v.tablet.left+"  "+v.tablet.right+" "+v.tablet.bottom,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet,"padding-top":x.tablet.top,"padding-left":x.tablet.left,"padding-right":x.tablet.right,"padding-bottom":x.tablet.bottom,"margin-top":y.tablet.top,"margin-left":y.tablet.left,"margin-right":y.tablet.right,"margin-bottom":y.tablet.bottom},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.tablet,"line-height":b["line-height"].tablet,"letter-spacing":b["letter-spacing"].tablet},".wp-block-affiliatex-cta h2":{"font-size":f.size.tablet,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.tablet,"line-height":b["line-height"].tablet,"letter-spacing":b["letter-spacing"].tablet},".wp-block-affiliatex-cta .layout-type-2":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"},".wp-block-affiliatex-cta .layout-type-2 .content-wrapper":{"padding-top":x.tablet.top,"padding-left":x.tablet.left,"padding-right":x.tablet.right,"padding-bottom":x.tablet.bottom}},k={".wp-block-affiliatex-cta > div":{"padding-top":x.mobile.top,"border-radius":v.mobile.top+" "+v.mobile.left+"  "+v.mobile.right+" "+v.mobile.bottom,"padding-left":x.mobile.left,"padding-right":x.mobile.right,"padding-bottom":x.mobile.bottom,"margin-top":y.mobile.top,"margin-left":y.mobile.left,"margin-right":y.mobile.right,"margin-bottom":y.mobile.bottom},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.mobile,"line-height":b["line-height"].mobile,"letter-spacing":b["letter-spacing"].mobile},".wp-block-affiliatex-cta h2":{"font-size":f.size.mobile,"line-height":f["line-height"].mobile,"letter-spacing":f["letter-spacing"].mobile},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.mobile,"line-height":b["line-height"].mobile,"letter-spacing":b["letter-spacing"].mobile},".wp-block-affiliatex-cta .layout-type-2":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"},".wp-block-affiliatex-cta .layout-type-2 .content-wrapper":{"padding-top":x.mobile.top,"padding-left":x.mobile.left,"padding-right":x.mobile.right,"padding-bottom":x.mobile.bottom}};var T="";return T=Object(d.a)(w,`#${t}-${a}`),(T+=Object(d.a)(C,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(k,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-style",l))},[e]);const{ctaTitleTypography:r,ctaContentTypography:c,ctaLayout:s,ctaTitle:p,ctaContent:f,ctaBGType:b,ctaAlignment:m,columnReverse:g,edButtons:h,edButtonTwo:v}=e,{Fragment:x}=wp.element,y=v?[["affiliatex/buttons",{buttonLabel:"Buy Now",buttonMargin:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}],["affiliatex/buttons",{buttonLabel:"More Details",buttonBGColor:"#FFB800",buttonMargin:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}]]:[["affiliatex/buttons",{buttonLabel:"Buy Now"}]],O="layoutOne"===s?" layout-type-1":"layoutTwo"===s?" layout-type-2":"",j="image"==b?" img-opacity":" bg-color",C=g&&"layoutTwo"===s?" col-reverse":"";let w,E;if("Default"!==r.family){const e={google:{families:[r.family+(r.variation?":"+r.variation:"")]}};w=Object(i.createElement)(k,{config:e})}if("Default"!==c.family){const e={google:{families:[c.family+(c.variation?":"+c.variation:"")]}};E=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(x,null,Object(i.createElement)(Ue,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-style-"+l,className:"affblk-cta-wrapper "+a},Object(i.createElement)("div",{className:O+" "+m+C+("layoutOne"===s?j:"")},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)("div",{className:"content-wrap"},Object(i.createElement)(Ge,{tagName:"h2",placeholder:Object(n.__)("Call to Action Title","affiliatex"),value:p,className:"affliatex-cta-title",onChange:e=>t({ctaTitle:e})}),Object(i.createElement)(Ge,{tagName:"p",placeholder:Object(n.__)("Start creating CTAs in seconds, and convert more of your visitors into leads.","affiliatex"),value:f,className:"affliatex-cta-content",onChange:e=>t({ctaContent:e})})),!0===h&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)($e,{orientation:"horizontal",template:y,templateLock:"all"}))),"layoutTwo"===s&&Object(i.createElement)("div",{className:"image-wrapper"}))),w,E)},Qe=({attributes:e,className:t,clientId:a})=>{const{InnerBlocks:o,RichText:n}=wp.blockEditor,{block_id:l,ctaTitle:r,ctaContent:c,ctaBGType:s,ctaLayout:p,ctaAlignment:f,columnReverse:d,ctaButtonAlignment:u}=e,b="layoutOne"===p?" layout-type-1":"layoutTwo"===p?" layout-type-2":"",m=d&&"layoutOne"!==p?" col-reverse":"";return Object(i.createElement)("div",{id:"affiliatex-style-"+l,className:"affblk-cta-wrapper "+t},Object(i.createElement)("div",{className:b+" "+f+m+("image"==s?" img-opacity":" bg-color")},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)("div",{className:"content-wrap"},Object(i.createElement)(n.Content,{tagName:"h2",className:"affliatex-cta-title",value:r}),Object(i.createElement)(n.Content,{tagName:"p",className:"affliatex-cta-content",value:c})),Object(i.createElement)("div",{className:"button-wrapper cta-btn-"+u},Object(i.createElement)(o.Content,null))),"layoutTwo"===p&&Object(i.createElement)("div",{className:"image-wrapper"})))};Object(S.registerBlockType)("affiliatex/cta",{title:Object(n.__)("Affiliatex Call To Action","affiliatex"),description:Object(n.__)("Add a customizable CTA.","affiliatex"),icon:R.b,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("CTA","affliatex")],attributes:De,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Ke,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Qe,{attributes:e,className:t})});const Ye=AffiliateX.customizationData;var Je={block_id:{type:"string"},layoutStyle:{type:"string",default:"layout-type-1"},noticeBorder:{type:"object",default:{style:"solid",color:{color:"#e6ecf7"}}},noticeBorderWidth:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},noticeBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},boxShadow:{type:"object",default:{enable:!0,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},noticeListItems:{type:"array",filterElements:!0,default:["List items"]},titleTag1:{type:"string",default:"h2"},edTitleIcon:{type:"boolean",default:!0},noticeTitleIcon:{type:"object",default:{name:"info-circle",value:"fa fa-info-circle"}},noticeTitle:{type:"string",default:"Notice"},noticeContentType:{type:"string",default:"list"},noticeContent:{type:"string",default:"This is the notice content"},noticeListType:{type:"string",default:"unordered"},alignment:{type:"string",default:"left"},noticeListIcon:{type:"object",default:{name:"check-circle",value:"fas fa-check-circle"}},titleBgColor:{type:"string",default:""},titleTextColor:{type:"string",default:""},titleTypography:{type:"object",default:{family:(null==Ye||null===(Ze=Ye.typography)||void 0===Ze?void 0:Ze.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},listTypography:{type:"object",default:{family:(null==Ye||null===(Xe=Ye.typography)||void 0===Xe?void 0:Xe.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},titleAlignment:{type:"string",default:"left"},listTextColor:{type:"string",default:""},listBgType:{type:"string",default:"solid"},listBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},listBgColor:{type:"string",default:"#ffffff"},noticeBgType:{type:"string",default:"solid"},noticeBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"}},noticeBgColor:{type:"string",default:"#24b644"},noticeBgTwoType:{type:"string",default:"solid"},noticeBgTwoGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"}},noticeBgTwoColor:{type:"string",default:"#F6F9FF"},noticeIconColor:{type:"string",default:"#24b644"},noticeIconTwoColor:{type:"string",default:"#084ACA"},noticeTextColor:{type:"string",default:"#ffffff"},noticeTextTwoColor:{type:"string",default:"#084ACA"},noticeListColor:{type:"string",default:(null==Ye?void 0:Ye.fontColor)||"#292929"},noticeIconSize:{type:"number",default:17},noticeListIconSize:{type:"number",default:17},noticeMargin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"30px"},mobile:{top:"0",left:"0",right:"0",bottom:"30px"},tablet:{top:"0",left:"0",right:"0",bottom:"30px"}}},titlePadding:{type:"object",default:{desktop:{top:"10px",right:"15px",bottom:"10px",left:"15px"},mobile:{top:"10px",right:"15px",bottom:"10px",left:"15px"},tablet:{top:"10px",right:"15px",bottom:"10px",left:"15px"}}},contentPadding:{type:"object",default:{desktop:{top:"10px",right:"15px",bottom:"10px",left:"15px"},mobile:{top:"10px",right:"15px",bottom:"10px",left:"15px"},tablet:{top:"10px",right:"15px",bottom:"10px",left:"15px"}}},noticePadding:{type:"object",default:{desktop:{top:"20px",right:"20px",bottom:"20px",left:"20px"},mobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},tablet:{top:"20px",right:"20px",bottom:"20px",left:"20px"}}},noticeunorderedType:{type:"string",default:"icon"}},et=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{TextControl:r,PanelBody:f,SelectControl:d,ToggleControl:u,RangeControl:b}=wp.components,{edTitleIcon:m,noticeBorder:g,noticeBorderWidth:h,noticeBorderRadius:v,noticeTitle:x,noticeTitleIcon:y,titleTag1:O,layoutStyle:j,boxShadow:k,alignment:C,titleTypography:w,listTypography:E,noticeContentType:_,noticeListType:T,noticeListIcon:B,noticeTextColor:N,noticeTextTwoColor:R,noticeIconColor:S,noticeIconTwoColor:I,noticeBgType:L,noticeBgColor:P,noticeBgGradient:A,noticeBgTwoType:z,noticeBgTwoGradient:F,noticeBgTwoColor:M,noticeListColor:H,listBgType:V,listBgColor:W,listBgGradient:D,noticeMargin:q,titlePadding:U,contentPadding:$,noticePadding:G,noticeunorderedType:Z,noticeIconSize:X,noticeListIconSize:K,titleAlignment:Q}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(f,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(d,{label:Object(n.__)("Choose Layout","affiliatex"),value:j,options:[{value:"layout-type-1",label:"Layout One"},{value:"layout-type-2",label:"Layout Two"},{value:"layout-type-3",label:"Layout Three"}],onChange:e=>t({layoutStyle:e})}))),Object(i.createElement)(f,{title:"General Settings",className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:g,values:g,id:"notice-box-border",option:{id:"notice-box-border",label:Object(n.__)("Box Border","affiliatex"),type:"ab-border",value:Je.noticeBorder.default},hasRevertButton:!0,onChange:e=>t({noticeBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"notice-border-width",option:{id:"notice-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:Je.noticeBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticeBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:v,values:v,id:"notice-border-radius",option:{id:"notice-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:Je.noticeBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticeBorderRadius:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"box-shadow",option:{id:"box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:Je.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})),("layout-type-2"===j||"layout-type-3"===j)&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:G,values:G,id:"title-padding",option:{id:"title-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:Je.noticePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticePadding:e})}))),Object(i.createElement)(f,{title:"Notice Settings",className:"affx-panel-label",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Heading Tag","affiliatex"),value:O,className:"affiliate-blocks-option",options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"}],onChange:e=>t({titleTag1:e})}),Object(i.createElement)(r,{label:Object(n.__)("Heading Title","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:x,onChange:e=>t({noticeTitle:e})}),"layout-type-3"!=j&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Q,values:Q,id:"title-alignment",option:{id:"title-alignment",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Je.titleAlignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({titleAlignment:e})})),Object(i.createElement)(u,{label:Object(n.__)("Show Title Icon","affiliatex"),checked:!!m,onChange:()=>t({edTitleIcon:!m})}),m&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+y.value},Object(i.createElement)("label",null,Object(n.__)("Select Title Icon","affiliatex")),Object(i.createElement)(s.a,{value:y.name,enableSearch:!0,icons:[{name:"check",value:"fa fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({noticeTitleIcon:e})}})),m&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-size"},Object(i.createElement)(b,{value:X,min:0,max:100,step:1,onChange:e=>t({noticeIconSize:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-wrapper"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:_,values:_,id:"notice-content-type",option:{id:"notice-content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",value:Je.noticeContentType.default,choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeContentType:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"text-alignment",option:{id:"text-alignment",label:Object(n.__)("Text Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Je.alignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({alignment:e})})),"list"===_&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"list-type",option:{id:"list-type",label:Object(n.__)("List Type","affiliatex"),type:"ab-radio",value:Je.noticeListType.default,choices:{unordered:Object(n.__)("Unordered","affiliatex"),ordered:Object(n.__)("Ordered","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeListType:e})})),"list"===_&&"unordered"===T&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Z,values:Z,id:"unordered-type",option:{id:"unordered-type",label:Object(n.__)("Unordered Type","affiliatex"),type:"ab-radio",value:Je.noticeunorderedType.default,choices:{icon:Object(n.__)("Show Icon","affiliatex"),bullet:Object(n.__)("Show Bullet","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeunorderedType:e})})),"list"===_&&"unordered"===T&&"icon"===Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+B.value},Object(i.createElement)("label",null,Object(n.__)("Select List Icon","affiliatex")),Object(i.createElement)(s.a,{label:"Top List Icon",value:B.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({noticeListIcon:e})}})),"list"===_&&"unordered"===T&&"icon"===Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-size"},Object(i.createElement)(b,{value:K,min:0,max:100,step:1,onChange:e=>t({noticeListIconSize:e})})))),Object(i.createElement)(f,{title:"Colors",className:"affx-panel-label",initialOpen:!1},"layout-type-1"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:N}},option:{id:"button-text-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeTextColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeTextColor:e.textColor.color})})),("layout-type-2"===j||"layout-type-3"===j)&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:R}},option:{id:"notice-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeTextTwoColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeTextTwoColor:e.textColor.color})})),"layout-type-1"===j&&Object(i.createElement)("div",{className:"affiliate-block-wrapper"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,values:L,id:"notice-bg-type",option:{id:"notice-bg-type",label:Object(n.__)("Title Background Type","affiliatex"),type:"ab-radio",value:Je.noticeBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeBgType:e})})),"solid"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:P}},option:{id:"notice-titleBg-color",label:Object(n.__)("Title Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Je.noticeBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeBgColor:e.bgColor.color})})),"gradient"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:A,onChange:e=>t({noticeBgGradient:e})}))),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:H}},option:{id:"notice-list-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeListColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeListColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:V,values:V,id:"list-bg-type",option:{id:"list-bg-type",label:Object(n.__)("Content Background Type","affiliatex"),type:"ab-radio",value:Je.listBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({listBgType:e})})),"solid"===V&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:W}},option:{id:"notice-list-bg-color",label:Object(n.__)("Content Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Je.listBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("List Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({listBgColor:e.bgColor.color})})),"gradient"===V&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:D,onChange:e=>t({listBgGradient:e})})),("layout-type-1"===j||"layout-type-3"===j)&&"list"===_&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:S}},option:{id:"notice-icon-color",label:Object(n.__)("List Icon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeIconColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeIconColor:e.textColor.color})})),"layout-type-1"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:I}},option:{id:"notice-icon2-color",label:Object(n.__)("Icon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeIconTwoColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeIconTwoColor:e.textColor.color})})),("layout-type-2"===j||"layout-type-3"===j)&&Object(i.createElement)("div",{className:"affiliate-blocks-wrapper"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:z,values:z,option:{id:"notice-bg-type",label:Object(n.__)("Background Color Type","affiliatex"),type:"ab-radio",value:Je.noticeBgTwoType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeBgTwoType:e})})),"solid"===z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:M}},option:{id:"notice-bg2-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Je.noticeBgTwoColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeBgTwoColor:e.bgColor.color})})),"gradient"===z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:F,onChange:e=>t({noticeBgTwoGradient:e})})))),Object(i.createElement)(f,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:w,values:w,option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:Je.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,values:E,option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:Je.listTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({listTypography:e})}}))),"layout-type-1"===j&&Object(i.createElement)(f,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:q,values:q,id:"notice-margin",option:{id:"notice-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:Je.noticeMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticeMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:U,values:U,id:"title-padding",option:{id:"title-padding",label:Object(n.__)("Title Padding","affiliatex"),type:"ab-spacing",value:Je.titlePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titlePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:$,values:$,id:"content-padding",option:{id:"content-padding",label:Object(n.__)("Content Padding","affiliatex"),type:"ab-spacing",value:Je.contentPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentPadding:e})}))))};const{RichText:tt}=wp.blockEditor;var at,ot,it=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-notice-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-notice-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{noticeBorder:o,noticeBorderWidth:i,noticeBorderRadius:n,boxShadow:l,alignment:r,titleTypography:c,listTypography:s,noticeTextColor:p,noticeTextTwoColor:f,noticeIconColor:b,noticeIconTwoColor:m,noticeBgType:g,noticeBgColor:h,noticeBgGradient:v,noticeBgTwoType:x,noticeBgTwoGradient:y,noticeBgTwoColor:O,noticeListColor:j,listBgType:k,listBgColor:C,listBgGradient:w,noticeContentType:E,noticeListType:_,noticeMargin:T,titlePadding:B,contentPadding:N,noticePadding:R,noticeunorderedType:S,noticeIconSize:I,noticeListIconSize:L,titleAlignment:P}=e;var A,z,F={};(F={" .affx-notice-inner-wrapper":{"border-style":o.style,"border-width":i.desktop.top+" "+i.desktop.right+" "+i.desktop.bottom+" "+i.desktop.left,"border-color":o.color.color,"border-radius":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"box-shadow":Object(u.a)(l),"margin-top":T.desktop.top,"margin-left":T.desktop.left,"margin-right":T.desktop.right,"margin-bottom":T.desktop.bottom,"text-align":r}," .affiliatex-notice-title":{color:p,"font-family":c.family,"font-weight":Object(u.c)(c.variation),"font-style":Object(u.b)(c.variation),"font-size":c.size.desktop,"line-height":c["line-height"].desktop,"text-align":P,"text-transform":c["text-transform"],"text-decoration":c["text-decoration"],"letter-spacing":c["letter-spacing"].desktop,"padding-top":B.desktop.top,"padding-left":B.desktop.left,"padding-right":B.desktop.right,"padding-bottom":B.desktop.bottom}," .affiliatex-notice-icon":{color:m,"font-size":I+"px"}," .affiliatex-notice-content":{"padding-top":N.desktop.top,"padding-left":N.desktop.left,"padding-right":N.desktop.right,"padding-bottom":N.desktop.bottom}," .affiliatex-notice-content p":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"].desktop,"text-decoration":s["text-decoration"].desktop,"letter-spacing":s["letter-spacing"].desktop,color:j,"text-align":r}," .affiliatex-notice-content li":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"].desktop,"text-decoration":s["text-decoration"].desktop,"letter-spacing":s["letter-spacing"].desktop,color:j,"justify-content":r}," .affiliatex-notice-content .affiliatex-list li::marker":{color:b}," .affiliatex-notice-content .affiliatex-list li:before":{color:b,"font-size":L+"px"}," .affx-notice-inner-wrapper.layout-type-2":{"margin-top":T.desktop.top,"margin-left":T.desktop.left,"margin-right":T.desktop.right,"margin-bottom":T.desktop.bottom,"padding-top":R.desktop.top,"padding-left":R.desktop.left,"padding-right":R.desktop.right,"padding-bottom":R.desktop.bottom}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title":{color:f,"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-title:before":{"font-size":I+"px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title:before":{color:m,"font-size":I+"px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affx-notice-inner-wrapper.layout-type-3":{"margin-top":T.desktop.top,"margin-left":T.desktop.left,"margin-right":T.desktop.right,"margin-bottom":T.desktop.bottom,"padding-top":R.desktop.top,"padding-left":R.desktop.left,"padding-right":R.desktop.right,"padding-bottom":R.desktop.bottom}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-title":{color:f,"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affiliatex-notice-content .affiliatex-list":{}," .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-title":{}," .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-content":{}})[" .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-title"].background="solid"===g?h:v.gradient,F[" .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-content"].background="solid"===k?C:w.gradient,F[" .affx-notice-inner-wrapper.layout-type-2"].background="solid"===x?O:y.gradient,F[" .affx-notice-inner-wrapper.layout-type-3"].background="solid"===x?O:y.gradient,F[" .affiliatex-notice-content .affiliatex-list"]["list-style"]="list"==E&&"unordered"==_&&"icon"==S?"none":"",z={" .affiliatex-notice-title":{"font-size":c.size.tablet,"line-height":c["line-height"],"letter-spacing":c["letter-spacing"],"padding-top":B.tablet.top,"padding-left":B.tablet.left,"padding-right":B.tablet.right,"padding-bottom":B.tablet.bottom}," .affiliatex-notice-content":{"padding-top":N.tablet.top,"padding-left":N.tablet.left,"padding-right":N.tablet.right,"padding-bottom":N.tablet.bottom}," .affiliatex-notice-content p":{"font-size":s.size.tablet,"line-height":s["line-height"],"letter-spacing":s["letter-spacing"]}," .affiliatex-notice-content li":{"font-size":s.size.tablet,"line-height":s["line-height"],"letter-spacing":s["letter-spacing"]}," .affx-notice-inner-wrapper":{"border-width":i.tablet.top+" "+i.tablet.right+" "+i.tablet.bottom+" "+i.tablet.left,"border-radius":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left,"margin-top":T.tablet.top,"margin-left":T.tablet.left,"margin-right":T.tablet.right,"margin-bottom":T.tablet.bottom}," .affx-notice-inner-wrapper.layout-type-3":{"margin-top":T.tablet.top,"margin-left":T.tablet.left,"margin-right":T.tablet.right,"margin-bottom":T.tablet.bottom,"padding-top":R.tablet.top,"padding-left":R.tablet.left,"padding-right":R.tablet.right,"padding-bottom":R.tablet.bottom}," .affx-notice-inner-wrapper.layout-type-2":{"margin-top":T.tablet.top,"margin-left":T.tablet.left,"margin-right":T.tablet.right,"margin-bottom":T.tablet.bottom,"padding-top":R.tablet.top,"padding-left":R.tablet.left,"padding-right":R.tablet.right,"padding-bottom":R.tablet.bottom}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}},A={" .affiliatex-notice-title":{"font-size":c.size.mobile,"line-height":c["line-height"],"letter-spacing":c["letter-spacing"],"padding-top":B.mobile.top,"padding-left":B.mobile.left,"padding-right":B.mobile.right,"padding-bottom":B.mobile.bottom}," .affiliatex-notice-content":{"padding-top":N.mobile.top,"padding-left":N.mobile.left,"padding-right":N.mobile.right,"padding-bottom":N.mobile.bottom}," .affiliatex-notice-content p":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-notice-content li":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affx-notice-inner-wrapper":{"border-width":i.mobile.top+" "+i.mobile.right+" "+i.mobile.bottom+" "+i.mobile.left,"border-radius":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left,"margin-top":T.mobile.top,"margin-left":T.mobile.left,"margin-right":T.mobile.right,"margin-bottom":T.mobile.bottom}," .affx-notice-inner-wrapper.layout-type-3":{"margin-top":T.mobile.top,"margin-left":T.mobile.left,"margin-right":T.mobile.right,"margin-bottom":T.mobile.bottom,"padding-top":R.mobile.top,"padding-left":R.mobile.left,"padding-right":R.mobile.right,"padding-bottom":R.mobile.bottom}," .affx-notice-inner-wrapper.layout-type-2":{"margin-top":T.mobile.top,"margin-left":T.mobile.left,"margin-right":T.mobile.right,"margin-bottom":T.mobile.bottom,"padding-top":R.mobile.top,"padding-left":R.mobile.left,"padding-right":R.mobile.right,"padding-bottom":R.mobile.bottom}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}};var M="";return M=Object(d.a)(F,`#${t}-${a}`),(M+=Object(d.a)(z,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(A,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-notice-style",l))},[e]);const{Fragment:r}=wp.element,{titleTypography:c,listTypography:s,titleTag1:p,layoutStyle:f,noticeTitle:b,noticeTitleIcon:m,noticeListItems:g,noticeListType:h,noticeContent:v,noticeContentType:x,noticeListIcon:y,noticeunorderedType:O,edTitleIcon:j}=e,C=j?"affiliatex-icon-"+m.name:"",w=p;let E,_;if("Default"!==c.family){const e={google:{families:[c.family+(c.variation?":"+c.variation:"")]}};E=Object(i.createElement)(k,{config:e})}if("Default"!==s.family){const e={google:{families:[s.family+(s.variation?":"+s.variation:"")]}};_=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(r,null,Object(i.createElement)(et,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-notice-style-"+l,className:"affx-notice-wrapper"+(a?" "+a:"")},Object(i.createElement)("div",{className:"affx-notice-inner-wrapper "+f},"layout-type-3"===f&&Object(i.createElement)("span",{className:"affiliatex-notice-icon affiliatex-icon afx-icon-before "+C}),Object(i.createElement)("div",{className:"affx-notice-inner"},Object(i.createElement)(w,{className:"affiliatex-notice-title affiliatex-icon afx-icon-before "+C},Object(i.createElement)(tt,{value:b,className:"affiliatex-title",onChange:e=>t({noticeTitle:e})})),Object(i.createElement)("div",{className:"affiliatex-notice-content"},Object(i.createElement)("div",{className:"list-wrapper"},"list"===x&&"bullet"===O&&Object(i.createElement)(tt,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered bullet",placeholder:Object(n.__)("Enter new item","affiliatex"),value:g,onChange:e=>t({noticeListItems:e}),keepPlaceholderOnFocus:!0}),"list"===x&&"icon"===O&&Object(i.createElement)(tt,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered affiliatex-icon afx-icon-before affiliatex-icon-"+y.name,placeholder:Object(n.__)("Enter new item","affiliatex"),value:g,onChange:e=>t({noticeListItems:e}),keepPlaceholderOnFocus:!0}),"paragraph"===x&&Object(i.createElement)(tt,{tagName:"p",value:v,placeholder:Object(n.__)("Notice Content","affiliatex"),className:"affiliatex-content",onChange:e=>t({noticeContent:e})})))))),E,_)},nt=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,titleTag1:l,layoutStyle:r,noticeTitle:c,noticeTitleIcon:s,noticeListItems:p,noticeListType:f,noticeContent:d,noticeContentType:u,noticeListIcon:b,noticeunorderedType:m,edTitleIcon:g}=e,h=g?"affiliatex-icon-"+s.name:"",v=l;return Object(i.createElement)("div",{id:"affiliatex-notice-style-"+o,className:"affx-notice-wrapper"+(t?" "+t:"")},Object(i.createElement)("div",{className:"affx-notice-inner-wrapper "+r},"layout-type-3"===r&&Object(i.createElement)("span",{className:"affiliatex-notice-icon affiliatex-icon afx-icon-before "+h}),Object(i.createElement)("div",{className:"affx-notice-inner"},Object(i.createElement)(v,{className:"affiliatex-notice-title affiliatex-icon afx-icon-before "+h},Object(i.createElement)(a.Content,{value:c,className:"affiliatex-title"})),Object(i.createElement)("div",{className:"affiliatex-notice-content"},Object(i.createElement)("div",{className:"list-wrapper"},"list"===u&&"bullet"===m&&Object(i.createElement)(a.Content,{tagName:"unordered"==f?"ul":"ol",multiline:"li",value:p,className:"affiliatex-list bullet"}),"list"===u&&"icon"===m&&Object(i.createElement)(a.Content,{tagName:"unordered"==f?"ul":"ol",multiline:"li",value:p,className:"affiliatex-list icon affiliatex-icon affiliatex-icon-"+b.name}),"paragraph"==u&&Object(i.createElement)(a.Content,{tagName:"p",value:d,placeholder:Object(n.__)("Notice Content","affiliatex"),className:"affiliatex-content"}))))))};Object(S.registerBlockType)("affiliatex/notice",{title:Object(n.__)("AffiliateX Notice","affiliatex"),description:Object(n.__)("Add a customizable notice block","affiliatex"),icon:R.e,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("Notice","affiliatex"),Object(n.__)("Message","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:Je,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(it,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(nt,{attributes:e,className:t})});const lt=AffiliateX.customizationData;var rt={block_id:{type:"string"},verdictTitle:{type:"string",default:Object(n.__)("Verdict Title.","affiliatex")},verdictContent:{type:"string",default:Object(n.__)("Start creating Verdict in seconds, and convert more of your visitors into leads.","affiliatex")},verdictLayout:{type:"string",default:"layoutOne"},verdictTitleTag:{type:"string",default:"h3"},verdictTitleTypography:{type:"object",default:{family:(null==lt||null===(at=lt.typography)||void 0===at?void 0:at.family)||"Default",variation:"n5",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},verdictContentTypography:{type:"object",default:{family:(null==lt||null===(ot=lt.typography)||void 0===ot?void 0:ot.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},contentAlignment:{type:"string",default:"center"},verdictBorder:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},verdictBorderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},verdictBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},verdictBoxPadding:{type:"object",default:{desktop:{top:"24px",left:"24px",right:"24px",bottom:"24px"},mobile:{top:"24px",left:"24px",right:"24px",bottom:"24px"},tablet:{top:"24px",left:"24px",right:"24px",bottom:"24px"}}},verdictMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},verdictBoxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},edProsCons:{type:"boolean",default:!0},edVerdictRatings:{type:"boolean",default:!0},edUserRatings:{type:"boolean",default:!0},userRatingLabel:{type:"string",default:"User Ratings:"},userRatingContent:{type:"string",default:"No ratings received yet."},verdictRatings:{type:"number",default:""},verdictRatingColor:{type:"string",default:"#FFD700"},verdictRatingInactiveColor:{type:"string",default:"#808080"},verdictRatingStarSize:{type:"number",default:25},edverdictTotalScore:{type:"boolean",default:!0},verdictTotalScore:{type:"decimalPoint",default:8.5},ratingContent:{type:"string",default:"Our Score"},scoreTextColor:{type:"string",default:"#FFFFFF"},scoreBgTopColor:{type:"string",default:"#2670FF"},scoreBgBotColor:{type:"string",default:"#262B33"},edRatingsArrow:{type:"boolean",default:!0},verdictArrowColor:{type:"string",default:"#2670FF"},verdictTitleColor:{type:"string",default:"#060C0E"},verdictContentColor:{type:"string",default:(null==lt?void 0:lt.fontColor)||"#292929"},ratingAlignment:{type:"string",default:"left"},verdictBgType:{type:"string",default:"solid"},verdictBgColorSolid:{type:"string",default:"#FFFFFF"},verdictBgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}}},ct=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{PanelBody:o,ToggleControl:l,TextControl:r}=wp.components,{verdictLayout:s,edProsCons:f,verdictTitleTypography:d,verdictContentTypography:u,contentAlignment:b,verdictBorder:m,verdictBorderWidth:g,verdictBorderRadius:h,verdictBoxPadding:v,verdictMargin:x,verdictBoxShadow:y,verdictTitleColor:O,verdictContentColor:j,verdictBgType:k,verdictBgColorSolid:C,verdictBgColorGradient:w,edverdictTotalScore:E,scoreTextColor:_,scoreBgTopColor:T,scoreBgBotColor:B,verdictTotalScore:N,ratingContent:R,edRatingsArrow:S,verdictArrowColor:I,ratingAlignment:L,verdictTitleTag:P}=e;return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(o,{title:Object(n.__)("Layout Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-verdict-layout"},Object(i.createElement)(qe.SelectControl,{value:s,options:[{value:"layoutOne",label:"Layout One"},{value:"layoutTwo",label:"Layout Two"}],onChange:e=>t({verdictLayout:e})}))),Object(i.createElement)(o,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-verdict-general"},Object(i.createElement)(qe.SelectControl,{label:Object(n.__)("Verdict Heading Tag","affiliatex"),value:P,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({verdictTitleTag:e})}),"layoutTwo"===s&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Display arrow","affiliatex"),checked:!!S,onChange:()=>t({edRatingsArrow:!S})})),"layoutOne"===s&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Show Pros and Cons","affiliatex"),checked:!!f,onChange:()=>t({edProsCons:!f})})),"layoutTwo"===s&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:b,values:b,id:"content-alignment",option:{id:"content-alignment",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:rt.contentAlignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({contentAlignment:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:y,values:y,id:"verdict-box-shadow",option:{id:"verdict-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:rt.verdictBoxShadow.default},hasRevertButton:!0,onChange:e=>t({verdictBoxShadow:e})})))),Object(i.createElement)(o,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:m,values:m,id:"verdict-border",option:{id:"verdict-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:rt.verdictBorder.default},hasRevertButton:!0,onChange:e=>t({verdictBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:g,values:g,id:"verdict-border-width",option:{id:"verdict-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:rt.verdictBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"verdict-border-radius",option:{id:"verdict-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:rt.verdictBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictBorderRadius:e})}))),"layoutOne"===s&&Object(i.createElement)(o,{title:Object(n.__)("Rating Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Score Rating","affiliatex"),checked:!!E,onChange:()=>t({edverdictTotalScore:!E})})),E&&Object(i.createElement)("div",{className:"affx-verdict-rating-number"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(qe.RangeControl,{label:Object(n.__)("Total Score","affiliatex"),value:N,min:0,max:10,step:.5,onChange:e=>t({verdictTotalScore:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(r,{label:Object(n.__)("Rating Score Content","affiliatex"),className:"affx-input-field",value:R,onChange:e=>t({ratingContent:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,values:L,id:"title-alignment",option:{id:"title-alignment",label:Object(n.__)("Rating Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:rt.ratingAlignment.default,choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({ratingAlignment:e})})))),Object(i.createElement)(o,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:O}},option:{id:"title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.verdictTitleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictTitleColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:j}},option:{id:"content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.verdictContentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictContentColor:e.textColor.color})})),"layoutOne"===s&&E&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:_},bgTopColor:{color:T},bgBotColor:{color:B}},option:{id:"score-box-color",label:Object(n.__)("Score Box Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.scoreTextColor.default},bgTopColor:{color:rt.scoreBgTopColor.default},bgBotColor:{color:rt.scoreBgBotColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color","affiliatex")},{id:"bgTopColor",title:Object(n.__)("Top Background Color","affiliatex")},{id:"bgBotColor",title:Object(n.__)("Bottom Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({scoreTextColor:e.textColor.color,scoreBgTopColor:e.bgTopColor.color,scoreBgBotColor:e.bgBotColor.color})})),"layoutTwo"===s&&S&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:I}},option:{id:"arrow-color",label:Object(n.__)("Arrow Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.verdictArrowColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Arrow Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictArrowColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"pros-bg-type",option:{id:"pros-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:rt.verdictBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({verdictBgType:e})})),"solid"===k&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:C}},option:{id:"arrow-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:rt.verdictBgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictBgColorSolid:e.bgColor.color})})),"gradient"===k&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:w,onChange:e=>t({verdictBgColorGradient:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-verdict-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option verdict-title-typography"},Object(i.createElement)(c.a,{value:d,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:rt.verdictTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({verdictTitleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option verdict-content-typography"},Object(i.createElement)(c.a,{value:u,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:rt.verdictContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({verdictContentTypography:e})}})))),Object(i.createElement)(o,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-verdict-general"},Object(i.createElement)(c.a,{value:v,values:v,id:"verdict-box-padding",option:{id:"verdict-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:rt.verdictBoxPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictBoxPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:x,values:x,id:"verdict-margin",option:{id:"verdict-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:rt.verdictMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictMargin:e})}))))};const{RichText:st,InnerBlocks:pt}=wp.blockEditor,{TextControl:ft}=wp.components;var dt=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-verdict-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-verdict-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{verdictTitleTypography:o,verdictContentTypography:i,contentAlignment:n,verdictBorder:l,verdictBorderWidth:r,verdictBorderRadius:c,verdictBoxPadding:s,verdictMargin:p,verdictBoxShadow:f,verdictTitleColor:b,verdictContentColor:m,verdictArrowColor:g,scoreTextColor:h,scoreBgTopColor:v,scoreBgBotColor:x,verdictBgType:y,verdictBgColorSolid:O,verdictBgColorGradient:j,ratingAlignment:k}=e;var C,w,E={};(E={" .affblk-verdict-wrapper":{"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color,"border-radius":c.desktop.top+" "+c.desktop.right+" "+c.desktop.bottom+" "+c.desktop.left,"padding-top":s.desktop.top,"padding-left":s.desktop.left,"padding-right":s.desktop.right,"padding-bottom":s.desktop.bottom,"margin-top":p.desktop.top,"margin-left":p.desktop.left,"margin-right":p.desktop.right,"margin-bottom":p.desktop.bottom},".wp-block-affiliatex-verdict .verdict-layout-2":{"text-align":n},".wp-block-affiliatex-verdict .verdict-title":{color:b,"font-family":o.family,"text-decoration":o["text-decoration"],"font-weight":Object(u.c)(o.variation),"font-style":Object(u.b)(o.variation),"font-size":o.size.desktop,"line-height":o["line-height"].desktop,"text-transform":o["text-transform"],"letter-spacing":o["letter-spacing"].desktop},".wp-block-affiliatex-verdict .verdict-content":{color:m,"font-family":i.family,"text-decoration":i["text-decoration"],"font-weight":Object(u.c)(i.variation),"font-style":Object(u.b)(i.variation),"font-size":i.size.desktop,"line-height":i["line-height"].desktop,"text-transform":i["text-transform"],"letter-spacing":i["letter-spacing"].desktop}," .verdict-user-rating-wrapper .components-base-control__field > .components-text-control__input":{color:m}," .verdict-user-rating-wrapper":{color:m},".wp-block-affiliatex-verdict .verdict-layout-2.display-arrow .affx-btn-inner .affiliatex-button::after":{background:g},".wp-block-affiliatex-verdict .verdict-layout-1 .components-base-control__field > .components-text-control__input":{color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .num":{color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .main-text-holder":{"flex-direction":"left"==k?"row-reverse":"row"},".wp-block-affiliatex-verdict .verdict-layout-1 .affx-verdict-rating-number":{color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .num":{"background-color":v,color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .rich-content":{"background-color":x,color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .rich-content::after":{"border-top":"5px solid "+x},".wp-block-affiliatex-verdict .verdict-layout-1 .block-editor-rich-text__editable.affx-rating-input-content.rich-text":{"background-color":x},".wp-block-affiliatex-verdict .verdict-layout-1 .block-editor-rich-text__editable.affx-rating-input-content.rich-text::after":{"border-top":"5px solid "+x}," .affblk-verdict-wrapper ":{}})[" .affblk-verdict-wrapper"].background="solid"===y?O:j.gradient,E[" .affblk-verdict-wrapper"]["box-shadow"]=Object(u.a)(f)?Object(u.a)(f):"",w={" .affblk-verdict-wrapper":{"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-radius":c.tablet.top+" "+c.tablet.right+" "+c.tablet.bottom+" "+c.tablet.left,"padding-top":s.tablet.top,"padding-left":s.tablet.left,"padding-right":s.tablet.right,"padding-bottom":s.tablet.bottom,"margin-top":p.tablet.top,"margin-left":p.tablet.left,"margin-right":p.tablet.right,"margin-bottom":p.tablet.bottom},".wp-block-affiliatex-verdict .verdict-title":{"font-size":o.size.tablet,"line-height":o["line-height"].tablet,"letter-spacing":o["letter-spacing"].tablet},".wp-block-affiliatex-verdict .verdict-content":{"font-size":i.size.tablet,"line-height":i["line-height"].tablet,"letter-spacing":i["letter-spacing"].tablet}},C={" .affblk-verdict-wrapper":{"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-radius":c.mobile.top+" "+c.mobile.right+" "+c.mobile.bottom+" "+c.mobile.left,"padding-top":s.mobile.top,"padding-left":s.mobile.left,"padding-right":s.mobile.right,"padding-bottom":s.mobile.bottom,"margin-top":p.mobile.top,"margin-left":p.mobile.left,"margin-right":p.mobile.right,"margin-bottom":p.mobile.bottom},".wp-block-affiliatex-verdict .verdict-title":{"font-size":o.size.mobile,"line-height":o["line-height"].mobile,"letter-spacing":o["letter-spacing"].mobile},".wp-block-affiliatex-verdict .verdict-content":{"font-size":i.size.mobile,"line-height":i["line-height"].mobile,"letter-spacing":i["letter-spacing"].mobile}};var _="";return _=Object(d.a)(E,`#${t}-${a}`),(_+=Object(d.a)(w,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(C,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-verdict-style",l))},[e]);const{verdictLayout:r,verdictTitle:c,verdictContent:s,edverdictTotalScore:p,verdictTotalScore:f,ratingContent:b,edRatingsArrow:m,edProsCons:g,verdictTitleTag:h,ratingAlignment:v,verdictTitleTypography:x,verdictContentTypography:y}=e,O=h,j="layoutOne"===r?" verdict-layout-1":"layoutTwo"===r?" verdict-layout-2":"",C=p?" number-rating":"",w=m?" display-arrow":"",{Fragment:E}=wp.element;let _,T;if("Default"!==x.family){const e={google:{families:[x.family+(x.variation?":"+x.variation:"")]}};_=Object(i.createElement)(k,{config:e})}if("Default"!==y.family){const e={google:{families:[y.family+(y.variation?":"+y.variation:"")]}};T=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(E,null,Object(i.createElement)(ct,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-verdict-style-"+l,className:a},Object(i.createElement)("div",{className:"affblk-verdict-wrapper"},Object(i.createElement)("div",{className:j+w},Object(i.createElement)("div",{className:"main-text-holder"},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)(O,{className:"verdict-title"},Object(i.createElement)(st,{placeholder:Object(n.__)("Enter Verdict Title","affiliatex"),value:c,onChange:e=>t({verdictTitle:e})})),Object(i.createElement)(st,{tagName:"p",placeholder:Object(n.__)("Enter Verdict Content","affiliatex"),value:s,className:"verdict-content",onChange:e=>t({verdictContent:e})})),"layoutOne"===r&&Object(i.createElement)(E,null,1==p&&Object(i.createElement)("div",{className:`affx-verdict-rating-number${C} ${"right"==v?"align-right":"align-left"}`},Object(i.createElement)(ft,{className:"affx-rating-input-number num",value:f}),Object(i.createElement)(st,{value:b,className:"affx-rating-input-content",onChange:e=>t({ratingContent:e})})))),"layoutOne"===r&&Object(i.createElement)(E,null,g&&Object(i.createElement)(pt,{template:[["affiliatex/pros-and-cons",{prosListBgColor:"#fff",consListBgColor:"#fff",alignment:"left",margin:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}}]],templateLock:"all"})),"layoutTwo"===r&&Object(i.createElement)(pt,{template:[["affiliatex/buttons",{buttonAlignment:"center"}]],templateLock:"all"})))),_,T)},ut=({attributes:e,className:t,clientId:a})=>{const{RichText:o,InnerBlocks:n}=wp.blockEditor,{block_id:l,verdictLayout:r,verdictTitle:c,verdictContent:s,edverdictTotalScore:p,verdictTotalScore:f,ratingContent:d,edRatingsArrow:u,edProsCons:b,verdictTitleTag:m,ratingAlignment:g}=e,h=m,v="layoutOne"===r?" verdict-layout-1":"layoutTwo"===r?" verdict-layout-2":"",x=p?" number-rating":"",y=u?" display-arrow":"";return Object(i.createElement)("div",{id:"affiliatex-verdict-style-"+l,className:t},Object(i.createElement)("div",{className:"affblk-verdict-wrapper"},Object(i.createElement)("div",{className:v+y},Object(i.createElement)("div",{className:"main-text-holder"},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)(h,{className:"verdict-title"},Object(i.createElement)(o.Content,{value:c})),Object(i.createElement)(o.Content,{tagName:"p",className:"verdict-content",value:s})),"layoutOne"===r&&1==p&&Object(i.createElement)("div",{className:`affx-verdict-rating-number${x} ${"right"==g?"align-right":"align-left"}`},Object(i.createElement)("span",{className:"num"},f),Object(i.createElement)("div",{className:"rich-content"},Object(i.createElement)(o.Content,{className:"rating-content",value:d})))),"layoutOne"===r&&b&&Object(i.createElement)(n.Content,null),"layoutTwo"===r&&Object(i.createElement)(n.Content,null))))};Object(S.registerBlockType)("affiliatex/verdict",{title:Object(n.__)("AffiliateX Verdict","affiliatex"),description:Object(n.__)("Add a customizable Verdict.","affiliatex"),icon:R.p,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("verdict","affiliatex")],attributes:rt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(dt,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(ut,{attributes:e,className:t})});var bt,mt,gt,ht,vt,xt,yt=a(35);const Ot=AffiliateX.customizationData;var jt=Object(yt.applyFilters)("affx_single_product_attributes",{block_id:{type:"string"},productLayout:{type:"string",default:"layoutOne"},productLayoutOptions:{type:"array",default:[{value:"layoutOne",label:"Layout One"},{value:"layoutTwo",label:"Layout Two"},{value:"layoutThree",label:"Layout Three"}]},productRibbonLayout:{type:"string",default:"one"},productTitle:{type:"string",default:"Title"},productTitleTag:{type:"string",default:"h2"},productTitleAlign:{type:"string",default:"left"},productPricingAlign:{type:"string",default:"left"},productStarRatingAlign:{type:"string",default:"left"},productRatingAlign:{type:"string",default:"right"},productTitleTypography:{type:"object",default:{family:(null==Ot||null===(bt=Ot.typography)||void 0===bt?void 0:bt.family)||"Default",variation:"n5",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.333",mobile:"1.333",tablet:"1.333"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productTitleColor:{type:"string",default:"#060c0e"},productImageWidth:{type:"string",default:"inherit"},productImageCustomWidth:{type:"string",default:"33"},productImageType:{type:"string",default:"default"},productImageExternal:{type:"string",default:""},productImageSiteStripe:{type:"string",default:""},productSubTitle:{type:"string",default:"Subtitle"},productSubTitleTag:{type:"string",default:"h6"},productSubtitleAlign:{type:"string",default:"left"},productSubtitleTypography:{type:"object",default:{family:(null==Ot||null===(mt=Ot.typography)||void 0===mt?void 0:mt.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productSubtitleColor:{type:"string",default:"#A3ACBF"},productIconList:{type:"string",default:{name:"check-circle-outline",value:"far fa-check-circle"}},productContent:{type:"string",default:"You can have short product description here. It can be added as and enable/disable toggle option from which user can have control on it."},productContentType:{type:"string",default:"paragraph"},ContentListType:{type:"string",default:"unordered"},PricingType:{type:"string",default:"picture"},productContentList:{type:"array",filterElements:!0,default:[]},productContentAlign:{type:"string",default:"left"},productContentTypography:{type:"object",default:{family:(null==Ot||null===(gt=Ot.typography)||void 0===gt?void 0:gt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productContentColor:{type:"string",default:(null==Ot?void 0:Ot.fontColor)||"#292929"},productRatingColor:{type:"string",default:"#FFB800"},pricingColor:{type:"string",default:"#262B33"},pricingHoverColor:{type:"string",default:"#A3ACBF"},ratingInactiveColor:{type:"string",default:"#808080"},ImgID:{type:"number",default:""},ImgUrl:{type:"string",default:AffiliateX.pluginUrl+"app/src/images/fallback.jpg"},ImgAlt:{type:"string",default:""},contentMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},contentSpacing:{type:"object",default:{desktop:{top:"30px",left:"25px",right:"25px",bottom:"30px"},mobile:{top:"30px",left:"25px",right:"25px",bottom:"30px"},tablet:{top:"30px",left:"25px",right:"25px",bottom:"30px"}}},productBorderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},productBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},productShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},productImageAlign:{type:"string",default:"left"},productPrice:{type:"string",default:"$59"},productSalePrice:{type:"string",default:"$49"},pricingTypography:{type:"object",default:{family:(null==Ot||null===(ht=Ot.typography)||void 0===ht?void 0:ht.family)||"Default",variation:"n4",size:{desktop:"22px",mobile:"22px",tablet:"22px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productBorder:{type:"object",default:{style:"solid",color:{color:"#E6ECF7"}}},productDivider:{type:"object",default:{style:"none",width:"1",color:{color:"#E6ECF7"}}},ratings:{type:"number",default:5},numberRatings:{type:"number",default:"8.5"},ratingStarSize:{type:"number",default:25},ratingContent:{type:"string",default:"Our Score"},edRatings:{type:"boolean",default:!1},edTitle:{type:"boolean",default:!0},edSubtitle:{type:"boolean",default:!1},edPricing:{type:"boolean",default:!1},edContent:{type:"boolean",default:!0},productBgColorType:{type:"string",default:"solid"},productBgGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},productBGColor:{type:"string",default:"#fff"},ribbonText:{type:"string",default:"Sale"},ribbonBgColorType:{type:"string",default:"solid"},ribbonBGColor:{type:"string",default:"#ff0000"},ribbonBgGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},ribbonBgHoverType:{type:"string",default:"solid"},ribbonBgHoverGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},edRibbon:{type:"boolean",default:!1},ribbonColor:{type:"string",default:"#fff"},ribbonContentTypography:{type:"object",default:{family:(null==Ot||null===(vt=Ot.typography)||void 0===vt?void 0:vt.family)||"Default",variation:"n4",size:{desktop:"17px",mobile:"17px",tablet:"17px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ribbonAlign:{type:"string",default:"left"},edButton:{type:"boolean",default:!0},edProductImage:{type:"boolean",default:!0},iconColor:{type:"string",default:"#24B644"},productRateNumberColor:{type:"string",default:"#ffffff"},productRateContentColor:{type:"string",default:"#ffffff"},productRateNumBgColor:{type:"string",default:"#2670FF"},productRateContentBgColor:{type:"string",default:"#262B33"},numRatingTypography:{type:"object",default:{family:(null==Ot||null===(xt=Ot.typography)||void 0===xt?void 0:xt.family)||"Default",variation:"n4",size:{desktop:"36px",mobile:"36px",tablet:"36px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},imagePadding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}}),kt=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{TextControl:o,PanelBody:l,SelectControl:r,TextareaControl:f,ToggleControl:d}=wp.components,{productLayout:u,productLayoutOptions:b,productTitle:m,productTitleTag:g,productTitleAlign:h,productTitleTypography:v,productTitleColor:x,productSubTitle:y,productSubTitleTag:O,productSubtitleAlign:j,productSubtitleTypography:k,productSubtitleColor:C,productIconList:w,productContentType:E,productContentTypography:_,productContentAlign:T,productContentColor:B,productBorderWidth:N,productBorderRadius:R,productShadow:S,ContentListType:I,PricingType:L,productImageAlign:P,productImageWidth:A,productImageExternal:z,productImageSiteStripe:F,productImageType:M,productImageCustomWidth:H,productSalePrice:V,productPrice:W,pricingTypography:D,productBorder:q,ratingContent:U,edRatings:$,edTitle:G,edSubtitle:Z,edContent:X,edPricing:K,productRatingColor:Q,ratingInactiveColor:Y,productBgColorType:J,productBgGradient:ee,productBGColor:te,contentSpacing:ae,pricingHoverColor:oe,pricingColor:ie,contentMargin:ne,productDivider:le,ratingStarSize:re,productRibbonLayout:ce,edRibbon:se,ribbonText:pe,ribbonBGColor:fe,ribbonColor:de,ribbonContentTypography:ue,edProductImage:be,edButton:me,iconColor:ge,numberRatings:he,productPricingAlign:ve,productRatingAlign:xe,productRateNumberColor:ye,productRateContentColor:Oe,productRateNumBgColor:je,productRateContentBgColor:ke,productStarRatingAlign:Ce,numRatingTypography:we,imagePadding:Ee}=e,_e="layoutOne"===u?" product-layout-1":"layoutTwo"===u?" product-layout-2":"layoutThree"===u?" product-layout-3":"";return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(l,{title:Object(n.__)("Layout Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-layout-opt"},Object(i.createElement)(r,{value:u,options:b,onChange:e=>t({productLayout:e})}))),Object(i.createElement)(l,{title:Object(n.__)("Ribbon Settings","affiliatex"),initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Ribbon","affiliatex"),className:"affiliate-blocks-option",checked:!!se,onChange:()=>t({edRibbon:!se})}),1==se&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-ribbon-settings"},"layoutTwo"!==u&&Object(i.createElement)(r,{value:ce,options:[{value:"one",label:"Ribbon One"},{value:"two",label:"Ribbon Two"}],onChange:e=>t({productRibbonLayout:e})}),Object(i.createElement)(o,{label:Object(n.__)("Ribbon Text","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Ribbon Text","affiliatex"),value:pe,onChange:e=>t({ribbonText:e})})),Object(yt.applyFilters)("affx_single_product_ribbon_settings",null,e,t)),Object(i.createElement)(l,{title:"General Settings",className:"affx-general-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Button","affiliatex"),className:"affiliate-blocks-option",checked:!!me,onChange:()=>t({edButton:!me})}),Object(i.createElement)(d,{label:Object(n.__)("Enable Product Image","affiliatex"),className:"affiliate-blocks-option",checked:!!be,onChange:()=>t({edProductImage:!be})}),be&&" product-layout-2"!==_e&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.a,{value:P,values:P,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Image Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productImageAlign.default,choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({productImageAlign:e})}),Object(i.createElement)("br",null),Object(i.createElement)(c.a,{value:A,values:A,id:"product-image-width",option:{id:"product-content-width",label:Object(n.__)("Image Width","affiliatex"),attr:{"data-type":"width"},type:"ab-radio",value:jt.productImageWidth.default,choices:{inherit:"Inherit",custom:"Custom"}},hasRevertButton:!0,onChange:e=>t({productImageWidth:e})}),Object(i.createElement)("br",null),"custom"===A&&Object(i.createElement)(o,{label:Object(n.__)("Image width ( % )","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Image Width","affiliatex"),value:H,onChange:e=>t({productImageCustomWidth:e})})),be&&Object(i.createElement)(c.a,{value:M,values:M,id:"product-image-type",option:{id:"product-image-type",label:Object(n.__)("Image Source","affiliatex"),attr:{"data-type":"width"},type:"ab-radio",value:jt.productImageType.default,choices:{default:"Upload",external:"External",sitestripe:"SiteStripe"}},hasRevertButton:!0,onChange:e=>t({productImageType:e})}),"external"===M&&Object(i.createElement)(f,{label:Object(n.__)(Object(n.__)("External Link","affiliatex"),"affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Image Link","affiliatex"),value:z,onChange:e=>t({productImageExternal:e})}),"sitestripe"===M&&Object(i.createElement)(f,{label:Object(n.__)(Object(n.__)("SiteStripe","affiliatex"),"affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter SiteStripe Markup","affiliatex"),value:F,onChange:e=>t({productImageSiteStripe:e})}),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:q,values:q,id:"product-border",option:{id:"product-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:jt.productBorder.default},hasRevertButton:!0,onChange:e=>t({productBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"product-padding",option:{id:"product-padding",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:jt.productBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({productBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"product-padding",option:{id:"product-padding",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:jt.productBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({productBorderRadius:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"product-border-shadow",option:{id:"product-border-shadow",label:Object(n.__)("Border Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:jt.productShadow.default},hasRevertButton:!0,onChange:e=>t({productShadow:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:le,values:le,id:"product-border",option:{id:"product-border",label:Object(n.__)("Divider","affiliatex"),type:"ab-border",value:jt.productDivider.default},hasRevertButton:!0,onChange:e=>t({productDivider:e})}))),Object(i.createElement)(l,{title:"Title Settings",className:"affx-title-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Title","affiliatex"),className:"affiliate-blocks-option",checked:!!G,onChange:()=>t({edTitle:!G})}),1==G&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-title"},Object(i.createElement)(o,{label:Object(n.__)("Product Title","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Product Title","affiliatex"),value:m,onChange:e=>t({productTitle:e})}),Object(i.createElement)(r,{label:Object(n.__)("Product Heading Tag","affiliatex"),value:g,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({productTitleTag:e})}),Object(i.createElement)(c.a,{value:h,values:h,id:"product-title-align",option:{id:"product-title-align",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productTitleAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productTitleAlign:e})}))),Object(i.createElement)(l,{title:"Subtitle Settings",className:"affx-subtitle-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Subtitle","affiliatex"),className:"affiliate-blocks-option",checked:!!Z,onChange:()=>t({edSubtitle:!Z})}),1==Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-subtitle"},Object(i.createElement)(o,{label:Object(n.__)("Product Subtitle","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Product Subtitle","affiliatex"),value:y,onChange:e=>t({productSubTitle:e})}),Object(i.createElement)(r,{label:Object(n.__)("Product Subtitle Tag","affiliatex"),value:O,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({productSubTitleTag:e})}),Object(i.createElement)(c.a,{value:j,values:j,id:"product-subtitle-align",option:{id:"product-subtitle-align",label:Object(n.__)("Sub Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productSubtitleAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productSubtitleAlign:e})}))),Object(i.createElement)(l,{title:"Rating Settings",className:"affx-pricing-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Rating","affiliatex"),checked:!!$,className:"affiliate-blocks-option",onChange:()=>t({edRatings:!$})}),1==$&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,id:"rating-style",option:{id:"rating-style",type:"ab-radio",value:jt.PricingType.default,choices:{picture:Object(n.__)("Star rating","affiliatex"),number:Object(n.__)("Score Box","affiliatex")}},hasRevertButton:!0,onChange:e=>t({PricingType:e})})),1==$&&"picture"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(qe.RangeControl,{label:Object(n.__)("Star Rating size","affiliatex"),className:"affiliate-blocks-option",value:re,min:10,max:100,step:2,onChange:e=>t({ratingStarSize:e})})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-rating-number"},Object(i.createElement)(o,{type:"number",label:Object(n.__)("Rating Number","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:he,onChange:e=>t({numberRatings:e})}),Object(i.createElement)(o,{label:Object(n.__)("Rating Content","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:U,onChange:e=>t({ratingContent:e})})),1==$&&"picture"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ce,values:Ce,id:"product-rating-align",option:{id:"product-rating-align",label:Object(n.__)("Rating Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productStarRatingAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productStarRatingAlign:e})})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:xe,values:xe,id:"product-rating-align",option:{id:"product-rating-align",label:Object(n.__)("Rating Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({productRatingAlign:e})}))),Object(i.createElement)(l,{title:"Pricing Settings",className:"affx-pricing-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Pricing","affiliatex"),className:"affiliate-blocks-option",checked:!!K,onChange:()=>t({edPricing:!K})}),1==K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-pricing"},Object(i.createElement)(o,{label:Object(n.__)("Product Marked Price","affiliatex"),className:"affxduct-price",placeholder:Object(n.__)("Enter Product Price","affiliatex"),value:W,onChange:e=>t({productPrice:e})}),Object(i.createElement)(o,{label:Object(n.__)("Product Sale Price","affiliatex"),className:"affxduct-price",placeholder:Object(n.__)("Enter Product Sale Price","affiliatex"),value:V,onChange:e=>t({productSalePrice:e})}),Object(i.createElement)(c.a,{value:ve,values:ve,id:"product-pricing-align",option:{id:"product-pricing-align",label:Object(n.__)("Pricing Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productPricingAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productPricingAlign:e})}))),Object(i.createElement)(l,{title:"Content Settings",className:"affx-content-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Content","affiliatex"),className:"affiliate-blocks-option",checked:!!X,onChange:()=>t({edContent:!X})}),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,values:E,id:"product-content-type",option:{id:"product-content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",value:jt.productContentType.default,choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")}},hasRevertButton:!0,onChange:e=>t({productContentType:e})})),1==X&&"list"===E&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:I,values:I,id:"list-type",option:{id:"list-type",type:"ab-radio",value:jt.ContentListType.default,choices:{unordered:Object(n.__)("Unordered List","affiliatex"),ordered:Object(n.__)("Ordered List","affiliatex")}},hasRevertButton:!0,onChange:e=>t({ContentListType:e})})),1==X&&"list"===E&&"unordered"===I&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+w.value},Object(i.createElement)("label",null,Object(n.__)("Select List Icon","affiliatex")),Object(i.createElement)(s.a,{value:w.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({productIconList:e})}})),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productContentAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productContentAlign:e})}))),Object(i.createElement)(l,{title:"Colors",className:"affx-color-panel",initialOpen:!1},1==G&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:x}},option:{id:"title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:jt.productTitleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productTitleColor:e.textColor.color})})),1==Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:C}},option:{id:"subtitle-color",label:Object(n.__)("Subtitle Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:jt.productSubtitleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Subtitle Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productSubtitleColor:e.textColor.color})})),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:B}},option:{id:"content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:jt.productContentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productContentColor:e.textColor.color})})),1==X&&"list"===E&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{iconColor:{color:ge}},option:{id:"content-color",label:Object(n.__)("Icon Color","affiliatex"),type:"ab-color-picker",value:{iconColor:{color:jt.iconColor.default}},pickers:[{id:"iconColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({iconColor:e.iconColor.color})})),1==K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{pricingColor:{color:ie},pricingHoverColor:{color:oe}},option:{id:"pricing-color",label:Object(n.__)("Pricing Color","affiliatex"),type:"ab-color-picker",value:{pricingColor:{color:jt.pricingColor.default},pricingHoverColor:{color:jt.pricingHoverColor.default}},pickers:[{id:"pricingColor",title:Object(n.__)("Sale Price Color","affiliatex")},{id:"pricingHoverColor",title:Object(n.__)("Marked Price Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({pricingColor:e.pricingColor.color,pricingHoverColor:e.pricingHoverColor.color})})),1==$&&"picture"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:Q},ratingInactiveColor:{color:Y}},option:{id:"pricing-color",label:Object(n.__)("Rating Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:jt.productRatingColor.default},ratingInactiveColor:{color:jt.ratingInactiveColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Rating Color","affiliatex")},{id:"ratingInactiveColor",title:Object(n.__)("Inactive Rating Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productRatingColor:e.ratingColor.color,ratingInactiveColor:e.ratingInactiveColor.color})})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{productRateNumberColor:{color:ye},productRateContentColor:{color:Oe},productRateNumBgColor:{color:je},productRateContentBgColor:{color:ke}},option:{id:"score-box-color",label:Object(n.__)("Score Box Color","affiliatex"),type:"ab-color-picker",value:{productRateNumberColor:{color:jt.productRateNumberColor.default},productRateContentColor:{color:jt.productRateContentColor.default},productRateNumBgColor:{color:jt.productRateNumBgColor.default},productRateContentBgColor:{color:jt.productRateContentBgColor.default}},pickers:[{id:"productRateNumberColor",title:Object(n.__)("Score Box Color","affiliatex")},{id:"productRateContentColor",title:Object(n.__)("Content Rating Color","affiliatex")},{id:"productRateNumBgColor",title:Object(n.__)("Score Box Background Color","affiliatex")},{id:"productRateContentBgColor",title:Object(n.__)("Content Rating Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productRateNumberColor:e.productRateNumberColor.color,productRateContentColor:e.productRateContentColor.color,productRateNumBgColor:e.productRateNumBgColor.color,productRateContentBgColor:e.productRateContentBgColor.color})})),1==se&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ribbonColor:{color:de},ribbonBackgroundColor:{color:fe}},option:{id:"ribbon-color",label:Object(n.__)("Ribbon Color","affiliatex"),type:"ab-color-picker",value:{ribbonColor:{color:jt.ribbonColor.default},ribbonBackgroundColor:{color:jt.ribbonBGColor.default}},pickers:[{id:"ribbonColor",title:Object(n.__)("Text Color","affiliatex")},{id:"ribbonBackgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({ribbonColor:e.ribbonColor.color,ribbonBGColor:e.ribbonBackgroundColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-bg-type"},Object(i.createElement)(c.a,{value:J,values:J,id:"product-bg-color-type",option:{id:"product-bg-color-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:jt.productBgColorType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({productBgColorType:e})}),"solid"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:te}},option:{id:"ribbon-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:jt.productBGColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({productBGColor:e.backgroundColor.color})})),"gradient"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)("label",null,Object(n.__)("Background Grdient","affiliatex")),Object(i.createElement)(p.a,{value:ee,onChange:e=>t({productBgGradient:e})})))),Object(i.createElement)(l,{title:"Typography",className:"affx-typography-panel",initialOpen:!1},1==G&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-title-typo"},Object(i.createElement)(c.a,{value:v,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:jt.productTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({productTitleTypography:e})}})),1==Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-subtitle-typo"},Object(i.createElement)(c.a,{value:k,id:"subTitle-typography",option:{id:"subTitle-typography",label:Object(n.__)("Subtitle Typography","affiliatex"),type:"ab-typography",value:jt.productSubtitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({productSubtitleTypography:e})}})),1==K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-price-typo"},Object(i.createElement)(c.a,{value:D,id:"pricing-typography",option:{id:"pricing-typography",label:Object(n.__)("Pricing Typography","affiliatex"),type:"ab-typography",value:jt.pricingTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({pricingTypography:e})}})),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-content-typo"},Object(i.createElement)(c.a,{value:_,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:jt.productContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({productContentTypography:e})}})),1==se&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-ribbon-typo"},Object(i.createElement)(c.a,{value:ue,id:"ribbon-typography",option:{id:"ribbon-typography",label:Object(n.__)("Ribbon Text Typography","affiliatex"),type:"ab-typography",value:jt.ribbonContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ribbonContentTypography:e})}})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-ribbon-typo"},Object(i.createElement)(c.a,{value:we,id:"rating-typography",option:{id:"rating-typography",label:Object(n.__)("Score Box Typography","affiliatex"),type:"ab-typography",value:jt.numRatingTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({numRatingTypography:e})}}))),Object(i.createElement)(l,{title:"Spacing",className:"affx-general-panel",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ee,values:Ee,id:"image-padding",option:{id:"image-padding",label:Object(n.__)("Image Padding","affiliatex"),type:"ab-spacing",value:jt.imagePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({imagePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ne,values:ne,id:"content-margin",option:{id:"content-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:jt.contentMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ae,values:ae,id:"content-padding",option:{id:"content-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:jt.contentSpacing.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentSpacing:e})}))))};a(4);const{RichText:Ct,MediaUpload:wt,InnerBlocks:Et}=wp.blockEditor,{Button:_t}=wp.components;var Tt,Bt,Nt,Rt=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-single-product-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-single-product-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{productTitleAlign:o,productTitleTypography:i,productTitleColor:n,productSubtitleAlign:l,productSubtitleTypography:r,productSubtitleColor:c,productBorderWidth:s,productShadow:p,productContentTypography:f,productContentAlign:b,productContentColor:m,pricingTypography:g,productBorder:h,productDivider:v,productBgColorType:x,productBGColor:y,productBgGradient:O,contentSpacing:j,pricingHoverColor:k,pricingColor:C,contentMargin:w,ribbonBgColorType:E,ribbonBGColor:_,ribbonBgGradient:T,ribbonColor:B,ribbonContentTypography:N,iconColor:R,productRateNumBgColor:S,productRateContentBgColor:I,productRateContentColor:L,productRateNumberColor:P,productBorderRadius:A,ribbonAlign:z,numRatingTypography:F,productImageWidth:M,productImageExternal:H,productImageType:V,productImageCustomWidth:W,imagePadding:D}=e;var q,U,$={};const G="solid"===x?y:O.gradient,Z="solid"===E?_:T.gradient;($={" .affx-single-product-wrapper":{"border-width":s.desktop.top+" "+s.desktop.right+" "+s.desktop.bottom+" "+s.desktop.left,"border-radius":A.desktop.top+" "+A.desktop.right+" "+A.desktop.bottom+" "+A.desktop.left,"border-style":h.style,"border-color":h.color.color,background:G,"margin-top":w.desktop.top,"margin-left":w.desktop.left,"margin-right":w.desktop.right,"margin-bottom":w.desktop.bottom}," .affx-single-product-title":{"text-align":o,"font-family":i.family,"font-weight":Object(u.c)(i.variation),"font-style":Object(u.b)(i.variation),"font-size":i.size.desktop,"line-height":i["line-height"].desktop,"letter-spacing":i["letter-spacing"].desktop,"text-transform":i["text-transform"],"text-decoration":i["text-decoration"],color:n}," .affx-single-product-subtitle":{"text-align":l,"font-family":r.family,"font-weight":Object(u.c)(r.variation),"font-style":Object(u.b)(r.variation),"font-size":r.size.desktop,"line-height":r["line-height"].desktop,"letter-spacing":r["letter-spacing"].desktop,"text-transform":r["text-transform"],"text-decoration":r["text-decoration"],color:c}," .affx-single-product-content":{"text-align":b,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop,color:m}," .affx-single-product-content p":{color:m,"text-align":b,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop}," .affx-single-product-content ul li":{color:m,"text-align":b,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop}," .affx-sp-marked-price":{"font-family":g.family,"font-weight":Object(u.c)(g.variation),"font-style":Object(u.b)(g.variation),"font-size":g.size.desktop,"line-height":g["line-height"].desktop,"text-transform":g["text-transform"],"text-decoration":g["text-decoration"],"letter-spacing":g["letter-spacing"].desktop}," .affx-sp-sale-price":{"font-family":g.family,"font-weight":Object(u.c)(g.variation),"font-style":Object(u.b)(g.variation),"font-size":g.size.desktop,"line-height":g["line-height"].desktop,"text-transform":g["text-transform"],"letter-spacing":g["letter-spacing"].desktop}," .affx-sp-content-wrapper":{"padding-top":j.desktop.top,"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":j.desktop.bottom}," .affx-sp-price":{color:C}," .affx-sp-price .affx-sp-sale-price":{color:k}," .affx-sp-rating-number":{width:"100px"}," .affx-sp-content-wrapper .title-wrapper":{"border-style":v.style,"border-color":v.color.color,"border-bottom-width":v.width+"px"}," .affx-single-product-wrapper.product-layout-2 .title-wrapper":{"padding-top":j.desktop.top,"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-2 .affx-sp-price":{"padding-left":j.desktop.left,"padding-right":j.desktop.right}," .affx-single-product-wrapper.product-layout-2 .button-wrapper":{"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":j.desktop.bottom}," .affx-single-product-wrapper.product-layout-2 .affx-single-product-content":{"padding-left":j.desktop.left,"padding-right":j.desktop.right}," .affx-single-product-wrapper.product-layout-3 .affx-sp-inner":{"padding-top":j.desktop.top,"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":j.desktop.bottom}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-right .affx-sp-content-wrapper":{"padding-top":"0","padding-left":"24px","padding-right":"24px","padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-left .affx-sp-content-wrapper":{"padding-top":"0","padding-left":"24px","padding-right":"0","padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-left .button-wrapper":{"padding-left":"24px"}," .affx-sp-ribbon":{width:"100%","text-align":z}," .affx-sp-ribbon-title":{background:Z,"font-family":N.family,"font-weight":Object(u.c)(N.variation),"font-style":Object(u.b)(N.variation),"font-size":N.size.desktop,"line-height":N["line-height"].desktop,"text-transform":N["text-transform"],"text-decoration":N["text-decoration"],"letter-spacing":N["letter-spacing"].desktop,color:B}," .affx-sp-ribbon.ribbon-layout-2 .affx-sp-ribbon-title:before":{"border-bottom-color":Z}," .affx-sp-content.image-right .affx-sp-ribbon.ribbon-layout-2 .affx-sp-ribbon-title:before":{"border-bottom-color":"transparent","border-right-color":Z}," .affx-sp-content.image-right .affx-sp-ribbon.ribbon-layout-2 .affx-sp-ribbon-title:hover:before":{"border-bottom-color":"transparent","border-right-color":Z}," .affiliatex-icon li:before":{color:R}," .affx-rating-number":{background:S,color:P,"font-family":F.family,"font-weight":Object(u.c)(F.variation),"font-style":Object(u.b)(F.variation),"font-size":F.size.desktop,"line-height":F["line-height"].desktop,"text-transform":F["text-transform"],"text-decoration":F["text-decoration"],"letter-spacing":F["letter-spacing"].desktop}," .affx-rating-number .num":{background:S,color:P}," .affx-rating-number .label":{background:I,color:L,"font-size":"0.444em"}," .affx-rating-number .label::before":{"border-bottom-color":I}," .affx-rating-input-content:before":{"border-bottom-color":I}," .affx-rating-input-content input":{color:L,"font-family":F.family,"font-weight":Object(u.c)(F.variation),"font-style":Object(u.b)(F.variation),"font-size":F.size.desktop,"line-height":F["line-height"].desktop,"text-transform":F["text-transform"],"text-decoration":F["text-decoration"],"letter-spacing":F["letter-spacing"].desktop}," .affx-single-product-wrapper.product-layout-1 .affx-sp-img-wrapper":{}," .affx-single-product-wrapper.product-layout-3 .affx-sp-img-wrapper":{}," .affx-single-product-wrapper .affx-sp-img-wrapper":{"padding-top":D.desktop.top,"padding-left":D.desktop.left,"padding-right":D.desktop.right,"padding-bottom":D.desktop.bottom}})[" .affx-single-product-wrapper.product-layout-1 .affx-sp-img-wrapper"].flex="custom"===M?"0 0 "+W+"%":"",$[" .affx-single-product-wrapper.product-layout-3 .affx-sp-img-wrapper"].flex="custom"===M?"0 0 "+W+"%":"",$[" .affx-single-product-wrapper"]["box-shadow"]=Object(u.a)(p)?Object(u.a)(p):"",q={" .affx-single-product-wrapper":{"border-width":s.mobile.top+" "+s.mobile.right+" "+s.mobile.bottom+" "+s.mobile.left,"border-radius":A.mobile.top+" "+A.mobile.right+" "+A.mobile.bottom+" "+A.mobile.left,"margin-top":w.mobile.top,"margin-left":w.mobile.left,"margin-right":w.mobile.right,"margin-bottom":w.mobile.bottom}," .affx-single-product-title":{"font-size":i.size.mobile,"line-height":i["line-height"].mobile,"letter-spacing":i["letter-spacing"].mobile}," .affx-single-product-subtitle":{"font-size":r.size.mobile,"line-height":r["line-height"].mobile,"letter-spacing":r["letter-spacing"].mobile}," .affx-single-product-content":{"font-size":f.size.mobile,"line-height":f["line-height"].mobile,"letter-spacing":f["letter-spacing"].mobile}," .affx-sp-marked-price":{"font-size":g.size.mobile,"line-height":g["line-height"].mobile,"letter-spacing":g["letter-spacing"].mobile}," .affx-sp-sale-price":{"font-size":g.size.mobile,"line-height":g["line-height"].mobile,"letter-spacing":g["letter-spacing"].mobile}," .affx-sp-content-wrapper":{"padding-top":j.mobile.top,"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":j.mobile.bottom}," .affx-single-product-wrapper.product-layout-2 .title-wrapper":{"padding-top":j.mobile.top,"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-2 .affx-sp-price":{"padding-left":j.mobile.left,"padding-right":j.mobile.right}," .affx-single-product-wrapper.product-layout-2 .button-wrapper":{"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":j.mobile.bottom}," .affx-single-product-wrapper.product-layout-2 .affx-single-product-content":{"padding-left":j.mobile.left,"padding-right":j.mobile.right}," .affx-single-product-wrapper.product-layout-3 .affx-sp-inner":{"padding-top":j.mobile.top,"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":j.mobile.bottom}," .affx-sp-ribbon-title":{"font-size":N.size.mobile,"line-height":N["line-height"].mobile,"letter-spacing":N["letter-spacing"].mobile}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content-wrapper":{"padding-top":"0","padding-left":"0","padding-right":"0","padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-left .button-wrapper":{"padding-left":"0"}," .affx-rating-input-number":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-rating-input-number input":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-rating-input-content":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-rating-input-content input":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-single-product-wrapper .affx-sp-img-wrapper":{"padding-top":D.mobile.top,"padding-left":D.mobile.left,"padding-right":D.mobile.right,"padding-bottom":D.mobile.bottom}},U={" .affx-single-product-wrapper":{"border-width":s.tablet.top+" "+s.tablet.right+" "+s.tablet.bottom+" "+s.tablet.left,"border-radius":A.tablet.top+" "+A.tablet.right+" "+A.tablet.bottom+" "+A.tablet.left,"margin-top":w.tablet.top,"margin-left":w.tablet.left,"margin-right":w.tablet.right,"margin-bottom":w.tablet.bottom}," .affx-single-product-title":{"font-size":i.size.tablet,"line-height":i["line-height"].tablet,"letter-spacing":i["letter-spacing"].tablet}," .affx-single-product-subtitle":{"font-size":r.size.tablet,"line-height":r["line-height"].tablet,"letter-spacing":r["letter-spacing"].tablet}," .affx-single-product-content":{"font-size":f.size.tablet,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet}," .affx-sp-marked-price":{"font-size":g.size.tablet,"line-height":g["line-height"].tablet,"letter-spacing":g["letter-spacing"].tablet}," .affx-sp-sale-price":{"font-size":g.size.tablet,"line-height":g["line-height"].tablet,"letter-spacing":g["letter-spacing"].tablet}," .affx-sp-content-wrapper":{"padding-top":j.tablet.top,"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":j.tablet.bottom}," .affx-single-product-wrapper.product-layout-2 .title-wrapper":{"padding-top":j.tablet.top,"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-2 .affx-sp-price":{"padding-left":j.tablet.left,"padding-right":j.tablet.right}," .affx-single-product-wrapper.product-layout-2 .button-wrapper":{"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":j.tablet.bottom}," .affx-single-product-wrapper.product-layout-2 .affx-single-product-content":{"padding-left":j.tablet.left,"padding-right":j.tablet.right}," .affx-single-product-wrapper.product-layout-3 .affx-sp-inner":{"padding-top":j.tablet.top,"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":j.tablet.bottom}," .affx-sp-ribbon-title":{"font-size":N.size.tablet,"line-height":N["line-height"].tablet,"letter-spacing":N["letter-spacing"].tablet}," .affx-rating-input-number":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-rating-input-number input":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-rating-input-content":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-rating-input-content input":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-single-product-wrapper .affx-sp-img-wrapper":{"padding-top":D.tablet.top,"padding-left":D.tablet.left,"padding-right":D.tablet.right,"padding-bottom":D.tablet.bottom}};var X="";return X=Object(d.a)($,`#${t}-${a}`),(X+=Object(d.a)(U,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(q,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-single-product-style",l))},[e]);const{Fragment:r}=wp.element,{productLayout:c,productTitle:s,productTitleTag:p,productContent:f,productSubTitle:b,productSubTitleTag:m,productContentType:g,ContentListType:h,productContentList:v,productImageAlign:x,productSalePrice:y,productPrice:O,ImgID:j,ratings:k,edRatings:C,edTitle:w,edSubtitle:E,edContent:_,edPricing:T,PricingType:B,productRatingColor:N,ratingInactiveColor:R,ratingContent:S,ratingStarSize:I,edRibbon:L,ribbonText:P,productRibbonLayout:A,edButton:z,ImgUrl:F,productIconList:M,edProductImage:H,numberRatings:V,productPricingAlign:W,productRatingAlign:D,productImageType:q,productImageExternal:U,productImageSiteStripe:$,productStarRatingAlign:Z}=e,X="layoutOne"===c?" product-layout-1":"layoutTwo"===c?" product-layout-2":"layoutThree"===c?" product-layout-3":"",K="one"===A?" ribbon-layout-1":"two"===A?" ribbon-layout-2":"",Q="picture"===B?"star-rating":"number"===B?"number-rating":"",Y=1==H?"image-"+x:"",J=0==H?"no-image":"",ee="number"===B?"rating-align-"+D:"",te=e=>{t({ImgID:e.id,ImgUrl:e.url,ImgAlt:e.alt})},ae=e=>{t({ImgID:e.id,ImgUrl:e.url,ImgAlt:e.alt})},oe=()=>{t({ImgID:null,ImgUrl:null,ImgAlt:null})},ie="default"===q?F:U,ne="sitestripe"===q&&""!==$,le=p,re=m,ce=[["affiliatex/buttons",{buttonLabel:"Buy Now",buttonMargin:{desktop:{top:"16px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"16px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"16px",left:"0px",right:"0px",bottom:"0px"}}}]];return Object(i.createElement)(r,null,Object(i.createElement)(kt,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-single-product-style-"+l,className:a},c&&("layoutOne"==c||"layoutTwo"==c||"layoutThree"==c)&&Object(i.createElement)("div",{className:"affx-single-product-wrapper"+X},Object(i.createElement)("div",{className:"affx-sp-inner"},Object(i.createElement)("div",{className:`affx-sp-content ${Y} ${J}`}," product-layout-2"!=X&&Object(i.createElement)(r,null,1==L&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Ribbon Text","affiliatex"),className:"affx-sp-ribbon-title",value:P,onChange:e=>t({ribbonText:e})})),1==H&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ne?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:$}}):Object(i.createElement)("img",{src:ie}),j?Object(i.createElement)("div",{className:"upload-btn-wrapper"},o?Object(i.createElement)(wt,{onSelect:ae,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"components-button affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(_t,{className:"components-button remove-image",onClick:oe},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(wt,{onSelect:te,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affx-sp-content-wrapper "+(1==L&&"has-ribbon")},Object(i.createElement)("div",{className:`title-wrapper affx-${Q} ${ee}`},Object(i.createElement)("div",{className:"affx-title-left"},1==w&&Object(i.createElement)(le,{className:"affx-single-product-title"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Title","affiliatex"),value:s,onChange:e=>t({productTitle:e})})),1==E&&Object(i.createElement)(re,{className:"affx-single-product-subtitle"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:b,onChange:e=>t({productSubTitle:e})}))),1==C&&"picture"===B&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+Z},Object(i.createElement)(G.Rating,{onClick:e=>t({ratings:e}),ratingValue:k,fillColor:N,emptyColor:R,size:I})),1==C&&"number"===B&&Object(i.createElement)("div",{className:"affx-rating-number"},Object(i.createElement)(Ct,{tagName:"span",type:"number",placeholder:"0",value:V,className:"affx-rating-num num"}),Object(i.createElement)(Ct,{tagName:"span",type:"text",placeholder:"score label",value:S,className:"affx-rating-number-label label"}))),1==T&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+W},Object(i.createElement)(Ct,{className:"affx-sp-marked-price",value:y,onChange:e=>t({productSalePrice:e})}),Object(i.createElement)(Ct,{tagName:"del",className:"affx-sp-sale-price",value:O,onChange:e=>t({productPrice:e})})),1==_&&Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===g&&Object(i.createElement)(Ct,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+M.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:v,onChange:e=>t({productContentList:e}),keepPlaceholderOnFocus:!0}),"paragraph"===g&&Object(i.createElement)(Ct,{tagName:"p",value:f,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>t({productContent:e})})),1==z&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(Et,{orientation:"horizontal",template:ce,templateLock:"all"}))))," product-layout-2"==X&&Object(i.createElement)(r,null,Object(i.createElement)("div",{className:`title-wrapper affx-${Q} ${ee}`},Object(i.createElement)("div",{className:"affx-title-left"},1==L&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Ribbon Text","affiliatex"),className:"affx-sp-ribbon-title",value:P,onChange:e=>t({ribbonText:e})})),1==w&&Object(i.createElement)(le,{className:"affx-single-product-title"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Title","affiliatex"),value:s,onChange:e=>t({productTitle:e})})),1==E&&Object(i.createElement)(re,{className:"affx-single-product-subtitle"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:b,onChange:e=>t({productSubTitle:e})}))),1==C&&"picture"===B&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+Z},Object(i.createElement)(G.Rating,{onClick:e=>t({ratings:e}),ratingValue:k,fillColor:N,emptyColor:R,size:I})),1==C&&"number"===B&&Object(i.createElement)("div",{className:"affx-rating-number"},Object(i.createElement)(Ct,{tagName:"span",type:"number",placeholder:"0",value:V,className:"affx-rating-num num"}),Object(i.createElement)(Ct,{tagName:"span",type:"text",placeholder:"score label",value:S,className:"affx-rating-number-label label"}))),1==H&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ne?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:$}}):Object(i.createElement)("img",{src:ie}),j?Object(i.createElement)("div",{className:"upload-btn-wrapper"},o?Object(i.createElement)(wt,{onSelect:ae,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"components-button affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(_t,{className:"components-button remove-image",onClick:oe},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(wt,{onSelect:te,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})))," product-layout-2"==X&&1==T&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+W},Object(i.createElement)(Ct,{className:"affx-sp-marked-price",value:y,onChange:e=>t({productSalePrice:e})}),Object(i.createElement)(Ct,{tagName:"del",className:"affx-sp-sale-price",value:O,onChange:e=>t({productPrice:e})}))," product-layout-2"==X&&1==_&&Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===g&&Object(i.createElement)(Ct,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+M.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:v,onChange:e=>t({productContentList:e}),keepPlaceholderOnFocus:!0}),"paragraph"===g&&Object(i.createElement)(Ct,{tagName:"p",value:f,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>t({productContent:e})}))," product-layout-2"==X&&1==_&&Object(i.createElement)(r,null,1==z&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(Et,{orientation:"horizontal",template:ce,templateLock:"all"})))," product-layout-3"==X&&1==_&&Object(i.createElement)(r,null,1==z&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(Et,{orientation:"horizontal",template:ce,templateLock:"all"})))))),Object(yt.applyFilters)("affx_add_single_product_layouts",null,e,t)))},St=({attributes:e,className:t})=>{const{RichText:a,InnerBlocks:o}=wp.blockEditor,{block_id:l,productLayout:r,productTitle:c,productTitleTag:s,productContent:p,productSubTitle:f,productSubTitleTag:d,productContentType:u,ContentListType:b,productContentList:m,productImageAlign:g,productSalePrice:h,productPrice:v,productIconList:x,ratings:y,edRatings:O,edTitle:j,edSubtitle:k,edContent:C,edPricing:w,PricingType:E,productRatingColor:_,ratingInactiveColor:T,ratingContent:B,ratingStarSize:N,edButton:R,edProductImage:S,edRibbon:I,productRibbonLayout:L,ribbonText:P,ImgUrl:A,numberRatings:z,productRatingAlign:F,productStarRatingAlign:M,productImageType:H,productImageExternal:V,productImageSiteStripe:W,productPricingAlign:D}=e,q=s,U=d,$="layoutOne"===r?" product-layout-1":"layoutTwo"===r?" product-layout-2":"layoutThree"===r?" product-layout-3":"",Z="picture"===E?"star-rating":"number"===E?"number-rating":"",X=1==S?"image-"+g:"",K="one"===L?" ribbon-layout-1":"two"===L?" ribbon-layout-2":"",Q=0==S?"no-image":"",Y="number"===E?"rating-align-"+F:"",J="default"===H?A:V,ee="sitestripe"===H&&""!==W;return Object(i.createElement)("div",{id:"affiliatex-single-product-style-"+l,className:t},r&&("layoutOne"==r||"layoutTwo"==r||"layoutThree"==r)&&Object(i.createElement)("div",{className:"affx-single-product-wrapper"+$},Object(i.createElement)("div",{className:"affx-sp-inner"},Object(i.createElement)("div",{className:`affx-sp-content ${X} ${Q}`}," product-layout-2"!=$&&Object(i.createElement)(i.Fragment,null,1==I&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)("div",{className:"affx-sp-ribbon-title"},Object(i.createElement)(a.Content,{value:P}))),1==S&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ee?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:W}}):Object(i.createElement)("img",{src:J})),Object(i.createElement)("div",{className:"affx-sp-content-wrapper"},Object(i.createElement)("div",{className:`title-wrapper affx-${Z} ${Y}`},Object(i.createElement)("div",{className:"affx-title-left"},1==j&&Object(i.createElement)(q,{className:"affx-single-product-title"},Object(i.createElement)(a.Content,{value:c})),1==k&&Object(i.createElement)(U,{className:"affx-single-product-subtitle"},Object(i.createElement)(a.Content,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:f}))),1==O&&"picture"===E&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+M},Object(i.createElement)(G.RatingView,{ratingValue:y,fillColor:_,emptyColor:T,size:N})),1==O&&"number"===E&&Object(i.createElement)("div",{className:"affx-rating-box affx-rating-number"},Object(i.createElement)("span",{className:"num"},z),Object(i.createElement)("span",{className:"label"},B))),w&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+D},Object(i.createElement)("div",{className:"affx-sp-marked-price"},h),Object(i.createElement)("div",{className:"affx-sp-sale-price"},Object(i.createElement)("del",null,v))),Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===u&&Object(i.createElement)(a.Content,{tagName:"unordered"==b?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+x.name,value:m}),"paragraph"===u&&Object(i.createElement)(a.Content,{tagName:"p",value:p,className:"affiliatex-content"})),1==R&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(o.Content,null))))," product-layout-2"==$&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:`title-wrapper affx-${Z} ${Y}`},Object(i.createElement)("div",{className:"affx-title-left"},1==I&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)("div",{className:"affx-sp-ribbon-title"},Object(i.createElement)(a.Content,{value:P}))),1==j&&Object(i.createElement)(q,{className:"affx-single-product-title"},Object(i.createElement)(a.Content,{value:c})),1==k&&Object(i.createElement)(U,{className:"affx-single-product-subtitle"},Object(i.createElement)(a.Content,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:f}))),1==O&&"picture"===E&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+M},Object(i.createElement)(G.RatingView,{ratingValue:y,fillColor:_,emptyColor:T,size:N})),1==O&&"number"===E&&Object(i.createElement)("div",{className:"affx-rating-box affx-rating-number"},Object(i.createElement)("span",{className:"num"},z),Object(i.createElement)("span",{className:"label"},B))),1==S&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ee?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:W}}):Object(i.createElement)("img",{src:J})))," product-layout-2"==$&&1==w&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+D},Object(i.createElement)("div",{className:"affx-sp-marked-price"},h),Object(i.createElement)("div",{className:"affx-sp-sale-price"},Object(i.createElement)("del",null,v)))," product-layout-2"==$&&1==C&&Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===u&&Object(i.createElement)(a.Content,{tagName:"unordered"==b?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+x.name,value:m}),"paragraph"===u&&Object(i.createElement)(a.Content,{tagName:"p",value:p,className:"affiliatex-content"}))," product-layout-2"==$&&1==C&&Object(i.createElement)(i.Fragment,null,1==R&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(o.Content,null)))," product-layout-3"==$&&1==C&&Object(i.createElement)(i.Fragment,null,1==R&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(o.Content,null)))))),Object(yt.applyFilters)("affx_save_single_product_layouts",null,e))};Object(S.registerBlockType)("affiliatex/single-product",{title:Object(n.__)("AffiliateX Single Product","affiliatex"),description:Object(n.__)("Add a customizable single product block","affiliatex"),icon:R.m,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("Product","affiliatex"),Object(n.__)("Single Product","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:jt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Rt,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(St,{attributes:e,className:t})});const It=AffiliateX.customizationData;var Lt={block_id:{type:"string"},specificationTitle:{type:"string",default:"Specifications"},specificationTable:{type:"array",default:[{specificationLabel:"",specificationValue:""}]},layoutStyle:{type:"string",default:"layout-1"},specificationBorder:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},specificationColumnWidth:{type:"string",default:"styleOne"},specificationBorderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},specificationBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},specificationBoxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},specificationBgType:{type:"string",default:"solid"},specificationBgColorSolid:{type:"string",default:"#FFFFFF"},specificationBgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},specificationTitleTypography:{type:"object",default:{family:(null==It||null===(Tt=It.typography)||void 0===Tt?void 0:Tt.family)||"Default",variation:"n5",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},specificationLabelTypography:{type:"object",default:{family:(null==It||null===(Bt=It.typography)||void 0===Bt?void 0:Bt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},specificationValueTypography:{type:"object",default:{family:(null==It||null===(Nt=It.typography)||void 0===Nt?void 0:Nt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},specificationTitleColor:{type:"string",default:"#292929"},specificationTitleBgColor:{type:"string",default:"#FFFFFF"},specificationLabelColor:{type:"string",default:"#000000"},specificationValueColor:{type:"string",default:(null==It?void 0:It.fontColor)||"#292929"},specificationRowColor:{type:"string",default:"#F5F7FA"},edSpecificationTitle:{type:"boolean",default:!0},specificationTitleAlign:{type:"string",default:"left"},specificationLabelAlign:{type:"string",default:"left"},specificationValueAlign:{type:"string",default:"left"},specificationMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},specificationPadding:{type:"object",default:{desktop:{top:"16px",left:"24px",right:"24px",bottom:"16px"},mobile:{top:"16px",left:"24px",right:"24px",bottom:"16px"},tablet:{top:"16px",left:"24px",right:"24px",bottom:"16px"}}}},Pt=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{PanelBody:r,ToggleControl:s,SelectControl:f}=wp.components,{layoutStyle:d,specificationBorder:u,specificationBorderWidth:b,specificationBorderRadius:m,specificationBoxShadow:g,specificationBgType:h,specificationBgColorSolid:v,specificationBgColorGradient:x,specificationTitleTypography:y,specificationLabelTypography:O,specificationValueTypography:j,specificationTitleColor:k,specificationTitleBgColor:C,specificationLabelColor:w,specificationValueColor:E,specificationRowColor:_,edSpecificationTitle:T,specificationTitleAlign:B,specificationLabelAlign:N,specificationValueAlign:R,specificationMargin:S,specificationPadding:I,specificationColumnWidth:L}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(r,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(f,{label:Object(n.__)("Choose Layout","affiliatex"),value:d,options:[{value:"layout-1",label:"Layout 1"},{value:"layout-2",label:"Layout 2"},{value:"layout-3",label:"Layout 3"}],onChange:e=>t({layoutStyle:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affx-layout-options"},Object(i.createElement)(c.a,{value:L,values:L,id:"specification-table-layout",option:{id:"specification-table-layout",label:Object(n.__)("Table Column","affiliatex"),attr:{"data-type":""},type:"ab-radio",value:Lt.specificationColumnWidth.default,choices:{styleOne:'<svg width="67" height="20" viewBox="0 0 67 20"><g id="Group_3" data-name="Group 3" transform="translate(-119 -103)"><g id="Group_2" data-name="Group 2" transform="translate(22 -77)"><rect id="Rectangle_5" data-name="Rectangle 5" width="45" height="20" transform="translate(119 180)" fill="#e6e9ec"/></g><g id="Group_1" data-name="Group 1" transform="translate(-46 -77)"><rect id="Rectangle_6" data-name="Rectangle 6" width="21" height="20" transform="translate(165 180)" fill="#e6e9ec"/></g></g></svg><span class="label">33,66</span>',styleTwo:'<svg xmlns="http://www.w3.org/2000/svg" width="67" height="20" viewBox="0 0 67 20"><g id="Group_4" data-name="Group 4" transform="translate(-119 -129)"><rect id="Rectangle_1" data-name="Rectangle 1" width="33" height="20" transform="translate(119 129)" fill="#e6e9ec"/><rect id="Rectangle_2" data-name="Rectangle 2" width="33" height="20" transform="translate(153 129)" fill="#e6e9ec"/></g></svg><span class="label">50,50</span>',styleThree:'<svg xmlns="http://www.w3.org/2000/svg" width="67" height="20" viewBox="0 0 67 20"><g id="Group_5" data-name="Group 5" transform="translate(-119 -155)"><rect id="Rectangle_3" data-name="Rectangle 3" width="45" height="20" transform="translate(119 155)" fill="#e6e9ec"/><rect id="Rectangle_4" data-name="Rectangle 4" width="21" height="20" transform="translate(165 155)" fill="#e6e9ec"/></g></svg><span class="label">66,33</span>'}},hasRevertButton:!0,onChange:e=>t({specificationColumnWidth:e})}))),Object(i.createElement)(r,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-specifications-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(s,{label:Object(n.__)("Enable Title","affiliatex"),checked:!!T,onChange:()=>t({edSpecificationTitle:!T})})),T&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"specification-title-align",option:{id:"specification-title-align",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Lt.specificationTitleAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({specificationTitleAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"specification-label-align",option:{id:"specification-label-align",label:Object(n.__)("Label Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Lt.specificationLabelAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({specificationLabelAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"specification-value-align",option:{id:"specification-value-align",label:Object(n.__)("Value Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Lt.specificationValueAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({specificationValueAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:g,values:g,id:"specifications-box-shadow",option:{id:"specifications-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:Lt.specificationBoxShadow.default},hasRevertButton:!0,onChange:e=>t({specificationBoxShadow:e})})))),Object(i.createElement)(r,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:u,values:u,id:"specification-border",option:{id:"specification-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:Lt.specificationBorder.default},hasRevertButton:!0,onChange:e=>t({specificationBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:b,values:b,id:"specification-border-width",option:{id:"specification-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:Lt.specificationBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:m,values:m,id:"specification-border-radius",option:{id:"specification-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:Lt.specificationBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationBorderRadius:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:k},textBgColor:{color:C}},option:{id:"title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationTitleColor.default},textBgColor:{color:Lt.specificationTitleBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({specificationTitleColor:e.textColor.color,specificationTitleBgColor:e.textBgColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:w}},option:{id:"label-color",label:Object(n.__)("Label Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationLabelColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Label Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationLabelColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:E}},option:{id:"value-color",label:Object(n.__)("Value Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationValueColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Value Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationValueColor:e.textColor.color})})),d&&"layout-1"!=d&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:_}},option:{id:"value-color",label:Object(n.__)("Table Row Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationRowColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Row Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationRowColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"specification-bg-type",option:{id:"specification-bg-type",label:Object(n.__)("Background Color Type","affiliatex"),type:"ab-radio",value:Lt.specificationBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({specificationBgType:e})})),"solid"===h&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:v}},option:{id:"bg-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Lt.specificationBgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationBgColorSolid:e.bgColor.color})})),"gradient"===h&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:x,onChange:e=>t({specificationBgColorGradient:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-specification-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option specification-title-typography"},Object(i.createElement)(c.a,{value:y,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:Lt.specificationTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({specificationTitleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option specification-label-typography"},Object(i.createElement)(c.a,{value:O,option:{id:"label-typography",label:Object(n.__)("Label Typography","affiliatex"),type:"ab-typography",value:Lt.specificationLabelTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({specificationLabelTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option specification-value-typography"},Object(i.createElement)(c.a,{value:j,option:{id:"value-typography",label:Object(n.__)("Value Typography","affiliatex"),type:"ab-typography",value:Lt.specificationValueTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({specificationValueTypography:e})}})))),Object(i.createElement)(r,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"specification-margin",option:{id:"specification-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:Lt.specificationMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:I,values:I,id:"specification-padding",option:{id:"specification-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:Lt.specificationPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationPadding:e})}))))};const{RichText:At}=wp.blockEditor,{Button:zt}=wp.components;var Ft,Mt,Ht=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{const{Fragment:r}=wp.element;Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-specification-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-specification-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{specificationBorder:o,specificationBorderWidth:i,specificationBorderRadius:n,specificationBoxShadow:l,specificationBgType:r,specificationBgColorSolid:c,specificationBgColorGradient:s,specificationTitleTypography:p,specificationLabelTypography:f,specificationValueTypography:b,specificationTitleColor:m,specificationTitleBgColor:g,specificationLabelColor:h,specificationValueColor:v,specificationRowColor:x,specificationTitleAlign:y,specificationLabelAlign:O,specificationValueAlign:j,specificationMargin:k,specificationPadding:C,specificationColumnWidth:w}=e;var E,_,T={};(T={" .affx-specification-block-container":{"border-style":o.style,"border-width":i.desktop.top+" "+i.desktop.right+" "+i.desktop.bottom+" "+i.desktop.left,"border-color":o.color.color,"border-radius":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,overflow:"hidden","margin-top":k.desktop.top,"margin-left":k.desktop.left,"margin-right":k.desktop.right,"margin-bottom":k.desktop.bottom}," .affx-specification-table":{margin:"0"}," .affx-specification-table td":{"padding-top":C.desktop.top,"padding-left":C.desktop.left,"padding-right":C.desktop.right,"padding-bottom":C.desktop.bottom}," .affx-specification-table th":{color:m,background:g,"text-align":y,"font-family":p.family,"text-decoration":p["text-decoration"],"font-weight":Object(u.c)(p.variation),"font-style":Object(u.b)(p.variation),"font-size":p.size.desktop,"line-height":p["line-height"].desktop,"text-transform":p["text-transform"],"letter-spacing":p["letter-spacing"].desktop,"padding-top":C.desktop.top,"padding-left":C.desktop.left,"padding-right":C.desktop.right,"padding-bottom":C.desktop.bottom}," .affx-specification-table td.affx-spec-label":{color:h,"text-align":O,"font-family":f.family,"text-decoration":f["text-decoration"],"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"letter-spacing":f["letter-spacing"].desktop,width:"styleOne"===w?"33.33%":"styleTwo"===w?"50%":"66.66%"}," .affx-specification-table td.affx-spec-value":{color:v,"text-align":j,"font-family":b.family,"text-decoration":b["text-decoration"],"font-weight":Object(u.c)(b.variation),"font-style":Object(u.b)(b.variation),"font-size":b.size.desktop,"line-height":b["line-height"].desktop,"text-transform":b["text-transform"],"letter-spacing":b["letter-spacing"].desktop,width:"styleOne"===w?"66.66%":"styleTwo"===w?"50%":"33.33%"}," .affx-specification-table.layout-2 td.affx-spec-label":{background:x}," .affx-specification-table.layout-3 tbody tr:nth-child(even) td":{background:x}})[" .affx-specification-table"].background="solid"===r?c:s.gradient,T[" .affx-specification-block-container"]["box-shadow"]=Object(u.a)(l)?Object(u.a)(l):"",_={" .affx-specification-block-container":{"border-style":o.style,"border-width":i.tablet.top+" "+i.tablet.right+" "+i.tablet.bottom+" "+i.tablet.left,"border-color":o.color.color,"border-radius":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left}," .affx-specification-table":{"margin-top":k.tablet.top,"margin-left":k.tablet.left,"margin-right":k.tablet.right,"margin-bottom":k.tablet.bottom}," .affx-specification-table td":{"padding-top":C.tablet.top,"padding-left":C.tablet.left,"padding-right":C.tablet.right,"padding-bottom":C.tablet.bottom}," .affx-specification-table th":{"font-size":p.size.tablet,"line-height":p["line-height"].tablet,"letter-spacing":p["letter-spacing"].tablet,"padding-top":C.tablet.top,"padding-left":C.tablet.left,"padding-right":C.tablet.right,"padding-bottom":C.tablet.bottom}," .affx-specification-table td.affx-spec-label":{"font-size":f.size.tablet,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet}," .affx-specification-table td.affx-spec-value":{"font-size":b.size.tablet,"line-height":b["line-height"].tablet,"letter-spacing":b["letter-spacing"].tablet}},E={" .affx-specification-block-container":{"border-style":o.style,"border-width":i.mobile.top+" "+i.mobile.right+" "+i.mobile.bottom+" "+i.mobile.left,"border-color":o.color.color,"border-radius":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left}," .affx-specification-table":{"margin-top":k.mobile.top,"margin-left":k.mobile.left,"margin-right":k.mobile.right,"margin-bottom":k.mobile.bottom}," .affx-specification-table td":{"padding-top":C.mobile.top,"padding-left":C.mobile.left,"padding-right":C.mobile.right,"padding-bottom":C.mobile.bottom}," .affx-specification-table th":{"font-size":p.size.mobile,"line-height":p["line-height"].mobile,"letter-spacing":p["letter-spacing"].mobile,"padding-top":C.mobile.top,"padding-left":C.mobile.left,"padding-right":C.mobile.right,"padding-bottom":C.mobile.bottom}," .affx-specification-table td.affx-spec-label":{"font-size":f.size.mobile,"line-height":f["line-height"].mobile,"letter-spacing":f["letter-spacing"].mobile}," .affx-specification-table td.affx-spec-value":{"font-size":b.size.mobile,"line-height":b["line-height"].mobile,"letter-spacing":b["letter-spacing"].mobile}};var B="";return B=Object(d.a)(T,`#${t}-${a}`),(B+=Object(d.a)(_,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(E,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-specification-style",l))},[e]);const{specificationTitle:c,specificationTable:s,layoutStyle:p,edSpecificationTitle:f,itemCount:b}=e,m=(e,a,o)=>{let i=[...s];i[a]={...i[a],[""+o]:e},t({specificationTable:i})};return Object(i.createElement)(r,null,Object(i.createElement)(Pt,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-specification-style-"+l,className:a},Object(i.createElement)("div",{className:"affx-specification-block-container"},Object(i.createElement)("table",{className:"affx-specification-table "+p},f&&Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{className:"affx-spec-title",colSpan:"3"},Object(i.createElement)(At,{placeholder:Object(n.__)("Enter Title","affiliatex"),value:c,onChange:e=>t({specificationTitle:e})})))),Object(i.createElement)("tbody",null,null==s?void 0:s.map((e,a)=>Object(i.createElement)("tr",{key:a},Object(i.createElement)("td",{className:"affx-spec-label"},Object(i.createElement)(At,{placeholder:Object(n.__)("Specification Label","affiliatex"),value:e.specificationLabel,onChange:e=>m(e,a,"specificationLabel")})),Object(i.createElement)("td",{className:"affx-spec-value"},Object(i.createElement)(At,{placeholder:Object(n.__)("Specification Value","affiliatex"),value:e.specificationValue,onChange:e=>m(e,a,"specificationValue")})),a>0?Object(i.createElement)("td",{className:"affx-spec-remove"},Object(i.createElement)(zt,{className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...s];a.splice(e,1),t({specificationTable:a,itemCount:b-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))))):Object(i.createElement)("td",null))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"row-appender",colSpan:"3"},Object(i.createElement)(zt,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{specificationLabel:"",specificationValue:""}],t({specificationTable:o}),a=e.length,t({itemCount:a})})(s)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Specification","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))))))))))},Vt=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,layoutStyle:n,specificationTitle:l,specificationTable:r,edSpecificationTitle:c}=e;return Object(i.createElement)("div",{id:"affiliatex-specification-style-"+o,className:t},Object(i.createElement)("div",{className:"affx-specification-block-container"},Object(i.createElement)("table",{className:"affx-specification-table "+n},c&&Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{clasName:"affx-spec-title",colSpan:"2"},Object(i.createElement)(a.Content,{value:l})))),Object(i.createElement)("tbody",null,null==r?void 0:r.map((e,t)=>Object(i.createElement)("tr",{key:t},Object(i.createElement)("td",{className:"affx-spec-label"},Object(i.createElement)(a.Content,{value:null==e?void 0:e.specificationLabel})),Object(i.createElement)("td",{className:"affx-spec-value"},Object(i.createElement)(a.Content,{value:null==e?void 0:e.specificationValue}))))))))};Object(S.registerBlockType)("affiliatex/specifications",{title:Object(n.__)("AffiliateX Specifications","affiliatex"),description:Object(n.__)("Add a customizable specifications block","affiliatex"),icon:R.f,category:"affiliatex",supports:{multiple:!0},keywords:[Object(n.__)("specifications","affiliatex"),,Object(n.__)("AffiliateX","affiliatex")],attributes:Lt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Ht,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Vt,{attributes:e,className:t})});const Wt=AffiliateX.customizationData;var Dt={block_id:{type:"string"},vsLabel:{type:"string",default:"VS"},versusTable:{type:"array",default:[{versusTitle:"",versusSubTitle:"",versusValue1:"",versusValue2:""}]},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},border:{type:"object",default:{width:"0",style:"solid",color:{color:"#E6ECF7"}}},borderWidth:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},borderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},vsTextColor:{type:"string",default:"#000"},vsBgColor:{type:"string",default:"#E6ECF7"},contentColor:{type:"string",default:(null==Wt?void 0:Wt.fontColor)||"#292929"},versusRowColor:{type:"string",default:"#F5F7FA"},bgType:{type:"string",default:"solid"},bgColorSolid:{type:"string",default:"#FFFFFF"},bgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},vsTypography:{type:"object",default:{family:(null==Wt||null===(Ft=Wt.typography)||void 0===Ft?void 0:Ft.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},versusContentTypography:{type:"object",default:{family:(null==Wt||null===(Mt=Wt.typography)||void 0===Mt?void 0:Mt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},margin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}},qt=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{PanelBody:r}=wp.components,{boxShadow:s,border:f,borderWidth:d,borderRadius:u,vsTextColor:b,vsBgColor:m,contentColor:g,versusRowColor:h,bgType:v,bgColorSolid:x,bgColorGradient:y,vsTypography:O,versusContentTypography:j,margin:k,padding:C}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(r,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-specifications-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:s,values:s,id:"versus-box-shadow",option:{id:"versus-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:Dt.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})))),Object(i.createElement)(r,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:f,values:f,id:"versus-border",option:{id:"versus-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:Dt.border.default},hasRevertButton:!0,onChange:e=>t({border:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:d,values:d,id:"versus-border-width",option:{id:"versus-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:Dt.borderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:u,values:u,id:"versus-border-radius",option:{id:"versus-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:Dt.borderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderRadius:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:b},backgroundColor:{color:m}},option:{label:Object(n.__)("VS Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Dt.vsTextColor.default},backgroundColor:{color:Dt.vsBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({vsTextColor:e.textColor.color,vsBgColor:e.backgroundColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:g}},option:{label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Dt.contentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")}]},hasRevertButton:!0,onChange:e=>t({contentColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:h}},option:{label:Object(n.__)("Table Row Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Dt.versusRowColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Row Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({versusRowColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:v,values:v,id:"versus-bg-type",option:{id:"versus-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:Dt.bgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({bgType:e})})),"solid"===v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:x}},option:{label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Dt.bgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({bgColorSolid:e.bgColor.color})})),"gradient"===v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:y,onChange:e=>t({bgColorGradient:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-versus-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option versus-typography"},Object(i.createElement)(c.a,{value:O,id:"vs-label-typography",option:{id:"vs-label-typography",label:Object(n.__)("VS Label Typography","affiliatex"),type:"ab-typography",value:Dt.vsTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({vsTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option versus-typography"},Object(i.createElement)(c.a,{value:j,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:Dt.versusContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({versusContentTypography:e})}})))),Object(i.createElement)(r,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"versus-margin",option:{id:"versus-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:Dt.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"versus-padding",option:{id:"versus-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:Dt.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))};const{RichText:Ut}=wp.blockEditor,{Button:$t}=wp.components;var Gt=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>{const{Fragment:l}=wp.element;Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-versus-line-style-"+n),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:n});var a=document.getElementById("affiliatex-versus-line-style-"+n);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{boxShadow:o,border:i,borderWidth:n,borderRadius:l,vsTextColor:r,vsBgColor:c,contentColor:s,versusRowColor:p,bgType:f,bgColorSolid:b,bgColorGradient:m,vsTypography:g,versusContentTypography:h,margin:v,padding:x}=e;var y,O,j={};(j={" .affx-versus-table-wrap":{color:s,"font-family":h.family,"text-decoration":h["text-decoration"],"font-weight":Object(u.c)(h.variation),"font-style":Object(u.b)(h.variation),"font-size":h.size.desktop,"line-height":h["line-height"].desktop,"text-transform":h["text-transform"],"letter-spacing":h["letter-spacing"].desktop,"border-style":i.style,"border-width":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"border-color":i.color.color,"border-radius":l.desktop.top+" "+l.desktop.right+" "+l.desktop.bottom+" "+l.desktop.left,"margin-top":v.desktop.top,"margin-left":v.desktop.left,"margin-right":v.desktop.right,"margin-bottom":v.desktop.bottom,"padding-top":x.desktop.top,"padding-left":x.desktop.left,"padding-right":x.desktop.right,"padding-bottom":x.desktop.bottom}," .affx-versus-table-wrap .affx-vs-icon":{background:c,color:r,"font-family":g.family,"font-weight":Object(u.c)(g.variation),"font-style":Object(u.b)(g.variation),"font-size":g.size.desktop,"line-height":g["line-height"].desktop,"text-transform":g["text-transform"],"text-decoration":g["text-decoration"],"letter-spacing":g["letter-spacing"].desktop}," .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}})[" .affx-versus-table-wrap"].background="solid"===f?b:m.gradient,j[" .affx-versus-table-wrap"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",O={" .affx-versus-table-wrap":{"font-size":h.size.tablet,"line-height":h["line-height"].tablet,"letter-spacing":h["letter-spacing"].tablet,"border-width":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left,"border-radius":l.tablet.top+" "+l.tablet.right+" "+l.tablet.bottom+" "+l.tablet.left,"margin-top":v.tablet.top,"margin-left":v.tablet.left,"margin-right":v.tablet.right,"margin-bottom":v.tablet.bottom,"padding-top":x.tablet.top,"padding-left":x.tablet.left,"padding-right":x.tablet.right,"padding-bottom":x.tablet.bottom}," .affx-versus-table-wrap .affx-vs-icon":{"font-size":g.size.tablet,"line-height":g["line-height"].tablet,"letter-spacing":g["letter-spacing"].tablet}},y={" .affx-versus-table-wrap":{"font-size":h.size.mobile,"line-height":h["line-height"].mobile,"letter-spacing":h["letter-spacing"].mobile,"border-width":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left,"border-radius":l.mobile.top+" "+l.mobile.right+" "+l.mobile.bottom+" "+l.mobile.left,"margin-top":v.mobile.top,"margin-left":v.mobile.left,"margin-right":v.mobile.right,"margin-bottom":v.mobile.bottom,"padding-top":x.mobile.top,"padding-left":x.mobile.left,"padding-right":x.mobile.right,"padding-bottom":x.mobile.bottom}," .affx-versus-table-wrap .affx-vs-icon":{"font-size":g.size.mobile,"line-height":g["line-height"].mobile,"letter-spacing":g["letter-spacing"].mobile}};var k="";return k=Object(d.a)(j,`#${t}-${a}`),(k+=Object(d.a)(O,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(y,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-versus-line-style",n))},[e]);const{versusTable:r,vsLabel:c,itemCount:s}=e,p=(e,a,o)=>{let i=[...r];i[a]={...i[a],[""+o]:e},t({versusTable:i})};return Object(i.createElement)(l,null,Object(i.createElement)(qt,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-versus-line-style-"+n,className:"affx-versus-line-block-container "+a},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table affx-product-versus-line"},Object(i.createElement)("tbody",null,null==r?void 0:r.map((e,a)=>Object(i.createElement)("tr",{key:a},Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(Ut,{placeholder:"Title",value:e.versusTitle,onChange:e=>p(e,a,"versusTitle")}),Object(i.createElement)("span",{className:"data-info"},Object(i.createElement)(Ut,{placeholder:"Subtitle",value:e.versusSubTitle,onChange:e=>p(e,a,"versusSubTitle")}))),Object(i.createElement)("td",null,Object(i.createElement)(Ut,{placeholder:"Value 1",value:e.versusValue1,onChange:e=>p(e,a,"versusValue1")})),Object(i.createElement)("td",null,Object(i.createElement)("span",{className:"affx-vs-icon"},Object(i.createElement)(Ut,{placeholder:"VS Label",value:c,onChange:e=>t({vsLabel:e})}))),Object(i.createElement)("td",null,Object(i.createElement)(Ut,{placeholder:"Value 2",value:e.versusValue2,onChange:e=>p(e,a,"versusValue2")})),a>0?Object(i.createElement)("td",{className:"affx-spec-remove"},Object(i.createElement)($t,{className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...r];a.splice(e,1),t({versusTable:a,itemCount:s-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))))):Object(i.createElement)("td",null))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"row-appender",colSpan:"5"},Object(i.createElement)($t,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{versusTitle:"",versusSubTitle:"",versusValue1:"",versusValue2:""}],t({versusTable:o}),a=e.length,t({itemCount:a})})(r)},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))))))))))},Zt=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,versusTable:n,vsLabel:l}=e;return Object(i.createElement)("div",{id:"affiliatex-versus-line-style-"+o,className:"affx-versus-line-block-container "+t},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table"},Object(i.createElement)("tbody",null,null==n?void 0:n.map((e,t)=>Object(i.createElement)("tr",{key:t},Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(a.Content,{value:e.versusTitle}),Object(i.createElement)("span",{className:"data-info"},Object(i.createElement)(a.Content,{value:e.versusSubTitle}))),Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.versusValue1})),Object(i.createElement)("td",null,Object(i.createElement)("span",{className:"affx-vs-icon"},Object(i.createElement)(a.Content,{value:l}))),Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.versusValue2}))))))))};Object(S.registerBlockType)("affiliatex/versus-line",{title:Object(n.__)("AffiliateX Versus Line","affiliatex"),description:Object(n.__)("Add a customizable versus line block","affiliatex"),icon:R.r,category:"affiliatex",supports:{multiple:!0},keywords:[Object(n.__)("Versus Line","affiliatex"),,Object(n.__)("AffiliateX","affiliatex")],attributes:Dt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Gt,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Zt,{attributes:e,className:t})});var Xt=a(36),Kt=a(60),Qt=a(61);const{Toolbar:Yt,IconButton:Jt}=wp.components;Object(Xt.registerFormatType)("affiliatex/tick-icon",{title:"Tick",tagName:"tick",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"yes",title:"Tick",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-check" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}}),Object(Xt.registerFormatType)("affiliatex/check-icon",{title:"Check",tagName:"check",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"yes-alt",title:"Check",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-check-circle" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}}),Object(Xt.registerFormatType)("affiliatex/wrong-icon",{title:"Wrong",tagName:"wrong",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"no-alt",title:"Wrong",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-times" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}}),Object(Xt.registerFormatType)("affiliatex/cross-icon",{title:"Cross",tagName:"cross",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"dismiss",title:"Cross",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-times-circle" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}});const ea=AffiliateX.customizationData;if("custom"===ea.editorWidth){let e=document.createElement("style");e.innerHTML=`\n\t#editor .editor-styles-wrapper .wp-block{\n\tmax-width: ${ea.editorCustomWidth}px\n\t}\n`,document.head.appendChild(e)}if("custom"===ea.editorSidebarWidth){let e=document.createElement("style");e.innerHTML=`\n\t#editor .is-sidebar-opened .interface-interface-skeleton__sidebar, #editor .is-sidebar-opened .interface-complementary-area{\n\twidth: ${ea.editorCustomSidebarWidth}px\n\t}\n`,document.head.appendChild(e)}}]);
     1var affiliateBlocksExports="object"==typeof affiliateBlocksExports?affiliateBlocksExports:{};affiliateBlocksExports.blocks=function(e){var t={};function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=83)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t,a){"use strict";a.d(t,"w",(function(){return i})),a.d(t,"a",(function(){return ve})),a.d(t,"b",(function(){return A})),a.d(t,"c",(function(){return ye})),a.d(t,"d",(function(){return he})),a.d(t,"e",(function(){return $})),a.d(t,"f",(function(){return pe})),a.d(t,"g",(function(){return Te})),a.d(t,"h",(function(){return k})),a.d(t,"i",(function(){return Le})),a.d(t,"j",(function(){return Se})),a.d(t,"k",(function(){return E})),a.d(t,"l",(function(){return _})),a.d(t,"m",(function(){return B})),a.d(t,"n",(function(){return N})),a.d(t,"o",(function(){return V})),a.d(t,"p",(function(){return ge})),a.d(t,"q",(function(){return me})),a.d(t,"r",(function(){return be})),a.d(t,"s",(function(){return C})),a.d(t,"t",(function(){return Pe})),a.d(t,"u",(function(){return w})),a.d(t,"v",(function(){return j})),a.d(t,"x",(function(){return Oe})),a.d(t,"y",(function(){return T})),a.d(t,"z",(function(){return Fe})),a.d(t,"A",(function(){return We})),a.d(t,"B",(function(){return He})),a.d(t,"C",(function(){return Ae})),a.d(t,"D",(function(){return Ve}));let o=v();const i=e=>b(e,o);let n=v();i.write=e=>b(e,n);let l=v();i.onStart=e=>b(e,l);let r=v();i.onFrame=e=>b(e,r);let c=v();i.onFinish=e=>b(e,c);let s=[];i.setTimeout=(e,t)=>{let a=i.now()+t,o=()=>{let e=s.findIndex(e=>e.cancel==o);~e&&s.splice(e,1),y.count-=~e?1:0},n={time:a,handler:e,cancel:o};return s.splice(p(a),0,n),y.count+=1,m(),n};let p=e=>~(~s.findIndex(t=>t.time>e)||~s.length);i.cancel=e=>{o.delete(e),n.delete(e)},i.sync=e=>{u=!0,i.batchedUpdates(e),u=!1},i.throttle=e=>{let t;function a(){try{e(...t)}finally{t=null}}function o(...e){t=e,i.onStart(a)}return o.handler=e,o.cancel=()=>{l.delete(a),t=null},o};let f="undefined"!=typeof window?window.requestAnimationFrame:()=>{};i.use=e=>f=e,i.now="undefined"!=typeof performance?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):h()};let d=-1,u=!1;function b(e,t){u?(t.delete(e),e(0)):(t.add(e),m())}function m(){d<0&&(d=0,"demand"!==i.frameLoop&&f(g))}function g(){~d&&(f(g),i.batchedUpdates(h))}function h(){let e=d;d=i.now();let t=p(d);t&&(x(s.splice(0,t),e=>e.handler()),y.count-=t),l.flush(),o.flush(e?Math.min(64,d-e):16.667),r.flush(),n.flush(),c.flush()}function v(){let e=new Set,t=e;return{add(a){y.count+=t!=e||e.has(a)?0:1,e.add(a)},delete:a=>(y.count-=t==e&&e.has(a)?1:0,e.delete(a)),flush(a){t.size&&(e=new Set,y.count-=t.size,x(t,t=>t(a)&&e.add(t)),y.count+=e.size,t=e)}}}function x(e,t){e.forEach(e=>{try{t(e)}catch(e){i.catch(e)}})}const y={count:0,clear(){d=-1,s=[],l=v(),o=v(),r=v(),n=v(),c=v(),y.count=0}};var O=a(4);function j(){}const k=(e,t,a)=>Object.defineProperty(e,t,{value:a,writable:!0,configurable:!0}),C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function w(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}return e===t}const E=(e,t)=>e.forEach(t);function _(e,t,a){for(const o in e)),S=a(28);Object(S.registerBlockType)("affiliatex/buttons",{title:Object(n.__)("AffiliateX Buttons","affiliatex"),description:Object(n.__)("Add a customizable button.","affiliatex"),icon:R.a,category:"affiliatex",supports:{multiple:!0},keywords:[Object(n.__)("Buttons","affliatex"),Object(n.__)("AffiliateX Buttons","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:r,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(_,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(N,{attributes:e,className:t})});const I=AffiliateX.customizationData;var L={block_id:{type:"string"},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},prosListItems:{type:"array",filterElements:!0,default:[]},consListItems:{type:"array",filterElements:!0,default:[]},prosIconStatus:{type:"boolean",default:!0},consIconStatus:{type:"boolean",default:!0},contentAlignment:{type:"string",default:"left"},prosIcon:{type:"object",default:{name:"check-circle",value:"far fa-circle"}},consIcon:{type:"object",default:{name:"times-circle",value:"far fa-circle"}},prosListIcon:{type:"object",default:{name:"thumb-up-simple",value:"far fa-thumbs-up"}},consListIcon:{type:"object",default:{name:"thumb-down-simple",value:"far fa-thumbs-down"}},titleTag1:{type:"string",default:"p"},layoutStyle:{type:"string",default:"layout-type-1"},prosTitle:{type:"string",default:"Pros"},consTitle:{type:"string",default:"Cons"},contentType:{type:"string",default:"list"},prosContent:{type:"string",default:""},consContent:{type:"string",default:""},listType:{type:"string",default:"unordered"},unorderedType:{type:"string",default:"icon"},alignment:{type:"string",default:"left"},alignmentThree:{type:"string",default:"center"},titleBgColor:{type:"string",default:""},titleTextColor:{type:"string",default:""},titleTypography:{type:"object",default:{family:(null==I||null===(w=I.typography)||void 0===w?void 0:w.family)||"Default",variation:"n5",size:{desktop:"20px",mobile:"20px",tablet:"20px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},listTypography:{type:"object",default:{family:(null==I||null===(E=I.typography)||void 0===E?void 0:E.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},listTextColor:{type:"string",default:""},prosListBgType:{type:"string",default:"solid"},prosListBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},prosListBgColor:{type:"string",default:"#F5FFF8"},consListBgType:{type:"string",default:"solid"},consListBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},consListBgColor:{type:"string",default:"#FFF5F5"},prosBgType:{type:"string",default:"solid"},prosBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"}},prosBgColor:{type:"string",default:"#24B644"},prosIconColor:{type:"string",default:"#24B644"},prosIconSize:{type:"number",default:18},prosTextColor:{type:"string",default:"#ffffff"},prosTextColorThree:{type:"string",default:"#24B644"},consBgType:{type:"string",default:"solid"},consBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)"}},consBgColor:{type:"string",default:"#F13A3A"},consTextColor:{type:"string",default:"#ffffff"},consTextColorThree:{type:"string",default:"#F13A3A"},consIconColor:{type:"string",default:"#F13A3A"},consIconSize:{type:"number",default:18},consListColor:{type:"string",default:(null==I?void 0:I.fontColor)||"#292929"},prosListColor:{type:"string",default:(null==I?void 0:I.fontColor)||"#292929"},titleMargin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},titlePadding:{type:"object",default:{desktop:{top:"10px",left:"20px",right:"20px",bottom:"10px"},mobile:{top:"10px",left:"20px",right:"20px",bottom:"10px"},tablet:{top:"10px",left:"20px",right:"20px",bottom:"10px"}}},contentMargin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentPadding:{type:"object",default:{desktop:{top:"10px",left:"20px",right:"20px",bottom:"10px"},mobile:{top:"10px",left:"20px",right:"20px",bottom:"10px"},tablet:{top:"10px",left:"20px",right:"20px",bottom:"10px"}}},margin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"30px"},mobile:{top:"0",left:"0",right:"0",bottom:"30px"},tablet:{top:"0",left:"0",right:"0",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},prosBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},prosBorderThree:{type:"object",default:{style:"solid",color:{color:"#ffffff"}}},titleBorderWidthOne:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},titleBorderRadiusOne:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},titleBorderWidthTwo:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},titleBorderRadiusTwo:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},titleBorderWidthThree:{type:"object",default:{desktop:{top:"4px",left:"4px",right:"4px",bottom:"4px"},mobile:{top:"4px",left:"4px",right:"4px",bottom:"4px"},tablet:{top:"4px",left:"4px",right:"4px",bottom:"4px"}}},titleBorderRadiusThree:{type:"object",default:{desktop:{top:"50px",left:"50px",right:"50px",bottom:"50px"},mobile:{top:"50px",left:"50px",right:"50px",bottom:"50px"},tablet:{top:"50px",left:"50px",right:"50px",bottom:"50px"}}},titleBorderWidthFour:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},titleBorderRadiusFour:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},prosContentBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},prosContentBorderThree:{type:"object",default:{width:"1",style:"solid",color:{color:"#24B644"}}},contentBorderWidthOne:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},contentBorderRadiusOne:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentBorderWidthTwo:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},contentBorderRadiusTwo:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentBorderWidthThree:{type:"object",default:{desktop:{top:"4px",left:"4px",right:"4px",bottom:"4px"},mobile:{top:"4px",left:"4px",right:"4px",bottom:"4px"},tablet:{top:"4px",left:"4px",right:"4px",bottom:"4px"}}},contentBorderRadiusThree:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},contentBorderWidthFour:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},contentBorderRadiusFour:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},consBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},consBorderThree:{type:"object",default:{style:"solid",color:{color:"#ffffff"}}},consContentBorder:{type:"object",default:{style:"none",color:{color:"#dddddd"}}},consContentBorderThree:{type:"object",default:{style:"solid",color:{color:"#F13A3A"}}}},P=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{TextControl:r,ToggleControl:f,PanelBody:d,SelectControl:u,RangeControl:b}=wp.components,{prosTitle:m,consTitle:g,prosIconStatus:h,consIconStatus:v,prosIcon:x,consIcon:y,titleTag1:O,layoutStyle:j,boxShadow:k,alignment:C,alignmentThree:w,titleTypography:E,listTypography:_,contentType:T,listType:B,unorderedType:N,prosListIcon:R,consListIcon:S,prosTextColor:I,prosTextColorThree:P,prosIconSize:A,prosIconColor:z,prosBgType:F,prosBgColor:M,prosBgGradient:H,prosListColor:V,consTextColor:W,consIconSize:D,consTextColorThree:q,consIconColor:U,consBgType:$,consBgColor:G,consBgGradient:Z,consListColor:X,prosListBgType:K,prosListBgColor:Q,prosListBgGradient:Y,consListBgType:J,consListBgColor:ee,consListBgGradient:te,titleMargin:ae,titlePadding:oe,contentMargin:ie,contentPadding:ne,prosBorder:le,prosBorderThree:re,titleBorderWidthOne:ce,titleBorderRadiusOne:se,titleBorderWidthTwo:pe,titleBorderRadiusTwo:fe,titleBorderWidthThree:de,titleBorderRadiusThree:ue,titleBorderWidthFour:be,titleBorderRadiusFour:me,prosContentBorder:ge,prosContentBorderThree:he,contentBorderWidthOne:ve,contentBorderRadiusOne:xe,contentBorderWidthTwo:ye,contentBorderRadiusTwo:Oe,contentBorderWidthThree:je,contentBorderRadiusThree:ke,contentBorderWidthFour:Ce,contentBorderRadiusFour:we,consBorder:Ee,consBorderThree:_e,consContentBorder:Te,consContentBorderThree:Be,margin:Ne,padding:Re,contentAlignment:Se}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(d,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(u,{label:Object(n.__)("Choose Layout","affiliatex"),value:j,options:[{value:"layout-type-1",label:"Layout One"},{value:"layout-type-2",label:"Layout Two"},{value:"layout-type-3",label:"Layout Three"},{value:"layout-type-4",label:"Layout Four"}],onChange:e=>t({layoutStyle:e})}))),Object(i.createElement)(d,{title:Object(n.__)("General Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(u,{label:Object(n.__)("Pros and Cons Heading Tag","affiliatex"),className:"affiliate-blocks-option",value:O,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({titleTag1:e})})),"layout-type-4"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"box-shadow",option:{id:"box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:L.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"text-alignment",option:{id:"text-alignment",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:L.alignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({alignment:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:w,values:w,id:"text-alignment-three",option:{id:"text-alignment-three",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:L.alignmentThree.default,choices:{"flex-start":"",center:"","flex-end":""}},hasRevertButton:!0,onChange:e=>t({alignmentThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"content-type",option:{id:"content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",value:L.contentType.default,choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")}},hasRevertButton:!0,onChange:e=>t({contentType:e})})),"list"===T&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"list-type",option:{id:"list-type",label:Object(n.__)("List Type","affiliatex"),type:"ab-radio",value:L.listType.default,choices:{unordered:Object(n.__)("Unordered","affiliatex"),ordered:Object(n.__)("Ordered","affiliatex")}},hasRevertButton:!0,onChange:e=>t({listType:e})})),"list"===T&&"unordered"===B&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"unordered-type",option:{id:"unordered-type",label:Object(n.__)("Unordered Type","affiliatex"),type:"ab-radio",value:L.unorderedType.default,choices:{icon:Object(n.__)("Show Icon","affiliatex"),bullet:Object(n.__)("Show Bullet","affiliatex")}},hasRevertButton:!0,onChange:e=>t({unorderedType:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Se,values:Se,id:"content-alignment",option:{id:"content-alignment",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},value:L.contentAlignment.default,type:"ab-radio",choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({contentAlignment:e})}))),Object(i.createElement)(d,{title:Object(n.__)("Pros Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)(r,{label:Object(n.__)("Pros Heading Title","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:m,onChange:e=>t({prosTitle:e})}),Object(i.createElement)(f,{label:Object(n.__)("Enable Pros Title Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!h,onChange:()=>t({prosIconStatus:!h})}),h&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+R.value},Object(i.createElement)("label",null,Object(n.__)("Select Pros Title Icon","affiliatex")),Object(i.createElement)(s.a,{value:R.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({prosListIcon:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(b,{value:A,min:5,max:40,step:1,onChange:e=>t({prosIconSize:e})}))),"list"===T&&"unordered"===B&&"icon"===N&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+x.value},Object(i.createElement)("label",null,Object(n.__)("Select Pros List Icon","affiliatex")),Object(i.createElement)(s.a,{value:x.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({prosIcon:e})}}))),Object(i.createElement)(d,{title:Object(n.__)("Cons Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)(r,{label:Object(n.__)("Cons Heading Title","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:g,onChange:e=>t({consTitle:e})}),Object(i.createElement)(f,{label:Object(n.__)("Enable Cons Title Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!v,onChange:()=>t({consIconStatus:!v})}),v&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+S.value},Object(i.createElement)("label",null,Object(n.__)("Select Cons Title Icon","affiliatex")),Object(i.createElement)(s.a,{value:S.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({consListIcon:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(b,{value:D,min:5,max:40,step:1,onChange:e=>t({consIconSize:e})}))),"list"===T&&"unordered"===B&&"icon"===N&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+y.value},Object(i.createElement)("label",null,Object(n.__)("Select Cons List Icon","affiliatex")),Object(i.createElement)(s.a,{value:y.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({consIcon:e})}}))),Object(i.createElement)(d,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:le,values:le,id:"pros-border",option:{id:"pros-border",label:Object(n.__)("Pros Title Border","affiliatex"),type:"ab-border",value:L.prosBorder.default},hasRevertButton:!0,onChange:e=>t({prosBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:re,values:re,id:"pros-border",option:{id:"pros-border",label:Object(n.__)("Pros Title Border","affiliatex"),type:"ab-border",value:L.prosBorderThree.default},hasRevertButton:!0,onChange:e=>t({prosBorderThree:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:ge,values:ge,id:"pros-content-border",option:{id:"pros-content-border",label:Object(n.__)("Pros Content Border","affiliatex"),type:"ab-border",value:L.prosContentBorder.default},hasRevertButton:!0,onChange:e=>t({prosContentBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:he,values:he,id:"pros-content-border",option:{id:"pros-content-border",label:Object(n.__)("Pros Content Border","affiliatex"),type:"ab-border",value:L.prosContentBorderThree.default},hasRevertButton:!0,onChange:e=>t({prosContentBorderThree:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:Ee,values:Ee,id:"cons-border",option:{id:"cons-border",label:Object(n.__)("Cons Title Border","affiliatex"),type:"ab-border",value:L.consBorder.default},hasRevertButton:!0,onChange:e=>t({consBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:_e,values:_e,id:"cons-border",option:{id:"cons-border",label:Object(n.__)("Cons Title Border","affiliatex"),type:"ab-border",value:L.consBorderThree.default},hasRevertButton:!0,onChange:e=>t({consBorderThree:e})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:Te,values:Te,id:"cons-content-border",option:{id:"cons-content-border",label:Object(n.__)("Cons Content Border","affiliatex"),type:"ab-border",value:L.consContentBorder.default},hasRevertButton:!0,onChange:e=>t({consContentBorder:e})})),"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:Be,values:Be,id:"cons-content-border",option:{id:"cons-content-border",label:Object(n.__)("Cons Content Border","affiliatex"),type:"ab-border",value:L.consContentBorderThree.default},hasRevertButton:!0,onChange:e=>t({consContentBorderThree:e})})),"layout-type-1"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ce,values:ce,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthOne:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:se,values:se,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusOne:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ve,values:ve,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthOne:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:xe,values:xe,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusOne.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusOne:e})}))),"layout-type-2"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:pe,values:pe,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthTwo:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:fe,values:fe,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusTwo:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ye,values:ye,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthTwo:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Oe,values:Oe,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusTwo.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusTwo:e})}))),"layout-type-3"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:de,values:de,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ue,values:ue,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:je,values:je,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthThree:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ke,values:ke,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusThree.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusThree:e})}))),"layout-type-4"===j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:be,values:be,id:"title-border-width",option:{id:"title-border-width",label:Object(n.__)("Title Border Width","affiliatex"),type:"ab-spacing",value:L.titleBorderWidthFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderWidthFour:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:me,values:me,id:"title-border-radius",option:{id:"title-border-radius",label:Object(n.__)("Title Border Radius","affiliatex"),type:"ab-spacing",value:L.titleBorderRadiusFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleBorderRadiusFour:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ce,values:Ce,id:"content-border-width",option:{id:"content-border-width",label:Object(n.__)("Content Border Width","affiliatex"),type:"ab-spacing",value:L.contentBorderWidthFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderWidthFour:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:we,values:we,id:"content-border-radius",option:{id:"content-border-radius",label:Object(n.__)("Content Border Radius","affiliatex"),type:"ab-spacing",value:L.contentBorderRadiusFour.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentBorderRadiusFour:e})})))),Object(i.createElement)(d,{title:Object(n.__)("Colors","affiliatex"),className:"affx-panel-label",initialOpen:!1},"layout-type-3"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:P},consTextColor:{color:q}},option:{id:"prosandcons-text-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosTextColorThree.default},consTextColor:{color:L.consTextColorThree.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Title Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosTextColorThree:e.prosTextColor.color,consTextColorThree:e.consTextColor.color})})),"layout-type-3"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:I},consTextColor:{color:W}},option:{id:"prosandcons-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosTextColor.default},consTextColor:{color:L.consTextColor.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Title Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosTextColor:e.prosTextColor.color,consTextColor:e.consTextColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:V},consTextColor:{color:X}},option:{id:"prosandcons-content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosListColor.default},consTextColor:{color:L.consListColor.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Content Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosListColor:e.prosTextColor.color,consListColor:e.consTextColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{prosTextColor:{color:z},consTextColor:{color:U}},option:{id:"prosandcons-content-color",label:Object(n.__)("Checkmark Color","affiliatex"),type:"ab-color-picker",value:{prosTextColor:{color:L.prosIconColor.default},consTextColor:{color:L.consIconColor.default}},pickers:[{id:"prosTextColor",title:Object(n.__)("Pros Checkmark Color","affiliatex")},{id:"consTextColor",title:Object(n.__)("Cons Checkmark Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosIconColor:e.prosTextColor.color,consIconColor:e.consTextColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:F,values:F,id:"pros-bg-type",option:{id:"pros-bg-type",label:Object(n.__)("Pros Background Type","affiliatex"),type:"ab-radio",value:L.prosBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({prosBgType:e})})),"solid"===F&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:M}},option:{id:"pc-pros-bg-color",label:Object(n.__)("Pros Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.prosBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Pros Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosBgColor:e.bgColor.color})})),"gradient"===F&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:H,onChange:e=>t({prosBgGradient:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:K,values:K,id:"list-bg-type",option:{id:"list-bg-type",label:Object(n.__)("Pros List Background Type","affiliatex"),type:"ab-radio",value:L.prosListBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({prosListBgType:e})})),"solid"===K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:Q}},option:{id:"pc-pros-list-bg-color",label:Object(n.__)("Pros List Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.prosListBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("List Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({prosListBgColor:e.bgColor.color})})),"gradient"===K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:Y,onChange:e=>t({prosListBgGradient:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:$,values:$,id:"cons-bg-type",option:{id:"cons-bg-type",label:Object(n.__)("Cons Background Type","affiliatex"),type:"ab-radio",value:L.consBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({consBgType:e})})),"solid"===$&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:G}},option:{id:"pc-cons-bg-color",label:Object(n.__)("Cons Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.consBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Cons Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({consBgColor:e.bgColor.color})})),"gradient"===$&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:Z,onChange:e=>t({consBgGradient:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:J,values:J,id:"list-bg-type",option:{id:"list-bg-type",label:Object(n.__)("Cons List Background Type","affiliatex"),type:"ab-radio",value:L.consListBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({consListBgType:e})})),"solid"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:ee}},option:{id:"pc-con-list-bg-color",label:Object(n.__)("Cons List Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:L.consListBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("List Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({consListBgColor:e.bgColor.color})})),"gradient"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:te,onChange:e=>t({consListBgGradient:e})}))),Object(i.createElement)(d,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:L.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:_,id:"list-typography",option:{id:"list-typography",label:Object(n.__)("List/Content Typography","affiliatex"),type:"ab-typography",value:L.listTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({listTypography:e})}}))),Object(i.createElement)(d,{title:Object(n.__)("Spacing Settings","affiliatex"),initialOpen:!1},"layout-type-3"!==j&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ae,values:ae,id:"title-margin",option:{id:"title-margin",label:Object(n.__)("Title Margin","affiliatex"),type:"ab-spacing",value:L.titleMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titleMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:oe,values:oe,id:"title-padding",option:{id:"title-padding",label:Object(n.__)("Title Padding","affiliatex"),type:"ab-spacing",value:L.titlePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titlePadding:e})}))),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ie,values:ie,id:"content-margin",option:{id:"content-margin",label:Object(n.__)("Content Margin","affiliatex"),type:"ab-spacing",value:L.contentMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ne,values:ne,id:"content-padding",option:{id:"content-padding",label:Object(n.__)("Content Padding","affiliatex"),type:"ab-spacing",value:L.contentPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ne,values:Ne,id:"margin",option:{id:"margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:L.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Re,values:Re,id:"padding",option:{id:"padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:L.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))};const{RichText:A}=wp.blockEditor;var z,F,M,H,V,W=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-pros-cons-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-pros-cons-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{prosIconSize:o,consIconSize:i,boxShadow:n,alignment:l,alignmentThree:r,titleTypography:c,listTypography:s,prosTextColor:p,prosTextColorThree:f,prosBgType:b,prosBgColor:m,prosBgGradient:g,prosListColor:h,consTextColor:v,consTextColorThree:x,consBgType:y,consBgColor:O,consBgGradient:j,consListColor:k,prosListBgType:C,prosListBgColor:w,prosListBgGradient:E,consListBgType:_,consListBgColor:T,consListBgGradient:B,contentType:N,consIconColor:R,listType:S,unorderedType:I,prosIconColor:L,titleMargin:P,titlePadding:A,contentMargin:z,contentPadding:F,layoutStyle:M,prosBorder:H,prosBorderThree:V,titleBorderWidthOne:W,titleBorderRadiusOne:D,titleBorderWidthTwo:q,titleBorderRadiusTwo:U,titleBorderWidthThree:$,titleBorderRadiusThree:G,titleBorderWidthFour:Z,titleBorderRadiusFour:X,prosContentBorder:K,prosContentBorderThree:Q,contentBorderWidthOne:Y,contentBorderRadiusOne:J,contentBorderWidthTwo:ee,contentBorderRadiusTwo:te,contentBorderWidthThree:ae,contentBorderRadiusThree:oe,contentBorderWidthFour:ie,contentBorderRadiusFour:ne,consBorder:le,consBorderThree:re,consContentBorder:ce,consContentBorderThree:se,contentAlignment:pe,margin:fe,padding:de}=e;var ue,be,me={};(me={" .affx-pros-cons-inner-wrapper.layout-type-1":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-2 .affx-pros-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-2 .affx-cons-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-3 .affx-pros-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper.layout-type-3 .affx-cons-inner":{"box-shadow":Object(u.a)(n)}," .affx-pros-cons-inner-wrapper":{"margin-top":fe.desktop.top,"margin-left":fe.desktop.left,"margin-right":fe.desktop.right,"margin-bottom":fe.desktop.bottom,"padding-top":de.desktop.top,"padding-left":de.desktop.left,"padding-right":de.desktop.right,"padding-bottom":de.desktop.bottom}," .pros-icon-title-wrap .affiliatex-block-pros":{"margin-top":P.desktop.top,"margin-left":P.desktop.left,"margin-right":P.desktop.right,"margin-bottom":P.desktop.bottom,"padding-top":A.desktop.top,"padding-left":A.desktop.left,"padding-right":A.desktop.right,"padding-bottom":A.desktop.bottom}," .cons-icon-title-wrap .affiliatex-block-cons":{"margin-top":P.desktop.top,"margin-left":P.desktop.left,"margin-right":P.desktop.right,"margin-bottom":P.desktop.bottom,"padding-top":A.desktop.top,"padding-left":A.desktop.left,"padding-right":A.desktop.right,"padding-bottom":A.desktop.bottom}," .affx-pros-cons-inner-wrapper.layout-type-1 .pros-icon-title-wrap .affiliatex-block-pros":{"border-style":H.style,"border-width":W.desktop.top+" "+W.desktop.right+" "+W.desktop.bottom+" "+W.desktop.left,"border-color":H.color.color,"border-radius":D.desktop.top+" "+D.desktop.right+" "+D.desktop.bottom+" "+D.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-pros":{"border-style":K.style,"border-width":Y.desktop.top+" "+Y.desktop.right+" "+Y.desktop.bottom+" "+Y.desktop.left,"border-color":K.color.color,"border-radius":J.desktop.top+" "+J.desktop.right+" "+J.desktop.bottom+" "+J.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .pros-icon-title-wrap .affiliatex-block-pros":{"border-style":H.style,"border-width":q.desktop.top+" "+q.desktop.right+" "+q.desktop.bottom+" "+q.desktop.left,"border-color":H.color.color,"border-radius":U.desktop.top+" "+U.desktop.right+" "+U.desktop.bottom+" "+U.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-pros":{"border-style":K.style,"border-width":ee.desktop.top+" "+ee.desktop.right+" "+ee.desktop.bottom+" "+ee.desktop.left,"border-color":K.color.color,"border-radius":te.desktop.top+" "+te.desktop.right+" "+te.desktop.bottom+" "+te.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .pros-icon-title-wrap .affiliatex-block-pros":{"border-style":H.style,"border-width":Z.desktop.top+" "+Z.desktop.right+" "+Z.desktop.bottom+" "+Z.desktop.left,"border-color":H.color.color,"border-radius":X.desktop.top+" "+X.desktop.right+" "+X.desktop.bottom+" "+X.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .cons-icon-title-wrap .affiliatex-block-cons":{"border-style":le.style,"border-width":W.desktop.top+" "+W.desktop.right+" "+W.desktop.bottom+" "+W.desktop.left,"border-color":le.color.color,"border-radius":D.desktop.top+" "+D.desktop.right+" "+D.desktop.bottom+" "+D.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-cons":{"border-style":ce.style,"border-width":Y.desktop.top+" "+Y.desktop.right+" "+Y.desktop.bottom+" "+Y.desktop.left,"border-color":ce.color.color,"border-radius":J.desktop.top+" "+J.desktop.right+" "+J.desktop.bottom+" "+J.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .cons-icon-title-wrap .affiliatex-block-cons":{"border-style":le.style,"border-width":q.desktop.top+" "+q.desktop.right+" "+q.desktop.bottom+" "+q.desktop.left,"border-color":le.color.color,"border-radius":U.desktop.top+" "+U.desktop.right+" "+U.desktop.bottom+" "+U.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-cons":{"border-style":ce.style,"border-width":ee.desktop.top+" "+ee.desktop.right+" "+ee.desktop.bottom+" "+ee.desktop.left,"border-color":ce.color.color,"border-radius":te.desktop.top+" "+te.desktop.right+" "+te.desktop.bottom+" "+te.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .cons-icon-title-wrap .affiliatex-block-cons":{"border-style":le.style,"border-width":Z.desktop.top+" "+Z.desktop.right+" "+Z.desktop.bottom+" "+Z.desktop.left,"border-color":le.color.color,"border-radius":X.desktop.top+" "+X.desktop.right+" "+X.desktop.bottom+" "+X.desktop.left}," .affiliatex-block-cons":{"text-align":l}," .affiliatex-block-cons .affiliatex-title":{"font-family":c.family,"font-weight":Object(u.c)(c.variation),"font-style":Object(u.b)(c.variation),"font-size":c.size.desktop,"line-height":c["line-height"].desktop,"text-transform":c["text-transform"],"text-decoration":c["text-decoration"],"letter-spacing":c["letter-spacing"].desktop}," .affiliatex-block-pros":{"text-align":l}," .affiliatex-block-pros .affiliatex-title":{"font-family":c.family,"font-weight":Object(u.c)(c.variation),"font-style":Object(u.b)(c.variation),"font-size":c.size.desktop,"line-height":c["line-height"].desktop,"text-transform":c["text-transform"],"text-decoration":c["text-decoration"],"letter-spacing":c["letter-spacing"].desktop}," .affiliatex-content":{"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom,"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affiliatex-list":{"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom,"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affiliatex-cons":{"text-align":pe}," .affiliatex-pros":{"text-align":pe}," .affiliatex-cons p":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:k}," .affiliatex-cons li":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:k,display:"left"!=pe?"block":"flex"}," .affiliatex-pros p":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:h}," .affiliatex-pros li":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"],"text-decoration":s["text-decoration"],"letter-spacing":s["letter-spacing"].desktop,color:h,display:"left"!=pe?"block":"flex"}," .affiliatex-block-pros .affiliatex-icon::before":{"font-size":o+"px"}," .affiliatex-block-cons .affiliatex-icon::before":{"font-size":i+"px"}," .affiliatex-pros ul li::before":{color:L}," .affiliatex-pros li::marker":{color:L}," .affiliatex-pros ul.bullet li::before":{background:L}," .affiliatex-cons ul li::before":{color:R}," .affiliatex-cons li::marker":{color:R}," .affiliatex-cons ul.bullet li::before":{background:R}," .affiliatex-pros ol li::before":{"border-color":L,color:L}," .affiliatex-cons ol li::before":{"border-color":R,color:R}," .affx-pros-cons-inner-wrapper.layout-type-3  .pros-icon-title-wrap":{"border-style":Q.style,"border-width":ae.desktop.top+" "+ae.desktop.right+" 0 "+ae.desktop.left,"border-color":Q.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .cons-icon-title-wrap":{"border-style":se.style,"border-width":ae.desktop.top+" "+ae.desktop.right+" 0 "+ae.desktop.left,"border-color":se.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-pros":{"border-style":Q.style,"border-width":"0 "+ae.desktop.right+" "+ae.desktop.bottom+" "+ae.desktop.left,"border-color":Q.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-cons":{"border-style":se.style,"border-width":"0 "+ae.desktop.right+" "+ae.desktop.bottom+" "+ae.desktop.left,"border-color":se.color.color,"border-radius":oe.desktop.top+" "+oe.desktop.right+" "+oe.desktop.bottom+" "+oe.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before":{"border-style":V.style,"border-width":$.desktop.top+" "+$.desktop.right+" "+$.desktop.bottom+" "+$.desktop.left,"border-color":V.color.color,"border-radius":G.desktop.top+" "+G.desktop.right+" "+G.desktop.bottom+" "+G.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before":{"border-style":re.style,"border-width":$.desktop.top+" "+$.desktop.right+" "+$.desktop.bottom+" "+$.desktop.left,"border-color":re.color.color,"border-radius":G.desktop.top+" "+G.desktop.right+" "+G.desktop.bottom+" "+G.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .pros-title-icon":{"justify-content":r}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .cons-title-icon":{"justify-content":r}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros":{"align-items":r,"margin-top":"0px","margin-left":"0px","margin-right":"0px","margin-bottom":"0px","padding-top":"0px","padding-left":"10px","padding-right":"10px","padding-bottom":"0px"}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons":{"align-items":r,"margin-top":"0px","margin-left":"0px","margin-right":"0px","margin-bottom":"0px","padding-top":"0px","padding-left":"10px","padding-right":"10px","padding-bottom":"0px"}," .affx-pros-cons-inner-wrapper.layout-type-4 .affx-pros-inner .affiliatex-pros":{background:"transparent",border:"none","border-radius":"0"}," .affx-pros-cons-inner-wrapper.layout-type-4 .affx-cons-inner .affiliatex-cons":{background:"transparent",border:"none","border-radius":"0"}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros ul li":{"border-style":K.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":K.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons ul li":{"border-style":ce.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":ce.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list":{padding:"0"}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-content li":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list li":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p":{"border-style":K.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":K.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left,"margin-top":"10px"}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p":{"border-style":ce.style,"border-width":ie.desktop.top+" "+ie.desktop.right+" "+ie.desktop.bottom+" "+ie.desktop.left,"border-color":ce.color.color,"border-radius":ne.desktop.top+" "+ne.desktop.right+" "+ne.desktop.bottom+" "+ne.desktop.left,"margin-top":"10px"}," .affx-pros-inner .affiliatex-pros":{}," .affx-cons-inner .affiliatex-cons":{}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros li":{}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons li":{}," .affiliatex-pros ul":{}," .affiliatex-cons ul":{}})[" .affiliatex-block-pros"].background="solid"===b?m:g.gradient,me[" .affiliatex-block-cons"].background="solid"===y?O:j.gradient,me[" .affx-pros-inner .affiliatex-pros"].background="solid"===C?w:E.gradient,me[" .affx-cons-inner .affiliatex-cons"].background="solid"===_?T:B.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros"].background="solid"===C?w:E.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons"].background="solid"===_?T:B.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before"].background="solid"===b?m:g.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before"].background="solid"===y?O:j.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros li"].background="solid"===C?w:E.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons li"].background="solid"===_?T:B.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p"].background="solid"===C?w:E.gradient,me[" .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p"].background="solid"===_?T:B.gradient,me[" .affiliatex-pros ul"]["list-style"]="list"==N&&"unordered"==S&&"icon"==I?"none":"",me[" .affiliatex-cons ul"]["list-style"]="list"==N&&"unordered"==S&&"icon"==I?"none":"",me[" .affiliatex-block-pros .affiliatex-title"].color="layout-type-3"===M?f:p,me[" .affiliatex-block-cons .affiliatex-title"].color="layout-type-3"===M?x:v,be={" .pros-icon-title-wrap .affiliatex-block-pros":{"margin-top":P.tablet.top,"margin-left":P.tablet.left,"margin-right":P.tablet.right,"margin-bottom":P.tablet.bottom,"padding-top":A.tablet.top,"padding-left":A.tablet.left,"padding-right":A.tablet.right,"padding-bottom":A.tablet.bottom}," .cons-icon-title-wrap .affiliatex-block-cons":{"margin-top":P.tablet.top,"margin-left":P.tablet.left,"margin-right":P.tablet.right,"margin-bottom":P.tablet.bottom,"padding-top":A.tablet.top,"padding-left":A.tablet.left,"padding-right":A.tablet.right,"padding-bottom":A.tablet.bottom}," .affx-pros-cons-inner-wrapper.layout-type-1 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":W.tablet.top+" "+W.tablet.right+" "+W.tablet.bottom+" "+W.tablet.left,"border-radius":D.tablet.top+" "+D.tablet.right+" "+D.tablet.bottom+" "+D.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-pros":{"border-width":Y.tablet.top+" "+Y.tablet.right+" "+Y.tablet.bottom+" "+Y.tablet.left,"border-radius":J.tablet.top+" "+J.tablet.right+" "+J.tablet.bottom+" "+J.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":q.tablet.top+" "+q.tablet.right+" "+q.tablet.bottom+" "+q.tablet.left,"border-radius":U.tablet.top+" "+U.tablet.right+" "+U.tablet.bottom+" "+U.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-pros":{"border-width":ee.tablet.top+" "+ee.tablet.right+" "+ee.tablet.bottom+" "+ee.tablet.left,"border-radius":te.tablet.top+" "+te.tablet.right+" "+te.tablet.bottom+" "+te.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":Z.tablet.top+" "+Z.tablet.right+" "+Z.tablet.bottom+" "+Z.tablet.left,"border-radius":X.tablet.top+" "+X.tablet.right+" "+X.tablet.bottom+" "+X.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":W.tablet.top+" "+W.tablet.right+" "+W.tablet.bottom+" "+W.tablet.left,"border-radius":D.tablet.top+" "+D.tablet.right+" "+D.tablet.bottom+" "+D.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-cons":{"border-width":Y.tablet.top+" "+Y.tablet.right+" "+Y.tablet.bottom+" "+Y.tablet.left,"border-radius":J.tablet.top+" "+J.tablet.right+" "+J.tablet.bottom+" "+J.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":q.tablet.top+" "+q.tablet.right+" "+q.tablet.bottom+" "+q.tablet.left,"border-radius":U.tablet.top+" "+U.tablet.right+" "+U.tablet.bottom+" "+U.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-cons":{"border-width":ee.tablet.top+" "+ee.tablet.right+" "+ee.tablet.bottom+" "+ee.tablet.left,"border-radius":te.tablet.top+" "+te.tablet.right+" "+te.tablet.bottom+" "+te.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":Z.tablet.top+" "+Z.tablet.right+" "+Z.tablet.bottom+" "+Z.tablet.left,"border-radius":X.tablet.top+" "+X.tablet.right+" "+X.tablet.bottom+" "+X.tablet.left}," .affiliatex-block-cons .affiliatex-title":{"font-size":c.size.tablet,"line-height":c["line-height"].tablet,"letter-spacing":c["letter-spacing"].tablet}," .affiliatex-block-pros .affiliatex-title":{"font-size":c.size.tablet,"line-height":c["line-height"].tablet,"letter-spacing":c["letter-spacing"].tablet}," .affiliatex-content":{"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom,"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affiliatex-list":{"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom,"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affiliatex-cons p":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affiliatex-cons li":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affiliatex-pros p":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affiliatex-pros li":{"font-size":s.size.tablet,"line-height":s["line-height"].tablet,"letter-spacing":s["letter-spacing"].tablet}," .affx-pros-cons-inner-wrapper.layout-type-3  .pros-icon-title-wrap":{"border-width":ae.tablet.top+" "+ae.tablet.right+" 0 "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .cons-icon-title-wrap":{"border-width":ae.tablet.top+" "+ae.tablet.right+" 0 "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-pros":{"border-width":"0 "+ae.tablet.right+" "+ae.tablet.bottom+" "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-cons":{"border-width":"0 "+ae.tablet.right+" "+ae.tablet.bottom+" "+ae.tablet.left,"border-radius":oe.tablet.top+" "+oe.tablet.right+" "+oe.tablet.bottom+" "+oe.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before":{"border-width":$.tablet.top+" "+$.tablet.right+" "+$.tablet.bottom+" "+$.tablet.left,"border-radius":G.tablet.top+" "+G.tablet.right+" "+G.tablet.bottom+" "+G.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before":{"border-width":$.tablet.top+" "+$.tablet.right+" "+$.tablet.bottom+" "+$.tablet.left,"border-radius":G.tablet.top+" "+G.tablet.right+" "+G.tablet.bottom+" "+G.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros ul li":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons ul li":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-content li":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list li":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p":{"border-width":ie.tablet.top+" "+ie.tablet.right+" "+ie.tablet.bottom+" "+ie.tablet.left,"border-radius":ne.tablet.top+" "+ne.tablet.right+" "+ne.tablet.bottom+" "+ne.tablet.left}," .affx-pros-cons-inner-wrapper":{"margin-top":fe.tablet.top,"margin-left":fe.tablet.left,"margin-right":fe.tablet.right,"margin-bottom":fe.tablet.bottom,"padding-top":de.tablet.top,"padding-left":de.tablet.left,"padding-right":de.tablet.right,"padding-bottom":de.tablet.bottom}},ue={" .pros-icon-title-wrap .affiliatex-block-pros":{"margin-top":P.mobile.top,"margin-left":P.mobile.left,"margin-right":P.mobile.right,"margin-bottom":P.mobile.bottom,"padding-top":A.mobile.top,"padding-left":A.mobile.left,"padding-right":A.mobile.right,"padding-bottom":A.mobile.bottom}," .cons-icon-title-wrap .affiliatex-block-cons":{"margin-top":P.mobile.top,"margin-left":P.mobile.left,"margin-right":P.mobile.right,"margin-bottom":P.mobile.bottom,"padding-top":A.mobile.top,"padding-left":A.mobile.left,"padding-right":A.mobile.right,"padding-bottom":A.mobile.bottom}," .affx-pros-cons-inner-wrapper.layout-type-1 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":W.mobile.top+" "+W.mobile.right+" "+W.mobile.bottom+" "+W.mobile.left,"border-radius":D.mobile.top+" "+D.mobile.right+" "+D.mobile.bottom+" "+D.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-pros":{"border-width":Y.mobile.top+" "+Y.mobile.right+" "+Y.mobile.bottom+" "+Y.mobile.left,"border-radius":J.mobile.top+" "+J.mobile.right+" "+J.mobile.bottom+" "+J.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":q.mobile.top+" "+q.mobile.right+" "+q.mobile.bottom+" "+q.mobile.left,"border-radius":U.mobile.top+" "+U.mobile.right+" "+U.mobile.bottom+" "+U.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-pros":{"border-width":ee.mobile.top+" "+ee.mobile.right+" "+ee.mobile.bottom+" "+ee.mobile.left,"border-radius":te.mobile.top+" "+te.mobile.right+" "+te.mobile.bottom+" "+te.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .pros-icon-title-wrap .affiliatex-block-pros":{"border-width":Z.mobile.top+" "+Z.mobile.right+" "+Z.mobile.bottom+" "+Z.mobile.left,"border-radius":X.mobile.top+" "+X.mobile.right+" "+X.mobile.bottom+" "+X.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":W.mobile.top+" "+W.mobile.right+" "+W.mobile.bottom+" "+W.mobile.left,"border-radius":D.mobile.top+" "+D.mobile.right+" "+D.mobile.bottom+" "+D.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-1 .affiliatex-cons":{"border-width":Y.mobile.top+" "+Y.mobile.right+" "+Y.mobile.bottom+" "+Y.mobile.left,"border-radius":J.mobile.top+" "+J.mobile.right+" "+J.mobile.bottom+" "+J.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":q.mobile.top+" "+q.mobile.right+" "+q.mobile.bottom+" "+q.mobile.left,"border-radius":U.mobile.top+" "+U.mobile.right+" "+U.mobile.bottom+" "+U.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-2 .affiliatex-cons":{"border-width":ee.mobile.top+" "+ee.mobile.right+" "+ee.mobile.bottom+" "+ee.mobile.left,"border-radius":te.mobile.top+" "+te.mobile.right+" "+te.mobile.bottom+" "+te.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4 .cons-icon-title-wrap .affiliatex-block-cons":{"border-width":Z.mobile.top+" "+Z.mobile.right+" "+Z.mobile.bottom+" "+Z.mobile.left,"border-radius":X.mobile.top+" "+X.mobile.right+" "+X.mobile.bottom+" "+X.mobile.left}," .affiliatex-block-cons .affiliatex-title":{"font-size":c.size.mobile,"line-height":c["line-height"].mobile,"letter-spacing":c["letter-spacing"].mobile}," .affiliatex-block-pros .affiliatex-title":{"font-size":c.size.mobile,"line-height":c["line-height"].mobile,"letter-spacing":c["letter-spacing"].mobile}," .affiliatex-content":{"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom,"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affiliatex-list":{"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom,"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affiliatex-cons p":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-cons li":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-pros p":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-pros li":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affx-pros-cons-inner-wrapper.layout-type-3  .pros-icon-title-wrap":{"border-width":ae.mobile.top+" "+ae.mobile.right+" 0 "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .cons-icon-title-wrap":{"border-width":ae.mobile.top+" "+ae.mobile.right+" 0 "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-pros":{"border-width":"0 "+ae.mobile.right+" "+ae.mobile.bottom+" "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3  .affiliatex-cons":{"border-width":"0 "+ae.mobile.right+" "+ae.mobile.bottom+" "+ae.mobile.left,"border-radius":oe.mobile.top+" "+oe.mobile.right+" "+oe.mobile.bottom+" "+oe.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-pros .affiliatex-title:before":{"border-width":$.mobile.top+" "+$.mobile.right+" "+$.mobile.bottom+" "+$.mobile.left,"border-radius":G.mobile.top+" "+G.mobile.right+" "+G.mobile.bottom+" "+G.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-3 .affiliatex-block-cons .affiliatex-title:before":{"border-width":$.mobile.top+" "+$.mobile.right+" "+$.mobile.bottom+" "+$.mobile.left,"border-radius":G.mobile.top+" "+G.mobile.right+" "+G.mobile.bottom+" "+G.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros ul li":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons ul li":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-content li":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-list li":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-pros p":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper.layout-type-4  .affiliatex-cons p":{"border-width":ie.mobile.top+" "+ie.mobile.right+" "+ie.mobile.bottom+" "+ie.mobile.left,"border-radius":ne.mobile.top+" "+ne.mobile.right+" "+ne.mobile.bottom+" "+ne.mobile.left}," .affx-pros-cons-inner-wrapper":{"margin-top":fe.mobile.top,"margin-left":fe.mobile.left,"margin-right":fe.mobile.right,"margin-bottom":fe.mobile.bottom,"padding-top":de.mobile.top,"padding-left":de.mobile.left,"padding-right":de.mobile.right,"padding-bottom":de.mobile.bottom}};var ge="";return ge=Object(d.a)(me,`#${t}-${a}`),(ge+=Object(d.a)(be,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(ue,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-pros-cons-style",l))},[e]);const{Fragment:r}=wp.element,{titleTypography:c,listTypography:s,titleTag1:p,layoutStyle:f,prosTitle:b,consTitle:m,prosIcon:g,consIcon:h,prosListItems:v,consListItems:x,listType:y,prosContent:O,contentType:j,consContent:C,prosListIcon:w,consListIcon:E,unorderedType:_,prosIconStatus:T,consIconStatus:B}=e,N=p;let R,S;if("Default"!==c.family){const e={google:{families:[c.family+(c.variation?":"+c.variation:"")]}};R=Object(i.createElement)(k,{config:e})}if("Default"!==s.family){const e={google:{families:[s.family+(s.variation?":"+s.variation:"")]}};S=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(r,null,Object(i.createElement)(P,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-pros-cons-style-"+l,className:"affx-pros-cons-wrapper"+(a?" "+a:"")},Object(i.createElement)("div",{className:"affx-pros-cons-inner-wrapper "+f},Object(i.createElement)("div",{className:"affx-pros-inner"},Object(i.createElement)("div",{className:"pros-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-pros"},Object(i.createElement)(A,{tagName:N,value:b,className:"affiliatex-title affiliatex-icon "+(T?" affiliatex-icon-"+w.name:""),onChange:e=>t({prosTitle:e})}))),Object(i.createElement)("div",{className:"affiliatex-pros"},"list"===j&&"bullet"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered bullet",placeholder:Object(n.__)("Enter new item","affiliatex"),value:v,onChange:e=>t({prosListItems:e}),keepPlaceholderOnFocus:!0}),"list"===j&&"icon"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered icon affiliatex-icon affiliatex-icon-"+g.name,placeholder:Object(n.__)("Enter new item","affiliatex"),value:v,onChange:e=>t({prosListItems:e}),keepPlaceholderOnFocus:!0}),"paragraph"===j&&Object(i.createElement)(A,{tagName:"p",value:O,placeholder:Object(n.__)("Pros Content","affiliatex"),className:"affiliatex-content",onChange:e=>t({prosContent:e})}))),Object(i.createElement)("div",{className:"affx-cons-inner"},Object(i.createElement)("div",{className:"cons-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-cons"},Object(i.createElement)(A,{tagName:N,value:m,className:"affiliatex-title affiliatex-icon "+(B?" affiliatex-icon-"+E.name:""),onChange:e=>t({consTitle:e})}))),Object(i.createElement)("div",{className:"affiliatex-cons"},"list"===j&&"bullet"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered bullet",placeholder:Object(n.__)("Enter new item","affiliatex"),value:x,onChange:e=>t({consListItems:e}),keepPlaceholderOnFocus:!0}),"list"===j&&"icon"===_&&Object(i.createElement)(A,{tagName:"unordered"==y?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered icon affiliatex-icon affiliatex-icon-"+h.name,placeholder:Object(n.__)("Enter new item","affiliatex"),value:x,onChange:e=>t({consListItems:e}),keepPlaceholderOnFocus:!0}),"paragraph"===j&&Object(i.createElement)(A,{tagName:"p",value:C,className:"affiliatex-content",placeholder:Object(n.__)("Cons Content","affiliatex"),onChange:e=>t({consContent:e})}))))),R,S)},D=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,prosTitle:n,consTitle:l,prosIcon:r,consIcon:c,titleTag1:s,layoutStyle:p,prosListItems:f,consListItems:d,listType:u,prosContent:b,contentType:m,consContent:g,prosListIcon:h,consListIcon:v,unorderedType:x,prosIconStatus:y,consIconStatus:O}=e,j=s;return Object(i.createElement)("div",{id:"affiliatex-pros-cons-style-"+o,className:"affx-pros-cons-wrapper"+(t?" "+t:"")},Object(i.createElement)("div",{className:"affx-pros-cons-inner-wrapper "+p},Object(i.createElement)("div",{className:"affx-pros-inner"},Object(i.createElement)("div",{className:"pros-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-pros"},Object(i.createElement)(a.Content,{tagName:j,value:n,className:"affiliatex-title affiliatex-icon "+(y?" affiliatex-icon-"+h.name:"")}))),Object(i.createElement)("div",{className:"affiliatex-pros"},"list"===m&&"bullet"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:f,className:"affiliatex-list bullet"}),"list"===m&&"icon"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:f,className:"affiliatex-list icon affiliatex-icon affiliatex-icon-"+r.name}),"paragraph"===m&&Object(i.createElement)(a.Content,{tagName:"p",value:b,className:"affiliatex-content"}))),Object(i.createElement)("div",{className:"affx-cons-inner"},Object(i.createElement)("div",{className:"cons-icon-title-wrap"},Object(i.createElement)("div",{className:"affiliatex-block-cons"},Object(i.createElement)(a.Content,{tagName:j,value:l,className:"affiliatex-title affiliatex-icon "+(O?" affiliatex-icon-"+v.name:"")}))),Object(i.createElement)("div",{className:"affiliatex-cons"},"list"===m&&"bullet"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:d,className:"affiliatex-list bullet"}),"list"===m&&"icon"===x&&Object(i.createElement)(a.Content,{tagName:"unordered"==u?"ul":"ol",multiline:"li",value:d,className:"affiliatex-list icon affiliatex-icon affiliatex-icon-"+c.name}),"paragraph"===m&&Object(i.createElement)(a.Content,{tagName:"p",value:g,className:"affiliatex-content"})))))};Object(S.registerBlockType)("affiliatex/pros-and-cons",{title:Object(n.__)("AffiliateX Pros and Cons","affiliatex"),description:Object(n.__)("Add a customizable pros and cons block","affiliatex"),icon:R.k,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("Pros and Cons","affiliatex"),Object(n.__)("Pros","affiliatex"),Object(n.__)("Cons","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:L,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(W,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(D,{attributes:e,className:t})});const q=AffiliateX.customizationData;var U={block_id:{type:"string"},productComparisonTable:{type:"array",default:[{title:"",imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",ribbonText:Object(n.__)("Our Pick","affiliatex"),imageId:"",imageAlt:"",price:"$59.00",rating:4,button:"Buy Now",buttonURL:"",btnRelNoFollow:!1,btnRelSponsored:!1,btnOpenInNewTab:!1,btnDownload:!1},{title:"",imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",ribbonText:"",imageId:"",imageAlt:"",price:"$59.00",rating:4,button:"Buy Now",buttonURL:"",btnRelNoFollow:!1,btnRelSponsored:!1,btnOpenInNewTab:!1,btnDownload:!1}]},comparisonSpecs:{type:"array",default:[{title:"",specs:[]}]},titleColor:{type:"string",default:"#262B33"},ribbonColor:{type:"string",default:"#F13A3A"},ribbonTextColor:{type:"string",default:"#fff"},starColor:{type:"string",default:"#FFB800"},starInactiveColor:{type:"string",default:"#A3ACBF"},pcRibbon:{type:"boolean",default:!0},pcImage:{type:"boolean",default:!0},pcTitle:{type:"boolean",default:!0},pcRating:{type:"boolean",default:!0},pcPrice:{type:"boolean",default:!0},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},pcButton:{type:"boolean",default:!0},pcButtonIcon:{type:"boolean",default:!0},buttonIcon:{type:"string",default:{name:"angle-right",value:"fas fa-angle-right"}},buttonIconAlign:{type:"string",default:"right"},buttonPadding:{type:"object",default:{desktop:{top:"10px",left:"10px",right:"10px",bottom:"10px"},mobile:{top:"10px",left:"10px",right:"10px",bottom:"10px"},tablet:{top:"10px",left:"10px",right:"10px",bottom:"10px"}}},buttonMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},border:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},borderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},borderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},priceColor:{type:"string",default:"#262B33"},tableRowBgColor:{type:"string",default:"#F5F7FA"},contentColor:{type:"string",default:q.fontColor||"#292929"},buttonTextColor:{type:"string",default:"#fff"},buttonTextHoverColor:{type:"string",default:"#fff"},bgType:{type:"string",default:"solid"},bgColorSolid:{type:"string",default:"#FFFFFF"},bgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},buttonBgColor:{type:"string",default:q.btnColor||"#2670FF"},buttonBgHoverColor:{type:"string",default:q.btnHoverColor||"#084ACA"},titleTypography:{type:"object",default:{family:(null==q||null===(z=q.typography)||void 0===z?void 0:z.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ribbonTypography:{type:"object",default:{family:(null==q||null===(F=q.typography)||void 0===F?void 0:F.family)||"Default",variation:"n4",size:{desktop:"13px",mobile:"13px",tablet:"13px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},priceTypography:{type:"object",default:{family:(null==q||null===(M=q.typography)||void 0===M?void 0:M.family)||"Default",variation:"n4",size:{desktop:"20px",mobile:"20px",tablet:"20px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},buttonTypography:{type:"object",default:{family:(null==q||null===(H=q.typography)||void 0===H?void 0:H.family)||"Default",variation:"n4",size:{desktop:"16px",mobile:"16px",tablet:"16px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},contentTypography:{type:"object",default:{family:(null==q||null===(V=q.typography)||void 0===V?void 0:V.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},margin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"24px",left:"24px",right:"24px",bottom:"24px"},mobile:{top:"16px",left:"16px",right:"16px",bottom:"16px"},tablet:{top:"16px",left:"16px",right:"16px",bottom:"16px"}}},imagePadding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}},$=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{PanelBody:o,ToggleControl:l}=wp.components,{pcRibbon:r,starColor:f,starInactiveColor:d,pcImage:u,pcTitle:b,pcRating:m,pcPrice:g,boxShadow:h,pcButton:v,pcButtonIcon:x,buttonIconAlign:y,buttonIcon:O,buttonPadding:j,buttonMargin:k,border:C,borderWidth:w,borderRadius:E,priceColor:_,tableRowBgColor:T,contentColor:B,buttonTextColor:N,buttonTextHoverColor:R,bgType:S,bgColorSolid:I,bgColorGradient:L,buttonBgColor:P,buttonBgHoverColor:A,titleTypography:z,ribbonTypography:F,priceTypography:M,buttonTypography:H,contentTypography:V,margin:W,padding:D,titleColor:q,ribbonColor:$,ribbonTextColor:G,imagePadding:Z}=e;return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(o,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-pc-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Ribbon","affiliatex"),checked:!!r,onChange:()=>t({pcRibbon:!r})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Images","affiliatex"),checked:!!u,onChange:()=>t({pcImage:!u})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Title","affiliatex"),checked:!!b,onChange:()=>t({pcTitle:!b})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Prices","affiliatex"),checked:!!g,onChange:()=>t({pcPrice:!g})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Ratings","affiliatex"),checked:!!m,onChange:()=>t({pcRating:!m})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"pc-box-shadow",option:{id:"pc-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:U.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})))),Object(i.createElement)(o,{title:Object(n.__)("Button Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Button","affiliatex"),checked:!!v,onChange:()=>t({pcButton:!v})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!x,onChange:()=>t({pcButtonIcon:!x})})),x&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+O.value},Object(i.createElement)("label",null,Object(n.__)("Select Icon","affiliatex")),Object(i.createElement)(s.a,{value:O.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({buttonIcon:e})}})),x&&Object(i.createElement)(c.a,{value:y,values:y,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Icon Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:U.buttonIconAlign.default,choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({buttonIconAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:j,values:j,id:"pc-button-padding",option:{id:"pc-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:U.buttonPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({buttonPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"pc-button-margin",option:{id:"pc-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:U.buttonMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({buttonMargin:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"pc-border",option:{id:"pc-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:U.border.default},hasRevertButton:!0,onChange:e=>t({border:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:w,values:w,id:"pc-border-width",option:{id:"pc-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:U.borderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,values:E,id:"pc-border-radius",option:{id:"pc-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:U.borderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderRadius:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},r&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ribbonColor:{color:$},ribbonTextColor:{color:G}},option:{id:"pc-ribbon-color",label:Object(n.__)("Ribbon Color","affiliatex"),type:"ab-color-picker",value:{ribbonColor:{color:U.ribbonColor.default},ribbonTextColor:{color:U.ribbonTextColor.default}},pickers:[{id:"ribbonColor",title:Object(n.__)("Text Color")},{id:"ribbonTextColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({ribbonColor:e.ribbonColor.color,ribbonTextColor:e.ribbonTextColor.color})})),b&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{titleColor:{color:q}},option:{id:"pc-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{titleColor:{color:U.titleColor.default}},pickers:[{id:"titleColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({titleColor:e.titleColor.color})})),g&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:_}},option:{id:"pc-title-color",label:Object(n.__)("Price Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:U.priceColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Price Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({priceColor:e.textColor.color})})),m&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:f},inactiveColor:{color:d}},option:{id:"pc-star-color",label:Object(n.__)("Star Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:U.starColor.default},inactiveColor:{color:U.starInactiveColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Star Color","affiliatex")},{id:"inactiveColor",title:Object(n.__)("Inactive Star Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({starColor:e.ratingColor.color,starInactiveColor:e.inactiveColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:T}},option:{id:"pc-tablebg-color",label:Object(n.__)("Alternate Table Row Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:U.tableRowBgColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({tableRowBgColor:e.backgroundColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:B}},option:{id:"pc-tablebg-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:U.contentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")}]},hasRevertButton:!0,onChange:e=>t({contentColor:e.textColor.color})})),v&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:N},textHoverColor:{color:R}},option:{id:"pc-text-color",label:Object(n.__)("Button Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:U.buttonTextColor.default},textHoverColor:{color:U.buttonTextHoverColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textHoverColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({buttonTextColor:e.textColor.color,buttonTextHoverColor:e.textHoverColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:P},backgroundHoverColor:{color:A}},option:{id:"pc-text-color",label:Object(n.__)("Button Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:U.buttonBgColor.default},backgroundHoverColor:{color:U.buttonBgHoverColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")},{id:"backgroundHoverColor",title:Object(n.__)("Background Hover Color")}]},hasRevertButton:!0,onChange:e=>t({buttonBgColor:e.backgroundColor.color,buttonBgHoverColor:e.backgroundHoverColor.color})}))),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"pc-bg-type",option:{id:"pc-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:U.bgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({bgType:e})})),"solid"===S&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:I}},option:{id:"pc-bg-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:U.bgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({bgColorSolid:e.bgColor.color})})),"gradient"===S&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:L,onChange:e=>t({bgColorGradient:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-pc-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option pc-title-typography"},Object(i.createElement)(c.a,{value:z,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:U.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-title-typography"},Object(i.createElement)(c.a,{value:F,id:"ribbon-typography",option:{id:"ribbon-typography",label:Object(n.__)("Ribbon Typography","affiliatex"),type:"ab-typography",value:U.ribbonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ribbonTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-title-typography"},Object(i.createElement)(c.a,{value:M,id:"pricing-typography",option:{id:"pricing-typography",label:Object(n.__)("Pricing Typography","affiliatex"),type:"ab-typography",value:U.priceTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({priceTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-content-typography"},Object(i.createElement)(c.a,{value:H,id:"button-typography",option:{id:"button-typography",label:Object(n.__)("Button Typography","affiliatex"),type:"ab-typography",value:U.buttonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({buttonTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pc-typography"},Object(i.createElement)(c.a,{value:V,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:U.contentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({contentTypography:e})}})))),Object(i.createElement)(o,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Z,values:Z,id:"pc-image-padding",option:{id:"pc-image-padding",label:Object(n.__)("Image Padding","affiliatex"),type:"ab-spacing",value:U.imagePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({imagePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:W,values:W,id:"pc-margin",option:{id:"pc-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:U.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:D,values:D,id:"pc-padding",option:{id:"pc-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:U.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))},G=a(34),Z=a(65),X=Object(i.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(i.createElement)(Z.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));const{Fragment:K}=wp.element,{URLPopover:Q,URLInput:Y}=wp.blockEditor,{Button:J,ToggleControl:ee}=wp.components;var te=({index:e,url:t,opensInNewTab:a,relNoFollow:o,relSponsored:l,download:r,onChangeProductLinks:c,setSelectedButton:s,buttonNumber:p})=>Object(i.createElement)(K,null,Object(i.createElement)(Q,{onClose:()=>{s(null)},onMouseLeave:()=>{s(null)},className:"affx-custom-popover"},Object(i.createElement)("div",{className:"affiliate-url-input",style:{width:"250px"}},Object(i.createElement)("form",{onSubmit:e=>{e.preventDefault(),s(null)}},Object(i.createElement)(Y,{placeholder:Object(n.__)("https://www.example.com","affiliatex"),className:"button-url",value:t,onChange:t=>{c(t,e,`button${p}URL`)},required:!1,autoFocus:!1}),Object(i.createElement)(J,{icon:X,label:Object(n.__)("Apply","affiliatex"),type:"submit"})),Object(i.createElement)(ee,{label:Object(n.__)("Open in new tab","affiliatex"),checked:a,onChange:t=>{c(t,e,`btn${p}OpenInNewTab`)}}),Object(i.createElement)(ee,{label:Object(n.__)('Add rel="nofollow"',"affiliatex"),checked:o,onChange:t=>{c(t,e,`btn${p}RelNoFollow`)}}),Object(i.createElement)(ee,{label:Object(n.__)('Add rel="sponsored"',"affiliatex"),checked:l,onChange:t=>{c(t,e,`btn${p}RelSponsored`)}}),Object(i.createElement)(ee,{label:Object(n.__)("Add download attribute","affiliatex"),checked:r,onChange:t=>{c(t,e,`btn${p}Download`)}}))));const{RichText:ae,MediaUpload:oe}=wp.blockEditor,{Button:ie}=wp.components,{Fragment:ne}=wp.element;var le,re,ce,se,pe,fe,de,ue,be,me=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-product-comparison-blocks-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-product-comparison-blocks-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{boxShadow:o,buttonPadding:i,buttonMargin:n,border:l,borderWidth:r,borderRadius:c,priceColor:s,tableRowBgColor:p,contentColor:f,buttonTextColor:b,buttonTextHoverColor:m,bgType:g,bgColorSolid:h,bgColorGradient:v,buttonBgColor:x,buttonBgHoverColor:y,titleTypography:O,ribbonTypography:j,priceTypography:k,buttonTypography:C,contentTypography:w,margin:E,padding:_,ribbonColor:T,ribbonTextColor:B,titleColor:N,imagePadding:R}=e;var S,I,L={};(L={" .affx-product-comparison-block-container":{"margin-top":E.desktop.top,"margin-left":E.desktop.left,"margin-right":E.desktop.right,"margin-bottom":E.desktop.bottom,"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color,"border-radius":c.desktop.top+" "+c.desktop.right+" "+c.desktop.bottom+" "+c.desktop.left}," .affx-product-versus-table":{color:f,"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.desktop,"line-height":w["line-height"].desktop,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].desktop}," .affx-comparison-title":{"font-family":O.family,"text-decoration":O["text-decoration"],"font-weight":Object(u.c)(O.variation),"font-style":Object(u.b)(O.variation),"font-size":O.size.desktop,"line-height":O["line-height"].desktop,"text-transform":O["text-transform"],"letter-spacing":O["letter-spacing"].desktop,color:N}," .affx-versus-table-wrap tr:first-child th:first-child":{"border-top-left-radius":c.desktop.top}," .affx-versus-table-wrap tr:first-child th:last-child":{"border-top-right-radius":c.desktop.right}," .affx-versus-table-wrap tr:first-child th:last-child .affx-versus-product":{"border-top-right-radius":c.desktop.right,overflow:"hidden"}," .affx-versus-table-wrap tr:last-child td:first-child":{"border-bottom-left-radius":c.desktop.left}," .affx-versus-table-wrap tr:last-child td:last-child":{"border-bottom-right-radius":c.desktop.bottom}," .affx-versus-table-wrap td":{"padding-top":_.desktop.top,"padding-left":_.desktop.left,"padding-right":_.desktop.right,"padding-bottom":_.desktop.bottom,"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color}," .affx-versus-table-wrap th":{"padding-top":_.desktop.top,"padding-left":_.desktop.left,"padding-right":_.desktop.right,"padding-bottom":_.desktop.bottom,"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color}," .affx-versus-table-wrap .affx-pc-ribbon":{"font-family":j.family,"text-decoration":j["text-decoration"],"font-weight":Object(u.c)(j.variation),"font-style":Object(u.b)(j.variation),"font-size":j.size.desktop,"line-height":j["line-height"].desktop,"text-transform":j["text-transform"],"letter-spacing":j["letter-spacing"].desktop,background:T,color:B}," .affx-versus-table-wrap .affx-pc-ribbon::before":{background:T}," .affx-versus-table-wrap .affx-pc-ribbon::after":{background:T}," .affx-versus-table-wrap .affiliatex-button":{"font-family":C.family,"text-decoration":C["text-decoration"],"font-weight":Object(u.c)(C.variation),"font-style":Object(u.b)(C.variation),"font-size":C.size.desktop,"line-height":C["line-height"].desktop,"text-transform":C["text-transform"],"letter-spacing":C["letter-spacing"].desktop}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button":{color:b,"background-color":x,"margin-top":n.desktop.top,"margin-left":n.desktop.left,"margin-right":n.desktop.right,"margin-bottom":n.desktop.bottom,"padding-top":i.desktop.top,"padding-left":i.desktop.left,"padding-right":i.desktop.right,"padding-bottom":i.desktop.bottom}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button:hover":{color:m,"background-color":y}," .affx-versus-table-wrap .affx-price":{color:s,"font-family":k.family,"font-weight":Object(u.c)(k.variation),"font-style":Object(u.b)(k.variation),"font-size":k.size.desktop,"line-height":k["line-height"].desktop,"text-transform":k["text-transform"],"text-decoration":k["text-decoration"],"letter-spacing":k["letter-spacing"].desktop}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header":{background:p}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.desktop,"line-height":w["line-height"].desktop,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].desktop}," .affx-versus-table-wrap .affx-product-versus-table th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.desktop,"line-height":w["line-height"].desktop,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].desktop}," .affx-versus-table-wrap .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}," .affx-versus-table-wrap .affx-versus-product-img":{"padding-top":R.desktop.top,"padding-left":R.desktop.left,"padding-right":R.desktop.right,"padding-bottom":R.desktop.bottom}})[" .affx-product-comparison-block-container"].background="solid"===g?h:v.gradient,L[" .affx-product-comparison-block-container"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",I={" .affx-product-comparison-block-container":{"margin-top":E.tablet.top,"margin-left":E.tablet.left,"margin-right":E.tablet.right,"margin-bottom":E.tablet.bottom,"border-style":l.style,"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-color":l.color.color,"border-radius":c.tablet.top+" "+c.tablet.right+" "+c.tablet.bottom+" "+c.tablet.left}," .affx-product-versus-table":{color:f,"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.tablet,"line-height":w["line-height"].tablet,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].tablet}," .affx-comparison-title":{"font-family":O.family,"text-decoration":O["text-decoration"],"font-weight":Object(u.c)(O.variation),"font-style":Object(u.b)(O.variation),"font-size":O.size.tablet,"line-height":O["line-height"].tablet,"text-transform":O["text-transform"],"letter-spacing":O["letter-spacing"].tablet,color:N}," .affx-versus-table-wrap tr:first-child th:first-child":{"border-top-left-radius":c.tablet.top}," .affx-versus-table-wrap tr:first-child th:last-child":{"border-top-right-radius":c.tablet.right}," .affx-versus-table-wrap tr:first-child th:last-child .affx-versus-product":{"border-top-right-radius":c.tablet.right,overflow:"hidden"}," .affx-versus-table-wrap tr:last-child td:first-child":{"border-bottom-left-radius":c.tablet.left}," .affx-versus-table-wrap tr:last-child td:last-child":{"border-bottom-right-radius":c.tablet.bottom}," .affx-versus-table-wrap td":{"padding-top":_.tablet.top,"padding-left":_.tablet.left,"padding-right":_.tablet.right,"padding-bottom":_.tablet.bottom,"border-style":l.style,"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-color":l.color.color}," .affx-versus-table-wrap th":{"padding-top":_.tablet.top,"padding-left":_.tablet.left,"padding-right":_.tablet.right,"padding-bottom":_.tablet.bottom,"border-style":l.style,"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-color":l.color.color}," .affx-versus-table-wrap .affx-pc-ribbon":{"font-family":j.family,"text-decoration":j["text-decoration"],"font-weight":Object(u.c)(j.variation),"font-style":Object(u.b)(j.variation),"font-size":j.size.tablet,"line-height":j["line-height"].tablet,"text-transform":j["text-transform"],"letter-spacing":j["letter-spacing"].tablet,background:T,color:B}," .affx-versus-table-wrap .affx-pc-ribbon::before":{background:T}," .affx-versus-table-wrap .affx-pc-ribbon::after":{background:T}," .affx-versus-table-wrap .affiliatex-button":{"font-family":C.family,"text-decoration":C["text-decoration"],"font-weight":Object(u.c)(C.variation),"font-style":Object(u.b)(C.variation),"font-size":C.size.tablet,"line-height":C["line-height"].tablet,"text-transform":C["text-transform"],"letter-spacing":C["letter-spacing"].tablet}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button":{color:b,"background-color":x,"margin-top":n.tablet.top,"margin-left":n.tablet.left,"margin-right":n.tablet.right,"margin-bottom":n.tablet.bottom,"padding-top":i.tablet.top,"padding-left":i.tablet.left,"padding-right":i.tablet.right,"padding-bottom":i.tablet.bottom}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button:hover":{color:m,"background-color":y}," .affx-versus-table-wrap .affx-price":{color:s,"font-family":k.family,"font-weight":Object(u.c)(k.variation),"font-style":Object(u.b)(k.variation),"font-size":k.size.tablet,"line-height":k["line-height"].tablet,"text-transform":k["text-transform"],"text-decoration":k["text-decoration"],"letter-spacing":k["letter-spacing"].tablet}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header":{background:p}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.tablet,"line-height":w["line-height"].tablet,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].tablet}," .affx-versus-table-wrap .affx-product-versus-table th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.tablet,"line-height":w["line-height"].tablet,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].tablet}," .affx-versus-table-wrap .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}," .affx-versus-table-wrap .affx-versus-product-img":{"padding-top":R.tablet.top,"padding-left":R.tablet.left,"padding-right":R.tablet.right,"padding-bottom":R.tablet.bottom}},S={" .affx-product-comparison-block-container":{"margin-top":E.mobile.top,"margin-left":E.mobile.left,"margin-right":E.mobile.right,"margin-bottom":E.mobile.bottom,"border-style":l.style,"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-color":l.color.color,"border-radius":c.mobile.top+" "+c.mobile.right+" "+c.mobile.bottom+" "+c.mobile.left}," .affx-product-versus-table":{color:f,"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.mobile,"line-height":w["line-height"].mobile,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].mobile}," .affx-comparison-title":{"font-family":O.family,"text-decoration":O["text-decoration"],"font-weight":Object(u.c)(O.variation),"font-style":Object(u.b)(O.variation),"font-size":O.size.mobile,"line-height":O["line-height"].mobile,"text-transform":O["text-transform"],"letter-spacing":O["letter-spacing"].mobile,color:N}," .affx-versus-table-wrap tr:first-child th:first-child":{"border-top-left-radius":c.mobile.top}," .affx-versus-table-wrap tr:first-child th:last-child":{"border-top-right-radius":c.mobile.right}," .affx-versus-table-wrap tr:first-child th:last-child .affx-versus-product":{"border-top-right-radius":c.mobile.right,overflow:"hidden"}," .affx-versus-table-wrap tr:last-child td:first-child":{"border-bottom-left-radius":c.mobile.left}," .affx-versus-table-wrap tr:last-child td:last-child":{"border-bottom-right-radius":c.mobile.bottom}," .affx-versus-table-wrap td":{"padding-top":_.mobile.top,"padding-left":_.mobile.left,"padding-right":_.mobile.right,"padding-bottom":_.mobile.bottom,"border-style":l.style,"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-color":l.color.color}," .affx-versus-table-wrap th":{"padding-top":_.mobile.top,"padding-left":_.mobile.left,"padding-right":_.mobile.right,"padding-bottom":_.mobile.bottom,"border-style":l.style,"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-color":l.color.color}," .affx-versus-table-wrap .affx-pc-ribbon":{"font-family":j.family,"text-decoration":j["text-decoration"],"font-weight":Object(u.c)(j.variation),"font-style":Object(u.b)(j.variation),"font-size":j.size.mobile,"line-height":j["line-height"].mobile,"text-transform":j["text-transform"],"letter-spacing":j["letter-spacing"].mobile,background:T,color:B}," .affx-versus-table-wrap .affx-pc-ribbon::before":{background:T}," .affx-versus-table-wrap .affx-pc-ribbon::after":{background:T}," .affx-versus-table-wrap .affiliatex-button":{"font-family":C.family,"text-decoration":C["text-decoration"],"font-weight":Object(u.c)(C.variation),"font-style":Object(u.b)(C.variation),"font-size":C.size.mobile,"line-height":C["line-height"].mobile,"text-transform":C["text-transform"],"letter-spacing":C["letter-spacing"].mobile}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button":{color:b,"background-color":x,"margin-top":n.mobile.top,"margin-left":n.mobile.left,"margin-right":n.mobile.right,"margin-bottom":n.mobile.bottom,"padding-top":i.mobile.top,"padding-left":i.mobile.left,"padding-right":i.mobile.right,"padding-bottom":i.mobile.bottom}," .affx-versus-table-wrap .affiliatex-button.affx-winner-button:hover":{color:m,"background-color":y}," .affx-versus-table-wrap .affx-price":{color:s,"font-family":k.family,"font-weight":Object(u.c)(k.variation),"font-style":Object(u.b)(k.variation),"font-size":k.size.mobile,"line-height":k["line-height"].mobile,"text-transform":k["text-transform"],"text-decoration":k["text-decoration"],"letter-spacing":k["letter-spacing"].mobile}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header":{background:p}," .affx-versus-table-wrap .affx-product-versus-table .affx-table-row-header th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.mobile,"line-height":w["line-height"].mobile,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].mobile}," .affx-versus-table-wrap .affx-product-versus-table th":{"font-family":w.family,"text-decoration":w["text-decoration"],"font-weight":Object(u.c)(w.variation),"font-style":Object(u.b)(w.variation),"font-size":w.size.mobile,"line-height":w["line-height"].mobile,"text-transform":w["text-transform"],"letter-spacing":w["letter-spacing"].mobile}," .affx-versus-table-wrap .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}," .affx-versus-table-wrap .affx-versus-product-img":{"padding-top":R.mobile.top,"padding-left":R.mobile.left,"padding-right":R.mobile.right,"padding-bottom":R.mobile.bottom}};var P="";return P=Object(d.a)(L,`#${t}-${a}`),(P+=Object(d.a)(I,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(S,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-product-comparison-blocks-style",l))},[e]);const{productComparisonTable:r,comparisonSpecs:c,itemCount:s,specsCount:p,pcRibbon:f,pcTitle:b,starColor:m,starInactiveColor:g,pcImage:h,pcRating:v,pcPrice:x,pcButton:y,pcButtonIcon:O,buttonIconAlign:j,buttonIcon:C,titleTypography:w,ribbonTypography:E,priceTypography:_,buttonTypography:T,contentTypography:B}=e,[N,R]=Object(i.useState)(null),S=(e,a,o,i)=>{let n=[...c];n[a]="specs"===i?{...n[a],specs:{...n[a][""+i],[""+o]:e}}:{...n[a],[""+i]:e},t({comparisonSpecs:n})},I=(e,a,o)=>{let i=[...r];i[a]={...i[a],[""+o]:e},t({productComparisonTable:i})};let L,P,A,z,F;if("Default"!==w.family){const e={google:{families:[w.family+(w.variation?":"+w.variation:"")]}};L=Object(i.createElement)(k,{config:e})}if("Default"!==E.family){const e={google:{families:[E.family+(E.variation?":"+E.variation:"")]}};P=Object(i.createElement)(k,{config:e})}if("Default"!==_.family){const e={google:{families:[_.family+(_.variation?":"+_.variation:"")]}};A=Object(i.createElement)(k,{config:e})}if("Default"!==T.family){const e={google:{families:[T.family+(T.variation?":"+T.variation:"")]}};z=Object(i.createElement)(k,{config:e})}if("Default"!==B.family){const e={google:{families:[B.family+(B.variation?":"+B.variation:"")]}};F=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(ne,null,Object(i.createElement)($,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-product-comparison-blocks-style-"+l,className:a},Object(i.createElement)("div",{className:"affx-versus-block-container affx-product-comparison-block-container"},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table layout-1"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{className:"data-label",style:{width:92/(r.length+1)+"%"}}),null==r?void 0:r.map((e,a)=>Object(i.createElement)("th",{className:"affx-product-col",key:a,style:{width:92/(r.length+1)+"%"}},Object(i.createElement)("button",{type:"button",className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...r];a.splice(e,1),t({productComparisonTable:a,itemCount:p-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"})))),f&&Object(i.createElement)(ae,{tagName:"span",placeholder:Object(n.__)("Ribbon Text","affiliatex"),className:"affx-pc-ribbon",value:e.ribbonText,onChange:e=>I(e,a,"ribbonText")}),Object(i.createElement)("div",{className:"affx-versus-product"},h&&Object(i.createElement)("div",{className:"affx-versus-product-img"},Object(i.createElement)("img",{src:e.imageUrl}),null!=e&&e.imageId?Object(i.createElement)("div",{className:"upload-btn-wrapper"},o?Object(i.createElement)(oe,{onSelect:e=>((e,a)=>{let o=[...r];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productComparisonTable:o})})(e,a),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(ie,{className:"affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(ie,{className:"remove-image",onClick:()=>(e=>{let a=[...r];a[e]={...a[e],imageUrl:AffiliateXPro.pluginUrl+"app/src/images/fallback.jpg",imageId:null,imageAlt:null},t({productComparisonTable:a})})(a)},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(oe,{onSelect:e=>((e,a)=>{let o=[...r];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productComparisonTable:o})})(e,a),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(ie,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affx-product-content"},b&&Object(i.createElement)("div",{className:"affx-product-title-wrap"},Object(i.createElement)(ae,{tagName:"h2",placeholder:Object(n.__)("Product Title","affiliatex"),className:"affx-comparison-title",value:e.title,onChange:e=>I(e,a,"title")})),x&&Object(i.createElement)("div",{className:"affx-price-wrap"},Object(i.createElement)("span",{className:"affx-price"},Object(i.createElement)(ae,{placeholder:"Price",value:e.price,onChange:e=>I(e,a,"price")}))),v&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.Rating,{onClick:e=>I(e,a,"rating"),ratingValue:e.rating,fillColor:m,emptyColor:g,className:"rating-stars"})),Object(i.createElement)("div",{className:"affx-btn-wrap"},y&&Object(i.createElement)("span",{className:"affiliatex-button affx-winner-button "+(O&&"icon-btn icon-"+j),onMouseEnter:()=>R(a)},1==O&&j&&"left"==j&&Object(i.createElement)("i",{className:"button-icon "+C.value}),Object(i.createElement)(ae,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button,formattingControls:["bold","italic","underline"],href:e.buttonURL,onChange:e=>I(e,a,"button")}),1==O&&j&&"right"==j&&Object(i.createElement)("i",{className:"button-icon "+C.value}),N==a&&Object(i.createElement)(te,{index:a,buttonNumber:"",url:e.buttonURL,opensInNewTab:e.btnOpenInNewTab,relNoFollow:e.btnRelNoFollow,relSponsored:e.btnRelSponsored,download:e.btnDownload,onChangeProductLinks:I,setSelectedButton:R}))))))),Object(i.createElement)("th",{className:"affx-product-col affx-add-col"},Object(i.createElement)(ie,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{title:"",imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",ribbonText:"",imageId:"",imageAlt:"",price:"$59.00",rating:4,button:"Buy Now",buttonURL:"",btnRelNoFollow:!1,btnRelSponsored:!1,btnOpenInNewTab:!1,btnDownload:!1}],t({productComparisonTable:o}),a=e.length,t({itemCount:a})})(r)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Product","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})))))),Object(i.createElement)("tbody",null,null==c?void 0:c.map((e,a)=>Object(i.createElement)("tr",{key:a},null==r?void 0:r.map((t,o)=>0!=o?Object(i.createElement)("td",null,Object(i.createElement)(ae,{placeholder:"Specification",value:e.specs[o],onChange:e=>S(e,a,o,"specs")})):Object(i.createElement)(ne,null,Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(ae,{placeholder:"Title",value:e.title,onChange:e=>S(e,a,o,"title")})),Object(i.createElement)("td",null,Object(i.createElement)(ae,{placeholder:"Specification",value:e.specs[o],onChange:e=>S(e,a,o,"specs")})))),Object(i.createElement)("td",null,Object(i.createElement)("button",{type:"button",className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...c];a.splice(e,1),t({comparisonSpecs:a,itemCount:s-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))))))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"affx-product-col",colSpan:r.length+2},Object(i.createElement)(ie,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{title:"",specs:[]}],t({comparisonSpecs:o}),a=e.length,t({specsCount:a})})(c)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Product","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})))))))))),L,P,A,z,F)},ge=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,productComparisonTable:l,comparisonSpecs:r,pcRibbon:c,pcTitle:s,starColor:p,starInactiveColor:f,pcImage:d,pcRating:u,pcPrice:b,pcButton:m,pcButtonIcon:g,buttonIconAlign:h,buttonIcon:v}=e;return Object(i.createElement)("div",{id:"affiliatex-product-comparison-blocks-style-"+o,className:t},Object(i.createElement)("div",{className:"affx-versus-block-container affx-product-comparison-block-container"},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table layout-1"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{className:"data-label",style:{width:92/(l.length+1)+"%"}}),null==l?void 0:l.map((e,t)=>Object(i.createElement)("th",{className:"affx-product-col",key:t,style:{width:92/(l.length+1)+"%"}},c&&""!=e.ribbonText&&Object(i.createElement)(a.Content,{tagName:"span",className:"affx-pc-ribbon",value:e.ribbonText}),Object(i.createElement)("div",{className:"affx-versus-product"},d&&Object(i.createElement)("div",{className:"affx-versus-product-img"},Object(i.createElement)("img",{src:e.imageUrl,alt:e.imageAlt})),Object(i.createElement)("div",{className:"affx-product-content"},s&&Object(i.createElement)("div",{className:"affx-product-title-wrap"},Object(i.createElement)(a.Content,{tagName:"h2",className:"affx-comparison-title",value:e.title})),b&&Object(i.createElement)("div",{className:"affx-price-wrap"},Object(i.createElement)("span",{className:"affx-price"},Object(i.createElement)(a.Content,{value:e.price}))),u&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.RatingView,{ratingValue:e.rating,fillColor:p,emptyColor:f,className:"rating-stars"})),Object(i.createElement)("div",{className:"affx-btn-wrap"},m&&e.button&&Object(i.createElement)("a",B()({href:e.buttonURL,className:"affiliatex-button affx-winner-button "+(g&&"icon-btn icon-"+h),rel:Object(n.__)("noopener","affiliatex")},e.btnRelNoFollow?{rel:"noopener nofollow"}:"",e.btnRelSponsored?{rel:"noopener sponsored"}:"",e.btnRelNoFollow&&e.btnRelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btnOpenInNewTab?{target:"_blank"}:"",e.btnDownload?{download:"affiliatex"}:""),1==g&&h&&"left"==h&&Object(i.createElement)("i",{className:"button-icon "+v.value}),Object(i.createElement)(a.Content,{value:e.button}),1==g&&h&&"right"==h&&Object(i.createElement)("i",{className:"button-icon "+v.value}))))))))),Object(i.createElement)("tbody",null,null==r?void 0:r.map((e,t)=>Object(i.createElement)("tr",{key:t},null==l?void 0:l.map((t,o)=>0!=o?Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.specs[o]})):Object(i.createElement)(i.Fragment,null,Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(a.Content,{value:e.title})),Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.specs[o]})))))))))))};Object(S.registerBlockType)("affiliatex/product-comparison",{title:Object(n.__)("AffiliateX Product Comparison","affiliatex"),description:Object(n.__)("Add a customizable product comparison block","affiliatex"),icon:R.g,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("product","affiliatex"),Object(n.__)("comparison","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:U,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(me,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(ge,{attributes:e,className:t})});const he=AffiliateX.customizationData;var ve={block_id:{type:"string"},imageColTitle:{type:"string",default:"Image"},productColTitle:{type:"string",default:"Product"},featuresColTitle:{type:"string",default:"Features"},ratingColTitle:{type:"string",default:"Rating"},priceColTitle:{type:"string",default:"Price"},productTable:{type:"array",default:[{imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",imageId:"",imageAlt:"",ribbon:"Our Pick",name:"Product Name",features:"Product Features",featuresList:[],offerPrice:"$49.00",regularPrice:"$59.00",rating:"5",button1:"Purchase Now",button1URL:"",btn1RelNoFollow:!1,btn1RelSponsored:!1,btn1OpenInNewTab:!1,btn1Download:!1,button2:"Check on Amazon",button2URL:"",btn2RelNoFollow:!1,btn2RelSponsored:!1,btn2OpenInNewTab:!1,btn2Download:!1}]},edImage:{type:"boolean",default:!0},edRibbon:{type:"boolean",default:!0},edProductName:{type:"boolean",default:!0},edRating:{type:"boolean",default:!0},edPrice:{type:"boolean",default:!1},edCounter:{type:"boolean",default:!0},edButton1:{type:"boolean",default:!0},edButton1Icon:{type:"boolean",default:!0},button1Icon:{type:"string",default:{name:"angle-right",value:"fas fa-angle-right"}},button1IconAlign:{type:"string",default:"right"},edButton2:{type:"boolean",default:!0},edButton2Icon:{type:"boolean",default:!0},button2Icon:{type:"string",default:{name:"angle-right",value:"fas fa-angle-right"}},button2IconAlign:{type:"string",default:"right"},layoutStyle:{type:"string",default:"layoutOne"},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(137,138,140,0.2)"}}},border:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},borderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},borderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},button1Padding:{type:"object",default:{desktop:{top:"10px",left:"5px",right:"5px",bottom:"10px"},mobile:{top:"10px",left:"5px",right:"5px",bottom:"10px"},tablet:{top:"10px",left:"5px",right:"5px",bottom:"10px"}}},button1Margin:{type:"object",default:{desktop:{top:"5px",left:"0px",right:"0px",bottom:"5px"},mobile:{top:"5px",left:"0px",right:"0px",bottom:"5px"},tablet:{top:"5px",left:"0px",right:"0px",bottom:"5px"}}},button2Padding:{type:"object",default:{desktop:{top:"10px",left:"5px",right:"5px",bottom:"10px"},mobile:{top:"10px",left:"5px",right:"5px",bottom:"10px"},tablet:{top:"10px",left:"5px",right:"5px",bottom:"10px"}}},button2Margin:{type:"object",default:{desktop:{top:"5px",left:"0px",right:"0px",bottom:"5px"},mobile:{top:"5px",left:"0px",right:"0px",bottom:"5px"},tablet:{top:"5px",left:"0px",right:"0px",bottom:"5px"}}},ribbonColor:{type:"string",default:"#FFFFFF"},ribbonBgColor:{type:"string",default:"#F13A3A"},counterColor:{type:"string",default:"#FFFFFF"},counterBgColor:{type:"string",default:"#24B644"},tableHeaderColor:{type:"string",default:"#FFFFFF"},tableHeaderBgColor:{type:"string",default:"#084ACA"},priceColor:{type:"string",default:"#262B33"},ratingColor:{type:"string",default:"#FFFFFF"},ratingBgColor:{type:"string",default:"#24B644"},rating2Color:{type:"string",default:"#262B33"},rating2BgColor:{type:"string",default:"#24B644"},starColor:{type:"string",default:"#FFB800"},starInactiveColor:{type:"string",default:"#A3ACBF"},contentColor:{type:"string",default:he.fontColor||"#292929"},titleColor:{type:"string",default:he.fontColor||"#292929"},bgType:{type:"string",default:"solid"},bgColorSolid:{type:"string",default:"#FFFFFF"},bgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},button1TextColor:{type:"string",default:"#fff"},button1TextHoverColor:{type:"string",default:"#fff"},button1BgColor:{type:"string",default:he.btnColor||"#2670FF"},button1BgHoverColor:{type:"string",default:he.btnHoverColor||"#084ACA"},button2TextColor:{type:"string",default:"#fff"},button2TextHoverColor:{type:"string",default:"#fff"},button2BgColor:{type:"string",default:"#FFB800"},button2BgHoverColor:{type:"string",default:"#084ACA"},margin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"24px",left:"24px",right:"24px",bottom:"24px"},mobile:{top:"16px",left:"16px",right:"16px",bottom:"16px"},tablet:{top:"16px",left:"16px",right:"16px",bottom:"16px"}}},ribbonTypography:{type:"object",default:{family:(null==he||null===(le=he.typography)||void 0===le?void 0:le.family)||"Default",variation:"n5",size:{desktop:"13px",mobile:"13px",tablet:"13px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},counterTypography:{type:"object",default:{family:(null==he||null===(re=he.typography)||void 0===re?void 0:re.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ratingTypography:{type:"object",default:{family:(null==he||null===(ce=he.typography)||void 0===ce?void 0:ce.family)||"Default",variation:"n7",size:{desktop:"13px",mobile:"13px",tablet:"13px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},rating2Typography:{type:"object",default:{family:(null==he||null===(se=he.typography)||void 0===se?void 0:se.family)||"Default",variation:"n4",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},priceTypography:{type:"object",default:{family:(null==he||null===(pe=he.typography)||void 0===pe?void 0:pe.family)||"Default",variation:"n4",size:{desktop:"22px",mobile:"22px",tablet:"22px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},buttonTypography:{type:"object",default:{family:(null==he||null===(fe=he.typography)||void 0===fe?void 0:fe.family)||"Default",variation:"n4",size:{desktop:"14px",mobile:"14px",tablet:"14px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},headerTypography:{type:"object",default:{family:(null==he||null===(de=he.typography)||void 0===de?void 0:de.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},titleTypography:{type:"object",default:{family:(null==he||null===(ue=he.typography)||void 0===ue?void 0:ue.family)||"Default",variation:"n4",size:{desktop:"22px",mobile:"22px",tablet:"22px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},contentTypography:{type:"object",default:{family:(null==he||null===(be=he.typography)||void 0===be?void 0:be.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"16px",tablet:"16px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productContentType:{type:"string",default:"paragraph"},contentListType:{type:"string",default:"unordered"},productIconList:{type:"string",default:{name:"check-circle-outline",value:"far fa-check-circle"}},productIconColor:{type:"string",default:"#24B644"},imagePadding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}},xe=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{PanelBody:o,ToggleControl:l,SelectControl:r}=wp.components,{layoutStyle:f,edImage:d,edRibbon:u,edProductName:b,edRating:m,edPrice:g,edCounter:h,edButton1:v,edButton1Icon:x,button1Icon:y,button1IconAlign:O,edButton2:j,edButton2Icon:k,button2Icon:C,button2IconAlign:w,boxShadow:E,border:_,borderWidth:T,borderRadius:B,button1Padding:N,button1Margin:R,button2Padding:S,button2Margin:I,ribbonColor:L,ribbonBgColor:P,counterColor:A,counterBgColor:z,tableHeaderColor:F,tableHeaderBgColor:M,priceColor:H,ratingColor:V,ratingBgColor:W,rating2Color:D,rating2BgColor:q,starColor:U,starInactiveColor:$,titleColor:G,contentColor:Z,bgType:X,bgColorSolid:K,bgColorGradient:Q,button1TextColor:Y,button1TextHoverColor:J,button1BgColor:ee,button1BgHoverColor:te,button2TextColor:ae,button2TextHoverColor:oe,button2BgColor:ie,button2BgHoverColor:ne,margin:le,padding:re,ribbonTypography:ce,counterTypography:se,priceTypography:pe,buttonTypography:fe,headerTypography:de,titleTypography:ue,contentTypography:be,ratingTypography:me,rating2Typography:ge,productIconList:he,productContentType:xe,contentListType:ye,productIconColor:Oe,imagePadding:je}=e;return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(o,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(r,{label:Object(n.__)("Choose Layout","affiliatex"),value:f,options:[{value:"layoutOne",label:"Layout 1"},{value:"layoutTwo",label:"Layout 2"},{value:"layoutThree",label:"Layout 3"}],onChange:e=>t({layoutStyle:e})}))),Object(i.createElement)(o,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-pdt-tbl-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Image","affiliatex"),checked:!!d,onChange:()=>t({edImage:!d})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Ribbon","affiliatex"),checked:!!u,onChange:()=>t({edRibbon:!u})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Product Name","affiliatex"),checked:!!b,onChange:()=>t({edProductName:!b})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Rating","affiliatex"),checked:!!m,onChange:()=>t({edRating:!m})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Price","affiliatex"),checked:!!g,onChange:()=>t({edPrice:!g})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Counter","affiliatex"),checked:!!h,onChange:()=>t({edCounter:!h})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:E,values:E,id:"pdt-tbl-box-shadow",option:{id:"pdt-tbl-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:ve.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})))),Object(i.createElement)(o,{title:"Content Settings",className:"affx-content-panel",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:xe,values:xe,id:"product-content-type",option:{id:"product-content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")},value:ve.productContentType.default},hasRevertButton:!0,onChange:e=>t({productContentType:e})})),"list"===xe&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ye,values:ye,id:"list-type",option:{id:"list-type",type:"ab-radio",choices:{unordered:Object(n.__)("Unordered List","affiliatex"),ordered:Object(n.__)("Ordered List","affiliatex")},value:ve.contentListType.default},hasRevertButton:!0,onChange:e=>t({contentListType:e})})),"list"===xe&&"unordered"===ye&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+he.value},Object(i.createElement)("label",null,Object(n.__)("Select List Icon","affiliatex")),Object(i.createElement)(s.a,{value:he.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({productIconList:e})}}))),Object(i.createElement)(o,{title:Object(n.__)("Primary Button Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Primary Button","affiliatex"),checked:!!v,onChange:()=>t({edButton1:!v})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!x,onChange:()=>t({edButton1Icon:!x})})),x&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+y.value},Object(i.createElement)("label",null,Object(n.__)("Select Icon","affiliatex")),Object(i.createElement)(s.a,{value:y.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({button1Icon:e})}})),x&&Object(i.createElement)(c.a,{value:O,values:O,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Icon Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",right:""},value:ve.button1IconAlign.default},hasRevertButton:!0,onChange:e=>t({button1IconAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"pdt-tbl-button-padding",option:{id:"pdt-tbl-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:ve.button1Padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button1Padding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"pdt-tbl-button-margin",option:{id:"pdt-tbl-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:ve.button1Margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button1Margin:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Secondary Button Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Secondary Button","affiliatex"),checked:!!j,onChange:()=>t({edButton2:!j})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Icon","affiliatex"),className:"affiliate-blocks-option",checked:!!k,onChange:()=>t({edButton2Icon:!k})})),k&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+C.value},Object(i.createElement)("label",null,Object(n.__)("Select Icon","affiliatex")),Object(i.createElement)(s.a,{value:C.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({button2Icon:e})}})),k&&Object(i.createElement)(c.a,{value:w,values:w,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Icon Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",right:""},value:ve.button2IconAlign.default},hasRevertButton:!0,onChange:e=>t({button2IconAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"pdt-tbl-button-padding",option:{id:"pdt-tbl-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:ve.button2Padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button2Padding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:I,values:I,id:"pdt-tbl-button-margin",option:{id:"pdt-tbl-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:ve.button2Margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({button2Margin:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:_,values:_,id:"pdt-tbl-border",option:{id:"pdt-tbl-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:ve.border.default},hasRevertButton:!0,onChange:e=>t({border:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"pdt-tbl-border-width",option:{id:"pdt-tbl-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:ve.borderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"pdt-tbl-border-radius",option:{id:"pdt-tbl-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:ve.borderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderRadius:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},1==u&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:L},textBgColor:{color:P}},option:{id:"pc-ribbon-color",label:Object(n.__)("Ribbon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.ribbonColor.default},textBgColor:{color:ve.ribbonBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({ribbonColor:e.textColor.color,ribbonBgColor:e.textBgColor.color})})),1==h&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:A},textBgColor:{color:z}},option:{id:"pc-counter-color",label:Object(n.__)("Counter Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.counterColor.default},textBgColor:{color:ve.counterBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({counterColor:e.textColor.color,counterBgColor:e.textBgColor.color})})),1==m&&f&&"layoutOne"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:V},ratingBgColor:{color:W}},option:{id:"pc-rating-color",label:Object(n.__)("Rating Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:ve.ratingColor.default},ratingBgColor:{color:ve.ratingBgColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Rating Color","affiliatex")},{id:"ratingBgColor",title:Object(n.__)("Rating Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({ratingColor:e.ratingColor.color,ratingBgColor:e.ratingBgColor.color})})),1==m&&f&&"layoutTwo"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:D},ratingBgColor:{color:q}},option:{id:"pc-rating-2-color",label:Object(n.__)("Rating Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:ve.rating2Color.default},ratingBgColor:{color:ve.rating2BgColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Rating Color","affiliatex")},{id:"ratingBgColor",title:Object(n.__)("Rating Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({rating2Color:e.ratingColor.color,rating2BgColor:e.ratingBgColor.color})})),1==m&&f&&"layoutThree"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:U},inactiveColor:{color:$}},option:{id:"pc-star-color",label:Object(n.__)("Star Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:ve.starColor.default},inactiveColor:{color:ve.starInactiveColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Star Color","affiliatex")},{id:"inactiveColor",title:Object(n.__)("Inactive Star Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({starColor:e.ratingColor.color,starInactiveColor:e.inactiveColor.color})})),1==g&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:H}},option:{id:"pc-price-color",label:Object(n.__)("Price Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.priceColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Price Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({priceColor:e.textColor.color})})),"layoutThree"!=f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:F},textBgColor:{color:M}},option:{id:"pc-table-header-color",label:Object(n.__)("Table Header Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.tableHeaderColor.default},textBgColor:{color:ve.tableHeaderBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({tableHeaderColor:e.textColor.color,tableHeaderBgColor:e.textBgColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:G}},option:{id:"pc-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.titleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color")}]},hasRevertButton:!0,onChange:e=>t({titleColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:Z}},option:{id:"pc-content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.contentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")}]},hasRevertButton:!0,onChange:e=>t({contentColor:e.textColor.color})})),"list"===xe&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:Oe}},option:{id:"pc-list-icon-color",label:Object(n.__)("List Icon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.productIconColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productIconColor:e.textColor.color})})),1==v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:Y},textHoverColor:{color:J}},option:{id:"pc-primary-btn-text-color",label:Object(n.__)("Primary Button Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.button1TextColor.default},textHoverColor:{color:ve.button1TextHoverColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textHoverColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button1TextColor:e.textColor.color,button1TextHoverColor:e.textHoverColor.color})})),1==v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:ee},backgroundHoverColor:{color:te}},option:{id:"pc-primary-btn-color",label:Object(n.__)("Primary Button Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:ve.button1BgColor.default},backgroundHoverColor:{color:ve.button1BgHoverColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")},{id:"backgroundHoverColor",title:Object(n.__)("Background Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button1BgColor:e.backgroundColor.color,button1BgHoverColor:e.backgroundHoverColor.color})})),1==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:ae},textHoverColor:{color:oe}},option:{id:"pc-secn-btn-txt-color",label:Object(n.__)("Secondary Button Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:ve.button2TextColor.default},textHoverColor:{color:ve.button2TextHoverColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textHoverColor",title:Object(n.__)("Text Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button2TextColor:e.textColor.color,button2TextHoverColor:e.textHoverColor.color})})),1==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:ie},backgroundHoverColor:{color:ne}},option:{id:"pc-second-btn-color",label:Object(n.__)("Secondary Button Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:ve.button2BgColor.default},backgroundHoverColor:{color:ve.button2BgHoverColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")},{id:"backgroundHoverColor",title:Object(n.__)("Background Hover Color")}]},hasRevertButton:!0,onChange:e=>t({button2BgColor:e.backgroundColor.color,button2BgHoverColor:e.backgroundHoverColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:X,values:X,id:"pdt-tbl-bg-type",option:{id:"pdt-tbl-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")},value:ve.bgType.default},hasRevertButton:!0,onChange:e=>t({bgType:e})})),"solid"===X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:K}},option:{id:"pc-background-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:ve.bgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({bgColorSolid:e.bgColor.color})})),"gradient"===X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:Q,onChange:e=>t({bgColorGradient:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-pdt-tbl-typography"},u&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-title-typography"},Object(i.createElement)(c.a,{value:ce,option:{id:"ribbon-typography",label:Object(n.__)("Ribbon Typography","affiliatex"),type:"ab-typography",value:ve.ribbonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ribbonTypography:e})}})),h&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-title-typography"},Object(i.createElement)(c.a,{value:se,option:{id:"counter-typography",label:Object(n.__)("Counter Typography","affiliatex"),type:"ab-typography",value:ve.counterTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({counterTypography:e})}})),m&&f&&"layoutOne"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-rating-typography"},Object(i.createElement)(c.a,{value:me,option:{id:"rating-typography",label:Object(n.__)("Rating Typography","affiliatex"),type:"ab-typography",value:ve.ratingTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ratingTypography:e})}})),m&&f&&"layoutTwo"==f&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-rating-typography"},Object(i.createElement)(c.a,{value:ge,option:{id:"rating-typography",label:Object(n.__)("Rating Typography","affiliatex"),type:"ab-typography",value:ve.rating2Typography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({rating2Typography:e})}})),g&&Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-title-typography"},Object(i.createElement)(c.a,{value:pe,option:{id:"price-typography",label:Object(n.__)("Pricing Typography","affiliatex"),type:"ab-typography",value:ve.priceTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({priceTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-content-typography"},Object(i.createElement)(c.a,{value:fe,option:{id:"button-typography",label:Object(n.__)("Button Typography","affiliatex"),type:"ab-typography",value:ve.buttonTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({buttonTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-typography"},Object(i.createElement)(c.a,{value:de,option:{id:"table-typography",label:Object(n.__)("Table Header Typography","affiliatex"),type:"ab-typography",value:ve.headerTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({headerTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-typography"},Object(i.createElement)(c.a,{value:ue,option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:ve.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option pdt-tbl-typography"},Object(i.createElement)(c.a,{value:be,option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:ve.contentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({contentTypography:e})}})))),Object(i.createElement)(o,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:je,values:je,id:"pdt-tbl-img-padding",option:{id:"pdt-tbl-img-padding",label:Object(n.__)("Image Padding","affiliatex"),type:"ab-spacing",value:ve.imagePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({imagePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:le,values:le,id:"pdt-tbl-margin",option:{id:"pdt-tbl-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:ve.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:re,values:re,id:"pdt-tbl-padding",option:{id:"pdt-tbl-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:ve.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))};const{Button:ye}=wp.components;var Oe=({productTable:e,handleProductRow:t})=>Object(i.createElement)(ye,{isDefault:!0,className:"affx-add-pdt-row-btn components_panel_btn",onClick:()=>t(e)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Product Row","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})));const{Button:je}=wp.components;var ke=({index:e,handleRemoveProductRow:t})=>Object(i.createElement)(je,{className:"affx-pdt-row-remove-btn",onClick:()=>{t(e)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))));const{RichText:Ce}=wp.blockEditor,{TextControl:we}=wp.components,Ee=({value:e,label:t,type:a,onChange:o})=>Object(i.createElement)(i.Fragment,null,!a&&Object(i.createElement)("div",{className:"affx-rating-number"},Object(i.createElement)(Ce,{tagName:"span",type:"number",placeholder:"0.0",value:e,className:"affx-rating-num num",onChange:o}),Object(i.createElement)(Ce,{tagName:"span",type:"number",placeholder:"score label",value:t,className:"affx-rating-number-label label"})),"circle"===a&&Object(i.createElement)("div",{className:"affx-circle-progress-container"},Object(i.createElement)("span",{className:"circle-wrap",style:{"--data-deg":"rotate("+e/10*100/100*180+"deg)"}},Object(i.createElement)("span",{className:"circle-mask full"},Object(i.createElement)("span",{className:"fill"})),Object(i.createElement)("span",{className:"circle-mask"},Object(i.createElement)("span",{className:"fill"}))),Object(i.createElement)(we,{type:"number",placeholder:"5",value:e.toString(),className:"affx-circle-inside",onChange:o,hideLabelFromVision:!0,max:10,stepSize:1}))),_e=({value:e,onChange:t})=>Object(i.createElement)("span",{className:"star-rating-single-wrap"},Object(i.createElement)(we,{type:"number",placeholder:"5",value:e.toString(),className:"affx-pdt-rating",onChange:t,hideLabelFromVision:!0,max:10,stepSize:1})),{Button:Te}=wp.components,{RichText:Be,MediaUpload:Ne}=wp.blockEditor;var Re=e=>{const{attributes:t,setAttributes:a,handleChangeIndex:o,onSelectImage:l,onReplaceImage:r,onRemoveImage:c,onChangeProductDetails:s,setSelectedButton:p,handleRemoveProductRow:f,handleProductRow:d,selectedButton:u}=e,{productTable:b,layoutStyle:m,imageColTitle:g,productColTitle:h,featuresColTitle:v,ratingColTitle:x,priceColTitle:y,edImage:O,edRibbon:j,edProductName:k,edRating:C,edPrice:w,edCounter:E,edButton1:_,edButton1Icon:T,button1Icon:B,button1IconAlign:N,edButton2:R,edButton2Icon:S,button2Icon:I,button2IconAlign:L,productContentType:P,contentListType:A,productIconList:z,isSelected:F}=t;return Object(i.createElement)("table",{className:"affx-pdt-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,O&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)(Be,{tagName:"span",placeholder:"Image",value:g,onChange:e=>a({imageColTitle:e})})),Object(i.createElement)("td",null,Object(i.createElement)(Be,{tagName:"span",placeholder:"Product Name",value:h,onChange:e=>a({productColTitle:e})})),"layoutOne"==m&&Object(i.createElement)("td",null,Object(i.createElement)(Be,{tagName:"span",placeholder:"Features",value:v,onChange:e=>a({featuresColTitle:e})})),"layoutTwo"==m&&C&&Object(i.createElement)("td",null,Object(i.createElement)(Be,{tagName:"span",placeholder:"Rating",value:x,onChange:e=>a({ratingColTitle:e}),className:"affx-rating-col"})),Object(i.createElement)("td",{className:"affx-price-col"},Object(i.createElement)(Be,{tagName:"span",placeholder:"Price",value:y,onChange:e=>a({priceColTitle:e})})),Object(i.createElement)("td",null))),Object(i.createElement)("tbody",null,null==b?void 0:b.map((e,t)=>Object(i.createElement)("tr",{key:t,className:"affx-toolbar-row"},O&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)("div",{className:"affx-pdt-img-container"},j&&Object(i.createElement)(Be,{tagName:"span",className:"affx-pdt-ribbon affx-ribbon-2",placeholder:"Ribbon text",value:e.ribbon,onChange:e=>s(e,t,"ribbon")}),E&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl}),null!=e&&e.imageId?Object(i.createElement)("div",{className:"upload-btn-wrapper"},F?Object(i.createElement)(Ne,{onSelect:e=>r(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Te,{className:"affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(Te,{className:"remove-image",onClick:()=>c(t)},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(Ne,{onSelect:e=>l(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Te,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),"layoutOne"==m&&C&&Object(i.createElement)(_e,{value:e.rating,onChange:e=>s(e,t,"rating")}))),Object(i.createElement)("td",null,k&&Object(i.createElement)(Be,{tagName:"h5",className:"affx-pdt-name",placeholder:"Product Name",value:e.name,onChange:e=>s(e,t,"name")}),"layoutTwo"==m&&Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===P&&Object(i.createElement)(Be,{tagName:"unordered"==A?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+z.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:e.featuresList,onChange:e=>s(e,t,"featuresList")}),"paragraph"===P&&Object(i.createElement)(Be,{tagName:"p",value:e.features,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>s(e,t,"features")}))),"layoutOne"==m&&Object(i.createElement)("td",null,"list"===P&&Object(i.createElement)(Be,{tagName:"unordered"==A?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+z.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:e.featuresList,onChange:e=>s(e,t,"featuresList")}),"paragraph"===P&&Object(i.createElement)(Be,{tagName:"p",value:e.features,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>s(e,t,"features")})),"layoutTwo"==m&&C&&Object(i.createElement)("td",{className:"affx-rating-col"},Object(i.createElement)(Ee,{value:e.rating.toString(),onChange:e=>s(e,t,"rating"),type:"circle"})),Object(i.createElement)("td",{className:"affx-price-col"},w&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},Object(i.createElement)(Be,{tagName:"span",className:"affx-pdt-offer-price",placeholder:"$00",value:e.offerPrice,onChange:e=>s(e,t,"offerPrice")}),Object(i.createElement)(Be,{tagName:"del",className:"affx-pdt-reg-price",placeholder:"$00",value:e.regularPrice,onChange:e=>s(e,t,"regularPrice")})),(_||R)&&Object(i.createElement)("div",{className:"affx-btn-wrapper"},_&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button primary "+(T&&"icon-btn icon-"+N),onMouseEnter:()=>p(t+"-first-button")},1==T&&N&&"left"==N&&Object(i.createElement)("i",{className:"button-icon "+B.value}),Object(i.createElement)(Be,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button1,formattingControls:["bold","italic","underline"],href:e.button1URL,onChange:e=>s(e,t,"button1")}),1==T&&N&&"right"==N&&Object(i.createElement)("i",{className:"button-icon "+B.value}),u==t+"-first-button"&&Object(i.createElement)(te,{index:t,buttonNumber:1,url:e.button1URL,opensInNewTab:e.btn1OpenInNewTab,relNoFollow:e.btn1RelNoFollow,relSponsored:e.btn1RelSponsored,download:e.btn1Download,onChangeProductLinks:s,setSelectedButton:p}))),R&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button secondary "+(S&&"icon-btn icon-"+L),onMouseEnter:()=>p(t+"-second-button")},1==S&&L&&"left"==L&&Object(i.createElement)("i",{className:"button-icon "+I.value}),Object(i.createElement)(Be,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button2,formattingControls:["bold","italic","underline"],href:e.button2URL,onChange:e=>s(e,t,"button2")}),1==S&&L&&"right"==L&&Object(i.createElement)("i",{className:"button-icon "+I.value}),u==t+"-second-button"&&Object(i.createElement)(te,{index:t,buttonNumber:2,url:e.button2URL,opensInNewTab:e.btn2OpenInNewTab,relNoFollow:e.btn2RelNoFollow,relSponsored:e.btn2RelSponsored,download:e.btn2Download,onChangeProductLinks:s,setSelectedButton:p}))))),t>0?Object(i.createElement)("td",null,Object(i.createElement)(ke,{index:t,handleRemoveProductRow:f}),Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"up")}},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"down")},disabled:t===b.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))):Object(i.createElement)("td",null,Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"up")},disabled:!0},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{o(t,"down")},disabled:t===b.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{colSpan:"5",className:"row-appender"},Object(i.createElement)(Oe,{productTable:b,handleProductRow:d})))))};const{Button:Se}=wp.components,{Fragment:Ie}=wp.element,{RichText:Le,MediaUpload:Pe}=wp.blockEditor;var Ae=e=>{const{attributes:t,onSelectImage:a,onReplaceImage:o,onRemoveImage:l,onChangeProductDetails:r,handleRemoveProductRow:c,handleProductRow:s,setSelectedButton:p,selectedButton:f,handleChangeIndex:d}=e,{productTable:u,edImage:b,edRibbon:m,edProductName:g,edRating:h,edPrice:v,edCounter:x,edButton1:y,edButton1Icon:O,button1Icon:j,button1IconAlign:k,edButton2:C,edButton2Icon:w,button2Icon:E,button2IconAlign:_,starColor:T,starInactiveColor:B,productContentType:N,contentListType:R,productIconList:S,isSelected:I}=t;return Object(i.createElement)(Ie,null,null==u?void 0:u.map((e,t)=>Object(i.createElement)("div",{className:"affx-pdt-table-single affx-toolbar-row",key:t},b&&Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl}),null!=e&&e.imageId?Object(i.createElement)("div",{className:"upload-btn-wrapper"},I?Object(i.createElement)(Pe,{onSelect:e=>o(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Se,{className:"affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(Se,{className:"remove-image",onClick:()=>l(t)},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(Pe,{onSelect:e=>a(e,t),type:"image",value:e.imageId,render:({open:e})=>Object(i.createElement)(Se,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affx-pdt-content-wrap"},Object(i.createElement)("div",{className:"affx-content-left"},x&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),m&&Object(i.createElement)(Le,{tagName:"span",className:"affx-pdt-ribbon",placeholder:"Ribbon text",value:e.ribbon,onChange:e=>r(e,t,"ribbon")}),g&&Object(i.createElement)(Le,{tagName:"h5",className:"affx-pdt-name",placeholder:"Product Name",value:e.name,onChange:e=>r(e,t,"name")}),h&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.Rating,{onClick:e=>r(e,t,"rating"),ratingValue:parseInt(e.rating),fillColor:T,emptyColor:B,className:"rating-stars"})),v&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},Object(i.createElement)(Le,{tagName:"span",className:"affx-pdt-offer-price",placeholder:"$00",value:e.offerPrice,onChange:e=>r(e,t,"offerPrice")}),Object(i.createElement)(Le,{tagName:"del",className:"affx-pdt-reg-price",placeholder:"$00",value:e.regularPrice,onChange:e=>r(e,t,"regularPrice")})),Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===N&&Object(i.createElement)(Le,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:e.featuresList,onChange:e=>r(e,t,"featuresList")}),"paragraph"===N&&Object(i.createElement)(Le,{tagName:"p",value:e.features,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>r(e,t,"features")}))),(y||C)&&Object(i.createElement)("div",{className:"affx-pdt-button-wrap"},Object(i.createElement)("div",{className:"affx-btn-wrapper"},y&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button primary "+(O&&"icon-btn icon-"+k),onMouseEnter:()=>p(t+"-first-button")},1==O&&k&&"left"==k&&Object(i.createElement)("i",{className:"button-icon "+j.value}),Object(i.createElement)(Le,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button1,formattingControls:["bold","italic","underline"],href:e.button1URL,onChange:e=>r(e,t,"button1")}),1==O&&k&&"right"==k&&Object(i.createElement)("i",{className:"button-icon "+j.value}),f==t+"-first-button"&&Object(i.createElement)(te,{index:t,buttonNumber:1,url:e.button1URL,opensInNewTab:e.btn1OpenInNewTab,relNoFollow:e.btn1RelNoFollow,relSponsored:e.btn1RelSponsored,download:e.btn1Download,onChangeProductLinks:r,setSelectedButton:p}))),C&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("span",{className:"affiliatex-button secondary "+(w&&"icon-btn icon-"+_),onMouseEnter:()=>p(t+"-second-button")},1==w&&_&&"left"==_&&Object(i.createElement)("i",{className:"button-icon "+E.value}),Object(i.createElement)(Le,{placeholder:Object(n.__)("Check Price","affiliatex"),value:e.button2,formattingControls:["bold","italic","underline"],href:e.button2URL,onChange:e=>r(e,t,"button2")}),1==w&&_&&"right"==_&&Object(i.createElement)("i",{className:"button-icon "+E.value}),f==t+"-second-button"&&Object(i.createElement)(te,{index:t,buttonNumber:2,url:e.button2URL,opensInNewTab:e.btn2OpenInNewTab,relNoFollow:e.btn2RelNoFollow,relSponsored:e.btn2RelSponsored,download:e.btn2Download,onChangeProductLinks:r,setSelectedButton:p})))))),t>0?Object(i.createElement)(Ie,null,Object(i.createElement)(ke,{index:t,handleRemoveProductRow:c}),Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"up")}},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"down")},disabled:t===u.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))):Object(i.createElement)("div",{className:"affx-toolbar"},Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"up")},disabled:!0},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M13 7L7 1L1 7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),Object(i.createElement)("button",{type:"button",onClick:()=>{d(t,"down")},disabled:t===u.length-1},Object(i.createElement)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},Object(i.createElement)("path",{d:"M1 0.999999L7 7L13 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))),Object(i.createElement)("div",{className:"row-appender"},Object(i.createElement)(Oe,{productTable:u,handleProductRow:s})))};const{Fragment:ze}=wp.element;var Fe,Me,He=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-pdt-table-style-"+n),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:n});var a=document.getElementById("affiliatex-pdt-table-style-"+n);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{boxShadow:o,border:i,borderWidth:n,borderRadius:l,button1Padding:r,button1Margin:c,button2Padding:s,button2Margin:p,ribbonColor:f,ribbonBgColor:b,counterColor:m,counterBgColor:g,tableHeaderColor:h,tableHeaderBgColor:v,priceColor:x,ratingColor:y,ratingBgColor:O,rating2Color:j,rating2BgColor:k,contentColor:C,titleColor:w,bgType:E,bgColorSolid:_,bgColorGradient:T,button1TextColor:B,button1TextHoverColor:N,button1BgColor:R,button1BgHoverColor:S,button2TextColor:I,button2TextHoverColor:L,button2BgColor:P,button2BgHoverColor:A,margin:z,padding:F,ribbonTypography:M,priceTypography:H,buttonTypography:V,contentTypography:W,counterTypography:D,titleTypography:q,headerTypography:U,ratingTypography:$,rating2Typography:G,productIconColor:Z,imagePadding:X}=e;var K,Q,Y={};(Y={" .affx-pdt-table-wrapper":{color:C,"font-family":W.family,"text-decoration":W["text-decoration"],"font-weight":Object(u.c)(W.variation),"font-style":Object(u.b)(W.variation),"font-size":W.size.desktop,"line-height":W["line-height"].desktop,"text-transform":W["text-transform"],"letter-spacing":W["letter-spacing"].desktop,"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom}," .star-rating-single-wrap":{color:y,background:O,"font-family":$.family,"text-decoration":$["text-decoration"],"font-weight":Object(u.c)($.variation),"font-style":Object(u.b)($.variation),"font-size":$.size.desktop,"line-height":$["line-height"].desktop,"text-transform":$["text-transform"],"letter-spacing":$["letter-spacing"].desktop}," .circle-wrap .circle-mask .fill":{background:k}," .affx-circle-progress-container .affx-circle-inside":{color:j,"font-family":G.family,"text-decoration":G["text-decoration"],"font-weight":Object(u.c)(G.variation),"font-style":Object(u.b)(G.variation),"font-size":G.size.desktop,"line-height":G["line-height"].desktop,"text-transform":G["text-transform"],"letter-spacing":G["letter-spacing"].desktop}," .affx-pdt-table-wrapper p":{color:C,"font-family":W.family,"text-decoration":W["text-decoration"],"font-weight":Object(u.c)(W.variation),"font-style":Object(u.b)(W.variation),"font-size":W.size.desktop,"line-height":W["line-height"].desktop,"text-transform":W["text-transform"],"letter-spacing":W["letter-spacing"].desktop}," .affx-pdt-table-wrapper li":{color:C,"font-family":W.family,"text-decoration":W["text-decoration"],"font-weight":Object(u.c)(W.variation),"font-style":Object(u.b)(W.variation),"font-size":W.size.desktop,"line-height":W["line-height"].desktop,"text-transform":W["text-transform"],"letter-spacing":W["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affx-pdt-name":{color:w,"font-family":q.family,"text-decoration":q["text-decoration"],"font-weight":Object(u.c)(q.variation),"font-style":Object(u.b)(q.variation),"font-size":q.size.desktop,"line-height":q["line-height"].desktop,"text-transform":q["text-transform"],"letter-spacing":q["letter-spacing"].desktop}," .affx-pdt-table-wrapper:not(.layout-3)":{"border-style":i.style,"border-width":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"border-color":i.color.color}," .affx-pdt-table-single":{"border-style":i.style,"border-width":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"border-color":i.color.color,"border-radius":l.desktop.top+" "+l.desktop.right+" "+l.desktop.bottom+" "+l.desktop.left,"margin-top":z.desktop.top,"margin-left":z.desktop.left,"margin-right":z.desktop.right,"margin-bottom":z.desktop.bottom}," .affx-pdt-table-wrapper td":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pdt-table-wrapper th":{"padding-top":F.desktop.top,"padding-left":F.desktop.left,"padding-right":F.desktop.right,"padding-bottom":F.desktop.bottom}," .affx-pdt-table-wrapper .affx-pdt-counter":{color:m,background:g,"font-family":D.family,"text-decoration":D["text-decoration"],"font-weight":Object(u.c)(D.variation),"font-style":Object(u.b)(D.variation),"font-size":D.size.desktop,"line-height":D["line-height"].desktop,"text-transform":D["text-transform"],"letter-spacing":D["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affx-pdt-ribbon":{"font-family":M.family,"text-decoration":M["text-decoration"],"font-weight":Object(u.c)(M.variation),"font-style":Object(u.b)(M.variation),"font-size":M.size.desktop,"line-height":M["line-height"].desktop,"text-transform":M["text-transform"],"letter-spacing":M["letter-spacing"].desktop,color:f,background:b}," .affx-pdt-table-wrapper .affx-pdt-ribbon::before":{background:b}," .affx-pdt-table-wrapper .affiliatex-button":{"font-family":V.family,"text-decoration":V["text-decoration"],"font-weight":Object(u.c)(V.variation),"font-style":Object(u.b)(V.variation),"font-size":V.size.desktop,"line-height":V["line-height"].desktop,"text-transform":V["text-transform"],"letter-spacing":V["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affiliatex-button.primary":{color:B,"background-color":R,"margin-top":c.desktop.top,"margin-left":c.desktop.left,"margin-right":c.desktop.right,"margin-bottom":c.desktop.bottom,"padding-top":r.desktop.top,"padding-left":r.desktop.left,"padding-right":r.desktop.right,"padding-bottom":r.desktop.bottom}," .affx-pdt-table-wrapper .affiliatex-button.secondary":{color:I,"background-color":P,"margin-top":p.desktop.top,"margin-left":p.desktop.left,"margin-right":p.desktop.right,"margin-bottom":p.desktop.bottom,"padding-top":s.desktop.top,"padding-left":s.desktop.left,"padding-right":s.desktop.right,"padding-bottom":s.desktop.bottom}," .affx-pdt-table-wrapper .affiliatex-button.primary:hover":{color:N,"background-color":S}," .affx-pdt-table-wrapper .affiliatex-button.secondary:hover":{color:L,"background-color":A}," .affx-pdt-table-wrapper .affx-pdt-price-wrap":{color:x,"font-family":H.family,"font-weight":Object(u.c)(H.variation),"font-style":Object(u.b)(H.variation),"font-size":H.size.desktop,"line-height":H["line-height"].desktop,"text-transform":H["text-transform"],"text-decoration":H["text-decoration"],"letter-spacing":H["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affx-pdt-table thead td":{background:v,"border-color":v,color:h,"font-family":U.family,"text-decoration":U["text-decoration"],"font-weight":Object(u.c)(U.variation),"font-style":Object(u.b)(U.variation),"font-size":U.size.desktop,"line-height":U["line-height"].desktop,"text-transform":U["text-transform"],"letter-spacing":U["letter-spacing"].desktop}," .affx-pdt-table-wrapper .affiliatex-icon li:before":{color:Z}," .affx-pdt-table":{}," .affx-pdt-table-wrapper .affx-pdt-img-container":{"padding-top":X.desktop.top,"padding-left":X.desktop.left,"padding-right":X.desktop.right,"padding-bottom":X.desktop.bottom}})[" .affx-pdt-table-wrapper:not(.layout-3)"].background="solid"===E?_:T.gradient,Y[" .affx-pdt-table"].background="solid"===E?_:T.gradient,Y[" .affx-pdt-table-single"].background="solid"===E?_:T.gradient,Y[" .affx-pdt-table-wrapper:not(.layout-3)"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",Y[" .affx-pdt-table-single"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",Q={" .affx-pdt-table-wrapper":{"font-size":W.size.tablet,"line-height":W["line-height"].tablet,"letter-spacing":W["letter-spacing"].tablet}," .star-rating-single-wrap":{"font-size":$.size.tablet,"line-height":$["line-height"].tablet,"letter-spacing":$["letter-spacing"].tablet}," .affx-circle-progress-container .affx-circle-inside":{"font-size":G.size.tablet,"line-height":G["line-height"].tablet,"letter-spacing":G["letter-spacing"].tablet}," .affx-pdt-table-wrapper p":{"font-size":W.size.tablet,"line-height":W["line-height"].tablet,"letter-spacing":W["letter-spacing"].tablet}," .affx-pdt-table-wrapper li":{"font-size":W.size.tablet,"line-height":W["line-height"].tablet,"letter-spacing":W["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-name":{"font-size":q.size.tablet,"line-height":q["line-height"].tablet,"letter-spacing":q["letter-spacing"].tablet}," .affx-pdt-table-wrapper:not(.layout-3)":{"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom}," .affx-pdt-table-single":{"border-width":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left,"border-radius":l.tablet.top+" "+l.tablet.right+" "+l.tablet.bottom+" "+l.tablet.left,"margin-top":z.tablet.top,"margin-left":z.tablet.left,"margin-right":z.tablet.right,"margin-bottom":z.tablet.bottom}," .affx-pdt-table-wrapper td":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom,"border-width":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left}," .affx-pdt-table-wrapper th":{"padding-top":F.tablet.top,"padding-left":F.tablet.left,"padding-right":F.tablet.right,"padding-bottom":F.tablet.bottom}," .affx-pdt-table-wrapper .affx-pdt-counter":{"font-size":D.size.tablet,"line-height":D["line-height"].tablet,"letter-spacing":D["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-ribbon":{"font-size":M.size.tablet,"line-height":M["line-height"].tablet,"letter-spacing":M["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affiliatex-button":{"font-size":V.size.tablet,"line-height":V["line-height"].tablet,"letter-spacing":V["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affiliatex-button.primary":{"margin-top":c.tablet.top,"margin-left":c.tablet.left,"margin-right":c.tablet.right,"margin-bottom":c.tablet.bottom,"padding-top":r.tablet.top,"padding-left":r.tablet.left,"padding-right":r.tablet.right,"padding-bottom":r.tablet.bottom}," .affx-pdt-table-wrapper .affiliatex-button.secondary":{"margin-top":p.tablet.top,"margin-left":p.tablet.left,"margin-right":p.tablet.right,"margin-bottom":p.tablet.bottom,"padding-top":s.tablet.top,"padding-left":s.tablet.left,"padding-right":s.tablet.right,"padding-bottom":s.tablet.bottom}," .affx-pdt-table-wrapper .affx-pdt-price-wrap":{"font-size":H.size.tablet,"line-height":H["line-height"].tablet,"letter-spacing":H["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-table thead td":{"font-size":U.size.tablet,"line-height":U["line-height"].tablet,"letter-spacing":U["letter-spacing"].tablet}," .affx-pdt-table-wrapper .affx-pdt-img-container":{"padding-top":X.tablet.top,"padding-left":X.tablet.left,"padding-right":X.tablet.right,"padding-bottom":X.tablet.bottom}},K={" .affx-pdt-table-wrapper":{"font-size":W.size.mobile,"line-height":W["line-height"].mobile,"letter-spacing":W["letter-spacing"].mobile}," .star-rating-single-wrap":{"font-size":$.size.mobile,"line-height":$["line-height"].mobile,"letter-spacing":$["letter-spacing"].mobile}," .affx-circle-progress-container .affx-circle-inside":{"font-size":G.size.mobile,"line-height":G["line-height"].mobile,"letter-spacing":G["letter-spacing"].mobile}," .affx-pdt-table-wrapper p":{"font-size":W.size.mobile,"line-height":W["line-height"].mobile,"letter-spacing":W["letter-spacing"].mobile}," .affx-pdt-table-wrapper li":{"font-size":W.size.mobile,"line-height":W["line-height"].mobile,"letter-spacing":W["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-name":{"font-size":q.size.mobile,"line-height":q["line-height"].mobile,"letter-spacing":q["letter-spacing"].mobile}," .affx-pdt-table-wrapper:not(.layout-3)":{"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom}," .affx-pdt-table-single":{"border-width":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left,"border-radius":l.mobile.top+" "+l.mobile.right+" "+l.mobile.bottom+" "+l.mobile.left,"margin-top":z.mobile.top,"margin-left":z.mobile.left,"margin-right":z.mobile.right,"margin-bottom":z.mobile.bottom}," .affx-pdt-table-wrapper td":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom,"border-width":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left}," .affx-pdt-table-wrapper th":{"padding-top":F.mobile.top,"padding-left":F.mobile.left,"padding-right":F.mobile.right,"padding-bottom":F.mobile.bottom}," .affx-pdt-table-wrapper .affx-pdt-counter":{"font-size":D.size.mobile,"line-height":D["line-height"].mobile,"letter-spacing":D["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-ribbon":{"font-size":M.size.mobile,"line-height":M["line-height"].mobile,"letter-spacing":M["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affiliatex-button":{"font-size":V.size.mobile,"line-height":V["line-height"].mobile,"letter-spacing":V["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affiliatex-button.primary":{"margin-top":c.mobile.top,"margin-left":c.mobile.left,"margin-right":c.mobile.right,"margin-bottom":c.mobile.bottom,"padding-top":r.mobile.top,"padding-left":r.mobile.left,"padding-right":r.mobile.right,"padding-bottom":r.mobile.bottom}," .affx-pdt-table-wrapper .affiliatex-button.secondary":{"margin-top":p.mobile.top,"margin-left":p.mobile.left,"margin-right":p.mobile.right,"margin-bottom":p.mobile.bottom,"padding-top":s.mobile.top,"padding-left":s.mobile.left,"padding-right":s.mobile.right,"padding-bottom":s.mobile.bottom}," .affx-pdt-table-wrapper .affx-pdt-price-wrap":{"font-size":H.size.mobile,"line-height":H["line-height"].mobile,"letter-spacing":H["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-table thead td":{"font-size":U.size.mobile,"line-height":U["line-height"].mobile,"letter-spacing":U["letter-spacing"].mobile}," .affx-pdt-table-wrapper .affx-pdt-img-container":{"padding-top":X.mobile.top,"padding-left":X.mobile.left,"padding-right":X.mobile.right,"padding-bottom":X.mobile.bottom}};var J="";return J=Object(d.a)(Y,`#${t}-${a}`),(J+=Object(d.a)(Q,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(K,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-pdt-table-style",n))},[e]);const{productTable:l,itemCount:r,layoutStyle:c,ribbonTypography:s,counterTypography:p,ratingTypography:f,rating2Typography:b,priceTypography:m,buttonTypography:g,headerTypography:h,titleTypography:v,contentTypography:x}=e;let y,O,j,C,w,E,_,T,B;if("Default"!==s.family){const e={google:{families:[s.family+(s.variation?":"+s.variation:"")]}};y=Object(i.createElement)(k,{config:e})}if("Default"!==p.family){const e={google:{families:[p.family+(p.variation?":"+p.variation:"")]}};O=Object(i.createElement)(k,{config:e})}if("Default"!==f.family){const e={google:{families:[f.family+(f.variation?":"+f.variation:"")]}};j=Object(i.createElement)(k,{config:e})}if("Default"!==b.family){const e={google:{families:[b.family+(b.variation?":"+b.variation:"")]}};C=Object(i.createElement)(k,{config:e})}if("Default"!==m.family){const e={google:{families:[m.family+(m.variation?":"+m.variation:"")]}};w=Object(i.createElement)(k,{config:e})}if("Default"!==g.family){const e={google:{families:[g.family+(g.variation?":"+g.variation:"")]}};E=Object(i.createElement)(k,{config:e})}if("Default"!==h.family){const e={google:{families:[h.family+(h.variation?":"+h.variation:"")]}};_=Object(i.createElement)(k,{config:e})}if("Default"!==v.family){const e={google:{families:[v.family+(v.variation?":"+v.variation:"")]}};T=Object(i.createElement)(k,{config:e})}if("Default"!==x.family){const e={google:{families:[x.family+(x.variation?":"+x.variation:"")]}};B=Object(i.createElement)(k,{config:e})}const[N,R]=Object(i.useState)(null),S=(e,a)=>{let o=[...l];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productTable:o})},I=(e,a)=>{let o=[...l];o[a]={...o[a],imageUrl:e.url,imageId:e.id,imageAlt:e.alt},t({productTable:o})},L=e=>{let a=[...l];a[e]={...a[e],imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",imageId:null,imageAlt:null},t({productTable:a})},P=(e,a,o)=>{let i=[...l];i[a]={...i[a],[""+o]:e},t({productTable:i})},A=e=>{let a=0,o=[...e];o=[...e,{imageUrl:AffiliateX.pluginUrl+"app/src/images/fallback.jpg",imageId:"",imageAlt:"",ribbon:"",name:"Product Name",features:"Product Features",featuresList:[],offerPrice:"$49.00",regularPrice:"$59.00",rating:"",button1:"Purchase Now",button1URL:"",btn1RelNoFollow:!1,btn1RelSponsored:!1,btn1OpenInNewTab:!1,btn1Download:!1,button2:"Check on Amazon",button2URL:"",btn2RelNoFollow:!1,btn2RelSponsored:!1,btn2OpenInNewTab:!1,btn2Download:!1}],t({productTable:o}),a=e.length,t({itemCount:a})},z=e=>{let a=[...l];a.splice(e,1),t({productTable:a,itemCount:r-1})},F=(e,a)=>{let o=[...l];"up"==a&&0!==e?(o.splice(e,1),o.splice(e-1,0,l[e])):"down"==a&&e!==o.length-1&&(o.splice(e,1),o.splice(e+1,0,l[e])),t({productTable:o})};return Object(i.createElement)(ze,null,Object(i.createElement)(xe,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-pdt-table-style-"+n,className:a},Object(i.createElement)("div",{className:"affx-pdt-table-container--free affx-block-admin "+(c&&"layoutThree"==c?"layout-3":"")},Object(i.createElement)("div",{className:"affx-pdt-table-wrapper"},c&&("layoutOne"==c||"layoutTwo"==c)&&Object(i.createElement)(Re,{attributes:e,setAttributes:t,handleChangeIndex:F,onSelectImage:S,onReplaceImage:I,onRemoveImage:L,onChangeProductDetails:P,setSelectedButton:R,selectedButton:N,handleProductRow:A,handleRemoveProductRow:z,isSelected:o}),c&&"layoutThree"==c&&Object(i.createElement)(Ae,{attributes:e,setAttributes:t,handleChangeIndex:F,onSelectImage:S,onReplaceImage:I,onRemoveImage:L,onChangeProductDetails:P,setSelectedButton:R,selectedButton:N,handleProductRow:A,handleRemoveProductRow:z,isSelected:o})))),y,O,j,C,w,E,_,T,B)},Ve=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,productTable:l,layoutStyle:r,imageColTitle:c,productColTitle:s,featuresColTitle:p,ratingColTitle:f,priceColTitle:d,edImage:u,edRibbon:b,edProductName:m,edRating:g,edPrice:h,edCounter:v,edButton1:x,edButton1Icon:y,button1Icon:O,button1IconAlign:j,edButton2:k,edButton2Icon:C,button2Icon:w,button2IconAlign:E,starColor:_,starInactiveColor:T,productContentType:N,contentListType:R,productIconList:S}=e,I=()=>{let e=[...l],t=[];return e.map(e=>e.rating).forEach(e=>{e.length>0&&t.push(e)}),t};return Object(i.createElement)("div",{id:"affiliatex-pdt-table-style-"+o,className:""+t},Object(i.createElement)("div",{className:"affx-pdt-table-container--free affx-block-admin "+(r&&"layoutThree"==r?"layout-3":"")},Object(i.createElement)("div",{className:"affx-pdt-table-wrapper"},r&&("layoutOne"==r||"layoutTwo"==r)&&Object(i.createElement)("table",{className:"affx-pdt-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,u&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:c}))),Object(i.createElement)("td",null,Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:s}))),"layoutOne"==r&&Object(i.createElement)("td",null,Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:p}))),"layoutTwo"==r&&g&&I().length>0&&Object(i.createElement)("td",{className:"affx-rating-col"},Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:f}))),Object(i.createElement)("td",{className:"affx-price-col"},Object(i.createElement)("span",null,Object(i.createElement)(a.Content,{value:d}))))),Object(i.createElement)("tbody",null,null==l?void 0:l.map((e,t)=>Object(i.createElement)("tr",{key:t},u&&Object(i.createElement)("td",{className:"affx-img-col"},Object(i.createElement)("div",{className:"affx-pdt-img-container"},b&&e.ribbon&&Object(i.createElement)("span",{className:"affx-pdt-ribbon affx-ribbon-2"},Object(i.createElement)(a.Content,{value:e.ribbon})),v&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl,alt:e.imageAlt})),"layoutOne"==r&&g&&e.rating&&Object(i.createElement)("span",{className:"star-rating-single-wrap"},Object(i.createElement)(a.Content,{value:e.rating.toString()})))),Object(i.createElement)("td",null,m&&Object(i.createElement)("h5",{className:"affx-pdt-name"},Object(i.createElement)(a.Content,{value:e.name})),"layoutTwo"==r&&Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===N&&Object(i.createElement)(a.Content,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,value:e.featuresList}),"paragraph"===N&&Object(i.createElement)(a.Content,{tagName:"p",value:e.features,className:"affiliatex-content"}))),"layoutOne"==r&&Object(i.createElement)("td",null,"list"===N&&Object(i.createElement)(a.Content,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,value:e.featuresList}),"paragraph"===N&&Object(i.createElement)(a.Content,{tagName:"p",value:e.features,className:"affiliatex-content"})),"layoutTwo"==r&&g&&e.rating&&I().length>0&&Object(i.createElement)("td",{className:"affx-rating-col"},Object(i.createElement)("div",{className:"affx-circle-progress-container"},Object(i.createElement)("span",{className:"circle-wrap",style:{"--data-deg":"rotate("+e.rating.toString()/10*100/100*180+"deg)"}},Object(i.createElement)("span",{className:"circle-mask full"},Object(i.createElement)("span",{className:"fill"})),Object(i.createElement)("span",{className:"circle-mask"},Object(i.createElement)("span",{className:"fill"}))),Object(i.createElement)("span",{className:"affx-circle-inside"},Object(i.createElement)(a.Content,{value:e.rating.toString()})))),"layoutTwo"==r&&g&&I().length>0&&0==e.rating&&Object(i.createElement)("td",null),Object(i.createElement)("td",{className:"affx-price-col"},h&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},e.offerPrice&&Object(i.createElement)("span",{className:"affx-pdt-offer-price"},Object(i.createElement)(a.Content,{value:e.offerPrice})),e.regularPrice&&Object(i.createElement)("del",{className:"affx-pdt-reg-price"},Object(i.createElement)(a.Content,{value:e.regularPrice}))),(x||k)&&Object(i.createElement)("div",{className:"affx-btn-wrapper"},x&&e.button1&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button1URL,className:"affiliatex-button primary "+(y&&"icon-btn icon-"+j),rel:Object(n.__)("noopener","affiliatex")},e.btn1RelNoFollow?{rel:"noopener nofollow"}:"",e.btn1RelSponsored?{rel:"noopener sponsored"}:"",e.btn1RelNoFollow&&e.btn1RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn1OpenInNewTab?{target:"_blank"}:"",e.btn1Download?{download:"affiliatex"}:""),1==y&&j&&"left"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}),Object(i.createElement)(a.Content,{value:e.button1}),1==y&&j&&"right"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}))),k&&e.button2&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button2URL,className:"affiliatex-button secondary "+(C&&"icon-btn icon-"+E),rel:Object(n.__)("noopener","affiliatex")},e.btn2RelNoFollow?{rel:"noopener nofollow"}:"",e.btn2RelSponsored?{rel:"noopener sponsored"}:"",e.btn2RelNoFollow&&e.btn2RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn2OpenInNewTab?{target:"_blank"}:"",e.btn2Download?{download:"affiliatex"}:""),1==C&&E&&"left"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}),Object(i.createElement)(a.Content,{value:e.button2}),1==C&&E&&"right"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}))))))))),r&&"layoutThree"==r&&Object(i.createElement)(i.Fragment,null,null==l?void 0:l.map((e,t)=>Object(i.createElement)("div",{className:"affx-pdt-table-single",key:t},u&&Object(i.createElement)("div",{className:"affx-pdt-img-wrapper"},Object(i.createElement)("img",{src:e.imageUrl,alt:e.imageAlt})),Object(i.createElement)("div",{className:"affx-pdt-content-wrap"},Object(i.createElement)("div",{className:"affx-content-left"},v&&Object(i.createElement)("span",{className:"affx-pdt-counter"},t+1),b&&e.ribbon&&Object(i.createElement)("span",{className:"affx-pdt-ribbon"},Object(i.createElement)(a.Content,{value:e.ribbon})),m&&Object(i.createElement)("h5",{className:"affx-pdt-name"},Object(i.createElement)(a.Content,{value:e.name})),g&&e.rating&&Object(i.createElement)("div",{className:"affx-rating-wrap"},Object(i.createElement)(G.RatingView,{ratingValue:parseInt(e.rating),fillColor:_,emptyColor:T,className:"rating-stars"})),h&&Object(i.createElement)("div",{className:"affx-pdt-price-wrap"},e.offerPrice&&Object(i.createElement)("span",{className:"affx-pdt-offer-price"},Object(i.createElement)(a.Content,{value:e.offerPrice})),e.regularPrice&&Object(i.createElement)("del",{className:"affx-pdt-reg-price"},Object(i.createElement)(a.Content,{value:e.regularPrice}))),Object(i.createElement)("div",{className:"affx-pdt-desc"},"list"===N&&Object(i.createElement)(a.Content,{tagName:"unordered"==R?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+S.name,value:e.featuresList}),"paragraph"===N&&Object(i.createElement)(a.Content,{tagName:"p",value:e.features,className:"affiliatex-content"}))),(x||k)&&Object(i.createElement)("div",{className:"affx-pdt-button-wrap"},Object(i.createElement)("div",{className:"affx-btn-wrapper"},x&&e.button1&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button1URL,className:"affiliatex-button primary "+(y&&"icon-btn icon-"+j),rel:Object(n.__)("noopener","affiliatex")},e.btn1RelNoFollow?{rel:"noopener nofollow"}:"",e.btn1RelSponsored?{rel:"noopener sponsored"}:"",e.btn1RelNoFollow&&e.btn1RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn1OpenInNewTab?{target:"_blank"}:"",e.btn1Download?{download:"affiliatex"}:""),1==y&&j&&"left"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}),Object(i.createElement)(a.Content,{value:e.button1}),1==y&&j&&"right"==j&&Object(i.createElement)("i",{className:"button-icon "+O.value}))),k&&e.button2&&Object(i.createElement)("div",{className:"affx-btn-inner"},Object(i.createElement)("a",B()({href:e.button2URL,className:"affiliatex-button secondary "+(C&&"icon-btn icon-"+E),rel:Object(n.__)("noopener","affiliatex")},e.btn2RelNoFollow?{rel:"noopener nofollow"}:"",e.btn2RelSponsored?{rel:"noopener sponsored"}:"",e.btn2RelNoFollow&&e.btn2RelSponsored?{rel:"noopener nofollow sponsored"}:"",e.btn2OpenInNewTab?{target:"_blank"}:"",e.btn2Download?{download:"affiliatex"}:""),1==C&&E&&"left"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}),Object(i.createElement)(a.Content,{value:e.button2}),1==C&&E&&"right"==E&&Object(i.createElement)("i",{className:"button-icon "+w.value}))))))))))))};Object(S.registerBlockType)("affiliatex/product-table",{title:Object(n.__)("AffiliateX Product Table","affiliatex"),description:Object(n.__)("Add a customizable product table block","affiliatex"),icon:R.i,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("product","affiliatex"),Object(n.__)("table","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:ve,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(He,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Ve,{attributes:e,className:t})});const We=AffiliateX.customizationData;var De={block_id:{type:"string"},ctaTitle:{type:"string",default:Object(n.__)("Call to Action Title.","affiliatex")},ctaContent:{type:"string",default:Object(n.__)("Start creating CTAs in seconds, and convert more of your visitors into leads.","affiliatex")},ctaLayout:{type:"string",default:"layoutOne"},ctaBGType:{type:"string",default:"color"},imgURL:{type:"string",default:AffiliateX.pluginUrl+"app/src/images/fallback.jpg"},imgID:{type:"number",default:""},imgAlt:{type:"string",default:""},overlayOpacity:{type:"decimalPoint",default:.1},imagePosition:{type:"string",default:"center"},ctaBgColorType:{type:"string",default:"solid"},ctaBgGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},ctaBGColor:{type:"string",default:"#fff"},columnReverse:{type:"boolean",default:!1},ctaAlignment:{type:"string",default:"center"},contentAlignment:{type:"string",default:"center"},ctaButtonAlignment:{type:"string",default:"center"},ctaTitleTypography:{type:"object",default:{family:(null==We||null===(Fe=We.typography)||void 0===Fe?void 0:Fe.family)||"Default",variation:"n5",size:{desktop:"40px",mobile:"40px",tablet:"40px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ctaContentTypography:{type:"object",default:{family:(null==We||null===(Me=We.typography)||void 0===Me?void 0:Me.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},edButtons:{type:"boolean",default:!0},edButtonTwo:{type:"boolean",default:!0},ctaBorder:{type:"object",default:{style:"solid",color:{color:"#E6ECF7"}}},ctaBorderWidth:{type:"object",default:{top:"1px",left:"1px",right:"1px",bottom:"1px"}},ctaBorderRadius:{type:"object",default:{desktop:{top:"8px",left:"8px",right:"8px",bottom:"8px"},mobile:{top:"8px",left:"8px",right:"8px",bottom:"8px"},tablet:{top:"8px",left:"8px",right:"8px",bottom:"8px"}}},ctaTitleColor:{type:"string",default:"#262B33"},ctaTextColor:{type:"string",default:(null==We?void 0:We.fontColor)||"#292929"},ctaBoxPadding:{type:"object",default:{desktop:{top:"60px",left:"30px",right:"30px",bottom:"60px"},mobile:{top:"60px",left:"30px",right:"30px",bottom:"60px"},tablet:{top:"60px",left:"30px",right:"30px",bottom:"60px"}}},ctaMargin:{type:"object",default:{desktop:{top:"0px",left:"0",right:"0",bottom:"30px"},mobile:{top:"0px",left:"0",right:"0",bottom:"30px"},tablet:{top:"0px",left:"0",right:"0",bottom:"30px"}}},ctaBoxShadow:{type:"object",default:{enable:!0,h_offset:2,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}}},qe=a(23),Ue=(a(45),a(30),({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l,MediaUpload:r}=wp.blockEditor,{PanelBody:s,ToggleControl:p}=wp.components,{ctaLayout:f,ctaBGType:d,imgURL:u,imgID:b,imgAlt:m,ctaBGColor:g,overlayOpacity:h,imagePosition:v,ctaAlignment:x,contentAlignment:y,ctaTitleColor:O,ctaTextColor:j,ctaTitleTypography:k,ctaContentTypography:C,edButtons:w,edButtonTwo:E,ctaBorder:_,ctaBorderWidth:T,ctaBorderRadius:B,ctaBoxPadding:N,ctaMargin:R,ctaBoxShadow:S,columnReverse:I,ctaButtonAlignment:L}=e,P=e=>{t({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},A=()=>{t({imgID:null,imgURL:null,imgAlt:null})};return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(s,{title:Object(n.__)("Layout Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-layout-option"},Object(i.createElement)(qe.SelectControl,{value:f,options:[{value:"layoutOne",label:"Layout One"},{value:"layoutTwo",label:"Layout Two"}],onChange:e=>t({ctaLayout:e})})),"layoutOne"===f&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:x,values:x,id:"cta-alignment",option:{id:"cta-alignment",label:Object(n.__)("Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",center:"",right:""},value:De.ctaAlignment.default},hasRevertButton:!0,onChange:e=>t({ctaAlignment:e})}))),"layoutTwo"===f&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s,{title:Object(n.__)("CTA Image","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},b?Object(i.createElement)("div",{className:"image-wrapper"},Object(i.createElement)("img",{src:u,alt:m}),o?Object(i.createElement)(qe.Button,{className:"remove-image",onClick:A},Object(n.__)(" Remove Image","affiliatex")):null):Object(i.createElement)(r,{onSelect:P,type:"image",value:b,render:({open:e})=>Object(i.createElement)(qe.Button,{className:"upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-bg-postion-option"},Object(i.createElement)(qe.SelectControl,{label:Object(n.__)("Image Position","affiliatex"),value:v,options:[{value:"center",label:"Center Center"},{value:"centerLeft",label:"Center Left"},{value:"centerRight",label:"Center Right"},{value:"topCenter",label:"Top Center"},{value:"topLeft",label:"Top Left"},{value:"topRight",label:"Top Right"},{value:"bottomCenter",label:"Bottom Center"},{value:"bottomLeft",label:"Bottom Left"},{value:"bottomRight",label:"Bottom Right"}],onChange:e=>t({imagePosition:e})})),"layoutTwo"===f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-column-reverse"},Object(i.createElement)(p,{label:Object(n.__)("Enable Column Reverse","affiliatex"),checked:!!I,onChange:()=>t({columnReverse:!I})})))),Object(i.createElement)(s,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-button-option"},Object(i.createElement)(p,{label:Object(n.__)("Enable Buttons","affiliatex"),checked:!!w,onChange:()=>t({edButtons:!w})}),!0===w&&Object(i.createElement)(p,{label:Object(n.__)("Enable Button Two","affiliatex"),checked:!!E,onChange:()=>t({edButtonTwo:!E})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:_,values:_,id:"cta-border",option:{id:"cta-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:De.ctaBorder.default},hasRevertButton:!0,onChange:e=>t({ctaBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"cta-border-width",option:{id:"cta-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:De.ctaBorderWidth.default,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"cta-border-radius",option:{id:"cta-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:De.ctaBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaBorderRadius:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"cta-box-shadow",option:{id:"cta-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:De.ctaBoxShadow.default},hasRevertButton:!0,onChange:e=>t({ctaBoxShadow:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:y,values:y,id:"content-alignment",option:{id:"content-alignment",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",center:"",right:""},value:De.contentAlignment.default},hasRevertButton:!0,onChange:e=>t({contentAlignment:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,values:L,id:"button-alignment",option:{id:"button-alignment",label:Object(n.__)("Button Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",center:"",right:""},value:De.ctaButtonAlignment.default},hasRevertButton:!0,onChange:e=>t({ctaButtonAlignment:e})}))),Object(i.createElement)(s,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{titleColor:{color:O}},option:{id:"cta-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{titleColor:{color:De.ctaTitleColor.default}},pickers:[{id:"titleColor",title:Object(n.__)("Title Color")}]},hasRevertButton:!0,onChange:e=>t({ctaTitleColor:e.titleColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:j}},onChange:e=>t({ctaTextColor:e.textColor.color}),option:{id:"cta-text-color",label:Object(n.__)("Text Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:De.ctaTextColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color")}]},hasRevertButton:!0})),"layoutOne"===f&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-bg-option"},Object(i.createElement)(c.a,{value:d,values:d,id:"cta-bg-type",option:{id:"cta-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:De.ctaBGType.default,choices:{color:Object(n.__)("Color","affiliatex"),image:Object(n.__)("Image","affiliatex")}},hasRevertButton:!0,onChange:e=>t({ctaBGType:e})})),("layoutOne"===f&&"color"===d||"layoutTwo"===f)&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-bg-option"},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:g}},onChange:e=>t({ctaBGColor:e.backgroundColor.color}),option:{id:"cta-background-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:De.ctaBGColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0}))),"layoutOne"===f&&"image"===d&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:a},b?Object(i.createElement)("div",{className:"image-wrapper"},Object(i.createElement)("img",{src:u,alt:m}),o?Object(i.createElement)(qe.Button,{className:"remove-image",onClick:A},Object(n.__)(" Remove Image","affiliatex")):null):Object(i.createElement)(r,{onSelect:P,type:"image",value:b,render:({open:e})=>Object(i.createElement)(qe.Button,{className:"upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),"layoutOne"===f&&"image"===d&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-bg-postion-option"},Object(i.createElement)(qe.SelectControl,{label:Object(n.__)("Image Position","affiliatex"),value:v,options:[{value:"center",label:"Center Center"},{value:"centerLeft",label:"Center Left"},{value:"centerRight",label:"Center Right"},{value:"topCenter",label:"Top Center"},{value:"topLeft",label:"Top Left"},{value:"topRight",label:"Top Right"},{value:"bottomCenter",label:"Bottom Center"},{value:"bottomLeft",label:"Bottom Left"},{value:"bottomRight",label:"Bottom Right"}],onChange:e=>t({imagePosition:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-opacity"},Object(i.createElement)("label",null,Object(n.__)("Overlay Opacity","affiliatex")),Object(i.createElement)(qe.RangeControl,{value:h,min:0,max:1,step:.1,onChange:e=>t({overlayOpacity:e})}))))),Object(i.createElement)(s,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-title-typography"},Object(i.createElement)(c.a,{id:"cta-title-typography",value:k,option:{id:"cta-title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:De.ctaTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ctaTitleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-content-typography"},Object(i.createElement)(c.a,{id:"cta-content-typography",value:C,option:{id:"cta-content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:De.ctaContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ctaContentTypography:e})}}))),Object(i.createElement)(s,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-padding-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"cta-box-padding",option:{id:"cta-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:De.ctaBoxPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaBoxPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-margin-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"cta-margin",option:{id:"cta-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:De.ctaMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({ctaMargin:e})}))))});const{InnerBlocks:$e,RichText:Ge}=wp.blockEditor;var Ze,Xe,Ke=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{imgURL:o,contentAlignment:i,ctaBGColor:n,ctaBgGradient:l,overlayOpacity:r,imagePosition:c,ctaTitleColor:s,ctaTextColor:p,ctaTitleTypography:f,ctaContentTypography:b,ctaBorder:m,ctaBorderWidth:g,ctaBgColorType:h,ctaBorderRadius:v,ctaBoxPadding:x,ctaMargin:y,ctaBoxShadow:O,ctaButtonAlignment:j}=e;var k,C,w={};const E="center"===c?"center center":"centerLeft"===c?"center left":"centerRight"===c?"center right":"topCenter"===c?"top center":"topLeft"===c?"top left":"topRight"===c?"top right":"bottomCenter"===c?"bottom center":"bottomLeft"===c?"bottom left":"bottomRight"===c?"bottom right":"",_="solid"===h?n:l.gradient;(w={" .layout-type-1":{"background-image":"url("+o+")"}," .layout-type-3":{"background-image":"url("+o+")"}," .image-wrapper":{"background-image":"url("+o+")","background-position":E}," .bg-color":{background:_},".wp-block-affiliatex-cta > div":{"background-size":"cover","background-repeat":"no-repeat","background-position":E,"border-style":m.style,"border-width":g.top+" "+g.right+" "+g.bottom+" "+g.left,"border-radius":v.desktop.top+" "+v.desktop.left+"  "+v.desktop.right+" "+v.desktop.bottom,"border-color":m.color.color,"padding-top":x.desktop.top,"padding-left":x.desktop.left,"padding-right":x.desktop.right,"padding-bottom":x.desktop.bottom,"margin-top":y.desktop.top,"margin-left":y.desktop.left,"margin-right":y.desktop.right,"margin-bottom":y.desktop.bottom},".wp-block-affiliatex-cta h2":{color:s,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop,"text-align":i},".wp-block-affiliatex-cta .affliatex-cta-content":{color:p,"font-family":b.family,"font-weight":Object(u.c)(b.variation),"font-style":Object(u.b)(b.variation),"font-size":b.size.desktop,"line-height":b["line-height"].desktop,"text-transform":b["text-transform"],"text-decoration":b["text-decoration"],"letter-spacing":b["letter-spacing"].desktop,"text-align":i}," .img-opacity::before":{opacity:r},".wp-block-affiliatex-cta .layout-type-2":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"},".wp-block-affiliatex-cta .layout-type-2 .content-wrapper":{background:_,"padding-top":x.desktop.top,"padding-left":x.desktop.left,"padding-right":x.desktop.right,"padding-bottom":x.desktop.bottom}," .button-wrapper":{"justify-content":j}})[".wp-block-affiliatex-cta > div"]["box-shadow"]=Object(u.a)(O)?Object(u.a)(O):"",C={".wp-block-affiliatex-cta > div":{"font-size":f.size.tablet,"border-radius":v.tablet.top+" "+v.tablet.left+"  "+v.tablet.right+" "+v.tablet.bottom,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet,"padding-top":x.tablet.top,"padding-left":x.tablet.left,"padding-right":x.tablet.right,"padding-bottom":x.tablet.bottom,"margin-top":y.tablet.top,"margin-left":y.tablet.left,"margin-right":y.tablet.right,"margin-bottom":y.tablet.bottom},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.tablet,"line-height":b["line-height"].tablet,"letter-spacing":b["letter-spacing"].tablet},".wp-block-affiliatex-cta h2":{"font-size":f.size.tablet,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.tablet,"line-height":b["line-height"].tablet,"letter-spacing":b["letter-spacing"].tablet},".wp-block-affiliatex-cta .layout-type-2":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"},".wp-block-affiliatex-cta .layout-type-2 .content-wrapper":{"padding-top":x.tablet.top,"padding-left":x.tablet.left,"padding-right":x.tablet.right,"padding-bottom":x.tablet.bottom}},k={".wp-block-affiliatex-cta > div":{"padding-top":x.mobile.top,"border-radius":v.mobile.top+" "+v.mobile.left+"  "+v.mobile.right+" "+v.mobile.bottom,"padding-left":x.mobile.left,"padding-right":x.mobile.right,"padding-bottom":x.mobile.bottom,"margin-top":y.mobile.top,"margin-left":y.mobile.left,"margin-right":y.mobile.right,"margin-bottom":y.mobile.bottom},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.mobile,"line-height":b["line-height"].mobile,"letter-spacing":b["letter-spacing"].mobile},".wp-block-affiliatex-cta h2":{"font-size":f.size.mobile,"line-height":f["line-height"].mobile,"letter-spacing":f["letter-spacing"].mobile},".wp-block-affiliatex-cta .affliatex-cta-content":{"font-size":b.size.mobile,"line-height":b["line-height"].mobile,"letter-spacing":b["letter-spacing"].mobile},".wp-block-affiliatex-cta .layout-type-2":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"},".wp-block-affiliatex-cta .layout-type-2 .content-wrapper":{"padding-top":x.mobile.top,"padding-left":x.mobile.left,"padding-right":x.mobile.right,"padding-bottom":x.mobile.bottom}};var T="";return T=Object(d.a)(w,`#${t}-${a}`),(T+=Object(d.a)(C,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(k,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-style",l))},[e]);const{ctaTitleTypography:r,ctaContentTypography:c,ctaLayout:s,ctaTitle:p,ctaContent:f,ctaBGType:b,ctaAlignment:m,columnReverse:g,edButtons:h,edButtonTwo:v}=e,{Fragment:x}=wp.element,y=v?[["affiliatex/buttons",{buttonLabel:"Buy Now",buttonMargin:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}],["affiliatex/buttons",{buttonLabel:"More Details",buttonBGColor:"#FFB800",buttonMargin:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}]]:[["affiliatex/buttons",{buttonLabel:"Buy Now"}]],O="layoutOne"===s?" layout-type-1":"layoutTwo"===s?" layout-type-2":"",j="image"==b?" img-opacity":" bg-color",C=g&&"layoutTwo"===s?" col-reverse":"";let w,E;if("Default"!==r.family){const e={google:{families:[r.family+(r.variation?":"+r.variation:"")]}};w=Object(i.createElement)(k,{config:e})}if("Default"!==c.family){const e={google:{families:[c.family+(c.variation?":"+c.variation:"")]}};E=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(x,null,Object(i.createElement)(Ue,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-style-"+l,className:"affblk-cta-wrapper "+a},Object(i.createElement)("div",{className:O+" "+m+C+("layoutOne"===s?j:"")},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)("div",{className:"content-wrap"},Object(i.createElement)(Ge,{tagName:"h2",placeholder:Object(n.__)("Call to Action Title","affiliatex"),value:p,className:"affliatex-cta-title",onChange:e=>t({ctaTitle:e})}),Object(i.createElement)(Ge,{tagName:"p",placeholder:Object(n.__)("Start creating CTAs in seconds, and convert more of your visitors into leads.","affiliatex"),value:f,className:"affliatex-cta-content",onChange:e=>t({ctaContent:e})})),!0===h&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)($e,{orientation:"horizontal",template:y,templateLock:"all"}))),"layoutTwo"===s&&Object(i.createElement)("div",{className:"image-wrapper"}))),w,E)},Qe=({attributes:e,className:t,clientId:a})=>{const{InnerBlocks:o,RichText:n}=wp.blockEditor,{block_id:l,ctaTitle:r,ctaContent:c,ctaBGType:s,ctaLayout:p,ctaAlignment:f,columnReverse:d,ctaButtonAlignment:u}=e,b="layoutOne"===p?" layout-type-1":"layoutTwo"===p?" layout-type-2":"",m=d&&"layoutOne"!==p?" col-reverse":"";return Object(i.createElement)("div",{id:"affiliatex-style-"+l,className:"affblk-cta-wrapper "+t},Object(i.createElement)("div",{className:b+" "+f+m+("image"==s?" img-opacity":" bg-color")},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)("div",{className:"content-wrap"},Object(i.createElement)(n.Content,{tagName:"h2",className:"affliatex-cta-title",value:r}),Object(i.createElement)(n.Content,{tagName:"p",className:"affliatex-cta-content",value:c})),Object(i.createElement)("div",{className:"button-wrapper cta-btn-"+u},Object(i.createElement)(o.Content,null))),"layoutTwo"===p&&Object(i.createElement)("div",{className:"image-wrapper"})))};Object(S.registerBlockType)("affiliatex/cta",{title:Object(n.__)("Affiliatex Call To Action","affiliatex"),description:Object(n.__)("Add a customizable CTA.","affiliatex"),icon:R.b,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("CTA","affliatex")],attributes:De,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Ke,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Qe,{attributes:e,className:t})});const Ye=AffiliateX.customizationData;var Je={block_id:{type:"string"},layoutStyle:{type:"string",default:"layout-type-1"},noticeBorder:{type:"object",default:{style:"solid",color:{color:"#e6ecf7"}}},noticeBorderWidth:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},noticeBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},boxShadow:{type:"object",default:{enable:!0,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},noticeListItems:{type:"array",filterElements:!0,default:["List items"]},titleTag1:{type:"string",default:"h2"},edTitleIcon:{type:"boolean",default:!0},noticeTitleIcon:{type:"object",default:{name:"info-circle",value:"fa fa-info-circle"}},noticeTitle:{type:"string",default:"Notice"},noticeContentType:{type:"string",default:"list"},noticeContent:{type:"string",default:"This is the notice content"},noticeListType:{type:"string",default:"unordered"},alignment:{type:"string",default:"left"},noticeListIcon:{type:"object",default:{name:"check-circle",value:"fas fa-check-circle"}},titleBgColor:{type:"string",default:""},titleTextColor:{type:"string",default:""},titleTypography:{type:"object",default:{family:(null==Ye||null===(Ze=Ye.typography)||void 0===Ze?void 0:Ze.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},listTypography:{type:"object",default:{family:(null==Ye||null===(Xe=Ye.typography)||void 0===Xe?void 0:Xe.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},titleAlignment:{type:"string",default:"left"},listTextColor:{type:"string",default:""},listBgType:{type:"string",default:"solid"},listBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},listBgColor:{type:"string",default:"#ffffff"},noticeBgType:{type:"string",default:"solid"},noticeBgGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"}},noticeBgColor:{type:"string",default:"#24b644"},noticeBgTwoType:{type:"string",default:"solid"},noticeBgTwoGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"}},noticeBgTwoColor:{type:"string",default:"#F6F9FF"},noticeIconColor:{type:"string",default:"#24b644"},noticeIconTwoColor:{type:"string",default:"#084ACA"},noticeTextColor:{type:"string",default:"#ffffff"},noticeTextTwoColor:{type:"string",default:"#084ACA"},noticeListColor:{type:"string",default:(null==Ye?void 0:Ye.fontColor)||"#292929"},noticeIconSize:{type:"number",default:17},noticeListIconSize:{type:"number",default:17},noticeMargin:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"30px"},mobile:{top:"0",left:"0",right:"0",bottom:"30px"},tablet:{top:"0",left:"0",right:"0",bottom:"30px"}}},titlePadding:{type:"object",default:{desktop:{top:"10px",right:"15px",bottom:"10px",left:"15px"},mobile:{top:"10px",right:"15px",bottom:"10px",left:"15px"},tablet:{top:"10px",right:"15px",bottom:"10px",left:"15px"}}},contentPadding:{type:"object",default:{desktop:{top:"10px",right:"15px",bottom:"10px",left:"15px"},mobile:{top:"10px",right:"15px",bottom:"10px",left:"15px"},tablet:{top:"10px",right:"15px",bottom:"10px",left:"15px"}}},noticePadding:{type:"object",default:{desktop:{top:"20px",right:"20px",bottom:"20px",left:"20px"},mobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},tablet:{top:"20px",right:"20px",bottom:"20px",left:"20px"}}},noticeunorderedType:{type:"string",default:"icon"}},et=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{TextControl:r,PanelBody:f,SelectControl:d,ToggleControl:u,RangeControl:b}=wp.components,{edTitleIcon:m,noticeBorder:g,noticeBorderWidth:h,noticeBorderRadius:v,noticeTitle:x,noticeTitleIcon:y,titleTag1:O,layoutStyle:j,boxShadow:k,alignment:C,titleTypography:w,listTypography:E,noticeContentType:_,noticeListType:T,noticeListIcon:B,noticeTextColor:N,noticeTextTwoColor:R,noticeIconColor:S,noticeIconTwoColor:I,noticeBgType:L,noticeBgColor:P,noticeBgGradient:A,noticeBgTwoType:z,noticeBgTwoGradient:F,noticeBgTwoColor:M,noticeListColor:H,listBgType:V,listBgColor:W,listBgGradient:D,noticeMargin:q,titlePadding:U,contentPadding:$,noticePadding:G,noticeunorderedType:Z,noticeIconSize:X,noticeListIconSize:K,titleAlignment:Q}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(f,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(d,{label:Object(n.__)("Choose Layout","affiliatex"),value:j,options:[{value:"layout-type-1",label:"Layout One"},{value:"layout-type-2",label:"Layout Two"},{value:"layout-type-3",label:"Layout Three"}],onChange:e=>t({layoutStyle:e})}))),Object(i.createElement)(f,{title:"General Settings",className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:g,values:g,id:"notice-box-border",option:{id:"notice-box-border",label:Object(n.__)("Box Border","affiliatex"),type:"ab-border",value:Je.noticeBorder.default},hasRevertButton:!0,onChange:e=>t({noticeBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"notice-border-width",option:{id:"notice-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:Je.noticeBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticeBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:v,values:v,id:"notice-border-radius",option:{id:"notice-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:Je.noticeBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:100,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticeBorderRadius:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"box-shadow",option:{id:"box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:Je.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})),("layout-type-2"===j||"layout-type-3"===j)&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:G,values:G,id:"title-padding",option:{id:"title-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:Je.noticePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticePadding:e})}))),Object(i.createElement)(f,{title:"Notice Settings",className:"affx-panel-label",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Heading Tag","affiliatex"),value:O,className:"affiliate-blocks-option",options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"}],onChange:e=>t({titleTag1:e})}),Object(i.createElement)(r,{label:Object(n.__)("Heading Title","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:x,onChange:e=>t({noticeTitle:e})}),"layout-type-3"!=j&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Q,values:Q,id:"title-alignment",option:{id:"title-alignment",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Je.titleAlignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({titleAlignment:e})})),Object(i.createElement)(u,{label:Object(n.__)("Show Title Icon","affiliatex"),checked:!!m,onChange:()=>t({edTitleIcon:!m})}),m&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+y.value},Object(i.createElement)("label",null,Object(n.__)("Select Title Icon","affiliatex")),Object(i.createElement)(s.a,{value:y.name,enableSearch:!0,icons:[{name:"check",value:"fa fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({noticeTitleIcon:e})}})),m&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-size"},Object(i.createElement)(b,{value:X,min:0,max:100,step:1,onChange:e=>t({noticeIconSize:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-wrapper"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:_,values:_,id:"notice-content-type",option:{id:"notice-content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",value:Je.noticeContentType.default,choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeContentType:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"text-alignment",option:{id:"text-alignment",label:Object(n.__)("Text Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Je.alignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({alignment:e})})),"list"===_&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"list-type",option:{id:"list-type",label:Object(n.__)("List Type","affiliatex"),type:"ab-radio",value:Je.noticeListType.default,choices:{unordered:Object(n.__)("Unordered","affiliatex"),ordered:Object(n.__)("Ordered","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeListType:e})})),"list"===_&&"unordered"===T&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Z,values:Z,id:"unordered-type",option:{id:"unordered-type",label:Object(n.__)("Unordered Type","affiliatex"),type:"ab-radio",value:Je.noticeunorderedType.default,choices:{icon:Object(n.__)("Show Icon","affiliatex"),bullet:Object(n.__)("Show Bullet","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeunorderedType:e})})),"list"===_&&"unordered"===T&&"icon"===Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+B.value},Object(i.createElement)("label",null,Object(n.__)("Select List Icon","affiliatex")),Object(i.createElement)(s.a,{label:"Top List Icon",value:B.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({noticeListIcon:e})}})),"list"===_&&"unordered"===T&&"icon"===Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-size"},Object(i.createElement)(b,{value:K,min:0,max:100,step:1,onChange:e=>t({noticeListIconSize:e})})))),Object(i.createElement)(f,{title:"Colors",className:"affx-panel-label",initialOpen:!1},"layout-type-1"===j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:N}},option:{id:"button-text-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeTextColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeTextColor:e.textColor.color})})),("layout-type-2"===j||"layout-type-3"===j)&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:R}},option:{id:"notice-title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeTextTwoColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeTextTwoColor:e.textColor.color})})),"layout-type-1"===j&&Object(i.createElement)("div",{className:"affiliate-block-wrapper"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,values:L,id:"notice-bg-type",option:{id:"notice-bg-type",label:Object(n.__)("Title Background Type","affiliatex"),type:"ab-radio",value:Je.noticeBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeBgType:e})})),"solid"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:P}},option:{id:"notice-titleBg-color",label:Object(n.__)("Title Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Je.noticeBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeBgColor:e.bgColor.color})})),"gradient"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:A,onChange:e=>t({noticeBgGradient:e})}))),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:H}},option:{id:"notice-list-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeListColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeListColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:V,values:V,id:"list-bg-type",option:{id:"list-bg-type",label:Object(n.__)("Content Background Type","affiliatex"),type:"ab-radio",value:Je.listBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({listBgType:e})})),"solid"===V&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:W}},option:{id:"notice-list-bg-color",label:Object(n.__)("Content Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Je.listBgColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("List Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({listBgColor:e.bgColor.color})})),"gradient"===V&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:D,onChange:e=>t({listBgGradient:e})})),("layout-type-1"===j||"layout-type-3"===j)&&"list"===_&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:S}},option:{id:"notice-icon-color",label:Object(n.__)("List Icon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeIconColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeIconColor:e.textColor.color})})),"layout-type-1"!==j&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:I}},option:{id:"notice-icon2-color",label:Object(n.__)("Icon Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Je.noticeIconTwoColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeIconTwoColor:e.textColor.color})})),("layout-type-2"===j||"layout-type-3"===j)&&Object(i.createElement)("div",{className:"affiliate-blocks-wrapper"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:z,values:z,option:{id:"notice-bg-type",label:Object(n.__)("Background Color Type","affiliatex"),type:"ab-radio",value:Je.noticeBgTwoType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({noticeBgTwoType:e})})),"solid"===z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:M}},option:{id:"notice-bg2-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Je.noticeBgTwoColor.default}},pickers:[{id:"bgColor",title:Object(n.__)("Bg Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({noticeBgTwoColor:e.bgColor.color})})),"gradient"===z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:F,onChange:e=>t({noticeBgTwoGradient:e})})))),Object(i.createElement)(f,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:w,values:w,option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:Je.titleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({titleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,values:E,option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:Je.listTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({listTypography:e})}}))),"layout-type-1"===j&&Object(i.createElement)(f,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:q,values:q,id:"notice-margin",option:{id:"notice-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:Je.noticeMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({noticeMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:U,values:U,id:"title-padding",option:{id:"title-padding",label:Object(n.__)("Title Padding","affiliatex"),type:"ab-spacing",value:Je.titlePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({titlePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:$,values:$,id:"content-padding",option:{id:"content-padding",label:Object(n.__)("Content Padding","affiliatex"),type:"ab-spacing",value:Je.contentPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentPadding:e})}))))};const{RichText:tt}=wp.blockEditor;var at,ot,it=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-notice-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-notice-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{noticeBorder:o,noticeBorderWidth:i,noticeBorderRadius:n,boxShadow:l,alignment:r,titleTypography:c,listTypography:s,noticeTextColor:p,noticeTextTwoColor:f,noticeIconColor:b,noticeIconTwoColor:m,noticeBgType:g,noticeBgColor:h,noticeBgGradient:v,noticeBgTwoType:x,noticeBgTwoGradient:y,noticeBgTwoColor:O,noticeListColor:j,listBgType:k,listBgColor:C,listBgGradient:w,noticeContentType:E,noticeListType:_,noticeMargin:T,titlePadding:B,contentPadding:N,noticePadding:R,noticeunorderedType:S,noticeIconSize:I,noticeListIconSize:L,titleAlignment:P}=e;var A,z,F={};(F={" .affx-notice-inner-wrapper":{"border-style":o.style,"border-width":i.desktop.top+" "+i.desktop.right+" "+i.desktop.bottom+" "+i.desktop.left,"border-color":o.color.color,"border-radius":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"box-shadow":Object(u.a)(l),"margin-top":T.desktop.top,"margin-left":T.desktop.left,"margin-right":T.desktop.right,"margin-bottom":T.desktop.bottom,"text-align":r}," .affiliatex-notice-title":{color:p,"font-family":c.family,"font-weight":Object(u.c)(c.variation),"font-style":Object(u.b)(c.variation),"font-size":c.size.desktop,"line-height":c["line-height"].desktop,"text-align":P,"text-transform":c["text-transform"],"text-decoration":c["text-decoration"],"letter-spacing":c["letter-spacing"].desktop,"padding-top":B.desktop.top,"padding-left":B.desktop.left,"padding-right":B.desktop.right,"padding-bottom":B.desktop.bottom}," .affiliatex-notice-icon":{color:m,"font-size":I+"px"}," .affiliatex-notice-content":{"padding-top":N.desktop.top,"padding-left":N.desktop.left,"padding-right":N.desktop.right,"padding-bottom":N.desktop.bottom}," .affiliatex-notice-content p":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"].desktop,"text-decoration":s["text-decoration"].desktop,"letter-spacing":s["letter-spacing"].desktop,color:j,"text-align":r}," .affiliatex-notice-content li":{"font-family":s.family,"font-weight":Object(u.c)(s.variation),"font-style":Object(u.b)(s.variation),"font-size":s.size.desktop,"line-height":s["line-height"].desktop,"text-transform":s["text-transform"].desktop,"text-decoration":s["text-decoration"].desktop,"letter-spacing":s["letter-spacing"].desktop,color:j,"justify-content":r}," .affiliatex-notice-content .affiliatex-list li::marker":{color:b}," .affiliatex-notice-content .affiliatex-list li:before":{color:b,"font-size":L+"px"}," .affx-notice-inner-wrapper.layout-type-2":{"margin-top":T.desktop.top,"margin-left":T.desktop.left,"margin-right":T.desktop.right,"margin-bottom":T.desktop.bottom,"padding-top":R.desktop.top,"padding-left":R.desktop.left,"padding-right":R.desktop.right,"padding-bottom":R.desktop.bottom}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title":{color:f,"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-title:before":{"font-size":I+"px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title:before":{color:m,"font-size":I+"px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affx-notice-inner-wrapper.layout-type-3":{"margin-top":T.desktop.top,"margin-left":T.desktop.left,"margin-right":T.desktop.right,"margin-bottom":T.desktop.bottom,"padding-top":R.desktop.top,"padding-left":R.desktop.left,"padding-right":R.desktop.right,"padding-bottom":R.desktop.bottom}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-title":{color:f,"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affiliatex-notice-content .affiliatex-list":{}," .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-title":{}," .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-content":{}})[" .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-title"].background="solid"===g?h:v.gradient,F[" .affx-notice-inner-wrapper.layout-type-1 .affiliatex-notice-content"].background="solid"===k?C:w.gradient,F[" .affx-notice-inner-wrapper.layout-type-2"].background="solid"===x?O:y.gradient,F[" .affx-notice-inner-wrapper.layout-type-3"].background="solid"===x?O:y.gradient,F[" .affiliatex-notice-content .affiliatex-list"]["list-style"]="list"==E&&"unordered"==_&&"icon"==S?"none":"",z={" .affiliatex-notice-title":{"font-size":c.size.tablet,"line-height":c["line-height"],"letter-spacing":c["letter-spacing"],"padding-top":B.tablet.top,"padding-left":B.tablet.left,"padding-right":B.tablet.right,"padding-bottom":B.tablet.bottom}," .affiliatex-notice-content":{"padding-top":N.tablet.top,"padding-left":N.tablet.left,"padding-right":N.tablet.right,"padding-bottom":N.tablet.bottom}," .affiliatex-notice-content p":{"font-size":s.size.tablet,"line-height":s["line-height"],"letter-spacing":s["letter-spacing"]}," .affiliatex-notice-content li":{"font-size":s.size.tablet,"line-height":s["line-height"],"letter-spacing":s["letter-spacing"]}," .affx-notice-inner-wrapper":{"border-width":i.tablet.top+" "+i.tablet.right+" "+i.tablet.bottom+" "+i.tablet.left,"border-radius":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left,"margin-top":T.tablet.top,"margin-left":T.tablet.left,"margin-right":T.tablet.right,"margin-bottom":T.tablet.bottom}," .affx-notice-inner-wrapper.layout-type-3":{"margin-top":T.tablet.top,"margin-left":T.tablet.left,"margin-right":T.tablet.right,"margin-bottom":T.tablet.bottom,"padding-top":R.tablet.top,"padding-left":R.tablet.left,"padding-right":R.tablet.right,"padding-bottom":R.tablet.bottom}," .affx-notice-inner-wrapper.layout-type-2":{"margin-top":T.tablet.top,"margin-left":T.tablet.left,"margin-right":T.tablet.right,"margin-bottom":T.tablet.bottom,"padding-top":R.tablet.top,"padding-left":R.tablet.left,"padding-right":R.tablet.right,"padding-bottom":R.tablet.bottom}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}},A={" .affiliatex-notice-title":{"font-size":c.size.mobile,"line-height":c["line-height"],"letter-spacing":c["letter-spacing"],"padding-top":B.mobile.top,"padding-left":B.mobile.left,"padding-right":B.mobile.right,"padding-bottom":B.mobile.bottom}," .affiliatex-notice-content":{"padding-top":N.mobile.top,"padding-left":N.mobile.left,"padding-right":N.mobile.right,"padding-bottom":N.mobile.bottom}," .affiliatex-notice-content p":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affiliatex-notice-content li":{"font-size":s.size.mobile,"line-height":s["line-height"].mobile,"letter-spacing":s["letter-spacing"].mobile}," .affx-notice-inner-wrapper":{"border-width":i.mobile.top+" "+i.mobile.right+" "+i.mobile.bottom+" "+i.mobile.left,"border-radius":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left,"margin-top":T.mobile.top,"margin-left":T.mobile.left,"margin-right":T.mobile.right,"margin-bottom":T.mobile.bottom}," .affx-notice-inner-wrapper.layout-type-3":{"margin-top":T.mobile.top,"margin-left":T.mobile.left,"margin-right":T.mobile.right,"margin-bottom":T.mobile.bottom,"padding-top":R.mobile.top,"padding-left":R.mobile.left,"padding-right":R.mobile.right,"padding-bottom":R.mobile.bottom}," .affx-notice-inner-wrapper.layout-type-2":{"margin-top":T.mobile.top,"margin-left":T.mobile.left,"margin-right":T.mobile.right,"margin-bottom":T.mobile.bottom,"padding-top":R.mobile.top,"padding-left":R.mobile.left,"padding-right":R.mobile.right,"padding-bottom":R.mobile.bottom}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-2 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-title":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"10px"}," .affx-notice-inner-wrapper.layout-type-3 .affiliatex-notice-content":{"padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px"}};var M="";return M=Object(d.a)(F,`#${t}-${a}`),(M+=Object(d.a)(z,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(A,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-notice-style",l))},[e]);const{Fragment:r}=wp.element,{titleTypography:c,listTypography:s,titleTag1:p,layoutStyle:f,noticeTitle:b,noticeTitleIcon:m,noticeListItems:g,noticeListType:h,noticeContent:v,noticeContentType:x,noticeListIcon:y,noticeunorderedType:O,edTitleIcon:j}=e,C=j?"affiliatex-icon-"+m.name:"",w=p;let E,_;if("Default"!==c.family){const e={google:{families:[c.family+(c.variation?":"+c.variation:"")]}};E=Object(i.createElement)(k,{config:e})}if("Default"!==s.family){const e={google:{families:[s.family+(s.variation?":"+s.variation:"")]}};_=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(r,null,Object(i.createElement)(et,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-notice-style-"+l,className:"affx-notice-wrapper"+(a?" "+a:"")},Object(i.createElement)("div",{className:"affx-notice-inner-wrapper "+f},"layout-type-3"===f&&Object(i.createElement)("span",{className:"affiliatex-notice-icon affiliatex-icon afx-icon-before "+C}),Object(i.createElement)("div",{className:"affx-notice-inner"},Object(i.createElement)(w,{className:"affiliatex-notice-title affiliatex-icon afx-icon-before "+C},Object(i.createElement)(tt,{value:b,className:"affiliatex-title",onChange:e=>t({noticeTitle:e})})),Object(i.createElement)("div",{className:"affiliatex-notice-content"},Object(i.createElement)("div",{className:"list-wrapper"},"list"===x&&"bullet"===O&&Object(i.createElement)(tt,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered bullet",placeholder:Object(n.__)("Enter new item","affiliatex"),value:g,onChange:e=>t({noticeListItems:e}),keepPlaceholderOnFocus:!0}),"list"===x&&"icon"===O&&Object(i.createElement)(tt,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affiliatex-list affiliatex-list-type-unordered affiliatex-icon afx-icon-before affiliatex-icon-"+y.name,placeholder:Object(n.__)("Enter new item","affiliatex"),value:g,onChange:e=>t({noticeListItems:e}),keepPlaceholderOnFocus:!0}),"paragraph"===x&&Object(i.createElement)(tt,{tagName:"p",value:v,placeholder:Object(n.__)("Notice Content","affiliatex"),className:"affiliatex-content",onChange:e=>t({noticeContent:e})})))))),E,_)},nt=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,titleTag1:l,layoutStyle:r,noticeTitle:c,noticeTitleIcon:s,noticeListItems:p,noticeListType:f,noticeContent:d,noticeContentType:u,noticeListIcon:b,noticeunorderedType:m,edTitleIcon:g}=e,h=g?"affiliatex-icon-"+s.name:"",v=l;return Object(i.createElement)("div",{id:"affiliatex-notice-style-"+o,className:"affx-notice-wrapper"+(t?" "+t:"")},Object(i.createElement)("div",{className:"affx-notice-inner-wrapper "+r},"layout-type-3"===r&&Object(i.createElement)("span",{className:"affiliatex-notice-icon affiliatex-icon afx-icon-before "+h}),Object(i.createElement)("div",{className:"affx-notice-inner"},Object(i.createElement)(v,{className:"affiliatex-notice-title affiliatex-icon afx-icon-before "+h},Object(i.createElement)(a.Content,{value:c,className:"affiliatex-title"})),Object(i.createElement)("div",{className:"affiliatex-notice-content"},Object(i.createElement)("div",{className:"list-wrapper"},"list"===u&&"bullet"===m&&Object(i.createElement)(a.Content,{tagName:"unordered"==f?"ul":"ol",multiline:"li",value:p,className:"affiliatex-list bullet"}),"list"===u&&"icon"===m&&Object(i.createElement)(a.Content,{tagName:"unordered"==f?"ul":"ol",multiline:"li",value:p,className:"affiliatex-list icon affiliatex-icon affiliatex-icon-"+b.name}),"paragraph"==u&&Object(i.createElement)(a.Content,{tagName:"p",value:d,placeholder:Object(n.__)("Notice Content","affiliatex"),className:"affiliatex-content"}))))))};Object(S.registerBlockType)("affiliatex/notice",{title:Object(n.__)("AffiliateX Notice","affiliatex"),description:Object(n.__)("Add a customizable notice block","affiliatex"),icon:R.e,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("Notice","affiliatex"),Object(n.__)("Message","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:Je,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(it,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(nt,{attributes:e,className:t})});const lt=AffiliateX.customizationData;var rt={block_id:{type:"string"},verdictTitle:{type:"string",default:Object(n.__)("Verdict Title.","affiliatex")},verdictContent:{type:"string",default:Object(n.__)("Start creating Verdict in seconds, and convert more of your visitors into leads.","affiliatex")},verdictLayout:{type:"string",default:"layoutOne"},verdictTitleTag:{type:"string",default:"h3"},verdictTitleTypography:{type:"object",default:{family:(null==lt||null===(at=lt.typography)||void 0===at?void 0:at.family)||"Default",variation:"n5",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},verdictContentTypography:{type:"object",default:{family:(null==lt||null===(ot=lt.typography)||void 0===ot?void 0:ot.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},contentAlignment:{type:"string",default:"center"},verdictBorder:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},verdictBorderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},verdictBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},verdictBoxPadding:{type:"object",default:{desktop:{top:"24px",left:"24px",right:"24px",bottom:"24px"},mobile:{top:"24px",left:"24px",right:"24px",bottom:"24px"},tablet:{top:"24px",left:"24px",right:"24px",bottom:"24px"}}},verdictMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},verdictBoxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},edProsCons:{type:"boolean",default:!0},edVerdictRatings:{type:"boolean",default:!0},edUserRatings:{type:"boolean",default:!0},userRatingLabel:{type:"string",default:"User Ratings:"},userRatingContent:{type:"string",default:"No ratings received yet."},verdictRatings:{type:"number",default:""},verdictRatingColor:{type:"string",default:"#FFD700"},verdictRatingInactiveColor:{type:"string",default:"#808080"},verdictRatingStarSize:{type:"number",default:25},edverdictTotalScore:{type:"boolean",default:!0},verdictTotalScore:{type:"decimalPoint",default:8.5},ratingContent:{type:"string",default:"Our Score"},scoreTextColor:{type:"string",default:"#FFFFFF"},scoreBgTopColor:{type:"string",default:"#2670FF"},scoreBgBotColor:{type:"string",default:"#262B33"},edRatingsArrow:{type:"boolean",default:!0},verdictArrowColor:{type:"string",default:"#2670FF"},verdictTitleColor:{type:"string",default:"#060C0E"},verdictContentColor:{type:"string",default:(null==lt?void 0:lt.fontColor)||"#292929"},ratingAlignment:{type:"string",default:"left"},verdictBgType:{type:"string",default:"solid"},verdictBgColorSolid:{type:"string",default:"#FFFFFF"},verdictBgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}}},ct=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{PanelBody:o,ToggleControl:l,TextControl:r}=wp.components,{verdictLayout:s,edProsCons:f,verdictTitleTypography:d,verdictContentTypography:u,contentAlignment:b,verdictBorder:m,verdictBorderWidth:g,verdictBorderRadius:h,verdictBoxPadding:v,verdictMargin:x,verdictBoxShadow:y,verdictTitleColor:O,verdictContentColor:j,verdictBgType:k,verdictBgColorSolid:C,verdictBgColorGradient:w,edverdictTotalScore:E,scoreTextColor:_,scoreBgTopColor:T,scoreBgBotColor:B,verdictTotalScore:N,ratingContent:R,edRatingsArrow:S,verdictArrowColor:I,ratingAlignment:L,verdictTitleTag:P}=e;return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(o,{title:Object(n.__)("Layout Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-verdict-layout"},Object(i.createElement)(qe.SelectControl,{value:s,options:[{value:"layoutOne",label:"Layout One"},{value:"layoutTwo",label:"Layout Two"}],onChange:e=>t({verdictLayout:e})}))),Object(i.createElement)(o,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-verdict-general"},Object(i.createElement)(qe.SelectControl,{label:Object(n.__)("Verdict Heading Tag","affiliatex"),value:P,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({verdictTitleTag:e})}),"layoutTwo"===s&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Display arrow","affiliatex"),checked:!!S,onChange:()=>t({edRatingsArrow:!S})})),"layoutOne"===s&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Show Pros and Cons","affiliatex"),checked:!!f,onChange:()=>t({edProsCons:!f})})),"layoutTwo"===s&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:b,values:b,id:"content-alignment",option:{id:"content-alignment",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:rt.contentAlignment.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({contentAlignment:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:y,values:y,id:"verdict-box-shadow",option:{id:"verdict-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:rt.verdictBoxShadow.default},hasRevertButton:!0,onChange:e=>t({verdictBoxShadow:e})})))),Object(i.createElement)(o,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:m,values:m,id:"verdict-border",option:{id:"verdict-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:rt.verdictBorder.default},hasRevertButton:!0,onChange:e=>t({verdictBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:g,values:g,id:"verdict-border-width",option:{id:"verdict-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:rt.verdictBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"verdict-border-radius",option:{id:"verdict-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:rt.verdictBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictBorderRadius:e})}))),"layoutOne"===s&&Object(i.createElement)(o,{title:Object(n.__)("Rating Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(l,{label:Object(n.__)("Enable Score Rating","affiliatex"),checked:!!E,onChange:()=>t({edverdictTotalScore:!E})})),E&&Object(i.createElement)("div",{className:"affx-verdict-rating-number"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(qe.RangeControl,{label:Object(n.__)("Total Score","affiliatex"),value:N,min:0,max:10,step:.5,onChange:e=>t({verdictTotalScore:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(r,{label:Object(n.__)("Rating Score Content","affiliatex"),className:"affx-input-field",value:R,onChange:e=>t({ratingContent:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,values:L,id:"title-alignment",option:{id:"title-alignment",label:Object(n.__)("Rating Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:rt.ratingAlignment.default,choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({ratingAlignment:e})})))),Object(i.createElement)(o,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:O}},option:{id:"title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.verdictTitleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictTitleColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:j}},option:{id:"content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.verdictContentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictContentColor:e.textColor.color})})),"layoutOne"===s&&E&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:_},bgTopColor:{color:T},bgBotColor:{color:B}},option:{id:"score-box-color",label:Object(n.__)("Score Box Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.scoreTextColor.default},bgTopColor:{color:rt.scoreBgTopColor.default},bgBotColor:{color:rt.scoreBgBotColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color","affiliatex")},{id:"bgTopColor",title:Object(n.__)("Top Background Color","affiliatex")},{id:"bgBotColor",title:Object(n.__)("Bottom Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({scoreTextColor:e.textColor.color,scoreBgTopColor:e.bgTopColor.color,scoreBgBotColor:e.bgBotColor.color})})),"layoutTwo"===s&&S&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:I}},option:{id:"arrow-color",label:Object(n.__)("Arrow Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:rt.verdictArrowColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Arrow Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictArrowColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"pros-bg-type",option:{id:"pros-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:rt.verdictBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({verdictBgType:e})})),"solid"===k&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:C}},option:{id:"arrow-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:rt.verdictBgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({verdictBgColorSolid:e.bgColor.color})})),"gradient"===k&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:w,onChange:e=>t({verdictBgColorGradient:e})}))),Object(i.createElement)(o,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-verdict-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option verdict-title-typography"},Object(i.createElement)(c.a,{value:d,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:rt.verdictTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({verdictTitleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option verdict-content-typography"},Object(i.createElement)(c.a,{value:u,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:rt.verdictContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({verdictContentTypography:e})}})))),Object(i.createElement)(o,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-verdict-general"},Object(i.createElement)(c.a,{value:v,values:v,id:"verdict-box-padding",option:{id:"verdict-box-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:rt.verdictBoxPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictBoxPadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:x,values:x,id:"verdict-margin",option:{id:"verdict-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:rt.verdictMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({verdictMargin:e})}))))};const{RichText:st,InnerBlocks:pt}=wp.blockEditor,{TextControl:ft}=wp.components;var dt=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-verdict-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-verdict-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{verdictTitleTypography:o,verdictContentTypography:i,contentAlignment:n,verdictBorder:l,verdictBorderWidth:r,verdictBorderRadius:c,verdictBoxPadding:s,verdictMargin:p,verdictBoxShadow:f,verdictTitleColor:b,verdictContentColor:m,verdictArrowColor:g,scoreTextColor:h,scoreBgTopColor:v,scoreBgBotColor:x,verdictBgType:y,verdictBgColorSolid:O,verdictBgColorGradient:j,ratingAlignment:k}=e;var C,w,E={};(E={" .affblk-verdict-wrapper":{"border-style":l.style,"border-width":r.desktop.top+" "+r.desktop.right+" "+r.desktop.bottom+" "+r.desktop.left,"border-color":l.color.color,"border-radius":c.desktop.top+" "+c.desktop.right+" "+c.desktop.bottom+" "+c.desktop.left,"padding-top":s.desktop.top,"padding-left":s.desktop.left,"padding-right":s.desktop.right,"padding-bottom":s.desktop.bottom,"margin-top":p.desktop.top,"margin-left":p.desktop.left,"margin-right":p.desktop.right,"margin-bottom":p.desktop.bottom},".wp-block-affiliatex-verdict .verdict-layout-2":{"text-align":n},".wp-block-affiliatex-verdict .verdict-title":{color:b,"font-family":o.family,"text-decoration":o["text-decoration"],"font-weight":Object(u.c)(o.variation),"font-style":Object(u.b)(o.variation),"font-size":o.size.desktop,"line-height":o["line-height"].desktop,"text-transform":o["text-transform"],"letter-spacing":o["letter-spacing"].desktop},".wp-block-affiliatex-verdict .verdict-content":{color:m,"font-family":i.family,"text-decoration":i["text-decoration"],"font-weight":Object(u.c)(i.variation),"font-style":Object(u.b)(i.variation),"font-size":i.size.desktop,"line-height":i["line-height"].desktop,"text-transform":i["text-transform"],"letter-spacing":i["letter-spacing"].desktop}," .verdict-user-rating-wrapper .components-base-control__field > .components-text-control__input":{color:m}," .verdict-user-rating-wrapper":{color:m},".wp-block-affiliatex-verdict .verdict-layout-2.display-arrow .affx-btn-inner .affiliatex-button::after":{background:g},".wp-block-affiliatex-verdict .verdict-layout-1 .components-base-control__field > .components-text-control__input":{color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .num":{color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .main-text-holder":{"flex-direction":"left"==k?"row-reverse":"row"},".wp-block-affiliatex-verdict .verdict-layout-1 .affx-verdict-rating-number":{color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .num":{"background-color":v,color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .rich-content":{"background-color":x,color:h},".wp-block-affiliatex-verdict .verdict-layout-1 .rich-content::after":{"border-top":"5px solid "+x},".wp-block-affiliatex-verdict .verdict-layout-1 .block-editor-rich-text__editable.affx-rating-input-content.rich-text":{"background-color":x},".wp-block-affiliatex-verdict .verdict-layout-1 .block-editor-rich-text__editable.affx-rating-input-content.rich-text::after":{"border-top":"5px solid "+x}," .affblk-verdict-wrapper ":{}})[" .affblk-verdict-wrapper"].background="solid"===y?O:j.gradient,E[" .affblk-verdict-wrapper"]["box-shadow"]=Object(u.a)(f)?Object(u.a)(f):"",w={" .affblk-verdict-wrapper":{"border-width":r.tablet.top+" "+r.tablet.right+" "+r.tablet.bottom+" "+r.tablet.left,"border-radius":c.tablet.top+" "+c.tablet.right+" "+c.tablet.bottom+" "+c.tablet.left,"padding-top":s.tablet.top,"padding-left":s.tablet.left,"padding-right":s.tablet.right,"padding-bottom":s.tablet.bottom,"margin-top":p.tablet.top,"margin-left":p.tablet.left,"margin-right":p.tablet.right,"margin-bottom":p.tablet.bottom},".wp-block-affiliatex-verdict .verdict-title":{"font-size":o.size.tablet,"line-height":o["line-height"].tablet,"letter-spacing":o["letter-spacing"].tablet},".wp-block-affiliatex-verdict .verdict-content":{"font-size":i.size.tablet,"line-height":i["line-height"].tablet,"letter-spacing":i["letter-spacing"].tablet}},C={" .affblk-verdict-wrapper":{"border-width":r.mobile.top+" "+r.mobile.right+" "+r.mobile.bottom+" "+r.mobile.left,"border-radius":c.mobile.top+" "+c.mobile.right+" "+c.mobile.bottom+" "+c.mobile.left,"padding-top":s.mobile.top,"padding-left":s.mobile.left,"padding-right":s.mobile.right,"padding-bottom":s.mobile.bottom,"margin-top":p.mobile.top,"margin-left":p.mobile.left,"margin-right":p.mobile.right,"margin-bottom":p.mobile.bottom},".wp-block-affiliatex-verdict .verdict-title":{"font-size":o.size.mobile,"line-height":o["line-height"].mobile,"letter-spacing":o["letter-spacing"].mobile},".wp-block-affiliatex-verdict .verdict-content":{"font-size":i.size.mobile,"line-height":i["line-height"].mobile,"letter-spacing":i["letter-spacing"].mobile}};var _="";return _=Object(d.a)(E,`#${t}-${a}`),(_+=Object(d.a)(w,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(C,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-verdict-style",l))},[e]);const{verdictLayout:r,verdictTitle:c,verdictContent:s,edverdictTotalScore:p,verdictTotalScore:f,ratingContent:b,edRatingsArrow:m,edProsCons:g,verdictTitleTag:h,ratingAlignment:v,verdictTitleTypography:x,verdictContentTypography:y}=e,O=h,j="layoutOne"===r?" verdict-layout-1":"layoutTwo"===r?" verdict-layout-2":"",C=p?" number-rating":"",w=m?" display-arrow":"",{Fragment:E}=wp.element;let _,T;if("Default"!==x.family){const e={google:{families:[x.family+(x.variation?":"+x.variation:"")]}};_=Object(i.createElement)(k,{config:e})}if("Default"!==y.family){const e={google:{families:[y.family+(y.variation?":"+y.variation:"")]}};T=Object(i.createElement)(k,{config:e})}return Object(i.createElement)(E,null,Object(i.createElement)(ct,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-verdict-style-"+l,className:a},Object(i.createElement)("div",{className:"affblk-verdict-wrapper"},Object(i.createElement)("div",{className:j+w},Object(i.createElement)("div",{className:"main-text-holder"},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)(O,{className:"verdict-title"},Object(i.createElement)(st,{placeholder:Object(n.__)("Enter Verdict Title","affiliatex"),value:c,onChange:e=>t({verdictTitle:e})})),Object(i.createElement)(st,{tagName:"p",placeholder:Object(n.__)("Enter Verdict Content","affiliatex"),value:s,className:"verdict-content",onChange:e=>t({verdictContent:e})})),"layoutOne"===r&&Object(i.createElement)(E,null,1==p&&Object(i.createElement)("div",{className:`affx-verdict-rating-number${C} ${"right"==v?"align-right":"align-left"}`},Object(i.createElement)(ft,{className:"affx-rating-input-number num",value:f}),Object(i.createElement)(st,{value:b,className:"affx-rating-input-content",onChange:e=>t({ratingContent:e})})))),"layoutOne"===r&&Object(i.createElement)(E,null,g&&Object(i.createElement)(pt,{template:[["affiliatex/pros-and-cons",{prosListBgColor:"#fff",consListBgColor:"#fff",alignment:"left",margin:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}}]],templateLock:"all"})),"layoutTwo"===r&&Object(i.createElement)(pt,{template:[["affiliatex/buttons",{buttonAlignment:"center"}]],templateLock:"all"})))),_,T)},ut=({attributes:e,className:t,clientId:a})=>{const{RichText:o,InnerBlocks:n}=wp.blockEditor,{block_id:l,verdictLayout:r,verdictTitle:c,verdictContent:s,edverdictTotalScore:p,verdictTotalScore:f,ratingContent:d,edRatingsArrow:u,edProsCons:b,verdictTitleTag:m,ratingAlignment:g}=e,h=m,v="layoutOne"===r?" verdict-layout-1":"layoutTwo"===r?" verdict-layout-2":"",x=p?" number-rating":"",y=u?" display-arrow":"";return Object(i.createElement)("div",{id:"affiliatex-verdict-style-"+l,className:t},Object(i.createElement)("div",{className:"affblk-verdict-wrapper"},Object(i.createElement)("div",{className:v+y},Object(i.createElement)("div",{className:"main-text-holder"},Object(i.createElement)("div",{className:"content-wrapper"},Object(i.createElement)(h,{className:"verdict-title"},Object(i.createElement)(o.Content,{value:c})),Object(i.createElement)(o.Content,{tagName:"p",className:"verdict-content",value:s})),"layoutOne"===r&&1==p&&Object(i.createElement)("div",{className:`affx-verdict-rating-number${x} ${"right"==g?"align-right":"align-left"}`},Object(i.createElement)("span",{className:"num"},f),Object(i.createElement)("div",{className:"rich-content"},Object(i.createElement)(o.Content,{className:"rating-content",value:d})))),"layoutOne"===r&&b&&Object(i.createElement)(n.Content,null),"layoutTwo"===r&&Object(i.createElement)(n.Content,null))))};Object(S.registerBlockType)("affiliatex/verdict",{title:Object(n.__)("AffiliateX Verdict","affiliatex"),description:Object(n.__)("Add a customizable Verdict.","affiliatex"),icon:R.p,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("verdict","affiliatex")],attributes:rt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(dt,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(ut,{attributes:e,className:t})});var bt,mt,gt,ht,vt,xt,yt=a(35);const Ot=AffiliateX.customizationData;var jt=Object(yt.applyFilters)("affx_single_product_attributes",{block_id:{type:"string"},productLayout:{type:"string",default:"layoutOne"},productLayoutOptions:{type:"array",default:[{value:"layoutOne",label:"Layout One"},{value:"layoutTwo",label:"Layout Two"},{value:"layoutThree",label:"Layout Three"}]},productRibbonLayout:{type:"string",default:"one"},productTitle:{type:"string",default:"Title"},productTitleTag:{type:"string",default:"h2"},productTitleAlign:{type:"string",default:"left"},productPricingAlign:{type:"string",default:"left"},productStarRatingAlign:{type:"string",default:"left"},productRatingAlign:{type:"string",default:"right"},productTitleTypography:{type:"object",default:{family:(null==Ot||null===(bt=Ot.typography)||void 0===bt?void 0:bt.family)||"Default",variation:"n5",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.333",mobile:"1.333",tablet:"1.333"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productTitleColor:{type:"string",default:"#060c0e"},productImageWidth:{type:"string",default:"inherit"},productImageCustomWidth:{type:"string",default:"33"},productImageType:{type:"string",default:"default"},productImageExternal:{type:"string",default:""},productImageSiteStripe:{type:"string",default:""},productSubTitle:{type:"string",default:"Subtitle"},productSubTitleTag:{type:"string",default:"h6"},productSubtitleAlign:{type:"string",default:"left"},productSubtitleTypography:{type:"object",default:{family:(null==Ot||null===(mt=Ot.typography)||void 0===mt?void 0:mt.family)||"Default",variation:"n5",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productSubtitleColor:{type:"string",default:"#A3ACBF"},productIconList:{type:"string",default:{name:"check-circle-outline",value:"far fa-check-circle"}},productContent:{type:"string",default:"You can have short product description here. It can be added as and enable/disable toggle option from which user can have control on it."},productContentType:{type:"string",default:"paragraph"},ContentListType:{type:"string",default:"unordered"},PricingType:{type:"string",default:"picture"},productContentList:{type:"array",filterElements:!0,default:[]},productContentAlign:{type:"string",default:"left"},productContentTypography:{type:"object",default:{family:(null==Ot||null===(gt=Ot.typography)||void 0===gt?void 0:gt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productContentColor:{type:"string",default:(null==Ot?void 0:Ot.fontColor)||"#292929"},productRatingColor:{type:"string",default:"#FFB800"},pricingColor:{type:"string",default:"#262B33"},pricingHoverColor:{type:"string",default:"#A3ACBF"},ratingInactiveColor:{type:"string",default:"#808080"},ImgID:{type:"number",default:""},ImgUrl:{type:"string",default:AffiliateX.pluginUrl+"app/src/images/fallback.jpg"},ImgAlt:{type:"string",default:""},contentMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},contentSpacing:{type:"object",default:{desktop:{top:"30px",left:"25px",right:"25px",bottom:"30px"},mobile:{top:"30px",left:"25px",right:"25px",bottom:"30px"},tablet:{top:"30px",left:"25px",right:"25px",bottom:"30px"}}},productBorderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},productBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},productShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},productImageAlign:{type:"string",default:"left"},productPrice:{type:"string",default:"$59"},productSalePrice:{type:"string",default:"$49"},pricingTypography:{type:"object",default:{family:(null==Ot||null===(ht=Ot.typography)||void 0===ht?void 0:ht.family)||"Default",variation:"n4",size:{desktop:"22px",mobile:"22px",tablet:"22px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},productBorder:{type:"object",default:{style:"solid",color:{color:"#E6ECF7"}}},productDivider:{type:"object",default:{style:"none",width:"1",color:{color:"#E6ECF7"}}},ratings:{type:"number",default:5},numberRatings:{type:"number",default:"8.5"},ratingStarSize:{type:"number",default:25},ratingContent:{type:"string",default:"Our Score"},edRatings:{type:"boolean",default:!1},edTitle:{type:"boolean",default:!0},edSubtitle:{type:"boolean",default:!1},edPricing:{type:"boolean",default:!1},edContent:{type:"boolean",default:!0},productBgColorType:{type:"string",default:"solid"},productBgGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},productBGColor:{type:"string",default:"#fff"},ribbonText:{type:"string",default:"Sale"},ribbonBgColorType:{type:"string",default:"solid"},ribbonBGColor:{type:"string",default:"#ff0000"},ribbonBgGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},ribbonBgHoverType:{type:"string",default:"solid"},ribbonBgHoverGradient:{type:"object",default:{gradient:"linear-gradient(270deg, #8615CB 0%, #084ACA 100%)"}},edRibbon:{type:"boolean",default:!1},ribbonColor:{type:"string",default:"#fff"},ribbonContentTypography:{type:"object",default:{family:(null==Ot||null===(vt=Ot.typography)||void 0===vt?void 0:vt.family)||"Default",variation:"n4",size:{desktop:"17px",mobile:"17px",tablet:"17px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},ribbonAlign:{type:"string",default:"left"},edButton:{type:"boolean",default:!0},edProductImage:{type:"boolean",default:!0},iconColor:{type:"string",default:"#24B644"},productRateNumberColor:{type:"string",default:"#ffffff"},productRateContentColor:{type:"string",default:"#ffffff"},productRateNumBgColor:{type:"string",default:"#2670FF"},productRateContentBgColor:{type:"string",default:"#262B33"},numRatingTypography:{type:"object",default:{family:(null==Ot||null===(xt=Ot.typography)||void 0===xt?void 0:xt.family)||"Default",variation:"n4",size:{desktop:"36px",mobile:"36px",tablet:"36px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},imagePadding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}}),kt=({attributes:e,setAttributes:t})=>{const{InspectorControls:a}=wp.blockEditor,{TextControl:o,PanelBody:l,SelectControl:r,TextareaControl:f,ToggleControl:d}=wp.components,{productLayout:u,productLayoutOptions:b,productTitle:m,productTitleTag:g,productTitleAlign:h,productTitleTypography:v,productTitleColor:x,productSubTitle:y,productSubTitleTag:O,productSubtitleAlign:j,productSubtitleTypography:k,productSubtitleColor:C,productIconList:w,productContentType:E,productContentTypography:_,productContentAlign:T,productContentColor:B,productBorderWidth:N,productBorderRadius:R,productShadow:S,ContentListType:I,PricingType:L,productImageAlign:P,productImageWidth:A,productImageExternal:z,productImageSiteStripe:F,productImageType:M,productImageCustomWidth:H,productSalePrice:V,productPrice:W,pricingTypography:D,productBorder:q,ratingContent:U,edRatings:$,edTitle:G,edSubtitle:Z,edContent:X,edPricing:K,productRatingColor:Q,ratingInactiveColor:Y,productBgColorType:J,productBgGradient:ee,productBGColor:te,contentSpacing:ae,pricingHoverColor:oe,pricingColor:ie,contentMargin:ne,productDivider:le,ratingStarSize:re,productRibbonLayout:ce,edRibbon:se,ribbonText:pe,ribbonBGColor:fe,ribbonColor:de,ribbonContentTypography:ue,edProductImage:be,edButton:me,iconColor:ge,numberRatings:he,productPricingAlign:ve,productRatingAlign:xe,productRateNumberColor:ye,productRateContentColor:Oe,productRateNumBgColor:je,productRateContentBgColor:ke,productStarRatingAlign:Ce,numRatingTypography:we,imagePadding:Ee}=e,_e="layoutOne"===u?" product-layout-1":"layoutTwo"===u?" product-layout-2":"layoutThree"===u?" product-layout-3":"";return Object(i.createElement)(a,{key:"inspector"},Object(i.createElement)(l,{title:Object(n.__)("Layout Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-layout-opt"},Object(i.createElement)(r,{value:u,options:b,onChange:e=>t({productLayout:e})}))),Object(i.createElement)(l,{title:Object(n.__)("Ribbon Settings","affiliatex"),initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Ribbon","affiliatex"),className:"affiliate-blocks-option",checked:!!se,onChange:()=>t({edRibbon:!se})}),1==se&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-ribbon-settings"},"layoutTwo"!==u&&Object(i.createElement)(r,{value:ce,options:[{value:"one",label:"Ribbon One"},{value:"two",label:"Ribbon Two"}],onChange:e=>t({productRibbonLayout:e})}),Object(i.createElement)(o,{label:Object(n.__)("Ribbon Text","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Ribbon Text","affiliatex"),value:pe,onChange:e=>t({ribbonText:e})})),Object(yt.applyFilters)("affx_single_product_ribbon_settings",null,e,t)),Object(i.createElement)(l,{title:"General Settings",className:"affx-general-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Button","affiliatex"),className:"affiliate-blocks-option",checked:!!me,onChange:()=>t({edButton:!me})}),Object(i.createElement)(d,{label:Object(n.__)("Enable Product Image","affiliatex"),className:"affiliate-blocks-option",checked:!!be,onChange:()=>t({edProductImage:!be})}),be&&" product-layout-2"!==_e&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.a,{value:P,values:P,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Image Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productImageAlign.default,choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({productImageAlign:e})}),Object(i.createElement)("br",null),Object(i.createElement)(c.a,{value:A,values:A,id:"product-image-width",option:{id:"product-content-width",label:Object(n.__)("Image Width","affiliatex"),attr:{"data-type":"width"},type:"ab-radio",value:jt.productImageWidth.default,choices:{inherit:"Inherit",custom:"Custom"}},hasRevertButton:!0,onChange:e=>t({productImageWidth:e})}),Object(i.createElement)("br",null),"custom"===A&&Object(i.createElement)(o,{label:Object(n.__)("Image width ( % )","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Image Width","affiliatex"),value:H,onChange:e=>t({productImageCustomWidth:e})})),be&&Object(i.createElement)(c.a,{value:M,values:M,id:"product-image-type",option:{id:"product-image-type",label:Object(n.__)("Image Source","affiliatex"),attr:{"data-type":"width"},type:"ab-radio",value:jt.productImageType.default,choices:{default:"Upload",external:"External",sitestripe:"SiteStripe"}},hasRevertButton:!0,onChange:e=>t({productImageType:e})}),"external"===M&&Object(i.createElement)(f,{label:Object(n.__)(Object(n.__)("External Link","affiliatex"),"affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Image Link","affiliatex"),value:z,onChange:e=>t({productImageExternal:e})}),"sitestripe"===M&&Object(i.createElement)(f,{label:Object(n.__)(Object(n.__)("SiteStripe","affiliatex"),"affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter SiteStripe Markup","affiliatex"),value:F,onChange:e=>t({productImageSiteStripe:e})}),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:q,values:q,id:"product-border",option:{id:"product-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:jt.productBorder.default},hasRevertButton:!0,onChange:e=>t({productBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"product-padding",option:{id:"product-padding",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:jt.productBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({productBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"product-padding",option:{id:"product-padding",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:jt.productBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({productBorderRadius:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"product-border-shadow",option:{id:"product-border-shadow",label:Object(n.__)("Border Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:jt.productShadow.default},hasRevertButton:!0,onChange:e=>t({productShadow:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:le,values:le,id:"product-border",option:{id:"product-border",label:Object(n.__)("Divider","affiliatex"),type:"ab-border",value:jt.productDivider.default},hasRevertButton:!0,onChange:e=>t({productDivider:e})}))),Object(i.createElement)(l,{title:"Title Settings",className:"affx-title-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Title","affiliatex"),className:"affiliate-blocks-option",checked:!!G,onChange:()=>t({edTitle:!G})}),1==G&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-title"},Object(i.createElement)(o,{label:Object(n.__)("Product Title","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Product Title","affiliatex"),value:m,onChange:e=>t({productTitle:e})}),Object(i.createElement)(r,{label:Object(n.__)("Product Heading Tag","affiliatex"),value:g,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({productTitleTag:e})}),Object(i.createElement)(c.a,{value:h,values:h,id:"product-title-align",option:{id:"product-title-align",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productTitleAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productTitleAlign:e})}))),Object(i.createElement)(l,{title:"Subtitle Settings",className:"affx-subtitle-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Subtitle","affiliatex"),className:"affiliate-blocks-option",checked:!!Z,onChange:()=>t({edSubtitle:!Z})}),1==Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-subtitle"},Object(i.createElement)(o,{label:Object(n.__)("Product Subtitle","affiliatex"),className:"affx-input-field",placeholder:Object(n.__)("Enter Product Subtitle","affiliatex"),value:y,onChange:e=>t({productSubTitle:e})}),Object(i.createElement)(r,{label:Object(n.__)("Product Subtitle Tag","affiliatex"),value:O,options:[{value:"h2",label:"Heading 2 (h2)"},{value:"h3",label:"Heading 3 (h3)"},{value:"h4",label:"Heading 4 (h4)"},{value:"h5",label:"Heading 5 (h5)"},{value:"h6",label:"Heading 6 (h6)"},{value:"p",label:"Paragraph (p)"}],onChange:e=>t({productSubTitleTag:e})}),Object(i.createElement)(c.a,{value:j,values:j,id:"product-subtitle-align",option:{id:"product-subtitle-align",label:Object(n.__)("Sub Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productSubtitleAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productSubtitleAlign:e})}))),Object(i.createElement)(l,{title:"Rating Settings",className:"affx-pricing-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Rating","affiliatex"),checked:!!$,className:"affiliate-blocks-option",onChange:()=>t({edRatings:!$})}),1==$&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:L,id:"rating-style",option:{id:"rating-style",type:"ab-radio",value:jt.PricingType.default,choices:{picture:Object(n.__)("Star rating","affiliatex"),number:Object(n.__)("Score Box","affiliatex")}},hasRevertButton:!0,onChange:e=>t({PricingType:e})})),1==$&&"picture"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(qe.RangeControl,{label:Object(n.__)("Star Rating size","affiliatex"),className:"affiliate-blocks-option",value:re,min:10,max:100,step:2,onChange:e=>t({ratingStarSize:e})})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-rating-number"},Object(i.createElement)(o,{type:"number",label:Object(n.__)("Rating Number","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:he,onChange:e=>t({numberRatings:e})}),Object(i.createElement)(o,{label:Object(n.__)("Rating Content","affiliatex"),className:"affiliate-blocks-option affx-input-field",value:U,onChange:e=>t({ratingContent:e})})),1==$&&"picture"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ce,values:Ce,id:"product-rating-align",option:{id:"product-rating-align",label:Object(n.__)("Rating Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productStarRatingAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productStarRatingAlign:e})})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:xe,values:xe,id:"product-rating-align",option:{id:"product-rating-align",label:Object(n.__)("Rating Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{left:"",right:""}},hasRevertButton:!0,onChange:e=>t({productRatingAlign:e})}))),Object(i.createElement)(l,{title:"Pricing Settings",className:"affx-pricing-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Pricing","affiliatex"),className:"affiliate-blocks-option",checked:!!K,onChange:()=>t({edPricing:!K})}),1==K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-pricing"},Object(i.createElement)(o,{label:Object(n.__)("Product Marked Price","affiliatex"),className:"affxduct-price",placeholder:Object(n.__)("Enter Product Price","affiliatex"),value:W,onChange:e=>t({productPrice:e})}),Object(i.createElement)(o,{label:Object(n.__)("Product Sale Price","affiliatex"),className:"affxduct-price",placeholder:Object(n.__)("Enter Product Sale Price","affiliatex"),value:V,onChange:e=>t({productSalePrice:e})}),Object(i.createElement)(c.a,{value:ve,values:ve,id:"product-pricing-align",option:{id:"product-pricing-align",label:Object(n.__)("Pricing Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productPricingAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productPricingAlign:e})}))),Object(i.createElement)(l,{title:"Content Settings",className:"affx-content-panel",initialOpen:!1},Object(i.createElement)(d,{label:Object(n.__)("Enable Content","affiliatex"),className:"affiliate-blocks-option",checked:!!X,onChange:()=>t({edContent:!X})}),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:E,values:E,id:"product-content-type",option:{id:"product-content-type",label:Object(n.__)("Content Type","affiliatex"),type:"ab-radio",value:jt.productContentType.default,choices:{list:Object(n.__)("List","affiliatex"),paragraph:Object(n.__)("Paragraph","affiliatex")}},hasRevertButton:!0,onChange:e=>t({productContentType:e})})),1==X&&"list"===E&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:I,values:I,id:"list-type",option:{id:"list-type",type:"ab-radio",value:jt.ContentListType.default,choices:{unordered:Object(n.__)("Unordered List","affiliatex"),ordered:Object(n.__)("Ordered List","affiliatex")}},hasRevertButton:!0,onChange:e=>t({ContentListType:e})})),1==X&&"list"===E&&"unordered"===I&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-icon-option "+w.value},Object(i.createElement)("label",null,Object(n.__)("Select List Icon","affiliatex")),Object(i.createElement)(s.a,{value:w.name,enableSearch:!0,icons:[{name:"check",value:"fas fa-check"},{name:"check-square",value:"fas fa-check-square"},{name:"check-square-outline",value:"far fa-check-square"},{name:"check-double",value:"fas fa-check-double"},{name:"check-circle",value:"fas fa-check-circle"},{name:"check-circle-outline",value:"far fa-check-circle"},{name:"square",value:"fas fa-square"},{name:"square-outline",value:"far fa-square"},{name:"circle",value:"fas fa-circle"},{name:"circle-outline",value:"far fa-circle"},{name:"arrow-right",value:"fas fa-arrow-right"},{name:"arrow-left",value:"fas fa-arrow-left"},{name:"arrow-circle-right",value:"fas fa-arrow-circle-right"},{name:"arrow-circle-left",value:"fas fa-arrow-circle-left"},{name:"arrow-alt-circle-right",value:"far fa-arrow-alt-circle-right"},{name:"arrow-alt-circle-left",value:"far fa-arrow-alt-circle-left"},{name:"long-arrow-alt-right",value:"fas fa-long-arrow-alt-right"},{name:"long-arrow-alt-left",value:"fas fa-long-arrow-alt-left"},{name:"chevron-right",value:"fas fa-chevron-right"},{name:"chevron-left",value:"fas fa-chevron-left"},{name:"angle-right",value:"fas fa-angle-right"},{name:"angle-left",value:"fas fa-angle-left"},{name:"star",value:"fas fa-star"},{name:"star-outline",value:"far fa-star"},{name:"windows-close-fill",value:"fas fa-window-close"},{name:"ban",value:"fas fa-ban"},{name:"window-close-simple",value:"far fa-window-close"},{name:"times",value:"fas fa-times"},{name:"times-circle",value:"fas fa-times-circle"},{name:"times-circle-simple",value:"far fa-times-circle"},{name:"dot-circle-fill",value:"fas fa-dot-circle"},{name:"dot-circle-simple",value:"far fa-dot-circle"},{name:"thumb-up-fill",value:"fas fa-thumbs-up"},{name:"thumb-up-simple",value:"far fa-thumbs-up"},{name:"thumb-down-fill",value:"fas fa-thumbs-down"},{name:"thumb-down-simple",value:"far fa-thumbs-down"},{name:"info-simple",value:"fa fa-info"},{name:"info-circle",value:"fa fa-info-circle"},{name:"question-simple",value:"fa fa-question"},{name:"question-circle",value:"fa fa-question-circle"},{name:"trash-simple",value:"fa fa-trash"},{name:"exclamation-triangle",value:"fa fa-exclamation-triangle"},{name:"exclamation-simple",value:"fa fa-exclamation"},{name:"exclamation-circle",value:"fa fa-exclamation-circle"}],onChange:e=>{t({productIconList:e})}})),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:T,values:T,id:"product-content-align",option:{id:"product-content-align",label:Object(n.__)("Content Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:jt.productContentAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({productContentAlign:e})}))),Object(i.createElement)(l,{title:"Colors",className:"affx-color-panel",initialOpen:!1},1==G&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:x}},option:{id:"title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:jt.productTitleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Title Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productTitleColor:e.textColor.color})})),1==Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:C}},option:{id:"subtitle-color",label:Object(n.__)("Subtitle Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:jt.productSubtitleColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Subtitle Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productSubtitleColor:e.textColor.color})})),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:B}},option:{id:"content-color",label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:jt.productContentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Content Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productContentColor:e.textColor.color})})),1==X&&"list"===E&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{iconColor:{color:ge}},option:{id:"content-color",label:Object(n.__)("Icon Color","affiliatex"),type:"ab-color-picker",value:{iconColor:{color:jt.iconColor.default}},pickers:[{id:"iconColor",title:Object(n.__)("Icon Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({iconColor:e.iconColor.color})})),1==K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{pricingColor:{color:ie},pricingHoverColor:{color:oe}},option:{id:"pricing-color",label:Object(n.__)("Pricing Color","affiliatex"),type:"ab-color-picker",value:{pricingColor:{color:jt.pricingColor.default},pricingHoverColor:{color:jt.pricingHoverColor.default}},pickers:[{id:"pricingColor",title:Object(n.__)("Sale Price Color","affiliatex")},{id:"pricingHoverColor",title:Object(n.__)("Marked Price Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({pricingColor:e.pricingColor.color,pricingHoverColor:e.pricingHoverColor.color})})),1==$&&"picture"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ratingColor:{color:Q},ratingInactiveColor:{color:Y}},option:{id:"pricing-color",label:Object(n.__)("Rating Color","affiliatex"),type:"ab-color-picker",value:{ratingColor:{color:jt.productRatingColor.default},ratingInactiveColor:{color:jt.ratingInactiveColor.default}},pickers:[{id:"ratingColor",title:Object(n.__)("Rating Color","affiliatex")},{id:"ratingInactiveColor",title:Object(n.__)("Inactive Rating Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productRatingColor:e.ratingColor.color,ratingInactiveColor:e.ratingInactiveColor.color})})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{productRateNumberColor:{color:ye},productRateContentColor:{color:Oe},productRateNumBgColor:{color:je},productRateContentBgColor:{color:ke}},option:{id:"score-box-color",label:Object(n.__)("Score Box Color","affiliatex"),type:"ab-color-picker",value:{productRateNumberColor:{color:jt.productRateNumberColor.default},productRateContentColor:{color:jt.productRateContentColor.default},productRateNumBgColor:{color:jt.productRateNumBgColor.default},productRateContentBgColor:{color:jt.productRateContentBgColor.default}},pickers:[{id:"productRateNumberColor",title:Object(n.__)("Score Box Color","affiliatex")},{id:"productRateContentColor",title:Object(n.__)("Content Rating Color","affiliatex")},{id:"productRateNumBgColor",title:Object(n.__)("Score Box Background Color","affiliatex")},{id:"productRateContentBgColor",title:Object(n.__)("Content Rating Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({productRateNumberColor:e.productRateNumberColor.color,productRateContentColor:e.productRateContentColor.color,productRateNumBgColor:e.productRateNumBgColor.color,productRateContentBgColor:e.productRateContentBgColor.color})})),1==se&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{ribbonColor:{color:de},ribbonBackgroundColor:{color:fe}},option:{id:"ribbon-color",label:Object(n.__)("Ribbon Color","affiliatex"),type:"ab-color-picker",value:{ribbonColor:{color:jt.ribbonColor.default},ribbonBackgroundColor:{color:jt.ribbonBGColor.default}},pickers:[{id:"ribbonColor",title:Object(n.__)("Text Color","affiliatex")},{id:"ribbonBackgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({ribbonColor:e.ribbonColor.color,ribbonBGColor:e.ribbonBackgroundColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affxduct-bg-type"},Object(i.createElement)(c.a,{value:J,values:J,id:"product-bg-color-type",option:{id:"product-bg-color-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:jt.productBgColorType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({productBgColorType:e})}),"solid"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{backgroundColor:{color:te}},option:{id:"ribbon-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{backgroundColor:{color:jt.productBGColor.default}},pickers:[{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({productBGColor:e.backgroundColor.color})})),"gradient"===J&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)("label",null,Object(n.__)("Background Grdient","affiliatex")),Object(i.createElement)(p.a,{value:ee,onChange:e=>t({productBgGradient:e})})))),Object(i.createElement)(l,{title:"Typography",className:"affx-typography-panel",initialOpen:!1},1==G&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-title-typo"},Object(i.createElement)(c.a,{value:v,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:jt.productTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({productTitleTypography:e})}})),1==Z&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-subtitle-typo"},Object(i.createElement)(c.a,{value:k,id:"subTitle-typography",option:{id:"subTitle-typography",label:Object(n.__)("Subtitle Typography","affiliatex"),type:"ab-typography",value:jt.productSubtitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({productSubtitleTypography:e})}})),1==K&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-price-typo"},Object(i.createElement)(c.a,{value:D,id:"pricing-typography",option:{id:"pricing-typography",label:Object(n.__)("Pricing Typography","affiliatex"),type:"ab-typography",value:jt.pricingTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({pricingTypography:e})}})),1==X&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-content-typo"},Object(i.createElement)(c.a,{value:_,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:jt.productContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({productContentTypography:e})}})),1==se&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-ribbon-typo"},Object(i.createElement)(c.a,{value:ue,id:"ribbon-typography",option:{id:"ribbon-typography",label:Object(n.__)("Ribbon Text Typography","affiliatex"),type:"ab-typography",value:jt.ribbonContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({ribbonContentTypography:e})}})),1==$&&"number"===L&&Object(i.createElement)("div",{className:"affiliate-blocks-option affx-sp-ribbon-typo"},Object(i.createElement)(c.a,{value:we,id:"rating-typography",option:{id:"rating-typography",label:Object(n.__)("Score Box Typography","affiliatex"),type:"ab-typography",value:jt.numRatingTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({numRatingTypography:e})}}))),Object(i.createElement)(l,{title:"Spacing",className:"affx-general-panel",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:Ee,values:Ee,id:"image-padding",option:{id:"image-padding",label:Object(n.__)("Image Padding","affiliatex"),type:"ab-spacing",value:jt.imagePadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({imagePadding:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ne,values:ne,id:"content-margin",option:{id:"content-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:jt.contentMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:ae,values:ae,id:"content-padding",option:{id:"content-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:jt.contentSpacing.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({contentSpacing:e})}))))};a(4);const{RichText:Ct,MediaUpload:wt,InnerBlocks:Et}=wp.blockEditor,{Button:_t}=wp.components;var Tt,Bt,Nt,Rt=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-single-product-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-single-product-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{productTitleAlign:o,productTitleTypography:i,productTitleColor:n,productSubtitleAlign:l,productSubtitleTypography:r,productSubtitleColor:c,productBorderWidth:s,productShadow:p,productContentTypography:f,productContentAlign:b,productContentColor:m,pricingTypography:g,productBorder:h,productDivider:v,productBgColorType:x,productBGColor:y,productBgGradient:O,contentSpacing:j,pricingHoverColor:k,pricingColor:C,contentMargin:w,ribbonBgColorType:E,ribbonBGColor:_,ribbonBgGradient:T,ribbonColor:B,ribbonContentTypography:N,iconColor:R,productRateNumBgColor:S,productRateContentBgColor:I,productRateContentColor:L,productRateNumberColor:P,productBorderRadius:A,ribbonAlign:z,numRatingTypography:F,productImageWidth:M,productImageExternal:H,productImageType:V,productImageCustomWidth:W,imagePadding:D}=e;var q,U,$={};const G="solid"===x?y:O.gradient,Z="solid"===E?_:T.gradient;($={" .affx-single-product-wrapper":{"border-width":s.desktop.top+" "+s.desktop.right+" "+s.desktop.bottom+" "+s.desktop.left,"border-radius":A.desktop.top+" "+A.desktop.right+" "+A.desktop.bottom+" "+A.desktop.left,"border-style":h.style,"border-color":h.color.color,background:G,"margin-top":w.desktop.top,"margin-left":w.desktop.left,"margin-right":w.desktop.right,"margin-bottom":w.desktop.bottom}," .affx-single-product-title":{"text-align":o,"font-family":i.family,"font-weight":Object(u.c)(i.variation),"font-style":Object(u.b)(i.variation),"font-size":i.size.desktop,"line-height":i["line-height"].desktop,"letter-spacing":i["letter-spacing"].desktop,"text-transform":i["text-transform"],"text-decoration":i["text-decoration"],color:n}," .affx-single-product-subtitle":{"text-align":l,"font-family":r.family,"font-weight":Object(u.c)(r.variation),"font-style":Object(u.b)(r.variation),"font-size":r.size.desktop,"line-height":r["line-height"].desktop,"letter-spacing":r["letter-spacing"].desktop,"text-transform":r["text-transform"],"text-decoration":r["text-decoration"],color:c}," .affx-single-product-content":{"text-align":b,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop,color:m}," .affx-single-product-content p":{color:m,"text-align":b,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop}," .affx-single-product-content ul li":{color:m,"text-align":b,"font-family":f.family,"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"text-decoration":f["text-decoration"],"letter-spacing":f["letter-spacing"].desktop}," .affx-sp-marked-price":{"font-family":g.family,"font-weight":Object(u.c)(g.variation),"font-style":Object(u.b)(g.variation),"font-size":g.size.desktop,"line-height":g["line-height"].desktop,"text-transform":g["text-transform"],"text-decoration":g["text-decoration"],"letter-spacing":g["letter-spacing"].desktop}," .affx-sp-sale-price":{"font-family":g.family,"font-weight":Object(u.c)(g.variation),"font-style":Object(u.b)(g.variation),"font-size":g.size.desktop,"line-height":g["line-height"].desktop,"text-transform":g["text-transform"],"letter-spacing":g["letter-spacing"].desktop}," .affx-sp-content-wrapper":{"padding-top":j.desktop.top,"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":j.desktop.bottom}," .affx-sp-price":{color:C}," .affx-sp-price .affx-sp-sale-price":{color:k}," .affx-sp-rating-number":{width:"100px"}," .affx-sp-content-wrapper .title-wrapper":{"border-style":v.style,"border-color":v.color.color,"border-bottom-width":v.width+"px"}," .affx-single-product-wrapper.product-layout-2 .title-wrapper":{"padding-top":j.desktop.top,"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-2 .affx-sp-price":{"padding-left":j.desktop.left,"padding-right":j.desktop.right}," .affx-single-product-wrapper.product-layout-2 .button-wrapper":{"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":j.desktop.bottom}," .affx-single-product-wrapper.product-layout-2 .affx-single-product-content":{"padding-left":j.desktop.left,"padding-right":j.desktop.right}," .affx-single-product-wrapper.product-layout-3 .affx-sp-inner":{"padding-top":j.desktop.top,"padding-left":j.desktop.left,"padding-right":j.desktop.right,"padding-bottom":j.desktop.bottom}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-right .affx-sp-content-wrapper":{"padding-top":"0","padding-left":"24px","padding-right":"24px","padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-left .affx-sp-content-wrapper":{"padding-top":"0","padding-left":"24px","padding-right":"0","padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-left .button-wrapper":{"padding-left":"24px"}," .affx-sp-ribbon":{width:"100%","text-align":z}," .affx-sp-ribbon-title":{background:Z,"font-family":N.family,"font-weight":Object(u.c)(N.variation),"font-style":Object(u.b)(N.variation),"font-size":N.size.desktop,"line-height":N["line-height"].desktop,"text-transform":N["text-transform"],"text-decoration":N["text-decoration"],"letter-spacing":N["letter-spacing"].desktop,color:B}," .affx-sp-ribbon.ribbon-layout-2 .affx-sp-ribbon-title:before":{"border-bottom-color":Z}," .affx-sp-content.image-right .affx-sp-ribbon.ribbon-layout-2 .affx-sp-ribbon-title:before":{"border-bottom-color":"transparent","border-right-color":Z}," .affx-sp-content.image-right .affx-sp-ribbon.ribbon-layout-2 .affx-sp-ribbon-title:hover:before":{"border-bottom-color":"transparent","border-right-color":Z}," .affiliatex-icon li:before":{color:R}," .affx-rating-number":{background:S,color:P,"font-family":F.family,"font-weight":Object(u.c)(F.variation),"font-style":Object(u.b)(F.variation),"font-size":F.size.desktop,"line-height":F["line-height"].desktop,"text-transform":F["text-transform"],"text-decoration":F["text-decoration"],"letter-spacing":F["letter-spacing"].desktop}," .affx-rating-number .num":{background:S,color:P}," .affx-rating-number .label":{background:I,color:L,"font-size":"0.444em"}," .affx-rating-number .label::before":{"border-bottom-color":I}," .affx-rating-input-content:before":{"border-bottom-color":I}," .affx-rating-input-content input":{color:L,"font-family":F.family,"font-weight":Object(u.c)(F.variation),"font-style":Object(u.b)(F.variation),"font-size":F.size.desktop,"line-height":F["line-height"].desktop,"text-transform":F["text-transform"],"text-decoration":F["text-decoration"],"letter-spacing":F["letter-spacing"].desktop}," .affx-single-product-wrapper.product-layout-1 .affx-sp-img-wrapper":{}," .affx-single-product-wrapper.product-layout-3 .affx-sp-img-wrapper":{}," .affx-single-product-wrapper .affx-sp-img-wrapper":{"padding-top":D.desktop.top,"padding-left":D.desktop.left,"padding-right":D.desktop.right,"padding-bottom":D.desktop.bottom}})[" .affx-single-product-wrapper.product-layout-1 .affx-sp-img-wrapper"].flex="custom"===M?"0 0 "+W+"%":"",$[" .affx-single-product-wrapper.product-layout-3 .affx-sp-img-wrapper"].flex="custom"===M?"0 0 "+W+"%":"",$[" .affx-single-product-wrapper"]["box-shadow"]=Object(u.a)(p)?Object(u.a)(p):"",q={" .affx-single-product-wrapper":{"border-width":s.mobile.top+" "+s.mobile.right+" "+s.mobile.bottom+" "+s.mobile.left,"border-radius":A.mobile.top+" "+A.mobile.right+" "+A.mobile.bottom+" "+A.mobile.left,"margin-top":w.mobile.top,"margin-left":w.mobile.left,"margin-right":w.mobile.right,"margin-bottom":w.mobile.bottom}," .affx-single-product-title":{"font-size":i.size.mobile,"line-height":i["line-height"].mobile,"letter-spacing":i["letter-spacing"].mobile}," .affx-single-product-subtitle":{"font-size":r.size.mobile,"line-height":r["line-height"].mobile,"letter-spacing":r["letter-spacing"].mobile}," .affx-single-product-content":{"font-size":f.size.mobile,"line-height":f["line-height"].mobile,"letter-spacing":f["letter-spacing"].mobile}," .affx-sp-marked-price":{"font-size":g.size.mobile,"line-height":g["line-height"].mobile,"letter-spacing":g["letter-spacing"].mobile}," .affx-sp-sale-price":{"font-size":g.size.mobile,"line-height":g["line-height"].mobile,"letter-spacing":g["letter-spacing"].mobile}," .affx-sp-content-wrapper":{"padding-top":j.mobile.top,"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":j.mobile.bottom}," .affx-single-product-wrapper.product-layout-2 .title-wrapper":{"padding-top":j.mobile.top,"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-2 .affx-sp-price":{"padding-left":j.mobile.left,"padding-right":j.mobile.right}," .affx-single-product-wrapper.product-layout-2 .button-wrapper":{"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":j.mobile.bottom}," .affx-single-product-wrapper.product-layout-2 .affx-single-product-content":{"padding-left":j.mobile.left,"padding-right":j.mobile.right}," .affx-single-product-wrapper.product-layout-3 .affx-sp-inner":{"padding-top":j.mobile.top,"padding-left":j.mobile.left,"padding-right":j.mobile.right,"padding-bottom":j.mobile.bottom}," .affx-sp-ribbon-title":{"font-size":N.size.mobile,"line-height":N["line-height"].mobile,"letter-spacing":N["letter-spacing"].mobile}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content-wrapper":{"padding-top":"0","padding-left":"0","padding-right":"0","padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-3 .affx-sp-content.image-left .button-wrapper":{"padding-left":"0"}," .affx-rating-input-number":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-rating-input-number input":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-rating-input-content":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-rating-input-content input":{"font-size":F.size.mobile,"line-height":F["line-height"].mobile,"letter-spacing":F["letter-spacing"].mobile}," .affx-single-product-wrapper .affx-sp-img-wrapper":{"padding-top":D.mobile.top,"padding-left":D.mobile.left,"padding-right":D.mobile.right,"padding-bottom":D.mobile.bottom}},U={" .affx-single-product-wrapper":{"border-width":s.tablet.top+" "+s.tablet.right+" "+s.tablet.bottom+" "+s.tablet.left,"border-radius":A.tablet.top+" "+A.tablet.right+" "+A.tablet.bottom+" "+A.tablet.left,"margin-top":w.tablet.top,"margin-left":w.tablet.left,"margin-right":w.tablet.right,"margin-bottom":w.tablet.bottom}," .affx-single-product-title":{"font-size":i.size.tablet,"line-height":i["line-height"].tablet,"letter-spacing":i["letter-spacing"].tablet}," .affx-single-product-subtitle":{"font-size":r.size.tablet,"line-height":r["line-height"].tablet,"letter-spacing":r["letter-spacing"].tablet}," .affx-single-product-content":{"font-size":f.size.tablet,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet}," .affx-sp-marked-price":{"font-size":g.size.tablet,"line-height":g["line-height"].tablet,"letter-spacing":g["letter-spacing"].tablet}," .affx-sp-sale-price":{"font-size":g.size.tablet,"line-height":g["line-height"].tablet,"letter-spacing":g["letter-spacing"].tablet}," .affx-sp-content-wrapper":{"padding-top":j.tablet.top,"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":j.tablet.bottom}," .affx-single-product-wrapper.product-layout-2 .title-wrapper":{"padding-top":j.tablet.top,"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":"0"}," .affx-single-product-wrapper.product-layout-2 .affx-sp-price":{"padding-left":j.tablet.left,"padding-right":j.tablet.right}," .affx-single-product-wrapper.product-layout-2 .button-wrapper":{"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":j.tablet.bottom}," .affx-single-product-wrapper.product-layout-2 .affx-single-product-content":{"padding-left":j.tablet.left,"padding-right":j.tablet.right}," .affx-single-product-wrapper.product-layout-3 .affx-sp-inner":{"padding-top":j.tablet.top,"padding-left":j.tablet.left,"padding-right":j.tablet.right,"padding-bottom":j.tablet.bottom}," .affx-sp-ribbon-title":{"font-size":N.size.tablet,"line-height":N["line-height"].tablet,"letter-spacing":N["letter-spacing"].tablet}," .affx-rating-input-number":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-rating-input-number input":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-rating-input-content":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-rating-input-content input":{"font-size":F.size.tablet,"line-height":F["line-height"].tablet,"letter-spacing":F["letter-spacing"].tablet}," .affx-single-product-wrapper .affx-sp-img-wrapper":{"padding-top":D.tablet.top,"padding-left":D.tablet.left,"padding-right":D.tablet.right,"padding-bottom":D.tablet.bottom}};var X="";return X=Object(d.a)($,`#${t}-${a}`),(X+=Object(d.a)(U,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(q,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-single-product-style",l))},[e]);const{Fragment:r}=wp.element,{productLayout:c,productTitle:s,productTitleTag:p,productContent:f,productSubTitle:b,productSubTitleTag:m,productContentType:g,ContentListType:h,productContentList:v,productImageAlign:x,productSalePrice:y,productPrice:O,ImgID:j,ratings:k,edRatings:C,edTitle:w,edSubtitle:E,edContent:_,edPricing:T,PricingType:B,productRatingColor:N,ratingInactiveColor:R,ratingContent:S,ratingStarSize:I,edRibbon:L,ribbonText:P,productRibbonLayout:A,edButton:z,ImgUrl:F,productIconList:M,edProductImage:H,numberRatings:V,productPricingAlign:W,productRatingAlign:D,productImageType:q,productImageExternal:U,productImageSiteStripe:$,productStarRatingAlign:Z}=e,X="layoutOne"===c?" product-layout-1":"layoutTwo"===c?" product-layout-2":"layoutThree"===c?" product-layout-3":"",K="one"===A?" ribbon-layout-1":"two"===A?" ribbon-layout-2":"",Q="picture"===B?"star-rating":"number"===B?"number-rating":"",Y=1==H?"image-"+x:"",J=0==H?"no-image":"",ee="number"===B?"rating-align-"+D:"",te=e=>{t({ImgID:e.id,ImgUrl:e.url,ImgAlt:e.alt})},ae=e=>{t({ImgID:e.id,ImgUrl:e.url,ImgAlt:e.alt})},oe=()=>{t({ImgID:null,ImgUrl:null,ImgAlt:null})},ie="default"===q?F:U,ne="sitestripe"===q&&""!==$,le=p,re=m,ce=[["affiliatex/buttons",{buttonLabel:"Buy Now",buttonMargin:{desktop:{top:"16px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"16px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"16px",left:"0px",right:"0px",bottom:"0px"}}}]];return Object(i.createElement)(r,null,Object(i.createElement)(kt,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-single-product-style-"+l,className:a},c&&("layoutOne"==c||"layoutTwo"==c||"layoutThree"==c)&&Object(i.createElement)("div",{className:"affx-single-product-wrapper"+X},Object(i.createElement)("div",{className:"affx-sp-inner"},Object(i.createElement)("div",{className:`affx-sp-content ${Y} ${J}`}," product-layout-2"!=X&&Object(i.createElement)(r,null,1==L&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Ribbon Text","affiliatex"),className:"affx-sp-ribbon-title",value:P,onChange:e=>t({ribbonText:e})})),1==H&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ne?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:$}}):Object(i.createElement)("img",{src:ie}),j?Object(i.createElement)("div",{className:"upload-btn-wrapper"},o?Object(i.createElement)(wt,{onSelect:ae,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"components-button affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(_t,{className:"components-button remove-image",onClick:oe},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(wt,{onSelect:te,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})),Object(i.createElement)("div",{className:"affx-sp-content-wrapper "+(1==L&&"has-ribbon")},Object(i.createElement)("div",{className:`title-wrapper affx-${Q} ${ee}`},Object(i.createElement)("div",{className:"affx-title-left"},1==w&&Object(i.createElement)(le,{className:"affx-single-product-title"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Title","affiliatex"),value:s,onChange:e=>t({productTitle:e})})),1==E&&Object(i.createElement)(re,{className:"affx-single-product-subtitle"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:b,onChange:e=>t({productSubTitle:e})}))),1==C&&"picture"===B&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+Z},Object(i.createElement)(G.Rating,{onClick:e=>t({ratings:e}),ratingValue:k,fillColor:N,emptyColor:R,size:I})),1==C&&"number"===B&&Object(i.createElement)("div",{className:"affx-rating-number"},Object(i.createElement)(Ct,{tagName:"span",type:"number",placeholder:"0",value:V,className:"affx-rating-num num"}),Object(i.createElement)(Ct,{tagName:"span",type:"text",placeholder:"score label",value:S,className:"affx-rating-number-label label"}))),1==T&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+W},Object(i.createElement)(Ct,{className:"affx-sp-marked-price",value:y,onChange:e=>t({productSalePrice:e})}),Object(i.createElement)(Ct,{tagName:"del",className:"affx-sp-sale-price",value:O,onChange:e=>t({productPrice:e})})),1==_&&Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===g&&Object(i.createElement)(Ct,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+M.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:v,onChange:e=>t({productContentList:e}),keepPlaceholderOnFocus:!0}),"paragraph"===g&&Object(i.createElement)(Ct,{tagName:"p",value:f,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>t({productContent:e})})),1==z&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(Et,{orientation:"horizontal",template:ce,templateLock:"all"}))))," product-layout-2"==X&&Object(i.createElement)(r,null,Object(i.createElement)("div",{className:`title-wrapper affx-${Q} ${ee}`},Object(i.createElement)("div",{className:"affx-title-left"},1==L&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Ribbon Text","affiliatex"),className:"affx-sp-ribbon-title",value:P,onChange:e=>t({ribbonText:e})})),1==w&&Object(i.createElement)(le,{className:"affx-single-product-title"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Title","affiliatex"),value:s,onChange:e=>t({productTitle:e})})),1==E&&Object(i.createElement)(re,{className:"affx-single-product-subtitle"},Object(i.createElement)(Ct,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:b,onChange:e=>t({productSubTitle:e})}))),1==C&&"picture"===B&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+Z},Object(i.createElement)(G.Rating,{onClick:e=>t({ratings:e}),ratingValue:k,fillColor:N,emptyColor:R,size:I})),1==C&&"number"===B&&Object(i.createElement)("div",{className:"affx-rating-number"},Object(i.createElement)(Ct,{tagName:"span",type:"number",placeholder:"0",value:V,className:"affx-rating-num num"}),Object(i.createElement)(Ct,{tagName:"span",type:"text",placeholder:"score label",value:S,className:"affx-rating-number-label label"}))),1==H&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ne?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:$}}):Object(i.createElement)("img",{src:ie}),j?Object(i.createElement)("div",{className:"upload-btn-wrapper"},o?Object(i.createElement)(wt,{onSelect:ae,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"components-button affx-replace-btn",onClick:e},Object(n.__)(" Replace Image","affiliatex"))}):null,Object(i.createElement)(_t,{className:"components-button remove-image",onClick:oe},Object(n.__)("Remove Image","affiliatex"))):Object(i.createElement)(wt,{onSelect:te,type:"image",value:j,render:({open:e})=>Object(i.createElement)(_t,{className:"affx-upload-btn",onClick:e},Object(n.__)(" Upload Image","affiliatex"))})))," product-layout-2"==X&&1==T&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+W},Object(i.createElement)(Ct,{className:"affx-sp-marked-price",value:y,onChange:e=>t({productSalePrice:e})}),Object(i.createElement)(Ct,{tagName:"del",className:"affx-sp-sale-price",value:O,onChange:e=>t({productPrice:e})}))," product-layout-2"==X&&1==_&&Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===g&&Object(i.createElement)(Ct,{tagName:"unordered"==h?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+M.name,placeholder:Object(n.__)("Enter Description","affiliatex"),value:v,onChange:e=>t({productContentList:e}),keepPlaceholderOnFocus:!0}),"paragraph"===g&&Object(i.createElement)(Ct,{tagName:"p",value:f,className:"affiliatex-content",placeholder:Object(n.__)("Enter Description","affiliatex"),onChange:e=>t({productContent:e})}))," product-layout-2"==X&&1==_&&Object(i.createElement)(r,null,1==z&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(Et,{orientation:"horizontal",template:ce,templateLock:"all"})))," product-layout-3"==X&&1==_&&Object(i.createElement)(r,null,1==z&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(Et,{orientation:"horizontal",template:ce,templateLock:"all"})))))),Object(yt.applyFilters)("affx_add_single_product_layouts",null,e,t)))},St=({attributes:e,className:t})=>{const{RichText:a,InnerBlocks:o}=wp.blockEditor,{block_id:l,productLayout:r,productTitle:c,productTitleTag:s,productContent:p,productSubTitle:f,productSubTitleTag:d,productContentType:u,ContentListType:b,productContentList:m,productImageAlign:g,productSalePrice:h,productPrice:v,productIconList:x,ratings:y,edRatings:O,edTitle:j,edSubtitle:k,edContent:C,edPricing:w,PricingType:E,productRatingColor:_,ratingInactiveColor:T,ratingContent:B,ratingStarSize:N,edButton:R,edProductImage:S,edRibbon:I,productRibbonLayout:L,ribbonText:P,ImgUrl:A,numberRatings:z,productRatingAlign:F,productStarRatingAlign:M,productImageType:H,productImageExternal:V,productImageSiteStripe:W,productPricingAlign:D}=e,q=s,U=d,$="layoutOne"===r?" product-layout-1":"layoutTwo"===r?" product-layout-2":"layoutThree"===r?" product-layout-3":"",Z="picture"===E?"star-rating":"number"===E?"number-rating":"",X=1==S?"image-"+g:"",K="one"===L?" ribbon-layout-1":"two"===L?" ribbon-layout-2":"",Q=0==S?"no-image":"",Y="number"===E?"rating-align-"+F:"",J="default"===H?A:V,ee="sitestripe"===H&&""!==W;return Object(i.createElement)("div",{id:"affiliatex-single-product-style-"+l,className:t},r&&("layoutOne"==r||"layoutTwo"==r||"layoutThree"==r)&&Object(i.createElement)("div",{className:"affx-single-product-wrapper"+$},Object(i.createElement)("div",{className:"affx-sp-inner"},Object(i.createElement)("div",{className:`affx-sp-content ${X} ${Q}`}," product-layout-2"!=$&&Object(i.createElement)(i.Fragment,null,1==I&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)("div",{className:"affx-sp-ribbon-title"},Object(i.createElement)(a.Content,{value:P}))),1==S&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ee?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:W}}):Object(i.createElement)("img",{src:J})),Object(i.createElement)("div",{className:"affx-sp-content-wrapper"},Object(i.createElement)("div",{className:`title-wrapper affx-${Z} ${Y}`},Object(i.createElement)("div",{className:"affx-title-left"},1==j&&Object(i.createElement)(q,{className:"affx-single-product-title"},Object(i.createElement)(a.Content,{value:c})),1==k&&Object(i.createElement)(U,{className:"affx-single-product-subtitle"},Object(i.createElement)(a.Content,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:f}))),1==O&&"picture"===E&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+M},Object(i.createElement)(G.RatingView,{ratingValue:y,fillColor:_,emptyColor:T,size:N})),1==O&&"number"===E&&Object(i.createElement)("div",{className:"affx-rating-box affx-rating-number"},Object(i.createElement)("span",{className:"num"},z),Object(i.createElement)("span",{className:"label"},B))),w&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+D},Object(i.createElement)("div",{className:"affx-sp-marked-price"},h),Object(i.createElement)("div",{className:"affx-sp-sale-price"},Object(i.createElement)("del",null,v))),Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===u&&Object(i.createElement)(a.Content,{tagName:"unordered"==b?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+x.name,value:m}),"paragraph"===u&&Object(i.createElement)(a.Content,{tagName:"p",value:p,className:"affiliatex-content"})),1==R&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(o.Content,null))))," product-layout-2"==$&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:`title-wrapper affx-${Z} ${Y}`},Object(i.createElement)("div",{className:"affx-title-left"},1==I&&Object(i.createElement)("div",{className:"affx-sp-ribbon"+K},Object(i.createElement)("div",{className:"affx-sp-ribbon-title"},Object(i.createElement)(a.Content,{value:P}))),1==j&&Object(i.createElement)(q,{className:"affx-single-product-title"},Object(i.createElement)(a.Content,{value:c})),1==k&&Object(i.createElement)(U,{className:"affx-single-product-subtitle"},Object(i.createElement)(a.Content,{placeholder:Object(n.__)("Enter Product Sub Title","affiliatex"),value:f}))),1==O&&"picture"===E&&Object(i.createElement)("div",{className:"affx-sp-pricing-pic rating-align-"+M},Object(i.createElement)(G.RatingView,{ratingValue:y,fillColor:_,emptyColor:T,size:N})),1==O&&"number"===E&&Object(i.createElement)("div",{className:"affx-rating-box affx-rating-number"},Object(i.createElement)("span",{className:"num"},z),Object(i.createElement)("span",{className:"label"},B))),1==S&&Object(i.createElement)("div",{className:"affx-sp-img-wrapper"},ee?Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:W}}):Object(i.createElement)("img",{src:J})))," product-layout-2"==$&&1==w&&Object(i.createElement)("div",{className:"affx-sp-price pricing-align-"+D},Object(i.createElement)("div",{className:"affx-sp-marked-price"},h),Object(i.createElement)("div",{className:"affx-sp-sale-price"},Object(i.createElement)("del",null,v)))," product-layout-2"==$&&1==C&&Object(i.createElement)("div",{className:"affx-single-product-content"},"list"===u&&Object(i.createElement)(a.Content,{tagName:"unordered"==b?"ul":"ol",multiline:"li",className:"affx-unordered-list affiliatex-icon affiliatex-icon-"+x.name,value:m}),"paragraph"===u&&Object(i.createElement)(a.Content,{tagName:"p",value:p,className:"affiliatex-content"}))," product-layout-2"==$&&1==C&&Object(i.createElement)(i.Fragment,null,1==R&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(o.Content,null)))," product-layout-3"==$&&1==C&&Object(i.createElement)(i.Fragment,null,1==R&&Object(i.createElement)("div",{className:"button-wrapper"},Object(i.createElement)(o.Content,null)))))),Object(yt.applyFilters)("affx_save_single_product_layouts",null,e))};Object(S.registerBlockType)("affiliatex/single-product",{title:Object(n.__)("AffiliateX Single Product","affiliatex"),description:Object(n.__)("Add a customizable single product block","affiliatex"),icon:R.m,category:"affiliatex",supports:{multiple:!0,align:!0},keywords:[Object(n.__)("Product","affiliatex"),Object(n.__)("Single Product","affiliatex"),Object(n.__)("AffiliateX","affiliatex")],attributes:jt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Rt,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(St,{attributes:e,className:t})});const It=AffiliateX.customizationData;var Lt={block_id:{type:"string"},specificationTitle:{type:"string",default:"Specifications"},specificationTable:{type:"array",default:[{specificationLabel:"",specificationValue:""}]},layoutStyle:{type:"string",default:"layout-1"},specificationBorder:{type:"object",default:{width:"1",style:"solid",color:{color:"#E6ECF7"}}},specificationColumnWidth:{type:"string",default:"styleOne"},specificationBorderWidth:{type:"object",default:{desktop:{top:"1px",left:"1px",right:"1px",bottom:"1px"},mobile:{top:"1px",left:"1px",right:"1px",bottom:"1px"},tablet:{top:"1px",left:"1px",right:"1px",bottom:"1px"}}},specificationBorderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},specificationBoxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},specificationBgType:{type:"string",default:"solid"},specificationBgColorSolid:{type:"string",default:"#FFFFFF"},specificationBgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},specificationTitleTypography:{type:"object",default:{family:(null==It||null===(Tt=It.typography)||void 0===Tt?void 0:Tt.family)||"Default",variation:"n5",size:{desktop:"24px",mobile:"24px",tablet:"24px"},"line-height":{desktop:"1.5",mobile:"1.5",tablet:"1.5"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},specificationLabelTypography:{type:"object",default:{family:(null==It||null===(Bt=It.typography)||void 0===Bt?void 0:Bt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},specificationValueTypography:{type:"object",default:{family:(null==It||null===(Nt=It.typography)||void 0===Nt?void 0:Nt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},specificationTitleColor:{type:"string",default:"#292929"},specificationTitleBgColor:{type:"string",default:"#FFFFFF"},specificationLabelColor:{type:"string",default:"#000000"},specificationValueColor:{type:"string",default:(null==It?void 0:It.fontColor)||"#292929"},specificationRowColor:{type:"string",default:"#F5F7FA"},edSpecificationTitle:{type:"boolean",default:!0},specificationTitleAlign:{type:"string",default:"left"},specificationLabelAlign:{type:"string",default:"left"},specificationValueAlign:{type:"string",default:"left"},specificationMargin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},specificationPadding:{type:"object",default:{desktop:{top:"16px",left:"24px",right:"24px",bottom:"16px"},mobile:{top:"16px",left:"24px",right:"24px",bottom:"16px"},tablet:{top:"16px",left:"24px",right:"24px",bottom:"16px"}}}},Pt=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{PanelBody:r,ToggleControl:s,SelectControl:f}=wp.components,{layoutStyle:d,specificationBorder:u,specificationBorderWidth:b,specificationBorderRadius:m,specificationBoxShadow:g,specificationBgType:h,specificationBgColorSolid:v,specificationBgColorGradient:x,specificationTitleTypography:y,specificationLabelTypography:O,specificationValueTypography:j,specificationTitleColor:k,specificationTitleBgColor:C,specificationLabelColor:w,specificationValueColor:E,specificationRowColor:_,edSpecificationTitle:T,specificationTitleAlign:B,specificationLabelAlign:N,specificationValueAlign:R,specificationMargin:S,specificationPadding:I,specificationColumnWidth:L}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(r,{title:Object(n.__)("Layout Settings","affiliatex"),className:"affx-panel-label",initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(f,{label:Object(n.__)("Choose Layout","affiliatex"),value:d,options:[{value:"layout-1",label:"Layout 1"},{value:"layout-2",label:"Layout 2"},{value:"layout-3",label:"Layout 3"}],onChange:e=>t({layoutStyle:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affx-layout-options"},Object(i.createElement)(c.a,{value:L,values:L,id:"specification-table-layout",option:{id:"specification-table-layout",label:Object(n.__)("Table Column","affiliatex"),attr:{"data-type":""},type:"ab-radio",value:Lt.specificationColumnWidth.default,choices:{styleOne:'<svg width="67" height="20" viewBox="0 0 67 20"><g id="Group_3" data-name="Group 3" transform="translate(-119 -103)"><g id="Group_2" data-name="Group 2" transform="translate(22 -77)"><rect id="Rectangle_5" data-name="Rectangle 5" width="45" height="20" transform="translate(119 180)" fill="#e6e9ec"/></g><g id="Group_1" data-name="Group 1" transform="translate(-46 -77)"><rect id="Rectangle_6" data-name="Rectangle 6" width="21" height="20" transform="translate(165 180)" fill="#e6e9ec"/></g></g></svg><span class="label">33,66</span>',styleTwo:'<svg xmlns="http://www.w3.org/2000/svg" width="67" height="20" viewBox="0 0 67 20"><g id="Group_4" data-name="Group 4" transform="translate(-119 -129)"><rect id="Rectangle_1" data-name="Rectangle 1" width="33" height="20" transform="translate(119 129)" fill="#e6e9ec"/><rect id="Rectangle_2" data-name="Rectangle 2" width="33" height="20" transform="translate(153 129)" fill="#e6e9ec"/></g></svg><span class="label">50,50</span>',styleThree:'<svg xmlns="http://www.w3.org/2000/svg" width="67" height="20" viewBox="0 0 67 20"><g id="Group_5" data-name="Group 5" transform="translate(-119 -155)"><rect id="Rectangle_3" data-name="Rectangle 3" width="45" height="20" transform="translate(119 155)" fill="#e6e9ec"/><rect id="Rectangle_4" data-name="Rectangle 4" width="21" height="20" transform="translate(165 155)" fill="#e6e9ec"/></g></svg><span class="label">66,33</span>'}},hasRevertButton:!0,onChange:e=>t({specificationColumnWidth:e})}))),Object(i.createElement)(r,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-specifications-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(s,{label:Object(n.__)("Enable Title","affiliatex"),checked:!!T,onChange:()=>t({edSpecificationTitle:!T})})),T&&Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:B,values:B,id:"specification-title-align",option:{id:"specification-title-align",label:Object(n.__)("Title Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Lt.specificationTitleAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({specificationTitleAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:N,values:N,id:"specification-label-align",option:{id:"specification-label-align",label:Object(n.__)("Label Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Lt.specificationLabelAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({specificationLabelAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:R,values:R,id:"specification-value-align",option:{id:"specification-value-align",label:Object(n.__)("Value Alignment","affiliatex"),attr:{"data-type":"alignment"},type:"ab-radio",value:Lt.specificationValueAlign.default,choices:{left:"",center:"",right:""}},hasRevertButton:!0,onChange:e=>t({specificationValueAlign:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:g,values:g,id:"specifications-box-shadow",option:{id:"specifications-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:Lt.specificationBoxShadow.default},hasRevertButton:!0,onChange:e=>t({specificationBoxShadow:e})})))),Object(i.createElement)(r,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:u,values:u,id:"specification-border",option:{id:"specification-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:Lt.specificationBorder.default},hasRevertButton:!0,onChange:e=>t({specificationBorder:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:b,values:b,id:"specification-border-width",option:{id:"specification-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:Lt.specificationBorderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationBorderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:m,values:m,id:"specification-border-radius",option:{id:"specification-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:Lt.specificationBorderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationBorderRadius:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:k},textBgColor:{color:C}},option:{id:"title-color",label:Object(n.__)("Title Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationTitleColor.default},textBgColor:{color:Lt.specificationTitleBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"textBgColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({specificationTitleColor:e.textColor.color,specificationTitleBgColor:e.textBgColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:w}},option:{id:"label-color",label:Object(n.__)("Label Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationLabelColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Label Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationLabelColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:E}},option:{id:"value-color",label:Object(n.__)("Value Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationValueColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Value Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationValueColor:e.textColor.color})})),d&&"layout-1"!=d&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:_}},option:{id:"value-color",label:Object(n.__)("Table Row Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Lt.specificationRowColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Row Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationRowColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:h,values:h,id:"specification-bg-type",option:{id:"specification-bg-type",label:Object(n.__)("Background Color Type","affiliatex"),type:"ab-radio",value:Lt.specificationBgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({specificationBgType:e})})),"solid"===h&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:v}},option:{id:"bg-color",label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Lt.specificationBgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({specificationBgColorSolid:e.bgColor.color})})),"gradient"===h&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:x,onChange:e=>t({specificationBgColorGradient:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-specification-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option specification-title-typography"},Object(i.createElement)(c.a,{value:y,id:"title-typography",option:{id:"title-typography",label:Object(n.__)("Title Typography","affiliatex"),type:"ab-typography",value:Lt.specificationTitleTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({specificationTitleTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option specification-label-typography"},Object(i.createElement)(c.a,{value:O,option:{id:"label-typography",label:Object(n.__)("Label Typography","affiliatex"),type:"ab-typography",value:Lt.specificationLabelTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({specificationLabelTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option specification-value-typography"},Object(i.createElement)(c.a,{value:j,option:{id:"value-typography",label:Object(n.__)("Value Typography","affiliatex"),type:"ab-typography",value:Lt.specificationValueTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({specificationValueTypography:e})}})))),Object(i.createElement)(r,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:S,values:S,id:"specification-margin",option:{id:"specification-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:Lt.specificationMargin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationMargin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:I,values:I,id:"specification-padding",option:{id:"specification-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:Lt.specificationPadding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({specificationPadding:e})}))))};const{RichText:At}=wp.blockEditor,{Button:zt}=wp.components;var Ft,Mt,Ht=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:l})=>{const{Fragment:r}=wp.element;Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-specification-style-"+l),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:l});var a=document.getElementById("affiliatex-specification-style-"+l);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{specificationBorder:o,specificationBorderWidth:i,specificationBorderRadius:n,specificationBoxShadow:l,specificationBgType:r,specificationBgColorSolid:c,specificationBgColorGradient:s,specificationTitleTypography:p,specificationLabelTypography:f,specificationValueTypography:b,specificationTitleColor:m,specificationTitleBgColor:g,specificationLabelColor:h,specificationValueColor:v,specificationRowColor:x,specificationTitleAlign:y,specificationLabelAlign:O,specificationValueAlign:j,specificationMargin:k,specificationPadding:C,specificationColumnWidth:w}=e;var E,_,T={};(T={" .affx-specification-block-container":{"border-style":o.style,"border-width":i.desktop.top+" "+i.desktop.right+" "+i.desktop.bottom+" "+i.desktop.left,"border-color":o.color.color,"border-radius":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,overflow:"hidden","margin-top":k.desktop.top,"margin-left":k.desktop.left,"margin-right":k.desktop.right,"margin-bottom":k.desktop.bottom}," .affx-specification-table":{margin:"0"}," .affx-specification-table td":{"padding-top":C.desktop.top,"padding-left":C.desktop.left,"padding-right":C.desktop.right,"padding-bottom":C.desktop.bottom}," .affx-specification-table th":{color:m,background:g,"text-align":y,"font-family":p.family,"text-decoration":p["text-decoration"],"font-weight":Object(u.c)(p.variation),"font-style":Object(u.b)(p.variation),"font-size":p.size.desktop,"line-height":p["line-height"].desktop,"text-transform":p["text-transform"],"letter-spacing":p["letter-spacing"].desktop,"padding-top":C.desktop.top,"padding-left":C.desktop.left,"padding-right":C.desktop.right,"padding-bottom":C.desktop.bottom}," .affx-specification-table td.affx-spec-label":{color:h,"text-align":O,"font-family":f.family,"text-decoration":f["text-decoration"],"font-weight":Object(u.c)(f.variation),"font-style":Object(u.b)(f.variation),"font-size":f.size.desktop,"line-height":f["line-height"].desktop,"text-transform":f["text-transform"],"letter-spacing":f["letter-spacing"].desktop,width:"styleOne"===w?"33.33%":"styleTwo"===w?"50%":"66.66%"}," .affx-specification-table td.affx-spec-value":{color:v,"text-align":j,"font-family":b.family,"text-decoration":b["text-decoration"],"font-weight":Object(u.c)(b.variation),"font-style":Object(u.b)(b.variation),"font-size":b.size.desktop,"line-height":b["line-height"].desktop,"text-transform":b["text-transform"],"letter-spacing":b["letter-spacing"].desktop,width:"styleOne"===w?"66.66%":"styleTwo"===w?"50%":"33.33%"}," .affx-specification-table.layout-2 td.affx-spec-label":{background:x}," .affx-specification-table.layout-3 tbody tr:nth-child(even) td":{background:x}})[" .affx-specification-table"].background="solid"===r?c:s.gradient,T[" .affx-specification-block-container"]["box-shadow"]=Object(u.a)(l)?Object(u.a)(l):"",_={" .affx-specification-block-container":{"border-style":o.style,"border-width":i.tablet.top+" "+i.tablet.right+" "+i.tablet.bottom+" "+i.tablet.left,"border-color":o.color.color,"border-radius":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left}," .affx-specification-table":{"margin-top":k.tablet.top,"margin-left":k.tablet.left,"margin-right":k.tablet.right,"margin-bottom":k.tablet.bottom}," .affx-specification-table td":{"padding-top":C.tablet.top,"padding-left":C.tablet.left,"padding-right":C.tablet.right,"padding-bottom":C.tablet.bottom}," .affx-specification-table th":{"font-size":p.size.tablet,"line-height":p["line-height"].tablet,"letter-spacing":p["letter-spacing"].tablet,"padding-top":C.tablet.top,"padding-left":C.tablet.left,"padding-right":C.tablet.right,"padding-bottom":C.tablet.bottom}," .affx-specification-table td.affx-spec-label":{"font-size":f.size.tablet,"line-height":f["line-height"].tablet,"letter-spacing":f["letter-spacing"].tablet}," .affx-specification-table td.affx-spec-value":{"font-size":b.size.tablet,"line-height":b["line-height"].tablet,"letter-spacing":b["letter-spacing"].tablet}},E={" .affx-specification-block-container":{"border-style":o.style,"border-width":i.mobile.top+" "+i.mobile.right+" "+i.mobile.bottom+" "+i.mobile.left,"border-color":o.color.color,"border-radius":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left}," .affx-specification-table":{"margin-top":k.mobile.top,"margin-left":k.mobile.left,"margin-right":k.mobile.right,"margin-bottom":k.mobile.bottom}," .affx-specification-table td":{"padding-top":C.mobile.top,"padding-left":C.mobile.left,"padding-right":C.mobile.right,"padding-bottom":C.mobile.bottom}," .affx-specification-table th":{"font-size":p.size.mobile,"line-height":p["line-height"].mobile,"letter-spacing":p["letter-spacing"].mobile,"padding-top":C.mobile.top,"padding-left":C.mobile.left,"padding-right":C.mobile.right,"padding-bottom":C.mobile.bottom}," .affx-specification-table td.affx-spec-label":{"font-size":f.size.mobile,"line-height":f["line-height"].mobile,"letter-spacing":f["letter-spacing"].mobile}," .affx-specification-table td.affx-spec-value":{"font-size":b.size.mobile,"line-height":b["line-height"].mobile,"letter-spacing":b["letter-spacing"].mobile}};var B="";return B=Object(d.a)(T,`#${t}-${a}`),(B+=Object(d.a)(_,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(E,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-specification-style",l))},[e]);const{specificationTitle:c,specificationTable:s,layoutStyle:p,edSpecificationTitle:f,itemCount:b}=e,m=(e,a,o)=>{let i=[...s];i[a]={...i[a],[""+o]:e},t({specificationTable:i})};return Object(i.createElement)(r,null,Object(i.createElement)(Pt,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-specification-style-"+l,className:a},Object(i.createElement)("div",{className:"affx-specification-block-container"},Object(i.createElement)("table",{className:"affx-specification-table "+p},f&&Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{className:"affx-spec-title",colSpan:"3"},Object(i.createElement)(At,{placeholder:Object(n.__)("Enter Title","affiliatex"),value:c,onChange:e=>t({specificationTitle:e})})))),Object(i.createElement)("tbody",null,null==s?void 0:s.map((e,a)=>Object(i.createElement)("tr",{key:a},Object(i.createElement)("td",{className:"affx-spec-label"},Object(i.createElement)(At,{placeholder:Object(n.__)("Specification Label","affiliatex"),value:e.specificationLabel,onChange:e=>m(e,a,"specificationLabel")})),Object(i.createElement)("td",{className:"affx-spec-value"},Object(i.createElement)(At,{placeholder:Object(n.__)("Specification Value","affiliatex"),value:e.specificationValue,onChange:e=>m(e,a,"specificationValue")})),a>0?Object(i.createElement)("td",{className:"affx-spec-remove"},Object(i.createElement)(zt,{className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...s];a.splice(e,1),t({specificationTable:a,itemCount:b-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))))):Object(i.createElement)("td",null))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"row-appender",colSpan:"3"},Object(i.createElement)(zt,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{specificationLabel:"",specificationValue:""}],t({specificationTable:o}),a=e.length,t({itemCount:a})})(s)},Object(i.createElement)("span",{className:"screen-reader-text"},Object(n.__)("Add Specification","affiliatex")),Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))))))))))},Vt=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,layoutStyle:n,specificationTitle:l,specificationTable:r,edSpecificationTitle:c}=e;return Object(i.createElement)("div",{id:"affiliatex-specification-style-"+o,className:t},Object(i.createElement)("div",{className:"affx-specification-block-container"},Object(i.createElement)("table",{className:"affx-specification-table "+n},c&&Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{clasName:"affx-spec-title",colSpan:"2"},Object(i.createElement)(a.Content,{value:l})))),Object(i.createElement)("tbody",null,null==r?void 0:r.map((e,t)=>Object(i.createElement)("tr",{key:t},Object(i.createElement)("td",{className:"affx-spec-label"},Object(i.createElement)(a.Content,{value:null==e?void 0:e.specificationLabel})),Object(i.createElement)("td",{className:"affx-spec-value"},Object(i.createElement)(a.Content,{value:null==e?void 0:e.specificationValue}))))))))};Object(S.registerBlockType)("affiliatex/specifications",{title:Object(n.__)("AffiliateX Specifications","affiliatex"),description:Object(n.__)("Add a customizable specifications block","affiliatex"),icon:R.f,category:"affiliatex",supports:{multiple:!0},keywords:[Object(n.__)("specifications","affiliatex"),,Object(n.__)("AffiliateX","affiliatex")],attributes:Lt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Ht,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Vt,{attributes:e,className:t})});const Wt=AffiliateX.customizationData;var Dt={block_id:{type:"string"},vsLabel:{type:"string",default:"VS"},versusTable:{type:"array",default:[{versusTitle:"",versusSubTitle:"",versusValue1:"",versusValue2:""}]},boxShadow:{type:"object",default:{enable:!1,h_offset:0,v_offset:5,blur:20,spread:0,inset:!1,color:{color:"rgba(210,213,218,0.2)"}}},border:{type:"object",default:{width:"0",style:"solid",color:{color:"#E6ECF7"}}},borderWidth:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}},borderRadius:{type:"object",default:{desktop:{top:"0",left:"0",right:"0",bottom:"0"},mobile:{top:"0",left:"0",right:"0",bottom:"0"},tablet:{top:"0",left:"0",right:"0",bottom:"0"}}},vsTextColor:{type:"string",default:"#000"},vsBgColor:{type:"string",default:"#E6ECF7"},contentColor:{type:"string",default:(null==Wt?void 0:Wt.fontColor)||"#292929"},versusRowColor:{type:"string",default:"#F5F7FA"},bgType:{type:"string",default:"solid"},bgColorSolid:{type:"string",default:"#FFFFFF"},bgColorGradient:{type:"object",default:{gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"}},vsTypography:{type:"object",default:{family:(null==Wt||null===(Ft=Wt.typography)||void 0===Ft?void 0:Ft.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},versusContentTypography:{type:"object",default:{family:(null==Wt||null===(Mt=Wt.typography)||void 0===Mt?void 0:Mt.family)||"Default",variation:"n4",size:{desktop:"18px",mobile:"18px",tablet:"18px"},"line-height":{desktop:"1.65",mobile:"1.65",tablet:"1.65"},"letter-spacing":{desktop:"0em",mobile:"0em",tablet:"0em"},"text-transform":"none","text-decoration":"none"}},margin:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"30px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"30px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"30px"}}},padding:{type:"object",default:{desktop:{top:"0px",left:"0px",right:"0px",bottom:"0px"},mobile:{top:"0px",left:"0px",right:"0px",bottom:"0px"},tablet:{top:"0px",left:"0px",right:"0px",bottom:"0px"}}}},qt=({attributes:e,setAttributes:t,className:a,isSelected:o})=>{const{InspectorControls:l}=wp.blockEditor,{PanelBody:r}=wp.components,{boxShadow:s,border:f,borderWidth:d,borderRadius:u,vsTextColor:b,vsBgColor:m,contentColor:g,versusRowColor:h,bgType:v,bgColorSolid:x,bgColorGradient:y,vsTypography:O,versusContentTypography:j,margin:k,padding:C}=e;return Object(i.createElement)(l,{key:"inspector"},Object(i.createElement)(r,{title:Object(n.__)("General Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliatex-specifications-general"},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-shadow-option"},Object(i.createElement)(c.a,{value:s,values:s,id:"versus-box-shadow",option:{id:"versus-box-shadow",label:Object(n.__)("Box Shadow","affiliatex"),type:"ab-box-shadow",divider:"top",value:Dt.boxShadow.default},hasRevertButton:!0,onChange:e=>t({boxShadow:e})})))),Object(i.createElement)(r,{title:Object(n.__)("Border Settings","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-border-option"},Object(i.createElement)(c.a,{value:f,values:f,id:"versus-border",option:{id:"versus-border",label:Object(n.__)("Border","affiliatex"),type:"ab-border",value:Dt.border.default},hasRevertButton:!0,onChange:e=>t({border:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:d,values:d,id:"versus-border-width",option:{id:"versus-border-width",label:Object(n.__)("Border Width","affiliatex"),type:"ab-spacing",value:Dt.borderWidth.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderWidth:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:u,values:u,id:"versus-border-radius",option:{id:"versus-border-radius",label:Object(n.__)("Border Radius","affiliatex"),type:"ab-spacing",value:Dt.borderRadius.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({borderRadius:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Colors","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:b},backgroundColor:{color:m}},option:{label:Object(n.__)("VS Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Dt.vsTextColor.default},backgroundColor:{color:Dt.vsBgColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")},{id:"backgroundColor",title:Object(n.__)("Background Color")}]},hasRevertButton:!0,onChange:e=>t({vsTextColor:e.textColor.color,vsBgColor:e.backgroundColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:g}},option:{label:Object(n.__)("Content Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Dt.contentColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Text Color")}]},hasRevertButton:!0,onChange:e=>t({contentColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{textColor:{color:h}},option:{label:Object(n.__)("Table Row Color","affiliatex"),type:"ab-color-picker",value:{textColor:{color:Dt.versusRowColor.default}},pickers:[{id:"textColor",title:Object(n.__)("Row Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({versusRowColor:e.textColor.color})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:v,values:v,id:"versus-bg-type",option:{id:"versus-bg-type",label:Object(n.__)("Background Type","affiliatex"),type:"ab-radio",value:Dt.bgType.default,choices:{solid:Object(n.__)("Solid Color","affiliatex"),gradient:Object(n.__)("Gradient","affiliatex")}},hasRevertButton:!0,onChange:e=>t({bgType:e})})),"solid"===v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-color-option"},Object(i.createElement)(c.a,{value:{bgColor:{color:x}},option:{label:Object(n.__)("Background Color","affiliatex"),type:"ab-color-picker",value:{bgColor:{color:Dt.bgColorSolid.default}},pickers:[{id:"bgColor",title:Object(n.__)("Background Color","affiliatex")}]},hasRevertButton:!0,onChange:e=>t({bgColorSolid:e.bgColor.color})})),"gradient"===v&&Object(i.createElement)("div",{className:"affiliate-blocks-option affiliate-gradient-option"},Object(i.createElement)(p.a,{value:y,onChange:e=>t({bgColorGradient:e})}))),Object(i.createElement)(r,{title:Object(n.__)("Typography","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option affiliatex-versus-typography"},Object(i.createElement)("div",{className:"affiliate-blocks-option versus-typography"},Object(i.createElement)(c.a,{value:O,id:"vs-label-typography",option:{id:"vs-label-typography",label:Object(n.__)("VS Label Typography","affiliatex"),type:"ab-typography",value:Dt.vsTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({vsTypography:e})}})),Object(i.createElement)("div",{className:"affiliate-blocks-option versus-typography"},Object(i.createElement)(c.a,{value:j,id:"content-typography",option:{id:"content-typography",label:Object(n.__)("Content Typography","affiliatex"),type:"ab-typography",value:Dt.versusContentTypography.default},device:"desktop",hasRevertButton:!0,onChange:e=>{t({versusContentTypography:e})}})))),Object(i.createElement)(r,{title:Object(n.__)("Spacing","affiliatex"),initialOpen:!1},Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:k,values:k,id:"versus-margin",option:{id:"versus-margin",label:Object(n.__)("Margin","affiliatex"),type:"ab-spacing",value:Dt.margin.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({margin:e})})),Object(i.createElement)("div",{className:"affiliate-blocks-option"},Object(i.createElement)(c.a,{value:C,values:C,id:"versus-padding",option:{id:"versus-padding",label:Object(n.__)("Padding","affiliatex"),type:"ab-spacing",value:Dt.padding.default,responsive:!0,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>t({padding:e})}))))};const{RichText:Ut}=wp.blockEditor,{Button:$t}=wp.components;var Gt=({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>{const{Fragment:l}=wp.element;Object(i.useEffect)(()=>{const e=document.createElement("style");e.setAttribute("id","affiliatex-versus-line-style-"+n),document.head.appendChild(e)},[null]),Object(i.useEffect)(()=>{t({block_id:n});var a=document.getElementById("affiliatex-versus-line-style-"+n);null!=a&&void 0!==a&&(a.innerHTML=((e,t,a)=>{const{boxShadow:o,border:i,borderWidth:n,borderRadius:l,vsTextColor:r,vsBgColor:c,contentColor:s,versusRowColor:p,bgType:f,bgColorSolid:b,bgColorGradient:m,vsTypography:g,versusContentTypography:h,margin:v,padding:x}=e;var y,O,j={};(j={" .affx-versus-table-wrap":{color:s,"font-family":h.family,"text-decoration":h["text-decoration"],"font-weight":Object(u.c)(h.variation),"font-style":Object(u.b)(h.variation),"font-size":h.size.desktop,"line-height":h["line-height"].desktop,"text-transform":h["text-transform"],"letter-spacing":h["letter-spacing"].desktop,"border-style":i.style,"border-width":n.desktop.top+" "+n.desktop.right+" "+n.desktop.bottom+" "+n.desktop.left,"border-color":i.color.color,"border-radius":l.desktop.top+" "+l.desktop.right+" "+l.desktop.bottom+" "+l.desktop.left,"margin-top":v.desktop.top,"margin-left":v.desktop.left,"margin-right":v.desktop.right,"margin-bottom":v.desktop.bottom,"padding-top":x.desktop.top,"padding-left":x.desktop.left,"padding-right":x.desktop.right,"padding-bottom":x.desktop.bottom}," .affx-versus-table-wrap .affx-vs-icon":{background:c,color:r,"font-family":g.family,"font-weight":Object(u.c)(g.variation),"font-style":Object(u.b)(g.variation),"font-size":g.size.desktop,"line-height":g["line-height"].desktop,"text-transform":g["text-transform"],"text-decoration":g["text-decoration"],"letter-spacing":g["letter-spacing"].desktop}," .affx-product-versus-table tbody tr:nth-child(odd) td":{background:p}})[" .affx-versus-table-wrap"].background="solid"===f?b:m.gradient,j[" .affx-versus-table-wrap"]["box-shadow"]=Object(u.a)(o)?Object(u.a)(o):"",O={" .affx-versus-table-wrap":{"font-size":h.size.tablet,"line-height":h["line-height"].tablet,"letter-spacing":h["letter-spacing"].tablet,"border-width":n.tablet.top+" "+n.tablet.right+" "+n.tablet.bottom+" "+n.tablet.left,"border-radius":l.tablet.top+" "+l.tablet.right+" "+l.tablet.bottom+" "+l.tablet.left,"margin-top":v.tablet.top,"margin-left":v.tablet.left,"margin-right":v.tablet.right,"margin-bottom":v.tablet.bottom,"padding-top":x.tablet.top,"padding-left":x.tablet.left,"padding-right":x.tablet.right,"padding-bottom":x.tablet.bottom}," .affx-versus-table-wrap .affx-vs-icon":{"font-size":g.size.tablet,"line-height":g["line-height"].tablet,"letter-spacing":g["letter-spacing"].tablet}},y={" .affx-versus-table-wrap":{"font-size":h.size.mobile,"line-height":h["line-height"].mobile,"letter-spacing":h["letter-spacing"].mobile,"border-width":n.mobile.top+" "+n.mobile.right+" "+n.mobile.bottom+" "+n.mobile.left,"border-radius":l.mobile.top+" "+l.mobile.right+" "+l.mobile.bottom+" "+l.mobile.left,"margin-top":v.mobile.top,"margin-left":v.mobile.left,"margin-right":v.mobile.right,"margin-bottom":v.mobile.bottom,"padding-top":x.mobile.top,"padding-left":x.mobile.left,"padding-right":x.mobile.right,"padding-bottom":x.mobile.bottom}," .affx-versus-table-wrap .affx-vs-icon":{"font-size":g.size.mobile,"line-height":g["line-height"].mobile,"letter-spacing":g["letter-spacing"].mobile}};var k="";return k=Object(d.a)(j,`#${t}-${a}`),(k+=Object(d.a)(O,`#${t}-${a}`,!0,"tablet"))+Object(d.a)(y,`#${t}-${a}`,!0,"mobile")})(e,"affiliatex-versus-line-style",n))},[e]);const{versusTable:r,vsLabel:c,itemCount:s}=e,p=(e,a,o)=>{let i=[...r];i[a]={...i[a],[""+o]:e},t({versusTable:i})};return Object(i.createElement)(l,null,Object(i.createElement)(qt,{attributes:e,setAttributes:t,className:a,isSelected:o}),Object(i.createElement)("div",{id:"affiliatex-versus-line-style-"+n,className:"affx-versus-line-block-container "+a},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table affx-product-versus-line"},Object(i.createElement)("tbody",null,null==r?void 0:r.map((e,a)=>Object(i.createElement)("tr",{key:a},Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(Ut,{placeholder:"Title",value:e.versusTitle,onChange:e=>p(e,a,"versusTitle")}),Object(i.createElement)("span",{className:"data-info"},Object(i.createElement)(Ut,{placeholder:"Subtitle",value:e.versusSubTitle,onChange:e=>p(e,a,"versusSubTitle")}))),Object(i.createElement)("td",null,Object(i.createElement)(Ut,{placeholder:"Value 1",value:e.versusValue1,onChange:e=>p(e,a,"versusValue1")})),Object(i.createElement)("td",null,Object(i.createElement)("span",{className:"affx-vs-icon"},Object(i.createElement)(Ut,{placeholder:"VS Label",value:c,onChange:e=>t({vsLabel:e})}))),Object(i.createElement)("td",null,Object(i.createElement)(Ut,{placeholder:"Value 2",value:e.versusValue2,onChange:e=>p(e,a,"versusValue2")})),a>0?Object(i.createElement)("td",{className:"affx-spec-remove"},Object(i.createElement)($t,{className:"affx-specification-remove-btn",onClick:()=>{(e=>{let a=[...r];a.splice(e,1),t({versusTable:a,itemCount:s-1})})(a)}},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.549",height:"18.065",viewBox:"0 0 13.549 18.065"},Object(i.createElement)("g",{transform:"translate(-132.5 -10)",opacity:"0.2"},Object(i.createElement)("path",{d:"M146.049,12.319h-3.764v-.94A1.378,1.378,0,0,0,140.906,10h-3.268a1.376,1.376,0,0,0-1.373,1.379v.94H132.5v.691h.992l1.11,13.676a1.378,1.378,0,0,0,1.379,1.379h6.633a1.378,1.378,0,0,0,1.379-1.379l1.1-13.676h.96Zm-9.1-.94a.691.691,0,0,1,.688-.691h3.27a.688.688,0,0,1,.688.691v.94H136.95ZM143.3,26.65v.037a.691.691,0,0,1-.688.691h-6.633a.688.688,0,0,1-.688-.691V26.65l-1.115-13.638H144.4Z",transform:"translate(0 0)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M482.1,255h.723v12.466H482.1Z",transform:"translate(-343.188 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M600.009,255h-.756l-.553,12.466h.756Z",transform:"translate(-457.688 -241.83)",fill:"%23191919"}),Object(i.createElement)("path",{d:"M337.45,255h-.75l.553,12.466h.756Z",transform:"translate(-200.472 -241.83)",fill:"%23191919"}))))):Object(i.createElement)("td",null))),Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"row-appender",colSpan:"5"},Object(i.createElement)($t,{isDefault:!0,className:"affx-add-specification-btn components_panel_btn",onClick:()=>(e=>{let a=0,o=[...e];o=[...e,{versusTitle:"",versusSubTitle:"",versusValue1:"",versusValue2:""}],t({versusTable:o}),a=e.length,t({itemCount:a})})(r)},Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(i.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))))))))))},Zt=({attributes:e,className:t})=>{const{RichText:a}=wp.blockEditor,{block_id:o,versusTable:n,vsLabel:l}=e;return Object(i.createElement)("div",{id:"affiliatex-versus-line-style-"+o,className:"affx-versus-line-block-container "+t},Object(i.createElement)("div",{className:"affx-versus-table-wrap"},Object(i.createElement)("table",{className:"affx-product-versus-table"},Object(i.createElement)("tbody",null,null==n?void 0:n.map((e,t)=>Object(i.createElement)("tr",{key:t},Object(i.createElement)("td",{className:"data-label"},Object(i.createElement)(a.Content,{value:e.versusTitle}),Object(i.createElement)("span",{className:"data-info"},Object(i.createElement)(a.Content,{value:e.versusSubTitle}))),Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.versusValue1})),Object(i.createElement)("td",null,Object(i.createElement)("span",{className:"affx-vs-icon"},Object(i.createElement)(a.Content,{value:l}))),Object(i.createElement)("td",null,Object(i.createElement)(a.Content,{value:e.versusValue2}))))))))};Object(S.registerBlockType)("affiliatex/versus-line",{title:Object(n.__)("AffiliateX Versus Line","affiliatex"),description:Object(n.__)("Add a customizable versus line block","affiliatex"),icon:R.r,category:"affiliatex",supports:{multiple:!0},keywords:[Object(n.__)("Versus Line","affiliatex"),,Object(n.__)("AffiliateX","affiliatex")],attributes:Dt,example:{attributes:{}},edit:({attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n})=>Object(i.createElement)(Gt,{attributes:e,setAttributes:t,className:a,isSelected:o,clientId:n}),save:({attributes:e,className:t})=>Object(i.createElement)(Zt,{attributes:e,className:t})});var Xt=a(36),Kt=a(60),Qt=a(61);const{Toolbar:Yt,IconButton:Jt}=wp.components;Object(Xt.registerFormatType)("affiliatex/tick-icon",{title:"Tick",tagName:"tick",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"yes",title:"Tick",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-check" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}}),Object(Xt.registerFormatType)("affiliatex/check-icon",{title:"Check",tagName:"check",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"yes-alt",title:"Check",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-check-circle" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}}),Object(Xt.registerFormatType)("affiliatex/wrong-icon",{title:"Wrong",tagName:"wrong",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"no-alt",title:"Wrong",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-times" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}}),Object(Xt.registerFormatType)("affiliatex/cross-icon",{title:"Cross",tagName:"cross",className:null,edit:function(e){const t=Object(Qt.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]);return t&&"affiliatex/versus-line"!==t.name&&t&&"affiliatex/versus"!==t.name&&t&&"affiliatex/product-comparison"!==t.name?null:Object(i.createElement)(Kt.BlockControls,null,Object(i.createElement)(Yt,null,Object(i.createElement)(Jt,{icon:"dismiss",title:"Cross",onClick:()=>{let t=Object(Xt.create)({html:'<i class="fas fa-times-circle" aria-hidden="true"> </i>'});e.onChange(Object(Xt.insert)(e.value,t))},isActive:e.isActive})))}});const ea=AffiliateX.customizationData;if("custom"===ea.editorWidth){let e=document.createElement("style");e.innerHTML=`\n\t#editor .editor-styles-wrapper .wp-block{\n\tmax-width: ${ea.editorCustomWidth}px\n\t}\n`,document.head.appendChild(e)}if("custom"===ea.editorSidebarWidth){let e=document.createElement("style");e.innerHTML=`\n\t#editor .is-sidebar-opened .interface-interface-skeleton__sidebar, #editor .is-sidebar-opened .interface-complementary-area{\n\twidth: ${ea.editorCustomSidebarWidth}px\n\t}\n`,document.head.appendChild(e)}}]);
  • affiliatex/trunk/changelog.txt

    r2751583 r2832117  
     1
     2
     3
    141.2.0: 2022-07-04
    25- Fixes: Minor Bug Fixes.
  • affiliatex/trunk/includes/AffiliateX.php

    r2751896 r2832117  
    2020     * Version
    2121     */
    22     public $version = '1.2.0';
     22    public $version = '1.2.';
    2323
    2424    /**
  • affiliatex/trunk/languages/affiliatex.pot

    r2751910 r2832117  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: AffiliateX 1.2.0\n"
     5"Project-Id-Version: AffiliateX 1.2.\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/affiliatex\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-07-05T05:34:04+00:00\n"
     12"POT-Creation-Date: 2022-+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.5.0\n"
  • affiliatex/trunk/readme.txt

    r2751896 r2832117  
    44Tags: affiliates, affiliate plugin, affiliate marketing, gutenberg, amazon affiliate
    55Requires at least: 5.8
    6 Tested up to: 6.0
     6Tested up to: 6.
    77Requires PHP: 7.0
    8 Stable tag: 1.2.0
     8Stable tag: 1.2.
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    114114== Changelog ==
    115115
    116 = 1.2.0 - 4th July 2022 =
     116= 1.2.1 - 12th December, 2022 =
     117* Compatibility updates.
     118
     119= 1.2.0 - 4th July 2022 =
    117120* Fixes: Minor Bug Fixes.
    118121
  • affiliatex/trunk/vendor/autoload.php

    r2751896 r2832117  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit80882385bc670edcca69120ecf19dd46::getLoader();
     7return ComposerAutoloaderInit::getLoader();
  • affiliatex/trunk/vendor/composer/ClassLoader.php

    r2751896 r2832117  
    4343class ClassLoader
    4444{
     45
     46
     47
    4548    // PSR-4
     49
     50
     51
     52
    4653    private $prefixLengthsPsr4 = array();
     54
     55
     56
     57
    4758    private $prefixDirsPsr4 = array();
     59
     60
     61
     62
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66
     67
     68
     69
    5170    private $prefixesPsr0 = array();
     71
     72
     73
     74
    5275    private $fallbackDirsPsr0 = array();
    5376
     77
    5478    private $useIncludePath = false;
     79
     80
     81
     82
     83
    5584    private $classMap = array();
     85
     86
    5687    private $classMapAuthoritative = false;
     88
     89
     90
     91
     92
    5793    private $missingClasses = array();
     94
     95
    5896    private $apcuPrefix;
    5997
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
    60114    public function getPrefixes()
    61115    {
     
    67121    }
    68122
     123
     124
     125
     126
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132
     133
     134
     135
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141
     142
     143
     144
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150
     151
     152
     153
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    90      * @param array $classMap Class to filename map
     160     * @param string[] $classMap Class to filename map
     161     * @psalm-param array<string, string> $classMap
     162     *
     163     * @return void
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     178     * @param string          $prefix  The prefix
     179     * @param string[]|string $paths   The PSR-0 root directories
     180     * @param bool            $prepend Whether to prepend the directories
     181     *
     182     * @return void
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     225     * @param string       $prefix  The prefix/namespace, with trailing '\\'
     226     * @param |string $paths   The PSR-4 base directories
     227     * @param bool         $prepend Whether to prepend the directories
    153228     *
    154229     * @throws \InvalidArgumentException
     230
     231
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     275     * @param string          $prefix The prefix
     276     * @param string[]|string $paths  The PSR-0 base directories
     277     *
     278     * @return void
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string       $prefix The prefix/namespace, with trailing '\\'
     294     * @param |string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297
     298
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318
     319
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342
     343
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364
     365
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386
     387
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     392
     393
     394
     395
     396
     397
     398
     399
     400
     401
     402
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407
     408
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414
     415
     416
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return |null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433
    326434    }
    327435
     
    368476    }
    369477
     478
     479
     480
     481
     482
     483
     484
     485
     486
     487
     488
     489
     490
     491
     492
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564
     565
     566
     567
    441568 */
    442569function includeFile($file)
  • affiliatex/trunk/vendor/composer/InstalledVersions.php

    r2751896 r2832117  
    11<?php
    22
    3 
    4 
    5 
    6 
    7 
    8 
    9 
    10 
    11 
     3/*
     4 * This file is part of Composer.
     5 *
     6 * (c) Nils Adermann <naderman@naderman.de>
     7 *     Jordi Boggiano <j.boggiano@seld.be>
     8 *
     9 * For the full copyright and license information, please view the LICENSE
     10 * file that was distributed with this source code.
     11 */
    1212
    1313namespace Composer;
    1414
     15
    1516use Composer\Semver\VersionParser;
    1617
    17 
    18 
    19 
    20 
    21 
     18/**
     19 * This class is copied in every Composer installed project and available to all
     20 *
     21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
     22 *
     23 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 */
    2225class InstalledVersions
    2326{
    24 private static $installed = array (
    25   'root' =>
    26   array (
    27     'pretty_version' => 'dev-master',
    28     'version' => 'dev-master',
    29     'aliases' =>
    30     array (
    31     ),
    32     'reference' => '6683eaf42673b45f1f6627de39befe0759fe5376',
    33     'name' => 'avee/affiliatex',
    34   ),
    35   'versions' =>
    36   array (
    37     'avee/affiliatex' =>
    38     array (
    39       'pretty_version' => 'dev-master',
    40       'version' => 'dev-master',
    41       'aliases' =>
    42       array (
    43       ),
    44       'reference' => '6683eaf42673b45f1f6627de39befe0759fe5376',
    45     ),
    46   ),
    47 );
    48 
    49 
    50 
    51 
    52 
    53 
    54 
    55 public static function getInstalledPackages()
    56 {
    57 return array_keys(self::$installed['versions']);
     27    private static $installed;
     28    private static $canGetVendors;
     29    private static $installedByVendor = array();
     30
     31    /**
     32     * Returns a list of all package names which are present, either by being installed, replaced or provided
     33     *
     34     * @return string[]
     35     * @psalm-return list<string>
     36     */
     37    public static function getInstalledPackages()
     38    {
     39        $packages = array();
     40        foreach (self::getInstalled() as $installed) {
     41            $packages[] = array_keys($installed['versions']);
     42        }
     43
     44        if (1 === \count($packages)) {
     45            return $packages[0];
     46        }
     47
     48        return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
     49    }
     50
     51    /**
     52     * Returns a list of all package names with a specific type e.g. 'library'
     53     *
     54     * @param  string   $type
     55     * @return string[]
     56     * @psalm-return list<string>
     57     */
     58    public static function getInstalledPackagesByType($type)
     59    {
     60        $packagesByType = array();
     61
     62        foreach (self::getInstalled() as $installed) {
     63            foreach ($installed['versions'] as $name => $package) {
     64                if (isset($package['type']) && $package['type'] === $type) {
     65                    $packagesByType[] = $name;
     66                }
     67            }
     68        }
     69
     70        return $packagesByType;
     71    }
     72
     73    /**
     74     * Checks whether the given package is installed
     75     *
     76     * This also returns true if the package name is provided or replaced by another package
     77     *
     78     * @param  string $packageName
     79     * @param  bool   $includeDevRequirements
     80     * @return bool
     81     */
     82    public static function isInstalled($packageName, $includeDevRequirements = true)
     83    {
     84        foreach (self::getInstalled() as $installed) {
     85            if (isset($installed['versions'][$packageName])) {
     86                return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     87            }
     88        }
     89
     90        return false;
     91    }
     92
     93    /**
     94     * Checks whether the given package satisfies a version constraint
     95     *
     96     * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
     97     *
     98     *   Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
     99     *
     100     * @param  VersionParser $parser      Install composer/semver to have access to this class and functionality
     101     * @param  string        $packageName
     102     * @param  string|null   $constraint  A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
     103     * @return bool
     104     */
     105    public static function satisfies(VersionParser $parser, $packageName, $constraint)
     106    {
     107        $constraint = $parser->parseConstraints($constraint);
     108        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
     109
     110        return $provided->matches($constraint);
     111    }
     112
     113    /**
     114     * Returns a version constraint representing all the range(s) which are installed for a given package
     115     *
     116     * It is easier to use this via isInstalled() with the $constraint argument if you need to check
     117     * whether a given version of a package is installed, and not just whether it exists
     118     *
     119     * @param  string $packageName
     120     * @return string Version constraint usable with composer/semver
     121     */
     122    public static function getVersionRanges($packageName)
     123    {
     124        foreach (self::getInstalled() as $installed) {
     125            if (!isset($installed['versions'][$packageName])) {
     126                continue;
     127            }
     128
     129            $ranges = array();
     130            if (isset($installed['versions'][$packageName]['pretty_version'])) {
     131                $ranges[] = $installed['versions'][$packageName]['pretty_version'];
     132            }
     133            if (array_key_exists('aliases', $installed['versions'][$packageName])) {
     134                $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
     135            }
     136            if (array_key_exists('replaced', $installed['versions'][$packageName])) {
     137                $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
     138            }
     139            if (array_key_exists('provided', $installed['versions'][$packageName])) {
     140                $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
     141            }
     142
     143            return implode(' || ', $ranges);
     144        }
     145
     146        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     147    }
     148
     149    /**
     150     * @param  string      $packageName
     151     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
     152     */
     153    public static function getVersion($packageName)
     154    {
     155        foreach (self::getInstalled() as $installed) {
     156            if (!isset($installed['versions'][$packageName])) {
     157                continue;
     158            }
     159
     160            if (!isset($installed['versions'][$packageName]['version'])) {
     161                return null;
     162            }
     163
     164            return $installed['versions'][$packageName]['version'];
     165        }
     166
     167        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     168    }
     169
     170    /**
     171     * @param  string      $packageName
     172     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
     173     */
     174    public static function getPrettyVersion($packageName)
     175    {
     176        foreach (self::getInstalled() as $installed) {
     177            if (!isset($installed['versions'][$packageName])) {
     178                continue;
     179            }
     180
     181            if (!isset($installed['versions'][$packageName]['pretty_version'])) {
     182                return null;
     183            }
     184
     185            return $installed['versions'][$packageName]['pretty_version'];
     186        }
     187
     188        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     189    }
     190
     191    /**
     192     * @param  string      $packageName
     193     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
     194     */
     195    public static function getReference($packageName)
     196    {
     197        foreach (self::getInstalled() as $installed) {
     198            if (!isset($installed['versions'][$packageName])) {
     199                continue;
     200            }
     201
     202            if (!isset($installed['versions'][$packageName]['reference'])) {
     203                return null;
     204            }
     205
     206            return $installed['versions'][$packageName]['reference'];
     207        }
     208
     209        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     210    }
     211
     212    /**
     213     * @param  string      $packageName
     214     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
     215     */
     216    public static function getInstallPath($packageName)
     217    {
     218        foreach (self::getInstalled() as $installed) {
     219            if (!isset($installed['versions'][$packageName])) {
     220                continue;
     221            }
     222
     223            return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
     224        }
     225
     226        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
     227    }
     228
     229    /**
     230     * @return array
     231     * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     232     */
     233    public static function getRootPackage()
     234    {
     235        $installed = self::getInstalled();
     236
     237        return $installed[0]['root'];
     238    }
     239
     240    /**
     241     * Returns the raw installed.php data for custom implementations
     242     *
     243     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
     244     * @return array[]
     245     * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     246     */
     247    public static function getRawData()
     248    {
     249        @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
     250
     251        if (null === self::$installed) {
     252            // only require the installed.php file if this file is loaded from its dumped location,
     253            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
     254            if (substr(__DIR__, -8, 1) !== 'C') {
     255                self::$installed = include __DIR__ . '/installed.php';
     256            } else {
     257                self::$installed = array();
     258            }
     259        }
     260
     261        return self::$installed;
     262    }
     263
     264    /**
     265     * Returns the raw data of all installed.php which are currently loaded for custom implementations
     266     *
     267     * @return array[]
     268     * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     269     */
     270    public static function getAllRawData()
     271    {
     272        return self::getInstalled();
     273    }
     274
     275    /**
     276     * Lets you reload the static array from another file
     277     *
     278     * This is only useful for complex integrations in which a project needs to use
     279     * this class but then also needs to execute another project's autoloader in process,
     280     * and wants to ensure both projects have access to their version of installed.php.
     281     *
     282     * A typical case would be PHPUnit, where it would need to make sure it reads all
     283     * the data it needs from this class, then call reload() with
     284     * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
     285     * the project in which it runs can then also use this class safely, without
     286     * interference between PHPUnit's dependencies and the project's dependencies.
     287     *
     288     * @param  array[] $data A vendor/composer/installed.php data set
     289     * @return void
     290     *
     291     * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     292     */
     293    public static function reload($data)
     294    {
     295        self::$installed = $data;
     296        self::$installedByVendor = array();
     297    }
     298
     299    /**
     300     * @return array[]
     301     * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     302     */
     303    private static function getInstalled()
     304    {
     305        if (null === self::$canGetVendors) {
     306            self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
     307        }
     308
     309        $installed = array();
     310
     311        if (self::$canGetVendors) {
     312            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     313                if (isset(self::$installedByVendor[$vendorDir])) {
     314                    $installed[] = self::$installedByVendor[$vendorDir];
     315                } elseif (is_file($vendorDir.'/composer/installed.php')) {
     316                    $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     317                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     318                        self::$installed = $installed[count($installed) - 1];
     319                    }
     320                }
     321            }
     322        }
     323
     324        if (null === self::$installed) {
     325            // only require the installed.php file if this file is loaded from its dumped location,
     326            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
     327            if (substr(__DIR__, -8, 1) !== 'C') {
     328                self::$installed = require __DIR__ . '/installed.php';
     329            } else {
     330                self::$installed = array();
     331            }
     332        }
     333        $installed[] = self::$installed;
     334
     335        return $installed;
     336    }
    58337}
    59 
    60 
    61 
    62 
    63 
    64 
    65 
    66 
    67 
    68 public static function isInstalled($packageName)
    69 {
    70 return isset(self::$installed['versions'][$packageName]);
    71 }
    72 
    73 
    74 
    75 
    76 
    77 
    78 
    79 
    80 
    81 
    82 
    83 
    84 
    85 
    86 public static function satisfies(VersionParser $parser, $packageName, $constraint)
    87 {
    88 $constraint = $parser->parseConstraints($constraint);
    89 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    90 
    91 return $provided->matches($constraint);
    92 }
    93 
    94 
    95 
    96 
    97 
    98 
    99 
    100 
    101 
    102 
    103 public static function getVersionRanges($packageName)
    104 {
    105 if (!isset(self::$installed['versions'][$packageName])) {
    106 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    107 }
    108 
    109 $ranges = array();
    110 if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
    111 $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
    112 }
    113 if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
    114 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
    115 }
    116 if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
    117 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
    118 }
    119 if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
    120 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
    121 }
    122 
    123 return implode(' || ', $ranges);
    124 }
    125 
    126 
    127 
    128 
    129 
    130 public static function getVersion($packageName)
    131 {
    132 if (!isset(self::$installed['versions'][$packageName])) {
    133 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    134 }
    135 
    136 if (!isset(self::$installed['versions'][$packageName]['version'])) {
    137 return null;
    138 }
    139 
    140 return self::$installed['versions'][$packageName]['version'];
    141 }
    142 
    143 
    144 
    145 
    146 
    147 public static function getPrettyVersion($packageName)
    148 {
    149 if (!isset(self::$installed['versions'][$packageName])) {
    150 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    151 }
    152 
    153 if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
    154 return null;
    155 }
    156 
    157 return self::$installed['versions'][$packageName]['pretty_version'];
    158 }
    159 
    160 
    161 
    162 
    163 
    164 public static function getReference($packageName)
    165 {
    166 if (!isset(self::$installed['versions'][$packageName])) {
    167 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
    168 }
    169 
    170 if (!isset(self::$installed['versions'][$packageName]['reference'])) {
    171 return null;
    172 }
    173 
    174 return self::$installed['versions'][$packageName]['reference'];
    175 }
    176 
    177 
    178 
    179 
    180 
    181 public static function getRootPackage()
    182 {
    183 return self::$installed['root'];
    184 }
    185 
    186 
    187 
    188 
    189 
    190 
    191 
    192 public static function getRawData()
    193 {
    194 return self::$installed;
    195 }
    196 
    197 
    198 
    199 
    200 
    201 
    202 
    203 
    204 
    205 
    206 
    207 
    208 
    209 
    210 
    211 
    212 
    213 
    214 
    215 public static function reload($data)
    216 {
    217 self::$installed = $data;
    218 }
    219 }
  • affiliatex/trunk/vendor/composer/autoload_real.php

    r2751896 r2832117  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit80882385bc670edcca69120ecf19dd46
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit80882385bc670edcca69120ecf19dd46', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInit80882385bc670edcca69120ecf19dd46', 'loadClassLoader'));
     25        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
     26        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     27        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit80882385bc670edcca69120ecf19dd46::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInit80882385bc670edcca69120ecf19dd46::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInit::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequire80882385bc670edcca69120ecf19dd46($fileIdentifier, $file);
     59            composerRequire($fileIdentifier, $file);
    6060        }
    6161
     
    6464}
    6565
    66 function composerRequire80882385bc670edcca69120ecf19dd46($fileIdentifier, $file)
     66function composerRequire($fileIdentifier, $file)
    6767{
    6868    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • affiliatex/trunk/vendor/composer/autoload_static.php

    r2751896 r2832117  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit80882385bc670edcca69120ecf19dd46
     7class ComposerStaticInit
    88{
    99    public static $files = array (
     
    3333    {
    3434        return \Closure::bind(function () use ($loader) {
    35             $loader->prefixLengthsPsr4 = ComposerStaticInit80882385bc670edcca69120ecf19dd46::$prefixLengthsPsr4;
    36             $loader->prefixDirsPsr4 = ComposerStaticInit80882385bc670edcca69120ecf19dd46::$prefixDirsPsr4;
    37             $loader->classMap = ComposerStaticInit80882385bc670edcca69120ecf19dd46::$classMap;
     35            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     36            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     37            $loader->classMap = ComposerStaticInit::$classMap;
    3838
    3939        }, null, ClassLoader::class);
  • affiliatex/trunk/vendor/composer/installed.json

    r2666671 r2832117  
    11{
    22    "packages": [],
    3     "dev": true,
     3    "dev": e,
    44    "dev-package-names": []
    55}
  • affiliatex/trunk/vendor/composer/installed.php

    r2751896 r2832117  
    1 <?php return array (
    2   'root' =>
    3   array (
    4     'pretty_version' => 'dev-master',
    5     'version' => 'dev-master',
    6     'aliases' =>
    7     array (
     1<?php return array(
     2    'root' => array(
     3        'pretty_version' => 'dev-master',
     4        'version' => 'dev-master',
     5        'type' => 'wordpress-plugin',
     6        'install_path' => __DIR__ . '/../../',
     7        'aliases' => array(),
     8        'reference' => 'b81154664e09a2b45817395a5cccfd05d7775d14',
     9        'name' => 'avee/affiliatex',
     10        'dev' => false,
    811    ),
    9     'reference' => '6683eaf42673b45f1f6627de39befe0759fe5376',
    10     'name' => 'avee/affiliatex',
    11   ),
    12   'versions' =>
    13   array (
    14     'avee/affiliatex' =>
    15     array (
    16       'pretty_version' => 'dev-master',
    17       'version' => 'dev-master',
    18       'aliases' =>
    19       array (
    20       ),
    21       'reference' => '6683eaf42673b45f1f6627de39befe0759fe5376',
     12    'versions' => array(
     13        'avee/affiliatex' => array(
     14            'pretty_version' => 'dev-master',
     15            'version' => 'dev-master',
     16            'type' => 'wordpress-plugin',
     17            'install_path' => __DIR__ . '/../../',
     18            'aliases' => array(),
     19            'reference' => 'b81154664e09a2b45817395a5cccfd05d7775d14',
     20            'dev_requirement' => false,
     21        ),
    2222    ),
    23   ),
    2423);
Note: See TracChangeset for help on using the changeset viewer.