favesalon-embed 1.0.4 → 1.0.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.
- package/dist/custom-elements/index.d.ts +42 -0
- package/dist/{cjs/_commonjsHelpers-5cfcba41.js → favesalon-embed/_commonjsHelpers-a4f66ccd.js} +14 -6
- package/dist/favesalon-embed/activate-form.entry.js +70 -0
- package/dist/favesalon-embed/app-globals-74127f4b.js +7 -0
- package/dist/favesalon-embed/app-globals-f954a22f.js +7 -0
- package/dist/favesalon-embed/change-password-form.entry.js +81 -0
- package/dist/favesalon-embed/chat-box.entry.js +55 -0
- package/dist/{esm → favesalon-embed}/chat-button.entry.js +36 -13
- package/dist/favesalon-embed/chat-form.entry.js +39 -0
- package/dist/favesalon-embed/chat-messages.entry.js +71 -0
- package/dist/favesalon-embed/chat-rooms.entry.js +111 -0
- package/dist/favesalon-embed/css-shim-b7d3d95f.js +4 -0
- package/dist/favesalon-embed/dom-64053c71.js +73 -0
- package/dist/favesalon-embed/favesalon-embed.css +114 -1
- package/dist/favesalon-embed/favesalon-embed.esm.js +148 -1
- package/dist/{esm → favesalon-embed}/google-map.entry.js +1 -1
- package/dist/{esm/index-a1c7583c.js → favesalon-embed/index-00b83e1c.js} +425 -15
- package/dist/favesalon-embed/index-888e99e3.js +3371 -0
- package/dist/favesalon-embed/index-a229b3b5.js +3371 -0
- package/dist/favesalon-embed/index.esm.js +1 -0
- package/dist/{esm/chat-box_5.entry.js → favesalon-embed/lodash-d5526b38.js} +27 -243
- package/dist/favesalon-embed/login-form.entry.js +67 -0
- package/dist/{cjs/chat-button.cjs.entry.js → favesalon-embed/notify-sounds.entry.js} +20 -44
- package/dist/favesalon-embed/register-form.entry.js +88 -0
- package/dist/favesalon-embed/relativeTime-268e64b0.js +7 -0
- package/dist/favesalon-embed/reset-password-form.entry.js +47 -0
- package/dist/{esm → favesalon-embed}/salon-booking-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-booking.entry.js +4 -4
- package/dist/{esm → favesalon-embed}/salon-gift-card-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-gift-card.entry.js +4 -4
- package/dist/{esm → favesalon-embed}/salon-info.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-latest-reviews.entry.js +22 -6
- package/dist/{collection/components/salon-latest-styles/index.js → favesalon-embed/salon-latest-styles.entry.js} +27 -105
- package/dist/{collection/components/salon-locations/index.js → favesalon-embed/salon-locations.entry.js} +15 -95
- package/dist/{esm → favesalon-embed}/salon-lookbook.entry.js +18 -6
- package/dist/{esm → favesalon-embed}/salon-ranking.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-reviews.entry.js +20 -6
- package/dist/{collection/components/salon-schedules/index.js → favesalon-embed/salon-schedules.entry.js} +14 -95
- package/dist/{esm → favesalon-embed}/salon-services.entry.js +25 -13
- package/dist/{esm → favesalon-embed}/salon-stylists.entry.js +3 -3
- package/dist/{esm/services-257442e2.js → favesalon-embed/services-5a4c43a6.js} +2608 -188
- package/dist/{cjs/services-d1bdf299.js → favesalon-embed/services-d71be591.js} +2616 -191
- package/dist/favesalon-embed/shadow-css-98135883.js +387 -0
- package/dist/{esm → favesalon-embed}/style-detail.entry.js +29 -11
- package/dist/favesalon-embed/user-avatar.entry.js +52 -0
- package/dist/favesalon-embed/user-form.entry.js +44 -0
- package/dist/{collection/utils/utils.js → favesalon-embed/utils-fd30fb29.js} +14 -5
- package/dist/types/components/activate-form/activate-form.d.ts +12 -0
- package/dist/types/components/activate-form/test/activate-form.spec.d.ts +1 -0
- package/dist/types/components/change-password-form/change-password-form.d.ts +12 -0
- package/dist/types/components/chat-box/index.d.ts +1 -0
- package/dist/types/components/chat-button/index.d.ts +6 -2
- package/dist/types/components/chat-button/notify-sounds.d.ts +5 -0
- package/dist/types/components/chat-rooms/index.d.ts +6 -0
- package/dist/types/components/login-form/login-form.d.ts +10 -0
- package/dist/types/components/register-form/register-form.d.ts +13 -0
- package/dist/types/components/reset-password-form/reset-password-form.d.ts +9 -0
- package/dist/types/components/user-form/user-form.d.ts +7 -0
- package/dist/types/components.d.ts +127 -2
- package/dist/types/services/services.d.ts +17 -0
- package/dist/types/types/chat.d.ts +1 -0
- package/dist/types/types/user.d.ts +16 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/types/utils/utils.spec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chat-box_5.cjs.entry.js +0 -17439
- package/dist/cjs/colors-38421769.js +0 -69
- package/dist/cjs/favesalon-embed.cjs.js +0 -23
- package/dist/cjs/google-map.cjs.entry.js +0 -52
- package/dist/cjs/index-7f190886.js +0 -4396
- package/dist/cjs/index-dd8176c4.js +0 -1531
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/relativeTime-3721080d.js +0 -9
- package/dist/cjs/salon-booking-modal.cjs.entry.js +0 -30
- package/dist/cjs/salon-booking.cjs.entry.js +0 -51
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +0 -29
- package/dist/cjs/salon-gift-card.cjs.entry.js +0 -51
- package/dist/cjs/salon-info.cjs.entry.js +0 -33
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +0 -97
- package/dist/cjs/salon-latest-styles_3.cjs.entry.js +0 -241
- package/dist/cjs/salon-lookbook.cjs.entry.js +0 -222
- package/dist/cjs/salon-ranking.cjs.entry.js +0 -60
- package/dist/cjs/salon-reviews.cjs.entry.js +0 -193
- package/dist/cjs/salon-services.cjs.entry.js +0 -81
- package/dist/cjs/salon-stylists.cjs.entry.js +0 -118
- package/dist/cjs/style-detail.cjs.entry.js +0 -312
- package/dist/cjs/utils-c5a33b3c.js +0 -23
- package/dist/collection/collection-manifest.json +0 -33
- package/dist/collection/components/chat-box/index.css +0 -105
- package/dist/collection/components/chat-box/index.js +0 -138
- package/dist/collection/components/chat-button/index.css +0 -101
- package/dist/collection/components/chat-button/index.js +0 -155
- package/dist/collection/components/chat-form/index.css +0 -40
- package/dist/collection/components/chat-form/index.js +0 -79
- package/dist/collection/components/chat-messages/index.css +0 -48
- package/dist/collection/components/chat-messages/index.js +0 -142
- package/dist/collection/components/chat-rooms/index.css +0 -102
- package/dist/collection/components/chat-rooms/index.js +0 -157
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/dist/collection/components/google-map/index.css +0 -5
- package/dist/collection/components/google-map/index.js +0 -90
- package/dist/collection/components/salon-booking/index.css +0 -30
- package/dist/collection/components/salon-booking/index.js +0 -126
- package/dist/collection/components/salon-booking/salon-booking-modal.js +0 -92
- package/dist/collection/components/salon-gift-card/index.css +0 -30
- package/dist/collection/components/salon-gift-card/index.js +0 -126
- package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -73
- package/dist/collection/components/salon-info/index.css +0 -1
- package/dist/collection/components/salon-info/index.js +0 -77
- package/dist/collection/components/salon-latest-reviews/index.css +0 -11
- package/dist/collection/components/salon-latest-reviews/index.js +0 -163
- package/dist/collection/components/salon-latest-styles/index.css +0 -12
- package/dist/collection/components/salon-locations/index.css +0 -24
- package/dist/collection/components/salon-lookbook/index.css +0 -15
- package/dist/collection/components/salon-lookbook/index.js +0 -368
- package/dist/collection/components/salon-ranking/index.css +0 -3
- package/dist/collection/components/salon-ranking/index.js +0 -117
- package/dist/collection/components/salon-reviews/index.css +0 -18
- package/dist/collection/components/salon-reviews/index.js +0 -249
- package/dist/collection/components/salon-schedules/index.css +0 -18
- package/dist/collection/components/salon-services/index.css +0 -1
- package/dist/collection/components/salon-services/index.js +0 -146
- package/dist/collection/components/salon-stylists/index.css +0 -43
- package/dist/collection/components/salon-stylists/index.js +0 -184
- package/dist/collection/components/style-detail/index.css +0 -76
- package/dist/collection/components/style-detail/index.js +0 -386
- package/dist/collection/components/user-avatar/index.css +0 -0
- package/dist/collection/components/user-avatar/index.js +0 -159
- package/dist/collection/constants/colors.js +0 -65
- package/dist/collection/global/global.js +0 -0
- package/dist/collection/mocks/users.js +0 -10
- package/dist/collection/services/services.js +0 -295
- package/dist/collection/types/chat.js +0 -23
- package/dist/collection/types/common.js +0 -11
- package/dist/collection/types/review.js +0 -39
- package/dist/collection/types/salon.js +0 -58
- package/dist/collection/types/service.js +0 -24
- package/dist/collection/types/style.js +0 -128
- package/dist/collection/types/stylist.js +0 -30
- package/dist/collection/types/user.js +0 -10
- package/dist/custom-elements/index.js +0 -44974
- package/dist/esm/_commonjsHelpers-66ac50f5.js +0 -32
- package/dist/esm/favesalon-embed.js +0 -18
- package/dist/esm/index-0494771f.js +0 -1504
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/relativeTime-baa50aa2.js +0 -7
- package/dist/esm/salon-latest-styles_3.entry.js +0 -235
- package/dist/esm/utils-e97485e0.js +0 -19
- package/dist/favesalon-embed/p-05a1c88a.entry.js +0 -1
- package/dist/favesalon-embed/p-0acf0447.entry.js +0 -1
- package/dist/favesalon-embed/p-0bc4f624.js +0 -1
- package/dist/favesalon-embed/p-1af1515f.entry.js +0 -1
- package/dist/favesalon-embed/p-1cba5fc9.entry.js +0 -1
- package/dist/favesalon-embed/p-39a4ef15.entry.js +0 -1
- package/dist/favesalon-embed/p-3e2cb05b.entry.js +0 -1
- package/dist/favesalon-embed/p-47e646f8.js +0 -1
- package/dist/favesalon-embed/p-487b311f.entry.js +0 -1
- package/dist/favesalon-embed/p-55387c2f.entry.js +0 -1
- package/dist/favesalon-embed/p-566f05b4.entry.js +0 -1
- package/dist/favesalon-embed/p-862a0de0.entry.js +0 -1
- package/dist/favesalon-embed/p-9fe0cbeb.js +0 -2
- package/dist/favesalon-embed/p-a33331cc.js +0 -1
- package/dist/favesalon-embed/p-aeeb7b5f.entry.js +0 -1
- package/dist/favesalon-embed/p-b08e5b54.js +0 -6
- package/dist/favesalon-embed/p-b5cca5fc.entry.js +0 -1
- package/dist/favesalon-embed/p-c7fb7af5.js +0 -1580
- package/dist/favesalon-embed/p-ccab56d8.js +0 -1
- package/dist/favesalon-embed/p-d6e13053.entry.js +0 -1
- package/dist/favesalon-embed/p-dee42d34.entry.js +0 -1
- package/dist/favesalon-embed/p-e661ca1d.entry.js +0 -1
- package/dist/favesalon-embed/p-eeceab9c.entry.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- /package/dist/{esm → favesalon-embed}/colors-ea36347a.js +0 -0
- /package/dist/{collection/index.js → types/components/activate-form/test/activate-form.e2e.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as color, l as lib } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { c as color, l as lib } from './index-00b83e1c.js';
|
|
3
3
|
import { C as Colors } from './colors-ea36347a.js';
|
|
4
|
-
import './_commonjsHelpers-
|
|
4
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
5
5
|
|
|
6
6
|
const indexCss = ".salon-modal.salon-modal--gift-card:before{display:none}.salon-modal.salon-modal--gift-card .salon-modal--inner,.salon-modal.salon-modal--gift-card .salon-modal--content{max-width:none;width:100%;height:100%}.salon-modal.salon-modal--gift-card .salon-modal--close{background-color:#EFEFEF;width:40px;height:40px;right:16px;top:16px;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px}@media (min-width: 768px){.salon-modal.salon-modal--gift-card .salon-modal--close{right:20px;top:20px}}";
|
|
7
7
|
|
|
@@ -39,7 +39,7 @@ const SalonGiftCard = class {
|
|
|
39
39
|
},
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
return (h("div", { class: "salon-gift-card" }, h("div", { class: "salon-gift-card--button" }, h("button",
|
|
42
|
+
return (h("div", { class: "salon-gift-card" }, h("div", { class: "salon-gift-card--button" }, h("button", { type: "button", class: buttonClass, onClick: () => this.openModal(), ...buttonStyle }, this.buttonText))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
SalonGiftCard.style = indexCss;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { H as HttpService } from './services-
|
|
3
|
-
import './_commonjsHelpers-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { H as HttpService } from './services-d71be591.js';
|
|
3
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
4
4
|
import './colors-ea36347a.js';
|
|
5
5
|
|
|
6
6
|
const indexCss = "";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-d71be591.js';
|
|
3
3
|
import { C as Colors } from './colors-ea36347a.js';
|
|
4
|
-
import { g as getRatingText } from './utils-
|
|
5
|
-
import './_commonjsHelpers-
|
|
4
|
+
import { g as getRatingText } from './utils-fd30fb29.js';
|
|
5
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
6
6
|
|
|
7
7
|
const indexCss = ".salon-latest-reviews .salon-review{min-width:280px}@media (min-width: 768px){.salon-latest-reviews .salon-review{min-width:300px}}";
|
|
8
8
|
|
|
@@ -29,7 +29,13 @@ const SalonLatestReviews = class {
|
|
|
29
29
|
render() {
|
|
30
30
|
if (this.isLoading) {
|
|
31
31
|
return (h("div", { class: "salon-latest-reviews", style: { overflow: 'hidden' } }, h("div", { style: { display: 'flex', whiteSpace: 'nowrap' } }, [1, 2, 3, 4, 5].map((fakeId, index) => {
|
|
32
|
-
return (h("div", { key: `salon-latest-review--${fakeId}`, class: "salon-review", style:
|
|
32
|
+
return (h("div", { key: `salon-latest-review--${fakeId}`, class: "salon-review", style: {
|
|
33
|
+
border: `1px solid ${Colors.Gray02}`,
|
|
34
|
+
background: Colors.White,
|
|
35
|
+
borderRadius: '8px',
|
|
36
|
+
overflow: 'hidden',
|
|
37
|
+
...index > 0 ? { marginLeft: '16px' } : {},
|
|
38
|
+
} }, h("div", { class: "card", style: { border: 'none' } }, h("div", { class: "card-body" }, h("div", { class: "salon-review--user", style: { marginBottom: '16px', overflow: 'hidden' } }, h("div", { style: {
|
|
33
39
|
backgroundColor: Colors.Gray02,
|
|
34
40
|
borderRadius: '50px',
|
|
35
41
|
height: '48px',
|
|
@@ -67,7 +73,17 @@ const SalonLatestReviews = class {
|
|
|
67
73
|
const ratingTexts = getRatingText();
|
|
68
74
|
return (h("div", { class: "salon-latest-reviews", style: { overflowX: 'auto' } }, h("div", { style: { display: 'flex', whiteSpace: 'nowrap' } }, (this.salonReviews || []).map((review, index) => {
|
|
69
75
|
const { user } = review;
|
|
70
|
-
return (h("div", { class: "salon-review", style:
|
|
76
|
+
return (h("div", { class: "salon-review", style: {
|
|
77
|
+
border: `1px solid ${Colors.Gray02}`,
|
|
78
|
+
background: Colors.White,
|
|
79
|
+
borderRadius: '8px',
|
|
80
|
+
overflow: 'hidden',
|
|
81
|
+
...index > 0 ? { marginLeft: '16px' } : {},
|
|
82
|
+
} }, h("div", { class: "card", style: { border: 'none' } }, h("div", { class: "card-body" }, h("div", { class: "salon-review--user", style: { marginBottom: '16px' } }, h("user-avatar", { size: 48, name: h("div", { style: { fontSize: '18px', fontWeight: '600' } }, user.fullName), shortName: `${(user.firstName || '').charAt(0)}${(user.lastName || '').charAt(0)}`, avatar: user.avatar, nameStyle: { fontWeight: 'bold' } })), h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row', marginBottom: '4px' } }, [1, 2, 3, 4, 5].map(score => (h("i", { class: score <= review.point ? 'ri-heart-fill' : 'ri-heart-line', style: {
|
|
83
|
+
fontSize: '16px',
|
|
84
|
+
marginRight: '4px',
|
|
85
|
+
...score <= review.point ? { color: this.primaryColor } : { color: Colors.Gray04 },
|
|
86
|
+
} }))), h("div", { class: "salon-review--rating--date", style: { fontSize: '14px', color: Colors.Gray04, marginLeft: '16px', position: 'relative', top: '2px' } }, dayjs_min(review.createdDate).format(shortDateYearFormat))), h("div", { class: "salon-review--rating-text", style: { fontSize: '16px', fontWeight: 'bold' } }, ratingTexts[review.point]), (review.title || review.description) && (h("div", { class: "salon-review--detail", style: { marginTop: '16px' } }, h("div", { class: "salon-review--description", style: {
|
|
71
87
|
fontSize: '16px',
|
|
72
88
|
lineHeight: '26px',
|
|
73
89
|
overflow: 'hidden',
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { h } from '
|
|
2
|
-
import { Colors } from '
|
|
3
|
-
import { isVideoMedia } from '
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { C as Colors } from './colors-ea36347a.js';
|
|
3
|
+
import { H as HttpService, i as isVideoMedia } from './services-d71be591.js';
|
|
4
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
5
|
+
|
|
6
|
+
const indexCss = "salon-latest-styles .view--salon-styles--item{width:120px;height:120px}@media (min-width: 1024px){salon-latest-styles .view--salon-styles--item{width:200px;height:200px}}";
|
|
7
|
+
|
|
8
|
+
const SalonLatestStyles = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
7
11
|
this.salonId = undefined;
|
|
8
12
|
this.isLoading = undefined;
|
|
9
13
|
this.withBorder = undefined;
|
|
@@ -73,12 +77,19 @@ export class SalonLatestStyles {
|
|
|
73
77
|
float: 'left',
|
|
74
78
|
paddingLeft: '16px',
|
|
75
79
|
marginBottom: '16px',
|
|
76
|
-
} }, h("div", { class: "view--salon-styles--item", style:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
} }, h("div", { class: "view--salon-styles--item", style: {
|
|
81
|
+
backgroundColor: Colors.Gray01,
|
|
82
|
+
borderRadius: '8px',
|
|
83
|
+
overflow: 'hidden',
|
|
84
|
+
position: 'relative',
|
|
85
|
+
cursor: 'pointer',
|
|
86
|
+
...!isVideo && firstMedia ? {
|
|
87
|
+
backgroundImage: `url("${firstMedia.imageThumb || firstMedia.imageThumbMedium}")`,
|
|
88
|
+
backgroundRepeat: 'no-repeat',
|
|
89
|
+
backgroundPosition: 'center center',
|
|
90
|
+
backgroundSize: 'cover',
|
|
91
|
+
} : {},
|
|
92
|
+
}, onClick: () => this.onClickLookbook(faveStyle) }, isVideo && firstMedia && (h("div", null, h("video", { muted: true, width: "100%", height: "100%", poster: imageThumb }, h("source", { src: firstMedia.mediaUrl, type: "video/mp4" })), h("i", { class: "ri-play-circle-fill", style: {
|
|
82
93
|
fontSize: '48px',
|
|
83
94
|
color: Colors.TextColor,
|
|
84
95
|
position: 'absolute',
|
|
@@ -88,96 +99,7 @@ export class SalonLatestStyles {
|
|
|
88
99
|
} }))))));
|
|
89
100
|
})))));
|
|
90
101
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
static get styleUrls() {
|
|
98
|
-
return {
|
|
99
|
-
"$": ["index.css"]
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
static get properties() {
|
|
103
|
-
return {
|
|
104
|
-
"salonId": {
|
|
105
|
-
"type": "number",
|
|
106
|
-
"mutable": false,
|
|
107
|
-
"complexType": {
|
|
108
|
-
"original": "number",
|
|
109
|
-
"resolved": "number",
|
|
110
|
-
"references": {}
|
|
111
|
-
},
|
|
112
|
-
"required": false,
|
|
113
|
-
"optional": false,
|
|
114
|
-
"docs": {
|
|
115
|
-
"tags": [],
|
|
116
|
-
"text": ""
|
|
117
|
-
},
|
|
118
|
-
"attribute": "salon-id",
|
|
119
|
-
"reflect": false
|
|
120
|
-
},
|
|
121
|
-
"isLoading": {
|
|
122
|
-
"type": "boolean",
|
|
123
|
-
"mutable": false,
|
|
124
|
-
"complexType": {
|
|
125
|
-
"original": "boolean",
|
|
126
|
-
"resolved": "boolean",
|
|
127
|
-
"references": {}
|
|
128
|
-
},
|
|
129
|
-
"required": false,
|
|
130
|
-
"optional": true,
|
|
131
|
-
"docs": {
|
|
132
|
-
"tags": [],
|
|
133
|
-
"text": ""
|
|
134
|
-
},
|
|
135
|
-
"attribute": "is-loading",
|
|
136
|
-
"reflect": false
|
|
137
|
-
},
|
|
138
|
-
"withBorder": {
|
|
139
|
-
"type": "boolean",
|
|
140
|
-
"mutable": false,
|
|
141
|
-
"complexType": {
|
|
142
|
-
"original": "boolean",
|
|
143
|
-
"resolved": "boolean",
|
|
144
|
-
"references": {}
|
|
145
|
-
},
|
|
146
|
-
"required": false,
|
|
147
|
-
"optional": true,
|
|
148
|
-
"docs": {
|
|
149
|
-
"tags": [],
|
|
150
|
-
"text": ""
|
|
151
|
-
},
|
|
152
|
-
"attribute": "with-border",
|
|
153
|
-
"reflect": false
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
static get states() {
|
|
158
|
-
return {
|
|
159
|
-
"isLoadingState": {},
|
|
160
|
-
"latestStyles": {}
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
static get methods() {
|
|
164
|
-
return {
|
|
165
|
-
"fetchData": {
|
|
166
|
-
"complexType": {
|
|
167
|
-
"signature": "() => Promise<boolean>",
|
|
168
|
-
"parameters": [],
|
|
169
|
-
"references": {
|
|
170
|
-
"Promise": {
|
|
171
|
-
"location": "global"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"return": "Promise<boolean>"
|
|
175
|
-
},
|
|
176
|
-
"docs": {
|
|
177
|
-
"text": "",
|
|
178
|
-
"tags": []
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
}
|
|
102
|
+
};
|
|
103
|
+
SalonLatestStyles.style = indexCss;
|
|
104
|
+
|
|
105
|
+
export { SalonLatestStyles as salon_latest_styles };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { h } from '
|
|
2
|
-
import {
|
|
3
|
-
import { Colors } from '
|
|
4
|
-
import HttpService from '
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { a as formatWebsiteUrl, b as formatFullAddress } from './utils-fd30fb29.js';
|
|
3
|
+
import { C as Colors } from './colors-ea36347a.js';
|
|
4
|
+
import { H as HttpService } from './services-d71be591.js';
|
|
5
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
6
|
+
|
|
7
|
+
const indexCss = "@media (min-width: 768px){salon-locations .salon-contact--links{overflow:hidden;margin-left:-32px}salon-locations .salon-contact--links-item{float:left;display:flex;flex-direction:row;align-items:center;font-size:16px;min-width:300px;padding-left:32px}salon-locations .salon-contact--links-item:nth-child(2n+1){clear:left}salon-locations .salon-contact--links-item+.salon-contact--links-item{margin-top:8px}}";
|
|
8
|
+
|
|
9
|
+
const SalonLocations = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
registerInstance(this, hostRef);
|
|
7
12
|
this.salonId = undefined;
|
|
8
13
|
this.salonInfo = undefined;
|
|
9
14
|
this.isLoading = undefined;
|
|
@@ -52,92 +57,7 @@ export class SalonLocations {
|
|
|
52
57
|
const fullAddress = formatFullAddress(this.salonInfoState);
|
|
53
58
|
return (h("div", { class: "view view--salon-locations" }, h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } }, h("div", { style: { fontSize: '18px', fontWeight: 'bold' } }, "Contact"), h("div", { class: "salon-contact--links", style: { marginTop: '16px' } }, businessPhone && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-phone-line", style: { color: Colors.Gray04, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { href: `tel:${businessPhone}`, style: { color: Colors.TextColor, textDecoration: 'none' } }, businessPhone))), websiteUrl && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-links-line", style: { color: Colors.Gray04, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { target: websiteUrl && websiteUrl.indexOf(window.location.hostname) === -1 ? '_blank' : undefined, href: websiteUrl, style: { color: Colors.TextColor, textDecoration: 'none' } }, websiteUrl))), email && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-mail-line", style: { color: Colors.Gray04, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { href: `mailto:${email}`, style: { color: Colors.TextColor, textDecoration: 'none' } }, email)))), h("div", { class: "view--salon-info--map", style: { marginTop: '24px' } }, h("google-map", { "location-name": businessName, "location-address": fullAddress })))));
|
|
54
59
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
static get styleUrls() {
|
|
62
|
-
return {
|
|
63
|
-
"$": ["index.css"]
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
static get properties() {
|
|
67
|
-
return {
|
|
68
|
-
"salonId": {
|
|
69
|
-
"type": "number",
|
|
70
|
-
"mutable": false,
|
|
71
|
-
"complexType": {
|
|
72
|
-
"original": "number",
|
|
73
|
-
"resolved": "number",
|
|
74
|
-
"references": {}
|
|
75
|
-
},
|
|
76
|
-
"required": false,
|
|
77
|
-
"optional": false,
|
|
78
|
-
"docs": {
|
|
79
|
-
"tags": [],
|
|
80
|
-
"text": ""
|
|
81
|
-
},
|
|
82
|
-
"attribute": "salon-id",
|
|
83
|
-
"reflect": false
|
|
84
|
-
},
|
|
85
|
-
"salonInfo": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"mutable": false,
|
|
88
|
-
"complexType": {
|
|
89
|
-
"original": "string",
|
|
90
|
-
"resolved": "string",
|
|
91
|
-
"references": {}
|
|
92
|
-
},
|
|
93
|
-
"required": false,
|
|
94
|
-
"optional": true,
|
|
95
|
-
"docs": {
|
|
96
|
-
"tags": [],
|
|
97
|
-
"text": ""
|
|
98
|
-
},
|
|
99
|
-
"attribute": "salon-info",
|
|
100
|
-
"reflect": false
|
|
101
|
-
},
|
|
102
|
-
"isLoading": {
|
|
103
|
-
"type": "boolean",
|
|
104
|
-
"mutable": false,
|
|
105
|
-
"complexType": {
|
|
106
|
-
"original": "boolean",
|
|
107
|
-
"resolved": "boolean",
|
|
108
|
-
"references": {}
|
|
109
|
-
},
|
|
110
|
-
"required": false,
|
|
111
|
-
"optional": true,
|
|
112
|
-
"docs": {
|
|
113
|
-
"tags": [],
|
|
114
|
-
"text": ""
|
|
115
|
-
},
|
|
116
|
-
"attribute": "is-loading",
|
|
117
|
-
"reflect": false
|
|
118
|
-
},
|
|
119
|
-
"withBorder": {
|
|
120
|
-
"type": "boolean",
|
|
121
|
-
"mutable": false,
|
|
122
|
-
"complexType": {
|
|
123
|
-
"original": "boolean",
|
|
124
|
-
"resolved": "boolean",
|
|
125
|
-
"references": {}
|
|
126
|
-
},
|
|
127
|
-
"required": false,
|
|
128
|
-
"optional": true,
|
|
129
|
-
"docs": {
|
|
130
|
-
"tags": [],
|
|
131
|
-
"text": ""
|
|
132
|
-
},
|
|
133
|
-
"attribute": "with-border",
|
|
134
|
-
"reflect": false
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
static get states() {
|
|
139
|
-
return {
|
|
140
|
-
"salonInfoState": {}
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
}
|
|
60
|
+
};
|
|
61
|
+
SalonLocations.style = indexCss;
|
|
62
|
+
|
|
63
|
+
export { SalonLocations as salon_locations };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
2
|
import { C as Colors } from './colors-ea36347a.js';
|
|
3
|
-
import { H as HttpService } from './services-
|
|
4
|
-
import './_commonjsHelpers-
|
|
3
|
+
import { H as HttpService } from './services-d71be591.js';
|
|
4
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
5
5
|
|
|
6
6
|
const indexCss = "@media (max-width: 768px){salon-lookbook .view-header{display:block !important}salon-lookbook .salon-loobook--serch-result{margin-bottom:16px}salon-lookbook .salon-loobook--filter-wrapper>label,salon-lookbook .salon-loobook--sort-wrapper>label{display:none !important}}";
|
|
7
7
|
|
|
@@ -81,7 +81,11 @@ const SalonLookbook = class {
|
|
|
81
81
|
async fetchData() {
|
|
82
82
|
try {
|
|
83
83
|
const promises = [
|
|
84
|
-
this.fetchLookbooks(
|
|
84
|
+
this.fetchLookbooks({
|
|
85
|
+
page: 1,
|
|
86
|
+
sort: this.sortBy,
|
|
87
|
+
...this.filterBy !== 'all' ? { services: [this.filterBy] } : {},
|
|
88
|
+
}),
|
|
85
89
|
this.fetchCategories(),
|
|
86
90
|
];
|
|
87
91
|
return Promise.all(promises);
|
|
@@ -116,7 +120,11 @@ const SalonLookbook = class {
|
|
|
116
120
|
this.salonLookbooks = [];
|
|
117
121
|
this.hideLoadMore = true;
|
|
118
122
|
this.filterBy = filterBy;
|
|
119
|
-
await this.fetchLookbooks(
|
|
123
|
+
await this.fetchLookbooks({
|
|
124
|
+
page: this.currentPage,
|
|
125
|
+
sort: this.sortBy,
|
|
126
|
+
...this.filterBy !== 'all' ? { services: [Number(this.filterBy)] } : {},
|
|
127
|
+
});
|
|
120
128
|
if (window.masonry) {
|
|
121
129
|
this.isLayoutSetup = false;
|
|
122
130
|
}
|
|
@@ -130,7 +138,11 @@ const SalonLookbook = class {
|
|
|
130
138
|
this.salonLookbooks = [];
|
|
131
139
|
this.hideLoadMore = true;
|
|
132
140
|
this.sortBy = sortBy;
|
|
133
|
-
await this.fetchLookbooks(
|
|
141
|
+
await this.fetchLookbooks({
|
|
142
|
+
page: this.currentPage,
|
|
143
|
+
sort: this.sortBy,
|
|
144
|
+
...this.filterBy !== 'all' ? { services: [this.filterBy] } : {},
|
|
145
|
+
});
|
|
134
146
|
if (window.masonry) {
|
|
135
147
|
this.isLayoutSetup = false;
|
|
136
148
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-d71be591.js';
|
|
3
3
|
import { C as Colors } from './colors-ea36347a.js';
|
|
4
|
-
import './_commonjsHelpers-
|
|
4
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
5
5
|
|
|
6
6
|
const indexCss = "@media (max-width: 768px){salon-reviews .salon-reviews{flex-direction:column !important}salon-reviews .salon-reviews--filters--options{display:none !important}salon-reviews .salon-reviews--list{padding-top:32px !important;padding-left:0px !important}salon-reviews .reviews-list--sorting>label{display:none !important}}";
|
|
7
7
|
|
|
@@ -79,7 +79,12 @@ const SalonReviews = class {
|
|
|
79
79
|
onChangeFilter(filterBy) {
|
|
80
80
|
this.isFiltering = true;
|
|
81
81
|
try {
|
|
82
|
-
HttpService().fetchSalonReviews(this.salonId,
|
|
82
|
+
HttpService().fetchSalonReviews(this.salonId, {
|
|
83
|
+
page: 1,
|
|
84
|
+
sort: this.sortBy,
|
|
85
|
+
limit: pageLimited,
|
|
86
|
+
...filterBy.length > 0 ? { avg_point: filterBy } : {},
|
|
87
|
+
}).then(response => {
|
|
83
88
|
const { total, data: allReviews } = response;
|
|
84
89
|
this.page = 1;
|
|
85
90
|
this.totalReviews = total;
|
|
@@ -93,7 +98,12 @@ const SalonReviews = class {
|
|
|
93
98
|
onChangeSorting(sortBy) {
|
|
94
99
|
this.isSorting = true;
|
|
95
100
|
try {
|
|
96
|
-
HttpService().fetchSalonReviews(this.salonId,
|
|
101
|
+
HttpService().fetchSalonReviews(this.salonId, {
|
|
102
|
+
page: 1,
|
|
103
|
+
sort: sortBy,
|
|
104
|
+
limit: pageLimited,
|
|
105
|
+
...this.filterBy.length > 0 ? { avg_point: this.filterBy } : {},
|
|
106
|
+
}).then(response => {
|
|
97
107
|
const { total, data: allReviews } = response;
|
|
98
108
|
this.page = 1;
|
|
99
109
|
this.totalReviews = total;
|
|
@@ -107,7 +117,11 @@ const SalonReviews = class {
|
|
|
107
117
|
render() {
|
|
108
118
|
const ratingTexts = ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
|
|
109
119
|
return (h("div", { class: "view view--salon-reviews" }, h("div", { class: "salon-reviews--filters" }, h("div", { class: "salon-reviews--score" }, h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row' } }, [1, 2, 3, 4, 5].map(score => {
|
|
110
|
-
return (h("i", { class: score <= this.stats.reviewPoint ? 'ri-heart-fill' : 'ri-heart-line', style:
|
|
120
|
+
return (h("i", { class: score <= this.stats.reviewPoint ? 'ri-heart-fill' : 'ri-heart-line', style: {
|
|
121
|
+
fontSize: '32px',
|
|
122
|
+
marginRight: '4px',
|
|
123
|
+
...score <= this.stats.reviewPoint ? { color: this.primaryColor } : { color: Colors.Gray04 },
|
|
124
|
+
} }));
|
|
111
125
|
})), h("div", { class: "salon-review--rating--date", style: {
|
|
112
126
|
display: 'flex',
|
|
113
127
|
flexDirection: 'row',
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { h } from '
|
|
2
|
-
import { BusinessHourStatus } from '
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { H as HttpService, B as BusinessHourStatus } from './services-d71be591.js';
|
|
3
|
+
import { C as Colors } from './colors-ea36347a.js';
|
|
4
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
5
|
+
|
|
6
|
+
const indexCss = "salon-schedules .salon-schedules--day{display:flex;flex-direction:row;min-width:240px}@media (min-width: 768px){salon-schedules .salon-schedules--dates{overflow:hidden;margin-left:-32px}salon-schedules .salon-schedules--day{float:left;padding-left:32px}}";
|
|
7
|
+
|
|
8
|
+
const SalonSchedules = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
7
11
|
this.salonId = undefined;
|
|
8
12
|
this.salonInfo = undefined;
|
|
9
13
|
this.isLoading = undefined;
|
|
@@ -76,92 +80,7 @@ export class SalonSchedules {
|
|
|
76
80
|
const { about, businessHours, } = (this.salonInfoState || {});
|
|
77
81
|
return (h("div", { class: "view view--salon-contact" }, h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } }, h("div", { style: { fontSize: '18px', fontWeight: 'bold' } }, "About"), about && (h("div", { class: "salon-contact--info--desc", style: { fontSize: '16px', marginTop: '16px' }, innerHTML: about })), businessHours && businessHours.length > 0 && (h("div", { class: "salon-schedules", style: { marginTop: '24px' } }, h("div", { class: "salon-schedules--title", style: { fontSize: '16px', fontWeight: 'bold' } }, "Working hours"), h("div", { class: "salon-schedules--dates" }, h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Mon"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[0]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Tue"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[1]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Wed"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[2]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Thur"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[3]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Fri"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[4]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sat"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[5]))), h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sun"), h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[6])))))))));
|
|
78
82
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
static get styleUrls() {
|
|
86
|
-
return {
|
|
87
|
-
"$": ["index.css"]
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
static get properties() {
|
|
91
|
-
return {
|
|
92
|
-
"salonId": {
|
|
93
|
-
"type": "number",
|
|
94
|
-
"mutable": false,
|
|
95
|
-
"complexType": {
|
|
96
|
-
"original": "number",
|
|
97
|
-
"resolved": "number",
|
|
98
|
-
"references": {}
|
|
99
|
-
},
|
|
100
|
-
"required": false,
|
|
101
|
-
"optional": false,
|
|
102
|
-
"docs": {
|
|
103
|
-
"tags": [],
|
|
104
|
-
"text": ""
|
|
105
|
-
},
|
|
106
|
-
"attribute": "salon-id",
|
|
107
|
-
"reflect": false
|
|
108
|
-
},
|
|
109
|
-
"salonInfo": {
|
|
110
|
-
"type": "string",
|
|
111
|
-
"mutable": false,
|
|
112
|
-
"complexType": {
|
|
113
|
-
"original": "string",
|
|
114
|
-
"resolved": "string",
|
|
115
|
-
"references": {}
|
|
116
|
-
},
|
|
117
|
-
"required": false,
|
|
118
|
-
"optional": true,
|
|
119
|
-
"docs": {
|
|
120
|
-
"tags": [],
|
|
121
|
-
"text": ""
|
|
122
|
-
},
|
|
123
|
-
"attribute": "salon-info",
|
|
124
|
-
"reflect": false
|
|
125
|
-
},
|
|
126
|
-
"isLoading": {
|
|
127
|
-
"type": "boolean",
|
|
128
|
-
"mutable": false,
|
|
129
|
-
"complexType": {
|
|
130
|
-
"original": "boolean",
|
|
131
|
-
"resolved": "boolean",
|
|
132
|
-
"references": {}
|
|
133
|
-
},
|
|
134
|
-
"required": false,
|
|
135
|
-
"optional": true,
|
|
136
|
-
"docs": {
|
|
137
|
-
"tags": [],
|
|
138
|
-
"text": ""
|
|
139
|
-
},
|
|
140
|
-
"attribute": "is-loading",
|
|
141
|
-
"reflect": false
|
|
142
|
-
},
|
|
143
|
-
"withBorder": {
|
|
144
|
-
"type": "boolean",
|
|
145
|
-
"mutable": false,
|
|
146
|
-
"complexType": {
|
|
147
|
-
"original": "boolean",
|
|
148
|
-
"resolved": "boolean",
|
|
149
|
-
"references": {}
|
|
150
|
-
},
|
|
151
|
-
"required": false,
|
|
152
|
-
"optional": true,
|
|
153
|
-
"docs": {
|
|
154
|
-
"tags": [],
|
|
155
|
-
"text": ""
|
|
156
|
-
},
|
|
157
|
-
"attribute": "with-border",
|
|
158
|
-
"reflect": false
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
static get states() {
|
|
163
|
-
return {
|
|
164
|
-
"salonInfoState": {}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}
|
|
83
|
+
};
|
|
84
|
+
SalonSchedules.style = indexCss;
|
|
85
|
+
|
|
86
|
+
export { SalonSchedules as salon_schedules };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { H as HttpService,
|
|
1
|
+
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
+
import { H as HttpService, a as sortBy_1 } from './services-d71be591.js';
|
|
3
3
|
import { C as Colors } from './colors-ea36347a.js';
|
|
4
|
-
import './_commonjsHelpers-
|
|
4
|
+
import './_commonjsHelpers-a4f66ccd.js';
|
|
5
5
|
|
|
6
6
|
const indexCss = "";
|
|
7
7
|
|
|
@@ -39,11 +39,13 @@ const SalonServices = class {
|
|
|
39
39
|
backgroundColor: Colors.Gray03,
|
|
40
40
|
height: '20px',
|
|
41
41
|
width: '120px',
|
|
42
|
-
} }), h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray01}`, marginTop: '12px' } }, h("div", { class: "view-content" }, [1, 2, 3].map((fakeGroupId, fakeGroupIndex) => (h("div", { key: `service-group--${fakeId}--service-${fakeGroupId}--${fakeGroupIndex}`, class: "salon-service" }, h("div", { class: "salon-service--name", style:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
} }), h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray01}`, marginTop: '12px' } }, h("div", { class: "view-content" }, [1, 2, 3].map((fakeGroupId, fakeGroupIndex) => (h("div", { key: `service-group--${fakeId}--service-${fakeGroupId}--${fakeGroupIndex}`, class: "salon-service" }, h("div", { class: "salon-service--name", style: {
|
|
43
|
+
...fakeGroupIndex > 0 ? {
|
|
44
|
+
marginTop: '12px',
|
|
45
|
+
paddingTop: '12px',
|
|
46
|
+
borderTop: `1px solid ${Colors.Gray01}`,
|
|
47
|
+
} : {},
|
|
48
|
+
} }, h("div", { key: `service-group--${fakeId}--${index}`, style: {
|
|
47
49
|
backgroundColor: Colors.Gray01,
|
|
48
50
|
height: '16px',
|
|
49
51
|
width: '120px',
|
|
@@ -56,11 +58,21 @@ const SalonServices = class {
|
|
|
56
58
|
}
|
|
57
59
|
return (h("div", { class: "salon-services--container" }, h("div", { class: "view view--salon-services--header", style: { border: `1px solid ${Colors.Gray02}` } }, h("div", { class: "view-content", style: { overflowX: 'auto' } }, h("div", { style: { whiteSpace: 'nowrap' } }, sortBy_1(this.salonServices || [], (['order', 'name'])).map((serviceGroup, index) => (h("a", { href: `#service-group--${serviceGroup.id}` }, h("button", { type: "button", class: this.buttonClass, style: index > 0 ? { marginLeft: '12px' } : {} }, serviceGroup.name))))))), sortBy_1(this.salonServices || [], (['order', 'name'])).map(serviceGroup => {
|
|
58
60
|
const hasMultipleCates = (serviceGroup.data || []).length > 1;
|
|
59
|
-
return (h("div", { id: `service-group--${serviceGroup.id}`, style: { marginTop: '32px' } }, h("h3", { style: { fontSize: '24px', marginBottom: '12px' } }, serviceGroup.name), h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray02}` } }, h("div", { class: "view-content" }, (serviceGroup.data || []).map((subGroup, subGroupIndex) => (h("div", { class: "salon-service-category" }, hasMultipleCates && (h("h4", { style:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
return (h("div", { id: `service-group--${serviceGroup.id}`, style: { marginTop: '32px' } }, h("h3", { style: { fontSize: '24px', marginBottom: '12px' } }, serviceGroup.name), h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray02}` } }, h("div", { class: "view-content" }, (serviceGroup.data || []).map((subGroup, subGroupIndex) => (h("div", { class: "salon-service-category" }, hasMultipleCates && (h("h4", { style: {
|
|
62
|
+
fontSize: '20px',
|
|
63
|
+
marginBottom: '12px',
|
|
64
|
+
paddingBottom: '12px',
|
|
65
|
+
borderBottom: `1px solid ${Colors.Gray02}`,
|
|
66
|
+
...subGroupIndex > 0 ? { marginTop: '32px' } : {},
|
|
67
|
+
} }, subGroup.name)), (subGroup.data || []).map((service, serviceIndex) => (h("div", { class: "salon-service" }, h("div", { class: "salon-service--name", style: {
|
|
68
|
+
fontSize: '16px',
|
|
69
|
+
fontWeight: '500',
|
|
70
|
+
...serviceIndex > 0 ? {
|
|
71
|
+
marginTop: '12px',
|
|
72
|
+
paddingTop: '12px',
|
|
73
|
+
borderTop: `1px solid ${Colors.Gray01}`,
|
|
74
|
+
} : {},
|
|
75
|
+
} }, service.name), (!service.hideDuration || !service.hidePrice) && (h("div", { style: {
|
|
64
76
|
display: 'block',
|
|
65
77
|
marginTop: '4px',
|
|
66
78
|
fontSize: '90%',
|