favesalon-embed 1.0.2 → 1.0.4

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 (167) hide show
  1. package/dist/{favesalon-embed/_commonjsHelpers-a4f66ccd.js → cjs/_commonjsHelpers-5cfcba41.js} +6 -14
  2. package/dist/cjs/chat-box_5.cjs.entry.js +17439 -0
  3. package/dist/cjs/chat-button.cjs.entry.js +55 -0
  4. package/dist/cjs/colors-38421769.js +69 -0
  5. package/dist/cjs/favesalon-embed.cjs.js +23 -0
  6. package/dist/cjs/google-map.cjs.entry.js +52 -0
  7. package/dist/cjs/index-7f190886.js +4396 -0
  8. package/dist/cjs/index-dd8176c4.js +1531 -0
  9. package/dist/cjs/index.cjs.js +2 -0
  10. package/dist/cjs/loader.cjs.js +22 -0
  11. package/dist/cjs/relativeTime-3721080d.js +9 -0
  12. package/dist/cjs/salon-booking-modal.cjs.entry.js +30 -0
  13. package/dist/cjs/salon-booking.cjs.entry.js +51 -0
  14. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +29 -0
  15. package/dist/cjs/salon-gift-card.cjs.entry.js +51 -0
  16. package/dist/cjs/salon-info.cjs.entry.js +33 -0
  17. package/dist/cjs/salon-latest-reviews.cjs.entry.js +97 -0
  18. package/dist/cjs/salon-latest-styles_3.cjs.entry.js +241 -0
  19. package/dist/cjs/salon-lookbook.cjs.entry.js +222 -0
  20. package/dist/cjs/salon-ranking.cjs.entry.js +60 -0
  21. package/dist/cjs/salon-reviews.cjs.entry.js +193 -0
  22. package/dist/cjs/salon-services.cjs.entry.js +81 -0
  23. package/dist/cjs/salon-stylists.cjs.entry.js +118 -0
  24. package/dist/cjs/services-d1bdf299.js +21494 -0
  25. package/dist/cjs/style-detail.cjs.entry.js +312 -0
  26. package/dist/cjs/utils-c5a33b3c.js +23 -0
  27. package/dist/collection/collection-manifest.json +33 -0
  28. package/dist/collection/components/chat-box/index.css +105 -0
  29. package/dist/collection/components/chat-box/index.js +138 -0
  30. package/dist/collection/components/chat-button/index.css +101 -0
  31. package/dist/collection/components/chat-button/index.js +155 -0
  32. package/dist/collection/components/chat-form/index.css +40 -0
  33. package/dist/collection/components/chat-form/index.js +79 -0
  34. package/dist/collection/components/chat-messages/index.css +48 -0
  35. package/dist/collection/components/chat-messages/index.js +142 -0
  36. package/dist/collection/components/chat-rooms/index.css +102 -0
  37. package/dist/collection/components/chat-rooms/index.js +157 -0
  38. package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
  39. package/dist/collection/components/google-map/index.css +5 -0
  40. package/dist/collection/components/google-map/index.js +90 -0
  41. package/dist/collection/components/salon-booking/index.css +30 -0
  42. package/dist/collection/components/salon-booking/index.js +126 -0
  43. package/dist/collection/components/salon-booking/salon-booking-modal.js +92 -0
  44. package/dist/collection/components/salon-gift-card/index.css +30 -0
  45. package/dist/collection/components/salon-gift-card/index.js +126 -0
  46. package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +73 -0
  47. package/dist/collection/components/salon-info/index.css +1 -0
  48. package/dist/collection/components/salon-info/index.js +77 -0
  49. package/dist/collection/components/salon-latest-reviews/index.css +11 -0
  50. package/dist/collection/components/salon-latest-reviews/index.js +163 -0
  51. package/dist/collection/components/salon-latest-styles/index.css +12 -0
  52. package/dist/{favesalon-embed/salon-latest-styles.entry.js → collection/components/salon-latest-styles/index.js} +99 -14
  53. package/dist/collection/components/salon-locations/index.css +24 -0
  54. package/dist/{favesalon-embed/salon-locations.entry.js → collection/components/salon-locations/index.js} +95 -15
  55. package/dist/collection/components/salon-lookbook/index.css +15 -0
  56. package/dist/collection/components/salon-lookbook/index.js +368 -0
  57. package/dist/collection/components/salon-ranking/index.css +3 -0
  58. package/dist/collection/components/salon-ranking/index.js +117 -0
  59. package/dist/collection/components/salon-reviews/index.css +18 -0
  60. package/dist/collection/components/salon-reviews/index.js +249 -0
  61. package/dist/collection/components/salon-schedules/index.css +18 -0
  62. package/dist/{favesalon-embed/salon-schedules.entry.js → collection/components/salon-schedules/index.js} +95 -14
  63. package/dist/collection/components/salon-services/index.css +1 -0
  64. package/dist/collection/components/salon-services/index.js +146 -0
  65. package/dist/collection/components/salon-stylists/index.css +43 -0
  66. package/dist/collection/components/salon-stylists/index.js +184 -0
  67. package/dist/collection/components/style-detail/index.css +76 -0
  68. package/dist/collection/components/style-detail/index.js +386 -0
  69. package/dist/collection/components/user-avatar/index.css +0 -0
  70. package/dist/collection/components/user-avatar/index.js +159 -0
  71. package/dist/collection/constants/colors.js +65 -0
  72. package/dist/collection/global/global.js +0 -0
  73. package/dist/collection/index.js +1 -0
  74. package/dist/collection/mocks/users.js +10 -0
  75. package/dist/collection/services/services.js +295 -0
  76. package/dist/collection/types/chat.js +23 -0
  77. package/dist/collection/types/common.js +11 -0
  78. package/dist/collection/types/review.js +39 -0
  79. package/dist/collection/types/salon.js +58 -0
  80. package/dist/collection/types/service.js +24 -0
  81. package/dist/collection/types/style.js +128 -0
  82. package/dist/collection/types/stylist.js +30 -0
  83. package/dist/collection/types/user.js +10 -0
  84. package/dist/collection/utils/utils.js +23 -0
  85. package/dist/custom-elements/index.d.ts +12 -0
  86. package/dist/custom-elements/index.js +44974 -0
  87. package/dist/esm/_commonjsHelpers-66ac50f5.js +32 -0
  88. package/dist/esm/chat-box_5.entry.js +17431 -0
  89. package/dist/{favesalon-embed → esm}/chat-button.entry.js +5 -10
  90. package/dist/esm/favesalon-embed.js +18 -0
  91. package/dist/{favesalon-embed → esm}/google-map.entry.js +1 -1
  92. package/dist/esm/index-0494771f.js +1504 -0
  93. package/dist/{favesalon-embed/index-00b83e1c.js → esm/index-a1c7583c.js} +15 -425
  94. package/dist/esm/index.js +1 -0
  95. package/dist/esm/loader.js +18 -0
  96. package/dist/esm/polyfills/core-js.js +11 -0
  97. package/dist/esm/polyfills/css-shim.js +1 -0
  98. package/dist/esm/polyfills/dom.js +79 -0
  99. package/dist/esm/polyfills/es5-html-element.js +1 -0
  100. package/dist/esm/polyfills/index.js +34 -0
  101. package/dist/esm/polyfills/system.js +6 -0
  102. package/dist/esm/relativeTime-baa50aa2.js +7 -0
  103. package/dist/{favesalon-embed → esm}/salon-booking-modal.entry.js +1 -1
  104. package/dist/{favesalon-embed → esm}/salon-booking.entry.js +3 -3
  105. package/dist/{favesalon-embed → esm}/salon-gift-card-modal.entry.js +1 -1
  106. package/dist/{favesalon-embed → esm}/salon-gift-card.entry.js +3 -3
  107. package/dist/{favesalon-embed → esm}/salon-info.entry.js +3 -3
  108. package/dist/{favesalon-embed → esm}/salon-latest-reviews.entry.js +4 -4
  109. package/dist/esm/salon-latest-styles_3.entry.js +235 -0
  110. package/dist/{favesalon-embed → esm}/salon-lookbook.entry.js +3 -3
  111. package/dist/{favesalon-embed → esm}/salon-ranking.entry.js +1 -1
  112. package/dist/{favesalon-embed → esm}/salon-reviews.entry.js +3 -3
  113. package/dist/{favesalon-embed → esm}/salon-services.entry.js +3 -3
  114. package/dist/{favesalon-embed → esm}/salon-stylists.entry.js +3 -3
  115. package/dist/{favesalon-embed/services-7cb8f2a6.js → esm/services-257442e2.js} +99 -2467
  116. package/dist/{favesalon-embed → esm}/style-detail.entry.js +4 -4
  117. package/dist/{favesalon-embed/utils-7de9628a.js → esm/utils-e97485e0.js} +0 -3
  118. package/dist/favesalon-embed/favesalon-embed.css +1 -2439
  119. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -148
  120. package/dist/favesalon-embed/index.esm.js +0 -1
  121. package/dist/favesalon-embed/p-05a1c88a.entry.js +1 -0
  122. package/dist/favesalon-embed/p-0acf0447.entry.js +1 -0
  123. package/dist/favesalon-embed/p-0bc4f624.js +1 -0
  124. package/dist/favesalon-embed/p-1af1515f.entry.js +1 -0
  125. package/dist/favesalon-embed/p-1cba5fc9.entry.js +1 -0
  126. package/dist/favesalon-embed/p-39a4ef15.entry.js +1 -0
  127. package/dist/favesalon-embed/p-3e2cb05b.entry.js +1 -0
  128. package/dist/favesalon-embed/p-47e646f8.js +1 -0
  129. package/dist/favesalon-embed/p-487b311f.entry.js +1 -0
  130. package/dist/favesalon-embed/p-55387c2f.entry.js +1 -0
  131. package/dist/favesalon-embed/p-566f05b4.entry.js +1 -0
  132. package/dist/favesalon-embed/p-862a0de0.entry.js +1 -0
  133. package/dist/favesalon-embed/p-9fe0cbeb.js +2 -0
  134. package/dist/favesalon-embed/p-a33331cc.js +1 -0
  135. package/dist/favesalon-embed/p-aeeb7b5f.entry.js +1 -0
  136. package/dist/favesalon-embed/p-b08e5b54.js +6 -0
  137. package/dist/favesalon-embed/p-b5cca5fc.entry.js +1 -0
  138. package/dist/favesalon-embed/p-c7fb7af5.js +1580 -0
  139. package/dist/favesalon-embed/p-ccab56d8.js +1 -0
  140. package/dist/favesalon-embed/p-d6e13053.entry.js +1 -0
  141. package/dist/favesalon-embed/p-dee42d34.entry.js +1 -0
  142. package/dist/favesalon-embed/p-e661ca1d.entry.js +1 -0
  143. package/dist/favesalon-embed/p-eeceab9c.entry.js +1 -0
  144. package/dist/index.cjs.js +1 -0
  145. package/dist/index.js +1 -0
  146. package/dist/types/components/chat-box/index.d.ts +12 -0
  147. package/dist/types/components/chat-rooms/index.d.ts +12 -0
  148. package/dist/types/components/user-avatar/index.d.ts +2 -1
  149. package/dist/types/components.d.ts +45 -2
  150. package/dist/types/utils/utils.d.ts +1 -0
  151. package/package.json +1 -1
  152. package/dist/favesalon-embed/app-globals-15861a7f.js +0 -712
  153. package/dist/favesalon-embed/app-globals-270fe240.js +0 -712
  154. package/dist/favesalon-embed/app-globals-437cc3f3.js +0 -712
  155. package/dist/favesalon-embed/app-globals-b8b0fc7a.js +0 -712
  156. package/dist/favesalon-embed/chat-form.entry.js +0 -39
  157. package/dist/favesalon-embed/chat-messages.entry.js +0 -51
  158. package/dist/favesalon-embed/css-shim-b7d3d95f.js +0 -4
  159. package/dist/favesalon-embed/dom-64053c71.js +0 -73
  160. package/dist/favesalon-embed/index-888e99e3.js +0 -3371
  161. package/dist/favesalon-embed/index-9ad82b12.js +0 -3371
  162. package/dist/favesalon-embed/index-aa906326.js +0 -3371
  163. package/dist/favesalon-embed/index-b97af793.js +0 -3371
  164. package/dist/favesalon-embed/relativeTime-268e64b0.js +0 -7
  165. package/dist/favesalon-embed/shadow-css-98135883.js +0 -387
  166. package/dist/favesalon-embed/user-avatar.entry.js +0 -42
  167. /package/dist/{favesalon-embed → esm}/colors-ea36347a.js +0 -0
@@ -0,0 +1,73 @@
1
+ import { h } from '@stencil/core';
2
+ import { Colors } from '../../constants/colors';
3
+ export class SalonGiftCardModal {
4
+ constructor() {
5
+ this.salonId = undefined;
6
+ this.primaryColor = Colors.Primary;
7
+ this.isModalOpen = true;
8
+ }
9
+ closeModal() {
10
+ this.isModalOpen = false;
11
+ const el = document.querySelector('salon-gift-card-modal');
12
+ el.remove();
13
+ }
14
+ render() {
15
+ const primaryColor = this.primaryColor.split('#')[1] || 'd47b99';
16
+ return (h("div", { class: "salon-gift-card--modal" }, this.isModalOpen && (h("div", { class: "salon-modal salon-modal--gift-card" }, h("div", { class: "salon-modal--backdrop", onClick: () => this.closeModal() }), h("div", { class: "salon-modal--close", onClick: () => this.closeModal() }), h("div", { class: "salon-modal--inner" }, h("div", { class: "salon-modal--content" }, h("iframe", { height: "100%", width: "100%", style: { border: 'none', display: 'block', height: '100%' }, src: `https://www.favesalon.com/r/buy-gift-card?salonId=${this.salonId}&primaryColor=${primaryColor}&closeAble=false` })))))));
17
+ }
18
+ static get is() { return "salon-gift-card-modal"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["index.css"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["index.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "salonId": {
32
+ "type": "number",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "number",
36
+ "resolved": "number",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": ""
44
+ },
45
+ "attribute": "salon-id",
46
+ "reflect": false
47
+ },
48
+ "primaryColor": {
49
+ "type": "string",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "string",
53
+ "resolved": "string",
54
+ "references": {}
55
+ },
56
+ "required": false,
57
+ "optional": false,
58
+ "docs": {
59
+ "tags": [],
60
+ "text": ""
61
+ },
62
+ "attribute": "primary-color",
63
+ "reflect": false,
64
+ "defaultValue": "Colors.Primary"
65
+ }
66
+ };
67
+ }
68
+ static get states() {
69
+ return {
70
+ "isModalOpen": {}
71
+ };
72
+ }
73
+ }
@@ -0,0 +1,77 @@
1
+ import { h } from '@stencil/core';
2
+ import HttpService from '../../services/services';
3
+ export class SalonInfo {
4
+ constructor() {
5
+ this.salonId = undefined;
6
+ this.salonInfo = undefined;
7
+ }
8
+ componentWillLoad() {
9
+ this.fetchData();
10
+ }
11
+ async fetchData() {
12
+ try {
13
+ this.salonInfo = await HttpService().fetchSalonInfo(this.salonId);
14
+ }
15
+ catch (e) { }
16
+ }
17
+ render() {
18
+ return (h("div", { class: "salon-info" }, h("div", { class: "container" }, h("div", { class: "salon-info--schedules", style: { marginBottom: '24px' } }, h("salon-schedules", { "with-border": true, "is-loading": !this.salonInfo, "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), h("div", { class: "row" }, h("div", { class: "col-md-5", style: { marginBottom: '24px' } }, h("salon-locations", { "with-border": true, "is-loading": !this.salonInfo, "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) })), h("div", { class: "col-md-7", style: { marginBottom: '24px' } }, h("salon-latest-styles", { "with-border": true, "is-loading": !this.salonInfo, "salon-id": 49989, "salon-info": JSON.stringify(this.salonInfo) }))))));
19
+ }
20
+ static get is() { return "salon-info"; }
21
+ static get originalStyleUrls() {
22
+ return {
23
+ "$": ["index.css"]
24
+ };
25
+ }
26
+ static get styleUrls() {
27
+ return {
28
+ "$": ["index.css"]
29
+ };
30
+ }
31
+ static get properties() {
32
+ return {
33
+ "salonId": {
34
+ "type": "number",
35
+ "mutable": false,
36
+ "complexType": {
37
+ "original": "number",
38
+ "resolved": "number",
39
+ "references": {}
40
+ },
41
+ "required": false,
42
+ "optional": false,
43
+ "docs": {
44
+ "tags": [],
45
+ "text": ""
46
+ },
47
+ "attribute": "salon-id",
48
+ "reflect": false
49
+ }
50
+ };
51
+ }
52
+ static get states() {
53
+ return {
54
+ "salonInfo": {}
55
+ };
56
+ }
57
+ static get methods() {
58
+ return {
59
+ "fetchData": {
60
+ "complexType": {
61
+ "signature": "() => Promise<void>",
62
+ "parameters": [],
63
+ "references": {
64
+ "Promise": {
65
+ "location": "global"
66
+ }
67
+ },
68
+ "return": "Promise<void>"
69
+ },
70
+ "docs": {
71
+ "text": "",
72
+ "tags": []
73
+ }
74
+ }
75
+ };
76
+ }
77
+ }
@@ -0,0 +1,11 @@
1
+ .salon-latest-reviews .salon-review {
2
+ min-width: 280px;
3
+ }
4
+
5
+
6
+
7
+ @media (min-width: 768px) {
8
+ .salon-latest-reviews .salon-review {
9
+ min-width: 300px;
10
+ }
11
+ }
@@ -0,0 +1,163 @@
1
+ import { h } from '@stencil/core';
2
+ import dayjs from 'dayjs';
3
+ import { Colors } from '../../constants/colors';
4
+ import { shortDateYearFormat } from '../../types/common';
5
+ import { getRatingText } from '../../utils/utils';
6
+ import HttpService from '../../services/services';
7
+ export class SalonLatestReviews {
8
+ constructor() {
9
+ this.salonId = undefined;
10
+ this.primaryColor = Colors.Primary;
11
+ this.salonReviews = [];
12
+ this.isLoading = undefined;
13
+ }
14
+ componentWillLoad() {
15
+ this.fetchData();
16
+ }
17
+ async fetchData() {
18
+ this.isLoading = true;
19
+ try {
20
+ const { data: allReviews } = await HttpService().fetchSalonReviews(this.salonId, { limit: 5 });
21
+ this.salonReviews = [...allReviews];
22
+ }
23
+ catch (e) { }
24
+ this.isLoading = false;
25
+ }
26
+ render() {
27
+ if (this.isLoading) {
28
+ return (h("div", { class: "salon-latest-reviews", style: { overflow: 'hidden' } }, h("div", { style: { display: 'flex', whiteSpace: 'nowrap' } }, [1, 2, 3, 4, 5].map((fakeId, index) => {
29
+ return (h("div", { key: `salon-latest-review--${fakeId}`, class: "salon-review", style: Object.assign({ border: `1px solid ${Colors.Gray02}`, background: Colors.White, borderRadius: '8px', overflow: 'hidden' }, index > 0 ? { marginLeft: '16px' } : {}) }, h("div", { class: "card", style: { border: 'none' } }, h("div", { class: "card-body" }, h("div", { class: "salon-review--user", style: { marginBottom: '16px', overflow: 'hidden' } }, h("div", { style: {
30
+ backgroundColor: Colors.Gray02,
31
+ borderRadius: '50px',
32
+ height: '48px',
33
+ width: '48px',
34
+ float: 'left',
35
+ } }), h("div", { style: {
36
+ backgroundColor: Colors.Gray01,
37
+ height: '16px',
38
+ width: '120px',
39
+ marginLeft: '16px',
40
+ marginTop: '14px',
41
+ float: 'left',
42
+ } })), h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row', marginBottom: '4px' } }, [1, 2, 3, 4, 5].map(() => (h("div", { style: {
43
+ backgroundColor: Colors.Gray01,
44
+ height: '20px',
45
+ width: '20px',
46
+ marginRight: '8px',
47
+ float: 'left',
48
+ } })))), h("div", { class: "salon-review--rating-text", style: { fontSize: '16px', fontWeight: 'bold', marginTop: '16px' } }, h("div", { style: {
49
+ backgroundColor: Colors.Gray01,
50
+ height: '16px',
51
+ width: '132px',
52
+ } })), h("div", { class: "salon-review--detail", style: { marginTop: '8px' } }, h("div", { class: "salon-review--description", style: {
53
+ fontSize: '16px',
54
+ lineHeight: '26px',
55
+ overflow: 'hidden',
56
+ } }, h("div", { style: {
57
+ backgroundColor: Colors.Gray01,
58
+ height: '16px',
59
+ width: '240px',
60
+ float: 'left',
61
+ } })))))));
62
+ }))));
63
+ }
64
+ const ratingTexts = getRatingText();
65
+ return (h("div", { class: "salon-latest-reviews", style: { overflowX: 'auto' } }, h("div", { style: { display: 'flex', whiteSpace: 'nowrap' } }, (this.salonReviews || []).map((review, index) => {
66
+ const { user } = review;
67
+ return (h("div", { class: "salon-review", style: Object.assign({ border: `1px solid ${Colors.Gray02}`, background: Colors.White, borderRadius: '8px', overflow: 'hidden' }, index > 0 ? { marginLeft: '16px' } : {}) }, h("div", { class: "card", style: { border: 'none' } }, h("div", { class: "card-body" }, h("div", { class: "salon-review--user", style: { marginBottom: '16px' } }, h("user-avatar", { size: 48, name: h("div", { style: { fontSize: '18px', fontWeight: '600' } }, user.fullName), shortName: `${(user.firstName || '').charAt(0)}${(user.lastName || '').charAt(0)}`, avatar: user.avatar, nameStyle: { fontWeight: 'bold' } })), h("div", { class: "salon-review--rating", style: { display: 'flex', flexDirection: 'row', marginBottom: '4px' } }, [1, 2, 3, 4, 5].map(score => (h("i", { class: score <= review.point ? 'ri-heart-fill' : 'ri-heart-line', style: Object.assign({ fontSize: '16px', marginRight: '4px' }, score <= review.point ? { color: this.primaryColor } : { color: Colors.Gray04 }) }))), h("div", { class: "salon-review--rating--date", style: { fontSize: '14px', color: Colors.Gray04, marginLeft: '16px', position: 'relative', top: '2px' } }, dayjs(review.createdDate).format(shortDateYearFormat))), h("div", { class: "salon-review--rating-text", style: { fontSize: '16px', fontWeight: 'bold' } }, ratingTexts[review.point]), (review.title || review.description) && (h("div", { class: "salon-review--detail", style: { marginTop: '16px' } }, h("div", { class: "salon-review--description", style: {
68
+ fontSize: '16px',
69
+ lineHeight: '26px',
70
+ overflow: 'hidden',
71
+ maxHeight: review.photos.length > 0 ? '52px' : '104px',
72
+ } }, review.title || review.description))), review.photos.length > 0 && (h("div", { style: {
73
+ display: 'flex',
74
+ flexDirection: 'row',
75
+ overflowX: 'auto',
76
+ } }, review.photos.map(photo => (h("div", { style: {
77
+ border: '1px solid #d9d9d9',
78
+ position: 'relative',
79
+ cursor: 'pointer',
80
+ borderRadius: '2px',
81
+ height: '66px',
82
+ marginTop: '12px',
83
+ marginRight: '12px',
84
+ } }, h("img", { alt: "", src: photo.imageUrlThumb, height: "64", style: { width: 'auto' } }))))))))));
85
+ }))));
86
+ }
87
+ static get is() { return "salon-latest-reviews"; }
88
+ static get originalStyleUrls() {
89
+ return {
90
+ "$": ["index.css"]
91
+ };
92
+ }
93
+ static get styleUrls() {
94
+ return {
95
+ "$": ["index.css"]
96
+ };
97
+ }
98
+ static get properties() {
99
+ return {
100
+ "salonId": {
101
+ "type": "number",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "number",
105
+ "resolved": "number",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": ""
113
+ },
114
+ "attribute": "salon-id",
115
+ "reflect": false
116
+ },
117
+ "primaryColor": {
118
+ "type": "string",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "string",
122
+ "resolved": "string",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": ""
130
+ },
131
+ "attribute": "primary-color",
132
+ "reflect": false,
133
+ "defaultValue": "Colors.Primary"
134
+ }
135
+ };
136
+ }
137
+ static get states() {
138
+ return {
139
+ "salonReviews": {},
140
+ "isLoading": {}
141
+ };
142
+ }
143
+ static get methods() {
144
+ return {
145
+ "fetchData": {
146
+ "complexType": {
147
+ "signature": "() => Promise<void>",
148
+ "parameters": [],
149
+ "references": {
150
+ "Promise": {
151
+ "location": "global"
152
+ }
153
+ },
154
+ "return": "Promise<void>"
155
+ },
156
+ "docs": {
157
+ "text": "",
158
+ "tags": []
159
+ }
160
+ }
161
+ };
162
+ }
163
+ }
@@ -0,0 +1,12 @@
1
+ salon-latest-styles .view--salon-styles--item {
2
+ width: 120px;
3
+ height: 120px;
4
+ }
5
+
6
+
7
+ @media (min-width: 1024px) {
8
+ salon-latest-styles .view--salon-styles--item {
9
+ width: 200px;
10
+ height: 200px;
11
+ }
12
+ }
@@ -1,13 +1,9 @@
1
- import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { C as Colors } from './colors-ea36347a.js';
3
- import { H as HttpService, i as isVideoMedia } from './services-7cb8f2a6.js';
4
- import './_commonjsHelpers-a4f66ccd.js';
5
-
6
- const indexCss = "salon-latest-styles .view--salon-styles--item{width:120px;height:120px}@media (min-width: 1024px){salon-latest-styles .view--salon-styles--item{width:200px;height:200px}}";
7
-
8
- const SalonLatestStyles = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
1
+ import { h } from '@stencil/core';
2
+ import { Colors } from '../../constants/colors';
3
+ import { isVideoMedia } from '../../types/style';
4
+ import HttpService from '../../services/services';
5
+ export class SalonLatestStyles {
6
+ constructor() {
11
7
  this.salonId = undefined;
12
8
  this.isLoading = undefined;
13
9
  this.withBorder = undefined;
@@ -92,7 +88,96 @@ const SalonLatestStyles = class {
92
88
  } }))))));
93
89
  })))));
94
90
  }
95
- };
96
- SalonLatestStyles.style = indexCss;
97
-
98
- export { SalonLatestStyles as salon_latest_styles };
91
+ static get is() { return "salon-latest-styles"; }
92
+ static get originalStyleUrls() {
93
+ return {
94
+ "$": ["index.css"]
95
+ };
96
+ }
97
+ static get styleUrls() {
98
+ return {
99
+ "$": ["index.css"]
100
+ };
101
+ }
102
+ static get properties() {
103
+ return {
104
+ "salonId": {
105
+ "type": "number",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "number",
109
+ "resolved": "number",
110
+ "references": {}
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": ""
117
+ },
118
+ "attribute": "salon-id",
119
+ "reflect": false
120
+ },
121
+ "isLoading": {
122
+ "type": "boolean",
123
+ "mutable": false,
124
+ "complexType": {
125
+ "original": "boolean",
126
+ "resolved": "boolean",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": true,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": ""
134
+ },
135
+ "attribute": "is-loading",
136
+ "reflect": false
137
+ },
138
+ "withBorder": {
139
+ "type": "boolean",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "boolean",
143
+ "resolved": "boolean",
144
+ "references": {}
145
+ },
146
+ "required": false,
147
+ "optional": true,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": ""
151
+ },
152
+ "attribute": "with-border",
153
+ "reflect": false
154
+ }
155
+ };
156
+ }
157
+ static get states() {
158
+ return {
159
+ "isLoadingState": {},
160
+ "latestStyles": {}
161
+ };
162
+ }
163
+ static get methods() {
164
+ return {
165
+ "fetchData": {
166
+ "complexType": {
167
+ "signature": "() => Promise<boolean>",
168
+ "parameters": [],
169
+ "references": {
170
+ "Promise": {
171
+ "location": "global"
172
+ }
173
+ },
174
+ "return": "Promise<boolean>"
175
+ },
176
+ "docs": {
177
+ "text": "",
178
+ "tags": []
179
+ }
180
+ }
181
+ };
182
+ }
183
+ }
@@ -0,0 +1,24 @@
1
+ @media (min-width: 768px) {
2
+ salon-locations .salon-contact--links {
3
+ overflow: hidden;
4
+ margin-left: -32px;
5
+ }
6
+
7
+ salon-locations .salon-contact--links-item {
8
+ float: left;
9
+ display: flex;
10
+ flex-direction: row;
11
+ align-items: center;
12
+ font-size: 16px;
13
+ min-width: 300px;
14
+ padding-left: 32px;
15
+ }
16
+
17
+ salon-locations .salon-contact--links-item:nth-child(2n + 1) {
18
+ clear: left;
19
+ }
20
+
21
+ salon-locations .salon-contact--links-item + .salon-contact--links-item {
22
+ margin-top: 8px;
23
+ }
24
+ }
@@ -1,14 +1,9 @@
1
- import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { f as formatWebsiteUrl, a as formatFullAddress } from './utils-7de9628a.js';
3
- import { C as Colors } from './colors-ea36347a.js';
4
- import { H as HttpService } from './services-7cb8f2a6.js';
5
- import './_commonjsHelpers-a4f66ccd.js';
6
-
7
- const indexCss = "@media (min-width: 768px){salon-locations .salon-contact--links{overflow:hidden;margin-left:-32px}salon-locations .salon-contact--links-item{float:left;display:flex;flex-direction:row;align-items:center;font-size:16px;min-width:300px;padding-left:32px}salon-locations .salon-contact--links-item:nth-child(2n+1){clear:left}salon-locations .salon-contact--links-item+.salon-contact--links-item{margin-top:8px}}";
8
-
9
- const SalonLocations = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
1
+ import { h } from '@stencil/core';
2
+ import { formatFullAddress, formatWebsiteUrl } from '../../utils/utils';
3
+ import { Colors } from '../../constants/colors';
4
+ import HttpService from '../../services/services';
5
+ export class SalonLocations {
6
+ constructor() {
12
7
  this.salonId = undefined;
13
8
  this.salonInfo = undefined;
14
9
  this.isLoading = undefined;
@@ -57,7 +52,92 @@ const SalonLocations = class {
57
52
  const fullAddress = formatFullAddress(this.salonInfoState);
58
53
  return (h("div", { class: "view view--salon-locations" }, h("div", { class: "view-content", style: this.withBorder ? { border: `1px solid ${Colors.Gray02}`, borderRadius: '4px' } : { padding: '0px' } }, h("div", { style: { fontSize: '18px', fontWeight: 'bold' } }, "Contact"), h("div", { class: "salon-contact--links", style: { marginTop: '16px' } }, businessPhone && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-phone-line", style: { color: Colors.Gray04, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { href: `tel:${businessPhone}`, style: { color: Colors.TextColor, textDecoration: 'none' } }, businessPhone))), websiteUrl && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-links-line", style: { color: Colors.Gray04, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { target: websiteUrl && websiteUrl.indexOf(window.location.hostname) === -1 ? '_blank' : undefined, href: websiteUrl, style: { color: Colors.TextColor, textDecoration: 'none' } }, websiteUrl))), email && (h("div", { class: "salon-contact--links-item" }, h("i", { class: "ri-mail-line", style: { color: Colors.Gray04, fontSize: '18px', marginRight: '6px' } }), " ", h("a", { href: `mailto:${email}`, style: { color: Colors.TextColor, textDecoration: 'none' } }, email)))), h("div", { class: "view--salon-info--map", style: { marginTop: '24px' } }, h("google-map", { "location-name": businessName, "location-address": fullAddress })))));
59
54
  }
60
- };
61
- SalonLocations.style = indexCss;
62
-
63
- export { SalonLocations as salon_locations };
55
+ static get is() { return "salon-locations"; }
56
+ static get originalStyleUrls() {
57
+ return {
58
+ "$": ["index.css"]
59
+ };
60
+ }
61
+ static get styleUrls() {
62
+ return {
63
+ "$": ["index.css"]
64
+ };
65
+ }
66
+ static get properties() {
67
+ return {
68
+ "salonId": {
69
+ "type": "number",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "number",
73
+ "resolved": "number",
74
+ "references": {}
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": ""
81
+ },
82
+ "attribute": "salon-id",
83
+ "reflect": false
84
+ },
85
+ "salonInfo": {
86
+ "type": "string",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "string",
90
+ "resolved": "string",
91
+ "references": {}
92
+ },
93
+ "required": false,
94
+ "optional": true,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ },
99
+ "attribute": "salon-info",
100
+ "reflect": false
101
+ },
102
+ "isLoading": {
103
+ "type": "boolean",
104
+ "mutable": false,
105
+ "complexType": {
106
+ "original": "boolean",
107
+ "resolved": "boolean",
108
+ "references": {}
109
+ },
110
+ "required": false,
111
+ "optional": true,
112
+ "docs": {
113
+ "tags": [],
114
+ "text": ""
115
+ },
116
+ "attribute": "is-loading",
117
+ "reflect": false
118
+ },
119
+ "withBorder": {
120
+ "type": "boolean",
121
+ "mutable": false,
122
+ "complexType": {
123
+ "original": "boolean",
124
+ "resolved": "boolean",
125
+ "references": {}
126
+ },
127
+ "required": false,
128
+ "optional": true,
129
+ "docs": {
130
+ "tags": [],
131
+ "text": ""
132
+ },
133
+ "attribute": "with-border",
134
+ "reflect": false
135
+ }
136
+ };
137
+ }
138
+ static get states() {
139
+ return {
140
+ "salonInfoState": {}
141
+ };
142
+ }
143
+ }
@@ -0,0 +1,15 @@
1
+ @media (max-width: 768px) {
2
+ salon-lookbook .view-header {
3
+ display: block !important;
4
+ }
5
+
6
+ salon-lookbook .salon-loobook--serch-result {
7
+ margin-bottom: 16px;
8
+ }
9
+
10
+ salon-lookbook .salon-loobook--filter-wrapper > label,
11
+ salon-lookbook .salon-loobook--sort-wrapper > label {
12
+ display: none !important;
13
+ }
14
+ }
15
+