favesalon-embed 1.0.3 → 1.0.5

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 (52) hide show
  1. package/dist/custom-elements/index.d.ts +6 -0
  2. package/dist/favesalon-embed/app-globals-74127f4b.js +7 -0
  3. package/dist/favesalon-embed/chat-box.entry.js +4 -3
  4. package/dist/favesalon-embed/chat-button.entry.js +2 -2
  5. package/dist/favesalon-embed/chat-form.entry.js +2 -2
  6. package/dist/favesalon-embed/chat-messages.entry.js +23 -5
  7. package/dist/favesalon-embed/chat-rooms.entry.js +50 -17218
  8. package/dist/favesalon-embed/favesalon-embed.css +1 -2326
  9. package/dist/favesalon-embed/favesalon-embed.esm.js +2 -2
  10. package/dist/favesalon-embed/lodash-d5526b38.js +17215 -0
  11. package/dist/favesalon-embed/notify-sounds.entry.js +31 -0
  12. package/dist/favesalon-embed/salon-info.entry.js +1 -1
  13. package/dist/favesalon-embed/salon-latest-reviews.entry.js +2 -2
  14. package/dist/favesalon-embed/salon-latest-styles.entry.js +1 -1
  15. package/dist/favesalon-embed/salon-locations.entry.js +2 -2
  16. package/dist/favesalon-embed/salon-lookbook.entry.js +1 -1
  17. package/dist/favesalon-embed/salon-reviews.entry.js +1 -1
  18. package/dist/favesalon-embed/salon-schedules.entry.js +1 -1
  19. package/dist/favesalon-embed/salon-services.entry.js +1 -1
  20. package/dist/favesalon-embed/salon-stylists.entry.js +1 -1
  21. package/dist/favesalon-embed/services-122dcf73.js +23886 -0
  22. package/dist/favesalon-embed/{services-7c46a2fd.js → services-23eda072.js} +25 -2
  23. package/dist/favesalon-embed/{services-55a87166.js → services-243eef47.js} +229 -4
  24. package/dist/favesalon-embed/services-260ea6eb.js +23883 -0
  25. package/dist/favesalon-embed/services-27607998.js +23886 -0
  26. package/dist/favesalon-embed/{services-7cb8f2a6.js → services-46b2f0aa.js} +15 -2
  27. package/dist/favesalon-embed/services-65a8cf4a.js +23887 -0
  28. package/dist/favesalon-embed/services-8f52210f.js +23880 -0
  29. package/dist/favesalon-embed/services-de32365e.js +23880 -0
  30. package/dist/favesalon-embed/services-e9cfcd2b.js +23885 -0
  31. package/dist/favesalon-embed/services-f7278483.js +23880 -0
  32. package/dist/favesalon-embed/services-f9872bea.js +23880 -0
  33. package/dist/favesalon-embed/style-detail.entry.js +1 -1
  34. package/dist/favesalon-embed/utils-89c2cff2.js +32 -0
  35. package/dist/favesalon-embed/utils-e226fa04.js +32 -0
  36. package/dist/favesalon-embed/utils-fd30fb29.js +32 -0
  37. package/dist/types/components/chat-box/index.d.ts +1 -0
  38. package/dist/types/components/chat-button/notify-sounds.d.ts +5 -0
  39. package/dist/types/components/chat-rooms/index.d.ts +6 -0
  40. package/dist/types/components.d.ts +21 -0
  41. package/dist/types/services/services.d.ts +1 -0
  42. package/dist/types/types/chat.d.ts +1 -0
  43. package/dist/types/types/user.d.ts +10 -0
  44. package/dist/types/utils/utils.d.ts +1 -0
  45. package/package.json +1 -1
  46. package/dist/favesalon-embed/_commonjsHelpers-9bc404fc.js +0 -44
  47. package/dist/favesalon-embed/app-globals-437cc3f3.js +0 -712
  48. package/dist/favesalon-embed/app-globals-60769a2c.js +0 -712
  49. package/dist/favesalon-embed/index-04c09911.js +0 -3371
  50. package/dist/favesalon-embed/index-ac52896a.js +0 -4803
  51. package/dist/favesalon-embed/isObject-13b86c17.js +0 -203
  52. package/dist/favesalon-embed/relativeTime-15477f02.js +0 -7
@@ -0,0 +1,31 @@
1
+ import { r as registerInstance, h } from './index-888e99e3.js';
2
+
3
+ const indexCss = "@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap'); chat-button{position:relative}.chat-button--indicator{cursor:pointer;position:absolute;inset:0}.chat-button--counter{background-color:rgb(240, 90, 97);border:1px solid rgb(255, 255, 255);position:absolute;right:6px;top:0px;height:8px;width:8px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.chat-box{font-family:'Roboto', sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fff;display:flex;flex-direction:column;position:fixed;inset:0px;z-index:20000;font-size:16px;text-align:left;color:#141414}.chat-box--header{display:flex;justify-content:space-between;padding:16px;position:relative}.chat-box--title{color:#fff;font-size:20px;font-weight:600;line-height:1;display:flex;align-items:center;justify-content:space-between;margin:0}.chat-box--close{cursor:pointer;display:block;position:absolute;z-index:1000;top:50%;right:0;width:30px;height:30px;transform:translate(0, -50%);background-size:contain;background-repeat:no-repeat;background-position:center center;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAA3hJREFUaAXlm8+K00Acx7MiCIJH/yw+gA9g25O49SL4AO3Bp1jw5NvktC+wF88qevK4BU97EmzxUBCEolK/n5gp3W6TTJPfpNPNF37MNsl85/vN/DaTmU6PknC4K+pniqeKJ3k8UnkvDxXJzzy+q/yaxxeVHxW/FNHjgRSeKt4rFoplzaAuHHDBGR2eS9G54reirsmienDCTRt7xwsp+KAoEmt9nLaGitZxrBbPFNaGfPloGw2t4JVamSt8xYW6Dg1oCYo3Yv+rCGViV160oMkcd8SYKnYV1Nb1aEOjCe6L5ZOiLfF120EjWhuBu3YIZt1NQmujnk5F4MgOpURzLfAwOBSTmzp3fpDxuI/pabxpqOoz2r2HLAb0GMbZKlNV5/Hg9XJypguryA7lPF5KMdTZQzHjqxNPhWhzIuAruOl1eNqKEx1tSh5rfbxdw7mOxCq4qS68ZTjKS1YVvilu559vWvFHhh4rZrdyZ69Vmpgdj8fJbDZLJpNJ0uv1cnr/gjrUhQMuI+ANjyuwftQ0bbL6Erp0mM/ny8Fg4M3LtdRxgMtKl3jwmIHVxYXChFy94/Rmpa/pTbNUhstKV+4Rr8lLQ9KlUvJKLyG8yvQ2s9SBy1Jb7jV5a0yapfF6apaZLjLLcWtd4sNrmJUMHyM+1xibTjH82Zh01TNlhsrOhdKTe00uAzZQmN6+KW+sDa/JD2PSVQ873m29yf+1Q9VDzfEYlHi1G5LKBBWZbtEsHbFwb1oYDwr1ZiF/2bnCSg1OBE/pfr9/bWx26UxJL3ONPISOLKUvQza0LZUxSKyjpdTGa/vDEr25rddbMM0Q3O6Lx3rqFvU+x6UrRKQY7tyrZecmD9FODy8uLizTmilwNj0kraNcAJhOp5aGVwsAGD5VmJBrWWbJSgWT9zrzWepQF47RaGSiKfeGx6Szi3gzmX/HHbihwBser4B9UJYpFBNX4R6vTn3VQnez0SymnrHQMsRYGTr1dSk34ljRqS/EMd2pLQ8YBp3a1PLfcqCpo8gtHkZFHKkTX6fs3MY0blKnth66rKCnU0VRGu37ONrQaA4eZDFtWAu2fXj9zjFkxTBOo8F7t926gTp/83Kyzzcy2kZD6xiqxTYnHLRFm3vHiRSwNSjkz3hoIzo8lCKWUlg/YtGs7tObunDAZfpDLbfEI15zsEIY3U/x/gHHc/G1zltnAgAAAABJRU5ErkJggg==')}@media (min-width: 768px){.chat-box{border:1px solid #fff;left:unset;top:unset;right:1px;bottom:0px;height:420px;max-height:90vh;width:600px;-moz-border-radius:8px 8px 0px 0px;-webkit-border-radius:8px 8px 0px 0px;border-radius:8px 8px 0px 0px;-moz-box-shadow:rgba(0, 0, 0, 0.1) 0px 0px 24px;-webkit-box-shadow:rgba(0, 0, 0, 0.1) 0px 0px 24px;box-shadow:rgba(0, 0, 0, 0.1) 0px 0px 24px}.chat-box--header{-moz-border-radius:8px 8px 0px 0px;-webkit-border-radius:8px 8px 0px 0px;border-radius:8px 8px 0px 0px}}";
4
+
5
+ const NotifySounds = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ componentDidLoad() {
10
+ const btnPlaySound = document.getElementById('chat--play-sound');
11
+ btnPlaySound.click();
12
+ }
13
+ playSound() {
14
+ const audioPlayer = new Audio('https://res.cloudinary.com/reckon-mini-sites/video/upload/v1696198815/favesalon/notification--message_i9wsj8.mp3');
15
+ audioPlayer.play();
16
+ }
17
+ ;
18
+ render() {
19
+ return (h("button", { id: "chat--play-sound", onClick: () => this.playSound(), style: {
20
+ border: 'none',
21
+ display: 'block',
22
+ overflow: 'hidden',
23
+ height: '1px',
24
+ width: '1px',
25
+ padding: '0',
26
+ } }, "Play"));
27
+ }
28
+ };
29
+ NotifySounds.style = indexCss;
30
+
31
+ export { NotifySounds as notify_sounds };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { H as HttpService } from './services-7c46a2fd.js';
2
+ import { H as HttpService } from './services-260ea6eb.js';
3
3
  import './_commonjsHelpers-a4f66ccd.js';
4
4
  import './colors-ea36347a.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-7c46a2fd.js';
2
+ import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-260ea6eb.js';
3
3
  import { C as Colors } from './colors-ea36347a.js';
4
- import { g as getRatingText } from './utils-2c19db45.js';
4
+ import { g as getRatingText } from './utils-fd30fb29.js';
5
5
  import './_commonjsHelpers-a4f66ccd.js';
6
6
 
7
7
  const indexCss = ".salon-latest-reviews .salon-review{min-width:280px}@media (min-width: 768px){.salon-latest-reviews .salon-review{min-width:300px}}";
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
2
  import { C as Colors } from './colors-ea36347a.js';
3
- import { H as HttpService, i as isVideoMedia } from './services-7c46a2fd.js';
3
+ import { H as HttpService, i as isVideoMedia } from './services-260ea6eb.js';
4
4
  import './_commonjsHelpers-a4f66ccd.js';
5
5
 
6
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}}";
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { f as formatWebsiteUrl, a as formatFullAddress } from './utils-2c19db45.js';
2
+ import { a as formatWebsiteUrl, b as formatFullAddress } from './utils-fd30fb29.js';
3
3
  import { C as Colors } from './colors-ea36347a.js';
4
- import { H as HttpService } from './services-7c46a2fd.js';
4
+ import { H as HttpService } from './services-260ea6eb.js';
5
5
  import './_commonjsHelpers-a4f66ccd.js';
6
6
 
7
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}}";
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
2
  import { C as Colors } from './colors-ea36347a.js';
3
- import { H as HttpService } from './services-7c46a2fd.js';
3
+ import { H as HttpService } from './services-260ea6eb.js';
4
4
  import './_commonjsHelpers-a4f66ccd.js';
5
5
 
6
6
  const indexCss = "@media (max-width: 768px){salon-lookbook .view-header{display:block !important}salon-lookbook .salon-loobook--serch-result{margin-bottom:16px}salon-lookbook .salon-loobook--filter-wrapper>label,salon-lookbook .salon-loobook--sort-wrapper>label{display:none !important}}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-7c46a2fd.js';
2
+ import { H as HttpService, d as dayjs_min, s as shortDateYearFormat } from './services-260ea6eb.js';
3
3
  import { C as Colors } from './colors-ea36347a.js';
4
4
  import './_commonjsHelpers-a4f66ccd.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { H as HttpService, B as BusinessHourStatus } from './services-7c46a2fd.js';
2
+ import { H as HttpService, B as BusinessHourStatus } from './services-260ea6eb.js';
3
3
  import { C as Colors } from './colors-ea36347a.js';
4
4
  import './_commonjsHelpers-a4f66ccd.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { H as HttpService, a as sortBy_1 } from './services-7c46a2fd.js';
2
+ import { H as HttpService, a as sortBy_1 } from './services-260ea6eb.js';
3
3
  import { C as Colors } from './colors-ea36347a.js';
4
4
  import './_commonjsHelpers-a4f66ccd.js';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
2
  import { C as Colors } from './colors-ea36347a.js';
3
- import { H as HttpService } from './services-7c46a2fd.js';
3
+ import { H as HttpService } from './services-260ea6eb.js';
4
4
  import './_commonjsHelpers-a4f66ccd.js';
5
5
 
6
6
  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}}";