@fullsession.io/fs-feedback-widget 1.0.5 → 1.0.7

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/bundle.css CHANGED
@@ -1 +1,273 @@
1
- body.svelte-s6tzq0{width:100%;display:flex;flex-direction:var(--wgPositionVertical);position:absolute;top:0;right:0;bottom:0;left:0;background-color:#ebeef9;height:100%;align-items:var(--wgPositionHorizintal);padding:0}.widget.svelte-s6tzq0{background-color:var(--widgetColor);width:34px;height:112px;border-top-left-radius:var(--widgetLeftSideBorder) ;border-bottom-left-radius:var(--widgetLeftSideBorder);border-top-right-radius:var(--widgetRightSideBorder) ;border-bottom-right-radius:var(--widgetRightSideBorder);box-shadow:0.2px 0.2px 0.2px rgb(133, 130, 130);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;cursor:pointer;margin-top:5px}#mainIcon.svelte-s6tzq0{width:60%;margin-left:4%;cursor:pointer}#feedbackTxt.svelte-s6tzq0{color:var(--widgetTextColor);font-size:13px;writing-mode:vertical-lr;transform:rotate(180deg);cursor:pointer}.widget.svelte-s6tzq0:hover{width:35px;-webkit-box-shadow:0px 0px 35px 2px rgba(0, 0, 0, 0.24);box-shadow:0px 0px 35px 2px rgba(0, 0, 0, 0.24)}.cont.svelte-s6tzq0{width:320px;height:fit-content;background-color:rgb(255, 255, 255);margin-right:var(--widgetMarginRight);margin-left:var(--widgetMarginLeft);-webkit-box-shadow:rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;box-shadow:rgba(0, 0, 0, 0.35) 0px 6px 100px 0px}.thanksMessageCont.svelte-s6tzq0{width:320px;height:104px;background-color:rgb(255, 255, 255);margin-right:var(--widgetMarginRight);margin-left:var(--widgetMarginLeft);-webkit-box-shadow:rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;box-shadow:rgba(0, 0, 0, 0.35) 0px 6px 100px 0px}#closeIcon.svelte-s6tzq0{font-size:16px;color:#ffff;font-weight:600;font-family:system-ui;cursor:pointer}.closeCont.svelte-s6tzq0{background-color:#4d5167;width:27px;height:27px;border-radius:50%;display:flex;justify-content:center;align-items:center;margin-top:-15px;margin-left:85%;cursor:pointer}@media(min-width: 640px){body.svelte-s6tzq0{max-width:none}}.container.svelte-12ll7xn.svelte-12ll7xn{display:flex;flex-direction:column;height:190px}.icons.svelte-12ll7xn.svelte-12ll7xn{display:flex;flex-direction:row;justify-content:space-evenly;margin-top:11%}#txt.svelte-12ll7xn.svelte-12ll7xn{font-size:17px;display:flex;text-align:center;margin-top:5%;width:61%;margin-left:19%}.iconTextCont.svelte-12ll7xn.svelte-12ll7xn{display:flex;flex-direction:column;align-items:center;height:22px}.reactionText.svelte-12ll7xn.svelte-12ll7xn{font-size:9px;display:none}.iconTextCont.svelte-12ll7xn.svelte-12ll7xn:hover{cursor:pointer}.reactionIcon.svelte-12ll7xn:hover+.reactionText.svelte-12ll7xn{display:block;opacity:0.8}.commentContainer.svelte-12ll7xn.svelte-12ll7xn{display:flex;flex-direction:column;height:291px}.textAreaCont.svelte-12ll7xn.svelte-12ll7xn{width:100%;height:140px;background-color:#eaeaeb;margin-top:17%}.textArea.svelte-12ll7xn.svelte-12ll7xn{border:0px;width:85%;height:120px;background-color:#eaeaeb;margin-left:6%;outline:none;margin-top:4%;resize:none}.SendButtonCommentComponent.svelte-12ll7xn.svelte-12ll7xn{color:#ffff;font-size:12px;text-align:center;margin-top:1px}.sendButtonContCommentComp.svelte-12ll7xn.svelte-12ll7xn{background-color:var(--buttonColor);width:50px;height:29px;box-shadow:rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;border-radius:3px;margin-top:13px;margin-right:11px;cursor:pointer;border:0px}.CommentButtonContDisable.svelte-12ll7xn.svelte-12ll7xn{background-color:#cccccc;width:50px;height:29px;box-shadow:rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;border-radius:3px;margin-top:13px;margin-right:11px;cursor:not-allowed;border:0px}.CommentButtonTxtDisable.svelte-12ll7xn.svelte-12ll7xn{color:black;font-size:12px;text-align:center;margin-top:2px}.footer.svelte-12ll7xn.svelte-12ll7xn{display:flex;justify-content:flex-end}.icons-second.svelte-12ll7xn.svelte-12ll7xn{display:flex;flex-direction:row;justify-content:space-evenly;margin-top:6%}.pointerDiv.svelte-12ll7xn.svelte-12ll7xn{width:0;height:0;border-left:3px solid transparent;margin-top:-8px;border-right:5px solid transparent;border-bottom:8px solid #eaeaeb;margin-left:var(--pointerMargin)}#hateDiv.svelte-12ll7xn.svelte-12ll7xn{display:var(--hateDisplay)}#dislikeDiv.svelte-12ll7xn.svelte-12ll7xn{display:var(--dislikeDisplay)}#neutralDiv.svelte-12ll7xn.svelte-12ll7xn{display:var(--neutralDisplay)}#likeDiv.svelte-12ll7xn.svelte-12ll7xn{display:var(--likeDisplay)}#loveDiv.svelte-12ll7xn.svelte-12ll7xn{display:var(--loveDisplay)}.emailContainer.svelte-12ll7xn.svelte-12ll7xn{display:flex;flex-direction:column;height:220px}#emailInputCont.svelte-12ll7xn.svelte-12ll7xn{width:100%;height:46px;background-color:#eaeaeb;display:flex;justify-content:center;margin-top:10%}#EmailTextArea.svelte-12ll7xn.svelte-12ll7xn{text-align:center;border:0px;background-color:#eaeaeb;margin-top:3%;outline:none}#emailText.svelte-12ll7xn.svelte-12ll7xn{width:80%;text-align:center;margin-left:11%;margin-top:8%;line-height:1.29;font-size:17px}.emailFooter.svelte-12ll7xn.svelte-12ll7xn{display:flex;justify-content:flex-end;flex-direction:row}#skipText.svelte-12ll7xn.svelte-12ll7xn{color:#908f8f;cursor:pointer;font-size:13px;margin-top:6%;margin-right:4%;letter-spacing:normal}#skipText.svelte-12ll7xn.svelte-12ll7xn:hover{color:#666666}
1
+ body{
2
+ width: 100%;
3
+ display: flex;
4
+ flex-direction: var(--wgPositionVertical);
5
+ position: absolute;
6
+ top: 0; right: 0; bottom: 0; left: 0;
7
+ background-color: #ebeef9;
8
+ height: 100%;
9
+ align-items: var(--wgPositionHorizintal);
10
+ padding: 0;
11
+ }
12
+ .widget {
13
+ background-color: var(--widgetColor);
14
+ width: 34px;
15
+ height: 112px;
16
+ border-top-left-radius:var(--widgetLeftSideBorder) ;
17
+ border-bottom-left-radius: var(--widgetLeftSideBorder);
18
+ border-top-right-radius: var(--widgetRightSideBorder) ;
19
+ border-bottom-right-radius: var(--widgetRightSideBorder);
20
+ box-shadow: 0.2px 0.2px 0.2px rgb(133, 130, 130);
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: center;
24
+ justify-content: space-evenly;
25
+ cursor: pointer;
26
+ margin-top: 5px;
27
+ }
28
+ #mainIcon {
29
+ width: 60%;
30
+ margin-left: 4%;
31
+ cursor: pointer;
32
+ }
33
+ #feedbackTxt {
34
+ color: var(--widgetTextColor);
35
+ font-size: 13px;
36
+ writing-mode: vertical-lr;
37
+ transform: rotate(180deg);
38
+ cursor: pointer;
39
+ }
40
+ .widget:hover {
41
+ width: 35px;
42
+ -webkit-box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
43
+ box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
44
+ }
45
+ .cont {
46
+ width: 320px;
47
+ height: fit-content;
48
+ background-color: rgb(255, 255, 255);
49
+ margin-right: var(--widgetMarginRight);
50
+ margin-left: var(--widgetMarginLeft);
51
+ -webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
52
+ box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
53
+ }
54
+ .thanksMessageCont{
55
+ width: 320px;
56
+ height: 104px;
57
+ background-color: rgb(255, 255, 255);
58
+ margin-right: var(--widgetMarginRight);
59
+ margin-left: var(--widgetMarginLeft);
60
+ -webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
61
+ box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
62
+ }
63
+ #closeIcon{
64
+ font-size: 16px;
65
+ color: #ffff;
66
+ font-weight: 600;
67
+ font-family: system-ui;
68
+ cursor: pointer;
69
+
70
+ }
71
+ .closeCont{
72
+ background-color: #4d5167;
73
+ width: 27px;
74
+ height: 27px;
75
+ border-radius: 50%;
76
+ display: flex;
77
+ justify-content: center;
78
+ align-items: center;
79
+ margin-top: -15px;
80
+ margin-left: 85%;
81
+ cursor: pointer;
82
+ }
83
+
84
+
85
+
86
+
87
+
88
+ @media (min-width: 640px) {
89
+ body {
90
+ max-width: none;
91
+ }
92
+ }.container {
93
+ display: flex;
94
+ flex-direction: column;
95
+ height: 190px;
96
+ }
97
+ .icons {
98
+ display: flex;
99
+ flex-direction: row;
100
+ justify-content: space-evenly;
101
+ margin-top: 11%;
102
+ }
103
+ #txt {
104
+ font-size: 17px;
105
+ display: flex;
106
+ text-align: center;
107
+ margin-top: 5%;
108
+ width: 61%;
109
+ margin-left: 19%;
110
+ }
111
+
112
+ .iconTextCont {
113
+ display: flex;
114
+ flex-direction: column;
115
+ align-items: center;
116
+ height: 22px;
117
+ }
118
+
119
+ .reactionText {
120
+ font-size: 9px;
121
+ display: none;
122
+ }
123
+ .iconTextCont:hover{
124
+ cursor: pointer;
125
+ }
126
+ .reactionIcon:hover + .reactionText {
127
+ display: block;
128
+ opacity: 0.8;
129
+ }
130
+
131
+ .commentContainer{
132
+ display: flex;
133
+ flex-direction: column;
134
+ height: 291px;
135
+ }
136
+ .textAreaCont{
137
+ width: 100%;
138
+ height: 140px;
139
+ background-color: #eaeaeb;
140
+ margin-top: 17%;
141
+ }
142
+ .textArea{
143
+ border: 0px;
144
+ width: 85%;
145
+ height: 120px;
146
+ background-color: #eaeaeb;
147
+ margin-left: 6%;
148
+ outline: none;
149
+ margin-top: 4%;
150
+ resize: none;
151
+
152
+ }
153
+ .SendButtonCommentComponent{
154
+ color: #ffff;
155
+ font-size: 12px;
156
+ text-align: center;
157
+ margin-top: 1px;
158
+
159
+ }
160
+ .sendButtonContCommentComp{
161
+ background-color: var(--buttonColor);
162
+ width: 50px;
163
+ height: 29px;
164
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
165
+ border-radius: 3px;
166
+ margin-top: 13px;
167
+ margin-right: 11px;
168
+ cursor: pointer;
169
+ border: 0px;
170
+
171
+ }
172
+
173
+ .CommentButtonContDisable{
174
+ background-color: #cccccc;
175
+ width: 50px;
176
+ height: 29px;
177
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
178
+ border-radius: 3px;
179
+ margin-top: 13px;
180
+ margin-right: 11px;
181
+ cursor:not-allowed;
182
+ border: 0px;
183
+ }
184
+ .CommentButtonTxtDisable{
185
+ color: black;
186
+ font-size: 12px;
187
+ text-align: center;
188
+ margin-top: 2px;
189
+ }
190
+ .footer{
191
+ display: flex;
192
+ justify-content: flex-end;
193
+ }
194
+
195
+ .icons-second{
196
+ display: flex;
197
+ flex-direction: row;
198
+ justify-content: space-evenly;
199
+ margin-top: 6%;
200
+ }
201
+ .pointerDiv{
202
+ width: 0;
203
+ height: 0;
204
+ border-left: 3px solid transparent;
205
+ margin-top: -8px;
206
+ border-right: 5px solid transparent;
207
+ border-bottom: 8px solid #eaeaeb;
208
+ margin-left: var(--pointerMargin);
209
+
210
+
211
+ }
212
+ #hateDiv{
213
+ display: var(--hateDisplay);
214
+ }
215
+ #dislikeDiv{
216
+ display: var(--dislikeDisplay);
217
+ }
218
+ #neutralDiv{
219
+ display: var(--neutralDisplay);
220
+ }
221
+ #likeDiv{
222
+ display: var(--likeDisplay);
223
+ }
224
+ #loveDiv{
225
+ display: var(--loveDisplay);
226
+ }
227
+ .emailContainer{
228
+ display: flex;
229
+ flex-direction: column;
230
+ height: 220px;
231
+ }
232
+ #emailInputCont{
233
+ width: 100%;
234
+ height: 46px;
235
+ background-color: #eaeaeb;
236
+ display: flex;
237
+ /* align-items: center; */
238
+ justify-content: center;
239
+ margin-top: 10%;
240
+
241
+ }
242
+ #EmailTextArea{
243
+ text-align: center;
244
+ border: 0px;
245
+ background-color: #eaeaeb;
246
+ margin-top:3%;
247
+ outline: none;
248
+ }
249
+ #emailText{
250
+ width: 80%;
251
+ text-align: center;
252
+ margin-left: 11%;
253
+ margin-top: 8%;
254
+ line-height: 1.29;
255
+ font-size: 17px;
256
+ }
257
+ .emailFooter{
258
+ display: flex;
259
+ justify-content: flex-end;
260
+ flex-direction: row;
261
+ }
262
+ #skipText{
263
+ color: #908f8f;
264
+ cursor: pointer;
265
+ font-size: 13px;
266
+ margin-top: 6%;
267
+ margin-right: 4%;
268
+ letter-spacing: normal;
269
+
270
+ }
271
+ #skipText:hover{
272
+ color: #666666;
273
+ }
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var fsFeedbackWidget=function(e){"use strict";function t(){}const n=e=>e;function l(e,t){for(const n in t)e[n]=t[n];return e}function o(e){return e()}function c(){return Object.create(null)}function i(e){e.forEach(o)}function r(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}const u="undefined"!=typeof window;let d=u?()=>window.performance.now():()=>Date.now(),f=u?e=>requestAnimationFrame(e):t;const m=new Set;function $(e){m.forEach((t=>{t.c(e)||(m.delete(t),t.f())})),0!==m.size&&f($)}function p(e){let t;return 0===m.size&&f($),{promise:new Promise((n=>{m.add(t={c:e,f:n})})),abort(){m.delete(t)}}}function g(e,t){e.appendChild(t)}function v(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function x(e){const t=w("style");return function(e,t){g(e.head||e,t)}(v(e),t),t.sheet}function h(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode.removeChild(e)}function w(e){return document.createElement(e)}function b(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function k(e){return document.createTextNode(e)}function C(){return k(" ")}function z(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function M(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function T(e,t,n,l){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,l?"important":"")}const _=new Map;let E,D=0;function q(e,t,n,l,o,c,i,r=0){const s=16.666/l;let a="{\n";for(let e=0;e<=1;e+=s){const l=t+(n-t)*c(e);a+=100*e+`%{${i(l,1-l)}}\n`}const u=a+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${r}`,f=v(e),{stylesheet:m,rules:$}=_.get(f)||function(e,t){const n={stylesheet:x(t),rules:{}};return _.set(e,n),n}(f,e);$[d]||($[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${d} ${l}ms linear ${o}ms 1 both`,D+=1,d}function P(e,t){const n=(e.style.animation||"").split(", "),l=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-l.length;o&&(e.style.animation=l.join(", "),D-=o,D||f((()=>{D||(_.forEach((e=>{const{stylesheet:t}=e;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.rules={}})),_.clear())})))}function S(e){E=e}const H=[],L=[],I=[],A=[],N=Promise.resolve();let F=!1;function R(e){I.push(e)}function O(e){A.push(e)}const j=new Set;let Q,X=0;function V(){const e=E;do{for(;X<H.length;){const e=H[X];X++,S(e),W(e.$$)}for(S(null),H.length=0,X=0;L.length;)L.pop()();for(let e=0;e<I.length;e+=1){const t=I[e];j.has(t)||(j.add(t),t())}I.length=0}while(H.length);for(;A.length;)A.pop()();F=!1,j.clear(),S(e)}function W(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(R)}}function G(){return Q||(Q=Promise.resolve(),Q.then((()=>{Q=null}))),Q}function J(e,t,n){e.dispatchEvent(function(e,t,n=!1){const l=document.createEvent("CustomEvent");return l.initCustomEvent(e,n,!1,t),l}(`${t?"intro":"outro"}${n}`))}const K=new Set;let U;function Y(){U={r:0,c:[],p:U}}function Z(){U.r||i(U.c),U=U.p}function ee(e,t){e&&e.i&&(K.delete(e),e.i(t))}function te(e,t,n,l){if(e&&e.o){if(K.has(e))return;K.add(e),U.c.push((()=>{K.delete(e),l&&(n&&e.d(1),l())})),e.o(t)}}const ne={duration:0};function le(e,t,n){const l=e.$$.props[t];void 0!==l&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function oe(e){e&&e.c()}function ce(e,t,n,l){const{fragment:c,on_mount:s,on_destroy:a,after_update:u}=e.$$;c&&c.m(t,n),l||R((()=>{const t=s.map(o).filter(r);a?a.push(...t):i(t),e.$$.on_mount=[]})),u.forEach(R)}function ie(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function re(e,t){-1===e.$$.dirty[0]&&(H.push(e),F||(F=!0,N.then(V)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(e,n,l,o,r,s,a,u=[-1]){const d=E;S(e);const f=e.$$={fragment:null,ctx:null,props:s,update:t,not_equal:r,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:c(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let m=!1;if(f.ctx=l?l(e,n.props||{},((t,n,...l)=>{const o=l.length?l[0]:n;return f.ctx&&r(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),m&&re(e,t)),n})):[],f.update(),m=!0,i(f.before_update),f.fragment=!!o&&o(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(y)}else f.fragment&&f.fragment.c();n.intro&&ee(e.$$.fragment),ce(e,n.target,n.anchor,n.customElement),V()}S(d)}class ae{$destroy(){ie(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ue(e){let n,l,o,c,i,r,s,a,u,d,f,m,$,p,v,x,w,k,C;return{c(){n=b("svg"),l=b("g"),o=b("g"),c=b("path"),i=b("g"),r=b("g"),s=b("g"),a=b("g"),u=b("g"),d=b("g"),f=b("g"),m=b("g"),$=b("g"),p=b("g"),v=b("g"),x=b("g"),w=b("g"),k=b("g"),C=b("g"),M(c,"d","M428,41.534H30c-16.569,0-30,13.431-30,30v252c0,16.568,13.432,30,30,30h132.1l43.942,52.243 c5.7,6.777,14.103,10.69,22.959,10.69c8.856,0,17.258-3.912,22.959-10.69l43.942-52.243H428c16.568,0,30-13.432,30-30v-252 C458,54.965,444.568,41.534,428,41.534z M323.916,281.534H82.854c-8.284,0-15-6.716-15-15s6.716-15,15-15h241.062 c8.284,0,15,6.716,15,15S332.2,281.534,323.916,281.534z M67.854,198.755c0-8.284,6.716-15,15-15h185.103c8.284,0,15,6.716,15,15 s-6.716,15-15,15H82.854C74.57,213.755,67.854,207.039,67.854,198.755z M375.146,145.974H82.854c-8.284,0-15-6.716-15-15 s6.716-15,15-15h292.291c8.284,0,15,6.716,15,15C390.146,139.258,383.43,145.974,375.146,145.974z"),M(n,"fill",e[0]),M(n,"version","1.1"),M(n,"id","Layer_1"),M(n,"xmlns","http://www.w3.org/2000/svg"),M(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),M(n,"x","0px"),M(n,"y","0px"),M(n,"viewBox","0 0 458 458"),T(n,"enable-background","new 0 0 458 458"),M(n,"xml:space","preserve")},m(e,t){h(e,n,t),g(n,l),g(l,o),g(o,c),g(n,i),g(n,r),g(n,s),g(n,a),g(n,u),g(n,d),g(n,f),g(n,m),g(n,$),g(n,p),g(n,v),g(n,x),g(n,w),g(n,k),g(n,C)},p(e,[t]){1&t&&M(n,"fill",e[0])},i:t,o:t,d(e){e&&y(n)}}}function de(e,t,n){let{fill:l=""}=t;return e.$$set=e=>{"fill"in e&&n(0,l=e.fill)},[l]}class fe extends ae{constructor(e){super(),se(this,e,de,ue,s,{fill:0})}}function me(e){let n,l,o=e[3].svg+"";return{c(){n=b("svg"),M(n,"class",l=e[4].class),M(n,"focusable",e[0]),M(n,"width",e[1]),M(n,"height",e[2]),M(n,"viewBox","0 0 "+e[3].box+" "+(e[3].box-1))},m(e,t){h(e,n,t),n.innerHTML=o},p(e,[t]){16&t&&l!==(l=e[4].class)&&M(n,"class",l),1&t&&M(n,"focusable",e[0]),2&t&&M(n,"width",e[1]),4&t&&M(n,"height",e[2])},i:t,o:t,d(e){e&&y(n)}}}function $e(e,t,n){let{name:o}=t,{focusable:c=!1}=t,{width:i="40px"}=t,{height:r="40px"}=t,s=[{box:50,name:"love",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="#EF7C54" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLove",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"like",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="#FDC537" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLike",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"neutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="#F59F45" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedNeutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"dislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"unSelectedDislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"hate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'},{box:50,name:"unSelectedHate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'}].find((e=>e.name===o));return e.$$set=e=>{n(4,t=l(l({},t),a(e))),"name"in e&&n(5,o=e.name),"focusable"in e&&n(0,c=e.focusable),"width"in e&&n(1,i=e.width),"height"in e&&n(2,r=e.height)},t=a(t),[c,i,r,s,t,o]}class pe extends ae{constructor(e){super(),se(this,e,$e,me,s,{name:5,focusable:0,width:1,height:2})}}function ge(e){let n,l,o,c,r,s,a,u,d,f,m,$=e[0].wgEmailReqMsg+"";function p(e,t){return 0==e[5]?ye:1==e[5]?he:void 0}let v=p(e),x=v&&v(e);return{c(){n=w("div"),l=w("div"),o=k($),c=C(),r=w("div"),r.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com" class="svelte-12ll7xn"/>',s=C(),a=w("div"),u=w("p"),u.innerHTML="<u>Skip</u>",d=C(),x&&x.c(),M(l,"id","emailText"),M(l,"class","svelte-12ll7xn"),M(r,"id","emailInputCont"),M(r,"class","svelte-12ll7xn"),M(u,"id","skipText"),M(u,"class","svelte-12ll7xn"),M(a,"class","emailFooter svelte-12ll7xn"),M(n,"class","emailContainer svelte-12ll7xn")},m(t,i){h(t,n,i),g(n,l),g(l,o),g(n,c),g(n,r),g(n,s),g(n,a),g(a,u),g(a,d),x&&x.m(a,null),f||(m=[z(r,"click",e[44]),z(u,"click",e[45])],f=!0)},p(e,t){1&t[0]&&$!==($=e[0].wgEmailReqMsg+"")&&B(o,$),v===(v=p(e))&&x?x.p(e,t):(x&&x.d(1),x=v&&v(e),x&&(x.c(),x.m(a,null)))},i:t,o:t,d(e){e&&y(n),x&&x.d(),f=!1,i(m)}}}function ve(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,b,k,B,T,_,E,D,q,P,S,H,L,I,A,N,F,R,O,j,Q,X,V,W,G,J,K,U,ne,le,oe;const ce=[be,we],ie=[];function re(e,t){return e[3]?0:0==e[3]?1:-1}~(c=re(e))&&(r=ie[c]=ce[c](e));const se=[Ce,ke],ae=[];function ue(e,t){return e[3]?0:0==e[3]?1:-1}~(m=ue(e))&&($=ae[m]=se[m](e));const de=[Me,ze],fe=[];function me(e,t){return e[3]?0:0==e[3]?1:-1}~(B=me(e))&&(T=fe[B]=de[B](e));const $e=[Te,Be],pe=[];function ge(e,t){return e[3]?0:0==e[3]?1:-1}~(S=ge(e))&&(H=pe[S]=$e[S](e));const ve=[Ee,_e],xe=[];function he(e,t){return e[3]?0:0==e[3]?1:-1}function ye(e,t){return 0==e[5]?qe:1==e[5]?De:void 0}~(R=he(e))&&(O=xe[R]=ve[R](e));let Pe=ye(e),Se=Pe&&Pe(e);return{c(){t=w("div"),n=w("div"),l=w("div"),o=w("div"),r&&r.c(),s=C(),a=w("p"),a.textContent="Hate",u=C(),d=w("div"),f=w("div"),$&&$.c(),p=C(),v=w("p"),v.textContent="Dislike",x=C(),b=w("div"),k=w("div"),T&&T.c(),_=C(),E=w("p"),E.textContent="Neutral",D=C(),q=w("div"),P=w("div"),H&&H.c(),L=C(),I=w("p"),I.textContent="Like",A=C(),N=w("div"),F=w("div"),O&&O.c(),j=C(),Q=w("p"),Q.textContent="Love",X=C(),V=w("div"),W=w("div"),G=C(),J=w("textarea"),K=C(),U=w("div"),Se&&Se.c(),M(o,"class","reactionIcon svelte-12ll7xn"),M(a,"class","reactionText svelte-12ll7xn"),M(a,"id","hateDiv"),M(l,"class","iconTextCont svelte-12ll7xn"),M(f,"class","reactionIcon svelte-12ll7xn"),M(v,"class","reactionText svelte-12ll7xn"),M(v,"id","dislikeDiv"),M(d,"class","iconTextCont svelte-12ll7xn"),M(k,"class","reactionIcon svelte-12ll7xn"),M(E,"class","reactionText svelte-12ll7xn"),M(E,"id","neutralDiv"),M(b,"class","iconTextCont svelte-12ll7xn"),M(P,"class","reactionIcon svelte-12ll7xn"),M(I,"class","reactionText svelte-12ll7xn"),M(I,"id","likeDiv"),M(q,"class","iconTextCont svelte-12ll7xn"),M(F,"class","reactionIcon svelte-12ll7xn"),M(Q,"class","reactionText svelte-12ll7xn"),M(Q,"id","loveDiv"),M(N,"class","iconTextCont svelte-12ll7xn"),M(n,"class","icons-second svelte-12ll7xn"),M(W,"class","pointerDiv svelte-12ll7xn"),M(W,"id","pointer"),M(J,"class","textArea svelte-12ll7xn"),M(J,"placeholder","Tell us your experience..."),M(V,"class","textAreaCont svelte-12ll7xn"),M(U,"class","footer svelte-12ll7xn"),M(t,"class","commentContainer svelte-12ll7xn")},m(i,r){h(i,t,r),g(t,n),g(n,l),g(l,o),~c&&ie[c].m(o,null),g(l,s),g(l,a),g(n,u),g(n,d),g(d,f),~m&&ae[m].m(f,null),g(d,p),g(d,v),g(n,x),g(n,b),g(b,k),~B&&fe[B].m(k,null),g(b,_),g(b,E),g(n,D),g(n,q),g(q,P),~S&&pe[S].m(P,null),g(q,L),g(q,I),g(n,A),g(n,N),g(N,F),~R&&xe[R].m(F,null),g(N,j),g(N,Q),g(t,X),g(t,V),g(V,W),g(V,G),g(V,J),g(t,K),g(t,U),Se&&Se.m(U,null),ne=!0,le||(oe=[z(l,"click",e[29]),z(d,"click",e[32]),z(b,"click",e[35]),z(q,"click",e[38]),z(F,"click",e[41]),z(J,"click",e[42])],le=!0)},p(e,t){let n=c;c=re(e),c===n?~c&&ie[c].p(e,t):(r&&(Y(),te(ie[n],1,1,(()=>{ie[n]=null})),Z()),~c?(r=ie[c],r?r.p(e,t):(r=ie[c]=ce[c](e),r.c()),ee(r,1),r.m(o,null)):r=null);let l=m;m=ue(e),m===l?~m&&ae[m].p(e,t):($&&(Y(),te(ae[l],1,1,(()=>{ae[l]=null})),Z()),~m?($=ae[m],$?$.p(e,t):($=ae[m]=se[m](e),$.c()),ee($,1),$.m(f,null)):$=null);let i=B;B=me(e),B===i?~B&&fe[B].p(e,t):(T&&(Y(),te(fe[i],1,1,(()=>{fe[i]=null})),Z()),~B?(T=fe[B],T?T.p(e,t):(T=fe[B]=de[B](e),T.c()),ee(T,1),T.m(k,null)):T=null);let s=S;S=ge(e),S===s?~S&&pe[S].p(e,t):(H&&(Y(),te(pe[s],1,1,(()=>{pe[s]=null})),Z()),~S?(H=pe[S],H?H.p(e,t):(H=pe[S]=$e[S](e),H.c()),ee(H,1),H.m(P,null)):H=null);let a=R;R=he(e),R===a?~R&&xe[R].p(e,t):(O&&(Y(),te(xe[a],1,1,(()=>{xe[a]=null})),Z()),~R?(O=xe[R],O?O.p(e,t):(O=xe[R]=ve[R](e),O.c()),ee(O,1),O.m(F,null)):O=null),Pe===(Pe=ye(e))&&Se?Se.p(e,t):(Se&&Se.d(1),Se=Pe&&Pe(e),Se&&(Se.c(),Se.m(U,null)))},i(e){ne||(ee(r),ee($),ee(T),ee(H),ee(O),ne=!0)},o(e){te(r),te($),te(T),te(H),te(O),ne=!1},d(e){e&&y(t),~c&&ie[c].d(),~m&&ae[m].d(),~B&&fe[B].d(),~S&&pe[S].d(),~R&&xe[R].d(),Se&&Se.d(),le=!1,i(oe)}}}function xe(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,b,T,_,E,D,q,P,S,H,I,A,N,F,R,j,Q,X,V,W,G,J,K,U,Y,Z,ne,re,se,ae=e[0].wgQuestion+"";function ue(t){e[17](t)}let de={};function fe(t){e[19](t)}void 0!==e[2][0]&&(de.name=e[2][0]),a=new pe({props:de}),L.push((()=>le(a,"name",ue)));let me={};function $e(t){e[21](t)}void 0!==e[2][1]&&(me.name=e[2][1]),v=new pe({props:me}),L.push((()=>le(v,"name",fe)));let ge={};function ve(t){e[23](t)}void 0!==e[2][2]&&(ge.name=e[2][2]),q=new pe({props:ge}),L.push((()=>le(q,"name",$e)));let xe={};function he(t){e[25](t)}void 0!==e[2][3]&&(xe.name=e[2][3]),F=new pe({props:xe}),L.push((()=>le(F,"name",ve)));let ye={};return void 0!==e[2][4]&&(ye.name=e[2][4]),G=new pe({props:ye}),L.push((()=>le(G,"name",he))),{c(){t=w("div"),n=w("div"),l=k(ae),o=C(),c=w("div"),r=w("div"),s=w("div"),oe(a.$$.fragment),d=C(),f=w("p"),f.textContent="Hate",m=C(),$=w("div"),p=w("div"),oe(v.$$.fragment),b=C(),T=w("p"),T.textContent="Dislike",_=C(),E=w("div"),D=w("div"),oe(q.$$.fragment),S=C(),H=w("p"),H.textContent="Neutral",I=C(),A=w("div"),N=w("div"),oe(F.$$.fragment),j=C(),Q=w("p"),Q.textContent="Like",X=C(),V=w("div"),W=w("div"),oe(G.$$.fragment),K=C(),U=w("p"),U.textContent="Love",Y=C(),Z=w("p"),M(n,"id","txt"),M(n,"class","svelte-12ll7xn"),M(s,"class","reactionIcon svelte-12ll7xn"),M(f,"class","reactionText svelte-12ll7xn"),M(r,"class","iconTextCont svelte-12ll7xn"),M(p,"class","reactionIcon svelte-12ll7xn"),M(T,"class","reactionText svelte-12ll7xn"),M($,"class","iconTextCont svelte-12ll7xn"),M(D,"class","reactionIcon svelte-12ll7xn"),M(H,"class","reactionText svelte-12ll7xn"),M(E,"class","iconTextCont svelte-12ll7xn"),M(N,"class","reactionIcon svelte-12ll7xn"),M(Q,"class","reactionText svelte-12ll7xn"),M(A,"class","iconTextCont svelte-12ll7xn"),M(W,"class","reactionIcon svelte-12ll7xn"),M(U,"class","reactionText svelte-12ll7xn"),M(V,"class","iconTextCont svelte-12ll7xn"),M(c,"class","icons svelte-12ll7xn"),M(Z,"id","test"),M(t,"class","container svelte-12ll7xn")},m(i,u){h(i,t,u),g(t,n),g(n,l),g(t,o),g(t,c),g(c,r),g(r,s),ce(a,s,null),g(r,d),g(r,f),g(c,m),g(c,$),g($,p),ce(v,p,null),g($,b),g($,T),g(c,_),g(c,E),g(E,D),ce(q,D,null),g(E,S),g(E,H),g(c,I),g(c,A),g(A,N),ce(F,N,null),g(A,j),g(A,Q),g(c,X),g(c,V),g(V,W),ce(G,W,null),g(V,K),g(V,U),g(t,Y),g(t,Z),ne=!0,re||(se=[z(r,"click",e[18]),z($,"click",e[20]),z(E,"click",e[22]),z(A,"click",e[24]),z(V,"click",e[26])],re=!0)},p(e,t){(!ne||1&t[0])&&ae!==(ae=e[0].wgQuestion+"")&&B(l,ae);const n={};!u&&4&t[0]&&(u=!0,n.name=e[2][0],O((()=>u=!1))),a.$set(n);const o={};!x&&4&t[0]&&(x=!0,o.name=e[2][1],O((()=>x=!1))),v.$set(o);const c={};!P&&4&t[0]&&(P=!0,c.name=e[2][2],O((()=>P=!1))),q.$set(c);const i={};!R&&4&t[0]&&(R=!0,i.name=e[2][3],O((()=>R=!1))),F.$set(i);const r={};!J&&4&t[0]&&(J=!0,r.name=e[2][4],O((()=>J=!1))),G.$set(r)},i(e){ne||(ee(a.$$.fragment,e),ee(v.$$.fragment,e),ee(q.$$.fragment,e),ee(F.$$.fragment,e),ee(G.$$.fragment,e),ne=!0)},o(e){te(a.$$.fragment,e),te(v.$$.fragment,e),te(q.$$.fragment,e),te(F.$$.fragment,e),te(G.$$.fragment,e),ne=!1},d(e){e&&y(t),ie(a),ie(v),ie(q),ie(F),ie(G),re=!1,i(se)}}}function he(e){let n,l,o;return{c(){n=w("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',M(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=z(n,"click",e[46]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function ye(e){let n;return{c(){n=w("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',M(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){h(e,n,t)},p:t,d(e){e&&y(n)}}}function we(e){let t,n,l;function o(t){e[28](t)}let c={};return void 0!==e[2][0]&&(c.name=e[2][0]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function be(e){let t,n,l;function o(t){e[27](t)}let c={};return void 0!==e[2][0]&&(c.name=e[2][0]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][0],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function ke(e){let t,n,l;function o(t){e[31](t)}let c={};return void 0!==e[2][1]&&(c.name=e[2][1]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Ce(e){let t,n,l;function o(t){e[30](t)}let c={};return void 0!==e[2][1]&&(c.name=e[2][1]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][1],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function ze(e){let t,n,l;function o(t){e[34](t)}let c={};return void 0!==e[2][2]&&(c.name=e[2][2]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Me(e){let t,n,l;function o(t){e[33](t)}let c={};return void 0!==e[2][2]&&(c.name=e[2][2]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][2],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Be(e){let t,n,l;function o(t){e[37](t)}let c={};return void 0!==e[2][3]&&(c.name=e[2][3]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Te(e){let t,n,l;function o(t){e[36](t)}let c={};return void 0!==e[2][3]&&(c.name=e[2][3]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][3],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function _e(e){let t,n,l;function o(t){e[40](t)}let c={};return void 0!==e[2][4]&&(c.name=e[2][4]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function Ee(e){let t,n,l;function o(t){e[39](t)}let c={};return void 0!==e[2][4]&&(c.name=e[2][4]),t=new pe({props:c}),L.push((()=>le(t,"name",o))),{c(){oe(t.$$.fragment)},m(e,n){ce(t,e,n),l=!0},p(e,l){const o={};!n&&4&l[0]&&(n=!0,o.name=e[2][4],O((()=>n=!1))),t.$set(o)},i(e){l||(ee(t.$$.fragment,e),l=!0)},o(e){te(t.$$.fragment,e),l=!1},d(e){ie(t,e)}}}function De(e){let n,l,o;return{c(){n=w("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',M(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=z(n,"click",e[43]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function qe(e){let n;return{c(){n=w("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',M(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){h(e,n,t)},p:t,d(e){e&&y(n)}}}function Pe(e){let t,n,l,o;const c=[xe,ve,ge],i=[];function r(e,t){return 1===e[4]?0:2===e[4]?1:3===e[4]?2:-1}return~(t=r(e))&&(n=i[t]=c[t](e)),{c(){n&&n.c(),l=k("")},m(e,n){~t&&i[t].m(e,n),h(e,l,n),o=!0},p(e,o){let s=t;t=r(e),t===s?~t&&i[t].p(e,o):(n&&(Y(),te(i[s],1,1,(()=>{i[s]=null})),Z()),~t?(n=i[t],n?n.p(e,o):(n=i[t]=c[t](e),n.c()),ee(n,1),n.m(l.parentNode,l)):n=null)},i(e){o||(ee(n),o=!0)},o(e){te(n),o=!1},d(e){~t&&i[t].d(e),e&&y(l)}}}function Se(e,t,n){let l,o,c,i,r,s,a,u,d,f,{feedbackData:m}=t,$=["hate","dislike","neutral","like","love"],p=$,g="test",v=!0,x=0,{closeHandler:h=(()=>{})}=t;const y=()=>{let e=document.querySelector(".textArea");f=setInterval((()=>{console.log(e.value),""===e.value?n(5,d=!1):n(5,d=!0)}),500)},w=()=>{let e=document.querySelector("#EmailTextArea");setInterval((()=>{console.log(e.value),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e.value)&&""!==e.value?n(5,d=!0):n(5,d=!1)}),500)},b=(e,t,u)=>{let d=g;var f;g=u,console.log(u),n(4,l=e),n(2,p=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),x>0&&("hate"==(f=d)?n(15,c="none"):"dislike"==f?n(14,i="none"):"neutral"==f?n(13,r="none"):"like"==f?n(12,s="none"):"love"==f&&n(10,a="none")),x++,1==t?(n(11,o=11),n(15,c="block"),n(2,p[0]=$[0],p),n(3,v=!v)):2==t?(n(2,p[1]=$[1],p),n(11,o=30),n(14,i="block"),n(3,v=!v)):3==t?(n(2,p[2]=$[2],p),n(11,o=49),n(13,r="block"),n(3,v=!v)):4==t?(n(2,p[3]=$[3],p),n(11,o=68),n(12,s="block"),n(3,v=!v)):5==t&&(n(2,p[4]=$[4],p),n(11,o=87),n(10,a="block"),n(3,v=!v))},k=e=>{clearInterval(f),n(5,d=!1),n(4,l=e)};return e.$$set=e=>{"feedbackData"in e&&n(0,m=e.feedbackData),"closeHandler"in e&&n(1,h=e.closeHandler)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(16,u=m.wgAccentColor),2048&e.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",o+"%"),32768&e.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",c),16384&e.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",i),8192&e.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",r),4096&e.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",s),1024&e.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",a),65536&e.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},n(4,l=1),n(11,o=10),n(15,c="none"),n(14,i="none"),n(13,r="none"),n(12,s="none"),n(10,a="none"),n(5,d=!1),[m,h,p,v,l,d,y,w,b,k,a,o,s,r,i,c,u,function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},()=>b(2,1,"hate"),function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},()=>b(2,2,"dislike"),function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},()=>b(2,3,"neutral"),function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},()=>b(2,4,"like"),function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},()=>b(2,5,"love"),function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},()=>b(2,1,"hate"),function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},()=>b(2,2,"dislike"),function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},()=>b(2,3,"neutral"),function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},()=>b(2,4,"like"),function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},()=>b(2,5,"love"),()=>y(),()=>k(3),()=>w(),()=>h(),()=>h()]}class He extends ae{constructor(e){super(),se(this,e,Se,Pe,s,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function Le(e){const t=e-1;return t*t*t+1}function Ie(e,{delay:t=0,duration:n=400,easing:l=Le,x:o=0,y:c=0,opacity:i=0}={}){const r=getComputedStyle(e),s=+r.opacity,a="none"===r.transform?"":r.transform,u=s*(1-i);return{delay:t,duration:n,easing:l,css:(e,t)=>`\n\t\t\ttransform: ${a} translate(${(1-e)*o}px, ${(1-e)*c}px);\n\t\t\topacity: ${s-u*t}`}}function Ae(e){let t,n,l,o,c,i,r,s,a;function u(t){e[19](t)}let d={};return void 0!==e[1]&&(d.fill=e[1]),c=new fe({props:d}),L.push((()=>le(c,"fill",u))),{c(){t=w("div"),n=w("div"),n.textContent="Feedback",l=C(),o=w("div"),oe(c.$$.fragment),M(n,"id","feedbackTxt"),M(n,"class","svelte-s6tzq0"),M(o,"id","mainIcon"),M(o,"class","svelte-s6tzq0"),M(t,"class","widget svelte-s6tzq0")},m(i,u){h(i,t,u),g(t,n),g(t,l),g(t,o),ce(c,o,null),r=!0,s||(a=z(t,"click",e[9]),s=!0)},p(e,t){const n={};!i&&2&t&&(i=!0,n.fill=e[1],O((()=>i=!1))),c.$set(n)},i(e){r||(ee(c.$$.fragment,e),r=!0)},o(e){te(c.$$.fragment,e),r=!1},d(e){e&&y(t),ie(c),s=!1,a()}}}function Ne(e){let l,o,c,i,s,a,u,f,m;function $(t){e[20](t)}let v={closeHandler:e[7]};return void 0!==e[0]&&(v.feedbackData=e[0]),i=new He({props:v}),L.push((()=>le(i,"feedbackData",$))),{c(){l=w("div"),o=w("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',c=C(),oe(i.$$.fragment),M(o,"class","closeCont svelte-s6tzq0"),M(l,"class","cont svelte-s6tzq0")},m(t,n){h(t,l,n),g(l,o),g(l,c),ce(i,l,null),u=!0,f||(m=z(o,"click",e[10]),f=!0)},p(t,n){e=t;const l={};!s&&1&n&&(s=!0,l.feedbackData=e[0],O((()=>s=!1))),i.$set(l)},i(o){u||(ee(i.$$.fragment,o),a||R((()=>{a=function(e,l,o){let c,i,s=l(e,o),a=!1,u=0;function f(){c&&P(e,c)}function m(){const{delay:l=0,duration:o=300,easing:r=n,tick:m=t,css:$}=s||ne;$&&(c=q(e,0,1,o,l,r,$,u++)),m(0,1);const g=d()+l,v=g+o;i&&i.abort(),a=!0,R((()=>J(e,!0,"start"))),i=p((t=>{if(a){if(t>=v)return m(1,0),J(e,!0,"end"),f(),a=!1;if(t>=g){const e=r((t-g)/o);m(e,1-e)}}return a}))}let $=!1;return{start(){$||($=!0,P(e),r(s)?(s=s(),G().then(m)):m())},invalidate(){$=!1},end(){a&&(f(),a=!1)}}}(l,Ie,{x:e[5],duration:500}),a.start()})),u=!0)},o(e){te(i.$$.fragment,e),u=!1},d(e){e&&y(l),ie(i),f=!1,m()}}}function Fe(e){let l,o,c,s,a,u,f,m,$,v=e[0].wgThanksMsg+"";return{c(){l=w("div"),o=w("div"),o.innerHTML='<p id="closeIcon" class="svelte-s6tzq0">X</p>',c=C(),s=w("div"),a=k(v),M(o,"class","closeCont svelte-s6tzq0"),T(s,"width","61%"),T(s,"text-align","center"),T(s,"margin-top","7%"),T(s,"margin-left","20%"),M(l,"class","thanksMessageCont svelte-s6tzq0")},m(t,n){h(t,l,n),g(l,o),g(l,c),g(l,s),g(s,a),f=!0,m||($=z(o,"click",e[8]),m=!0)},p(t,n){e=t,(!f||1&n)&&v!==(v=e[0].wgThanksMsg+"")&&B(a,v)},i(e){f||(u&&u.end(1),f=!0)},o(o){u=function(e,l,o){let c,s=l(e,o),a=!0;const u=U;function f(){const{delay:l=0,duration:o=300,easing:r=n,tick:f=t,css:m}=s||ne;m&&(c=q(e,1,0,o,l,r,m));const $=d()+l,g=$+o;R((()=>J(e,!1,"start"))),p((t=>{if(a){if(t>=g)return f(0,1),J(e,!1,"end"),--u.r||i(u.c),!1;if(t>=$){const e=r((t-$)/o);f(1-e,e)}}return a}))}return u.r+=1,r(s)?G().then((()=>{s=s(),f()})):f(),{end(t){t&&s.tick&&s.tick(1,0),a&&(c&&P(e,c),a=!1)}}}(l,Ie,{x:e[6],duration:300}),f=!1},d(e){e&&y(l),e&&u&&u.end(),m=!1,$()}}}function Re(e){let t,n,l,o,c=e[3]&&Ae(e),i=e[2]&&Ne(e),r=e[4]&&Fe(e);return{c(){t=w("body"),c&&c.c(),n=C(),i&&i.c(),l=C(),r&&r.c(),M(t,"class","svelte-s6tzq0")},m(e,s){h(e,t,s),c&&c.m(t,null),g(t,n),i&&i.m(t,null),g(t,l),r&&r.m(t,null),o=!0},p(e,[o]){e[3]?c?(c.p(e,o),8&o&&ee(c,1)):(c=Ae(e),c.c(),ee(c,1),c.m(t,n)):c&&(Y(),te(c,1,1,(()=>{c=null})),Z()),e[2]?i?(i.p(e,o),4&o&&ee(i,1)):(i=Ne(e),i.c(),ee(i,1),i.m(t,l)):i&&(Y(),te(i,1,1,(()=>{i=null})),Z()),e[4]?r?(r.p(e,o),16&o&&ee(r,1)):(r=Fe(e),r.c(),ee(r,1),r.m(t,null)):r&&(Y(),te(r,1,1,(()=>{r=null})),Z())},i(e){o||(ee(c),ee(i),ee(r),o=!0)},o(e){te(c),te(i),te(r),o=!1},d(e){e&&y(t),c&&c.d(),i&&i.d(),r&&r.d()}}}function Oe(e,t,n){let l,{feedback:o}=t;console.log(o);let c="",i="";1===o.wgAlternateColor?(c="white",i="white"):(c="black",i="black");let r="",s="",a=0,u=0,d=0,f=0,m=!1,$=!0,p=!1,g=0,v=0;"0"==o.wgPosition&&(r="center",s="row-reverse",a=5,u=0,d=30,f=0,g=-100,v=20),"1"==o.wgPosition&&(r="center",s="row",a=0,u=5,d=0,f=30,g=100,v=-20),"2"==o.wgPosition&&(r="flex-end",s="row-reverse",a=5,d=30,f=0,g=-100,v=20),"3"==o.wgPosition&&(r="flex-end",s="row",a=0,u=5,d=0,f=30,g=100,v=-20);const x=()=>{n(2,m=!m),n(4,p=!p)};return e.$$set=e=>{"feedback"in e&&n(0,o=e.feedback)},e.$$.update=()=>{1&e.$$.dirty&&n(18,l=o.wgAccentColor),262144&e.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",l),2048&e.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",c),4096&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",r),8192&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",s),16384&e.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",a+"px"),32768&e.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",u+"px"),65536&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),131072&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",f+"px")},[o,i,m,$,p,g,v,()=>x(),()=>{n(4,p=!p),setTimeout((function(){n(3,$=!$)}),350)},()=>{n(2,m=!m),n(3,$=!$)},()=>{n(2,m=!m),setTimeout((function(){n(3,$=!$)}),350)},c,r,s,a,u,d,f,l,function(e){i=e,n(1,i)},function(e){o=e,n(0,o)}]}class je extends ae{constructor(e){super(),se(this,e,Oe,Re,s,{feedback:0})}}return e.feedbackCreator=function(e){new je({target:document.body,props:{feedback:e}})},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
1
+ var fsFeedbackWidget=function(n){"use strict";function t(){}const e=n=>n;function o(n,t){for(const e in t)n[e]=t[e];return n}function l(n){return n()}function c(){return Object.create(null)}function i(n){n.forEach(l)}function r(n){return"function"==typeof n}function a(n,t){return n!=n?t==t:n!==t||n&&"object"==typeof n||"function"==typeof n}function s(n){const t={};for(const e in n)"$"!==e[0]&&(t[e]=n[e]);return t}const u="undefined"!=typeof window;let d=u?()=>window.performance.now():()=>Date.now(),f=u?n=>requestAnimationFrame(n):t;const m=new Set;function $(n){m.forEach((t=>{t.c(n)||(m.delete(t),t.f())})),0!==m.size&&f($)}function p(n){let t;return 0===m.size&&f($),{promise:new Promise((e=>{m.add(t={c:n,f:e})})),abort(){m.delete(t)}}}function g(n,t){n.appendChild(t)}function h(n){if(!n)return document;const t=n.getRootNode?n.getRootNode():n.ownerDocument;return t&&t.host?t:n.ownerDocument}function x(n){const t=w("style");return function(n,t){g(n.head||n,t)}(h(n),t),t.sheet}function v(n,t,e){n.insertBefore(t,e||null)}function y(n){n.parentNode.removeChild(n)}function w(n){return document.createElement(n)}function b(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function k(n){return document.createTextNode(n)}function C(){return k(" ")}function M(n,t,e,o){return n.addEventListener(t,e,o),()=>n.removeEventListener(t,e,o)}function B(n,t,e){null==e?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function T(n,t){t=""+t,n.wholeText!==t&&(n.data=t)}function _(n,t,e,o){null===e?n.style.removeProperty(t):n.style.setProperty(t,e,o?"important":"")}const z=new Map;let E,D=0;function P(n,t,e,o,l,c,i,r=0){const a=16.666/o;let s="{\n";for(let n=0;n<=1;n+=a){const o=t+(e-t)*c(n);s+=100*n+`%{${i(o,1-o)}}\n`}const u=s+`100% {${i(e,1-e)}}\n}`,d=`__svelte_${function(n){let t=5381,e=n.length;for(;e--;)t=(t<<5)-t^n.charCodeAt(e);return t>>>0}(u)}_${r}`,f=h(n),{stylesheet:m,rules:$}=z.get(f)||function(n,t){const e={stylesheet:x(t),rules:{}};return z.set(n,e),e}(f,n);$[d]||($[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const p=n.style.animation||"";return n.style.animation=`${p?`${p}, `:""}${d} ${o}ms linear ${l}ms 1 both`,D+=1,d}function S(n,t){const e=(n.style.animation||"").split(", "),o=e.filter(t?n=>n.indexOf(t)<0:n=>-1===n.indexOf("__svelte")),l=e.length-o.length;l&&(n.style.animation=o.join(", "),D-=l,D||f((()=>{D||(z.forEach((n=>{const{stylesheet:t}=n;let e=t.cssRules.length;for(;e--;)t.deleteRule(e);n.rules={}})),z.clear())})))}function H(n){E=n}const L=[],q=[],I=[],A=[],N=Promise.resolve();let F=!1;function R(n){I.push(n)}function O(n){A.push(n)}const j=new Set;let Q,X=0;function V(){const n=E;do{for(;X<L.length;){const n=L[X];X++,H(n),W(n.$$)}for(H(null),L.length=0,X=0;q.length;)q.pop()();for(let n=0;n<I.length;n+=1){const t=I[n];j.has(t)||(j.add(t),t())}I.length=0}while(L.length);for(;A.length;)A.pop()();F=!1,j.clear(),H(n)}function W(n){if(null!==n.fragment){n.update(),i(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(R)}}function G(){return Q||(Q=Promise.resolve(),Q.then((()=>{Q=null}))),Q}function J(n,t,e){n.dispatchEvent(function(n,t,e=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(n,e,!1,t),o}(`${t?"intro":"outro"}${e}`))}const K=new Set;let U;function Y(){U={r:0,c:[],p:U}}function Z(){U.r||i(U.c),U=U.p}function nn(n,t){n&&n.i&&(K.delete(n),n.i(t))}function tn(n,t,e,o){if(n&&n.o){if(K.has(n))return;K.add(n),U.c.push((()=>{K.delete(n),o&&(e&&n.d(1),o())})),n.o(t)}}const en={duration:0};function on(n,t,e){const o=n.$$.props[t];void 0!==o&&(n.$$.bound[o]=e,e(n.$$.ctx[o]))}function ln(n){n&&n.c()}function cn(n,t,e,o){const{fragment:c,on_mount:a,on_destroy:s,after_update:u}=n.$$;c&&c.m(t,e),o||R((()=>{const t=a.map(l).filter(r);s?s.push(...t):i(t),n.$$.on_mount=[]})),u.forEach(R)}function rn(n,t){const e=n.$$;null!==e.fragment&&(i(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function an(n,t){-1===n.$$.dirty[0]&&(L.push(n),F||(F=!0,N.then(V)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function sn(n,e,o,l,r,a,s,u=[-1]){const d=E;H(n);const f=n.$$={fragment:null,ctx:null,props:a,update:t,not_equal:r,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:c(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};s&&s(f.root);let m=!1;if(f.ctx=o?o(n,e.props||{},((t,e,...o)=>{const l=o.length?o[0]:e;return f.ctx&&r(f.ctx[t],f.ctx[t]=l)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](l),m&&an(n,t)),e})):[],f.update(),m=!0,i(f.before_update),f.fragment=!!l&&l(f.ctx),e.target){if(e.hydrate){const n=function(n){return Array.from(n.childNodes)}(e.target);f.fragment&&f.fragment.l(n),n.forEach(y)}else f.fragment&&f.fragment.c();e.intro&&nn(n.$$.fragment),cn(n,e.target,e.anchor,e.customElement),V()}H(d)}class un{$destroy(){rn(this,1),this.$destroy=t}$on(n,t){const e=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return e.push(t),()=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}$set(n){var t;this.$$set&&(t=n,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function dn(n){let e,o,l,c,i,r,a,s,u,d,f,m,$,p,h,x,w,k,C;return{c(){e=b("svg"),o=b("g"),l=b("g"),c=b("path"),i=b("g"),r=b("g"),a=b("g"),s=b("g"),u=b("g"),d=b("g"),f=b("g"),m=b("g"),$=b("g"),p=b("g"),h=b("g"),x=b("g"),w=b("g"),k=b("g"),C=b("g"),B(c,"d","M428,41.534H30c-16.569,0-30,13.431-30,30v252c0,16.568,13.432,30,30,30h132.1l43.942,52.243 c5.7,6.777,14.103,10.69,22.959,10.69c8.856,0,17.258-3.912,22.959-10.69l43.942-52.243H428c16.568,0,30-13.432,30-30v-252 C458,54.965,444.568,41.534,428,41.534z M323.916,281.534H82.854c-8.284,0-15-6.716-15-15s6.716-15,15-15h241.062 c8.284,0,15,6.716,15,15S332.2,281.534,323.916,281.534z M67.854,198.755c0-8.284,6.716-15,15-15h185.103c8.284,0,15,6.716,15,15 s-6.716,15-15,15H82.854C74.57,213.755,67.854,207.039,67.854,198.755z M375.146,145.974H82.854c-8.284,0-15-6.716-15-15 s6.716-15,15-15h292.291c8.284,0,15,6.716,15,15C390.146,139.258,383.43,145.974,375.146,145.974z"),B(e,"fill",n[0]),B(e,"version","1.1"),B(e,"id","Layer_1"),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(e,"x","0px"),B(e,"y","0px"),B(e,"viewBox","0 0 458 458"),_(e,"enable-background","new 0 0 458 458"),B(e,"xml:space","preserve")},m(n,t){v(n,e,t),g(e,o),g(o,l),g(l,c),g(e,i),g(e,r),g(e,a),g(e,s),g(e,u),g(e,d),g(e,f),g(e,m),g(e,$),g(e,p),g(e,h),g(e,x),g(e,w),g(e,k),g(e,C)},p(n,[t]){1&t&&B(e,"fill",n[0])},i:t,o:t,d(n){n&&y(e)}}}function fn(n,t,e){let{fill:o=""}=t;return n.$$set=n=>{"fill"in n&&e(0,o=n.fill)},[o]}class mn extends un{constructor(n){super(),sn(this,n,fn,dn,a,{fill:0})}}function $n(n){let e,o,l=n[3].svg+"";return{c(){e=b("svg"),B(e,"class",o=n[4].class),B(e,"focusable",n[0]),B(e,"width",n[1]),B(e,"height",n[2]),B(e,"viewBox","0 0 "+n[3].box+" "+(n[3].box-1))},m(n,t){v(n,e,t),e.innerHTML=l},p(n,[t]){16&t&&o!==(o=n[4].class)&&B(e,"class",o),1&t&&B(e,"focusable",n[0]),2&t&&B(e,"width",n[1]),4&t&&B(e,"height",n[2])},i:t,o:t,d(n){n&&y(e)}}}function pn(n,t,e){let{name:l}=t,{focusable:c=!1}=t,{width:i="40px"}=t,{height:r="40px"}=t,a=[{box:50,name:"love",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="#EF7C54" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLove",svg:'\n <g transform="translate(.48)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.28"/>\n <circle fill="#3B3735" cx="7.241" cy="27.929" r="3.107"/>\n <circle fill="#3B3735" cx="42.759" cy="27.929" r="3.107"/>\n <path d="M31.236 28.764a2.245 2.245 0 0 1 2.002 3.246 9.086 9.086 0 0 1-8.234 4.779 9.104 9.104 0 0 1-8.242-4.779 2.245 2.245 0 0 1 2.002-3.246h12.472zM12.185 22.089a11.515 11.515 0 0 1-.766-.696c-1.036-1.062-2.29-2.803-1.741-4.352.392-1.21 1.81-1.567 2.95-1.488a4.743 4.743 0 0 1 1.793.487c.233.107.46.226.68.357a.33.33 0 0 0 .504-.261 3.046 3.046 0 0 1 1.358-2.611 2.385 2.385 0 0 1 2.906.635c1.21 1.314 1.088 3.133.584 4.726a20.017 20.017 0 0 1-1.34 3.255 8.12 8.12 0 0 1-.975 1.688c-.749.87-1.846.636-2.777.218a13.838 13.838 0 0 1-3.176-1.958zM37.807 22.089c.267-.218.523-.45.766-.696 1.035-1.062 2.289-2.803 1.74-4.352-.391-1.21-1.819-1.567-2.959-1.488a4.787 4.787 0 0 0-1.793.487 7.424 7.424 0 0 0-.678.357.33.33 0 0 1-.505-.261 3.046 3.046 0 0 0-1.358-2.611 2.385 2.385 0 0 0-2.907.635c-1.21 1.314-1.088 3.133-.583 4.726.35 1.122.799 2.211 1.34 3.255.256.6.584 1.167.975 1.688.749.87 1.854.636 2.776.218a13.838 13.838 0 0 0 3.186-1.958z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"like",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="#FDC537" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedLike",svg:'\n <g transform="translate(.86)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <ellipse fill="#3B3735" cx="14.156" cy="19.803" rx="2.167" ry="3.656"/>\n <ellipse fill="#3B3735" cx="35.844" cy="19.803" rx="2.167" ry="3.656"/>\n <path d="M32.444 28.1a2.643 2.643 0 0 1 2.37 3.824 10.738 10.738 0 0 1-9.69 5.629 10.738 10.738 0 0 1-9.69-5.63 2.643 2.643 0 0 1 2.36-3.822h14.65z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"neutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="#F59F45" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"unSelectedNeutral",svg:'\n <g transform="translate(.24)" fill-rule="nonzero" fill="gray">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="12.63"/>\n <circle fill="#3B3735" cx="15.169" cy="21.459" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="21.459" r="2.81"/>\n <path d="M40.847 31.351H9.135a.67.67 0 1 1 0-1.33h31.712a.67.67 0 1 1 0 1.33z" fill="#3B3735"/>\n </g>\n'},{box:50,name:"dislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"unSelectedDislike",svg:'\n <g transform="translate(.62)" fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.12"/>\n <path d="M33.333 34.743a1.762 1.762 0 0 0 1.718-2.211c-1.119-4.158-5.285-7.241-10.324-7.241s-9.206 3.083-10.324 7.24a1.762 1.762 0 0 0 1.718 2.212l6.536-.881a15.178 15.178 0 0 1 3.946 0l6.73.88z" fill="#3B3735"/>\n <circle fill="#3B3735" cx="15.169" cy="18.076" r="2.81"/>\n <circle fill="#3B3735" cx="34.831" cy="18.076" r="2.81"/>\n </g>'},{box:50,name:"hate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="#FEDCAB" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'},{box:50,name:"unSelectedHate",svg:'\n <g fill-rule="nonzero" fill="none">\n <rect fill="rgb(223 223 223)" width="50" height="50" rx="13.44"/>\n <path d="M20.218 23.865a1.144 1.144 0 0 1-.86-.336l-6.114-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.809 1.96h.043z" fill="#3B3735"/>\n <path d="M14.104 23.865a1.152 1.152 0 0 1-.817-1.961l6.114-6.115a1.152 1.152 0 0 1 1.626 1.634L14.92 23.53a1.161 1.161 0 0 1-.817.336zM36.352 23.865c-.303 0-.594-.121-.808-.336l-6.115-6.106a1.155 1.155 0 1 1 1.634-1.634l6.106 6.115a1.152 1.152 0 0 1-.817 1.96z" fill="#3B3735"/>\n <path d="M30.246 23.865a1.152 1.152 0 0 1-.86-1.961l6.115-6.115a1.152 1.152 0 0 1 1.625 1.634L31.02 23.53a1.161 1.161 0 0 1-.774.336zM35.604 34.546a6.02 6.02 0 0 1-3.389-1.376c-1.083-.783-1.96-1.075-2.339-.783-.157.15-.296.317-.413.5-.221.34-.484.652-.782.928-1.29 1.092-3.07.791-4.3.146a11.937 11.937 0 0 1-1.299-.86 8.11 8.11 0 0 0-1.35-.808 3.44 3.44 0 0 0-3.363.447l-.387.335c-.417.416-.906.75-1.444.99-1.815.722-3.337-.38-4.558-1.256a6.416 6.416 0 0 0-1.952-1.127 2.116 2.116 0 0 0-2.383 1.307 1.152 1.152 0 0 1-2.193-.696 4.386 4.386 0 0 1 5.16-2.838 8.505 8.505 0 0 1 2.71 1.505c1.169.86 1.78 1.212 2.356.989.281-.146.537-.338.756-.568l.508-.43a5.745 5.745 0 0 1 5.676-.757c.607.285 1.183.631 1.72 1.032.345.245.704.469 1.075.671.585.31 1.367.456 1.72.138a2.58 2.58 0 0 0 .395-.49 4.3 4.3 0 0 1 .86-1.015c.86-.68 2.512-1.11 5.092.757 1.109.808 1.978 1.109 2.373.86.153-.135.289-.288.404-.456.112-.138.215-.267.336-.396a4.807 4.807 0 0 1 7.869 1.72 1.152 1.152 0 1 1-2.202.68 2.52 2.52 0 0 0-3.956-.86l-.232.283c-.242.343-.532.65-.86.912a2.83 2.83 0 0 1-1.608.516z" fill="#3B3735"/>\n </g>'}].find((n=>n.name===l));return n.$$set=n=>{e(4,t=o(o({},t),s(n))),"name"in n&&e(5,l=n.name),"focusable"in n&&e(0,c=n.focusable),"width"in n&&e(1,i=n.width),"height"in n&&e(2,r=n.height)},t=s(t),[c,i,r,a,t,l]}class gn extends un{constructor(n){super(),sn(this,n,pn,$n,a,{name:5,focusable:0,width:1,height:2})}}function hn(n){let e,o,l,c,r,a,s,u,d,f,m,$=n[0].wgEmailReqMsg+"";function p(n,t){return 0==n[5]?wn:1==n[5]?yn:void 0}let h=p(n),x=h&&h(n);return{c(){e=w("div"),o=w("div"),l=k($),c=C(),r=w("div"),r.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com"/>',a=C(),s=w("div"),u=w("p"),u.innerHTML="<u>Skip</u>",d=C(),x&&x.c(),B(o,"id","emailText"),B(r,"id","emailInputCont"),B(u,"id","skipText"),B(s,"class","emailFooter"),B(e,"class","emailContainer")},m(t,i){v(t,e,i),g(e,o),g(o,l),g(e,c),g(e,r),g(e,a),g(e,s),g(s,u),g(s,d),x&&x.m(s,null),f||(m=[M(r,"click",n[44]),M(u,"click",n[45])],f=!0)},p(n,t){1&t[0]&&$!==($=n[0].wgEmailReqMsg+"")&&T(l,$),h===(h=p(n))&&x?x.p(n,t):(x&&x.d(1),x=h&&h(n),x&&(x.c(),x.m(s,null)))},i:t,o:t,d(n){n&&y(e),x&&x.d(),f=!1,i(m)}}}function xn(n){let t,e,o,l,c,r,a,s,u,d,f,m,$,p,h,x,b,k,T,_,z,E,D,P,S,H,L,q,I,A,N,F,R,O,j,Q,X,V,W,G,J,K,U,en,on,ln;const cn=[kn,bn],rn=[];function an(n,t){return n[3]?0:0==n[3]?1:-1}~(c=an(n))&&(r=rn[c]=cn[c](n));const sn=[Mn,Cn],un=[];function dn(n,t){return n[3]?0:0==n[3]?1:-1}~(m=dn(n))&&($=un[m]=sn[m](n));const fn=[Tn,Bn],mn=[];function $n(n,t){return n[3]?0:0==n[3]?1:-1}~(T=$n(n))&&(_=mn[T]=fn[T](n));const pn=[zn,_n],gn=[];function hn(n,t){return n[3]?0:0==n[3]?1:-1}~(H=hn(n))&&(L=gn[H]=pn[H](n));const xn=[Dn,En],vn=[];function yn(n,t){return n[3]?0:0==n[3]?1:-1}function wn(n,t){return 0==n[5]?Sn:1==n[5]?Pn:void 0}~(R=yn(n))&&(O=vn[R]=xn[R](n));let Hn=wn(n),Ln=Hn&&Hn(n);return{c(){t=w("div"),e=w("div"),o=w("div"),l=w("div"),r&&r.c(),a=C(),s=w("p"),s.textContent="Hate",u=C(),d=w("div"),f=w("div"),$&&$.c(),p=C(),h=w("p"),h.textContent="Dislike",x=C(),b=w("div"),k=w("div"),_&&_.c(),z=C(),E=w("p"),E.textContent="Neutral",D=C(),P=w("div"),S=w("div"),L&&L.c(),q=C(),I=w("p"),I.textContent="Like",A=C(),N=w("div"),F=w("div"),O&&O.c(),j=C(),Q=w("p"),Q.textContent="Love",X=C(),V=w("div"),W=w("div"),G=C(),J=w("textarea"),K=C(),U=w("div"),Ln&&Ln.c(),B(l,"class","reactionIcon"),B(s,"class","reactionText"),B(s,"id","hateDiv"),B(o,"class","iconTextCont"),B(f,"class","reactionIcon"),B(h,"class","reactionText"),B(h,"id","dislikeDiv"),B(d,"class","iconTextCont"),B(k,"class","reactionIcon"),B(E,"class","reactionText"),B(E,"id","neutralDiv"),B(b,"class","iconTextCont"),B(S,"class","reactionIcon"),B(I,"class","reactionText"),B(I,"id","likeDiv"),B(P,"class","iconTextCont"),B(F,"class","reactionIcon"),B(Q,"class","reactionText"),B(Q,"id","loveDiv"),B(N,"class","iconTextCont"),B(e,"class","icons-second"),B(W,"class","pointerDiv"),B(W,"id","pointer"),B(J,"class","textArea"),B(J,"placeholder","Tell us your experience..."),B(V,"class","textAreaCont"),B(U,"class","footer"),B(t,"class","commentContainer")},m(i,r){v(i,t,r),g(t,e),g(e,o),g(o,l),~c&&rn[c].m(l,null),g(o,a),g(o,s),g(e,u),g(e,d),g(d,f),~m&&un[m].m(f,null),g(d,p),g(d,h),g(e,x),g(e,b),g(b,k),~T&&mn[T].m(k,null),g(b,z),g(b,E),g(e,D),g(e,P),g(P,S),~H&&gn[H].m(S,null),g(P,q),g(P,I),g(e,A),g(e,N),g(N,F),~R&&vn[R].m(F,null),g(N,j),g(N,Q),g(t,X),g(t,V),g(V,W),g(V,G),g(V,J),g(t,K),g(t,U),Ln&&Ln.m(U,null),en=!0,on||(ln=[M(o,"click",n[29]),M(d,"click",n[32]),M(b,"click",n[35]),M(P,"click",n[38]),M(F,"click",n[41]),M(J,"click",n[42])],on=!0)},p(n,t){let e=c;c=an(n),c===e?~c&&rn[c].p(n,t):(r&&(Y(),tn(rn[e],1,1,(()=>{rn[e]=null})),Z()),~c?(r=rn[c],r?r.p(n,t):(r=rn[c]=cn[c](n),r.c()),nn(r,1),r.m(l,null)):r=null);let o=m;m=dn(n),m===o?~m&&un[m].p(n,t):($&&(Y(),tn(un[o],1,1,(()=>{un[o]=null})),Z()),~m?($=un[m],$?$.p(n,t):($=un[m]=sn[m](n),$.c()),nn($,1),$.m(f,null)):$=null);let i=T;T=$n(n),T===i?~T&&mn[T].p(n,t):(_&&(Y(),tn(mn[i],1,1,(()=>{mn[i]=null})),Z()),~T?(_=mn[T],_?_.p(n,t):(_=mn[T]=fn[T](n),_.c()),nn(_,1),_.m(k,null)):_=null);let a=H;H=hn(n),H===a?~H&&gn[H].p(n,t):(L&&(Y(),tn(gn[a],1,1,(()=>{gn[a]=null})),Z()),~H?(L=gn[H],L?L.p(n,t):(L=gn[H]=pn[H](n),L.c()),nn(L,1),L.m(S,null)):L=null);let s=R;R=yn(n),R===s?~R&&vn[R].p(n,t):(O&&(Y(),tn(vn[s],1,1,(()=>{vn[s]=null})),Z()),~R?(O=vn[R],O?O.p(n,t):(O=vn[R]=xn[R](n),O.c()),nn(O,1),O.m(F,null)):O=null),Hn===(Hn=wn(n))&&Ln?Ln.p(n,t):(Ln&&Ln.d(1),Ln=Hn&&Hn(n),Ln&&(Ln.c(),Ln.m(U,null)))},i(n){en||(nn(r),nn($),nn(_),nn(L),nn(O),en=!0)},o(n){tn(r),tn($),tn(_),tn(L),tn(O),en=!1},d(n){n&&y(t),~c&&rn[c].d(),~m&&un[m].d(),~T&&mn[T].d(),~H&&gn[H].d(),~R&&vn[R].d(),Ln&&Ln.d(),on=!1,i(ln)}}}function vn(n){let t,e,o,l,c,r,a,s,u,d,f,m,$,p,h,x,b,_,z,E,D,P,S,H,L,I,A,N,F,R,j,Q,X,V,W,G,J,K,U,Y,Z,en,an,sn,un=n[0].wgQuestion+"";function dn(t){n[17](t)}let fn={};function mn(t){n[19](t)}void 0!==n[2][0]&&(fn.name=n[2][0]),s=new gn({props:fn}),q.push((()=>on(s,"name",dn)));let $n={};function pn(t){n[21](t)}void 0!==n[2][1]&&($n.name=n[2][1]),h=new gn({props:$n}),q.push((()=>on(h,"name",mn)));let hn={};function xn(t){n[23](t)}void 0!==n[2][2]&&(hn.name=n[2][2]),P=new gn({props:hn}),q.push((()=>on(P,"name",pn)));let vn={};function yn(t){n[25](t)}void 0!==n[2][3]&&(vn.name=n[2][3]),F=new gn({props:vn}),q.push((()=>on(F,"name",xn)));let wn={};return void 0!==n[2][4]&&(wn.name=n[2][4]),G=new gn({props:wn}),q.push((()=>on(G,"name",yn))),{c(){t=w("div"),e=w("div"),o=k(un),l=C(),c=w("div"),r=w("div"),a=w("div"),ln(s.$$.fragment),d=C(),f=w("p"),f.textContent="Hate",m=C(),$=w("div"),p=w("div"),ln(h.$$.fragment),b=C(),_=w("p"),_.textContent="Dislike",z=C(),E=w("div"),D=w("div"),ln(P.$$.fragment),H=C(),L=w("p"),L.textContent="Neutral",I=C(),A=w("div"),N=w("div"),ln(F.$$.fragment),j=C(),Q=w("p"),Q.textContent="Like",X=C(),V=w("div"),W=w("div"),ln(G.$$.fragment),K=C(),U=w("p"),U.textContent="Love",Y=C(),Z=w("p"),B(e,"id","txt"),B(a,"class","reactionIcon"),B(f,"class","reactionText"),B(r,"class","iconTextCont"),B(p,"class","reactionIcon"),B(_,"class","reactionText"),B($,"class","iconTextCont"),B(D,"class","reactionIcon"),B(L,"class","reactionText"),B(E,"class","iconTextCont"),B(N,"class","reactionIcon"),B(Q,"class","reactionText"),B(A,"class","iconTextCont"),B(W,"class","reactionIcon"),B(U,"class","reactionText"),B(V,"class","iconTextCont"),B(c,"class","icons"),B(Z,"id","test"),B(t,"class","container")},m(i,u){v(i,t,u),g(t,e),g(e,o),g(t,l),g(t,c),g(c,r),g(r,a),cn(s,a,null),g(r,d),g(r,f),g(c,m),g(c,$),g($,p),cn(h,p,null),g($,b),g($,_),g(c,z),g(c,E),g(E,D),cn(P,D,null),g(E,H),g(E,L),g(c,I),g(c,A),g(A,N),cn(F,N,null),g(A,j),g(A,Q),g(c,X),g(c,V),g(V,W),cn(G,W,null),g(V,K),g(V,U),g(t,Y),g(t,Z),en=!0,an||(sn=[M(r,"click",n[18]),M($,"click",n[20]),M(E,"click",n[22]),M(A,"click",n[24]),M(V,"click",n[26])],an=!0)},p(n,t){(!en||1&t[0])&&un!==(un=n[0].wgQuestion+"")&&T(o,un);const e={};!u&&4&t[0]&&(u=!0,e.name=n[2][0],O((()=>u=!1))),s.$set(e);const l={};!x&&4&t[0]&&(x=!0,l.name=n[2][1],O((()=>x=!1))),h.$set(l);const c={};!S&&4&t[0]&&(S=!0,c.name=n[2][2],O((()=>S=!1))),P.$set(c);const i={};!R&&4&t[0]&&(R=!0,i.name=n[2][3],O((()=>R=!1))),F.$set(i);const r={};!J&&4&t[0]&&(J=!0,r.name=n[2][4],O((()=>J=!1))),G.$set(r)},i(n){en||(nn(s.$$.fragment,n),nn(h.$$.fragment,n),nn(P.$$.fragment,n),nn(F.$$.fragment,n),nn(G.$$.fragment,n),en=!0)},o(n){tn(s.$$.fragment,n),tn(h.$$.fragment,n),tn(P.$$.fragment,n),tn(F.$$.fragment,n),tn(G.$$.fragment,n),en=!1},d(n){n&&y(t),rn(s),rn(h),rn(P),rn(F),rn(G),an=!1,i(sn)}}}function yn(n){let e,o,l;return{c(){e=w("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(t,c){v(t,e,c),o||(l=M(e,"click",n[46]),o=!0)},p:t,d(n){n&&y(e),o=!1,l()}}}function wn(n){let e;return{c(){e=w("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){v(n,e,t)},p:t,d(n){n&&y(e)}}}function bn(n){let t,e,o;function l(t){n[28](t)}let c={};return void 0!==n[2][0]&&(c.name=n[2][0]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][0],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function kn(n){let t,e,o;function l(t){n[27](t)}let c={};return void 0!==n[2][0]&&(c.name=n[2][0]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][0],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function Cn(n){let t,e,o;function l(t){n[31](t)}let c={};return void 0!==n[2][1]&&(c.name=n[2][1]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][1],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function Mn(n){let t,e,o;function l(t){n[30](t)}let c={};return void 0!==n[2][1]&&(c.name=n[2][1]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][1],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function Bn(n){let t,e,o;function l(t){n[34](t)}let c={};return void 0!==n[2][2]&&(c.name=n[2][2]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][2],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function Tn(n){let t,e,o;function l(t){n[33](t)}let c={};return void 0!==n[2][2]&&(c.name=n[2][2]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][2],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function _n(n){let t,e,o;function l(t){n[37](t)}let c={};return void 0!==n[2][3]&&(c.name=n[2][3]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][3],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function zn(n){let t,e,o;function l(t){n[36](t)}let c={};return void 0!==n[2][3]&&(c.name=n[2][3]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][3],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function En(n){let t,e,o;function l(t){n[40](t)}let c={};return void 0!==n[2][4]&&(c.name=n[2][4]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][4],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function Dn(n){let t,e,o;function l(t){n[39](t)}let c={};return void 0!==n[2][4]&&(c.name=n[2][4]),t=new gn({props:c}),q.push((()=>on(t,"name",l))),{c(){ln(t.$$.fragment)},m(n,e){cn(t,n,e),o=!0},p(n,o){const l={};!e&&4&o[0]&&(e=!0,l.name=n[2][4],O((()=>e=!1))),t.$set(l)},i(n){o||(nn(t.$$.fragment,n),o=!0)},o(n){tn(t.$$.fragment,n),o=!1},d(n){rn(t,n)}}}function Pn(n){let e,o,l;return{c(){e=w("button"),e.innerHTML='<p class="SendButtonCommentComponent">Send</p>',B(e,"class","sendButtonContCommentComp")},m(t,c){v(t,e,c),o||(l=M(e,"click",n[43]),o=!0)},p:t,d(n){n&&y(e),o=!1,l()}}}function Sn(n){let e;return{c(){e=w("button"),e.innerHTML='<p class="CommentButtonTxtDisable">Send</p>',B(e,"class","CommentButtonContDisable"),e.disabled=!0},m(n,t){v(n,e,t)},p:t,d(n){n&&y(e)}}}function Hn(n){let t,e,o,l;const c=[vn,xn,hn],i=[];function r(n,t){return 1===n[4]?0:2===n[4]?1:3===n[4]?2:-1}return~(t=r(n))&&(e=i[t]=c[t](n)),{c(){e&&e.c(),o=k("")},m(n,e){~t&&i[t].m(n,e),v(n,o,e),l=!0},p(n,l){let a=t;t=r(n),t===a?~t&&i[t].p(n,l):(e&&(Y(),tn(i[a],1,1,(()=>{i[a]=null})),Z()),~t?(e=i[t],e?e.p(n,l):(e=i[t]=c[t](n),e.c()),nn(e,1),e.m(o.parentNode,o)):e=null)},i(n){l||(nn(e),l=!0)},o(n){tn(e),l=!1},d(n){~t&&i[t].d(n),n&&y(o)}}}function Ln(n,t,e){let o,l,c,i,r,a,s,u,d,f,{feedbackData:m}=t,$=["hate","dislike","neutral","like","love"],p=$,g="test",h=!0,x=0,{closeHandler:v=(()=>{})}=t;const y=()=>{let n=document.querySelector(".textArea");f=setInterval((()=>{console.log(n.value),""===n.value?e(5,d=!1):e(5,d=!0)}),500)},w=()=>{let n=document.querySelector("#EmailTextArea");setInterval((()=>{console.log(n.value),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(n.value)&&""!==n.value?e(5,d=!0):e(5,d=!1)}),500)},b=(n,t,u)=>{let d=g;var f;g=u,console.log(u),e(4,o=n),e(2,p=["unSelectedHate","unSelectedDislike","unSelectedNeutral","unSelectedLike","unSelectedLove"]),x>0&&("hate"==(f=d)?e(15,c="none"):"dislike"==f?e(14,i="none"):"neutral"==f?e(13,r="none"):"like"==f?e(12,a="none"):"love"==f&&e(10,s="none")),x++,1==t?(e(11,l=11),e(15,c="block"),e(2,p[0]=$[0],p),e(3,h=!h)):2==t?(e(2,p[1]=$[1],p),e(11,l=30),e(14,i="block"),e(3,h=!h)):3==t?(e(2,p[2]=$[2],p),e(11,l=49),e(13,r="block"),e(3,h=!h)):4==t?(e(2,p[3]=$[3],p),e(11,l=68),e(12,a="block"),e(3,h=!h)):5==t&&(e(2,p[4]=$[4],p),e(11,l=87),e(10,s="block"),e(3,h=!h))},k=n=>{clearInterval(f),e(5,d=!1),e(4,o=n)};return n.$$set=n=>{"feedbackData"in n&&e(0,m=n.feedbackData),"closeHandler"in n&&e(1,v=n.closeHandler)},n.$$.update=()=>{1&n.$$.dirty[0]&&e(16,u=m.wgAccentColor),2048&n.$$.dirty[0]&&document.documentElement.style.setProperty("--pointerMargin",l+"%"),32768&n.$$.dirty[0]&&document.documentElement.style.setProperty("--hateDisplay",c),16384&n.$$.dirty[0]&&document.documentElement.style.setProperty("--dislikeDisplay",i),8192&n.$$.dirty[0]&&document.documentElement.style.setProperty("--neutralDisplay",r),4096&n.$$.dirty[0]&&document.documentElement.style.setProperty("--likeDisplay",a),1024&n.$$.dirty[0]&&document.documentElement.style.setProperty("--loveDisplay",s),65536&n.$$.dirty[0]&&document.documentElement.style.setProperty("--buttonColor",u)},e(4,o=1),e(11,l=10),e(15,c="none"),e(14,i="none"),e(13,r="none"),e(12,a="none"),e(10,s="none"),e(5,d=!1),[m,v,p,h,o,d,y,w,b,k,s,l,a,r,i,c,u,function(t){n.$$.not_equal(p[0],t)&&(p[0]=t,e(2,p))},()=>b(2,1,"hate"),function(t){n.$$.not_equal(p[1],t)&&(p[1]=t,e(2,p))},()=>b(2,2,"dislike"),function(t){n.$$.not_equal(p[2],t)&&(p[2]=t,e(2,p))},()=>b(2,3,"neutral"),function(t){n.$$.not_equal(p[3],t)&&(p[3]=t,e(2,p))},()=>b(2,4,"like"),function(t){n.$$.not_equal(p[4],t)&&(p[4]=t,e(2,p))},()=>b(2,5,"love"),function(t){n.$$.not_equal(p[0],t)&&(p[0]=t,e(2,p))},function(t){n.$$.not_equal(p[0],t)&&(p[0]=t,e(2,p))},()=>b(2,1,"hate"),function(t){n.$$.not_equal(p[1],t)&&(p[1]=t,e(2,p))},function(t){n.$$.not_equal(p[1],t)&&(p[1]=t,e(2,p))},()=>b(2,2,"dislike"),function(t){n.$$.not_equal(p[2],t)&&(p[2]=t,e(2,p))},function(t){n.$$.not_equal(p[2],t)&&(p[2]=t,e(2,p))},()=>b(2,3,"neutral"),function(t){n.$$.not_equal(p[3],t)&&(p[3]=t,e(2,p))},function(t){n.$$.not_equal(p[3],t)&&(p[3]=t,e(2,p))},()=>b(2,4,"like"),function(t){n.$$.not_equal(p[4],t)&&(p[4]=t,e(2,p))},function(t){n.$$.not_equal(p[4],t)&&(p[4]=t,e(2,p))},()=>b(2,5,"love"),()=>y(),()=>k(3),()=>w(),()=>v(),()=>v()]}class qn extends un{constructor(n){super(),sn(this,n,Ln,Hn,a,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function In(n){const t=n-1;return t*t*t+1}function An(n,{delay:t=0,duration:e=400,easing:o=In,x:l=0,y:c=0,opacity:i=0}={}){const r=getComputedStyle(n),a=+r.opacity,s="none"===r.transform?"":r.transform,u=a*(1-i);return{delay:t,duration:e,easing:o,css:(n,t)=>`\n\t\t\ttransform: ${s} translate(${(1-n)*l}px, ${(1-n)*c}px);\n\t\t\topacity: ${a-u*t}`}}function Nn(n){let t,e,o,l,c,i,r,a,s;function u(t){n[19](t)}let d={};return void 0!==n[1]&&(d.fill=n[1]),c=new mn({props:d}),q.push((()=>on(c,"fill",u))),{c(){t=w("div"),e=w("div"),e.textContent="Feedback",o=C(),l=w("div"),ln(c.$$.fragment),B(e,"id","feedbackTxt"),B(l,"id","mainIcon"),B(t,"class","widget")},m(i,u){v(i,t,u),g(t,e),g(t,o),g(t,l),cn(c,l,null),r=!0,a||(s=M(t,"click",n[9]),a=!0)},p(n,t){const e={};!i&&2&t&&(i=!0,e.fill=n[1],O((()=>i=!1))),c.$set(e)},i(n){r||(nn(c.$$.fragment,n),r=!0)},o(n){tn(c.$$.fragment,n),r=!1},d(n){n&&y(t),rn(c),a=!1,s()}}}function Fn(n){let o,l,c,i,a,s,u,f,m;function $(t){n[20](t)}let h={closeHandler:n[7]};return void 0!==n[0]&&(h.feedbackData=n[0]),i=new qn({props:h}),q.push((()=>on(i,"feedbackData",$))),{c(){o=w("div"),l=w("div"),l.innerHTML='<p id="closeIcon">X</p>',c=C(),ln(i.$$.fragment),B(l,"class","closeCont"),B(o,"class","cont")},m(t,e){v(t,o,e),g(o,l),g(o,c),cn(i,o,null),u=!0,f||(m=M(l,"click",n[10]),f=!0)},p(t,e){n=t;const o={};!a&&1&e&&(a=!0,o.feedbackData=n[0],O((()=>a=!1))),i.$set(o)},i(l){u||(nn(i.$$.fragment,l),s||R((()=>{s=function(n,o,l){let c,i,a=o(n,l),s=!1,u=0;function f(){c&&S(n,c)}function m(){const{delay:o=0,duration:l=300,easing:r=e,tick:m=t,css:$}=a||en;$&&(c=P(n,0,1,l,o,r,$,u++)),m(0,1);const g=d()+o,h=g+l;i&&i.abort(),s=!0,R((()=>J(n,!0,"start"))),i=p((t=>{if(s){if(t>=h)return m(1,0),J(n,!0,"end"),f(),s=!1;if(t>=g){const n=r((t-g)/l);m(n,1-n)}}return s}))}let $=!1;return{start(){$||($=!0,S(n),r(a)?(a=a(),G().then(m)):m())},invalidate(){$=!1},end(){s&&(f(),s=!1)}}}(o,An,{x:n[5],duration:500}),s.start()})),u=!0)},o(n){tn(i.$$.fragment,n),u=!1},d(n){n&&y(o),rn(i),f=!1,m()}}}function Rn(n){let o,l,c,a,s,u,f,m,$,h=n[0].wgThanksMsg+"";return{c(){o=w("div"),l=w("div"),l.innerHTML='<p id="closeIcon">X</p>',c=C(),a=w("div"),s=k(h),B(l,"class","closeCont"),_(a,"width","61%"),_(a,"text-align","center"),_(a,"margin-top","7%"),_(a,"margin-left","20%"),B(o,"class","thanksMessageCont")},m(t,e){v(t,o,e),g(o,l),g(o,c),g(o,a),g(a,s),f=!0,m||($=M(l,"click",n[8]),m=!0)},p(t,e){n=t,(!f||1&e)&&h!==(h=n[0].wgThanksMsg+"")&&T(s,h)},i(n){f||(u&&u.end(1),f=!0)},o(l){u=function(n,o,l){let c,a=o(n,l),s=!0;const u=U;function f(){const{delay:o=0,duration:l=300,easing:r=e,tick:f=t,css:m}=a||en;m&&(c=P(n,1,0,l,o,r,m));const $=d()+o,g=$+l;R((()=>J(n,!1,"start"))),p((t=>{if(s){if(t>=g)return f(0,1),J(n,!1,"end"),--u.r||i(u.c),!1;if(t>=$){const n=r((t-$)/l);f(1-n,n)}}return s}))}return u.r+=1,r(a)?G().then((()=>{a=a(),f()})):f(),{end(t){t&&a.tick&&a.tick(1,0),s&&(c&&S(n,c),s=!1)}}}(o,An,{x:n[6],duration:300}),f=!1},d(n){n&&y(o),n&&u&&u.end(),m=!1,$()}}}function On(n){let t,e,o,l,c=n[3]&&Nn(n),i=n[2]&&Fn(n),r=n[4]&&Rn(n);return{c(){t=w("body"),c&&c.c(),e=C(),i&&i.c(),o=C(),r&&r.c()},m(n,a){v(n,t,a),c&&c.m(t,null),g(t,e),i&&i.m(t,null),g(t,o),r&&r.m(t,null),l=!0},p(n,[l]){n[3]?c?(c.p(n,l),8&l&&nn(c,1)):(c=Nn(n),c.c(),nn(c,1),c.m(t,e)):c&&(Y(),tn(c,1,1,(()=>{c=null})),Z()),n[2]?i?(i.p(n,l),4&l&&nn(i,1)):(i=Fn(n),i.c(),nn(i,1),i.m(t,o)):i&&(Y(),tn(i,1,1,(()=>{i=null})),Z()),n[4]?r?(r.p(n,l),16&l&&nn(r,1)):(r=Rn(n),r.c(),nn(r,1),r.m(t,null)):r&&(Y(),tn(r,1,1,(()=>{r=null})),Z())},i(n){l||(nn(c),nn(i),nn(r),l=!0)},o(n){tn(c),tn(i),tn(r),l=!1},d(n){n&&y(t),c&&c.d(),i&&i.d(),r&&r.d()}}}function jn(n,t,e){let o,{feedback:l}=t;console.log(l);let c="",i="";!0===l.wgAlternateColor?(c="white",i="white"):(c="black",i="black");let r="",a="",s=0,u=0,d=0,f=0,m=!1,$=!0,p=!1,g=0,h=0;0==Number(l.wgPosition)&&(r="center",a="row-reverse",s=5,u=0,d=30,f=0,g=-100,h=20),1==Number(l.wgPosition)&&(r="center",a="row",s=0,u=5,d=0,f=30,g=100,h=-20),2==Number(l.wgPosition)&&(r="flex-end",a="row-reverse",s=5,d=30,f=0,g=-100,h=20),3==Number(l.wgPosition)&&(r="flex-end",a="row",s=0,u=5,d=0,f=30,g=100,h=-20);const x=()=>{e(2,m=!m),e(4,p=!p)};return n.$$set=n=>{"feedback"in n&&e(0,l=n.feedback)},n.$$.update=()=>{1&n.$$.dirty&&e(18,o=l.wgAccentColor),262144&n.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",o),2048&n.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",c),4096&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",r),8192&n.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",a),16384&n.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",s+"px"),32768&n.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",u+"px"),65536&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),131072&n.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",f+"px")},[l,i,m,$,p,g,h,()=>x(),()=>{e(4,p=!p),setTimeout((function(){e(3,$=!$)}),350)},()=>{e(2,m=!m),e(3,$=!$)},()=>{e(2,m=!m),setTimeout((function(){e(3,$=!$)}),350)},c,r,a,s,u,d,f,o,function(n){i=n,e(1,i)},function(n){l=n,e(0,l)}]}class Qn extends un{constructor(n){super(),sn(this,n,jn,On,a,{feedback:0})}}return n.feedbackCreator=function(n){new Qn({target:document.body,props:{feedback:n}})},Object.defineProperty(n,"__esModule",{value:!0}),n}({});
2
2
  //# sourceMappingURL=index.js.map