@fullsession.io/fs-feedback-widget 1.0.5 → 1.0.7

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.mjs CHANGED
@@ -1,2 +1,2 @@
1
- function e(){}const t=e=>e;function n(e,t){for(const n in t)e[n]=t[n];return e}function l(e){return e()}function o(){return Object.create(null)}function c(e){e.forEach(l)}function i(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}const a="undefined"!=typeof window;let u=a?()=>window.performance.now():()=>Date.now(),d=a?e=>requestAnimationFrame(e):e;const f=new Set;function m(e){f.forEach((t=>{t.c(e)||(f.delete(t),t.f())})),0!==f.size&&d(m)}function $(e){let t;return 0===f.size&&d(m),{promise:new Promise((n=>{f.add(t={c:e,f:n})})),abort(){f.delete(t)}}}function p(e,t){e.appendChild(t)}function g(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function v(e){const t=y("style");return function(e,t){p(e.head||e,t)}(g(e),t),t.sheet}function x(e,t,n){e.insertBefore(t,n||null)}function h(e){e.parentNode.removeChild(e)}function y(e){return document.createElement(e)}function w(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function k(){return b(" ")}function C(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function z(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 M(e,t,n,l){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,l?"important":"")}const T=new Map;let _,E=0;function D(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=g(e),{stylesheet:m,rules:$}=T.get(f)||function(e,t){const n={stylesheet:v(t),rules:{}};return T.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`,E+=1,d}function q(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(", "),E-=o,E||d((()=>{E||(T.forEach((e=>{const{stylesheet:t}=e;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.rules={}})),T.clear())})))}function S(e){_=e}const H=[],L=[],P=[],I=[],A=Promise.resolve();let N=!1;function R(e){P.push(e)}function F(e){I.push(e)}const O=new Set;let j,Q=0;function X(){const e=_;do{for(;Q<H.length;){const e=H[Q];Q++,S(e),V(e.$$)}for(S(null),H.length=0,Q=0;L.length;)L.pop()();for(let e=0;e<P.length;e+=1){const t=P[e];O.has(t)||(O.add(t),t())}P.length=0}while(H.length);for(;I.length;)I.pop()();N=!1,O.clear(),S(e)}function V(e){if(null!==e.fragment){e.update(),c(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 j||(j=Promise.resolve(),j.then((()=>{j=null}))),j}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 W(){U={r:0,c:[],p:U}}function Y(){U.r||c(U.c),U=U.p}function Z(e,t){e&&e.i&&(K.delete(e),e.i(t))}function ee(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 te={duration:0};function ne(e,t,n){const l=e.$$.props[t];void 0!==l&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function le(e){e&&e.c()}function oe(e,t,n,o){const{fragment:r,on_mount:s,on_destroy:a,after_update:u}=e.$$;r&&r.m(t,n),o||R((()=>{const t=s.map(l).filter(i);a?a.push(...t):c(t),e.$$.on_mount=[]})),u.forEach(R)}function ce(e,t){const n=e.$$;null!==n.fragment&&(c(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ie(e,t){-1===e.$$.dirty[0]&&(H.push(e),N||(N=!0,A.then(X)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function re(t,n,l,i,r,s,a,u=[-1]){const d=_;S(t);const f=t.$$={fragment:null,ctx:null,props:s,update:e,not_equal:r,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let m=!1;if(f.ctx=l?l(t,n.props||{},((e,n,...l)=>{const o=l.length?l[0]:n;return f.ctx&&r(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),m&&ie(t,e)),n})):[],f.update(),m=!0,c(f.before_update),f.fragment=!!i&&i(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(h)}else f.fragment&&f.fragment.c();n.intro&&Z(t.$$.fragment),oe(t,n.target,n.anchor,n.customElement),X()}S(d)}class se{$destroy(){ce(this,1),this.$destroy=e}$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 ae(t){let n,l,o,c,i,r,s,a,u,d,f,m,$,g,v,y,b,k,C;return{c(){n=w("svg"),l=w("g"),o=w("g"),c=w("path"),i=w("g"),r=w("g"),s=w("g"),a=w("g"),u=w("g"),d=w("g"),f=w("g"),m=w("g"),$=w("g"),g=w("g"),v=w("g"),y=w("g"),b=w("g"),k=w("g"),C=w("g"),z(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"),z(n,"fill",t[0]),z(n,"version","1.1"),z(n,"id","Layer_1"),z(n,"xmlns","http://www.w3.org/2000/svg"),z(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),z(n,"x","0px"),z(n,"y","0px"),z(n,"viewBox","0 0 458 458"),M(n,"enable-background","new 0 0 458 458"),z(n,"xml:space","preserve")},m(e,t){x(e,n,t),p(n,l),p(l,o),p(o,c),p(n,i),p(n,r),p(n,s),p(n,a),p(n,u),p(n,d),p(n,f),p(n,m),p(n,$),p(n,g),p(n,v),p(n,y),p(n,b),p(n,k),p(n,C)},p(e,[t]){1&t&&z(n,"fill",e[0])},i:e,o:e,d(e){e&&h(n)}}}function ue(e,t,n){let{fill:l=""}=t;return e.$$set=e=>{"fill"in e&&n(0,l=e.fill)},[l]}class de extends se{constructor(e){super(),re(this,e,ue,ae,r,{fill:0})}}function fe(t){let n,l,o=t[3].svg+"";return{c(){n=w("svg"),z(n,"class",l=t[4].class),z(n,"focusable",t[0]),z(n,"width",t[1]),z(n,"height",t[2]),z(n,"viewBox","0 0 "+t[3].box+" "+(t[3].box-1))},m(e,t){x(e,n,t),n.innerHTML=o},p(e,[t]){16&t&&l!==(l=e[4].class)&&z(n,"class",l),1&t&&z(n,"focusable",e[0]),2&t&&z(n,"width",e[1]),4&t&&z(n,"height",e[2])},i:e,o:e,d(e){e&&h(n)}}}function me(e,t,l){let{name:o}=t,{focusable:c=!1}=t,{width:i="40px"}=t,{height:r="40px"}=t,a=[{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=>{l(4,t=n(n({},t),s(e))),"name"in e&&l(5,o=e.name),"focusable"in e&&l(0,c=e.focusable),"width"in e&&l(1,i=e.width),"height"in e&&l(2,r=e.height)},t=s(t),[c,i,r,a,t,o]}class $e extends se{constructor(e){super(),re(this,e,me,fe,r,{name:5,focusable:0,width:1,height:2})}}function pe(t){let n,l,o,i,r,s,a,u,d,f,m,$=t[0].wgEmailReqMsg+"";function g(e,t){return 0==e[5]?he:1==e[5]?xe:void 0}let v=g(t),w=v&&v(t);return{c(){n=y("div"),l=y("div"),o=b($),i=k(),r=y("div"),r.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com" class="svelte-12ll7xn"/>',s=k(),a=y("div"),u=y("p"),u.innerHTML="<u>Skip</u>",d=k(),w&&w.c(),z(l,"id","emailText"),z(l,"class","svelte-12ll7xn"),z(r,"id","emailInputCont"),z(r,"class","svelte-12ll7xn"),z(u,"id","skipText"),z(u,"class","svelte-12ll7xn"),z(a,"class","emailFooter svelte-12ll7xn"),z(n,"class","emailContainer svelte-12ll7xn")},m(e,c){x(e,n,c),p(n,l),p(l,o),p(n,i),p(n,r),p(n,s),p(n,a),p(a,u),p(a,d),w&&w.m(a,null),f||(m=[C(r,"click",t[44]),C(u,"click",t[45])],f=!0)},p(e,t){1&t[0]&&$!==($=e[0].wgEmailReqMsg+"")&&B(o,$),v===(v=g(e))&&w?w.p(e,t):(w&&w.d(1),w=v&&v(e),w&&(w.c(),w.m(a,null)))},i:e,o:e,d(e){e&&h(n),w&&w.d(),f=!1,c(m)}}}function ge(e){let t,n,l,o,i,r,s,a,u,d,f,m,$,g,v,w,b,B,M,T,_,E,D,q,S,H,L,P,I,A,N,R,F,O,j,Q,X,V,G,J,K,U,te,ne,le,oe;const ce=[we,ye],ie=[];function re(e,t){return e[3]?0:0==e[3]?1:-1}~(i=re(e))&&(r=ie[i]=ce[i](e));const se=[ke,be],ae=[];function ue(e,t){return e[3]?0:0==e[3]?1:-1}~(m=ue(e))&&($=ae[m]=se[m](e));const de=[ze,Ce],fe=[];function me(e,t){return e[3]?0:0==e[3]?1:-1}~(M=me(e))&&(T=fe[M]=de[M](e));const $e=[Me,Be],pe=[];function ge(e,t){return e[3]?0:0==e[3]?1:-1}~(H=ge(e))&&(L=pe[H]=$e[H](e));const ve=[_e,Te],xe=[];function he(e,t){return e[3]?0:0==e[3]?1:-1}function qe(e,t){return 0==e[5]?De:1==e[5]?Ee:void 0}~(F=he(e))&&(O=xe[F]=ve[F](e));let Se=qe(e),He=Se&&Se(e);return{c(){t=y("div"),n=y("div"),l=y("div"),o=y("div"),r&&r.c(),s=k(),a=y("p"),a.textContent="Hate",u=k(),d=y("div"),f=y("div"),$&&$.c(),g=k(),v=y("p"),v.textContent="Dislike",w=k(),b=y("div"),B=y("div"),T&&T.c(),_=k(),E=y("p"),E.textContent="Neutral",D=k(),q=y("div"),S=y("div"),L&&L.c(),P=k(),I=y("p"),I.textContent="Like",A=k(),N=y("div"),R=y("div"),O&&O.c(),j=k(),Q=y("p"),Q.textContent="Love",X=k(),V=y("div"),G=y("div"),J=k(),K=y("textarea"),U=k(),te=y("div"),He&&He.c(),z(o,"class","reactionIcon svelte-12ll7xn"),z(a,"class","reactionText svelte-12ll7xn"),z(a,"id","hateDiv"),z(l,"class","iconTextCont svelte-12ll7xn"),z(f,"class","reactionIcon svelte-12ll7xn"),z(v,"class","reactionText svelte-12ll7xn"),z(v,"id","dislikeDiv"),z(d,"class","iconTextCont svelte-12ll7xn"),z(B,"class","reactionIcon svelte-12ll7xn"),z(E,"class","reactionText svelte-12ll7xn"),z(E,"id","neutralDiv"),z(b,"class","iconTextCont svelte-12ll7xn"),z(S,"class","reactionIcon svelte-12ll7xn"),z(I,"class","reactionText svelte-12ll7xn"),z(I,"id","likeDiv"),z(q,"class","iconTextCont svelte-12ll7xn"),z(R,"class","reactionIcon svelte-12ll7xn"),z(Q,"class","reactionText svelte-12ll7xn"),z(Q,"id","loveDiv"),z(N,"class","iconTextCont svelte-12ll7xn"),z(n,"class","icons-second svelte-12ll7xn"),z(G,"class","pointerDiv svelte-12ll7xn"),z(G,"id","pointer"),z(K,"class","textArea svelte-12ll7xn"),z(K,"placeholder","Tell us your experience..."),z(V,"class","textAreaCont svelte-12ll7xn"),z(te,"class","footer svelte-12ll7xn"),z(t,"class","commentContainer svelte-12ll7xn")},m(c,r){x(c,t,r),p(t,n),p(n,l),p(l,o),~i&&ie[i].m(o,null),p(l,s),p(l,a),p(n,u),p(n,d),p(d,f),~m&&ae[m].m(f,null),p(d,g),p(d,v),p(n,w),p(n,b),p(b,B),~M&&fe[M].m(B,null),p(b,_),p(b,E),p(n,D),p(n,q),p(q,S),~H&&pe[H].m(S,null),p(q,P),p(q,I),p(n,A),p(n,N),p(N,R),~F&&xe[F].m(R,null),p(N,j),p(N,Q),p(t,X),p(t,V),p(V,G),p(V,J),p(V,K),p(t,U),p(t,te),He&&He.m(te,null),ne=!0,le||(oe=[C(l,"click",e[29]),C(d,"click",e[32]),C(b,"click",e[35]),C(q,"click",e[38]),C(R,"click",e[41]),C(K,"click",e[42])],le=!0)},p(e,t){let n=i;i=re(e),i===n?~i&&ie[i].p(e,t):(r&&(W(),ee(ie[n],1,1,(()=>{ie[n]=null})),Y()),~i?(r=ie[i],r?r.p(e,t):(r=ie[i]=ce[i](e),r.c()),Z(r,1),r.m(o,null)):r=null);let l=m;m=ue(e),m===l?~m&&ae[m].p(e,t):($&&(W(),ee(ae[l],1,1,(()=>{ae[l]=null})),Y()),~m?($=ae[m],$?$.p(e,t):($=ae[m]=se[m](e),$.c()),Z($,1),$.m(f,null)):$=null);let c=M;M=me(e),M===c?~M&&fe[M].p(e,t):(T&&(W(),ee(fe[c],1,1,(()=>{fe[c]=null})),Y()),~M?(T=fe[M],T?T.p(e,t):(T=fe[M]=de[M](e),T.c()),Z(T,1),T.m(B,null)):T=null);let s=H;H=ge(e),H===s?~H&&pe[H].p(e,t):(L&&(W(),ee(pe[s],1,1,(()=>{pe[s]=null})),Y()),~H?(L=pe[H],L?L.p(e,t):(L=pe[H]=$e[H](e),L.c()),Z(L,1),L.m(S,null)):L=null);let a=F;F=he(e),F===a?~F&&xe[F].p(e,t):(O&&(W(),ee(xe[a],1,1,(()=>{xe[a]=null})),Y()),~F?(O=xe[F],O?O.p(e,t):(O=xe[F]=ve[F](e),O.c()),Z(O,1),O.m(R,null)):O=null),Se===(Se=qe(e))&&He?He.p(e,t):(He&&He.d(1),He=Se&&Se(e),He&&(He.c(),He.m(te,null)))},i(e){ne||(Z(r),Z($),Z(T),Z(L),Z(O),ne=!0)},o(e){ee(r),ee($),ee(T),ee(L),ee(O),ne=!1},d(e){e&&h(t),~i&&ie[i].d(),~m&&ae[m].d(),~M&&fe[M].d(),~H&&pe[H].d(),~F&&xe[F].d(),He&&He.d(),le=!1,c(oe)}}}function ve(e){let t,n,l,o,i,r,s,a,u,d,f,m,$,g,v,w,M,T,_,E,D,q,S,H,P,I,A,N,R,O,j,Q,X,V,G,J,K,U,W,Y,te,ie,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 $e({props:de}),L.push((()=>ne(a,"name",ue)));let me={};function pe(t){e[21](t)}void 0!==e[2][1]&&(me.name=e[2][1]),v=new $e({props:me}),L.push((()=>ne(v,"name",fe)));let ge={};function ve(t){e[23](t)}void 0!==e[2][2]&&(ge.name=e[2][2]),q=new $e({props:ge}),L.push((()=>ne(q,"name",pe)));let xe={};function he(t){e[25](t)}void 0!==e[2][3]&&(xe.name=e[2][3]),R=new $e({props:xe}),L.push((()=>ne(R,"name",ve)));let ye={};return void 0!==e[2][4]&&(ye.name=e[2][4]),J=new $e({props:ye}),L.push((()=>ne(J,"name",he))),{c(){t=y("div"),n=y("div"),l=b(ae),o=k(),i=y("div"),r=y("div"),s=y("div"),le(a.$$.fragment),d=k(),f=y("p"),f.textContent="Hate",m=k(),$=y("div"),g=y("div"),le(v.$$.fragment),M=k(),T=y("p"),T.textContent="Dislike",_=k(),E=y("div"),D=y("div"),le(q.$$.fragment),H=k(),P=y("p"),P.textContent="Neutral",I=k(),A=y("div"),N=y("div"),le(R.$$.fragment),j=k(),Q=y("p"),Q.textContent="Like",X=k(),V=y("div"),G=y("div"),le(J.$$.fragment),U=k(),W=y("p"),W.textContent="Love",Y=k(),te=y("p"),z(n,"id","txt"),z(n,"class","svelte-12ll7xn"),z(s,"class","reactionIcon svelte-12ll7xn"),z(f,"class","reactionText svelte-12ll7xn"),z(r,"class","iconTextCont svelte-12ll7xn"),z(g,"class","reactionIcon svelte-12ll7xn"),z(T,"class","reactionText svelte-12ll7xn"),z($,"class","iconTextCont svelte-12ll7xn"),z(D,"class","reactionIcon svelte-12ll7xn"),z(P,"class","reactionText svelte-12ll7xn"),z(E,"class","iconTextCont svelte-12ll7xn"),z(N,"class","reactionIcon svelte-12ll7xn"),z(Q,"class","reactionText svelte-12ll7xn"),z(A,"class","iconTextCont svelte-12ll7xn"),z(G,"class","reactionIcon svelte-12ll7xn"),z(W,"class","reactionText svelte-12ll7xn"),z(V,"class","iconTextCont svelte-12ll7xn"),z(i,"class","icons svelte-12ll7xn"),z(te,"id","test"),z(t,"class","container svelte-12ll7xn")},m(c,u){x(c,t,u),p(t,n),p(n,l),p(t,o),p(t,i),p(i,r),p(r,s),oe(a,s,null),p(r,d),p(r,f),p(i,m),p(i,$),p($,g),oe(v,g,null),p($,M),p($,T),p(i,_),p(i,E),p(E,D),oe(q,D,null),p(E,H),p(E,P),p(i,I),p(i,A),p(A,N),oe(R,N,null),p(A,j),p(A,Q),p(i,X),p(i,V),p(V,G),oe(J,G,null),p(V,U),p(V,W),p(t,Y),p(t,te),ie=!0,re||(se=[C(r,"click",e[18]),C($,"click",e[20]),C(E,"click",e[22]),C(A,"click",e[24]),C(V,"click",e[26])],re=!0)},p(e,t){(!ie||1&t[0])&&ae!==(ae=e[0].wgQuestion+"")&&B(l,ae);const n={};!u&&4&t[0]&&(u=!0,n.name=e[2][0],F((()=>u=!1))),a.$set(n);const o={};!w&&4&t[0]&&(w=!0,o.name=e[2][1],F((()=>w=!1))),v.$set(o);const c={};!S&&4&t[0]&&(S=!0,c.name=e[2][2],F((()=>S=!1))),q.$set(c);const i={};!O&&4&t[0]&&(O=!0,i.name=e[2][3],F((()=>O=!1))),R.$set(i);const r={};!K&&4&t[0]&&(K=!0,r.name=e[2][4],F((()=>K=!1))),J.$set(r)},i(e){ie||(Z(a.$$.fragment,e),Z(v.$$.fragment,e),Z(q.$$.fragment,e),Z(R.$$.fragment,e),Z(J.$$.fragment,e),ie=!0)},o(e){ee(a.$$.fragment,e),ee(v.$$.fragment,e),ee(q.$$.fragment,e),ee(R.$$.fragment,e),ee(J.$$.fragment,e),ie=!1},d(e){e&&h(t),ce(a),ce(v),ce(q),ce(R),ce(J),re=!1,c(se)}}}function xe(t){let n,l,o;return{c(){n=y("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',z(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(e,c){x(e,n,c),l||(o=C(n,"click",t[46]),l=!0)},p:e,d(e){e&&h(n),l=!1,o()}}}function he(t){let n;return{c(){n=y("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',z(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){x(e,n,t)},p:e,d(e){e&&h(n)}}}function ye(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function we(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function be(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function ke(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function Ce(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function ze(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function Me(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function Te(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function _e(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 $e({props:c}),L.push((()=>ne(t,"name",o))),{c(){le(t.$$.fragment)},m(e,n){oe(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],F((()=>n=!1))),t.$set(o)},i(e){l||(Z(t.$$.fragment,e),l=!0)},o(e){ee(t.$$.fragment,e),l=!1},d(e){ce(t,e)}}}function Ee(t){let n,l,o;return{c(){n=y("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',z(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(e,c){x(e,n,c),l||(o=C(n,"click",t[43]),l=!0)},p:e,d(e){e&&h(n),l=!1,o()}}}function De(t){let n;return{c(){n=y("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',z(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){x(e,n,t)},p:e,d(e){e&&h(n)}}}function qe(e){let t,n,l,o;const c=[ve,ge,pe],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=b("")},m(e,n){~t&&i[t].m(e,n),x(e,l,n),o=!0},p(e,o){let s=t;t=r(e),t===s?~t&&i[t].p(e,o):(n&&(W(),ee(i[s],1,1,(()=>{i[s]=null})),Y()),~t?(n=i[t],n?n.p(e,o):(n=i[t]=c[t](e),n.c()),Z(n,1),n.m(l.parentNode,l)):n=null)},i(e){o||(Z(n),o=!0)},o(e){ee(n),o=!1},d(e){~t&&i[t].d(e),e&&h(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 se{constructor(e){super(),re(this,e,Se,qe,r,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function Le(e){const t=e-1;return t*t*t+1}function Pe(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 Ie(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 de({props:d}),L.push((()=>ne(c,"fill",u))),{c(){t=y("div"),n=y("div"),n.textContent="Feedback",l=k(),o=y("div"),le(c.$$.fragment),z(n,"id","feedbackTxt"),z(n,"class","svelte-s6tzq0"),z(o,"id","mainIcon"),z(o,"class","svelte-s6tzq0"),z(t,"class","widget svelte-s6tzq0")},m(i,u){x(i,t,u),p(t,n),p(t,l),p(t,o),oe(c,o,null),r=!0,s||(a=C(t,"click",e[9]),s=!0)},p(e,t){const n={};!i&&2&t&&(i=!0,n.fill=e[1],F((()=>i=!1))),c.$set(n)},i(e){r||(Z(c.$$.fragment,e),r=!0)},o(e){ee(c.$$.fragment,e),r=!1},d(e){e&&h(t),ce(c),s=!1,a()}}}function Ae(n){let l,o,c,r,s,a,d,f,m;function g(e){n[20](e)}let v={closeHandler:n[7]};return void 0!==n[0]&&(v.feedbackData=n[0]),r=new He({props:v}),L.push((()=>ne(r,"feedbackData",g))),{c(){l=y("div"),o=y("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',c=k(),le(r.$$.fragment),z(o,"class","closeCont svelte-s6tzq0"),z(l,"class","cont svelte-s6tzq0")},m(e,t){x(e,l,t),p(l,o),p(l,c),oe(r,l,null),d=!0,f||(m=C(o,"click",n[10]),f=!0)},p(e,t){n=e;const l={};!s&&1&t&&(s=!0,l.feedbackData=n[0],F((()=>s=!1))),r.$set(l)},i(o){d||(Z(r.$$.fragment,o),a||R((()=>{a=function(n,l,o){let c,r,s=l(n,o),a=!1,d=0;function f(){c&&q(n,c)}function m(){const{delay:l=0,duration:o=300,easing:i=t,tick:m=e,css:p}=s||te;p&&(c=D(n,0,1,o,l,i,p,d++)),m(0,1);const g=u()+l,v=g+o;r&&r.abort(),a=!0,R((()=>J(n,!0,"start"))),r=$((e=>{if(a){if(e>=v)return m(1,0),J(n,!0,"end"),f(),a=!1;if(e>=g){const t=i((e-g)/o);m(t,1-t)}}return a}))}let p=!1;return{start(){p||(p=!0,q(n),i(s)?(s=s(),G().then(m)):m())},invalidate(){p=!1},end(){a&&(f(),a=!1)}}}(l,Pe,{x:n[5],duration:500}),a.start()})),d=!0)},o(e){ee(r.$$.fragment,e),d=!1},d(e){e&&h(l),ce(r),f=!1,m()}}}function Ne(n){let l,o,r,s,a,d,f,m,g,v=n[0].wgThanksMsg+"";return{c(){l=y("div"),o=y("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',r=k(),s=y("div"),a=b(v),z(o,"class","closeCont svelte-s6tzq0"),M(s,"width","61%"),M(s,"text-align","center"),M(s,"margin-top","7%"),M(s,"margin-left","20%"),z(l,"class","thanksMessageCont svelte-s6tzq0")},m(e,t){x(e,l,t),p(l,o),p(l,r),p(l,s),p(s,a),f=!0,m||(g=C(o,"click",n[8]),m=!0)},p(e,t){n=e,(!f||1&t)&&v!==(v=n[0].wgThanksMsg+"")&&B(a,v)},i(e){f||(d&&d.end(1),f=!0)},o(o){d=function(n,l,o){let r,s=l(n,o),a=!0;const d=U;function f(){const{delay:l=0,duration:o=300,easing:i=t,tick:f=e,css:m}=s||te;m&&(r=D(n,1,0,o,l,i,m));const p=u()+l,g=p+o;R((()=>J(n,!1,"start"))),$((e=>{if(a){if(e>=g)return f(0,1),J(n,!1,"end"),--d.r||c(d.c),!1;if(e>=p){const t=i((e-p)/o);f(1-t,t)}}return a}))}return d.r+=1,i(s)?G().then((()=>{s=s(),f()})):f(),{end(e){e&&s.tick&&s.tick(1,0),a&&(r&&q(n,r),a=!1)}}}(l,Pe,{x:n[6],duration:300}),f=!1},d(e){e&&h(l),e&&d&&d.end(),m=!1,g()}}}function Re(e){let t,n,l,o,c=e[3]&&Ie(e),i=e[2]&&Ae(e),r=e[4]&&Ne(e);return{c(){t=y("body"),c&&c.c(),n=k(),i&&i.c(),l=k(),r&&r.c(),z(t,"class","svelte-s6tzq0")},m(e,s){x(e,t,s),c&&c.m(t,null),p(t,n),i&&i.m(t,null),p(t,l),r&&r.m(t,null),o=!0},p(e,[o]){e[3]?c?(c.p(e,o),8&o&&Z(c,1)):(c=Ie(e),c.c(),Z(c,1),c.m(t,n)):c&&(W(),ee(c,1,1,(()=>{c=null})),Y()),e[2]?i?(i.p(e,o),4&o&&Z(i,1)):(i=Ae(e),i.c(),Z(i,1),i.m(t,l)):i&&(W(),ee(i,1,1,(()=>{i=null})),Y()),e[4]?r?(r.p(e,o),16&o&&Z(r,1)):(r=Ne(e),r.c(),Z(r,1),r.m(t,null)):r&&(W(),ee(r,1,1,(()=>{r=null})),Y())},i(e){o||(Z(c),Z(i),Z(r),o=!0)},o(e){ee(c),ee(i),ee(r),o=!1},d(e){e&&h(t),c&&c.d(),i&&i.d(),r&&r.d()}}}function Fe(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 Oe extends se{constructor(e){super(),re(this,e,Fe,Re,r,{feedback:0})}}function je(e){new Oe({target:document.body,props:{feedback:e}})}export{je as feedbackCreator};
1
+ function n(){}const t=n=>n;function e(n,t){for(const e in t)n[e]=t[e];return n}function o(n){return n()}function l(){return Object.create(null)}function c(n){n.forEach(o)}function i(n){return"function"==typeof n}function r(n,t){return n!=n?t==t:n!==t||n&&"object"==typeof n||"function"==typeof n}function a(n){const t={};for(const e in n)"$"!==e[0]&&(t[e]=n[e]);return t}const s="undefined"!=typeof window;let u=s?()=>window.performance.now():()=>Date.now(),d=s?n=>requestAnimationFrame(n):n;const f=new Set;function m(n){f.forEach((t=>{t.c(n)||(f.delete(t),t.f())})),0!==f.size&&d(m)}function $(n){let t;return 0===f.size&&d(m),{promise:new Promise((e=>{f.add(t={c:n,f:e})})),abort(){f.delete(t)}}}function p(n,t){n.appendChild(t)}function g(n){if(!n)return document;const t=n.getRootNode?n.getRootNode():n.ownerDocument;return t&&t.host?t:n.ownerDocument}function h(n){const t=y("style");return function(n,t){p(n.head||n,t)}(g(n),t),t.sheet}function x(n,t,e){n.insertBefore(t,e||null)}function v(n){n.parentNode.removeChild(n)}function y(n){return document.createElement(n)}function w(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function b(n){return document.createTextNode(n)}function k(){return b(" ")}function C(n,t,e,o){return n.addEventListener(t,e,o),()=>n.removeEventListener(t,e,o)}function B(n,t,e){null==e?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function M(n,t){t=""+t,n.wholeText!==t&&(n.data=t)}function T(n,t,e,o){null===e?n.style.removeProperty(t):n.style.setProperty(t,e,o?"important":"")}const _=new Map;let z,E=0;function D(n,t,e,o,l,c,i,r=0){const a=16.666/o;let s="{\n";for(let n=0;n<=1;n+=a){const o=t+(e-t)*c(n);s+=100*n+`%{${i(o,1-o)}}\n`}const u=s+`100% {${i(e,1-e)}}\n}`,d=`__svelte_${function(n){let t=5381,e=n.length;for(;e--;)t=(t<<5)-t^n.charCodeAt(e);return t>>>0}(u)}_${r}`,f=g(n),{stylesheet:m,rules:$}=_.get(f)||function(n,t){const e={stylesheet:h(t),rules:{}};return _.set(n,e),e}(f,n);$[d]||($[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const p=n.style.animation||"";return n.style.animation=`${p?`${p}, `:""}${d} ${o}ms linear ${l}ms 1 both`,E+=1,d}function S(n,t){const e=(n.style.animation||"").split(", "),o=e.filter(t?n=>n.indexOf(t)<0:n=>-1===n.indexOf("__svelte")),l=e.length-o.length;l&&(n.style.animation=o.join(", "),E-=l,E||d((()=>{E||(_.forEach((n=>{const{stylesheet:t}=n;let e=t.cssRules.length;for(;e--;)t.deleteRule(e);n.rules={}})),_.clear())})))}function H(n){z=n}const L=[],P=[],q=[],I=[],A=Promise.resolve();let N=!1;function R(n){q.push(n)}function F(n){I.push(n)}const O=new Set;let j,Q=0;function X(){const n=z;do{for(;Q<L.length;){const n=L[Q];Q++,H(n),V(n.$$)}for(H(null),L.length=0,Q=0;P.length;)P.pop()();for(let n=0;n<q.length;n+=1){const t=q[n];O.has(t)||(O.add(t),t())}q.length=0}while(L.length);for(;I.length;)I.pop()();N=!1,O.clear(),H(n)}function V(n){if(null!==n.fragment){n.update(),c(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(R)}}function G(){return j||(j=Promise.resolve(),j.then((()=>{j=null}))),j}function J(n,t,e){n.dispatchEvent(function(n,t,e=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(n,e,!1,t),o}(`${t?"intro":"outro"}${e}`))}const K=new Set;let U;function W(){U={r:0,c:[],p:U}}function Y(){U.r||c(U.c),U=U.p}function Z(n,t){n&&n.i&&(K.delete(n),n.i(t))}function nn(n,t,e,o){if(n&&n.o){if(K.has(n))return;K.add(n),U.c.push((()=>{K.delete(n),o&&(e&&n.d(1),o())})),n.o(t)}}const tn={duration:0};function en(n,t,e){const o=n.$$.props[t];void 0!==o&&(n.$$.bound[o]=e,e(n.$$.ctx[o]))}function on(n){n&&n.c()}function ln(n,t,e,l){const{fragment:r,on_mount:a,on_destroy:s,after_update:u}=n.$$;r&&r.m(t,e),l||R((()=>{const t=a.map(o).filter(i);s?s.push(...t):c(t),n.$$.on_mount=[]})),u.forEach(R)}function cn(n,t){const e=n.$$;null!==e.fragment&&(c(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function rn(n,t){-1===n.$$.dirty[0]&&(L.push(n),N||(N=!0,A.then(X)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function an(t,e,o,i,r,a,s,u=[-1]){const d=z;H(t);const f=t.$$={fragment:null,ctx:null,props:a,update:n,not_equal:r,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:l(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};s&&s(f.root);let m=!1;if(f.ctx=o?o(t,e.props||{},((n,e,...o)=>{const l=o.length?o[0]:e;return f.ctx&&r(f.ctx[n],f.ctx[n]=l)&&(!f.skip_bound&&f.bound[n]&&f.bound[n](l),m&&rn(t,n)),e})):[],f.update(),m=!0,c(f.before_update),f.fragment=!!i&&i(f.ctx),e.target){if(e.hydrate){const n=function(n){return Array.from(n.childNodes)}(e.target);f.fragment&&f.fragment.l(n),n.forEach(v)}else f.fragment&&f.fragment.c();e.intro&&Z(t.$$.fragment),ln(t,e.target,e.anchor,e.customElement),X()}H(d)}class sn{$destroy(){cn(this,1),this.$destroy=n}$on(n,t){const e=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return e.push(t),()=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}$set(n){var t;this.$$set&&(t=n,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function un(t){let e,o,l,c,i,r,a,s,u,d,f,m,$,g,h,y,b,k,C;return{c(){e=w("svg"),o=w("g"),l=w("g"),c=w("path"),i=w("g"),r=w("g"),a=w("g"),s=w("g"),u=w("g"),d=w("g"),f=w("g"),m=w("g"),$=w("g"),g=w("g"),h=w("g"),y=w("g"),b=w("g"),k=w("g"),C=w("g"),B(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"),B(e,"fill",t[0]),B(e,"version","1.1"),B(e,"id","Layer_1"),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(e,"x","0px"),B(e,"y","0px"),B(e,"viewBox","0 0 458 458"),T(e,"enable-background","new 0 0 458 458"),B(e,"xml:space","preserve")},m(n,t){x(n,e,t),p(e,o),p(o,l),p(l,c),p(e,i),p(e,r),p(e,a),p(e,s),p(e,u),p(e,d),p(e,f),p(e,m),p(e,$),p(e,g),p(e,h),p(e,y),p(e,b),p(e,k),p(e,C)},p(n,[t]){1&t&&B(e,"fill",n[0])},i:n,o:n,d(n){n&&v(e)}}}function dn(n,t,e){let{fill:o=""}=t;return n.$$set=n=>{"fill"in n&&e(0,o=n.fill)},[o]}class fn extends sn{constructor(n){super(),an(this,n,dn,un,r,{fill:0})}}function mn(t){let e,o,l=t[3].svg+"";return{c(){e=w("svg"),B(e,"class",o=t[4].class),B(e,"focusable",t[0]),B(e,"width",t[1]),B(e,"height",t[2]),B(e,"viewBox","0 0 "+t[3].box+" "+(t[3].box-1))},m(n,t){x(n,e,t),e.innerHTML=l},p(n,[t]){16&t&&o!==(o=n[4].class)&&B(e,"class",o),1&t&&B(e,"focusable",n[0]),2&t&&B(e,"width",n[1]),4&t&&B(e,"height",n[2])},i:n,o:n,d(n){n&&v(e)}}}function $n(n,t,o){let{name:l}=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((n=>n.name===l));return n.$$set=n=>{o(4,t=e(e({},t),a(n))),"name"in n&&o(5,l=n.name),"focusable"in n&&o(0,c=n.focusable),"width"in n&&o(1,i=n.width),"height"in n&&o(2,r=n.height)},t=a(t),[c,i,r,s,t,l]}class pn extends sn{constructor(n){super(),an(this,n,$n,mn,r,{name:5,focusable:0,width:1,height:2})}}function gn(t){let e,o,l,i,r,a,s,u,d,f,m,$=t[0].wgEmailReqMsg+"";function g(n,t){return 0==n[5]?yn:1==n[5]?vn:void 0}let h=g(t),w=h&&h(t);return{c(){e=y("div"),o=y("div"),l=b($),i=k(),r=y("div"),r.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com"/>',a=k(),s=y("div"),u=y("p"),u.innerHTML="<u>Skip</u>",d=k(),w&&w.c(),B(o,"id","emailText"),B(r,"id","emailInputCont"),B(u,"id","skipText"),B(s,"class","emailFooter"),B(e,"class","emailContainer")},m(n,c){x(n,e,c),p(e,o),p(o,l),p(e,i),p(e,r),p(e,a),p(e,s),p(s,u),p(s,d),w&&w.m(s,null),f||(m=[C(r,"click",t[44]),C(u,"click",t[45])],f=!0)},p(n,t){1&t[0]&&$!==($=n[0].wgEmailReqMsg+"")&&M(l,$),h===(h=g(n))&&w?w.p(n,t):(w&&w.d(1),w=h&&h(n),w&&(w.c(),w.m(s,null)))},i:n,o:n,d(n){n&&v(e),w&&w.d(),f=!1,c(m)}}}function hn(n){let t,e,o,l,i,r,a,s,u,d,f,m,$,g,h,w,b,M,T,_,z,E,D,S,H,L,P,q,I,A,N,R,F,O,j,Q,X,V,G,J,K,U,tn,en,on,ln;const cn=[bn,wn],rn=[];function an(n,t){return n[3]?0:0==n[3]?1:-1}~(i=an(n))&&(r=rn[i]=cn[i](n));const sn=[Cn,kn],un=[];function dn(n,t){return n[3]?0:0==n[3]?1:-1}~(m=dn(n))&&($=un[m]=sn[m](n));const fn=[Mn,Bn],mn=[];function $n(n,t){return n[3]?0:0==n[3]?1:-1}~(T=$n(n))&&(_=mn[T]=fn[T](n));const pn=[_n,Tn],gn=[];function hn(n,t){return n[3]?0:0==n[3]?1:-1}~(L=hn(n))&&(P=gn[L]=pn[L](n));const xn=[En,zn],vn=[];function yn(n,t){return n[3]?0:0==n[3]?1:-1}function Hn(n,t){return 0==n[5]?Sn:1==n[5]?Dn:void 0}~(F=yn(n))&&(O=vn[F]=xn[F](n));let Ln=Hn(n),Pn=Ln&&Ln(n);return{c(){t=y("div"),e=y("div"),o=y("div"),l=y("div"),r&&r.c(),a=k(),s=y("p"),s.textContent="Hate",u=k(),d=y("div"),f=y("div"),$&&$.c(),g=k(),h=y("p"),h.textContent="Dislike",w=k(),b=y("div"),M=y("div"),_&&_.c(),z=k(),E=y("p"),E.textContent="Neutral",D=k(),S=y("div"),H=y("div"),P&&P.c(),q=k(),I=y("p"),I.textContent="Like",A=k(),N=y("div"),R=y("div"),O&&O.c(),j=k(),Q=y("p"),Q.textContent="Love",X=k(),V=y("div"),G=y("div"),J=k(),K=y("textarea"),U=k(),tn=y("div"),Pn&&Pn.c(),B(l,"class","reactionIcon"),B(s,"class","reactionText"),B(s,"id","hateDiv"),B(o,"class","iconTextCont"),B(f,"class","reactionIcon"),B(h,"class","reactionText"),B(h,"id","dislikeDiv"),B(d,"class","iconTextCont"),B(M,"class","reactionIcon"),B(E,"class","reactionText"),B(E,"id","neutralDiv"),B(b,"class","iconTextCont"),B(H,"class","reactionIcon"),B(I,"class","reactionText"),B(I,"id","likeDiv"),B(S,"class","iconTextCont"),B(R,"class","reactionIcon"),B(Q,"class","reactionText"),B(Q,"id","loveDiv"),B(N,"class","iconTextCont"),B(e,"class","icons-second"),B(G,"class","pointerDiv"),B(G,"id","pointer"),B(K,"class","textArea"),B(K,"placeholder","Tell us your experience..."),B(V,"class","textAreaCont"),B(tn,"class","footer"),B(t,"class","commentContainer")},m(c,r){x(c,t,r),p(t,e),p(e,o),p(o,l),~i&&rn[i].m(l,null),p(o,a),p(o,s),p(e,u),p(e,d),p(d,f),~m&&un[m].m(f,null),p(d,g),p(d,h),p(e,w),p(e,b),p(b,M),~T&&mn[T].m(M,null),p(b,z),p(b,E),p(e,D),p(e,S),p(S,H),~L&&gn[L].m(H,null),p(S,q),p(S,I),p(e,A),p(e,N),p(N,R),~F&&vn[F].m(R,null),p(N,j),p(N,Q),p(t,X),p(t,V),p(V,G),p(V,J),p(V,K),p(t,U),p(t,tn),Pn&&Pn.m(tn,null),en=!0,on||(ln=[C(o,"click",n[29]),C(d,"click",n[32]),C(b,"click",n[35]),C(S,"click",n[38]),C(R,"click",n[41]),C(K,"click",n[42])],on=!0)},p(n,t){let e=i;i=an(n),i===e?~i&&rn[i].p(n,t):(r&&(W(),nn(rn[e],1,1,(()=>{rn[e]=null})),Y()),~i?(r=rn[i],r?r.p(n,t):(r=rn[i]=cn[i](n),r.c()),Z(r,1),r.m(l,null)):r=null);let o=m;m=dn(n),m===o?~m&&un[m].p(n,t):($&&(W(),nn(un[o],1,1,(()=>{un[o]=null})),Y()),~m?($=un[m],$?$.p(n,t):($=un[m]=sn[m](n),$.c()),Z($,1),$.m(f,null)):$=null);let c=T;T=$n(n),T===c?~T&&mn[T].p(n,t):(_&&(W(),nn(mn[c],1,1,(()=>{mn[c]=null})),Y()),~T?(_=mn[T],_?_.p(n,t):(_=mn[T]=fn[T](n),_.c()),Z(_,1),_.m(M,null)):_=null);let a=L;L=hn(n),L===a?~L&&gn[L].p(n,t):(P&&(W(),nn(gn[a],1,1,(()=>{gn[a]=null})),Y()),~L?(P=gn[L],P?P.p(n,t):(P=gn[L]=pn[L](n),P.c()),Z(P,1),P.m(H,null)):P=null);let s=F;F=yn(n),F===s?~F&&vn[F].p(n,t):(O&&(W(),nn(vn[s],1,1,(()=>{vn[s]=null})),Y()),~F?(O=vn[F],O?O.p(n,t):(O=vn[F]=xn[F](n),O.c()),Z(O,1),O.m(R,null)):O=null),Ln===(Ln=Hn(n))&&Pn?Pn.p(n,t):(Pn&&Pn.d(1),Pn=Ln&&Ln(n),Pn&&(Pn.c(),Pn.m(tn,null)))},i(n){en||(Z(r),Z($),Z(_),Z(P),Z(O),en=!0)},o(n){nn(r),nn($),nn(_),nn(P),nn(O),en=!1},d(n){n&&v(t),~i&&rn[i].d(),~m&&un[m].d(),~T&&mn[T].d(),~L&&gn[L].d(),~F&&vn[F].d(),Pn&&Pn.d(),on=!1,c(ln)}}}function xn(n){let t,e,o,l,i,r,a,s,u,d,f,m,$,g,h,w,T,_,z,E,D,S,H,L,q,I,A,N,R,O,j,Q,X,V,G,J,K,U,W,Y,tn,rn,an,sn,un=n[0].wgQuestion+"";function dn(t){n[17](t)}let fn={};function mn(t){n[19](t)}void 0!==n[2][0]&&(fn.name=n[2][0]),s=new pn({props:fn}),P.push((()=>en(s,"name",dn)));let $n={};function gn(t){n[21](t)}void 0!==n[2][1]&&($n.name=n[2][1]),h=new pn({props:$n}),P.push((()=>en(h,"name",mn)));let hn={};function xn(t){n[23](t)}void 0!==n[2][2]&&(hn.name=n[2][2]),S=new pn({props:hn}),P.push((()=>en(S,"name",gn)));let vn={};function yn(t){n[25](t)}void 0!==n[2][3]&&(vn.name=n[2][3]),R=new pn({props:vn}),P.push((()=>en(R,"name",xn)));let wn={};return void 0!==n[2][4]&&(wn.name=n[2][4]),J=new pn({props:wn}),P.push((()=>en(J,"name",yn))),{c(){t=y("div"),e=y("div"),o=b(un),l=k(),i=y("div"),r=y("div"),a=y("div"),on(s.$$.fragment),d=k(),f=y("p"),f.textContent="Hate",m=k(),$=y("div"),g=y("div"),on(h.$$.fragment),T=k(),_=y("p"),_.textContent="Dislike",z=k(),E=y("div"),D=y("div"),on(S.$$.fragment),L=k(),q=y("p"),q.textContent="Neutral",I=k(),A=y("div"),N=y("div"),on(R.$$.fragment),j=k(),Q=y("p"),Q.textContent="Like",X=k(),V=y("div"),G=y("div"),on(J.$$.fragment),U=k(),W=y("p"),W.textContent="Love",Y=k(),tn=y("p"),B(e,"id","txt"),B(a,"class","reactionIcon"),B(f,"class","reactionText"),B(r,"class","iconTextCont"),B(g,"class","reactionIcon"),B(_,"class","reactionText"),B($,"class","iconTextCont"),B(D,"class","reactionIcon"),B(q,"class","reactionText"),B(E,"class","iconTextCont"),B(N,"class","reactionIcon"),B(Q,"class","reactionText"),B(A,"class","iconTextCont"),B(G,"class","reactionIcon"),B(W,"class","reactionText"),B(V,"class","iconTextCont"),B(i,"class","icons"),B(tn,"id","test"),B(t,"class","container")},m(c,u){x(c,t,u),p(t,e),p(e,o),p(t,l),p(t,i),p(i,r),p(r,a),ln(s,a,null),p(r,d),p(r,f),p(i,m),p(i,$),p($,g),ln(h,g,null),p($,T),p($,_),p(i,z),p(i,E),p(E,D),ln(S,D,null),p(E,L),p(E,q),p(i,I),p(i,A),p(A,N),ln(R,N,null),p(A,j),p(A,Q),p(i,X),p(i,V),p(V,G),ln(J,G,null),p(V,U),p(V,W),p(t,Y),p(t,tn),rn=!0,an||(sn=[C(r,"click",n[18]),C($,"click",n[20]),C(E,"click",n[22]),C(A,"click",n[24]),C(V,"click",n[26])],an=!0)},p(n,t){(!rn||1&t[0])&&un!==(un=n[0].wgQuestion+"")&&M(o,un);const e={};!u&&4&t[0]&&(u=!0,e.name=n[2][0],F((()=>u=!1))),s.$set(e);const l={};!w&&4&t[0]&&(w=!0,l.name=n[2][1],F((()=>w=!1))),h.$set(l);const c={};!H&&4&t[0]&&(H=!0,c.name=n[2][2],F((()=>H=!1))),S.$set(c);const i={};!O&&4&t[0]&&(O=!0,i.name=n[2][3],F((()=>O=!1))),R.$set(i);const r={};!K&&4&t[0]&&(K=!0,r.name=n[2][4],F((()=>K=!1))),J.$set(r)},i(n){rn||(Z(s.$$.fragment,n),Z(h.$$.fragment,n),Z(S.$$.fragment,n),Z(R.$$.fragment,n),Z(J.$$.fragment,n),rn=!0)},o(n){nn(s.$$.fragment,n),nn(h.$$.fragment,n),nn(S.$$.fragment,n),nn(R.$$.fragment,n),nn(J.$$.fragment,n),rn=!1},d(n){n&&v(t),cn(s),cn(h),cn(S),cn(R),cn(J),an=!1,c(sn)}}}function vn(t){let e,o,l;return{c(){e=y("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(n,c){x(n,e,c),o||(l=C(e,"click",t[46]),o=!0)},p:n,d(n){n&&v(e),o=!1,l()}}}function yn(t){let e;return{c(){e=y("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){x(n,e,t)},p:n,d(n){n&&v(e)}}}function wn(n){let t,e,o;function l(t){n[28](t)}let c={};return void 0!==n[2][0]&&(c.name=n[2][0]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][0],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function bn(n){let t,e,o;function l(t){n[27](t)}let c={};return void 0!==n[2][0]&&(c.name=n[2][0]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][0],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function kn(n){let t,e,o;function l(t){n[31](t)}let c={};return void 0!==n[2][1]&&(c.name=n[2][1]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][1],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Cn(n){let t,e,o;function l(t){n[30](t)}let c={};return void 0!==n[2][1]&&(c.name=n[2][1]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][1],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Bn(n){let t,e,o;function l(t){n[34](t)}let c={};return void 0!==n[2][2]&&(c.name=n[2][2]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][2],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Mn(n){let t,e,o;function l(t){n[33](t)}let c={};return void 0!==n[2][2]&&(c.name=n[2][2]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][2],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Tn(n){let t,e,o;function l(t){n[37](t)}let c={};return void 0!==n[2][3]&&(c.name=n[2][3]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][3],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function _n(n){let t,e,o;function l(t){n[36](t)}let c={};return void 0!==n[2][3]&&(c.name=n[2][3]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][3],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function zn(n){let t,e,o;function l(t){n[40](t)}let c={};return void 0!==n[2][4]&&(c.name=n[2][4]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][4],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function En(n){let t,e,o;function l(t){n[39](t)}let c={};return void 0!==n[2][4]&&(c.name=n[2][4]),t=new pn({props:c}),P.push((()=>en(t,"name",l))),{c(){on(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][4],F((()=>e=!1))),t.$set(l)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Dn(t){let e,o,l;return{c(){e=y("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(n,c){x(n,e,c),o||(l=C(e,"click",t[43]),o=!0)},p:n,d(n){n&&v(e),o=!1,l()}}}function Sn(t){let e;return{c(){e=y("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){x(n,e,t)},p:n,d(n){n&&v(e)}}}function Hn(n){let t,e,o,l;const c=[xn,hn,gn],i=[];function r(n,t){return 1===n[4]?0:2===n[4]?1:3===n[4]?2:-1}return~(t=r(n))&&(e=i[t]=c[t](n)),{c(){e&&e.c(),o=b("")},m(n,e){~t&&i[t].m(n,e),x(n,o,e),l=!0},p(n,l){let a=t;t=r(n),t===a?~t&&i[t].p(n,l):(e&&(W(),nn(i[a],1,1,(()=>{i[a]=null})),Y()),~t?(e=i[t],e?e.p(n,l):(e=i[t]=c[t](n),e.c()),Z(e,1),e.m(o.parentNode,o)):e=null)},i(n){l||(Z(e),l=!0)},o(n){nn(e),l=!1},d(n){~t&&i[t].d(n),n&&v(o)}}}function Ln(n,t,e){let o,l,c,i,r,a,s,u,d,f,{feedbackData:m}=t,$=["hate","dislike","neutral","like","love"],p=$,g="test",h=!0,x=0,{closeHandler:v=(()=>{})}=t;const y=()=>{let n=document.querySelector(".textArea");f=setInterval((()=>{console.log(n.value),""===n.value?e(5,d=!1):e(5,d=!0)}),500)},w=()=>{let n=document.querySelector("#EmailTextArea");setInterval((()=>{console.log(n.value),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(n.value)&&""!==n.value?e(5,d=!0):e(5,d=!1)}),500)},b=(n,t,u)=>{let d=g;var f;g=u,console.log(u),e(4,o=n),e(2,p=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),x>0&&("hate"==(f=d)?e(15,c="none"):"dislike"==f?e(14,i="none"):"neutral"==f?e(13,r="none"):"like"==f?e(12,a="none"):"love"==f&&e(10,s="none")),x++,1==t?(e(11,l=11),e(15,c="block"),e(2,p[0]=$[0],p),e(3,h=!h)):2==t?(e(2,p[1]=$[1],p),e(11,l=30),e(14,i="block"),e(3,h=!h)):3==t?(e(2,p[2]=$[2],p),e(11,l=49),e(13,r="block"),e(3,h=!h)):4==t?(e(2,p[3]=$[3],p),e(11,l=68),e(12,a="block"),e(3,h=!h)):5==t&&(e(2,p[4]=$[4],p),e(11,l=87),e(10,s="block"),e(3,h=!h))},k=n=>{clearInterval(f),e(5,d=!1),e(4,o=n)};return n.$$set=n=>{"feedbackData"in n&&e(0,m=n.feedbackData),"closeHandler"in n&&e(1,v=n.closeHandler)},n.$$.update=()=>{1&n.$$.dirty[0]&&e(16,u=m.wgAccentColor),2048&n.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",l+"%"),32768&n.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",c),16384&n.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",i),8192&n.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",r),4096&n.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",a),1024&n.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",s),65536&n.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},e(4,o=1),e(11,l=10),e(15,c="none"),e(14,i="none"),e(13,r="none"),e(12,a="none"),e(10,s="none"),e(5,d=!1),[m,v,p,h,o,d,y,w,b,k,s,l,a,r,i,c,u,function(t){n.$$.not_equal(p[0],t)&&(p[0]=t,e(2,p))},()=>b(2,1,"hate"),function(t){n.$$.not_equal(p[1],t)&&(p[1]=t,e(2,p))},()=>b(2,2,"dislike"),function(t){n.$$.not_equal(p[2],t)&&(p[2]=t,e(2,p))},()=>b(2,3,"neutral"),function(t){n.$$.not_equal(p[3],t)&&(p[3]=t,e(2,p))},()=>b(2,4,"like"),function(t){n.$$.not_equal(p[4],t)&&(p[4]=t,e(2,p))},()=>b(2,5,"love"),function(t){n.$$.not_equal(p[0],t)&&(p[0]=t,e(2,p))},function(t){n.$$.not_equal(p[0],t)&&(p[0]=t,e(2,p))},()=>b(2,1,"hate"),function(t){n.$$.not_equal(p[1],t)&&(p[1]=t,e(2,p))},function(t){n.$$.not_equal(p[1],t)&&(p[1]=t,e(2,p))},()=>b(2,2,"dislike"),function(t){n.$$.not_equal(p[2],t)&&(p[2]=t,e(2,p))},function(t){n.$$.not_equal(p[2],t)&&(p[2]=t,e(2,p))},()=>b(2,3,"neutral"),function(t){n.$$.not_equal(p[3],t)&&(p[3]=t,e(2,p))},function(t){n.$$.not_equal(p[3],t)&&(p[3]=t,e(2,p))},()=>b(2,4,"like"),function(t){n.$$.not_equal(p[4],t)&&(p[4]=t,e(2,p))},function(t){n.$$.not_equal(p[4],t)&&(p[4]=t,e(2,p))},()=>b(2,5,"love"),()=>y(),()=>k(3),()=>w(),()=>v(),()=>v()]}class Pn extends sn{constructor(n){super(),an(this,n,Ln,Hn,r,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function qn(n){const t=n-1;return t*t*t+1}function In(n,{delay:t=0,duration:e=400,easing:o=qn,x:l=0,y:c=0,opacity:i=0}={}){const r=getComputedStyle(n),a=+r.opacity,s="none"===r.transform?"":r.transform,u=a*(1-i);return{delay:t,duration:e,easing:o,css:(n,t)=>`\n\t\t\ttransform: ${s} translate(${(1-n)*l}px, ${(1-n)*c}px);\n\t\t\topacity: ${a-u*t}`}}function An(n){let t,e,o,l,c,i,r,a,s;function u(t){n[19](t)}let d={};return void 0!==n[1]&&(d.fill=n[1]),c=new fn({props:d}),P.push((()=>en(c,"fill",u))),{c(){t=y("div"),e=y("div"),e.textContent="Feedback",o=k(),l=y("div"),on(c.$$.fragment),B(e,"id","feedbackTxt"),B(l,"id","mainIcon"),B(t,"class","widget")},m(i,u){x(i,t,u),p(t,e),p(t,o),p(t,l),ln(c,l,null),r=!0,a||(s=C(t,"click",n[9]),a=!0)},p(n,t){const e={};!i&&2&t&&(i=!0,e.fill=n[1],F((()=>i=!1))),c.$set(e)},i(n){r||(Z(c.$$.fragment,n),r=!0)},o(n){nn(c.$$.fragment,n),r=!1},d(n){n&&v(t),cn(c),a=!1,s()}}}function Nn(e){let o,l,c,r,a,s,d,f,m;function g(n){e[20](n)}let h={closeHandler:e[7]};return void 0!==e[0]&&(h.feedbackData=e[0]),r=new Pn({props:h}),P.push((()=>en(r,"feedbackData",g))),{c(){o=y("div"),l=y("div"),l.innerHTML='<p id="closeIcon">X</p>',c=k(),on(r.$$.fragment),B(l,"class","closeCont"),B(o,"class","cont")},m(n,t){x(n,o,t),p(o,l),p(o,c),ln(r,o,null),d=!0,f||(m=C(l,"click",e[10]),f=!0)},p(n,t){e=n;const o={};!a&&1&t&&(a=!0,o.feedbackData=e[0],F((()=>a=!1))),r.$set(o)},i(l){d||(Z(r.$$.fragment,l),s||R((()=>{s=function(e,o,l){let c,r,a=o(e,l),s=!1,d=0;function f(){c&&S(e,c)}function m(){const{delay:o=0,duration:l=300,easing:i=t,tick:m=n,css:p}=a||tn;p&&(c=D(e,0,1,l,o,i,p,d++)),m(0,1);const g=u()+o,h=g+l;r&&r.abort(),s=!0,R((()=>J(e,!0,"start"))),r=$((n=>{if(s){if(n>=h)return m(1,0),J(e,!0,"end"),f(),s=!1;if(n>=g){const t=i((n-g)/l);m(t,1-t)}}return s}))}let p=!1;return{start(){p||(p=!0,S(e),i(a)?(a=a(),G().then(m)):m())},invalidate(){p=!1},end(){s&&(f(),s=!1)}}}(o,In,{x:e[5],duration:500}),s.start()})),d=!0)},o(n){nn(r.$$.fragment,n),d=!1},d(n){n&&v(o),cn(r),f=!1,m()}}}function Rn(e){let o,l,r,a,s,d,f,m,g,h=e[0].wgThanksMsg+"";return{c(){o=y("div"),l=y("div"),l.innerHTML='<p id="closeIcon">X</p>',r=k(),a=y("div"),s=b(h),B(l,"class","closeCont"),T(a,"width","61%"),T(a,"text-align","center"),T(a,"margin-top","7%"),T(a,"margin-left","20%"),B(o,"class","thanksMessageCont")},m(n,t){x(n,o,t),p(o,l),p(o,r),p(o,a),p(a,s),f=!0,m||(g=C(l,"click",e[8]),m=!0)},p(n,t){e=n,(!f||1&t)&&h!==(h=e[0].wgThanksMsg+"")&&M(s,h)},i(n){f||(d&&d.end(1),f=!0)},o(l){d=function(e,o,l){let r,a=o(e,l),s=!0;const d=U;function f(){const{delay:o=0,duration:l=300,easing:i=t,tick:f=n,css:m}=a||tn;m&&(r=D(e,1,0,l,o,i,m));const p=u()+o,g=p+l;R((()=>J(e,!1,"start"))),$((n=>{if(s){if(n>=g)return f(0,1),J(e,!1,"end"),--d.r||c(d.c),!1;if(n>=p){const t=i((n-p)/l);f(1-t,t)}}return s}))}return d.r+=1,i(a)?G().then((()=>{a=a(),f()})):f(),{end(n){n&&a.tick&&a.tick(1,0),s&&(r&&S(e,r),s=!1)}}}(o,In,{x:e[6],duration:300}),f=!1},d(n){n&&v(o),n&&d&&d.end(),m=!1,g()}}}function Fn(n){let t,e,o,l,c=n[3]&&An(n),i=n[2]&&Nn(n),r=n[4]&&Rn(n);return{c(){t=y("body"),c&&c.c(),e=k(),i&&i.c(),o=k(),r&&r.c()},m(n,a){x(n,t,a),c&&c.m(t,null),p(t,e),i&&i.m(t,null),p(t,o),r&&r.m(t,null),l=!0},p(n,[l]){n[3]?c?(c.p(n,l),8&l&&Z(c,1)):(c=An(n),c.c(),Z(c,1),c.m(t,e)):c&&(W(),nn(c,1,1,(()=>{c=null})),Y()),n[2]?i?(i.p(n,l),4&l&&Z(i,1)):(i=Nn(n),i.c(),Z(i,1),i.m(t,o)):i&&(W(),nn(i,1,1,(()=>{i=null})),Y()),n[4]?r?(r.p(n,l),16&l&&Z(r,1)):(r=Rn(n),r.c(),Z(r,1),r.m(t,null)):r&&(W(),nn(r,1,1,(()=>{r=null})),Y())},i(n){l||(Z(c),Z(i),Z(r),l=!0)},o(n){nn(c),nn(i),nn(r),l=!1},d(n){n&&v(t),c&&c.d(),i&&i.d(),r&&r.d()}}}function On(n,t,e){let o,{feedback:l}=t;console.log(l);let c="",i="";!0===l.wgAlternateColor?(c="white",i="white"):(c="black",i="black");let r="",a="",s=0,u=0,d=0,f=0,m=!1,$=!0,p=!1,g=0,h=0;0==Number(l.wgPosition)&&(r="center",a="row-reverse",s=5,u=0,d=30,f=0,g=-100,h=20),1==Number(l.wgPosition)&&(r="center",a="row",s=0,u=5,d=0,f=30,g=100,h=-20),2==Number(l.wgPosition)&&(r="flex-end",a="row-reverse",s=5,d=30,f=0,g=-100,h=20),3==Number(l.wgPosition)&&(r="flex-end",a="row",s=0,u=5,d=0,f=30,g=100,h=-20);const x=()=>{e(2,m=!m),e(4,p=!p)};return n.$$set=n=>{"feedback"in n&&e(0,l=n.feedback)},n.$$.update=()=>{1&n.$$.dirty&&e(18,o=l.wgAccentColor),262144&n.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",o),2048&n.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",c),4096&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",r),8192&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",a),16384&n.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",s+"px"),32768&n.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",u+"px"),65536&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),131072&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",f+"px")},[l,i,m,$,p,g,h,()=>x(),()=>{e(4,p=!p),setTimeout((function(){e(3,$=!$)}),350)},()=>{e(2,m=!m),e(3,$=!$)},()=>{e(2,m=!m),setTimeout((function(){e(3,$=!$)}),350)},c,r,a,s,u,d,f,o,function(n){i=n,e(1,i)},function(n){l=n,e(0,l)}]}class jn extends sn{constructor(n){super(),an(this,n,On,Fn,r,{feedback:0})}}function Qn(n){new jn({target:document.body,props:{feedback:n}})}export{Qn as feedbackCreator};
2
2
  //# sourceMappingURL=index.mjs.map