Plugin Directory

Changeset 2970135


Ignore:
Timestamp:
09/22/2023 09:30:50 AM (3 years ago)
Author:
onecommerce
Message:

Hotfix plugin version 2.10.2

Location:
transcy/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • transcy/trunk/assets/js/transcy-deactive-modal.js

    r2968586 r2970135  
    22`;for(let E=0;E<=1;E+=u){const f=t+(n-t)*r(E);d+=E*100+`%{${i(f,1-f)}}
    33`}const C=d+`100% {${i(n,1-n)}}
    4 }`,_=`__svelte_${he(C)}_${s}`,p=Yt(e),{stylesheet:y,rules:h}=pt.get(p)||_e(p,e);h[_]||(h[_]=!0,y.insertRule(`@keyframes ${_} ${C}`,y.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${_} ${l}ms linear ${a}ms 1 both`,ht+=1,_}function Ce(e,t){const n=(e.style.animation||"").split(", "),l=n.filter(t?r=>r.indexOf(t)<0:r=>r.indexOf("__svelte")===-1),a=n.length-l.length;a&&(e.style.animation=l.join(", "),ht-=a,ht||me())}function me(){St(()=>{ht||(pt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&A(t)}),pt.clear())})}let Q;function J(e){Q=e}function ge(){if(!Q)throw new Error("Function called outside component initialization");return Q}function Wt(e){ge().$$.on_mount.push(e)}function Ee(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(l=>l.call(this,t))}const V=[],_t=[];let G=[];const Mt=[],ye=Promise.resolve();let Nt=!1;function Le(){Nt||(Nt=!0,ye.then(qt))}function X(e){G.push(e)}function ve(e){Mt.push(e)}const kt=new Set;let H=0;function qt(){if(H!==0)return;const e=Q;do{try{for(;H<V.length;){const t=V[H];H++,J(t),we(t.$$)}}catch(t){throw V.length=0,H=0,t}for(J(null),V.length=0,H=0;_t.length;)_t.pop()();for(let t=0;t<G.length;t+=1){const n=G[t];kt.has(n)||(kt.add(n),n())}G.length=0}while(V.length);for(;Mt.length;)Mt.pop()();Nt=!1,kt.clear(),J(e)}function we(e){if(e.fragment!==null){e.update(),U(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(X)}}function ke(e){const t=[],n=[];G.forEach(l=>e.indexOf(l)===-1?t.push(l):n.push(l)),n.forEach(l=>l()),G=t}let z;function $e(){return z||(z=Promise.resolve(),z.then(()=>{z=null})),z}function $t(e,t,n){e.dispatchEvent(pe(`${t?"intro":"outro"}${n}`))}const dt=new Set;let I;function Te(){I={r:0,c:[],p:I}}function be(){I.r||U(I.c),I=I.p}function b(e,t){e&&e.i&&(dt.delete(e),e.i(t))}function O(e,t,n,l){if(e&&e.o){if(dt.has(e))return;dt.add(e),I.c.push(()=>{dt.delete(e),l&&(n&&e.d(1),l())}),e.o(t)}else l&&l()}const Me={duration:0};function Rt(e,t,n,l){let r=t(e,n,{direction:"both"}),i=l?0:1,s=null,u=null,d=null,C;function _(){d&&Ce(e,d)}function p(h,g){const E=h.b-i;return g*=Math.abs(E),{a:i,b:h.b,d:E,duration:g,start:h.start,end:h.start+g,group:h.group}}function y(h){const{delay:g=0,duration:E=300,easing:f=te,tick:L=M,css:w}=r||Me,v={start:oe()+g,b:h};h||(v.group=I,I.r+=1),"inert"in e&&(h?C!==void 0&&(e.inert=C):(C=e.inert,e.inert=!0)),s||u?u=v:(w&&(_(),d=It(e,i,h,E,g,f,w)),h&&L(0,1),s=p(v,E),X(()=>$t(e,h,"start")),le($=>{if(u&&$>u.start&&(s=p(u,E),u=null,$t(e,s.b,"start"),w&&(_(),d=It(e,i,s.b,s.duration,0,f,r.css))),s){if($>=s.end)L(i=s.b,1-i),$t(e,s.b,"end"),u||(s.b?_():--s.group.r||U(s.group.c)),s=null;else if($>=s.start){const k=$-s.start;i=s.a+s.d*f(k/s.duration),L(i,1-i)}}return!!(s||u)}))}return{run(h){Ft(r)?$e().then(()=>{r=r({direction:h?"in":"out"}),y(h)}):y(h)},end(){_(),s=u=null}}}function Ut(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ne(e,t,n){const l=e.$$.props[t];l!==void 0&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function tt(e){e&&e.c()}function K(e,t,n){const{fragment:l,after_update:a}=e.$$;l&&l.m(t,n),X(()=>{const r=e.$$.on_mount.map(Gt).filter(Ft);e.$$.on_destroy?e.$$.on_destroy.push(...r):U(r),e.$$.on_mount=[]}),a.forEach(X)}function P(e,t){const n=e.$$;n.fragment!==null&&(ke(n.after_update),U(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Fe(e,t){e.$$.dirty[0]===-1&&(V.push(e),Le(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Y(e,t,n,l,a,r,i,s=[-1]){const u=Q;J(e);const d=e.$$={fragment:null,ctx:[],props:r,update:M,not_equal:a,bound:At(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:At(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};i&&i(d.root);let C=!1;if(d.ctx=n?n(e,t.props||{},(_,p,...y)=>{const h=y.length?y[0]:p;return d.ctx&&a(d.ctx[_],d.ctx[_]=h)&&(!d.skip_bound&&d.bound[_]&&d.bound[_](h),C&&Fe(e,_)),p}):[],d.update(),C=!0,U(d.before_update),d.fragment=l?l(d.ctx):!1,t.target){if(t.hydrate){const _=de(t.target);d.fragment&&d.fragment.l(_),_.forEach(A)}else d.fragment&&d.fragment.c();t.intro&&b(e.$$.fragment),K(e,t.target,t.anchor),qt()}J(u)}class W{constructor(){Et(this,"$$");Et(this,"$$set")}$destroy(){P(this,1),this.$destroy=M}$on(t,n){if(!Ft(n))return M;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(n),()=>{const a=l.indexOf(n);a!==-1&&l.splice(a,1)}}$set(t){this.$$set&&!ne(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Se="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Se);function Oe(e){const t=e-1;return t*t*t+1}function Dt(e,{delay:t=0,duration:n=400,easing:l=Oe,axis:a="y"}={}){const r=getComputedStyle(e),i=+r.opacity,s=a==="y"?"height":"width",u=parseFloat(r[s]),d=a==="y"?["top","bottom"]:["left","right"],C=d.map(f=>`${f[0].toUpperCase()}${f.slice(1)}`),_=parseFloat(r[`padding${C[0]}`]),p=parseFloat(r[`padding${C[1]}`]),y=parseFloat(r[`margin${C[0]}`]),h=parseFloat(r[`margin${C[1]}`]),g=parseFloat(r[`border${C[0]}Width`]),E=parseFloat(r[`border${C[1]}Width`]);return{delay:t,duration:n,easing:l,css:f=>`overflow: hidden;opacity: ${Math.min(f*20,1)*i};${s}: ${f*u}px;padding-${d[0]}: ${f*_}px;padding-${d[1]}: ${f*p}px;margin-${d[0]}: ${f*y}px;margin-${d[1]}: ${f*h}px;border-${d[0]}-width: ${f*g}px;border-${d[1]}-width: ${f*E}px;`}}function Ae(e){let t,n,l,a,r,i,s,u,d,C,_,p,y,h,g,E,f,L,w,v,$,k,Z,et,nt,ot,lt,it,rt,st,at,ct,B,ut,F,Ct,ft,S,mt,q;return{c(){t=m("svg"),n=m("path"),l=m("g"),a=m("path"),r=m("path"),i=m("path"),s=m("path"),u=m("path"),d=m("path"),C=m("path"),_=m("path"),p=m("path"),y=m("path"),h=m("path"),g=m("path"),E=m("path"),f=m("path"),L=m("path"),w=m("path"),v=m("path"),$=m("path"),k=m("path"),Z=m("path"),et=m("path"),nt=m("path"),ot=m("path"),lt=m("path"),it=m("path"),rt=m("path"),st=m("path"),at=m("path"),ct=m("path"),B=m("path"),ut=m("defs"),F=m("radialGradient"),Ct=m("stop"),ft=m("stop"),S=m("linearGradient"),mt=m("stop"),q=m("stop"),o(n,"d","M57.7262 51.485C57.7266 65.1143 46.4098 76.1771 32.4318 76.1771C18.4538 76.1771 7.1363 65.1143 7.13592 51.485C7.13553 37.8557 18.4524 26.7929 32.4304 26.7929C46.4084 26.7929 57.7259 37.8557 57.7262 51.485Z"),o(n,"fill","url(#paint0_radial_13272_68779)"),o(n,"stroke","black"),o(n,"stroke-width","0.696203"),o(a,"d","M44.2586 71.4899C47.5085 69.6624 44.8163 59.1948 38.2455 48.1098C31.6747 37.0249 23.7134 29.5203 20.4635 31.3478C17.2136 33.1753 19.9058 43.6429 26.4767 54.7278C33.0475 65.8127 41.0088 73.3174 44.2586 71.4899Z"),o(a,"stroke","#BEE0FF"),o(a,"stroke-width","0.696203"),o(a,"stroke-miterlimit","10"),o(r,"d","M44.3149 71.4522C51.204 67.5786 51.461 55.4514 44.889 44.3654C38.317 33.2793 27.4047 27.4325 20.5156 31.3062"),o(r,"stroke","#BEE0FF"),o(r,"stroke-width","0.696203"),o(r,"stroke-miterlimit","10"),o(i,"d","M44.2981 71.5378C53.4479 66.3978 55.5205 53.2237 48.9274 42.1125C42.3344 31.0013 29.5723 26.1607 20.4226 31.3007C11.2728 36.4406 9.2002 49.6148 15.7933 60.726C22.3863 71.8372 35.1484 76.6778 44.2981 71.5378Z"),o(i,"stroke","#BEE0FF"),o(i,"stroke-width","0.696203"),o(i,"stroke-miterlimit","10"),o(s,"d","M28.8933 45.5693C40.2014 39.2106 50.921 36.6745 52.8364 39.9058C54.7519 43.137 47.137 50.9108 35.829 57.2696C24.5209 63.6283 13.8012 66.1644 11.8858 62.9331C9.97038 59.7019 17.5852 51.9281 28.8933 45.5693Z"),o(s,"stroke","#BEE0FF"),o(s,"stroke-width","0.696203"),o(s,"stroke-miterlimit","10"),o(u,"d","M39.6988 63.7892C50.9889 57.4459 56.8559 46.7661 52.8032 39.9351C48.7505 33.1041 36.3127 32.7088 25.0226 39.052C13.7325 45.3953 7.86545 56.0752 11.9182 62.9062C15.9709 69.7372 28.4087 70.1325 39.6988 63.7892Z"),o(u,"stroke","#BEE0FF"),o(u,"stroke-width","0.696203"),o(u,"stroke-miterlimit","10"),o(d,"d","M42.068 67.7796C53.3493 61.4423 58.1485 48.9803 52.7872 39.9451C47.426 30.91 33.9345 28.7229 22.6532 35.0603C11.3719 41.3977 6.57271 53.8596 11.934 62.8948C17.2952 71.93 30.7867 74.117 42.068 67.7796Z"),o(d,"stroke","#BEE0FF"),o(d,"stroke-width","0.696203"),o(d,"stroke-miterlimit","10"),o(l,"opacity","0.4"),o(C,"d","M30.0629 34.0686C30.9143 35.2681 30.9912 36.6758 30.2346 37.2129C29.478 37.75 28.1744 37.2131 27.323 36.0136C26.4715 34.8142 26.3946 33.4064 27.1512 32.8693C27.9078 32.3322 29.2114 32.8692 30.0629 34.0686Z"),o(C,"fill","black"),o(_,"d","M19.7943 41.3596C20.6458 42.5591 20.7227 43.9669 19.9661 44.504C19.2095 45.041 17.9059 44.5041 17.0544 43.3046C16.2029 42.1052 16.126 40.6974 16.8826 40.1603C17.6392 39.6232 18.9428 40.1602 19.7943 41.3596Z"),o(_,"fill","black"),o(p,"d","M24.3492 46.993C24.3726 49.5765 27.6697 48.4264 29.0109 45.057C32.6338 44.1978 34.3551 41.5245 31.7479 40.8619"),o(p,"stroke","black"),o(p,"stroke-width","0.696203"),o(p,"stroke-linecap","round"),o(p,"stroke-linejoin","round"),o(y,"d","M61.3775 76.1191C75.9023 77.2245 88.5946 66.6229 89.7267 52.4398C90.8587 38.2566 80.0018 25.8628 65.477 24.7574C50.9523 23.652 38.26 34.2536 37.128 48.4367C35.9959 62.6198 46.8528 75.0137 61.3775 76.1191Z"),o(y,"fill","#FAAD14"),o(h,"d","M76.9922 41.2667L72.8456 40.4923L73.6539 36.3653L71.9958 34.2799L57.0441 31.4877C55.3894 31.1786 53.7983 32.2335 53.4818 33.8492L48.1186 61.2326C47.8022 62.8483 48.8824 64.4021 50.5371 64.7111L70.4728 68.4341C72.1274 68.7431 73.7186 67.6883 74.035 66.0725L78.445 43.5559L76.9922 41.2667Z"),o(h,"fill","white"),o(g,"d","M78.7132 42.194L78.4463 43.5567L71.4688 42.2537C70.9106 42.1494 70.5559 41.6392 70.6626 41.0942L71.9971 34.2808L72.9939 34.4669C73.0537 34.4781 73.1334 34.493 73.1894 34.5236C74.0229 34.6994 74.6473 35.0986 75.0741 35.6626L78.188 39.9166C78.6793 40.5734 78.8695 41.3959 78.7132 42.194Z"),o(g,"fill","#F1F4F8"),o(E,"d","M68.6656 40.7103C68.5566 41.2618 68.0326 41.6141 67.4748 41.5109L57.5138 39.6686C56.956 39.5654 56.6034 39.051 56.7125 38.4995C56.8215 37.948 57.3455 37.5957 57.9033 37.6989L67.8643 39.5412C68.4221 39.6444 68.7747 40.1588 68.6656 40.7103Z"),o(E,"fill","#2F43D7"),o(f,"d","M73.489 47.7293C73.3799 48.2821 72.8558 48.6351 72.2978 48.5317L56.3567 45.5776C55.7988 45.4742 55.4461 44.9587 55.5552 44.4059C55.6643 43.8532 56.1884 43.5002 56.7463 43.6036L72.6875 46.5577C73.2454 46.6611 73.5981 47.1766 73.489 47.7293Z"),o(f,"fill","#2F43D7"),o(L,"d","M72.3464 53.5707C72.2373 54.1234 71.7132 54.4764 71.1553 54.373L55.2141 51.4189C54.6562 51.3155 54.3035 50.8 54.4126 50.2473C54.5217 49.6945 55.0458 49.3415 55.6037 49.4449L71.5449 52.399C72.1028 52.5024 72.4555 53.0179 72.3464 53.5707Z"),o(L,"fill","#2F43D7"),o(w,"d","M65.2213 58.2953C65.1122 58.8468 64.5882 59.199 64.0304 59.0959L54.0695 57.2536C53.5116 57.1504 53.1591 56.636 53.2681 56.0845C53.3772 55.5329 53.9012 55.1807 54.459 55.2838L64.42 57.1262C64.9778 57.2293 65.3304 57.7437 65.2213 58.2953Z"),o(w,"fill","#2F43D7"),o(v,"d","M73.1231 58.4913L71.8843 57.0089L69.6385 57.3966L69.6148 57.4124L69.2195 57.7421C68.8519 58.0367 68.5763 58.3888 68.3452 58.8299L66.6847 62.4547C66.5363 62.7902 66.5835 63.1824 66.8368 63.4719C67.1024 63.804 67.5371 63.9054 67.8429 63.8212L71.7962 62.9452C72.2491 62.8482 72.7012 62.6501 73.049 62.3518L73.4686 62.0064L74.1132 59.665L73.1231 58.4913Z"),o(v,"fill","#BEE0FF"),o($,"d","M85.2593 51.5352C85.352 50.7454 85.1038 49.9726 84.6172 49.3974C84.0983 48.7759 83.3865 48.4008 82.5777 48.3103C81.7688 48.2198 80.9587 48.4519 80.3422 48.9623L79.5356 49.5986L78.8227 51.8668L79.8965 53.1368L81.0993 54.5923L83.3888 54.1925L84.1678 53.5914C84.1716 53.5719 84.1716 53.5719 84.1716 53.5719C84.8081 53.0653 85.1865 52.3288 85.2593 51.5352Z"),o($,"fill","#5062E9"),o(k,"d","M81.4629 51.8959L81.4623 51.8951L79.5363 49.5989L69.6161 57.412L71.5588 59.7322L71.5599 59.7337L73.4693 62.0059L83.3894 54.1929L81.4629 51.8959Z"),o(k,"fill","#BEE0FF"),o(Z,"d","M82.5093 10.2928C81.879 6.2317 85.3708 2.424 85.4181 2.37399C85.6544 2.12396 86.0485 2.11081 86.3032 2.33382C86.5595 2.5674 86.5756 2.95427 86.35 3.20275C86.3028 3.25276 81.6741 8.31503 84.7427 12.4163C85.8393 13.881 87.9387 14.7157 90.0976 15.0121C90.1923 14.7716 90.2961 14.5188 90.4231 14.2736C91.588 11.9232 93.7 10.2156 95.4602 10.2124C96.4827 10.2066 97.3273 10.756 97.8343 11.7537C98.5576 13.1528 98.1311 14.4463 96.681 15.3132C95.3718 16.0952 93.2178 16.4683 90.9957 16.3322C90.686 17.5981 90.6621 19.288 91.8828 20.843C96.56 26.8005 103.254 22.2103 103.543 22.0175C103.821 21.8263 104.216 21.8888 104.413 22.1633C104.61 22.4379 104.549 22.8249 104.27 23.0161C104.191 23.0708 96.3175 28.5 90.8874 21.5908C89.6808 20.0554 89.2884 18.1657 89.7316 16.1996C87.3427 15.8388 85.034 14.8611 83.7423 13.1325C83.0282 12.2185 82.657 11.2446 82.5093 10.2928ZM96.9055 12.8595C96.8743 12.6586 96.8017 12.4744 96.7108 12.3144C96.4111 11.7303 96.0049 11.4533 95.4659 11.4548C94.2017 11.4627 92.4833 12.941 91.5434 14.8268C91.5027 14.9191 91.4529 15.0236 91.4047 15.1386C93.2427 15.2107 94.9785 14.9082 96.0259 14.2827C96.8205 13.8014 96.9728 13.2931 96.9055 12.8595Z"),o(Z,"fill","#FFD446"),o(et,"d","M35.7153 95.3789C35.7104 95.0343 35.9758 94.7622 36.3173 94.7586C53.7217 94.554 57.6232 86.8391 59.049 81.0442C59.1308 80.7274 59.4633 80.5256 59.7873 80.6063C60.1112 80.687 60.3176 81.0024 60.2363 81.3297C58.7209 87.5044 54.5973 95.7405 36.3282 95.9493C35.9974 95.9524 35.7294 95.6918 35.7153 95.3789Z"),o(et,"fill","#FF6161"),o(nt,"d","M66.6934 93.3234L64.7197 95.1774V90.9326L66.6934 93.3234Z"),o(nt,"fill","#0FB8CB"),o(ot,"d","M81.646 21.3375L79.7217 23.2404V18.9468L81.646 21.3375Z"),o(ot,"fill","#0FB8CB"),o(lt,"d","M56.5729 18.778L55.29 16.436L59.4347 17.607L56.5729 18.778Z"),o(lt,"fill","#FB639E"),o(it,"d","M90.0055 79.882L88.7227 77.54L92.8673 78.711L90.0055 79.882Z"),o(it,"fill","#FB639E"),o(rt,"d","M109.555 6.29828L107.581 6.24949L109.9 4.29785L109.555 6.29828Z"),o(rt,"fill","#F7D665"),o(st,"d","M48.2483 81.7256L43.7178 82.7085L44.1407 84.6149L48.6712 83.632L48.2483 81.7256Z"),o(st,"fill","#F7D665"),o(at,"d","M37.5147 104.744L37.2891 109.325L39.2604 109.42L39.486 104.839L37.5147 104.744Z"),o(at,"fill","#00D08F"),o(ct,"d","M21.3672 56.3896C27.0481 55.7765 44.5416 51.2045 46.4544 54.1954C47.4441 55.7451 43.1655 55.9889 43.1655 55.9889C43.1655 55.9889 45.0592 57.0824 43.3826 60.6309C41.9063 63.7569 30.1414 66.3809 26.552 66.3809"),o(ct,"fill","url(#paint1_linear_13272_68779)"),o(B,"d","M21.3672 56.3896C27.0481 55.7765 44.5416 51.2045 46.4544 54.1954C47.4441 55.7451 43.1655 55.9889 43.1655 55.9889C43.1655 55.9889 45.0592 57.0824 43.3826 60.6309C41.9063 63.7569 30.1414 66.3809 26.552 66.3809"),o(B,"stroke","black"),o(B,"stroke-width","0.696203"),o(B,"stroke-linecap","round"),o(B,"stroke-linejoin","round"),o(Ct,"stop-color","#8BC7FF"),o(ft,"offset","1"),o(ft,"stop-color","#0084FF"),o(F,"id","paint0_radial_13272_68779"),o(F,"cx","0"),o(F,"cy","0"),o(F,"r","1"),o(F,"gradientUnits","userSpaceOnUse"),o(F,"gradientTransform","translate(32.4311 51.485) rotate(89.9984) scale(25.0402 25.6433)"),o(mt,"stop-color","#1B91FF"),o(q,"offset","1"),o(q,"stop-color","#49A8FF"),o(q,"stop-opacity","0.35"),o(S,"id","paint1_linear_13272_68779"),o(S,"x1","38.0618"),o(S,"y1","57.6552"),o(S,"x2","25.9142"),o(S,"y2","59.8457"),o(S,"gradientUnits","userSpaceOnUse"),o(t,"width","110"),o(t,"height","110"),o(t,"viewBox","0 0 110 110"),o(t,"fill","none"),o(t,"xmlns","http://www.w3.org/2000/svg")},m(gt,Jt){D(gt,t,Jt),c(t,n),c(t,l),c(l,a),c(l,r),c(l,i),c(l,s),c(l,u),c(l,d),c(t,C),c(t,_),c(t,p),c(t,y),c(t,h),c(t,g),c(t,E),c(t,f),c(t,L),c(t,w),c(t,v),c(t,$),c(t,k),c(t,Z),c(t,et),c(t,nt),c(t,ot),c(t,lt),c(t,it),c(t,rt),c(t,st),c(t,at),c(t,ct),c(t,B),c(t,ut),c(ut,F),c(F,Ct),c(F,ft),c(ut,S),c(S,mt),c(S,q)},p:M,i:M,o:M,d(gt){gt&&A(t)}}}class Ie extends W{constructor(t){super(),Y(this,t,null,Ae,j,{})}}const zt=async({method:e="GET",url:t="",data:n,headers:l={}})=>{const a={method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${window.transcy_token}`,"x-transcy-hostname":new URL(window.transcy_url).hostname,...l},body:JSON.stringify(n)};return await(await fetch(t,a)).json()};function Re(e){let t,n;return{c(){t=m("svg"),n=m("path"),o(n,"fill-rule","evenodd"),o(n,"clip-rule","evenodd"),o(n,"d","M5.15115 5.6515C5.37618 5.42654 5.68135 5.30016 5.99955 5.30016C6.31775 5.30016 6.62291 5.42654 6.84795 5.6515L11.9995 10.8031L17.1511 5.6515C17.2618 5.53689 17.3943 5.44547 17.5407 5.38258C17.6871 5.31969 17.8445 5.28659 18.0039 5.2852C18.1632 5.28382 18.3212 5.31418 18.4687 5.37452C18.6162 5.43485 18.7502 5.52396 18.8628 5.63663C18.9755 5.7493 19.0646 5.88328 19.1249 6.03076C19.1853 6.17823 19.2156 6.33625 19.2142 6.49558C19.2129 6.65492 19.1798 6.81238 19.1169 6.95879C19.054 7.10519 18.9626 7.23761 18.8479 7.3483L13.6963 12.4999L18.8479 17.6515C19.0665 17.8778 19.1875 18.1809 19.1848 18.4956C19.182 18.8102 19.0558 19.1112 18.8333 19.3337C18.6108 19.5562 18.3099 19.6824 17.9952 19.6851C17.6806 19.6878 17.3775 19.5669 17.1511 19.3483L11.9995 14.1967L6.84795 19.3483C6.62163 19.5669 6.3185 19.6878 6.00387 19.6851C5.68923 19.6824 5.38826 19.5562 5.16577 19.3337C4.94328 19.1112 4.81707 18.8102 4.81434 18.4956C4.81161 18.1809 4.93256 17.8778 5.15115 17.6515L10.3027 12.4999L5.15115 7.3483C4.92618 7.12327 4.7998 6.8181 4.7998 6.4999C4.7998 6.18171 4.92618 5.87654 5.15115 5.6515Z"),o(n,"fill","#718096"),o(t,"xmlns","http://www.w3.org/2000/svg"),o(t,"width","24"),o(t,"height","25"),o(t,"viewBox","0 0 24 25"),o(t,"fill","none")},m(l,a){D(l,t,a),c(t,n)},p:M,i:M,o:M,d(l){l&&A(t)}}}class Ue extends W{constructor(t){super(),Y(this,t,null,Re,j,{})}}const De=e=>({}),Zt=e=>({}),Ze=e=>({}),Bt=e=>({});function Be(e){let t,n,l,a,r,i,s,u,d,C;l=new Ue({});const _=e[3].header,p=yt(_,e,e[2],Bt),y=e[3].default,h=yt(y,e,e[2],null),g=e[3].footer,E=yt(g,e,e[2],Zt);return{c(){t=T("dialog"),n=T("div"),tt(l.$$.fragment),a=N(),r=T("div"),p&&p.c(),i=N(),h&&h.c(),s=N(),E&&E.c(),o(n,"class","tc-dialog__close svelte-1ymoiwn"),o(r,"class","tc-dialog__body svelte-1ymoiwn"),o(t,"class","svelte-1ymoiwn")},m(f,L){D(f,t,L),c(t,n),K(l,n,null),c(t,a),c(t,r),p&&p.m(r,null),c(r,i),h&&h.m(r,null),c(r,s),E&&E.m(r,null),e[6](t),u=!0,d||(C=[R(n,"click",e[5]),R(r,"click",ce(e[4])),R(t,"close",e[7]),R(t,"click",ue(e[8]))],d=!0)},p(f,[L]){p&&p.p&&(!u||L&4)&&vt(p,_,f,f[2],u?Lt(_,f[2],L,Ze):wt(f[2]),Bt),h&&h.p&&(!u||L&4)&&vt(h,y,f,f[2],u?Lt(y,f[2],L,null):wt(f[2]),null),E&&E.p&&(!u||L&4)&&vt(E,g,f,f[2],u?Lt(g,f[2],L,De):wt(f[2]),Zt)},i(f){u||(b(l.$$.fragment,f),b(p,f),b(h,f),b(E,f),u=!0)},o(f){O(l.$$.fragment,f),O(p,f),O(h,f),O(E,f),u=!1},d(f){f&&A(t),P(l),p&&p.d(f),h&&h.d(f),E&&E.d(f),e[6](null),d=!1,U(C)}}}function He(e,t,n){let{$$slots:l={},$$scope:a}=t,{showModal:r=!1}=t,i;function s(p){Ee.call(this,e,p)}const u=()=>n(0,r=!1);function d(p){_t[p?"unshift":"push"](()=>{i=p,n(1,i)})}const C=()=>n(0,r=!1),_=()=>i.close();return e.$$set=p=>{"showModal"in p&&n(0,r=p.showModal),"$$scope"in p&&n(2,a=p.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&i&&(r?(i.showModal(),document.body.style.overflow="hidden"):(i.close(),document.body.style.overflow="auto"))},[r,i,a,l,s,u,d,C,_]}class Ve extends W{constructor(t){super(),Y(this,t,He,Be,j,{showModal:0})}}function Ht(e,t,n){const l=e.slice();return l[12]=t[n],l}function xe(e){let t,n=e[12]+"",l,a,r,i,s,u,d,C,_;return d=fe(e[6][0]),{c(){t=T("label"),l=Ot(n),a=N(),r=T("input"),i=N(),s=T("span"),o(r,"id",e[12]),o(r,"type","radio"),r.__value=e[12],bt(r,r.__value),o(r,"class","svelte-12ehl4u"),o(s,"class","tc-radio__container-checkmark svelte-12ehl4u"),o(s,"data-checked",u=e[1]===e[12]),o(t,"for",e[12]),o(t,"class","tc-radio__container svelte-12ehl4u"),d.p(r)},m(p,y){D(p,t,y),c(t,l),c(t,a),c(t,r),r.checked=r.__value===e[1],c(t,i),c(t,s),C||(_=R(r,"change",e[5]),C=!0)},p(p,y){y&2&&(r.checked=r.__value===p[1]),y&2&&u!==(u=p[1]===p[12])&&o(s,"data-checked",u)},d(p){p&&A(t),d.r(),C=!1,_()}}}function Vt(e){let t,n=e[12]&&xe(e);return{c(){n&&n.c(),t=ae()},m(l,a){n&&n.m(l,a),D(l,t,a)},p(l,a){l[12]&&n.p(l,a)},d(l){l&&A(t),n&&n.d(l)}}}function xt(e){let t,n,l,a,r;return{c(){t=T("textarea"),o(t,"rows","4"),o(t,"placeholder","Fill your feedback here..."),o(t,"class","svelte-12ehl4u")},m(i,s){D(i,t,s),bt(t,e[2]),l=!0,a||(r=R(t,"input",e[7]),a=!0)},p(i,s){s&4&&bt(t,i[2])},i(i){l||(i&&X(()=>{l&&(n||(n=Rt(t,Dt,{},!0)),n.run(1))}),l=!0)},o(i){i&&(n||(n=Rt(t,Dt,{},!1)),n.run(0)),l=!1},d(i){i&&A(t),i&&n&&n.end(),a=!1,r()}}}function Ge(e){let t,n,l,a,r,i,s,u,d,C,_,p,y,h,g,E;l=new Ie({});let f=Ut(e[3]),L=[];for(let v=0;v<f.length;v+=1)L[v]=Vt(Ht(e,f,v));let w=e[1]==="Other"&&xt(e);return{c(){t=T("div"),n=T("div"),tt(l.$$.fragment),a=N(),r=T("div"),r.innerHTML='<div class="tc-deactive-modal__title svelte-12ehl4u">We’re sad to see you go</div> <div class="tc-deactive-modal__subTitle svelte-12ehl4u">Can we know why you want to leave?</div>',i=N(),s=T("div");for(let v=0;v<L.length;v+=1)L[v].c();u=N(),w&&w.c(),d=N(),C=T("div"),_=T("button"),_.textContent="Deactivate",p=N(),y=T("button"),y.textContent="Cancel",o(n,"class","tc-deactive-modal__image svelte-12ehl4u"),o(r,"class","svelte-12ehl4u"),o(s,"class","tc-deactive-modal__feedback-group svelte-12ehl4u"),o(_,"class","tc-deactive-modal__button-primary svelte-12ehl4u"),o(y,"class","tc-deactive-modal__button-cancel svelte-12ehl4u"),o(C,"class","svelte-12ehl4u"),o(t,"class","tc-deactive-modal svelte-12ehl4u")},m(v,$){D(v,t,$),c(t,n),K(l,n,null),c(t,a),c(t,r),c(t,i),c(t,s);for(let k=0;k<L.length;k+=1)L[k]&&L[k].m(s,null);c(s,u),w&&w.m(s,null),c(t,d),c(t,C),c(C,_),c(C,p),c(C,y),h=!0,g||(E=[R(_,"click",e[4]),R(y,"click",e[8])],g=!0)},p(v,$){if($&10){f=Ut(v[3]);let k;for(k=0;k<f.length;k+=1){const Z=Ht(v,f,k);L[k]?L[k].p(Z,$):(L[k]=Vt(Z),L[k].c(),L[k].m(s,u))}for(;k<L.length;k+=1)L[k].d(1);L.length=f.length}v[1]==="Other"?w?(w.p(v,$),$&2&&b(w,1)):(w=xt(v),w.c(),b(w,1),w.m(s,null)):w&&(Te(),O(w,1,1,()=>{w=null}),be())},i(v){h||(b(l.$$.fragment,v),b(w),h=!0)},o(v){O(l.$$.fragment,v),O(w),h=!1},d(v){v&&A(t),P(l),se(L,v),w&&w.d(),g=!1,U(E)}}}function Ke(e){let t,n,l;function a(i){e[9](i)}let r={$$slots:{default:[Ge]},$$scope:{ctx:e}};return e[0]!==void 0&&(r.showModal=e[0]),t=new Ve({props:r}),_t.push(()=>Ne(t,"showModal",a)),{c(){tt(t.$$.fragment)},m(i,s){K(t,i,s),l=!0},p(i,[s]){const u={};s&32775&&(u.$$scope={dirty:s,ctx:i}),!n&&s&1&&(n=!0,u.showModal=i[0],ve(()=>n=!1)),t.$set(u)},i(i){l||(b(t.$$.fragment,i),l=!0)},o(i){O(t.$$.fragment,i),l=!1},d(i){P(t,i)}}}const Pe="deactivate-transcy";function je(e,t,n){const l="https://api-wp.transcy.io/api",a=["Not meet my needs","App not working","Limited or missing features","Difficult to use","It’s temporary, I will be back","Other",""];let r,i=!1,s="",u="";Wt(()=>{(()=>{const g=document.querySelector(`#${Pe}`);if(!g)return console.error("Not deactive plugin button");r=g.cloneNode(!0),g.style.cursor="pointer",g.onclick=()=>{n(0,i=!0)},setTimeout(()=>{g.removeAttribute("href")},100)})()});const d=async()=>{n(0,i=!1);const g={reason:s,note:s==="Other"?u:""};if(!g.reason){r.click();return}(await zt({url:`${l}/clients/current/feedback`,method:"POST",data:g})).status&&(r.click(),n(1,s=""),n(2,u=""))},C=[[]];function _(){s=this.__value,n(1,s),n(0,i)}function p(){u=this.value,n(2,u),n(0,i)}const y=()=>{n(0,i=!1)};function h(g){i=g,n(0,i)}return e.$$.update=()=>{e.$$.dirty&1&&(i||(n(1,s=""),n(2,u="")))},[i,s,u,a,d,_,C,p,y,h]}class Ye extends W{constructor(t){super(),Y(this,t,je,Ke,j,{})}}const We={HOME:{}},qe={HOME:{CLICK_EVENT_SHORTCUT_LANGUAGE:"Click Shortcut Language",CLICK_EVENT_SHORTCUT_TRANSLATION:"Click Shortcut Translation",CLICK_EVENT_SHORTCUT_CURRENCY:"Click Shortcut Currency",CLICK_EVENT_SHORTCUT_SWITCHER:"Click Shortcut Switcher",CLICK_EVENT_SHORTCUT_HOME:"Click Menu Home",CLICK_EVENT_SHORTCUT_TRANSCY:"Click Transcy"}},Tt={PAGE_VIEW:We,ACTION_EVENT:qe},ze=e=>zt({url:"tracking/event",method:"POST",data:e}),Je={trackingSegmentEvent:ze},Qe="li.transcy_menu_switcher",Xe=".wp-submenu-head",tn=".wp-first-item";function en(e){const{CLICK_EVENT_SHORTCUT_CURRENCY:t,CLICK_EVENT_SHORTCUT_LANGUAGE:n,CLICK_EVENT_SHORTCUT_SWITCHER:l,CLICK_EVENT_SHORTCUT_TRANSLATION:a}=Tt.ACTION_EVENT.HOME,r=async i=>{try{await Je.trackingSegmentEvent({event:i})}catch{console.warn("[SEGMENT] Error tracking event")}};return Wt(()=>{(()=>{var C;const i=document.querySelectorAll(Qe)||null,s=((C=i[0])==null?void 0:C.parentElement)||null,u=s==null?void 0:s.querySelector(Xe),d=s==null?void 0:s.querySelector(tn);u==null||u.addEventListener("click",()=>{r(Tt.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_HOME)}),d==null||d.addEventListener("click",()=>{r(Tt.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_TRANSCY)}),i==null||i.forEach(_=>{_.addEventListener("click",async()=>{var g;const p=((g=_.textContent)==null?void 0:g.trim().toUpperCase())||"";if(!p)return;const h={LANGUAGE:n,CURRENCY:t,TRANSLATION:a,SWITCHER:l}[p];await r(h)})})})()}),[]}class nn extends W{constructor(t){super(),Y(this,t,en,null,j,{})}}function on(e){let t,n,l,a,r;return n=new Ye({}),a=new nn({}),{c(){t=T("div"),tt(n.$$.fragment),l=N(),tt(a.$$.fragment)},m(i,s){D(i,t,s),K(n,t,null),c(t,l),K(a,t,null),r=!0},p:M,i(i){r||(b(n.$$.fragment,i),b(a.$$.fragment,i),r=!0)},o(i){O(n.$$.fragment,i),O(a.$$.fragment,i),r=!1},d(i){i&&A(t),P(n),P(a)}}}class ln extends W{constructor(t){super(),Y(this,t,null,on,j,{})}}new ln({target:document.getElementById("tc-modal__deactive--plugin")});
     4}`,_=`__svelte_${he(C)}_${s}`,p=Yt(e),{stylesheet:y,rules:h}=pt.get(p)||_e(p,e);h[_]||(h[_]=!0,y.insertRule(`@keyframes ${_} ${C}`,y.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${_} ${l}ms linear ${a}ms 1 both`,ht+=1,_}function Ce(e,t){const n=(e.style.animation||"").split(", "),l=n.filter(t?r=>r.indexOf(t)<0:r=>r.indexOf("__svelte")===-1),a=n.length-l.length;a&&(e.style.animation=l.join(", "),ht-=a,ht||me())}function me(){St(()=>{ht||(pt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&A(t)}),pt.clear())})}let Q;function J(e){Q=e}function ge(){if(!Q)throw new Error("Function called outside component initialization");return Q}function Wt(e){ge().$$.on_mount.push(e)}function Ee(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(l=>l.call(this,t))}const V=[],_t=[];let G=[];const Mt=[],ye=Promise.resolve();let Nt=!1;function Le(){Nt||(Nt=!0,ye.then(qt))}function X(e){G.push(e)}function ve(e){Mt.push(e)}const kt=new Set;let H=0;function qt(){if(H!==0)return;const e=Q;do{try{for(;H<V.length;){const t=V[H];H++,J(t),we(t.$$)}}catch(t){throw V.length=0,H=0,t}for(J(null),V.length=0,H=0;_t.length;)_t.pop()();for(let t=0;t<G.length;t+=1){const n=G[t];kt.has(n)||(kt.add(n),n())}G.length=0}while(V.length);for(;Mt.length;)Mt.pop()();Nt=!1,kt.clear(),J(e)}function we(e){if(e.fragment!==null){e.update(),U(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(X)}}function ke(e){const t=[],n=[];G.forEach(l=>e.indexOf(l)===-1?t.push(l):n.push(l)),n.forEach(l=>l()),G=t}let z;function $e(){return z||(z=Promise.resolve(),z.then(()=>{z=null})),z}function $t(e,t,n){e.dispatchEvent(pe(`${t?"intro":"outro"}${n}`))}const dt=new Set;let I;function Te(){I={r:0,c:[],p:I}}function be(){I.r||U(I.c),I=I.p}function b(e,t){e&&e.i&&(dt.delete(e),e.i(t))}function O(e,t,n,l){if(e&&e.o){if(dt.has(e))return;dt.add(e),I.c.push(()=>{dt.delete(e),l&&(n&&e.d(1),l())}),e.o(t)}else l&&l()}const Me={duration:0};function Rt(e,t,n,l){let r=t(e,n,{direction:"both"}),i=l?0:1,s=null,u=null,d=null,C;function _(){d&&Ce(e,d)}function p(h,g){const E=h.b-i;return g*=Math.abs(E),{a:i,b:h.b,d:E,duration:g,start:h.start,end:h.start+g,group:h.group}}function y(h){const{delay:g=0,duration:E=300,easing:f=te,tick:L=M,css:w}=r||Me,v={start:oe()+g,b:h};h||(v.group=I,I.r+=1),"inert"in e&&(h?C!==void 0&&(e.inert=C):(C=e.inert,e.inert=!0)),s||u?u=v:(w&&(_(),d=It(e,i,h,E,g,f,w)),h&&L(0,1),s=p(v,E),X(()=>$t(e,h,"start")),le($=>{if(u&&$>u.start&&(s=p(u,E),u=null,$t(e,s.b,"start"),w&&(_(),d=It(e,i,s.b,s.duration,0,f,r.css))),s){if($>=s.end)L(i=s.b,1-i),$t(e,s.b,"end"),u||(s.b?_():--s.group.r||U(s.group.c)),s=null;else if($>=s.start){const k=$-s.start;i=s.a+s.d*f(k/s.duration),L(i,1-i)}}return!!(s||u)}))}return{run(h){Ft(r)?$e().then(()=>{r=r({direction:h?"in":"out"}),y(h)}):y(h)},end(){_(),s=u=null}}}function Ut(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ne(e,t,n){const l=e.$$.props[t];l!==void 0&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function tt(e){e&&e.c()}function K(e,t,n){const{fragment:l,after_update:a}=e.$$;l&&l.m(t,n),X(()=>{const r=e.$$.on_mount.map(Gt).filter(Ft);e.$$.on_destroy?e.$$.on_destroy.push(...r):U(r),e.$$.on_mount=[]}),a.forEach(X)}function P(e,t){const n=e.$$;n.fragment!==null&&(ke(n.after_update),U(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Fe(e,t){e.$$.dirty[0]===-1&&(V.push(e),Le(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Y(e,t,n,l,a,r,i,s=[-1]){const u=Q;J(e);const d=e.$$={fragment:null,ctx:[],props:r,update:M,not_equal:a,bound:At(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:At(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};i&&i(d.root);let C=!1;if(d.ctx=n?n(e,t.props||{},(_,p,...y)=>{const h=y.length?y[0]:p;return d.ctx&&a(d.ctx[_],d.ctx[_]=h)&&(!d.skip_bound&&d.bound[_]&&d.bound[_](h),C&&Fe(e,_)),p}):[],d.update(),C=!0,U(d.before_update),d.fragment=l?l(d.ctx):!1,t.target){if(t.hydrate){const _=de(t.target);d.fragment&&d.fragment.l(_),_.forEach(A)}else d.fragment&&d.fragment.c();t.intro&&b(e.$$.fragment),K(e,t.target,t.anchor),qt()}J(u)}class W{constructor(){Et(this,"$$");Et(this,"$$set")}$destroy(){P(this,1),this.$destroy=M}$on(t,n){if(!Ft(n))return M;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(n),()=>{const a=l.indexOf(n);a!==-1&&l.splice(a,1)}}$set(t){this.$$set&&!ne(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Se="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Se);function Oe(e){const t=e-1;return t*t*t+1}function Dt(e,{delay:t=0,duration:n=400,easing:l=Oe,axis:a="y"}={}){const r=getComputedStyle(e),i=+r.opacity,s=a==="y"?"height":"width",u=parseFloat(r[s]),d=a==="y"?["top","bottom"]:["left","right"],C=d.map(f=>`${f[0].toUpperCase()}${f.slice(1)}`),_=parseFloat(r[`padding${C[0]}`]),p=parseFloat(r[`padding${C[1]}`]),y=parseFloat(r[`margin${C[0]}`]),h=parseFloat(r[`margin${C[1]}`]),g=parseFloat(r[`border${C[0]}Width`]),E=parseFloat(r[`border${C[1]}Width`]);return{delay:t,duration:n,easing:l,css:f=>`overflow: hidden;opacity: ${Math.min(f*20,1)*i};${s}: ${f*u}px;padding-${d[0]}: ${f*_}px;padding-${d[1]}: ${f*p}px;margin-${d[0]}: ${f*y}px;margin-${d[1]}: ${f*h}px;border-${d[0]}-width: ${f*g}px;border-${d[1]}-width: ${f*E}px;`}}function Ae(e){let t,n,l,a,r,i,s,u,d,C,_,p,y,h,g,E,f,L,w,v,$,k,Z,et,nt,ot,lt,it,rt,st,at,ct,B,ut,F,Ct,ft,S,mt,q;return{c(){t=m("svg"),n=m("path"),l=m("g"),a=m("path"),r=m("path"),i=m("path"),s=m("path"),u=m("path"),d=m("path"),C=m("path"),_=m("path"),p=m("path"),y=m("path"),h=m("path"),g=m("path"),E=m("path"),f=m("path"),L=m("path"),w=m("path"),v=m("path"),$=m("path"),k=m("path"),Z=m("path"),et=m("path"),nt=m("path"),ot=m("path"),lt=m("path"),it=m("path"),rt=m("path"),st=m("path"),at=m("path"),ct=m("path"),B=m("path"),ut=m("defs"),F=m("radialGradient"),Ct=m("stop"),ft=m("stop"),S=m("linearGradient"),mt=m("stop"),q=m("stop"),o(n,"d","M57.7262 51.485C57.7266 65.1143 46.4098 76.1771 32.4318 76.1771C18.4538 76.1771 7.1363 65.1143 7.13592 51.485C7.13553 37.8557 18.4524 26.7929 32.4304 26.7929C46.4084 26.7929 57.7259 37.8557 57.7262 51.485Z"),o(n,"fill","url(#paint0_radial_13272_68779)"),o(n,"stroke","black"),o(n,"stroke-width","0.696203"),o(a,"d","M44.2586 71.4899C47.5085 69.6624 44.8163 59.1948 38.2455 48.1098C31.6747 37.0249 23.7134 29.5203 20.4635 31.3478C17.2136 33.1753 19.9058 43.6429 26.4767 54.7278C33.0475 65.8127 41.0088 73.3174 44.2586 71.4899Z"),o(a,"stroke","#BEE0FF"),o(a,"stroke-width","0.696203"),o(a,"stroke-miterlimit","10"),o(r,"d","M44.3149 71.4522C51.204 67.5786 51.461 55.4514 44.889 44.3654C38.317 33.2793 27.4047 27.4325 20.5156 31.3062"),o(r,"stroke","#BEE0FF"),o(r,"stroke-width","0.696203"),o(r,"stroke-miterlimit","10"),o(i,"d","M44.2981 71.5378C53.4479 66.3978 55.5205 53.2237 48.9274 42.1125C42.3344 31.0013 29.5723 26.1607 20.4226 31.3007C11.2728 36.4406 9.2002 49.6148 15.7933 60.726C22.3863 71.8372 35.1484 76.6778 44.2981 71.5378Z"),o(i,"stroke","#BEE0FF"),o(i,"stroke-width","0.696203"),o(i,"stroke-miterlimit","10"),o(s,"d","M28.8933 45.5693C40.2014 39.2106 50.921 36.6745 52.8364 39.9058C54.7519 43.137 47.137 50.9108 35.829 57.2696C24.5209 63.6283 13.8012 66.1644 11.8858 62.9331C9.97038 59.7019 17.5852 51.9281 28.8933 45.5693Z"),o(s,"stroke","#BEE0FF"),o(s,"stroke-width","0.696203"),o(s,"stroke-miterlimit","10"),o(u,"d","M39.6988 63.7892C50.9889 57.4459 56.8559 46.7661 52.8032 39.9351C48.7505 33.1041 36.3127 32.7088 25.0226 39.052C13.7325 45.3953 7.86545 56.0752 11.9182 62.9062C15.9709 69.7372 28.4087 70.1325 39.6988 63.7892Z"),o(u,"stroke","#BEE0FF"),o(u,"stroke-width","0.696203"),o(u,"stroke-miterlimit","10"),o(d,"d","M42.068 67.7796C53.3493 61.4423 58.1485 48.9803 52.7872 39.9451C47.426 30.91 33.9345 28.7229 22.6532 35.0603C11.3719 41.3977 6.57271 53.8596 11.934 62.8948C17.2952 71.93 30.7867 74.117 42.068 67.7796Z"),o(d,"stroke","#BEE0FF"),o(d,"stroke-width","0.696203"),o(d,"stroke-miterlimit","10"),o(l,"opacity","0.4"),o(C,"d","M30.0629 34.0686C30.9143 35.2681 30.9912 36.6758 30.2346 37.2129C29.478 37.75 28.1744 37.2131 27.323 36.0136C26.4715 34.8142 26.3946 33.4064 27.1512 32.8693C27.9078 32.3322 29.2114 32.8692 30.0629 34.0686Z"),o(C,"fill","black"),o(_,"d","M19.7943 41.3596C20.6458 42.5591 20.7227 43.9669 19.9661 44.504C19.2095 45.041 17.9059 44.5041 17.0544 43.3046C16.2029 42.1052 16.126 40.6974 16.8826 40.1603C17.6392 39.6232 18.9428 40.1602 19.7943 41.3596Z"),o(_,"fill","black"),o(p,"d","M24.3492 46.993C24.3726 49.5765 27.6697 48.4264 29.0109 45.057C32.6338 44.1978 34.3551 41.5245 31.7479 40.8619"),o(p,"stroke","black"),o(p,"stroke-width","0.696203"),o(p,"stroke-linecap","round"),o(p,"stroke-linejoin","round"),o(y,"d","M61.3775 76.1191C75.9023 77.2245 88.5946 66.6229 89.7267 52.4398C90.8587 38.2566 80.0018 25.8628 65.477 24.7574C50.9523 23.652 38.26 34.2536 37.128 48.4367C35.9959 62.6198 46.8528 75.0137 61.3775 76.1191Z"),o(y,"fill","#FAAD14"),o(h,"d","M76.9922 41.2667L72.8456 40.4923L73.6539 36.3653L71.9958 34.2799L57.0441 31.4877C55.3894 31.1786 53.7983 32.2335 53.4818 33.8492L48.1186 61.2326C47.8022 62.8483 48.8824 64.4021 50.5371 64.7111L70.4728 68.4341C72.1274 68.7431 73.7186 67.6883 74.035 66.0725L78.445 43.5559L76.9922 41.2667Z"),o(h,"fill","white"),o(g,"d","M78.7132 42.194L78.4463 43.5567L71.4688 42.2537C70.9106 42.1494 70.5559 41.6392 70.6626 41.0942L71.9971 34.2808L72.9939 34.4669C73.0537 34.4781 73.1334 34.493 73.1894 34.5236C74.0229 34.6994 74.6473 35.0986 75.0741 35.6626L78.188 39.9166C78.6793 40.5734 78.8695 41.3959 78.7132 42.194Z"),o(g,"fill","#F1F4F8"),o(E,"d","M68.6656 40.7103C68.5566 41.2618 68.0326 41.6141 67.4748 41.5109L57.5138 39.6686C56.956 39.5654 56.6034 39.051 56.7125 38.4995C56.8215 37.948 57.3455 37.5957 57.9033 37.6989L67.8643 39.5412C68.4221 39.6444 68.7747 40.1588 68.6656 40.7103Z"),o(E,"fill","#2F43D7"),o(f,"d","M73.489 47.7293C73.3799 48.2821 72.8558 48.6351 72.2978 48.5317L56.3567 45.5776C55.7988 45.4742 55.4461 44.9587 55.5552 44.4059C55.6643 43.8532 56.1884 43.5002 56.7463 43.6036L72.6875 46.5577C73.2454 46.6611 73.5981 47.1766 73.489 47.7293Z"),o(f,"fill","#2F43D7"),o(L,"d","M72.3464 53.5707C72.2373 54.1234 71.7132 54.4764 71.1553 54.373L55.2141 51.4189C54.6562 51.3155 54.3035 50.8 54.4126 50.2473C54.5217 49.6945 55.0458 49.3415 55.6037 49.4449L71.5449 52.399C72.1028 52.5024 72.4555 53.0179 72.3464 53.5707Z"),o(L,"fill","#2F43D7"),o(w,"d","M65.2213 58.2953C65.1122 58.8468 64.5882 59.199 64.0304 59.0959L54.0695 57.2536C53.5116 57.1504 53.1591 56.636 53.2681 56.0845C53.3772 55.5329 53.9012 55.1807 54.459 55.2838L64.42 57.1262C64.9778 57.2293 65.3304 57.7437 65.2213 58.2953Z"),o(w,"fill","#2F43D7"),o(v,"d","M73.1231 58.4913L71.8843 57.0089L69.6385 57.3966L69.6148 57.4124L69.2195 57.7421C68.8519 58.0367 68.5763 58.3888 68.3452 58.8299L66.6847 62.4547C66.5363 62.7902 66.5835 63.1824 66.8368 63.4719C67.1024 63.804 67.5371 63.9054 67.8429 63.8212L71.7962 62.9452C72.2491 62.8482 72.7012 62.6501 73.049 62.3518L73.4686 62.0064L74.1132 59.665L73.1231 58.4913Z"),o(v,"fill","#BEE0FF"),o($,"d","M85.2593 51.5352C85.352 50.7454 85.1038 49.9726 84.6172 49.3974C84.0983 48.7759 83.3865 48.4008 82.5777 48.3103C81.7688 48.2198 80.9587 48.4519 80.3422 48.9623L79.5356 49.5986L78.8227 51.8668L79.8965 53.1368L81.0993 54.5923L83.3888 54.1925L84.1678 53.5914C84.1716 53.5719 84.1716 53.5719 84.1716 53.5719C84.8081 53.0653 85.1865 52.3288 85.2593 51.5352Z"),o($,"fill","#5062E9"),o(k,"d","M81.4629 51.8959L81.4623 51.8951L79.5363 49.5989L69.6161 57.412L71.5588 59.7322L71.5599 59.7337L73.4693 62.0059L83.3894 54.1929L81.4629 51.8959Z"),o(k,"fill","#BEE0FF"),o(Z,"d","M82.5093 10.2928C81.879 6.2317 85.3708 2.424 85.4181 2.37399C85.6544 2.12396 86.0485 2.11081 86.3032 2.33382C86.5595 2.5674 86.5756 2.95427 86.35 3.20275C86.3028 3.25276 81.6741 8.31503 84.7427 12.4163C85.8393 13.881 87.9387 14.7157 90.0976 15.0121C90.1923 14.7716 90.2961 14.5188 90.4231 14.2736C91.588 11.9232 93.7 10.2156 95.4602 10.2124C96.4827 10.2066 97.3273 10.756 97.8343 11.7537C98.5576 13.1528 98.1311 14.4463 96.681 15.3132C95.3718 16.0952 93.2178 16.4683 90.9957 16.3322C90.686 17.5981 90.6621 19.288 91.8828 20.843C96.56 26.8005 103.254 22.2103 103.543 22.0175C103.821 21.8263 104.216 21.8888 104.413 22.1633C104.61 22.4379 104.549 22.8249 104.27 23.0161C104.191 23.0708 96.3175 28.5 90.8874 21.5908C89.6808 20.0554 89.2884 18.1657 89.7316 16.1996C87.3427 15.8388 85.034 14.8611 83.7423 13.1325C83.0282 12.2185 82.657 11.2446 82.5093 10.2928ZM96.9055 12.8595C96.8743 12.6586 96.8017 12.4744 96.7108 12.3144C96.4111 11.7303 96.0049 11.4533 95.4659 11.4548C94.2017 11.4627 92.4833 12.941 91.5434 14.8268C91.5027 14.9191 91.4529 15.0236 91.4047 15.1386C93.2427 15.2107 94.9785 14.9082 96.0259 14.2827C96.8205 13.8014 96.9728 13.2931 96.9055 12.8595Z"),o(Z,"fill","#FFD446"),o(et,"d","M35.7153 95.3789C35.7104 95.0343 35.9758 94.7622 36.3173 94.7586C53.7217 94.554 57.6232 86.8391 59.049 81.0442C59.1308 80.7274 59.4633 80.5256 59.7873 80.6063C60.1112 80.687 60.3176 81.0024 60.2363 81.3297C58.7209 87.5044 54.5973 95.7405 36.3282 95.9493C35.9974 95.9524 35.7294 95.6918 35.7153 95.3789Z"),o(et,"fill","#FF6161"),o(nt,"d","M66.6934 93.3234L64.7197 95.1774V90.9326L66.6934 93.3234Z"),o(nt,"fill","#0FB8CB"),o(ot,"d","M81.646 21.3375L79.7217 23.2404V18.9468L81.646 21.3375Z"),o(ot,"fill","#0FB8CB"),o(lt,"d","M56.5729 18.778L55.29 16.436L59.4347 17.607L56.5729 18.778Z"),o(lt,"fill","#FB639E"),o(it,"d","M90.0055 79.882L88.7227 77.54L92.8673 78.711L90.0055 79.882Z"),o(it,"fill","#FB639E"),o(rt,"d","M109.555 6.29828L107.581 6.24949L109.9 4.29785L109.555 6.29828Z"),o(rt,"fill","#F7D665"),o(st,"d","M48.2483 81.7256L43.7178 82.7085L44.1407 84.6149L48.6712 83.632L48.2483 81.7256Z"),o(st,"fill","#F7D665"),o(at,"d","M37.5147 104.744L37.2891 109.325L39.2604 109.42L39.486 104.839L37.5147 104.744Z"),o(at,"fill","#00D08F"),o(ct,"d","M21.3672 56.3896C27.0481 55.7765 44.5416 51.2045 46.4544 54.1954C47.4441 55.7451 43.1655 55.9889 43.1655 55.9889C43.1655 55.9889 45.0592 57.0824 43.3826 60.6309C41.9063 63.7569 30.1414 66.3809 26.552 66.3809"),o(ct,"fill","url(#paint1_linear_13272_68779)"),o(B,"d","M21.3672 56.3896C27.0481 55.7765 44.5416 51.2045 46.4544 54.1954C47.4441 55.7451 43.1655 55.9889 43.1655 55.9889C43.1655 55.9889 45.0592 57.0824 43.3826 60.6309C41.9063 63.7569 30.1414 66.3809 26.552 66.3809"),o(B,"stroke","black"),o(B,"stroke-width","0.696203"),o(B,"stroke-linecap","round"),o(B,"stroke-linejoin","round"),o(Ct,"stop-color","#8BC7FF"),o(ft,"offset","1"),o(ft,"stop-color","#0084FF"),o(F,"id","paint0_radial_13272_68779"),o(F,"cx","0"),o(F,"cy","0"),o(F,"r","1"),o(F,"gradientUnits","userSpaceOnUse"),o(F,"gradientTransform","translate(32.4311 51.485) rotate(89.9984) scale(25.0402 25.6433)"),o(mt,"stop-color","#1B91FF"),o(q,"offset","1"),o(q,"stop-color","#49A8FF"),o(q,"stop-opacity","0.35"),o(S,"id","paint1_linear_13272_68779"),o(S,"x1","38.0618"),o(S,"y1","57.6552"),o(S,"x2","25.9142"),o(S,"y2","59.8457"),o(S,"gradientUnits","userSpaceOnUse"),o(t,"width","110"),o(t,"height","110"),o(t,"viewBox","0 0 110 110"),o(t,"fill","none"),o(t,"xmlns","http://www.w3.org/2000/svg")},m(gt,Jt){D(gt,t,Jt),c(t,n),c(t,l),c(l,a),c(l,r),c(l,i),c(l,s),c(l,u),c(l,d),c(t,C),c(t,_),c(t,p),c(t,y),c(t,h),c(t,g),c(t,E),c(t,f),c(t,L),c(t,w),c(t,v),c(t,$),c(t,k),c(t,Z),c(t,et),c(t,nt),c(t,ot),c(t,lt),c(t,it),c(t,rt),c(t,st),c(t,at),c(t,ct),c(t,B),c(t,ut),c(ut,F),c(F,Ct),c(F,ft),c(ut,S),c(S,mt),c(S,q)},p:M,i:M,o:M,d(gt){gt&&A(t)}}}class Ie extends W{constructor(t){super(),Y(this,t,null,Ae,j,{})}}const zt=async({method:e="GET",url:t="",data:n,headers:l={}})=>{const a={method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${window.transcy_token}`,"x-transcy-hostname":new URL(window.transcy_url).hostname,...l},body:JSON.stringify(n)};return await(await fetch(t,a)).json()};function Re(e){let t,n;return{c(){t=m("svg"),n=m("path"),o(n,"fill-rule","evenodd"),o(n,"clip-rule","evenodd"),o(n,"d","M5.15115 5.6515C5.37618 5.42654 5.68135 5.30016 5.99955 5.30016C6.31775 5.30016 6.62291 5.42654 6.84795 5.6515L11.9995 10.8031L17.1511 5.6515C17.2618 5.53689 17.3943 5.44547 17.5407 5.38258C17.6871 5.31969 17.8445 5.28659 18.0039 5.2852C18.1632 5.28382 18.3212 5.31418 18.4687 5.37452C18.6162 5.43485 18.7502 5.52396 18.8628 5.63663C18.9755 5.7493 19.0646 5.88328 19.1249 6.03076C19.1853 6.17823 19.2156 6.33625 19.2142 6.49558C19.2129 6.65492 19.1798 6.81238 19.1169 6.95879C19.054 7.10519 18.9626 7.23761 18.8479 7.3483L13.6963 12.4999L18.8479 17.6515C19.0665 17.8778 19.1875 18.1809 19.1848 18.4956C19.182 18.8102 19.0558 19.1112 18.8333 19.3337C18.6108 19.5562 18.3099 19.6824 17.9952 19.6851C17.6806 19.6878 17.3775 19.5669 17.1511 19.3483L11.9995 14.1967L6.84795 19.3483C6.62163 19.5669 6.3185 19.6878 6.00387 19.6851C5.68923 19.6824 5.38826 19.5562 5.16577 19.3337C4.94328 19.1112 4.81707 18.8102 4.81434 18.4956C4.81161 18.1809 4.93256 17.8778 5.15115 17.6515L10.3027 12.4999L5.15115 7.3483C4.92618 7.12327 4.7998 6.8181 4.7998 6.4999C4.7998 6.18171 4.92618 5.87654 5.15115 5.6515Z"),o(n,"fill","#718096"),o(t,"xmlns","http://www.w3.org/2000/svg"),o(t,"width","24"),o(t,"height","25"),o(t,"viewBox","0 0 24 25"),o(t,"fill","none")},m(l,a){D(l,t,a),c(t,n)},p:M,i:M,o:M,d(l){l&&A(t)}}}class Ue extends W{constructor(t){super(),Y(this,t,null,Re,j,{})}}const De=e=>({}),Zt=e=>({}),Ze=e=>({}),Bt=e=>({});function Be(e){let t,n,l,a,r,i,s,u,d,C;l=new Ue({});const _=e[3].header,p=yt(_,e,e[2],Bt),y=e[3].default,h=yt(y,e,e[2],null),g=e[3].footer,E=yt(g,e,e[2],Zt);return{c(){t=T("dialog"),n=T("div"),tt(l.$$.fragment),a=N(),r=T("div"),p&&p.c(),i=N(),h&&h.c(),s=N(),E&&E.c(),o(n,"class","tc-dialog__close svelte-1ymoiwn"),o(r,"class","tc-dialog__body svelte-1ymoiwn"),o(t,"class","svelte-1ymoiwn")},m(f,L){D(f,t,L),c(t,n),K(l,n,null),c(t,a),c(t,r),p&&p.m(r,null),c(r,i),h&&h.m(r,null),c(r,s),E&&E.m(r,null),e[6](t),u=!0,d||(C=[R(n,"click",e[5]),R(r,"click",ce(e[4])),R(t,"close",e[7]),R(t,"click",ue(e[8]))],d=!0)},p(f,[L]){p&&p.p&&(!u||L&4)&&vt(p,_,f,f[2],u?Lt(_,f[2],L,Ze):wt(f[2]),Bt),h&&h.p&&(!u||L&4)&&vt(h,y,f,f[2],u?Lt(y,f[2],L,null):wt(f[2]),null),E&&E.p&&(!u||L&4)&&vt(E,g,f,f[2],u?Lt(g,f[2],L,De):wt(f[2]),Zt)},i(f){u||(b(l.$$.fragment,f),b(p,f),b(h,f),b(E,f),u=!0)},o(f){O(l.$$.fragment,f),O(p,f),O(h,f),O(E,f),u=!1},d(f){f&&A(t),P(l),p&&p.d(f),h&&h.d(f),E&&E.d(f),e[6](null),d=!1,U(C)}}}function He(e,t,n){let{$$slots:l={},$$scope:a}=t,{showModal:r=!1}=t,i;function s(p){Ee.call(this,e,p)}const u=()=>n(0,r=!1);function d(p){_t[p?"unshift":"push"](()=>{i=p,n(1,i)})}const C=()=>n(0,r=!1),_=()=>i.close();return e.$$set=p=>{"showModal"in p&&n(0,r=p.showModal),"$$scope"in p&&n(2,a=p.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&i&&(r?(i.showModal(),document.body.style.overflow="hidden"):(i.close(),document.body.style.overflow="auto"))},[r,i,a,l,s,u,d,C,_]}class Ve extends W{constructor(t){super(),Y(this,t,He,Be,j,{showModal:0})}}function Ht(e,t,n){const l=e.slice();return l[12]=t[n],l}function xe(e){let t,n=e[12]+"",l,a,r,i,s,u,d,C,_;return d=fe(e[6][0]),{c(){t=T("label"),l=Ot(n),a=N(),r=T("input"),i=N(),s=T("span"),o(r,"id",e[12]),o(r,"type","radio"),r.__value=e[12],bt(r,r.__value),o(r,"class","svelte-12ehl4u"),o(s,"class","tc-radio__container-checkmark svelte-12ehl4u"),o(s,"data-checked",u=e[1]===e[12]),o(t,"for",e[12]),o(t,"class","tc-radio__container svelte-12ehl4u"),d.p(r)},m(p,y){D(p,t,y),c(t,l),c(t,a),c(t,r),r.checked=r.__value===e[1],c(t,i),c(t,s),C||(_=R(r,"change",e[5]),C=!0)},p(p,y){y&2&&(r.checked=r.__value===p[1]),y&2&&u!==(u=p[1]===p[12])&&o(s,"data-checked",u)},d(p){p&&A(t),d.r(),C=!1,_()}}}function Vt(e){let t,n=e[12]&&xe(e);return{c(){n&&n.c(),t=ae()},m(l,a){n&&n.m(l,a),D(l,t,a)},p(l,a){l[12]&&n.p(l,a)},d(l){l&&A(t),n&&n.d(l)}}}function xt(e){let t,n,l,a,r;return{c(){t=T("textarea"),o(t,"rows","4"),o(t,"placeholder","Fill your feedback here..."),o(t,"class","svelte-12ehl4u")},m(i,s){D(i,t,s),bt(t,e[2]),l=!0,a||(r=R(t,"input",e[7]),a=!0)},p(i,s){s&4&&bt(t,i[2])},i(i){l||(i&&X(()=>{l&&(n||(n=Rt(t,Dt,{},!0)),n.run(1))}),l=!0)},o(i){i&&(n||(n=Rt(t,Dt,{},!1)),n.run(0)),l=!1},d(i){i&&A(t),i&&n&&n.end(),a=!1,r()}}}function Ge(e){let t,n,l,a,r,i,s,u,d,C,_,p,y,h,g,E;l=new Ie({});let f=Ut(e[3]),L=[];for(let v=0;v<f.length;v+=1)L[v]=Vt(Ht(e,f,v));let w=e[1]==="Other"&&xt(e);return{c(){t=T("div"),n=T("div"),tt(l.$$.fragment),a=N(),r=T("div"),r.innerHTML='<div class="tc-deactive-modal__title svelte-12ehl4u">We’re sad to see you go</div> <div class="tc-deactive-modal__subTitle svelte-12ehl4u">Can we know why you want to leave?</div>',i=N(),s=T("div");for(let v=0;v<L.length;v+=1)L[v].c();u=N(),w&&w.c(),d=N(),C=T("div"),_=T("button"),_.textContent="Deactivate",p=N(),y=T("button"),y.textContent="Cancel",o(n,"class","tc-deactive-modal__image svelte-12ehl4u"),o(r,"class","svelte-12ehl4u"),o(s,"class","tc-deactive-modal__feedback-group svelte-12ehl4u"),o(_,"class","tc-deactive-modal__button-primary svelte-12ehl4u"),o(y,"class","tc-deactive-modal__button-cancel svelte-12ehl4u"),o(C,"class","svelte-12ehl4u"),o(t,"class","tc-deactive-modal svelte-12ehl4u")},m(v,$){D(v,t,$),c(t,n),K(l,n,null),c(t,a),c(t,r),c(t,i),c(t,s);for(let k=0;k<L.length;k+=1)L[k]&&L[k].m(s,null);c(s,u),w&&w.m(s,null),c(t,d),c(t,C),c(C,_),c(C,p),c(C,y),h=!0,g||(E=[R(_,"click",e[4]),R(y,"click",e[8])],g=!0)},p(v,$){if($&10){f=Ut(v[3]);let k;for(k=0;k<f.length;k+=1){const Z=Ht(v,f,k);L[k]?L[k].p(Z,$):(L[k]=Vt(Z),L[k].c(),L[k].m(s,u))}for(;k<L.length;k+=1)L[k].d(1);L.length=f.length}v[1]==="Other"?w?(w.p(v,$),$&2&&b(w,1)):(w=xt(v),w.c(),b(w,1),w.m(s,null)):w&&(Te(),O(w,1,1,()=>{w=null}),be())},i(v){h||(b(l.$$.fragment,v),b(w),h=!0)},o(v){O(l.$$.fragment,v),O(w),h=!1},d(v){v&&A(t),P(l),se(L,v),w&&w.d(),g=!1,U(E)}}}function Ke(e){let t,n,l;function a(i){e[9](i)}let r={$$slots:{default:[Ge]},$$scope:{ctx:e}};return e[0]!==void 0&&(r.showModal=e[0]),t=new Ve({props:r}),_t.push(()=>Ne(t,"showModal",a)),{c(){tt(t.$$.fragment)},m(i,s){K(t,i,s),l=!0},p(i,[s]){const u={};s&32775&&(u.$$scope={dirty:s,ctx:i}),!n&&s&1&&(n=!0,u.showModal=i[0],ve(()=>n=!1)),t.$set(u)},i(i){l||(b(t.$$.fragment,i),l=!0)},o(i){O(t.$$.fragment,i),l=!1},d(i){P(t,i)}}}const Pe="deactivate-transcy";function je(e,t,n){const l="https://api-wp.transcy.io/api",a=["Not meet my needs","App not working","Limited or missing features","Difficult to use","It’s temporary, I will be back","Other",""];let r,i=!1,s="",u="";Wt(()=>{(()=>{const g=document.querySelector(`#${Pe}`);if(!g)return console.error("Not deactive plugin button");r=g.cloneNode(!0),g.style.cursor="pointer",g.onclick=()=>{n(0,i=!0)},setTimeout(()=>{g.removeAttribute("href")},100)})()});const d=async()=>{n(0,i=!1);const g={reason:s||"",note:s==="Other"?u:""};await zt({url:`${l}/clients/current/feedback`,method:"POST",data:g}),r.click(),n(1,s=""),n(2,u="")},C=[[]];function _(){s=this.__value,n(1,s),n(0,i)}function p(){u=this.value,n(2,u),n(0,i)}const y=()=>{n(0,i=!1)};function h(g){i=g,n(0,i)}return e.$$.update=()=>{e.$$.dirty&1&&(i||(n(1,s=""),n(2,u="")))},[i,s,u,a,d,_,C,p,y,h]}class Ye extends W{constructor(t){super(),Y(this,t,je,Ke,j,{})}}const We={HOME:{}},qe={HOME:{CLICK_EVENT_SHORTCUT_LANGUAGE:"Click Shortcut Language",CLICK_EVENT_SHORTCUT_TRANSLATION:"Click Shortcut Translation",CLICK_EVENT_SHORTCUT_CURRENCY:"Click Shortcut Currency",CLICK_EVENT_SHORTCUT_SWITCHER:"Click Shortcut Switcher",CLICK_EVENT_SHORTCUT_HOME:"Click Menu Home",CLICK_EVENT_SHORTCUT_TRANSCY:"Click Transcy"}},Tt={PAGE_VIEW:We,ACTION_EVENT:qe},ze=e=>zt({url:"tracking/event",method:"POST",data:e}),Je={trackingSegmentEvent:ze},Qe="li.transcy_menu_switcher",Xe=".wp-submenu-head",tn=".wp-first-item";function en(e){const{CLICK_EVENT_SHORTCUT_CURRENCY:t,CLICK_EVENT_SHORTCUT_LANGUAGE:n,CLICK_EVENT_SHORTCUT_SWITCHER:l,CLICK_EVENT_SHORTCUT_TRANSLATION:a}=Tt.ACTION_EVENT.HOME,r=async i=>{try{await Je.trackingSegmentEvent({event:i})}catch{console.warn("[SEGMENT] Error tracking event")}};return Wt(()=>{(()=>{var C;const i=document.querySelectorAll(Qe)||null,s=((C=i[0])==null?void 0:C.parentElement)||null,u=s==null?void 0:s.querySelector(Xe),d=s==null?void 0:s.querySelector(tn);u==null||u.addEventListener("click",()=>{r(Tt.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_HOME)}),d==null||d.addEventListener("click",()=>{r(Tt.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_TRANSCY)}),i==null||i.forEach(_=>{_.addEventListener("click",async()=>{var g;const p=((g=_.textContent)==null?void 0:g.trim().toUpperCase())||"";if(!p)return;const h={LANGUAGE:n,CURRENCY:t,TRANSLATION:a,SWITCHER:l}[p];await r(h)})})})()}),[]}class nn extends W{constructor(t){super(),Y(this,t,en,null,j,{})}}function on(e){let t,n,l,a,r;return n=new Ye({}),a=new nn({}),{c(){t=T("div"),tt(n.$$.fragment),l=N(),tt(a.$$.fragment)},m(i,s){D(i,t,s),K(n,t,null),c(t,l),K(a,t,null),r=!0},p:M,i(i){r||(b(n.$$.fragment,i),b(a.$$.fragment,i),r=!0)},o(i){O(n.$$.fragment,i),O(a.$$.fragment,i),r=!1},d(i){i&&A(t),P(n),P(a)}}}class ln extends W{constructor(t){super(),Y(this,t,null,on,j,{})}}new ln({target:document.getElementById("tc-modal__deactive--plugin")});
  • transcy/trunk/readme.txt

    r2968586 r2970135  
    55Requires at least: 4.5
    66Tested up to: 6.2.0
    7 Stable tag: 2.10.1
     7Stable tag: 2.10.2
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    164164
    165165== Changelog ==
     166= 2.10.2 - 2023-09-22 =
     167* Hotfix errors
     168
    166169= 2.10.1 - 2023-09-19 =
    167170* Added automatic synchronization and updates for translations of Posts, Pages, and Products.
  • transcy/trunk/transcy.php

    r2968586 r2970135  
    44Plugin URI: https://onecommerce.io/transcy/?utm_source=transcyphp&utm_medium=plugin-uri&utm_campaign=wordpress-tc
    55Description: Make your website multilingual easily with no coding. Instantly translate between languages with the Google Translate API.
    6 Version: 2.10.1
     6Version: 2.10.2
    77Author: OneCommerce
    88Author URI: https://onecommerce.io/transcy/?utm_source=transcyphp&utm_medium=author-uri&utm_campaign=wordpress-tc
Note: See TracChangeset for help on using the changeset viewer.