pushfeedback 0.1.71 → 0.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/canvas-editor_3.cjs.entry.js +33 -36
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pushfeedback.cjs.js +1 -1
- package/dist/collection/components/feedback-button/feedback-button.js +116 -136
- package/dist/collection/components/feedback-modal/feedback-modal.js +41 -60
- package/dist/components/feedback-button.js +39 -42
- package/dist/components/feedback-modal2.js +18 -20
- package/dist/esm/canvas-editor_3.entry.js +33 -36
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pushfeedback.js +1 -1
- package/dist/pushfeedback/p-881a733a.entry.js +1 -0
- package/dist/pushfeedback/pushfeedback.esm.js +1 -1
- package/dist/types/components/feedback-button/feedback-button.d.ts +16 -17
- package/dist/types/components/feedback-modal/feedback-modal.d.ts +8 -9
- package/dist/types/components.d.ts +28 -32
- package/package.json +1 -1
- package/dist/pushfeedback/p-2c39091c.entry.js +0 -1
|
@@ -187,24 +187,23 @@ export class FeedbackModal {
|
|
|
187
187
|
this.ratingPlaceholder = 'Was this page helpful?';
|
|
188
188
|
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
189
189
|
this.sendButtonText = 'Send';
|
|
190
|
+
this.successMessage = '';
|
|
191
|
+
this.screenshotEditorTitle = 'Edit screenshot';
|
|
192
|
+
this.screenshotEditorCancelText = 'Cancel';
|
|
193
|
+
this.screenshotEditorSaveText = 'Save';
|
|
190
194
|
this.screenshotAttachedText = 'Screenshot attached';
|
|
191
195
|
this.screenshotButtonText = 'Add a screenshot';
|
|
192
196
|
this.screenshotTakingText = 'Taking screenshot...';
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
197
|
-
this.canvasEditorSaveText = 'Save';
|
|
198
|
-
this.editTextButtonText = 'Edit Text';
|
|
199
|
-
this.sizeLabelText = 'Size:';
|
|
200
|
-
this.borderLabelText = 'Border:';
|
|
201
|
-
this.editTextPromptText = 'Edit text:';
|
|
197
|
+
this.screenshotEditTextButtonText = 'Edit text';
|
|
198
|
+
this.screenshotSizeLabelText = 'Size:';
|
|
199
|
+
this.screenshotBorderLabelText = 'Border:';
|
|
200
|
+
this.screenshotEditTextPromptText = 'Edit text:';
|
|
202
201
|
this.screenshotErrorGeneral = 'Failed to capture screenshot.';
|
|
203
202
|
this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
|
|
204
203
|
this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
|
|
205
204
|
this.screenshotErrorNotFound = 'No screen sources available for capture.';
|
|
206
205
|
this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
|
|
207
|
-
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
|
|
206
|
+
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
|
|
208
207
|
this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
|
|
209
208
|
}
|
|
210
209
|
componentWillLoad() {
|
|
@@ -250,7 +249,7 @@ export class FeedbackModal {
|
|
|
250
249
|
this.selectedRating = newRating;
|
|
251
250
|
}
|
|
252
251
|
render() {
|
|
253
|
-
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.
|
|
252
|
+
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.screenshotEditorTitle, "canvas-editor-cancel-text": this.screenshotEditorCancelText, "canvas-editor-save-text": this.screenshotEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.screenshotEditTextButtonText, "size-label-text": this.screenshotSizeLabelText, "border-label-text": this.screenshotBorderLabelText, "edit-text-prompt-text": this.screenshotEditTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
|
|
254
253
|
? 'feedback-modal-rating-button--selected'
|
|
255
254
|
: ''}`, onClick: (event) => {
|
|
256
255
|
event.preventDefault();
|
|
@@ -835,25 +834,7 @@ export class FeedbackModal {
|
|
|
835
834
|
"reflect": false,
|
|
836
835
|
"defaultValue": "'Send'"
|
|
837
836
|
},
|
|
838
|
-
"
|
|
839
|
-
"type": "string",
|
|
840
|
-
"mutable": false,
|
|
841
|
-
"complexType": {
|
|
842
|
-
"original": "string",
|
|
843
|
-
"resolved": "string",
|
|
844
|
-
"references": {}
|
|
845
|
-
},
|
|
846
|
-
"required": false,
|
|
847
|
-
"optional": false,
|
|
848
|
-
"docs": {
|
|
849
|
-
"tags": [],
|
|
850
|
-
"text": ""
|
|
851
|
-
},
|
|
852
|
-
"attribute": "screenshot-attached-text",
|
|
853
|
-
"reflect": false,
|
|
854
|
-
"defaultValue": "'Screenshot attached'"
|
|
855
|
-
},
|
|
856
|
-
"screenshotButtonText": {
|
|
837
|
+
"successMessage": {
|
|
857
838
|
"type": "string",
|
|
858
839
|
"mutable": false,
|
|
859
840
|
"complexType": {
|
|
@@ -867,11 +848,11 @@ export class FeedbackModal {
|
|
|
867
848
|
"tags": [],
|
|
868
849
|
"text": ""
|
|
869
850
|
},
|
|
870
|
-
"attribute": "
|
|
851
|
+
"attribute": "success-message",
|
|
871
852
|
"reflect": false,
|
|
872
|
-
"defaultValue": "'
|
|
853
|
+
"defaultValue": "''"
|
|
873
854
|
},
|
|
874
|
-
"
|
|
855
|
+
"screenshotEditorTitle": {
|
|
875
856
|
"type": "string",
|
|
876
857
|
"mutable": false,
|
|
877
858
|
"complexType": {
|
|
@@ -885,11 +866,11 @@ export class FeedbackModal {
|
|
|
885
866
|
"tags": [],
|
|
886
867
|
"text": ""
|
|
887
868
|
},
|
|
888
|
-
"attribute": "screenshot-
|
|
869
|
+
"attribute": "screenshot-editor-title",
|
|
889
870
|
"reflect": false,
|
|
890
|
-
"defaultValue": "'
|
|
871
|
+
"defaultValue": "'Edit screenshot'"
|
|
891
872
|
},
|
|
892
|
-
"
|
|
873
|
+
"screenshotEditorCancelText": {
|
|
893
874
|
"type": "string",
|
|
894
875
|
"mutable": false,
|
|
895
876
|
"complexType": {
|
|
@@ -903,11 +884,11 @@ export class FeedbackModal {
|
|
|
903
884
|
"tags": [],
|
|
904
885
|
"text": ""
|
|
905
886
|
},
|
|
906
|
-
"attribute": "screenshot-
|
|
887
|
+
"attribute": "screenshot-editor-cancel-text",
|
|
907
888
|
"reflect": false,
|
|
908
|
-
"defaultValue": "'
|
|
889
|
+
"defaultValue": "'Cancel'"
|
|
909
890
|
},
|
|
910
|
-
"
|
|
891
|
+
"screenshotEditorSaveText": {
|
|
911
892
|
"type": "string",
|
|
912
893
|
"mutable": false,
|
|
913
894
|
"complexType": {
|
|
@@ -921,11 +902,11 @@ export class FeedbackModal {
|
|
|
921
902
|
"tags": [],
|
|
922
903
|
"text": ""
|
|
923
904
|
},
|
|
924
|
-
"attribute": "
|
|
905
|
+
"attribute": "screenshot-editor-save-text",
|
|
925
906
|
"reflect": false,
|
|
926
|
-
"defaultValue": "''"
|
|
907
|
+
"defaultValue": "'Save'"
|
|
927
908
|
},
|
|
928
|
-
"
|
|
909
|
+
"screenshotAttachedText": {
|
|
929
910
|
"type": "string",
|
|
930
911
|
"mutable": false,
|
|
931
912
|
"complexType": {
|
|
@@ -939,11 +920,11 @@ export class FeedbackModal {
|
|
|
939
920
|
"tags": [],
|
|
940
921
|
"text": ""
|
|
941
922
|
},
|
|
942
|
-
"attribute": "
|
|
923
|
+
"attribute": "screenshot-attached-text",
|
|
943
924
|
"reflect": false,
|
|
944
|
-
"defaultValue": "'
|
|
925
|
+
"defaultValue": "'Screenshot attached'"
|
|
945
926
|
},
|
|
946
|
-
"
|
|
927
|
+
"screenshotButtonText": {
|
|
947
928
|
"type": "string",
|
|
948
929
|
"mutable": false,
|
|
949
930
|
"complexType": {
|
|
@@ -957,11 +938,11 @@ export class FeedbackModal {
|
|
|
957
938
|
"tags": [],
|
|
958
939
|
"text": ""
|
|
959
940
|
},
|
|
960
|
-
"attribute": "
|
|
941
|
+
"attribute": "screenshot-button-text",
|
|
961
942
|
"reflect": false,
|
|
962
|
-
"defaultValue": "'
|
|
943
|
+
"defaultValue": "'Add a screenshot'"
|
|
963
944
|
},
|
|
964
|
-
"
|
|
945
|
+
"screenshotTakingText": {
|
|
965
946
|
"type": "string",
|
|
966
947
|
"mutable": false,
|
|
967
948
|
"complexType": {
|
|
@@ -975,11 +956,11 @@ export class FeedbackModal {
|
|
|
975
956
|
"tags": [],
|
|
976
957
|
"text": ""
|
|
977
958
|
},
|
|
978
|
-
"attribute": "
|
|
959
|
+
"attribute": "screenshot-taking-text",
|
|
979
960
|
"reflect": false,
|
|
980
|
-
"defaultValue": "'
|
|
961
|
+
"defaultValue": "'Taking screenshot...'"
|
|
981
962
|
},
|
|
982
|
-
"
|
|
963
|
+
"screenshotEditTextButtonText": {
|
|
983
964
|
"type": "string",
|
|
984
965
|
"mutable": false,
|
|
985
966
|
"complexType": {
|
|
@@ -993,11 +974,11 @@ export class FeedbackModal {
|
|
|
993
974
|
"tags": [],
|
|
994
975
|
"text": ""
|
|
995
976
|
},
|
|
996
|
-
"attribute": "edit-text-button-text",
|
|
977
|
+
"attribute": "screenshot-edit-text-button-text",
|
|
997
978
|
"reflect": false,
|
|
998
|
-
"defaultValue": "'Edit
|
|
979
|
+
"defaultValue": "'Edit text'"
|
|
999
980
|
},
|
|
1000
|
-
"
|
|
981
|
+
"screenshotSizeLabelText": {
|
|
1001
982
|
"type": "string",
|
|
1002
983
|
"mutable": false,
|
|
1003
984
|
"complexType": {
|
|
@@ -1011,11 +992,11 @@ export class FeedbackModal {
|
|
|
1011
992
|
"tags": [],
|
|
1012
993
|
"text": ""
|
|
1013
994
|
},
|
|
1014
|
-
"attribute": "size-label-text",
|
|
995
|
+
"attribute": "screenshot-size-label-text",
|
|
1015
996
|
"reflect": false,
|
|
1016
997
|
"defaultValue": "'Size:'"
|
|
1017
998
|
},
|
|
1018
|
-
"
|
|
999
|
+
"screenshotBorderLabelText": {
|
|
1019
1000
|
"type": "string",
|
|
1020
1001
|
"mutable": false,
|
|
1021
1002
|
"complexType": {
|
|
@@ -1029,11 +1010,11 @@ export class FeedbackModal {
|
|
|
1029
1010
|
"tags": [],
|
|
1030
1011
|
"text": ""
|
|
1031
1012
|
},
|
|
1032
|
-
"attribute": "border-label-text",
|
|
1013
|
+
"attribute": "screenshot-border-label-text",
|
|
1033
1014
|
"reflect": false,
|
|
1034
1015
|
"defaultValue": "'Border:'"
|
|
1035
1016
|
},
|
|
1036
|
-
"
|
|
1017
|
+
"screenshotEditTextPromptText": {
|
|
1037
1018
|
"type": "string",
|
|
1038
1019
|
"mutable": false,
|
|
1039
1020
|
"complexType": {
|
|
@@ -1047,7 +1028,7 @@ export class FeedbackModal {
|
|
|
1047
1028
|
"tags": [],
|
|
1048
1029
|
"text": ""
|
|
1049
1030
|
},
|
|
1050
|
-
"attribute": "edit-text-prompt-text",
|
|
1031
|
+
"attribute": "screenshot-edit-text-prompt-text",
|
|
1051
1032
|
"reflect": false,
|
|
1052
1033
|
"defaultValue": "'Edit text:'"
|
|
1053
1034
|
},
|
|
@@ -1157,7 +1138,7 @@ export class FeedbackModal {
|
|
|
1157
1138
|
},
|
|
1158
1139
|
"attribute": "screenshot-error-browser-not-supported",
|
|
1159
1140
|
"reflect": false,
|
|
1160
|
-
"defaultValue": "'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.'"
|
|
1141
|
+
"defaultValue": "'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.'"
|
|
1161
1142
|
},
|
|
1162
1143
|
"screenshotErrorUnexpected": {
|
|
1163
1144
|
"type": "string",
|
|
@@ -30,20 +30,6 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
30
30
|
this.project = '';
|
|
31
31
|
this.rating = undefined;
|
|
32
32
|
this.ratingMode = 'thumbs';
|
|
33
|
-
this.canvasEditorTitle = 'Edit screenshot';
|
|
34
|
-
this.canvasEditorCancelText = 'Cancel';
|
|
35
|
-
this.canvasEditorSaveText = 'Save';
|
|
36
|
-
this.editTextButtonText = 'Edit Text';
|
|
37
|
-
this.sizeLabelText = 'Size:';
|
|
38
|
-
this.borderLabelText = 'Border:';
|
|
39
|
-
this.editTextPromptText = 'Edit text:';
|
|
40
|
-
this.screenshotErrorGeneral = 'Failed to capture screenshot.';
|
|
41
|
-
this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
|
|
42
|
-
this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
|
|
43
|
-
this.screenshotErrorNotFound = 'No screen sources available for capture.';
|
|
44
|
-
this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
|
|
45
|
-
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
|
|
46
|
-
this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
|
|
47
33
|
this.emailPlaceholder = 'Email address (optional)';
|
|
48
34
|
this.errorMessage = 'Please try again later.';
|
|
49
35
|
this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
|
|
@@ -56,12 +42,25 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
56
42
|
this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
|
|
57
43
|
this.ratingPlaceholder = 'Was this page helpful?';
|
|
58
44
|
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
45
|
+
this.sendButtonText = 'Send';
|
|
46
|
+
this.successMessage = '';
|
|
59
47
|
this.screenshotAttachedText = 'Screenshot attached';
|
|
60
48
|
this.screenshotButtonText = 'Add a screenshot';
|
|
61
49
|
this.screenshotTakingText = 'Taking screenshot...';
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
50
|
+
this.screenshotEditTextButtonText = 'Edit text';
|
|
51
|
+
this.screenshotEditorTitle = 'Edit screenshot';
|
|
52
|
+
this.screenshotEditorCancelText = 'Cancel';
|
|
53
|
+
this.screenshotEditorSaveText = 'Save';
|
|
54
|
+
this.screenshotSizeLabelText = 'Size:';
|
|
55
|
+
this.screenshotBorderLabelText = 'Border:';
|
|
56
|
+
this.screenshotEditTextPromptText = 'Edit text:';
|
|
57
|
+
this.screenshotErrorGeneral = 'Failed to capture screenshot.';
|
|
58
|
+
this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
|
|
59
|
+
this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
|
|
60
|
+
this.screenshotErrorNotFound = 'No screen sources available for capture.';
|
|
61
|
+
this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
|
|
62
|
+
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
|
|
63
|
+
this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
|
|
65
64
|
}
|
|
66
65
|
componentWillLoad() {
|
|
67
66
|
if (!this.sessionId) {
|
|
@@ -104,13 +103,13 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
104
103
|
'project',
|
|
105
104
|
'rating',
|
|
106
105
|
'ratingMode',
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
106
|
+
'screenshotEditorTitle',
|
|
107
|
+
'screenshotEditorCancelText',
|
|
108
|
+
'screenshotEditorSaveText',
|
|
109
|
+
'screenshotEditTextButtonText',
|
|
110
|
+
'screenshotSizeLabelText',
|
|
111
|
+
'screenshotBorderLabelText',
|
|
112
|
+
'screenshotEditTextPromptText',
|
|
114
113
|
'screenshotErrorGeneral',
|
|
115
114
|
'screenshotErrorPermission',
|
|
116
115
|
'screenshotErrorNotSupported',
|
|
@@ -134,7 +133,6 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
134
133
|
'screenshotAttachedText',
|
|
135
134
|
'screenshotButtonText',
|
|
136
135
|
'screenshotTakingText',
|
|
137
|
-
'screenshotTopbarText',
|
|
138
136
|
'sendButtonText',
|
|
139
137
|
'successMessage',
|
|
140
138
|
];
|
|
@@ -231,20 +229,6 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
231
229
|
"project": [1],
|
|
232
230
|
"rating": [2],
|
|
233
231
|
"ratingMode": [1, "rating-mode"],
|
|
234
|
-
"canvasEditorTitle": [1, "canvas-editor-title"],
|
|
235
|
-
"canvasEditorCancelText": [1, "canvas-editor-cancel-text"],
|
|
236
|
-
"canvasEditorSaveText": [1, "canvas-editor-save-text"],
|
|
237
|
-
"editTextButtonText": [1, "edit-text-button-text"],
|
|
238
|
-
"sizeLabelText": [1, "size-label-text"],
|
|
239
|
-
"borderLabelText": [1, "border-label-text"],
|
|
240
|
-
"editTextPromptText": [1, "edit-text-prompt-text"],
|
|
241
|
-
"screenshotErrorGeneral": [1, "screenshot-error-general"],
|
|
242
|
-
"screenshotErrorPermission": [1, "screenshot-error-permission"],
|
|
243
|
-
"screenshotErrorNotSupported": [1, "screenshot-error-not-supported"],
|
|
244
|
-
"screenshotErrorNotFound": [1, "screenshot-error-not-found"],
|
|
245
|
-
"screenshotErrorCancelled": [1, "screenshot-error-cancelled"],
|
|
246
|
-
"screenshotErrorBrowserNotSupported": [1, "screenshot-error-browser-not-supported"],
|
|
247
|
-
"screenshotErrorUnexpected": [1, "screenshot-error-unexpected"],
|
|
248
232
|
"emailPlaceholder": [1, "email-placeholder"],
|
|
249
233
|
"errorMessage": [1, "error-message"],
|
|
250
234
|
"errorMessage403": [1, "error-message-4-0-3"],
|
|
@@ -257,12 +241,25 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
257
241
|
"privacyPolicyText": [1, "privacy-policy-text"],
|
|
258
242
|
"ratingPlaceholder": [1, "rating-placeholder"],
|
|
259
243
|
"ratingStarsPlaceholder": [1, "rating-stars-placeholder"],
|
|
244
|
+
"sendButtonText": [1, "send-button-text"],
|
|
245
|
+
"successMessage": [1, "success-message"],
|
|
260
246
|
"screenshotAttachedText": [1, "screenshot-attached-text"],
|
|
261
247
|
"screenshotButtonText": [1, "screenshot-button-text"],
|
|
262
248
|
"screenshotTakingText": [1, "screenshot-taking-text"],
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
249
|
+
"screenshotEditTextButtonText": [1, "screenshot-edit-text-button-text"],
|
|
250
|
+
"screenshotEditorTitle": [1, "screenshot-editor-title"],
|
|
251
|
+
"screenshotEditorCancelText": [1, "screenshot-editor-cancel-text"],
|
|
252
|
+
"screenshotEditorSaveText": [1, "screenshot-editor-save-text"],
|
|
253
|
+
"screenshotSizeLabelText": [1, "screenshot-size-label-text"],
|
|
254
|
+
"screenshotBorderLabelText": [1, "screenshot-border-label-text"],
|
|
255
|
+
"screenshotEditTextPromptText": [1, "screenshot-edit-text-prompt-text"],
|
|
256
|
+
"screenshotErrorGeneral": [1, "screenshot-error-general"],
|
|
257
|
+
"screenshotErrorPermission": [1, "screenshot-error-permission"],
|
|
258
|
+
"screenshotErrorNotSupported": [1, "screenshot-error-not-supported"],
|
|
259
|
+
"screenshotErrorNotFound": [1, "screenshot-error-not-found"],
|
|
260
|
+
"screenshotErrorCancelled": [1, "screenshot-error-cancelled"],
|
|
261
|
+
"screenshotErrorBrowserNotSupported": [1, "screenshot-error-browser-not-supported"],
|
|
262
|
+
"screenshotErrorUnexpected": [1, "screenshot-error-unexpected"]
|
|
266
263
|
}]);
|
|
267
264
|
function defineCustomElement$1() {
|
|
268
265
|
if (typeof customElements === "undefined") {
|
|
@@ -196,24 +196,23 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
196
196
|
this.ratingPlaceholder = 'Was this page helpful?';
|
|
197
197
|
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
198
198
|
this.sendButtonText = 'Send';
|
|
199
|
+
this.successMessage = '';
|
|
200
|
+
this.screenshotEditorTitle = 'Edit screenshot';
|
|
201
|
+
this.screenshotEditorCancelText = 'Cancel';
|
|
202
|
+
this.screenshotEditorSaveText = 'Save';
|
|
199
203
|
this.screenshotAttachedText = 'Screenshot attached';
|
|
200
204
|
this.screenshotButtonText = 'Add a screenshot';
|
|
201
205
|
this.screenshotTakingText = 'Taking screenshot...';
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
205
|
-
this.
|
|
206
|
-
this.canvasEditorSaveText = 'Save';
|
|
207
|
-
this.editTextButtonText = 'Edit Text';
|
|
208
|
-
this.sizeLabelText = 'Size:';
|
|
209
|
-
this.borderLabelText = 'Border:';
|
|
210
|
-
this.editTextPromptText = 'Edit text:';
|
|
206
|
+
this.screenshotEditTextButtonText = 'Edit text';
|
|
207
|
+
this.screenshotSizeLabelText = 'Size:';
|
|
208
|
+
this.screenshotBorderLabelText = 'Border:';
|
|
209
|
+
this.screenshotEditTextPromptText = 'Edit text:';
|
|
211
210
|
this.screenshotErrorGeneral = 'Failed to capture screenshot.';
|
|
212
211
|
this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
|
|
213
212
|
this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
|
|
214
213
|
this.screenshotErrorNotFound = 'No screen sources available for capture.';
|
|
215
214
|
this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
|
|
216
|
-
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
|
|
215
|
+
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
|
|
217
216
|
this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
|
|
218
217
|
}
|
|
219
218
|
componentWillLoad() {
|
|
@@ -259,7 +258,7 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
259
258
|
this.selectedRating = newRating;
|
|
260
259
|
}
|
|
261
260
|
render() {
|
|
262
|
-
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.
|
|
261
|
+
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.screenshotEditorTitle, "canvas-editor-cancel-text": this.screenshotEditorCancelText, "canvas-editor-save-text": this.screenshotEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.screenshotEditTextButtonText, "size-label-text": this.screenshotSizeLabelText, "border-label-text": this.screenshotBorderLabelText, "edit-text-prompt-text": this.screenshotEditTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
|
|
263
262
|
? 'feedback-modal-rating-button--selected'
|
|
264
263
|
: ''}`, onClick: (event) => {
|
|
265
264
|
event.preventDefault();
|
|
@@ -324,18 +323,17 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
324
323
|
"ratingPlaceholder": [1, "rating-placeholder"],
|
|
325
324
|
"ratingStarsPlaceholder": [1, "rating-stars-placeholder"],
|
|
326
325
|
"sendButtonText": [1, "send-button-text"],
|
|
326
|
+
"successMessage": [1, "success-message"],
|
|
327
|
+
"screenshotEditorTitle": [1, "screenshot-editor-title"],
|
|
328
|
+
"screenshotEditorCancelText": [1, "screenshot-editor-cancel-text"],
|
|
329
|
+
"screenshotEditorSaveText": [1, "screenshot-editor-save-text"],
|
|
327
330
|
"screenshotAttachedText": [1, "screenshot-attached-text"],
|
|
328
331
|
"screenshotButtonText": [1, "screenshot-button-text"],
|
|
329
332
|
"screenshotTakingText": [1, "screenshot-taking-text"],
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
"
|
|
333
|
-
"
|
|
334
|
-
"canvasEditorSaveText": [1, "canvas-editor-save-text"],
|
|
335
|
-
"editTextButtonText": [1, "edit-text-button-text"],
|
|
336
|
-
"sizeLabelText": [1, "size-label-text"],
|
|
337
|
-
"borderLabelText": [1, "border-label-text"],
|
|
338
|
-
"editTextPromptText": [1, "edit-text-prompt-text"],
|
|
333
|
+
"screenshotEditTextButtonText": [1, "screenshot-edit-text-button-text"],
|
|
334
|
+
"screenshotSizeLabelText": [1, "screenshot-size-label-text"],
|
|
335
|
+
"screenshotBorderLabelText": [1, "screenshot-border-label-text"],
|
|
336
|
+
"screenshotEditTextPromptText": [1, "screenshot-edit-text-prompt-text"],
|
|
339
337
|
"screenshotErrorGeneral": [1, "screenshot-error-general"],
|
|
340
338
|
"screenshotErrorPermission": [1, "screenshot-error-permission"],
|
|
341
339
|
"screenshotErrorNotSupported": [1, "screenshot-error-not-supported"],
|
|
@@ -883,20 +883,6 @@ const FeedbackButton = class {
|
|
|
883
883
|
this.project = '';
|
|
884
884
|
this.rating = undefined;
|
|
885
885
|
this.ratingMode = 'thumbs';
|
|
886
|
-
this.canvasEditorTitle = 'Edit screenshot';
|
|
887
|
-
this.canvasEditorCancelText = 'Cancel';
|
|
888
|
-
this.canvasEditorSaveText = 'Save';
|
|
889
|
-
this.editTextButtonText = 'Edit Text';
|
|
890
|
-
this.sizeLabelText = 'Size:';
|
|
891
|
-
this.borderLabelText = 'Border:';
|
|
892
|
-
this.editTextPromptText = 'Edit text:';
|
|
893
|
-
this.screenshotErrorGeneral = 'Failed to capture screenshot.';
|
|
894
|
-
this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
|
|
895
|
-
this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
|
|
896
|
-
this.screenshotErrorNotFound = 'No screen sources available for capture.';
|
|
897
|
-
this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
|
|
898
|
-
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
|
|
899
|
-
this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
|
|
900
886
|
this.emailPlaceholder = 'Email address (optional)';
|
|
901
887
|
this.errorMessage = 'Please try again later.';
|
|
902
888
|
this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
|
|
@@ -909,12 +895,25 @@ const FeedbackButton = class {
|
|
|
909
895
|
this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
|
|
910
896
|
this.ratingPlaceholder = 'Was this page helpful?';
|
|
911
897
|
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
898
|
+
this.sendButtonText = 'Send';
|
|
899
|
+
this.successMessage = '';
|
|
912
900
|
this.screenshotAttachedText = 'Screenshot attached';
|
|
913
901
|
this.screenshotButtonText = 'Add a screenshot';
|
|
914
902
|
this.screenshotTakingText = 'Taking screenshot...';
|
|
915
|
-
this.
|
|
916
|
-
this.
|
|
917
|
-
this.
|
|
903
|
+
this.screenshotEditTextButtonText = 'Edit text';
|
|
904
|
+
this.screenshotEditorTitle = 'Edit screenshot';
|
|
905
|
+
this.screenshotEditorCancelText = 'Cancel';
|
|
906
|
+
this.screenshotEditorSaveText = 'Save';
|
|
907
|
+
this.screenshotSizeLabelText = 'Size:';
|
|
908
|
+
this.screenshotBorderLabelText = 'Border:';
|
|
909
|
+
this.screenshotEditTextPromptText = 'Edit text:';
|
|
910
|
+
this.screenshotErrorGeneral = 'Failed to capture screenshot.';
|
|
911
|
+
this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
|
|
912
|
+
this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
|
|
913
|
+
this.screenshotErrorNotFound = 'No screen sources available for capture.';
|
|
914
|
+
this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
|
|
915
|
+
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
|
|
916
|
+
this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
|
|
918
917
|
}
|
|
919
918
|
componentWillLoad() {
|
|
920
919
|
if (!this.sessionId) {
|
|
@@ -957,13 +956,13 @@ const FeedbackButton = class {
|
|
|
957
956
|
'project',
|
|
958
957
|
'rating',
|
|
959
958
|
'ratingMode',
|
|
960
|
-
'
|
|
961
|
-
'
|
|
962
|
-
'
|
|
963
|
-
'
|
|
964
|
-
'
|
|
965
|
-
'
|
|
966
|
-
'
|
|
959
|
+
'screenshotEditorTitle',
|
|
960
|
+
'screenshotEditorCancelText',
|
|
961
|
+
'screenshotEditorSaveText',
|
|
962
|
+
'screenshotEditTextButtonText',
|
|
963
|
+
'screenshotSizeLabelText',
|
|
964
|
+
'screenshotBorderLabelText',
|
|
965
|
+
'screenshotEditTextPromptText',
|
|
967
966
|
'screenshotErrorGeneral',
|
|
968
967
|
'screenshotErrorPermission',
|
|
969
968
|
'screenshotErrorNotSupported',
|
|
@@ -987,7 +986,6 @@ const FeedbackButton = class {
|
|
|
987
986
|
'screenshotAttachedText',
|
|
988
987
|
'screenshotButtonText',
|
|
989
988
|
'screenshotTakingText',
|
|
990
|
-
'screenshotTopbarText',
|
|
991
989
|
'sendButtonText',
|
|
992
990
|
'successMessage',
|
|
993
991
|
];
|
|
@@ -1259,24 +1257,23 @@ const FeedbackModal = class {
|
|
|
1259
1257
|
this.ratingPlaceholder = 'Was this page helpful?';
|
|
1260
1258
|
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
1261
1259
|
this.sendButtonText = 'Send';
|
|
1260
|
+
this.successMessage = '';
|
|
1261
|
+
this.screenshotEditorTitle = 'Edit screenshot';
|
|
1262
|
+
this.screenshotEditorCancelText = 'Cancel';
|
|
1263
|
+
this.screenshotEditorSaveText = 'Save';
|
|
1262
1264
|
this.screenshotAttachedText = 'Screenshot attached';
|
|
1263
1265
|
this.screenshotButtonText = 'Add a screenshot';
|
|
1264
1266
|
this.screenshotTakingText = 'Taking screenshot...';
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.canvasEditorSaveText = 'Save';
|
|
1270
|
-
this.editTextButtonText = 'Edit Text';
|
|
1271
|
-
this.sizeLabelText = 'Size:';
|
|
1272
|
-
this.borderLabelText = 'Border:';
|
|
1273
|
-
this.editTextPromptText = 'Edit text:';
|
|
1267
|
+
this.screenshotEditTextButtonText = 'Edit text';
|
|
1268
|
+
this.screenshotSizeLabelText = 'Size:';
|
|
1269
|
+
this.screenshotBorderLabelText = 'Border:';
|
|
1270
|
+
this.screenshotEditTextPromptText = 'Edit text:';
|
|
1274
1271
|
this.screenshotErrorGeneral = 'Failed to capture screenshot.';
|
|
1275
1272
|
this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
|
|
1276
1273
|
this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
|
|
1277
1274
|
this.screenshotErrorNotFound = 'No screen sources available for capture.';
|
|
1278
1275
|
this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
|
|
1279
|
-
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
|
|
1276
|
+
this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
|
|
1280
1277
|
this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
|
|
1281
1278
|
}
|
|
1282
1279
|
componentWillLoad() {
|
|
@@ -1322,7 +1319,7 @@ const FeedbackModal = class {
|
|
|
1322
1319
|
this.selectedRating = newRating;
|
|
1323
1320
|
}
|
|
1324
1321
|
render() {
|
|
1325
|
-
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.
|
|
1322
|
+
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.screenshotEditorTitle, "canvas-editor-cancel-text": this.screenshotEditorCancelText, "canvas-editor-save-text": this.screenshotEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.screenshotEditTextButtonText, "size-label-text": this.screenshotSizeLabelText, "border-label-text": this.screenshotBorderLabelText, "edit-text-prompt-text": this.screenshotEditTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
|
|
1326
1323
|
? 'feedback-modal-rating-button--selected'
|
|
1327
1324
|
: ''}`, onClick: (event) => {
|
|
1328
1325
|
event.preventDefault();
|