@fullsession.io/fs-feedback-widget 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -109
- package/dist/bundle.css +1 -1
- 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/lib/index.js +1 -1
- package/package.json +31 -31
- package/src/App.svelte +235 -223
- package/src/Icons/mainIcon.svelte +25 -25
- package/src/Icons/reactionIcons.svelte +134 -134
- package/src/main.js +45 -45
- package/src/widgetPages/reactionPage.svelte +466 -466
package/README.md
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
*Psst — looking for a more complete solution? Check out [SvelteKit](https://kit.svelte.dev), the official framework for building web applications of all sizes, with a beautiful development experience and flexible filesystem-based routing.*
|
|
2
|
-
|
|
3
|
-
*Looking for a shareable component template instead? You can [use SvelteKit for that as well](https://kit.svelte.dev/docs#packaging) or the older [sveltejs/component-template](https://github.com/sveltejs/component-template)*
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# svelte app
|
|
8
|
-
|
|
9
|
-
This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template.
|
|
10
|
-
|
|
11
|
-
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx degit sveltejs/template svelte-app
|
|
15
|
-
cd svelte-app
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
*Note that you will need to have [Node.js](https://nodejs.org) installed.*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## Get started
|
|
22
|
-
|
|
23
|
-
Install the dependencies...
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
cd svelte-app
|
|
27
|
-
npm install
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
...then start [Rollup](https://rollupjs.org):
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm run dev
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Navigate to [localhost:8080](http://localhost:8080). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
|
|
37
|
-
|
|
38
|
-
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.
|
|
39
|
-
|
|
40
|
-
If you're using [Visual Studio Code](https://code.visualstudio.com/) we recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.
|
|
41
|
-
|
|
42
|
-
## Building and running in production mode
|
|
43
|
-
|
|
44
|
-
To create an optimised version of the app:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm run build
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com).
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## Single-page app mode
|
|
54
|
-
|
|
55
|
-
By default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.
|
|
56
|
-
|
|
57
|
-
If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for *any* path. You can make it so by editing the `"start"` command in package.json:
|
|
58
|
-
|
|
59
|
-
```js
|
|
60
|
-
"start": "sirv public --single"
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Using TypeScript
|
|
64
|
-
|
|
65
|
-
This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with:
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
node scripts/setupTypeScript.js
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Or remove the script via:
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
rm scripts/setupTypeScript.js
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
If you want to use `baseUrl` or `path` aliases within your `tsconfig`, you need to set up `@rollup/plugin-alias` to tell Rollup to resolve the aliases. For more info, see [this StackOverflow question](https://stackoverflow.com/questions/63427935/setup-tsconfig-path-in-svelte).
|
|
78
|
-
|
|
79
|
-
## Deploying to the web
|
|
80
|
-
|
|
81
|
-
### With [Vercel](https://vercel.com)
|
|
82
|
-
|
|
83
|
-
Install `vercel` if you haven't already:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
npm install -g vercel
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Then, from within your project folder:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
cd public
|
|
93
|
-
vercel deploy --name my-project
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### With [surge](https://surge.sh/)
|
|
97
|
-
|
|
98
|
-
Install `surge` if you haven't already:
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
npm install -g surge
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
Then, from within your project folder:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm run build
|
|
108
|
-
surge public my-project.surge.sh
|
|
109
|
-
```
|
|
1
|
+
*Psst — looking for a more complete solution? Check out [SvelteKit](https://kit.svelte.dev), the official framework for building web applications of all sizes, with a beautiful development experience and flexible filesystem-based routing.*
|
|
2
|
+
|
|
3
|
+
*Looking for a shareable component template instead? You can [use SvelteKit for that as well](https://kit.svelte.dev/docs#packaging) or the older [sveltejs/component-template](https://github.com/sveltejs/component-template)*
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# svelte app
|
|
8
|
+
|
|
9
|
+
This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template.
|
|
10
|
+
|
|
11
|
+
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx degit sveltejs/template svelte-app
|
|
15
|
+
cd svelte-app
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
*Note that you will need to have [Node.js](https://nodejs.org) installed.*
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Get started
|
|
22
|
+
|
|
23
|
+
Install the dependencies...
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
cd svelte-app
|
|
27
|
+
npm install
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
...then start [Rollup](https://rollupjs.org):
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm run dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Navigate to [localhost:8080](http://localhost:8080). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
|
|
37
|
+
|
|
38
|
+
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.
|
|
39
|
+
|
|
40
|
+
If you're using [Visual Studio Code](https://code.visualstudio.com/) we recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.
|
|
41
|
+
|
|
42
|
+
## Building and running in production mode
|
|
43
|
+
|
|
44
|
+
To create an optimised version of the app:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm run build
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com).
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Single-page app mode
|
|
54
|
+
|
|
55
|
+
By default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.
|
|
56
|
+
|
|
57
|
+
If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for *any* path. You can make it so by editing the `"start"` command in package.json:
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
"start": "sirv public --single"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Using TypeScript
|
|
64
|
+
|
|
65
|
+
This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
node scripts/setupTypeScript.js
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Or remove the script via:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
rm scripts/setupTypeScript.js
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If you want to use `baseUrl` or `path` aliases within your `tsconfig`, you need to set up `@rollup/plugin-alias` to tell Rollup to resolve the aliases. For more info, see [this StackOverflow question](https://stackoverflow.com/questions/63427935/setup-tsconfig-path-in-svelte).
|
|
78
|
+
|
|
79
|
+
## Deploying to the web
|
|
80
|
+
|
|
81
|
+
### With [Vercel](https://vercel.com)
|
|
82
|
+
|
|
83
|
+
Install `vercel` if you haven't already:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm install -g vercel
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Then, from within your project folder:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
cd public
|
|
93
|
+
vercel deploy --name my-project
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### With [surge](https://surge.sh/)
|
|
97
|
+
|
|
98
|
+
Install `surge` if you haven't already:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npm install -g surge
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Then, from within your project folder:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npm run build
|
|
108
|
+
surge public my-project.surge.sh
|
|
109
|
+
```
|
package/dist/bundle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
body.svelte-
|
|
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}
|
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=k("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 k(e){return document.createElement(e)}function w(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function C(){return b(" ")}function M(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function B(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function T(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function _(e,t,n,l){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,l?"important":"")}const q=new Map;let z,E=0;function D(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:$}=q.get(f)||function(e,t){const n={stylesheet:x(t),rules:{}};return q.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`,E+=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(", "),E-=o,E||f((()=>{E||(q.forEach((e=>{const{stylesheet:t}=e;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.rules={}})),q.clear())})))}function S(e){z=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=z;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,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=D(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)}}}function oe(e,t,n){const l=e.$$.props[t];void 0!==l&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function ce(e){e&&e.c()}function ie(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 re(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 se(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 ae(e,n,l,o,r,s,a,u=[-1]){const d=z;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&&se(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),ie(e,n.target,n.anchor,n.customElement),V()}S(d)}class ue{$destroy(){re(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 de(e){let n,l,o,c,i,r,s,a,u,d,f,m,$,p,v,x,k,b,C;return{c(){n=w("svg"),l=w("g"),o=w("g"),c=w("path"),i=w("g"),r=w("g"),s=w("g"),a=w("g"),u=w("g"),d=w("g"),f=w("g"),m=w("g"),$=w("g"),p=w("g"),v=w("g"),x=w("g"),k=w("g"),b=w("g"),C=w("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(n,"fill",e[0]),B(n,"version","1.1"),B(n,"id","Layer_1"),B(n,"xmlns","http://www.w3.org/2000/svg"),B(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(n,"x","0px"),B(n,"y","0px"),B(n,"viewBox","0 0 458 458"),_(n,"enable-background","new 0 0 458 458"),B(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,k),g(n,b),g(n,C)},p(e,[t]){1&t&&B(n,"fill",e[0])},i:t,o:t,d(e){e&&y(n)}}}function fe(e,t,n){let{fill:l=""}=t;return e.$$set=e=>{"fill"in e&&n(0,l=e.fill)},[l]}class me extends ue{constructor(e){super(),ae(this,e,fe,de,s,{fill:0})}}function $e(e){let n,l,o=e[3].svg+"";return{c(){n=w("svg"),B(n,"class",l=e[4].class),B(n,"focusable",e[0]),B(n,"width",e[1]),B(n,"height",e[2]),B(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)&&B(n,"class",l),1&t&&B(n,"focusable",e[0]),2&t&&B(n,"width",e[1]),4&t&&B(n,"height",e[2])},i:t,o:t,d(e){e&&y(n)}}}function pe(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 ge extends ue{constructor(e){super(),ae(this,e,pe,$e,s,{name:5,focusable:0,width:1,height:2})}}function ve(e){let n,l,o,c,r,s,a,u,d,f,m,$=e[0].wgEmailReqMsg+"";function p(e,t){return 0==e[5]?ke:1==e[5]?ye:void 0}let v=p(e),x=v&&v(e);return{c(){n=k("div"),l=k("div"),o=b($),c=C(),r=k("div"),r.innerHTML='<input type="text" id="EmailTextArea" placeholder="email@domain.com" class="svelte-12ll7xn"/>',s=C(),a=k("div"),u=k("p"),u.innerHTML="<u>Skip</u>",d=C(),x&&x.c(),B(l,"id","emailText"),B(l,"class","svelte-12ll7xn"),B(r,"id","emailInputCont"),B(r,"class","svelte-12ll7xn"),B(u,"id","skipText"),B(u,"class","svelte-12ll7xn"),B(a,"class","emailFooter svelte-12ll7xn"),B(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=[M(r,"click",e[44]),M(u,"click",e[45])],f=!0)},p(e,t){1&t[0]&&$!==($=e[0].wgEmailReqMsg+"")&&T(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 xe(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,w,b,T,_,q,z,E,D,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=[Me,Ce],ae=[];function ue(e,t){return e[3]?0:0==e[3]?1:-1}~(m=ue(e))&&($=ae[m]=se[m](e));const de=[Te,Be],fe=[];function me(e,t){return e[3]?0:0==e[3]?1:-1}~(T=me(e))&&(_=fe[T]=de[T](e));const $e=[qe,_e],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,ze],xe=[];function he(e,t){return e[3]?0:0==e[3]?1:-1}function ye(e,t){return 0==e[5]?Pe:1==e[5]?De:void 0}~(R=he(e))&&(O=xe[R]=ve[R](e));let ke=ye(e),Se=ke&&ke(e);return{c(){t=k("div"),n=k("div"),l=k("div"),o=k("div"),r&&r.c(),s=C(),a=k("p"),a.textContent="Hate",u=C(),d=k("div"),f=k("div"),$&&$.c(),p=C(),v=k("p"),v.textContent="Dislike",x=C(),w=k("div"),b=k("div"),_&&_.c(),q=C(),z=k("p"),z.textContent="Neutral",E=C(),D=k("div"),P=k("div"),H&&H.c(),L=C(),I=k("p"),I.textContent="Like",A=C(),N=k("div"),F=k("div"),O&&O.c(),j=C(),Q=k("p"),Q.textContent="Love",X=C(),V=k("div"),W=k("div"),G=C(),J=k("textarea"),K=C(),U=k("div"),Se&&Se.c(),B(o,"class","reactionIcon svelte-12ll7xn"),B(a,"class","reactionText svelte-12ll7xn"),B(a,"id","hateDiv"),B(l,"class","iconTextCont svelte-12ll7xn"),B(f,"class","reactionIcon svelte-12ll7xn"),B(v,"class","reactionText svelte-12ll7xn"),B(v,"id","dislikeDiv"),B(d,"class","iconTextCont svelte-12ll7xn"),B(b,"class","reactionIcon svelte-12ll7xn"),B(z,"class","reactionText svelte-12ll7xn"),B(z,"id","neutralDiv"),B(w,"class","iconTextCont svelte-12ll7xn"),B(P,"class","reactionIcon svelte-12ll7xn"),B(I,"class","reactionText svelte-12ll7xn"),B(I,"id","likeDiv"),B(D,"class","iconTextCont svelte-12ll7xn"),B(F,"class","reactionIcon svelte-12ll7xn"),B(Q,"class","reactionText svelte-12ll7xn"),B(Q,"id","loveDiv"),B(N,"class","iconTextCont svelte-12ll7xn"),B(n,"class","icons-second svelte-12ll7xn"),B(W,"class","pointerDiv svelte-12ll7xn"),B(W,"id","pointer"),B(J,"class","textArea svelte-12ll7xn"),B(J,"placeholder","Tell us your experience..."),B(V,"class","textAreaCont svelte-12ll7xn"),B(U,"class","footer svelte-12ll7xn"),B(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,w),g(w,b),~T&&fe[T].m(b,null),g(w,q),g(w,z),g(n,E),g(n,D),g(D,P),~S&&pe[S].m(P,null),g(D,L),g(D,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=[M(l,"click",e[29]),M(d,"click",e[32]),M(w,"click",e[35]),M(D,"click",e[38]),M(F,"click",e[41]),M(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=T;T=me(e),T===i?~T&&fe[T].p(e,t):(_&&(Y(),te(fe[i],1,1,(()=>{fe[i]=null})),Z()),~T?(_=fe[T],_?_.p(e,t):(_=fe[T]=de[T](e),_.c()),ee(_,1),_.m(b,null)):_=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),ke===(ke=ye(e))&&Se?Se.p(e,t):(Se&&Se.d(1),Se=ke&&ke(e),Se&&(Se.c(),Se.m(U,null)))},i(e){ne||(ee(r),ee($),ee(_),ee(H),ee(O),ne=!0)},o(e){te(r),te($),te(_),te(H),te(O),ne=!1},d(e){e&&y(t),~c&&ie[c].d(),~m&&ae[m].d(),~T&&fe[T].d(),~S&&pe[S].d(),~R&&xe[R].d(),Se&&Se.d(),le=!1,i(oe)}}}function he(e){let t,n,l,o,c,r,s,a,u,d,f,m,$,p,v,x,w,_,q,z,E,D,P,S,H,I,A,N,F,R,j,Q,X,V,W,G,J,K,U,Y,Z,ne,le,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 ge({props:de}),L.push((()=>oe(a,"name",ue)));let me={};function $e(t){e[21](t)}void 0!==e[2][1]&&(me.name=e[2][1]),v=new ge({props:me}),L.push((()=>oe(v,"name",fe)));let pe={};function ve(t){e[23](t)}void 0!==e[2][2]&&(pe.name=e[2][2]),D=new ge({props:pe}),L.push((()=>oe(D,"name",$e)));let xe={};function he(t){e[25](t)}void 0!==e[2][3]&&(xe.name=e[2][3]),F=new ge({props:xe}),L.push((()=>oe(F,"name",ve)));let ye={};return void 0!==e[2][4]&&(ye.name=e[2][4]),G=new ge({props:ye}),L.push((()=>oe(G,"name",he))),{c(){t=k("div"),n=k("div"),l=b(ae),o=C(),c=k("div"),r=k("div"),s=k("div"),ce(a.$$.fragment),d=C(),f=k("p"),f.textContent="Hate",m=C(),$=k("div"),p=k("div"),ce(v.$$.fragment),w=C(),_=k("p"),_.textContent="Dislike",q=C(),z=k("div"),E=k("div"),ce(D.$$.fragment),S=C(),H=k("p"),H.textContent="Neutral",I=C(),A=k("div"),N=k("div"),ce(F.$$.fragment),j=C(),Q=k("p"),Q.textContent="Like",X=C(),V=k("div"),W=k("div"),ce(G.$$.fragment),K=C(),U=k("p"),U.textContent="Love",Y=C(),Z=k("p"),B(n,"id","txt"),B(n,"class","svelte-12ll7xn"),B(s,"class","reactionIcon svelte-12ll7xn"),B(f,"class","reactionText svelte-12ll7xn"),B(r,"class","iconTextCont svelte-12ll7xn"),B(p,"class","reactionIcon svelte-12ll7xn"),B(_,"class","reactionText svelte-12ll7xn"),B($,"class","iconTextCont svelte-12ll7xn"),B(E,"class","reactionIcon svelte-12ll7xn"),B(H,"class","reactionText svelte-12ll7xn"),B(z,"class","iconTextCont svelte-12ll7xn"),B(N,"class","reactionIcon svelte-12ll7xn"),B(Q,"class","reactionText svelte-12ll7xn"),B(A,"class","iconTextCont svelte-12ll7xn"),B(W,"class","reactionIcon svelte-12ll7xn"),B(U,"class","reactionText svelte-12ll7xn"),B(V,"class","iconTextCont svelte-12ll7xn"),B(c,"class","icons svelte-12ll7xn"),B(Z,"id","test"),B(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),ie(a,s,null),g(r,d),g(r,f),g(c,m),g(c,$),g($,p),ie(v,p,null),g($,w),g($,_),g(c,q),g(c,z),g(z,E),ie(D,E,null),g(z,S),g(z,H),g(c,I),g(c,A),g(A,N),ie(F,N,null),g(A,j),g(A,Q),g(c,X),g(c,V),g(V,W),ie(G,W,null),g(V,K),g(V,U),g(t,Y),g(t,Z),ne=!0,le||(se=[M(r,"click",e[18]),M($,"click",e[20]),M(z,"click",e[22]),M(A,"click",e[24]),M(V,"click",e[26])],le=!0)},p(e,t){(!ne||1&t[0])&&ae!==(ae=e[0].wgQuestion+"")&&T(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))),D.$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(D.$$.fragment,e),ee(F.$$.fragment,e),ee(G.$$.fragment,e),ne=!0)},o(e){te(a.$$.fragment,e),te(v.$$.fragment,e),te(D.$$.fragment,e),te(F.$$.fragment,e),te(G.$$.fragment,e),ne=!1},d(e){e&&y(t),re(a),re(v),re(D),re(F),re(G),le=!1,i(se)}}}function ye(e){let n,l,o;return{c(){n=k("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',B(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=M(n,"click",e[46]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function ke(e){let n;return{c(){n=k("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',B(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function Ce(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function Me(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function Be(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function Te(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function _e(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function qe(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function ze(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(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 ge({props:c}),L.push((()=>oe(t,"name",o))),{c(){ce(t.$$.fragment)},m(e,n){ie(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){re(t,e)}}}function De(e){let n,l,o;return{c(){n=k("button"),n.innerHTML='<p class="SendButtonCommentComponent svelte-12ll7xn">Send</p>',B(n,"class","sendButtonContCommentComp svelte-12ll7xn")},m(t,c){h(t,n,c),l||(o=M(n,"click",e[43]),l=!0)},p:t,d(e){e&&y(n),l=!1,o()}}}function Pe(e){let n;return{c(){n=k("button"),n.innerHTML='<p class="CommentButtonTxtDisable svelte-12ll7xn">Send</p>',B(n,"class","CommentButtonContDisable svelte-12ll7xn"),n.disabled=!0},m(e,t){h(e,n,t)},p:t,d(e){e&&y(n)}}}function Se(e){let t,n,l,o;const c=[he,xe,ve],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=b("")},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 He(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)},k=()=>{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)},w=(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))},b=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,k,w,b,a,o,s,r,i,c,u,function(t){e.$$.not_equal(p[0],t)&&(p[0]=t,n(2,p))},()=>w(2,1,"hate"),function(t){e.$$.not_equal(p[1],t)&&(p[1]=t,n(2,p))},()=>w(2,2,"dislike"),function(t){e.$$.not_equal(p[2],t)&&(p[2]=t,n(2,p))},()=>w(2,3,"neutral"),function(t){e.$$.not_equal(p[3],t)&&(p[3]=t,n(2,p))},()=>w(2,4,"like"),function(t){e.$$.not_equal(p[4],t)&&(p[4]=t,n(2,p))},()=>w(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))},()=>w(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))},()=>w(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))},()=>w(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))},()=>w(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))},()=>w(2,5,"love"),()=>y(),()=>b(3),()=>k(),()=>h(),()=>h()]}class Le extends ue{constructor(e){super(),ae(this,e,He,Se,s,{feedbackData:0,closeHandler:1},null,[-1,-1])}}function Ie(e){const t=e-1;return t*t*t+1}function Ae(e,{delay:t=0,duration:n=400,easing:l=Ie,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 Ne(e){let t,n,l,o,c,i,r,s,a;function u(t){e[17](t)}let d={};return void 0!==e[1]&&(d.fill=e[1]),c=new me({props:d}),L.push((()=>oe(c,"fill",u))),{c(){t=k("div"),n=k("div"),n.textContent="Feedback",l=C(),o=k("div"),ce(c.$$.fragment),B(n,"id","feedbackTxt"),B(n,"class","svelte-kqqk2d"),B(o,"id","mainIcon"),B(o,"class","svelte-kqqk2d"),B(t,"class","widget svelte-kqqk2d")},m(i,u){h(i,t,u),g(t,n),g(t,l),g(t,o),ie(c,o,null),r=!0,s||(a=M(t,"click",e[7]),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),re(c),s=!1,a()}}}function Fe(e){let l,o,c,i,s,a,u,f,m,$;function v(t){e[18](t)}let x={closeHandler:e[5]};return void 0!==e[0]&&(x.feedbackData=e[0]),i=new Le({props:x}),L.push((()=>oe(i,"feedbackData",v))),{c(){l=k("div"),o=k("div"),o.innerHTML='<p id="closeIcon" class="svelte-kqqk2d">X</p>',c=C(),ce(i.$$.fragment),B(o,"class","closeCont svelte-kqqk2d"),B(l,"class","cont svelte-kqqk2d")},m(t,n){h(t,l,n),g(l,o),g(l,c),ie(i,l,null),f=!0,m||($=M(o,"click",e[8]),m=!0)},p(e,t){const n={};!s&&1&t&&(s=!0,n.feedbackData=e[0],O((()=>s=!1))),i.$set(n)},i(e){f||(ee(i.$$.fragment,e),R((()=>{u&&u.end(1),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=D(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,Ae,{x:-100,duration:1200}),a.start()})),f=!0)},o(e){te(i.$$.fragment,e),a&&a.invalidate(),u=le(l,Ae,{x:20,duration:300}),f=!1},d(e){e&&y(l),re(i),e&&u&&u.end(),m=!1,$()}}}function Re(e){let t,n,l,o,c,i,r,s,a,u=e[0].wgThanksMsg+"";return{c(){t=k("div"),n=k("div"),n.innerHTML='<p id="closeIcon" class="svelte-kqqk2d">X</p>',l=C(),o=k("div"),c=b(u),B(n,"class","closeCont svelte-kqqk2d"),_(o,"width","61%"),_(o,"text-align","center"),_(o,"margin-top","7%"),_(o,"margin-left","20%"),B(t,"class","thanksMessageCont svelte-kqqk2d")},m(i,u){h(i,t,u),g(t,n),g(t,l),g(t,o),g(o,c),r=!0,s||(a=M(n,"click",e[6]),s=!0)},p(e,t){(!r||1&t)&&u!==(u=e[0].wgThanksMsg+"")&&T(c,u)},i(e){r||(i&&i.end(1),r=!0)},o(e){i=le(t,Ae,{x:0,duration:300}),r=!1},d(e){e&&y(t),e&&i&&i.end(),s=!1,a()}}}function Oe(e){let t,n,l,o,c=e[3]&&Ne(e),i=e[2]&&Fe(e),r=e[4]&&Re(e);return{c(){t=k("body"),c&&c.c(),n=C(),i&&i.c(),l=C(),r&&r.c(),B(t,"class","svelte-kqqk2d")},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=Ne(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=Fe(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=Re(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 je(e,t,n){let l,{feedback:o}=t,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;0==o.wgPosition&&(r="center",s="row-reverse",a=5,u=0,d=30,f=0),1==o.wgPosition&&(r="center",s="row",a=0,u=5,d=0,f=30),2==o.wgPosition&&(r="flex-end",s="row-reverse",a=5,d=30,f=0),3==o.wgPosition&&(r="flex-end",s="row",a=0,u=5,d=0,f=30);const g=()=>{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(16,l=o.wgAccentColor),65536&e.$$.dirty&&document.documentElement.style.setProperty("--widgetColor",l),512&e.$$.dirty&&document.documentElement.style.setProperty("--widgetTextColor",c),1024&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionHorizintal",r),2048&e.$$.dirty&&document.documentElement.style.setProperty("--wgPositionVertical",s),4096&e.$$.dirty&&document.documentElement.style.setProperty("--widgetLeftSideBorder",a+"px"),8192&e.$$.dirty&&document.documentElement.style.setProperty("--widgetRightSideBorder",u+"px"),16384&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginRight",d+"px"),32768&e.$$.dirty&&document.documentElement.style.setProperty("--widgetMarginLeft",f+"px")},[o,i,m,$,p,()=>g(),()=>{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 Qe extends ue{constructor(e){super(),ae(this,e,je,Oe,s,{feedback:0})}}return e.feedbackCreator=function(e){new Qe({target:document.body,props:{feedback:e}})},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
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}({});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|