favesalon-embed 1.0.19 → 1.0.21
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/custom-elements/index.d.ts +6 -0
- package/dist/favesalon-embed/buy-giftcard-form.entry.js +4 -12
- package/dist/favesalon-embed/buy-giftcard-succeed.entry.js +40 -0
- package/dist/favesalon-embed/buy-giftcard-verification.entry.js +18 -7
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
- package/dist/favesalon-embed/icon-loading.entry.js +1 -1
- package/dist/favesalon-embed/login-form.entry.js +1 -1
- package/dist/favesalon-embed/wizard-existing-user.entry.js +0 -1
- package/dist/favesalon-embed/wizard-new-user.entry.js +0 -1
- package/dist/types/components/buy-giftcard-succeed/buy-giftcard-succeed.d.ts +6 -0
- package/dist/types/components/buy-giftcard-verification/buy-giftcard-verification.d.ts +1 -0
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
|
@@ -14,6 +14,12 @@ export const BuyGiftcardForm: {
|
|
|
14
14
|
new (): BuyGiftcardForm;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
interface BuyGiftcardSucceed extends Components.BuyGiftcardSucceed, HTMLElement {}
|
|
18
|
+
export const BuyGiftcardSucceed: {
|
|
19
|
+
prototype: BuyGiftcardSucceed;
|
|
20
|
+
new (): BuyGiftcardSucceed;
|
|
21
|
+
};
|
|
22
|
+
|
|
17
23
|
interface BuyGiftcardVerification extends Components.BuyGiftcardVerification, HTMLElement {}
|
|
18
24
|
export const BuyGiftcardVerification: {
|
|
19
25
|
prototype: BuyGiftcardVerification;
|
|
@@ -326,7 +326,7 @@ var teConnectJs = createCommonjsModule(function (module, exports) {
|
|
|
326
326
|
|
|
327
327
|
const teConnectJs$1 = /*@__PURE__*/getDefaultExportFromCjs(teConnectJs);
|
|
328
328
|
|
|
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
|
+
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}.buy-giftcard-form input[type=\"number\"]{padding:8px 16px 8px 28px !important}.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)}}";
|
|
330
330
|
|
|
331
331
|
var DeliveryType;
|
|
332
332
|
(function (DeliveryType) {
|
|
@@ -552,7 +552,7 @@ const BuyGiftcardForm = class {
|
|
|
552
552
|
backgroundColor: Colors.White,
|
|
553
553
|
color: Colors.TextColor,
|
|
554
554
|
borderRadius: '8px',
|
|
555
|
-
padding: '8px 16px 8px 28px',
|
|
555
|
+
padding: '8px 16px 8px 28px !important',
|
|
556
556
|
height: '48px',
|
|
557
557
|
width: '100%',
|
|
558
558
|
fontSize: '18px',
|
|
@@ -800,15 +800,7 @@ const BuyGiftcardForm = class {
|
|
|
800
800
|
} }, this.errorMessage))));
|
|
801
801
|
}
|
|
802
802
|
renderPaymentSucceed() {
|
|
803
|
-
return (h("div", { style: { paddingTop: '24px'
|
|
804
|
-
color: Colors.Success03,
|
|
805
|
-
alignItems: 'center',
|
|
806
|
-
justifyContent: 'center',
|
|
807
|
-
margin: 'auto',
|
|
808
|
-
display: 'flex',
|
|
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")));
|
|
803
|
+
return (h("div", { style: { paddingTop: '24px' } }, h("buy-giftcard-succeed", null)));
|
|
812
804
|
}
|
|
813
805
|
async createCardPayment() {
|
|
814
806
|
try {
|
|
@@ -932,7 +924,7 @@ const BuyGiftcardForm = class {
|
|
|
932
924
|
borderColor: Colors.Gray03,
|
|
933
925
|
backgroundColor: Colors.Gray03,
|
|
934
926
|
} : {},
|
|
935
|
-
}, onClick: () => this.onSubmitPaymentForm() },
|
|
927
|
+
}, onClick: () => this.onSubmitPaymentForm() }, this.isSubmitting ? 'Processing...' : 'Submit', " ", this.isSubmitting && (h("span", { style: { marginLeft: '4px' } }, h("icon-loading", null)))), this.errorMessage && (h("div", { style: {
|
|
936
928
|
color: Colors.Red03,
|
|
937
929
|
marginTop: '16px',
|
|
938
930
|
} }, this.errorMessage)))));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { C as Colors } from './colors-ea36347a.js';
|
|
3
|
+
|
|
4
|
+
const buyGiftcardSucceedCss = "";
|
|
5
|
+
|
|
6
|
+
const BuyGiftcardSucceed = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.duration = 3;
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
this.countDown();
|
|
13
|
+
}
|
|
14
|
+
countDown() {
|
|
15
|
+
const interval = setInterval(() => {
|
|
16
|
+
this.duration = this.duration > 0 ? this.duration - 1 : 0;
|
|
17
|
+
}, 1000);
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
clearInterval(interval);
|
|
20
|
+
window.location.reload();
|
|
21
|
+
}, 10000);
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return (h("div", { style: { textAlign: 'center' } }, h("div", { style: {
|
|
25
|
+
color: Colors.Success03,
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
margin: 'auto',
|
|
29
|
+
display: 'flex',
|
|
30
|
+
height: '90px',
|
|
31
|
+
width: '90px',
|
|
32
|
+
} }, 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"), h("div", { style: {
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
marginTop: '32px'
|
|
35
|
+
} }, "Redirect back to website in ", this.duration, " sec")));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
BuyGiftcardSucceed.style = buyGiftcardSucceedCss;
|
|
39
|
+
|
|
40
|
+
export { BuyGiftcardSucceed as buy_giftcard_succeed };
|
|
@@ -36,16 +36,23 @@ const BuyGiftcardVerification = class {
|
|
|
36
36
|
this.userInfo = undefined;
|
|
37
37
|
this.inputtedPhone = undefined;
|
|
38
38
|
this.isSearchingUser = undefined;
|
|
39
|
+
this.errorMessage = undefined;
|
|
39
40
|
}
|
|
40
41
|
componentDidLoad() {
|
|
41
42
|
Inputmask({ mask: '(999) 999-9999' }).mask(this.nativeInput);
|
|
42
43
|
}
|
|
43
44
|
onSubmitUserInfo() {
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
const { firstName, lastName } = this.userInfo || {};
|
|
46
|
+
if (!!firstName && !!lastName) {
|
|
47
|
+
if (this.userInfo && this.userInfo.id) {
|
|
48
|
+
this.step = FormStep.UserLogin;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
this.step = FormStep.UserRegister;
|
|
52
|
+
}
|
|
46
53
|
}
|
|
47
54
|
else {
|
|
48
|
-
this.
|
|
55
|
+
this.errorMessage = 'Please enter your first and last name to continue';
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
renderUserInfoForm() {
|
|
@@ -74,7 +81,7 @@ const BuyGiftcardVerification = class {
|
|
|
74
81
|
fontSize: '20px',
|
|
75
82
|
fontWeight: '600',
|
|
76
83
|
marginBottom: '12px',
|
|
77
|
-
} }, this.userInfo && this.userInfo.id ? 'Welcome back!' : 'Welcome', " ", this.inputtedPhone), h("div", { style: { display: 'flex', alignItems: 'center' } }, h("div", { style: { width: '48%' } }, h("
|
|
84
|
+
} }, this.userInfo && this.userInfo.id ? 'Welcome back!' : 'Welcome', " ", this.inputtedPhone), h("div", { style: { display: 'flex', alignItems: 'center' } }, h("div", { style: { width: '48%' } }, h("div", { style: { marginTop: '12px' } }, h("input", { id: "form--verification-firstname", type: "text", required: true, placeholder: "First name", value: this.userInfo.firstName, onInput: (evt) => {
|
|
78
85
|
const firstName = evt.target.value.trim();
|
|
79
86
|
this.userInfo = { ...this.userInfo, firstName };
|
|
80
87
|
}, style: {
|
|
@@ -86,7 +93,7 @@ const BuyGiftcardVerification = class {
|
|
|
86
93
|
width: '100%',
|
|
87
94
|
fontSize: '18px',
|
|
88
95
|
fontWeight: '700',
|
|
89
|
-
} }))), h("div", { style: { width: '48%', marginLeft: '4%' } }, h("
|
|
96
|
+
} }))), h("div", { style: { width: '48%', marginLeft: '4%' } }, h("div", { style: { marginTop: '12px' } }, h("input", { id: "form--verification-lastname", type: "text", required: true, placeholder: "Last name", value: this.userInfo.lastName, onInput: (evt) => {
|
|
90
97
|
const lastName = evt.target.value.trim();
|
|
91
98
|
this.userInfo = { ...this.userInfo, lastName };
|
|
92
99
|
}, style: {
|
|
@@ -112,7 +119,7 @@ const BuyGiftcardVerification = class {
|
|
|
112
119
|
paddingLeft: '24px',
|
|
113
120
|
paddingRight: '24px',
|
|
114
121
|
height: '48px',
|
|
115
|
-
}, onClick: () => this.step = FormStep.InputPhone }, "Back"), h("button", { type: "button", style: {
|
|
122
|
+
}, onClick: () => this.step = FormStep.InputPhone }, "Back"), h("button", { type: "button", disabled: !this.userInfo.firstName || !this.userInfo.lastName, style: {
|
|
116
123
|
border: `1px solid ${Colors.Secondary}`,
|
|
117
124
|
backgroundColor: Colors.Secondary,
|
|
118
125
|
borderRadius: '8px',
|
|
@@ -123,6 +130,11 @@ const BuyGiftcardVerification = class {
|
|
|
123
130
|
paddingLeft: '24px',
|
|
124
131
|
paddingRight: '24px',
|
|
125
132
|
height: '48px',
|
|
133
|
+
...!this.userInfo.firstName || !this.userInfo.lastName ? {
|
|
134
|
+
color: Colors.TextColor,
|
|
135
|
+
borderColor: Colors.Gray03,
|
|
136
|
+
backgroundColor: Colors.Gray03,
|
|
137
|
+
} : {},
|
|
126
138
|
}, onClick: () => this.onSubmitUserInfo() }, "Next"))));
|
|
127
139
|
}
|
|
128
140
|
renderSearchClientForm() {
|
|
@@ -142,7 +154,6 @@ const BuyGiftcardVerification = class {
|
|
|
142
154
|
flexShrink: '1',
|
|
143
155
|
flexGrow: '1',
|
|
144
156
|
...this.isSearchingUser ? {
|
|
145
|
-
borderColor: Colors.Gray03,
|
|
146
157
|
backgroundColor: Colors.Gray03,
|
|
147
158
|
} : {},
|
|
148
159
|
} }), formattedPhone && formattedPhone.length >= 10 && (h("button", { type: "button", disabled: this.isSearchingUser, style: {
|
|
@@ -144,5 +144,5 @@ const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
144
144
|
|
|
145
145
|
patchBrowser().then(options => {
|
|
146
146
|
globalScripts();
|
|
147
|
-
return bootstrapLazy([["buy-giftcard-form",[[0,"buy-giftcard-form",{"salonId":[1,"salon-id"],"teConnect":[32],"isLoading":[32],"isSubmitting":[32],"errorMessage":[32],"userInfo":[32],"salonInfo":[32],"giftCardSettings":[32],"magensaCredentials":[32],"step":[32],"selectedAmount":[32],"customAmount":[32],"deliveryType":[32],"deliveryDate":[32],"recipientFirstName":[32],"recipientLastName":[32],"recipientEmail":[32],"recipientEmailConfirm":[32],"recipientMessage":[32],"isInvalidEmails":[32],"isInvalidPhones":[32],"selectedStyleId":[32],"isDeliveryDoneVisible":[32]}]]],["chat-button",[[0,"chat-button",{"primaryColor":[1,"primary-color"],"receiverId":[1,"receiver-id"],"receiverAvatar":[1,"receiver-avatar"],"accessToken":[1,"access-token"],"senderId":[1,"sender-id"],"senderIdState":[32],"accessTokenState":[32],"senderInfo":[32],"receiverInfo":[32],"chatRoom":[32],"chatMessages":[32],"isChatIconVisible":[32],"isChatHelpVisible":[32],"isChatExpanded":[32],"isChatVerificationExpanded":[32],"isChatExpandedOnScroll":[32],"onSetupChat":[64],"onClickChat":[64],"fetchData":[64],"onVerificationSuccess":[64]}]]],["chat-box",[[0,"chat-box",{"primaryColor":[1,"primary-color"],"accessToken":[1,"access-token"],"senderId":[1,"sender-id"],"salonId":[1,"salon-id"],"chatRooms":[32],"activeRoom":[32],"fetchData":[64]}]]],["salon-info",[[0,"salon-info",{"salonId":[2,"salon-id"],"salonInfo":[32],"fetchData":[64]}]]],["salon-latest-reviews",[[0,"salon-latest-reviews",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"salonReviews":[32],"isLoading":[32],"fetchData":[64]}]]],["salon-lookbook",[[0,"salon-lookbook",{"salonId":[2,"salon-id"],"isLoading":[32],"isLoadingMore":[32],"hideLoadMore":[32],"currentPage":[32],"totalLookbooks":[32],"salonCategories":[32],"salonLookbooks":[32],"sortBy":[32],"filterBy":[32],"isLayoutSetup":[32],"fetchData":[64],"fetchLookbooks":[64],"onChangeFiltering":[64],"onChangeSorting":[64],"onLoadMore":[64],"fetchCategories":[64]}]]],["salon-reviews",[[0,"salon-reviews",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"salonInfo":[32],"stats":[32],"totalReviews":[32],"allReviews":[32],"isLoading":[32],"isSorting":[32],"isFiltering":[32],"isLoadingMore":[32],"canLoadMore":[32],"page":[32],"filterBy":[32],"sortBy":[32]}]]],["style-detail",[[0,"style-detail",{"salonId":[2,"salon-id"],"salonLookbook":[1,"salon-lookbook"],"lookbookInfo":[32],"isModalOpen":[32],"currentMediaIdx":[32],"currentMedia":[32],"albumMedias":[32],"similarStyles":[32],"totalComments":[32],"lookbookComments":[32],"isLayoutSetup":[32],"fetchData":[64]}]]],["salon-booking",[[0,"salon-booking",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-booking-modal",[[0,"salon-booking-modal",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"redirectUrl":[1,"redirect-url"],"isModalOpen":[32]}]]],["salon-gift-card",[[0,"salon-gift-card",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-gift-card-modal",[[0,"salon-gift-card-modal",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"isModalOpen":[32]}]]],["salon-ranking",[[0,"salon-ranking",{"ranking":[2],"height":[2],"width":[2]}]]],["salon-services",[[0,"salon-services",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"salonServices":[32],"isLoading":[32],"fetchData":[64]}]]],["salon-stylists",[[0,"salon-stylists",{"salonId":[2,"salon-id"],"salonStylists":[32],"totalStylists":[32],"page":[32],"isLoading":[32],"isLoadingMore":[32],"canLoadMore":[32],"fetchData":[64],"onLoadMore":[64]}]]],["user-form",[[0,"user-form",{"onSuccess":[16],"type":[32],"currentUser":[32]}]]],["
|
|
147
|
+
return bootstrapLazy([["buy-giftcard-form",[[0,"buy-giftcard-form",{"salonId":[1,"salon-id"],"teConnect":[32],"isLoading":[32],"isSubmitting":[32],"errorMessage":[32],"userInfo":[32],"salonInfo":[32],"giftCardSettings":[32],"magensaCredentials":[32],"step":[32],"selectedAmount":[32],"customAmount":[32],"deliveryType":[32],"deliveryDate":[32],"recipientFirstName":[32],"recipientLastName":[32],"recipientEmail":[32],"recipientEmailConfirm":[32],"recipientMessage":[32],"isInvalidEmails":[32],"isInvalidPhones":[32],"selectedStyleId":[32],"isDeliveryDoneVisible":[32]}]]],["chat-button",[[0,"chat-button",{"primaryColor":[1,"primary-color"],"receiverId":[1,"receiver-id"],"receiverAvatar":[1,"receiver-avatar"],"accessToken":[1,"access-token"],"senderId":[1,"sender-id"],"senderIdState":[32],"accessTokenState":[32],"senderInfo":[32],"receiverInfo":[32],"chatRoom":[32],"chatMessages":[32],"isChatIconVisible":[32],"isChatHelpVisible":[32],"isChatExpanded":[32],"isChatVerificationExpanded":[32],"isChatExpandedOnScroll":[32],"onSetupChat":[64],"onClickChat":[64],"fetchData":[64],"onVerificationSuccess":[64]}]]],["chat-box",[[0,"chat-box",{"primaryColor":[1,"primary-color"],"accessToken":[1,"access-token"],"senderId":[1,"sender-id"],"salonId":[1,"salon-id"],"chatRooms":[32],"activeRoom":[32],"fetchData":[64]}]]],["salon-info",[[0,"salon-info",{"salonId":[2,"salon-id"],"salonInfo":[32],"fetchData":[64]}]]],["salon-latest-reviews",[[0,"salon-latest-reviews",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"salonReviews":[32],"isLoading":[32],"fetchData":[64]}]]],["salon-lookbook",[[0,"salon-lookbook",{"salonId":[2,"salon-id"],"isLoading":[32],"isLoadingMore":[32],"hideLoadMore":[32],"currentPage":[32],"totalLookbooks":[32],"salonCategories":[32],"salonLookbooks":[32],"sortBy":[32],"filterBy":[32],"isLayoutSetup":[32],"fetchData":[64],"fetchLookbooks":[64],"onChangeFiltering":[64],"onChangeSorting":[64],"onLoadMore":[64],"fetchCategories":[64]}]]],["salon-reviews",[[0,"salon-reviews",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"salonInfo":[32],"stats":[32],"totalReviews":[32],"allReviews":[32],"isLoading":[32],"isSorting":[32],"isFiltering":[32],"isLoadingMore":[32],"canLoadMore":[32],"page":[32],"filterBy":[32],"sortBy":[32]}]]],["style-detail",[[0,"style-detail",{"salonId":[2,"salon-id"],"salonLookbook":[1,"salon-lookbook"],"lookbookInfo":[32],"isModalOpen":[32],"currentMediaIdx":[32],"currentMedia":[32],"albumMedias":[32],"similarStyles":[32],"totalComments":[32],"lookbookComments":[32],"isLayoutSetup":[32],"fetchData":[64]}]]],["salon-booking",[[0,"salon-booking",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-booking-modal",[[0,"salon-booking-modal",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"redirectUrl":[1,"redirect-url"],"isModalOpen":[32]}]]],["salon-gift-card",[[0,"salon-gift-card",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-gift-card-modal",[[0,"salon-gift-card-modal",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"isModalOpen":[32]}]]],["salon-ranking",[[0,"salon-ranking",{"ranking":[2],"height":[2],"width":[2]}]]],["salon-services",[[0,"salon-services",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"salonServices":[32],"isLoading":[32],"fetchData":[64]}]]],["salon-stylists",[[0,"salon-stylists",{"salonId":[2,"salon-id"],"salonStylists":[32],"totalStylists":[32],"page":[32],"isLoading":[32],"isLoadingMore":[32],"canLoadMore":[32],"fetchData":[64],"onLoadMore":[64]}]]],["user-form",[[0,"user-form",{"onSuccess":[16],"type":[32],"currentUser":[32]}]]],["buy-giftcard-verification",[[0,"buy-giftcard-verification",{"salonId":[1,"salon-id"],"onSuccess":[16],"step":[32],"userInfo":[32],"inputtedPhone":[32],"isSearchingUser":[32],"errorMessage":[32]}]]],["buy-giftcard-succeed",[[0,"buy-giftcard-succeed",{"duration":[32]}]]],["chat-rooms",[[0,"chat-rooms",{"senderId":[2,"sender-id"],"salonId":[2,"salon-id"],"chatRooms":[16],"clients":[16],"activeRoom":[16],"accessToken":[1,"access-token"],"onClickRoom":[16],"keyword":[32]}]]],["salon-locations",[[0,"salon-locations",{"salonId":[2,"salon-id"],"salonInfo":[1,"salon-info"],"isLoading":[4,"is-loading"],"withBorder":[4,"with-border"],"salonInfoState":[32]}]]],["credit-card-types",[[0,"credit-card-types",{"css":[8]}]]],["icon-date",[[0,"icon-date",{"size":[2]}]]],["icon-location-marker",[[0,"icon-location-marker",{"size":[2]}]]],["icon-phone",[[0,"icon-phone",{"size":[2]}]]],["notify-sounds",[[0,"notify-sounds"]]],["salon-latest-styles",[[0,"salon-latest-styles",{"salonId":[2,"salon-id"],"isLoading":[4,"is-loading"],"withBorder":[4,"with-border"],"isLoadingState":[32],"latestStyles":[32],"fetchData":[64]}]]],["salon-schedules",[[0,"salon-schedules",{"salonId":[2,"salon-id"],"salonInfo":[1,"salon-info"],"isLoading":[4,"is-loading"],"withBorder":[4,"with-border"],"salonInfoState":[32]}]]],["chat-messages",[[0,"chat-messages",{"sender":[16],"receiver":[16],"messages":[16],"chatRoomId":[1,"chat-room-id"],"messagesLength":[32],"isScrollIconVisible":[32]}]]],["icon-loading",[[0,"icon-loading",{"size":[2]}]]],["wizard-existing-user",[[0,"wizard-existing-user",{"salonId":[1,"salon-id"],"inputtedPhone":[1,"inputted-phone"],"onClose":[16],"onSuccess":[16],"step":[32],"errorMessage":[32],"isSubmitting":[32],"activatCode":[32]}]]],["wizard-new-user",[[0,"wizard-new-user",{"salonId":[1,"salon-id"],"inputtedPhone":[1,"inputted-phone"],"firstName":[1,"first-name"],"lastName":[1,"last-name"],"onClose":[16],"onSuccess":[16],"step":[32],"errorMessage":[32],"isSubmitting":[32],"activatCode":[32]}]]],["activate-form",[[0,"activate-form",{"username":[1],"password":[1],"onSuccess":[16],"isSubmitting":[32],"error":[32],"confirmCode":[32],"onSubmit":[64],"resendCode":[64]}]]],["change-password-form",[[0,"change-password-form",{"username":[1],"onSuccess":[16],"isSubmitting":[32],"error":[32],"confirmCode":[32],"password":[32],"onSubmit":[64],"resendCode":[64]}]]],["chat-form",[[0,"chat-form",{"senderId":[2,"sender-id"],"chatRoomId":[1,"chat-room-id"]}]]],["google-map",[[0,"google-map",{"locationName":[1,"location-name"],"locationAddress":[1,"location-address"]}]]],["icon-checked",[[0,"icon-checked",{"size":[2]}]]],["login-form",[[0,"login-form",{"onSuccess":[16],"isSubmitting":[32],"error":[32],"username":[32],"password":[32],"onSubmit":[64]}]]],["powered-by-favesalon",[[0,"powered-by-favesalon",{"css":[8]}]]],["register-form",[[0,"register-form",{"onSuccess":[16],"isSubmitting":[32],"error":[32],"firstName":[32],"lastName":[32],"email":[32],"phone":[32],"password":[32],"onSubmit":[64]}]]],["reset-password-form",[[0,"reset-password-form",{"onSuccess":[16],"isSubmitting":[32],"error":[32],"username":[32],"onSubmit":[64]}]]],["user-avatar",[[0,"user-avatar",{"size":[2],"name":[1],"description":[1],"nameStyle":[16],"shortName":[1,"short-name"],"avatar":[1]}]]]], options);
|
|
148
148
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
2
|
|
|
3
|
-
const iconLoadingCss = ".fs-spin svg{display:inline-block;-webkit-animation:loadingCircle 1s infinite linear;animation:loadingCircle 1s infinite linear}@-webkit-keyframes loadingCircle{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loadingCircle{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
|
|
3
|
+
const iconLoadingCss = ".fs-spin,.fs-spin svg{display:inline-block;-webkit-animation:loadingCircle 1s infinite linear;animation:loadingCircle 1s infinite linear}@-webkit-keyframes loadingCircle{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loadingCircle{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
|
|
4
4
|
|
|
5
5
|
const IconLoading = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -20,7 +20,7 @@ const LoginForm = class {
|
|
|
20
20
|
this.isSubmitting = true;
|
|
21
21
|
if (this.username && this.password) {
|
|
22
22
|
try {
|
|
23
|
-
const apiUrl = window.location.origin.indexOf('localhost') > -1 || window.location.origin.indexOf('favesalon.com') > -1
|
|
23
|
+
const apiUrl = window.location.origin.indexOf('192.168.2.3') > -1 || window.location.origin.indexOf('localhost') > -1 || window.location.origin.indexOf('favesalon.com') > -1
|
|
24
24
|
? 'https://favesalon.com'
|
|
25
25
|
: window.location.origin;
|
|
26
26
|
const userInfo = await HttpService().login(apiUrl, {
|
|
@@ -84,7 +84,6 @@ const WizardExistingUser = class {
|
|
|
84
84
|
fontSize: '22px',
|
|
85
85
|
fontWeight: '700',
|
|
86
86
|
...this.isSubmitting ? {
|
|
87
|
-
borderColor: Colors.Gray03,
|
|
88
87
|
backgroundColor: Colors.Gray03,
|
|
89
88
|
} : {},
|
|
90
89
|
} })), h("div", null, h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
@@ -116,7 +116,6 @@ const WizardNewUser = class {
|
|
|
116
116
|
fontSize: '22px',
|
|
117
117
|
fontWeight: '700',
|
|
118
118
|
...this.isSubmitting ? {
|
|
119
|
-
borderColor: Colors.Gray03,
|
|
120
119
|
backgroundColor: Colors.Gray03,
|
|
121
120
|
} : {},
|
|
122
121
|
} })), h("div", null, h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
@@ -18,6 +18,8 @@ export namespace Components {
|
|
|
18
18
|
interface BuyGiftcardForm {
|
|
19
19
|
"salonId": string;
|
|
20
20
|
}
|
|
21
|
+
interface BuyGiftcardSucceed {
|
|
22
|
+
}
|
|
21
23
|
interface BuyGiftcardVerification {
|
|
22
24
|
"onSuccess": (user: User) => void;
|
|
23
25
|
"salonId": string;
|
|
@@ -224,6 +226,12 @@ declare global {
|
|
|
224
226
|
prototype: HTMLBuyGiftcardFormElement;
|
|
225
227
|
new (): HTMLBuyGiftcardFormElement;
|
|
226
228
|
};
|
|
229
|
+
interface HTMLBuyGiftcardSucceedElement extends Components.BuyGiftcardSucceed, HTMLStencilElement {
|
|
230
|
+
}
|
|
231
|
+
var HTMLBuyGiftcardSucceedElement: {
|
|
232
|
+
prototype: HTMLBuyGiftcardSucceedElement;
|
|
233
|
+
new (): HTMLBuyGiftcardSucceedElement;
|
|
234
|
+
};
|
|
227
235
|
interface HTMLBuyGiftcardVerificationElement extends Components.BuyGiftcardVerification, HTMLStencilElement {
|
|
228
236
|
}
|
|
229
237
|
var HTMLBuyGiftcardVerificationElement: {
|
|
@@ -455,6 +463,7 @@ declare global {
|
|
|
455
463
|
interface HTMLElementTagNameMap {
|
|
456
464
|
"activate-form": HTMLActivateFormElement;
|
|
457
465
|
"buy-giftcard-form": HTMLBuyGiftcardFormElement;
|
|
466
|
+
"buy-giftcard-succeed": HTMLBuyGiftcardSucceedElement;
|
|
458
467
|
"buy-giftcard-verification": HTMLBuyGiftcardVerificationElement;
|
|
459
468
|
"change-password-form": HTMLChangePasswordFormElement;
|
|
460
469
|
"chat-box": HTMLChatBoxElement;
|
|
@@ -504,6 +513,8 @@ declare namespace LocalJSX {
|
|
|
504
513
|
interface BuyGiftcardForm {
|
|
505
514
|
"salonId"?: string;
|
|
506
515
|
}
|
|
516
|
+
interface BuyGiftcardSucceed {
|
|
517
|
+
}
|
|
507
518
|
interface BuyGiftcardVerification {
|
|
508
519
|
"onSuccess"?: (user: User) => void;
|
|
509
520
|
"salonId"?: string;
|
|
@@ -676,6 +687,7 @@ declare namespace LocalJSX {
|
|
|
676
687
|
interface IntrinsicElements {
|
|
677
688
|
"activate-form": ActivateForm;
|
|
678
689
|
"buy-giftcard-form": BuyGiftcardForm;
|
|
690
|
+
"buy-giftcard-succeed": BuyGiftcardSucceed;
|
|
679
691
|
"buy-giftcard-verification": BuyGiftcardVerification;
|
|
680
692
|
"change-password-form": ChangePasswordForm;
|
|
681
693
|
"chat-box": ChatBox;
|
|
@@ -722,6 +734,7 @@ declare module "@stencil/core" {
|
|
|
722
734
|
interface IntrinsicElements {
|
|
723
735
|
"activate-form": LocalJSX.ActivateForm & JSXBase.HTMLAttributes<HTMLActivateFormElement>;
|
|
724
736
|
"buy-giftcard-form": LocalJSX.BuyGiftcardForm & JSXBase.HTMLAttributes<HTMLBuyGiftcardFormElement>;
|
|
737
|
+
"buy-giftcard-succeed": LocalJSX.BuyGiftcardSucceed & JSXBase.HTMLAttributes<HTMLBuyGiftcardSucceedElement>;
|
|
725
738
|
"buy-giftcard-verification": LocalJSX.BuyGiftcardVerification & JSXBase.HTMLAttributes<HTMLBuyGiftcardVerificationElement>;
|
|
726
739
|
"change-password-form": LocalJSX.ChangePasswordForm & JSXBase.HTMLAttributes<HTMLChangePasswordFormElement>;
|
|
727
740
|
"chat-box": LocalJSX.ChatBox & JSXBase.HTMLAttributes<HTMLChatBoxElement>;
|