favesalon-embed 0.0.4 → 0.1.0
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/LICENSE +21 -0
- package/{cjs → dist/cjs}/_commonjsHelpers-5cfcba41.js +0 -0
- package/dist/cjs/colors-38421769.js +69 -0
- package/dist/cjs/favesalon-embed.cjs.js +20 -0
- package/{cjs → dist/cjs}/global-9073d10e.js +0 -0
- package/dist/cjs/google-map_5.cjs.entry.js +291 -0
- package/{cjs/index-48ac68d0.js → dist/cjs/index-7f190886.js} +1924 -0
- package/{cjs/index-d5de0b9d.js → dist/cjs/index-e6bea8f5.js} +10 -0
- package/{cjs → dist/cjs}/index.cjs.js +0 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/{cjs → dist/cjs}/salon-booking-modal.cjs.entry.js +5 -5
- package/{cjs → dist/cjs}/salon-booking.cjs.entry.js +6 -7
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +28 -0
- package/{cjs → dist/cjs}/salon-gift-card.cjs.entry.js +7 -7
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +95 -0
- package/{cjs/salon-lookbook_2.cjs.entry.js → dist/cjs/salon-lookbook.cjs.entry.js} +23 -57
- package/{cjs → dist/cjs}/salon-ranking.cjs.entry.js +7 -7
- package/dist/cjs/salon-reviews.cjs.entry.js +186 -0
- package/dist/cjs/salon-services.cjs.entry.js +78 -0
- package/dist/cjs/salon-stylists.cjs.entry.js +112 -0
- package/{cjs/services-f1102d4a.js → dist/cjs/services-eee8f251.js} +265 -393
- package/dist/cjs/style-detail.cjs.entry.js +310 -0
- package/dist/cjs/user-avatar.cjs.entry.js +41 -0
- package/{cjs → dist/cjs}/utils-c5a33b3c.js +0 -0
- package/{collection → dist/collection}/collection-manifest.json +2 -3
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/{collection → dist/collection}/components/google-map/index.css +0 -1
- package/dist/collection/components/google-map/index.js +86 -0
- package/{collection → dist/collection}/components/salon-booking/index.css +10 -24
- package/{collection → dist/collection}/components/salon-booking/index.js +3 -3
- package/{collection → dist/collection}/components/salon-booking/salon-booking-modal.js +4 -4
- package/dist/collection/components/salon-gift-card/index.css +25 -0
- package/{collection → dist/collection}/components/salon-gift-card/index.js +4 -3
- package/{collection → dist/collection}/components/salon-gift-card/salon-gift-card-modal.js +24 -3
- package/{collection/components/salon-locations → dist/collection/components/salon-info}/index.css +0 -0
- package/{collection → dist/collection}/components/salon-info/index.js +6 -32
- package/{collection → dist/collection}/components/salon-latest-reviews/index.css +0 -3
- package/dist/collection/components/salon-latest-reviews/index.js +176 -0
- package/dist/collection/components/salon-latest-styles/index.css +10 -0
- package/dist/collection/components/salon-latest-styles/index.js +178 -0
- package/{collection/components/salon-contact → dist/collection/components/salon-locations}/index.css +6 -6
- package/dist/collection/components/salon-locations/index.js +151 -0
- package/{collection → dist/collection}/components/salon-lookbook/index.css +0 -9
- package/{collection → dist/collection}/components/salon-lookbook/index.js +19 -19
- package/{collection → dist/collection}/components/salon-ranking/index.css +0 -0
- package/{collection → dist/collection}/components/salon-ranking/index.js +5 -5
- package/{collection → dist/collection}/components/salon-reviews/index.css +0 -0
- package/dist/collection/components/salon-reviews/index.js +286 -0
- package/dist/collection/components/salon-schedules/index.css +15 -0
- package/dist/collection/components/salon-schedules/index.js +189 -0
- package/{collection → dist/collection}/components/salon-services/index.css +0 -0
- package/{collection → dist/collection}/components/salon-services/index.js +51 -8
- package/{collection → dist/collection}/components/salon-stylists/index.css +0 -8
- package/dist/collection/components/salon-stylists/index.js +183 -0
- package/dist/collection/components/style-detail/index.css +62 -0
- package/dist/collection/components/style-detail/index.js +461 -0
- package/{collection → dist/collection}/components/user-avatar/index.css +0 -0
- package/{collection → dist/collection}/components/user-avatar/index.js +2 -2
- package/dist/collection/constants/colors.js +65 -0
- package/{collection → dist/collection}/global/global.js +0 -0
- package/{collection → dist/collection}/index.js +0 -0
- package/dist/collection/services/services.js +174 -0
- package/dist/collection/types/common.js +11 -0
- package/{collection → dist/collection}/types/review.js +9 -5
- package/dist/collection/types/salon.js +58 -0
- package/{collection → dist/collection}/types/service.js +0 -0
- package/dist/collection/types/style.js +128 -0
- package/{collection → dist/collection}/types/stylist.js +12 -9
- package/{favesalon-embed/index.esm.js → dist/collection/types/tmp.js} +0 -0
- package/{collection → dist/collection}/types/user.js +2 -2
- package/{collection → dist/collection}/utils/utils.js +0 -0
- package/{custom-elements → dist/custom-elements}/index.d.ts +12 -18
- package/{custom-elements → dist/custom-elements}/index.js +1227 -1035
- package/{esm → dist/esm}/_commonjsHelpers-098d5b27.js +0 -0
- package/dist/esm/colors-ea36347a.js +67 -0
- package/dist/esm/favesalon-embed.js +18 -0
- package/{esm → dist/esm}/global-e1089ffd.js +0 -0
- package/dist/esm/google-map_5.entry.js +283 -0
- package/{esm/index-0f8eed73.js → dist/esm/index-6af0a03d.js} +10 -1
- package/{esm/index-67d677ba.js → dist/esm/index-80523fec.js} +1924 -1
- package/{esm → dist/esm}/index.js +0 -0
- package/dist/esm/loader.js +18 -0
- package/{esm → dist/esm}/polyfills/core-js.js +0 -0
- package/{esm → dist/esm}/polyfills/css-shim.js +0 -0
- package/{esm → dist/esm}/polyfills/dom.js +0 -0
- package/{esm → dist/esm}/polyfills/es5-html-element.js +0 -0
- package/{esm → dist/esm}/polyfills/index.js +0 -0
- package/{esm → dist/esm}/polyfills/system.js +0 -0
- package/{esm → dist/esm}/salon-booking-modal.entry.js +5 -5
- package/{esm → dist/esm}/salon-booking.entry.js +5 -6
- package/dist/esm/salon-gift-card-modal.entry.js +24 -0
- package/{esm → dist/esm}/salon-gift-card.entry.js +6 -6
- package/dist/esm/salon-latest-reviews.entry.js +91 -0
- package/{esm/salon-lookbook_2.entry.js → dist/esm/salon-lookbook.entry.js} +24 -57
- package/{esm → dist/esm}/salon-ranking.entry.js +7 -7
- package/dist/esm/salon-reviews.entry.js +182 -0
- package/dist/esm/salon-services.entry.js +74 -0
- package/dist/esm/salon-stylists.entry.js +108 -0
- package/{esm/services-74d84ca9.js → dist/esm/services-295247b1.js} +263 -392
- package/dist/esm/style-detail.entry.js +306 -0
- package/dist/esm/user-avatar.entry.js +37 -0
- package/{esm → dist/esm}/utils-e97485e0.js +0 -0
- package/dist/favesalon-embed/assets/map--placeholder.jpeg +0 -0
- package/{favesalon-embed → dist/favesalon-embed}/favesalon-embed.css +1 -1
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -0
- package/dist/favesalon-embed/index.esm.js +0 -0
- package/dist/favesalon-embed/p-292b97ba.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-47e646f8.js +0 -0
- package/dist/favesalon-embed/p-4869dfed.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-4a5eca9a.js +0 -0
- package/dist/favesalon-embed/p-4aee4fd9.entry.js +1 -0
- package/dist/favesalon-embed/p-5528c705.entry.js +1 -0
- package/dist/favesalon-embed/p-612ad685.entry.js +1 -0
- package/dist/favesalon-embed/p-75aef7e0.entry.js +1 -0
- package/dist/favesalon-embed/p-8c780874.entry.js +1 -0
- package/dist/favesalon-embed/p-8dbf04c5.js +1 -0
- package/dist/favesalon-embed/p-9f31061a.entry.js +1 -0
- package/dist/favesalon-embed/p-a33331cc.js +1 -0
- package/dist/favesalon-embed/p-a60d78e9.entry.js +1 -0
- package/dist/favesalon-embed/p-a6debdae.entry.js +1 -0
- package/dist/favesalon-embed/p-bad1e9a7.entry.js +1 -0
- package/dist/favesalon-embed/p-c2ecb365.js +1 -0
- package/dist/favesalon-embed/p-c7dea70c.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-d6083940.js +0 -0
- package/dist/favesalon-embed/p-f0e14641.entry.js +1 -0
- package/dist/favesalon-embed/p-fc9a5551.js +6 -0
- package/{index.cjs.js → dist/index.cjs.js} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/dist/types/components/google-map/index.d.ts +5 -0
- package/{types → dist/types}/components/salon-booking/index.d.ts +0 -0
- package/{types → dist/types}/components/salon-booking/salon-booking-modal.d.ts +0 -0
- package/{types → dist/types}/components/salon-gift-card/index.d.ts +0 -0
- package/{types → dist/types}/components/salon-gift-card/salon-gift-card-modal.d.ts +1 -0
- package/{types → dist/types}/components/salon-info/index.d.ts +0 -1
- package/{types → dist/types}/components/salon-latest-reviews/index.d.ts +2 -0
- package/dist/types/components/salon-latest-styles/index.d.ts +12 -0
- package/{types → dist/types}/components/salon-locations/index.d.ts +2 -0
- package/{types → dist/types}/components/salon-lookbook/index.d.ts +3 -3
- package/{types → dist/types}/components/salon-ranking/index.d.ts +0 -0
- package/dist/types/components/salon-reviews/index.d.ts +24 -0
- package/{types → dist/types}/components/salon-schedules/index.d.ts +2 -0
- package/{types → dist/types}/components/salon-services/index.d.ts +1 -0
- package/{types → dist/types}/components/salon-stylists/index.d.ts +6 -0
- package/dist/types/components/style-detail/index.d.ts +24 -0
- package/{types → dist/types}/components/user-avatar/index.d.ts +0 -0
- package/{types → dist/types}/components.d.ts +54 -59
- package/dist/types/constants/colors.d.ts +65 -0
- package/{types → dist/types}/index.d.ts +0 -0
- package/dist/types/services/services.d.ts +60 -0
- package/{types → dist/types}/stencil-public-runtime.d.ts +0 -0
- package/dist/types/types/common.d.ts +11 -0
- package/{types → dist/types}/types/review.d.ts +4 -0
- package/{types → dist/types}/types/salon.d.ts +3 -1
- package/{types → dist/types}/types/service.d.ts +0 -0
- package/dist/types/types/style.d.ts +88 -0
- package/{types → dist/types}/types/stylist.d.ts +1 -1
- package/dist/types/types/tmp.d.ts +0 -0
- package/{types → dist/types}/types/user.d.ts +2 -2
- package/{types → dist/types}/utils/utils.d.ts +0 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +18 -13
- package/readme.md +24 -7
- package/cjs/colors-7f354880.js +0 -95
- package/cjs/favesalon-embed.cjs.js +0 -20
- package/cjs/google-map.cjs.entry.js +0 -47
- package/cjs/index-95daad08.js +0 -1928
- package/cjs/loader.cjs.js +0 -22
- package/cjs/salon-contact_4.cjs.entry.js +0 -155
- package/cjs/salon-gift-card-modal.cjs.entry.js +0 -25
- package/cjs/salon-info.cjs.entry.js +0 -35
- package/cjs/salon-latest-reviews.cjs.entry.js +0 -58
- package/cjs/salon-lookbook-modal.cjs.entry.js +0 -141
- package/cjs/salon-reviews.cjs.entry.js +0 -205
- package/cjs/salon-services.cjs.entry.js +0 -47
- package/cjs/salon-stylists.cjs.entry.js +0 -54
- package/collection/components/google-map/index.js +0 -97
- package/collection/components/salon-contact/index.js +0 -88
- package/collection/components/salon-gift-card/index.css +0 -25
- package/collection/components/salon-info/index.css +0 -3
- package/collection/components/salon-latest-reviews/index.js +0 -108
- package/collection/components/salon-locations/index.js +0 -80
- package/collection/components/salon-lookbook/lookbook-modal.css +0 -72
- package/collection/components/salon-lookbook/salon-lookbook-modal.js +0 -248
- package/collection/components/salon-reviews/index.js +0 -317
- package/collection/components/salon-schedules/index.css +0 -14
- package/collection/components/salon-schedules/index.js +0 -103
- package/collection/components/salon-styles/index.css +0 -23
- package/collection/components/salon-styles/index.js +0 -100
- package/collection/components/salon-stylists/index.js +0 -96
- package/collection/constants/colors.js +0 -91
- package/collection/services/services.js +0 -225
- package/collection/types/common.js +0 -2
- package/collection/types/salon.js +0 -52
- package/collection/types/style.js +0 -103
- package/esm/colors-1ec90c5f.js +0 -93
- package/esm/favesalon-embed.js +0 -18
- package/esm/google-map.entry.js +0 -43
- package/esm/index-09d43e3e.js +0 -1926
- package/esm/loader.js +0 -18
- package/esm/salon-contact_4.entry.js +0 -148
- package/esm/salon-gift-card-modal.entry.js +0 -21
- package/esm/salon-info.entry.js +0 -31
- package/esm/salon-latest-reviews.entry.js +0 -54
- package/esm/salon-lookbook-modal.entry.js +0 -137
- package/esm/salon-reviews.entry.js +0 -201
- package/esm/salon-services.entry.js +0 -43
- package/esm/salon-stylists.entry.js +0 -50
- package/favesalon-embed/favesalon-embed.esm.js +0 -1
- package/favesalon-embed/p-0188d4dc.entry.js +0 -1
- package/favesalon-embed/p-0318501e.js +0 -1
- package/favesalon-embed/p-078f242d.entry.js +0 -1
- package/favesalon-embed/p-13e23c61.entry.js +0 -1
- package/favesalon-embed/p-17df13ad.js +0 -1
- package/favesalon-embed/p-1a3179c8.entry.js +0 -1
- package/favesalon-embed/p-20aa75de.js +0 -6
- package/favesalon-embed/p-2901a6d6.entry.js +0 -1
- package/favesalon-embed/p-2b861430.entry.js +0 -1
- package/favesalon-embed/p-44d810a0.js +0 -1
- package/favesalon-embed/p-4c68700f.entry.js +0 -1
- package/favesalon-embed/p-4e2d7b29.js +0 -1
- package/favesalon-embed/p-6b845bf1.entry.js +0 -1
- package/favesalon-embed/p-7350f6b5.entry.js +0 -1
- package/favesalon-embed/p-897c2b1c.entry.js +0 -1
- package/favesalon-embed/p-8e60f56f.entry.js +0 -1
- package/favesalon-embed/p-a49afdc1.entry.js +0 -1
- package/favesalon-embed/p-c93867c4.entry.js +0 -1
- package/favesalon-embed/p-ea6a097f.entry.js +0 -1
- package/types/components/google-map/index.d.ts +0 -10
- package/types/components/salon-contact/index.d.ts +0 -9
- package/types/components/salon-lookbook/salon-lookbook-modal.d.ts +0 -13
- package/types/components/salon-reviews/index.d.ts +0 -24
- package/types/components/salon-styles/index.d.ts +0 -9
- package/types/constants/colors.d.ts +0 -88
- package/types/services/services.d.ts +0 -26
- package/types/types/common.d.ts +0 -2
- package/types/types/style.d.ts +0 -59
package/esm/loader.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-0f8eed73.js';
|
|
2
|
-
import './global-e1089ffd.js';
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
const patchEsm = () => {
|
|
8
|
-
return promiseResolve();
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const defineCustomElements = (win, options) => {
|
|
12
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
|
-
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["salon-info",[[0,"salon-info",{"salonId":[2,"salon-id"],"backgroundColor":[1,"background-color"],"salonInfo":[32],"fetchData":[64]}]]],["salon-latest-reviews",[[0,"salon-latest-reviews",{"salonId":[2,"salon-id"],"salonReviews":[32],"fetchData":[64]}]]],["salon-lookbook-modal",[[0,"salon-lookbook-modal",{"salonId":[2,"salon-id"],"salonLookbook":[1,"salon-lookbook"],"lookbookInfo":[32],"lookbookComments":[32],"isModalOpen":[32],"fetchData":[64]}]]],["salon-reviews",[[0,"salon-reviews",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"salonInfo":[32],"totalReviews":[32],"salonReviews":[32],"canLoadMore":[32],"isLoadingMore":[32],"pageOffset":[32],"ratings":[32],"sorting":[32],"fetchData":[64]}]]],["salon-stylists",[[0,"salon-stylists",{"salonId":[2,"salon-id"],"salonStylists":[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"],"isModalOpen":[32]}]]],["salon-services",[[0,"salon-services",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"salonServices":[32],"fetchData":[64]}]]],["salon-ranking",[[0,"salon-ranking",{"ranking":[2],"height":[2],"width":[2]}]]],["google-map",[[0,"google-map",{"apiKey":[1,"api-key"],"lat":[2],"lng":[2]}]]],["salon-contact_4",[[0,"salon-locations",{"salonId":[2,"salon-id"],"salonInfo":[1,"salon-info"],"salonInfoState":[32]}],[0,"salon-contact",{"salonId":[2,"salon-id"],"salonInfo":[1,"salon-info"],"salonInfoState":[32]}],[0,"salon-schedules",{"salonId":[2,"salon-id"],"salonInfo":[1,"salon-info"],"salonInfoState":[32]}],[0,"salon-styles",{"salonId":[2,"salon-id"],"firstPageStyles":[32],"nestPageStyles":[32],"fetchData":[64]}]]],["salon-lookbook_2",[[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]}],[0,"user-avatar",{"size":[2],"name":[1],"nameStyle":[16],"shortName":[1,"short-name"],"avatar":[1]}]]]], options);
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { defineCustomElements };
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0f8eed73.js';
|
|
2
|
-
import { C as Colors } from './colors-1ec90c5f.js';
|
|
3
|
-
import { f as formatWebsiteUrl, a as formatFullAddress } from './utils-e97485e0.js';
|
|
4
|
-
import { H as HttpService, B as BusinessHourStatus } from './services-74d84ca9.js';
|
|
5
|
-
import './_commonjsHelpers-098d5b27.js';
|
|
6
|
-
|
|
7
|
-
const indexCss$3 = "@media (min-width: 768px){.salon-contact--links{overflow:hidden;margin-left:-32px}.salon-contact--links .salon-contact--links-item{float:left;display:flex;flex-direction:row;align-items:center;font-size:16px;min-width:300px;padding-left:32px;margin-top:8px}.salon-contact--links .salon-contact--links-item:nth-child(2n+1){clear:left}}";
|
|
8
|
-
|
|
9
|
-
let SalonContact = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
componentWillLoad() {
|
|
14
|
-
if (this.salonInfo) {
|
|
15
|
-
this.salonInfoState = JSON.parse(this.salonInfo);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.fetchData();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
fetchData() {
|
|
22
|
-
try {
|
|
23
|
-
HttpService().fetchSalonInfo(this.salonId)
|
|
24
|
-
.then(salonInfo => this.salonInfoState = salonInfo);
|
|
25
|
-
}
|
|
26
|
-
catch (e) { }
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
const { about, email, website, businessPhone, } = (this.salonInfoState || {});
|
|
30
|
-
const websiteUrl = formatWebsiteUrl(website);
|
|
31
|
-
return (h("div", { class: "view view--salon-contact" }, h("div", { class: "view-content" }, h("div", { style: { fontSize: '16px', fontWeight: 'bold' } }, "Contact info"), h("div", { class: "salon-contact--links" }, businessPhone && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-phone-line", style: { color: Colors.Gray03, fontSize: '18px', marginRight: '6px' } }), " ", businessPhone)), websiteUrl && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-links-line", style: { color: Colors.Gray03, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { target: websiteUrl && websiteUrl.indexOf(window.location.hostname) === -1 ? '_blank' : undefined, href: websiteUrl, style: { color: Colors.Gray01, textDecoration: 'none' } }, websiteUrl))), email && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-mail-line", style: { color: Colors.Gray03, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { href: `mailto:${email}`, style: { color: Colors.Gray01, textDecoration: 'none' } }, email)))), h("div", { class: "salon-contact--info--desc", style: { fontSize: '16px', marginTop: '16px' }, innerHTML: about }))));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
SalonContact.style = indexCss$3;
|
|
35
|
-
|
|
36
|
-
const indexCss$2 = "";
|
|
37
|
-
|
|
38
|
-
let SalonLocations = class {
|
|
39
|
-
constructor(hostRef) {
|
|
40
|
-
registerInstance(this, hostRef);
|
|
41
|
-
}
|
|
42
|
-
componentWillLoad() {
|
|
43
|
-
if (this.salonInfo) {
|
|
44
|
-
this.salonInfoState = JSON.parse(this.salonInfo);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
this.fetchData();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
fetchData() {
|
|
51
|
-
try {
|
|
52
|
-
HttpService().fetchSalonInfo(this.salonId)
|
|
53
|
-
.then(salonInfo => this.salonInfoState = salonInfo);
|
|
54
|
-
}
|
|
55
|
-
catch (e) { }
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
const { businessLocationLat: lat, businessLocationLng: lng } = this.salonInfoState || {};
|
|
59
|
-
return (h("div", { class: "view view--salon-locations" }, h("div", { class: "view-content", style: { height: '380px' } }, h("div", { style: {
|
|
60
|
-
fontSize: '16px',
|
|
61
|
-
lineHeight: '26px',
|
|
62
|
-
maxHeight: '52px',
|
|
63
|
-
marginBottom: '16px',
|
|
64
|
-
overflow: 'hidden',
|
|
65
|
-
textOverflow: 'ellipsis',
|
|
66
|
-
} }, formatFullAddress(this.salonInfoState)), h("div", { class: "view--salon-info--map", style: { height: '264px' } }, lat && lng && h("google-map", { lat: lat, lng: lng })))));
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
SalonLocations.style = indexCss$2;
|
|
70
|
-
|
|
71
|
-
const indexCss$1 = "@media (min-width: 768px){.salon-schedules--dates{overflow:hidden;margin-left:-32px}.salon-schedules--dates .salon-schedules--day{float:left;display:flex;flex-direction:row;min-width:240px;padding-left:32px}}";
|
|
72
|
-
|
|
73
|
-
let SalonSchedules = class {
|
|
74
|
-
constructor(hostRef) {
|
|
75
|
-
registerInstance(this, hostRef);
|
|
76
|
-
}
|
|
77
|
-
componentWillLoad() {
|
|
78
|
-
if (this.salonInfo) {
|
|
79
|
-
this.salonInfoState = JSON.parse(this.salonInfo);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
this.fetchData();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
fetchData() {
|
|
86
|
-
try {
|
|
87
|
-
HttpService().fetchSalonInfo(this.salonId)
|
|
88
|
-
.then(salonInfo => this.salonInfoState = salonInfo);
|
|
89
|
-
}
|
|
90
|
-
catch (e) { }
|
|
91
|
-
}
|
|
92
|
-
renderBusinessHour(businessHour) {
|
|
93
|
-
if (businessHour.status === BusinessHourStatus.ByAppointment) {
|
|
94
|
-
return 'By Appointment';
|
|
95
|
-
}
|
|
96
|
-
if (businessHour.status === BusinessHourStatus.Close) {
|
|
97
|
-
return 'Close';
|
|
98
|
-
}
|
|
99
|
-
return `${businessHour.openTime} - ${businessHour.closeTime}`;
|
|
100
|
-
}
|
|
101
|
-
render() {
|
|
102
|
-
const businessHours = (this.salonInfoState && this.salonInfoState.businessHours) || [];
|
|
103
|
-
return (h("div", { class: "view view--salon-schedules" }, h("div", { class: "view-content" }, businessHours.length > 0 && (h("div", { class: "salon-schedules" }, 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])))))))));
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
SalonSchedules.style = indexCss$1;
|
|
107
|
-
|
|
108
|
-
const indexCss = ".salon-styles--item-background{-moz-filter:blur(32px);-webkit-filter:blur(32px);filter:blur(32px)}.salon-styles--item .salon-styles--item-background{z-index:1}.salon-styles--item .salon-styles--item-image{position:relative;z-index:2}.salon-styles--item .carousel-caption{padding-bottom:0;z-index:2}.salon-styles--slides .carousel-control-prev{z-index:2}";
|
|
109
|
-
|
|
110
|
-
let SalonStyles = class {
|
|
111
|
-
constructor(hostRef) {
|
|
112
|
-
registerInstance(this, hostRef);
|
|
113
|
-
}
|
|
114
|
-
componentDidLoad() {
|
|
115
|
-
this.fetchData();
|
|
116
|
-
}
|
|
117
|
-
async fetchData() {
|
|
118
|
-
try {
|
|
119
|
-
const promises = [
|
|
120
|
-
HttpService().fetchSalonPhotos(this.salonId).then(salonStyles => this.firstPageStyles = salonStyles),
|
|
121
|
-
HttpService().fetchAllSalonPhotos(this.salonId, { page: 2 }).then(nestPageStyles => this.nestPageStyles = nestPageStyles),
|
|
122
|
-
];
|
|
123
|
-
return Promise.all(promises);
|
|
124
|
-
}
|
|
125
|
-
catch (e) { }
|
|
126
|
-
}
|
|
127
|
-
render() {
|
|
128
|
-
return (h("div", { class: "view view--salon-styles" }, h("div", { class: "view-content" }, h("div", { class: "salon-styles--slides" }, h("div", { id: "salon-styles-carousel", class: "carousel slide", "data-bs-ride": "carousel" }, h("div", { class: "carousel-inner" }, (this.firstPageStyles || []).concat(this.nestPageStyles || []).map((photo, index) => {
|
|
129
|
-
const { caption, description,
|
|
130
|
-
// mediaType,
|
|
131
|
-
fullImageUrl, fullImageUrlThumb, fullImageUrlMedium, imgWidth, imgHeight, } = photo;
|
|
132
|
-
const isLandscape = imgWidth >= imgHeight;
|
|
133
|
-
return (h("div", { class: `carousel-item ${index === 0 ? 'active' : ''}` }, h("div", { class: "salon-styles--item", style: {
|
|
134
|
-
flexDirection: isLandscape ? 'column' : 'row',
|
|
135
|
-
justifyContent: 'center',
|
|
136
|
-
alignItems: 'center',
|
|
137
|
-
overflow: 'hidden',
|
|
138
|
-
position: 'relative',
|
|
139
|
-
display: 'flex',
|
|
140
|
-
height: '380px',
|
|
141
|
-
borderRadius: '8px',
|
|
142
|
-
} }, h("div", { class: "salon-styles--item-background", style: Object.assign(Object.assign({}, fullImageUrlThumb ? { backgroundImage: `url(${fullImageUrlThumb})` } : {}), { backgroundColor: Colors.Gray06, backgroundPosition: 'center', backgroundRepeat: 'no-repeat', backgroundSize: 'cover', position: 'absolute', bottom: '0px', right: '0px', left: '0px', top: '0px' }) }), h("img", { alt: caption, class: "salon-styles--item-image", src: fullImageUrlMedium || fullImageUrl, style: Object.assign({ display: 'inline-block' }, isLandscape ? { width: '100%' } : { height: '100%' }) }), h("div", { class: "carousel-caption d-none d-md-block" }, caption && h("h5", null, caption), description && h("p", null, description)))));
|
|
143
|
-
})), h("button", { type: "button", "data-bs-slide": "prev", class: "carousel-control-prev", "data-bs-target": "#salon-styles-carousel" }, h("span", { class: "carousel-control-prev-icon", "aria-hidden": "true" }), h("span", { class: "visually-hidden" }, "Previous")), h("button", { type: "button", "data-bs-slide": "next", class: "carousel-control-next", "data-bs-target": "#salon-styles-carousel" }, h("span", { class: "carousel-control-next-icon", "aria-hidden": "true" }), h("span", { class: "visually-hidden" }, "Next")))))));
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
SalonStyles.style = indexCss;
|
|
147
|
-
|
|
148
|
-
export { SalonContact as salon_contact, SalonLocations as salon_locations, SalonSchedules as salon_schedules, SalonStyles as salon_styles };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0f8eed73.js';
|
|
2
|
-
|
|
3
|
-
const indexCss = ".salon-modal.salon-modal--gift-card .salon-modal--title{margin:0}.salon-modal.salon-modal--gift-card .salon-modal--close{width:40px;height:40px;right:16px;top:16px}.salon-modal.salon-modal--gift-card .salon-modal--header{height:72px;padding:16px}.salon-modal.salon-modal--gift-card .salon-modal--inner{height:90vh}.salon-modal.salon-modal--gift-card .salon-modal--content{height:90vh;padding:0 16px;overflow-y:auto}";
|
|
4
|
-
|
|
5
|
-
let SalonGiftCardModal = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.isModalOpen = true;
|
|
9
|
-
}
|
|
10
|
-
closeModal() {
|
|
11
|
-
this.isModalOpen = false;
|
|
12
|
-
const el = document.querySelector('salon-gift-card-modal');
|
|
13
|
-
el.remove();
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (h("div", { class: "salon-gift-card--modal" }, this.isModalOpen && (h("div", { class: "salon-modal salon-modal--gift-card" }, h("div", { class: "salon-modal--backdrop", onClick: () => this.closeModal() }), h("div", { class: "salon-modal--inner" }, h("div", { class: "salon-modal--close", onClick: () => this.closeModal() }), h("div", { class: "salon-modal--content" }, h("iframe", { height: "100%", width: "100%", style: { border: 'none', display: 'block', height: '100%' }, src: `https://www.favesalon.com/salon/detail/${this.salonId}/gift-cards.html` })))))));
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
SalonGiftCardModal.style = indexCss;
|
|
20
|
-
|
|
21
|
-
export { SalonGiftCardModal as salon_gift_card_modal };
|
package/esm/salon-info.entry.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0f8eed73.js';
|
|
2
|
-
import { H as HttpService } from './services-74d84ca9.js';
|
|
3
|
-
import { C as Colors } from './colors-1ec90c5f.js';
|
|
4
|
-
import './_commonjsHelpers-098d5b27.js';
|
|
5
|
-
|
|
6
|
-
const indexCss = ".salon-info .view--salon-styles .view-content{padding:0}";
|
|
7
|
-
|
|
8
|
-
let SalonInfo = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.backgroundColor = Colors.Gray06;
|
|
12
|
-
}
|
|
13
|
-
componentWillLoad() {
|
|
14
|
-
this.fetchData();
|
|
15
|
-
}
|
|
16
|
-
async fetchData() {
|
|
17
|
-
try {
|
|
18
|
-
this.salonInfo = await HttpService().fetchSalonInfo(this.salonId);
|
|
19
|
-
}
|
|
20
|
-
catch (e) { }
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
if (this.salonInfo) {
|
|
24
|
-
return (h("div", { class: "salon-info", style: { background: this.backgroundColor } }, h("div", { class: "row" }, h("div", { class: "col-md-5", style: { marginBottom: '24px' } }, h("salon-locations", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), h("div", { class: "col-md-7", style: { marginBottom: '24px' } }, h("salon-styles", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) }))), h("div", { class: "salon-info--schedules", style: { marginBottom: '24px' } }, h("salon-schedules", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), h("div", { class: "salon-info--contact" }, h("salon-contact", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) }))));
|
|
25
|
-
}
|
|
26
|
-
return (h("div", { class: "salon-info", style: { padding: '24px', textAlign: 'center' } }, "Loading..."));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
SalonInfo.style = indexCss;
|
|
30
|
-
|
|
31
|
-
export { SalonInfo as salon_info };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0f8eed73.js';
|
|
2
|
-
import { H as HttpService, d as dayjs_min, s as shortDate } from './services-74d84ca9.js';
|
|
3
|
-
import { C as Colors } from './colors-1ec90c5f.js';
|
|
4
|
-
import { g as getRatingText } from './utils-e97485e0.js';
|
|
5
|
-
import './_commonjsHelpers-098d5b27.js';
|
|
6
|
-
|
|
7
|
-
const indexCss = ".salon-latest-reviews .salon-review{min-width:280px}@media (min-width: 768px){.salon-latest-reviews .salon-review{min-width:300px}}";
|
|
8
|
-
|
|
9
|
-
let SalonLatestReviews = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.salonReviews = [];
|
|
13
|
-
}
|
|
14
|
-
componentWillLoad() {
|
|
15
|
-
this.fetchData();
|
|
16
|
-
}
|
|
17
|
-
async fetchData() {
|
|
18
|
-
try {
|
|
19
|
-
const { allItems } = await HttpService().fetchSalonReviews(this.salonId, { noLoop: true });
|
|
20
|
-
this.salonReviews = [...allItems];
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
const ratingTexts = getRatingText();
|
|
26
|
-
return (h("div", { class: "salon-latest-reviews", style: { overflowX: 'auto' } }, h("div", { style: { display: 'flex', whiteSpace: 'nowrap' } }, (this.salonReviews || []).map((review, index) => {
|
|
27
|
-
const { user } = review;
|
|
28
|
-
return (h("div", { class: "salon-review", style: Object.assign({ border: `1px solid ${Colors.Gray05}`, background: Colors.White, borderRadius: '8px', overflow: 'hidden' }, index > 0 ? { marginLeft: '16px' } : {}) }, 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: user.name, 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: {
|
|
29
|
-
fontSize: '16px',
|
|
30
|
-
marginRight: '4px',
|
|
31
|
-
} }))), h("div", { class: "salon-review--rating--date", style: { color: Colors.Gray03, marginLeft: '16px' } }, dayjs_min(review.createdDate).format(shortDate))), 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: {
|
|
32
|
-
fontSize: '16px',
|
|
33
|
-
lineHeight: '26px',
|
|
34
|
-
overflow: 'hidden',
|
|
35
|
-
maxHeight: review.photos.length > 0 ? '52px' : '104px',
|
|
36
|
-
} }, review.title || review.description))), review.photos.length > 0 && (h("div", { style: {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
flexDirection: 'row',
|
|
39
|
-
overflowX: 'auto',
|
|
40
|
-
} }, review.photos.map(photo => (h("div", { style: {
|
|
41
|
-
border: '1px solid #d9d9d9',
|
|
42
|
-
position: 'relative',
|
|
43
|
-
cursor: 'pointer',
|
|
44
|
-
borderRadius: '2px',
|
|
45
|
-
height: '66px',
|
|
46
|
-
marginTop: '16px',
|
|
47
|
-
marginRight: '16px',
|
|
48
|
-
} }, h("img", { alt: "", src: photo.imageUrlThumb, height: "64", style: { width: 'auto' } }))))))))));
|
|
49
|
-
}))));
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
SalonLatestReviews.style = indexCss;
|
|
53
|
-
|
|
54
|
-
export { SalonLatestReviews as salon_latest_reviews };
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0f8eed73.js';
|
|
2
|
-
import { d as dayjs_min, H as HttpService } from './services-74d84ca9.js';
|
|
3
|
-
import { a as createCommonjsModule, c as commonjsGlobal } from './_commonjsHelpers-098d5b27.js';
|
|
4
|
-
import { C as Colors } from './colors-1ec90c5f.js';
|
|
5
|
-
|
|
6
|
-
var relativeTime = createCommonjsModule(function (module, exports) {
|
|
7
|
-
!function(r,e){module.exports=e();}(commonjsGlobal,(function(){return function(r,e,t){r=r||{};var n=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(r,e,t,o){return n.fromToBase(r,e,t,o)}t.en.relativeTime=o,n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,c=0;c<m;c+=1){var y=h[c];y.d&&(f=d?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var p=(r.rounding||Math.round)(Math.abs(f));if(s=f>0,p<=y.r||!y.r){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s);break}}if(n)return a;var M=s?l.future:l.past;return "function"==typeof M?M(a):M.replace("%s",a)},n.to=function(r,e){return i(r,e,this,!0)},n.from=function(r,e){return i(r,e,this)};var d=function(r){return r.$u?t.utc():t()};n.toNow=function(r){return this.to(d(this),r)},n.fromNow=function(r){return this.from(d(this),r)};}}));
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
const lookbookModalCss = "salon-lookbook-modal .salon-modal--close{right:8px;top:8px}salon-lookbook-modal .salon-modal--inner{height:100%;width:100%;max-width:none}salon-lookbook-modal .salon-styles--item-background{-moz-filter:blur(32px);-webkit-filter:blur(32px);filter:blur(32px)}salon-lookbook-modal .salon-styles--item .salon-styles--item-background{z-index:1}salon-lookbook-modal .salon-styles--item .salon-styles--item-image{position:relative;z-index:2}salon-lookbook-modal .salon-styles--item .carousel-caption{padding-bottom:0;z-index:2}salon-lookbook-modal .salon-styles--slides .carousel-control-prev{z-index:2}@media (min-width: 576px){salon-lookbook-modal .salon-styles--item{height:380px !important}}@media (min-width: 992px){salon-lookbook-modal .salon-modal--inner{height:90%;width:90%;max-width:900px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;overflow:hidden !important}salon-lookbook-modal .carousel,salon-lookbook-modal .carousel-inner,salon-lookbook-modal .carousel-item,salon-lookbook-modal .salon-styles--item,salon-lookbook-modal .salon-modal--content,salon-lookbook-modal .style-detail--metadata-detail,salon-lookbook-modal .style-detail--container{height:100% !important}salon-lookbook-modal .style-detail--container{display:flex}salon-lookbook-modal .carousel-inner{z-index:1 !important}salon-lookbook-modal .carousel-control-next,salon-lookbook-modal .carousel-control-prev{z-index:2 !important}salon-lookbook-modal .style-detail--photos,salon-lookbook-modal .style-detail--metadata{width:50%}salon-lookbook-modal .salon-styles--item{-moz-border-radius:0 !important;-webkit-border-radius:0 !important;border-radius:0 !important}}";
|
|
11
|
-
|
|
12
|
-
dayjs_min.extend(relativeTime);
|
|
13
|
-
let SalonBookingModal = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
registerInstance(this, hostRef);
|
|
16
|
-
this.salonLookbook = '';
|
|
17
|
-
this.lookbookComments = [];
|
|
18
|
-
this.isModalOpen = true;
|
|
19
|
-
}
|
|
20
|
-
componentWillLoad() {
|
|
21
|
-
if (!!this.salonLookbook) {
|
|
22
|
-
this.lookbookInfo = JSON.parse(this.salonLookbook);
|
|
23
|
-
this.fetchData();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
fetchData() {
|
|
27
|
-
try {
|
|
28
|
-
const promises = [
|
|
29
|
-
HttpService().fetchStyleDetail(this.lookbookInfo.id).then(lookbookInfo => {
|
|
30
|
-
if (lookbookInfo) {
|
|
31
|
-
this.lookbookInfo = lookbookInfo;
|
|
32
|
-
}
|
|
33
|
-
}),
|
|
34
|
-
HttpService().fetchStyleComments({ photo_id: [this.lookbookInfo.id] }).then(lookbookComments => this.lookbookComments = lookbookComments),
|
|
35
|
-
];
|
|
36
|
-
return Promise.all(promises);
|
|
37
|
-
}
|
|
38
|
-
catch (e) { }
|
|
39
|
-
}
|
|
40
|
-
orderedStylePhotos(albumPhotos, activeId) {
|
|
41
|
-
let selectedStyles = [];
|
|
42
|
-
let restStyles = [];
|
|
43
|
-
(albumPhotos || []).forEach(s => {
|
|
44
|
-
if (s.id === activeId) {
|
|
45
|
-
selectedStyles = selectedStyles.concat(s);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
restStyles = restStyles.concat(s);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
return selectedStyles.concat(restStyles);
|
|
52
|
-
}
|
|
53
|
-
closeModal() {
|
|
54
|
-
this.isModalOpen = false;
|
|
55
|
-
const el = document.querySelector('salon-lookbook-modal');
|
|
56
|
-
el.remove();
|
|
57
|
-
}
|
|
58
|
-
render() {
|
|
59
|
-
const { id, caption, createdDate, albumPhotos, totalView, totalLike, totalBooking, owner, stylist, album, } = this.lookbookInfo;
|
|
60
|
-
const oderedStyles = albumPhotos ? this.orderedStylePhotos(albumPhotos, id) : [];
|
|
61
|
-
return (h("div", { class: "salon-lookbook--modal" }, this.isModalOpen && (h("div", { class: "salon-modal salon-modal--lookbook-detail" }, h("div", { class: "salon-modal--backdrop", onClick: () => this.closeModal() }), h("div", { class: "salon-modal--close", onClick: () => this.closeModal() }), h("div", { class: "salon-modal--inner" }, h("div", { class: "salon-modal--content" }, h("div", { class: "style-detail--container", style: {
|
|
62
|
-
backgroundColor: Colors.White,
|
|
63
|
-
marginRight: 'auto',
|
|
64
|
-
marginLeft: 'auto',
|
|
65
|
-
maxWidth: '990',
|
|
66
|
-
} }, oderedStyles.length > 0 && (h("div", { class: "style-detail--photos" }, h("div", { id: "style-detail-carousel", class: "carousel slide", "data-bs-ride": "carousel" }, h("div", { class: "carousel-inner" }, oderedStyles.map((photo, index) => {
|
|
67
|
-
const { caption, description,
|
|
68
|
-
// mediaType,
|
|
69
|
-
fullImageUrl, fullImageUrlThumb, fullImageUrlMedium, imgWidth, imgHeight, } = photo;
|
|
70
|
-
const isLandscape = imgWidth >= imgHeight;
|
|
71
|
-
return (h("div", { class: `carousel-item ${index === 0 ? 'active' : ''}` }, h("div", { class: "salon-styles--item", style: {
|
|
72
|
-
flexDirection: isLandscape ? 'column' : 'row',
|
|
73
|
-
justifyContent: 'center',
|
|
74
|
-
alignItems: 'center',
|
|
75
|
-
overflow: 'hidden',
|
|
76
|
-
position: 'relative',
|
|
77
|
-
display: 'flex',
|
|
78
|
-
height: '240px',
|
|
79
|
-
borderRadius: '8px 8px 0 0',
|
|
80
|
-
} }, h("div", { class: "salon-styles--item-background", style: Object.assign(Object.assign({}, fullImageUrlThumb ? { backgroundImage: `url(${fullImageUrlThumb})` } : {}), { backgroundColor: Colors.Gray06, backgroundPosition: 'center', backgroundRepeat: 'no-repeat', backgroundSize: 'cover', position: 'absolute', bottom: '0px', right: '0px', left: '0px', top: '0px', zIndex: '1' }) }), h("img", { alt: caption, class: "salon-styles--item-image", src: fullImageUrlThumb || fullImageUrlMedium || fullImageUrl, style: Object.assign({ display: 'inline-block', position: 'relative', zIndex: '2' }, isLandscape ? { width: '100%' } : { height: '100%' }) }), h("div", { class: "carousel-caption d-none d-md-block" }, caption && h("h5", null, caption), description && h("p", null, description)))));
|
|
81
|
-
})), h("button", { type: "button", "data-bs-slide": "prev", class: "carousel-control-prev", "data-bs-target": "#style-detail-carousel" }, h("span", { class: "carousel-control-prev-icon", "aria-hidden": "true" }), h("span", { class: "visually-hidden" }, "Previous")), h("button", { type: "button", "data-bs-slide": "next", class: "carousel-control-next", "data-bs-target": "#style-detail-carousel" }, h("span", { class: "carousel-control-next-icon", "aria-hidden": "true" }), h("span", { class: "visually-hidden" }, "Next"))))), h("div", { class: "style-detail--metadata" }, h("div", { class: "style-detail--metadata-detail", style: {
|
|
82
|
-
position: 'relative',
|
|
83
|
-
overflowY: 'auto',
|
|
84
|
-
padding: '16px 24px',
|
|
85
|
-
height: '100%',
|
|
86
|
-
} }, h("div", { class: "style-detail--info--field style-detail--metadata-stats", style: {
|
|
87
|
-
display: 'flex',
|
|
88
|
-
flexDirection: 'row',
|
|
89
|
-
justifyContent: 'flex-start',
|
|
90
|
-
marginBottom: '16px',
|
|
91
|
-
} }, h("div", { style: { display: 'flex', alignItems: 'center' } }, h("i", { class: "ri-eye-line", style: {
|
|
92
|
-
color: Colors.Gray03,
|
|
93
|
-
fontSize: '16px',
|
|
94
|
-
marginRight: '4px',
|
|
95
|
-
position: 'relative',
|
|
96
|
-
top: '1px',
|
|
97
|
-
} }), " ", totalView, " ", totalView === 1 ? 'view' : 'views'), h("div", { style: { display: 'flex', alignItems: 'center', marginLeft: '16px' } }, h("i", { class: "ri-heart-fill", style: {
|
|
98
|
-
color: Colors.Gray03,
|
|
99
|
-
fontSize: '16px',
|
|
100
|
-
marginRight: '4px',
|
|
101
|
-
position: 'relative',
|
|
102
|
-
top: '1px',
|
|
103
|
-
} }), " ", totalLike, " ", totalLike === 1 ? 'fave' : 'faves'), h("div", { style: { display: 'flex', alignItems: 'center', marginLeft: '16px' } }, h("i", { class: "ri-calendar-check-line", style: {
|
|
104
|
-
color: Colors.Gray03,
|
|
105
|
-
fontSize: '16px',
|
|
106
|
-
marginRight: '4px',
|
|
107
|
-
position: 'relative',
|
|
108
|
-
top: '1px',
|
|
109
|
-
} }), " ", totalBooking, " booked")), h("div", { style: {
|
|
110
|
-
display: 'flex',
|
|
111
|
-
flexDirection: 'row',
|
|
112
|
-
justifyContent: 'space-between',
|
|
113
|
-
} }, owner && (h("div", { class: "style-detail--info--field" }, h("span", { style: {
|
|
114
|
-
fontSize: '14px',
|
|
115
|
-
color: Colors.Gray03,
|
|
116
|
-
} }, "Posted by"), " ", h("span", { style: {
|
|
117
|
-
fontSize: '16px',
|
|
118
|
-
fontWeight: 'bold',
|
|
119
|
-
color: Colors.Gray01,
|
|
120
|
-
} }, owner.name))), h("div", { class: "style-detail--info--field", style: {
|
|
121
|
-
fontSize: '14px',
|
|
122
|
-
color: Colors.Gray03,
|
|
123
|
-
} }, dayjs_min(createdDate).fromNow())), caption && (h("div", { class: "style-detail--info--field", style: {
|
|
124
|
-
color: Colors.Gray01,
|
|
125
|
-
marginTop: '12px',
|
|
126
|
-
fontSize: '24px',
|
|
127
|
-
} }, caption)), stylist && (h("div", { class: "style-detail--info--field", style: { marginTop: '24px' } }, h("div", { style: { fontSize: '14px', color: Colors.Gray03, marginBottom: '8px' } }, "Stylist"), h("div", { style: {
|
|
128
|
-
display: 'flex',
|
|
129
|
-
flexDirection: 'row',
|
|
130
|
-
justifyContent: 'space-between',
|
|
131
|
-
alignItems: 'center',
|
|
132
|
-
} }, h("user-avatar", { size: 32, name: stylist.name, shortName: `${(stylist.firstName || '').charAt(0)}${(stylist.lastName || '').charAt(0)}`, avatar: stylist.avatar, nameStyle: { fontSize: 16, fontWeight: 'bold' } })))), album && album.service && (h("div", { class: "style-detail--info--field", style: { marginTop: '24px' } }, h("div", { style: { fontSize: '14px', color: Colors.Gray03, marginBottom: '8px' } }, "Services"), h("div", { style: { fontSize: '16px', color: Colors.Gray01 } }, album.service.name))))))))))));
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
SalonBookingModal.style = lookbookModalCss;
|
|
136
|
-
|
|
137
|
-
export { SalonBookingModal as salon_lookbook_modal };
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0f8eed73.js';
|
|
2
|
-
import { d as dayjs_min, s as shortDate, H as HttpService, a as sortBy_1, g as groupBy_1 } from './services-74d84ca9.js';
|
|
3
|
-
import { l as lib } from './index-67d677ba.js';
|
|
4
|
-
import { C as Colors } from './colors-1ec90c5f.js';
|
|
5
|
-
import { g as getRatingText } from './utils-e97485e0.js';
|
|
6
|
-
import './_commonjsHelpers-098d5b27.js';
|
|
7
|
-
|
|
8
|
-
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}}";
|
|
9
|
-
|
|
10
|
-
const pageLimited = 10;
|
|
11
|
-
const sortOptions = [{
|
|
12
|
-
value: 'newest',
|
|
13
|
-
label: 'Newest first',
|
|
14
|
-
}, {
|
|
15
|
-
value: 'oldest',
|
|
16
|
-
label: 'Oldest first',
|
|
17
|
-
}, {
|
|
18
|
-
value: 'rating_desc',
|
|
19
|
-
label: 'High rating first',
|
|
20
|
-
}, {
|
|
21
|
-
value: 'rating_asc',
|
|
22
|
-
label: 'Low rating first',
|
|
23
|
-
}];
|
|
24
|
-
const scoreValuesMapping = {
|
|
25
|
-
all: 'all',
|
|
26
|
-
star1: 1,
|
|
27
|
-
star2: 2,
|
|
28
|
-
star3: 3,
|
|
29
|
-
star4: 4,
|
|
30
|
-
star5: 5,
|
|
31
|
-
};
|
|
32
|
-
let SalonReviews = class {
|
|
33
|
-
constructor(hostRef) {
|
|
34
|
-
registerInstance(this, hostRef);
|
|
35
|
-
this.primaryColor = Colors.Coral03;
|
|
36
|
-
this.totalReviews = 0;
|
|
37
|
-
this.salonReviews = [];
|
|
38
|
-
this.pageOffset = pageLimited;
|
|
39
|
-
this.ratings = [scoreValuesMapping.all, 'star1', 'star2', 'star3', 'star4', 'star5'];
|
|
40
|
-
this.sorting = sortOptions[0].value;
|
|
41
|
-
this.renderReviewsList = () => {
|
|
42
|
-
const ratingTexts = getRatingText();
|
|
43
|
-
const filteredReviews = this.getFilteredReviews(this.pageOffset);
|
|
44
|
-
const filteredReviewsCount = this.ratings.indexOf(scoreValuesMapping.all) > -1
|
|
45
|
-
? this.totalReviews : filteredReviews.length;
|
|
46
|
-
return (h("div", { class: "reviews-list" }, h("div", { class: "reviews-list--header", style: {
|
|
47
|
-
display: 'flex',
|
|
48
|
-
flexDirection: 'row',
|
|
49
|
-
justifyContent: 'space-between',
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
marginBottom: '24px',
|
|
52
|
-
} }, h("div", { class: "reviews-list--couter", style: { fontWeight: 'bold' } }, filteredReviewsCount, " ", filteredReviewsCount === 1 ? `review` : `reviews`), h("div", { class: "reviews-list--sorting", style: {
|
|
53
|
-
display: 'flex',
|
|
54
|
-
flexDirection: 'row',
|
|
55
|
-
alignItems: 'center',
|
|
56
|
-
} }, h("label", { style: { marginRight: '8px', marginBottom: '0' } }, "Sort by"), h("select", { class: "form-select", style: { width: '160px' }, onChange: (evt) => this.onChangeSorting(evt.target.value) }, sortOptions.map(sortOption => (h("option", { value: sortOption.value, selected: sortOption.value === this.sorting }, sortOption.label)))))), h("div", { class: "view-content" }, filteredReviewsCount > 0 && filteredReviews.map(review => {
|
|
57
|
-
const { user } = review;
|
|
58
|
-
return (h("div", { class: "salon-review", style: {
|
|
59
|
-
marginBottom: '24px',
|
|
60
|
-
paddingBottom: '24px',
|
|
61
|
-
borderBottom: `1px solid ${Colors.Gray05}`,
|
|
62
|
-
} }, h("div", { class: "salon-review--user", style: { marginBottom: '24px' } }, h("user-avatar", { size: 48, avatar: user.avatar, name: user.name, shortName: `${(user.firstName || '').charAt(0)}${(user.lastName || '').charAt(0)}`, nameStyle: { fontWeight: 'bold' } })), h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row', marginBottom: '4px' } }, [1, 2, 3, 4, 5].map(score => {
|
|
63
|
-
const isHightlight = score <= review.point;
|
|
64
|
-
return (h("i", { class: isHightlight ? 'ri-heart-fill' : 'ri-heart-line', style: Object.assign({ fontSize: '16px', marginRight: '4px' }, isHightlight ? { color: this.primaryColor } : { color: Colors.Gray03 }) }));
|
|
65
|
-
}), review.createdDate && (h("div", { class: "salon-review--rating--date", style: { color: Colors.Gray03, marginLeft: '16px' } }, dayjs_min(review.createdDate).format(shortDate)))), 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: '24px' } }, h("div", { class: "salon-review--title", style: { fontSize: '18px', fontWeight: 'bold' }, innerHTML: review.title }), h("div", { class: "salon-review--description", style: { fontSize: '16px' }, innerHTML: review.description }))), review.photos.length > 0 && (h("div", { style: {
|
|
66
|
-
display: 'flex',
|
|
67
|
-
flexDirection: 'row',
|
|
68
|
-
overflowX: 'auto',
|
|
69
|
-
} }, review.photos.map(fileObj => (h("div", { style: {
|
|
70
|
-
border: '1px solid #d9d9d9',
|
|
71
|
-
position: 'relative',
|
|
72
|
-
cursor: 'pointer',
|
|
73
|
-
borderRadius: '2px',
|
|
74
|
-
height: '66px',
|
|
75
|
-
marginTop: '16px',
|
|
76
|
-
marginRight: '16px',
|
|
77
|
-
} }, h("img", { alt: "", src: fileObj.imageUrlThumb, height: "64", style: { width: 'auto' } }))))))));
|
|
78
|
-
})), this.canLoadMore && (h("div", { class: "view-footer", style: { textAlign: 'center' } }, h("button", { type: "button", class: "btn btn-light", onClick: () => this.onLoadMore() }, this.isLoadingMore ? 'Loading' : 'Load more')))));
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
componentWillLoad() {
|
|
82
|
-
this.fetchData();
|
|
83
|
-
}
|
|
84
|
-
fetchData() {
|
|
85
|
-
try {
|
|
86
|
-
const promises = [
|
|
87
|
-
HttpService().fetchSalonInfo(this.salonId).then(salonInfo => this.salonInfo = salonInfo),
|
|
88
|
-
HttpService().fetchSalonReviews(this.salonId, { limit: pageLimited }).then(response => {
|
|
89
|
-
const { total, allItems } = response;
|
|
90
|
-
this.totalReviews = total;
|
|
91
|
-
this.salonReviews = allItems;
|
|
92
|
-
if (total > pageLimited) {
|
|
93
|
-
this.canLoadMore = true;
|
|
94
|
-
}
|
|
95
|
-
}),
|
|
96
|
-
];
|
|
97
|
-
return Promise.all(promises);
|
|
98
|
-
}
|
|
99
|
-
catch (e) { }
|
|
100
|
-
}
|
|
101
|
-
sortReviews(filteredReviews) {
|
|
102
|
-
return sortBy_1(filteredReviews, [review => {
|
|
103
|
-
if (this.sorting === 'rating_desc') {
|
|
104
|
-
return -review.point;
|
|
105
|
-
}
|
|
106
|
-
if (this.sorting === 'rating_asc') {
|
|
107
|
-
return review.point;
|
|
108
|
-
}
|
|
109
|
-
const createdTime = dayjs_min(review.createdDate).unix();
|
|
110
|
-
return this.sorting === 'oldest' ? createdTime : -createdTime;
|
|
111
|
-
}]);
|
|
112
|
-
}
|
|
113
|
-
getFilteredReviews(pageOffset) {
|
|
114
|
-
let filteredReviews = [...this.salonReviews];
|
|
115
|
-
if (this.ratings.indexOf(scoreValuesMapping.all) === -1) {
|
|
116
|
-
const reviewRatingScores = this.ratings.map(r => scoreValuesMapping[r]);
|
|
117
|
-
filteredReviews = [...filteredReviews].filter(review => reviewRatingScores.indexOf(review.point) > -1);
|
|
118
|
-
}
|
|
119
|
-
const sortedReviews = this.sortReviews(filteredReviews);
|
|
120
|
-
return pageOffset ? sortedReviews.slice(0, pageOffset) : sortedReviews;
|
|
121
|
-
}
|
|
122
|
-
onLoadMore() {
|
|
123
|
-
this.isLoadingMore = true;
|
|
124
|
-
try {
|
|
125
|
-
this.pageOffset += pageLimited;
|
|
126
|
-
const totalResults = this.getFilteredReviews(this.pageOffset).length;
|
|
127
|
-
if (this.pageOffset > totalResults) {
|
|
128
|
-
this.canLoadMore = false;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
catch (error) { }
|
|
132
|
-
this.isLoadingMore = false;
|
|
133
|
-
}
|
|
134
|
-
onChangeSorting(sorting) {
|
|
135
|
-
this.sorting = sorting;
|
|
136
|
-
this.pageOffset = pageLimited;
|
|
137
|
-
this.canLoadMore = this.getFilteredReviews(pageLimited).length >= pageLimited;
|
|
138
|
-
}
|
|
139
|
-
;
|
|
140
|
-
onChangeFilterRating(rating) {
|
|
141
|
-
if (rating === scoreValuesMapping.all) {
|
|
142
|
-
this.ratings = [scoreValuesMapping.all, 'star1', 'star2', 'star3', 'star4', 'star5'];
|
|
143
|
-
}
|
|
144
|
-
else if (this.ratings.indexOf(rating) > -1) {
|
|
145
|
-
this.ratings = this.ratings.filter(r => r !== scoreValuesMapping.all && r !== rating);
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
const needFilterByAll = this.ratings.concat([rating]).filter(r => r !== scoreValuesMapping.all).length === 5;
|
|
149
|
-
this.ratings = needFilterByAll
|
|
150
|
-
? [scoreValuesMapping.all, 'star1', 'star2', 'star3', 'star4', 'star5']
|
|
151
|
-
: this.ratings.concat([rating]);
|
|
152
|
-
}
|
|
153
|
-
this.pageOffset = pageLimited;
|
|
154
|
-
this.canLoadMore = this.getFilteredReviews(pageLimited).length >= pageLimited;
|
|
155
|
-
}
|
|
156
|
-
;
|
|
157
|
-
renderReviewsFilters() {
|
|
158
|
-
const reviewsByScore = groupBy_1(this.salonReviews, review => review.point);
|
|
159
|
-
const isAllChecked = this.ratings.indexOf(scoreValuesMapping.all) > -1;
|
|
160
|
-
const inputCheckedStyle = lib.css({
|
|
161
|
-
outline: 'none !important',
|
|
162
|
-
backgroundColor: `${this.primaryColor} !important`,
|
|
163
|
-
borderColor: `${this.primaryColor} !important`,
|
|
164
|
-
});
|
|
165
|
-
return (h("div", { class: "salon-reviews--filters-by-ratings" }, h("div", { style: {
|
|
166
|
-
fontWeight: 'bold',
|
|
167
|
-
marginBottom: '12px',
|
|
168
|
-
marginTop: '32px',
|
|
169
|
-
} }, "Filter by ratings"), h("div", { class: "salon-reviews--filters-by-ratings--options" }, h("div", { class: "checkbox--wrapper", style: { marginBottom: '12px' } }, h("div", { class: "checkbox--box" }, h("div", { class: "form-check" }, h("input", Object.assign({ type: "checkbox", class: "form-check-input", value: scoreValuesMapping.all, onChange: () => this.onChangeFilterRating(scoreValuesMapping.all), checked: isAllChecked }, isAllChecked ? inputCheckedStyle : {})), h("label", { class: "form-check-label" }, "All ratings")))), [5, 4, 3, 2, 1].filter(score => reviewsByScore[score]).map(score => {
|
|
170
|
-
const scoreReviewCount = reviewsByScore[score].length;
|
|
171
|
-
const isChecked = this.ratings.indexOf(scoreValuesMapping.all) > -1 || this.ratings.indexOf(`star${score}`) > -1;
|
|
172
|
-
return (h("div", { style: {
|
|
173
|
-
display: 'flex',
|
|
174
|
-
flexDirection: 'row',
|
|
175
|
-
justifyContent: 'space-between',
|
|
176
|
-
marginBottom: '12px',
|
|
177
|
-
} }, h("div", { class: "form-check" }, h("input", Object.assign({ value: "", type: "checkbox", class: "form-check-input", onChange: () => this.onChangeFilterRating(`star${score}`), checked: isChecked }, isChecked ? inputCheckedStyle : {})), h("label", { class: "form-check-label" }, [1, 2, 3, 4, 5].map(point => {
|
|
178
|
-
const isHightlight = point <= score;
|
|
179
|
-
return (h("i", { class: isHightlight ? 'ri-heart-fill' : 'ri-heart-line', style: { fontSize: '16px', marginRight: '4px' } }));
|
|
180
|
-
}))), h("div", { style: { color: Colors.Gray01 } }, scoreReviewCount)));
|
|
181
|
-
}))));
|
|
182
|
-
}
|
|
183
|
-
render() {
|
|
184
|
-
const { rating } = this.salonInfo || {};
|
|
185
|
-
return (h("div", { class: "salon-reviews", style: { display: 'flex', flexDirection: 'row' } }, h("div", { class: "salon-reviews--filters", style: { width: '264px' } }, h("div", { class: "salon-reviews--score" }, h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row' } }, [1, 2, 3, 4, 5].map(score => {
|
|
186
|
-
return (h("i", { class: score <= rating ? 'ri-heart-fill' : 'ri-heart-line', style: Object.assign({ fontSize: '32px', marginRight: '4px' }, score <= rating ? { color: this.primaryColor } : { color: Colors.Gray03 }) }));
|
|
187
|
-
})), h("div", { class: "salon-review--rating--date", style: {
|
|
188
|
-
display: 'flex',
|
|
189
|
-
flexDirection: 'row',
|
|
190
|
-
alignItems: 'center',
|
|
191
|
-
marginTop: '-8px',
|
|
192
|
-
} }, h("span", { style: { fontSize: '24px' } }, rating, "/5"), " ", h("span", { style: { color: Colors.Gray02, marginLeft: '8px' } }, "(", this.totalReviews, " reviews)"))), h("div", { class: "salon-reviews--filters--options" }, this.renderReviewsFilters())), h("div", { class: "salon-reviews--list", style: {
|
|
193
|
-
flexGrow: '1',
|
|
194
|
-
flexShrink: '1',
|
|
195
|
-
paddingLeft: '64px',
|
|
196
|
-
} }, this.renderReviewsList())));
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
SalonReviews.style = indexCss;
|
|
200
|
-
|
|
201
|
-
export { SalonReviews as salon_reviews };
|