@fullsession.io/fs-feedback-widget 1.0.2 → 1.0.4
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 -4
- package/src/main.js +1 -1
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(){}Object.defineProperty(exports,"__esModule",{value:!0});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 M(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function B(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 P(e){_=e}const S=[],H=[],L=[],I=[],A=Promise.resolve();let N=!1;function R(e){L.push(e)}function F(e){I.push(e)}const O=new Set;let j,Q=0;function X(){const e=_;do{for(;Q<S.length;){const e=S[Q];Q++,P(e),V(e.$$)}for(P(null),S.length=0,Q=0;H.length;)H.pop()();for(let e=0;e<L.length;e+=1){const t=L[e];O.has(t)||(O.add(t),t())}L.length=0}while(S.length);for(;I.length;)I.pop()();N=!1,O.clear(),P(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]&&(S.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=_;P(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()}P(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"),B(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+"")&&M(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,M,B,T,_,E,D,q,P,S,H,L,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}~(B=me(e))&&(T=fe[B]=de[B](e));const $e=[Be,Me],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=[_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 Pe=qe(e),Se=Pe&&Pe(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"),M=y("div"),T&&T.c(),_=k(),E=y("p"),E.textContent="Neutral",D=k(),q=y("div"),P=y("div"),H&&H.c(),L=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"),Se&&Se.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(M,"class","reactionIcon svelte-12ll7xn"),z(E,"class","reactionText svelte-12ll7xn"),z(E,"id","neutralDiv"),z(b,"class","iconTextCont svelte-12ll7xn"),z(P,"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,M),~B&&fe[B].m(M,null),p(b,_),p(b,E),p(n,D),p(n,q),p(q,P),~S&&pe[S].m(P,null),p(q,L),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),Se&&Se.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=B;B=me(e),B===c?~B&&fe[B].p(e,t):(T&&(W(),ee(fe[c],1,1,(()=>{fe[c]=null})),Y()),~B?(T=fe[B],T?T.p(e,t):(T=fe[B]=de[B](e),T.c()),Z(T,1),T.m(M,null)):T=null);let s=S;S=ge(e),S===s?~S&&pe[S].p(e,t):(H&&(W(),ee(pe[s],1,1,(()=>{pe[s]=null})),Y()),~S?(H=pe[S],H?H.p(e,t):(H=pe[S]=$e[S](e),H.c()),Z(H,1),H.m(P,null)):H=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),Pe===(Pe=qe(e))&&Se?Se.p(e,t):(Se&&Se.d(1),Se=Pe&&Pe(e),Se&&(Se.c(),Se.m(te,null)))},i(e){ne||(Z(r),Z($),Z(T),Z(H),Z(O),ne=!0)},o(e){ee(r),ee($),ee(T),ee(H),ee(O),ne=!1},d(e){e&&h(t),~i&&ie[i].d(),~m&&ae[m].d(),~B&&fe[B].d(),~S&&pe[S].d(),~F&&xe[F].d(),Se&&Se.d(),le=!1,c(oe)}}}function ve(e){let t,n,l,o,i,r,s,a,u,d,f,m,$,g,v,w,B,T,_,E,D,q,P,S,L,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}),H.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}),H.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}),H.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}),H.push((()=>ne(R,"name",ve)));let ye={};return void 0!==e[2][4]&&(ye.name=e[2][4]),J=new $e({props:ye}),H.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),B=k(),T=y("p"),T.textContent="Dislike",_=k(),E=y("div"),D=y("div"),le(q.$$.fragment),S=k(),L=y("p"),L.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(L,"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($,B),p($,T),p(i,_),p(i,E),p(E,D),oe(q,D,null),p(E,S),p(E,L),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+"")&&M(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={};!P&&4&t[0]&&(P=!0,c.name=e[2][2],F((()=>P=!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}),H.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}),H.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}),H.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}),H.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}),H.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}),H.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 Me(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}),H.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 Be(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}),H.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}),H.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}),H.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 Pe(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 Se extends se{constructor(e){super(),re(this,e,Pe,qe,r,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function He(e){const t=e-1;return t*t*t+1}function Le(e,{delay:t=0,duration:n=400,easing:l=He,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}),H.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 Se({props:v}),H.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,Le,{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"),B(s,"width","61%"),B(s,"text-align","center"),B(s,"margin-top","7%"),B(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+"")&&M(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,Le,{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,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})}}exports.feedbackCreator=function(e){new Oe({target:document.body,props:{feedback:e}})};
|
|
1
|
+
"use strict";function e(){}Object.defineProperty(exports,"__esModule",{value:!0});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 M(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function B(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 P(e){_=e}const S=[],H=[],L=[],I=[],A=Promise.resolve();let N=!1;function R(e){L.push(e)}function F(e){I.push(e)}const O=new Set;let j,Q=0;function X(){const e=_;do{for(;Q<S.length;){const e=S[Q];Q++,P(e),V(e.$$)}for(P(null),S.length=0,Q=0;H.length;)H.pop()();for(let e=0;e<L.length;e+=1){const t=L[e];O.has(t)||(O.add(t),t())}L.length=0}while(S.length);for(;I.length;)I.pop()();N=!1,O.clear(),P(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]&&(S.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=_;P(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()}P(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"),B(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+"")&&M(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,M,B,T,_,E,D,q,P,S,H,L,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}~(B=me(e))&&(T=fe[B]=de[B](e));const $e=[Be,Me],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=[_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 Pe=qe(e),Se=Pe&&Pe(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"),M=y("div"),T&&T.c(),_=k(),E=y("p"),E.textContent="Neutral",D=k(),q=y("div"),P=y("div"),H&&H.c(),L=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"),Se&&Se.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(M,"class","reactionIcon svelte-12ll7xn"),z(E,"class","reactionText svelte-12ll7xn"),z(E,"id","neutralDiv"),z(b,"class","iconTextCont svelte-12ll7xn"),z(P,"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,M),~B&&fe[B].m(M,null),p(b,_),p(b,E),p(n,D),p(n,q),p(q,P),~S&&pe[S].m(P,null),p(q,L),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),Se&&Se.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=B;B=me(e),B===c?~B&&fe[B].p(e,t):(T&&(W(),ee(fe[c],1,1,(()=>{fe[c]=null})),Y()),~B?(T=fe[B],T?T.p(e,t):(T=fe[B]=de[B](e),T.c()),Z(T,1),T.m(M,null)):T=null);let s=S;S=ge(e),S===s?~S&&pe[S].p(e,t):(H&&(W(),ee(pe[s],1,1,(()=>{pe[s]=null})),Y()),~S?(H=pe[S],H?H.p(e,t):(H=pe[S]=$e[S](e),H.c()),Z(H,1),H.m(P,null)):H=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),Pe===(Pe=qe(e))&&Se?Se.p(e,t):(Se&&Se.d(1),Se=Pe&&Pe(e),Se&&(Se.c(),Se.m(te,null)))},i(e){ne||(Z(r),Z($),Z(T),Z(H),Z(O),ne=!0)},o(e){ee(r),ee($),ee(T),ee(H),ee(O),ne=!1},d(e){e&&h(t),~i&&ie[i].d(),~m&&ae[m].d(),~B&&fe[B].d(),~S&&pe[S].d(),~F&&xe[F].d(),Se&&Se.d(),le=!1,c(oe)}}}function ve(e){let t,n,l,o,i,r,s,a,u,d,f,m,$,g,v,w,B,T,_,E,D,q,P,S,L,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}),H.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}),H.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}),H.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}),H.push((()=>ne(R,"name",ve)));let ye={};return void 0!==e[2][4]&&(ye.name=e[2][4]),J=new $e({props:ye}),H.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),B=k(),T=y("p"),T.textContent="Dislike",_=k(),E=y("div"),D=y("div"),le(q.$$.fragment),S=k(),L=y("p"),L.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(L,"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($,B),p($,T),p(i,_),p(i,E),p(E,D),oe(q,D,null),p(E,S),p(E,L),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+"")&&M(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={};!P&&4&t[0]&&(P=!0,c.name=e[2][2],F((()=>P=!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}),H.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}),H.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}),H.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}),H.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}),H.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}),H.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 Me(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}),H.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 Be(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}),H.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}),H.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}),H.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 Pe(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 Se extends se{constructor(e){super(),re(this,e,Pe,qe,r,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function He(e){const t=e-1;return t*t*t+1}function Le(e,{delay:t=0,duration:n=400,easing:l=He,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}),H.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 Se({props:v}),H.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,Le,{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"),B(s,"width","61%"),B(s,"text-align","center"),B(s,"margin-top","7%"),B(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+"")&&M(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,Le,{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})}}exports.feedbackCreator=function(e){new Oe({target:document.body,props:{feedback:e}})};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/src/App.svelte
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import MainIcon from "./Icons/mainIcon.svelte";
|
|
3
3
|
import ReactionPage from "./widgetPages/reactionPage.svelte"
|
|
4
4
|
export let feedback;
|
|
5
|
+
console.log(feedback);
|
|
5
6
|
import { fly } from "svelte/transition";
|
|
6
7
|
|
|
7
8
|
$:widgetColor = feedback.wgAccentColor;
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
let inTransitionX = 0;
|
|
30
31
|
let outTransitionX = 0;
|
|
31
32
|
|
|
32
|
-
if(feedback.wgPosition == 0){
|
|
33
|
+
if(feedback.wgPosition == "0"){
|
|
33
34
|
wgPositionHorizintal = "center"
|
|
34
35
|
wgPositionVertical = "row-reverse"
|
|
35
36
|
widgetLeftSideBorder =5;
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
inTransitionX = -100;
|
|
40
41
|
outTransitionX = 20;
|
|
41
42
|
}
|
|
42
|
-
if(feedback.wgPosition == 1){
|
|
43
|
+
if(feedback.wgPosition == "1"){
|
|
43
44
|
wgPositionHorizintal = "center"
|
|
44
45
|
wgPositionVertical = "row"
|
|
45
46
|
widgetLeftSideBorder =0;
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
inTransitionX = 100;
|
|
50
51
|
outTransitionX = -20;
|
|
51
52
|
}
|
|
52
|
-
if(feedback.wgPosition == 2){
|
|
53
|
+
if(feedback.wgPosition == "2"){
|
|
53
54
|
wgPositionHorizintal = "flex-end"
|
|
54
55
|
wgPositionVertical = "row-reverse"
|
|
55
56
|
widgetLeftSideBorder =5;
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
inTransitionX = -100;
|
|
59
60
|
outTransitionX = 20;
|
|
60
61
|
}
|
|
61
|
-
if(feedback.wgPosition == 3){
|
|
62
|
+
if(feedback.wgPosition == "3"){
|
|
62
63
|
wgPositionHorizintal = "flex-end"
|
|
63
64
|
wgPositionVertical = "row"
|
|
64
65
|
widgetLeftSideBorder =0;
|
package/src/main.js
CHANGED
|
@@ -21,7 +21,7 @@ export function feedbackCreator(response) {
|
|
|
21
21
|
// SiteId: 98,
|
|
22
22
|
// UserId: 262,
|
|
23
23
|
// wgLanguage: "en",
|
|
24
|
-
// wgPosition:
|
|
24
|
+
// wgPosition: 1,
|
|
25
25
|
// wgAccentColor: "#51797b",
|
|
26
26
|
// wgAlternateColor: 1,
|
|
27
27
|
// wgQuestion: "How would you rate your experience?" ,
|