favesalon-embed 1.0.1 → 1.0.2

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 (156) hide show
  1. package/dist/custom-elements/index.d.ts +12 -0
  2. package/dist/{cjs/_commonjsHelpers-5cfcba41.js → favesalon-embed/_commonjsHelpers-a4f66ccd.js} +14 -6
  3. package/dist/{cjs/global-9073d10e.js → favesalon-embed/app-globals-15861a7f.js} +15 -8
  4. package/dist/{esm/global-e1089ffd.js → favesalon-embed/app-globals-270fe240.js} +16 -7
  5. package/dist/favesalon-embed/app-globals-437cc3f3.js +712 -0
  6. package/dist/favesalon-embed/app-globals-b8b0fc7a.js +712 -0
  7. package/dist/favesalon-embed/chat-button.entry.js +56 -0
  8. package/dist/favesalon-embed/chat-form.entry.js +39 -0
  9. package/dist/favesalon-embed/chat-messages.entry.js +51 -0
  10. package/dist/favesalon-embed/css-shim-b7d3d95f.js +4 -0
  11. package/dist/favesalon-embed/dom-64053c71.js +73 -0
  12. package/dist/favesalon-embed/favesalon-embed.css +2433 -4
  13. package/dist/favesalon-embed/favesalon-embed.esm.js +148 -1
  14. package/dist/{collection/components/google-map/index.js → favesalon-embed/google-map.entry.js} +12 -54
  15. package/dist/{esm/index-80523fec.js → favesalon-embed/index-00b83e1c.js} +425 -15
  16. package/dist/favesalon-embed/index-888e99e3.js +3371 -0
  17. package/dist/favesalon-embed/index-9ad82b12.js +3371 -0
  18. package/dist/favesalon-embed/index-aa906326.js +3371 -0
  19. package/dist/favesalon-embed/index-b97af793.js +3371 -0
  20. package/dist/favesalon-embed/index.esm.js +1 -0
  21. package/dist/favesalon-embed/relativeTime-268e64b0.js +7 -0
  22. package/dist/{esm → favesalon-embed}/salon-booking-modal.entry.js +1 -1
  23. package/dist/{esm → favesalon-embed}/salon-booking.entry.js +3 -3
  24. package/dist/{esm → favesalon-embed}/salon-gift-card-modal.entry.js +1 -1
  25. package/dist/{esm → favesalon-embed}/salon-gift-card.entry.js +3 -3
  26. package/dist/favesalon-embed/salon-info.entry.js +29 -0
  27. package/dist/{esm → favesalon-embed}/salon-latest-reviews.entry.js +4 -4
  28. package/dist/{collection/components/salon-latest-styles/index.js → favesalon-embed/salon-latest-styles.entry.js} +14 -99
  29. package/dist/{collection/components/salon-locations/index.js → favesalon-embed/salon-locations.entry.js} +15 -95
  30. package/dist/{esm → favesalon-embed}/salon-lookbook.entry.js +3 -3
  31. package/dist/{esm → favesalon-embed}/salon-ranking.entry.js +1 -1
  32. package/dist/{esm → favesalon-embed}/salon-reviews.entry.js +3 -3
  33. package/dist/{collection/components/salon-schedules/index.js → favesalon-embed/salon-schedules.entry.js} +14 -95
  34. package/dist/{esm → favesalon-embed}/salon-services.entry.js +3 -3
  35. package/dist/{esm → favesalon-embed}/salon-stylists.entry.js +3 -3
  36. package/dist/{esm/services-40a3e622.js → favesalon-embed/services-7cb8f2a6.js} +2469 -100
  37. package/dist/favesalon-embed/shadow-css-98135883.js +387 -0
  38. package/dist/{esm → favesalon-embed}/style-detail.entry.js +4 -4
  39. package/dist/{esm → favesalon-embed}/user-avatar.entry.js +2 -1
  40. package/dist/{esm/utils-e97485e0.js → favesalon-embed/utils-7de9628a.js} +3 -0
  41. package/dist/types/components/chat-button/index.d.ts +0 -8
  42. package/dist/types/components/chat-form/index.d.ts +6 -0
  43. package/dist/types/components/chat-messages/index.d.ts +14 -0
  44. package/dist/types/components.d.ts +40 -0
  45. package/package.json +1 -1
  46. package/dist/cjs/chat-button.cjs.entry.js +0 -118
  47. package/dist/cjs/colors-38421769.js +0 -69
  48. package/dist/cjs/favesalon-embed.cjs.js +0 -24
  49. package/dist/cjs/google-map_5.cjs.entry.js +0 -310
  50. package/dist/cjs/index-47c2a5f6.js +0 -1533
  51. package/dist/cjs/index-7f190886.js +0 -4396
  52. package/dist/cjs/index.cjs.js +0 -2
  53. package/dist/cjs/loader.cjs.js +0 -23
  54. package/dist/cjs/relativeTime-3721080d.js +0 -9
  55. package/dist/cjs/salon-booking-modal.cjs.entry.js +0 -30
  56. package/dist/cjs/salon-booking.cjs.entry.js +0 -51
  57. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +0 -29
  58. package/dist/cjs/salon-gift-card.cjs.entry.js +0 -51
  59. package/dist/cjs/salon-latest-reviews.cjs.entry.js +0 -97
  60. package/dist/cjs/salon-lookbook.cjs.entry.js +0 -222
  61. package/dist/cjs/salon-ranking.cjs.entry.js +0 -60
  62. package/dist/cjs/salon-reviews.cjs.entry.js +0 -193
  63. package/dist/cjs/salon-services.cjs.entry.js +0 -81
  64. package/dist/cjs/salon-stylists.cjs.entry.js +0 -118
  65. package/dist/cjs/services-125c82d8.js +0 -21492
  66. package/dist/cjs/style-detail.cjs.entry.js +0 -312
  67. package/dist/cjs/user-avatar.cjs.entry.js +0 -45
  68. package/dist/cjs/utils-c5a33b3c.js +0 -23
  69. package/dist/collection/collection-manifest.json +0 -29
  70. package/dist/collection/components/chat-button/index.css +0 -122
  71. package/dist/collection/components/chat-button/index.js +0 -218
  72. package/dist/collection/components/chat-conversation/index.js +0 -103
  73. package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
  74. package/dist/collection/components/google-map/index.css +0 -5
  75. package/dist/collection/components/salon-booking/index.css +0 -30
  76. package/dist/collection/components/salon-booking/index.js +0 -126
  77. package/dist/collection/components/salon-booking/salon-booking-modal.js +0 -92
  78. package/dist/collection/components/salon-gift-card/index.css +0 -30
  79. package/dist/collection/components/salon-gift-card/index.js +0 -126
  80. package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -73
  81. package/dist/collection/components/salon-info/index.css +0 -1
  82. package/dist/collection/components/salon-info/index.js +0 -77
  83. package/dist/collection/components/salon-latest-reviews/index.css +0 -11
  84. package/dist/collection/components/salon-latest-reviews/index.js +0 -163
  85. package/dist/collection/components/salon-latest-styles/index.css +0 -12
  86. package/dist/collection/components/salon-locations/index.css +0 -24
  87. package/dist/collection/components/salon-lookbook/index.css +0 -15
  88. package/dist/collection/components/salon-lookbook/index.js +0 -368
  89. package/dist/collection/components/salon-ranking/index.css +0 -3
  90. package/dist/collection/components/salon-ranking/index.js +0 -117
  91. package/dist/collection/components/salon-reviews/index.css +0 -18
  92. package/dist/collection/components/salon-reviews/index.js +0 -249
  93. package/dist/collection/components/salon-schedules/index.css +0 -18
  94. package/dist/collection/components/salon-services/index.css +0 -1
  95. package/dist/collection/components/salon-services/index.js +0 -146
  96. package/dist/collection/components/salon-stylists/index.css +0 -43
  97. package/dist/collection/components/salon-stylists/index.js +0 -184
  98. package/dist/collection/components/style-detail/index.css +0 -76
  99. package/dist/collection/components/style-detail/index.js +0 -386
  100. package/dist/collection/components/user-avatar/index.css +0 -0
  101. package/dist/collection/components/user-avatar/index.js +0 -134
  102. package/dist/collection/constants/colors.js +0 -65
  103. package/dist/collection/global/global.js +0 -8
  104. package/dist/collection/index.js +0 -1
  105. package/dist/collection/mocks/users.js +0 -10
  106. package/dist/collection/services/services.js +0 -295
  107. package/dist/collection/types/chat.js +0 -23
  108. package/dist/collection/types/common.js +0 -11
  109. package/dist/collection/types/review.js +0 -39
  110. package/dist/collection/types/salon.js +0 -58
  111. package/dist/collection/types/service.js +0 -24
  112. package/dist/collection/types/style.js +0 -128
  113. package/dist/collection/types/stylist.js +0 -30
  114. package/dist/collection/types/user.js +0 -10
  115. package/dist/collection/utils/utils.js +0 -20
  116. package/dist/custom-elements/index.js +0 -28340
  117. package/dist/esm/_commonjsHelpers-098d5b27.js +0 -32
  118. package/dist/esm/chat-button.entry.js +0 -114
  119. package/dist/esm/favesalon-embed.js +0 -19
  120. package/dist/esm/google-map_5.entry.js +0 -302
  121. package/dist/esm/index-3fae868e.js +0 -1506
  122. package/dist/esm/index.js +0 -1
  123. package/dist/esm/loader.js +0 -19
  124. package/dist/esm/polyfills/core-js.js +0 -11
  125. package/dist/esm/polyfills/css-shim.js +0 -1
  126. package/dist/esm/polyfills/dom.js +0 -79
  127. package/dist/esm/polyfills/es5-html-element.js +0 -1
  128. package/dist/esm/polyfills/index.js +0 -34
  129. package/dist/esm/polyfills/system.js +0 -6
  130. package/dist/esm/relativeTime-cd452e6d.js +0 -7
  131. package/dist/favesalon-embed/p-019c5ccd.entry.js +0 -1
  132. package/dist/favesalon-embed/p-083a8821.entry.js +0 -1
  133. package/dist/favesalon-embed/p-0d0ed9ea.entry.js +0 -1
  134. package/dist/favesalon-embed/p-119db8de.entry.js +0 -1
  135. package/dist/favesalon-embed/p-1432c51b.entry.js +0 -1
  136. package/dist/favesalon-embed/p-22093506.entry.js +0 -1
  137. package/dist/favesalon-embed/p-32b314e9.js +0 -2
  138. package/dist/favesalon-embed/p-47e646f8.js +0 -1
  139. package/dist/favesalon-embed/p-4a5eca9a.js +0 -6
  140. package/dist/favesalon-embed/p-58d2e9be.js +0 -1
  141. package/dist/favesalon-embed/p-71404b6a.entry.js +0 -1
  142. package/dist/favesalon-embed/p-857c3a61.entry.js +0 -1
  143. package/dist/favesalon-embed/p-99ec77f7.entry.js +0 -1
  144. package/dist/favesalon-embed/p-a33331cc.js +0 -1
  145. package/dist/favesalon-embed/p-b0c3673a.entry.js +0 -1
  146. package/dist/favesalon-embed/p-b287b1ea.entry.js +0 -1
  147. package/dist/favesalon-embed/p-b3af7842.entry.js +0 -1
  148. package/dist/favesalon-embed/p-b630ae68.js +0 -1580
  149. package/dist/favesalon-embed/p-ce2c1c9a.entry.js +0 -1
  150. package/dist/favesalon-embed/p-d6083940.js +0 -1
  151. package/dist/favesalon-embed/p-d9b7ad58.entry.js +0 -1
  152. package/dist/favesalon-embed/p-fc9a5551.js +0 -6
  153. package/dist/index.cjs.js +0 -1
  154. package/dist/index.js +0 -1
  155. package/dist/types/components/chat-conversation/index.d.ts +0 -0
  156. /package/dist/{esm → favesalon-embed}/colors-ea36347a.js +0 -0
@@ -1,312 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-47c2a5f6.js');
6
- const services = require('./services-125c82d8.js');
7
- const relativeTime = require('./relativeTime-3721080d.js');
8
- const colors = require('./colors-38421769.js');
9
- require('./_commonjsHelpers-5cfcba41.js');
10
-
11
- const indexCss = ".salon-modal.salon-modal--lookbook-detail .salon-modal--close{display:none !important}.salon-modal.salon-modal--lookbook-detail .salon-modal--content{background-color:#fff;position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1000;overflow-y:auto}.salon-modal.salon-modal--lookbook-detail .style-detail--slides--image{height:240px !important}.salon-modal.salon-modal--lookbook-detail .style-detail--slides--thumbnails{text-align:center}.salon-modal.salon-modal--lookbook-detail .style-detail--slides--thumbnail{display:inline-block;margin-top:12px;margin-right:12px;height:40px;width:60px}.salon-modal.salon-modal--lookbook-detail .style-detail--slides--button{border:none;position:absolute;top:50%;z-index:20;height:40px;width:40px;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px;-moz-transform:translate(0, -50%);-webkit-transform:translate(0, -50%);transform:translate(0, -50%)}.salon-modal.salon-modal--lookbook-detail .style-detail--slides--prev{left:24px}.salon-modal.salon-modal--lookbook-detail .style-detail--slides--next{right:24px}@media (min-width: 768px){.salon-modal.salon-modal--lookbook-detail .style-detail--slides--image{height:360px !important}}@media (min-width: 992px){.salon-modal.salon-modal--lookbook-detail .style-detail--slides--image{height:480px !important}.salon-modal.salon-modal--lookbook-detail .style-detail--slides--thumbnail{height:56px;width:72px}}";
12
-
13
- services.dayjs_min.extend(relativeTime.relativeTime);
14
- const StyleDetail = class {
15
- constructor(hostRef) {
16
- index.registerInstance(this, hostRef);
17
- this.salonId = undefined;
18
- this.salonLookbook = undefined;
19
- this.lookbookInfo = undefined;
20
- this.isModalOpen = true;
21
- this.currentMediaIdx = 0;
22
- this.currentMedia = undefined;
23
- this.albumMedias = [];
24
- this.similarStyles = [];
25
- this.totalComments = 0;
26
- this.lookbookComments = [];
27
- this.isLayoutSetup = undefined;
28
- }
29
- componentWillLoad() {
30
- this.injectSDK();
31
- if (!!this.salonLookbook) {
32
- this.lookbookInfo = JSON.parse(this.salonLookbook);
33
- this.fetchData();
34
- }
35
- }
36
- componentDidRender() {
37
- this.setupGridLayout();
38
- }
39
- injectSDK() {
40
- return new Promise((resolve) => {
41
- const script = document.createElement('script');
42
- script.type = 'text/javascript';
43
- script.src = 'https://cdn.jsdelivr.net/npm/macy@2';
44
- document.body.appendChild(script);
45
- return resolve(true);
46
- });
47
- }
48
- setupGridLayout() {
49
- if (!this.isLayoutSetup && this.similarStyles.length > 0 && document.querySelector('#similar-styles--grid')) {
50
- const script = document.createElement('script');
51
- script.type = 'text/javascript';
52
- script.innerHTML = `
53
- var masonry = new Macy({
54
- container: '#similar-styles--grid',
55
- useContainerForBreakpoints: true,
56
- margin: 16,
57
- columns: 2,
58
- });
59
- `;
60
- document.body.appendChild(script);
61
- this.isLayoutSetup = true;
62
- }
63
- }
64
- fetchData() {
65
- try {
66
- const promises = [
67
- services.HttpService().fetchStyleDetail(this.lookbookInfo.id).then(response => {
68
- const { styleInfo, similarStyles } = response;
69
- this.similarStyles = similarStyles;
70
- if (styleInfo) {
71
- this.lookbookInfo = styleInfo;
72
- this.albumMedias = styleInfo.albumMedias || [];
73
- this.currentMedia = (styleInfo.albumMedias || [])[0];
74
- }
75
- }),
76
- services.HttpService().fetchStyleComments(this.lookbookInfo.id).then(response => {
77
- this.totalComments = response.total;
78
- this.lookbookComments = response.data;
79
- }),
80
- ];
81
- return Promise.all(promises);
82
- }
83
- catch (e) { }
84
- }
85
- closeModal() {
86
- this.isModalOpen = false;
87
- const el = document.querySelector('style-detail');
88
- el.remove();
89
- }
90
- onClickLookbook(style) {
91
- const elLookbookModal = document.createElement('div');
92
- elLookbookModal.innerHTML = `
93
- <style-detail
94
- salon-id=${this.salonId}
95
- salon-lookbook='${JSON.stringify(style)}'
96
- ></style-detail>
97
- `;
98
- document.body.appendChild(elLookbookModal);
99
- }
100
- onClickPrev() {
101
- if (this.currentMediaIdx === 0) {
102
- this.currentMediaIdx = this.albumMedias.length - 1;
103
- this.currentMedia = this.albumMedias[this.currentMediaIdx];
104
- }
105
- else {
106
- this.currentMediaIdx = this.currentMediaIdx - 1;
107
- this.currentMedia = this.albumMedias[this.currentMediaIdx];
108
- }
109
- }
110
- onClickNext() {
111
- if (this.currentMediaIdx === this.albumMedias.length - 1) {
112
- this.currentMediaIdx = 0;
113
- this.currentMedia = this.albumMedias[0];
114
- }
115
- else {
116
- this.currentMediaIdx = this.currentMediaIdx + 1;
117
- this.currentMedia = this.albumMedias[this.currentMediaIdx];
118
- }
119
- }
120
- render() {
121
- const { createdDate, totalView, totalLike, totalBooking, album, salon, stylist, } = this.lookbookInfo;
122
- if (this.isModalOpen) {
123
- const { caption, description, mediaUrl } = this.currentMedia || {};
124
- const isVideo = services.isVideoMedia((this.currentMedia || {}));
125
- return (index.h("div", { class: "salon-modal salon-modal--lookbook-detail" }, index.h("div", { class: "salon-modal--inner" }, index.h("div", { class: "salon-modal--content" }, index.h("div", { class: "style-detail" }, index.h("div", { class: "style-detail--header" }, index.h("div", { style: {
126
- position: 'relative',
127
- overflow: 'hidden',
128
- } }, index.h("div", { style: Object.assign({ backgroundColor: colors.Colors.Gray01, backgroundSize: 'cover', backgroundRepeat: 'no-repeat', backgroundPosition: '0 0', filter: 'blur(30px)', position: 'absolute', inset: '0', zIndex: '1' }, this.currentMedia && !services.isVideoMedia(this.currentMedia) ? { backgroundImage: `url("${this.currentMedia.imageThumb}")` } : {}) }), index.h("div", { style: {
129
- zIndex: '2',
130
- position: 'relative',
131
- width: '100%',
132
- backgroundColor: 'rgba(0, 0, 0, 0.25)',
133
- padding: '12px 16px',
134
- overflow: 'hidden',
135
- } }, index.h("span", { style: {
136
- color: colors.Colors.White,
137
- border: 'none',
138
- display: 'flex',
139
- alignItems: 'center',
140
- justifyContent: 'center',
141
- height: '32px',
142
- } }, index.h("span", null, this.currentMediaIdx + 1, " / ", this.albumMedias.length)), index.h("div", { style: {
143
- display: 'flex',
144
- alignItems: 'center',
145
- position: 'absolute',
146
- right: '16px',
147
- top: '50%',
148
- transform: 'translate(0, -50%)',
149
- } }, index.h("button", { type: "text", class: "btn btn-light", style: {
150
- backgroundColor: colors.Colors.White,
151
- borderColor: colors.Colors.White,
152
- border: 'none',
153
- borderRadius: '50px',
154
- display: 'flex',
155
- alignItems: 'center',
156
- justifyContent: 'center',
157
- height: '32px',
158
- width: '32px',
159
- marginLeft: '12px',
160
- }, onClick: () => this.closeModal() }, index.h("i", { class: "ri-close-fill", style: { fontSize: '16px', lineHeight: '1' } })))), index.h("div", { style: { position: 'relative', zIndex: "3" } }, index.h("div", { class: "style-detail--slides", style: {
161
- marginTop: '16px',
162
- marginBottom: '12px',
163
- } }, index.h("div", { class: "style-detail--slides--image", style: {
164
- width: '100%',
165
- position: 'relative',
166
- height: '360px',
167
- } }, isVideo && (index.h("video", { muted: true, controls: true, width: "100%", height: "100%" }, index.h("source", { src: mediaUrl, type: "video/mp4" }))), !isVideo && (index.h("div", { style: {
168
- position: 'absolute',
169
- inset: '0',
170
- zIndex: '2',
171
- display: 'flex',
172
- alignItems: 'center',
173
- justifyContent: 'center',
174
- } }, index.h("img", { src: mediaUrl, alt: caption, style: {
175
- objectFit: 'contain',
176
- maxHeight: '100%',
177
- maxWidth: '100%',
178
- } })))), index.h("div", { class: "style-detail--slides--thumbnails", style: {
179
- width: '100%',
180
- position: 'relative',
181
- } }, this.albumMedias.map((media, idx) => {
182
- const isStyleVideo = services.isVideoMedia(media);
183
- return (index.h("div", { class: "style-detail--slides--thumbnail", style: Object.assign(Object.assign({ backgroundColor: colors.Colors.Gray01, borderRadius: '4px', overflow: 'hidden', position: 'relative', cursor: 'pointer' }, this.currentMediaIdx !== idx ? { opacity: '0.75' } : {}), !isStyleVideo ? {
184
- backgroundImage: `url("${media.imageThumb || media.imageThumbMedium}")`,
185
- backgroundRepeat: 'no-repeat',
186
- backgroundPosition: 'center center',
187
- backgroundSize: 'cover',
188
- } : {}), onClick: () => {
189
- this.currentMedia = media;
190
- this.currentMediaIdx = idx;
191
- } }, isStyleVideo && (index.h("div", null, index.h("video", { muted: true, width: "100%", height: "100%", poster: media.imageThumb }, index.h("source", { src: media.mediaUrl, type: "video/mp4" })), index.h("i", { class: "ri-play-circle-fill", style: {
192
- fontSize: '48px',
193
- color: colors.Colors.TextColor,
194
- position: 'absolute',
195
- left: '50%',
196
- top: '50%',
197
- transform: 'translate(-50%, -50%)',
198
- } })))));
199
- }))), this.albumMedias.length > 1 && (index.h("div", null, index.h("button", { type: "button btn-light", class: "style-detail--slides--button style-detail--slides--prev", onClick: () => this.onClickPrev() }, index.h("i", { class: "ri-arrow-left-line", style: { color: colors.Colors.TextColor, fontSize: '18px' } })), index.h("button", { type: "button btn-light", class: "style-detail--slides--button style-detail--slides--next", onClick: () => this.onClickNext() }, index.h("i", { class: "ri-arrow-right-line", style: { color: colors.Colors.TextColor, fontSize: '18px' } }))))))), index.h("div", { class: "style-detail--content" }, index.h("div", { class: "container" }, index.h("div", { style: {
200
- paddingBottom: '24px',
201
- paddingTop: '24px',
202
- } }, index.h("div", { class: "row" }, index.h("div", { class: this.similarStyles.length > 0 ? 'col-md-8' : 'col-md-12', style: { marginBottom: '24px' } }, index.h("div", { class: "row" }, salon && (index.h("div", { class: "col-sm-6 col-md-5", style: { marginBottom: '24px' } }, index.h("div", { style: {
203
- backgroundColor: colors.Colors.Red01,
204
- borderRadius: '4px',
205
- padding: '8px',
206
- display: 'flex',
207
- alignItems: 'center',
208
- justifyContent: 'space-between',
209
- } }, index.h("div", { style: { paddingLeft: '8px' } }, index.h("div", { style: { color: colors.Colors.Gray05, fontSize: '12px' } }, "At salon"), index.h("div", { style: {
210
- color: colors.Colors.Secondary,
211
- fontSize: '20px',
212
- lineHeight: '24px',
213
- } }, salon.businessName)), index.h("div", { style: {
214
- backgroundImage: `url("${services.getSalonImage(salon)}")`,
215
- backgroundColor: colors.Colors.Red02,
216
- backgroundSize: 'cover',
217
- backgroundRepeat: 'no-repeat',
218
- backgroundPosition: '0 0',
219
- borderRadius: '4px',
220
- height: '48px',
221
- width: '48px',
222
- } })))), stylist && stylist.id && (index.h("div", { class: "col-sm-6 col-md-5", style: { marginBottom: '24px' } }, index.h("div", { style: {
223
- backgroundColor: colors.Colors.Yellow01,
224
- borderRadius: '4px',
225
- padding: '8px',
226
- display: 'flex',
227
- alignItems: 'center',
228
- justifyContent: 'space-between',
229
- } }, index.h("div", { style: { paddingLeft: '8px' } }, index.h("div", { style: { color: colors.Colors.Gray05, fontSize: '12px' } }, "By stylist"), index.h("div", { style: {
230
- color: colors.Colors.Secondary,
231
- fontSize: '20px',
232
- lineHeight: '24px',
233
- } }, stylist.fullName)), index.h("div", { style: {
234
- backgroundImage: `url("${stylist.avatar}")`,
235
- backgroundColor: colors.Colors.Yellow02,
236
- backgroundSize: 'cover',
237
- backgroundRepeat: 'no-repeat',
238
- backgroundPosition: '0 0',
239
- borderRadius: '4px',
240
- height: '48px',
241
- width: '48px',
242
- } }))))), index.h("div", { style: {
243
- borderBottom: `1px solid ${colors.Colors.Gray02}`,
244
- borderTop: `1px solid ${colors.Colors.Gray02}`,
245
- display: 'flex',
246
- alignItems: 'center',
247
- justifyContent: 'space-between',
248
- paddingBottom: '16px',
249
- paddingTop: '16px',
250
- } }, index.h("div", { style: {
251
- display: 'flex',
252
- alignItems: 'center',
253
- justifyContent: 'space-around',
254
- flexShrink: '1',
255
- flexGrow: '1',
256
- } }, index.h("div", { style: { width: '25%', textAlign: 'center', maxWidth: '120px' } }, index.h("div", { style: { fontSize: '24px', fontWeight: '600', lineHeight: '1' } }, totalLike), index.h("div", { style: { fontSize: '14px', marginTop: '4px' } }, "faves")), index.h("div", { style: { width: '25%', textAlign: 'center', maxWidth: '120px' } }, index.h("div", { style: { fontSize: '24px', fontWeight: '600', lineHeight: '1' } }, totalBooking), index.h("div", { style: { fontSize: '14px', marginTop: '4px' } }, "booked")), index.h("div", { style: { width: '25%', textAlign: 'center', maxWidth: '120px' } }, index.h("div", { style: { fontSize: '24px', fontWeight: '600', lineHeight: '1' } }, totalView), index.h("div", { style: { fontSize: '14px', marginTop: '4px' } }, "views")), index.h("div", { style: { width: '25%', textAlign: 'center', maxWidth: '120px' } }, index.h("div", { style: { fontSize: '24px', fontWeight: '600', lineHeight: '1' } }, this.totalComments), index.h("div", { style: { fontSize: '14px', marginTop: '4px' } }, "comments")))), (caption || description) && (index.h("div", { style: { paddingTop: '24px' } }, index.h("div", { style: { color: colors.Colors.Gray04, fontSize: '14px' } }, createdDate && services.dayjs_min(createdDate).format(services.shortDateYearFormat)), index.h("div", { style: { fontSize: '24px' } }, caption), index.h("div", { style: {
257
- fontSize: '16px',
258
- paddingTop: caption ? '16px' : '0',
259
- } }, description))), album && album.tags.length > 0 && (index.h("div", { style: {
260
- paddingTop: '24px',
261
- marginBottom: '-12px',
262
- } }, album.tags.map((tag, idx) => (index.h("button", { class: "btn btn-light", key: `album--tag-${idx}`, style: {
263
- backgroundColor: colors.Colors.Gray01,
264
- borderColor: colors.Colors.Gray01,
265
- borderRadius: '4px',
266
- marginRight: '12px',
267
- marginBottom: '12px',
268
- } }, tag))))), index.h("div", { style: { marginTop: '32px' } }, this.lookbookComments && this.lookbookComments.length > 0 && (index.h("div", null, index.h("div", { style: { fontWeight: '600', marginBottom: '8px' } }, this.totalComments, " ", this.totalComments === 1 ? 'comment' : 'comments'), index.h("div", { class: "view view--style-comments", style: {
269
- borderTop: `1px solid ${colors.Colors.Gray02}`,
270
- paddingTop: '24px',
271
- paddingBottom: '24px',
272
- } }, this.lookbookComments.map((comment, idx) => {
273
- const { user, title, description, createdDate } = comment;
274
- return (index.h("div", { key: `style-info--comment-${idx}`, style: idx > 0 ? {
275
- borderTop: `1px solid ${colors.Colors.Gray02}`,
276
- marginTop: '24px',
277
- paddingTop: '24px',
278
- } : {} }, index.h("div", { style: { overflow: 'hidden' } }, index.h("user-avatar", { size: 48, avatar: user.avatar, name: index.h("div", null, index.h("div", { style: { color: colors.Colors.Gray04, lineHeight: '1', fontSize: '12px', fontWeight: '400' } }, services.dayjs_min(createdDate).fromNow()), index.h("div", { style: { fontSize: '18px', fontWeight: '600' } }, user.fullName)), shortName: `${(user.firstName || '').charAt(0)}${(user.lastName || '').charAt(0)}`, nameStyle: { fontWeight: 'bold' } })), index.h("div", { style: {
279
- color: colors.Colors.Black,
280
- fontSize: '16px',
281
- paddingTop: '16px',
282
- } }, title), description && (index.h("div", { style: {
283
- color: colors.Colors.Gray05,
284
- paddingTop: '8px',
285
- } }, description))));
286
- })))))), index.h("div", { class: "col-md-4", style: { marginBottom: '24px' } }, index.h("div", { class: "block block--similar-styles" }, this.similarStyles.length > 0 && (index.h("div", { class: "block--content" }, index.h("h3", { style: {
287
- lineHeight: '1.2',
288
- fontSize: '24px',
289
- color: colors.Colors.Secondary,
290
- } }, "More like this"), index.h("div", { style: { marginTop: '16px' } }, index.h("div", { class: "similar-styles--grid", id: "similar-styles--grid" }, this.similarStyles.slice(0, 6).map(style => {
291
- const { caption, imageThumbMedium, owner } = style;
292
- return (index.h("div", { class: "similar-styles--grid-item", onClick: () => {
293
- this.closeModal();
294
- this.onClickLookbook(style);
295
- } }, index.h("div", { class: "card", style: {
296
- background: 'none',
297
- border: 'none',
298
- cursor: 'pointer',
299
- } }, index.h("div", { class: "similar-styles--grid-item--image", style: {
300
- borderRadius: '8px',
301
- overflow: 'hidden',
302
- minHeight: '80px',
303
- background: colors.Colors.Gray01,
304
- } }, index.h("img", { src: imageThumbMedium, alt: caption, style: { maxWidth: '100%' } })), owner && (index.h("div", { class: "card-body", style: { paddingLeft: '0' } }, index.h("user-avatar", { name: owner.fullName, shortName: `${(owner.firstName || '').charAt(0)}${(owner.lastName || '').charAt(0)}`, avatar: owner.avatar }))))));
305
- }))))))))))))))));
306
- }
307
- return null;
308
- }
309
- };
310
- StyleDetail.style = indexCss;
311
-
312
- exports.style_detail = StyleDetail;
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-47c2a5f6.js');
6
- const colors = require('./colors-38421769.js');
7
-
8
- const indexCss = "";
9
-
10
- const UserAvatar = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.size = 24;
14
- this.name = undefined;
15
- this.nameStyle = undefined;
16
- this.shortName = undefined;
17
- this.avatar = undefined;
18
- }
19
- render() {
20
- return (index.h("div", { style: { display: "flex", alignItems: "center" } }, this.avatar && (index.h("div", { style: {
21
- backgroundImage: `url("${this.avatar}")`,
22
- backgroundColor: colors.Colors.Gray01,
23
- backgroundPosition: 'center center',
24
- backgroundSize: 'cover',
25
- borderRadius: '50%',
26
- height: `${this.size}px`,
27
- width: `${this.size}px`,
28
- minWidth: `${this.size}px`,
29
- } })), !this.avatar && (index.h("div", { style: {
30
- backgroundColor: colors.Colors.Gray01,
31
- backgroundPosition: 'center center',
32
- backgroundSize: 'cover',
33
- borderRadius: '50%',
34
- display: 'flex',
35
- alignItems: 'center',
36
- justifyContent: 'center',
37
- height: `${this.size}px`,
38
- width: `${this.size}px`,
39
- minWidth: `${this.size}px`,
40
- } }, this.shortName)), this.name && (index.h("div", { style: Object.assign({ flexShrink: '1', flexGrow: '1', marginLeft: '12px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' }, this.nameStyle) }, this.name))));
41
- }
42
- };
43
- UserAvatar.style = indexCss;
44
-
45
- exports.user_avatar = UserAvatar;
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- function formatWebsiteUrl(website) {
4
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
5
- }
6
- function formatFullAddress(salon) {
7
- const { businessAddress, city, state, zipcode, } = salon || {};
8
- const stateFields = [state, zipcode].filter(field => !!field);
9
- if (businessAddress) {
10
- return [businessAddress, city]
11
- .filter(field => !!field)
12
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
13
- .join(', ');
14
- }
15
- return null;
16
- }
17
- function getRatingText() {
18
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
19
- }
20
-
21
- exports.formatFullAddress = formatFullAddress;
22
- exports.formatWebsiteUrl = formatWebsiteUrl;
23
- exports.getRatingText = getRatingText;
@@ -1,29 +0,0 @@
1
- {
2
- "entries": [
3
- "./components/chat-button/index.js",
4
- "./components/google-map/index.js",
5
- "./components/salon-booking/index.js",
6
- "./components/salon-booking/salon-booking-modal.js",
7
- "./components/salon-gift-card/index.js",
8
- "./components/salon-gift-card/salon-gift-card-modal.js",
9
- "./components/salon-info/index.js",
10
- "./components/salon-latest-reviews/index.js",
11
- "./components/salon-latest-styles/index.js",
12
- "./components/salon-locations/index.js",
13
- "./components/salon-lookbook/index.js",
14
- "./components/salon-ranking/index.js",
15
- "./components/salon-reviews/index.js",
16
- "./components/salon-schedules/index.js",
17
- "./components/salon-services/index.js",
18
- "./components/salon-stylists/index.js",
19
- "./components/style-detail/index.js",
20
- "./components/user-avatar/index.js"
21
- ],
22
- "compiler": {
23
- "name": "@stencil/core",
24
- "version": "2.22.3",
25
- "typescriptVersion": "4.9.4"
26
- },
27
- "collections": [],
28
- "bundles": []
29
- }
@@ -1,122 +0,0 @@
1
- chat-button {
2
- display: inline-block;
3
- position: relative;
4
- }
5
-
6
- .chat-button--indicator {
7
- cursor: pointer;
8
- position: absolute;
9
- inset: 0;
10
- }
11
-
12
- .chat-button--counter {
13
- background-color: rgb(240, 90, 97);
14
- border: 1px solid rgb(255, 255, 255);
15
- position: absolute;
16
- right: -6px;
17
- bottom: 12px;
18
- height: 8px;
19
- width: 8px;
20
- -moz-border-radius: 8px;
21
- -webkit-border-radius: 8px;
22
- border-radius: 8px;
23
- }
24
-
25
- .chat-box {
26
- background-color: #fff;
27
- display: flex;
28
- flex-direction: column;
29
- position: fixed;
30
- inset: 0px;
31
- z-index: 20000;
32
- }
33
-
34
- .chat-box--header {
35
- display: flex;
36
- justify-content: space-between;
37
- padding: 16px;
38
- position: relative;
39
- }
40
-
41
- .chat-box--header-title {
42
- color: #fff;
43
- font-size: 20px;
44
- font-weight: 600;
45
- line-height: 1;
46
- display: flex;
47
- align-items: center;
48
- justify-content: space-between;
49
- margin: 0;
50
- }
51
-
52
-
53
- .chat-message {
54
- overflow: hidden;
55
- clear: both;
56
- min-width: 240px;
57
- }
58
-
59
- .chat-message--meta {
60
- display: flex;
61
- }
62
-
63
- .chat-message--message {
64
- background-color: #F1F1F1;
65
- padding: 8px 12px;
66
- position: relative;
67
- float: left;
68
- margin-top: 6px;
69
- -moz-border-radius: 0 10px 10px 10px;
70
- -webkit-border-radius: 0 10px 10px 10px;
71
- border-radius: 0 10px 10px 10px;
72
- }
73
-
74
- .chat-conversation--time {
75
- clear: both;
76
- color: #999;
77
- font-size: 75%;
78
- padding-top: 2px;
79
- }
80
-
81
- .chat-message.is-owner .chat-message--content {
82
- margin-left: 12px;
83
- }
84
-
85
- .chat-message.is-guest .chat-message--meta {
86
- flex-direction: row-reverse;
87
- }
88
- .chat-message.is-guest .chat-message--message {
89
- background-color: #EFF7FF;
90
- float: right;
91
- margin-right: 12px;
92
- text-align: right;
93
- -moz-border-radius: 10px 0 10px 10px;
94
- -webkit-border-radius: 10px 0 10px 10px;
95
- border-radius: 10px 0 10px 10px;
96
- }
97
-
98
-
99
- @media (min-width: 768px) {
100
- .chat-box {
101
- border: 1px solid #fff;
102
- left: unset;
103
- top: unset;
104
- right: 1px;
105
- bottom: 0px;
106
- height: 420px;
107
- max-height: 90vh;
108
- width: 600px;
109
- -moz-border-radius: 8px 8px 0px 0px;
110
- -webkit-border-radius: 8px 8px 0px 0px;
111
- border-radius: 8px 8px 0px 0px;
112
- -moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 24px;
113
- -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 24px;
114
- box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 24px;
115
- }
116
-
117
- .chat-box--header {
118
- -moz-border-radius: 8px 8px 0px 0px;
119
- -webkit-border-radius: 8px 8px 0px 0px;
120
- border-radius: 8px 8px 0px 0px;
121
- }
122
- }