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.
Files changed (241) hide show
  1. package/LICENSE +21 -0
  2. package/{cjs → dist/cjs}/_commonjsHelpers-5cfcba41.js +0 -0
  3. package/dist/cjs/colors-38421769.js +69 -0
  4. package/dist/cjs/favesalon-embed.cjs.js +20 -0
  5. package/{cjs → dist/cjs}/global-9073d10e.js +0 -0
  6. package/dist/cjs/google-map_5.cjs.entry.js +291 -0
  7. package/{cjs/index-48ac68d0.js → dist/cjs/index-7f190886.js} +1924 -0
  8. package/{cjs/index-d5de0b9d.js → dist/cjs/index-e6bea8f5.js} +10 -0
  9. package/{cjs → dist/cjs}/index.cjs.js +0 -0
  10. package/dist/cjs/loader.cjs.js +22 -0
  11. package/{cjs → dist/cjs}/salon-booking-modal.cjs.entry.js +5 -5
  12. package/{cjs → dist/cjs}/salon-booking.cjs.entry.js +6 -7
  13. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +28 -0
  14. package/{cjs → dist/cjs}/salon-gift-card.cjs.entry.js +7 -7
  15. package/dist/cjs/salon-latest-reviews.cjs.entry.js +95 -0
  16. package/{cjs/salon-lookbook_2.cjs.entry.js → dist/cjs/salon-lookbook.cjs.entry.js} +23 -57
  17. package/{cjs → dist/cjs}/salon-ranking.cjs.entry.js +7 -7
  18. package/dist/cjs/salon-reviews.cjs.entry.js +186 -0
  19. package/dist/cjs/salon-services.cjs.entry.js +78 -0
  20. package/dist/cjs/salon-stylists.cjs.entry.js +112 -0
  21. package/{cjs/services-f1102d4a.js → dist/cjs/services-eee8f251.js} +265 -393
  22. package/dist/cjs/style-detail.cjs.entry.js +310 -0
  23. package/dist/cjs/user-avatar.cjs.entry.js +41 -0
  24. package/{cjs → dist/cjs}/utils-c5a33b3c.js +0 -0
  25. package/{collection → dist/collection}/collection-manifest.json +2 -3
  26. package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
  27. package/{collection → dist/collection}/components/google-map/index.css +0 -1
  28. package/dist/collection/components/google-map/index.js +86 -0
  29. package/{collection → dist/collection}/components/salon-booking/index.css +10 -24
  30. package/{collection → dist/collection}/components/salon-booking/index.js +3 -3
  31. package/{collection → dist/collection}/components/salon-booking/salon-booking-modal.js +4 -4
  32. package/dist/collection/components/salon-gift-card/index.css +25 -0
  33. package/{collection → dist/collection}/components/salon-gift-card/index.js +4 -3
  34. package/{collection → dist/collection}/components/salon-gift-card/salon-gift-card-modal.js +24 -3
  35. package/{collection/components/salon-locations → dist/collection/components/salon-info}/index.css +0 -0
  36. package/{collection → dist/collection}/components/salon-info/index.js +6 -32
  37. package/{collection → dist/collection}/components/salon-latest-reviews/index.css +0 -3
  38. package/dist/collection/components/salon-latest-reviews/index.js +176 -0
  39. package/dist/collection/components/salon-latest-styles/index.css +10 -0
  40. package/dist/collection/components/salon-latest-styles/index.js +178 -0
  41. package/{collection/components/salon-contact → dist/collection/components/salon-locations}/index.css +6 -6
  42. package/dist/collection/components/salon-locations/index.js +151 -0
  43. package/{collection → dist/collection}/components/salon-lookbook/index.css +0 -9
  44. package/{collection → dist/collection}/components/salon-lookbook/index.js +19 -19
  45. package/{collection → dist/collection}/components/salon-ranking/index.css +0 -0
  46. package/{collection → dist/collection}/components/salon-ranking/index.js +5 -5
  47. package/{collection → dist/collection}/components/salon-reviews/index.css +0 -0
  48. package/dist/collection/components/salon-reviews/index.js +286 -0
  49. package/dist/collection/components/salon-schedules/index.css +15 -0
  50. package/dist/collection/components/salon-schedules/index.js +189 -0
  51. package/{collection → dist/collection}/components/salon-services/index.css +0 -0
  52. package/{collection → dist/collection}/components/salon-services/index.js +51 -8
  53. package/{collection → dist/collection}/components/salon-stylists/index.css +0 -8
  54. package/dist/collection/components/salon-stylists/index.js +183 -0
  55. package/dist/collection/components/style-detail/index.css +62 -0
  56. package/dist/collection/components/style-detail/index.js +461 -0
  57. package/{collection → dist/collection}/components/user-avatar/index.css +0 -0
  58. package/{collection → dist/collection}/components/user-avatar/index.js +2 -2
  59. package/dist/collection/constants/colors.js +65 -0
  60. package/{collection → dist/collection}/global/global.js +0 -0
  61. package/{collection → dist/collection}/index.js +0 -0
  62. package/dist/collection/services/services.js +174 -0
  63. package/dist/collection/types/common.js +11 -0
  64. package/{collection → dist/collection}/types/review.js +9 -5
  65. package/dist/collection/types/salon.js +58 -0
  66. package/{collection → dist/collection}/types/service.js +0 -0
  67. package/dist/collection/types/style.js +128 -0
  68. package/{collection → dist/collection}/types/stylist.js +12 -9
  69. package/{favesalon-embed/index.esm.js → dist/collection/types/tmp.js} +0 -0
  70. package/{collection → dist/collection}/types/user.js +2 -2
  71. package/{collection → dist/collection}/utils/utils.js +0 -0
  72. package/{custom-elements → dist/custom-elements}/index.d.ts +12 -18
  73. package/{custom-elements → dist/custom-elements}/index.js +1227 -1035
  74. package/{esm → dist/esm}/_commonjsHelpers-098d5b27.js +0 -0
  75. package/dist/esm/colors-ea36347a.js +67 -0
  76. package/dist/esm/favesalon-embed.js +18 -0
  77. package/{esm → dist/esm}/global-e1089ffd.js +0 -0
  78. package/dist/esm/google-map_5.entry.js +283 -0
  79. package/{esm/index-0f8eed73.js → dist/esm/index-6af0a03d.js} +10 -1
  80. package/{esm/index-67d677ba.js → dist/esm/index-80523fec.js} +1924 -1
  81. package/{esm → dist/esm}/index.js +0 -0
  82. package/dist/esm/loader.js +18 -0
  83. package/{esm → dist/esm}/polyfills/core-js.js +0 -0
  84. package/{esm → dist/esm}/polyfills/css-shim.js +0 -0
  85. package/{esm → dist/esm}/polyfills/dom.js +0 -0
  86. package/{esm → dist/esm}/polyfills/es5-html-element.js +0 -0
  87. package/{esm → dist/esm}/polyfills/index.js +0 -0
  88. package/{esm → dist/esm}/polyfills/system.js +0 -0
  89. package/{esm → dist/esm}/salon-booking-modal.entry.js +5 -5
  90. package/{esm → dist/esm}/salon-booking.entry.js +5 -6
  91. package/dist/esm/salon-gift-card-modal.entry.js +24 -0
  92. package/{esm → dist/esm}/salon-gift-card.entry.js +6 -6
  93. package/dist/esm/salon-latest-reviews.entry.js +91 -0
  94. package/{esm/salon-lookbook_2.entry.js → dist/esm/salon-lookbook.entry.js} +24 -57
  95. package/{esm → dist/esm}/salon-ranking.entry.js +7 -7
  96. package/dist/esm/salon-reviews.entry.js +182 -0
  97. package/dist/esm/salon-services.entry.js +74 -0
  98. package/dist/esm/salon-stylists.entry.js +108 -0
  99. package/{esm/services-74d84ca9.js → dist/esm/services-295247b1.js} +263 -392
  100. package/dist/esm/style-detail.entry.js +306 -0
  101. package/dist/esm/user-avatar.entry.js +37 -0
  102. package/{esm → dist/esm}/utils-e97485e0.js +0 -0
  103. package/dist/favesalon-embed/assets/map--placeholder.jpeg +0 -0
  104. package/{favesalon-embed → dist/favesalon-embed}/favesalon-embed.css +1 -1
  105. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -0
  106. package/dist/favesalon-embed/index.esm.js +0 -0
  107. package/dist/favesalon-embed/p-292b97ba.entry.js +1 -0
  108. package/{favesalon-embed → dist/favesalon-embed}/p-47e646f8.js +0 -0
  109. package/dist/favesalon-embed/p-4869dfed.entry.js +1 -0
  110. package/{favesalon-embed → dist/favesalon-embed}/p-4a5eca9a.js +0 -0
  111. package/dist/favesalon-embed/p-4aee4fd9.entry.js +1 -0
  112. package/dist/favesalon-embed/p-5528c705.entry.js +1 -0
  113. package/dist/favesalon-embed/p-612ad685.entry.js +1 -0
  114. package/dist/favesalon-embed/p-75aef7e0.entry.js +1 -0
  115. package/dist/favesalon-embed/p-8c780874.entry.js +1 -0
  116. package/dist/favesalon-embed/p-8dbf04c5.js +1 -0
  117. package/dist/favesalon-embed/p-9f31061a.entry.js +1 -0
  118. package/dist/favesalon-embed/p-a33331cc.js +1 -0
  119. package/dist/favesalon-embed/p-a60d78e9.entry.js +1 -0
  120. package/dist/favesalon-embed/p-a6debdae.entry.js +1 -0
  121. package/dist/favesalon-embed/p-bad1e9a7.entry.js +1 -0
  122. package/dist/favesalon-embed/p-c2ecb365.js +1 -0
  123. package/dist/favesalon-embed/p-c7dea70c.entry.js +1 -0
  124. package/{favesalon-embed → dist/favesalon-embed}/p-d6083940.js +0 -0
  125. package/dist/favesalon-embed/p-f0e14641.entry.js +1 -0
  126. package/dist/favesalon-embed/p-fc9a5551.js +6 -0
  127. package/{index.cjs.js → dist/index.cjs.js} +0 -0
  128. package/{index.js → dist/index.js} +0 -0
  129. package/dist/types/components/google-map/index.d.ts +5 -0
  130. package/{types → dist/types}/components/salon-booking/index.d.ts +0 -0
  131. package/{types → dist/types}/components/salon-booking/salon-booking-modal.d.ts +0 -0
  132. package/{types → dist/types}/components/salon-gift-card/index.d.ts +0 -0
  133. package/{types → dist/types}/components/salon-gift-card/salon-gift-card-modal.d.ts +1 -0
  134. package/{types → dist/types}/components/salon-info/index.d.ts +0 -1
  135. package/{types → dist/types}/components/salon-latest-reviews/index.d.ts +2 -0
  136. package/dist/types/components/salon-latest-styles/index.d.ts +12 -0
  137. package/{types → dist/types}/components/salon-locations/index.d.ts +2 -0
  138. package/{types → dist/types}/components/salon-lookbook/index.d.ts +3 -3
  139. package/{types → dist/types}/components/salon-ranking/index.d.ts +0 -0
  140. package/dist/types/components/salon-reviews/index.d.ts +24 -0
  141. package/{types → dist/types}/components/salon-schedules/index.d.ts +2 -0
  142. package/{types → dist/types}/components/salon-services/index.d.ts +1 -0
  143. package/{types → dist/types}/components/salon-stylists/index.d.ts +6 -0
  144. package/dist/types/components/style-detail/index.d.ts +24 -0
  145. package/{types → dist/types}/components/user-avatar/index.d.ts +0 -0
  146. package/{types → dist/types}/components.d.ts +54 -59
  147. package/dist/types/constants/colors.d.ts +65 -0
  148. package/{types → dist/types}/index.d.ts +0 -0
  149. package/dist/types/services/services.d.ts +60 -0
  150. package/{types → dist/types}/stencil-public-runtime.d.ts +0 -0
  151. package/dist/types/types/common.d.ts +11 -0
  152. package/{types → dist/types}/types/review.d.ts +4 -0
  153. package/{types → dist/types}/types/salon.d.ts +3 -1
  154. package/{types → dist/types}/types/service.d.ts +0 -0
  155. package/dist/types/types/style.d.ts +88 -0
  156. package/{types → dist/types}/types/stylist.d.ts +1 -1
  157. package/dist/types/types/tmp.d.ts +0 -0
  158. package/{types → dist/types}/types/user.d.ts +2 -2
  159. package/{types → dist/types}/utils/utils.d.ts +0 -0
  160. package/loader/cdn.js +3 -0
  161. package/loader/index.cjs.js +3 -0
  162. package/loader/index.d.ts +12 -0
  163. package/loader/index.es2017.js +3 -0
  164. package/loader/index.js +4 -0
  165. package/loader/package.json +10 -0
  166. package/package.json +18 -13
  167. package/readme.md +24 -7
  168. package/cjs/colors-7f354880.js +0 -95
  169. package/cjs/favesalon-embed.cjs.js +0 -20
  170. package/cjs/google-map.cjs.entry.js +0 -47
  171. package/cjs/index-95daad08.js +0 -1928
  172. package/cjs/loader.cjs.js +0 -22
  173. package/cjs/salon-contact_4.cjs.entry.js +0 -155
  174. package/cjs/salon-gift-card-modal.cjs.entry.js +0 -25
  175. package/cjs/salon-info.cjs.entry.js +0 -35
  176. package/cjs/salon-latest-reviews.cjs.entry.js +0 -58
  177. package/cjs/salon-lookbook-modal.cjs.entry.js +0 -141
  178. package/cjs/salon-reviews.cjs.entry.js +0 -205
  179. package/cjs/salon-services.cjs.entry.js +0 -47
  180. package/cjs/salon-stylists.cjs.entry.js +0 -54
  181. package/collection/components/google-map/index.js +0 -97
  182. package/collection/components/salon-contact/index.js +0 -88
  183. package/collection/components/salon-gift-card/index.css +0 -25
  184. package/collection/components/salon-info/index.css +0 -3
  185. package/collection/components/salon-latest-reviews/index.js +0 -108
  186. package/collection/components/salon-locations/index.js +0 -80
  187. package/collection/components/salon-lookbook/lookbook-modal.css +0 -72
  188. package/collection/components/salon-lookbook/salon-lookbook-modal.js +0 -248
  189. package/collection/components/salon-reviews/index.js +0 -317
  190. package/collection/components/salon-schedules/index.css +0 -14
  191. package/collection/components/salon-schedules/index.js +0 -103
  192. package/collection/components/salon-styles/index.css +0 -23
  193. package/collection/components/salon-styles/index.js +0 -100
  194. package/collection/components/salon-stylists/index.js +0 -96
  195. package/collection/constants/colors.js +0 -91
  196. package/collection/services/services.js +0 -225
  197. package/collection/types/common.js +0 -2
  198. package/collection/types/salon.js +0 -52
  199. package/collection/types/style.js +0 -103
  200. package/esm/colors-1ec90c5f.js +0 -93
  201. package/esm/favesalon-embed.js +0 -18
  202. package/esm/google-map.entry.js +0 -43
  203. package/esm/index-09d43e3e.js +0 -1926
  204. package/esm/loader.js +0 -18
  205. package/esm/salon-contact_4.entry.js +0 -148
  206. package/esm/salon-gift-card-modal.entry.js +0 -21
  207. package/esm/salon-info.entry.js +0 -31
  208. package/esm/salon-latest-reviews.entry.js +0 -54
  209. package/esm/salon-lookbook-modal.entry.js +0 -137
  210. package/esm/salon-reviews.entry.js +0 -201
  211. package/esm/salon-services.entry.js +0 -43
  212. package/esm/salon-stylists.entry.js +0 -50
  213. package/favesalon-embed/favesalon-embed.esm.js +0 -1
  214. package/favesalon-embed/p-0188d4dc.entry.js +0 -1
  215. package/favesalon-embed/p-0318501e.js +0 -1
  216. package/favesalon-embed/p-078f242d.entry.js +0 -1
  217. package/favesalon-embed/p-13e23c61.entry.js +0 -1
  218. package/favesalon-embed/p-17df13ad.js +0 -1
  219. package/favesalon-embed/p-1a3179c8.entry.js +0 -1
  220. package/favesalon-embed/p-20aa75de.js +0 -6
  221. package/favesalon-embed/p-2901a6d6.entry.js +0 -1
  222. package/favesalon-embed/p-2b861430.entry.js +0 -1
  223. package/favesalon-embed/p-44d810a0.js +0 -1
  224. package/favesalon-embed/p-4c68700f.entry.js +0 -1
  225. package/favesalon-embed/p-4e2d7b29.js +0 -1
  226. package/favesalon-embed/p-6b845bf1.entry.js +0 -1
  227. package/favesalon-embed/p-7350f6b5.entry.js +0 -1
  228. package/favesalon-embed/p-897c2b1c.entry.js +0 -1
  229. package/favesalon-embed/p-8e60f56f.entry.js +0 -1
  230. package/favesalon-embed/p-a49afdc1.entry.js +0 -1
  231. package/favesalon-embed/p-c93867c4.entry.js +0 -1
  232. package/favesalon-embed/p-ea6a097f.entry.js +0 -1
  233. package/types/components/google-map/index.d.ts +0 -10
  234. package/types/components/salon-contact/index.d.ts +0 -9
  235. package/types/components/salon-lookbook/salon-lookbook-modal.d.ts +0 -13
  236. package/types/components/salon-reviews/index.d.ts +0 -24
  237. package/types/components/salon-styles/index.d.ts +0 -9
  238. package/types/constants/colors.d.ts +0 -88
  239. package/types/services/services.d.ts +0 -26
  240. package/types/types/common.d.ts +0 -2
  241. package/types/types/style.d.ts +0 -59
File without changes
@@ -0,0 +1,67 @@
1
+ const Colors = {
2
+ TextColor: '#141414',
3
+ Black: '#000000',
4
+ White: '#ffffff',
5
+ Primary: '#F05A61',
6
+ Secondary: '#001529',
7
+ Black01: '#262626',
8
+ Black02: '#1f1f1f',
9
+ Black03: '#141414',
10
+ Gray01: '#F5F5F5',
11
+ Gray02: '#EFEFEF',
12
+ Gray03: '#DBDBDB',
13
+ Gray04: '#999999',
14
+ Gray05: '#666666',
15
+ Red01: '#FEEFEF',
16
+ Red02: '#F9BDC0',
17
+ Red03: '#F05A61',
18
+ Red04: '#C0484E',
19
+ Red05: '#90363A',
20
+ Orange01: '#FFF4F0',
21
+ Orange02: '#FFD1C3',
22
+ Orange03: '#FF8D69',
23
+ Orange04: '#CC7154',
24
+ Orange05: '#99553F',
25
+ Yellow01: '#FDFBF4',
26
+ Yellow02: '#F8EDD3',
27
+ Yellow03: '#EED291',
28
+ Yellow04: '#BEA874',
29
+ Yellow05: '#8F7E57',
30
+ Lilac01: '#F3F0F4',
31
+ Lilac02: '#CFC1D4',
32
+ Lilac03: '#886594',
33
+ Lilac04: '#6D5176',
34
+ Lilac05: '#523D59',
35
+ Blue01: '#EAECEE',
36
+ Blue02: '#AAB1BD',
37
+ Blue03: '#2B3C59',
38
+ Blue04: '#223047',
39
+ Blue05: '#1A2435',
40
+ Green01: '#ECF7ED',
41
+ Green02: '#B2E1B9',
42
+ Green03: '#3FB34F',
43
+ Green04: '#328F3F',
44
+ Green05: '#266B2F',
45
+ Success01: '#EEF9E8',
46
+ Success02: '#BAE7A3',
47
+ Success03: '#52C41A',
48
+ Success04: '#429D15',
49
+ Success05: '#317610',
50
+ Error01: '#FFEDED',
51
+ Error02: '#FFB8B9',
52
+ Error03: '#FF4D4F',
53
+ Error04: '#CC3E3F',
54
+ Error05: '#992E2F',
55
+ Warning01: '#FFF7E8',
56
+ Warning02: '#FDDEA1',
57
+ Warning03: '#FAAD14',
58
+ Warning04: '#C88A10',
59
+ Warning05: '#96680C',
60
+ Info01: '#E8F4FF',
61
+ Info02: '#A3D3FF',
62
+ Info03: '#1890FF',
63
+ Info04: '#1373CC',
64
+ Info05: '#0E5699',
65
+ };
66
+
67
+ export { Colors as C };
@@ -0,0 +1,18 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-6af0a03d.js';
2
+ import './global-e1089ffd.js';
3
+
4
+ /*
5
+ Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ const patchBrowser = () => {
8
+ const importMeta = import.meta.url;
9
+ const opts = {};
10
+ if (importMeta !== '') {
11
+ opts.resourcesUrl = new URL('.', importMeta).href;
12
+ }
13
+ return promiseResolve(opts);
14
+ };
15
+
16
+ patchBrowser().then(options => {
17
+ return bootstrapLazy([["salon-latest-reviews",[[0,"salon-latest-reviews",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"salonReviews":[32],"isLoading":[32],"fetchData":[64]}]]],["salon-lookbook",[[0,"salon-lookbook",{"salonId":[2,"salon-id"],"isLoading":[32],"isLoadingMore":[32],"hideLoadMore":[32],"currentPage":[32],"totalLookbooks":[32],"salonCategories":[32],"salonLookbooks":[32],"sortBy":[32],"filterBy":[32],"isLayoutSetup":[32],"fetchData":[64],"fetchLookbooks":[64],"onChangeFiltering":[64],"onChangeSorting":[64],"onLoadMore":[64],"fetchCategories":[64]}]]],["salon-reviews",[[0,"salon-reviews",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"salonInfo":[32],"stats":[32],"totalReviews":[32],"allReviews":[32],"isLoading":[32],"isSorting":[32],"isFiltering":[32],"isLoadingMore":[32],"canLoadMore":[32],"page":[32],"filterBy":[32],"sortBy":[32]}]]],["style-detail",[[0,"style-detail",{"salonId":[2,"salon-id"],"salonLookbook":[1,"salon-lookbook"],"lookbookInfo":[32],"isModalOpen":[32],"currentMediaIdx":[32],"currentMedia":[32],"albumMedias":[32],"similarStyles":[32],"totalComments":[32],"lookbookComments":[32],"isLayoutSetup":[32],"fetchData":[64]}]]],["salon-booking",[[0,"salon-booking",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-booking-modal",[[0,"salon-booking-modal",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"redirectUrl":[1,"redirect-url"],"isModalOpen":[32]}]]],["salon-gift-card",[[0,"salon-gift-card",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-gift-card-modal",[[0,"salon-gift-card-modal",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"isModalOpen":[32]}]]],["salon-ranking",[[0,"salon-ranking",{"ranking":[2],"height":[2],"width":[2]}]]],["salon-services",[[0,"salon-services",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"salonServices":[32],"isLoading":[32],"fetchData":[64]}]]],["salon-stylists",[[0,"salon-stylists",{"salonId":[2,"salon-id"],"salonStylists":[32],"totalStylists":[32],"page":[32],"isLoading":[32],"isLoadingMore":[32],"canLoadMore":[32],"fetchData":[64],"onLoadMore":[64]}]]],["user-avatar",[[0,"user-avatar",{"size":[2],"name":[1],"nameStyle":[16],"shortName":[1,"short-name"],"avatar":[1]}]]],["google-map_5",[[0,"salon-info",{"salonId":[2,"salon-id"],"salonInfo":[32],"fetchData":[64]}],[0,"salon-locations",{"salonId":[2,"salon-id"],"salonInfo":[1,"salon-info"],"isLoading":[4,"is-loading"],"withBorder":[4,"with-border"],"salonInfoState":[32]}],[0,"salon-latest-styles",{"salonId":[2,"salon-id"],"isLoading":[4,"is-loading"],"withBorder":[4,"with-border"],"isLoadingState":[32],"latestStyles":[32],"fetchData":[64]}],[0,"salon-schedules",{"salonId":[2,"salon-id"],"salonInfo":[1,"salon-info"],"isLoading":[4,"is-loading"],"withBorder":[4,"with-border"],"salonInfoState":[32]}],[0,"google-map",{"locationName":[1,"location-name"],"locationAddress":[1,"location-address"]}]]]], options);
18
+ });
File without changes
@@ -0,0 +1,283 @@
1
+ import { r as registerInstance, g as getAssetPath, h } from './index-6af0a03d.js';
2
+ import { C as Colors } from './colors-ea36347a.js';
3
+ import { H as HttpService, i as isVideoMedia, B as BusinessHourStatus } from './services-295247b1.js';
4
+ import { f as formatWebsiteUrl, a as formatFullAddress } from './utils-e97485e0.js';
5
+ import './_commonjsHelpers-098d5b27.js';
6
+
7
+ const indexCss$4 = "google-map{display:block;width:100%;height:100%}";
8
+
9
+ let GoogleMap = class {
10
+ constructor(hostRef) {
11
+ registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ const mapPlaceholder = getAssetPath('./assets/map--placeholder.jpeg');
15
+ return (h("div", { style: {
16
+ backgroundImage: `url("${mapPlaceholder}")`,
17
+ backgroundColor: Colors.Gray01,
18
+ backgroundPosition: 'center center',
19
+ backgroundRepeat: 'no-repeat',
20
+ backgroundSize: 'cover',
21
+ borderRadius: '8px',
22
+ position: 'relative',
23
+ height: '296px',
24
+ } }, h("div", { style: {
25
+ position: 'absolute',
26
+ left: '50%',
27
+ top: '50%',
28
+ transform: 'translate(-50%, -50%)',
29
+ } }, h("a", { target: "_blank", rel: "noopener noreferrer", href: `https://www.google.com/maps/search/?api=1&query=${this.locationAddress}`, style: {
30
+ backgroundColor: Colors.Red01,
31
+ border: `1px solid ${Colors.Red02}`,
32
+ borderRadius: '4px',
33
+ color: Colors.TextColor,
34
+ padding: '12px',
35
+ display: 'flex',
36
+ flexWrap: 'wrap',
37
+ height: 'auto',
38
+ width: 'auto',
39
+ whiteSpace: 'normal',
40
+ textAlign: 'left',
41
+ maxWidth: '320px',
42
+ textDecoration: 'none',
43
+ } }, this.locationName && h("span", { style: { fontSize: '16px', marginBottom: '4px' } }, this.locationName), this.locationAddress && h("span", { style: { fontSize: '12px' } }, this.locationAddress)), h("div", { style: { marginTop: '8px', textAlign: 'center' } }, h("i", { class: "ri-map-pin-fill", style: { fontSize: '24px' } })))));
44
+ }
45
+ static get assetsDirs() { return ["assets"]; }
46
+ };
47
+ GoogleMap.style = indexCss$4;
48
+
49
+ const indexCss$3 = "";
50
+
51
+ let SalonInfo = class {
52
+ constructor(hostRef) {
53
+ registerInstance(this, hostRef);
54
+ }
55
+ componentWillLoad() {
56
+ this.fetchData();
57
+ }
58
+ async fetchData() {
59
+ try {
60
+ this.salonInfo = await HttpService().fetchSalonInfo(this.salonId);
61
+ }
62
+ catch (e) { }
63
+ }
64
+ render() {
65
+ return (h("div", { class: "salon-info" }, h("div", { class: "container" }, h("div", { class: "salon-info--schedules", style: { marginBottom: '24px' } }, h("salon-schedules", { "with-border": true, "is-loading": !this.salonInfo, "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), h("div", { class: "row" }, h("div", { class: "col-md-5", style: { marginBottom: '24px' } }, h("salon-locations", { "with-border": true, "is-loading": !this.salonInfo, "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), h("div", { class: "col-md-7", style: { marginBottom: '24px' } }, h("salon-latest-styles", { "with-border": true, "is-loading": !this.salonInfo, "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) }))))));
66
+ }
67
+ };
68
+ SalonInfo.style = indexCss$3;
69
+
70
+ const indexCss$2 = "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}}";
71
+
72
+ let SalonLatestStyles = class {
73
+ constructor(hostRef) {
74
+ registerInstance(this, hostRef);
75
+ }
76
+ componentDidLoad() {
77
+ this.fetchData();
78
+ }
79
+ async fetchData() {
80
+ this.isLoadingState = true;
81
+ try {
82
+ const promises = [
83
+ HttpService().fetchSalonLatestStyles(this.salonId, { limit: 6 })
84
+ .then(salonStyles => this.latestStyles = salonStyles),
85
+ ];
86
+ return Promise.all(promises)
87
+ .then(() => this.isLoadingState = false)
88
+ .catch(() => this.isLoadingState = false);
89
+ }
90
+ catch (e) { }
91
+ }
92
+ onClickLookbook(style) {
93
+ const elLookbookModal = document.createElement('div');
94
+ elLookbookModal.innerHTML = `
95
+ <style-detail
96
+ salon-id=${this.salonId}
97
+ salon-lookbook='${JSON.stringify(style)}'
98
+ ></style-detail>
99
+ `;
100
+ document.body.appendChild(elLookbookModal);
101
+ }
102
+ render() {
103
+ if (this.isLoading || this.isLoadingState) {
104
+ return (h("div", { class: "view view--salon-styles" }, h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } }, h("div", { style: {
105
+ backgroundColor: Colors.Gray02,
106
+ height: '20px',
107
+ width: '120px',
108
+ } }), h("div", { style: { marginTop: '24px' } }, h("div", { style: {
109
+ overflow: 'hidden',
110
+ marginLeft: '-16px',
111
+ marginBottom: '-16px',
112
+ } }, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((fakeId, idx) => (h("div", { key: `style-listing--item-${fakeId}-${idx}`, style: {
113
+ float: 'left',
114
+ paddingLeft: '16px',
115
+ marginBottom: '16px',
116
+ } }, h("div", { style: {
117
+ backgroundColor: Colors.Gray01,
118
+ borderRadius: '8px',
119
+ width: '120px',
120
+ height: '120px',
121
+ overflow: 'hidden',
122
+ position: 'relative',
123
+ cursor: 'pointer',
124
+ } })))))))));
125
+ }
126
+ return (h("div", { class: "view view--salon-styles" }, h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } }, h("div", { style: { fontSize: '18px', fontWeight: 'bold' } }, "Photos"), h("div", { style: {
127
+ overflow: 'hidden',
128
+ marginLeft: '-16px',
129
+ marginBottom: '-16px',
130
+ marginTop: '16px',
131
+ } }, (this.latestStyles || []).map((faveStyle, idx) => {
132
+ const { imageThumb, albumMedias } = faveStyle;
133
+ const firstMedia = albumMedias.length > 0 ? albumMedias[0] : null;
134
+ const isVideo = firstMedia ? isVideoMedia(firstMedia) : false;
135
+ return (h("div", { key: `style-listing--item-${faveStyle.id}-${idx}`, style: {
136
+ float: 'left',
137
+ paddingLeft: '16px',
138
+ marginBottom: '16px',
139
+ } }, h("div", { class: "view--salon-styles--item", style: Object.assign({ backgroundColor: Colors.Gray01, borderRadius: '8px', overflow: 'hidden', position: 'relative', cursor: 'pointer' }, !isVideo && firstMedia ? {
140
+ backgroundImage: `url("${firstMedia.imageThumb || firstMedia.imageThumbMedium}")`,
141
+ backgroundRepeat: 'no-repeat',
142
+ backgroundPosition: 'center center',
143
+ backgroundSize: 'cover',
144
+ } : {}), 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: {
145
+ fontSize: '48px',
146
+ color: Colors.TextColor,
147
+ position: 'absolute',
148
+ left: '50%',
149
+ top: '50%',
150
+ transform: 'translate(-50%, -50%)',
151
+ } }))))));
152
+ })))));
153
+ }
154
+ };
155
+ SalonLatestStyles.style = indexCss$2;
156
+
157
+ const indexCss$1 = "@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}}";
158
+
159
+ let SalonLocations = class {
160
+ constructor(hostRef) {
161
+ registerInstance(this, hostRef);
162
+ }
163
+ componentWillLoad() {
164
+ if (this.salonInfo) {
165
+ this.salonInfoState = JSON.parse(this.salonInfo);
166
+ }
167
+ else {
168
+ this.fetchData();
169
+ }
170
+ }
171
+ fetchData() {
172
+ try {
173
+ HttpService().fetchSalonInfo(this.salonId)
174
+ .then(salonInfo => this.salonInfoState = salonInfo);
175
+ }
176
+ catch (e) { }
177
+ }
178
+ render() {
179
+ if (this.isLoading) {
180
+ 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: {
181
+ backgroundColor: Colors.Gray02,
182
+ height: '20px',
183
+ width: '120px',
184
+ } }), h("div", { style: { marginTop: '24px' } }, h("div", { style: {
185
+ backgroundColor: Colors.Gray01,
186
+ height: '16px',
187
+ width: '50%',
188
+ } }), h("div", { style: {
189
+ backgroundColor: Colors.Gray01,
190
+ height: '16px',
191
+ width: '50%',
192
+ marginTop: '8px',
193
+ } }), h("div", { style: {
194
+ backgroundColor: Colors.Gray01,
195
+ height: '192px',
196
+ width: '100%',
197
+ marginTop: '24px',
198
+ } })))));
199
+ }
200
+ const { businessPhone, businessName, website, email, } = this.salonInfoState || {};
201
+ const websiteUrl = formatWebsiteUrl(website);
202
+ const fullAddress = formatFullAddress(this.salonInfoState);
203
+ 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 })))));
204
+ }
205
+ };
206
+ SalonLocations.style = indexCss$1;
207
+
208
+ 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}}";
209
+
210
+ let SalonSchedules = class {
211
+ constructor(hostRef) {
212
+ registerInstance(this, hostRef);
213
+ }
214
+ componentWillLoad() {
215
+ if (this.salonInfo) {
216
+ this.salonInfoState = JSON.parse(this.salonInfo);
217
+ }
218
+ else {
219
+ this.fetchData();
220
+ }
221
+ }
222
+ fetchData() {
223
+ try {
224
+ HttpService().fetchSalonInfo(this.salonId)
225
+ .then(salonInfo => this.salonInfoState = salonInfo);
226
+ }
227
+ catch (e) { }
228
+ }
229
+ renderBusinessHour(businessHour) {
230
+ if (businessHour.status === BusinessHourStatus.ByAppointment) {
231
+ return 'By Appointment';
232
+ }
233
+ if (businessHour.status === BusinessHourStatus.Close) {
234
+ return 'Close';
235
+ }
236
+ return `${businessHour.openTime} - ${businessHour.closeTime}`;
237
+ }
238
+ render() {
239
+ if (this.isLoading) {
240
+ 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: {
241
+ backgroundColor: Colors.Gray02,
242
+ height: '20px',
243
+ width: '120px',
244
+ } }), h("div", { style: { marginTop: '24px' } }, h("div", { style: {
245
+ backgroundColor: Colors.Gray01,
246
+ height: '16px',
247
+ width: '30%',
248
+ } }), h("div", { style: {
249
+ backgroundColor: Colors.Gray01,
250
+ height: '16px',
251
+ width: '40%',
252
+ marginTop: '8px',
253
+ } }), h("div", { style: {
254
+ backgroundColor: Colors.Gray01,
255
+ height: '16px',
256
+ width: '75%',
257
+ marginTop: '12px',
258
+ } }), h("div", { style: {
259
+ backgroundColor: Colors.Gray01,
260
+ height: '16px',
261
+ width: '75%',
262
+ marginTop: '8px',
263
+ } })), h("div", { style: { marginTop: '24px' } }, h("div", { style: {
264
+ overflow: 'hidden',
265
+ marginLeft: '-16px',
266
+ marginBottom: '-16px',
267
+ } }, [1, 2, 3, 4, 5, 6, 7].map((fakeId, idx) => (h("div", { key: `style-listing--item-${fakeId}-${idx}`, style: {
268
+ float: 'left',
269
+ paddingLeft: '16px',
270
+ marginBottom: '16px',
271
+ } }, h("div", { style: {
272
+ backgroundColor: Colors.Gray01,
273
+ width: '120px',
274
+ height: '20px',
275
+ } })))))))));
276
+ }
277
+ const { about, businessHours, } = (this.salonInfoState || {});
278
+ 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])))))))));
279
+ }
280
+ };
281
+ SalonSchedules.style = indexCss;
282
+
283
+ export { GoogleMap as google_map, SalonInfo as salon_info, SalonLatestStyles as salon_latest_styles, SalonLocations as salon_locations, SalonSchedules as salon_schedules };
@@ -784,6 +784,11 @@ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
784
784
  const parsePropertyValue = (propValue, propType) => {
785
785
  // ensure this value is of the correct prop type
786
786
  if (propValue != null && !isComplexType(propValue)) {
787
+ if (propType & 4 /* Boolean */) {
788
+ // per the HTML spec, any string value means it is a boolean true value
789
+ // but we'll cheat here and say that the string "false" is the boolean false
790
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
791
+ }
787
792
  if (propType & 2 /* Number */) {
788
793
  // force it to be a number
789
794
  return parseFloat(propValue);
@@ -1105,6 +1110,10 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1105
1110
  // Fallback appLoad event
1106
1111
  endBootstrap();
1107
1112
  };
1113
+ const getAssetPath = (path) => {
1114
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
1115
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1116
+ };
1108
1117
  const hostRefs = new WeakMap();
1109
1118
  const getHostRef = (ref) => hostRefs.get(ref);
1110
1119
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1191,4 +1200,4 @@ const flush = () => {
1191
1200
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1192
1201
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1193
1202
 
1194
- export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };
1203
+ export { bootstrapLazy as b, getAssetPath as g, h, promiseResolve as p, registerInstance as r };