favesalon-embed 0.0.2 → 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 (240) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/_commonjsHelpers-5cfcba41.js +36 -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/dist/cjs/index-7f190886.js +4396 -0
  8. package/{cjs/index-7d179a70.js → dist/cjs/index-e6bea8f5.js} +87 -3
  9. package/{cjs → dist/cjs}/index.cjs.js +0 -0
  10. package/dist/cjs/loader.cjs.js +22 -0
  11. package/dist/cjs/salon-booking-modal.cjs.entry.js +29 -0
  12. package/dist/cjs/salon-booking.cjs.entry.js +50 -0
  13. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +28 -0
  14. package/dist/cjs/salon-gift-card.cjs.entry.js +50 -0
  15. package/dist/cjs/salon-latest-reviews.cjs.entry.js +95 -0
  16. package/dist/cjs/salon-lookbook.cjs.entry.js +218 -0
  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-d6f8214c.js → dist/cjs/services-eee8f251.js} +317 -361
  22. package/dist/cjs/style-detail.cjs.entry.js +310 -0
  23. package/{cjs → dist/cjs}/user-avatar.cjs.entry.js +4 -4
  24. package/{cjs → dist/cjs}/utils-c5a33b3c.js +0 -0
  25. package/{collection → dist/collection}/collection-manifest.json +2 -2
  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 +29 -11
  31. package/{collection → dist/collection}/components/salon-booking/salon-booking-modal.js +12 -6
  32. package/dist/collection/components/salon-gift-card/index.css +25 -0
  33. package/{collection → dist/collection}/components/salon-gift-card/index.js +44 -6
  34. package/{collection → dist/collection}/components/salon-gift-card/salon-gift-card-modal.js +30 -4
  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/dist/collection/components/salon-lookbook/index.css +12 -0
  44. package/{collection → dist/collection}/components/salon-lookbook/index.js +122 -49
  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/dist/collection/components/salon-reviews/index.css +15 -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/components/salon-reviews → dist/collection/components/salon-services}/index.css +0 -0
  52. package/dist/collection/components/salon-services/index.js +156 -0
  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/components/salon-services → 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/dist/collection/types/stylist.js +30 -0
  69. package/{collection/components/user-avatar/index.css → 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 -12
  73. package/{custom-elements → dist/custom-elements}/index.js +5783 -870
  74. package/dist/esm/_commonjsHelpers-098d5b27.js +32 -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-2160b80b.js → dist/esm/index-6af0a03d.js} +87 -4
  80. package/dist/esm/index-80523fec.js +4393 -0
  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/dist/esm/salon-booking-modal.entry.js +25 -0
  90. package/dist/esm/salon-booking.entry.js +46 -0
  91. package/dist/esm/salon-gift-card-modal.entry.js +24 -0
  92. package/dist/esm/salon-gift-card.entry.js +46 -0
  93. package/dist/esm/salon-latest-reviews.entry.js +91 -0
  94. package/dist/esm/salon-lookbook.entry.js +214 -0
  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-57fadd0a.js → dist/esm/services-295247b1.js} +310 -355
  100. package/dist/esm/style-detail.entry.js +306 -0
  101. package/{esm → dist/esm}/user-avatar.entry.js +4 -4
  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/{favesalon-embed → 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/dist/favesalon-embed/p-d6083940.js +1 -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 +1 -1
  131. package/{types → dist/types}/components/salon-booking/salon-booking-modal.d.ts +1 -0
  132. package/{types → dist/types}/components/salon-gift-card/index.d.ts +2 -1
  133. package/{types → dist/types}/components/salon-gift-card/salon-gift-card-modal.d.ts +2 -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 +7 -2
  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 +2 -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 +62 -41
  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 +2 -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 +23 -2
  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/loader.cjs.js +0 -22
  172. package/cjs/salon-booking-modal.cjs.entry.js +0 -23
  173. package/cjs/salon-booking_2.cjs.entry.js +0 -56
  174. package/cjs/salon-contact_4.cjs.entry.js +0 -154
  175. package/cjs/salon-gift-card-modal.cjs.entry.js +0 -20
  176. package/cjs/salon-info.cjs.entry.js +0 -34
  177. package/cjs/salon-latest-reviews.cjs.entry.js +0 -57
  178. package/cjs/salon-lookbook.cjs.entry.js +0 -187
  179. package/cjs/salon-reviews.cjs.entry.js +0 -196
  180. package/cjs/salon-services.cjs.entry.js +0 -40
  181. package/cjs/salon-stylists.cjs.entry.js +0 -53
  182. package/collection/components/google-map/index.js +0 -97
  183. package/collection/components/salon-contact/index.js +0 -88
  184. package/collection/components/salon-gift-card/index.css +0 -25
  185. package/collection/components/salon-info/index.css +0 -3
  186. package/collection/components/salon-latest-reviews/index.js +0 -108
  187. package/collection/components/salon-locations/index.js +0 -80
  188. package/collection/components/salon-lookbook/index.css +0 -12
  189. package/collection/components/salon-reviews/index.js +0 -291
  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-services/index.js +0 -86
  193. package/collection/components/salon-styles/index.css +0 -23
  194. package/collection/components/salon-styles/index.js +0 -100
  195. package/collection/components/salon-stylists/index.js +0 -96
  196. package/collection/constants/colors.js +0 -91
  197. package/collection/services/services.js +0 -203
  198. package/collection/types/common.js +0 -2
  199. package/collection/types/salon.js +0 -52
  200. package/collection/types/style.js +0 -28
  201. package/collection/types/stylist.js +0 -13
  202. package/esm/colors-1ec90c5f.js +0 -93
  203. package/esm/favesalon-embed.js +0 -18
  204. package/esm/google-map.entry.js +0 -43
  205. package/esm/loader.js +0 -18
  206. package/esm/salon-booking-modal.entry.js +0 -19
  207. package/esm/salon-booking_2.entry.js +0 -51
  208. package/esm/salon-contact_4.entry.js +0 -147
  209. package/esm/salon-gift-card-modal.entry.js +0 -16
  210. package/esm/salon-info.entry.js +0 -30
  211. package/esm/salon-latest-reviews.entry.js +0 -53
  212. package/esm/salon-lookbook.entry.js +0 -183
  213. package/esm/salon-reviews.entry.js +0 -192
  214. package/esm/salon-services.entry.js +0 -36
  215. package/esm/salon-stylists.entry.js +0 -49
  216. package/favesalon-embed/favesalon-embed.esm.js +0 -1
  217. package/favesalon-embed/p-14a46adf.entry.js +0 -1
  218. package/favesalon-embed/p-2da2ed75.js +0 -1
  219. package/favesalon-embed/p-3712d9ab.entry.js +0 -1
  220. package/favesalon-embed/p-38066f9f.entry.js +0 -1
  221. package/favesalon-embed/p-4e2d7b29.js +0 -1
  222. package/favesalon-embed/p-520c8ffb.entry.js +0 -1
  223. package/favesalon-embed/p-54a1c294.entry.js +0 -1
  224. package/favesalon-embed/p-762520f2.js +0 -1
  225. package/favesalon-embed/p-94a0991e.entry.js +0 -1
  226. package/favesalon-embed/p-94b179eb.entry.js +0 -1
  227. package/favesalon-embed/p-977bd8bc.entry.js +0 -1
  228. package/favesalon-embed/p-bc363938.entry.js +0 -1
  229. package/favesalon-embed/p-bf9c83a3.entry.js +0 -1
  230. package/favesalon-embed/p-c5ebd3c9.entry.js +0 -1
  231. package/favesalon-embed/p-d84b61b0.entry.js +0 -1
  232. package/favesalon-embed/p-f15bcb43.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-reviews/index.d.ts +0 -23
  236. package/types/components/salon-styles/index.d.ts +0 -9
  237. package/types/constants/colors.d.ts +0 -88
  238. package/types/services/services.d.ts +0 -24
  239. package/types/types/common.d.ts +0 -2
  240. package/types/types/style.d.ts +0 -49
@@ -1,192 +0,0 @@
1
- import { r as registerInstance, h } from './index-2160b80b.js';
2
- import { d as dayjs_min, s as shortDate, H as HttpService, a as sortBy_1, g as groupBy_1 } from './services-57fadd0a.js';
3
- import { C as Colors } from './colors-1ec90c5f.js';
4
- import { g as getRatingText } from './utils-e97485e0.js';
5
-
6
- const indexCss = "";
7
-
8
- const pageLimited = 20;
9
- const sortOptions = [{
10
- value: 'newest',
11
- label: 'Newest first',
12
- }, {
13
- value: 'oldest',
14
- label: 'Oldest first',
15
- }, {
16
- value: 'rating_desc',
17
- label: 'High rating first',
18
- }, {
19
- value: 'rating_asc',
20
- label: 'Low rating first',
21
- }];
22
- const scoreValuesMapping = {
23
- all: 'all',
24
- star1: 1,
25
- star2: 2,
26
- star3: 3,
27
- star4: 4,
28
- star5: 5,
29
- };
30
- let SalonReviews = class {
31
- constructor(hostRef) {
32
- registerInstance(this, hostRef);
33
- this.totalReviews = 0;
34
- this.salonReviews = [];
35
- this.pageOffset = pageLimited;
36
- this.ratings = [scoreValuesMapping.all, 'star1', 'star2', 'star3', 'star4', 'star5'];
37
- this.sorting = sortOptions[0].value;
38
- this.renderReviewsList = () => {
39
- const ratingTexts = getRatingText();
40
- const filteredReviews = this.getFilteredReviews(this.pageOffset);
41
- const filteredReviewsCount = this.ratings.indexOf(scoreValuesMapping.all) > -1
42
- ? this.totalReviews : filteredReviews.length;
43
- return (h("div", { class: "reviews-list" }, h("div", { class: "reviews-list--header", style: {
44
- display: 'flex',
45
- flexDirection: 'row',
46
- justifyContent: 'space-between',
47
- alignItems: 'center',
48
- marginBottom: '24px',
49
- } }, h("div", { class: "reviews-list--couter", style: { fontWeight: 'bold' } }, filteredReviewsCount, " ", filteredReviewsCount === 1 ? `review` : `reviews`), h("div", { class: "reviews-list--sorting", style: {
50
- display: 'flex',
51
- flexDirection: 'row',
52
- alignItems: 'center',
53
- } }, h("label", { style: { marginRight: '8px' } }, "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 => {
54
- const { user } = review;
55
- return (h("div", { class: "salon-review", style: {
56
- marginBottom: '24px',
57
- paddingBottom: '24px',
58
- borderBottom: `1px solid ${Colors.Gray05}`,
59
- } }, 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 => (h("i", { class: score <= review.point ? 'ri-heart-fill' : 'ri-heart-line', style: {
60
- fontSize: '16px',
61
- marginRight: '4px',
62
- } }))), 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: {
63
- display: 'flex',
64
- flexDirection: 'row',
65
- overflowX: 'auto',
66
- } }, review.photos.map(fileObj => (h("div", { style: {
67
- border: '1px solid #d9d9d9',
68
- position: 'relative',
69
- cursor: 'pointer',
70
- borderRadius: '2px',
71
- height: '66px',
72
- marginTop: '16px',
73
- marginRight: '16px',
74
- } }, h("img", { alt: "", src: fileObj.imageUrlThumb, height: "64", style: { width: 'auto' } }))))))));
75
- })), 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')))));
76
- };
77
- }
78
- componentWillLoad() {
79
- this.fetchData();
80
- }
81
- fetchData() {
82
- try {
83
- const promises = [
84
- HttpService().fetchSalonInfo(this.salonId).then(salonInfo => this.salonInfo = salonInfo),
85
- HttpService().fetchSalonReviews(this.salonId, { limit: pageLimited }).then(response => {
86
- const { total, allItems } = response;
87
- this.totalReviews = total;
88
- this.salonReviews = allItems;
89
- if (total > pageLimited) {
90
- this.canLoadMore = true;
91
- }
92
- }),
93
- ];
94
- return Promise.all(promises);
95
- }
96
- catch (e) { }
97
- }
98
- sortReviews(filteredReviews) {
99
- return sortBy_1(filteredReviews, [review => {
100
- if (this.sorting === 'rating_desc') {
101
- return -review.point;
102
- }
103
- if (this.sorting === 'rating_asc') {
104
- return review.point;
105
- }
106
- const createdTime = dayjs_min(review.createdDate).unix();
107
- return this.sorting === 'oldest' ? createdTime : -createdTime;
108
- }]);
109
- }
110
- getFilteredReviews(pageOffset) {
111
- let filteredReviews = [...this.salonReviews];
112
- if (this.ratings.indexOf(scoreValuesMapping.all) === -1) {
113
- const reviewRatingScores = this.ratings.map(r => scoreValuesMapping[r]);
114
- filteredReviews = [...filteredReviews].filter(review => reviewRatingScores.indexOf(review.point) > -1);
115
- }
116
- const sortedReviews = this.sortReviews(filteredReviews);
117
- return pageOffset ? sortedReviews.slice(0, pageOffset) : sortedReviews;
118
- }
119
- onLoadMore() {
120
- this.isLoadingMore = true;
121
- try {
122
- this.pageOffset += pageLimited;
123
- const totalResults = this.getFilteredReviews(this.pageOffset).length;
124
- if (this.pageOffset > totalResults) {
125
- this.canLoadMore = false;
126
- }
127
- }
128
- catch (error) { }
129
- this.isLoadingMore = false;
130
- }
131
- onChangeSorting(sorting) {
132
- this.sorting = sorting;
133
- this.pageOffset = pageLimited;
134
- this.canLoadMore = this.getFilteredReviews(pageLimited).length >= pageLimited;
135
- }
136
- ;
137
- onChangeFilterRating(rating) {
138
- if (rating === scoreValuesMapping.all) {
139
- this.ratings = [scoreValuesMapping.all, 'star1', 'star2', 'star3', 'star4', 'star5'];
140
- }
141
- else if (this.ratings.indexOf(rating) > -1) {
142
- this.ratings = this.ratings.filter(r => r !== scoreValuesMapping.all && r !== rating);
143
- }
144
- else {
145
- const needFilterByAll = this.ratings.concat([rating]).filter(r => r !== scoreValuesMapping.all).length === 5;
146
- this.ratings = needFilterByAll
147
- ? [scoreValuesMapping.all, 'star1', 'star2', 'star3', 'star4', 'star5']
148
- : this.ratings.concat([rating]);
149
- }
150
- this.pageOffset = pageLimited;
151
- this.canLoadMore = this.getFilteredReviews(pageLimited).length >= pageLimited;
152
- }
153
- ;
154
- renderReviewsFilters() {
155
- const reviewsByScore = groupBy_1(this.salonReviews, review => review.point);
156
- return (h("div", { class: "salon-reviews--filters-by-ratings" }, h("div", { style: {
157
- fontWeight: 'bold',
158
- marginBottom: '12px',
159
- marginTop: '32px',
160
- } }, "Filter by ratings"), h("div", { class: "salon-reviews--filters-by-ratings--options" }, h("div", { class: "antd-checkbox--wrapper", style: { marginBottom: '12px' } }, h("div", { class: "antd-checkbox--box" }, h("div", { class: "form-check" }, h("input", { type: "checkbox", class: "form-check-input", value: scoreValuesMapping.all, onChange: () => this.onChangeFilterRating(scoreValuesMapping.all), checked: this.ratings.indexOf(scoreValuesMapping.all) > -1 }), h("label", { class: "form-check-label" }, "All ratings")))), [5, 4, 3, 2, 1].filter(score => reviewsByScore[score]).map(score => {
161
- const scoreReviewCount = reviewsByScore[score].length;
162
- return (h("div", { style: {
163
- display: 'flex',
164
- flexDirection: 'row',
165
- justifyContent: 'space-between',
166
- marginBottom: '12px',
167
- } }, h("div", { class: "form-check" }, h("input", { value: "", type: "checkbox", class: "form-check-input", onChange: () => this.onChangeFilterRating(`star${score}`), checked: this.ratings.indexOf(scoreValuesMapping.all) > -1 || this.ratings.indexOf(`star${score}`) > -1 }), h("label", { class: "form-check-label" }, [1, 2, 3, 4, 5].slice(0, score).map(() => (h("i", { class: "ri-heart-fill", style: {
168
- fontSize: '16px',
169
- marginRight: '4px',
170
- } }))))), h("div", { style: { color: Colors.Gray01 } }, scoreReviewCount)));
171
- }))));
172
- }
173
- render() {
174
- const { rating } = this.salonInfo || {};
175
- 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 => (h("i", { class: score <= rating ? 'ri-heart-fill' : 'ri-heart-line', style: {
176
- fontSize: '32px',
177
- marginRight: '4px',
178
- } })))), h("div", { class: "salon-review--rating--date", style: {
179
- display: 'flex',
180
- flexDirection: 'row',
181
- alignItems: 'center',
182
- marginTop: '-8px',
183
- } }, 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: {
184
- flexGrow: '1',
185
- flexShrink: '1',
186
- paddingLeft: '64px',
187
- } }, this.renderReviewsList())));
188
- }
189
- };
190
- SalonReviews.style = indexCss;
191
-
192
- export { SalonReviews as salon_reviews };
@@ -1,36 +0,0 @@
1
- import { r as registerInstance, h } from './index-2160b80b.js';
2
- import { H as HttpService, a as sortBy_1 } from './services-57fadd0a.js';
3
- import { C as Colors } from './colors-1ec90c5f.js';
4
-
5
- const indexCss = "";
6
-
7
- let SalonServices = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- }
11
- componentWillLoad() {
12
- this.fetchData();
13
- }
14
- async fetchData() {
15
- try {
16
- this.salonServices = await HttpService().fetchSalonServices(this.salonId);
17
- }
18
- catch (e) { }
19
- }
20
- render() {
21
- return (h("div", { class: "salon-services--container" }, h("div", { class: "view view--salon-services--header", style: { border: `1px solid ${Colors.Gray05}` } }, h("div", { class: "view-content", style: { overflowX: 'auto' } }, h("div", { style: { whiteSpace: 'nowrap' } }, sortBy_1(this.salonServices || [], (['order', 'name'])).map((serviceGroup, index) => (h("button", { type: "button", class: "btn btn-light", style: index > 0 ? { marginLeft: '12px' } : {} }, serviceGroup.name)))))), sortBy_1(this.salonServices || [], (['order', 'name'])).map(serviceGroup => {
22
- const hasMultipleCates = (serviceGroup.data || []).length > 1;
23
- return (h("div", { style: { marginTop: '32px' } }, h("h3", { style: { fontSize: '24px', marginBottom: '12px' } }, serviceGroup.name), h("div", { class: "view view--salon-service-type", style: { border: `1px solid ${Colors.Gray05}` } }, h("div", { class: "view-content" }, (serviceGroup.data || []).map((subGroup, subGroupIndex) => (h("div", { class: "salon-service-category" }, hasMultipleCates && (h("h4", { style: Object.assign({ fontSize: '20px', marginBottom: '12px', paddingBottom: '12px', borderBottom: `1px solid ${Colors.Gray06}` }, subGroupIndex > 0 ? { marginTop: '32px' } : {}) }, subGroup.name)), (subGroup.data || []).map((service, serviceIndex) => (h("div", { class: "salon-service" }, h("div", { class: "salon-service--name", style: Object.assign({ fontSize: '16px' }, serviceIndex > 0 ? {
24
- marginTop: '12px',
25
- paddingTop: '12px',
26
- borderTop: `1px solid ${Colors.Gray06}`,
27
- } : {}) }, service.name), (!service.hideDuration || !service.hidePrice) && (h("div", { style: { display: 'block', marginTop: '4px' } }, [
28
- !service.hideDuration ? `${service.duration} mins` : '',
29
- !service.hidePrice ? `$${service.price}` : '',
30
- ].join(' · ')))))))))))));
31
- })));
32
- }
33
- };
34
- SalonServices.style = indexCss;
35
-
36
- export { SalonServices as salon_services };
@@ -1,49 +0,0 @@
1
- import { r as registerInstance, h } from './index-2160b80b.js';
2
- import { C as Colors } from './colors-1ec90c5f.js';
3
- import { H as HttpService } from './services-57fadd0a.js';
4
-
5
- const indexCss = ".view--salon-stylists{overflow:hidden;margin-left:-12px;margin-top:-12px}.view--salon-stylists .salon-stylist{float:left;padding-left:12px;padding-top:12px;width:50%}.view--salon-stylists .salon-stylist--avatar{height:180px}@media (min-width: 576px){.view--salon-stylists .salon-stylist{width:33.33%;max-width:240px}}@media (min-width: 768px){.view--salon-stylists{margin-left:-24px;margin-top:-24px}.view--salon-stylists .salon-stylist{padding-left:24px;padding-top:24px;width:264px;max-width:none}.view--salon-stylists .salon-stylist--avatar{height:240px}}";
6
-
7
- let SalonStylists = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- }
11
- componentWillLoad() {
12
- this.fetchData();
13
- }
14
- async fetchData() {
15
- try {
16
- this.salonStylists = await HttpService().fetchSalonStylists(this.salonId);
17
- }
18
- catch (e) { }
19
- }
20
- render() {
21
- return (h("div", { class: "view--salon-stylists" }, (this.salonStylists || []).map(stylist => (h("div", { class: "salon-stylist" }, h("div", { class: "card", style: {
22
- border: `1px solid ${Colors.Gray05}`,
23
- borderRadius: '8px',
24
- overflow: 'hidden',
25
- } }, h("div", { class: "salon-stylist--avatar", style: {
26
- backgroundImage: `url("${stylist.avatar}")`,
27
- backgroundColor: Colors.Gray06,
28
- backgroundRepeat: 'no-repeat',
29
- backgroundPosition: 'center top',
30
- backgroundSize: 'cover',
31
- position: 'relative',
32
- display: 'flex',
33
- width: '100%',
34
- alignItems: 'center',
35
- justifyContent: 'center',
36
- } }, !stylist.avatar && (h("span", { style: {
37
- fontSize: '32px',
38
- fontWeight: 'bold',
39
- textTransform: 'uppercase',
40
- } }, (stylist.firstName || '').charAt(0), " ", (stylist.lastName || '').charAt(0)))), h("div", { class: "card-body" }, h("div", { style: {
41
- fontSize: '16px',
42
- fontWeight: 'bold',
43
- textAlign: 'center',
44
- } }, stylist.name), h("div", { style: { marginTop: '4px' } }, h("salon-ranking", { ranking: stylist.rating })))))))));
45
- }
46
- };
47
- SalonStylists.style = indexCss;
48
-
49
- export { SalonStylists as salon_stylists };
@@ -1 +0,0 @@
1
- import{p as o,b as a}from"./p-2da2ed75.js";import"./p-4a5eca9a.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),o(s)})().then((o=>a([["p-54a1c294",[[0,"salon-info",{salonId:[2,"salon-id"],backgroundColor:[1,"background-color"],salonInfo:[32],fetchData:[64]}]]],["p-d84b61b0",[[0,"salon-latest-reviews",{salonId:[2,"salon-id"],salonReviews:[32],fetchData:[64]}]]],["p-bc363938",[[0,"salon-lookbook",{salonId:[2,"salon-id"],isLoading:[32],isLoadingMore:[32],hideLoadMore:[32],currentPage:[32],totalLookbooks:[32],salonCategories:[32],salonLookbooks:[32],isLayoutSetup:[32],fetchData:[64],fetchLookbooks:[64],onLoadMore:[64],fetchCategories:[64]}]]],["p-3712d9ab",[[0,"salon-reviews",{salonId:[2,"salon-id"],salonInfo:[32],totalReviews:[32],salonReviews:[32],canLoadMore:[32],isLoadingMore:[32],pageOffset:[32],ratings:[32],sorting:[32],fetchData:[64]}]]],["p-977bd8bc",[[0,"salon-stylists",{salonId:[2,"salon-id"],salonStylists:[32],fetchData:[64]}]]],["p-bf9c83a3",[[0,"salon-booking",{salonId:[2,"salon-id"],buttonText:[1,"button-text"],buttonClass:[1,"button-class"],primaryColor:[1,"primary-color"]}],[0,"salon-gift-card",{salonId:[2,"salon-id"],buttonText:[1,"button-text"],buttonClass:[1,"button-class"]}]]],["p-94a0991e",[[0,"salon-booking-modal",{salonId:[2,"salon-id"],primaryColor:[1,"primary-color"],redirectUrl:[1,"redirect-url"],isModalOpen:[32]}]]],["p-f15bcb43",[[0,"salon-gift-card-modal",{salonId:[2,"salon-id"],isModalOpen:[32]}]]],["p-520c8ffb",[[0,"salon-services",{salonId:[2,"salon-id"],salonServices:[32],fetchData:[64]}]]],["p-c5ebd3c9",[[0,"salon-ranking",{ranking:[2],height:[2],width:[2]}]]],["p-14a46adf",[[0,"google-map",{apiKey:[1,"api-key"],lat:[2],lng:[2]}]]],["p-94b179eb",[[0,"user-avatar",{size:[2],name:[1],nameStyle:[16],shortName:[1,"short-name"],avatar:[1]}]]],["p-38066f9f",[[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]}]]]],o)));
@@ -1 +0,0 @@
1
- import{r as o,h as t}from"./p-2da2ed75.js";let e=class{constructor(t){o(this,t),this.apiKey="AIzaSyBW4PbW9aM2FXZl83Gs7jeRmekEWSzC1sY"}componentDidLoad(){this.injectSDK().then((()=>{setTimeout((()=>this.initMap()),300)}))}injectSDK(){return new Promise((o=>{window.mapInit=()=>o(!0);const t=document.createElement("script");return t.id="googleMaps",t.src=this.apiKey?"https://maps.googleapis.com/maps/api/js?key="+this.apiKey+"&callback=mapInit":"https://maps.googleapis.com/maps/api/js?callback=mapInit",document.body.appendChild(t),o(!0)}))}initMap(){const o={center:{lat:this.lat,lng:this.lng},zoom:8};this.map=new window.google.maps.Map(document.getElementById("google-map-container"),o)}render(){return t("div",{id:"google-map-container"})}};e.style="#google-map-container,google-map{display:block;width:100%;height:100%}";export{e as google_map}
@@ -1 +0,0 @@
1
- let e=!1,t=!1;const n="undefined"!=typeof window?window:{},l=n.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},s=e=>Promise.resolve(e),r=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),c=new WeakMap,i=e=>"sc-"+e.o,a={},u=e=>"object"==(e=typeof e)||"function"===e,f=(e,t,...n)=>{let l=null,o=!1,s=!1,r=[];const c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!u(l))&&(l+=""),o&&s?r[r.length-1].i+=l:r.push(o?$(null,l):l),s=o)};if(c(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=$(e,null);return i.u=t,r.length>0&&(i.$=r),i},$=(e,t)=>({t:0,h:e,i:t,p:null,$:null,u:null}),d={},h=(e,t,l,s,r,c)=>{if(l!==s){let i=q(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,n=y(l),o=y(s);t.remove(...n.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!n.includes(e))))}else if("style"===t){for(const t in l)s&&null!=s[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in s)l&&s[t]===l[t]||(t.includes("-")?e.style.setProperty(t,s[t]):e.style[t]=s[t])}else if(i||"o"!==t[0]||"n"!==t[1]){const n=u(s);if((i||n&&null!==s)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{let n=null==s?"":s;"list"===t?i=!1:null!=l&&e[t]==n||(e[t]=n)}}catch(e){}null==s||!1===s?!1===s&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&c||r)&&!n&&e.setAttribute(t,s=!0===s?"":s)}else t="-"===t[2]?t.slice(3):q(n,a)?a.slice(2):a[2]+t.slice(3),l&&o.rel(e,t,l,!1),s&&o.ael(e,t,s,!1)}},p=/\s/,y=e=>e?e.split(p):[],m=(e,t,n,l)=>{const o=11===t.p.nodeType&&t.p.host?t.p.host:t.p,s=e&&e.u||a,r=t.u||a;for(l in s)l in r||h(o,l,s[l],void 0,n,t.t);for(l in r)h(o,l,s[l],r[l],n,t.t)},w=(t,n,o)=>{let s,r,c=n.$[o],i=0;if(null!==c.i)s=c.p=l.createTextNode(c.i);else{if(e||(e="svg"===c.h),s=c.p=l.createElementNS(e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.h),e&&"foreignObject"===c.h&&(e=!1),m(null,c,e),c.$)for(i=0;i<c.$.length;++i)r=w(t,c,i),r&&s.appendChild(r);"svg"===c.h?e=!1:"foreignObject"===s.tagName&&(e=!0)}return s},b=(e,t,n,l,o,s)=>{let r,c=e;for(;o<=s;++o)l[o]&&(r=w(null,n,o),r&&(l[o].p=r,c.insertBefore(r,t)))},g=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.p.remove()},v=(e,t)=>e.h===t.h,j=(t,n)=>{const l=n.p=t.p,o=t.$,s=n.$,r=n.h,c=n.i;null===c?(e="svg"===r||"foreignObject"!==r&&e,m(t,n,e),null!==o&&null!==s?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],a=t[c],u=l.length-1,f=l[0],$=l[u];for(;s<=c&&r<=u;)null==i?i=t[++s]:null==a?a=t[--c]:null==f?f=l[++r]:null==$?$=l[--u]:v(i,f)?(j(i,f),i=t[++s],f=l[++r]):v(a,$)?(j(a,$),a=t[--c],$=l[--u]):v(i,$)?(j(i,$),e.insertBefore(i.p,a.p.nextSibling),i=t[++s],$=l[--u]):v(a,f)?(j(a,f),e.insertBefore(a.p,i.p),a=t[--c],f=l[++r]):(o=w(t&&t[r],n,r),f=l[++r],o&&i.p.parentNode.insertBefore(o,i.p));s>c?b(e,null==l[u+1]?null:l[u+1].p,n,l,r,u):r>u&&g(t,s,c)})(l,o,n,s):null!==s?(null!==t.i&&(l.textContent=""),b(l,null,n,s,0,s.length-1)):null!==o&&g(o,0,o.length-1),e&&"svg"===r&&(e=!1)):t.i!==c&&(l.data=c)},S=(e,t)=>{t&&!e.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.m=t)))},O=(e,t)=>{if(e.t|=16,!(4&e.t))return S(e,e.g),Q((()=>M(e,t)));e.t|=512},M=(e,t)=>{const n=e.v;let l;return t&&(l=L(n,"componentWillLoad")),E(l,(()=>k(e,n,t)))},k=async(e,t,n)=>{const o=e.j,s=o["s-rc"];n&&(e=>{const t=e.S;((e,t)=>{let n=i(t),o=_.get(n);if(e=11===e.nodeType?e:l,o)if("string"==typeof o){let t,s=c.get(e=e.head||e);s||c.set(e,s=new Set),s.has(n)||(t=l.createElement("style"),t.innerHTML=o,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.j.getRootNode(),t)})(e);C(e,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=o["s-p"],n=()=>P(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},C=(e,t)=>{try{t=t.render(),e.t&=-17,e.t|=2,((e,t)=>{const n=e.j,l=e.O||$(null,null),o=(e=>e&&e.h===d)(t)?t:f(null,null,t);o.h=null,o.t|=4,e.O=o,o.p=l.p=n,j(l,o)})(e,t)}catch(t){H(t,e.j)}return null},P=e=>{const t=e.j,n=e.v,l=e.g;L(n,"componentDidRender"),64&e.t||(e.t|=64,R(t),L(n,"componentDidLoad"),e.M(t),l||x()),e.k(t),e.m&&(e.m(),e.m=void 0),512&e.t&&K((()=>O(e,!1))),e.t&=-517},x=()=>{R(l.documentElement),K((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"favesalon-embed"}});return e.dispatchEvent(t),t})(n)))},L=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){H(e)}},E=(e,t)=>e&&e.then?e.then(t):t(),R=e=>e.classList.add("hydrated"),T=(e,t,n)=>{if(t.C){const l=Object.entries(t.C),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>D(this).P.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=D(e),s=o.P.get(t),r=o.t,c=o.v;n=((e,t)=>null==e||u(e)?e:2&t?parseFloat(e):1&t?e+"":e)(n,l.C[t][0]),8&r&&void 0!==s||n===s||(o.P.set(t,n),c&&2==(18&r)&&O(o,!1))})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=D(this);return n.L.then((()=>n.v[e](...t)))}})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){o.jmp((()=>{const n=t.get(e);this.hasOwnProperty(n)&&(l=this[n],delete this[n]),this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},W=(e,t={})=>{const s=[],c=t.exclude||[],a=n.customElements,u=l.head,f=u.querySelector("meta[charset]"),$=l.createElement("style"),d=[];let h,p=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",l.baseURI).href,e.map((e=>e[1].map((t=>{const n={t:t[0],o:t[1],C:t[2],R:t[3]};n.C=t[2];const l=n.o,u=class extends HTMLElement{constructor(e){super(e),U(e=this,n)}connectedCallback(){h&&(clearTimeout(h),h=null),p?d.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=D(e),n=t.S,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(t,t.g=n);break}}n.C&&Object.entries(n.C).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=V(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(T(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){H(e)}t.t&=-9,e()}if(o.style){let e=o.style;const t=i(n);if(!_.has(t)){const l=()=>{};((e,t,n)=>{let l=_.get(e);r&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,_.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.g,c=()=>O(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return D(this).T}};n.W=e[0],c.includes(l)||a.get(l)||(s.push(l),a.define(l,T(u,n,1)))})))),$.innerHTML=s+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),u.insertBefore($,f?f.nextSibling:u.firstChild),p=!1,d.length?d.map((e=>e.connectedCallback())):o.jmp((()=>h=setTimeout(x,30)))},A=new WeakMap,D=e=>A.get(e),F=(e,t)=>A.set(t.v=e,t),U=(e,t)=>{const n={t:0,j:e,S:t,P:new Map};return n.L=new Promise((e=>n.k=e)),n.T=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[],A.set(e,n)},q=(e,t)=>t in e,H=(e,t)=>(0,console.error)(e,t),N=new Map,V=e=>{const t=e.o.replace(/-/g,"_"),n=e.W,l=N.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(N.set(n,e),e[t])),H)},_=new Map,z=[],B=[],G=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&o.t?K(J):o.raf(J))},I=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){H(e)}e.length=0},J=()=>{I(z),I(B),(t=z.length>0)&&o.raf(J)},K=e=>s().then(e),Q=G(B,!0);export{W as b,f as h,s as p,F as r}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-2da2ed75.js";import{d as e,s as i,H as r,a as l,g as a}from"./p-762520f2.js";import{C as o}from"./p-4e2d7b29.js";import{g as n}from"./p-47e646f8.js";const c=[{value:"newest",label:"Newest first"},{value:"oldest",label:"Oldest first"},{value:"rating_desc",label:"High rating first"},{value:"rating_asc",label:"Low rating first"}],h={all:"all",star1:1,star2:2,star3:3,star4:4,star5:5};let d=class{constructor(r){t(this,r),this.totalReviews=0,this.salonReviews=[],this.pageOffset=20,this.ratings=[h.all,"star1","star2","star3","star4","star5"],this.sorting=c[0].value,this.renderReviewsList=()=>{const t=n(),r=this.getFilteredReviews(this.pageOffset),l=this.ratings.indexOf(h.all)>-1?this.totalReviews:r.length;return s("div",{class:"reviews-list"},s("div",{class:"reviews-list--header",style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"}},s("div",{class:"reviews-list--couter",style:{fontWeight:"bold"}},l," ",1===l?"review":"reviews"),s("div",{class:"reviews-list--sorting",style:{display:"flex",flexDirection:"row",alignItems:"center"}},s("label",{style:{marginRight:"8px"}},"Sort by"),s("select",{class:"form-select",style:{width:"160px"},onChange:t=>this.onChangeSorting(t.target.value)},c.map((t=>s("option",{value:t.value,selected:t.value===this.sorting},t.label)))))),s("div",{class:"view-content"},l>0&&r.map((r=>{const{user:l}=r;return s("div",{class:"salon-review",style:{marginBottom:"24px",paddingBottom:"24px",borderBottom:`1px solid ${o.Gray05}`}},s("div",{class:"salon-review--user",style:{marginBottom:"24px"}},s("user-avatar",{size:48,avatar:l.avatar,name:l.name,shortName:`${(l.firstName||"").charAt(0)}${(l.lastName||"").charAt(0)}`,nameStyle:{fontWeight:"bold"}})),s("div",{class:"salon-review--rating",style:{display:"flex",flexDirection:"row",marginBottom:"4px"}},[1,2,3,4,5].map((t=>s("i",{class:t<=r.point?"ri-heart-fill":"ri-heart-line",style:{fontSize:"16px",marginRight:"4px"}}))),r.createdDate&&s("div",{class:"salon-review--rating--date",style:{color:o.Gray03,marginLeft:"16px"}},e(r.createdDate).format(i))),s("div",{class:"salon-review--rating-text",style:{fontSize:"16px",fontWeight:"bold"}},t[r.point]),(r.title||r.description)&&s("div",{class:"salon-review--detail",style:{marginTop:"24px"}},s("div",{class:"salon-review--title",style:{fontSize:"18px",fontWeight:"bold"},innerHTML:r.title}),s("div",{class:"salon-review--description",style:{fontSize:"16px"},innerHTML:r.description})),r.photos.length>0&&s("div",{style:{display:"flex",flexDirection:"row",overflowX:"auto"}},r.photos.map((t=>s("div",{style:{border:"1px solid #d9d9d9",position:"relative",cursor:"pointer",borderRadius:"2px",height:"66px",marginTop:"16px",marginRight:"16px"}},s("img",{alt:"",src:t.imageUrlThumb,height:"64",style:{width:"auto"}}))))))}))),this.canLoadMore&&s("div",{class:"view-footer",style:{textAlign:"center"}},s("button",{type:"button",class:"btn btn-light",onClick:()=>this.onLoadMore()},this.isLoadingMore?"Loading":"Load more")))}}componentWillLoad(){this.fetchData()}fetchData(){try{const t=[r().fetchSalonInfo(this.salonId).then((t=>this.salonInfo=t)),r().fetchSalonReviews(this.salonId,{limit:20}).then((t=>{const{total:s,allItems:e}=t;this.totalReviews=s,this.salonReviews=e,s>20&&(this.canLoadMore=!0)}))];return Promise.all(t)}catch(t){}}sortReviews(t){return l(t,[t=>{if("rating_desc"===this.sorting)return-t.point;if("rating_asc"===this.sorting)return t.point;const s=e(t.createdDate).unix();return"oldest"===this.sorting?s:-s}])}getFilteredReviews(t){let s=[...this.salonReviews];if(-1===this.ratings.indexOf(h.all)){const t=this.ratings.map((t=>h[t]));s=[...s].filter((s=>t.indexOf(s.point)>-1))}const e=this.sortReviews(s);return t?e.slice(0,t):e}onLoadMore(){this.isLoadingMore=!0;try{this.pageOffset+=20;const t=this.getFilteredReviews(this.pageOffset).length;this.pageOffset>t&&(this.canLoadMore=!1)}catch(t){}this.isLoadingMore=!1}onChangeSorting(t){this.sorting=t,this.pageOffset=20,this.canLoadMore=this.getFilteredReviews(20).length>=20}onChangeFilterRating(t){if(t===h.all)this.ratings=[h.all,"star1","star2","star3","star4","star5"];else if(this.ratings.indexOf(t)>-1)this.ratings=this.ratings.filter((s=>s!==h.all&&s!==t));else{const s=5===this.ratings.concat([t]).filter((t=>t!==h.all)).length;this.ratings=s?[h.all,"star1","star2","star3","star4","star5"]:this.ratings.concat([t])}this.pageOffset=20,this.canLoadMore=this.getFilteredReviews(20).length>=20}renderReviewsFilters(){const t=a(this.salonReviews,(t=>t.point));return s("div",{class:"salon-reviews--filters-by-ratings"},s("div",{style:{fontWeight:"bold",marginBottom:"12px",marginTop:"32px"}},"Filter by ratings"),s("div",{class:"salon-reviews--filters-by-ratings--options"},s("div",{class:"antd-checkbox--wrapper",style:{marginBottom:"12px"}},s("div",{class:"antd-checkbox--box"},s("div",{class:"form-check"},s("input",{type:"checkbox",class:"form-check-input",value:h.all,onChange:()=>this.onChangeFilterRating(h.all),checked:this.ratings.indexOf(h.all)>-1}),s("label",{class:"form-check-label"},"All ratings")))),[5,4,3,2,1].filter((s=>t[s])).map((e=>{const i=t[e].length;return s("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:"12px"}},s("div",{class:"form-check"},s("input",{value:"",type:"checkbox",class:"form-check-input",onChange:()=>this.onChangeFilterRating(`star${e}`),checked:this.ratings.indexOf(h.all)>-1||this.ratings.indexOf(`star${e}`)>-1}),s("label",{class:"form-check-label"},[1,2,3,4,5].slice(0,e).map((()=>s("i",{class:"ri-heart-fill",style:{fontSize:"16px",marginRight:"4px"}}))))),s("div",{style:{color:o.Gray01}},i))}))))}render(){const{rating:t}=this.salonInfo||{};return s("div",{class:"salon-reviews",style:{display:"flex",flexDirection:"row"}},s("div",{class:"salon-reviews--filters",style:{width:"264px"}},s("div",{class:"salon-reviews--score"},s("div",{class:"salon-review--rating",style:{display:"flex",flexDirection:"row"}},[1,2,3,4,5].map((e=>s("i",{class:e<=t?"ri-heart-fill":"ri-heart-line",style:{fontSize:"32px",marginRight:"4px"}})))),s("div",{class:"salon-review--rating--date",style:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:"-8px"}},s("span",{style:{fontSize:"24px"}},t,"/5")," ",s("span",{style:{color:o.Gray02,marginLeft:"8px"}},"(",this.totalReviews," reviews)"))),s("div",{class:"salon-reviews--filters--options"},this.renderReviewsFilters())),s("div",{class:"salon-reviews--list",style:{flexGrow:"1",flexShrink:"1",paddingLeft:"64px"}},this.renderReviewsList()))}};d.style="";export{d as salon_reviews}
@@ -1 +0,0 @@
1
- import{r as s,h as e}from"./p-2da2ed75.js";import{C as t}from"./p-4e2d7b29.js";import{f as l,a as i}from"./p-47e646f8.js";import{H as a,B as n}from"./p-762520f2.js";let o=class{constructor(e){s(this,e)}componentWillLoad(){this.salonInfo?this.salonInfoState=JSON.parse(this.salonInfo):this.fetchData()}fetchData(){try{a().fetchSalonInfo(this.salonId).then((s=>this.salonInfoState=s))}catch(s){}}render(){const{about:s,email:i,website:a,businessPhone:n}=this.salonInfoState||{},o=l(a);return e("div",{class:"view view--salon-contact"},e("div",{class:"view-content"},e("div",{style:{fontSize:"16px",fontWeight:"bold"}},"Contact info"),e("div",{class:"salon-contact--links"},n&&e("div",{class:"salon-contact--links-item"},e("i",{class:"ri-phone-line",style:{color:t.Gray03,fontSize:"18px",marginRight:"6px"}})," ",n),o&&e("div",{class:"salon-contact--links-item"},e("i",{class:"ri-links-line",style:{color:t.Gray03,fontSize:"18px",marginRight:"6px"}})," ",e("a",{target:o&&-1===o.indexOf(window.location.hostname)?"_blank":void 0,href:o,style:{color:t.Gray01,textDecoration:"none"}},o)),i&&e("div",{class:"salon-contact--links-item"},e("i",{class:"ri-mail-line",style:{color:t.Gray03,fontSize:"18px",marginRight:"6px"}})," ",e("a",{href:`mailto:${i}`,style:{color:t.Gray01,textDecoration:"none"}},i))),e("div",{class:"salon-contact--info--desc",style:{fontSize:"16px",marginTop:"16px"},innerHTML:s})))}};o.style="@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}}";let c=class{constructor(e){s(this,e)}componentWillLoad(){this.salonInfo?this.salonInfoState=JSON.parse(this.salonInfo):this.fetchData()}fetchData(){try{a().fetchSalonInfo(this.salonId).then((s=>this.salonInfoState=s))}catch(s){}}render(){const{businessLocationLat:s,businessLocationLng:t}=this.salonInfoState||{};return e("div",{class:"view view--salon-locations"},e("div",{class:"view-content",style:{height:"380px"}},e("div",{style:{fontSize:"16px",lineHeight:"26px",maxHeight:"52px",marginBottom:"16px",overflow:"hidden",textOverflow:"ellipsis"}},i(this.salonInfoState)),e("div",{class:"view--salon-info--map",style:{height:"264px"}},s&&t&&e("google-map",{lat:s,lng:t}))))}};c.style="";let d=class{constructor(e){s(this,e)}componentWillLoad(){this.salonInfo?this.salonInfoState=JSON.parse(this.salonInfo):this.fetchData()}fetchData(){try{a().fetchSalonInfo(this.salonId).then((s=>this.salonInfoState=s))}catch(s){}}renderBusinessHour(s){return s.status===n.ByAppointment?"By Appointment":s.status===n.Close?"Close":`${s.openTime} - ${s.closeTime}`}render(){const s=this.salonInfoState&&this.salonInfoState.businessHours||[];return e("div",{class:"view view--salon-schedules"},e("div",{class:"view-content"},s.length>0&&e("div",{class:"salon-schedules"},e("div",{style:{fontSize:"16px",fontWeight:"bold"}},"Working hours"),e("div",{class:"salon-schedules--dates"},e("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},e("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Mon"),e("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(s[0]))),e("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},e("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Tue"),e("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(s[1]))),e("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},e("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Wed"),e("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(s[2]))),e("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},e("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Thur"),e("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(s[3]))),e("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},e("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Fri"),e("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(s[4]))),e("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},e("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Sat"),e("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(s[5]))),e("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},e("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Sun"),e("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(s[6])))))))}};d.style="@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}}";let r=class{constructor(e){s(this,e)}componentDidLoad(){this.fetchData()}async fetchData(){try{const s=[a().fetchSalonPhotos(this.salonId).then((s=>this.firstPageStyles=s)),a().fetchAllSalonPhotos(this.salonId,{page:2}).then((s=>this.nestPageStyles=s))];return Promise.all(s)}catch(s){}}render(){return e("div",{class:"view view--salon-styles"},e("div",{class:"view-content"},e("div",{class:"salon-styles--slides"},e("div",{id:"salon-styles-carousel",class:"carousel slide","data-bs-ride":"carousel"},e("div",{class:"carousel-inner"},(this.firstPageStyles||[]).concat(this.nestPageStyles||[]).map(((s,l)=>{const{caption:i,description:a,fullImageUrl:n,fullImageUrlThumb:o,fullImageUrlMedium:c,imgWidth:d,imgHeight:r}=s,h=d>r;return e("div",{class:"carousel-item salon-styles--item "+(0===l?"active":"")},e("div",{class:"salon-styles--item",style:{flexDirection:h?"column":"row",justifyContent:"center",alignItems:"center",overflow:"hidden",position:"relative",display:"flex",height:"380px",borderRadius:"8px"}},e("div",{class:"salon-styles--item-background",style:Object.assign(Object.assign({},o?{backgroundImage:`url(${o})`}:{}),{backgroundColor:t.Gray06,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",position:"absolute",bottom:"0px",right:"0px",left:"0px",top:"0px"})}),e("img",{alt:i,class:"salon-styles--item-image",src:c||n,style:Object.assign({display:"inline-block"},h?{width:"100%"}:{height:"100%"})}),e("div",{class:"carousel-caption d-none d-md-block"},i&&e("h5",null,i),a&&e("p",null,a))))}))),e("button",{type:"button","data-bs-slide":"prev",class:"carousel-control-prev","data-bs-target":"#salon-styles-carousel"},e("span",{class:"carousel-control-prev-icon","aria-hidden":"true"}),e("span",{class:"visually-hidden"},"Previous")),e("button",{type:"button","data-bs-slide":"next",class:"carousel-control-next","data-bs-target":"#salon-styles-carousel"},e("span",{class:"carousel-control-next-icon","aria-hidden":"true"}),e("span",{class:"visually-hidden"},"Next"))))))}};r.style=".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}";export{o as salon_contact,c as salon_locations,d as salon_schedules,r as salon_styles}
@@ -1 +0,0 @@
1
- const F={Black:"#000000",White:"#ffffff",Primary:"#5C1973",Danger:"#E92626",Success:"#3FB34F",Warning:"#F17714",Info:"#013385",Black01:"#141414",Black02:"#1f1f1f",Black03:"#262626",Gray01:"#333333",Gray02:"#666666",Gray03:"#999999",Gray04:"#DBDBDB",Gray05:"#EFEFEF",Gray06:"#F5F5F5",DarkBlue01:"#E8E8EF",DarkBlue02:"#7674A0",DarkBlue03:"#1B1761",DarkBlue04:"#100E3A",DarkBlue05:"#08071D",Violet01:"#EFE8F1",Violet02:"#9D75AB",Violet03:"#5C1973",Violet04:"#370F45",Violet05:"#1C0722",Pink01:"#FDE9F2",Pink02:"#F27DAF",Pink03:"#E9267A",Pink04:"#8C1749",Pink05:"#2F0818",Blue01:"#E6EBF3",Blue02:"#6785B6",Blue03:"#013385",Blue04:"#011F50",Blue05:"#000F28",Green01:"#ECF7ED",Green02:"#8CD195",Green03:"#3FB34F",Green04:"#266B2F",Green05:"#0D2410",Orange01:"#FEF1E8",Orange02:"#F7AD72",Orange03:"#F17714",Orange04:"#91470C",Orange05:"#301804",Yellow01:"#FFFAED",Yellow02:"#FDE392",Yellow03:"#FCD14A",Yellow04:"#977D2C",Yellow05:"#322A0F",Red01:"#FD2727",Red02:"#FF4D4F",Red03:"#FFA39E",Red04:"#FFCCC7",Red05:"#FFF1F0",BluePurple01:"#2D3B8A",BluePurple02:"#36459D",BluePurple03:"#5760A1",BluePurple04:"#828AB9",BluePurple05:"#ABB0D0",Coral01:"#F16B68",Coral02:"#F68A87",Coral03:"#F7A6A3",Coral04:"#FAC4C2",Coral05:"#FCE0DF",YellowLight01:"#F0E902",YellowLight02:"#F5ED33",YellowLight03:"#F8F266",YellowLight04:"#FAF599",YellowLight05:"#FCF9CC",YellowCyber01:"#FDCF00",YellowCyber02:"#FCD932",YellowCyber03:"#FFE365",YellowCyber04:"#FFED99",YellowCyber05:"#FFF5CC",Turquoise01:"#00E4CB",Turquoise02:"#33E8D6",Turquoise03:"#67F0DF",Turquoise04:"#99F4EB",Turquoise05:"#CCFAF5",Purple01:"#8A5BED",Purple02:"#9970F0",Purple03:"#B394F2",Purple04:"#CCB8F7",Purple05:"#E6DBFA"};export{F as C}
@@ -1 +0,0 @@
1
- import{r as s,h as e}from"./p-2da2ed75.js";import{H as t,a as o}from"./p-762520f2.js";import{C as i}from"./p-4e2d7b29.js";let a=class{constructor(e){s(this,e)}componentWillLoad(){this.fetchData()}async fetchData(){try{this.salonServices=await t().fetchSalonServices(this.salonId)}catch(s){}}render(){return e("div",{class:"salon-services--container"},e("div",{class:"view view--salon-services--header",style:{border:`1px solid ${i.Gray05}`}},e("div",{class:"view-content",style:{overflowX:"auto"}},e("div",{style:{whiteSpace:"nowrap"}},o(this.salonServices||[],["order","name"]).map(((s,t)=>e("button",{type:"button",class:"btn btn-light",style:t>0?{marginLeft:"12px"}:{}},s.name)))))),o(this.salonServices||[],["order","name"]).map((s=>{const t=(s.data||[]).length>1;return e("div",{style:{marginTop:"32px"}},e("h3",{style:{fontSize:"24px",marginBottom:"12px"}},s.name),e("div",{class:"view view--salon-service-type",style:{border:`1px solid ${i.Gray05}`}},e("div",{class:"view-content"},(s.data||[]).map(((s,o)=>e("div",{class:"salon-service-category"},t&&e("h4",{style:Object.assign({fontSize:"20px",marginBottom:"12px",paddingBottom:"12px",borderBottom:`1px solid ${i.Gray06}`},o>0?{marginTop:"32px"}:{})},s.name),(s.data||[]).map(((s,t)=>e("div",{class:"salon-service"},e("div",{class:"salon-service--name",style:Object.assign({fontSize:"16px"},t>0?{marginTop:"12px",paddingTop:"12px",borderTop:`1px solid ${i.Gray06}`}:{})},s.name),(!s.hideDuration||!s.hidePrice)&&e("div",{style:{display:"block",marginTop:"4px"}},[s.hideDuration?"":`${s.duration} mins`,s.hidePrice?"":`$${s.price}`].join(" · ")))))))))))})))}};a.style="";export{a as salon_services}
@@ -1 +0,0 @@
1
- import{r as s,h as o}from"./p-2da2ed75.js";import{H as a}from"./p-762520f2.js";import{C as n}from"./p-4e2d7b29.js";let t=class{constructor(o){s(this,o),this.backgroundColor=n.Gray06}componentWillLoad(){this.fetchData()}async fetchData(){try{this.salonInfo=await a().fetchSalonInfo(this.salonId)}catch(s){}}render(){return this.salonInfo?o("div",{class:"salon-info",style:{background:this.backgroundColor}},o("div",{class:"row"},o("div",{class:"col-md-5",style:{marginBottom:"24px"}},o("salon-locations",{"salon-id":49989,"salon-info":JSON.stringify(this.salonInfo)})),o("div",{class:"col-md-7",style:{marginBottom:"24px"}},o("salon-styles",{"salon-id":49989,"salon-info":JSON.stringify(this.salonInfo)}))),o("div",{class:"salon-info--schedules",style:{marginBottom:"24px"}},o("salon-schedules",{"salon-id":49989,"salon-info":JSON.stringify(this.salonInfo)})),o("div",{class:"salon-info--contact"},o("salon-contact",{"salon-id":49989,"salon-info":JSON.stringify(this.salonInfo)}))):o("div",{class:"salon-info",style:{padding:"24px",textAlign:"center"}},"Loading...")}};t.style=".salon-info .view--salon-styles .view-content{padding:0}";export{t as salon_info}
@@ -1 +0,0 @@
1
- var t=function(t,n){for(var r=-1,e=n.length,i=t.length;++r<e;)t[i+r]=n[r];return t},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,n,r){return t(r={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var e,i="object"==typeof n&&n&&n.Object===Object&&n,u="object"==typeof self&&self&&self.Object===Object&&self,o=i||u||Function("return this")(),a=o.Symbol,c=Object.prototype,f=c.hasOwnProperty,s=c.toString,l=a?a.toStringTag:void 0,h=Object.prototype.toString,v=a?a.toStringTag:void 0,d=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":v&&v in Object(t)?function(t){var n=f.call(t,l),r=t[l];try{t[l]=void 0;var e=!0}catch(t){}var i=s.call(t);return e&&(n?t[l]=r:delete t[l]),i}(t):function(t){return h.call(t)}(t)},b=function(t){return null!=t&&"object"==typeof t},p=function(t){return b(t)&&"[object Arguments]"==d(t)},m=Object.prototype,y=m.hasOwnProperty,g=m.propertyIsEnumerable,j=p(function(){return arguments}())?p:function(t){return b(t)&&y.call(t,"callee")&&!g.call(t,"callee")},w=Array.isArray,O=a?a.isConcatSpreadable:void 0,S=function(t){return w(t)||j(t)||!!(O&&t&&t[O])},_=function n(r,e,i,u,o){var a=-1,c=r.length;for(i||(i=S),o||(o=[]);++a<c;){var f=r[a];e>0&&i(f)?e>1?n(f,e-1,i,u,o):t(o,f):u||(o[o.length]=f)}return o},M=function(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r<e;)i[r]=n(t[r],r,t);return i},D=function(t){return"symbol"==typeof t||b(t)&&"[object Symbol]"==d(t)},N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,$=function(t,n){if(w(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!D(t))||A.test(t)||!N.test(t)||null!=n&&t in Object(n)},k=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)},P=function(t){if(!k(t))return!1;var n=d(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},R=o["__core-js_shared__"],x=(e=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",T=Function.prototype.toString,Y=function(t){if(null!=t){try{return T.call(t)}catch(t){}try{return t+""}catch(t){}}return""},E=/^\[object .+?Constructor\]$/,B=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=function(t){return!(!k(t)||(n=t,x&&x in n))&&(P(t)?B:E).test(Y(t));var n},C=function(t,n){var r=function(t,n){return null==t?void 0:t[n]}(t,n);return H(r)?r:void 0},L=C(Object,"create"),U=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function I(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}I.prototype.clear=function(){this.__data__=L?L(null):{},this.size=0},I.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},I.prototype.get=function(t){var n=this.__data__;if(L){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return U.call(n,t)?n[t]:void 0},I.prototype.has=function(t){var n=this.__data__;return L?void 0!==n[t]:F.call(n,t)},I.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=L&&void 0===n?"__lodash_hash_undefined__":n,this};var q=I,J=function(t,n){return t===n||t!=t&&n!=n},W=function(t,n){for(var r=t.length;r--;)if(J(t[r][0],n))return r;return-1},z=Array.prototype.splice;function V(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(t){var n=this.__data__,r=W(n,t);return!(r<0||(r==n.length-1?n.pop():z.call(n,r,1),--this.size,0))},V.prototype.get=function(t){var n=this.__data__,r=W(n,t);return r<0?void 0:n[r][1]},V.prototype.has=function(t){return W(this.__data__,t)>-1},V.prototype.set=function(t,n){var r=this.__data__,e=W(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var X=V,Z=C(o,"Map"),G=function(t,n){var r,e,i=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof n?"string":"hash"]:i.map};function K(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}K.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(Z||X),string:new q}},K.prototype.delete=function(t){var n=G(this,t).delete(t);return this.size-=n?1:0,n},K.prototype.get=function(t){return G(this,t).get(t)},K.prototype.has=function(t){return G(this,t).has(t)},K.prototype.set=function(t,n){var r=G(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this};var Q=K;function tt(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var r=function(){var e=arguments,i=n?n.apply(this,e):e[0],u=r.cache;if(u.has(i))return u.get(i);var o=t.apply(this,e);return r.cache=u.set(i,o)||u,o};return r.cache=new(tt.Cache||Q),r}tt.Cache=Q;var nt,rt,et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/\\(\\)?/g,ut=(nt=tt((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(et,(function(t,r,e,i){n.push(e?i.replace(it,"$1"):r||t)})),n}),(function(t){return 500===rt.size&&rt.clear(),t})),rt=nt.cache,nt),ot=a?a.prototype:void 0,at=ot?ot.toString:void 0,ct=function t(n){if("string"==typeof n)return n;if(w(n))return M(n,t)+"";if(D(n))return at?at.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r},ft=function(t){return null==t?"":ct(t)},st=function(t,n){return w(t)?t:$(t,n)?[t]:ut(ft(t))},lt=function(t){if("string"==typeof t||D(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},ht=function(t,n){for(var r=0,e=(n=st(n,t)).length;null!=t&&r<e;)t=t[lt(n[r++])];return r&&r==e?t:void 0};function vt(t){var n=this.__data__=new X(t);this.size=n.size}vt.prototype.clear=function(){this.__data__=new X,this.size=0},vt.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},vt.prototype.get=function(t){return this.__data__.get(t)},vt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.set=function(t,n){var r=this.__data__;if(r instanceof X){var e=r.__data__;if(!Z||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Q(e)}return r.set(t,n),this.size=r.size,this};var dt=vt;function bt(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new Q;++n<r;)this.add(t[n])}bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},bt.prototype.has=function(t){return this.__data__.has(t)};var pt=bt,mt=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1},yt=function(t,n){return t.has(n)},gt=function(t,n,r,e,i,u){var o=1&r,a=t.length,c=n.length;if(a!=c&&!(o&&c>a))return!1;var f=u.get(t),s=u.get(n);if(f&&s)return f==n&&s==t;var l=-1,h=!0,v=2&r?new pt:void 0;for(u.set(t,n),u.set(n,t);++l<a;){var d=t[l],b=n[l];if(e)var p=o?e(b,d,l,n,t,u):e(d,b,l,t,n,u);if(void 0!==p){if(p)continue;h=!1;break}if(v){if(!mt(n,(function(t,n){if(!yt(v,n)&&(d===t||i(d,t,r,e,u)))return v.push(n)}))){h=!1;break}}else if(d!==b&&!i(d,b,r,e,u)){h=!1;break}}return u.delete(t),u.delete(n),h},jt=o.Uint8Array,wt=function(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r},Ot=function(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=t})),r},St=a?a.prototype:void 0,_t=St?St.valueOf:void 0,Mt=Object.prototype.propertyIsEnumerable,Dt=Object.getOwnPropertySymbols,Nt=Dt?function(t){return null==t?[]:(t=Object(t),function(t,n){for(var r=-1,e=null==t?0:t.length,i=0,u=[];++r<e;){var o=t[r];n(o,r,t)&&(u[i++]=o)}return u}(Dt(t),(function(n){return Mt.call(t,n)})))}:function(){return[]},At=function(){return!1},$t=r((function(t,n){var r=n&&!n.nodeType&&n,e=r&&t&&!t.nodeType&&t,i=e&&e.exports===r?o.Buffer:void 0;t.exports=(i?i.isBuffer:void 0)||At})),kt=/^(?:0|[1-9]\d*)$/,Pt=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&kt.test(t))&&t>-1&&t%1==0&&t<n},Rt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},xt={};xt["[object Float32Array]"]=xt["[object Float64Array]"]=xt["[object Int8Array]"]=xt["[object Int16Array]"]=xt["[object Int32Array]"]=xt["[object Uint8Array]"]=xt["[object Uint8ClampedArray]"]=xt["[object Uint16Array]"]=xt["[object Uint32Array]"]=!0,xt["[object Arguments]"]=xt["[object Array]"]=xt["[object ArrayBuffer]"]=xt["[object Boolean]"]=xt["[object DataView]"]=xt["[object Date]"]=xt["[object Error]"]=xt["[object Function]"]=xt["[object Map]"]=xt["[object Number]"]=xt["[object Object]"]=xt["[object RegExp]"]=xt["[object Set]"]=xt["[object String]"]=xt["[object WeakMap]"]=!1;var Tt,Yt,Et=function(t){return function(n){return t(n)}},Bt=r((function(t,n){var r=n&&!n.nodeType&&n,e=r&&t&&!t.nodeType&&t,u=e&&e.exports===r&&i.process,o=function(){try{return e&&e.require&&e.require("util").types||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=o})),Ht=Bt&&Bt.isTypedArray,Ct=Ht?Et(Ht):function(t){return b(t)&&Rt(t.length)&&!!xt[d(t)]},Lt=Object.prototype.hasOwnProperty,Ut=function(t,n){var r=w(t),e=!r&&j(t),i=!r&&!e&&$t(t),u=!r&&!e&&!i&&Ct(t),o=r||e||i||u,a=o?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}(t.length,String):[],c=a.length;for(var f in t)!n&&!Lt.call(t,f)||o&&("length"==f||i&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Pt(f,c))||a.push(f);return a},Ft=Object.prototype,It=(Tt=Object.keys,Yt=Object,function(t){return Tt(Yt(t))}),qt=Object.prototype.hasOwnProperty,Jt=function(t){if((n=t)!==("function"==typeof(r=n&&n.constructor)&&r.prototype||Ft))return It(t);var n,r,e=[];for(var i in Object(t))qt.call(t,i)&&"constructor"!=i&&e.push(i);return e},Wt=function(t){return null!=t&&Rt(t.length)&&!P(t)},zt=function(t){return Wt(t)?Ut(t):Jt(t)},Vt=function(n){return function(n,r,e){var i=r(n);return w(n)?i:t(i,e(n))}(n,zt,Nt)},Xt=Object.prototype.hasOwnProperty,Zt=C(o,"DataView"),Gt=C(o,"Promise"),Kt=C(o,"Set"),Qt=C(o,"WeakMap"),tn=Y(Zt),nn=Y(Z),rn=Y(Gt),en=Y(Kt),un=Y(Qt),on=d;(Zt&&"[object DataView]"!=on(new Zt(new ArrayBuffer(1)))||Z&&"[object Map]"!=on(new Z)||Gt&&"[object Promise]"!=on(Gt.resolve())||Kt&&"[object Set]"!=on(new Kt)||Qt&&"[object WeakMap]"!=on(new Qt))&&(on=function(t){var n=d(t),r="[object Object]"==n?t.constructor:void 0,e=r?Y(r):"";if(e)switch(e){case tn:return"[object DataView]";case nn:return"[object Map]";case rn:return"[object Promise]";case en:return"[object Set]";case un:return"[object WeakMap]"}return n});var an,cn=on,fn="[object Object]",sn=Object.prototype.hasOwnProperty,ln=function(t,n,r,e,i,u){var o=w(t),a=w(n),c=o?"[object Array]":cn(t),f=a?"[object Array]":cn(n),s=(c="[object Arguments]"==c?fn:c)==fn,l=(f="[object Arguments]"==f?fn:f)==fn,h=c==f;if(h&&$t(t)){if(!$t(n))return!1;o=!0,s=!1}if(h&&!s)return u||(u=new dt),o||Ct(t)?gt(t,n,r,e,i,u):function(t,n,r,e,i,u,o){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!u(new jt(t),new jt(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return J(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var a=wt;case"[object Set]":if(a||(a=Ot),t.size!=n.size&&!(1&e))return!1;var c=o.get(t);if(c)return c==n;e|=2,o.set(t,n);var f=gt(a(t),a(n),e,i,u,o);return o.delete(t),f;case"[object Symbol]":if(_t)return _t.call(t)==_t.call(n)}return!1}(t,n,c,r,e,i,u);if(!(1&r)){var v=s&&sn.call(t,"__wrapped__"),d=l&&sn.call(n,"__wrapped__");if(v||d){var b=v?t.value():t,p=d?n.value():n;return u||(u=new dt),i(b,p,r,e,u)}}return!!h&&(u||(u=new dt),function(t,n,r,e,i,u){var o=1&r,a=Vt(t),c=a.length;if(c!=Vt(n).length&&!o)return!1;for(var f=c;f--;){var s=a[f];if(!(o?s in n:Xt.call(n,s)))return!1}var l=u.get(t),h=u.get(n);if(l&&h)return l==n&&h==t;var v=!0;u.set(t,n),u.set(n,t);for(var d=o;++f<c;){var b=t[s=a[f]],p=n[s];if(e)var m=o?e(p,b,s,n,t,u):e(b,p,s,t,n,u);if(!(void 0===m?b===p||i(b,p,r,e,u):m)){v=!1;break}d||(d="constructor"==s)}if(v&&!d){var y=t.constructor,g=n.constructor;y==g||!("constructor"in t)||!("constructor"in n)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(v=!1)}return u.delete(t),u.delete(n),v}(t,n,r,e,i,u))},hn=function t(n,r,e,i,u){return n===r||(null==n||null==r||!b(n)&&!b(r)?n!=n&&r!=r:ln(n,r,e,i,t,u))},vn=function(t){return t==t&&!k(t)},dn=function(t,n){return function(r){return null!=r&&r[t]===n&&(void 0!==n||t in Object(r))}},bn=function(t){var n=function(t){for(var n=zt(t),r=n.length;r--;){var e=n[r],i=t[e];n[r]=[e,i,vn(i)]}return n}(t);return 1==n.length&&n[0][2]?dn(n[0][0],n[0][1]):function(r){return r===t||function(t,n,r,e){var i=r.length,u=i,o=!e;if(null==t)return!u;for(t=Object(t);i--;){var a=r[i];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<u;){var c=(a=r[i])[0],f=t[c],s=a[1];if(o&&a[2]){if(void 0===f&&!(c in t))return!1}else{var l=new dt;if(e)var h=e(f,s,c,t,n,l);if(!(void 0===h?hn(s,f,3,e,l):h))return!1}}return!0}(r,t,n)}},pn=function(t,n){return null!=t&&n in Object(t)},mn=function(t,n){return null!=t&&function(t,n,r){for(var e=-1,i=(n=st(n,t)).length,u=!1;++e<i;){var o=lt(n[e]);if(!(u=null!=t&&r(t,o)))break;t=t[o]}return u||++e!=i?u:!!(i=null==t?0:t.length)&&Rt(i)&&Pt(o,i)&&(w(t)||j(t))}(t,n,pn)},yn=function(t,n){return $(t)&&vn(n)?dn(lt(t),n):function(r){var e=function(t,n,r){var e=null==t?void 0:ht(t,n);return void 0===e?r:e}(r,t);return void 0===e&&e===n?mn(r,t):hn(n,e,3)}},gn=function(t){return t},jn=function(t){return $(t)?(n=lt(t),function(t){return null==t?void 0:t[n]}):function(t){return function(n){return ht(n,t)}}(t);var n},wn=function(t){return"function"==typeof t?t:null==t?gn:"object"==typeof t?w(t)?yn(t[0],t[1]):bn(t):jn(t)},On=function(t,n,r){for(var e=-1,i=Object(t),u=r(t),o=u.length;o--;){var a=u[++e];if(!1===n(i[a],a,i))break}return t},Sn=function(t,n){if(null==t)return t;if(!Wt(t))return function(t,n){return t&&On(t,n,zt)}(t,n);for(var r=t.length,e=-1,i=Object(t);++e<r&&!1!==n(i[e],e,i););return t},_n=function(t,n){if(t!==n){var r=void 0!==t,e=null===t,i=t==t,u=D(t),o=void 0!==n,a=null===n,c=n==n,f=D(n);if(!a&&!f&&!u&&t>n||u&&o&&c&&!a&&!f||e&&o&&c||!r&&c||!i)return 1;if(!e&&!u&&!f&&t<n||f&&r&&i&&!e&&!u||a&&r&&i||!o&&i||!c)return-1}return 0},Mn=function(t,n,r){n=n.length?M(n,(function(t){return w(t)?function(n){return ht(n,1===t.length?t[0]:t)}:t})):[gn];var e=-1;return n=M(n,Et(wn)),function(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}(function(t,n){var r=-1,e=Wt(t)?Array(t.length):[];return Sn(t,(function(t,i,u){e[++r]=n(t,i,u)})),e}(t,(function(t){return{criteria:M(n,(function(n){return n(t)})),index:++e,value:t}})),(function(t,n){return function(t,n,r){for(var e=-1,i=t.criteria,u=n.criteria,o=i.length,a=r.length;++e<o;){var c=_n(i[e],u[e]);if(c)return e>=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))},Dn=function(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)},Nn=Math.max,An=function(){try{var t=C(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),$n=Date.now,kn=function(t){var n=0,r=0;return function(){var e=$n(),i=16-(e-r);if(r=e,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(An?function(t,n){return An(t,"toString",{configurable:!0,enumerable:!1,value:(r=n,function(){return r}),writable:!0});var r}:gn),Pn=function(t,n,r){if(!k(r))return!1;var e=typeof n;return!!("number"==e?Wt(r)&&Pt(n,r.length):"string"==e&&n in r)&&J(r[n],t)},Rn=function(t){return kn(function(t,n,r){return n=Nn(void 0===n?t.length-1:n,0),function(){for(var e=arguments,i=-1,u=Nn(e.length-n,0),o=Array(u);++i<u;)o[i]=e[n+i];i=-1;for(var a=Array(n+1);++i<n;)a[i]=e[i];return a[n]=r(o),Dn(t,this,a)}}(t,void 0,gn),t+"")}((function(t,n){if(null==t)return[];var r=n.length;return r>1&&Pn(t,n[0],n[1])?n=[]:r>2&&Pn(n[0],n[1],n[2])&&(n=[n[0]]),Mn(t,_(n,1),[])})),xn=function(t,n,r,e){for(var i=-1,u=null==t?0:t.length;++i<u;){var o=t[i];n(e,o,r(o),t)}return e},Tn=function(t,n,r,e){return Sn(t,(function(t,i,u){n(e,t,r(t),u)})),e},Yn=Object.prototype.hasOwnProperty,En=(an=function(t,n,r){Yn.call(t,r)?t[r].push(n):function(t,n,r){"__proto__"==n&&An?An(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}(t,r,[n])},function(t,n){var r={};return(w(t)?xn:Tn)(t,an,wn(n),r)}),Bn=function(t,n){return function(){for(var r=new Array(arguments.length),e=0;e<r.length;e++)r[e]=arguments[e];return t.apply(n,r)}},Hn=Object.prototype.toString;function Cn(t){return"[object Array]"===Hn.call(t)}function Ln(t){return void 0===t}function Un(t){return null!==t&&"object"==typeof t}function Fn(t){if("[object Object]"!==Hn.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function In(t){return"[object Function]"===Hn.call(t)}function qn(t,n){if(null!=t)if("object"!=typeof t&&(t=[t]),Cn(t))for(var r=0,e=t.length;r<e;r++)n.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.call(null,t[i],i,t)}var Jn={isArray:Cn,isArrayBuffer:function(t){return"[object ArrayBuffer]"===Hn.call(t)},isBuffer:function(t){return null!==t&&!Ln(t)&&null!==t.constructor&&!Ln(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Un,isPlainObject:Fn,isUndefined:Ln,isDate:function(t){return"[object Date]"===Hn.call(t)},isFile:function(t){return"[object File]"===Hn.call(t)},isBlob:function(t){return"[object Blob]"===Hn.call(t)},isFunction:In,isStream:function(t){return Un(t)&&In(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:qn,merge:function t(){var n={};function r(r,e){n[e]=Fn(n[e])&&Fn(r)?t(n[e],r):Fn(r)?t({},r):Cn(r)?r.slice():r}for(var e=0,i=arguments.length;e<i;e++)qn(arguments[e],r);return n},extend:function(t,n,r){return qn(n,(function(n,e){t[e]=r&&"function"==typeof n?Bn(n,r):n})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function Wn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var zn=function(t,n,r){if(!n)return t;var e;if(r)e=r(n);else if(Jn.isURLSearchParams(n))e=n.toString();else{var i=[];Jn.forEach(n,(function(t,n){null!=t&&(Jn.isArray(t)?n+="[]":t=[t],Jn.forEach(t,(function(t){Jn.isDate(t)?t=t.toISOString():Jn.isObject(t)&&(t=JSON.stringify(t)),i.push(Wn(n)+"="+Wn(t))})))})),e=i.join("&")}if(e){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+e}return t};function Vn(){this.handlers=[]}Vn.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},Vn.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Vn.prototype.forEach=function(t){Jn.forEach(this.handlers,(function(n){null!==n&&t(n)}))};var Xn=Vn,Zn=function(t,n){Jn.forEach(t,(function(r,e){e!==n&&e.toUpperCase()===n.toUpperCase()&&(t[n]=r,delete t[e])}))},Gn=function(t,n,r,e,i){return t.config=n,r&&(t.code=r),t.request=e,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Kn=function(t,n,r,e,i){var u=new Error(t);return Gn(u,n,r,e,i)},Qn=Jn.isStandardBrowserEnv()?{write:function(t,n,r,e,i,u){var o=[];o.push(t+"="+encodeURIComponent(n)),Jn.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Jn.isString(e)&&o.push("path="+e),Jn.isString(i)&&o.push("domain="+i),!0===u&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},tr=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],nr=Jn.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function e(t){var e=t;return n&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=e(window.location.href),function(n){var r=Jn.isString(n)?e(n):n;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function rr(t){this.message=t}rr.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},rr.prototype.__CANCEL__=!0;var er=rr,ir={"Content-Type":"application/x-www-form-urlencoded"};function ur(t,n){!Jn.isUndefined(t)&&Jn.isUndefined(t["Content-Type"])&&(t["Content-Type"]=n)}var or,ar={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(or=function(t){return new Promise((function(n,r){var e,i=t.data,u=t.headers,o=t.responseType;function a(){t.cancelToken&&t.cancelToken.unsubscribe(e),t.signal&&t.signal.removeEventListener("abort",e)}Jn.isFormData(i)&&delete u["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",s=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.Authorization="Basic "+btoa(f+":"+s)}var l,h,v=(h=t.url,(l=t.baseURL)&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(h)?function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}(l,h):h);function d(){if(c){var e,i,u,f,s,l="getAllResponseHeaders"in c?(e=c.getAllResponseHeaders(),s={},e?(Jn.forEach(e.split("\n"),(function(t){if(f=t.indexOf(":"),i=Jn.trim(t.substr(0,f)).toLowerCase(),u=Jn.trim(t.substr(f+1)),i){if(s[i]&&tr.indexOf(i)>=0)return;s[i]="set-cookie"===i?(s[i]?s[i]:[]).concat([u]):s[i]?s[i]+", "+u:u}})),s):s):null;!function(t,n,r){var e=r.config.validateStatus;r.status&&e&&!e(r.status)?n(Kn("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}((function(t){n(t),a()}),(function(t){r(t),a()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:l,config:t,request:c}),c=null}}if(c.open(t.method.toUpperCase(),zn(v,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(Kn("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(Kn("Network Error",t,null,c)),c=null},c.ontimeout=function(){var n="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(n=t.timeoutErrorMessage),r(Kn(n,t,(t.transitional||cr.transitional).clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Jn.isStandardBrowserEnv()){var b=(t.withCredentials||nr(v))&&t.xsrfCookieName?Qn.read(t.xsrfCookieName):void 0;b&&(u[t.xsrfHeaderName]=b)}"setRequestHeader"in c&&Jn.forEach(u,(function(t,n){void 0===i&&"content-type"===n.toLowerCase()?delete u[n]:c.setRequestHeader(n,t)})),Jn.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&"json"!==o&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(e=function(t){c&&(r(!t||t&&t.type?new er("canceled"):t),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(e),t.signal&&(t.signal.aborted?e():t.signal.addEventListener("abort",e))),i||(i=null),c.send(i)}))}),or),transformRequest:[function(t,n){return Zn(n,"Accept"),Zn(n,"Content-Type"),Jn.isFormData(t)||Jn.isArrayBuffer(t)||Jn.isBuffer(t)||Jn.isStream(t)||Jn.isFile(t)||Jn.isBlob(t)?t:Jn.isArrayBufferView(t)?t.buffer:Jn.isURLSearchParams(t)?(ur(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Jn.isObject(t)||n&&"application/json"===n["Content-Type"]?(ur(n,"application/json"),function(t){if(Jn.isString(t))try{return(0,JSON.parse)(t),Jn.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var n=this.transitional||ar.transitional,r=!(n&&n.silentJSONParsing)&&"json"===this.responseType;if(r||n&&n.forcedJSONParsing&&Jn.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw Gn(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Jn.forEach(["delete","get","head"],(function(t){ar.headers[t]={}})),Jn.forEach(["post","put","patch"],(function(t){ar.headers[t]=Jn.merge(ir)}));var cr=ar,fr=function(t,n,r){var e=this||cr;return Jn.forEach(r,(function(r){t=r.call(e,t,n)})),t},sr=function(t){return!(!t||!t.__CANCEL__)};function lr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new er("canceled")}var hr=function(t){return lr(t),t.headers=t.headers||{},t.data=fr.call(t,t.data,t.headers,t.transformRequest),t.headers=Jn.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Jn.forEach(["delete","get","head","post","put","patch","common"],(function(n){delete t.headers[n]})),(t.adapter||cr.adapter)(t).then((function(n){return lr(t),n.data=fr.call(t,n.data,n.headers,t.transformResponse),n}),(function(n){return sr(n)||(lr(t),n&&n.response&&(n.response.data=fr.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)}))},vr=function(t,n){n=n||{};var r={};function e(t,n){return Jn.isPlainObject(t)&&Jn.isPlainObject(n)?Jn.merge(t,n):Jn.isPlainObject(n)?Jn.merge({},n):Jn.isArray(n)?n.slice():n}function i(r){return Jn.isUndefined(n[r])?Jn.isUndefined(t[r])?void 0:e(void 0,t[r]):e(t[r],n[r])}function u(t){if(!Jn.isUndefined(n[t]))return e(void 0,n[t])}function o(r){return Jn.isUndefined(n[r])?Jn.isUndefined(t[r])?void 0:e(void 0,t[r]):e(void 0,n[r])}function a(r){return r in n?e(t[r],n[r]):r in t?e(void 0,t[r]):void 0}var c={url:u,method:u,data:u,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a};return Jn.forEach(Object.keys(t).concat(Object.keys(n)),(function(t){var n=c[t]||i,e=n(t);Jn.isUndefined(e)&&n!==a||(r[t]=e)})),r},dr={};["object","boolean","number","function","string","symbol"].forEach((function(t,n){dr[t]=function(r){return typeof r===t||"a"+(n<1?"n ":" ")+t}}));var br={};dr.transitional=function(t,n,r){function e(t,n){return"[Axios v0.22.0] Transitional option '"+t+"'"+n+(r?". "+r:"")}return function(r,i,u){if(!1===t)throw new Error(e(i," has been removed"+(n?" in "+n:"")));return n&&!br[i]&&(br[i]=!0,console.warn(e(i," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(r,i,u)}};var pr={assertOptions:function(t,n,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var e=Object.keys(t),i=e.length;i-- >0;){var u=e[i],o=n[u];if(o){var a=t[u],c=void 0===a||o(a,u,t);if(!0!==c)throw new TypeError("option "+u+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+u)}},validators:dr},mr=pr.validators;function yr(t){this.defaults=t,this.interceptors={request:new Xn,response:new Xn}}yr.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=vr(this.defaults,t)).method=t.method?t.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var n=t.transitional;void 0!==n&&pr.assertOptions(n,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1);var r=[],e=!0;this.interceptors.request.forEach((function(n){"function"==typeof n.runWhen&&!1===n.runWhen(t)||(e=e&&n.synchronous,r.unshift(n.fulfilled,n.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)})),!e){var o=[hr,void 0];for(Array.prototype.unshift.apply(o,r),o=o.concat(u),i=Promise.resolve(t);o.length;)i=i.then(o.shift(),o.shift());return i}for(var a=t;r.length;){var c=r.shift(),f=r.shift();try{a=c(a)}catch(t){f(t);break}}try{i=hr(a)}catch(t){return Promise.reject(t)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},yr.prototype.getUri=function(t){return t=vr(this.defaults,t),zn(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Jn.forEach(["delete","get","head","options"],(function(t){yr.prototype[t]=function(n,r){return this.request(vr(r||{},{method:t,url:n,data:(r||{}).data}))}})),Jn.forEach(["post","put","patch"],(function(t){yr.prototype[t]=function(n,r,e){return this.request(vr(e||{},{method:t,url:n,data:r}))}}));var gr=yr;function jr(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(t){n=t}));var r=this;this.promise.then((function(t){if(r._listeners){var n,e=r._listeners.length;for(n=0;n<e;n++)r._listeners[n](t);r._listeners=null}})),this.promise.then=function(t){var n,e=new Promise((function(t){r.subscribe(t),n=t})).then(t);return e.cancel=function(){r.unsubscribe(n)},e},t((function(t){r.reason||(r.reason=new er(t),n(r.reason))}))}jr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},jr.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},jr.prototype.unsubscribe=function(t){if(this._listeners){var n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}},jr.source=function(){var t;return{token:new jr((function(n){t=n})),cancel:t}};var wr=jr,Or=function t(n){var r=new gr(n),e=Bn(gr.prototype.request,r);return Jn.extend(e,gr.prototype,r),Jn.extend(e,r),e.create=function(r){return t(vr(n,r))},e}(cr);Or.Axios=gr,Or.Cancel=er,Or.CancelToken=wr,Or.isCancel=sr,Or.VERSION="0.22.0",Or.all=function(t){return Promise.all(t)},Or.spread=function(t){return function(n){return t.apply(null,n)}},Or.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError};var Sr=Or;Sr.default=Or;var _r,Mr=Sr;!function(t){t[t.Open=0]="Open",t[t.Close=1]="Close",t[t.ByAppointment=2]="ByAppointment"}(_r||(_r={}));var Dr=r((function(t){t.exports=function(){var t=6e4,n=36e5,r="millisecond",e="second",i="minute",u="hour",o="day",a="week",c="month",f="quarter",s="year",l="date",h="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(t,n,r){var e=String(t);return!e||e.length>=n?t:""+Array(n+1-e.length).join(r)+t},m={s:p,z:function(t){var n=-t.utcOffset(),r=Math.abs(n),e=Math.floor(r/60),i=r%60;return(n<=0?"+":"-")+p(e,2,"0")+":"+p(i,2,"0")},m:function t(n,r){if(n.date()<r.date())return-t(r,n);var e=12*(r.year()-n.year())+(r.month()-n.month()),i=n.clone().add(e,c),u=r-i<0,o=n.clone().add(e+(u?-1:1),c);return+(-(e+(r-i)/(u?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:s,w:a,d:o,D:l,h:u,m:i,s:e,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=b;var j=function(t){return t instanceof _},w=function(t,n,r){var e;if(!t)return y;if("string"==typeof t)g[t]&&(e=t),n&&(g[t]=n,e=t);else{var i=t.name;g[i]=t,e=i}return!r&&e&&(y=e),e||!r&&y},O=function(t,n){if(j(t))return t.clone();var r="object"==typeof n?n:{};return r.date=t,r.args=arguments,new _(r)},S=m;S.l=w,S.i=j,S.w=function(t,n){return O(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var _=function(){function b(t){this.$L=w(t.locale,null,!0),this.parse(t)}var p=b.prototype;return p.parse=function(t){this.$d=function(t){var n=t.date,r=t.utc;if(null===n)return new Date(NaN);if(S.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var e=n.match(v);if(e){var i=e[2]-1||0,u=(e[7]||"0").substring(0,3);return r?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,u)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,u)}}return new Date(n)}(t),this.$x=t.x||{},this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return S},p.isValid=function(){return!(this.$d.toString()===h)},p.isSame=function(t,n){var r=O(t);return this.startOf(n)<=r&&r<=this.endOf(n)},p.isAfter=function(t,n){return O(t)<this.startOf(n)},p.isBefore=function(t,n){return this.endOf(n)<O(t)},p.$g=function(t,n,r){return S.u(t)?this[n]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,n){var r=this,f=!!S.u(n)||n,h=S.p(t),v=function(t,n){var e=S.w(r.$u?Date.UTC(r.$y,n,t):new Date(r.$y,n,t),r);return f?e:e.endOf(o)},d=function(t,n){return S.w(r.toDate()[t].apply(r.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(n)),r)},b=this.$W,p=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return f?v(1,0):v(31,11);case c:return f?v(1,p):v(0,p+1);case a:var g=this.$locale().weekStart||0,j=(b<g?b+7:b)-g;return v(f?m-j:m+(6-j),p);case o:case l:return d(y+"Hours",0);case u:return d(y+"Minutes",1);case i:return d(y+"Seconds",2);case e:return d(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(t,n){var a,f=S.p(t),h="set"+(this.$u?"UTC":""),v=(a={},a[o]=h+"Date",a[l]=h+"Date",a[c]=h+"Month",a[s]=h+"FullYear",a[u]=h+"Hours",a[i]=h+"Minutes",a[e]=h+"Seconds",a[r]=h+"Milliseconds",a)[f],d=f===o?this.$D+(n-this.$W):n;if(f===c||f===s){var b=this.clone().set(l,1);b.$d[v](d),b.init(),this.$d=b.set(l,Math.min(this.$D,b.daysInMonth())).$d}else v&&this.$d[v](d);return this.init(),this},p.set=function(t,n){return this.clone().$set(t,n)},p.get=function(t){return this[S.p(t)]()},p.add=function(r,f){var l,h=this;r=Number(r);var v=S.p(f),d=function(t){var n=O(h);return S.w(n.date(n.date()+Math.round(t*r)),h)};if(v===c)return this.set(c,this.$M+r);if(v===s)return this.set(s,this.$y+r);if(v===o)return d(1);if(v===a)return d(7);var b=(l={},l[i]=t,l[u]=n,l[e]=1e3,l)[v]||1,p=this.$d.getTime()+r*b;return S.w(p,this)},p.subtract=function(t,n){return this.add(-1*t,n)},p.format=function(t){var n=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),u=this.$H,o=this.$m,a=this.$M,c=r.weekdays,f=r.months,s=function(t,r,i,u){return t&&(t[r]||t(n,e))||i[r].substr(0,u)},l=function(t){return S.s(u%12||12,t,"0")},v=r.meridiem||function(t,n,r){var e=t<12?"AM":"PM";return r?e.toLowerCase():e},b={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:S.s(a+1,2,"0"),MMM:s(r.monthsShort,a,f,3),MMMM:s(f,a),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:s(r.weekdaysMin,this.$W,c,2),ddd:s(r.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(u),HH:S.s(u,2,"0"),h:l(1),hh:l(2),a:v(u,o,!0),A:v(u,o,!1),m:String(o),mm:S.s(o,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return e.replace(d,(function(t,n){return n||b[t]||i.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(r,l,h){var v,d=S.p(l),b=O(r),p=(b.utcOffset()-this.utcOffset())*t,m=this-b,y=S.m(this,b);return y=(v={},v[s]=y/12,v[c]=y,v[f]=y/3,v[a]=(m-p)/6048e5,v[o]=(m-p)/864e5,v[u]=m/n,v[i]=m/t,v[e]=m/1e3,v)[d]||m,h?y:S.a(y)},p.daysInMonth=function(){return this.endOf(c).$D},p.$locale=function(){return g[this.$L]},p.locale=function(t,n){if(!t)return this.$L;var r=this.clone(),e=w(t,n,!0);return e&&(r.$L=e),r},p.clone=function(){return S.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},b}(),M=_.prototype;return O.prototype=M,[["$ms",r],["$s",e],["$m",i],["$H",u],["$W",o],["$M",c],["$y",s],["$D",l]].forEach((function(t){M[t[1]]=function(n){return this.$g(n,t[0],t[1])}})),O.extend=function(t,n){return t.$i||(t(n,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=j,O.unix=function(t){return O(1e3*t)},O.en=g[y],O.Ls=g,O.p={},O}()}));const Nr="DD MMM YYYY";function Ar(t){const n=[t.first_name,t.last_name].filter((t=>!!t));return{id:t.user_id,name:n.length>0?n.join(" "):t.username,firstName:t.first_name,lastName:t.last_name,avatar:t.full_profile_image_thumb}}function $r(t){const[n,r]=String(t.create_date).split(" "),[e,i]=String(t.update_date).split(" ");return{id:t.id,caption:t.caption,description:t.description,createdDate:Dr(`${n} ${r}`,"YYYY-MM-DD HH:mm:ss").valueOf(),updatedDate:Dr(`${e} ${i}`,"YYYY-MM-DD HH:mm:ss").valueOf(),mediaType:t.media_type,fullImageUrl:t.full_image_url,fullImageUrlThumb:t.full_image_url_thumb,fullImageUrlMedium:t.full_image_url_medium,imgWidth:t.img_w,imgHeight:t.img_h,s3ImgWidth:t.s3_img_w,s3ImgHeight:t.s3_img_h,totalLike:t.total_like,totalDislike:t.total_dislike,totalShare:t.total_shared,totalView:t.view_count,totalBooking:t.total_booking,owner:t.user?Ar(t.user):null}}function kr(t){return{id:t.id,caption:t.caption,imageUrl:t.full_image_url,imageUrlThumb:t.full_image_url_thumb}}function Pr(t){const n=t.salon_review_photo||t.beautician_review_photo||[],[r,e]=String(t.create_date).split(" "),[i,u]=String(t.update_date).split(" ");return{title:t.title,point:Math.ceil(Number(t.avg_point)),description:t.comment,createdDate:Dr(`${r} ${e}`,"YYYY-MM-DD HH:mm:ss").valueOf(),updatedDate:Dr(`${i} ${u}`,"YYYY-MM-DD HH:mm:ss").valueOf(),pointView:t.view_point,pointPrice:t.price_point,pointProduct:t.product_point,pointProfessional:t.professional_point,like:t.like,report:t.report,helpful:t.helpful,recommend:t.recommend,user:t.user?Ar(t.user):null,photos:n.map(kr)}}class Rr{constructor(){this.http=null,this.http=Mr.create({baseURL:"https://favesalon.com",headers:{}})}fetchSalonInfo(t){return this.http.post("api/salon/settings-public",{salon_id:t}).then((t=>{const{status:n,data:r}=t.data;return n&&r?function(t){const n=t.salon_geolocation||[],r={"allure24-blue":"89c8d2","allure24-pink":"ff7fa2","the-shave":"af8c45","theme2-dark-green":"90c245","theme2-green":"bed451","theme2-light-pink":"d47b99","theme2-purple":"ab345c","theme3-blue":"076dec","theme3-layout1":"d59b76","theme3-layout2":"b02858","theme4-green":"5da826",theme4:"08b89d",theme5:"f64c4d"};return{id:t.id,about:t.about,email:t.email,fullProfileImage:t.full_profile_image,fullCoverImage:t.full_cover_image,ownerName:t.owner_name,subdomain:t.subdomain,website:t.website,businessName:t.business_name,businessPhone:t.business_phone,businessAddress:t.business_address,businessLocationLat:n.length>0?n[0].location_lat:null,businessLocationLng:n.length>0?n[0].location_lng:null,city:t.city,state:t.state,zipcode:t.zipcode?Number(t.zipcode):null,businessHours:(t.business_hours||t.salon_workingtime||[]).map((t=>({dayName:t.day_name,openTime:t.open_time,closeTime:t.close_time,status:t.status}))),rating:Number(t.rating_point),primaryColor:r[t.default_mini_site_template]||r["allure24-blue"]}}(r.Salon):null})).catch((()=>null))}fetchReviews(t,n,r){const{noLoop:e}=n,i=function(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(t);i<e.length;i++)n.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(t,e[i])&&(r[e[i]]=t[e[i]])}return r}(n,["noLoop"]);return this.http.post(t,i).then((i=>{const{status:u,data:o}=i.data;if(u){const i=(o||[]).filter((t=>Math.ceil(Number(t.avg_point))>0)).map(Pr);if(!e&&i.length>=n.limit)return this.fetchReviews(t,Object.assign(Object.assign({},n),{page:n.page+1}),r.concat(i));const u=1===n.page?i:r.concat(i);return{totalReviews:u.length||0,allReviews:u}}return{totalReviews:0,allReviews:[]}}))}fetchSalonReviews(t,n){return this.fetchReviews("/api/salon/reviews",Object.assign({page:1,limit:5,salon_id:t,avg_point_greater_than:0},n),[]).then((t=>{const{totalReviews:n,allReviews:r}=t;return{total:n,allItems:r}})).catch((()=>({total:0,allItems:[]})))}decorateServiceGroups(t){return t.map(((t,n)=>{const r=t.name,e=`${t.service_id}-${String(r).toLowerCase().split(" ").join("-")}-${t.order}-index-${n}`,i=Rn(t.service_groups,[t=>t.order]);return{id:e,name:r,type:"category",data:i.map(((t,n)=>({key:`${e}-${String(t.name).toLowerCase().split(" ").join("-")}-${t.order}-index-${n}`,name:t.category,type:"sub-category",data:(t.services||[]).map((t=>{const n=function(t){const n=(t.photo_link||[]).map((t=>({id:t.number,src:t.src,caption:t.caption,serviceId:t.service_id,serviceName:t.service_name,stylistId:t.beautician_id,stylistName:t.beautician_name})));return{id:t.id,name:t.name,description:t.description,price:Number(t.price_info),isPriceUp:Boolean(t.price_up),hidePrice:Boolean(t.hide_price_from_public),duration:t.time_info?Number(t.time_info):0,hideDuration:Boolean(t.hide_duration_from_public),photos:n}}(t);return Object.assign(Object.assign({},n),{type:"service"})}))})))}}))}fetchSalonServices(t){return this.http.get(`api/salon/services?v=2&id=${t}`).then((t=>{const{status:n,data:r}=t.data;return n?this.decorateServiceGroups(r||[]):[]})).catch((()=>[]))}fetchSalonStylists(t){const n=this.http.get(`api/calendar/resource/stylists?salon_id=${t}`).then((t=>{const{status:n,data:r}=t.data;return n&&r||[]})).catch((()=>[])),r=this.http.get(`api/salon/skill-stylists/${t}`).then((t=>{const{status:n,data:r}=t.data;return n?(r||[]).map((t=>Object.assign(Object.assign({},t),{id:t.stylist_id}))):[]})).catch((()=>[]));return Promise.all([n,r]).then((t=>{const[n,r]=t,e=En(n.concat(r),(t=>t.id));return Object.keys(e).filter((t=>Number(t)>0)).map((t=>{const[n,r]=e[t];return function(t){const n=t.rating_percent?Number(t.rating_percent):0;return{id:Number(t.stylist_id),name:t.title||[t.first_name,t.last_name].filter((t=>!!t)).join(" "),firstName:t.first_name,lastName:t.last_name,avatar:t.avatar,phone:t.mobile_phone,expertise:Boolean(t.expertise),rating:Math.ceil(5*n/100)}}(Object.assign(Object.assign({},n),r))}))})).catch((()=>[]))}fetchSalonCategories(){return this.http.post("api/home/get-service",{limit:50}).then((t=>{const{status:n,data:r}=t.data;return n?(r||[]).map((t=>({id:t.id,name:t.name,image:t.full_image,imageThumb:t.full_thumb_image}))):[]})).catch((()=>[]))}fetchSalonLookbooks(t,n){const r={total:0,allLookbooks:[]};return this.http.post("api/style/filter",Object.assign({page:1,limit:20,salon_id:t},n)).then((t=>{const{status:n,data:e,paging:i}=t.data;return n?{total:i.total_item||0,allLookbooks:(e||[]).map($r)}:r})).catch((()=>r))}fetchSalonPhotos(t){return this.http.post("api/style/filter",{page:1,limit:20,salon_id:t}).then((t=>{const{status:n,data:r}=t.data;return n?(r||[]).map($r):[]})).catch((()=>[]))}fetchAllStyles(t,n,r){return this.http.post(t,n).then((e=>{const{status:i,data:u}=e.data;if(i){const e=(u||[]).map($r);return e.length>=n.limit?this.fetchAllStyles(t,Object.assign(Object.assign({},n),{page:n.page+1}),r.concat(e)):1===n.page?e:r}return r}))}fetchAllSalonPhotos(t,n){return this.fetchAllStyles("api/style/filter",Object.assign({page:1,limit:20,salon_id:t},n),[]).catch((()=>[]))}}const xr=()=>new Rr;export{_r as B,xr as H,Rn as a,Dr as d,En as g,Nr as s}
@@ -1 +0,0 @@
1
- import{r as o,h as a}from"./p-2da2ed75.js";let l=class{constructor(a){o(this,a),this.primaryColor="#d47b99",this.redirectUrl=window.btoa(window.location.href),this.isModalOpen=!0}render(){const o=this.primaryColor.split("#")[1]||"d47b99";return a("div",{class:"salon-booking--modal"},this.isModalOpen&&a("div",{class:"salon-modal salon-modal--booking"},a("div",{class:"salon-modal--backdrop",onClick:()=>this.isModalOpen=!1}),a("div",{class:"salon-modal--close",onClick:()=>this.isModalOpen=!1}),a("div",{class:"salon-modal--inner"},a("div",{class:"salon-modal--content"},a("iframe",{height:"100%",width:"100%",style:{border:"none",display:"block",height:"100%"},src:`https://www.favesalon.com/r/booking?salonId=${this.salonId}&primaryColor=${o}&redirectUrl=${this.redirectUrl}`})))))}};l.style=".salon-modal.salon-modal--booking:before{display:none}.salon-modal.salon-modal--booking .salon-modal--inner,.salon-modal.salon-modal--booking .salon-modal--content{max-width:none;width:100%;height:100%}.salon-modal.salon-modal--booking .salon-modal--close{width:48px;height:48px;right:10px;top:12px}@media (min-width: 576px){.salon-modal.salon-modal--booking .salon-modal--close{right:16px}}@media (min-width: 768px){.salon-modal.salon-modal--booking .salon-modal--close{right:24px}}@media (min-width: 1200px){.salon-modal.salon-modal--booking .salon-modal--close{right:50%;margin-right:-585px}}";export{l as salon_booking_modal}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-2da2ed75.js";import{C as i}from"./p-4e2d7b29.js";let r=class{constructor(t){e(this,t),this.size=24}render(){return t("div",{style:{display:"flex",alignItems:"center"}},this.avatar&&t("div",{style:{backgroundImage:`url("${this.avatar}")`,backgroundColor:i.Gray06,backgroundPosition:"center center",backgroundSize:"cover",borderRadius:"50%",height:`${this.size}px`,width:`${this.size}px`,minWidth:`${this.size}px`}}),!this.avatar&&t("div",{style:{backgroundColor:i.Gray06,backgroundPosition:"center center",backgroundSize:"cover",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",height:`${this.size}px`,width:`${this.size}px`,minWidth:`${this.size}px`}},this.shortName),t("div",{style:Object.assign({flexShrink:"1",flexGrow:"1",marginLeft:"12px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},this.nameStyle)},this.name))}};r.style="";export{r as user_avatar}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-2da2ed75.js";import{C as i}from"./p-4e2d7b29.js";import{H as a}from"./p-762520f2.js";let e=class{constructor(s){t(this,s)}componentWillLoad(){this.fetchData()}async fetchData(){try{this.salonStylists=await a().fetchSalonStylists(this.salonId)}catch(t){}}render(){return s("div",{class:"view--salon-stylists"},(this.salonStylists||[]).map((t=>s("div",{class:"salon-stylist"},s("div",{class:"card",style:{border:`1px solid ${i.Gray05}`,borderRadius:"8px",overflow:"hidden"}},s("div",{class:"salon-stylist--avatar",style:{backgroundImage:`url("${t.avatar}")`,backgroundColor:i.Gray06,backgroundRepeat:"no-repeat",backgroundPosition:"center top",backgroundSize:"cover",position:"relative",display:"flex",width:"100%",alignItems:"center",justifyContent:"center"}},!t.avatar&&s("span",{style:{fontSize:"32px",fontWeight:"bold",textTransform:"uppercase"}},(t.firstName||"").charAt(0)," ",(t.lastName||"").charAt(0))),s("div",{class:"card-body"},s("div",{style:{fontSize:"16px",fontWeight:"bold",textAlign:"center"}},t.name),s("div",{style:{marginTop:"4px"}},s("salon-ranking",{ranking:t.rating}))))))))}};e.style=".view--salon-stylists{overflow:hidden;margin-left:-12px;margin-top:-12px}.view--salon-stylists .salon-stylist{float:left;padding-left:12px;padding-top:12px;width:50%}.view--salon-stylists .salon-stylist--avatar{height:180px}@media (min-width: 576px){.view--salon-stylists .salon-stylist{width:33.33%;max-width:240px}}@media (min-width: 768px){.view--salon-stylists{margin-left:-24px;margin-top:-24px}.view--salon-stylists .salon-stylist{padding-left:24px;padding-top:24px;width:264px;max-width:none}.view--salon-stylists .salon-stylist--avatar{height:240px}}";export{e as salon_stylists}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-2da2ed75.js";import{C as e}from"./p-4e2d7b29.js";import{H as o}from"./p-762520f2.js";const i=[{value:"like",label:"Most popular"},{value:"newest",label:"Newest first"},{value:"oldest",label:"Oldest first"}],n=[{value:"all",label:"All Category"}];let a=class{constructor(s){t(this,s),this.isLoading=!0,this.currentPage=1,this.totalLookbooks=0,this.salonCategories=[],this.salonLookbooks=[]}componentWillLoad(){this.fetchData(),this.injectSDK()}componentDidRender(){this.setupGridLayout()}injectSDK(){return new Promise((t=>{const s=document.createElement("script");return s.type="text/javascript",s.src="https://cdn.jsdelivr.net/npm/macy@2",document.body.appendChild(s),t(!0)}))}setupGridLayout(){if(!this.isLayoutSetup&&document.querySelector("#salon-loobooks--grid")){const t=document.createElement("script");t.type="text/javascript",t.innerHTML="\n var masonry = new Macy({\n container: '#salon-loobooks--grid',\n useContainerForBreakpoints: true,\n margin: 12,\n columns: 7,\n breakAt: {\n 1200: {\n margin: 16,\n columns: 6,\n },\n 992: {\n margin: 16,\n columns: 5,\n },\n 768: {\n margin: 16,\n columns: 3,\n },\n 576: {\n margin: 16,\n columns: 2,\n },\n },\n });\n ",document.body.appendChild(t),this.isLayoutSetup=!0}}async fetchData(){try{const t=[this.fetchLookbooks({page:1}),this.fetchCategories()];return Promise.all(t)}catch(t){}}async fetchLookbooks(t,s){s?this.isLoadingMore=!0:this.isLoading=!0;try{const{total:s,allLookbooks:e}=await o().fetchSalonLookbooks(this.salonId,t);this.totalLookbooks=s,this.salonLookbooks=this.salonLookbooks.concat(e),this.hideLoadMore=e.length<20}catch(t){}s?this.isLoadingMore=!1:this.isLoading=!1}async onLoadMore(){try{this.currentPage+=1,await this.fetchLookbooks({page:this.currentPage},!0),window.masonry&&(this.isLayoutSetup=!1)}catch(t){}}async fetchCategories(){try{this.salonCategories=await o().fetchSalonCategories()}catch(t){}}renderHeader(){const t=n.concat([...this.salonCategories].map((t=>({value:t.id,label:t.name}))));return s("div",{class:"view-header",style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"}},s("div",null,this.totalLookbooks," ",1===this.totalLookbooks?"result":"results"),s("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},s("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"16px"}},s("label",{style:{marginRight:"8px"}},"Filter by"),s("select",{class:"form-select",style:{width:"160px"}},t.map((t=>s("option",{value:t.value},t.label))))),s("div",{class:"search--header--sort-wrapper",style:{display:"flex",flexDirection:"row",alignItems:"center"}},s("label",{style:{marginRight:"8px"}},"Sort by"),s("select",{class:"form-select",style:{width:"160px"}},i.map((t=>s("option",{value:t.value},t.label)))))))}render(){return s("div",{class:"salon-loobooks"},this.salonLookbooks.length>0&&s("div",null,s("div",{class:"view-content"},this.renderHeader(),s("div",{class:"salon-loobooks--grid",id:"salon-loobooks--grid"},this.salonLookbooks.map((t=>{const{caption:o,fullImageUrlThumb:i,owner:n}=t;return s("div",{class:"salon-lookbook salon-loobooks--grid-item"},s("div",{class:"card",style:{background:"none",border:"none",maxWidth:"200px"}},s("div",{class:"salon-lookbook--image",style:{borderRadius:"8px",overflow:"hidden",minHeight:"80px",background:e.Gray06}},s("img",{src:i,alt:o})),n&&s("div",{class:"card-body",style:{paddingLeft:"0"}},s("user-avatar",{name:n.name,shortName:`${(n.firstName||"").charAt(0)}${(n.lastName||"").charAt(0)}`,avatar:n.avatar}))))})))),!this.hideLoadMore&&s("div",{class:"view-footer",style:{paddingTop:"16px",textAlign:"center"}},s("button",{type:"button",class:"btn btn-light",onClick:()=>this.onLoadMore()},this.isLoadingMore?"Loading":"Load more"))))}};a.style=".salon-loobooks--grid-item{float:left;max-width:150px}@media (min-width: 768px){.salon-loobooks--grid-item{max-width:200px}}";export{a as salon_lookbook}
@@ -1 +0,0 @@
1
- import{r as o,h as a}from"./p-2da2ed75.js";let n=class{constructor(a){o(this,a),this.buttonText="Book now",this.buttonClass="btn btn-primary",this.primaryColor="#d47b99"}openModal(){const o=document.createElement("div");o.innerHTML=`\n <salon-booking-modal\n salon-id=${this.salonId}\n primary-color=${this.primaryColor}\n ></salon-booking-modal>\n `,document.body.appendChild(o)}render(){return a("div",{class:"salon-booking"},a("div",{class:"salon-booking--button"},a("button",{type:"button",class:this.buttonClass,onClick:()=>this.openModal()},this.buttonText)))}};n.style=".salon-modal.salon-modal--booking:before{display:none}.salon-modal.salon-modal--booking .salon-modal--inner,.salon-modal.salon-modal--booking .salon-modal--content{max-width:none;width:100%;height:100%}.salon-modal.salon-modal--booking .salon-modal--close{width:48px;height:48px;right:10px;top:12px}@media (min-width: 576px){.salon-modal.salon-modal--booking .salon-modal--close{right:16px}}@media (min-width: 768px){.salon-modal.salon-modal--booking .salon-modal--close{right:24px}}@media (min-width: 1200px){.salon-modal.salon-modal--booking .salon-modal--close{right:50%;margin-right:-585px}}";let l=class{constructor(a){o(this,a),this.buttonText="Buy Gift card",this.buttonClass="btn btn-primary"}openModal(){const o=document.createElement("div");o.innerHTML=`\n <salon-gift-card-modal\n salon-id=${this.salonId}\n ></salon-gift-card-modal>\n `,document.body.appendChild(o)}render(){return a("div",{class:"salon-gift-card"},a("div",{class:"salon-gift-card--button"},a("button",{type:"button",class:this.buttonClass,onClick:()=>this.openModal()},this.buttonText)))}};l.style=".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}";export{n as salon_booking,l as salon_gift_card}
@@ -1 +0,0 @@
1
- import{r as t,h as i}from"./p-2da2ed75.js";import{C as r}from"./p-4e2d7b29.js";let o=class{constructor(i){t(this,i),this.height=16,this.width=16}getRankingData(t){return 5===t?{color:r.Danger,text:"Viral"}:4===t?{color:r.Pink03,text:"Advancing"}:3===t?{color:r.Orange03,text:"Progressing"}:2===t?{color:r.DarkBlue03,text:"Building"}:{color:r.Gray01,text:"Starting"}}render(){const t=this.getRankingData(this.ranking);return i("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",color:t.color}},i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:this.width,height:this.height,viewBox:`0 0 ${this.width} ${this.height}`,style:{maxWidth:`${this.width}px`,height:"auto",marginRight:"8px"}},i("path",{d:"M14.9984 14.1273C15.0188 14.2658 14.8369 14.3204 14.7415 14.2251L8.11345 7.6028C6.41272 5.90355 6.42184 3.19468 8.23887 1.76037C9.63972 0.678363 11.7259 0.753791 13.1793 1.96961C14.1899 2.80207 14.706 3.93808 14.7471 5.07223L14.9984 14.1273Z",fill:"currentColor"}),i("path",{d:"M1.74847 8.24513C3.18403 6.42967 5.91004 6.40579 7.61078 8.10504L14.2548 14.7432C14.3501 14.8385 14.2795 15.0043 14.1568 14.9999L5.078 14.7329C3.94287 14.6918 2.78997 14.1604 1.97268 13.1665C0.755801 11.7144 0.680308 9.62998 1.74847 8.24513Z",fill:"currentColor"})),t.text)}};o.style="salon-ranking{display:block}";export{o as salon_ranking}
@@ -1 +0,0 @@
1
- import{r as e,h as s}from"./p-2da2ed75.js";import{H as i,d as t,s as a}from"./p-762520f2.js";import{C as r}from"./p-4e2d7b29.js";import{g as o}from"./p-47e646f8.js";let l=class{constructor(s){e(this,s),this.salonReviews=[]}componentWillLoad(){this.fetchData()}async fetchData(){try{const{allItems:e}=await i().fetchSalonReviews(this.salonId,{noLoop:!0});this.salonReviews=[...e]}catch(e){}}render(){const e=o();return s("div",{class:"salon-latest-reviews",style:{overflowX:"auto"}},s("div",{style:{display:"flex",whiteSpace:"nowrap"}},(this.salonReviews||[]).map(((i,o)=>{const{user:l}=i;return s("div",{class:"salon-review",style:Object.assign({border:`1px solid ${r.Gray05}`,background:r.White,borderRadius:"8px",overflow:"hidden"},o>0?{marginLeft:"16px"}:{})},s("div",{class:"card",style:{border:"none"}},s("div",{class:"card-body"},s("div",{class:"salon-review--user",style:{marginBottom:"16px"}},s("user-avatar",{size:48,name:l.name,shortName:`${(l.firstName||"").charAt(0)}${(l.lastName||"").charAt(0)}`,avatar:l.avatar,nameStyle:{fontWeight:"bold"}})),s("div",{class:"salon-review--rating",style:{display:"flex",flexDirection:"row",marginBottom:"4px"}},[1,2,3,4,5].map((e=>s("i",{class:e<=i.point?"ri-heart-fill":"ri-heart-line",style:{fontSize:"16px",marginRight:"4px"}}))),s("div",{class:"salon-review--rating--date",style:{color:r.Gray03,marginLeft:"16px"}},t(i.createdDate).format(a))),s("div",{class:"salon-review--rating-text",style:{fontSize:"16px",fontWeight:"bold"}},e[i.point]),(i.title||i.description)&&s("div",{class:"salon-review--detail",style:{marginTop:"16px"}},s("div",{class:"salon-review--description",style:{fontSize:"16px",lineHeight:"26px",overflow:"hidden",maxHeight:i.photos.length>0?"52px":"104px"}},i.title||i.description)),i.photos.length>0&&s("div",{style:{display:"flex",flexDirection:"row",overflowX:"auto"}},i.photos.map((e=>s("div",{style:{border:"1px solid #d9d9d9",position:"relative",cursor:"pointer",borderRadius:"2px",height:"66px",marginTop:"16px",marginRight:"16px"}},s("img",{alt:"",src:e.imageUrlThumb,height:"64",style:{width:"auto"}}))))))))}))))}};l.style=".salon-latest-reviews .salon-review{min-width:280px}@media (min-width: 768px){.salon-latest-reviews .salon-review{min-width:300px}}";export{l as salon_latest_reviews}
@@ -1 +0,0 @@
1
- import{r as a,h as o}from"./p-2da2ed75.js";let l=class{constructor(o){a(this,o),this.isModalOpen=!0}render(){return o("div",{class:"salon-gift-card--modal"},this.isModalOpen&&o("div",{class:"salon-modal salon-modal--gift-card"},o("div",{class:"salon-modal--backdrop",onClick:()=>this.isModalOpen=!1}),o("div",{class:"salon-modal--inner"},o("div",{class:"salon-modal--close",onClick:()=>this.isModalOpen=!1}),o("div",{class:"salon-modal--content"},o("iframe",{height:"100%",width:"100%",style:{border:"none",display:"block",height:"100%"},src:`https://www.favesalon.com/salon/detail/${this.salonId}/gift-cards.html`})))))}};l.style=".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}";export{l as salon_gift_card_modal}
@@ -1,10 +0,0 @@
1
- export declare class GoogleMap {
2
- apiKey: string;
3
- lat: number;
4
- lng: number;
5
- map: any;
6
- componentDidLoad(): void;
7
- injectSDK(): Promise<any>;
8
- initMap(): void;
9
- render(): any;
10
- }
@@ -1,9 +0,0 @@
1
- import { Salon } from '../../types/salon';
2
- export declare class SalonContact {
3
- salonId: number;
4
- salonInfo?: string;
5
- salonInfoState: Salon;
6
- componentWillLoad(): void;
7
- fetchData(): void;
8
- render(): any;
9
- }