pushfeedback 0.1.68 → 0.1.70

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.
Files changed (47) hide show
  1. package/dist/components/canvas-editor.d.ts +11 -0
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/pushfeedback/app-globals-0f993ce5.js +3 -0
  4. package/dist/pushfeedback/canvas-editor.entry.js +860 -0
  5. package/dist/pushfeedback/css-shim-b7d3d95f.js +4 -0
  6. package/dist/pushfeedback/dom-64053c71.js +73 -0
  7. package/dist/{components/feedback-button.js → pushfeedback/feedback-button.entry.js} +30 -73
  8. package/dist/pushfeedback/feedback-modal.entry.js +295 -0
  9. package/dist/pushfeedback/index-36434da0.js +3371 -0
  10. package/dist/pushfeedback/index.esm.js +1 -0
  11. package/dist/pushfeedback/pushfeedback.css +146 -1
  12. package/dist/pushfeedback/pushfeedback.esm.js +148 -1
  13. package/dist/pushfeedback/shadow-css-98135883.js +387 -0
  14. package/dist/types/components/canvas-editor/canvas-editor.d.ts +108 -0
  15. package/dist/types/components/feedback-button/feedback-button.d.ts +11 -0
  16. package/dist/types/components/feedback-modal/feedback-modal.d.ts +23 -71
  17. package/dist/types/components.d.ts +102 -0
  18. package/package.json +3 -4
  19. package/dist/cjs/feedback-button_2.cjs.entry.js +0 -9918
  20. package/dist/cjs/index-9a8f4784.js +0 -1584
  21. package/dist/cjs/index.cjs.js +0 -2
  22. package/dist/cjs/loader.cjs.js +0 -22
  23. package/dist/cjs/pushfeedback.cjs.js +0 -23
  24. package/dist/collection/collection-manifest.json +0 -13
  25. package/dist/collection/components/feedback-button/feedback-button.css +0 -81
  26. package/dist/collection/components/feedback-button/feedback-button.js +0 -949
  27. package/dist/collection/components/feedback-modal/feedback-modal.css +0 -896
  28. package/dist/collection/components/feedback-modal/feedback-modal.js +0 -1700
  29. package/dist/collection/index.js +0 -1
  30. package/dist/components/feedback-modal.js +0 -6
  31. package/dist/components/feedback-modal2.js +0 -9814
  32. package/dist/components/index.js +0 -3
  33. package/dist/esm/feedback-button_2.entry.js +0 -9913
  34. package/dist/esm/index-f65e9124.js +0 -1555
  35. package/dist/esm/index.js +0 -1
  36. package/dist/esm/loader.js +0 -18
  37. package/dist/esm/polyfills/core-js.js +0 -11
  38. package/dist/esm/polyfills/css-shim.js +0 -1
  39. package/dist/esm/polyfills/dom.js +0 -79
  40. package/dist/esm/polyfills/es5-html-element.js +0 -1
  41. package/dist/esm/polyfills/index.js +0 -34
  42. package/dist/esm/polyfills/system.js +0 -6
  43. package/dist/esm/pushfeedback.js +0 -18
  44. package/dist/index.cjs.js +0 -1
  45. package/dist/index.js +0 -1
  46. package/dist/pushfeedback/p-7406f7be.entry.js +0 -7
  47. package/dist/pushfeedback/p-af2a1f7f.js +0 -2
@@ -0,0 +1 @@
1
+
@@ -1 +1,146 @@
1
- :root{--feedback-primary-color:#0070F4;--feedback-secondary-color:#f1f3f4;--feedback-light-color:#ccc;--feedback-dark-color:#191919;--feedback-text-color:#5f6368;--feedback-white-color:#fff;--feedback-highlight-color:#ffb422;--feedback-font-family:"Inter", "Tahoma", "sans-serif";--feedback-heading-font-size:16px;--feedback-text-font-size:14px;--feedback-button-border-radius:20px;--feedback-button-dark-bg-color:var(--feedback-primary-color);--feedback-button-dark-text-color:var(--feedback-white-color);--feedback-button-dark-icon-color:var(--feedback-white-color);--feedback-button-light-bg-color:var(--feedback-white-color);--feedback-button-light-text-color:var(--feedback-primary-color);--feedback-button-light-icon-color:var(--feedback-primary-color);--feedback-button-text-font-size:var(--feedback-text-font-size);--feedback-button-text-font-weight:600;--feedback-button-z-index:300;--feedback-modal-button-bg-color:var(--feedback-white-color);--feedback-modal-button-bg-color-active:var(--feedback-white-color);--feedback-modal-button-border-color:var(--feedback-light-color);--feedback-modal-button-border-color-active:var(--feedback-primary-color);--feedback-modal-button-border-radius:4px;--feedback-modal-button-font-size:var(--feedback-text-font-size);--feedback-modal-button-icon-color:var(--feedback-dark-color);--feedback-modal-button-icon-color-active:var(--feedback-primary-color);--feedback-modal-button-submit-bg-color:var(--feedback-primary-color);--feedback-modal-button-submit-bg-color-hover:var(--feedback-primary-color);--feedback-modal-button-submit-border-color-hover:var(--feedback-primary-color);--feedback-modal-button-submit-text-color:var(--feedback-white-color);--feedback-modal-button-submit-text-color-hover:var(--feedback-white-color);--feedback-modal-button-text-color:var(--feedback-dark-color);--feedback-modal-button-text-color-active:var(--feedback-primary-color);--feedback-modal-close-bg-color:var(--feedback-white-color);--feedback-modal-close-color:var(--feedback-dark-color);--feedback-modal-content-bg-color:var(--feedback-white-color);--feedback-modal-content-border-color:var(--feedback-light-color);--feedback-modal-content-border-radius:8px;--feedback-modal-content-font-family:var(--feedback-font-family);--feedback-modal-content-position-bottom:10px;--feedback-modal-content-position-left:10px;--feedback-modal-content-position-right:10px;--feedback-modal-content-position-top:10px;--feedback-modal-content-max-width:600px;--feedback-modal-content-sidebar-max-width:300px;--feedback-modal-content-text-color:var(--feedback-text-color);--feedback-modal-content-z-index:300;--feedback-modal-element-hover-border-color:var(--feedback-primary-color);--feedback-modal-element-selected-border-color:var(--feedback-primary-color);--feedback-modal-footer-link:var(--feedback-dark-color);--feedback-modal-header-font-family:var(--feedback-font-family);--feedback-modal-header-font-size:var(--feedback-heading-font-size);--feedback-modal-header-font-weight:500;--feedback-modal-header-text-color:var(--feedback-dark-color);--feedback-modal-input-bg-color:var(--feedback-secondary-color);--feedback-modal-input-border-color:transparent;--feedback-modal-input-border-color-focused:transparent;--feedback-modal-input-border-radius:4px;--feedback-modal-input-font-size:var(--feedback-text-font-size);--feedback-modal-input-text-color:var(--feedback-text-color);--feedback-modal-message-font-size:var(--feedback-text-font-size);--feedback-modal-modal-wrapper-z-index:300;--feedback-modal-rating-button-color:var(--feedback-text-color);--feedback-modal-rating-button-selected-color:var(--feedback-primary-color);--feedback-modal-rating-button-stars-selected-color:var(--feedback-highlight-color);--feedback-modal-screenshot-bg-color:rgba(0, 0, 0, 0.4);--feedback-modal-screenshot-close-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-bg-color:var(--feedback-white-color);--feedback-modal-screenshot-header-text-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-z-index:250;--feedback-modal-screnshot-z-index:100;--feedback-canvas-editor-bg-color:var(--feedback-white-color);--feedback-canvas-editor-border-color:var(--feedback-light-color);--feedback-canvas-editor-header-bg-color:var(--feedback-secondary-color);--feedback-canvas-editor-tool-bg-color:var(--feedback-white-color);--feedback-canvas-editor-tool-bg-hover:var(--feedback-secondary-color);--feedback-canvas-editor-tool-bg-active:var(--feedback-primary-color);--feedback-canvas-editor-tool-text-color:var(--feedback-text-color);--feedback-canvas-editor-tool-text-active:var(--feedback-white-color);--feedback-canvas-editor-action-primary-bg:var(--feedback-primary-color);--feedback-canvas-editor-action-primary-text:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-bg:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-text:var(--feedback-text-color);--feedback-canvas-editor-action-secondary-border:var(--feedback-light-color);--feedback-canvas-editor-divider-color:var(--feedback-light-color);--feedback-canvas-editor-content-bg:var(--feedback-secondary-color);--feedback-canvas-editor-resize-handle-color:var(--feedback-primary-color);--feedback-canvas-editor-slider-track:var(--feedback-light-color)}[data-theme='dark']{--feedback-text-color:#b0b8c4;--feedback-light-color:#363636;--feedback-modal-button-bg-color-active:transparent;--feedback-modal-button-icon-color:var(--feedback-white-color);--feedback-modal-button-text-color:var(--feedback-white-color);--feedback-modal-close-bg-color:transparent;--feedback-modal-close-color:var(--feedback-white-color);--feedback-modal-content-bg-color:var(--feedback-dark-color);--feedback-modal-content-text-color:var(--feedback-text-color);--feedback-modal-footer-link:var(--feedback-white-color);--feedback-modal-header-text-color:var(--feedback-white-color);--feedback-modal-input-bg-color:var(--feedback-light-color);--feedback-modal-input-text-color:var(--feedback-white-color);--feedback-modal-rating-button-color:var(--feedback-white-color);--feedback-modal-screenshot-close-color:var(--feedback-white-color);--feedback-modal-screenshot-header-bg-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-text-color:var(--feedback-white-color);--feedback-canvas-editor-bg-color:var(--feedback-dark-color);--feedback-canvas-editor-border-color:var(--feedback-light-color);--feedback-canvas-editor-header-bg-color:var(--feedback-light-color);--feedback-canvas-editor-tool-bg-color:var(--feedback-light-color);--feedback-canvas-editor-tool-bg-hover:#4a4a4a;--feedback-canvas-editor-tool-text-color:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-bg:var(--feedback-light-color);--feedback-canvas-editor-action-secondary-text:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-border:var(--feedback-light-color);--feedback-canvas-editor-content-bg:var(--feedback-light-color);--feedback-canvas-editor-divider-color:#4a4a4a;--feedback-canvas-editor-slider-track:#4a4a4a}.feedback-modal-screenshot-open{position:fixed;width:100%}.feedback-modal-screenshot-open--scroll{overflow-y:scroll}
1
+ :root {
2
+ /* Colors */
3
+ --feedback-primary-color: #0070F4;
4
+ --feedback-secondary-color: #f1f3f4;
5
+ --feedback-light-color: #ccc;
6
+ --feedback-dark-color: #191919;
7
+ --feedback-text-color: #5f6368;
8
+ --feedback-white-color: #fff;
9
+ --feedback-highlight-color: #ffb422;
10
+
11
+ /* Fonts */
12
+ --feedback-font-family: "Inter", "Tahoma", "sans-serif";
13
+ --feedback-heading-font-size: 16px;
14
+ --feedback-text-font-size: 14px;
15
+
16
+ /* Feedback button*/
17
+ --feedback-button-border-radius: 20px;
18
+ --feedback-button-dark-bg-color: var(--feedback-primary-color);
19
+ --feedback-button-dark-text-color: var(--feedback-white-color);
20
+ --feedback-button-dark-icon-color: var(--feedback-white-color);
21
+ --feedback-button-light-bg-color: var(--feedback-white-color);
22
+ --feedback-button-light-text-color: var(--feedback-primary-color);
23
+ --feedback-button-light-icon-color: var(--feedback-primary-color);
24
+ --feedback-button-text-font-size: var(--feedback-text-font-size);
25
+ --feedback-button-text-font-weight: 600;
26
+ --feedback-button-z-index: 300;
27
+
28
+
29
+ /*Feedback modal*/
30
+ --feedback-modal-button-bg-color: var(--feedback-white-color);
31
+ --feedback-modal-button-bg-color-active: var(--feedback-white-color);
32
+ --feedback-modal-button-border-color: var(--feedback-light-color);
33
+ --feedback-modal-button-border-color-active: var(--feedback-primary-color);
34
+ --feedback-modal-button-border-radius: 4px;
35
+ --feedback-modal-button-font-size: var(--feedback-text-font-size);
36
+ --feedback-modal-button-icon-color: var(--feedback-dark-color);
37
+ --feedback-modal-button-icon-color-active: var(--feedback-primary-color);
38
+ --feedback-modal-button-submit-bg-color: var(--feedback-primary-color);
39
+ --feedback-modal-button-submit-bg-color-hover: var(--feedback-primary-color);
40
+ --feedback-modal-button-submit-border-color-hover: var(--feedback-primary-color);
41
+ --feedback-modal-button-submit-text-color: var(--feedback-white-color);
42
+ --feedback-modal-button-submit-text-color-hover: var(--feedback-white-color);
43
+ --feedback-modal-button-text-color: var(--feedback-dark-color);
44
+ --feedback-modal-button-text-color-active: var(--feedback-primary-color);
45
+ --feedback-modal-close-bg-color: var(--feedback-white-color);
46
+ --feedback-modal-close-color: var(--feedback-dark-color);
47
+ --feedback-modal-content-bg-color: var(--feedback-white-color);
48
+ --feedback-modal-content-border-color: var(--feedback-light-color);
49
+ --feedback-modal-content-border-radius: 8px;
50
+ --feedback-modal-content-font-family: var(--feedback-font-family);
51
+ --feedback-modal-content-position-bottom: 10px;
52
+ --feedback-modal-content-position-left: 10px;
53
+ --feedback-modal-content-position-right: 10px;
54
+ --feedback-modal-content-position-top: 10px;
55
+ --feedback-modal-content-max-width: 600px;
56
+ --feedback-modal-content-sidebar-max-width: 300px;
57
+ --feedback-modal-content-text-color: var(--feedback-text-color);
58
+ --feedback-modal-content-z-index: 300;
59
+ --feedback-modal-element-hover-border-color: var(--feedback-primary-color);
60
+ --feedback-modal-element-selected-border-color: var(--feedback-primary-color);
61
+ --feedback-modal-footer-link: var(--feedback-dark-color);
62
+ --feedback-modal-header-font-family: var(--feedback-font-family);
63
+ --feedback-modal-header-font-size: var(--feedback-heading-font-size);
64
+ --feedback-modal-header-font-weight: 500;
65
+ --feedback-modal-header-text-color: var(--feedback-dark-color);
66
+ --feedback-modal-input-bg-color: var(--feedback-secondary-color);
67
+ --feedback-modal-input-border-color: transparent;
68
+ --feedback-modal-input-border-color-focused: transparent;
69
+ --feedback-modal-input-border-radius: 4px;
70
+ --feedback-modal-input-font-size: var(--feedback-text-font-size);
71
+ --feedback-modal-input-text-color: var(--feedback-text-color);
72
+ --feedback-modal-message-font-size: var(--feedback-text-font-size);
73
+ --feedback-modal-modal-wrapper-z-index: 300;
74
+ --feedback-modal-rating-button-color: var(--feedback-text-color);
75
+ --feedback-modal-rating-button-selected-color: var(--feedback-primary-color);
76
+ --feedback-modal-rating-button-stars-selected-color: var(--feedback-highlight-color);
77
+ --feedback-modal-screenshot-bg-color: rgba(0, 0, 0, 0.4);
78
+ --feedback-modal-screenshot-close-color: var(--feedback-dark-color);
79
+ --feedback-modal-screenshot-header-bg-color: var(--feedback-white-color);
80
+ --feedback-modal-screenshot-header-text-color: var(--feedback-dark-color);
81
+ --feedback-modal-screenshot-header-z-index: 250;
82
+ --feedback-modal-screnshot-z-index: 100;
83
+
84
+ /* Canvas Editor Variables */
85
+ --feedback-canvas-editor-bg-color: var(--feedback-white-color);
86
+ --feedback-canvas-editor-border-color: var(--feedback-light-color);
87
+ --feedback-canvas-editor-header-bg-color: var(--feedback-secondary-color);
88
+ --feedback-canvas-editor-tool-bg-color: var(--feedback-white-color);
89
+ --feedback-canvas-editor-tool-bg-hover: var(--feedback-secondary-color);
90
+ --feedback-canvas-editor-tool-bg-active: var(--feedback-primary-color);
91
+ --feedback-canvas-editor-tool-text-color: var(--feedback-text-color);
92
+ --feedback-canvas-editor-tool-text-active: var(--feedback-white-color);
93
+ --feedback-canvas-editor-action-primary-bg: var(--feedback-primary-color);
94
+ --feedback-canvas-editor-action-primary-text: var(--feedback-white-color);
95
+ --feedback-canvas-editor-action-secondary-bg: var(--feedback-white-color);
96
+ --feedback-canvas-editor-action-secondary-text: var(--feedback-text-color);
97
+ --feedback-canvas-editor-action-secondary-border: var(--feedback-light-color);
98
+ --feedback-canvas-editor-divider-color: var(--feedback-light-color);
99
+ --feedback-canvas-editor-content-bg: var(--feedback-secondary-color);
100
+ --feedback-canvas-editor-resize-handle-color: var(--feedback-primary-color);
101
+ --feedback-canvas-editor-slider-track: var(--feedback-light-color);
102
+ }
103
+
104
+ [data-theme='dark'] {
105
+ --feedback-text-color: #b0b8c4;
106
+ --feedback-light-color: #363636;
107
+ --feedback-modal-button-bg-color-active: transparent;
108
+ --feedback-modal-button-icon-color: var(--feedback-white-color);
109
+ --feedback-modal-button-text-color: var(--feedback-white-color);
110
+ --feedback-modal-close-bg-color: transparent;
111
+ --feedback-modal-close-color: var(--feedback-white-color);
112
+ --feedback-modal-content-bg-color: var(--feedback-dark-color);
113
+ --feedback-modal-content-text-color: var(--feedback-text-color);
114
+ --feedback-modal-footer-link: var(--feedback-white-color);
115
+ --feedback-modal-header-text-color: var(--feedback-white-color);
116
+ --feedback-modal-input-bg-color: var(--feedback-light-color);
117
+ --feedback-modal-input-text-color: var(--feedback-white-color);
118
+ --feedback-modal-rating-button-color: var(--feedback-white-color);
119
+ /* Todo: legacy, remove these variables */
120
+ --feedback-modal-screenshot-close-color: var(--feedback-white-color);
121
+ --feedback-modal-screenshot-header-bg-color: var(--feedback-dark-color);
122
+ --feedback-modal-screenshot-header-text-color: var(--feedback-white-color);
123
+
124
+ /* Canvas Editor Dark Theme */
125
+ --feedback-canvas-editor-bg-color: var(--feedback-dark-color);
126
+ --feedback-canvas-editor-border-color: var(--feedback-light-color);
127
+ --feedback-canvas-editor-header-bg-color: var(--feedback-light-color);
128
+ --feedback-canvas-editor-tool-bg-color: var(--feedback-light-color);
129
+ --feedback-canvas-editor-tool-bg-hover: #4a4a4a;
130
+ --feedback-canvas-editor-tool-text-color: var(--feedback-white-color);
131
+ --feedback-canvas-editor-action-secondary-bg: var(--feedback-light-color);
132
+ --feedback-canvas-editor-action-secondary-text: var(--feedback-white-color);
133
+ --feedback-canvas-editor-action-secondary-border: var(--feedback-light-color);
134
+ --feedback-canvas-editor-content-bg: var(--feedback-light-color);
135
+ --feedback-canvas-editor-divider-color: #4a4a4a;
136
+ --feedback-canvas-editor-slider-track: #4a4a4a;
137
+ }
138
+
139
+ .feedback-modal-screenshot-open {
140
+ position: fixed;
141
+ width: 100%;
142
+ }
143
+
144
+ .feedback-modal-screenshot-open--scroll{
145
+ overflow-y: scroll;
146
+ }
@@ -1 +1,148 @@
1
- import{p as e,b as t}from"./p-af2a1f7f.js";export{s as setNonce}from"./p-af2a1f7f.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-7406f7be",[[1,"feedback-button",{buttonPosition:[1,"button-position"],buttonStyle:[1,"button-style"],hideIcon:[4,"hide-icon"],hideMobile:[4,"hide-mobile"],sessionId:[1537,"session-id"],metadata:[1],submit:[4],customFont:[4,"custom-font"],emailAddress:[1,"email-address"],isEmailRequired:[4,"is-email-required"],fetchData:[4,"fetch-data"],hideEmail:[4,"hide-email"],hidePrivacyPolicy:[4,"hide-privacy-policy"],hideRating:[4,"hide-rating"],hideScreenshotButton:[4,"hide-screenshot-button"],modalPosition:[1,"modal-position"],project:[1],rating:[2],ratingMode:[1,"rating-mode"],canvasEditorTitle:[1,"canvas-editor-title"],canvasEditorCancelText:[1,"canvas-editor-cancel-text"],canvasEditorSaveText:[1,"canvas-editor-save-text"],emailPlaceholder:[1,"email-placeholder"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],footerText:[1,"footer-text"],messagePlaceholder:[1,"message-placeholder"],modalTitle:[1,"modal-title"],modalTitleError:[1,"modal-title-error"],modalTitleSuccess:[1,"modal-title-success"],privacyPolicyText:[1,"privacy-policy-text"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTakingText:[1,"screenshot-taking-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"]}],[1,"feedback-modal",{customFont:[4,"custom-font"],emailAddress:[1,"email-address"],hideEmail:[4,"hide-email"],isEmailRequired:[4,"is-email-required"],ratingMode:[1,"rating-mode"],hasSelectedElement:[1540,"has-selected-element"],hidePrivacyPolicy:[4,"hide-privacy-policy"],hideRating:[4,"hide-rating"],hideScreenshotButton:[4,"hide-screenshot-button"],project:[1],showScreenshotMode:[1540,"show-screenshot-mode"],showScreenshotTopBar:[1540,"show-screenshot-top-bar"],showModal:[1540,"show-modal"],rating:[2],metadata:[1],fetchData:[4,"fetch-data"],emailPlaceholder:[1,"email-placeholder"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],messagePlaceholder:[1,"message-placeholder"],footerText:[1,"footer-text"],modalPosition:[1,"modal-position"],modalTitle:[1,"modal-title"],modalTitleError:[1,"modal-title-error"],modalTitleSuccess:[1,"modal-title-success"],privacyPolicyText:[1,"privacy-policy-text"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],sendButtonText:[1,"send-button-text"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTakingText:[1,"screenshot-taking-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],successMessage:[1,"success-message"],canvasEditorTitle:[1,"canvas-editor-title"],canvasEditorCancelText:[1,"canvas-editor-cancel-text"],canvasEditorSaveText:[1,"canvas-editor-save-text"],sending:[32],formMessage:[32],formEmail:[32],formSuccess:[32],formVerification:[32],formError:[32],formErrorStatus:[32],encodedScreenshot:[32],isPrivacyChecked:[32],whitelabel:[32],selectedRating:[32],overlayVisible:[32],isAnimating:[32],takingScreenshot:[32],showPreviewModal:[32],showCanvasEditor:[32],canvasDrawingTool:[32],canvasDrawingColor:[32],canvasLineWidth:[32],isDrawing:[32],annotations:[32],currentAnnotation:[32],isDragging:[32],draggedAnnotation:[32],dragStartPos:[32],showColorPicker:[32],editingColorIndex:[32],isResizing:[32],resizingAnnotation:[32],resizeStartSize:[32],hoveredAnnotation:[32],resizeHandle:[32],defaultColors:[32],openModal:[64]}]]]],e)));
1
+ import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-36434da0.js';
2
+ export { s as setNonce } from './index-36434da0.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ /**
9
+ * Helper method for querying a `meta` tag that contains a nonce value
10
+ * out of a DOM's head.
11
+ *
12
+ * @param doc The DOM containing the `head` to query against
13
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
14
+ * exists or the tag has no content.
15
+ */
16
+ function queryNonceMetaTagContent(doc) {
17
+ var _a, _b, _c;
18
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
19
+ }
20
+ const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
21
+ const patchBrowser = () => {
22
+ // NOTE!! This fn cannot use async/await!
23
+ if (BUILD.isDev && !BUILD.isTesting) {
24
+ consoleDevInfo('Running in development mode.');
25
+ }
26
+ if (BUILD.cssVarShim) {
27
+ // shim css vars
28
+ plt.$cssShim$ = win.__cssshim;
29
+ }
30
+ if (BUILD.cloneNodeFix) {
31
+ // opted-in to polyfill cloneNode() for slot polyfilled components
32
+ patchCloneNodeFix(H.prototype);
33
+ }
34
+ if (BUILD.profile && !performance.mark) {
35
+ // not all browsers support performance.mark/measure (Safari 10)
36
+ // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
37
+ // simply stub the implementations out.
38
+ // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
39
+ // @ts-ignore
40
+ performance.mark = performance.measure = () => {
41
+ /*noop*/
42
+ };
43
+ performance.getEntriesByName = () => [];
44
+ }
45
+ // @ts-ignore
46
+ const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
47
+ ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
48
+ s.getAttribute('data-stencil-namespace') === NAMESPACE)
49
+ : null;
50
+ const importMeta = import.meta.url;
51
+ const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
52
+ if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
53
+ // Safari < v11 support: This IF is true if it's Safari below v11.
54
+ // This fn cannot use async/await since Safari didn't support it until v11,
55
+ // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
56
+ // so both the ESM file and nomodule file would get downloaded. Only Safari
57
+ // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
58
+ // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
59
+ // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
60
+ return {
61
+ then() {
62
+ /* promise noop */
63
+ },
64
+ };
65
+ }
66
+ if (!BUILD.safari10 && importMeta !== '') {
67
+ opts.resourcesUrl = new URL('.', importMeta).href;
68
+ }
69
+ else if (BUILD.dynamicImportShim || BUILD.safari10) {
70
+ opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
71
+ if (BUILD.dynamicImportShim) {
72
+ patchDynamicImport(opts.resourcesUrl, scriptElm);
73
+ }
74
+ if (BUILD.dynamicImportShim && !win.customElements) {
75
+ // module support, but no custom elements support (Old Edge)
76
+ // @ts-ignore
77
+ return import(/* webpackChunkName: "polyfills-dom" */ './dom-64053c71.js').then(() => opts);
78
+ }
79
+ }
80
+ return promiseResolve(opts);
81
+ };
82
+ const patchDynamicImport = (base, orgScriptElm) => {
83
+ const importFunctionName = getDynamicImportFunction(NAMESPACE);
84
+ try {
85
+ // test if this browser supports dynamic imports
86
+ // There is a caching issue in V8, that breaks using import() in Function
87
+ // By generating a random string, we can workaround it
88
+ // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
89
+ win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
90
+ }
91
+ catch (e) {
92
+ // this shim is specifically for browsers that do support "esm" imports
93
+ // however, they do NOT support "dynamic" imports
94
+ // basically this code is for old Edge, v18 and below
95
+ const moduleMap = new Map();
96
+ win[importFunctionName] = (src) => {
97
+ var _a;
98
+ const url = new URL(src, base).href;
99
+ let mod = moduleMap.get(url);
100
+ if (!mod) {
101
+ const script = doc.createElement('script');
102
+ script.type = 'module';
103
+ script.crossOrigin = orgScriptElm.crossOrigin;
104
+ script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
105
+ type: 'application/javascript',
106
+ }));
107
+ // Apply CSP nonce to the script tag if it exists
108
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
109
+ if (nonce != null) {
110
+ script.setAttribute('nonce', nonce);
111
+ }
112
+ mod = new Promise((resolve) => {
113
+ script.onload = () => {
114
+ resolve(win[importFunctionName].m);
115
+ script.remove();
116
+ };
117
+ });
118
+ moduleMap.set(url, mod);
119
+ doc.head.appendChild(script);
120
+ }
121
+ return mod;
122
+ };
123
+ }
124
+ };
125
+ const patchCloneNodeFix = (HTMLElementPrototype) => {
126
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
127
+ HTMLElementPrototype.cloneNode = function (deep) {
128
+ if (this.nodeName === 'TEMPLATE') {
129
+ return nativeCloneNodeFn.call(this, deep);
130
+ }
131
+ const clonedNode = nativeCloneNodeFn.call(this, false);
132
+ const srcChildNodes = this.childNodes;
133
+ if (deep) {
134
+ for (let i = 0; i < srcChildNodes.length; i++) {
135
+ // Node.ATTRIBUTE_NODE === 2, and checking because IE11
136
+ if (srcChildNodes[i].nodeType !== 2) {
137
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
138
+ }
139
+ }
140
+ }
141
+ return clonedNode;
142
+ };
143
+ };
144
+
145
+ patchBrowser().then(options => {
146
+ globalScripts();
147
+ return bootstrapLazy([["canvas-editor",[[1,"canvas-editor",{"canvasEditorTitle":[1,"canvas-editor-title"],"canvasEditorCancelText":[1,"canvas-editor-cancel-text"],"canvasEditorSaveText":[1,"canvas-editor-save-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"autoStartScreenshot":[4,"auto-start-screenshot"],"existingScreenshot":[1,"existing-screenshot"],"editTextButtonText":[1,"edit-text-button-text"],"sizeLabelText":[1,"size-label-text"],"borderLabelText":[1,"border-label-text"],"editTextPromptText":[1,"edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"],"takingScreenshot":[32],"showCanvasEditor":[32],"canvasDrawingTool":[32],"canvasDrawingColor":[32],"canvasLineWidth":[32],"canvasTextSize":[32],"isDrawing":[32],"annotations":[32],"currentAnnotation":[32],"isDragging":[32],"draggedAnnotation":[32],"dragStartPos":[32],"showColorPicker":[32],"editingColorIndex":[32],"selectedAnnotation":[32],"isResizing":[32],"resizingAnnotation":[32],"resizeStartSize":[32],"resizeStartDimensions":[32],"hoveredAnnotation":[32],"resizeHandle":[32],"defaultColors":[32]}]]],["feedback-modal",[[1,"feedback-modal",{"customFont":[4,"custom-font"],"emailAddress":[1,"email-address"],"hideEmail":[4,"hide-email"],"isEmailRequired":[4,"is-email-required"],"ratingMode":[1,"rating-mode"],"hasSelectedElement":[1540,"has-selected-element"],"hidePrivacyPolicy":[4,"hide-privacy-policy"],"hideRating":[4,"hide-rating"],"hideScreenshotButton":[4,"hide-screenshot-button"],"project":[1],"showScreenshotMode":[1540,"show-screenshot-mode"],"showScreenshotTopBar":[1540,"show-screenshot-top-bar"],"showModal":[1540,"show-modal"],"rating":[2],"metadata":[1],"fetchData":[4,"fetch-data"],"emailPlaceholder":[1,"email-placeholder"],"errorMessage":[1,"error-message"],"errorMessage403":[1,"error-message-4-0-3"],"errorMessage404":[1,"error-message-4-0-4"],"messagePlaceholder":[1,"message-placeholder"],"footerText":[1,"footer-text"],"modalPosition":[1,"modal-position"],"modalTitle":[1,"modal-title"],"modalTitleError":[1,"modal-title-error"],"modalTitleSuccess":[1,"modal-title-success"],"privacyPolicyText":[1,"privacy-policy-text"],"ratingPlaceholder":[1,"rating-placeholder"],"ratingStarsPlaceholder":[1,"rating-stars-placeholder"],"sendButtonText":[1,"send-button-text"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotTopbarText":[1,"screenshot-topbar-text"],"successMessage":[1,"success-message"],"canvasEditorTitle":[1,"canvas-editor-title"],"canvasEditorCancelText":[1,"canvas-editor-cancel-text"],"canvasEditorSaveText":[1,"canvas-editor-save-text"],"editTextButtonText":[1,"edit-text-button-text"],"sizeLabelText":[1,"size-label-text"],"borderLabelText":[1,"border-label-text"],"editTextPromptText":[1,"edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"],"sending":[32],"formMessage":[32],"formEmail":[32],"formSuccess":[32],"formVerification":[32],"formError":[32],"formErrorStatus":[32],"encodedScreenshot":[32],"isPrivacyChecked":[32],"whitelabel":[32],"selectedRating":[32],"overlayVisible":[32],"isAnimating":[32],"takingScreenshot":[32],"showScreenshotError":[32],"screenshotError":[32],"showCanvasEditor":[32],"autoStartCapture":[32],"openModal":[64]}]]],["feedback-button",[[1,"feedback-button",{"buttonPosition":[1,"button-position"],"buttonStyle":[1,"button-style"],"hideIcon":[4,"hide-icon"],"hideMobile":[4,"hide-mobile"],"sessionId":[1537,"session-id"],"metadata":[1],"submit":[4],"customFont":[4,"custom-font"],"emailAddress":[1,"email-address"],"isEmailRequired":[4,"is-email-required"],"fetchData":[4,"fetch-data"],"hideEmail":[4,"hide-email"],"hidePrivacyPolicy":[4,"hide-privacy-policy"],"hideRating":[4,"hide-rating"],"hideScreenshotButton":[4,"hide-screenshot-button"],"modalPosition":[1,"modal-position"],"project":[1],"rating":[2],"ratingMode":[1,"rating-mode"],"canvasEditorTitle":[1,"canvas-editor-title"],"canvasEditorCancelText":[1,"canvas-editor-cancel-text"],"canvasEditorSaveText":[1,"canvas-editor-save-text"],"editTextButtonText":[1,"edit-text-button-text"],"sizeLabelText":[1,"size-label-text"],"borderLabelText":[1,"border-label-text"],"editTextPromptText":[1,"edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"],"emailPlaceholder":[1,"email-placeholder"],"errorMessage":[1,"error-message"],"errorMessage403":[1,"error-message-4-0-3"],"errorMessage404":[1,"error-message-4-0-4"],"footerText":[1,"footer-text"],"messagePlaceholder":[1,"message-placeholder"],"modalTitle":[1,"modal-title"],"modalTitleError":[1,"modal-title-error"],"modalTitleSuccess":[1,"modal-title-success"],"privacyPolicyText":[1,"privacy-policy-text"],"ratingPlaceholder":[1,"rating-placeholder"],"ratingStarsPlaceholder":[1,"rating-stars-placeholder"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotTopbarText":[1,"screenshot-topbar-text"],"sendButtonText":[1,"send-button-text"],"successMessage":[1,"success-message"]}]]]], options);
148
+ });