pushfeedback 0.1.47 → 0.1.48

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b596cc3a.js');
5
+ const index = require('./index-b181563b.js');
6
6
 
7
7
  const feedbackButtonCss = ".feedback-button-content{cursor:pointer;max-width:fit-content;z-index:var(--feedback-button-z-index);font-family:var(--feedback-font-family)}.feedback-button-content--custom-font{font-family:inherit}.feedback-button-content--light{align-items:center;background-color:var(--feedback-button-light-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-light-text-color);display:flex;font-size:var(--feedback-button-text-font-size);font-weight:var(--feedback-button-text-font-weight);padding:8px 15px}.feedback-button-content--dark{align-items:center;background-color:var(--feedback-button-dark-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-dark-text-color);display:flex;font-weight:var(--feedback-button-text-font-weight);font-size:var(--feedback-button-text-font-size);padding:8px 15px}.icon-edit{stroke:var(--feedback-button-light-text-color)}.feedback-button-content--dark .icon-edit{stroke:var(--feedback-button-dark-text-color)}.feedback-button-content--bottom-right{bottom:10px;position:fixed;right:10px}.feedback-button-content--center-right{position:fixed;transform:rotate(-90deg) translateY(-50%);top:50%}.feedback-button-content--center-right.feedback-button-content--dark,.feedback-button-content--center-right.feedback-button-content--light{border-radius:4px;border-bottom-left-radius:0px;border-bottom-right-radius:0px}.feedback-button-content-icon{height:16px;margin-right:5px;width:16px}.feedback-button-content--center-right .feedback-button-content-icon{rotate:90deg}";
8
8
 
@@ -7973,6 +7973,8 @@ const feedbackModalCss = ".text-center{flex-grow:1;text-align:center}.feedback-m
7973
7973
  const FeedbackModal = class {
7974
7974
  constructor(hostRef) {
7975
7975
  index.registerInstance(this, hostRef);
7976
+ this.feedbackSent = index.createEvent(this, "feedbackSent", 7);
7977
+ this.feedbackError = index.createEvent(this, "feedbackError", 7);
7976
7978
  this.onScrollDebounced = () => {
7977
7979
  clearTimeout(this.scrollTimeout);
7978
7980
  this.scrollTimeout = setTimeout(() => {
@@ -7989,35 +7991,48 @@ const FeedbackModal = class {
7989
7991
  this.showModal = false;
7990
7992
  this.sending = true;
7991
7993
  try {
7994
+ const body = {
7995
+ url: window.location.href,
7996
+ message: this.formMessage,
7997
+ email: this.formEmail,
7998
+ project: this.project,
7999
+ screenshot: this.encodedScreenshot,
8000
+ rating: this.selectedRating,
8001
+ ratingMode: this.ratingMode,
8002
+ verification: this.formVerification,
8003
+ session: localStorage.getItem('pushfeedback_sessionid') || '',
8004
+ };
7992
8005
  const res = await fetch('https://app.pushfeedback.com/api/feedback/', {
7993
8006
  method: 'POST',
7994
- body: JSON.stringify({
7995
- url: window.location.href,
7996
- message: this.formMessage,
7997
- email: this.formEmail,
7998
- project: this.project,
7999
- screenshot: this.encodedScreenshot,
8000
- rating: this.selectedRating,
8001
- ratingMode: this.ratingMode,
8002
- verification: this.formVerification,
8003
- session: localStorage.getItem('pushfeedback_sessionid') || '',
8004
- }),
8007
+ body: JSON.stringify(body),
8005
8008
  headers: {
8006
8009
  'Content-Type': 'application/json'
8007
8010
  }
8008
8011
  });
8009
8012
  if (res.status === 201) {
8013
+ const feedback_with_id = Object.assign(Object.assign({}, body), { id: await res.json() });
8014
+ this.feedbackSent.emit({ feedback: feedback_with_id });
8010
8015
  this.formSuccess = true;
8011
8016
  this.formError = false;
8012
8017
  }
8013
8018
  else {
8019
+ const errorText = await res.text();
8020
+ const response = {
8021
+ status: res.status,
8022
+ message: errorText,
8023
+ };
8024
+ this.feedbackError.emit({ error: response });
8014
8025
  this.formSuccess = false;
8015
8026
  this.formError = true;
8016
8027
  this.formErrorStatus = res.status;
8017
8028
  }
8018
8029
  }
8019
8030
  catch (error) {
8020
- console.log(error);
8031
+ const response = {
8032
+ status: 500,
8033
+ message: error,
8034
+ };
8035
+ this.feedbackError.emit({ error: response });
8021
8036
  this.formSuccess = false;
8022
8037
  this.formError = true;
8023
8038
  this.formErrorStatus = 500;
@@ -226,6 +226,19 @@ const parsePropertyValue = (propValue, propType) => {
226
226
  return propValue;
227
227
  };
228
228
  const getElement = (ref) => (getHostRef(ref).$hostElement$ );
229
+ const createEvent = (ref, name, flags) => {
230
+ const elm = getElement(ref);
231
+ return {
232
+ emit: (detail) => {
233
+ return emitEvent(elm, name, {
234
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
235
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
236
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
237
+ detail,
238
+ });
239
+ },
240
+ };
241
+ };
229
242
  /**
230
243
  * Helper function to create & dispatch a custom Event on a provided target
231
244
  * @param elm the target of the Event
@@ -1544,6 +1557,7 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1544
1557
 
1545
1558
  exports.Host = Host;
1546
1559
  exports.bootstrapLazy = bootstrapLazy;
1560
+ exports.createEvent = createEvent;
1547
1561
  exports.getElement = getElement;
1548
1562
  exports.h = h;
1549
1563
  exports.promiseResolve = promiseResolve;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b596cc3a.js');
5
+ const index = require('./index-b181563b.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b596cc3a.js');
5
+ const index = require('./index-b181563b.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -18,35 +18,48 @@ export class FeedbackModal {
18
18
  this.showModal = false;
19
19
  this.sending = true;
20
20
  try {
21
+ const body = {
22
+ url: window.location.href,
23
+ message: this.formMessage,
24
+ email: this.formEmail,
25
+ project: this.project,
26
+ screenshot: this.encodedScreenshot,
27
+ rating: this.selectedRating,
28
+ ratingMode: this.ratingMode,
29
+ verification: this.formVerification,
30
+ session: localStorage.getItem('pushfeedback_sessionid') || '',
31
+ };
21
32
  const res = await fetch('https://app.pushfeedback.com/api/feedback/', {
22
33
  method: 'POST',
23
- body: JSON.stringify({
24
- url: window.location.href,
25
- message: this.formMessage,
26
- email: this.formEmail,
27
- project: this.project,
28
- screenshot: this.encodedScreenshot,
29
- rating: this.selectedRating,
30
- ratingMode: this.ratingMode,
31
- verification: this.formVerification,
32
- session: localStorage.getItem('pushfeedback_sessionid') || '',
33
- }),
34
+ body: JSON.stringify(body),
34
35
  headers: {
35
36
  'Content-Type': 'application/json'
36
37
  }
37
38
  });
38
39
  if (res.status === 201) {
40
+ const feedback_with_id = Object.assign(Object.assign({}, body), { id: await res.json() });
41
+ this.feedbackSent.emit({ feedback: feedback_with_id });
39
42
  this.formSuccess = true;
40
43
  this.formError = false;
41
44
  }
42
45
  else {
46
+ const errorText = await res.text();
47
+ const response = {
48
+ status: res.status,
49
+ message: errorText,
50
+ };
51
+ this.feedbackError.emit({ error: response });
43
52
  this.formSuccess = false;
44
53
  this.formError = true;
45
54
  this.formErrorStatus = res.status;
46
55
  }
47
56
  }
48
57
  catch (error) {
49
- console.log(error);
58
+ const response = {
59
+ status: 500,
60
+ message: error,
61
+ };
62
+ this.feedbackError.emit({ error: response });
50
63
  this.formSuccess = false;
51
64
  this.formError = true;
52
65
  this.formErrorStatus = 500;
@@ -861,4 +874,37 @@ export class FeedbackModal {
861
874
  "selectedRating": {}
862
875
  };
863
876
  }
877
+ static get events() {
878
+ return [{
879
+ "method": "feedbackSent",
880
+ "name": "feedbackSent",
881
+ "bubbles": true,
882
+ "cancelable": true,
883
+ "composed": true,
884
+ "docs": {
885
+ "tags": [],
886
+ "text": ""
887
+ },
888
+ "complexType": {
889
+ "original": "{ feedback: any }",
890
+ "resolved": "{ feedback: any; }",
891
+ "references": {}
892
+ }
893
+ }, {
894
+ "method": "feedbackError",
895
+ "name": "feedbackError",
896
+ "bubbles": true,
897
+ "cancelable": true,
898
+ "composed": true,
899
+ "docs": {
900
+ "tags": [],
901
+ "text": ""
902
+ },
903
+ "complexType": {
904
+ "original": "{ error: any }",
905
+ "resolved": "{ error: any; }",
906
+ "references": {}
907
+ }
908
+ }];
909
+ }
864
910
  }
@@ -1,4 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
 
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
 
@@ -7851,6 +7851,8 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
7851
7851
  super();
7852
7852
  this.__registerHost();
7853
7853
  this.__attachShadow();
7854
+ this.feedbackSent = createEvent(this, "feedbackSent", 7);
7855
+ this.feedbackError = createEvent(this, "feedbackError", 7);
7854
7856
  this.onScrollDebounced = () => {
7855
7857
  clearTimeout(this.scrollTimeout);
7856
7858
  this.scrollTimeout = setTimeout(() => {
@@ -7867,35 +7869,48 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
7867
7869
  this.showModal = false;
7868
7870
  this.sending = true;
7869
7871
  try {
7872
+ const body = {
7873
+ url: window.location.href,
7874
+ message: this.formMessage,
7875
+ email: this.formEmail,
7876
+ project: this.project,
7877
+ screenshot: this.encodedScreenshot,
7878
+ rating: this.selectedRating,
7879
+ ratingMode: this.ratingMode,
7880
+ verification: this.formVerification,
7881
+ session: localStorage.getItem('pushfeedback_sessionid') || '',
7882
+ };
7870
7883
  const res = await fetch('https://app.pushfeedback.com/api/feedback/', {
7871
7884
  method: 'POST',
7872
- body: JSON.stringify({
7873
- url: window.location.href,
7874
- message: this.formMessage,
7875
- email: this.formEmail,
7876
- project: this.project,
7877
- screenshot: this.encodedScreenshot,
7878
- rating: this.selectedRating,
7879
- ratingMode: this.ratingMode,
7880
- verification: this.formVerification,
7881
- session: localStorage.getItem('pushfeedback_sessionid') || '',
7882
- }),
7885
+ body: JSON.stringify(body),
7883
7886
  headers: {
7884
7887
  'Content-Type': 'application/json'
7885
7888
  }
7886
7889
  });
7887
7890
  if (res.status === 201) {
7891
+ const feedback_with_id = Object.assign(Object.assign({}, body), { id: await res.json() });
7892
+ this.feedbackSent.emit({ feedback: feedback_with_id });
7888
7893
  this.formSuccess = true;
7889
7894
  this.formError = false;
7890
7895
  }
7891
7896
  else {
7897
+ const errorText = await res.text();
7898
+ const response = {
7899
+ status: res.status,
7900
+ message: errorText,
7901
+ };
7902
+ this.feedbackError.emit({ error: response });
7892
7903
  this.formSuccess = false;
7893
7904
  this.formError = true;
7894
7905
  this.formErrorStatus = res.status;
7895
7906
  }
7896
7907
  }
7897
7908
  catch (error) {
7898
- console.log(error);
7909
+ const response = {
7910
+ status: 500,
7911
+ message: error,
7912
+ };
7913
+ this.feedbackError.emit({ error: response });
7899
7914
  this.formSuccess = false;
7900
7915
  this.formError = true;
7901
7916
  this.formErrorStatus = 500;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-deb00b84.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-f58727eb.js';
2
2
 
3
3
  const feedbackButtonCss = ".feedback-button-content{cursor:pointer;max-width:fit-content;z-index:var(--feedback-button-z-index);font-family:var(--feedback-font-family)}.feedback-button-content--custom-font{font-family:inherit}.feedback-button-content--light{align-items:center;background-color:var(--feedback-button-light-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-light-text-color);display:flex;font-size:var(--feedback-button-text-font-size);font-weight:var(--feedback-button-text-font-weight);padding:8px 15px}.feedback-button-content--dark{align-items:center;background-color:var(--feedback-button-dark-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-dark-text-color);display:flex;font-weight:var(--feedback-button-text-font-weight);font-size:var(--feedback-button-text-font-size);padding:8px 15px}.icon-edit{stroke:var(--feedback-button-light-text-color)}.feedback-button-content--dark .icon-edit{stroke:var(--feedback-button-dark-text-color)}.feedback-button-content--bottom-right{bottom:10px;position:fixed;right:10px}.feedback-button-content--center-right{position:fixed;transform:rotate(-90deg) translateY(-50%);top:50%}.feedback-button-content--center-right.feedback-button-content--dark,.feedback-button-content--center-right.feedback-button-content--light{border-radius:4px;border-bottom-left-radius:0px;border-bottom-right-radius:0px}.feedback-button-content-icon{height:16px;margin-right:5px;width:16px}.feedback-button-content--center-right .feedback-button-content-icon{rotate:90deg}";
4
4
 
@@ -7969,6 +7969,8 @@ const feedbackModalCss = ".text-center{flex-grow:1;text-align:center}.feedback-m
7969
7969
  const FeedbackModal = class {
7970
7970
  constructor(hostRef) {
7971
7971
  registerInstance(this, hostRef);
7972
+ this.feedbackSent = createEvent(this, "feedbackSent", 7);
7973
+ this.feedbackError = createEvent(this, "feedbackError", 7);
7972
7974
  this.onScrollDebounced = () => {
7973
7975
  clearTimeout(this.scrollTimeout);
7974
7976
  this.scrollTimeout = setTimeout(() => {
@@ -7985,35 +7987,48 @@ const FeedbackModal = class {
7985
7987
  this.showModal = false;
7986
7988
  this.sending = true;
7987
7989
  try {
7990
+ const body = {
7991
+ url: window.location.href,
7992
+ message: this.formMessage,
7993
+ email: this.formEmail,
7994
+ project: this.project,
7995
+ screenshot: this.encodedScreenshot,
7996
+ rating: this.selectedRating,
7997
+ ratingMode: this.ratingMode,
7998
+ verification: this.formVerification,
7999
+ session: localStorage.getItem('pushfeedback_sessionid') || '',
8000
+ };
7988
8001
  const res = await fetch('https://app.pushfeedback.com/api/feedback/', {
7989
8002
  method: 'POST',
7990
- body: JSON.stringify({
7991
- url: window.location.href,
7992
- message: this.formMessage,
7993
- email: this.formEmail,
7994
- project: this.project,
7995
- screenshot: this.encodedScreenshot,
7996
- rating: this.selectedRating,
7997
- ratingMode: this.ratingMode,
7998
- verification: this.formVerification,
7999
- session: localStorage.getItem('pushfeedback_sessionid') || '',
8000
- }),
8003
+ body: JSON.stringify(body),
8001
8004
  headers: {
8002
8005
  'Content-Type': 'application/json'
8003
8006
  }
8004
8007
  });
8005
8008
  if (res.status === 201) {
8009
+ const feedback_with_id = Object.assign(Object.assign({}, body), { id: await res.json() });
8010
+ this.feedbackSent.emit({ feedback: feedback_with_id });
8006
8011
  this.formSuccess = true;
8007
8012
  this.formError = false;
8008
8013
  }
8009
8014
  else {
8015
+ const errorText = await res.text();
8016
+ const response = {
8017
+ status: res.status,
8018
+ message: errorText,
8019
+ };
8020
+ this.feedbackError.emit({ error: response });
8010
8021
  this.formSuccess = false;
8011
8022
  this.formError = true;
8012
8023
  this.formErrorStatus = res.status;
8013
8024
  }
8014
8025
  }
8015
8026
  catch (error) {
8016
- console.log(error);
8027
+ const response = {
8028
+ status: 500,
8029
+ message: error,
8030
+ };
8031
+ this.feedbackError.emit({ error: response });
8017
8032
  this.formSuccess = false;
8018
8033
  this.formError = true;
8019
8034
  this.formErrorStatus = 500;
@@ -204,6 +204,19 @@ const parsePropertyValue = (propValue, propType) => {
204
204
  return propValue;
205
205
  };
206
206
  const getElement = (ref) => (getHostRef(ref).$hostElement$ );
207
+ const createEvent = (ref, name, flags) => {
208
+ const elm = getElement(ref);
209
+ return {
210
+ emit: (detail) => {
211
+ return emitEvent(elm, name, {
212
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
213
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
214
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
215
+ detail,
216
+ });
217
+ },
218
+ };
219
+ };
207
220
  /**
208
221
  * Helper function to create & dispatch a custom Event on a provided target
209
222
  * @param elm the target of the Event
@@ -1520,4 +1533,4 @@ const flush = () => {
1520
1533
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1521
1534
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1522
1535
 
1523
- export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1536
+ export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-deb00b84.js';
2
- export { s as setNonce } from './index-deb00b84.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-f58727eb.js';
2
+ export { s as setNonce } from './index-f58727eb.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-deb00b84.js';
2
- export { s as setNonce } from './index-deb00b84.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-f58727eb.js';
2
+ export { s as setNonce } from './index-f58727eb.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -0,0 +1,2 @@
1
+ let e,n,t=!1,l=!1;const s={},o=e=>"object"==(e=typeof e)||"function"===e;function i(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,s=null,i=!1,c=!1;const u=[],a=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!o(l))&&(l+=""),i&&c?u[u.length-1].t+=l:u.push(i?r(null,l):l),c=i)};if(a(t),n){n.key&&(s=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=r(e,null);return f.l=n,u.length>0&&(f.o=u),f.i=s,f},r=(e,n)=>({u:0,h:e,t:n,p:null,o:null,l:null,i:null}),u={},a=e=>q(e).$,f=(e,n,t)=>{const l=a(e);return{emit:e=>d(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},d=(e,n,t)=>{const l=Q.ce(n,t);return e.dispatchEvent(l),l},h=new WeakMap,p=e=>"sc-"+e.m,$=(e,n,t,l,s,i)=>{if(t!==l){let c=_(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,s=y(t),o=y(l);n.remove(...s.filter((e=>e&&!o.includes(e)))),n.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(c||"o"!==n[0]||"n"!==n[1]){const r=o(l);if((c||r&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[n]=l;else{const s=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==s||(e[n]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&i||s)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):_(J,r)?r.slice(2):r[2]+n.slice(3),t&&Q.rel(e,n,t,!1),l&&Q.ael(e,n,l,!1)}},m=/\s/,y=e=>e?e.split(m):[],b=(e,n,t,l)=>{const o=11===n.p.nodeType&&n.p.host?n.p.host:n.p,i=e&&e.l||s,c=n.l||s;for(l in i)l in c||$(o,l,i[l],void 0,t,n.u);for(l in c)$(o,l,i[l],c[l],t,n.u)},w=(n,l,s)=>{const o=l.o[s];let i,c,r=0;if(null!==o.t)i=o.p=K.createTextNode(o.t);else{if(t||(t="svg"===o.h),i=o.p=K.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.h),t&&"foreignObject"===o.h&&(t=!1),b(null,o,t),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),o.o)for(r=0;r<o.o.length;++r)c=w(n,o,r),c&&i.appendChild(c);"svg"===o.h?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i},v=(e,t,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=w(null,l,o),c&&(s[o].p=c,r.insertBefore(c,t)))},g=(e,n,t,l,s)=>{for(;n<=t;++n)(l=e[n])&&(s=l.p,k(l),s.remove())},S=(e,n)=>e.h===n.h&&e.i===n.i,j=(e,n)=>{const l=n.p=e.p,s=e.o,o=n.o,i=n.h,c=n.t;null===c?(t="svg"===i||"foreignObject"!==i&&t,"slot"===i||b(e,n,t),null!==s&&null!==o?((e,n,t,l)=>{let s,o,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],h=l.length-1,p=l[0],$=l[h];for(;i<=a&&c<=h;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==p)p=l[++c];else if(null==$)$=l[--h];else if(S(f,p))j(f,p),f=n[++i],p=l[++c];else if(S(d,$))j(d,$),d=n[--a],$=l[--h];else if(S(f,$))j(f,$),e.insertBefore(f.p,d.p.nextSibling),f=n[++i],$=l[--h];else if(S(d,p))j(d,p),e.insertBefore(d.p,f.p),d=n[--a],p=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].i&&n[u].i===p.i){r=u;break}r>=0?(o=n[r],o.h!==p.h?s=w(n&&n[c],t,r):(j(o,p),n[r]=void 0,s=o.p),p=l[++c]):(s=w(n&&n[c],t,c),p=l[++c]),s&&f.p.parentNode.insertBefore(s,f.p)}i>a?v(e,null==l[h+1]?null:l[h+1].p,t,l,c,h):c>h&&g(n,i,a)})(l,s,n,o):null!==o?(null!==e.t&&(l.textContent=""),v(l,null,n,o,0,o.length-1)):null!==s&&g(s,0,s.length-1),t&&"svg"===i&&(t=!1)):e.t!==c&&(l.data=c)},k=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(k)},O=(e,n)=>{n&&!e.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.v=n)))},C=(e,n)=>{if(e.u|=16,!(4&e.u))return O(e,e.g),oe((()=>M(e,n)));e.u|=512},M=(e,n)=>{const t=e.S;let l;return n&&(l=N(t,"componentWillLoad")),T(l,(()=>x(e,t,n)))},x=async(e,n,t)=>{const l=e.$,s=l["s-rc"];t&&(e=>{const n=e.j,t=e.$,l=n.u,s=((e,n)=>{var t;let l=p(n);const s=I.get(l);if(e=11===e.nodeType?e:K,s)if("string"==typeof s){let n,o=h.get(e=e.head||e);if(o||h.set(e,o=new Set),!o.has(l)){{n=K.createElement("style"),n.innerHTML=s;const l=null!==(t=Q.k)&&void 0!==t?t:i(K);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}o&&o.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);L(e,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>P(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},L=(t,l)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l)=>{const s=t.$,o=t.j,i=t.O||r(null,null),a=(e=>e&&e.h===u)(l)?l:c(null,null,l);n=s.tagName,o.C&&(a.l=a.l||{},o.C.map((([e,n])=>a.l[n]=s[e]))),a.h=null,a.u|=4,t.O=a,a.p=i.p=s.shadowRoot||s,e=s["s-sc"],j(i,a)})(t,l)}catch(e){z(e,t.$)}return null},P=e=>{const n=e.$,t=e.S,l=e.g;64&e.u||(e.u|=64,W(n),N(t,"componentDidLoad"),e.M(n),l||E()),e.v&&(e.v(),e.v=void 0),512&e.u&&se((()=>C(e,!1))),e.u&=-517},E=()=>{W(K.documentElement),se((()=>d(J,"appload",{detail:{namespace:"pushfeedback"}})))},N=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){z(e)}},T=(e,n)=>e&&e.then?e.then(n):n(),W=e=>e.classList.add("hydrated"),A=(e,n,t)=>{if(n.L){const l=Object.entries(n.L),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(s,e,{get(){return((e,n)=>q(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const s=q(e),i=s.P.get(n),c=s.u,r=s.S;t=((e,n)=>null==e||o(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.L[n][0]),8&c&&void 0!==i||t===i||Number.isNaN(i)&&Number.isNaN(t)||(s.P.set(n,t),r&&2==(18&c)&&C(s,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;s.attributeChangedCallback=function(e,n,l){Q.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,l])=>{const s=l[1]||e;return t.set(s,e),512&l[0]&&n.C.push([e,s]),s}))}}return e},F=e=>{N(e,"connectedCallback")},H=(e,n={})=>{var t;const l=[],s=n.exclude||[],o=J.customElements,c=K.head,r=c.querySelector("meta[charset]"),u=K.createElement("style"),a=[];let f,d=!0;Object.assign(Q,n),Q.N=new URL(n.resourcesUrl||"./",K.baseURI).href,e.map((e=>{e[1].map((n=>{const t={u:n[0],m:n[1],L:n[2],T:n[3]};t.L=n[2],t.C=[];const i=t.m,c=class extends HTMLElement{constructor(e){super(e),V(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Q.jmp((()=>(e=>{if(0==(1&Q.u)){const n=q(e),t=n.j,l=()=>{};if(1&n.u)F(n.S);else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){O(n,n.g=t);break}}t.L&&Object.entries(t.L).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,s)=>{if(0==(32&n.u)){{if(n.u|=32,(s=G(t)).then){const e=()=>{};s=await s,e()}s.isProxied||(A(s,t,2),s.isProxied=!0);const e=()=>{};n.u|=8;try{new s(n)}catch(e){z(e)}n.u&=-9,e(),F(n.S)}if(s.style){let e=s.style;const n=p(t);if(!I.has(n)){const l=()=>{};((e,n,t)=>{let l=I.get(e);Y&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,I.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.g,i=()=>C(n,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,n,t)}l()}})(this)))}disconnectedCallback(){Q.jmp((()=>(()=>{0==(1&Q.u)&&N(q(this).S,"disconnectedCallback")})()))}componentOnReady(){return q(this).W}};t.A=e[0],s.includes(i)||o.get(i)||(l.push(i),o.define(i,A(c,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=Q.k)&&void 0!==t?t:i(K);null!=e&&u.setAttribute("nonce",e),c.insertBefore(u,r?r.nextSibling:c.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):Q.jmp((()=>f=setTimeout(E,30)))},R=e=>Q.k=e,U=new WeakMap,q=e=>U.get(e),D=(e,n)=>U.set(n.S=e,n),V=(e,n)=>{const t={u:0,$:e,j:n,P:new Map};return t.W=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],U.set(e,t)},_=(e,n)=>n in e,z=(e,n)=>(0,console.error)(e,n),B=new Map,G=e=>{const n=e.m.replace(/-/g,"_"),t=e.A,l=B.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(B.set(t,e),e[n])),z)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},I=new Map,J="undefined"!=typeof window?window:{},K=J.document||{head:{}},Q={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},X=e=>Promise.resolve(e),Y=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Z=[],ee=[],ne=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&Q.u?se(le):Q.raf(le))},te=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){z(e)}e.length=0},le=()=>{te(Z),te(ee),(l=Z.length>0)&&Q.raf(le)},se=e=>X().then(e),oe=ne(ee,!0);export{u as H,H as b,f as c,a as g,c as h,X as p,D as r,R as s}