@fullsession.io/fs-feedback-widget 1.3.2 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- function n(){}const t=n=>n;function e(n,t){for(const e in t)n[e]=t[e];return n}function o(n){return n()}function i(){return Object.create(null)}function r(n){n.forEach(o)}function l(n){return"function"==typeof n}function c(n,t){return n!=n?t==t:n!==t||n&&"object"==typeof n||"function"==typeof n}function a(n){const t={};for(const e in n)"$"!==e[0]&&(t[e]=n[e]);return t}const s="undefined"!=typeof window;let u=s?()=>window.performance.now():()=>Date.now(),d=s?n=>requestAnimationFrame(n):n;const f=new Set;function p(n){f.forEach((t=>{t.c(n)||(f.delete(t),t.f())})),0!==f.size&&d(p)}function m(n){let t;return 0===f.size&&d(p),{promise:new Promise((e=>{f.add(t={c:n,f:e})})),abort(){f.delete(t)}}}function g(n,t){n.appendChild(t)}function x(n){if(!n)return document;const t=n.getRootNode?n.getRootNode():n.ownerDocument;return t&&t.host?t:n.ownerDocument}function h(n){const t=y("style");return function(n,t){g(n.head||n,t)}(x(n),t),t.sheet}function $(n,t,e){n.insertBefore(t,e||null)}function v(n){n.parentNode.removeChild(n)}function y(n){return document.createElement(n)}function b(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function w(n){return document.createTextNode(n)}function k(){return w(" ")}function C(n,t,e,o){return n.addEventListener(t,e,o),()=>n.removeEventListener(t,e,o)}function T(n,t,e){null==e?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function B(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 M=new Map;let E,D=0;function _(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=x(n),{stylesheet:p,rules:m}=M.get(f)||function(n,t){const e={stylesheet:h(t),rules:{}};return M.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`,D+=1,d}function S(n,t){const e=(n.style.animation||"").split(", "),o=e.filter(t?n=>n.indexOf(t)<0:n=>-1===n.indexOf("__svelte")),i=e.length-o.length;i&&(n.style.animation=o.join(", "),D-=i,D||d((()=>{D||(M.forEach((n=>{const{stylesheet:t}=n;let e=t.cssRules.length;for(;e--;)t.deleteRule(e);n.rules={}})),M.clear())})))}function L(n){E=n}const P=[],H=[],A=[],I=[],q=Promise.resolve();let N=!1;function R(n){A.push(n)}function j(n){I.push(n)}const F=new Set;let O,Q=0;function V(){const n=E;do{for(;Q<P.length;){const n=P[Q];Q++,L(n),X(n.$$)}for(L(null),P.length=0,Q=0;H.length;)H.pop()();for(let n=0;n<A.length;n+=1){const t=A[n];F.has(t)||(F.add(t),t())}A.length=0}while(P.length);for(;I.length;)I.pop()();N=!1,F.clear(),L(n)}function X(n){if(null!==n.fragment){n.update(),r(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(R)}}function G(){return O||(O=Promise.resolve(),O.then((()=>{O=null}))),O}function J(n,t,e){n.dispatchEvent(function(n,t,e=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(n,e,!1,t),o}(`${t?"intro":"outro"}${e}`))}const K=new Set;let U;function W(){U={r:0,c:[],p:U}}function Y(){U.r||r(U.c),U=U.p}function Z(n,t){n&&n.i&&(K.delete(n),n.i(t))}function nn(n,t,e,o){if(n&&n.o){if(K.has(n))return;K.add(n),U.c.push((()=>{K.delete(n),o&&(e&&n.d(1),o())})),n.o(t)}}const tn={duration:0};function en(n,t,e){const o=n.$$.props[t];void 0!==o&&(n.$$.bound[o]=e,e(n.$$.ctx[o]))}function on(n){n&&n.c()}function rn(n,t,e,i){const{fragment:c,on_mount:a,on_destroy:s,after_update:u}=n.$$;c&&c.m(t,e),i||R((()=>{const t=a.map(o).filter(l);s?s.push(...t):r(t),n.$$.on_mount=[]})),u.forEach(R)}function ln(n,t){const e=n.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function cn(n,t){-1===n.$$.dirty[0]&&(P.push(n),N||(N=!0,q.then(V)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function an(t,e,o,l,c,a,s,u=[-1]){const d=E;L(t);const f=t.$$={fragment:null,ctx:null,props:a,update:n,not_equal:c,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};s&&s(f.root);let p=!1;if(f.ctx=o?o(t,e.props||{},((n,e,...o)=>{const i=o.length?o[0]:e;return f.ctx&&c(f.ctx[n],f.ctx[n]=i)&&(!f.skip_bound&&f.bound[n]&&f.bound[n](i),p&&cn(t,n)),e})):[],f.update(),p=!0,r(f.before_update),f.fragment=!!l&&l(f.ctx),e.target){if(e.hydrate){const n=function(n){return Array.from(n.childNodes)}(e.target);f.fragment&&f.fragment.l(n),n.forEach(v)}else f.fragment&&f.fragment.c();e.intro&&Z(t.$$.fragment),rn(t,e.target,e.anchor,e.customElement),V()}L(d)}class sn{$destroy(){ln(this,1),this.$destroy=n}$on(n,t){const e=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return e.push(t),()=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}$set(n){var t;this.$$set&&(t=n,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function un(t){let e,o,i,r,l,c,a,s,u,d,f,p,m,x,h,y,w,k,C;return{c(){e=b("svg"),o=b("g"),i=b("g"),r=b("path"),l=b("g"),c=b("g"),a=b("g"),s=b("g"),u=b("g"),d=b("g"),f=b("g"),p=b("g"),m=b("g"),x=b("g"),h=b("g"),y=b("g"),w=b("g"),k=b("g"),C=b("g"),T(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"),T(e,"fill",t[0]),T(e,"version","1.1"),T(e,"id","Layer_1"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),T(e,"x","0px"),T(e,"y","0px"),T(e,"viewBox","0 0 458 458"),z(e,"enable-background","new 0 0 458 458"),T(e,"xml:space","preserve")},m(n,t){$(n,e,t),g(e,o),g(o,i),g(i,r),g(e,l),g(e,c),g(e,a),g(e,s),g(e,u),g(e,d),g(e,f),g(e,p),g(e,m),g(e,x),g(e,h),g(e,y),g(e,w),g(e,k),g(e,C)},p(n,[t]){1&t&&T(e,"fill",n[0])},i:n,o:n,d(n){n&&v(e)}}}function dn(n,t,e){let{fill:o=""}=t;return n.$$set=n=>{"fill"in n&&e(0,o=n.fill)},[o]}class fn extends sn{constructor(n){super(),an(this,n,dn,un,c,{fill:0})}}function pn(t){let e,o,i=t[3].svg+"";return{c(){e=b("svg"),T(e,"class",o=t[4].class),T(e,"focusable",t[0]),T(e,"width",t[1]),T(e,"height",t[2]),T(e,"viewBox","0 0 "+t[3].box+" "+(t[3].box-1))},m(n,t){$(n,e,t),e.innerHTML=i},p(n,[t]){16&t&&o!==(o=n[4].class)&&T(e,"class",o),1&t&&T(e,"focusable",n[0]),2&t&&T(e,"width",n[1]),4&t&&T(e,"height",n[2])},i:n,o:n,d(n){n&&v(e)}}}function mn(n,t,o){let{name:i}=t,{focusable:r=!1}=t,{width:l="40px"}=t,{height:c="40px"}=t,s=[{box:50,name:"love",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="#EF7C54" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLove",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"like",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="#FDC537" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLike",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"neutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="#F59F45" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedNeutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"dislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"unSelectedDislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"hate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'},{box:50,name:"unSelectedHate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'}].find((n=>n.name===i));return n.$$set=n=>{o(4,t=e(e({},t),a(n))),"name"in n&&o(5,i=n.name),"focusable"in n&&o(0,r=n.focusable),"width"in n&&o(1,l=n.width),"height"in n&&o(2,c=n.height)},t=a(t),[r,l,c,s,t,i]}class gn extends sn{constructor(n){super(),an(this,n,mn,pn,c,{name:5,focusable:0,width:1,height:2})}}function xn(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 hn(t){let e,o,i,l,c,a,s,u,d,f,p,m=t[0].wgEmailReqMsg+"";function x(n,t){return 0==n[8]?bn:1==n[8]?yn:void 0}let h=x(t),b=h&&h(t);return{c(){e=y("div"),o=y("div"),i=w(m),l=k(),c=y("div"),c.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com"/>',a=k(),s=y("div"),u=y("p"),u.innerHTML="<u>Skip</u>",d=k(),b&&b.c(),T(o,"id","emailText"),T(c,"id","emailInputCont"),T(u,"id","skipText"),T(s,"class","emailFooter"),T(e,"class","emailContainer")},m(n,r){$(n,e,r),g(e,o),g(o,i),g(e,l),g(e,c),g(e,a),g(e,s),g(s,u),g(s,d),b&&b.m(s,null),f||(p=[C(c,"click",t[47]),C(u,"click",t[48])],f=!0)},p(n,t){1&t[0]&&m!==(m=n[0].wgEmailReqMsg+"")&&B(i,m),h===(h=x(n))&&b?b.p(n,t):(b&&b.d(1),b=h&&h(n),b&&(b.c(),b.m(s,null)))},i:n,o:n,d(n){n&&v(e),b&&b.d(),f=!1,r(p)}}}function $n(n){let t,e,o,i,l,c,a,s,u,d,f,p,m,x,h,b,w,B,z,M,E,D,_,S,L,P,H,A,I,q,N,R,j,F,O,Q,V,X,G,J,K,U,tn,en,on,rn;const ln=[kn,wn],cn=[];function an(n,t){return n[6]?0:0==n[6]?1:-1}~(l=an(n))&&(c=cn[l]=ln[l](n));const sn=[Tn,Cn],un=[];function dn(n,t){return n[6]?0:0==n[6]?1:-1}~(p=dn(n))&&(m=un[p]=sn[p](n));const fn=[zn,Bn],pn=[];function mn(n,t){return n[6]?0:0==n[6]?1:-1}~(z=mn(n))&&(M=pn[z]=fn[z](n));const gn=[En,Mn],xn=[];function hn(n,t){return n[6]?0:0==n[6]?1:-1}~(P=hn(n))&&(H=xn[P]=gn[P](n));const $n=[_n,Dn],vn=[];function yn(n,t){return n[6]?0:0==n[6]?1:-1}function bn(n,t){return 0==n[8]?Ln:1==n[8]?Sn:void 0}~(j=yn(n))&&(F=vn[j]=$n[j](n));let Pn=bn(n),Hn=Pn&&Pn(n);return{c(){t=y("div"),e=y("div"),o=y("div"),i=y("div"),c&&c.c(),a=k(),s=y("p"),s.textContent="Hate",u=k(),d=y("div"),f=y("div"),m&&m.c(),x=k(),h=y("p"),h.textContent="Dislike",b=k(),w=y("div"),B=y("div"),M&&M.c(),E=k(),D=y("p"),D.textContent="Neutral",_=k(),S=y("div"),L=y("div"),H&&H.c(),A=k(),I=y("p"),I.textContent="Like",q=k(),N=y("div"),R=y("div"),F&&F.c(),O=k(),Q=y("p"),Q.textContent="Love",V=k(),X=y("div"),G=y("div"),J=k(),K=y("textarea"),U=k(),tn=y("div"),Hn&&Hn.c(),T(i,"class","reactionIcon"),T(s,"class","reactionText"),T(s,"id","hateDiv"),T(o,"class","iconTextCont"),T(f,"class","reactionIcon"),T(h,"class","reactionText"),T(h,"id","dislikeDiv"),T(d,"class","iconTextCont"),T(B,"class","reactionIcon"),T(D,"class","reactionText"),T(D,"id","neutralDiv"),T(w,"class","iconTextCont"),T(L,"class","reactionIcon"),T(I,"class","reactionText"),T(I,"id","likeDiv"),T(S,"class","iconTextCont"),T(R,"class","reactionIcon"),T(Q,"class","reactionText"),T(Q,"id","loveDiv"),T(N,"class","iconTextCont"),T(e,"class","icons-second"),T(G,"class","pointerDiv"),T(G,"id","pointer"),T(K,"class","textArea"),T(K,"placeholder","Tell us your experience..."),T(X,"class","textAreaCont"),T(tn,"class","footer"),T(t,"class","commentContainer")},m(r,c){$(r,t,c),g(t,e),g(e,o),g(o,i),~l&&cn[l].m(i,null),g(o,a),g(o,s),g(e,u),g(e,d),g(d,f),~p&&un[p].m(f,null),g(d,x),g(d,h),g(e,b),g(e,w),g(w,B),~z&&pn[z].m(B,null),g(w,E),g(w,D),g(e,_),g(e,S),g(S,L),~P&&xn[P].m(L,null),g(S,A),g(S,I),g(e,q),g(e,N),g(N,R),~j&&vn[j].m(R,null),g(N,O),g(N,Q),g(t,V),g(t,X),g(X,G),g(X,J),g(X,K),g(t,U),g(t,tn),Hn&&Hn.m(tn,null),en=!0,on||(rn=[C(o,"click",n[32]),C(d,"click",n[35]),C(w,"click",n[38]),C(S,"click",n[41]),C(R,"click",n[44]),C(K,"click",n[45])],on=!0)},p(n,t){let e=l;l=an(n),l===e?~l&&cn[l].p(n,t):(c&&(W(),nn(cn[e],1,1,(()=>{cn[e]=null})),Y()),~l?(c=cn[l],c?c.p(n,t):(c=cn[l]=ln[l](n),c.c()),Z(c,1),c.m(i,null)):c=null);let o=p;p=dn(n),p===o?~p&&un[p].p(n,t):(m&&(W(),nn(un[o],1,1,(()=>{un[o]=null})),Y()),~p?(m=un[p],m?m.p(n,t):(m=un[p]=sn[p](n),m.c()),Z(m,1),m.m(f,null)):m=null);let r=z;z=mn(n),z===r?~z&&pn[z].p(n,t):(M&&(W(),nn(pn[r],1,1,(()=>{pn[r]=null})),Y()),~z?(M=pn[z],M?M.p(n,t):(M=pn[z]=fn[z](n),M.c()),Z(M,1),M.m(B,null)):M=null);let a=P;P=hn(n),P===a?~P&&xn[P].p(n,t):(H&&(W(),nn(xn[a],1,1,(()=>{xn[a]=null})),Y()),~P?(H=xn[P],H?H.p(n,t):(H=xn[P]=gn[P](n),H.c()),Z(H,1),H.m(L,null)):H=null);let s=j;j=yn(n),j===s?~j&&vn[j].p(n,t):(F&&(W(),nn(vn[s],1,1,(()=>{vn[s]=null})),Y()),~j?(F=vn[j],F?F.p(n,t):(F=vn[j]=$n[j](n),F.c()),Z(F,1),F.m(R,null)):F=null),Pn===(Pn=bn(n))&&Hn?Hn.p(n,t):(Hn&&Hn.d(1),Hn=Pn&&Pn(n),Hn&&(Hn.c(),Hn.m(tn,null)))},i(n){en||(Z(c),Z(m),Z(M),Z(H),Z(F),en=!0)},o(n){nn(c),nn(m),nn(M),nn(H),nn(F),en=!1},d(n){n&&v(t),~l&&cn[l].d(),~p&&un[p].d(),~z&&pn[z].d(),~P&&xn[P].d(),~j&&vn[j].d(),Hn&&Hn.d(),on=!1,r(rn)}}}function vn(n){let t,e,o,i,l,c,a,s,u,d,f,p,m,x,h,b,z,M,E,D,_,S,L,P,A,I,q,N,R,F,O,Q,V,X,G,J,K,U,W,Y,tn,cn,an,sn,un=n[0].wgQuestion+"";function dn(t){n[20](t)}let fn={};function pn(t){n[22](t)}void 0!==n[2][0]&&(fn.name=n[2][0]),s=new gn({props:fn}),H.push((()=>en(s,"name",dn)));let mn={};function xn(t){n[24](t)}void 0!==n[2][1]&&(mn.name=n[2][1]),h=new gn({props:mn}),H.push((()=>en(h,"name",pn)));let hn={};function $n(t){n[26](t)}void 0!==n[2][2]&&(hn.name=n[2][2]),S=new gn({props:hn}),H.push((()=>en(S,"name",xn)));let vn={};function yn(t){n[28](t)}void 0!==n[2][3]&&(vn.name=n[2][3]),R=new gn({props:vn}),H.push((()=>en(R,"name",$n)));let bn={};return void 0!==n[2][4]&&(bn.name=n[2][4]),J=new gn({props:bn}),H.push((()=>en(J,"name",yn))),{c(){t=y("div"),e=y("div"),o=w(un),i=k(),l=y("div"),c=y("div"),a=y("div"),on(s.$$.fragment),d=k(),f=y("p"),f.textContent="Hate",p=k(),m=y("div"),x=y("div"),on(h.$$.fragment),z=k(),M=y("p"),M.textContent="Dislike",E=k(),D=y("div"),_=y("div"),on(S.$$.fragment),P=k(),A=y("p"),A.textContent="Neutral",I=k(),q=y("div"),N=y("div"),on(R.$$.fragment),O=k(),Q=y("p"),Q.textContent="Like",V=k(),X=y("div"),G=y("div"),on(J.$$.fragment),U=k(),W=y("p"),W.textContent="Love",Y=k(),tn=y("p"),T(e,"id","txt"),T(a,"class","reactionIcon"),T(f,"class","reactionText"),T(c,"class","iconTextCont"),T(x,"class","reactionIcon"),T(M,"class","reactionText"),T(m,"class","iconTextCont"),T(_,"class","reactionIcon"),T(A,"class","reactionText"),T(D,"class","iconTextCont"),T(N,"class","reactionIcon"),T(Q,"class","reactionText"),T(q,"class","iconTextCont"),T(G,"class","reactionIcon"),T(W,"class","reactionText"),T(X,"class","iconTextCont"),T(l,"class","icons"),T(tn,"id","test"),T(t,"class","container")},m(r,u){$(r,t,u),g(t,e),g(e,o),g(t,i),g(t,l),g(l,c),g(c,a),rn(s,a,null),g(c,d),g(c,f),g(l,p),g(l,m),g(m,x),rn(h,x,null),g(m,z),g(m,M),g(l,E),g(l,D),g(D,_),rn(S,_,null),g(D,P),g(D,A),g(l,I),g(l,q),g(q,N),rn(R,N,null),g(q,O),g(q,Q),g(l,V),g(l,X),g(X,G),rn(J,G,null),g(X,U),g(X,W),g(t,Y),g(t,tn),cn=!0,an||(sn=[C(c,"click",n[21]),C(m,"click",n[23]),C(D,"click",n[25]),C(q,"click",n[27]),C(X,"click",n[29])],an=!0)},p(n,t){(!cn||1&t[0])&&un!==(un=n[0].wgQuestion+"")&&B(o,un);const e={};!u&&4&t[0]&&(u=!0,e.name=n[2][0],j((()=>u=!1))),s.$set(e);const i={};!b&&4&t[0]&&(b=!0,i.name=n[2][1],j((()=>b=!1))),h.$set(i);const r={};!L&&4&t[0]&&(L=!0,r.name=n[2][2],j((()=>L=!1))),S.$set(r);const l={};!F&&4&t[0]&&(F=!0,l.name=n[2][3],j((()=>F=!1))),R.$set(l);const c={};!K&&4&t[0]&&(K=!0,c.name=n[2][4],j((()=>K=!1))),J.$set(c)},i(n){cn||(Z(s.$$.fragment,n),Z(h.$$.fragment,n),Z(S.$$.fragment,n),Z(R.$$.fragment,n),Z(J.$$.fragment,n),cn=!0)},o(n){nn(s.$$.fragment,n),nn(h.$$.fragment,n),nn(S.$$.fragment,n),nn(R.$$.fragment,n),nn(J.$$.fragment,n),cn=!1},d(n){n&&v(t),ln(s),ln(h),ln(S),ln(R),ln(J),an=!1,r(sn)}}}function yn(t){let e,o,i;return{c(){e=y("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',T(e,"class","sendButtonContCommentComp")},m(n,r){$(n,e,r),o||(i=C(e,"click",t[49]),o=!0)},p:n,d(n){n&&v(e),o=!1,i()}}}function bn(t){let e;return{c(){e=y("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',T(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){$(n,e,t)},p:n,d(n){n&&v(e)}}}function wn(n){let t,e,o;function i(t){n[31](t)}let r={};return void 0!==n[2][0]&&(r.name=n[2][0]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][0],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function kn(n){let t,e,o;function i(t){n[30](t)}let r={};return void 0!==n[2][0]&&(r.name=n[2][0]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][0],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function Cn(n){let t,e,o;function i(t){n[34](t)}let r={};return void 0!==n[2][1]&&(r.name=n[2][1]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][1],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function Tn(n){let t,e,o;function i(t){n[33](t)}let r={};return void 0!==n[2][1]&&(r.name=n[2][1]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][1],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function Bn(n){let t,e,o;function i(t){n[37](t)}let r={};return void 0!==n[2][2]&&(r.name=n[2][2]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][2],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function zn(n){let t,e,o;function i(t){n[36](t)}let r={};return void 0!==n[2][2]&&(r.name=n[2][2]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][2],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function Mn(n){let t,e,o;function i(t){n[40](t)}let r={};return void 0!==n[2][3]&&(r.name=n[2][3]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][3],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function En(n){let t,e,o;function i(t){n[39](t)}let r={};return void 0!==n[2][3]&&(r.name=n[2][3]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][3],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function Dn(n){let t,e,o;function i(t){n[43](t)}let r={};return void 0!==n[2][4]&&(r.name=n[2][4]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][4],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function _n(n){let t,e,o;function i(t){n[42](t)}let r={};return void 0!==n[2][4]&&(r.name=n[2][4]),t=new gn({props:r}),H.push((()=>en(t,"name",i))),{c(){on(t.$$.fragment)},m(n,e){rn(t,n,e),o=!0},p(n,o){const i={};!e&&4&o[0]&&(e=!0,i.name=n[2][4],j((()=>e=!1))),t.$set(i)},i(n){o||(Z(t.$$.fragment,n),o=!0)},o(n){nn(t.$$.fragment,n),o=!1},d(n){ln(t,n)}}}function Sn(t){let e,o,i;return{c(){e=y("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',T(e,"class","sendButtonContCommentComp")},m(n,r){$(n,e,r),o||(i=C(e,"click",t[46]),o=!0)},p:n,d(n){n&&v(e),o=!1,i()}}}function Ln(t){let e;return{c(){e=y("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',T(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){$(n,e,t)},p:n,d(n){n&&v(e)}}}function Pn(n){let t,e,o,i;const r=[vn,$n,hn],l=[];function c(n,t){return 1===n[7]?0:2===n[7]?1:3===n[7]?2:-1}return~(t=c(n))&&(e=l[t]=r[t](n)),{c(){e&&e.c(),o=w("")},m(n,e){~t&&l[t].m(n,e),$(n,o,e),i=!0},p(n,i){let a=t;t=c(n),t===a?~t&&l[t].p(n,i):(e&&(W(),nn(l[a],1,1,(()=>{l[a]=null})),Y()),~t?(e=l[t],e?e.p(n,i):(e=l[t]=r[t](n),e.c()),Z(e,1),e.m(o.parentNode,o)):e=null)},i(n){i||(Z(e),i=!0)},o(n){nn(e),i=!1},d(n){~t&&l[t].d(n),n&&v(o)}}}function Hn(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="",h="",$="",v="test",y=!0,b=0,{closeHandler:w=((n,t,e)=>{})}=t;const k=()=>{let n=document.querySelector(".textArea");f=setInterval((()=>{console.log(n.value),""===n.value?e(8,d=!1):e(8,d=!0)}),500)},C=()=>{let n=document.querySelector("#EmailTextArea");setInterval((()=>{console.log(n.value),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(n.value)&&""!==n.value?e(8,d=!0):e(8,d=!1),e(5,$=""),e(5,$=document.getElementById("EmailTextArea").value)}),500)},T=(n,t,u)=>{let d=v;var f;v=u,console.log(u),e(7,o=n),e(3,x=String(t)),e(2,g=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),b>0&&("hate"==(f=d)?e(18,r="none"):"dislike"==f?e(17,l="none"):"neutral"==f?e(16,c="none"):"like"==f?e(15,a="none"):"love"==f&&e(13,s="none")),b++,1==t?(e(14,i=11),e(18,r="block"),e(2,g[0]=m[0],g),e(6,y=!y)):2==t?(e(2,g[1]=m[1],g),e(14,i=30),e(17,l="block"),e(6,y=!y)):3==t?(e(2,g[2]=m[2],g),e(14,i=49),e(16,c="block"),e(6,y=!y)):4==t?(e(2,g[3]=m[3],g),e(14,i=68),e(15,a="block"),e(6,y=!y)):5==t&&(e(2,g[4]=m[4],g),e(14,i=87),e(13,s="block"),e(6,y=!y))},B=n=>{clearInterval(f),e(8,d=!1),e(7,o=n),e(4,h=document.getElementsByClassName("textArea")[0].value)};return n.$$set=n=>{"feedbackData"in n&&e(0,p=n.feedbackData),"closeHandler"in n&&e(1,w=n.closeHandler)},n.$$.update=()=>{1&n.$$.dirty[0]&&e(19,u=p.wgAccentColor),16384&n.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",i+"%"),262144&n.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",r),131072&n.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",l),65536&n.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",c),32768&n.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",a),8192&n.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",s),524288&n.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},e(7,o=1),e(14,i=10),e(18,r="none"),e(17,l="none"),e(16,c="none"),e(15,a="none"),e(13,s="none"),e(8,d=!1),[p,w,g,x,h,$,y,o,d,k,C,T,B,s,i,a,c,l,r,u,function(t){n.$$.not_equal(g[0],t)&&(g[0]=t,e(2,g))},()=>T(2,1,"hate"),function(t){n.$$.not_equal(g[1],t)&&(g[1]=t,e(2,g))},()=>T(2,2,"dislike"),function(t){n.$$.not_equal(g[2],t)&&(g[2]=t,e(2,g))},()=>T(2,3,"neutral"),function(t){n.$$.not_equal(g[3],t)&&(g[3]=t,e(2,g))},()=>T(2,4,"like"),function(t){n.$$.not_equal(g[4],t)&&(g[4]=t,e(2,g))},()=>T(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))},()=>T(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))},()=>T(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))},()=>T(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))},()=>T(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))},()=>T(2,5,"love"),()=>k(),()=>B(3),()=>C(),()=>w($,h,x),()=>w($,h,x)]}xn(".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: 12px;\n display: none;\n margin-top: 9.5%;\n \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: 7px;\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: 7px;\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 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 An extends sn{constructor(n){super(),an(this,n,Hn,Pn,c,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function In(n){const t=n-1;return t*t*t+1}function qn(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 Nn(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 fn({props:f}),H.push((()=>en(l,"fill",d))),{c(){t=y("div"),e=y("div"),o=w(n[2]),i=k(),r=y("div"),on(l.$$.fragment),T(e,"id","feedbackTxt"),T(r,"id","mainIcon"),T(t,"class","widget")},m(c,d){$(c,t,d),g(t,e),g(e,o),g(t,i),g(t,r),rn(l,r,null),a=!0,s||(u=C(t,"click",n[10]),s=!0)},p(n,t){(!a||4&t)&&B(o,n[2]);const e={};!c&&2&t&&(c=!0,e.fill=n[1],j((()=>c=!1))),l.$set(e)},i(n){a||(Z(l.$$.fragment,n),a=!0)},o(n){nn(l.$$.fragment,n),a=!1},d(n){n&&v(t),ln(l),s=!1,u()}}}function Rn(e){let o,i,r,c,a,s,d,f,p;function x(n){e[21](n)}let h={closeHandler:e[8]};return void 0!==e[0]&&(h.feedbackData=e[0]),c=new An({props:h}),H.push((()=>en(c,"feedbackData",x))),{c(){o=y("div"),i=y("div"),i.innerHTML='<p id="closeIcon">X</p>',r=k(),on(c.$$.fragment),T(i,"class","closeCont"),T(o,"class","cont")},m(n,t){$(n,o,t),g(o,i),g(o,r),rn(c,o,null),d=!0,f||(p=C(i,"click",e[11]),f=!0)},p(n,t){e=n;const o={};!a&&1&t&&(a=!0,o.feedbackData=e[0],j((()=>a=!1))),c.$set(o)},i(i){d||(Z(c.$$.fragment,i),s||R((()=>{s=function(e,o,i){let r,c,a=o(e,i),s=!1,d=0;function f(){r&&S(e,r)}function p(){const{delay:o=0,duration:i=300,easing:l=t,tick:p=n,css:g}=a||tn;g&&(r=_(e,0,1,i,o,l,g,d++)),p(0,1);const x=u()+o,h=x+i;c&&c.abort(),s=!0,R((()=>J(e,!0,"start"))),c=m((n=>{if(s){if(n>=h)return p(1,0),J(e,!0,"end"),f(),s=!1;if(n>=x){const t=l((n-x)/i);p(t,1-t)}}return s}))}let g=!1;return{start(){g||(g=!0,S(e),l(a)?(a=a(),G().then(p)):p())},invalidate(){g=!1},end(){s&&(f(),s=!1)}}}(o,qn,{x:e[6],duration:500}),s.start()})),d=!0)},o(n){nn(c.$$.fragment,n),d=!1},d(n){n&&v(o),ln(c),f=!1,p()}}}function jn(e){let o,i,c,a,s,d,f,p,x,h=e[0].wgThanksMsg+"";return{c(){o=y("div"),i=y("div"),i.innerHTML='<p id="closeIcon">X</p>',c=k(),a=y("div"),s=w(h),T(i,"class","closeCont"),z(a,"width","61%"),z(a,"text-align","center"),z(a,"margin-top","7%"),z(a,"margin-left","20%"),T(o,"class","thanksMessageCont")},m(n,t){$(n,o,t),g(o,i),g(o,c),g(o,a),g(a,s),f=!0,p||(x=C(i,"click",e[9]),p=!0)},p(n,t){e=n,(!f||1&t)&&h!==(h=e[0].wgThanksMsg+"")&&B(s,h)},i(n){f||(d&&d.end(1),f=!0)},o(i){d=function(e,o,i){let c,a=o(e,i),s=!0;const d=U;function f(){const{delay:o=0,duration:i=300,easing:l=t,tick:f=n,css:p}=a||tn;p&&(c=_(e,1,0,i,o,l,p));const g=u()+o,x=g+i;R((()=>J(e,!1,"start"))),m((n=>{if(s){if(n>=x)return f(0,1),J(e,!1,"end"),--d.r||r(d.c),!1;if(n>=g){const t=l((n-g)/i);f(1-t,t)}}return s}))}return d.r+=1,l(a)?G().then((()=>{a=a(),f()})):f(),{end(n){n&&a.tick&&a.tick(1,0),s&&(c&&S(e,c),s=!1)}}}(o,qn,{x:e[7],duration:300}),f=!1},d(n){n&&v(o),n&&d&&d.end(),p=!1,x()}}}function Fn(n){let t,e,o,i,r=n[4]&&Nn(n),l=n[3]&&Rn(n),c=n[5]&&jn(n);return{c(){t=y("container"),r&&r.c(),e=k(),l&&l.c(),o=k(),c&&c.c()},m(n,a){$(n,t,a),r&&r.m(t,null),g(t,e),l&&l.m(t,null),g(t,o),c&&c.m(t,null),i=!0},p(n,[i]){n[4]?r?(r.p(n,i),16&i&&Z(r,1)):(r=Nn(n),r.c(),Z(r,1),r.m(t,e)):r&&(W(),nn(r,1,1,(()=>{r=null})),Y()),n[3]?l?(l.p(n,i),8&i&&Z(l,1)):(l=Rn(n),l.c(),Z(l,1),l.m(t,o)):l&&(W(),nn(l,1,1,(()=>{l=null})),Y()),n[5]?c?(c.p(n,i),32&i&&Z(c,1)):(c=jn(n),c.c(),Z(c,1),c.m(t,null)):c&&(W(),nn(c,1,1,(()=>{c=null})),Y())},i(n){i||(Z(r),Z(l),Z(c),i=!0)},o(n){nn(r),nn(l),nn(c),i=!1},d(n){n&&v(t),r&&r.d(),l&&l.d(),c&&c.d()}}}function On(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,$,(n,t,e)=>{let o={email:n,comment:t,reaction:e},i=new CustomEvent("fbEvent",{bubbles:!1,detail:o});window.dispatchEvent(i),console.log(o),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)}]}xn("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: 15px;\n writing-mode: vertical-lr;\n transform: rotate(180deg);\n cursor: pointer;\n font-size-adjust: 0.40;\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 Qn extends sn{constructor(n){super(),an(this,n,On,Fn,c,{feedback:0})}}function Vn(n){new Qn({target:document.body,props:{feedback:n}})}export{Vn as feedbackCreator};
1
+ function e(){}const n=e=>e;function t(e,n){for(const t in n)e[t]=n[t];return e}function o(e){return e()}function l(){return Object.create(null)}function i(e){e.forEach(o)}function c(e){return"function"==typeof e}function s(e,n){return e!=e?n==n:e!==n||e&&"object"==typeof e||"function"==typeof e}function r(e){const n={};for(const t in e)"$"!==t[0]&&(n[t]=e[t]);return n}const a="undefined"!=typeof window;let u=a?()=>window.performance.now():()=>Date.now(),f=a?e=>requestAnimationFrame(e):e;const d=new Set;function m(e){d.forEach((n=>{n.c(e)||(d.delete(n),n.f())})),0!==d.size&&f(m)}function g(e){let n;return 0===d.size&&f(m),{promise:new Promise((t=>{d.add(n={c:e,f:t})})),abort(){d.delete(n)}}}function p(e,n){e.appendChild(n)}function $(e){if(!e)return document;const n=e.getRootNode?e.getRootNode():e.ownerDocument;return n&&n.host?n:e.ownerDocument}function h(e){const n=x("style");return function(e,n){p(e.head||e,n)}($(e),n),n.sheet}function y(e,n,t){e.insertBefore(n,t||null)}function v(e){e.parentNode.removeChild(e)}function x(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,n,t,o){return e.addEventListener(n,t,o),()=>e.removeEventListener(n,t,o)}function T(e,n,t){null==t?e.removeAttribute(n):e.getAttribute(n)!==t&&e.setAttribute(n,t)}function E(e,n){n=""+n,e.wholeText!==n&&(e.data=n)}function B(e,n,t,o){null===t?e.style.removeProperty(n):e.style.setProperty(n,t,o?"important":"")}const M=new Map;let _,z=0;function S(e,n,t,o,l,i,c,s=0){const r=16.666/o;let a="{\n";for(let e=0;e<=1;e+=r){const o=n+(t-n)*i(e);a+=100*e+`%{${c(o,1-o)}}\n`}const u=a+`100% {${c(t,1-t)}}\n}`,f=`__svelte_${function(e){let n=5381,t=e.length;for(;t--;)n=(n<<5)-n^e.charCodeAt(t);return n>>>0}(u)}_${s}`,d=$(e),{stylesheet:m,rules:g}=M.get(d)||function(e,n){const t={stylesheet:h(n),rules:{}};return M.set(e,t),t}(d,e);g[f]||(g[f]=!0,m.insertRule(`@keyframes ${f} ${u}`,m.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${f} ${o}ms linear ${l}ms 1 both`,z+=1,f}function R(e,n){const t=(e.style.animation||"").split(", "),o=t.filter(n?e=>e.indexOf(n)<0:e=>-1===e.indexOf("__svelte")),l=t.length-o.length;l&&(e.style.animation=o.join(", "),z-=l,z||f((()=>{z||(M.forEach((e=>{const{stylesheet:n}=e;let t=n.cssRules.length;for(;t--;)n.deleteRule(t);e.rules={}})),M.clear())})))}function D(e){_=e}const H=[],P=[],I=[],A=[],L=Promise.resolve();let q=!1;function N(e){I.push(e)}function F(e){A.push(e)}const O=new Set;let j,U=0;function W(){const e=_;do{for(;U<H.length;){const e=H[U];U++,D(e),Q(e.$$)}for(D(null),H.length=0,U=0;P.length;)P.pop()();for(let e=0;e<I.length;e+=1){const n=I[e];O.has(n)||(O.add(n),n())}I.length=0}while(H.length);for(;A.length;)A.pop()();q=!1,O.clear(),D(e)}function Q(e){if(null!==e.fragment){e.update(),i(e.before_update);const n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(N)}}function V(){return j||(j=Promise.resolve(),j.then((()=>{j=null}))),j}function X(e,n,t){e.dispatchEvent(function(e,n,t=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,!1,n),o}(`${n?"intro":"outro"}${t}`))}const G=new Set;let J;function K(){J={r:0,c:[],p:J}}function Y(){J.r||i(J.c),J=J.p}function Z(e,n){e&&e.i&&(G.delete(e),e.i(n))}function ee(e,n,t,o){if(e&&e.o){if(G.has(e))return;G.add(e),J.c.push((()=>{G.delete(e),o&&(t&&e.d(1),o())})),e.o(n)}}const ne={duration:0};function te(e,n,t){const o=e.$$.props[n];void 0!==o&&(e.$$.bound[o]=t,t(e.$$.ctx[o]))}function oe(e){e&&e.c()}function le(e,n,t,l){const{fragment:s,on_mount:r,on_destroy:a,after_update:u}=e.$$;s&&s.m(n,t),l||N((()=>{const n=r.map(o).filter(c);a?a.push(...n):i(n),e.$$.on_mount=[]})),u.forEach(N)}function ie(e,n){const t=e.$$;null!==t.fragment&&(i(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function ce(e,n){-1===e.$$.dirty[0]&&(H.push(e),q||(q=!0,L.then(W)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function se(n,t,o,c,s,r,a,u=[-1]){const f=_;D(n);const d=n.$$={fragment:null,ctx:null,props:r,update:e,not_equal:s,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(f?f.$$.context:[])),callbacks:l(),dirty:u,skip_bound:!1,root:t.target||f.$$.root};a&&a(d.root);let m=!1;if(d.ctx=o?o(n,t.props||{},((e,t,...o)=>{const l=o.length?o[0]:t;return d.ctx&&s(d.ctx[e],d.ctx[e]=l)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](l),m&&ce(n,e)),t})):[],d.update(),m=!0,i(d.before_update),d.fragment=!!c&&c(d.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);d.fragment&&d.fragment.l(e),e.forEach(v)}else d.fragment&&d.fragment.c();t.intro&&Z(n.$$.fragment),le(n,t.target,t.anchor,t.customElement),W()}D(f)}class re{$destroy(){ie(this,1),this.$destroy=e}$on(e,n){const t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(n),()=>{const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}$set(e){var n;this.$$set&&(n=e,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ae(n){let t,o,l,i,c,s,r,a,u,f,d,m,g,$,h,x,b,k,C;return{c(){t=w("svg"),o=w("g"),l=w("g"),i=w("path"),c=w("g"),s=w("g"),r=w("g"),a=w("g"),u=w("g"),f=w("g"),d=w("g"),m=w("g"),g=w("g"),$=w("g"),h=w("g"),x=w("g"),b=w("g"),k=w("g"),C=w("g"),T(i,"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"),T(t,"fill",n[0]),T(t,"version","1.1"),T(t,"id","Layer_1"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),T(t,"x","0px"),T(t,"y","0px"),T(t,"viewBox","0 0 458 458"),B(t,"enable-background","new 0 0 458 458"),T(t,"xml:space","preserve")},m(e,n){y(e,t,n),p(t,o),p(o,l),p(l,i),p(t,c),p(t,s),p(t,r),p(t,a),p(t,u),p(t,f),p(t,d),p(t,m),p(t,g),p(t,$),p(t,h),p(t,x),p(t,b),p(t,k),p(t,C)},p(e,[n]){1&n&&T(t,"fill",e[0])},i:e,o:e,d(e){e&&v(t)}}}function ue(e,n,t){let{fill:o=""}=n;return e.$$set=e=>{"fill"in e&&t(0,o=e.fill)},[o]}class fe extends re{constructor(e){super(),se(this,e,ue,ae,s,{fill:0})}}function de(n){let t,o,l=n[3].svg+"";return{c(){t=w("svg"),T(t,"class",o=n[4].class),T(t,"focusable",n[0]),T(t,"width",n[1]),T(t,"height",n[2]),T(t,"viewBox","0 0 "+n[3].box+" "+(n[3].box-1))},m(e,n){y(e,t,n),t.innerHTML=l},p(e,[n]){16&n&&o!==(o=e[4].class)&&T(t,"class",o),1&n&&T(t,"focusable",e[0]),2&n&&T(t,"width",e[1]),4&n&&T(t,"height",e[2])},i:e,o:e,d(e){e&&v(t)}}}function me(e,n,o){let{name:l}=n,{focusable:i=!1}=n,{width:c="40px"}=n,{height:s="40px"}=n,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===l));return e.$$set=e=>{o(4,n=t(t({},n),r(e))),"name"in e&&o(5,l=e.name),"focusable"in e&&o(0,i=e.focusable),"width"in e&&o(1,c=e.width),"height"in e&&o(2,s=e.height)},n=r(n),[i,c,s,a,n,l]}class ge extends re{constructor(e){super(),se(this,e,me,de,s,{name:5,focusable:0,width:1,height:2})}}function pe(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}function $e(n){let t,o,l,c,s,r,a,u,f,d,m,g,$=n[0].wgEmailReqMsg+"";function h(e,n){return 0==e[8]?xe:1==e[8]?ve:void 0}let w=h(n),B=w&&w(n);return{c(){t=x("div"),o=x("div"),l=b($),c=k(),s=x("div"),r=x("input"),a=k(),u=x("div"),f=x("p"),f.innerHTML="<u>Skip</u>",d=k(),B&&B.c(),T(o,"id","fsEmailText"),T(r,"type","text"),T(r,"id","fsEmailTextArea"),T(r,"placeholder","email@domain.com"),T(s,"id","fsEmailInputCont"),T(f,"id","fsSkipText"),T(u,"class","fsEmailFooter"),T(t,"class","fsEmailContainer")},m(e,i){y(e,t,i),p(t,o),p(o,l),p(t,c),p(t,s),p(s,r),p(t,a),p(t,u),p(u,f),p(u,d),B&&B.m(u,null),m||(g=[C(r,"keyup",n[49]),C(f,"click",n[50])],m=!0)},p(e,n){1&n[0]&&$!==($=e[0].wgEmailReqMsg+"")&&E(l,$),w===(w=h(e))&&B?B.p(e,n):(B&&B.d(1),B=w&&w(e),B&&(B.c(),B.m(u,null)))},i:e,o:e,d(e){e&&v(t),B&&B.d(),m=!1,i(g)}}}function he(e){let n,t,o,l,c,s,r,a,u,f,d,m,g,$,h,w,b,E,B,M,_,z,S,R,D,H,P,I,A,L,q,N,F,O,j,U,W,Q,V,X,G,J,ne,te,oe,le;const ie=[be,we],ce=[];function se(e,n){return e[6]?0:0==e[6]?1:-1}~(c=se(e))&&(s=ce[c]=ie[c](e));const re=[Ce,ke],ae=[];function ue(e,n){return e[6]?0:0==e[6]?1:-1}~(m=ue(e))&&(g=ae[m]=re[m](e));const fe=[Ee,Te],de=[];function me(e,n){return e[6]?0:0==e[6]?1:-1}~(B=me(e))&&(M=de[B]=fe[B](e));const ge=[Me,Be],pe=[];function $e(e,n){return e[6]?0:0==e[6]?1:-1}~(H=$e(e))&&(P=pe[H]=ge[H](e));const he=[ze,_e],ye=[];function ve(e,n){return e[6]?0:0==e[6]?1:-1}function xe(e,n){return 0==e[8]?Re:1==e[8]?Se:void 0}~(F=ve(e))&&(O=ye[F]=he[F](e));let De=xe(e),He=De&&De(e);return{c(){n=x("div"),t=x("div"),o=x("div"),l=x("div"),s&&s.c(),r=k(),a=x("p"),a.textContent="Hate",u=k(),f=x("div"),d=x("div"),g&&g.c(),$=k(),h=x("p"),h.textContent="Dislike",w=k(),b=x("div"),E=x("div"),M&&M.c(),_=k(),z=x("p"),z.textContent="Neutral",S=k(),R=x("div"),D=x("div"),P&&P.c(),I=k(),A=x("p"),A.textContent="Like",L=k(),q=x("div"),N=x("div"),O&&O.c(),j=k(),U=x("p"),U.textContent="Love",W=k(),Q=x("div"),V=x("div"),X=k(),G=x("textarea"),J=k(),ne=x("div"),He&&He.c(),T(l,"class","fsReactionIcon"),T(a,"class","fsReactionText"),T(a,"id","fsHateDiv"),T(o,"class","fsIconTextCont"),T(d,"class","fsReactionIcon"),T(h,"class","fsReactionText"),T(h,"id","fsDislikeDiv"),T(f,"class","fsIconTextCont"),T(E,"class","fsReactionIcon"),T(z,"class","fsReactionText"),T(z,"id","fsNeutralDiv"),T(b,"class","fsIconTextCont"),T(D,"class","fsReactionIcon"),T(A,"class","fsReactionText"),T(A,"id","fsLikeDiv"),T(R,"class","fsIconTextCont"),T(N,"class","fsReactionIcon"),T(U,"class","fsReactionText"),T(U,"id","fsLoveDiv"),T(q,"class","fsIconTextCont"),T(t,"class","fsIcons-second"),T(V,"class","fsPointerDiv"),T(V,"id","fsPointer"),T(G,"class","fsTextArea"),T(G,"placeholder","Tell us your experience..."),T(Q,"class","fsTextAreaCont"),T(ne,"class","fsFooter"),T(n,"class","fsCommentContainer")},m(i,s){y(i,n,s),p(n,t),p(t,o),p(o,l),~c&&ce[c].m(l,null),p(o,r),p(o,a),p(t,u),p(t,f),p(f,d),~m&&ae[m].m(d,null),p(f,$),p(f,h),p(t,w),p(t,b),p(b,E),~B&&de[B].m(E,null),p(b,_),p(b,z),p(t,S),p(t,R),p(R,D),~H&&pe[H].m(D,null),p(R,I),p(R,A),p(t,L),p(t,q),p(q,N),~F&&ye[F].m(N,null),p(q,j),p(q,U),p(n,W),p(n,Q),p(Q,V),p(Q,X),p(Q,G),p(n,J),p(n,ne),He&&He.m(ne,null),te=!0,oe||(le=[C(o,"click",e[34]),C(f,"click",e[37]),C(b,"click",e[40]),C(R,"click",e[43]),C(N,"click",e[46]),C(G,"keyup",e[47])],oe=!0)},p(e,n){let t=c;c=se(e),c===t?~c&&ce[c].p(e,n):(s&&(K(),ee(ce[t],1,1,(()=>{ce[t]=null})),Y()),~c?(s=ce[c],s?s.p(e,n):(s=ce[c]=ie[c](e),s.c()),Z(s,1),s.m(l,null)):s=null);let o=m;m=ue(e),m===o?~m&&ae[m].p(e,n):(g&&(K(),ee(ae[o],1,1,(()=>{ae[o]=null})),Y()),~m?(g=ae[m],g?g.p(e,n):(g=ae[m]=re[m](e),g.c()),Z(g,1),g.m(d,null)):g=null);let i=B;B=me(e),B===i?~B&&de[B].p(e,n):(M&&(K(),ee(de[i],1,1,(()=>{de[i]=null})),Y()),~B?(M=de[B],M?M.p(e,n):(M=de[B]=fe[B](e),M.c()),Z(M,1),M.m(E,null)):M=null);let r=H;H=$e(e),H===r?~H&&pe[H].p(e,n):(P&&(K(),ee(pe[r],1,1,(()=>{pe[r]=null})),Y()),~H?(P=pe[H],P?P.p(e,n):(P=pe[H]=ge[H](e),P.c()),Z(P,1),P.m(D,null)):P=null);let a=F;F=ve(e),F===a?~F&&ye[F].p(e,n):(O&&(K(),ee(ye[a],1,1,(()=>{ye[a]=null})),Y()),~F?(O=ye[F],O?O.p(e,n):(O=ye[F]=he[F](e),O.c()),Z(O,1),O.m(N,null)):O=null),De===(De=xe(e))&&He?He.p(e,n):(He&&He.d(1),He=De&&De(e),He&&(He.c(),He.m(ne,null)))},i(e){te||(Z(s),Z(g),Z(M),Z(P),Z(O),te=!0)},o(e){ee(s),ee(g),ee(M),ee(P),ee(O),te=!1},d(e){e&&v(n),~c&&ce[c].d(),~m&&ae[m].d(),~B&&de[B].d(),~H&&pe[H].d(),~F&&ye[F].d(),He&&He.d(),oe=!1,i(le)}}}function ye(e){let n,t,o,l,c,s,r,a,u,f,d,m,g,$,h,w,B,M,_,z,S,R,D,H,I,A,L,q,N,O,j,U,W,Q,V,X,G,J,K,Y,ne,ce,se,re,ae=e[0].wgQuestion+"";function ue(n){e[22](n)}let fe={};function de(n){e[24](n)}void 0!==e[2][0]&&(fe.name=e[2][0]),a=new ge({props:fe}),P.push((()=>te(a,"name",ue)));let me={};function pe(n){e[26](n)}void 0!==e[2][1]&&(me.name=e[2][1]),h=new ge({props:me}),P.push((()=>te(h,"name",de)));let $e={};function he(n){e[28](n)}void 0!==e[2][2]&&($e.name=e[2][2]),R=new ge({props:$e}),P.push((()=>te(R,"name",pe)));let ye={};function ve(n){e[30](n)}void 0!==e[2][3]&&(ye.name=e[2][3]),N=new ge({props:ye}),P.push((()=>te(N,"name",he)));let xe={};return void 0!==e[2][4]&&(xe.name=e[2][4]),X=new ge({props:xe}),P.push((()=>te(X,"name",ve))),{c(){n=x("div"),t=x("div"),o=b(ae),l=k(),c=x("div"),s=x("div"),r=x("div"),oe(a.$$.fragment),f=k(),d=x("p"),d.textContent="Hate",m=k(),g=x("div"),$=x("div"),oe(h.$$.fragment),B=k(),M=x("p"),M.textContent="Dislike",_=k(),z=x("div"),S=x("div"),oe(R.$$.fragment),H=k(),I=x("p"),I.textContent="Neutral",A=k(),L=x("div"),q=x("div"),oe(N.$$.fragment),j=k(),U=x("p"),U.textContent="Like",W=k(),Q=x("div"),V=x("div"),oe(X.$$.fragment),J=k(),K=x("p"),K.textContent="Love",Y=k(),ne=x("p"),T(t,"id","fsTxt"),T(r,"class","fsReactionIcon"),T(d,"class","fsReactionText"),T(s,"class","fsIconTextCont"),T($,"class","fsReactionIcon"),T(M,"class","fsReactionText"),T(g,"class","fsIconTextCont"),T(S,"class","fsReactionIcon"),T(I,"class","fsReactionText"),T(z,"class","fsIconTextCont"),T(q,"class","fsReactionIcon"),T(U,"class","fsReactionText"),T(L,"class","fsIconTextCont"),T(V,"class","fsReactionIcon"),T(K,"class","fsReactionText"),T(Q,"class","fsIconTextCont"),T(c,"class","fsIcons"),T(ne,"id","test"),T(n,"class","fsReactionsContainer")},m(i,u){y(i,n,u),p(n,t),p(t,o),p(n,l),p(n,c),p(c,s),p(s,r),le(a,r,null),p(s,f),p(s,d),p(c,m),p(c,g),p(g,$),le(h,$,null),p(g,B),p(g,M),p(c,_),p(c,z),p(z,S),le(R,S,null),p(z,H),p(z,I),p(c,A),p(c,L),p(L,q),le(N,q,null),p(L,j),p(L,U),p(c,W),p(c,Q),p(Q,V),le(X,V,null),p(Q,J),p(Q,K),p(n,Y),p(n,ne),ce=!0,se||(re=[C(s,"click",e[23]),C(g,"click",e[25]),C(z,"click",e[27]),C(L,"click",e[29]),C(Q,"click",e[31])],se=!0)},p(e,n){(!ce||1&n[0])&&ae!==(ae=e[0].wgQuestion+"")&&E(o,ae);const t={};!u&&4&n[0]&&(u=!0,t.name=e[2][0],F((()=>u=!1))),a.$set(t);const l={};!w&&4&n[0]&&(w=!0,l.name=e[2][1],F((()=>w=!1))),h.$set(l);const i={};!D&&4&n[0]&&(D=!0,i.name=e[2][2],F((()=>D=!1))),R.$set(i);const c={};!O&&4&n[0]&&(O=!0,c.name=e[2][3],F((()=>O=!1))),N.$set(c);const s={};!G&&4&n[0]&&(G=!0,s.name=e[2][4],F((()=>G=!1))),X.$set(s)},i(e){ce||(Z(a.$$.fragment,e),Z(h.$$.fragment,e),Z(R.$$.fragment,e),Z(N.$$.fragment,e),Z(X.$$.fragment,e),ce=!0)},o(e){ee(a.$$.fragment,e),ee(h.$$.fragment,e),ee(R.$$.fragment,e),ee(N.$$.fragment,e),ee(X.$$.fragment,e),ce=!1},d(e){e&&v(n),ie(a),ie(h),ie(R),ie(N),ie(X),se=!1,i(re)}}}function ve(n){let t,o,l;return{c(){t=x("button"),t.innerHTML='<p class="fsSendButtonCommentComponent">Send</p>',T(t,"class","fsSendButtonContCommentComp")},m(e,i){y(e,t,i),o||(l=[C(t,"click",n[51]),C(t,"click",n[52])],o=!0)},p:e,d(e){e&&v(t),o=!1,i(l)}}}function xe(n){let t;return{c(){t=x("button"),t.innerHTML='<p class="fsCommentButtonTxtDisable">Send</p>',T(t,"class","fsCommentButtonContDisable"),t.disabled=!0},m(e,n){y(e,t,n)},p:e,d(e){e&&v(t)}}}function we(e){let n,t,o;function l(n){e[33](n)}let i={};return void 0!==e[2][0]&&(i.name=e[2][0]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][0],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function be(e){let n,t,o;function l(n){e[32](n)}let i={};return void 0!==e[2][0]&&(i.name=e[2][0]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][0],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function ke(e){let n,t,o;function l(n){e[36](n)}let i={};return void 0!==e[2][1]&&(i.name=e[2][1]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][1],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function Ce(e){let n,t,o;function l(n){e[35](n)}let i={};return void 0!==e[2][1]&&(i.name=e[2][1]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][1],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function Te(e){let n,t,o;function l(n){e[39](n)}let i={};return void 0!==e[2][2]&&(i.name=e[2][2]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][2],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function Ee(e){let n,t,o;function l(n){e[38](n)}let i={};return void 0!==e[2][2]&&(i.name=e[2][2]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][2],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function Be(e){let n,t,o;function l(n){e[42](n)}let i={};return void 0!==e[2][3]&&(i.name=e[2][3]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][3],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function Me(e){let n,t,o;function l(n){e[41](n)}let i={};return void 0!==e[2][3]&&(i.name=e[2][3]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][3],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function _e(e){let n,t,o;function l(n){e[45](n)}let i={};return void 0!==e[2][4]&&(i.name=e[2][4]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][4],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function ze(e){let n,t,o;function l(n){e[44](n)}let i={};return void 0!==e[2][4]&&(i.name=e[2][4]),n=new ge({props:i}),P.push((()=>te(n,"name",l))),{c(){oe(n.$$.fragment)},m(e,t){le(n,e,t),o=!0},p(e,o){const l={};!t&&4&o[0]&&(t=!0,l.name=e[2][4],F((()=>t=!1))),n.$set(l)},i(e){o||(Z(n.$$.fragment,e),o=!0)},o(e){ee(n.$$.fragment,e),o=!1},d(e){ie(n,e)}}}function Se(n){let t,o,l;return{c(){t=x("button"),t.innerHTML='<p class="fsSendButtonCommentComponent">Send</p>',T(t,"class","fsSendButtonContCommentComp")},m(e,i){y(e,t,i),o||(l=C(t,"click",n[48]),o=!0)},p:e,d(e){e&&v(t),o=!1,l()}}}function Re(n){let t;return{c(){t=x("button"),t.innerHTML='<p class="fsCommentButtonTxtDisable">Send</p>',T(t,"class","fsCommentButtonContDisable"),t.disabled=!0},m(e,n){y(e,t,n)},p:e,d(e){e&&v(t)}}}function De(e){let n,t,o,l;const i=[ye,he,$e],c=[];function s(e,n){return 1===e[7]?0:2===e[7]?1:3===e[7]?2:-1}return~(n=s(e))&&(t=c[n]=i[n](e)),{c(){t&&t.c(),o=b("")},m(e,t){~n&&c[n].m(e,t),y(e,o,t),l=!0},p(e,l){let r=n;n=s(e),n===r?~n&&c[n].p(e,l):(t&&(K(),ee(c[r],1,1,(()=>{c[r]=null})),Y()),~n?(t=c[n],t?t.p(e,l):(t=c[n]=i[n](e),t.c()),Z(t,1),t.m(o.parentNode,o)):t=null)},i(e){l||(Z(t),l=!0)},o(e){ee(t),l=!1},d(e){~n&&c[n].d(e),e&&v(o)}}}function He(e,n,t){let o,l,i,c,s,r,a,u,f,{feedbackData:d}=n;console.log("hiiih");let m=["hate","dislike","neutral","like","love"],g=m,p="",$="",h="",y="test",v=!0,x=0,{closeHandler:w=((e,n,t)=>{})}=n,{closeHandlerBeforeFinishing:b=((e,n,t)=>{})}=n;const k=()=>{let e=document.querySelector(".fsTextArea");""===e.value?t(8,f=!1):t(8,f=!0),t(4,$=""),t(4,$=e.value),console.log(e.value)},C=()=>{let e=document.querySelector("#fsEmailTextArea");/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e.value)&&""!==e.value?(t(8,f=!0),t(5,h=""),t(5,h=document.getElementById("fsEmailTextArea").value)):t(8,f=!1)},T=(e,n,u)=>{let f=y;var d;y=u,console.log(u),t(7,o=e),t(3,p=String(n)),t(2,g=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),b(h,$,p),x>0&&("hate"==(d=f)?t(20,i="none"):"dislike"==d?t(19,c="none"):"neutral"==d?t(18,s="none"):"like"==d?t(17,r="none"):"love"==d&&t(15,a="none")),x++,1==n?(t(16,l=11),t(20,i="block"),t(2,g[0]=m[0],g),t(6,v=!v)):2==n?(t(2,g[1]=m[1],g),t(16,l=30),t(19,c="block"),t(6,v=!v)):3==n?(t(2,g[2]=m[2],g),t(16,l=49),t(18,s="block"),t(6,v=!v)):4==n?(t(2,g[3]=m[3],g),t(16,l=68),t(17,r="block"),t(6,v=!v)):5==n&&(t(2,g[4]=m[4],g),t(16,l=87),t(15,a="block"),t(6,v=!v))},E=e=>{clearInterval(undefined),document.querySelector(".fsTextArea").value="",t(8,f=!1),t(7,o=e)},B=()=>{console.log("444"),clearInterval(undefined),document.querySelector("#fsEmailTextArea").value=""};return e.$$set=e=>{"feedbackData"in e&&t(0,d=e.feedbackData),"closeHandler"in e&&t(1,w=e.closeHandler),"closeHandlerBeforeFinishing"in e&&t(14,b=e.closeHandlerBeforeFinishing)},e.$$.update=()=>{1&e.$$.dirty[0]&&t(21,u=d.wgAccentColor),65536&e.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",l+"%"),1048576&e.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",i),524288&e.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",c),262144&e.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",s),131072&e.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",r),32768&e.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",a),2097152&e.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},t(7,o=1),t(16,l=10),t(20,i="none"),t(19,c="none"),t(18,s="none"),t(17,r="none"),t(15,a="none"),t(8,f=!1),[d,w,g,p,$,h,v,o,f,k,C,T,E,B,b,a,l,r,s,c,i,u,function(n){e.$$.not_equal(g[0],n)&&(g[0]=n,t(2,g))},()=>T(2,1,"hate"),function(n){e.$$.not_equal(g[1],n)&&(g[1]=n,t(2,g))},()=>T(2,2,"dislike"),function(n){e.$$.not_equal(g[2],n)&&(g[2]=n,t(2,g))},()=>T(2,3,"neutral"),function(n){e.$$.not_equal(g[3],n)&&(g[3]=n,t(2,g))},()=>T(2,4,"like"),function(n){e.$$.not_equal(g[4],n)&&(g[4]=n,t(2,g))},()=>T(2,5,"love"),function(n){e.$$.not_equal(g[0],n)&&(g[0]=n,t(2,g))},function(n){e.$$.not_equal(g[0],n)&&(g[0]=n,t(2,g))},()=>T(2,1,"hate"),function(n){e.$$.not_equal(g[1],n)&&(g[1]=n,t(2,g))},function(n){e.$$.not_equal(g[1],n)&&(g[1]=n,t(2,g))},()=>T(2,2,"dislike"),function(n){e.$$.not_equal(g[2],n)&&(g[2]=n,t(2,g))},function(n){e.$$.not_equal(g[2],n)&&(g[2]=n,t(2,g))},()=>T(2,3,"neutral"),function(n){e.$$.not_equal(g[3],n)&&(g[3]=n,t(2,g))},function(n){e.$$.not_equal(g[3],n)&&(g[3]=n,t(2,g))},()=>T(2,4,"like"),function(n){e.$$.not_equal(g[4],n)&&(g[4]=n,t(2,g))},function(n){e.$$.not_equal(g[4],n)&&(g[4]=n,t(2,g))},()=>T(2,5,"love"),()=>k(),()=>E(3),()=>C(),()=>w(h,$,p),()=>w(h,$,p),()=>B()]}pe("",{insertAt:"top"});class Pe extends re{constructor(e){super(),se(this,e,He,De,s,{feedbackData:0,closeHandler:1,closeHandlerBeforeFinishing:14},null,[-1,-1])}}function Ie(e){const n=e-1;return n*n*n+1}function Ae(e,{delay:n=0,duration:t=400,easing:o=Ie,x:l=0,y:i=0,opacity:c=0}={}){const s=getComputedStyle(e),r=+s.opacity,a="none"===s.transform?"":s.transform,u=r*(1-c);return{delay:n,duration:t,easing:o,css:(e,n)=>`\n\t\t\ttransform: ${a} translate(${(1-e)*l}px, ${(1-e)*i}px);\n\t\t\topacity: ${r-u*n}`}}function Le(e){let n,t,o,l,i,c,s,r,a,u;function f(n){e[21](n)}let d={};return void 0!==e[1]&&(d.fill=e[1]),c=new fe({props:d}),P.push((()=>te(c,"fill",f))),{c(){n=x("div"),t=x("div"),o=b(e[2]),l=k(),i=x("div"),oe(c.$$.fragment),T(t,"id","fsFeedbackTxt"),T(i,"id","fsMainIcon"),T(n,"class","fsWidget")},m(s,f){y(s,n,f),p(n,t),p(t,o),p(n,l),p(n,i),le(c,i,null),r=!0,a||(u=C(n,"click",e[11]),a=!0)},p(e,n){(!r||4&n)&&E(o,e[2]);const t={};!s&&2&n&&(s=!0,t.fill=e[1],F((()=>s=!1))),c.$set(t)},i(e){r||(Z(c.$$.fragment,e),r=!0)},o(e){ee(c.$$.fragment,e),r=!1},d(e){e&&v(n),ie(c),a=!1,u()}}}function qe(t){let o,l,i,s,r,a,f,d,m;function $(e){t[22](e)}let h={closeHandler:t[8],closeHandlerBeforeFinishing:t[9]};return void 0!==t[0]&&(h.feedbackData=t[0]),s=new Pe({props:h}),P.push((()=>te(s,"feedbackData",$))),{c(){o=x("div"),l=x("div"),l.innerHTML='<p id="fsCloseIcon">X</p>',i=k(),oe(s.$$.fragment),T(l,"class","fsCloseCont"),T(o,"class","fsCont")},m(e,n){y(e,o,n),p(o,l),p(o,i),le(s,o,null),f=!0,d||(m=C(l,"click",t[12]),d=!0)},p(e,n){t=e;const o={};!r&&1&n&&(r=!0,o.feedbackData=t[0],F((()=>r=!1))),s.$set(o)},i(l){f||(Z(s.$$.fragment,l),a||N((()=>{a=function(t,o,l){let i,s,r=o(t,l),a=!1,f=0;function d(){i&&R(t,i)}function m(){const{delay:o=0,duration:l=300,easing:c=n,tick:m=e,css:p}=r||ne;p&&(i=S(t,0,1,l,o,c,p,f++)),m(0,1);const $=u()+o,h=$+l;s&&s.abort(),a=!0,N((()=>X(t,!0,"start"))),s=g((e=>{if(a){if(e>=h)return m(1,0),X(t,!0,"end"),d(),a=!1;if(e>=$){const n=c((e-$)/l);m(n,1-n)}}return a}))}let p=!1;return{start(){p||(p=!0,R(t),c(r)?(r=r(),V().then(m)):m())},invalidate(){p=!1},end(){a&&(d(),a=!1)}}}(o,Ae,{x:t[6],duration:500}),a.start()})),f=!0)},o(e){ee(s.$$.fragment,e),f=!1},d(e){e&&v(o),ie(s),d=!1,m()}}}function Ne(t){let o,l,s,r,a,f,d,m,$,h=t[0].wgThanksMsg+"";return{c(){o=x("div"),l=x("div"),l.innerHTML='<p id="fsCloseIcon">X</p>',s=k(),r=x("div"),a=b(h),T(l,"class","fsCloseCont"),B(r,"width","61%"),B(r,"text-align","center"),B(r,"margin-top","7%"),B(r,"margin-left","20%"),T(o,"class","fsThanksMessageCont")},m(e,n){y(e,o,n),p(o,l),p(o,s),p(o,r),p(r,a),d=!0,m||($=C(l,"click",t[10]),m=!0)},p(e,n){t=e,(!d||1&n)&&h!==(h=t[0].wgThanksMsg+"")&&E(a,h)},i(e){d||(f&&f.end(1),d=!0)},o(l){f=function(t,o,l){let s,r=o(t,l),a=!0;const f=J;function d(){const{delay:o=0,duration:l=300,easing:c=n,tick:d=e,css:m}=r||ne;m&&(s=S(t,1,0,l,o,c,m));const p=u()+o,$=p+l;N((()=>X(t,!1,"start"))),g((e=>{if(a){if(e>=$)return d(0,1),X(t,!1,"end"),--f.r||i(f.c),!1;if(e>=p){const n=c((e-p)/l);d(1-n,n)}}return a}))}return f.r+=1,c(r)?V().then((()=>{r=r(),d()})):d(),{end(e){e&&r.tick&&r.tick(1,0),a&&(s&&R(t,s),a=!1)}}}(o,Ae,{x:t[7],duration:300}),d=!1},d(e){e&&v(o),e&&f&&f.end(),m=!1,$()}}}function Fe(e){let n,t,o,l,i=e[4]&&Le(e),c=e[3]&&qe(e),s=e[5]&&Ne(e);return{c(){n=x("fsContainer"),i&&i.c(),t=k(),c&&c.c(),o=k(),s&&s.c()},m(e,r){y(e,n,r),i&&i.m(n,null),p(n,t),c&&c.m(n,null),p(n,o),s&&s.m(n,null),l=!0},p(e,[l]){e[4]?i?(i.p(e,l),16&l&&Z(i,1)):(i=Le(e),i.c(),Z(i,1),i.m(n,t)):i&&(K(),ee(i,1,1,(()=>{i=null})),Y()),e[3]?c?(c.p(e,l),8&l&&Z(c,1)):(c=qe(e),c.c(),Z(c,1),c.m(n,o)):c&&(K(),ee(c,1,1,(()=>{c=null})),Y()),e[5]?s?(s.p(e,l),32&l&&Z(s,1)):(s=Ne(e),s.c(),Z(s,1),s.m(n,null)):s&&(K(),ee(s,1,1,(()=>{s=null})),Y())},i(e){l||(Z(i),Z(c),Z(s),l=!0)},o(e){ee(i),ee(c),ee(s),l=!1},d(e){e&&v(n),i&&i.d(),c&&c.d(),s&&s.d()}}}function Oe(e,n,t){let o,{feedback:l}=n;console.log(l);let i="",c="",s="Feedback";s="en"==l.wgLanguage?" Feedback":"ar"==l.wgLanguage?"رأي":"Rétroaction",!0===l.wgAlternateColor?(i="white",c="white"):(i="black",c="black");let r="",a="",u=0,f=0,d=0,m=0,g=!1,p=!0,$=!1,h=0,y=0;0==Number(l.wgPosition)&&(r="center",a="row-reverse",u=5,f=0,d=30,m=0,h=-100,y=20),1==Number(l.wgPosition)&&(r="center",a="row",u=0,f=5,d=0,m=30,h=100,y=-20),2==Number(l.wgPosition)&&(r="flex-end",a="row-reverse",u=5,d=30,m=0,h=-100,y=20),3==Number(l.wgPosition)&&(r="flex-end",a="row",u=0,f=5,d=0,m=30,h=100,y=-20);let v=0,x="",w="",b="";const k=(e,n,t)=>{x=e,w=n,b=Number(t);let o={email:e,comment:n,reaction:t};if(1==v){console.log("hi",o);let e=new CustomEvent("fbEvent",{bubbles:!1,detail:o});window.dispatchEvent(e),console.log(o)}},C=()=>{t(3,g=!g),t(5,$=!$)};return e.$$set=e=>{"feedback"in e&&t(0,l=e.feedback)},e.$$.update=()=>{1&e.$$.dirty&&t(20,o=l.wgAccentColor),1048576&e.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",o),8192&e.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",i),16384&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",r),32768&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",a),65536&e.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",u+"px"),131072&e.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",f+"px"),262144&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),524288&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",m+"px")},[l,c,s,g,p,$,h,y,(e,n,t)=>{let o={email:e,comment:n,reaction:Number(t)},l=new CustomEvent("fbEvent",{bubbles:!1,detail:o});window.dispatchEvent(l),console.log(o),C()},k,()=>{t(5,$=!$),setTimeout((function(){t(4,p=!p)}),350)},()=>{t(3,g=!g),t(4,p=!p)},()=>{v=1,0!=b&&k(x,w,b),t(3,g=!g),setTimeout((function(){t(4,p=!p)}),350)},i,r,a,u,f,d,m,o,function(e){c=e,t(1,c)},function(e){l=e,t(0,l)}]}pe("",{insertAt:"top"});class je extends re{constructor(e){super(),se(this,e,Oe,Fe,s,{feedback:0})}}function Ue(e){new je({target:document.body,props:{feedback:e}})}Ue({id:1,wgStatus:1,wgName:"ask",wgDescription:"test",wgCrtDt:"2021-12-05 10:49:14",wgResponses:null,wgUpdTime:null,SiteId:98,UserId:262,wgLanguage:"en",wgPosition:"0",wgAccentColor:"#51797b",wgAlternateColor:!0,wgQuestion:"How would you rate your experience?",wgUserScreenshot:1,wgEmailReqMsg:"We may wish to follow up. Enter your email if you're happy for us to contact you.",wgEmailReqActivation:1,wgAdditionalMsg:"Heads up! This is for feedback only. Need help? Contact us via our [link to Help Center].",wgAdditionalMsgActivation:1,wgThanksMsg:"Thank you for sharing your feedback with us",wgThanksMsgActivation:1,wgDesktop:1,wgPhone:1,wgTablet:1,wgPages:[{id:0,name:"*"}],wgWidgetToUsers:0,wgPercentage:100,wgEmail:"abd@gmail.com",wgWidgetToAllPages:1,wgReactionStyle:0,wgResponseViaEmail:1});export{Ue as feedbackCreator};
2
2
  //# sourceMappingURL=index.mjs.map