@fullsession.io/fs-feedback-widget 1.2.2 → 1.2.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 CHANGED
@@ -1,2 +1,2 @@
1
- var fsFeedbackWidget=function(n){"use strict";function t(){}const e=n=>n;function o(n,t){for(const e in t)n[e]=t[e];return n}function i(n){return n()}function r(){return Object.create(null)}function l(n){n.forEach(i)}function c(n){return"function"==typeof n}function a(n,t){return n!=n?t==t:n!==t||n&&"object"==typeof n||"function"==typeof n}function s(n){const t={};for(const e in n)"$"!==e[0]&&(t[e]=n[e]);return t}const u="undefined"!=typeof window;let d=u?()=>window.performance.now():()=>Date.now(),f=u?n=>requestAnimationFrame(n):t;const p=new Set;function m(n){p.forEach((t=>{t.c(n)||(p.delete(t),t.f())})),0!==p.size&&f(m)}function g(n){let t;return 0===p.size&&f(m),{promise:new Promise((e=>{p.add(t={c:n,f:e})})),abort(){p.delete(t)}}}function x(n,t){n.appendChild(t)}function h(n){if(!n)return document;const t=n.getRootNode?n.getRootNode():n.ownerDocument;return t&&t.host?t:n.ownerDocument}function $(n){const t=b("style");return function(n,t){x(n.head||n,t)}(h(n),t),t.sheet}function y(n,t,e){n.insertBefore(t,e||null)}function v(n){n.parentNode.removeChild(n)}function b(n){return document.createElement(n)}function w(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function k(n){return document.createTextNode(n)}function C(){return k(" ")}function T(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 z(n,t,e,o){null===e?n.style.removeProperty(t):n.style.setProperty(t,e,o?"important":"")}const D=new Map;let _,E=0;function S(n,t,e,o,i,r,l,c=0){const a=16.666/o;let s="{\n";for(let n=0;n<=1;n+=a){const o=t+(e-t)*r(n);s+=100*n+`%{${l(o,1-o)}}\n`}const u=s+`100% {${l(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)}_${c}`,f=h(n),{stylesheet:p,rules:m}=D.get(f)||function(n,t){const e={stylesheet:$(t),rules:{}};return D.set(n,e),e}(f,n);m[d]||(m[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=n.style.animation||"";return n.style.animation=`${g?`${g}, `:""}${d} ${o}ms linear ${i}ms 1 both`,E+=1,d}function L(n,t){const e=(n.style.animation||"").split(", "),o=e.filter(t?n=>n.indexOf(t)<0:n=>-1===n.indexOf("__svelte")),i=e.length-o.length;i&&(n.style.animation=o.join(", "),E-=i,E||f((()=>{E||(D.forEach((n=>{const{stylesheet:t}=n;let e=t.cssRules.length;for(;e--;)t.deleteRule(e);n.rules={}})),D.clear())})))}function P(n){_=n}const H=[],A=[],q=[],I=[],N=Promise.resolve();let R=!1;function j(n){q.push(n)}function F(n){I.push(n)}const O=new Set;let Q,V=0;function X(){const n=_;do{for(;V<H.length;){const n=H[V];V++,P(n),W(n.$$)}for(P(null),H.length=0,V=0;A.length;)A.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(H.length);for(;I.length;)I.pop()();R=!1,O.clear(),P(n)}function W(n){if(null!==n.fragment){n.update(),l(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(j)}}function G(){return Q||(Q=Promise.resolve(),Q.then((()=>{Q=null}))),Q}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 Y(){U={r:0,c:[],p:U}}function Z(){U.r||l(U.c),U=U.p}function nn(n,t){n&&n.i&&(K.delete(n),n.i(t))}function tn(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 en={duration:0};function on(n,t,e){const o=n.$$.props[t];void 0!==o&&(n.$$.bound[o]=e,e(n.$$.ctx[o]))}function rn(n){n&&n.c()}function ln(n,t,e,o){const{fragment:r,on_mount:a,on_destroy:s,after_update:u}=n.$$;r&&r.m(t,e),o||j((()=>{const t=a.map(i).filter(c);s?s.push(...t):l(t),n.$$.on_mount=[]})),u.forEach(j)}function cn(n,t){const e=n.$$;null!==e.fragment&&(l(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function an(n,t){-1===n.$$.dirty[0]&&(H.push(n),R||(R=!0,N.then(X)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function sn(n,e,o,i,c,a,s,u=[-1]){const d=_;P(n);const f=n.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};s&&s(f.root);let p=!1;if(f.ctx=o?o(n,e.props||{},((t,e,...o)=>{const i=o.length?o[0]:e;return f.ctx&&c(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),p&&an(n,t)),e})):[],f.update(),p=!0,l(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&&nn(n.$$.fragment),ln(n,e.target,e.anchor,e.customElement),X()}P(d)}class un{$destroy(){cn(this,1),this.$destroy=t}$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 dn(n){let e,o,i,r,l,c,a,s,u,d,f,p,m,g,h,$,b,k,C;return{c(){e=w("svg"),o=w("g"),i=w("g"),r=w("path"),l=w("g"),c=w("g"),a=w("g"),s=w("g"),u=w("g"),d=w("g"),f=w("g"),p=w("g"),m=w("g"),g=w("g"),h=w("g"),$=w("g"),b=w("g"),k=w("g"),C=w("g"),B(r,"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",n[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"),z(e,"enable-background","new 0 0 458 458"),B(e,"xml:space","preserve")},m(n,t){y(n,e,t),x(e,o),x(o,i),x(i,r),x(e,l),x(e,c),x(e,a),x(e,s),x(e,u),x(e,d),x(e,f),x(e,p),x(e,m),x(e,g),x(e,h),x(e,$),x(e,b),x(e,k),x(e,C)},p(n,[t]){1&t&&B(e,"fill",n[0])},i:t,o:t,d(n){n&&v(e)}}}function fn(n,t,e){let{fill:o=""}=t;return n.$$set=n=>{"fill"in n&&e(0,o=n.fill)},[o]}class pn extends un{constructor(n){super(),sn(this,n,fn,dn,a,{fill:0})}}function mn(n){let e,o,i=n[3].svg+"";return{c(){e=w("svg"),B(e,"class",o=n[4].class),B(e,"focusable",n[0]),B(e,"width",n[1]),B(e,"height",n[2]),B(e,"viewBox","0 0 "+n[3].box+" "+(n[3].box-1))},m(n,t){y(n,e,t),e.innerHTML=i},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:t,o:t,d(n){n&&v(e)}}}function gn(n,t,e){let{name:i}=t,{focusable:r=!1}=t,{width:l="40px"}=t,{height:c="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((n=>n.name===i));return n.$$set=n=>{e(4,t=o(o({},t),s(n))),"name"in n&&e(5,i=n.name),"focusable"in n&&e(0,r=n.focusable),"width"in n&&e(1,l=n.width),"height"in n&&e(2,c=n.height)},t=s(t),[r,l,c,a,t,i]}class xn extends un{constructor(n){super(),sn(this,n,gn,mn,a,{name:5,focusable:0,width:1,height:2})}}function hn(n,t){void 0===t&&(t={});var e=t.insertAt;if(n&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===e&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}function $n(n){let e,o,i,r,c,a,s,u,d,f,p,m=n[0].wgEmailReqMsg+"";function g(n,t){return 0==n[5]?wn:1==n[5]?bn:void 0}let h=g(n),$=h&&h(n);return{c(){e=b("div"),o=b("div"),i=k(m),r=C(),c=b("div"),c.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com"/>',a=C(),s=b("div"),u=b("p"),u.innerHTML="<u>Skip</u>",d=C(),$&&$.c(),B(o,"id","emailText"),B(c,"id","emailInputCont"),B(u,"id","skipText"),B(s,"class","emailFooter"),B(e,"class","emailContainer")},m(t,l){y(t,e,l),x(e,o),x(o,i),x(e,r),x(e,c),x(e,a),x(e,s),x(s,u),x(s,d),$&&$.m(s,null),f||(p=[T(c,"click",n[44]),T(u,"click",n[45])],f=!0)},p(n,t){1&t[0]&&m!==(m=n[0].wgEmailReqMsg+"")&&M(i,m),h===(h=g(n))&&$?$.p(n,t):($&&$.d(1),$=h&&h(n),$&&($.c(),$.m(s,null)))},i:t,o:t,d(n){n&&v(e),$&&$.d(),f=!1,l(p)}}}function yn(n){let t,e,o,i,r,c,a,s,u,d,f,p,m,g,h,$,w,k,M,z,D,_,E,S,L,P,H,A,q,I,N,R,j,F,O,Q,V,X,W,G,J,K,U,en,on,rn;const ln=[Cn,kn],cn=[];function an(n,t){return n[3]?0:0==n[3]?1:-1}~(r=an(n))&&(c=cn[r]=ln[r](n));const sn=[Bn,Tn],un=[];function dn(n,t){return n[3]?0:0==n[3]?1:-1}~(p=dn(n))&&(m=un[p]=sn[p](n));const fn=[zn,Mn],pn=[];function mn(n,t){return n[3]?0:0==n[3]?1:-1}~(M=mn(n))&&(z=pn[M]=fn[M](n));const gn=[_n,Dn],xn=[];function hn(n,t){return n[3]?0:0==n[3]?1:-1}~(P=hn(n))&&(H=xn[P]=gn[P](n));const $n=[Sn,En],yn=[];function vn(n,t){return n[3]?0:0==n[3]?1:-1}function bn(n,t){return 0==n[5]?Pn:1==n[5]?Ln:void 0}~(j=vn(n))&&(F=yn[j]=$n[j](n));let wn=bn(n),Hn=wn&&wn(n);return{c(){t=b("div"),e=b("div"),o=b("div"),i=b("div"),c&&c.c(),a=C(),s=b("p"),s.textContent="Hate",u=C(),d=b("div"),f=b("div"),m&&m.c(),g=C(),h=b("p"),h.textContent="Dislike",$=C(),w=b("div"),k=b("div"),z&&z.c(),D=C(),_=b("p"),_.textContent="Neutral",E=C(),S=b("div"),L=b("div"),H&&H.c(),A=C(),q=b("p"),q.textContent="Like",I=C(),N=b("div"),R=b("div"),F&&F.c(),O=C(),Q=b("p"),Q.textContent="Love",V=C(),X=b("div"),W=b("div"),G=C(),J=b("textarea"),K=C(),U=b("div"),Hn&&Hn.c(),B(i,"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(k,"class","reactionIcon"),B(_,"class","reactionText"),B(_,"id","neutralDiv"),B(w,"class","iconTextCont"),B(L,"class","reactionIcon"),B(q,"class","reactionText"),B(q,"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(W,"class","pointerDiv"),B(W,"id","pointer"),B(J,"class","textArea"),B(J,"placeholder","Tell us your experience..."),B(X,"class","textAreaCont"),B(U,"class","footer"),B(t,"class","commentContainer")},m(l,c){y(l,t,c),x(t,e),x(e,o),x(o,i),~r&&cn[r].m(i,null),x(o,a),x(o,s),x(e,u),x(e,d),x(d,f),~p&&un[p].m(f,null),x(d,g),x(d,h),x(e,$),x(e,w),x(w,k),~M&&pn[M].m(k,null),x(w,D),x(w,_),x(e,E),x(e,S),x(S,L),~P&&xn[P].m(L,null),x(S,A),x(S,q),x(e,I),x(e,N),x(N,R),~j&&yn[j].m(R,null),x(N,O),x(N,Q),x(t,V),x(t,X),x(X,W),x(X,G),x(X,J),x(t,K),x(t,U),Hn&&Hn.m(U,null),en=!0,on||(rn=[T(o,"click",n[29]),T(d,"click",n[32]),T(w,"click",n[35]),T(S,"click",n[38]),T(R,"click",n[41]),T(J,"click",n[42])],on=!0)},p(n,t){let e=r;r=an(n),r===e?~r&&cn[r].p(n,t):(c&&(Y(),tn(cn[e],1,1,(()=>{cn[e]=null})),Z()),~r?(c=cn[r],c?c.p(n,t):(c=cn[r]=ln[r](n),c.c()),nn(c,1),c.m(i,null)):c=null);let o=p;p=dn(n),p===o?~p&&un[p].p(n,t):(m&&(Y(),tn(un[o],1,1,(()=>{un[o]=null})),Z()),~p?(m=un[p],m?m.p(n,t):(m=un[p]=sn[p](n),m.c()),nn(m,1),m.m(f,null)):m=null);let l=M;M=mn(n),M===l?~M&&pn[M].p(n,t):(z&&(Y(),tn(pn[l],1,1,(()=>{pn[l]=null})),Z()),~M?(z=pn[M],z?z.p(n,t):(z=pn[M]=fn[M](n),z.c()),nn(z,1),z.m(k,null)):z=null);let a=P;P=hn(n),P===a?~P&&xn[P].p(n,t):(H&&(Y(),tn(xn[a],1,1,(()=>{xn[a]=null})),Z()),~P?(H=xn[P],H?H.p(n,t):(H=xn[P]=gn[P](n),H.c()),nn(H,1),H.m(L,null)):H=null);let s=j;j=vn(n),j===s?~j&&yn[j].p(n,t):(F&&(Y(),tn(yn[s],1,1,(()=>{yn[s]=null})),Z()),~j?(F=yn[j],F?F.p(n,t):(F=yn[j]=$n[j](n),F.c()),nn(F,1),F.m(R,null)):F=null),wn===(wn=bn(n))&&Hn?Hn.p(n,t):(Hn&&Hn.d(1),Hn=wn&&wn(n),Hn&&(Hn.c(),Hn.m(U,null)))},i(n){en||(nn(c),nn(m),nn(z),nn(H),nn(F),en=!0)},o(n){tn(c),tn(m),tn(z),tn(H),tn(F),en=!1},d(n){n&&v(t),~r&&cn[r].d(),~p&&un[p].d(),~M&&pn[M].d(),~P&&xn[P].d(),~j&&yn[j].d(),Hn&&Hn.d(),on=!1,l(rn)}}}function vn(n){let t,e,o,i,r,c,a,s,u,d,f,p,m,g,h,$,w,z,D,_,E,S,L,P,H,q,I,N,R,j,O,Q,V,X,W,G,J,K,U,Y,Z,en,an,sn,un=n[0].wgQuestion+"";function dn(t){n[17](t)}let fn={};function pn(t){n[19](t)}void 0!==n[2][0]&&(fn.name=n[2][0]),s=new xn({props:fn}),A.push((()=>on(s,"name",dn)));let mn={};function gn(t){n[21](t)}void 0!==n[2][1]&&(mn.name=n[2][1]),h=new xn({props:mn}),A.push((()=>on(h,"name",pn)));let hn={};function $n(t){n[23](t)}void 0!==n[2][2]&&(hn.name=n[2][2]),S=new xn({props:hn}),A.push((()=>on(S,"name",gn)));let yn={};function vn(t){n[25](t)}void 0!==n[2][3]&&(yn.name=n[2][3]),R=new xn({props:yn}),A.push((()=>on(R,"name",$n)));let bn={};return void 0!==n[2][4]&&(bn.name=n[2][4]),G=new xn({props:bn}),A.push((()=>on(G,"name",vn))),{c(){t=b("div"),e=b("div"),o=k(un),i=C(),r=b("div"),c=b("div"),a=b("div"),rn(s.$$.fragment),d=C(),f=b("p"),f.textContent="Hate",p=C(),m=b("div"),g=b("div"),rn(h.$$.fragment),w=C(),z=b("p"),z.textContent="Dislike",D=C(),_=b("div"),E=b("div"),rn(S.$$.fragment),P=C(),H=b("p"),H.textContent="Neutral",q=C(),I=b("div"),N=b("div"),rn(R.$$.fragment),O=C(),Q=b("p"),Q.textContent="Like",V=C(),X=b("div"),W=b("div"),rn(G.$$.fragment),K=C(),U=b("p"),U.textContent="Love",Y=C(),Z=b("p"),B(e,"id","txt"),B(a,"class","reactionIcon"),B(f,"class","reactionText"),B(c,"class","iconTextCont"),B(g,"class","reactionIcon"),B(z,"class","reactionText"),B(m,"class","iconTextCont"),B(E,"class","reactionIcon"),B(H,"class","reactionText"),B(_,"class","iconTextCont"),B(N,"class","reactionIcon"),B(Q,"class","reactionText"),B(I,"class","iconTextCont"),B(W,"class","reactionIcon"),B(U,"class","reactionText"),B(X,"class","iconTextCont"),B(r,"class","icons"),B(Z,"id","test"),B(t,"class","container")},m(l,u){y(l,t,u),x(t,e),x(e,o),x(t,i),x(t,r),x(r,c),x(c,a),ln(s,a,null),x(c,d),x(c,f),x(r,p),x(r,m),x(m,g),ln(h,g,null),x(m,w),x(m,z),x(r,D),x(r,_),x(_,E),ln(S,E,null),x(_,P),x(_,H),x(r,q),x(r,I),x(I,N),ln(R,N,null),x(I,O),x(I,Q),x(r,V),x(r,X),x(X,W),ln(G,W,null),x(X,K),x(X,U),x(t,Y),x(t,Z),en=!0,an||(sn=[T(c,"click",n[18]),T(m,"click",n[20]),T(_,"click",n[22]),T(I,"click",n[24]),T(X,"click",n[26])],an=!0)},p(n,t){(!en||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 i={};!$&&4&t[0]&&($=!0,i.name=n[2][1],F((()=>$=!1))),h.$set(i);const r={};!L&&4&t[0]&&(L=!0,r.name=n[2][2],F((()=>L=!1))),S.$set(r);const l={};!j&&4&t[0]&&(j=!0,l.name=n[2][3],F((()=>j=!1))),R.$set(l);const c={};!J&&4&t[0]&&(J=!0,c.name=n[2][4],F((()=>J=!1))),G.$set(c)},i(n){en||(nn(s.$$.fragment,n),nn(h.$$.fragment,n),nn(S.$$.fragment,n),nn(R.$$.fragment,n),nn(G.$$.fragment,n),en=!0)},o(n){tn(s.$$.fragment,n),tn(h.$$.fragment,n),tn(S.$$.fragment,n),tn(R.$$.fragment,n),tn(G.$$.fragment,n),en=!1},d(n){n&&v(t),cn(s),cn(h),cn(S),cn(R),cn(G),an=!1,l(sn)}}}function bn(n){let e,o,i;return{c(){e=b("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(t,r){y(t,e,r),o||(i=T(e,"click",n[46]),o=!0)},p:t,d(n){n&&v(e),o=!1,i()}}}function wn(n){let e;return{c(){e=b("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){y(n,e,t)},p:t,d(n){n&&v(e)}}}function kn(n){let t,e,o;function i(t){n[28](t)}let r={};return void 0!==n[2][0]&&(r.name=n[2][0]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][0],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Cn(n){let t,e,o;function i(t){n[27](t)}let r={};return void 0!==n[2][0]&&(r.name=n[2][0]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][0],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Tn(n){let t,e,o;function i(t){n[31](t)}let r={};return void 0!==n[2][1]&&(r.name=n[2][1]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][1],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Bn(n){let t,e,o;function i(t){n[30](t)}let r={};return void 0!==n[2][1]&&(r.name=n[2][1]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][1],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Mn(n){let t,e,o;function i(t){n[34](t)}let r={};return void 0!==n[2][2]&&(r.name=n[2][2]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][2],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function zn(n){let t,e,o;function i(t){n[33](t)}let r={};return void 0!==n[2][2]&&(r.name=n[2][2]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][2],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Dn(n){let t,e,o;function i(t){n[37](t)}let r={};return void 0!==n[2][3]&&(r.name=n[2][3]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][3],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function _n(n){let t,e,o;function i(t){n[36](t)}let r={};return void 0!==n[2][3]&&(r.name=n[2][3]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][3],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function En(n){let t,e,o;function i(t){n[40](t)}let r={};return void 0!==n[2][4]&&(r.name=n[2][4]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][4],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Sn(n){let t,e,o;function i(t){n[39](t)}let r={};return void 0!==n[2][4]&&(r.name=n[2][4]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][4],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Ln(n){let e,o,i;return{c(){e=b("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(t,r){y(t,e,r),o||(i=T(e,"click",n[43]),o=!0)},p:t,d(n){n&&v(e),o=!1,i()}}}function Pn(n){let e;return{c(){e=b("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){y(n,e,t)},p:t,d(n){n&&v(e)}}}function Hn(n){let t,e,o,i;const r=[vn,yn,$n],l=[];function c(n,t){return 1===n[4]?0:2===n[4]?1:3===n[4]?2:-1}return~(t=c(n))&&(e=l[t]=r[t](n)),{c(){e&&e.c(),o=k("")},m(n,e){~t&&l[t].m(n,e),y(n,o,e),i=!0},p(n,i){let a=t;t=c(n),t===a?~t&&l[t].p(n,i):(e&&(Y(),tn(l[a],1,1,(()=>{l[a]=null})),Z()),~t?(e=l[t],e?e.p(n,i):(e=l[t]=r[t](n),e.c()),nn(e,1),e.m(o.parentNode,o)):e=null)},i(n){i||(nn(e),i=!0)},o(n){tn(e),i=!1},d(n){~t&&l[t].d(n),n&&v(o)}}}function An(n,t,e){let o,i,r,l,c,a,s,u,d,f,{feedbackData:p}=t,m=["hate","dislike","neutral","like","love"],g=m,x="test",h=!0,$=0,{closeHandler:y=(()=>{})}=t;const v=()=>{let n=document.querySelector(".textArea");f=setInterval((()=>{console.log(n.value),""===n.value?e(5,d=!1):e(5,d=!0)}),500)},b=()=>{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)},w=(n,t,u)=>{let d=x;var f;x=u,console.log(u),e(4,o=n),e(2,g=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),$>0&&("hate"==(f=d)?e(15,r="none"):"dislike"==f?e(14,l="none"):"neutral"==f?e(13,c="none"):"like"==f?e(12,a="none"):"love"==f&&e(10,s="none")),$++,1==t?(e(11,i=11),e(15,r="block"),e(2,g[0]=m[0],g),e(3,h=!h)):2==t?(e(2,g[1]=m[1],g),e(11,i=30),e(14,l="block"),e(3,h=!h)):3==t?(e(2,g[2]=m[2],g),e(11,i=49),e(13,c="block"),e(3,h=!h)):4==t?(e(2,g[3]=m[3],g),e(11,i=68),e(12,a="block"),e(3,h=!h)):5==t&&(e(2,g[4]=m[4],g),e(11,i=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,p=n.feedbackData),"closeHandler"in n&&e(1,y=n.closeHandler)},n.$$.update=()=>{1&n.$$.dirty[0]&&e(16,u=p.wgAccentColor),2048&n.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",i+"%"),32768&n.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",r),16384&n.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",l),8192&n.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",c),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,i=10),e(15,r="none"),e(14,l="none"),e(13,c="none"),e(12,a="none"),e(10,s="none"),e(5,d=!1),[p,y,g,h,o,d,v,b,w,k,s,i,a,c,l,r,u,function(t){n.$$.not_equal(g[0],t)&&(g[0]=t,e(2,g))},()=>w(2,1,"hate"),function(t){n.$$.not_equal(g[1],t)&&(g[1]=t,e(2,g))},()=>w(2,2,"dislike"),function(t){n.$$.not_equal(g[2],t)&&(g[2]=t,e(2,g))},()=>w(2,3,"neutral"),function(t){n.$$.not_equal(g[3],t)&&(g[3]=t,e(2,g))},()=>w(2,4,"like"),function(t){n.$$.not_equal(g[4],t)&&(g[4]=t,e(2,g))},()=>w(2,5,"love"),function(t){n.$$.not_equal(g[0],t)&&(g[0]=t,e(2,g))},function(t){n.$$.not_equal(g[0],t)&&(g[0]=t,e(2,g))},()=>w(2,1,"hate"),function(t){n.$$.not_equal(g[1],t)&&(g[1]=t,e(2,g))},function(t){n.$$.not_equal(g[1],t)&&(g[1]=t,e(2,g))},()=>w(2,2,"dislike"),function(t){n.$$.not_equal(g[2],t)&&(g[2]=t,e(2,g))},function(t){n.$$.not_equal(g[2],t)&&(g[2]=t,e(2,g))},()=>w(2,3,"neutral"),function(t){n.$$.not_equal(g[3],t)&&(g[3]=t,e(2,g))},function(t){n.$$.not_equal(g[3],t)&&(g[3]=t,e(2,g))},()=>w(2,4,"like"),function(t){n.$$.not_equal(g[4],t)&&(g[4]=t,e(2,g))},function(t){n.$$.not_equal(g[4],t)&&(g[4]=t,e(2,g))},()=>w(2,5,"love"),()=>v(),()=>k(3),()=>b(),()=>y(),()=>y()]}hn(".container {\n display: flex;\n flex-direction: column;\n height: 190px;\n }\n .icons {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n margin-top: 11%;\n }\n #txt {\n font-size: 17px;\n display: flex;\n text-align: center;\n margin-top: 5%;\n width: 61%;\n margin-left: 19%;\n }\n\n .iconTextCont {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 22px;\n }\n\n .reactionText {\n font-size: 9px;\n display: none;\n }\n .iconTextCont:hover{\n cursor: pointer;\n }\n .reactionIcon:hover + .reactionText {\n display: block;\n opacity: 0.8;\n }\n\n .commentContainer{\n display: flex;\n flex-direction: column;\n height: 291px;\n }\n .textAreaCont{\n width: 100%;\n height: 140px;\n background-color: #eaeaeb;\n margin-top: 17%;\n }\n .textArea{\n border: 0px;\n width: 85%;\n height: 120px;\n background-color: #eaeaeb;\n margin-left: 6%;\n outline: none;\n margin-top: 4%;\n resize: none;\n\n }\n .SendButtonCommentComponent{\n color: #ffff;\n font-size: 12px;\n text-align: center;\n margin-top: 1px;\n \n }\n .sendButtonContCommentComp{\n background-color: var(--buttonColor);\n width: 50px;\n height: 29px;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;\n border-radius: 3px;\n margin-top: 13px;\n margin-right: 11px;\n cursor: pointer;\n border: 0px;\n \n }\n \n.CommentButtonContDisable{\n background-color: #cccccc;\n width: 50px;\n height: 29px;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;\n border-radius: 3px;\n margin-top: 13px;\n margin-right: 11px;\n cursor:not-allowed;\n border: 0px;\n}\n.CommentButtonTxtDisable{\n color: black;\n font-size: 12px;\n text-align: center;\n margin-top: 2px;\n}\n .footer{\n display: flex;\n justify-content: flex-end;\n }\n\n .icons-second{\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n margin-top: 6%;\n }\n .pointerDiv{\n width: 0;\n height: 0;\n border-left: 3px solid transparent;\n margin-top: -8px;\n border-right: 5px solid transparent;\n border-bottom: 8px solid #eaeaeb;\n margin-left: var(--pointerMargin);\n\n\n }\n #hateDiv{\n display: var(--hateDisplay);\n }\n #dislikeDiv{\n display: var(--dislikeDisplay);\n }\n #neutralDiv{\n display: var(--neutralDisplay);\n }\n #likeDiv{\n display: var(--likeDisplay);\n }\n #loveDiv{\n display: var(--loveDisplay);\n }\n .emailContainer{\n display: flex;\n flex-direction: column;\n height: 220px;\n }\n #emailInputCont{\n width: 100%;\n height: 46px;\n background-color: #eaeaeb;\n display: flex;\n /* align-items: center; */\n justify-content: center;\n margin-top: 10%;\n\n }\n #EmailTextArea{\n text-align: center;\n border: 0px;\n background-color: #eaeaeb;\n margin-top:3%;\n outline: none;\n }\n #emailText{\n width: 80%;\n text-align: center;\n margin-left: 11%;\n margin-top: 8%;\n line-height: 1.29;\n font-size: 17px;\n }\n .emailFooter{\n display: flex;\n justify-content: flex-end;\n flex-direction: row;\n }\n #skipText{\n color: #908f8f;\n cursor: pointer;\n font-size: 13px;\n margin-top: 6%;\n margin-right: 4%;\n letter-spacing: normal;\n\n }\n #skipText:hover{\n color: #666666;\n }",{insertAt:"top"});class qn extends un{constructor(n){super(),sn(this,n,An,Hn,a,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function In(n){const t=n-1;return t*t*t+1}function Nn(n,{delay:t=0,duration:e=400,easing:o=In,x:i=0,y:r=0,opacity:l=0}={}){const c=getComputedStyle(n),a=+c.opacity,s="none"===c.transform?"":c.transform,u=a*(1-l);return{delay:t,duration:e,easing:o,css:(n,t)=>`\n\t\t\ttransform: ${s} translate(${(1-n)*i}px, ${(1-n)*r}px);\n\t\t\topacity: ${a-u*t}`}}function Rn(n){let t,e,o,i,r,l,c,a,s,u,d={widgetName:n[2]}+"";function f(t){n[20](t)}let p={};return void 0!==n[1]&&(p.fill=n[1]),l=new pn({props:p}),A.push((()=>on(l,"fill",f))),{c(){t=b("div"),e=b("div"),o=k(d),i=C(),r=b("div"),rn(l.$$.fragment),B(e,"id","feedbackTxt"),B(r,"id","mainIcon"),B(t,"class","widget")},m(c,d){y(c,t,d),x(t,e),x(e,o),x(t,i),x(t,r),ln(l,r,null),a=!0,s||(u=T(t,"click",n[10]),s=!0)},p(n,t){(!a||4&t)&&d!==(d={widgetName:n[2]}+"")&&M(o,d);const e={};!c&&2&t&&(c=!0,e.fill=n[1],F((()=>c=!1))),l.$set(e)},i(n){a||(nn(l.$$.fragment,n),a=!0)},o(n){tn(l.$$.fragment,n),a=!1},d(n){n&&v(t),cn(l),s=!1,u()}}}function jn(n){let o,i,r,l,a,s,u,f,p;function m(t){n[21](t)}let h={closeHandler:n[8]};return void 0!==n[0]&&(h.feedbackData=n[0]),l=new qn({props:h}),A.push((()=>on(l,"feedbackData",m))),{c(){o=b("div"),i=b("div"),i.innerHTML='<p id="closeIcon">X</p>',r=C(),rn(l.$$.fragment),B(i,"class","closeCont"),B(o,"class","cont")},m(t,e){y(t,o,e),x(o,i),x(o,r),ln(l,o,null),u=!0,f||(p=T(i,"click",n[11]),f=!0)},p(t,e){n=t;const o={};!a&&1&e&&(a=!0,o.feedbackData=n[0],F((()=>a=!1))),l.$set(o)},i(i){u||(nn(l.$$.fragment,i),s||j((()=>{s=function(n,o,i){let r,l,a=o(n,i),s=!1,u=0;function f(){r&&L(n,r)}function p(){const{delay:o=0,duration:i=300,easing:c=e,tick:p=t,css:m}=a||en;m&&(r=S(n,0,1,i,o,c,m,u++)),p(0,1);const x=d()+o,h=x+i;l&&l.abort(),s=!0,j((()=>J(n,!0,"start"))),l=g((t=>{if(s){if(t>=h)return p(1,0),J(n,!0,"end"),f(),s=!1;if(t>=x){const n=c((t-x)/i);p(n,1-n)}}return s}))}let m=!1;return{start(){m||(m=!0,L(n),c(a)?(a=a(),G().then(p)):p())},invalidate(){m=!1},end(){s&&(f(),s=!1)}}}(o,Nn,{x:n[6],duration:500}),s.start()})),u=!0)},o(n){tn(l.$$.fragment,n),u=!1},d(n){n&&v(o),cn(l),f=!1,p()}}}function Fn(n){let o,i,r,a,s,u,f,p,m,h=n[0].wgThanksMsg+"";return{c(){o=b("div"),i=b("div"),i.innerHTML='<p id="closeIcon">X</p>',r=C(),a=b("div"),s=k(h),B(i,"class","closeCont"),z(a,"width","61%"),z(a,"text-align","center"),z(a,"margin-top","7%"),z(a,"margin-left","20%"),B(o,"class","thanksMessageCont")},m(t,e){y(t,o,e),x(o,i),x(o,r),x(o,a),x(a,s),f=!0,p||(m=T(i,"click",n[9]),p=!0)},p(t,e){n=t,(!f||1&e)&&h!==(h=n[0].wgThanksMsg+"")&&M(s,h)},i(n){f||(u&&u.end(1),f=!0)},o(i){u=function(n,o,i){let r,a=o(n,i),s=!0;const u=U;function f(){const{delay:o=0,duration:i=300,easing:c=e,tick:f=t,css:p}=a||en;p&&(r=S(n,1,0,i,o,c,p));const m=d()+o,x=m+i;j((()=>J(n,!1,"start"))),g((t=>{if(s){if(t>=x)return f(0,1),J(n,!1,"end"),--u.r||l(u.c),!1;if(t>=m){const n=c((t-m)/i);f(1-n,n)}}return s}))}return u.r+=1,c(a)?G().then((()=>{a=a(),f()})):f(),{end(t){t&&a.tick&&a.tick(1,0),s&&(r&&L(n,r),s=!1)}}}(o,Nn,{x:n[7],duration:300}),f=!1},d(n){n&&v(o),n&&u&&u.end(),p=!1,m()}}}function On(n){let t,e,o,i,r=n[4]&&Rn(n),l=n[3]&&jn(n),c=n[5]&&Fn(n);return{c(){t=b("container"),r&&r.c(),e=C(),l&&l.c(),o=C(),c&&c.c()},m(n,a){y(n,t,a),r&&r.m(t,null),x(t,e),l&&l.m(t,null),x(t,o),c&&c.m(t,null),i=!0},p(n,[i]){n[4]?r?(r.p(n,i),16&i&&nn(r,1)):(r=Rn(n),r.c(),nn(r,1),r.m(t,e)):r&&(Y(),tn(r,1,1,(()=>{r=null})),Z()),n[3]?l?(l.p(n,i),8&i&&nn(l,1)):(l=jn(n),l.c(),nn(l,1),l.m(t,o)):l&&(Y(),tn(l,1,1,(()=>{l=null})),Z()),n[5]?c?(c.p(n,i),32&i&&nn(c,1)):(c=Fn(n),c.c(),nn(c,1),c.m(t,null)):c&&(Y(),tn(c,1,1,(()=>{c=null})),Z())},i(n){i||(nn(r),nn(l),nn(c),i=!0)},o(n){tn(r),tn(l),tn(c),i=!1},d(n){n&&v(t),r&&r.d(),l&&l.d(),c&&c.d()}}}function Qn(n,t,e){let o,{feedback:i}=t;console.log(i);let r="",l="",c="feedback";c="en"==i.wgLanguage?"feedback":"ar"==i.wgLanguage?"رأي":"Rétroaction",!0===i.wgAlternateColor?(r="white",l="white"):(r="black",l="black");let a="",s="",u=0,d=0,f=0,p=0,m=!1,g=!0,x=!1,h=0,$=0;0==Number(i.wgPosition)&&(a="center",s="row-reverse",u=5,d=0,f=30,p=0,h=-100,$=20),1==Number(i.wgPosition)&&(a="center",s="row",u=0,d=5,f=0,p=30,h=100,$=-20),2==Number(i.wgPosition)&&(a="flex-end",s="row-reverse",u=5,f=30,p=0,h=-100,$=20),3==Number(i.wgPosition)&&(a="flex-end",s="row",u=0,d=5,f=0,p=30,h=100,$=-20);const y=()=>{e(3,m=!m),e(5,x=!x)};return n.$$set=n=>{"feedback"in n&&e(0,i=n.feedback)},n.$$.update=()=>{1&n.$$.dirty&&e(19,o=i.wgAccentColor),524288&n.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",o),4096&n.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",r),8192&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",a),16384&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",s),32768&n.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",u+"px"),65536&n.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",d+"px"),131072&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",f+"px"),262144&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",p+"px")},[i,l,c,m,g,x,h,$,()=>y(),()=>{e(5,x=!x),setTimeout((function(){e(4,g=!g)}),350)},()=>{e(3,m=!m),e(4,g=!g)},()=>{e(3,m=!m),setTimeout((function(){e(4,g=!g)}),350)},r,a,s,u,d,f,p,o,function(n){l=n,e(1,l)},function(n){i=n,e(0,i)}]}hn("container{\n width: 100%;\n display: flex;\n flex-direction: var(--wgPositionVertical);\n position: fixed;\n top: 0; right: 0; bottom: 0; left: 0;\n\theight: 100%;\n pointer-events: none;\n align-items: var(--wgPositionHorizintal);\n padding: 0;\n z-index: 100000;\n }\n .widget {\n pointer-events: auto;\n background-color: var(--widgetColor);\n width: 34px;\n height: 112px;\n border-top-left-radius:var(--widgetLeftSideBorder) ;\n border-bottom-left-radius: var(--widgetLeftSideBorder);\n border-top-right-radius: var(--widgetRightSideBorder) ;\n border-bottom-right-radius: var(--widgetRightSideBorder);\n box-shadow: 0.2px 0.2px 0.2px rgb(133, 130, 130);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-evenly;\n cursor: pointer;\n margin-top: 5px;\n }\n #mainIcon {\n width: 60%;\n margin-left: 4%;\n cursor: pointer;\n }\n #feedbackTxt {\n color: var(--widgetTextColor);\n font-size: 13px;\n writing-mode: vertical-lr;\n transform: rotate(180deg);\n cursor: pointer;\n }\n .widget:hover {\n width: 35px;\n -webkit-box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);\n box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);\n }\n .cont {\n width: 320px;\n height: fit-content;\n background-color: rgb(255, 255, 255);\n \tmargin-right: var(--widgetMarginRight);\n margin-left: var(--widgetMarginLeft);\n\t-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px; \n\tbox-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;\n }\n .thanksMessageCont{\n width: 320px;\n height: 104px;\n background-color: rgb(255, 255, 255);\n \tmargin-right: var(--widgetMarginRight);\n margin-left: var(--widgetMarginLeft);\n\t-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px; \n\tbox-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;\n }\n #closeIcon{\n\t font-size: 16px;\n\t color: #ffff;\n\t font-weight: 600;\n\t font-family: system-ui;\n\tcursor: pointer;\n\t \n }\n .closeCont{\n\t background-color: #4d5167;\n\t width: 27px;\n height: 27px;\n\tborder-radius: 50%;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tmargin-top: -15px;\n margin-left: 85%;\n\tcursor: pointer;\n\t}\n\n \n \n \n\n @media (min-width: 640px) {\n body {\n max-width: none;\n }\n }",{insertAt:"top"});class Vn extends un{constructor(n){super(),sn(this,n,Qn,On,a,{feedback:0})}}return n.feedbackCreator=function(n){new Vn({target:document.body,props:{feedback:n}})},Object.defineProperty(n,"__esModule",{value:!0}),n}({});
1
+ var fsFeedbackWidget=function(n){"use strict";function t(){}const e=n=>n;function o(n,t){for(const e in t)n[e]=t[e];return n}function i(n){return n()}function r(){return Object.create(null)}function l(n){n.forEach(i)}function c(n){return"function"==typeof n}function a(n,t){return n!=n?t==t:n!==t||n&&"object"==typeof n||"function"==typeof n}function s(n){const t={};for(const e in n)"$"!==e[0]&&(t[e]=n[e]);return t}const u="undefined"!=typeof window;let d=u?()=>window.performance.now():()=>Date.now(),f=u?n=>requestAnimationFrame(n):t;const p=new Set;function m(n){p.forEach((t=>{t.c(n)||(p.delete(t),t.f())})),0!==p.size&&f(m)}function g(n){let t;return 0===p.size&&f(m),{promise:new Promise((e=>{p.add(t={c:n,f:e})})),abort(){p.delete(t)}}}function x(n,t){n.appendChild(t)}function h(n){if(!n)return document;const t=n.getRootNode?n.getRootNode():n.ownerDocument;return t&&t.host?t:n.ownerDocument}function $(n){const t=b("style");return function(n,t){x(n.head||n,t)}(h(n),t),t.sheet}function v(n,t,e){n.insertBefore(t,e||null)}function y(n){n.parentNode.removeChild(n)}function b(n){return document.createElement(n)}function w(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function k(n){return document.createTextNode(n)}function C(){return k(" ")}function T(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 z(n,t,e,o){null===e?n.style.removeProperty(t):n.style.setProperty(t,e,o?"important":"")}const D=new Map;let _,E=0;function S(n,t,e,o,i,r,l,c=0){const a=16.666/o;let s="{\n";for(let n=0;n<=1;n+=a){const o=t+(e-t)*r(n);s+=100*n+`%{${l(o,1-o)}}\n`}const u=s+`100% {${l(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)}_${c}`,f=h(n),{stylesheet:p,rules:m}=D.get(f)||function(n,t){const e={stylesheet:$(t),rules:{}};return D.set(n,e),e}(f,n);m[d]||(m[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=n.style.animation||"";return n.style.animation=`${g?`${g}, `:""}${d} ${o}ms linear ${i}ms 1 both`,E+=1,d}function L(n,t){const e=(n.style.animation||"").split(", "),o=e.filter(t?n=>n.indexOf(t)<0:n=>-1===n.indexOf("__svelte")),i=e.length-o.length;i&&(n.style.animation=o.join(", "),E-=i,E||f((()=>{E||(D.forEach((n=>{const{stylesheet:t}=n;let e=t.cssRules.length;for(;e--;)t.deleteRule(e);n.rules={}})),D.clear())})))}function P(n){_=n}const H=[],A=[],q=[],I=[],N=Promise.resolve();let R=!1;function j(n){q.push(n)}function F(n){I.push(n)}const O=new Set;let Q,V=0;function X(){const n=_;do{for(;V<H.length;){const n=H[V];V++,P(n),W(n.$$)}for(P(null),H.length=0,V=0;A.length;)A.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(H.length);for(;I.length;)I.pop()();R=!1,O.clear(),P(n)}function W(n){if(null!==n.fragment){n.update(),l(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(j)}}function G(){return Q||(Q=Promise.resolve(),Q.then((()=>{Q=null}))),Q}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 Y(){U={r:0,c:[],p:U}}function Z(){U.r||l(U.c),U=U.p}function nn(n,t){n&&n.i&&(K.delete(n),n.i(t))}function tn(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 en={duration:0};function on(n,t,e){const o=n.$$.props[t];void 0!==o&&(n.$$.bound[o]=e,e(n.$$.ctx[o]))}function rn(n){n&&n.c()}function ln(n,t,e,o){const{fragment:r,on_mount:a,on_destroy:s,after_update:u}=n.$$;r&&r.m(t,e),o||j((()=>{const t=a.map(i).filter(c);s?s.push(...t):l(t),n.$$.on_mount=[]})),u.forEach(j)}function cn(n,t){const e=n.$$;null!==e.fragment&&(l(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function an(n,t){-1===n.$$.dirty[0]&&(H.push(n),R||(R=!0,N.then(X)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function sn(n,e,o,i,c,a,s,u=[-1]){const d=_;P(n);const f=n.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};s&&s(f.root);let p=!1;if(f.ctx=o?o(n,e.props||{},((t,e,...o)=>{const i=o.length?o[0]:e;return f.ctx&&c(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),p&&an(n,t)),e})):[],f.update(),p=!0,l(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(y)}else f.fragment&&f.fragment.c();e.intro&&nn(n.$$.fragment),ln(n,e.target,e.anchor,e.customElement),X()}P(d)}class un{$destroy(){cn(this,1),this.$destroy=t}$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 dn(n){let e,o,i,r,l,c,a,s,u,d,f,p,m,g,h,$,b,k,C;return{c(){e=w("svg"),o=w("g"),i=w("g"),r=w("path"),l=w("g"),c=w("g"),a=w("g"),s=w("g"),u=w("g"),d=w("g"),f=w("g"),p=w("g"),m=w("g"),g=w("g"),h=w("g"),$=w("g"),b=w("g"),k=w("g"),C=w("g"),B(r,"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",n[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"),z(e,"enable-background","new 0 0 458 458"),B(e,"xml:space","preserve")},m(n,t){v(n,e,t),x(e,o),x(o,i),x(i,r),x(e,l),x(e,c),x(e,a),x(e,s),x(e,u),x(e,d),x(e,f),x(e,p),x(e,m),x(e,g),x(e,h),x(e,$),x(e,b),x(e,k),x(e,C)},p(n,[t]){1&t&&B(e,"fill",n[0])},i:t,o:t,d(n){n&&y(e)}}}function fn(n,t,e){let{fill:o=""}=t;return n.$$set=n=>{"fill"in n&&e(0,o=n.fill)},[o]}class pn extends un{constructor(n){super(),sn(this,n,fn,dn,a,{fill:0})}}function mn(n){let e,o,i=n[3].svg+"";return{c(){e=w("svg"),B(e,"class",o=n[4].class),B(e,"focusable",n[0]),B(e,"width",n[1]),B(e,"height",n[2]),B(e,"viewBox","0 0 "+n[3].box+" "+(n[3].box-1))},m(n,t){v(n,e,t),e.innerHTML=i},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:t,o:t,d(n){n&&y(e)}}}function gn(n,t,e){let{name:i}=t,{focusable:r=!1}=t,{width:l="40px"}=t,{height:c="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((n=>n.name===i));return n.$$set=n=>{e(4,t=o(o({},t),s(n))),"name"in n&&e(5,i=n.name),"focusable"in n&&e(0,r=n.focusable),"width"in n&&e(1,l=n.width),"height"in n&&e(2,c=n.height)},t=s(t),[r,l,c,a,t,i]}class xn extends un{constructor(n){super(),sn(this,n,gn,mn,a,{name:5,focusable:0,width:1,height:2})}}function hn(n,t){void 0===t&&(t={});var e=t.insertAt;if(n&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===e&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}function $n(n){let e,o,i,r,c,a,s,u,d,f,p,m=n[0].wgEmailReqMsg+"";function g(n,t){return 0==n[5]?wn:1==n[5]?bn:void 0}let h=g(n),$=h&&h(n);return{c(){e=b("div"),o=b("div"),i=k(m),r=C(),c=b("div"),c.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com"/>',a=C(),s=b("div"),u=b("p"),u.innerHTML="<u>Skip</u>",d=C(),$&&$.c(),B(o,"id","emailText"),B(c,"id","emailInputCont"),B(u,"id","skipText"),B(s,"class","emailFooter"),B(e,"class","emailContainer")},m(t,l){v(t,e,l),x(e,o),x(o,i),x(e,r),x(e,c),x(e,a),x(e,s),x(s,u),x(s,d),$&&$.m(s,null),f||(p=[T(c,"click",n[44]),T(u,"click",n[45])],f=!0)},p(n,t){1&t[0]&&m!==(m=n[0].wgEmailReqMsg+"")&&M(i,m),h===(h=g(n))&&$?$.p(n,t):($&&$.d(1),$=h&&h(n),$&&($.c(),$.m(s,null)))},i:t,o:t,d(n){n&&y(e),$&&$.d(),f=!1,l(p)}}}function vn(n){let t,e,o,i,r,c,a,s,u,d,f,p,m,g,h,$,w,k,M,z,D,_,E,S,L,P,H,A,q,I,N,R,j,F,O,Q,V,X,W,G,J,K,U,en,on,rn;const ln=[Cn,kn],cn=[];function an(n,t){return n[3]?0:0==n[3]?1:-1}~(r=an(n))&&(c=cn[r]=ln[r](n));const sn=[Bn,Tn],un=[];function dn(n,t){return n[3]?0:0==n[3]?1:-1}~(p=dn(n))&&(m=un[p]=sn[p](n));const fn=[zn,Mn],pn=[];function mn(n,t){return n[3]?0:0==n[3]?1:-1}~(M=mn(n))&&(z=pn[M]=fn[M](n));const gn=[_n,Dn],xn=[];function hn(n,t){return n[3]?0:0==n[3]?1:-1}~(P=hn(n))&&(H=xn[P]=gn[P](n));const $n=[Sn,En],vn=[];function yn(n,t){return n[3]?0:0==n[3]?1:-1}function bn(n,t){return 0==n[5]?Pn:1==n[5]?Ln:void 0}~(j=yn(n))&&(F=vn[j]=$n[j](n));let wn=bn(n),Hn=wn&&wn(n);return{c(){t=b("div"),e=b("div"),o=b("div"),i=b("div"),c&&c.c(),a=C(),s=b("p"),s.textContent="Hate",u=C(),d=b("div"),f=b("div"),m&&m.c(),g=C(),h=b("p"),h.textContent="Dislike",$=C(),w=b("div"),k=b("div"),z&&z.c(),D=C(),_=b("p"),_.textContent="Neutral",E=C(),S=b("div"),L=b("div"),H&&H.c(),A=C(),q=b("p"),q.textContent="Like",I=C(),N=b("div"),R=b("div"),F&&F.c(),O=C(),Q=b("p"),Q.textContent="Love",V=C(),X=b("div"),W=b("div"),G=C(),J=b("textarea"),K=C(),U=b("div"),Hn&&Hn.c(),B(i,"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(k,"class","reactionIcon"),B(_,"class","reactionText"),B(_,"id","neutralDiv"),B(w,"class","iconTextCont"),B(L,"class","reactionIcon"),B(q,"class","reactionText"),B(q,"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(W,"class","pointerDiv"),B(W,"id","pointer"),B(J,"class","textArea"),B(J,"placeholder","Tell us your experience..."),B(X,"class","textAreaCont"),B(U,"class","footer"),B(t,"class","commentContainer")},m(l,c){v(l,t,c),x(t,e),x(e,o),x(o,i),~r&&cn[r].m(i,null),x(o,a),x(o,s),x(e,u),x(e,d),x(d,f),~p&&un[p].m(f,null),x(d,g),x(d,h),x(e,$),x(e,w),x(w,k),~M&&pn[M].m(k,null),x(w,D),x(w,_),x(e,E),x(e,S),x(S,L),~P&&xn[P].m(L,null),x(S,A),x(S,q),x(e,I),x(e,N),x(N,R),~j&&vn[j].m(R,null),x(N,O),x(N,Q),x(t,V),x(t,X),x(X,W),x(X,G),x(X,J),x(t,K),x(t,U),Hn&&Hn.m(U,null),en=!0,on||(rn=[T(o,"click",n[29]),T(d,"click",n[32]),T(w,"click",n[35]),T(S,"click",n[38]),T(R,"click",n[41]),T(J,"click",n[42])],on=!0)},p(n,t){let e=r;r=an(n),r===e?~r&&cn[r].p(n,t):(c&&(Y(),tn(cn[e],1,1,(()=>{cn[e]=null})),Z()),~r?(c=cn[r],c?c.p(n,t):(c=cn[r]=ln[r](n),c.c()),nn(c,1),c.m(i,null)):c=null);let o=p;p=dn(n),p===o?~p&&un[p].p(n,t):(m&&(Y(),tn(un[o],1,1,(()=>{un[o]=null})),Z()),~p?(m=un[p],m?m.p(n,t):(m=un[p]=sn[p](n),m.c()),nn(m,1),m.m(f,null)):m=null);let l=M;M=mn(n),M===l?~M&&pn[M].p(n,t):(z&&(Y(),tn(pn[l],1,1,(()=>{pn[l]=null})),Z()),~M?(z=pn[M],z?z.p(n,t):(z=pn[M]=fn[M](n),z.c()),nn(z,1),z.m(k,null)):z=null);let a=P;P=hn(n),P===a?~P&&xn[P].p(n,t):(H&&(Y(),tn(xn[a],1,1,(()=>{xn[a]=null})),Z()),~P?(H=xn[P],H?H.p(n,t):(H=xn[P]=gn[P](n),H.c()),nn(H,1),H.m(L,null)):H=null);let s=j;j=yn(n),j===s?~j&&vn[j].p(n,t):(F&&(Y(),tn(vn[s],1,1,(()=>{vn[s]=null})),Z()),~j?(F=vn[j],F?F.p(n,t):(F=vn[j]=$n[j](n),F.c()),nn(F,1),F.m(R,null)):F=null),wn===(wn=bn(n))&&Hn?Hn.p(n,t):(Hn&&Hn.d(1),Hn=wn&&wn(n),Hn&&(Hn.c(),Hn.m(U,null)))},i(n){en||(nn(c),nn(m),nn(z),nn(H),nn(F),en=!0)},o(n){tn(c),tn(m),tn(z),tn(H),tn(F),en=!1},d(n){n&&y(t),~r&&cn[r].d(),~p&&un[p].d(),~M&&pn[M].d(),~P&&xn[P].d(),~j&&vn[j].d(),Hn&&Hn.d(),on=!1,l(rn)}}}function yn(n){let t,e,o,i,r,c,a,s,u,d,f,p,m,g,h,$,w,z,D,_,E,S,L,P,H,q,I,N,R,j,O,Q,V,X,W,G,J,K,U,Y,Z,en,an,sn,un=n[0].wgQuestion+"";function dn(t){n[17](t)}let fn={};function pn(t){n[19](t)}void 0!==n[2][0]&&(fn.name=n[2][0]),s=new xn({props:fn}),A.push((()=>on(s,"name",dn)));let mn={};function gn(t){n[21](t)}void 0!==n[2][1]&&(mn.name=n[2][1]),h=new xn({props:mn}),A.push((()=>on(h,"name",pn)));let hn={};function $n(t){n[23](t)}void 0!==n[2][2]&&(hn.name=n[2][2]),S=new xn({props:hn}),A.push((()=>on(S,"name",gn)));let vn={};function yn(t){n[25](t)}void 0!==n[2][3]&&(vn.name=n[2][3]),R=new xn({props:vn}),A.push((()=>on(R,"name",$n)));let bn={};return void 0!==n[2][4]&&(bn.name=n[2][4]),G=new xn({props:bn}),A.push((()=>on(G,"name",yn))),{c(){t=b("div"),e=b("div"),o=k(un),i=C(),r=b("div"),c=b("div"),a=b("div"),rn(s.$$.fragment),d=C(),f=b("p"),f.textContent="Hate",p=C(),m=b("div"),g=b("div"),rn(h.$$.fragment),w=C(),z=b("p"),z.textContent="Dislike",D=C(),_=b("div"),E=b("div"),rn(S.$$.fragment),P=C(),H=b("p"),H.textContent="Neutral",q=C(),I=b("div"),N=b("div"),rn(R.$$.fragment),O=C(),Q=b("p"),Q.textContent="Like",V=C(),X=b("div"),W=b("div"),rn(G.$$.fragment),K=C(),U=b("p"),U.textContent="Love",Y=C(),Z=b("p"),B(e,"id","txt"),B(a,"class","reactionIcon"),B(f,"class","reactionText"),B(c,"class","iconTextCont"),B(g,"class","reactionIcon"),B(z,"class","reactionText"),B(m,"class","iconTextCont"),B(E,"class","reactionIcon"),B(H,"class","reactionText"),B(_,"class","iconTextCont"),B(N,"class","reactionIcon"),B(Q,"class","reactionText"),B(I,"class","iconTextCont"),B(W,"class","reactionIcon"),B(U,"class","reactionText"),B(X,"class","iconTextCont"),B(r,"class","icons"),B(Z,"id","test"),B(t,"class","container")},m(l,u){v(l,t,u),x(t,e),x(e,o),x(t,i),x(t,r),x(r,c),x(c,a),ln(s,a,null),x(c,d),x(c,f),x(r,p),x(r,m),x(m,g),ln(h,g,null),x(m,w),x(m,z),x(r,D),x(r,_),x(_,E),ln(S,E,null),x(_,P),x(_,H),x(r,q),x(r,I),x(I,N),ln(R,N,null),x(I,O),x(I,Q),x(r,V),x(r,X),x(X,W),ln(G,W,null),x(X,K),x(X,U),x(t,Y),x(t,Z),en=!0,an||(sn=[T(c,"click",n[18]),T(m,"click",n[20]),T(_,"click",n[22]),T(I,"click",n[24]),T(X,"click",n[26])],an=!0)},p(n,t){(!en||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 i={};!$&&4&t[0]&&($=!0,i.name=n[2][1],F((()=>$=!1))),h.$set(i);const r={};!L&&4&t[0]&&(L=!0,r.name=n[2][2],F((()=>L=!1))),S.$set(r);const l={};!j&&4&t[0]&&(j=!0,l.name=n[2][3],F((()=>j=!1))),R.$set(l);const c={};!J&&4&t[0]&&(J=!0,c.name=n[2][4],F((()=>J=!1))),G.$set(c)},i(n){en||(nn(s.$$.fragment,n),nn(h.$$.fragment,n),nn(S.$$.fragment,n),nn(R.$$.fragment,n),nn(G.$$.fragment,n),en=!0)},o(n){tn(s.$$.fragment,n),tn(h.$$.fragment,n),tn(S.$$.fragment,n),tn(R.$$.fragment,n),tn(G.$$.fragment,n),en=!1},d(n){n&&y(t),cn(s),cn(h),cn(S),cn(R),cn(G),an=!1,l(sn)}}}function bn(n){let e,o,i;return{c(){e=b("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(t,r){v(t,e,r),o||(i=T(e,"click",n[46]),o=!0)},p:t,d(n){n&&y(e),o=!1,i()}}}function wn(n){let e;return{c(){e=b("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){v(n,e,t)},p:t,d(n){n&&y(e)}}}function kn(n){let t,e,o;function i(t){n[28](t)}let r={};return void 0!==n[2][0]&&(r.name=n[2][0]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][0],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Cn(n){let t,e,o;function i(t){n[27](t)}let r={};return void 0!==n[2][0]&&(r.name=n[2][0]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][0],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Tn(n){let t,e,o;function i(t){n[31](t)}let r={};return void 0!==n[2][1]&&(r.name=n[2][1]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][1],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Bn(n){let t,e,o;function i(t){n[30](t)}let r={};return void 0!==n[2][1]&&(r.name=n[2][1]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][1],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Mn(n){let t,e,o;function i(t){n[34](t)}let r={};return void 0!==n[2][2]&&(r.name=n[2][2]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][2],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function zn(n){let t,e,o;function i(t){n[33](t)}let r={};return void 0!==n[2][2]&&(r.name=n[2][2]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][2],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Dn(n){let t,e,o;function i(t){n[37](t)}let r={};return void 0!==n[2][3]&&(r.name=n[2][3]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][3],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function _n(n){let t,e,o;function i(t){n[36](t)}let r={};return void 0!==n[2][3]&&(r.name=n[2][3]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][3],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function En(n){let t,e,o;function i(t){n[40](t)}let r={};return void 0!==n[2][4]&&(r.name=n[2][4]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][4],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Sn(n){let t,e,o;function i(t){n[39](t)}let r={};return void 0!==n[2][4]&&(r.name=n[2][4]),t=new xn({props:r}),A.push((()=>on(t,"name",i))),{c(){rn(t.$$.fragment)},m(n,e){ln(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][4],F((()=>e=!1))),t.$set(i)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){cn(t,n)}}}function Ln(n){let e,o,i;return{c(){e=b("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(t,r){v(t,e,r),o||(i=T(e,"click",n[43]),o=!0)},p:t,d(n){n&&y(e),o=!1,i()}}}function Pn(n){let e;return{c(){e=b("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){v(n,e,t)},p:t,d(n){n&&y(e)}}}function Hn(n){let t,e,o,i;const r=[yn,vn,$n],l=[];function c(n,t){return 1===n[4]?0:2===n[4]?1:3===n[4]?2:-1}return~(t=c(n))&&(e=l[t]=r[t](n)),{c(){e&&e.c(),o=k("")},m(n,e){~t&&l[t].m(n,e),v(n,o,e),i=!0},p(n,i){let a=t;t=c(n),t===a?~t&&l[t].p(n,i):(e&&(Y(),tn(l[a],1,1,(()=>{l[a]=null})),Z()),~t?(e=l[t],e?e.p(n,i):(e=l[t]=r[t](n),e.c()),nn(e,1),e.m(o.parentNode,o)):e=null)},i(n){i||(nn(e),i=!0)},o(n){tn(e),i=!1},d(n){~t&&l[t].d(n),n&&y(o)}}}function An(n,t,e){let o,i,r,l,c,a,s,u,d,f,{feedbackData:p}=t,m=["hate","dislike","neutral","like","love"],g=m,x="test",h=!0,$=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)},b=()=>{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)},w=(n,t,u)=>{let d=x;var f;x=u,console.log(u),e(4,o=n),e(2,g=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),$>0&&("hate"==(f=d)?e(15,r="none"):"dislike"==f?e(14,l="none"):"neutral"==f?e(13,c="none"):"like"==f?e(12,a="none"):"love"==f&&e(10,s="none")),$++,1==t?(e(11,i=11),e(15,r="block"),e(2,g[0]=m[0],g),e(3,h=!h)):2==t?(e(2,g[1]=m[1],g),e(11,i=30),e(14,l="block"),e(3,h=!h)):3==t?(e(2,g[2]=m[2],g),e(11,i=49),e(13,c="block"),e(3,h=!h)):4==t?(e(2,g[3]=m[3],g),e(11,i=68),e(12,a="block"),e(3,h=!h)):5==t&&(e(2,g[4]=m[4],g),e(11,i=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,p=n.feedbackData),"closeHandler"in n&&e(1,v=n.closeHandler)},n.$$.update=()=>{1&n.$$.dirty[0]&&e(16,u=p.wgAccentColor),2048&n.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",i+"%"),32768&n.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",r),16384&n.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",l),8192&n.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",c),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,i=10),e(15,r="none"),e(14,l="none"),e(13,c="none"),e(12,a="none"),e(10,s="none"),e(5,d=!1),[p,v,g,h,o,d,y,b,w,k,s,i,a,c,l,r,u,function(t){n.$$.not_equal(g[0],t)&&(g[0]=t,e(2,g))},()=>w(2,1,"hate"),function(t){n.$$.not_equal(g[1],t)&&(g[1]=t,e(2,g))},()=>w(2,2,"dislike"),function(t){n.$$.not_equal(g[2],t)&&(g[2]=t,e(2,g))},()=>w(2,3,"neutral"),function(t){n.$$.not_equal(g[3],t)&&(g[3]=t,e(2,g))},()=>w(2,4,"like"),function(t){n.$$.not_equal(g[4],t)&&(g[4]=t,e(2,g))},()=>w(2,5,"love"),function(t){n.$$.not_equal(g[0],t)&&(g[0]=t,e(2,g))},function(t){n.$$.not_equal(g[0],t)&&(g[0]=t,e(2,g))},()=>w(2,1,"hate"),function(t){n.$$.not_equal(g[1],t)&&(g[1]=t,e(2,g))},function(t){n.$$.not_equal(g[1],t)&&(g[1]=t,e(2,g))},()=>w(2,2,"dislike"),function(t){n.$$.not_equal(g[2],t)&&(g[2]=t,e(2,g))},function(t){n.$$.not_equal(g[2],t)&&(g[2]=t,e(2,g))},()=>w(2,3,"neutral"),function(t){n.$$.not_equal(g[3],t)&&(g[3]=t,e(2,g))},function(t){n.$$.not_equal(g[3],t)&&(g[3]=t,e(2,g))},()=>w(2,4,"like"),function(t){n.$$.not_equal(g[4],t)&&(g[4]=t,e(2,g))},function(t){n.$$.not_equal(g[4],t)&&(g[4]=t,e(2,g))},()=>w(2,5,"love"),()=>y(),()=>k(3),()=>b(),()=>v(),()=>v()]}hn(".container {\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n height: 190px;\n }\n .icons {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n margin-top: 11%;\n }\n #txt {\n font-size: 17px;\n display: flex;\n text-align: center;\n margin-top: 5%;\n width: 61%;\n margin-left: 19%;\n }\n\n .iconTextCont {\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 22px;\n }\n\n .reactionText {\n font-size: 9px;\n display: none;\n }\n .iconTextCont:hover{\n pointer-events: auto;\n cursor: pointer;\n }\n .reactionIcon:hover + .reactionText {\n display: block;\n opacity: 0.8;\n }\n\n .commentContainer{\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n height: 291px;\n pointer-events: auto;\n }\n .textAreaCont{\n pointer-events: auto;\n width: 100%;\n height: 140px;\n background-color: #eaeaeb;\n margin-top: 17%;\n }\n .textArea{\n border: 0px;\n width: 85%;\n height: 120px;\n background-color: #eaeaeb;\n margin-left: 6%;\n outline: none;\n margin-top: 4%;\n resize: none;\n\n }\n .SendButtonCommentComponent{\n pointer-events: auto;\n color: #ffff;\n font-size: 12px;\n text-align: center;\n margin-top: 1px;\n \n }\n .sendButtonContCommentComp{\n pointer-events: auto;\n background-color: var(--buttonColor);\n width: 50px;\n height: 29px;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;\n border-radius: 3px;\n margin-top: 13px;\n margin-right: 11px;\n cursor: pointer;\n border: 0px;\n \n }\n \n.CommentButtonContDisable{\n pointer-events: auto;\n background-color: #cccccc;\n width: 50px;\n height: 29px;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;\n border-radius: 3px;\n margin-top: 13px;\n margin-right: 11px;\n cursor:not-allowed;\n border: 0px;\n}\n.CommentButtonTxtDisable{\n pointer-events: auto;\n color: black;\n font-size: 12px;\n text-align: center;\n margin-top: 2px;\n}\n .footer{\n pointer-events: auto;\n display: flex;\n justify-content: flex-end;\n }\n\n .icons-second{\n\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n margin-top: 6%;\n }\n .pointerDiv{\n width: 0;\n height: 0;\n border-left: 3px solid transparent;\n margin-top: -8px;\n border-right: 5px solid transparent;\n border-bottom: 8px solid #eaeaeb;\n margin-left: var(--pointerMargin);\n\n\n }\n #hateDiv{\n display: var(--hateDisplay);\n }\n #dislikeDiv{\n display: var(--dislikeDisplay);\n }\n #neutralDiv{\n display: var(--neutralDisplay);\n }\n #likeDiv{\n display: var(--likeDisplay);\n }\n #loveDiv{\n display: var(--loveDisplay);\n }\n .emailContainer{\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n height: 220px;\n }\n #emailInputCont{\n pointer-events: auto;\n pointer-events: auto;\n width: 100%;\n height: 46px;\n background-color: #eaeaeb;\n display: flex;\n /* align-items: center; */\n justify-content: center;\n margin-top: 10%;\n\n }\n #EmailTextArea{\n pointer-events: auto;\n text-align: center;\n border: 0px;\n background-color: #eaeaeb;\n margin-top:3%;\n outline: none;\n }\n #emailText{\n width: 80%;\n text-align: center;\n margin-left: 11%;\n margin-top: 8%;\n line-height: 1.29;\n font-size: 17px;\n }\n .emailFooter{\n pointer-events: auto;\n display: flex;\n justify-content: flex-end;\n flex-direction: row;\n }\n #skipText{\n color: #908f8f;\n cursor: pointer;\n font-size: 13px;\n margin-top: 6%;\n margin-right: 4%;\n letter-spacing: normal;\n\n }\n #skipText:hover{\n color: #666666;\n }",{insertAt:"top"});class qn extends un{constructor(n){super(),sn(this,n,An,Hn,a,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function In(n){const t=n-1;return t*t*t+1}function Nn(n,{delay:t=0,duration:e=400,easing:o=In,x:i=0,y:r=0,opacity:l=0}={}){const c=getComputedStyle(n),a=+c.opacity,s="none"===c.transform?"":c.transform,u=a*(1-l);return{delay:t,duration:e,easing:o,css:(n,t)=>`\n\t\t\ttransform: ${s} translate(${(1-n)*i}px, ${(1-n)*r}px);\n\t\t\topacity: ${a-u*t}`}}function Rn(n){let t,e,o,i,r,l,c,a,s,u;function d(t){n[20](t)}let f={};return void 0!==n[1]&&(f.fill=n[1]),l=new pn({props:f}),A.push((()=>on(l,"fill",d))),{c(){t=b("div"),e=b("div"),o=k(n[2]),i=C(),r=b("div"),rn(l.$$.fragment),B(e,"id","feedbackTxt"),B(r,"id","mainIcon"),B(t,"class","widget")},m(c,d){v(c,t,d),x(t,e),x(e,o),x(t,i),x(t,r),ln(l,r,null),a=!0,s||(u=T(t,"click",n[10]),s=!0)},p(n,t){(!a||4&t)&&M(o,n[2]);const e={};!c&&2&t&&(c=!0,e.fill=n[1],F((()=>c=!1))),l.$set(e)},i(n){a||(nn(l.$$.fragment,n),a=!0)},o(n){tn(l.$$.fragment,n),a=!1},d(n){n&&y(t),cn(l),s=!1,u()}}}function jn(n){let o,i,r,l,a,s,u,f,p;function m(t){n[21](t)}let h={closeHandler:n[8]};return void 0!==n[0]&&(h.feedbackData=n[0]),l=new qn({props:h}),A.push((()=>on(l,"feedbackData",m))),{c(){o=b("div"),i=b("div"),i.innerHTML='<p id="closeIcon">X</p>',r=C(),rn(l.$$.fragment),B(i,"class","closeCont"),B(o,"class","cont")},m(t,e){v(t,o,e),x(o,i),x(o,r),ln(l,o,null),u=!0,f||(p=T(i,"click",n[11]),f=!0)},p(t,e){n=t;const o={};!a&&1&e&&(a=!0,o.feedbackData=n[0],F((()=>a=!1))),l.$set(o)},i(i){u||(nn(l.$$.fragment,i),s||j((()=>{s=function(n,o,i){let r,l,a=o(n,i),s=!1,u=0;function f(){r&&L(n,r)}function p(){const{delay:o=0,duration:i=300,easing:c=e,tick:p=t,css:m}=a||en;m&&(r=S(n,0,1,i,o,c,m,u++)),p(0,1);const x=d()+o,h=x+i;l&&l.abort(),s=!0,j((()=>J(n,!0,"start"))),l=g((t=>{if(s){if(t>=h)return p(1,0),J(n,!0,"end"),f(),s=!1;if(t>=x){const n=c((t-x)/i);p(n,1-n)}}return s}))}let m=!1;return{start(){m||(m=!0,L(n),c(a)?(a=a(),G().then(p)):p())},invalidate(){m=!1},end(){s&&(f(),s=!1)}}}(o,Nn,{x:n[6],duration:500}),s.start()})),u=!0)},o(n){tn(l.$$.fragment,n),u=!1},d(n){n&&y(o),cn(l),f=!1,p()}}}function Fn(n){let o,i,r,a,s,u,f,p,m,h=n[0].wgThanksMsg+"";return{c(){o=b("div"),i=b("div"),i.innerHTML='<p id="closeIcon">X</p>',r=C(),a=b("div"),s=k(h),B(i,"class","closeCont"),z(a,"width","61%"),z(a,"text-align","center"),z(a,"margin-top","7%"),z(a,"margin-left","20%"),B(o,"class","thanksMessageCont")},m(t,e){v(t,o,e),x(o,i),x(o,r),x(o,a),x(a,s),f=!0,p||(m=T(i,"click",n[9]),p=!0)},p(t,e){n=t,(!f||1&e)&&h!==(h=n[0].wgThanksMsg+"")&&M(s,h)},i(n){f||(u&&u.end(1),f=!0)},o(i){u=function(n,o,i){let r,a=o(n,i),s=!0;const u=U;function f(){const{delay:o=0,duration:i=300,easing:c=e,tick:f=t,css:p}=a||en;p&&(r=S(n,1,0,i,o,c,p));const m=d()+o,x=m+i;j((()=>J(n,!1,"start"))),g((t=>{if(s){if(t>=x)return f(0,1),J(n,!1,"end"),--u.r||l(u.c),!1;if(t>=m){const n=c((t-m)/i);f(1-n,n)}}return s}))}return u.r+=1,c(a)?G().then((()=>{a=a(),f()})):f(),{end(t){t&&a.tick&&a.tick(1,0),s&&(r&&L(n,r),s=!1)}}}(o,Nn,{x:n[7],duration:300}),f=!1},d(n){n&&y(o),n&&u&&u.end(),p=!1,m()}}}function On(n){let t,e,o,i,r=n[4]&&Rn(n),l=n[3]&&jn(n),c=n[5]&&Fn(n);return{c(){t=b("container"),r&&r.c(),e=C(),l&&l.c(),o=C(),c&&c.c()},m(n,a){v(n,t,a),r&&r.m(t,null),x(t,e),l&&l.m(t,null),x(t,o),c&&c.m(t,null),i=!0},p(n,[i]){n[4]?r?(r.p(n,i),16&i&&nn(r,1)):(r=Rn(n),r.c(),nn(r,1),r.m(t,e)):r&&(Y(),tn(r,1,1,(()=>{r=null})),Z()),n[3]?l?(l.p(n,i),8&i&&nn(l,1)):(l=jn(n),l.c(),nn(l,1),l.m(t,o)):l&&(Y(),tn(l,1,1,(()=>{l=null})),Z()),n[5]?c?(c.p(n,i),32&i&&nn(c,1)):(c=Fn(n),c.c(),nn(c,1),c.m(t,null)):c&&(Y(),tn(c,1,1,(()=>{c=null})),Z())},i(n){i||(nn(r),nn(l),nn(c),i=!0)},o(n){tn(r),tn(l),tn(c),i=!1},d(n){n&&y(t),r&&r.d(),l&&l.d(),c&&c.d()}}}function Qn(n,t,e){let o,{feedback:i}=t;console.log(i);let r="",l="",c="Feedback";c="en"==i.wgLanguage?"feedback":"ar"==i.wgLanguage?"رأي":"Rétroaction",!0===i.wgAlternateColor?(r="white",l="white"):(r="black",l="black");let a="",s="",u=0,d=0,f=0,p=0,m=!1,g=!0,x=!1,h=0,$=0;0==Number(i.wgPosition)&&(a="center",s="row-reverse",u=5,d=0,f=30,p=0,h=-100,$=20),1==Number(i.wgPosition)&&(a="center",s="row",u=0,d=5,f=0,p=30,h=100,$=-20),2==Number(i.wgPosition)&&(a="flex-end",s="row-reverse",u=5,f=30,p=0,h=-100,$=20),3==Number(i.wgPosition)&&(a="flex-end",s="row",u=0,d=5,f=0,p=30,h=100,$=-20);const v=()=>{e(3,m=!m),e(5,x=!x)};return n.$$set=n=>{"feedback"in n&&e(0,i=n.feedback)},n.$$.update=()=>{1&n.$$.dirty&&e(19,o=i.wgAccentColor),524288&n.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",o),4096&n.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",r),8192&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",a),16384&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",s),32768&n.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",u+"px"),65536&n.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",d+"px"),131072&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",f+"px"),262144&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",p+"px")},[i,l,c,m,g,x,h,$,()=>v(),()=>{e(5,x=!x),setTimeout((function(){e(4,g=!g)}),350)},()=>{e(3,m=!m),e(4,g=!g)},()=>{e(3,m=!m),setTimeout((function(){e(4,g=!g)}),350)},r,a,s,u,d,f,p,o,function(n){l=n,e(1,l)},function(n){i=n,e(0,i)}]}hn("container{\n width: 100%;\n display: flex;\n flex-direction: var(--wgPositionVertical);\n position: fixed;\n top: 0; right: 0; bottom: 0; left: 0;\n\theight: 100%;\n pointer-events: none;\n align-items: var(--wgPositionHorizintal);\n padding: 0;\n z-index: 100000;\n }\n .widget {\n pointer-events: auto;\n background-color: var(--widgetColor);\n width: 34px;\n height: 112px;\n border-top-left-radius:var(--widgetLeftSideBorder) ;\n border-bottom-left-radius: var(--widgetLeftSideBorder);\n border-top-right-radius: var(--widgetRightSideBorder) ;\n border-bottom-right-radius: var(--widgetRightSideBorder);\n box-shadow: 0.2px 0.2px 0.2px rgb(133, 130, 130);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-evenly;\n cursor: pointer;\n margin-top: 5px;\n }\n #mainIcon {\n width: 60%;\n margin-left: 4%;\n cursor: pointer;\n }\n #feedbackTxt {\n color: var(--widgetTextColor);\n font-size: 13px;\n writing-mode: vertical-lr;\n transform: rotate(180deg);\n cursor: pointer;\n }\n .widget:hover {\n width: 35px;\n -webkit-box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);\n box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);\n }\n .cont {\n pointer-events: auto;\n width: 320px;\n height: fit-content;\n background-color: rgb(255, 255, 255);\n \tmargin-right: var(--widgetMarginRight);\n margin-left: var(--widgetMarginLeft);\n\t-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px; \n\tbox-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;\n }\n .thanksMessageCont{\n pointer-events: auto;\n width: 320px;\n height: 104px;\n background-color: rgb(255, 255, 255);\n \tmargin-right: var(--widgetMarginRight);\n margin-left: var(--widgetMarginLeft);\n\t-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px; \n\tbox-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;\n }\n #closeIcon{\n\t font-size: 16px;\n\t color: #ffff;\n\t font-weight: 600;\n\t font-family: system-ui;\n\tcursor: pointer;\n\t \n }\n .closeCont{\n pointer-events: auto;\n\t background-color: #4d5167;\n\t width: 27px;\n height: 27px;\n\tborder-radius: 50%;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tmargin-top: -15px;\n margin-left: 85%;\n\tcursor: pointer;\n\t}\n\n \n \n \n\n @media (min-width: 640px) {\n body {\n max-width: none;\n }\n }",{insertAt:"top"});class Vn extends un{constructor(n){super(),sn(this,n,Qn,On,a,{feedback:0})}}return n.feedbackCreator=function(n){new Vn({target:document.body,props:{feedback:n}})},Object.defineProperty(n,"__esModule",{value:!0}),n}({});
2
2
  //# sourceMappingURL=index.js.map