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.
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/favesalon-embed/app-globals-74127f4b.js +7 -0
- package/dist/favesalon-embed/chat-box.entry.js +4 -3
- package/dist/favesalon-embed/chat-button.entry.js +2 -2
- package/dist/favesalon-embed/chat-form.entry.js +2 -2
- package/dist/favesalon-embed/chat-messages.entry.js +23 -5
- package/dist/favesalon-embed/chat-rooms.entry.js +50 -17218
- package/dist/favesalon-embed/favesalon-embed.css +1 -2326
- package/dist/favesalon-embed/favesalon-embed.esm.js +2 -2
- package/dist/favesalon-embed/lodash-d5526b38.js +17215 -0
- package/dist/favesalon-embed/notify-sounds.entry.js +31 -0
- package/dist/favesalon-embed/salon-info.entry.js +1 -1
- package/dist/favesalon-embed/salon-latest-reviews.entry.js +2 -2
- package/dist/favesalon-embed/salon-latest-styles.entry.js +1 -1
- package/dist/favesalon-embed/salon-locations.entry.js +2 -2
- package/dist/favesalon-embed/salon-lookbook.entry.js +1 -1
- package/dist/favesalon-embed/salon-reviews.entry.js +1 -1
- package/dist/favesalon-embed/salon-schedules.entry.js +1 -1
- package/dist/favesalon-embed/salon-services.entry.js +1 -1
- package/dist/favesalon-embed/salon-stylists.entry.js +1 -1
- package/dist/favesalon-embed/services-122dcf73.js +23886 -0
- package/dist/favesalon-embed/{services-7c46a2fd.js → services-23eda072.js} +25 -2
- package/dist/favesalon-embed/{services-55a87166.js → services-243eef47.js} +229 -4
- package/dist/favesalon-embed/services-260ea6eb.js +23883 -0
- package/dist/favesalon-embed/services-27607998.js +23886 -0
- package/dist/favesalon-embed/{services-7cb8f2a6.js → services-46b2f0aa.js} +15 -2
- package/dist/favesalon-embed/services-65a8cf4a.js +23887 -0
- package/dist/favesalon-embed/services-8f52210f.js +23880 -0
- package/dist/favesalon-embed/services-de32365e.js +23880 -0
- package/dist/favesalon-embed/services-e9cfcd2b.js +23885 -0
- package/dist/favesalon-embed/services-f7278483.js +23880 -0
- package/dist/favesalon-embed/services-f9872bea.js +23880 -0
- package/dist/favesalon-embed/style-detail.entry.js +1 -1
- package/dist/favesalon-embed/utils-89c2cff2.js +32 -0
- package/dist/favesalon-embed/utils-e226fa04.js +32 -0
- package/dist/favesalon-embed/utils-fd30fb29.js +32 -0
- package/dist/types/components/chat-box/index.d.ts +1 -0
- package/dist/types/components/chat-button/notify-sounds.d.ts +5 -0
- package/dist/types/components/chat-rooms/index.d.ts +6 -0
- package/dist/types/components.d.ts +21 -0
- package/dist/types/services/services.d.ts +1 -0
- package/dist/types/types/chat.d.ts +1 -0
- package/dist/types/types/user.d.ts +10 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/favesalon-embed/_commonjsHelpers-9bc404fc.js +0 -44
- package/dist/favesalon-embed/app-globals-437cc3f3.js +0 -712
- package/dist/favesalon-embed/app-globals-60769a2c.js +0 -712
- package/dist/favesalon-embed/index-04c09911.js +0 -3371
- package/dist/favesalon-embed/index-ac52896a.js +0 -4803
- package/dist/favesalon-embed/isObject-13b86c17.js +0 -203
- package/dist/favesalon-embed/relativeTime-15477f02.js +0 -7
|
@@ -23388,6 +23388,18 @@ function createUser(blob) {
|
|
|
23388
23388
|
avatar: blob.avatar || blob.full_profile_image_thumb,
|
|
23389
23389
|
};
|
|
23390
23390
|
}
|
|
23391
|
+
function createUserFromChatRoom(blob) {
|
|
23392
|
+
const fullName = blob.salon_detail
|
|
23393
|
+
? blob.salon_detail.business_name
|
|
23394
|
+
: [blob.first_name, blob.last_name].filter(name => !!name).join(' ');
|
|
23395
|
+
return {
|
|
23396
|
+
id: blob.id || blob.user_id,
|
|
23397
|
+
firstName: blob.first_name,
|
|
23398
|
+
lastName: blob.last_name,
|
|
23399
|
+
fullName: fullName || blob.email || blob.mobile_phone,
|
|
23400
|
+
avatar: blob.avatar || blob.full_profile_image_thumb,
|
|
23401
|
+
};
|
|
23402
|
+
}
|
|
23391
23403
|
|
|
23392
23404
|
var MediaType;
|
|
23393
23405
|
(function (MediaType) {
|
|
@@ -23554,6 +23566,7 @@ function createChatMessage(blob) {
|
|
|
23554
23566
|
timestamp: blob.timestamp,
|
|
23555
23567
|
unRead: blob.unRead,
|
|
23556
23568
|
senderId: Number(blob.senderId),
|
|
23569
|
+
dateName: dayjs_min(blob.timestamp).format(shortDateYearFormat),
|
|
23557
23570
|
};
|
|
23558
23571
|
}
|
|
23559
23572
|
class ChatRoom {
|
|
@@ -23565,7 +23578,7 @@ function createChatRoom(blob) {
|
|
|
23565
23578
|
return new ChatRoom({
|
|
23566
23579
|
id: blob.id,
|
|
23567
23580
|
uid: blob.firebase_room_id,
|
|
23568
|
-
members: blob.from_user && blob.to_user ? [
|
|
23581
|
+
members: blob.from_user && blob.to_user ? [createUserFromChatRoom(blob.from_user), createUserFromChatRoom(blob.to_user)] : [],
|
|
23569
23582
|
messages: [],
|
|
23570
23583
|
});
|
|
23571
23584
|
}
|
|
@@ -23851,4 +23864,4 @@ class HttpService {
|
|
|
23851
23864
|
}
|
|
23852
23865
|
const HttpService$1 = () => new HttpService();
|
|
23853
23866
|
|
|
23854
|
-
export { BusinessHourStatus as B, HttpService$1 as H, sortBy_1 as a, dayjs_min as d, getSalonImage as g, isVideoMedia as i, shortDateYearFormat as s };
|
|
23867
|
+
export { BusinessHourStatus as B, HttpService$1 as H, sortBy_1 as a, dayjs_min as d, getSalonImage as g, isVideoMedia as i, shortDateYearFormat as s, timeFormatAmPm as t };
|