@fullsession.io/fs-feedback-widget 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/widgetPages/App.css +1 -1
- package/src/widgetPages/reactionPage.svelte +24 -34
- package/src/widgetPages/reactionpage.css +2 -34
- package/dist/bundle.css +0 -329
- package/dist/publicextra.css +0 -298
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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 r(e,n){return e!=e?n==n:e!==n||e&&"object"==typeof e||"function"==typeof e}function s(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=v("style");return function(e,n){p(e.head||e,n)}($(e),n),n.sheet}function w(e,n,t){e.insertBefore(n,t||null)}function y(e){e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function x(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 R(e,n,t,o,l,i,c,r=0){const s=16.666/o;let a="{\n";for(let e=0;e<=1;e+=s){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)}_${r}`,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 S(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=[],L=[],A=Promise.resolve();let q=!1;function N(e){I.push(e)}function F(e){L.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(;L.length;)L.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:r,on_mount:s,on_destroy:a,after_update:u}=e.$$;r&&r.m(n,t),l||N((()=>{const n=s.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,A.then(W)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function re(n,t,o,c,r,s,a,u=[-1]){const f=_;D(n);const d=n.$$={fragment:null,ctx:null,props:s,update:e,not_equal:r,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&&r(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(y)}else d.fragment&&d.fragment.c();t.intro&&Z(n.$$.fragment),le(n,t.target,t.anchor,t.customElement),W()}D(f)}class se{$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,r,s,a,u,f,d,m,g,$,h,v,b,k,C;return{c(){t=x("svg"),o=x("g"),l=x("g"),i=x("path"),c=x("g"),r=x("g"),s=x("g"),a=x("g"),u=x("g"),f=x("g"),d=x("g"),m=x("g"),g=x("g"),$=x("g"),h=x("g"),v=x("g"),b=x("g"),k=x("g"),C=x("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){w(e,t,n),p(t,o),p(o,l),p(l,i),p(t,c),p(t,r),p(t,s),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,v),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&&y(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 se{constructor(e){super(),re(this,e,ue,ae,r,{fill:0})}}function de(n){let t,o,l=n[3].svg+"";return{c(){t=x("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){w(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&&y(t)}}}function me(e,n,o){let{name:l}=n,{focusable:i=!1}=n,{width:c="40px"}=n,{height:r="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),s(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,r=e.height)},n=s(n),[i,c,r,a,n,l]}class ge extends se{constructor(e){super(),re(this,e,me,de,r,{name:5,focusable:0,width:1,height:2})}}function pe(n){let t,o,l,c,r,s,a,u,f,d,m,g,$=n[0].wgEmailReqMsg+"";function h(e,n){return 0==e[8]?ye:1==e[8]?we:void 0}let x=h(n),B=x&&x(n);return{c(){t=v("div"),o=v("div"),l=b($),c=k(),r=v("div"),s=v("input"),a=k(),u=v("div"),f=v("p"),f.innerHTML="<u>Skip</u>",d=k(),B&&B.c(),T(o,"id","fsEmailText"),T(s,"type","text"),T(s,"id","fsEmailTextArea"),T(s,"placeholder","email@domain.com"),T(r,"id","fsEmailInputCont"),T(f,"id","fsSkipText"),T(u,"class","fsEmailFooter"),T(t,"class","fsEmailContainer")},m(e,i){w(e,t,i),p(t,o),p(o,l),p(t,c),p(t,r),p(r,s),p(t,a),p(t,u),p(u,f),p(u,d),B&&B.m(u,null),m||(g=[C(s,"keyup",n[49]),C(f,"click",n[50])],m=!0)},p(e,n){1&n[0]&&$!==($=e[0].wgEmailReqMsg+"")&&E(l,$),x===(x=h(e))&&B?B.p(e,n):(B&&B.d(1),B=x&&x(e),B&&(B.c(),B.m(u,null)))},i:e,o:e,d(e){e&&y(t),B&&B.d(),m=!1,i(g)}}}function $e(e){let n,t,o,l,c,r,s,a,u,f,d,m,g,$,h,x,b,E,B,M,_,z,R,S,D,H,P,I,L,A,q,N,F,O,j,U,W,Q,V,X,G,J,ne,te,oe,le;const ie=[xe,ve],ce=[];function re(e,n){return e[6]?0:0==e[6]?1:-1}~(c=re(e))&&(r=ce[c]=ie[c](e));const se=[ke,be],ae=[];function ue(e,n){return e[6]?0:0==e[6]?1:-1}~(m=ue(e))&&(g=ae[m]=se[m](e));const fe=[Te,Ce],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=[Be,Ee],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=[_e,Me],we=[];function ye(e,n){return e[6]?0:0==e[6]?1:-1}function Se(e,n){return 0==e[8]?Re:1==e[8]?ze:void 0}~(F=ye(e))&&(O=we[F]=he[F](e));let De=Se(e),He=De&&De(e);return{c(){n=v("div"),t=v("div"),o=v("div"),l=v("div"),r&&r.c(),s=k(),a=v("p"),a.textContent="Hate",u=k(),f=v("div"),d=v("div"),g&&g.c(),$=k(),h=v("p"),h.textContent="Dislike",x=k(),b=v("div"),E=v("div"),M&&M.c(),_=k(),z=v("p"),z.textContent="Neutral",R=k(),S=v("div"),D=v("div"),P&&P.c(),I=k(),L=v("p"),L.textContent="Like",A=k(),q=v("div"),N=v("div"),O&&O.c(),j=k(),U=v("p"),U.textContent="Love",W=k(),Q=v("div"),V=v("div"),X=k(),G=v("textarea"),J=k(),ne=v("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(L,"class","fsReactionText"),T(L,"id","fsLikeDiv"),T(S,"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,r){w(i,n,r),p(n,t),p(t,o),p(o,l),~c&&ce[c].m(l,null),p(o,s),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,x),p(t,b),p(b,E),~B&&de[B].m(E,null),p(b,_),p(b,z),p(t,R),p(t,S),p(S,D),~H&&pe[H].m(D,null),p(S,I),p(S,L),p(t,A),p(t,q),p(q,N),~F&&we[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(S,"click",e[43]),C(N,"click",e[46]),C(G,"keyup",e[47])],oe=!0)},p(e,n){let t=c;c=re(e),c===t?~c&&ce[c].p(e,n):(r&&(K(),ee(ce[t],1,1,(()=>{ce[t]=null})),Y()),~c?(r=ce[c],r?r.p(e,n):(r=ce[c]=ie[c](e),r.c()),Z(r,1),r.m(l,null)):r=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]=se[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 s=H;H=$e(e),H===s?~H&&pe[H].p(e,n):(P&&(K(),ee(pe[s],1,1,(()=>{pe[s]=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=ye(e),F===a?~F&&we[F].p(e,n):(O&&(K(),ee(we[a],1,1,(()=>{we[a]=null})),Y()),~F?(O=we[F],O?O.p(e,n):(O=we[F]=he[F](e),O.c()),Z(O,1),O.m(N,null)):O=null),De===(De=Se(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(r),Z(g),Z(M),Z(P),Z(O),te=!0)},o(e){ee(r),ee(g),ee(M),ee(P),ee(O),te=!1},d(e){e&&y(n),~c&&ce[c].d(),~m&&ae[m].d(),~B&&de[B].d(),~H&&pe[H].d(),~F&&we[F].d(),He&&He.d(),oe=!1,i(le)}}}function he(e){let n,t,o,l,c,r,s,a,u,f,d,m,g,$,h,x,B,M,_,z,R,S,D,H,I,L,A,q,N,O,j,U,W,Q,V,X,G,J,K,Y,ne,ce,re,se,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]),S=new ge({props:$e}),P.push((()=>te(S,"name",pe)));let we={};function ye(n){e[30](n)}void 0!==e[2][3]&&(we.name=e[2][3]),N=new ge({props:we}),P.push((()=>te(N,"name",he)));let ve={};return void 0!==e[2][4]&&(ve.name=e[2][4]),X=new ge({props:ve}),P.push((()=>te(X,"name",ye))),{c(){n=v("div"),t=v("div"),o=b(ae),l=k(),c=v("div"),r=v("div"),s=v("div"),oe(a.$$.fragment),f=k(),d=v("p"),d.textContent="Hate",m=k(),g=v("div"),$=v("div"),oe(h.$$.fragment),B=k(),M=v("p"),M.textContent="Dislike",_=k(),z=v("div"),R=v("div"),oe(S.$$.fragment),H=k(),I=v("p"),I.textContent="Neutral",L=k(),A=v("div"),q=v("div"),oe(N.$$.fragment),j=k(),U=v("p"),U.textContent="Like",W=k(),Q=v("div"),V=v("div"),oe(X.$$.fragment),J=k(),K=v("p"),K.textContent="Love",Y=k(),ne=v("p"),T(t,"id","fsTxt"),T(s,"class","fsReactionIcon"),T(d,"class","fsReactionText"),T(r,"class","fsIconTextCont"),T($,"class","fsReactionIcon"),T(M,"class","fsReactionText"),T(g,"class","fsIconTextCont"),T(R,"class","fsReactionIcon"),T(I,"class","fsReactionText"),T(z,"class","fsIconTextCont"),T(q,"class","fsReactionIcon"),T(U,"class","fsReactionText"),T(A,"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){w(i,n,u),p(n,t),p(t,o),p(n,l),p(n,c),p(c,r),p(r,s),le(a,s,null),p(r,f),p(r,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,R),le(S,R,null),p(z,H),p(z,I),p(c,L),p(c,A),p(A,q),le(N,q,null),p(A,j),p(A,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,re||(se=[C(r,"click",e[23]),C(g,"click",e[25]),C(z,"click",e[27]),C(A,"click",e[29]),C(Q,"click",e[31])],re=!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={};!x&&4&n[0]&&(x=!0,l.name=e[2][1],F((()=>x=!1))),h.$set(l);const i={};!D&&4&n[0]&&(D=!0,i.name=e[2][2],F((()=>D=!1))),S.$set(i);const c={};!O&&4&n[0]&&(O=!0,c.name=e[2][3],F((()=>O=!1))),N.$set(c);const r={};!G&&4&n[0]&&(G=!0,r.name=e[2][4],F((()=>G=!1))),X.$set(r)},i(e){ce||(Z(a.$$.fragment,e),Z(h.$$.fragment,e),Z(S.$$.fragment,e),Z(N.$$.fragment,e),Z(X.$$.fragment,e),ce=!0)},o(e){ee(a.$$.fragment,e),ee(h.$$.fragment,e),ee(S.$$.fragment,e),ee(N.$$.fragment,e),ee(X.$$.fragment,e),ce=!1},d(e){e&&y(n),ie(a),ie(h),ie(S),ie(N),ie(X),re=!1,i(se)}}}function we(n){let t,o,l;return{c(){t=v("button"),t.innerHTML='<p class="fsSendButtonCommentComponent">Send</p>',T(t,"class","fsSendButtonContCommentComp")},m(e,i){w(e,t,i),o||(l=[C(t,"click",n[51]),C(t,"click",n[52])],o=!0)},p:e,d(e){e&&y(t),o=!1,i(l)}}}function ye(n){let t;return{c(){t=v("button"),t.innerHTML='<p class="fsCommentButtonTxtDisable">Send</p>',T(t,"class","fsCommentButtonContDisable"),t.disabled=!0},m(e,n){w(e,t,n)},p:e,d(e){e&&y(t)}}}function ve(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 xe(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 be(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 ke(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 Ce(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 Te(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 Ee(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 Be(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 Me(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 _e(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 ze(n){let t,o,l;return{c(){t=v("button"),t.innerHTML='<p class="fsSendButtonCommentComponent">Send</p>',T(t,"class","fsSendButtonContCommentComp")},m(e,i){w(e,t,i),o||(l=C(t,"click",n[48]),o=!0)},p:e,d(e){e&&y(t),o=!1,l()}}}function Re(n){let t;return{c(){t=v("button"),t.innerHTML='<p class="fsCommentButtonTxtDisable">Send</p>',T(t,"class","fsCommentButtonContDisable"),t.disabled=!0},m(e,n){w(e,t,n)},p:e,d(e){e&&y(t)}}}function Se(e){let n,t,o,l;const i=[he,$e,pe],c=[];function r(e,n){return 1===e[7]?0:2===e[7]?1:3===e[7]?2:-1}return~(n=r(e))&&(t=c[n]=i[n](e)),{c(){t&&t.c(),o=b("")},m(e,t){~n&&c[n].m(e,t),w(e,o,t),l=!0},p(e,l){let s=n;n=r(e),n===s?~n&&c[n].p(e,l):(t&&(K(),ee(c[s],1,1,(()=>{c[s]=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&&y(o)}}}function De(e,n,t){let o,l,i,c,r,s,a,u,f,{feedbackData:d}=n;console.log("hiiih");let m=["hate","dislike","neutral","like","love"],g=m,p="",$="",h="",w="test",y=!0,v=0,{closeHandler:x=((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=w;var d;w=u,console.log(u),t(7,o=e),t(3,p=String(n)),t(2,g=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),b(h,$,p),v>0&&("hate"==(d=f)?t(20,i="none"):"dislike"==d?t(19,c="none"):"neutral"==d?t(18,r="none"):"like"==d?t(17,s="none"):"love"==d&&t(15,a="none")),v++,1==n?(t(16,l=11),t(20,i="block"),t(2,g[0]=m[0],g),t(6,y=!y)):2==n?(t(2,g[1]=m[1],g),t(16,l=30),t(19,c="block"),t(6,y=!y)):3==n?(t(2,g[2]=m[2],g),t(16,l=49),t(18,r="block"),t(6,y=!y)):4==n?(t(2,g[3]=m[3],g),t(16,l=68),t(17,s="block"),t(6,y=!y)):5==n&&(t(2,g[4]=m[4],g),t(16,l=87),t(15,a="block"),t(6,y=!y))},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,x=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",r),131072&e.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",s),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,r="none"),t(17,s="none"),t(15,a="none"),t(8,f=!1),[d,x,g,p,$,h,y,o,f,k,C,T,E,B,b,a,l,s,r,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(),()=>x(h,$,p),()=>x(h,$,p),()=>B()]}class He extends se{constructor(e){super(),re(this,e,De,Se,r,{feedbackData:0,closeHandler:1,closeHandlerBeforeFinishing:14},null,[-1,-1])}}function Pe(e){const n=e-1;return n*n*n+1}function Ie(e,{delay:n=0,duration:t=400,easing:o=Pe,x:l=0,y:i=0,opacity:c=0}={}){const r=getComputedStyle(e),s=+r.opacity,a="none"===r.transform?"":r.transform,u=s*(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: ${s-u*n}`}}function Le(e){let n,t,o,l,i,c,r,s,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=v("div"),t=v("div"),o=b(e[2]),l=k(),i=v("div"),oe(c.$$.fragment),T(t,"id","fsFeedbackTxt"),T(i,"id","fsMainIcon"),T(n,"class","fsWidget")},m(r,f){w(r,n,f),p(n,t),p(t,o),p(n,l),p(n,i),le(c,i,null),s=!0,a||(u=C(n,"click",e[11]),a=!0)},p(e,n){(!s||4&n)&&E(o,e[2]);const t={};!r&&2&n&&(r=!0,t.fill=e[1],F((()=>r=!1))),c.$set(t)},i(e){s||(Z(c.$$.fragment,e),s=!0)},o(e){ee(c.$$.fragment,e),s=!1},d(e){e&&y(n),ie(c),a=!1,u()}}}function Ae(t){let o,l,i,r,s,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]),r=new He({props:h}),P.push((()=>te(r,"feedbackData",$))),{c(){o=v("div"),l=v("div"),l.innerHTML='<p id="fsCloseIcon">X</p>',i=k(),oe(r.$$.fragment),T(l,"class","fsCloseCont"),T(o,"class","fsCont")},m(e,n){w(e,o,n),p(o,l),p(o,i),le(r,o,null),f=!0,d||(m=C(l,"click",t[12]),d=!0)},p(e,n){t=e;const o={};!s&&1&n&&(s=!0,o.feedbackData=t[0],F((()=>s=!1))),r.$set(o)},i(l){f||(Z(r.$$.fragment,l),a||N((()=>{a=function(t,o,l){let i,r,s=o(t,l),a=!1,f=0;function d(){i&&S(t,i)}function m(){const{delay:o=0,duration:l=300,easing:c=n,tick:m=e,css:p}=s||ne;p&&(i=R(t,0,1,l,o,c,p,f++)),m(0,1);const $=u()+o,h=$+l;r&&r.abort(),a=!0,N((()=>X(t,!0,"start"))),r=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,S(t),c(s)?(s=s(),V().then(m)):m())},invalidate(){p=!1},end(){a&&(d(),a=!1)}}}(o,Ie,{x:t[6],duration:500}),a.start()})),f=!0)},o(e){ee(r.$$.fragment,e),f=!1},d(e){e&&y(o),ie(r),d=!1,m()}}}function qe(t){let o,l,r,s,a,f,d,m,$,h=t[0].wgThanksMsg+"";return{c(){o=v("div"),l=v("div"),l.innerHTML='<p id="fsCloseIcon">X</p>',r=k(),s=v("div"),a=b(h),T(l,"class","fsCloseCont"),B(s,"width","61%"),B(s,"text-align","center"),B(s,"margin-top","7%"),B(s,"margin-left","20%"),T(o,"class","fsThanksMessageCont")},m(e,n){w(e,o,n),p(o,l),p(o,r),p(o,s),p(s,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 r,s=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}=s||ne;m&&(r=R(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(s)?V().then((()=>{s=s(),d()})):d(),{end(e){e&&s.tick&&s.tick(1,0),a&&(r&&S(t,r),a=!1)}}}(o,Ie,{x:t[7],duration:300}),d=!1},d(e){e&&y(o),e&&f&&f.end(),m=!1,$()}}}function Ne(e){let n,t,o,l,i=e[4]&&Le(e),c=e[3]&&Ae(e),r=e[5]&&qe(e);return{c(){n=v("fsContainer"),i&&i.c(),t=k(),c&&c.c(),o=k(),r&&r.c()},m(e,s){w(e,n,s),i&&i.m(n,null),p(n,t),c&&c.m(n,null),p(n,o),r&&r.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=Ae(e),c.c(),Z(c,1),c.m(n,o)):c&&(K(),ee(c,1,1,(()=>{c=null})),Y()),e[5]?r?(r.p(e,l),32&l&&Z(r,1)):(r=qe(e),r.c(),Z(r,1),r.m(n,null)):r&&(K(),ee(r,1,1,(()=>{r=null})),Y())},i(e){l||(Z(i),Z(c),Z(r),l=!0)},o(e){ee(i),ee(c),ee(r),l=!1},d(e){e&&y(n),i&&i.d(),c&&c.d(),r&&r.d()}}}function Fe(e,n,t){let o,{feedback:l}=n;console.log(l);let i="",c="",r="Feedback";r="en"==l.wgLanguage?" Feedback":"ar"==l.wgLanguage?"رأي":"Rétroaction",!0===l.wgAlternateColor?(i="white",c="white"):(i="black",c="black");let s="",a="",u=0,f=0,d=0,m=0,g=!1,p=!0,$=!1,h=0,w=0;0==Number(l.wgPosition)&&(s="center",a="row-reverse",u=5,f=0,d=30,m=0,h=-100,w=20),1==Number(l.wgPosition)&&(s="center",a="row",u=0,f=5,d=0,m=30,h=100,w=-20),2==Number(l.wgPosition)&&(s="flex-end",a="row-reverse",u=5,d=30,m=0,h=-100,w=20),3==Number(l.wgPosition)&&(s="flex-end",a="row",u=0,f=5,d=0,m=30,h=100,w=-20);let y=0,v="",x="",b="";const k=(e,n,t)=>{v=e,x=n,b=Number(t);let o={email:e,comment:n,reaction:t};if(1==y){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",s),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,r,g,p,$,h,w,(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)},()=>{y=1,0!=b&&k(v,x,b),t(3,g=!g),setTimeout((function(){t(4,p=!p)}),350)},i,s,a,u,f,d,m,o,function(e){c=e,t(1,c)},function(e){l=e,t(0,l)}]}class Oe extends se{constructor(e){super(),re(this,e,Fe,Ne,r,{feedback:0})}}function je(e){new Oe({target:document.body,props:{feedback:e}})}je({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{je 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 l(n){n.forEach(o)}function r(n){return"function"==typeof n}function a(n,e){return n!=n?e==e:n!==e||n&&"object"==typeof n||"function"==typeof n}function s(n){const e={};for(const t in n)"$"!==t[0]&&(e[t]=n[t]);return e}const c="undefined"!=typeof window;let u=c?()=>window.performance.now():()=>Date.now(),f=c?n=>requestAnimationFrame(n):n;const d=new Set;function p(n){d.forEach((e=>{e.c(n)||(d.delete(e),e.f())})),0!==d.size&&f(p)}function m(n){let e;return 0===d.size&&f(p),{promise:new Promise((t=>{d.add(e={c:n,f:t})})),abort(){d.delete(e)}}}function g(n,e){n.appendChild(e)}function h(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function x(n){const e=w("style");return function(n,e){g(n.head||n,e)}(h(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 E(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function B(n,e,t,o){null===t?n.style.removeProperty(e):n.style.setProperty(e,t,o?"important":"")}const M=new Map;let z,D=0;function S(n,e,t,o,i,l,r,a=0){const s=16.666/o;let c="{\n";for(let n=0;n<=1;n+=s){const o=e+(t-e)*l(n);c+=100*n+`%{${r(o,1-o)}}\n`}const u=c+`100% {${r(t,1-t)}}\n}`,f=`__svelte_${function(n){let e=5381,t=n.length;for(;t--;)e=(e<<5)-e^n.charCodeAt(t);return e>>>0}(u)}_${a}`,d=h(n),{stylesheet:p,rules:m}=M.get(d)||function(n,e){const t={stylesheet:x(e),rules:{}};return M.set(n,t),t}(d,n);m[f]||(m[f]=!0,p.insertRule(`@keyframes ${f} ${u}`,p.cssRules.length));const g=n.style.animation||"";return n.style.animation=`${g?`${g}, `:""}${f} ${o}ms linear ${i}ms 1 both`,D+=1,f}function R(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||f((()=>{D||(M.forEach((n=>{const{stylesheet:e}=n;let t=e.cssRules.length;for(;t--;)e.deleteRule(t);n.rules={}})),M.clear())})))}function I(n){z=n}const _=[],H=[],L=[],P=[],A=Promise.resolve();let q=!1;function N(n){L.push(n)}function F(n){P.push(n)}const j=new Set;let W,O=0;function U(){const n=z;do{for(;O<_.length;){const n=_[O];O++,I(n),V(n.$$)}for(I(null),_.length=0,O=0;H.length;)H.pop()();for(let n=0;n<L.length;n+=1){const e=L[n];j.has(e)||(j.add(e),e())}L.length=0}while(_.length);for(;P.length;)P.pop()();q=!1,j.clear(),I(n)}function V(n){if(null!==n.fragment){n.update(),l(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(N)}}function Q(){return W||(W=Promise.resolve(),W.then((()=>{W=null}))),W}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||l(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 ln(n,e,t,i){const{fragment:a,on_mount:s,on_destroy:c,after_update:u}=n.$$;a&&a.m(e,t),i||N((()=>{const e=s.map(o).filter(r);c?c.push(...e):l(e),n.$$.on_mount=[]})),u.forEach(N)}function rn(n,e){const t=n.$$;null!==t.fragment&&(l(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]&&(_.push(n),q||(q=!0,A.then(U)),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function sn(e,t,o,r,a,s,c,u=[-1]){const f=z;I(e);const d=e.$$={fragment:null,ctx:null,props:s,update:n,not_equal:a,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(f?f.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:t.target||f.$$.root};c&&c(d.root);let p=!1;if(d.ctx=o?o(e,t.props||{},((n,t,...o)=>{const i=o.length?o[0]:t;return d.ctx&&a(d.ctx[n],d.ctx[n]=i)&&(!d.skip_bound&&d.bound[n]&&d.bound[n](i),p&&an(e,n)),t})):[],d.update(),p=!0,l(d.before_update),d.fragment=!!r&&r(d.ctx),t.target){if(t.hydrate){const n=function(n){return Array.from(n.childNodes)}(t.target);d.fragment&&d.fragment.l(n),n.forEach(v)}else d.fragment&&d.fragment.c();t.intro&&Z(e.$$.fragment),ln(e,t.target,t.anchor,t.customElement),U()}I(f)}class cn{$destroy(){rn(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,l,r,a,s,c,u,f,d,p,m,h,x,w,b,k,C;return{c(){t=y("svg"),o=y("g"),i=y("g"),l=y("path"),r=y("g"),a=y("g"),s=y("g"),c=y("g"),u=y("g"),f=y("g"),d=y("g"),p=y("g"),m=y("g"),h=y("g"),x=y("g"),w=y("g"),b=y("g"),k=y("g"),C=y("g"),T(l,"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"),B(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,l),g(t,r),g(t,a),g(t,s),g(t,c),g(t,u),g(t,f),g(t,d),g(t,p),g(t,m),g(t,h),g(t,x),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 fn(n,e,t){let{fill:o=""}=e;return n.$$set=n=>{"fill"in n&&t(0,o=n.fill)},[o]}class dn extends cn{constructor(n){super(),sn(this,n,fn,un,a,{fill:0})}}function pn(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:l=!1}=e,{width:r="40px"}=e,{height:a="40px"}=e,c=[{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),s(n))),"name"in n&&o(5,i=n.name),"focusable"in n&&o(0,l=n.focusable),"width"in n&&o(1,r=n.width),"height"in n&&o(2,a=n.height)},e=s(e),[l,r,a,c,e,i]}class gn extends cn{constructor(n){super(),sn(this,n,mn,pn,a,{name:5,focusable:0,width:1,height:2})}}function hn(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 xn(e){let t,o,i,r,a,s,c,u,f,d,p,m=e[0].wgEmailReqMsg+"";function h(n,e){return 0==n[8]?yn:1==n[8]?wn:void 0}let x=h(e),y=x&&x(e);return{c(){t=w("div"),o=w("div"),i=b(m),r=k(),a=w("div"),a.innerHTML='<input type="text" id="fsEmailTextArea" placeholder="email@domain.com"/>',s=k(),c=w("div"),u=w("p"),u.innerHTML="<u>Skip</u>",f=k(),y&&y.c(),T(o,"id","fsEmailText"),T(a,"id","fsEmailInputCont"),T(u,"id","fsSkipText"),T(c,"class","fsEmailFooter"),T(t,"class","fsEmailContainer")},m(n,l){$(n,t,l),g(t,o),g(o,i),g(t,r),g(t,a),g(t,s),g(t,c),g(c,u),g(c,f),y&&y.m(c,null),d||(p=[C(a,"click",e[49]),C(u,"click",e[50])],d=!0)},p(n,e){1&e[0]&&m!==(m=n[0].wgEmailReqMsg+"")&&E(i,m),x===(x=h(n))&&y?y.p(n,e):(y&&y.d(1),y=x&&x(n),y&&(y.c(),y.m(c,null)))},i:n,o:n,d(n){n&&v(t),y&&y.d(),d=!1,l(p)}}}function $n(n){let e,t,o,i,r,a,s,c,u,f,d,p,m,h,x,y,b,E,B,M,z,D,S,R,I,_,H,L,P,A,q,N,F,j,W,O,U,V,Q,X,G,J,en,tn,on,ln;const rn=[kn,bn],an=[];function sn(n,e){return n[6]?0:0==n[6]?1:-1}~(r=sn(n))&&(a=an[r]=rn[r](n));const cn=[Tn,Cn],un=[];function fn(n,e){return n[6]?0:0==n[6]?1:-1}~(p=fn(n))&&(m=un[p]=cn[p](n));const dn=[Bn,En],pn=[];function mn(n,e){return n[6]?0:0==n[6]?1:-1}~(B=mn(n))&&(M=pn[B]=dn[B](n));const gn=[zn,Mn],hn=[];function xn(n,e){return n[6]?0:0==n[6]?1:-1}~(_=xn(n))&&(H=hn[_]=gn[_](n));const $n=[Sn,Dn],vn=[];function wn(n,e){return n[6]?0:0==n[6]?1:-1}function yn(n,e){return 0==n[8]?In:1==n[8]?Rn:void 0}~(F=wn(n))&&(j=vn[F]=$n[F](n));let _n=yn(n),Hn=_n&&_n(n);return{c(){e=w("div"),t=w("div"),o=w("div"),i=w("div"),a&&a.c(),s=k(),c=w("p"),c.textContent="Hate",u=k(),f=w("div"),d=w("div"),m&&m.c(),h=k(),x=w("p"),x.textContent="Dislike",y=k(),b=w("div"),E=w("div"),M&&M.c(),z=k(),D=w("p"),D.textContent="Neutral",S=k(),R=w("div"),I=w("div"),H&&H.c(),L=k(),P=w("p"),P.textContent="Like",A=k(),q=w("div"),N=w("div"),j&&j.c(),W=k(),O=w("p"),O.textContent="Love",U=k(),V=w("div"),Q=w("div"),X=k(),G=w("textarea"),J=k(),en=w("div"),Hn&&Hn.c(),T(i,"class","fsReactionIcon"),T(c,"class","fsReactionText"),T(c,"id","fsHateDiv"),T(o,"class","fsIconTextCont"),T(d,"class","fsReactionIcon"),T(x,"class","fsReactionText"),T(x,"id","fsDislikeDiv"),T(f,"class","fsIconTextCont"),T(E,"class","fsReactionIcon"),T(D,"class","fsReactionText"),T(D,"id","fsNeutralDiv"),T(b,"class","fsIconTextCont"),T(I,"class","fsReactionIcon"),T(P,"class","fsReactionText"),T(P,"id","fsLikeDiv"),T(R,"class","fsIconTextCont"),T(N,"class","fsReactionIcon"),T(O,"class","fsReactionText"),T(O,"id","fsLoveDiv"),T(q,"class","fsIconTextCont"),T(t,"class","fsIcons-second"),T(Q,"class","fsPointerDiv"),T(Q,"id","fsPointer"),T(G,"class","fsTextArea"),T(G,"placeholder","Tell us your experience..."),T(V,"class","fsTextAreaCont"),T(en,"class","fsFooter"),T(e,"class","fsCommentContainer")},m(l,a){$(l,e,a),g(e,t),g(t,o),g(o,i),~r&&an[r].m(i,null),g(o,s),g(o,c),g(t,u),g(t,f),g(f,d),~p&&un[p].m(d,null),g(f,h),g(f,x),g(t,y),g(t,b),g(b,E),~B&&pn[B].m(E,null),g(b,z),g(b,D),g(t,S),g(t,R),g(R,I),~_&&hn[_].m(I,null),g(R,L),g(R,P),g(t,A),g(t,q),g(q,N),~F&&vn[F].m(N,null),g(q,W),g(q,O),g(e,U),g(e,V),g(V,Q),g(V,X),g(V,G),g(e,J),g(e,en),Hn&&Hn.m(en,null),tn=!0,on||(ln=[C(o,"click",n[34]),C(f,"click",n[37]),C(b,"click",n[40]),C(R,"click",n[43]),C(N,"click",n[46]),C(G,"click",n[47])],on=!0)},p(n,e){let t=r;r=sn(n),r===t?~r&&an[r].p(n,e):(a&&(K(),nn(an[t],1,1,(()=>{an[t]=null})),Y()),~r?(a=an[r],a?a.p(n,e):(a=an[r]=rn[r](n),a.c()),Z(a,1),a.m(i,null)):a=null);let o=p;p=fn(n),p===o?~p&&un[p].p(n,e):(m&&(K(),nn(un[o],1,1,(()=>{un[o]=null})),Y()),~p?(m=un[p],m?m.p(n,e):(m=un[p]=cn[p](n),m.c()),Z(m,1),m.m(d,null)):m=null);let l=B;B=mn(n),B===l?~B&&pn[B].p(n,e):(M&&(K(),nn(pn[l],1,1,(()=>{pn[l]=null})),Y()),~B?(M=pn[B],M?M.p(n,e):(M=pn[B]=dn[B](n),M.c()),Z(M,1),M.m(E,null)):M=null);let s=_;_=xn(n),_===s?~_&&hn[_].p(n,e):(H&&(K(),nn(hn[s],1,1,(()=>{hn[s]=null})),Y()),~_?(H=hn[_],H?H.p(n,e):(H=hn[_]=gn[_](n),H.c()),Z(H,1),H.m(I,null)):H=null);let c=F;F=wn(n),F===c?~F&&vn[F].p(n,e):(j&&(K(),nn(vn[c],1,1,(()=>{vn[c]=null})),Y()),~F?(j=vn[F],j?j.p(n,e):(j=vn[F]=$n[F](n),j.c()),Z(j,1),j.m(N,null)):j=null),_n===(_n=yn(n))&&Hn?Hn.p(n,e):(Hn&&Hn.d(1),Hn=_n&&_n(n),Hn&&(Hn.c(),Hn.m(en,null)))},i(n){tn||(Z(a),Z(m),Z(M),Z(H),Z(j),tn=!0)},o(n){nn(a),nn(m),nn(M),nn(H),nn(j),tn=!1},d(n){n&&v(e),~r&&an[r].d(),~p&&un[p].d(),~B&&pn[B].d(),~_&&hn[_].d(),~F&&vn[F].d(),Hn&&Hn.d(),on=!1,l(ln)}}}function vn(n){let e,t,o,i,r,a,s,c,u,f,d,p,m,h,x,y,B,M,z,D,S,R,I,_,L,P,A,q,N,j,W,O,U,V,Q,X,G,J,K,Y,en,an,sn,cn,un=n[0].wgQuestion+"";function fn(e){n[22](e)}let dn={};function pn(e){n[24](e)}void 0!==n[2][0]&&(dn.name=n[2][0]),c=new gn({props:dn}),H.push((()=>tn(c,"name",fn)));let mn={};function hn(e){n[26](e)}void 0!==n[2][1]&&(mn.name=n[2][1]),x=new gn({props:mn}),H.push((()=>tn(x,"name",pn)));let xn={};function $n(e){n[28](e)}void 0!==n[2][2]&&(xn.name=n[2][2]),R=new gn({props:xn}),H.push((()=>tn(R,"name",hn)));let vn={};function wn(e){n[30](e)}void 0!==n[2][3]&&(vn.name=n[2][3]),N=new gn({props:vn}),H.push((()=>tn(N,"name",$n)));let yn={};return void 0!==n[2][4]&&(yn.name=n[2][4]),X=new gn({props:yn}),H.push((()=>tn(X,"name",wn))),{c(){e=w("div"),t=w("div"),o=b(un),i=k(),r=w("div"),a=w("div"),s=w("div"),on(c.$$.fragment),f=k(),d=w("p"),d.textContent="Hate",p=k(),m=w("div"),h=w("div"),on(x.$$.fragment),B=k(),M=w("p"),M.textContent="Dislike",z=k(),D=w("div"),S=w("div"),on(R.$$.fragment),_=k(),L=w("p"),L.textContent="Neutral",P=k(),A=w("div"),q=w("div"),on(N.$$.fragment),W=k(),O=w("p"),O.textContent="Like",U=k(),V=w("div"),Q=w("div"),on(X.$$.fragment),J=k(),K=w("p"),K.textContent="Love",Y=k(),en=w("p"),T(t,"id","fsTxt"),T(s,"class","fsReactionIcon"),T(d,"class","fsReactionText"),T(a,"class","fsIconTextCont"),T(h,"class","fsReactionIcon"),T(M,"class","fsReactionText"),T(m,"class","fsIconTextCont"),T(S,"class","fsReactionIcon"),T(L,"class","fsReactionText"),T(D,"class","fsIconTextCont"),T(q,"class","fsReactionIcon"),T(O,"class","fsReactionText"),T(A,"class","fsIconTextCont"),T(Q,"class","fsReactionIcon"),T(K,"class","fsReactionText"),T(V,"class","fsIconTextCont"),T(r,"class","fsIcons"),T(en,"id","test"),T(e,"class","fsReactionsContainer")},m(l,u){$(l,e,u),g(e,t),g(t,o),g(e,i),g(e,r),g(r,a),g(a,s),ln(c,s,null),g(a,f),g(a,d),g(r,p),g(r,m),g(m,h),ln(x,h,null),g(m,B),g(m,M),g(r,z),g(r,D),g(D,S),ln(R,S,null),g(D,_),g(D,L),g(r,P),g(r,A),g(A,q),ln(N,q,null),g(A,W),g(A,O),g(r,U),g(r,V),g(V,Q),ln(X,Q,null),g(V,J),g(V,K),g(e,Y),g(e,en),an=!0,sn||(cn=[C(a,"click",n[23]),C(m,"click",n[25]),C(D,"click",n[27]),C(A,"click",n[29]),C(V,"click",n[31])],sn=!0)},p(n,e){(!an||1&e[0])&&un!==(un=n[0].wgQuestion+"")&&E(o,un);const t={};!u&&4&e[0]&&(u=!0,t.name=n[2][0],F((()=>u=!1))),c.$set(t);const i={};!y&&4&e[0]&&(y=!0,i.name=n[2][1],F((()=>y=!1))),x.$set(i);const l={};!I&&4&e[0]&&(I=!0,l.name=n[2][2],F((()=>I=!1))),R.$set(l);const r={};!j&&4&e[0]&&(j=!0,r.name=n[2][3],F((()=>j=!1))),N.$set(r);const a={};!G&&4&e[0]&&(G=!0,a.name=n[2][4],F((()=>G=!1))),X.$set(a)},i(n){an||(Z(c.$$.fragment,n),Z(x.$$.fragment,n),Z(R.$$.fragment,n),Z(N.$$.fragment,n),Z(X.$$.fragment,n),an=!0)},o(n){nn(c.$$.fragment,n),nn(x.$$.fragment,n),nn(R.$$.fragment,n),nn(N.$$.fragment,n),nn(X.$$.fragment,n),an=!1},d(n){n&&v(e),rn(c),rn(x),rn(R),rn(N),rn(X),sn=!1,l(cn)}}}function wn(e){let t,o,i;return{c(){t=w("button"),t.innerHTML='<p class="fsSendButtonCommentComponent">Send</p>',T(t,"class","fsSendButtonContCommentComp")},m(n,l){$(n,t,l),o||(i=[C(t,"click",e[51]),C(t,"click",e[52])],o=!0)},p:n,d(n){n&&v(t),o=!1,l(i)}}}function yn(e){let t;return{c(){t=w("button"),t.innerHTML='<p class="fsCommentButtonTxtDisable">Send</p>',T(t,"class","fsCommentButtonContDisable"),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[33](e)}let l={};return void 0!==n[2][0]&&(l.name=n[2][0]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][0],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function kn(n){let e,t,o;function i(e){n[32](e)}let l={};return void 0!==n[2][0]&&(l.name=n[2][0]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][0],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function Cn(n){let e,t,o;function i(e){n[36](e)}let l={};return void 0!==n[2][1]&&(l.name=n[2][1]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][1],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function Tn(n){let e,t,o;function i(e){n[35](e)}let l={};return void 0!==n[2][1]&&(l.name=n[2][1]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][1],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function En(n){let e,t,o;function i(e){n[39](e)}let l={};return void 0!==n[2][2]&&(l.name=n[2][2]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][2],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function Bn(n){let e,t,o;function i(e){n[38](e)}let l={};return void 0!==n[2][2]&&(l.name=n[2][2]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][2],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function Mn(n){let e,t,o;function i(e){n[42](e)}let l={};return void 0!==n[2][3]&&(l.name=n[2][3]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][3],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function zn(n){let e,t,o;function i(e){n[41](e)}let l={};return void 0!==n[2][3]&&(l.name=n[2][3]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][3],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function Dn(n){let e,t,o;function i(e){n[45](e)}let l={};return void 0!==n[2][4]&&(l.name=n[2][4]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][4],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function Sn(n){let e,t,o;function i(e){n[44](e)}let l={};return void 0!==n[2][4]&&(l.name=n[2][4]),e=new gn({props:l}),H.push((()=>tn(e,"name",i))),{c(){on(e.$$.fragment)},m(n,t){ln(e,n,t),o=!0},p(n,o){const i={};!t&&4&o[0]&&(t=!0,i.name=n[2][4],F((()=>t=!1))),e.$set(i)},i(n){o||(Z(e.$$.fragment,n),o=!0)},o(n){nn(e.$$.fragment,n),o=!1},d(n){rn(e,n)}}}function Rn(e){let t,o,i;return{c(){t=w("button"),t.innerHTML='<p class="fsSendButtonCommentComponent">Send</p>',T(t,"class","fsSendButtonContCommentComp")},m(n,l){$(n,t,l),o||(i=C(t,"click",e[48]),o=!0)},p:n,d(n){n&&v(t),o=!1,i()}}}function In(e){let t;return{c(){t=w("button"),t.innerHTML='<p class="fsCommentButtonTxtDisable">Send</p>',T(t,"class","fsCommentButtonContDisable"),t.disabled=!0},m(n,e){$(n,t,e)},p:n,d(n){n&&v(t)}}}function _n(n){let e,t,o,i;const l=[vn,$n,xn],r=[];function a(n,e){return 1===n[7]?0:2===n[7]?1:3===n[7]?2:-1}return~(e=a(n))&&(t=r[e]=l[e](n)),{c(){t&&t.c(),o=b("")},m(n,t){~e&&r[e].m(n,t),$(n,o,t),i=!0},p(n,i){let s=e;e=a(n),e===s?~e&&r[e].p(n,i):(t&&(K(),nn(r[s],1,1,(()=>{r[s]=null})),Y()),~e?(t=r[e],t?t.p(n,i):(t=r[e]=l[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&&r[e].d(n),n&&v(o)}}}function Hn(n,e,t){let o,i,l,r,a,s,c,u,f,{feedbackData:d}=e;console.log("hiiih");let p,m,g=["hate","dislike","neutral","like","love"],h=g,x="",$="",v="",w="test",y=!0,b=0,{closeHandler:k=((n,e,t)=>{})}=e,{closeHandlerBeforeFinishing:C=((n,e,t)=>{})}=e;const T=()=>{let n=document.querySelector(".fsTextArea");p=setInterval((()=>{console.log(n.value),""===n.value?t(8,f=!1):t(8,f=!0)}),500)},E=()=>{let n=document.querySelector("#fsEmailTextArea");m=setInterval((()=>{console.log(n.value),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(n.value)&&""!==n.value?t(8,f=!0):t(8,f=!1),t(5,v=""),t(5,v=document.getElementById("fsEmailTextArea").value)}),500)},B=(n,e,u)=>{let f=w;var d;w=u,console.log(u),t(7,o=n),t(3,x=String(e)),t(2,h=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),C(v,$,x),b>0&&("hate"==(d=f)?t(20,l="none"):"dislike"==d?t(19,r="none"):"neutral"==d?t(18,a="none"):"like"==d?t(17,s="none"):"love"==d&&t(15,c="none")),b++,1==e?(t(16,i=11),t(20,l="block"),t(2,h[0]=g[0],h),t(6,y=!y)):2==e?(t(2,h[1]=g[1],h),t(16,i=30),t(19,r="block"),t(6,y=!y)):3==e?(t(2,h[2]=g[2],h),t(16,i=49),t(18,a="block"),t(6,y=!y)):4==e?(t(2,h[3]=g[3],h),t(16,i=68),t(17,s="block"),t(6,y=!y)):5==e&&(t(2,h[4]=g[4],h),t(16,i=87),t(15,c="block"),t(6,y=!y))},M=n=>{clearInterval(p),document.querySelector(".fsTextArea").value="",t(8,f=!1),t(7,o=n),t(4,$=document.getElementsByClassName("fsTextArea")[0].value)},z=()=>{console.log("444"),clearInterval(m),document.querySelector("#fsEmailTextArea").value=""};return n.$$set=n=>{"feedbackData"in n&&t(0,d=n.feedbackData),"closeHandler"in n&&t(1,k=n.closeHandler),"closeHandlerBeforeFinishing"in n&&t(14,C=n.closeHandlerBeforeFinishing)},n.$$.update=()=>{1&n.$$.dirty[0]&&t(21,u=d.wgAccentColor),65536&n.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",i+"%"),1048576&n.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",l),524288&n.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",r),262144&n.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",a),131072&n.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",s),32768&n.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",c),2097152&n.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},t(7,o=1),t(16,i=10),t(20,l="none"),t(19,r="none"),t(18,a="none"),t(17,s="none"),t(15,c="none"),t(8,f=!1),[d,k,h,x,$,v,y,o,f,T,E,B,M,z,C,c,i,s,a,r,l,u,function(e){n.$$.not_equal(h[0],e)&&(h[0]=e,t(2,h))},()=>B(2,1,"hate"),function(e){n.$$.not_equal(h[1],e)&&(h[1]=e,t(2,h))},()=>B(2,2,"dislike"),function(e){n.$$.not_equal(h[2],e)&&(h[2]=e,t(2,h))},()=>B(2,3,"neutral"),function(e){n.$$.not_equal(h[3],e)&&(h[3]=e,t(2,h))},()=>B(2,4,"like"),function(e){n.$$.not_equal(h[4],e)&&(h[4]=e,t(2,h))},()=>B(2,5,"love"),function(e){n.$$.not_equal(h[0],e)&&(h[0]=e,t(2,h))},function(e){n.$$.not_equal(h[0],e)&&(h[0]=e,t(2,h))},()=>B(2,1,"hate"),function(e){n.$$.not_equal(h[1],e)&&(h[1]=e,t(2,h))},function(e){n.$$.not_equal(h[1],e)&&(h[1]=e,t(2,h))},()=>B(2,2,"dislike"),function(e){n.$$.not_equal(h[2],e)&&(h[2]=e,t(2,h))},function(e){n.$$.not_equal(h[2],e)&&(h[2]=e,t(2,h))},()=>B(2,3,"neutral"),function(e){n.$$.not_equal(h[3],e)&&(h[3]=e,t(2,h))},function(e){n.$$.not_equal(h[3],e)&&(h[3]=e,t(2,h))},()=>B(2,4,"like"),function(e){n.$$.not_equal(h[4],e)&&(h[4]=e,t(2,h))},function(e){n.$$.not_equal(h[4],e)&&(h[4]=e,t(2,h))},()=>B(2,5,"love"),()=>T(),()=>M(3),()=>E(),()=>k(v,$,x),()=>k(v,$,x),()=>z()]}hn(".fsReactionsContainer {\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n height: 190px;\n }\n .fsIcons {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n margin-top: 11%;\n }\n #fsTxt {\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 .fsIconTextCont {\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 22px;\n }\n\n .fsReactionText {\n font-size: 12px;\n display: none;\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n \n }\n .fsIconTextCont:hover{\n pointer-events: auto;\n cursor: pointer;\n }\n .fsReactionIcon:hover + .fsReactionText {\n display: block;\n opacity: 0.8;\n }\n\n .fsCommentContainer{\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n height: 291px;\n pointer-events: auto;\n }\n .fsTextAreaCont{\n pointer-events: auto;\n width: 100%;\n height: 140px;\n background-color: #eaeaeb;\n margin-top: 17%;\n }\n .fsTextArea{\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 .fsSendButtonCommentComponent{\n pointer-events: auto;\n color: #ffff;\n font-size: 12px;\n text-align: center;\n margin-top: 7px;\n \n }\n .fsSendButtonContCommentComp{\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.fsCommentButtonContDisable{\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.fsCommentButtonTxtDisable{\n pointer-events: auto;\n color: black;\n font-size: 12px;\n text-align: center;\n margin-top: 7px;\n}\n .fsFooter{\n pointer-events: auto;\n display: flex;\n justify-content: flex-end;\n }\n\n .fsIcons-second{\n\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n margin-top: 6%;\n }\n .fsPointerDiv{\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 #fsHateDiv{\n display: var(--hateDisplay);\n }\n #fsDislikeDiv{\n display: var(--dislikeDisplay);\n }\n #fsNeutralDiv{\n display: var(--neutralDisplay);\n }\n #fsLikeDiv{\n display: var(--likeDisplay);\n }\n #fsLoveDiv{\n display: var(--loveDisplay);\n }\n .fsEmailContainer{\n pointer-events: auto;\n display: flex;\n flex-direction: column;\n height: 220px;\n }\n #fsEmailInputCont{\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 #fsEmailTextArea{\n pointer-events: auto;\n text-align: center;\n border: 0px;\n background-color: #eaeaeb;\n outline: none;\n }\n #fsEmailText{\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 .fsEmailFooter{\n pointer-events: auto;\n display: flex;\n justify-content: flex-end;\n flex-direction: row;\n }\n #fsSkipText{\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 #fsSkipText:hover{\n color: #666666;\n }",{insertAt:"top"});class Ln extends cn{constructor(n){super(),sn(this,n,Hn,_n,a,{feedbackData:0,closeHandler:1,closeHandlerBeforeFinishing:14},null,[-1,-1])}}function Pn(n){const e=n-1;return e*e*e+1}function An(n,{delay:e=0,duration:t=400,easing:o=Pn,x:i=0,y:l=0,opacity:r=0}={}){const a=getComputedStyle(n),s=+a.opacity,c="none"===a.transform?"":a.transform,u=s*(1-r);return{delay:e,duration:t,easing:o,css:(n,e)=>`\n\t\t\ttransform: ${c} translate(${(1-n)*i}px, ${(1-n)*l}px);\n\t\t\topacity: ${s-u*e}`}}function qn(n){let e,t,o,i,l,r,a,s,c,u;function f(e){n[21](e)}let d={};return void 0!==n[1]&&(d.fill=n[1]),r=new dn({props:d}),H.push((()=>tn(r,"fill",f))),{c(){e=w("div"),t=w("div"),o=b(n[2]),i=k(),l=w("div"),on(r.$$.fragment),T(t,"id","fsFeedbackTxt"),T(l,"id","fsMainIcon"),T(e,"class","fsWidget")},m(a,f){$(a,e,f),g(e,t),g(t,o),g(e,i),g(e,l),ln(r,l,null),s=!0,c||(u=C(e,"click",n[11]),c=!0)},p(n,e){(!s||4&e)&&E(o,n[2]);const t={};!a&&2&e&&(a=!0,t.fill=n[1],F((()=>a=!1))),r.$set(t)},i(n){s||(Z(r.$$.fragment,n),s=!0)},o(n){nn(r.$$.fragment,n),s=!1},d(n){n&&v(e),rn(r),c=!1,u()}}}function Nn(t){let o,i,l,a,s,c,f,d,p;function h(n){t[22](n)}let x={closeHandler:t[8],closeHandlerBeforeFinishing:t[9]};return void 0!==t[0]&&(x.feedbackData=t[0]),a=new Ln({props:x}),H.push((()=>tn(a,"feedbackData",h))),{c(){o=w("div"),i=w("div"),i.innerHTML='<p id="fsCloseIcon">X</p>',l=k(),on(a.$$.fragment),T(i,"class","fsCloseCont"),T(o,"class","fsCont")},m(n,e){$(n,o,e),g(o,i),g(o,l),ln(a,o,null),f=!0,d||(p=C(i,"click",t[12]),d=!0)},p(n,e){t=n;const o={};!s&&1&e&&(s=!0,o.feedbackData=t[0],F((()=>s=!1))),a.$set(o)},i(i){f||(Z(a.$$.fragment,i),c||N((()=>{c=function(t,o,i){let l,a,s=o(t,i),c=!1,f=0;function d(){l&&R(t,l)}function p(){const{delay:o=0,duration:i=300,easing:r=e,tick:p=n,css:g}=s||en;g&&(l=S(t,0,1,i,o,r,g,f++)),p(0,1);const h=u()+o,x=h+i;a&&a.abort(),c=!0,N((()=>X(t,!0,"start"))),a=m((n=>{if(c){if(n>=x)return p(1,0),X(t,!0,"end"),d(),c=!1;if(n>=h){const e=r((n-h)/i);p(e,1-e)}}return c}))}let g=!1;return{start(){g||(g=!0,R(t),r(s)?(s=s(),Q().then(p)):p())},invalidate(){g=!1},end(){c&&(d(),c=!1)}}}(o,An,{x:t[6],duration:500}),c.start()})),f=!0)},o(n){nn(a.$$.fragment,n),f=!1},d(n){n&&v(o),rn(a),d=!1,p()}}}function Fn(t){let o,i,a,s,c,f,d,p,h,x=t[0].wgThanksMsg+"";return{c(){o=w("div"),i=w("div"),i.innerHTML='<p id="fsCloseIcon">X</p>',a=k(),s=w("div"),c=b(x),T(i,"class","fsCloseCont"),B(s,"width","61%"),B(s,"text-align","center"),B(s,"margin-top","7%"),B(s,"margin-left","20%"),T(o,"class","fsThanksMessageCont")},m(n,e){$(n,o,e),g(o,i),g(o,a),g(o,s),g(s,c),d=!0,p||(h=C(i,"click",t[10]),p=!0)},p(n,e){t=n,(!d||1&e)&&x!==(x=t[0].wgThanksMsg+"")&&E(c,x)},i(n){d||(f&&f.end(1),d=!0)},o(i){f=function(t,o,i){let a,s=o(t,i),c=!0;const f=J;function d(){const{delay:o=0,duration:i=300,easing:r=e,tick:d=n,css:p}=s||en;p&&(a=S(t,1,0,i,o,r,p));const g=u()+o,h=g+i;N((()=>X(t,!1,"start"))),m((n=>{if(c){if(n>=h)return d(0,1),X(t,!1,"end"),--f.r||l(f.c),!1;if(n>=g){const e=r((n-g)/i);d(1-e,e)}}return c}))}return f.r+=1,r(s)?Q().then((()=>{s=s(),d()})):d(),{end(n){n&&s.tick&&s.tick(1,0),c&&(a&&R(t,a),c=!1)}}}(o,An,{x:t[7],duration:300}),d=!1},d(n){n&&v(o),n&&f&&f.end(),p=!1,h()}}}function jn(n){let e,t,o,i,l=n[4]&&qn(n),r=n[3]&&Nn(n),a=n[5]&&Fn(n);return{c(){e=w("fsContainer"),l&&l.c(),t=k(),r&&r.c(),o=k(),a&&a.c()},m(n,s){$(n,e,s),l&&l.m(e,null),g(e,t),r&&r.m(e,null),g(e,o),a&&a.m(e,null),i=!0},p(n,[i]){n[4]?l?(l.p(n,i),16&i&&Z(l,1)):(l=qn(n),l.c(),Z(l,1),l.m(e,t)):l&&(K(),nn(l,1,1,(()=>{l=null})),Y()),n[3]?r?(r.p(n,i),8&i&&Z(r,1)):(r=Nn(n),r.c(),Z(r,1),r.m(e,o)):r&&(K(),nn(r,1,1,(()=>{r=null})),Y()),n[5]?a?(a.p(n,i),32&i&&Z(a,1)):(a=Fn(n),a.c(),Z(a,1),a.m(e,null)):a&&(K(),nn(a,1,1,(()=>{a=null})),Y())},i(n){i||(Z(l),Z(r),Z(a),i=!0)},o(n){nn(l),nn(r),nn(a),i=!1},d(n){n&&v(e),l&&l.d(),r&&r.d(),a&&a.d()}}}function Wn(n,e,t){let o,{feedback:i}=e;console.log(i);let l="",r="",a="Feedback";a="en"==i.wgLanguage?" Feedback":"ar"==i.wgLanguage?"رأي":"Rétroaction",!0===i.wgAlternateColor?(l="white",r="white"):(l="black",r="black");let s="",c="",u=0,f=0,d=0,p=0,m=!1,g=!0,h=!1,x=0,$=0;0==Number(i.wgPosition)&&(s="center",c="row-reverse",u=5,f=0,d=30,p=0,x=-100,$=20),1==Number(i.wgPosition)&&(s="center",c="row",u=0,f=5,d=0,p=30,x=100,$=-20),2==Number(i.wgPosition)&&(s="flex-end",c="row-reverse",u=5,d=30,p=0,x=-100,$=20),3==Number(i.wgPosition)&&(s="flex-end",c="row",u=0,f=5,d=0,p=30,x=100,$=-20);let v=0,w="",y="",b="";const k=(n,e,t)=>{w=n,y=e,b=Number(t);let o={email:n,comment:e,reaction:t};if(1==v){console.log("hi",o);let n=new CustomEvent("fbEvent",{bubbles:!1,detail:o});window.dispatchEvent(n),console.log(o)}},C=()=>{t(3,m=!m),t(5,h=!h)};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",l),16384&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",s),32768&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",c),65536&n.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",u+"px"),131072&n.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",f+"px"),262144&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),524288&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",p+"px")},[i,r,a,m,g,h,x,$,(n,e,t)=>{let o={email:n,comment:e,reaction:Number(t)},i=new CustomEvent("fbEvent",{bubbles:!1,detail:o});window.dispatchEvent(i),console.log(o),C()},k,()=>{t(5,h=!h),setTimeout((function(){t(4,g=!g)}),350)},()=>{t(3,m=!m),t(4,g=!g)},()=>{v=1,0!=b&&k(w,y,b),t(3,m=!m),setTimeout((function(){t(4,g=!g)}),350)},l,s,c,u,f,d,p,o,function(n){r=n,t(1,r)},function(n){i=n,t(0,i)}]}hn("fsContainer{\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 .fsWidget {\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 #fsMainIcon {\n width: 60%;\n margin-left: 4%;\n cursor: pointer;\n }\n #fsFeedbackTxt {\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 .fsWidget: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 .fsCont {\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 .fsThanksMessageCont{\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 #fsCloseIcon{\n\t font-size: 15px;\n\t color: #ffff;\n\t font-weight: 600;\n\t font-family: system-ui;\n \tcursor: pointer;\n\t \n }\n .fsCloseCont{\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 On extends cn{constructor(n){super(),sn(this,n,Wn,jn,a,{feedback:0})}}function Un(n){new On({target:document.body,props:{feedback:n}})}Un({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{Un as feedbackCreator};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|