@covet-pics/covet-pics-widget 0.149.4 → 0.149.6

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 (79) hide show
  1. package/dist/cjs/covet-pics-gallery-header_5.cjs.entry.js +8 -9
  2. package/dist/cjs/covet-pics-gallery-header_5.cjs.entry.js.map +1 -1
  3. package/dist/cjs/covet-pics-highlighted-hotspots_2.cjs.entry.js +1 -1
  4. package/dist/cjs/covet-pics-widget.cjs.entry.js +58 -37
  5. package/dist/cjs/covet-pics-widget.cjs.entry.js.map +1 -1
  6. package/dist/cjs/covet-pics-widget.cjs.js +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{storeUtils-a3c275c1.js → storeUtils-0a2f3ccf.js} +15 -15
  9. package/dist/cjs/storeUtils-0a2f3ccf.js.map +1 -0
  10. package/dist/collection/components/covet-pics-upload/covet-pics-upload.js +7 -25
  11. package/dist/collection/components/covet-pics-upload/covet-pics-upload.js.map +1 -1
  12. package/dist/collection/components/covet-pics-widget/covet-pics-widget.js +69 -35
  13. package/dist/collection/components/covet-pics-widget/covet-pics-widget.js.map +1 -1
  14. package/dist/collection/components/covet-pics-widget/test/covet-pics-widget.spec.js +10 -0
  15. package/dist/collection/components/covet-pics-widget/test/covet-pics-widget.spec.js.map +1 -1
  16. package/dist/collection/services/gallery-loader-service.js +3 -0
  17. package/dist/collection/services/gallery-loader-service.js.map +1 -1
  18. package/dist/collection/store/storeUtils.js +14 -14
  19. package/dist/collection/store/storeUtils.js.map +1 -1
  20. package/dist/collection/store/widgetId.js +4 -2
  21. package/dist/collection/store/widgetId.js.map +1 -1
  22. package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
  23. package/dist/covet-pics-widget/covet-pics-widget.esm.js.map +1 -1
  24. package/dist/covet-pics-widget/p-06c15be0.system.entry.js +5 -0
  25. package/dist/covet-pics-widget/p-06c15be0.system.entry.js.map +1 -0
  26. package/dist/covet-pics-widget/{p-e812a32c.system.entry.js → p-279262e3.system.entry.js} +3 -3
  27. package/dist/covet-pics-widget/{p-e812a32c.system.entry.js.map → p-279262e3.system.entry.js.map} +1 -1
  28. package/dist/covet-pics-widget/p-2a9a7916.system.js +1 -1
  29. package/dist/covet-pics-widget/p-2a9a7916.system.js.map +1 -1
  30. package/dist/covet-pics-widget/{p-e0ac7e2b.entry.js → p-2c3ad15c.entry.js} +2 -2
  31. package/dist/covet-pics-widget/p-38e24554.entry.js +5 -0
  32. package/dist/covet-pics-widget/p-38e24554.entry.js.map +1 -0
  33. package/dist/covet-pics-widget/p-4d9f6c3b.system.js +5 -0
  34. package/dist/covet-pics-widget/p-4d9f6c3b.system.js.map +1 -0
  35. package/dist/covet-pics-widget/{p-cad85165.system.entry.js → p-67d315f0.system.entry.js} +2 -2
  36. package/dist/covet-pics-widget/p-a8728ca2.js +5 -0
  37. package/dist/covet-pics-widget/p-a8728ca2.js.map +1 -0
  38. package/dist/covet-pics-widget/{p-1fffebc0.entry.js → p-e63f000f.entry.js} +3 -3
  39. package/dist/covet-pics-widget/{p-1fffebc0.entry.js.map → p-e63f000f.entry.js.map} +1 -1
  40. package/dist/esm/covet-pics-gallery-header_5.entry.js +8 -9
  41. package/dist/esm/covet-pics-gallery-header_5.entry.js.map +1 -1
  42. package/dist/esm/covet-pics-highlighted-hotspots_2.entry.js +1 -1
  43. package/dist/esm/covet-pics-widget.entry.js +58 -37
  44. package/dist/esm/covet-pics-widget.entry.js.map +1 -1
  45. package/dist/esm/covet-pics-widget.js +1 -1
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/{storeUtils-2c61ff05.js → storeUtils-d0a1d4d6.js} +15 -15
  48. package/dist/esm/storeUtils-d0a1d4d6.js.map +1 -0
  49. package/dist/esm-es5/covet-pics-gallery-header_5.entry.js +2 -2
  50. package/dist/esm-es5/covet-pics-gallery-header_5.entry.js.map +1 -1
  51. package/dist/esm-es5/covet-pics-highlighted-hotspots_2.entry.js +1 -1
  52. package/dist/esm-es5/covet-pics-widget.entry.js +1 -1
  53. package/dist/esm-es5/covet-pics-widget.entry.js.map +1 -1
  54. package/dist/esm-es5/covet-pics-widget.js +1 -1
  55. package/dist/esm-es5/covet-pics-widget.js.map +1 -1
  56. package/dist/esm-es5/loader.js +2 -2
  57. package/dist/esm-es5/loader.js.map +1 -1
  58. package/dist/esm-es5/storeUtils-d0a1d4d6.js +5 -0
  59. package/dist/esm-es5/storeUtils-d0a1d4d6.js.map +1 -0
  60. package/dist/types/components/covet-pics-upload/covet-pics-upload.d.ts +0 -4
  61. package/dist/types/components/covet-pics-widget/covet-pics-widget.d.ts +11 -5
  62. package/dist/types/components.d.ts +8 -8
  63. package/dist/types/store/storeUtils.d.ts +2 -1
  64. package/dist/types/store/widgetId.d.ts +1 -0
  65. package/package.json +1 -1
  66. package/dist/cjs/storeUtils-a3c275c1.js.map +0 -1
  67. package/dist/covet-pics-widget/p-641546b1.entry.js +0 -5
  68. package/dist/covet-pics-widget/p-641546b1.entry.js.map +0 -1
  69. package/dist/covet-pics-widget/p-8108cdd7.js +0 -5
  70. package/dist/covet-pics-widget/p-8108cdd7.js.map +0 -1
  71. package/dist/covet-pics-widget/p-d4dde7d1.system.entry.js +0 -5
  72. package/dist/covet-pics-widget/p-d4dde7d1.system.entry.js.map +0 -1
  73. package/dist/covet-pics-widget/p-df16125e.system.js +0 -5
  74. package/dist/covet-pics-widget/p-df16125e.system.js.map +0 -1
  75. package/dist/esm/storeUtils-2c61ff05.js.map +0 -1
  76. package/dist/esm-es5/storeUtils-2c61ff05.js +0 -5
  77. package/dist/esm-es5/storeUtils-2c61ff05.js.map +0 -1
  78. /package/dist/covet-pics-widget/{p-e0ac7e2b.entry.js.map → p-2c3ad15c.entry.js.map} +0 -0
  79. /package/dist/covet-pics-widget/{p-cad85165.system.entry.js.map → p-67d315f0.system.entry.js.map} +0 -0
@@ -13,7 +13,7 @@ const index$1 = require('./index-fa6eb1c2.js');
13
13
  const getters = require('./getters-1b9c13f3.js');
14
14
  const slider = require('./slider-a7086987.js');
15
15
  const fragment = require('./fragment-fe72cf2f.js');
16
- const storeUtils = require('./storeUtils-a3c275c1.js');
16
+ const storeUtils = require('./storeUtils-0a2f3ccf.js');
17
17
  const popup = require('./popup-a42068f1.js');
18
18
  const _commonjsHelpers = require('./_commonjsHelpers-68a3f11d.js');
19
19
 
@@ -9528,7 +9528,6 @@ const CovetPicsUpload = class {
9528
9528
  const dropzone = this.el.shadowRoot.querySelector(".dropzone-graphics");
9529
9529
  return dropzone.click();
9530
9530
  };
9531
- this.photoRequestId = undefined;
9532
9531
  this.standalone = false;
9533
9532
  this.appStore = undefined;
9534
9533
  this.starRating = 0;
@@ -9684,7 +9683,7 @@ const CovetPicsUpload = class {
9684
9683
  const payload = {
9685
9684
  gallery_id: this.appState.widgetId.galleryId,
9686
9685
  gallery_embed_id: this.appState.widgetId.embedId,
9687
- photo_request_id: this.photoRequestId,
9686
+ photo_request_id: this.appState.widgetId.photoRequestId,
9688
9687
  product_handle: this.appState.widgetId.productHandle,
9689
9688
  post: {
9690
9689
  source_user_email: this.postData["source_user_email"],
@@ -9749,7 +9748,7 @@ const CovetPicsUpload = class {
9749
9748
  const payload = {
9750
9749
  gallery_id: this.appState.widgetId.galleryId,
9751
9750
  gallery_embed_id: this.appState.widgetId.embedId,
9752
- photo_request_id: this.photoRequestId,
9751
+ photo_request_id: this.appState.widgetId.photoRequestId,
9753
9752
  product_handle: this.appState.widgetId.productHandle,
9754
9753
  post: {
9755
9754
  source_user_email: this.postData["source_user_email"],
@@ -10035,11 +10034,11 @@ const CovetPicsUpload = class {
10035
10034
  }
10036
10035
  render() {
10037
10036
  const starsArray = [1, 2, 3, 4, 5];
10038
- return (index.h(index.Host, { key: '86f8df1981184a08bdeb7a8745851da1d446076a', style: this.setPopupCSSVariables(), class: "needsclick" /* FIXME: https://github.com/ftlabs/fastclick/issues/604 */ }, index.h("div", { key: 'd4a4d9da05854f31a89664b30346038a9d982a28', class: { "popup": true, "animated": this.appState.settings.popup_animation, "upload_widget": true }, tabindex: this.uploadTabIndex, role: "dialog", "aria-label": "Upload" }, index.h("div", { key: 'ee6b0469065e573d5679d42e93d8d622ec22504e', class: "upload" }, !this.standalone &&
10039
- index.h("button", { class: "upload-close", type: "button", "data-dismiss": "popup", onClick: this.hidePopupClickHandler, "aria-label": "popup close" }), index.h("form", { key: '82af008a7d460ba790d8aabc78624839ca85350a', class: "upload-form" }, index.h("div", { key: 'a220ba0dd6a909e0e567a4000d9f4e1c37d58eea', class: "upload-scroll" }, index.h("div", { key: 'b97f8556905b9ede5844fa55ab2158fe3d5ecd62', class: "upload-step step1" }, index.h("h2", { key: 'e221f473b07e5c4b988bac8159a1203fd0bc3b4c', class: "upload-h2" }, this.appState.settings.customer_photo_upload_title), index.h("h3", { key: '345503c77ad5e5f9ef7254224499341dc32dcdb9', class: "upload-h3" }, this.appState.settings.customer_photo_upload_body), index.h("div", { key: '85a61461f334a32ca61d0a2eb5678958aaef41ec', class: "dropzone" }, index.h("div", { key: 'c2d3cb7effd928a1362579cb09ef0e99f4477274', class: "dropzone-graphics", onDragOver: this.onDragOverHandler, onDrop: this.onDropHandler, onClick: this.openDialog }, SVGDropdown(), index.h("div", { key: '26404b58e9b218c40d8e547d42dc21eeff8ab9c8', class: "upload-drop" }, index.h("div", { key: '19faff729d45e9253b2d39a146fb2554944f9fac', class: "upload-text upload-text-drop" }, this.appState.settings.customer_photo_upload_drop_files_label), index.h("span", { key: '585f20fd85b309248ac83d452e180a109812f3d2', class: "upload-drop-progress" })), index.h("input", { key: 'ea723062c0f7d36b9933cc93dbde3fc21d9c9188', type: "file", hidden: true, name: "files[]", multiple: true, accept: "image/png,image/gif,image/jpg,image/jpeg", onChange: this.onChangeHandler, "aria-label": this.appState.settings.customer_photo_upload_drop_files_label })), index.h("div", { key: '398876acafe6fe05f49a5cccaf4cc5a3e614c1b9', class: "upload-gallery no-active", onDragOver: this.onDragOverHandler, onDrop: this.onDropHandler }, this.thumbnailLinks.map((link, index$1) => index.h("div", { class: `upload-img-wrap wrap-pos-${index$1 + 1} img-count-${this.thumbnailLinks.length} before-enter`, onClick: (e) => this.onRemoveImageHandler(e, link) }, index.h("img", { src: link, alt: `uploaded img preview ${index$1 + 1}/${this.thumbnailLinks.length}`, class: "upload-img" }), index.h("span", { class: "icon-cross" }))), this.thumbnailLinks.length < 4 &&
10040
- index.h("span", { class: `upload-img-wrap wrap-pos-${this.thumbnailLinks.length + 1} upload-img-upload img-count-${this.thumbnailLinks.length} before-enter`, onClick: this.onUploadClickHandler }, index.h("span", { class: "icon-cross plus" }))), index.h("span", { key: 'a4636aefe27624f67cf88650eba2db4b8cee1487', class: "upload-img-count" }, "(", this.thumbnailLinks.length, "/4)")), index.h("button", { key: '05ca9a25d4da605465b91d39d9411aef9b91968a', type: "button", class: "btn-skip", onClick: () => this.showSkipToStep2(), "aria-label": "skip upload image for text review" }, "Skip", index.h(popupFuncComponents.IconDown, { key: '1ad961dd8bec9760b124bc1dd34380ebcb90f62f' }))), index.h("div", { key: '291edbefff4df1596c3a081ee33a5563bd6091c2', class: "upload-step step2 hidden" }, index.h("div", { key: 'fd2891edbf313389c11a4ddde530b6feb117cf6e', class: "star-rating" }, starsArray.map((el, index$1) => index.h("span", { class: { "icon-star": true, "active": el <= this.starRating, "warning": this.showFormWarning && this.postData["rating"] === null }, onClick: (e) => this.starClickHandler(e, index$1), onMouseEnter: () => { this.starRating = index$1 + 1; this.showFormWarning = false; }, onMouseLeave: () => this.starRating = this.postData["rating"] }, SVGStar()))), index.h("input", { key: '8486e4a0e6479901a88582625dd2ddc41532d610', type: "text", class: { "form-control": true, "warning": this.showFormWarning && !this.isInputValid("source_user_id") }, placeholder: this.appState.settings.customer_photo_upload_form_name_placeholder, name: "source_user_id", onInput: this.postDataChangeHandler, value: this.postData["source_user_id"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_name_placeholder }), index.h("input", { key: '5d4e358ea223ea0bde3bcf67c0945e5a45933338', type: "email", class: { "form-control": true, "warning": this.showFormWarning && !this.isInputValid("source_user_email") }, placeholder: this.appState.settings.customer_photo_upload_form_email_placeholder, name: "source_user_email", onInput: this.postDataChangeHandler, value: this.postData["source_user_email"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_email_placeholder }), index.h("textarea", { key: '2782583632e098a9a0950f6bbd35dc94af7cc0e5', class: { "form-control form-textarea": true, "warning": this.showFormWarning && !this.isInputValid("caption") }, rows: 6, placeholder: this.appState.settings.customer_photo_upload_form_body_placeholder, name: "caption", onInput: this.postDataChangeHandler, value: this.postData["caption"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_body_placeholder }), this.appState.settings.customer_photo_upload_form_legal_message !== "" &&
10041
- index.h("p", { class: "upload-text privacy", innerHTML: this.appState.settings.customer_photo_upload_form_legal_message }), index.h("button", { key: 'fa9ee8fa78082906651a67a757f199076928ce75', type: "submit", class: { "upload-submit": true }, onClick: this.handleSendClick, "aria-label": this.appState.settings.customer_photo_upload_form_send_label }, this.appState.settings.customer_photo_upload_form_send_label)), index.h("div", { key: 'b588da0b8f0b0f438d021c52573628adea72ffb4', class: "upload-step step3 hidden" }, index.h("h2", { key: '99485ad44ab958fdfe0177a8351763da82911e40', class: "upload-h2 progress" }, this.appState.settings.customer_photo_upload_form_uploading), index.h("div", { key: '4acac60ce2304bdf49d95e8f2c1a293b216d892d', class: "progress-bar" })), index.h("div", { key: 'e73c5098132575afbf0b21ece816949e206942b6', class: "upload-step step4 hidden" }, SVGCompleted(), index.h("p", { key: '4635f727ec1c8f02904967c53a415e4e58e8c722', class: "upload-text completed", innerHTML: this.appState.settings.customer_photo_upload_complete_body }), index.h("button", { key: '54069c8124aa805225346d32ddb637372d5b43e7', class: "upload-submit close", onClick: this.handleCloseClick, "aria-label": "form submit", type: "button" }, this.appState.settings.customer_photo_upload_complete_close_label)))), !this.appState.settings.hide_branding &&
10042
- index.h("a", { class: "upload-brand-link", href: `https://apps.shopify.com/covet-pics?utm_source=embed&utm_medium=upload&utm_campaign=${location.host}`, target: "_blank", rel: "noopener", "aria-label": "Covet.pics logo" }, SVGBrand())), index.h("div", { key: '8c16f85826bc7efd0440af8e63f3d86bddbb2b05', class: "backdrop", onClick: this.hidePopupClickHandler }), index.h("div", { key: '000509330ecea3e5709f2842d22e924b406c658a', class: { "notification": true, "active": this.isNotificationActive } }, index.h("p", { key: 'efd715f47e792d804e16a179dc7d5cd08433288f', class: "notification-message" }, "error: ", this.notificationMessage)))));
10037
+ return (index.h(index.Host, { key: 'f5604ce828c6cfff874b36d538c410ea49e3d2fd', style: this.setPopupCSSVariables(), class: "needsclick" /* FIXME: https://github.com/ftlabs/fastclick/issues/604 */ }, index.h("div", { key: '0cc201d73c23d2d3641441646c6c9d3d3a6a5878', class: { "popup": true, "animated": this.appState.settings.popup_animation, "upload_widget": true }, tabindex: this.uploadTabIndex, role: "dialog", "aria-label": "Upload" }, index.h("div", { key: '29d364c80e015c6cdef4f3942f2b7d16ee01c83a', class: "upload" }, !this.standalone &&
10038
+ index.h("button", { class: "upload-close", type: "button", "data-dismiss": "popup", onClick: this.hidePopupClickHandler, "aria-label": "popup close" }), index.h("form", { key: '1c1f6fe2aedf565148e0323b1f0b1985a22d697e', class: "upload-form" }, index.h("div", { key: '3e2c3b863b9e24674e8c89e08e000e55c4f5aa17', class: "upload-scroll" }, index.h("div", { key: '5624e1d8bc8ed9fb795a6ae10ee26d036a44ae2f', class: "upload-step step1" }, index.h("h2", { key: 'bb79c26839e2c48a4862c2660ee67633fb6c8b48', class: "upload-h2" }, this.appState.settings.customer_photo_upload_title), index.h("h3", { key: '84a14d890795c92ded98dd4381f1e47665f97702', class: "upload-h3" }, this.appState.settings.customer_photo_upload_body), index.h("div", { key: '2f7ad2e43710748c4a9079cf2d93d103287e8868', class: "dropzone" }, index.h("div", { key: '82f53c72aac53f0816991ad3c22eb9b4f8724dbf', class: "dropzone-graphics", onDragOver: this.onDragOverHandler, onDrop: this.onDropHandler, onClick: this.openDialog }, SVGDropdown(), index.h("div", { key: 'c1be361ad75e583ee9a1bb5eecc038c7a0005b42', class: "upload-drop" }, index.h("div", { key: 'e77f382718f40c14d3db195254d06123aa5b2046', class: "upload-text upload-text-drop" }, this.appState.settings.customer_photo_upload_drop_files_label), index.h("span", { key: '42ea3fb2b9417cf8fb315d209b100347adbd0b2b', class: "upload-drop-progress" })), index.h("input", { key: '206e5f0ffb4f42b65ebe679223e4c7d3ba0412fc', type: "file", hidden: true, name: "files[]", multiple: true, accept: "image/png,image/gif,image/jpg,image/jpeg", onChange: this.onChangeHandler, "aria-label": this.appState.settings.customer_photo_upload_drop_files_label })), index.h("div", { key: '810eb906ac5d0a99e841ab45cef3a7687f0d7b06', class: "upload-gallery no-active", onDragOver: this.onDragOverHandler, onDrop: this.onDropHandler }, this.thumbnailLinks.map((link, index$1) => index.h("div", { class: `upload-img-wrap wrap-pos-${index$1 + 1} img-count-${this.thumbnailLinks.length} before-enter`, onClick: (e) => this.onRemoveImageHandler(e, link) }, index.h("img", { src: link, alt: `uploaded img preview ${index$1 + 1}/${this.thumbnailLinks.length}`, class: "upload-img" }), index.h("span", { class: "icon-cross" }))), this.thumbnailLinks.length < 4 &&
10039
+ index.h("span", { class: `upload-img-wrap wrap-pos-${this.thumbnailLinks.length + 1} upload-img-upload img-count-${this.thumbnailLinks.length} before-enter`, onClick: this.onUploadClickHandler }, index.h("span", { class: "icon-cross plus" }))), index.h("span", { key: '0f78ee0f9b9eb4370c3f7b4416a43a50fe08e731', class: "upload-img-count" }, "(", this.thumbnailLinks.length, "/4)")), index.h("button", { key: '3557271793fceb00a8d1ddc26e818bed27c30a22', type: "button", class: "btn-skip", onClick: () => this.showSkipToStep2(), "aria-label": "skip upload image for text review" }, "Skip", index.h(popupFuncComponents.IconDown, { key: 'bd2b9fe4982cf305af5a0b0c5fa364784c0ec282' }))), index.h("div", { key: '05adc7c715ee7ba49935633ba744b8886573feb3', class: "upload-step step2 hidden" }, index.h("div", { key: 'b56aa4814011ac6d74105158664a0aa7aa4214da', class: "star-rating" }, starsArray.map((el, index$1) => index.h("span", { class: { "icon-star": true, "active": el <= this.starRating, "warning": this.showFormWarning && this.postData["rating"] === null }, onClick: (e) => this.starClickHandler(e, index$1), onMouseEnter: () => { this.starRating = index$1 + 1; this.showFormWarning = false; }, onMouseLeave: () => this.starRating = this.postData["rating"] }, SVGStar()))), index.h("input", { key: '64de7d401cec57a60f57aa29eea76a8b50194532', type: "text", class: { "form-control": true, "warning": this.showFormWarning && !this.isInputValid("source_user_id") }, placeholder: this.appState.settings.customer_photo_upload_form_name_placeholder, name: "source_user_id", onInput: this.postDataChangeHandler, value: this.postData["source_user_id"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_name_placeholder }), index.h("input", { key: '91828655a695dd173b30c47c5d9f7cd9f1c1eeba', type: "email", class: { "form-control": true, "warning": this.showFormWarning && !this.isInputValid("source_user_email") }, placeholder: this.appState.settings.customer_photo_upload_form_email_placeholder, name: "source_user_email", onInput: this.postDataChangeHandler, value: this.postData["source_user_email"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_email_placeholder }), index.h("textarea", { key: '2c8dd661fefe7ca78838eec3c4f8cc55f700dd79', class: { "form-control form-textarea": true, "warning": this.showFormWarning && !this.isInputValid("caption") }, rows: 6, placeholder: this.appState.settings.customer_photo_upload_form_body_placeholder, name: "caption", onInput: this.postDataChangeHandler, value: this.postData["caption"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_body_placeholder }), this.appState.settings.customer_photo_upload_form_legal_message !== "" &&
10040
+ index.h("p", { class: "upload-text privacy", innerHTML: this.appState.settings.customer_photo_upload_form_legal_message }), index.h("button", { key: '816a98071e776a6bfab0537a01339bb843ec53b9', type: "submit", class: { "upload-submit": true }, onClick: this.handleSendClick, "aria-label": this.appState.settings.customer_photo_upload_form_send_label }, this.appState.settings.customer_photo_upload_form_send_label)), index.h("div", { key: '62e1522f006e930eca982c6a6c1fec5542f2b53c', class: "upload-step step3 hidden" }, index.h("h2", { key: 'a2912923755f2eaa0184b62291fd2eb8054801b0', class: "upload-h2 progress" }, this.appState.settings.customer_photo_upload_form_uploading), index.h("div", { key: '9c6bf431223ecd7b2fc34769e6f577358255af06', class: "progress-bar" })), index.h("div", { key: 'c9173da2b13ca58e8c8ffe1903f3b59728990a6e', class: "upload-step step4 hidden" }, SVGCompleted(), index.h("p", { key: '5861d5e330ed02ee1bec736d8c38f6bca2dffc5b', class: "upload-text completed", innerHTML: this.appState.settings.customer_photo_upload_complete_body }), index.h("button", { key: '91b76797584922147d73b7e72a401aaef36ed88e', class: "upload-submit close", onClick: this.handleCloseClick, "aria-label": "form submit", type: "button" }, this.appState.settings.customer_photo_upload_complete_close_label)))), !this.appState.settings.hide_branding &&
10041
+ index.h("a", { class: "upload-brand-link", href: `https://apps.shopify.com/covet-pics?utm_source=embed&utm_medium=upload&utm_campaign=${location.host}`, target: "_blank", rel: "noopener", "aria-label": "Covet.pics logo" }, SVGBrand())), index.h("div", { key: '95566469d3ce84fed4635e46057b05b2a5bbb159', class: "backdrop", onClick: this.hidePopupClickHandler }), index.h("div", { key: '769d3fddd4f5976b972e68baf9127fcd3206975b', class: { "notification": true, "active": this.isNotificationActive } }, index.h("p", { key: '2738fcbee14fb906947cde72f6a28cd121773827', class: "notification-message" }, "error: ", this.notificationMessage)))));
10043
10042
  }
10044
10043
  get el() { return index.getElement(this); }
10045
10044
  };