@fullsession.io/fs-feedback-widget 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/App.svelte +5 -5
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var fsFeedbackWidget=function(e){"use strict";function t(){}const n=e=>e;function l(e,t){for(const n in t)e[n]=t[n];return e}function o(e){return e()}function c(){return Object.create(null)}function i(e){e.forEach(o)}function r(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}const u="undefined"!=typeof window;let d=u?()=>window.performance.now():()=>Date.now(),f=u?e=>requestAnimationFrame(e):t;const m=new Set;function $(e){m.forEach((t=>{t.c(e)||(m.delete(t),t.f())})),0!==m.size&&f($)}function p(e){let t;return 0===m.size&&f($),{promise:new Promise((n=>{m.add(t={c:e,f:n})})),abort(){m.delete(t)}}}function g(e,t){e.appendChild(t)}function v(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function x(e){const t=w("style");return function(e,t){g(e.head||e,t)}(v(e),t),t.sheet}function h(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode.removeChild(e)}function w(e){return document.createElement(e)}function b(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function k(e){return document.createTextNode(e)}function C(){return k(" ")}function z(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function M(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function T(e,t,n,l){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,l?"important":"")}const _=new Map;let E,D=0;function q(e,t,n,l,o,c,i,r=0){const s=16.666/l;let a="{\n";for(let e=0;e<=1;e+=s){const l=t+(n-t)*c(e);a+=100*e+`%{${i(l,1-l)}}\n`}const u=a+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${r}`,f=v(e),{stylesheet:m,rules:$}=_.get(f)||function(e,t){const n={stylesheet:x(t),rules:{}};return _.set(e,n),n}(f,e);$[d]||($[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${d} ${l}ms linear ${o}ms 1 both`,D+=1,d}function P(e,t){const n=(e.style.animation||"").split(", "),l=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-l.length;o&&(e.style.animation=l.join(", "),D-=o,D||f((()=>{D||(_.forEach((e=>{const{stylesheet:t}=e;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.rules={}})),_.clear())})))}function S(e){E=e}const H=[],L=[],I=[],A=[],N=Promise.resolve();let F=!1;function R(e){I.push(e)}function O(e){A.push(e)}const j=new Set;let Q,X=0;function V(){const e=E;do{for(;X<H.length;){const e=H[X];X++,S(e),W(e.$$)}for(S(null),H.length=0,X=0;L.length;)L.pop()();for(let e=0;e<I.length;e+=1){const t=I[e];j.has(t)||(j.add(t),t())}I.length=0}while(H.length);for(;A.length;)A.pop()();F=!1,j.clear(),S(e)}function W(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(R)}}function G(){return Q||(Q=Promise.resolve(),Q.then((()=>{Q=null}))),Q}function J(e,t,n){e.dispatchEvent(function(e,t,n=!1){const l=document.createEvent("CustomEvent");return l.initCustomEvent(e,n,!1,t),l}(`${t?"intro":"outro"}${n}`))}const K=new Set;let U;function Y(){U={r:0,c:[],p:U}}function Z(){U.r||i(U.c),U=U.p}function ee(e,t){e&&e.i&&(K.delete(e),e.i(t))}function te(e,t,n,l){if(e&&e.o){if(K.has(e))return;K.add(e),U.c.push((()=>{K.delete(e),l&&(n&&e.d(1),l())})),e.o(t)}}const ne={duration:0};function le(e,t,n){const l=e.$$.props[t];void 0!==l&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function oe(e){e&&e.c()}function ce(e,t,n,l){const{fragment:c,on_mount:s,on_destroy:a,after_update:u}=e.$$;c&&c.m(t,n),l||R((()=>{const t=s.map(o).filter(r);a?a.push(...t):i(t),e.$$.on_mount=[]})),u.forEach(R)}function ie(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function re(e,t){-1===e.$$.dirty[0]&&(H.push(e),F||(F=!0,N.then(V)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(e,n,l,o,r,s,a,u=[-1]){const d=E;S(e);const f=e.$$={fragment:null,ctx:null,props:s,update:t,not_equal:r,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:c(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let m=!1;if(f.ctx=l?l(e,n.props||{},((t,n,...l)=>{const o=l.length?l[0]:n;return f.ctx&&r(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),m&&re(e,t)),n})):[],f.update(),m=!0,i(f.before_update),f.fragment=!!o&&o(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(y)}else f.fragment&&f.fragment.c();n.intro&&ee(e.$$.fragment),ce(e,n.target,n.anchor,n.customElement),V()}S(d)}class ae{$destroy(){ie(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ue(e){let n,l,o,c,i,r,s,a,u,d,f,m,$,p,v,x,w,k,C;return{c(){n=b("svg"),l=b("g"),o=b("g"),c=b("path"),i=b("g"),r=b("g"),s=b("g"),a=b("g"),u=b("g"),d=b("g"),f=b("g"),m=b("g"),$=b("g"),p=b("g"),v=b("g"),x=b("g"),w=b("g"),k=b("g"),C=b("g"),M(c,"d","M428,41.534H30c-16.569,0-30,13.431-30,30v252c0,16.568,13.432,30,30,30h132.1l43.942,52.243 c5.7,6.777,14.103,10.69,22.959,10.69c8.856,0,17.258-3.912,22.959-10.69l43.942-52.243H428c16.568,0,30-13.432,30-30v-252 C458,54.965,444.568,41.534,428,41.534z M323.916,281.534H82.854c-8.284,0-15-6.716-15-15s6.716-15,15-15h241.062 c8.284,0,15,6.716,15,15S332.2,281.534,323.916,281.534z M67.854,198.755c0-8.284,6.716-15,15-15h185.103c8.284,0,15,6.716,15,15 s-6.716,15-15,15H82.854C74.57,213.755,67.854,207.039,67.854,198.755z M375.146,145.974H82.854c-8.284,0-15-6.716-15-15 s6.716-15,15-15h292.291c8.284,0,15,6.716,15,15C390.146,139.258,383.43,145.974,375.146,145.974z"),M(n,"fill",e[0]),M(n,"version","1.1"),M(n,"id","Layer_1"),M(n,"xmlns","http://www.w3.org/2000/svg"),M(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),M(n,"x","0px"),M(n,"y","0px"),M(n,"viewBox","0 0 458 458"),T(n,"enable-background","new 0 0 458 458"),M(n,"xml:space","preserve")},m(e,t){h(e,n,t),g(n,l),g(l,o),g(o,c),g(n,i),g(n,r),g(n,s),g(n,a),g(n,u),g(n,d),g(n,f),g(n,m),g(n,$),g(n,p),g(n,v),g(n,x),g(n,w),g(n,k),g(n,C)},p(e,[t]){1&t&&M(n,"fill",e[0])},i:t,o:t,d(e){e&&y(n)}}}function de(e,t,n){let{fill:l=""}=t;return e.$$set=e=>{"fill"in e&&n(0,l=e.fill)},[l]}class fe extends ae{constructor(e){super(),se(this,e,de,ue,s,{fill:0})}}function me(e){let n,l,o=e[3].svg+"";return{c(){n=b("svg"),M(n,"class",l=e[4].class),M(n,"focusable",e[0]),M(n,"width",e[1]),M(n,"height",e[2]),M(n,"viewBox","0 0 "+e[3].box+" "+(e[3].box-1))},m(e,t){h(e,n,t),n.innerHTML=o},p(e,[t]){16&t&&l!==(l=e[4].class)&&M(n,"class",l),1&t&&M(n,"focusable",e[0]),2&t&&M(n,"width",e[1]),4&t&&M(n,"height",e[2])},i:t,o:t,d(e){e&&y(n)}}}function $e(e,t,n){let{name:o}=t,{focusable:c=!1}=t,{width:i="40px"}=t,{height:r="40px"}=t,s=[{box:50,name:"love",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="#EF7C54" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLove",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"like",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="#FDC537" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLike",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"neutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="#F59F45" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedNeutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"dislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"unSelectedDislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"hate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'},{box:50,name:"unSelectedHate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'}].find((e=>e.name===o));return e.$$set=e=>{n(4,t=l(l({},t),a(e))),"name"in e&&n(5,o=e.name),"focusable"in e&&n(0,c=e.focusable),"width"in e&&n(1,i=e.width),"height"in e&&n(2,r=e.height)},t=a(t),[c,i,r,s,t,o]}class pe extends ae{constructor(e){super(),se(this,e,$e,me,s,{name:5,focusable:0,width:1,height:2})}}function ge(e){let n,l,o,c,r,s,a,u,d,f,m,$=e[0].wgEmailReqMsg+"";function p(e,t){return 0==e[5]?ye:1==e[5]?he:void 0}let v=p(e),x=v&&v(e);return{c(){n=w("div"),l=w("div"),o=k($),c=C(),r=w("div"),r.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com" class="svelte-12ll7xn"/>',s=C(),a=w("div"),u=w("p"),u.innerHTML="<u>Skip</u>",d=C(),x&&x.c(),M(l,"id","emailText"),M(l,"class","svelte-12ll7xn"),M(r,"id","emailInputCont"),M(r,"class","svelte-12ll7xn"),M(u,"id","skipText"),M(u,"class","svelte-12ll7xn"),M(a,"class","emailFooter svelte-12ll7xn"),M(n,"class","emailContainer svelte-12ll7xn")},m(t,i){h(t,n,i),g(n,l),g(l,o),g(n,c),g(n,r),g(n,s),g(n,a),g(a,u),g(a,d),x&&x.m(a,null),f||(m=[z(r,"click",e[44]),z(u,"click",e[45])],f=!0)},p(e,t){1&t[0]&&$!==($=e[0].wgEmailReqMsg+"")&&B(o,$),v===(v=p(e))&&x?x.p(e,t):(x&&x.d(1),x=v&&v(e),x&&(x.c(),x.m(a,null)))},i:t,o:t,d(e){e&&y(n),x&&x.d(),f=!1,i(m)}}}function ve(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,b,k,B,T,_,E,D,q,P,S,H,L,I,A,N,F,R,O,j,Q,X,V,W,G,J,K,U,ne,le,oe;const ce=[be,we],ie=[];function re(e,t){return e[3]?0:0==e[3]?1:-1}~(c=re(e))&&(r=ie[c]=ce[c](e));const se=[Ce,ke],ae=[];function ue(e,t){return e[3]?0:0==e[3]?1:-1}~(m=ue(e))&&($=ae[m]=se[m](e));const de=[Me,ze],fe=[];function me(e,t){return e[3]?0:0==e[3]?1:-1}~(B=me(e))&&(T=fe[B]=de[B](e));const $e=[Te,Be],pe=[];function ge(e,t){return e[3]?0:0==e[3]?1:-1}~(S=ge(e))&&(H=pe[S]=$e[S](e));const ve=[Ee,_e],xe=[];function he(e,t){return e[3]?0:0==e[3]?1:-1}function ye(e,t){return 0==e[5]?qe:1==e[5]?De:void 0}~(R=he(e))&&(O=xe[R]=ve[R](e));let Pe=ye(e),Se=Pe&&Pe(e);return{c(){t=w("div"),n=w("div"),l=w("div"),o=w("div"),r&&r.c(),s=C(),a=w("p"),a.textContent="Hate",u=C(),d=w("div"),f=w("div"),$&&$.c(),p=C(),v=w("p"),v.textContent="Dislike",x=C(),b=w("div"),k=w("div"),T&&T.c(),_=C(),E=w("p"),E.textContent="Neutral",D=C(),q=w("div"),P=w("div"),H&&H.c(),L=C(),I=w("p"),I.textContent="Like",A=C(),N=w("div"),F=w("div"),O&&O.c(),j=C(),Q=w("p"),Q.textContent="Love",X=C(),V=w("div"),W=w("div"),G=C(),J=w("textarea"),K=C(),U=w("div"),Se&&Se.c(),M(o,"class","reactionIcon svelte-12ll7xn"),M(a,"class","reactionText svelte-12ll7xn"),M(a,"id","hateDiv"),M(l,"class","iconTextCont svelte-12ll7xn"),M(f,"class","reactionIcon svelte-12ll7xn"),M(v,"class","reactionText svelte-12ll7xn"),M(v,"id","dislikeDiv"),M(d,"class","iconTextCont svelte-12ll7xn"),M(k,"class","reactionIcon svelte-12ll7xn"),M(E,"class","reactionText svelte-12ll7xn"),M(E,"id","neutralDiv"),M(b,"class","iconTextCont svelte-12ll7xn"),M(P,"class","reactionIcon svelte-12ll7xn"),M(I,"class","reactionText svelte-12ll7xn"),M(I,"id","likeDiv"),M(q,"class","iconTextCont svelte-12ll7xn"),M(F,"class","reactionIcon svelte-12ll7xn"),M(Q,"class","reactionText svelte-12ll7xn"),M(Q,"id","loveDiv"),M(N,"class","iconTextCont svelte-12ll7xn"),M(n,"class","icons-second svelte-12ll7xn"),M(W,"class","pointerDiv svelte-12ll7xn"),M(W,"id","pointer"),M(J,"class","textArea svelte-12ll7xn"),M(J,"placeholder","Tell us your experience..."),M(V,"class","textAreaCont svelte-12ll7xn"),M(U,"class","footer svelte-12ll7xn"),M(t,"class","commentContainer svelte-12ll7xn")},m(i,r){h(i,t,r),g(t,n),g(n,l),g(l,o),~c&&ie[c].m(o,null),g(l,s),g(l,a),g(n,u),g(n,d),g(d,f),~m&&ae[m].m(f,null),g(d,p),g(d,v),g(n,x),g(n,b),g(b,k),~B&&fe[B].m(k,null),g(b,_),g(b,E),g(n,D),g(n,q),g(q,P),~S&&pe[S].m(P,null),g(q,L),g(q,I),g(n,A),g(n,N),g(N,F),~R&&xe[R].m(F,null),g(N,j),g(N,Q),g(t,X),g(t,V),g(V,W),g(V,G),g(V,J),g(t,K),g(t,U),Se&&Se.m(U,null),ne=!0,le||(oe=[z(l,"click",e[29]),z(d,"click",e[32]),z(b,"click",e[35]),z(q,"click",e[38]),z(F,"click",e[41]),z(J,"click",e[42])],le=!0)},p(e,t){let n=c;c=re(e),c===n?~c&&ie[c].p(e,t):(r&&(Y(),te(ie[n],1,1,(()=>{ie[n]=null})),Z()),~c?(r=ie[c],r?r.p(e,t):(r=ie[c]=ce[c](e),r.c()),ee(r,1),r.m(o,null)):r=null);let l=m;m=ue(e),m===l?~m&&ae[m].p(e,t):($&&(Y(),te(ae[l],1,1,(()=>{ae[l]=null})),Z()),~m?($=ae[m],$?$.p(e,t):($=ae[m]=se[m](e),$.c()),ee($,1),$.m(f,null)):$=null);let i=B;B=me(e),B===i?~B&&fe[B].p(e,t):(T&&(Y(),te(fe[i],1,1,(()=>{fe[i]=null})),Z()),~B?(T=fe[B],T?T.p(e,t):(T=fe[B]=de[B](e),T.c()),ee(T,1),T.m(k,null)):T=null);let s=S;S=ge(e),S===s?~S&&pe[S].p(e,t):(H&&(Y(),te(pe[s],1,1,(()=>{pe[s]=null})),Z()),~S?(H=pe[S],H?H.p(e,t):(H=pe[S]=$e[S](e),H.c()),ee(H,1),H.m(P,null)):H=null);let a=R;R=he(e),R===a?~R&&xe[R].p(e,t):(O&&(Y(),te(xe[a],1,1,(()=>{xe[a]=null})),Z()),~R?(O=xe[R],O?O.p(e,t):(O=xe[R]=ve[R](e),O.c()),ee(O,1),O.m(F,null)):O=null),Pe===(Pe=ye(e))&&Se?Se.p(e,t):(Se&&Se.d(1),Se=Pe&&Pe(e),Se&&(Se.c(),Se.m(U,null)))},i(e){ne||(ee(r),ee($),ee(T),ee(H),ee(O),ne=!0)},o(e){te(r),te($),te(T),te(H),te(O),ne=!1},d(e){e&&y(t),~c&&ie[c].d(),~m&&ae[m].d(),~B&&fe[B].d(),~S&&pe[S].d(),~R&&xe[R].d(),Se&&Se.d(),le=!1,i(oe)}}}function xe(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,b,T,_,E,D,q,P,S,H,I,A,N,F,R,j,Q,X,V,W,G,J,K,U,Y,Z,ne,re,se,ae=e[0].wgQuestion+"";function ue(t){e[17](t)}let de={};function fe(t){e[19](t)}void 0!==e[2][0]&&(de.name=e[2][0]),a=new pe({props:de}),L.push((()=>le(a,"name",ue)));let me={};function $e(t){e[21](t)}void 0!==e[2][1]&&(me.name=e[2][1]),v=new pe({props:me}),L.push((()=>le(v,"name",fe)));let ge={};function ve(t){e[23](t)}void 0!==e[2][2]&&(ge.name=e[2][2]),q=new pe({props:ge}),L.push((()=>le(q,"name",$e)));let xe={};function he(t){e[25](t)}void 0!==e[2][3]&&(xe.name=e[2][3]),F=new pe({props:xe}),L.push((()=>le(F,"name",ve)));let ye={};return void 0!==e[2][4]&&(ye.name=e[2][4]),G=new pe({props:ye}),L.push((()=>le(G,"name",he))),{c(){t=w("div"),n=w("div"),l=k(ae),o=C(),c=w("div"),r=w("div"),s=w("div"),oe(a.$$.fragment),d=C(),f=w("p"),f.textContent="Hate",m=C(),$=w("div"),p=w("div"),oe(v.$$.fragment),b=C(),T=w("p"),T.textContent="Dislike",_=C(),E=w("div"),D=w("div"),oe(q.$$.fragment),S=C(),H=w("p"),H.textContent="Neutral",I=C(),A=w("div"),N=w("div"),oe(F.$$.fragment),j=C(),Q=w("p"),Q.textContent="Like",X=C(),V=w("div"),W=w("div"),oe(G.$$.fragment),K=C(),U=w("p"),U.textContent="Love",Y=C(),Z=w("p"),M(n,"id","txt"),M(n,"class","svelte-12ll7xn"),M(s,"class","reactionIcon svelte-12ll7xn"),M(f,"class","reactionText svelte-12ll7xn"),M(r,"class","iconTextCont svelte-12ll7xn"),M(p,"class","reactionIcon svelte-12ll7xn"),M(T,"class","reactionText svelte-12ll7xn"),M($,"class","iconTextCont svelte-12ll7xn"),M(D,"class","reactionIcon svelte-12ll7xn"),M(H,"class","reactionText svelte-12ll7xn"),M(E,"class","iconTextCont svelte-12ll7xn"),M(N,"class","reactionIcon svelte-12ll7xn"),M(Q,"class","reactionText svelte-12ll7xn"),M(A,"class","iconTextCont svelte-12ll7xn"),M(W,"class","reactionIcon svelte-12ll7xn"),M(U,"class","reactionText svelte-12ll7xn"),M(V,"class","iconTextCont svelte-12ll7xn"),M(c,"class","icons svelte-12ll7xn"),M(Z,"id","test"),M(t,"class","container svelte-12ll7xn")},m(i,u){h(i,t,u),g(t,n),g(n,l),g(t,o),g(t,c),g(c,r),g(r,s),ce(a,s,null),g(r,d),g(r,f),g(c,m),g(c,$),g($,p),ce(v,p,null),g($,b),g($,T),g(c,_),g(c,E),g(E,D),ce(q,D,null),g(E,S),g(E,H),g(c,I),g(c,A),g(A,N),ce(F,N,null),g(A,j),g(A,Q),g(c,X),g(c,V),g(V,W),ce(G,W,null),g(V,K),g(V,U),g(t,Y),g(t,Z),ne=!0,re||(se=[z(r,"click",e[18]),z($,"click",e[20]),z(E,"click",e[22]),z(A,"click",e[24]),z(V,"click",e[26])],re=!0)},p(e,t){(!ne||1&t[0])&&ae!==(ae=e[0].wgQuestion+"")&&B(l,ae);const n={};!u&&4&t[0]&&(u=!0,n.name=e[2][0],O((()=>u=!1))),a.$set(n);const o={};!x&&4&t[0]&&(x=!0,o.name=e[2][1],O((()=>x=!1))),v.$set(o);const c={};!P&&4&t[0]&&(P=!0,c.name=e[2][2],O((()=>P=!1))),q.$set(c);const i={};!R&&4&t[0]&&(R=!0,i.name=e[2][3],O((()=>R=!1))),F.$set(i);const r={};!J&&4&t[0]&&(J=!0,r.name=e[2][4],O((()=>J=!1))),G.$set(r)},i(e){ne||(ee(a.$$.fragment,e),ee(v.$$.fragment,e),ee(q.$$.fragment,e),ee(F.$$.fragment,e),ee(G.$$.fragment,e),ne=!0)},o(e){te(a.$$.fragment,e),te(v.$$.fragment,e),te(q.$$.fragment,e),te(F.$$.fragment,e),te(G.$$.fragment,e),ne=!1},d(e){e&&y(t),ie(a),ie(v),ie(q),ie(F),ie(G),re=!1,i(se)}}}function he(e){let n,l,o;return{c(){n=w("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',M(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=z(n,"click",e[46]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function ye(e){let n;return{c(){n=w("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',M(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){h(e,n,t)},p:t,d(e){e&&y(n)}}}function we(e){let t,n,l;function o(t){e[28](t)}let c={};return void 0!==e[2][0]&&(c.name=e[2][0]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function be(e){let t,n,l;function o(t){e[27](t)}let c={};return void 0!==e[2][0]&&(c.name=e[2][0]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function ke(e){let t,n,l;function o(t){e[31](t)}let c={};return void 0!==e[2][1]&&(c.name=e[2][1]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Ce(e){let t,n,l;function o(t){e[30](t)}let c={};return void 0!==e[2][1]&&(c.name=e[2][1]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function ze(e){let t,n,l;function o(t){e[34](t)}let c={};return void 0!==e[2][2]&&(c.name=e[2][2]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Me(e){let t,n,l;function o(t){e[33](t)}let c={};return void 0!==e[2][2]&&(c.name=e[2][2]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Be(e){let t,n,l;function o(t){e[37](t)}let c={};return void 0!==e[2][3]&&(c.name=e[2][3]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Te(e){let t,n,l;function o(t){e[36](t)}let c={};return void 0!==e[2][3]&&(c.name=e[2][3]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function _e(e){let t,n,l;function o(t){e[40](t)}let c={};return void 0!==e[2][4]&&(c.name=e[2][4]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Ee(e){let t,n,l;function o(t){e[39](t)}let c={};return void 0!==e[2][4]&&(c.name=e[2][4]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function De(e){let n,l,o;return{c(){n=w("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',M(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=z(n,"click",e[43]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function qe(e){let n;return{c(){n=w("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',M(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){h(e,n,t)},p:t,d(e){e&&y(n)}}}function Pe(e){let t,n,l,o;const c=[xe,ve,ge],i=[];function r(e,t){return 1===e[4]?0:2===e[4]?1:3===e[4]?2:-1}return~(t=r(e))&&(n=i[t]=c[t](e)),{c(){n&&n.c(),l=k("")},m(e,n){~t&&i[t].m(e,n),h(e,l,n),o=!0},p(e,o){let s=t;t=r(e),t===s?~t&&i[t].p(e,o):(n&&(Y(),te(i[s],1,1,(()=>{i[s]=null})),Z()),~t?(n=i[t],n?n.p(e,o):(n=i[t]=c[t](e),n.c()),ee(n,1),n.m(l.parentNode,l)):n=null)},i(e){o||(ee(n),o=!0)},o(e){te(n),o=!1},d(e){~t&&i[t].d(e),e&&y(l)}}}function Se(e,t,n){let l,o,c,i,r,s,a,u,d,f,{feedbackData:m}=t,$=["hate","dislike","neutral","like","love"],p=$,g="test",v=!0,x=0,{closeHandler:h=(()=>{})}=t;const y=()=>{let e=document.querySelector(".textArea");f=setInterval((()=>{console.log(e.value),""===e.value?n(5,d=!1):n(5,d=!0)}),500)},w=()=>{let e=document.querySelector("#EmailTextArea");setInterval((()=>{console.log(e.value),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e.value)&&""!==e.value?n(5,d=!0):n(5,d=!1)}),500)},b=(e,t,u)=>{let d=g;var f;g=u,console.log(u),n(4,l=e),n(2,p=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),x>0&&("hate"==(f=d)?n(15,c="none"):"dislike"==f?n(14,i="none"):"neutral"==f?n(13,r="none"):"like"==f?n(12,s="none"):"love"==f&&n(10,a="none")),x++,1==t?(n(11,o=11),n(15,c="block"),n(2,p[0]=$[0],p),n(3,v=!v)):2==t?(n(2,p[1]=$[1],p),n(11,o=30),n(14,i="block"),n(3,v=!v)):3==t?(n(2,p[2]=$[2],p),n(11,o=49),n(13,r="block"),n(3,v=!v)):4==t?(n(2,p[3]=$[3],p),n(11,o=68),n(12,s="block"),n(3,v=!v)):5==t&&(n(2,p[4]=$[4],p),n(11,o=87),n(10,a="block"),n(3,v=!v))},k=e=>{clearInterval(f),n(5,d=!1),n(4,l=e)};return e.$$set=e=>{"feedbackData"in e&&n(0,m=e.feedbackData),"closeHandler"in e&&n(1,h=e.closeHandler)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(16,u=m.wgAccentColor),2048&e.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",o+"%"),32768&e.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",c),16384&e.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",i),8192&e.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",r),4096&e.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",s),1024&e.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",a),65536&e.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},n(4,l=1),n(11,o=10),n(15,c="none"),n(14,i="none"),n(13,r="none"),n(12,s="none"),n(10,a="none"),n(5,d=!1),[m,h,p,v,l,d,y,w,b,k,a,o,s,r,i,c,u,function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},()=>b(2,1,"hate"),function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},()=>b(2,2,"dislike"),function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},()=>b(2,3,"neutral"),function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},()=>b(2,4,"like"),function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},()=>b(2,5,"love"),function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},()=>b(2,1,"hate"),function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},()=>b(2,2,"dislike"),function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},()=>b(2,3,"neutral"),function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},()=>b(2,4,"like"),function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},()=>b(2,5,"love"),()=>y(),()=>k(3),()=>w(),()=>h(),()=>h()]}class He extends ae{constructor(e){super(),se(this,e,Se,Pe,s,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function Le(e){const t=e-1;return t*t*t+1}function Ie(e,{delay:t=0,duration:n=400,easing:l=Le,x:o=0,y:c=0,opacity:i=0}={}){const r=getComputedStyle(e),s=+r.opacity,a="none"===r.transform?"":r.transform,u=s*(1-i);return{delay:t,duration:n,easing:l,css:(e,t)=>`\n\t\t\ttransform: ${a} translate(${(1-e)*o}px, ${(1-e)*c}px);\n\t\t\topacity: ${s-u*t}`}}function Ae(e){let t,n,l,o,c,i,r,s,a;function u(t){e[19](t)}let d={};return void 0!==e[1]&&(d.fill=e[1]),c=new fe({props:d}),L.push((()=>le(c,"fill",u))),{c(){t=w("div"),n=w("div"),n.textContent="Feedback",l=C(),o=w("div"),oe(c.$$.fragment),M(n,"id","feedbackTxt"),M(n,"class","svelte-s6tzq0"),M(o,"id","mainIcon"),M(o,"class","svelte-s6tzq0"),M(t,"class","widget svelte-s6tzq0")},m(i,u){h(i,t,u),g(t,n),g(t,l),g(t,o),ce(c,o,null),r=!0,s||(a=z(t,"click",e[9]),s=!0)},p(e,t){const n={};!i&&2&t&&(i=!0,n.fill=e[1],O((()=>i=!1))),c.$set(n)},i(e){r||(ee(c.$$.fragment,e),r=!0)},o(e){te(c.$$.fragment,e),r=!1},d(e){e&&y(t),ie(c),s=!1,a()}}}function Ne(e){let l,o,c,i,s,a,u,f,m;function $(t){e[20](t)}let v={closeHandler:e[7]};return void 0!==e[0]&&(v.feedbackData=e[0]),i=new He({props:v}),L.push((()=>le(i,"feedbackData",$))),{c(){l=w("div"),o=w("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',c=C(),oe(i.$$.fragment),M(o,"class","closeCont svelte-s6tzq0"),M(l,"class","cont svelte-s6tzq0")},m(t,n){h(t,l,n),g(l,o),g(l,c),ce(i,l,null),u=!0,f||(m=z(o,"click",e[10]),f=!0)},p(t,n){e=t;const l={};!s&&1&n&&(s=!0,l.feedbackData=e[0],O((()=>s=!1))),i.$set(l)},i(o){u||(ee(i.$$.fragment,o),a||R((()=>{a=function(e,l,o){let c,i,s=l(e,o),a=!1,u=0;function f(){c&&P(e,c)}function m(){const{delay:l=0,duration:o=300,easing:r=n,tick:m=t,css:$}=s||ne;$&&(c=q(e,0,1,o,l,r,$,u++)),m(0,1);const g=d()+l,v=g+o;i&&i.abort(),a=!0,R((()=>J(e,!0,"start"))),i=p((t=>{if(a){if(t>=v)return m(1,0),J(e,!0,"end"),f(),a=!1;if(t>=g){const e=r((t-g)/o);m(e,1-e)}}return a}))}let $=!1;return{start(){$||($=!0,P(e),r(s)?(s=s(),G().then(m)):m())},invalidate(){$=!1},end(){a&&(f(),a=!1)}}}(l,Ie,{x:e[5],duration:500}),a.start()})),u=!0)},o(e){te(i.$$.fragment,e),u=!1},d(e){e&&y(l),ie(i),f=!1,m()}}}function Fe(e){let l,o,c,s,a,u,f,m,$,v=e[0].wgThanksMsg+"";return{c(){l=w("div"),o=w("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',c=C(),s=w("div"),a=k(v),M(o,"class","closeCont svelte-s6tzq0"),T(s,"width","61%"),T(s,"text-align","center"),T(s,"margin-top","7%"),T(s,"margin-left","20%"),M(l,"class","thanksMessageCont svelte-s6tzq0")},m(t,n){h(t,l,n),g(l,o),g(l,c),g(l,s),g(s,a),f=!0,m||($=z(o,"click",e[8]),m=!0)},p(t,n){e=t,(!f||1&n)&&v!==(v=e[0].wgThanksMsg+"")&&B(a,v)},i(e){f||(u&&u.end(1),f=!0)},o(o){u=function(e,l,o){let c,s=l(e,o),a=!0;const u=U;function f(){const{delay:l=0,duration:o=300,easing:r=n,tick:f=t,css:m}=s||ne;m&&(c=q(e,1,0,o,l,r,m));const $=d()+l,g=$+o;R((()=>J(e,!1,"start"))),p((t=>{if(a){if(t>=g)return f(0,1),J(e,!1,"end"),--u.r||i(u.c),!1;if(t>=$){const e=r((t-$)/o);f(1-e,e)}}return a}))}return u.r+=1,r(s)?G().then((()=>{s=s(),f()})):f(),{end(t){t&&s.tick&&s.tick(1,0),a&&(c&&P(e,c),a=!1)}}}(l,Ie,{x:e[6],duration:300}),f=!1},d(e){e&&y(l),e&&u&&u.end(),m=!1,$()}}}function Re(e){let t,n,l,o,c=e[3]&&Ae(e),i=e[2]&&Ne(e),r=e[4]&&Fe(e);return{c(){t=w("body"),c&&c.c(),n=C(),i&&i.c(),l=C(),r&&r.c(),M(t,"class","svelte-s6tzq0")},m(e,s){h(e,t,s),c&&c.m(t,null),g(t,n),i&&i.m(t,null),g(t,l),r&&r.m(t,null),o=!0},p(e,[o]){e[3]?c?(c.p(e,o),8&o&&ee(c,1)):(c=Ae(e),c.c(),ee(c,1),c.m(t,n)):c&&(Y(),te(c,1,1,(()=>{c=null})),Z()),e[2]?i?(i.p(e,o),4&o&&ee(i,1)):(i=Ne(e),i.c(),ee(i,1),i.m(t,l)):i&&(Y(),te(i,1,1,(()=>{i=null})),Z()),e[4]?r?(r.p(e,o),16&o&&ee(r,1)):(r=Fe(e),r.c(),ee(r,1),r.m(t,null)):r&&(Y(),te(r,1,1,(()=>{r=null})),Z())},i(e){o||(ee(c),ee(i),ee(r),o=!0)},o(e){te(c),te(i),te(r),o=!1},d(e){e&&y(t),c&&c.d(),i&&i.d(),r&&r.d()}}}function Oe(e,t,n){let l,{feedback:o}=t;console.log(o);let c="",i="";1===o.wgAlternateColor?(c="white",i="white"):(c="black",i="black");let r="",s="",a=0,u=0,d=0,f=0,m=!1,$=!0,p=!1,g=0,v=0;"0"==o.wgPosition&&(r="center",s="row-reverse",a=5,u=0,d=30,f=0,g=-100,v=20),"1"==o.wgPosition&&(r="center",s="row",a=0,u=5,d=0,f=30,g=100,v=-20),"2"==o.wgPosition&&(r="flex-end",s="row-reverse",a=5,d=30,f=0,g=-100,v=20),"3"==o.wgPosition&&(r="flex-end",s="row",a=0,u=5,d=0,f=30,g=100,v=-20);const x=()=>{n(2,m=!m),n(4,p=!p)};return e.$$set=e=>{"feedback"in e&&n(0,o=e.feedback)},e.$$.update=()=>{1&e.$$.dirty&&n(18,l=o.wgAccentColor),262144&e.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",l),2048&e.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",c),4096&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",r),8192&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",s),16384&e.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",a+"px"),32768&e.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",u+"px"),65536&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),131072&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",f+"px")},[o,i,m,$,p,g,v,()=>x(),()=>{n(4,p=!p),setTimeout((function(){n(3,$=!$)}),350)},()=>{n(2,m=!m),n(3,$=!$)},()=>{n(2,m=!m),setTimeout((function(){n(3,$=!$)}),350)},c,r,s,a,u,d,f,l,function(e){i=e,n(1,i)},function(e){o=e,n(0,o)}]}class je extends ae{constructor(e){super(),se(this,e,Oe,Re,s,{feedback:0})}}return e.feedbackCreator=function(e){new je({target:document.body,props:{feedback:e}})},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
1
|
+
var fsFeedbackWidget=function(e){"use strict";function t(){}const n=e=>e;function l(e,t){for(const n in t)e[n]=t[n];return e}function o(e){return e()}function c(){return Object.create(null)}function i(e){e.forEach(o)}function r(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}const u="undefined"!=typeof window;let d=u?()=>window.performance.now():()=>Date.now(),f=u?e=>requestAnimationFrame(e):t;const m=new Set;function $(e){m.forEach((t=>{t.c(e)||(m.delete(t),t.f())})),0!==m.size&&f($)}function p(e){let t;return 0===m.size&&f($),{promise:new Promise((n=>{m.add(t={c:e,f:n})})),abort(){m.delete(t)}}}function g(e,t){e.appendChild(t)}function v(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function x(e){const t=w("style");return function(e,t){g(e.head||e,t)}(v(e),t),t.sheet}function h(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode.removeChild(e)}function w(e){return document.createElement(e)}function b(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function k(e){return document.createTextNode(e)}function C(){return k(" ")}function z(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function M(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function T(e,t,n,l){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,l?"important":"")}const _=new Map;let E,D=0;function q(e,t,n,l,o,c,i,r=0){const s=16.666/l;let a="{\n";for(let e=0;e<=1;e+=s){const l=t+(n-t)*c(e);a+=100*e+`%{${i(l,1-l)}}\n`}const u=a+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${r}`,f=v(e),{stylesheet:m,rules:$}=_.get(f)||function(e,t){const n={stylesheet:x(t),rules:{}};return _.set(e,n),n}(f,e);$[d]||($[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${d} ${l}ms linear ${o}ms 1 both`,D+=1,d}function P(e,t){const n=(e.style.animation||"").split(", "),l=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-l.length;o&&(e.style.animation=l.join(", "),D-=o,D||f((()=>{D||(_.forEach((e=>{const{stylesheet:t}=e;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.rules={}})),_.clear())})))}function S(e){E=e}const H=[],L=[],I=[],A=[],N=Promise.resolve();let F=!1;function R(e){I.push(e)}function O(e){A.push(e)}const j=new Set;let Q,X=0;function V(){const e=E;do{for(;X<H.length;){const e=H[X];X++,S(e),W(e.$$)}for(S(null),H.length=0,X=0;L.length;)L.pop()();for(let e=0;e<I.length;e+=1){const t=I[e];j.has(t)||(j.add(t),t())}I.length=0}while(H.length);for(;A.length;)A.pop()();F=!1,j.clear(),S(e)}function W(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(R)}}function G(){return Q||(Q=Promise.resolve(),Q.then((()=>{Q=null}))),Q}function J(e,t,n){e.dispatchEvent(function(e,t,n=!1){const l=document.createEvent("CustomEvent");return l.initCustomEvent(e,n,!1,t),l}(`${t?"intro":"outro"}${n}`))}const K=new Set;let U;function Y(){U={r:0,c:[],p:U}}function Z(){U.r||i(U.c),U=U.p}function ee(e,t){e&&e.i&&(K.delete(e),e.i(t))}function te(e,t,n,l){if(e&&e.o){if(K.has(e))return;K.add(e),U.c.push((()=>{K.delete(e),l&&(n&&e.d(1),l())})),e.o(t)}}const ne={duration:0};function le(e,t,n){const l=e.$$.props[t];void 0!==l&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function oe(e){e&&e.c()}function ce(e,t,n,l){const{fragment:c,on_mount:s,on_destroy:a,after_update:u}=e.$$;c&&c.m(t,n),l||R((()=>{const t=s.map(o).filter(r);a?a.push(...t):i(t),e.$$.on_mount=[]})),u.forEach(R)}function ie(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function re(e,t){-1===e.$$.dirty[0]&&(H.push(e),F||(F=!0,N.then(V)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(e,n,l,o,r,s,a,u=[-1]){const d=E;S(e);const f=e.$$={fragment:null,ctx:null,props:s,update:t,not_equal:r,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:c(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let m=!1;if(f.ctx=l?l(e,n.props||{},((t,n,...l)=>{const o=l.length?l[0]:n;return f.ctx&&r(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),m&&re(e,t)),n})):[],f.update(),m=!0,i(f.before_update),f.fragment=!!o&&o(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(y)}else f.fragment&&f.fragment.c();n.intro&&ee(e.$$.fragment),ce(e,n.target,n.anchor,n.customElement),V()}S(d)}class ae{$destroy(){ie(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ue(e){let n,l,o,c,i,r,s,a,u,d,f,m,$,p,v,x,w,k,C;return{c(){n=b("svg"),l=b("g"),o=b("g"),c=b("path"),i=b("g"),r=b("g"),s=b("g"),a=b("g"),u=b("g"),d=b("g"),f=b("g"),m=b("g"),$=b("g"),p=b("g"),v=b("g"),x=b("g"),w=b("g"),k=b("g"),C=b("g"),M(c,"d","M428,41.534H30c-16.569,0-30,13.431-30,30v252c0,16.568,13.432,30,30,30h132.1l43.942,52.243 c5.7,6.777,14.103,10.69,22.959,10.69c8.856,0,17.258-3.912,22.959-10.69l43.942-52.243H428c16.568,0,30-13.432,30-30v-252 C458,54.965,444.568,41.534,428,41.534z M323.916,281.534H82.854c-8.284,0-15-6.716-15-15s6.716-15,15-15h241.062 c8.284,0,15,6.716,15,15S332.2,281.534,323.916,281.534z M67.854,198.755c0-8.284,6.716-15,15-15h185.103c8.284,0,15,6.716,15,15 s-6.716,15-15,15H82.854C74.57,213.755,67.854,207.039,67.854,198.755z M375.146,145.974H82.854c-8.284,0-15-6.716-15-15 s6.716-15,15-15h292.291c8.284,0,15,6.716,15,15C390.146,139.258,383.43,145.974,375.146,145.974z"),M(n,"fill",e[0]),M(n,"version","1.1"),M(n,"id","Layer_1"),M(n,"xmlns","http://www.w3.org/2000/svg"),M(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),M(n,"x","0px"),M(n,"y","0px"),M(n,"viewBox","0 0 458 458"),T(n,"enable-background","new 0 0 458 458"),M(n,"xml:space","preserve")},m(e,t){h(e,n,t),g(n,l),g(l,o),g(o,c),g(n,i),g(n,r),g(n,s),g(n,a),g(n,u),g(n,d),g(n,f),g(n,m),g(n,$),g(n,p),g(n,v),g(n,x),g(n,w),g(n,k),g(n,C)},p(e,[t]){1&t&&M(n,"fill",e[0])},i:t,o:t,d(e){e&&y(n)}}}function de(e,t,n){let{fill:l=""}=t;return e.$$set=e=>{"fill"in e&&n(0,l=e.fill)},[l]}class fe extends ae{constructor(e){super(),se(this,e,de,ue,s,{fill:0})}}function me(e){let n,l,o=e[3].svg+"";return{c(){n=b("svg"),M(n,"class",l=e[4].class),M(n,"focusable",e[0]),M(n,"width",e[1]),M(n,"height",e[2]),M(n,"viewBox","0 0 "+e[3].box+" "+(e[3].box-1))},m(e,t){h(e,n,t),n.innerHTML=o},p(e,[t]){16&t&&l!==(l=e[4].class)&&M(n,"class",l),1&t&&M(n,"focusable",e[0]),2&t&&M(n,"width",e[1]),4&t&&M(n,"height",e[2])},i:t,o:t,d(e){e&&y(n)}}}function $e(e,t,n){let{name:o}=t,{focusable:c=!1}=t,{width:i="40px"}=t,{height:r="40px"}=t,s=[{box:50,name:"love",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="#EF7C54" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLove",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"like",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="#FDC537" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLike",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"neutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="#F59F45" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedNeutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"dislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"unSelectedDislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"hate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'},{box:50,name:"unSelectedHate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'}].find((e=>e.name===o));return e.$$set=e=>{n(4,t=l(l({},t),a(e))),"name"in e&&n(5,o=e.name),"focusable"in e&&n(0,c=e.focusable),"width"in e&&n(1,i=e.width),"height"in e&&n(2,r=e.height)},t=a(t),[c,i,r,s,t,o]}class pe extends ae{constructor(e){super(),se(this,e,$e,me,s,{name:5,focusable:0,width:1,height:2})}}function ge(e){let n,l,o,c,r,s,a,u,d,f,m,$=e[0].wgEmailReqMsg+"";function p(e,t){return 0==e[5]?ye:1==e[5]?he:void 0}let v=p(e),x=v&&v(e);return{c(){n=w("div"),l=w("div"),o=k($),c=C(),r=w("div"),r.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com" class="svelte-12ll7xn"/>',s=C(),a=w("div"),u=w("p"),u.innerHTML="<u>Skip</u>",d=C(),x&&x.c(),M(l,"id","emailText"),M(l,"class","svelte-12ll7xn"),M(r,"id","emailInputCont"),M(r,"class","svelte-12ll7xn"),M(u,"id","skipText"),M(u,"class","svelte-12ll7xn"),M(a,"class","emailFooter svelte-12ll7xn"),M(n,"class","emailContainer svelte-12ll7xn")},m(t,i){h(t,n,i),g(n,l),g(l,o),g(n,c),g(n,r),g(n,s),g(n,a),g(a,u),g(a,d),x&&x.m(a,null),f||(m=[z(r,"click",e[44]),z(u,"click",e[45])],f=!0)},p(e,t){1&t[0]&&$!==($=e[0].wgEmailReqMsg+"")&&B(o,$),v===(v=p(e))&&x?x.p(e,t):(x&&x.d(1),x=v&&v(e),x&&(x.c(),x.m(a,null)))},i:t,o:t,d(e){e&&y(n),x&&x.d(),f=!1,i(m)}}}function ve(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,b,k,B,T,_,E,D,q,P,S,H,L,I,A,N,F,R,O,j,Q,X,V,W,G,J,K,U,ne,le,oe;const ce=[be,we],ie=[];function re(e,t){return e[3]?0:0==e[3]?1:-1}~(c=re(e))&&(r=ie[c]=ce[c](e));const se=[Ce,ke],ae=[];function ue(e,t){return e[3]?0:0==e[3]?1:-1}~(m=ue(e))&&($=ae[m]=se[m](e));const de=[Me,ze],fe=[];function me(e,t){return e[3]?0:0==e[3]?1:-1}~(B=me(e))&&(T=fe[B]=de[B](e));const $e=[Te,Be],pe=[];function ge(e,t){return e[3]?0:0==e[3]?1:-1}~(S=ge(e))&&(H=pe[S]=$e[S](e));const ve=[Ee,_e],xe=[];function he(e,t){return e[3]?0:0==e[3]?1:-1}function ye(e,t){return 0==e[5]?qe:1==e[5]?De:void 0}~(R=he(e))&&(O=xe[R]=ve[R](e));let Pe=ye(e),Se=Pe&&Pe(e);return{c(){t=w("div"),n=w("div"),l=w("div"),o=w("div"),r&&r.c(),s=C(),a=w("p"),a.textContent="Hate",u=C(),d=w("div"),f=w("div"),$&&$.c(),p=C(),v=w("p"),v.textContent="Dislike",x=C(),b=w("div"),k=w("div"),T&&T.c(),_=C(),E=w("p"),E.textContent="Neutral",D=C(),q=w("div"),P=w("div"),H&&H.c(),L=C(),I=w("p"),I.textContent="Like",A=C(),N=w("div"),F=w("div"),O&&O.c(),j=C(),Q=w("p"),Q.textContent="Love",X=C(),V=w("div"),W=w("div"),G=C(),J=w("textarea"),K=C(),U=w("div"),Se&&Se.c(),M(o,"class","reactionIcon svelte-12ll7xn"),M(a,"class","reactionText svelte-12ll7xn"),M(a,"id","hateDiv"),M(l,"class","iconTextCont svelte-12ll7xn"),M(f,"class","reactionIcon svelte-12ll7xn"),M(v,"class","reactionText svelte-12ll7xn"),M(v,"id","dislikeDiv"),M(d,"class","iconTextCont svelte-12ll7xn"),M(k,"class","reactionIcon svelte-12ll7xn"),M(E,"class","reactionText svelte-12ll7xn"),M(E,"id","neutralDiv"),M(b,"class","iconTextCont svelte-12ll7xn"),M(P,"class","reactionIcon svelte-12ll7xn"),M(I,"class","reactionText svelte-12ll7xn"),M(I,"id","likeDiv"),M(q,"class","iconTextCont svelte-12ll7xn"),M(F,"class","reactionIcon svelte-12ll7xn"),M(Q,"class","reactionText svelte-12ll7xn"),M(Q,"id","loveDiv"),M(N,"class","iconTextCont svelte-12ll7xn"),M(n,"class","icons-second svelte-12ll7xn"),M(W,"class","pointerDiv svelte-12ll7xn"),M(W,"id","pointer"),M(J,"class","textArea svelte-12ll7xn"),M(J,"placeholder","Tell us your experience..."),M(V,"class","textAreaCont svelte-12ll7xn"),M(U,"class","footer svelte-12ll7xn"),M(t,"class","commentContainer svelte-12ll7xn")},m(i,r){h(i,t,r),g(t,n),g(n,l),g(l,o),~c&&ie[c].m(o,null),g(l,s),g(l,a),g(n,u),g(n,d),g(d,f),~m&&ae[m].m(f,null),g(d,p),g(d,v),g(n,x),g(n,b),g(b,k),~B&&fe[B].m(k,null),g(b,_),g(b,E),g(n,D),g(n,q),g(q,P),~S&&pe[S].m(P,null),g(q,L),g(q,I),g(n,A),g(n,N),g(N,F),~R&&xe[R].m(F,null),g(N,j),g(N,Q),g(t,X),g(t,V),g(V,W),g(V,G),g(V,J),g(t,K),g(t,U),Se&&Se.m(U,null),ne=!0,le||(oe=[z(l,"click",e[29]),z(d,"click",e[32]),z(b,"click",e[35]),z(q,"click",e[38]),z(F,"click",e[41]),z(J,"click",e[42])],le=!0)},p(e,t){let n=c;c=re(e),c===n?~c&&ie[c].p(e,t):(r&&(Y(),te(ie[n],1,1,(()=>{ie[n]=null})),Z()),~c?(r=ie[c],r?r.p(e,t):(r=ie[c]=ce[c](e),r.c()),ee(r,1),r.m(o,null)):r=null);let l=m;m=ue(e),m===l?~m&&ae[m].p(e,t):($&&(Y(),te(ae[l],1,1,(()=>{ae[l]=null})),Z()),~m?($=ae[m],$?$.p(e,t):($=ae[m]=se[m](e),$.c()),ee($,1),$.m(f,null)):$=null);let i=B;B=me(e),B===i?~B&&fe[B].p(e,t):(T&&(Y(),te(fe[i],1,1,(()=>{fe[i]=null})),Z()),~B?(T=fe[B],T?T.p(e,t):(T=fe[B]=de[B](e),T.c()),ee(T,1),T.m(k,null)):T=null);let s=S;S=ge(e),S===s?~S&&pe[S].p(e,t):(H&&(Y(),te(pe[s],1,1,(()=>{pe[s]=null})),Z()),~S?(H=pe[S],H?H.p(e,t):(H=pe[S]=$e[S](e),H.c()),ee(H,1),H.m(P,null)):H=null);let a=R;R=he(e),R===a?~R&&xe[R].p(e,t):(O&&(Y(),te(xe[a],1,1,(()=>{xe[a]=null})),Z()),~R?(O=xe[R],O?O.p(e,t):(O=xe[R]=ve[R](e),O.c()),ee(O,1),O.m(F,null)):O=null),Pe===(Pe=ye(e))&&Se?Se.p(e,t):(Se&&Se.d(1),Se=Pe&&Pe(e),Se&&(Se.c(),Se.m(U,null)))},i(e){ne||(ee(r),ee($),ee(T),ee(H),ee(O),ne=!0)},o(e){te(r),te($),te(T),te(H),te(O),ne=!1},d(e){e&&y(t),~c&&ie[c].d(),~m&&ae[m].d(),~B&&fe[B].d(),~S&&pe[S].d(),~R&&xe[R].d(),Se&&Se.d(),le=!1,i(oe)}}}function xe(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,b,T,_,E,D,q,P,S,H,I,A,N,F,R,j,Q,X,V,W,G,J,K,U,Y,Z,ne,re,se,ae=e[0].wgQuestion+"";function ue(t){e[17](t)}let de={};function fe(t){e[19](t)}void 0!==e[2][0]&&(de.name=e[2][0]),a=new pe({props:de}),L.push((()=>le(a,"name",ue)));let me={};function $e(t){e[21](t)}void 0!==e[2][1]&&(me.name=e[2][1]),v=new pe({props:me}),L.push((()=>le(v,"name",fe)));let ge={};function ve(t){e[23](t)}void 0!==e[2][2]&&(ge.name=e[2][2]),q=new pe({props:ge}),L.push((()=>le(q,"name",$e)));let xe={};function he(t){e[25](t)}void 0!==e[2][3]&&(xe.name=e[2][3]),F=new pe({props:xe}),L.push((()=>le(F,"name",ve)));let ye={};return void 0!==e[2][4]&&(ye.name=e[2][4]),G=new pe({props:ye}),L.push((()=>le(G,"name",he))),{c(){t=w("div"),n=w("div"),l=k(ae),o=C(),c=w("div"),r=w("div"),s=w("div"),oe(a.$$.fragment),d=C(),f=w("p"),f.textContent="Hate",m=C(),$=w("div"),p=w("div"),oe(v.$$.fragment),b=C(),T=w("p"),T.textContent="Dislike",_=C(),E=w("div"),D=w("div"),oe(q.$$.fragment),S=C(),H=w("p"),H.textContent="Neutral",I=C(),A=w("div"),N=w("div"),oe(F.$$.fragment),j=C(),Q=w("p"),Q.textContent="Like",X=C(),V=w("div"),W=w("div"),oe(G.$$.fragment),K=C(),U=w("p"),U.textContent="Love",Y=C(),Z=w("p"),M(n,"id","txt"),M(n,"class","svelte-12ll7xn"),M(s,"class","reactionIcon svelte-12ll7xn"),M(f,"class","reactionText svelte-12ll7xn"),M(r,"class","iconTextCont svelte-12ll7xn"),M(p,"class","reactionIcon svelte-12ll7xn"),M(T,"class","reactionText svelte-12ll7xn"),M($,"class","iconTextCont svelte-12ll7xn"),M(D,"class","reactionIcon svelte-12ll7xn"),M(H,"class","reactionText svelte-12ll7xn"),M(E,"class","iconTextCont svelte-12ll7xn"),M(N,"class","reactionIcon svelte-12ll7xn"),M(Q,"class","reactionText svelte-12ll7xn"),M(A,"class","iconTextCont svelte-12ll7xn"),M(W,"class","reactionIcon svelte-12ll7xn"),M(U,"class","reactionText svelte-12ll7xn"),M(V,"class","iconTextCont svelte-12ll7xn"),M(c,"class","icons svelte-12ll7xn"),M(Z,"id","test"),M(t,"class","container svelte-12ll7xn")},m(i,u){h(i,t,u),g(t,n),g(n,l),g(t,o),g(t,c),g(c,r),g(r,s),ce(a,s,null),g(r,d),g(r,f),g(c,m),g(c,$),g($,p),ce(v,p,null),g($,b),g($,T),g(c,_),g(c,E),g(E,D),ce(q,D,null),g(E,S),g(E,H),g(c,I),g(c,A),g(A,N),ce(F,N,null),g(A,j),g(A,Q),g(c,X),g(c,V),g(V,W),ce(G,W,null),g(V,K),g(V,U),g(t,Y),g(t,Z),ne=!0,re||(se=[z(r,"click",e[18]),z($,"click",e[20]),z(E,"click",e[22]),z(A,"click",e[24]),z(V,"click",e[26])],re=!0)},p(e,t){(!ne||1&t[0])&&ae!==(ae=e[0].wgQuestion+"")&&B(l,ae);const n={};!u&&4&t[0]&&(u=!0,n.name=e[2][0],O((()=>u=!1))),a.$set(n);const o={};!x&&4&t[0]&&(x=!0,o.name=e[2][1],O((()=>x=!1))),v.$set(o);const c={};!P&&4&t[0]&&(P=!0,c.name=e[2][2],O((()=>P=!1))),q.$set(c);const i={};!R&&4&t[0]&&(R=!0,i.name=e[2][3],O((()=>R=!1))),F.$set(i);const r={};!J&&4&t[0]&&(J=!0,r.name=e[2][4],O((()=>J=!1))),G.$set(r)},i(e){ne||(ee(a.$$.fragment,e),ee(v.$$.fragment,e),ee(q.$$.fragment,e),ee(F.$$.fragment,e),ee(G.$$.fragment,e),ne=!0)},o(e){te(a.$$.fragment,e),te(v.$$.fragment,e),te(q.$$.fragment,e),te(F.$$.fragment,e),te(G.$$.fragment,e),ne=!1},d(e){e&&y(t),ie(a),ie(v),ie(q),ie(F),ie(G),re=!1,i(se)}}}function he(e){let n,l,o;return{c(){n=w("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',M(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=z(n,"click",e[46]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function ye(e){let n;return{c(){n=w("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',M(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){h(e,n,t)},p:t,d(e){e&&y(n)}}}function we(e){let t,n,l;function o(t){e[28](t)}let c={};return void 0!==e[2][0]&&(c.name=e[2][0]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function be(e){let t,n,l;function o(t){e[27](t)}let c={};return void 0!==e[2][0]&&(c.name=e[2][0]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function ke(e){let t,n,l;function o(t){e[31](t)}let c={};return void 0!==e[2][1]&&(c.name=e[2][1]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Ce(e){let t,n,l;function o(t){e[30](t)}let c={};return void 0!==e[2][1]&&(c.name=e[2][1]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function ze(e){let t,n,l;function o(t){e[34](t)}let c={};return void 0!==e[2][2]&&(c.name=e[2][2]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Me(e){let t,n,l;function o(t){e[33](t)}let c={};return void 0!==e[2][2]&&(c.name=e[2][2]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Be(e){let t,n,l;function o(t){e[37](t)}let c={};return void 0!==e[2][3]&&(c.name=e[2][3]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Te(e){let t,n,l;function o(t){e[36](t)}let c={};return void 0!==e[2][3]&&(c.name=e[2][3]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function _e(e){let t,n,l;function o(t){e[40](t)}let c={};return void 0!==e[2][4]&&(c.name=e[2][4]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Ee(e){let t,n,l;function o(t){e[39](t)}let c={};return void 0!==e[2][4]&&(c.name=e[2][4]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function De(e){let n,l,o;return{c(){n=w("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',M(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=z(n,"click",e[43]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function qe(e){let n;return{c(){n=w("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',M(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){h(e,n,t)},p:t,d(e){e&&y(n)}}}function Pe(e){let t,n,l,o;const c=[xe,ve,ge],i=[];function r(e,t){return 1===e[4]?0:2===e[4]?1:3===e[4]?2:-1}return~(t=r(e))&&(n=i[t]=c[t](e)),{c(){n&&n.c(),l=k("")},m(e,n){~t&&i[t].m(e,n),h(e,l,n),o=!0},p(e,o){let s=t;t=r(e),t===s?~t&&i[t].p(e,o):(n&&(Y(),te(i[s],1,1,(()=>{i[s]=null})),Z()),~t?(n=i[t],n?n.p(e,o):(n=i[t]=c[t](e),n.c()),ee(n,1),n.m(l.parentNode,l)):n=null)},i(e){o||(ee(n),o=!0)},o(e){te(n),o=!1},d(e){~t&&i[t].d(e),e&&y(l)}}}function Se(e,t,n){let l,o,c,i,r,s,a,u,d,f,{feedbackData:m}=t,$=["hate","dislike","neutral","like","love"],p=$,g="test",v=!0,x=0,{closeHandler:h=(()=>{})}=t;const y=()=>{let e=document.querySelector(".textArea");f=setInterval((()=>{console.log(e.value),""===e.value?n(5,d=!1):n(5,d=!0)}),500)},w=()=>{let e=document.querySelector("#EmailTextArea");setInterval((()=>{console.log(e.value),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e.value)&&""!==e.value?n(5,d=!0):n(5,d=!1)}),500)},b=(e,t,u)=>{let d=g;var f;g=u,console.log(u),n(4,l=e),n(2,p=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),x>0&&("hate"==(f=d)?n(15,c="none"):"dislike"==f?n(14,i="none"):"neutral"==f?n(13,r="none"):"like"==f?n(12,s="none"):"love"==f&&n(10,a="none")),x++,1==t?(n(11,o=11),n(15,c="block"),n(2,p[0]=$[0],p),n(3,v=!v)):2==t?(n(2,p[1]=$[1],p),n(11,o=30),n(14,i="block"),n(3,v=!v)):3==t?(n(2,p[2]=$[2],p),n(11,o=49),n(13,r="block"),n(3,v=!v)):4==t?(n(2,p[3]=$[3],p),n(11,o=68),n(12,s="block"),n(3,v=!v)):5==t&&(n(2,p[4]=$[4],p),n(11,o=87),n(10,a="block"),n(3,v=!v))},k=e=>{clearInterval(f),n(5,d=!1),n(4,l=e)};return e.$$set=e=>{"feedbackData"in e&&n(0,m=e.feedbackData),"closeHandler"in e&&n(1,h=e.closeHandler)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(16,u=m.wgAccentColor),2048&e.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",o+"%"),32768&e.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",c),16384&e.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",i),8192&e.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",r),4096&e.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",s),1024&e.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",a),65536&e.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},n(4,l=1),n(11,o=10),n(15,c="none"),n(14,i="none"),n(13,r="none"),n(12,s="none"),n(10,a="none"),n(5,d=!1),[m,h,p,v,l,d,y,w,b,k,a,o,s,r,i,c,u,function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},()=>b(2,1,"hate"),function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},()=>b(2,2,"dislike"),function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},()=>b(2,3,"neutral"),function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},()=>b(2,4,"like"),function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},()=>b(2,5,"love"),function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},()=>b(2,1,"hate"),function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},()=>b(2,2,"dislike"),function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},()=>b(2,3,"neutral"),function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},()=>b(2,4,"like"),function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},()=>b(2,5,"love"),()=>y(),()=>k(3),()=>w(),()=>h(),()=>h()]}class He extends ae{constructor(e){super(),se(this,e,Se,Pe,s,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function Le(e){const t=e-1;return t*t*t+1}function Ie(e,{delay:t=0,duration:n=400,easing:l=Le,x:o=0,y:c=0,opacity:i=0}={}){const r=getComputedStyle(e),s=+r.opacity,a="none"===r.transform?"":r.transform,u=s*(1-i);return{delay:t,duration:n,easing:l,css:(e,t)=>`\n\t\t\ttransform: ${a} translate(${(1-e)*o}px, ${(1-e)*c}px);\n\t\t\topacity: ${s-u*t}`}}function Ae(e){let t,n,l,o,c,i,r,s,a;function u(t){e[19](t)}let d={};return void 0!==e[1]&&(d.fill=e[1]),c=new fe({props:d}),L.push((()=>le(c,"fill",u))),{c(){t=w("div"),n=w("div"),n.textContent="Feedback",l=C(),o=w("div"),oe(c.$$.fragment),M(n,"id","feedbackTxt"),M(n,"class","svelte-s6tzq0"),M(o,"id","mainIcon"),M(o,"class","svelte-s6tzq0"),M(t,"class","widget svelte-s6tzq0")},m(i,u){h(i,t,u),g(t,n),g(t,l),g(t,o),ce(c,o,null),r=!0,s||(a=z(t,"click",e[9]),s=!0)},p(e,t){const n={};!i&&2&t&&(i=!0,n.fill=e[1],O((()=>i=!1))),c.$set(n)},i(e){r||(ee(c.$$.fragment,e),r=!0)},o(e){te(c.$$.fragment,e),r=!1},d(e){e&&y(t),ie(c),s=!1,a()}}}function Ne(e){let l,o,c,i,s,a,u,f,m;function $(t){e[20](t)}let v={closeHandler:e[7]};return void 0!==e[0]&&(v.feedbackData=e[0]),i=new He({props:v}),L.push((()=>le(i,"feedbackData",$))),{c(){l=w("div"),o=w("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',c=C(),oe(i.$$.fragment),M(o,"class","closeCont svelte-s6tzq0"),M(l,"class","cont svelte-s6tzq0")},m(t,n){h(t,l,n),g(l,o),g(l,c),ce(i,l,null),u=!0,f||(m=z(o,"click",e[10]),f=!0)},p(t,n){e=t;const l={};!s&&1&n&&(s=!0,l.feedbackData=e[0],O((()=>s=!1))),i.$set(l)},i(o){u||(ee(i.$$.fragment,o),a||R((()=>{a=function(e,l,o){let c,i,s=l(e,o),a=!1,u=0;function f(){c&&P(e,c)}function m(){const{delay:l=0,duration:o=300,easing:r=n,tick:m=t,css:$}=s||ne;$&&(c=q(e,0,1,o,l,r,$,u++)),m(0,1);const g=d()+l,v=g+o;i&&i.abort(),a=!0,R((()=>J(e,!0,"start"))),i=p((t=>{if(a){if(t>=v)return m(1,0),J(e,!0,"end"),f(),a=!1;if(t>=g){const e=r((t-g)/o);m(e,1-e)}}return a}))}let $=!1;return{start(){$||($=!0,P(e),r(s)?(s=s(),G().then(m)):m())},invalidate(){$=!1},end(){a&&(f(),a=!1)}}}(l,Ie,{x:e[5],duration:500}),a.start()})),u=!0)},o(e){te(i.$$.fragment,e),u=!1},d(e){e&&y(l),ie(i),f=!1,m()}}}function Fe(e){let l,o,c,s,a,u,f,m,$,v=e[0].wgThanksMsg+"";return{c(){l=w("div"),o=w("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',c=C(),s=w("div"),a=k(v),M(o,"class","closeCont svelte-s6tzq0"),T(s,"width","61%"),T(s,"text-align","center"),T(s,"margin-top","7%"),T(s,"margin-left","20%"),M(l,"class","thanksMessageCont svelte-s6tzq0")},m(t,n){h(t,l,n),g(l,o),g(l,c),g(l,s),g(s,a),f=!0,m||($=z(o,"click",e[8]),m=!0)},p(t,n){e=t,(!f||1&n)&&v!==(v=e[0].wgThanksMsg+"")&&B(a,v)},i(e){f||(u&&u.end(1),f=!0)},o(o){u=function(e,l,o){let c,s=l(e,o),a=!0;const u=U;function f(){const{delay:l=0,duration:o=300,easing:r=n,tick:f=t,css:m}=s||ne;m&&(c=q(e,1,0,o,l,r,m));const $=d()+l,g=$+o;R((()=>J(e,!1,"start"))),p((t=>{if(a){if(t>=g)return f(0,1),J(e,!1,"end"),--u.r||i(u.c),!1;if(t>=$){const e=r((t-$)/o);f(1-e,e)}}return a}))}return u.r+=1,r(s)?G().then((()=>{s=s(),f()})):f(),{end(t){t&&s.tick&&s.tick(1,0),a&&(c&&P(e,c),a=!1)}}}(l,Ie,{x:e[6],duration:300}),f=!1},d(e){e&&y(l),e&&u&&u.end(),m=!1,$()}}}function Re(e){let t,n,l,o,c=e[3]&&Ae(e),i=e[2]&&Ne(e),r=e[4]&&Fe(e);return{c(){t=w("body"),c&&c.c(),n=C(),i&&i.c(),l=C(),r&&r.c(),M(t,"class","svelte-s6tzq0")},m(e,s){h(e,t,s),c&&c.m(t,null),g(t,n),i&&i.m(t,null),g(t,l),r&&r.m(t,null),o=!0},p(e,[o]){e[3]?c?(c.p(e,o),8&o&&ee(c,1)):(c=Ae(e),c.c(),ee(c,1),c.m(t,n)):c&&(Y(),te(c,1,1,(()=>{c=null})),Z()),e[2]?i?(i.p(e,o),4&o&&ee(i,1)):(i=Ne(e),i.c(),ee(i,1),i.m(t,l)):i&&(Y(),te(i,1,1,(()=>{i=null})),Z()),e[4]?r?(r.p(e,o),16&o&&ee(r,1)):(r=Fe(e),r.c(),ee(r,1),r.m(t,null)):r&&(Y(),te(r,1,1,(()=>{r=null})),Z())},i(e){o||(ee(c),ee(i),ee(r),o=!0)},o(e){te(c),te(i),te(r),o=!1},d(e){e&&y(t),c&&c.d(),i&&i.d(),r&&r.d()}}}function Oe(e,t,n){let l,{feedback:o}=t;console.log(o);let c="",i="";!0===o.wgAlternateColor?(c="white",i="white"):(c="black",i="black");let r="",s="",a=0,u=0,d=0,f=0,m=!1,$=!0,p=!1,g=0,v=0;0==Number(o.wgPosition)&&(r="center",s="row-reverse",a=5,u=0,d=30,f=0,g=-100,v=20),1==Number(o.wgPosition)&&(r="center",s="row",a=0,u=5,d=0,f=30,g=100,v=-20),2==Number(o.wgPosition)&&(r="flex-end",s="row-reverse",a=5,d=30,f=0,g=-100,v=20),3==Number(o.wgPosition)&&(r="flex-end",s="row",a=0,u=5,d=0,f=30,g=100,v=-20);const x=()=>{n(2,m=!m),n(4,p=!p)};return e.$$set=e=>{"feedback"in e&&n(0,o=e.feedback)},e.$$.update=()=>{1&e.$$.dirty&&n(18,l=o.wgAccentColor),262144&e.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",l),2048&e.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",c),4096&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",r),8192&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",s),16384&e.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",a+"px"),32768&e.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",u+"px"),65536&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),131072&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",f+"px")},[o,i,m,$,p,g,v,()=>x(),()=>{n(4,p=!p),setTimeout((function(){n(3,$=!$)}),350)},()=>{n(2,m=!m),n(3,$=!$)},()=>{n(2,m=!m),setTimeout((function(){n(3,$=!$)}),350)},c,r,s,a,u,d,f,l,function(e){i=e,n(1,i)},function(e){o=e,n(0,o)}]}class je extends ae{constructor(e){super(),se(this,e,Oe,Re,s,{feedback:0})}}return e.feedbackCreator=function(e){new je({target:document.body,props:{feedback:e}})},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|