favesalon-embed 1.0.17 → 1.0.18

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 (30) hide show
  1. package/dist/custom-elements/index.d.ts +30 -0
  2. package/dist/favesalon-embed/buy-giftcard-form.entry.js +94 -48
  3. package/dist/favesalon-embed/buy-giftcard-verification.entry.js +15 -3779
  4. package/dist/favesalon-embed/favesalon-embed.css +0 -20
  5. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  6. package/dist/favesalon-embed/icon-checked.entry.js +19 -0
  7. package/dist/favesalon-embed/icon-date.entry.js +19 -0
  8. package/dist/favesalon-embed/icon-loading.entry.js +19 -0
  9. package/dist/favesalon-embed/icon-location-marker.entry.js +19 -0
  10. package/dist/favesalon-embed/icon-phone.entry.js +19 -0
  11. package/dist/favesalon-embed/inputmask-afacb9e0.js +3777 -0
  12. package/dist/favesalon-embed/wizard-existing-user.entry.js +29 -7
  13. package/dist/favesalon-embed/wizard-new-user.entry.js +28 -6
  14. package/dist/types/components/buy-giftcard-form/buy-giftcard-form.d.ts +2 -0
  15. package/dist/types/components/icon-checked/icon-checked.d.ts +4 -0
  16. package/dist/types/components/icon-date/icon-date.d.ts +4 -0
  17. package/dist/types/components/icon-loading/icon-loading.d.ts +4 -0
  18. package/dist/types/components/icon-location-marker/icon-location-marker.d.ts +4 -0
  19. package/dist/types/components/icon-phone/icon-phone.d.ts +4 -0
  20. package/dist/types/components.d.ts +75 -0
  21. package/package.json +1 -1
  22. package/dist/favesalon-embed/services-09264f42.js +0 -24132
  23. package/dist/favesalon-embed/services-1406013d.js +0 -24132
  24. package/dist/favesalon-embed/services-9a686ade.js +0 -24122
  25. package/dist/favesalon-embed/services-c2c81c88.js +0 -24131
  26. package/dist/favesalon-embed/services-ef32efdc.js +0 -24132
  27. package/dist/favesalon-embed/utils-00e4ed17.js +0 -33
  28. package/dist/favesalon-embed/utils-daaa9ecc.js +0 -34
  29. package/dist/favesalon-embed/utils-e6e3f132.js +0 -33
  30. package/dist/favesalon-embed/utils-fd30fb29.js +0 -32
@@ -68,6 +68,36 @@ export const GoogleMap: {
68
68
  new (): GoogleMap;
69
69
  };
70
70
 
71
+ interface IconChecked extends Components.IconChecked, HTMLElement {}
72
+ export const IconChecked: {
73
+ prototype: IconChecked;
74
+ new (): IconChecked;
75
+ };
76
+
77
+ interface IconDate extends Components.IconDate, HTMLElement {}
78
+ export const IconDate: {
79
+ prototype: IconDate;
80
+ new (): IconDate;
81
+ };
82
+
83
+ interface IconLoading extends Components.IconLoading, HTMLElement {}
84
+ export const IconLoading: {
85
+ prototype: IconLoading;
86
+ new (): IconLoading;
87
+ };
88
+
89
+ interface IconLocationMarker extends Components.IconLocationMarker, HTMLElement {}
90
+ export const IconLocationMarker: {
91
+ prototype: IconLocationMarker;
92
+ new (): IconLocationMarker;
93
+ };
94
+
95
+ interface IconPhone extends Components.IconPhone, HTMLElement {}
96
+ export const IconPhone: {
97
+ prototype: IconPhone;
98
+ new (): IconPhone;
99
+ };
100
+
71
101
  interface LoginForm extends Components.LoginForm, HTMLElement {}
72
102
  export const LoginForm: {
73
103
  prototype: LoginForm;
@@ -1,4 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
+ import { I as Inputmask } from './inputmask-afacb9e0.js';
2
3
  import { _ as _root, i as isSymbol_1, a as isObject_1, H as HttpService, d as dayjs_min, b as dateFormat, g as get_1, s as shortDateFormat, c as getSalonImage, e as getSalonAddress } from './services-82948efc.js';
3
4
  import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-9bc404fc.js';
4
5
  import { C as Colors } from './colors-ea36347a.js';
@@ -325,7 +326,7 @@ var teConnectJs = createCommonjsModule(function (module, exports) {
325
326
 
326
327
  const teConnectJs$1 = /*@__PURE__*/getDefaultExportFromCjs(teConnectJs);
327
328
 
328
- const buyGiftcardFormCss = "buy-giftcard-form{display:block;width:100%}.buy-giftcard-form *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}";
329
+ const buyGiftcardFormCss = "buy-giftcard-form{display:block;width:100%}.buy-giftcard-form *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.fs-input--date::-webkit-calendar-picker-indicator{cursor:pointer;background-color:#f00;position:absolute;right:0;top:0;height:48px;width:48px}@media (max-width: 768px){.fs--form--actions{position:fixed;left:0;right:0;bottom:0;padding:16px;-moz-box-shadow:0px 0px 24px rgba(0, 0, 0, 0.25);-webkit-box-shadow:0px 0px 24px rgba(0, 0, 0, 0.25);box-shadow:0px 0px 24px rgba(0, 0, 0, 0.25)}}";
329
330
 
330
331
  var DeliveryType;
331
332
  (function (DeliveryType) {
@@ -490,7 +491,7 @@ const BuyGiftcardForm = class {
490
491
  }
491
492
  renderPaymentOnlineDisabled() {
492
493
  return (h("div", { style: { paddingTop: '24px', textAlign: 'center' } }, h("div", { style: { fontSize: '24px', fontWeight: '700', lineHeight: '1.4' } }, "Online Gift Card is not available"), h("div", { style: { marginTop: '12px' } }, "Please call us for assistance or visit salon. Thanks!"), h("div", { style: { marginTop: '12px' } }, h("a", { rel: "noopener noreferrer", href: `tel:${this.salonInfo.businessPhone}` }, h("button", { type: "button", style: {
493
- background: Colors.Secondary,
494
+ backgroundColor: Colors.Secondary,
494
495
  border: `1px solid ${Colors.Secondary}`,
495
496
  borderRadius: '8px',
496
497
  color: Colors.White,
@@ -515,14 +516,17 @@ const BuyGiftcardForm = class {
515
516
  marginTop: '12px',
516
517
  } }, totalAmount > 0 && (h("div", null, h("div", { style: { display: 'flex' } }, recommendAmounts.map((recommendValue, idx) => {
517
518
  const isSelected = this.selectedAmount === recommendValue;
518
- return (h("button", { type: "button", key: `gc--recommend-amount--${recommendValue}`, value: recommendValue, onClick: () => this.selectedAmount = recommendValue, style: {
519
+ return (h("button", { type: "button", key: `gc--recommend-amount--${recommendValue}`, value: recommendValue, onClick: () => {
520
+ this.selectedAmount = recommendValue;
521
+ this.customAmount = recommendValue;
522
+ }, style: {
519
523
  border: `1px solid ${Colors.Gray03}`,
520
524
  backgroundColor: Colors.White,
521
525
  color: Colors.TextColor,
522
526
  borderRadius: '0px',
523
527
  cursor: 'pointer',
524
528
  height: '48px',
525
- minWidth: '64px',
529
+ minWidth: '48px',
526
530
  display: 'flex',
527
531
  justifyContent: 'center',
528
532
  alignItems: 'center',
@@ -531,32 +535,36 @@ const BuyGiftcardForm = class {
531
535
  padding: '8px 12px',
532
536
  ...idx === 0 ? { borderRadius: '8px 0 0 8px', } : {},
533
537
  ...idx === (totalAmount - 1) ? { borderRadius: '0 8px 8px 0' } : {},
534
- ...isSelected ? { backgroundColor: Colors.Gray01, fontWeight: '600' } : {},
538
+ ...isSelected ? { backgroundColor: Colors.Secondary, color: Colors.White, fontWeight: '600' } : {},
535
539
  } }, "$", recommendValue));
536
540
  })))), acceptCustomAmount && (h("div", { style: { position: 'relative', marginLeft: '16px', maxWith: '160px' } }, h("span", { style: {
541
+ fontWeight: '600',
537
542
  position: 'absolute',
538
543
  left: '14px',
539
544
  top: '50%',
540
545
  fontSize: '18px',
541
546
  transform: 'translate(0, -50%)',
542
- } }, "$"), h("input", { type: "number", value: this.customAmount, onInput: (evt) => this.customAmount = evt.target.value, style: {
547
+ } }, "$"), h("input", { type: "number", placeholder: "Enter a number", min: 1, value: this.customAmount, onInput: (evt) => {
548
+ this.selectedAmount = null;
549
+ this.customAmount = evt.target.value;
550
+ }, style: {
543
551
  border: `1px solid ${Colors.Gray03}`,
544
552
  backgroundColor: Colors.White,
545
553
  color: Colors.TextColor,
546
554
  borderRadius: '8px',
547
- padding: '8px 16px 8px 32px',
555
+ padding: '8px 16px 8px 28px',
548
556
  height: '48px',
549
557
  width: '100%',
550
558
  fontSize: '18px',
551
559
  fontWeight: '600',
552
560
  } })))), h("div", { style: {
553
- borderTop: `1px solid ${Colors.Gray02}`,
561
+ borderTop: `1px solid ${Colors.Gray03}`,
554
562
  marginTop: '24px',
555
563
  paddingTop: '16px',
556
564
  } }, h("div", { style: { fontSize: '18px' } }, "Recipient name"), h("div", { style: { display: 'flex', alignItems: 'center', marginTop: '12px' } }, h("div", { style: { width: '48%' } }, h("input", { placeholder: "First name", type: "text", value: this.recipientFirstName, onInput: (evt) => {
557
565
  this.recipientFirstName = evt.target.value.trim();
558
566
  }, style: {
559
- border: `1px solid ${Colors.Gray02}`,
567
+ border: `1px solid ${Colors.Gray03}`,
560
568
  backgroundColor: Colors.White,
561
569
  color: Colors.TextColor,
562
570
  borderRadius: '8px',
@@ -568,7 +576,7 @@ const BuyGiftcardForm = class {
568
576
  } })), h("div", { style: { width: '48%', marginLeft: '4%' } }, h("input", { placeholder: "Last name", type: "text", value: this.recipientLastName, onInput: (evt) => {
569
577
  this.recipientLastName = evt.target.value.trim();
570
578
  }, style: {
571
- border: `1px solid ${Colors.Gray02}`,
579
+ border: `1px solid ${Colors.Gray03}`,
572
580
  backgroundColor: Colors.White,
573
581
  color: Colors.TextColor,
574
582
  borderRadius: '8px',
@@ -586,6 +594,14 @@ const BuyGiftcardForm = class {
586
594
  this.recipientEmailConfirm = null;
587
595
  this.deliveryType = DeliveryType.Email;
588
596
  this.isDeliveryDoneVisible = false;
597
+ if (this.deliveryInput) {
598
+ this.deliveryInput.placeholder = 'Enter email';
599
+ Inputmask.remove(this.deliveryInput);
600
+ }
601
+ if (this.deliveryReenterInput) {
602
+ this.deliveryReenterInput.placeholder = 'Re-enter email';
603
+ Inputmask.remove(this.deliveryReenterInput);
604
+ }
589
605
  } }, h("span", { style: {
590
606
  border: `1px solid ${Colors.Gray03}`,
591
607
  backgroundClip: 'content-box',
@@ -607,6 +623,14 @@ const BuyGiftcardForm = class {
607
623
  this.recipientEmailConfirm = null;
608
624
  this.deliveryType = DeliveryType.SMS;
609
625
  this.isDeliveryDoneVisible = false;
626
+ if (this.deliveryInput) {
627
+ this.deliveryInput.placeholder = 'Enter phone';
628
+ Inputmask({ mask: '(999) 999-9999' }).mask(this.deliveryInput);
629
+ }
630
+ if (this.deliveryReenterInput) {
631
+ this.deliveryReenterInput.placeholder = 'Re-enter phone';
632
+ Inputmask({ mask: '(999) 999-9999' }).mask(this.deliveryReenterInput);
633
+ }
610
634
  } }, h("span", { style: {
611
635
  border: `1px solid ${Colors.Gray03}`,
612
636
  backgroundClip: 'content-box',
@@ -622,7 +646,7 @@ const BuyGiftcardForm = class {
622
646
  display: 'flex',
623
647
  alignItems: 'center',
624
648
  marginTop: '24px',
625
- } }, h("div", { style: { width: '48%' } }, h("input", { placeholder: isDeliveryEmail ? 'Enter email' : 'Enter phone', type: "text", value: this.recipientEmail, onInput: (evt) => this.onChangeEmail(evt.target.value.trim()), style: {
649
+ } }, h("div", { style: { width: '48%' } }, h("input", { type: "text", ref: el => this.deliveryInput = el, placeholder: isDeliveryEmail ? 'Enter email' : 'Enter phone', onInput: (evt) => this.onChangeEmail(evt.target.value.trim()), style: {
626
650
  border: `1px solid ${Colors.Gray03}`,
627
651
  backgroundColor: Colors.White,
628
652
  color: Colors.TextColor,
@@ -632,7 +656,7 @@ const BuyGiftcardForm = class {
632
656
  width: '100%',
633
657
  fontSize: '18px',
634
658
  fontWeight: '600',
635
- } })), h("div", { style: { width: '48%', marginLeft: '4%', position: 'relative' } }, h("input", { placeholder: isDeliveryEmail ? 'Re-enter email' : 'Re-enter phone', type: "text", value: this.recipientEmailConfirm, onInput: (evt) => this.onChangeConfirmEmail(evt.target.value.trim()), style: {
659
+ } })), h("div", { style: { width: '48%', marginLeft: '4%', position: 'relative' } }, h("input", { type: "text", ref: el => this.deliveryReenterInput = el, placeholder: isDeliveryEmail ? 'Re-enter email' : 'Re-enter phone', onInput: (evt) => this.onChangeConfirmEmail(evt.target.value.trim()), style: {
636
660
  border: `1px solid ${Colors.Gray03}`,
637
661
  backgroundColor: Colors.White,
638
662
  color: Colors.TextColor,
@@ -643,7 +667,7 @@ const BuyGiftcardForm = class {
643
667
  fontSize: '18px',
644
668
  fontWeight: '600',
645
669
  } }), this.isDeliveryDoneVisible && (h("button", { type: "button", style: {
646
- background: Colors.Secondary,
670
+ backgroundColor: Colors.Secondary,
647
671
  border: `1px solid ${Colors.Secondary}`,
648
672
  borderRadius: '8px',
649
673
  cursor: 'pointer',
@@ -658,7 +682,7 @@ const BuyGiftcardForm = class {
658
682
  top: '100%',
659
683
  right: '0',
660
684
  zIndex: '10',
661
- }, onClick: () => this.onClickDeliveryDone() }, "Next")))), this.isInvalidEmails && (h("div", { style: {
685
+ }, onClick: () => this.onClickDeliveryDone() }, "Done")))), this.isInvalidEmails && (h("div", { style: {
662
686
  color: Colors.Red03,
663
687
  fontSize: '90%',
664
688
  marginTop: '16px',
@@ -672,7 +696,7 @@ const BuyGiftcardForm = class {
672
696
  marginTop: '16px',
673
697
  padding: '16px',
674
698
  } }, "Gift card info will send to your email once it cannot delivery to recipient")), h("div", { id: "page--gift-card-style" }), giftCardStyles.length > 0 && (h("div", { style: {
675
- borderTop: `1px solid ${Colors.Gray02}`,
699
+ borderTop: `1px solid ${Colors.Gray03}`,
676
700
  marginTop: '24px',
677
701
  paddingTop: '16px',
678
702
  } }, h("div", { style: { fontSize: '18px' } }, "Select Gift Card style"), h("div", { style: { marginTop: '12px' } }, giftCardStyles.map((giftCardStyle, idx) => {
@@ -696,26 +720,23 @@ const BuyGiftcardForm = class {
696
720
  alignItems: 'center',
697
721
  overflow: 'hidden',
698
722
  }, onClick: () => this.selectedStyleId = giftCardStyle.id }, isSelected && (h("div", null, h("div", { style: {
699
- backgroundColor: 'rgba(0, 0, 0, 0.25)',
723
+ backgroundColor: 'rgba(0, 0, 0, 0.35)',
700
724
  borderRadius: '8px',
701
725
  position: 'absolute',
702
726
  inset: '0',
703
727
  zIndex: '3',
704
- } }), h("i", { class: "ri-checkbox-circle-fill", style: {
728
+ } }), h("span", { style: {
705
729
  position: 'absolute',
706
730
  left: '50%',
707
731
  top: '50%',
708
732
  transform: 'translate(-50%, -50%)',
709
- fontSize: '32px',
710
733
  zIndex: '5',
711
- } }))), h("img", { src: giftCardStyle.imageUrl, alt: `Style ${idx + 1}`, style: { position: 'relative', maxHeight: '100%', maxWidth: '100%', zIndex: '2' } }))));
734
+ } }, h("icon-checked", null)))), h("img", { src: giftCardStyle.imageUrl, alt: `Style ${idx + 1}`, style: { position: 'relative', maxHeight: '100%', maxWidth: '100%', zIndex: '2' } }))));
712
735
  })))), h("div", { style: {
713
- borderTop: `1px solid ${Colors.Gray02}`,
736
+ borderTop: `1px solid ${Colors.Gray03}`,
714
737
  marginTop: '24px',
715
738
  paddingTop: '16px',
716
- } }, h("div", { style: { fontSize: '18px' } }, "Delivery date"), h("div", { style: { marginTop: '12px', maxWidth: '50%' } }, h("input", { type: "date", placeholder: "Today", onInput: (evt) => {
717
- this.deliveryDate = evt.target.value.trim();
718
- }, style: {
739
+ } }, h("div", { style: { fontSize: '18px' } }, "Delivery date"), h("div", { style: { marginTop: '12px', maxWidth: '50%', position: 'relative' } }, h("div", { style: {
719
740
  backgroundColor: Colors.White,
720
741
  border: `1px solid ${Colors.Gray03}`,
721
742
  color: Colors.TextColor,
@@ -724,6 +745,27 @@ const BuyGiftcardForm = class {
724
745
  height: '48px',
725
746
  width: '100%',
726
747
  fontSize: '18px',
748
+ display: 'flex',
749
+ alignItems: 'center',
750
+ } }, this.deliveryDate || 'Today'), h("span", { style: {
751
+ color: Colors.Black,
752
+ position: 'absolute',
753
+ right: '0',
754
+ top: '0',
755
+ zIndex: '2',
756
+ height: '48px',
757
+ width: '48px',
758
+ display: 'flex',
759
+ alignItems: 'center',
760
+ justifyContent: 'center',
761
+ paddingTop: '6px',
762
+ } }, h("icon-date", null)), h("input", { class: "fs-input--date", type: "date", placeholder: "Today", min: dayjs_min().format(dateFormat), onInput: (evt) => {
763
+ this.deliveryDate = evt.target.value.trim();
764
+ }, style: {
765
+ position: 'absolute',
766
+ inset: '0',
767
+ opacity: '0',
768
+ zIndex: '3',
727
769
  } })), h("div", { style: { marginTop: '16px' } }, h("textarea", { rows: 4, placeholder: "Include a message...", onInput: (evt) => {
728
770
  this.recipientMessage = evt.target.value.trim();
729
771
  }, style: {
@@ -739,7 +781,7 @@ const BuyGiftcardForm = class {
739
781
  marginTop: '24px',
740
782
  textAlign: 'right',
741
783
  } }, h("button", { type: "button", style: {
742
- background: Colors.Secondary,
784
+ backgroundColor: Colors.Secondary,
743
785
  border: `1px solid ${Colors.Secondary}`,
744
786
  borderRadius: '8px',
745
787
  cursor: 'pointer',
@@ -759,16 +801,14 @@ const BuyGiftcardForm = class {
759
801
  }
760
802
  renderPaymentSucceed() {
761
803
  return (h("div", { style: { paddingTop: '24px', textAlign: 'center' } }, h("div", { style: {
762
- backgroundColor: Colors.Success01,
763
- color: Colors.White,
764
- borderRadius: '50%',
804
+ color: Colors.Success03,
765
805
  alignItems: 'center',
766
806
  justifyContent: 'center',
767
807
  margin: 'auto',
768
808
  display: 'flex',
769
- height: '84px',
770
- width: '84px',
771
- } }, h("i", { class: "ri-check-fill", style: { fontSize: '32px', color: Colors.Success03 } })), h("div", { style: { fontSize: '24px', fontWeight: '700', lineHeight: '1.4', marginTop: '24px' } }, "Thank you!"), h("div", { style: { marginTop: '12px' } }, "Your gift card has been purchased successfully")));
809
+ height: '90px',
810
+ width: '90px',
811
+ } }, h("icon-checked", { size: 84 })), h("div", { style: { fontSize: '24px', fontWeight: '700', lineHeight: '1.4', marginTop: '24px' } }, "Thank you!"), h("div", { style: { marginTop: '12px' } }, "Your gift card has been purchased successfully")));
772
812
  }
773
813
  async createCardPayment() {
774
814
  try {
@@ -821,7 +861,7 @@ const BuyGiftcardForm = class {
821
861
  ? ((giftCardStyles || []).find(style => style.id === this.selectedStyleId) || {}).imageUrl : '';
822
862
  const recipientUserEmail = (this.recipientEmail || '').indexOf('@') > -1 ? this.recipientEmail : '';
823
863
  const recipientUserPhone = (this.recipientEmail || '').indexOf('@') === -1 ? this.recipientEmail : '';
824
- await HttpService().onBuyGiftCard(this.salonInfo.id, {
864
+ const response = await HttpService().onBuyGiftCard(this.salonInfo.id, {
825
865
  source: '',
826
866
  amount: this.customAmount || this.selectedAmount || '',
827
867
  gift_card_style: selectedGiftCardStyle || '',
@@ -844,14 +884,20 @@ const BuyGiftcardForm = class {
844
884
  magensa_transaction_id: transactionID,
845
885
  },
846
886
  });
847
- this.step = FormStep.PaymentSucceed;
887
+ const { status, message } = (response.data || {});
888
+ if (status === true) {
889
+ this.step = FormStep.PaymentSucceed;
890
+ }
891
+ else {
892
+ this.errorMessage = message || `Something went wrong when sending your gift card`;
893
+ }
848
894
  }
849
895
  else {
850
896
  this.errorMessage = `Something went wrong with your credit card`;
851
897
  }
852
898
  }
853
899
  catch (error) {
854
- this.errorMessage = error.message || (error.error && error.error.message) || get_1(error, 'response.data.message') || `Something went wrong when purchasing your gift card`;
900
+ this.errorMessage = error.message || (error.error && error.error.message) || get_1(error, 'response.data.message') || `Something went wrong when sending your gift card`;
855
901
  }
856
902
  }
857
903
  this.isSubmitting = false;
@@ -869,9 +915,9 @@ const BuyGiftcardForm = class {
869
915
  fontSize: '18px',
870
916
  fontWeight: '700',
871
917
  marginLeft: '6px',
872
- } }, this.deliveryDate ? dayjs_min(this.deliveryDate).format(shortDateFormat) : 'Today')), h("div", { style: { fontSize: '18px', marginTop: '24px' } }, "Payment"), h("div", { style: { marginTop: '8px', marginLeft: '-6px' } }, h("credit-card-types", null)), h("div", { id: "buy-giftcard--payment", style: { height: '300px', maxWidth: '400px', marginTop: '24px' } }), h("button", { type: "button", disabled: (2 > 1 || this.isSubmitting), style: {
918
+ } }, this.deliveryDate ? dayjs_min(this.deliveryDate).format(shortDateFormat) : 'Today')), h("div", { style: { fontSize: '18px', marginTop: '24px' } }, "Payment"), h("div", { style: { marginTop: '8px', marginLeft: '-6px' } }, h("credit-card-types", null)), h("div", { id: "buy-giftcard--payment", style: { height: '300px', maxWidth: '400px', marginTop: '24px' } }), h("div", { class: "fs--form--actions" }, h("button", { type: "button", disabled: this.isSubmitting, style: {
873
919
  border: `1px solid ${Colors.Secondary}`,
874
- background: Colors.Secondary,
920
+ backgroundColor: Colors.Secondary,
875
921
  color: Colors.White,
876
922
  borderRadius: '8px',
877
923
  cursor: 'pointer',
@@ -881,13 +927,15 @@ const BuyGiftcardForm = class {
881
927
  paddingRight: '24px',
882
928
  height: '44px',
883
929
  width: '100%',
884
- }, onClick: () => this.onSubmitPaymentForm() }, "Submit ", (2 > 1 || this.isSubmitting) && (h("span", { class: "fs-spin", style: { marginLeft: '4px' } }, h("i", { class: "ri-loader-4-line" })))), this.errorMessage && (h("div", { style: {
885
- backgroundColor: Colors.Red01,
886
- border: `1px solid ${Colors.Red02}`,
887
- marginBottom: '24px',
888
- marginTop: '24px',
889
- padding: '16px',
890
- } }, this.errorMessage))));
930
+ ...this.isSubmitting ? {
931
+ color: Colors.TextColor,
932
+ borderColor: Colors.Gray03,
933
+ backgroundColor: Colors.Gray03,
934
+ } : {},
935
+ }, onClick: () => this.onSubmitPaymentForm() }, "Submit ", this.isSubmitting && (h("span", { style: { marginLeft: '4px' } }, h("icon-loading", null)))), this.errorMessage && (h("div", { style: {
936
+ color: Colors.Red03,
937
+ marginTop: '16px',
938
+ } }, this.errorMessage)))));
891
939
  }
892
940
  renderSalonInfo() {
893
941
  const salonImageUrl = getSalonImage(this.salonInfo);
@@ -902,11 +950,10 @@ const BuyGiftcardForm = class {
902
950
  } }, this.salonInfo.businessName), h("div", { style: {
903
951
  display: 'flex',
904
952
  marginTop: '4px',
905
- } }, h("i", { class: "ri-map-pin-line", style: {
953
+ } }, h("span", { style: {
906
954
  color: Colors.Gray05,
907
955
  marginRight: '4px',
908
- fontSize: '20px',
909
- } }), h("div", { style: {
956
+ } }, h("icon-location-marker", { size: 18 })), h("div", { style: {
910
957
  flexGrow: '1',
911
958
  flexShrink: '1',
912
959
  overflow: 'hidden',
@@ -915,11 +962,10 @@ const BuyGiftcardForm = class {
915
962
  display: 'flex',
916
963
  alignItems: 'center',
917
964
  marginTop: '4px',
918
- } }, h("i", { class: "ri-phone-line", style: {
965
+ } }, h("span", { style: {
919
966
  color: Colors.Gray05,
920
967
  marginRight: '4px',
921
- fontSize: '20px',
922
- } }), h("div", { style: {
968
+ } }, h("icon-phone", { size: 18 })), h("div", { style: {
923
969
  flexGrow: '1',
924
970
  flexShrink: '1',
925
971
  overflow: 'hidden',