favesalon-embed 0.0.4 → 1.0.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 (270) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/chat-button.cjs.entry.js +118 -0
  3. package/dist/cjs/colors-38421769.js +69 -0
  4. package/dist/cjs/favesalon-embed.cjs.js +24 -0
  5. package/dist/cjs/google-map_5.cjs.entry.js +310 -0
  6. package/{cjs/index-d5de0b9d.js → dist/cjs/index-47c2a5f6.js} +513 -199
  7. package/{cjs/index-48ac68d0.js → dist/cjs/index-7f190886.js} +1924 -0
  8. package/dist/cjs/loader.cjs.js +23 -0
  9. package/dist/cjs/relativeTime-3721080d.js +9 -0
  10. package/{cjs → dist/cjs}/salon-booking-modal.cjs.entry.js +7 -6
  11. package/{cjs → dist/cjs}/salon-booking.cjs.entry.js +8 -8
  12. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +29 -0
  13. package/{cjs → dist/cjs}/salon-gift-card.cjs.entry.js +9 -8
  14. package/dist/cjs/salon-latest-reviews.cjs.entry.js +97 -0
  15. package/{cjs/salon-lookbook_2.cjs.entry.js → dist/cjs/salon-lookbook.cjs.entry.js} +28 -58
  16. package/{cjs → dist/cjs}/salon-ranking.cjs.entry.js +9 -8
  17. package/dist/cjs/salon-reviews.cjs.entry.js +193 -0
  18. package/dist/cjs/salon-services.cjs.entry.js +81 -0
  19. package/dist/cjs/salon-stylists.cjs.entry.js +118 -0
  20. package/dist/cjs/services-125c82d8.js +21492 -0
  21. package/dist/cjs/style-detail.cjs.entry.js +312 -0
  22. package/dist/cjs/user-avatar.cjs.entry.js +45 -0
  23. package/{collection → dist/collection}/collection-manifest.json +5 -5
  24. package/dist/collection/components/chat-button/index.css +122 -0
  25. package/dist/collection/components/chat-button/index.js +218 -0
  26. package/dist/collection/components/chat-conversation/index.js +103 -0
  27. package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
  28. package/{collection → dist/collection}/components/google-map/index.css +0 -1
  29. package/dist/collection/components/google-map/index.js +90 -0
  30. package/{collection → dist/collection}/components/salon-booking/index.css +11 -20
  31. package/dist/collection/components/salon-booking/index.js +126 -0
  32. package/dist/collection/components/salon-booking/salon-booking-modal.js +92 -0
  33. package/dist/collection/components/salon-gift-card/index.css +30 -0
  34. package/dist/collection/components/salon-gift-card/index.js +126 -0
  35. package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +73 -0
  36. package/dist/collection/components/salon-info/index.js +77 -0
  37. package/dist/collection/components/salon-latest-reviews/index.js +163 -0
  38. package/dist/collection/components/salon-latest-styles/index.css +12 -0
  39. package/dist/collection/components/salon-latest-styles/index.js +183 -0
  40. package/{collection/components/salon-contact → dist/collection/components/salon-locations}/index.css +7 -4
  41. package/dist/collection/components/salon-locations/index.js +143 -0
  42. package/{collection → dist/collection}/components/salon-lookbook/index.css +3 -9
  43. package/dist/collection/components/salon-lookbook/index.js +368 -0
  44. package/dist/collection/components/salon-ranking/index.js +117 -0
  45. package/{collection → dist/collection}/components/salon-reviews/index.css +3 -0
  46. package/dist/collection/components/salon-reviews/index.js +249 -0
  47. package/dist/collection/components/salon-schedules/index.css +18 -0
  48. package/dist/collection/components/salon-schedules/index.js +167 -0
  49. package/dist/collection/components/salon-services/index.css +1 -0
  50. package/dist/collection/components/salon-services/index.js +146 -0
  51. package/dist/collection/components/salon-stylists/index.js +184 -0
  52. package/dist/collection/components/style-detail/index.css +76 -0
  53. package/dist/collection/components/style-detail/index.js +386 -0
  54. package/dist/collection/components/user-avatar/index.js +134 -0
  55. package/dist/collection/constants/colors.js +65 -0
  56. package/dist/collection/mocks/users.js +10 -0
  57. package/dist/collection/services/services.js +295 -0
  58. package/dist/collection/types/chat.js +23 -0
  59. package/dist/collection/types/common.js +11 -0
  60. package/{collection → dist/collection}/types/review.js +9 -5
  61. package/dist/collection/types/salon.js +58 -0
  62. package/dist/collection/types/style.js +128 -0
  63. package/{collection → dist/collection}/types/stylist.js +12 -9
  64. package/dist/collection/types/user.js +10 -0
  65. package/{custom-elements → dist/custom-elements}/index.d.ts +18 -18
  66. package/dist/custom-elements/index.js +28340 -0
  67. package/dist/esm/chat-button.entry.js +114 -0
  68. package/dist/esm/colors-ea36347a.js +67 -0
  69. package/dist/esm/favesalon-embed.js +19 -0
  70. package/dist/esm/google-map_5.entry.js +302 -0
  71. package/{esm/index-0f8eed73.js → dist/esm/index-3fae868e.js} +512 -200
  72. package/{esm/index-67d677ba.js → dist/esm/index-80523fec.js} +1924 -1
  73. package/dist/esm/index.js +1 -0
  74. package/dist/esm/loader.js +19 -0
  75. package/dist/esm/polyfills/css-shim.js +1 -0
  76. package/dist/esm/relativeTime-cd452e6d.js +7 -0
  77. package/{esm → dist/esm}/salon-booking-modal.entry.js +7 -6
  78. package/{esm → dist/esm}/salon-booking.entry.js +7 -7
  79. package/dist/esm/salon-gift-card-modal.entry.js +25 -0
  80. package/{esm → dist/esm}/salon-gift-card.entry.js +8 -7
  81. package/dist/esm/salon-latest-reviews.entry.js +93 -0
  82. package/{esm/salon-lookbook_2.entry.js → dist/esm/salon-lookbook.entry.js} +29 -58
  83. package/{esm → dist/esm}/salon-ranking.entry.js +9 -8
  84. package/dist/esm/salon-reviews.entry.js +189 -0
  85. package/dist/esm/salon-services.entry.js +77 -0
  86. package/dist/esm/salon-stylists.entry.js +114 -0
  87. package/dist/esm/services-40a3e622.js +21485 -0
  88. package/dist/esm/style-detail.entry.js +308 -0
  89. package/dist/esm/user-avatar.entry.js +41 -0
  90. package/dist/favesalon-embed/assets/map--placeholder.jpeg +0 -0
  91. package/{favesalon-embed → dist/favesalon-embed}/favesalon-embed.css +1 -1
  92. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -0
  93. package/dist/favesalon-embed/p-019c5ccd.entry.js +1 -0
  94. package/dist/favesalon-embed/p-083a8821.entry.js +1 -0
  95. package/dist/favesalon-embed/p-0d0ed9ea.entry.js +1 -0
  96. package/dist/favesalon-embed/p-119db8de.entry.js +1 -0
  97. package/dist/favesalon-embed/p-1432c51b.entry.js +1 -0
  98. package/dist/favesalon-embed/p-22093506.entry.js +1 -0
  99. package/dist/favesalon-embed/p-32b314e9.js +2 -0
  100. package/dist/favesalon-embed/p-4a5eca9a.js +6 -0
  101. package/dist/favesalon-embed/p-58d2e9be.js +1 -0
  102. package/dist/favesalon-embed/p-71404b6a.entry.js +1 -0
  103. package/dist/favesalon-embed/p-857c3a61.entry.js +1 -0
  104. package/dist/favesalon-embed/p-99ec77f7.entry.js +1 -0
  105. package/dist/favesalon-embed/p-a33331cc.js +1 -0
  106. package/dist/favesalon-embed/p-b0c3673a.entry.js +1 -0
  107. package/dist/favesalon-embed/p-b287b1ea.entry.js +1 -0
  108. package/dist/favesalon-embed/p-b3af7842.entry.js +1 -0
  109. package/dist/favesalon-embed/p-b630ae68.js +1580 -0
  110. package/dist/favesalon-embed/p-ce2c1c9a.entry.js +1 -0
  111. package/dist/favesalon-embed/p-d9b7ad58.entry.js +1 -0
  112. package/dist/favesalon-embed/p-fc9a5551.js +6 -0
  113. package/dist/types/components/chat-button/index.d.ts +24 -0
  114. package/dist/types/components/google-map/index.d.ts +5 -0
  115. package/{types → dist/types}/components/salon-gift-card/salon-gift-card-modal.d.ts +1 -0
  116. package/{types → dist/types}/components/salon-info/index.d.ts +0 -1
  117. package/{types → dist/types}/components/salon-latest-reviews/index.d.ts +2 -0
  118. package/dist/types/components/salon-latest-styles/index.d.ts +12 -0
  119. package/{types → dist/types}/components/salon-locations/index.d.ts +2 -0
  120. package/{types → dist/types}/components/salon-lookbook/index.d.ts +3 -3
  121. package/dist/types/components/salon-reviews/index.d.ts +24 -0
  122. package/{types → dist/types}/components/salon-schedules/index.d.ts +2 -0
  123. package/{types → dist/types}/components/salon-services/index.d.ts +1 -0
  124. package/{types → dist/types}/components/salon-stylists/index.d.ts +6 -0
  125. package/dist/types/components/style-detail/index.d.ts +24 -0
  126. package/{types → dist/types}/components.d.ts +76 -59
  127. package/dist/types/constants/colors.d.ts +65 -0
  128. package/dist/types/mocks/users.d.ts +10 -0
  129. package/dist/types/services/services.d.ts +75 -0
  130. package/{types → dist/types}/stencil-public-runtime.d.ts +85 -11
  131. package/dist/types/types/chat.d.ts +17 -0
  132. package/dist/types/types/common.d.ts +11 -0
  133. package/{types → dist/types}/types/review.d.ts +4 -0
  134. package/{types → dist/types}/types/salon.d.ts +3 -1
  135. package/dist/types/types/style.d.ts +88 -0
  136. package/{types → dist/types}/types/stylist.d.ts +1 -1
  137. package/{types → dist/types}/types/user.d.ts +2 -2
  138. package/loader/cdn.js +3 -0
  139. package/loader/index.cjs.js +3 -0
  140. package/loader/index.d.ts +21 -0
  141. package/loader/index.es2017.js +3 -0
  142. package/loader/index.js +4 -0
  143. package/loader/package.json +11 -0
  144. package/package.json +19 -14
  145. package/readme.md +24 -7
  146. package/cjs/colors-7f354880.js +0 -95
  147. package/cjs/favesalon-embed.cjs.js +0 -20
  148. package/cjs/google-map.cjs.entry.js +0 -47
  149. package/cjs/index-95daad08.js +0 -1928
  150. package/cjs/loader.cjs.js +0 -22
  151. package/cjs/salon-contact_4.cjs.entry.js +0 -155
  152. package/cjs/salon-gift-card-modal.cjs.entry.js +0 -25
  153. package/cjs/salon-info.cjs.entry.js +0 -35
  154. package/cjs/salon-latest-reviews.cjs.entry.js +0 -58
  155. package/cjs/salon-lookbook-modal.cjs.entry.js +0 -141
  156. package/cjs/salon-reviews.cjs.entry.js +0 -205
  157. package/cjs/salon-services.cjs.entry.js +0 -47
  158. package/cjs/salon-stylists.cjs.entry.js +0 -54
  159. package/cjs/services-f1102d4a.js +0 -5762
  160. package/collection/components/google-map/index.js +0 -97
  161. package/collection/components/salon-booking/index.js +0 -121
  162. package/collection/components/salon-booking/salon-booking-modal.js +0 -88
  163. package/collection/components/salon-contact/index.js +0 -88
  164. package/collection/components/salon-gift-card/index.css +0 -25
  165. package/collection/components/salon-gift-card/index.js +0 -120
  166. package/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -48
  167. package/collection/components/salon-info/index.css +0 -3
  168. package/collection/components/salon-info/index.js +0 -97
  169. package/collection/components/salon-latest-reviews/index.js +0 -108
  170. package/collection/components/salon-locations/index.js +0 -80
  171. package/collection/components/salon-lookbook/index.js +0 -376
  172. package/collection/components/salon-lookbook/lookbook-modal.css +0 -72
  173. package/collection/components/salon-lookbook/salon-lookbook-modal.js +0 -248
  174. package/collection/components/salon-ranking/index.js +0 -114
  175. package/collection/components/salon-reviews/index.js +0 -317
  176. package/collection/components/salon-schedules/index.css +0 -14
  177. package/collection/components/salon-schedules/index.js +0 -103
  178. package/collection/components/salon-services/index.js +0 -113
  179. package/collection/components/salon-styles/index.css +0 -23
  180. package/collection/components/salon-styles/index.js +0 -100
  181. package/collection/components/salon-stylists/index.js +0 -96
  182. package/collection/components/user-avatar/index.css +0 -0
  183. package/collection/components/user-avatar/index.js +0 -127
  184. package/collection/constants/colors.js +0 -91
  185. package/collection/services/services.js +0 -225
  186. package/collection/types/common.js +0 -2
  187. package/collection/types/salon.js +0 -52
  188. package/collection/types/style.js +0 -103
  189. package/collection/types/user.js +0 -10
  190. package/custom-elements/index.js +0 -12125
  191. package/esm/colors-1ec90c5f.js +0 -93
  192. package/esm/favesalon-embed.js +0 -18
  193. package/esm/google-map.entry.js +0 -43
  194. package/esm/index-09d43e3e.js +0 -1926
  195. package/esm/loader.js +0 -18
  196. package/esm/polyfills/css-shim.js +0 -1
  197. package/esm/salon-contact_4.entry.js +0 -148
  198. package/esm/salon-gift-card-modal.entry.js +0 -21
  199. package/esm/salon-info.entry.js +0 -31
  200. package/esm/salon-latest-reviews.entry.js +0 -54
  201. package/esm/salon-lookbook-modal.entry.js +0 -137
  202. package/esm/salon-reviews.entry.js +0 -201
  203. package/esm/salon-services.entry.js +0 -43
  204. package/esm/salon-stylists.entry.js +0 -50
  205. package/esm/services-74d84ca9.js +0 -5756
  206. package/favesalon-embed/favesalon-embed.esm.js +0 -1
  207. package/favesalon-embed/p-0188d4dc.entry.js +0 -1
  208. package/favesalon-embed/p-0318501e.js +0 -1
  209. package/favesalon-embed/p-078f242d.entry.js +0 -1
  210. package/favesalon-embed/p-13e23c61.entry.js +0 -1
  211. package/favesalon-embed/p-17df13ad.js +0 -1
  212. package/favesalon-embed/p-1a3179c8.entry.js +0 -1
  213. package/favesalon-embed/p-20aa75de.js +0 -6
  214. package/favesalon-embed/p-2901a6d6.entry.js +0 -1
  215. package/favesalon-embed/p-2b861430.entry.js +0 -1
  216. package/favesalon-embed/p-44d810a0.js +0 -1
  217. package/favesalon-embed/p-4a5eca9a.js +0 -6
  218. package/favesalon-embed/p-4c68700f.entry.js +0 -1
  219. package/favesalon-embed/p-4e2d7b29.js +0 -1
  220. package/favesalon-embed/p-6b845bf1.entry.js +0 -1
  221. package/favesalon-embed/p-7350f6b5.entry.js +0 -1
  222. package/favesalon-embed/p-897c2b1c.entry.js +0 -1
  223. package/favesalon-embed/p-8e60f56f.entry.js +0 -1
  224. package/favesalon-embed/p-a49afdc1.entry.js +0 -1
  225. package/favesalon-embed/p-c93867c4.entry.js +0 -1
  226. package/favesalon-embed/p-ea6a097f.entry.js +0 -1
  227. package/types/components/google-map/index.d.ts +0 -10
  228. package/types/components/salon-contact/index.d.ts +0 -9
  229. package/types/components/salon-lookbook/salon-lookbook-modal.d.ts +0 -13
  230. package/types/components/salon-reviews/index.d.ts +0 -24
  231. package/types/components/salon-styles/index.d.ts +0 -9
  232. package/types/constants/colors.d.ts +0 -88
  233. package/types/services/services.d.ts +0 -26
  234. package/types/types/common.d.ts +0 -2
  235. package/types/types/style.d.ts +0 -59
  236. /package/{cjs → dist/cjs}/_commonjsHelpers-5cfcba41.js +0 -0
  237. /package/{cjs → dist/cjs}/global-9073d10e.js +0 -0
  238. /package/{cjs → dist/cjs}/index.cjs.js +0 -0
  239. /package/{cjs → dist/cjs}/utils-c5a33b3c.js +0 -0
  240. /package/{esm/index.js → dist/collection/components/salon-info/index.css} +0 -0
  241. /package/{collection → dist/collection}/components/salon-latest-reviews/index.css +0 -0
  242. /package/{collection → dist/collection}/components/salon-ranking/index.css +0 -0
  243. /package/{collection → dist/collection}/components/salon-stylists/index.css +0 -0
  244. /package/{collection/components/salon-locations → dist/collection/components/user-avatar}/index.css +0 -0
  245. /package/{collection → dist/collection}/global/global.js +0 -0
  246. /package/{collection → dist/collection}/index.js +0 -0
  247. /package/{collection → dist/collection}/types/service.js +0 -0
  248. /package/{collection → dist/collection}/utils/utils.js +0 -0
  249. /package/{esm → dist/esm}/_commonjsHelpers-098d5b27.js +0 -0
  250. /package/{esm → dist/esm}/global-e1089ffd.js +0 -0
  251. /package/{esm → dist/esm}/polyfills/core-js.js +0 -0
  252. /package/{esm → dist/esm}/polyfills/dom.js +0 -0
  253. /package/{esm → dist/esm}/polyfills/es5-html-element.js +0 -0
  254. /package/{esm → dist/esm}/polyfills/index.js +0 -0
  255. /package/{esm → dist/esm}/polyfills/system.js +0 -0
  256. /package/{esm → dist/esm}/utils-e97485e0.js +0 -0
  257. /package/{favesalon-embed → dist/favesalon-embed}/index.esm.js +0 -0
  258. /package/{favesalon-embed → dist/favesalon-embed}/p-47e646f8.js +0 -0
  259. /package/{favesalon-embed → dist/favesalon-embed}/p-d6083940.js +0 -0
  260. /package/{index.cjs.js → dist/index.cjs.js} +0 -0
  261. /package/{index.js → dist/index.js} +0 -0
  262. /package/{collection/components/salon-services/index.css → dist/types/components/chat-conversation/index.d.ts} +0 -0
  263. /package/{types → dist/types}/components/salon-booking/index.d.ts +0 -0
  264. /package/{types → dist/types}/components/salon-booking/salon-booking-modal.d.ts +0 -0
  265. /package/{types → dist/types}/components/salon-gift-card/index.d.ts +0 -0
  266. /package/{types → dist/types}/components/salon-ranking/index.d.ts +0 -0
  267. /package/{types → dist/types}/components/user-avatar/index.d.ts +0 -0
  268. /package/{types → dist/types}/index.d.ts +0 -0
  269. /package/{types → dist/types}/types/service.d.ts +0 -0
  270. /package/{types → dist/types}/utils/utils.d.ts +0 -0
package/cjs/loader.cjs.js DELETED
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-d5de0b9d.js');
6
- require('./global-9073d10e.js');
7
-
8
- /*
9
- Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
10
- */
11
- const patchEsm = () => {
12
- return index.promiseResolve();
13
- };
14
-
15
- const defineCustomElements = (win, options) => {
16
- if (typeof window === 'undefined') return Promise.resolve();
17
- return patchEsm().then(() => {
18
- return index.bootstrapLazy([["salon-info.cjs",[[0,"salon-info",{"salonId":[2,"salon-id"],"backgroundColor":[1,"background-color"],"salonInfo":[32],"fetchData":[64]}]]],["salon-latest-reviews.cjs",[[0,"salon-latest-reviews",{"salonId":[2,"salon-id"],"salonReviews":[32],"fetchData":[64]}]]],["salon-lookbook-modal.cjs",[[0,"salon-lookbook-modal",{"salonId":[2,"salon-id"],"salonLookbook":[1,"salon-lookbook"],"lookbookInfo":[32],"lookbookComments":[32],"isModalOpen":[32],"fetchData":[64]}]]],["salon-reviews.cjs",[[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.cjs",[[0,"salon-stylists",{"salonId":[2,"salon-id"],"salonStylists":[32],"fetchData":[64]}]]],["salon-booking.cjs",[[0,"salon-booking",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-booking-modal.cjs",[[0,"salon-booking-modal",{"salonId":[2,"salon-id"],"primaryColor":[1,"primary-color"],"redirectUrl":[1,"redirect-url"],"isModalOpen":[32]}]]],["salon-gift-card.cjs",[[0,"salon-gift-card",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"buttonText":[1,"button-text"],"primaryColor":[1,"primary-color"]}]]],["salon-gift-card-modal.cjs",[[0,"salon-gift-card-modal",{"salonId":[2,"salon-id"],"isModalOpen":[32]}]]],["salon-services.cjs",[[0,"salon-services",{"salonId":[2,"salon-id"],"buttonClass":[1,"button-class"],"salonServices":[32],"fetchData":[64]}]]],["salon-ranking.cjs",[[0,"salon-ranking",{"ranking":[2],"height":[2],"width":[2]}]]],["google-map.cjs",[[0,"google-map",{"apiKey":[1,"api-key"],"lat":[2],"lng":[2]}]]],["salon-contact_4.cjs",[[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.cjs",[[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);
19
- });
20
- };
21
-
22
- exports.defineCustomElements = defineCustomElements;
@@ -1,155 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-d5de0b9d.js');
6
- const colors = require('./colors-7f354880.js');
7
- const utils = require('./utils-c5a33b3c.js');
8
- const services = require('./services-f1102d4a.js');
9
- require('./_commonjsHelpers-5cfcba41.js');
10
-
11
- 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}}";
12
-
13
- let SalonContact = class {
14
- constructor(hostRef) {
15
- index.registerInstance(this, hostRef);
16
- }
17
- componentWillLoad() {
18
- if (this.salonInfo) {
19
- this.salonInfoState = JSON.parse(this.salonInfo);
20
- }
21
- else {
22
- this.fetchData();
23
- }
24
- }
25
- fetchData() {
26
- try {
27
- services.HttpService().fetchSalonInfo(this.salonId)
28
- .then(salonInfo => this.salonInfoState = salonInfo);
29
- }
30
- catch (e) { }
31
- }
32
- render() {
33
- const { about, email, website, businessPhone, } = (this.salonInfoState || {});
34
- const websiteUrl = utils.formatWebsiteUrl(website);
35
- return (index.h("div", { class: "view view--salon-contact" }, index.h("div", { class: "view-content" }, index.h("div", { style: { fontSize: '16px', fontWeight: 'bold' } }, "Contact info"), index.h("div", { class: "salon-contact--links" }, businessPhone && (index.h("div", { class: "salon-contact--links-item" }, index.h("i", { class: "ri-phone-line", style: { color: colors.Colors.Gray03, fontSize: '18px', marginRight: '6px' } }), " ", businessPhone)), websiteUrl && (index.h("div", { class: "salon-contact--links-item" }, index.h("i", { class: "ri-links-line", style: { color: colors.Colors.Gray03, fontSize: '18px', marginRight: '6px' } }), " ", index.h("a", { target: websiteUrl && websiteUrl.indexOf(window.location.hostname) === -1 ? '_blank' : undefined, href: websiteUrl, style: { color: colors.Colors.Gray01, textDecoration: 'none' } }, websiteUrl))), email && (index.h("div", { class: "salon-contact--links-item" }, index.h("i", { class: "ri-mail-line", style: { color: colors.Colors.Gray03, fontSize: '18px', marginRight: '6px' } }), " ", index.h("a", { href: `mailto:${email}`, style: { color: colors.Colors.Gray01, textDecoration: 'none' } }, email)))), index.h("div", { class: "salon-contact--info--desc", style: { fontSize: '16px', marginTop: '16px' }, innerHTML: about }))));
36
- }
37
- };
38
- SalonContact.style = indexCss$3;
39
-
40
- const indexCss$2 = "";
41
-
42
- let SalonLocations = class {
43
- constructor(hostRef) {
44
- index.registerInstance(this, hostRef);
45
- }
46
- componentWillLoad() {
47
- if (this.salonInfo) {
48
- this.salonInfoState = JSON.parse(this.salonInfo);
49
- }
50
- else {
51
- this.fetchData();
52
- }
53
- }
54
- fetchData() {
55
- try {
56
- services.HttpService().fetchSalonInfo(this.salonId)
57
- .then(salonInfo => this.salonInfoState = salonInfo);
58
- }
59
- catch (e) { }
60
- }
61
- render() {
62
- const { businessLocationLat: lat, businessLocationLng: lng } = this.salonInfoState || {};
63
- return (index.h("div", { class: "view view--salon-locations" }, index.h("div", { class: "view-content", style: { height: '380px' } }, index.h("div", { style: {
64
- fontSize: '16px',
65
- lineHeight: '26px',
66
- maxHeight: '52px',
67
- marginBottom: '16px',
68
- overflow: 'hidden',
69
- textOverflow: 'ellipsis',
70
- } }, utils.formatFullAddress(this.salonInfoState)), index.h("div", { class: "view--salon-info--map", style: { height: '264px' } }, lat && lng && index.h("google-map", { lat: lat, lng: lng })))));
71
- }
72
- };
73
- SalonLocations.style = indexCss$2;
74
-
75
- 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}}";
76
-
77
- let SalonSchedules = class {
78
- constructor(hostRef) {
79
- index.registerInstance(this, hostRef);
80
- }
81
- componentWillLoad() {
82
- if (this.salonInfo) {
83
- this.salonInfoState = JSON.parse(this.salonInfo);
84
- }
85
- else {
86
- this.fetchData();
87
- }
88
- }
89
- fetchData() {
90
- try {
91
- services.HttpService().fetchSalonInfo(this.salonId)
92
- .then(salonInfo => this.salonInfoState = salonInfo);
93
- }
94
- catch (e) { }
95
- }
96
- renderBusinessHour(businessHour) {
97
- if (businessHour.status === services.BusinessHourStatus.ByAppointment) {
98
- return 'By Appointment';
99
- }
100
- if (businessHour.status === services.BusinessHourStatus.Close) {
101
- return 'Close';
102
- }
103
- return `${businessHour.openTime} - ${businessHour.closeTime}`;
104
- }
105
- render() {
106
- const businessHours = (this.salonInfoState && this.salonInfoState.businessHours) || [];
107
- return (index.h("div", { class: "view view--salon-schedules" }, index.h("div", { class: "view-content" }, businessHours.length > 0 && (index.h("div", { class: "salon-schedules" }, index.h("div", { class: "salon-schedules--title", style: { fontSize: '16px', fontWeight: 'bold' } }, "Working hours"), index.h("div", { class: "salon-schedules--dates" }, index.h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, index.h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Mon"), index.h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[0]))), index.h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, index.h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Tue"), index.h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[1]))), index.h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, index.h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Wed"), index.h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[2]))), index.h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, index.h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Thur"), index.h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[3]))), index.h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, index.h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Fri"), index.h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[4]))), index.h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, index.h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sat"), index.h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[5]))), index.h("div", { class: "salon-schedules--day", style: { marginTop: '8px' } }, index.h("div", { class: "salon-schedules--day-name", style: { fontWeight: 'bold', minWidth: '40px' } }, "Sun"), index.h("div", { class: "salon-schedules--day-time" }, this.renderBusinessHour(businessHours[6])))))))));
108
- }
109
- };
110
- SalonSchedules.style = indexCss$1;
111
-
112
- 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}";
113
-
114
- let SalonStyles = class {
115
- constructor(hostRef) {
116
- index.registerInstance(this, hostRef);
117
- }
118
- componentDidLoad() {
119
- this.fetchData();
120
- }
121
- async fetchData() {
122
- try {
123
- const promises = [
124
- services.HttpService().fetchSalonPhotos(this.salonId).then(salonStyles => this.firstPageStyles = salonStyles),
125
- services.HttpService().fetchAllSalonPhotos(this.salonId, { page: 2 }).then(nestPageStyles => this.nestPageStyles = nestPageStyles),
126
- ];
127
- return Promise.all(promises);
128
- }
129
- catch (e) { }
130
- }
131
- render() {
132
- return (index.h("div", { class: "view view--salon-styles" }, index.h("div", { class: "view-content" }, index.h("div", { class: "salon-styles--slides" }, index.h("div", { id: "salon-styles-carousel", class: "carousel slide", "data-bs-ride": "carousel" }, index.h("div", { class: "carousel-inner" }, (this.firstPageStyles || []).concat(this.nestPageStyles || []).map((photo, index$1) => {
133
- const { caption, description,
134
- // mediaType,
135
- fullImageUrl, fullImageUrlThumb, fullImageUrlMedium, imgWidth, imgHeight, } = photo;
136
- const isLandscape = imgWidth >= imgHeight;
137
- return (index.h("div", { class: `carousel-item ${index$1 === 0 ? 'active' : ''}` }, index.h("div", { class: "salon-styles--item", style: {
138
- flexDirection: isLandscape ? 'column' : 'row',
139
- justifyContent: 'center',
140
- alignItems: 'center',
141
- overflow: 'hidden',
142
- position: 'relative',
143
- display: 'flex',
144
- height: '380px',
145
- borderRadius: '8px',
146
- } }, index.h("div", { class: "salon-styles--item-background", style: Object.assign(Object.assign({}, fullImageUrlThumb ? { backgroundImage: `url(${fullImageUrlThumb})` } : {}), { backgroundColor: colors.Colors.Gray06, backgroundPosition: 'center', backgroundRepeat: 'no-repeat', backgroundSize: 'cover', position: 'absolute', bottom: '0px', right: '0px', left: '0px', top: '0px' }) }), index.h("img", { alt: caption, class: "salon-styles--item-image", src: fullImageUrlMedium || fullImageUrl, style: Object.assign({ display: 'inline-block' }, isLandscape ? { width: '100%' } : { height: '100%' }) }), index.h("div", { class: "carousel-caption d-none d-md-block" }, caption && index.h("h5", null, caption), description && index.h("p", null, description)))));
147
- })), index.h("button", { type: "button", "data-bs-slide": "prev", class: "carousel-control-prev", "data-bs-target": "#salon-styles-carousel" }, index.h("span", { class: "carousel-control-prev-icon", "aria-hidden": "true" }), index.h("span", { class: "visually-hidden" }, "Previous")), index.h("button", { type: "button", "data-bs-slide": "next", class: "carousel-control-next", "data-bs-target": "#salon-styles-carousel" }, index.h("span", { class: "carousel-control-next-icon", "aria-hidden": "true" }), index.h("span", { class: "visually-hidden" }, "Next")))))));
148
- }
149
- };
150
- SalonStyles.style = indexCss;
151
-
152
- exports.salon_contact = SalonContact;
153
- exports.salon_locations = SalonLocations;
154
- exports.salon_schedules = SalonSchedules;
155
- exports.salon_styles = SalonStyles;
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-d5de0b9d.js');
6
-
7
- 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}";
8
-
9
- let SalonGiftCardModal = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.isModalOpen = true;
13
- }
14
- closeModal() {
15
- this.isModalOpen = false;
16
- const el = document.querySelector('salon-gift-card-modal');
17
- el.remove();
18
- }
19
- render() {
20
- return (index.h("div", { class: "salon-gift-card--modal" }, this.isModalOpen && (index.h("div", { class: "salon-modal salon-modal--gift-card" }, index.h("div", { class: "salon-modal--backdrop", onClick: () => this.closeModal() }), index.h("div", { class: "salon-modal--inner" }, index.h("div", { class: "salon-modal--close", onClick: () => this.closeModal() }), index.h("div", { class: "salon-modal--content" }, index.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` })))))));
21
- }
22
- };
23
- SalonGiftCardModal.style = indexCss;
24
-
25
- exports.salon_gift_card_modal = SalonGiftCardModal;
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-d5de0b9d.js');
6
- const services = require('./services-f1102d4a.js');
7
- const colors = require('./colors-7f354880.js');
8
- require('./_commonjsHelpers-5cfcba41.js');
9
-
10
- const indexCss = ".salon-info .view--salon-styles .view-content{padding:0}";
11
-
12
- let SalonInfo = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- this.backgroundColor = colors.Colors.Gray06;
16
- }
17
- componentWillLoad() {
18
- this.fetchData();
19
- }
20
- async fetchData() {
21
- try {
22
- this.salonInfo = await services.HttpService().fetchSalonInfo(this.salonId);
23
- }
24
- catch (e) { }
25
- }
26
- render() {
27
- if (this.salonInfo) {
28
- return (index.h("div", { class: "salon-info", style: { background: this.backgroundColor } }, index.h("div", { class: "row" }, index.h("div", { class: "col-md-5", style: { marginBottom: '24px' } }, index.h("salon-locations", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), index.h("div", { class: "col-md-7", style: { marginBottom: '24px' } }, index.h("salon-styles", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) }))), index.h("div", { class: "salon-info--schedules", style: { marginBottom: '24px' } }, index.h("salon-schedules", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), index.h("div", { class: "salon-info--contact" }, index.h("salon-contact", { "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) }))));
29
- }
30
- return (index.h("div", { class: "salon-info", style: { padding: '24px', textAlign: 'center' } }, "Loading..."));
31
- }
32
- };
33
- SalonInfo.style = indexCss;
34
-
35
- exports.salon_info = SalonInfo;
@@ -1,58 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-d5de0b9d.js');
6
- const services = require('./services-f1102d4a.js');
7
- const colors = require('./colors-7f354880.js');
8
- const utils = require('./utils-c5a33b3c.js');
9
- require('./_commonjsHelpers-5cfcba41.js');
10
-
11
- const indexCss = ".salon-latest-reviews .salon-review{min-width:280px}@media (min-width: 768px){.salon-latest-reviews .salon-review{min-width:300px}}";
12
-
13
- let SalonLatestReviews = class {
14
- constructor(hostRef) {
15
- index.registerInstance(this, hostRef);
16
- this.salonReviews = [];
17
- }
18
- componentWillLoad() {
19
- this.fetchData();
20
- }
21
- async fetchData() {
22
- try {
23
- const { allItems } = await services.HttpService().fetchSalonReviews(this.salonId, { noLoop: true });
24
- this.salonReviews = [...allItems];
25
- }
26
- catch (e) { }
27
- }
28
- render() {
29
- const ratingTexts = utils.getRatingText();
30
- return (index.h("div", { class: "salon-latest-reviews", style: { overflowX: 'auto' } }, index.h("div", { style: { display: 'flex', whiteSpace: 'nowrap' } }, (this.salonReviews || []).map((review, index$1) => {
31
- const { user } = review;
32
- return (index.h("div", { class: "salon-review", style: Object.assign({ border: `1px solid ${colors.Colors.Gray05}`, background: colors.Colors.White, borderRadius: '8px', overflow: 'hidden' }, index$1 > 0 ? { marginLeft: '16px' } : {}) }, index.h("div", { class: "card", style: { border: 'none' } }, index.h("div", { class: "card-body" }, index.h("div", { class: "salon-review--user", style: { marginBottom: '16px' } }, index.h("user-avatar", { size: 48, name: user.name, shortName: `${(user.firstName || '').charAt(0)}${(user.lastName || '').charAt(0)}`, avatar: user.avatar, nameStyle: { fontWeight: 'bold' } })), index.h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row', marginBottom: '4px' } }, [1, 2, 3, 4, 5].map(score => (index.h("i", { class: score <= review.point ? 'ri-heart-fill' : 'ri-heart-line', style: {
33
- fontSize: '16px',
34
- marginRight: '4px',
35
- } }))), index.h("div", { class: "salon-review--rating--date", style: { color: colors.Colors.Gray03, marginLeft: '16px' } }, services.dayjs_min(review.createdDate).format(services.shortDate))), index.h("div", { class: "salon-review--rating-text", style: { fontSize: '16px', fontWeight: 'bold' } }, ratingTexts[review.point]), (review.title || review.description) && (index.h("div", { class: "salon-review--detail", style: { marginTop: '16px' } }, index.h("div", { class: "salon-review--description", style: {
36
- fontSize: '16px',
37
- lineHeight: '26px',
38
- overflow: 'hidden',
39
- maxHeight: review.photos.length > 0 ? '52px' : '104px',
40
- } }, review.title || review.description))), review.photos.length > 0 && (index.h("div", { style: {
41
- display: 'flex',
42
- flexDirection: 'row',
43
- overflowX: 'auto',
44
- } }, review.photos.map(photo => (index.h("div", { style: {
45
- border: '1px solid #d9d9d9',
46
- position: 'relative',
47
- cursor: 'pointer',
48
- borderRadius: '2px',
49
- height: '66px',
50
- marginTop: '16px',
51
- marginRight: '16px',
52
- } }, index.h("img", { alt: "", src: photo.imageUrlThumb, height: "64", style: { width: 'auto' } }))))))))));
53
- }))));
54
- }
55
- };
56
- SalonLatestReviews.style = indexCss;
57
-
58
- exports.salon_latest_reviews = SalonLatestReviews;
@@ -1,141 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-d5de0b9d.js');
6
- const services = require('./services-f1102d4a.js');
7
- const _commonjsHelpers = require('./_commonjsHelpers-5cfcba41.js');
8
- const colors = require('./colors-7f354880.js');
9
-
10
- var relativeTime = _commonjsHelpers.createCommonjsModule(function (module, exports) {
11
- !function(r,e){module.exports=e();}(_commonjsHelpers.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)};}}));
12
- });
13
-
14
- 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}}";
15
-
16
- services.dayjs_min.extend(relativeTime);
17
- let SalonBookingModal = class {
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- this.salonLookbook = '';
21
- this.lookbookComments = [];
22
- this.isModalOpen = true;
23
- }
24
- componentWillLoad() {
25
- if (!!this.salonLookbook) {
26
- this.lookbookInfo = JSON.parse(this.salonLookbook);
27
- this.fetchData();
28
- }
29
- }
30
- fetchData() {
31
- try {
32
- const promises = [
33
- services.HttpService().fetchStyleDetail(this.lookbookInfo.id).then(lookbookInfo => {
34
- if (lookbookInfo) {
35
- this.lookbookInfo = lookbookInfo;
36
- }
37
- }),
38
- services.HttpService().fetchStyleComments({ photo_id: [this.lookbookInfo.id] }).then(lookbookComments => this.lookbookComments = lookbookComments),
39
- ];
40
- return Promise.all(promises);
41
- }
42
- catch (e) { }
43
- }
44
- orderedStylePhotos(albumPhotos, activeId) {
45
- let selectedStyles = [];
46
- let restStyles = [];
47
- (albumPhotos || []).forEach(s => {
48
- if (s.id === activeId) {
49
- selectedStyles = selectedStyles.concat(s);
50
- }
51
- else {
52
- restStyles = restStyles.concat(s);
53
- }
54
- });
55
- return selectedStyles.concat(restStyles);
56
- }
57
- closeModal() {
58
- this.isModalOpen = false;
59
- const el = document.querySelector('salon-lookbook-modal');
60
- el.remove();
61
- }
62
- render() {
63
- const { id, caption, createdDate, albumPhotos, totalView, totalLike, totalBooking, owner, stylist, album, } = this.lookbookInfo;
64
- const oderedStyles = albumPhotos ? this.orderedStylePhotos(albumPhotos, id) : [];
65
- return (index.h("div", { class: "salon-lookbook--modal" }, this.isModalOpen && (index.h("div", { class: "salon-modal salon-modal--lookbook-detail" }, index.h("div", { class: "salon-modal--backdrop", onClick: () => this.closeModal() }), index.h("div", { class: "salon-modal--close", onClick: () => this.closeModal() }), index.h("div", { class: "salon-modal--inner" }, index.h("div", { class: "salon-modal--content" }, index.h("div", { class: "style-detail--container", style: {
66
- backgroundColor: colors.Colors.White,
67
- marginRight: 'auto',
68
- marginLeft: 'auto',
69
- maxWidth: '990',
70
- } }, oderedStyles.length > 0 && (index.h("div", { class: "style-detail--photos" }, index.h("div", { id: "style-detail-carousel", class: "carousel slide", "data-bs-ride": "carousel" }, index.h("div", { class: "carousel-inner" }, oderedStyles.map((photo, index$1) => {
71
- const { caption, description,
72
- // mediaType,
73
- fullImageUrl, fullImageUrlThumb, fullImageUrlMedium, imgWidth, imgHeight, } = photo;
74
- const isLandscape = imgWidth >= imgHeight;
75
- return (index.h("div", { class: `carousel-item ${index$1 === 0 ? 'active' : ''}` }, index.h("div", { class: "salon-styles--item", style: {
76
- flexDirection: isLandscape ? 'column' : 'row',
77
- justifyContent: 'center',
78
- alignItems: 'center',
79
- overflow: 'hidden',
80
- position: 'relative',
81
- display: 'flex',
82
- height: '240px',
83
- borderRadius: '8px 8px 0 0',
84
- } }, index.h("div", { class: "salon-styles--item-background", style: Object.assign(Object.assign({}, fullImageUrlThumb ? { backgroundImage: `url(${fullImageUrlThumb})` } : {}), { backgroundColor: colors.Colors.Gray06, backgroundPosition: 'center', backgroundRepeat: 'no-repeat', backgroundSize: 'cover', position: 'absolute', bottom: '0px', right: '0px', left: '0px', top: '0px', zIndex: '1' }) }), index.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%' }) }), index.h("div", { class: "carousel-caption d-none d-md-block" }, caption && index.h("h5", null, caption), description && index.h("p", null, description)))));
85
- })), index.h("button", { type: "button", "data-bs-slide": "prev", class: "carousel-control-prev", "data-bs-target": "#style-detail-carousel" }, index.h("span", { class: "carousel-control-prev-icon", "aria-hidden": "true" }), index.h("span", { class: "visually-hidden" }, "Previous")), index.h("button", { type: "button", "data-bs-slide": "next", class: "carousel-control-next", "data-bs-target": "#style-detail-carousel" }, index.h("span", { class: "carousel-control-next-icon", "aria-hidden": "true" }), index.h("span", { class: "visually-hidden" }, "Next"))))), index.h("div", { class: "style-detail--metadata" }, index.h("div", { class: "style-detail--metadata-detail", style: {
86
- position: 'relative',
87
- overflowY: 'auto',
88
- padding: '16px 24px',
89
- height: '100%',
90
- } }, index.h("div", { class: "style-detail--info--field style-detail--metadata-stats", style: {
91
- display: 'flex',
92
- flexDirection: 'row',
93
- justifyContent: 'flex-start',
94
- marginBottom: '16px',
95
- } }, index.h("div", { style: { display: 'flex', alignItems: 'center' } }, index.h("i", { class: "ri-eye-line", style: {
96
- color: colors.Colors.Gray03,
97
- fontSize: '16px',
98
- marginRight: '4px',
99
- position: 'relative',
100
- top: '1px',
101
- } }), " ", totalView, " ", totalView === 1 ? 'view' : 'views'), index.h("div", { style: { display: 'flex', alignItems: 'center', marginLeft: '16px' } }, index.h("i", { class: "ri-heart-fill", style: {
102
- color: colors.Colors.Gray03,
103
- fontSize: '16px',
104
- marginRight: '4px',
105
- position: 'relative',
106
- top: '1px',
107
- } }), " ", totalLike, " ", totalLike === 1 ? 'fave' : 'faves'), index.h("div", { style: { display: 'flex', alignItems: 'center', marginLeft: '16px' } }, index.h("i", { class: "ri-calendar-check-line", style: {
108
- color: colors.Colors.Gray03,
109
- fontSize: '16px',
110
- marginRight: '4px',
111
- position: 'relative',
112
- top: '1px',
113
- } }), " ", totalBooking, " booked")), index.h("div", { style: {
114
- display: 'flex',
115
- flexDirection: 'row',
116
- justifyContent: 'space-between',
117
- } }, owner && (index.h("div", { class: "style-detail--info--field" }, index.h("span", { style: {
118
- fontSize: '14px',
119
- color: colors.Colors.Gray03,
120
- } }, "Posted by"), " ", index.h("span", { style: {
121
- fontSize: '16px',
122
- fontWeight: 'bold',
123
- color: colors.Colors.Gray01,
124
- } }, owner.name))), index.h("div", { class: "style-detail--info--field", style: {
125
- fontSize: '14px',
126
- color: colors.Colors.Gray03,
127
- } }, services.dayjs_min(createdDate).fromNow())), caption && (index.h("div", { class: "style-detail--info--field", style: {
128
- color: colors.Colors.Gray01,
129
- marginTop: '12px',
130
- fontSize: '24px',
131
- } }, caption)), stylist && (index.h("div", { class: "style-detail--info--field", style: { marginTop: '24px' } }, index.h("div", { style: { fontSize: '14px', color: colors.Colors.Gray03, marginBottom: '8px' } }, "Stylist"), index.h("div", { style: {
132
- display: 'flex',
133
- flexDirection: 'row',
134
- justifyContent: 'space-between',
135
- alignItems: 'center',
136
- } }, index.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 && (index.h("div", { class: "style-detail--info--field", style: { marginTop: '24px' } }, index.h("div", { style: { fontSize: '14px', color: colors.Colors.Gray03, marginBottom: '8px' } }, "Services"), index.h("div", { style: { fontSize: '16px', color: colors.Colors.Gray01 } }, album.service.name))))))))))));
137
- }
138
- };
139
- SalonBookingModal.style = lookbookModalCss;
140
-
141
- exports.salon_lookbook_modal = SalonBookingModal;