@fullsession.io/fs-feedback-widget 1.3.1 → 1.3.3

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