@dotss/tictoccroc 0.4.1 → 0.5.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.
- package/dist/Calendar-BOLCHnjh.js +97 -0
- package/dist/TimePicker-BwACyeBR.js +120 -0
- package/dist/convertMdToHtml-Bmk0brLK.js +1431 -0
- package/dist/index.mjs +105 -200
- package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +26 -29
- package/dist/parent/b2b/components/ActionButtons/index.mjs +5 -4
- package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -35
- package/dist/parent/b2b/components/BottomNotes/index.mjs +5 -4
- package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +12 -15
- package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +5 -4
- package/dist/parent/b2b/components/NameField/NameField.mjs +12 -7
- package/dist/parent/b2b/components/NameField/index.mjs +5 -4
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +27 -30
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +7 -8
- package/dist/parent/b2b/components/PhoneNumberField/index.mjs +6 -7
- package/dist/parent/b2b/components/Title/Title.mjs +22 -16
- package/dist/parent/b2b/components/Title/index.mjs +4 -3
- package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +55 -93
- package/dist/parent/b2b/components/TopLogo/index.mjs +5 -4
- package/dist/parent/b2b/components/index.mjs +9 -19
- package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +2 -1143
- package/dist/parent/b2b/utils/index.mjs +2 -4
- package/dist/parent/notification/components/NotificationCard/NotificationCard.d.ts +3 -1
- package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -105
- package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
- package/dist/parent/notification/components/index.mjs +2 -4
- package/dist/parent/notification/utils/index.mjs +2 -4
- package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
- package/dist/purify.es-D3W4zDrg.js +549 -0
- package/dist/shared/components/Calendar/Calendar.mjs +2 -80
- package/dist/shared/components/Calendar/index.mjs +5 -4
- package/dist/shared/components/Carousel/Carousel.mjs +184 -210
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
- package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
- package/dist/shared/components/Carousel/index.mjs +6 -6
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
- package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
- package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
- package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
- package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
- package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
- package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
- package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
- package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
- package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
- package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
- package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
- package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
- package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
- package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
- package/dist/shared/components/ChatKit/index.mjs +13 -29
- package/dist/shared/components/Image/Image.d.ts +2 -0
- package/dist/shared/components/Image/Image.error.mjs +34 -40
- package/dist/shared/components/Image/Image.mjs +247 -289
- package/dist/shared/components/Image/index.mjs +6 -6
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
- package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
- package/dist/shared/components/Masonry/Masonry.mjs +240 -276
- package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
- package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
- package/dist/shared/components/Masonry/index.mjs +6 -6
- package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
- package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
- package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
- package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
- package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/index.mjs +9 -12
- package/dist/shared/components/Roller/Roller.mjs +99 -132
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
- package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
- package/dist/shared/components/Roller/index.mjs +6 -6
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
- package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
- package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
- package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
- package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
- package/dist/shared/components/Scheduler/index.mjs +8 -10
- package/dist/shared/components/Swiper/Swiper.mjs +238 -283
- package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
- package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
- package/dist/shared/components/Swiper/index.mjs +6 -6
- package/dist/shared/components/TextField/TextField.mjs +44 -55
- package/dist/shared/components/TextField/index.mjs +5 -4
- package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
- package/dist/shared/components/TimePicker/index.mjs +5 -4
- package/dist/shared/components/index.mjs +36 -75
- package/dist/shared/hooks/index.mjs +4 -8
- package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
- package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
- package/dist/shared/hooks/useInView/index.mjs +5 -4
- package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
- package/dist/shared/hooks/useInView/useInView.mjs +37 -47
- package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
- package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
- package/dist/shared/typings/common.mjs +6 -4
- package/dist/shared/typings/index.mjs +2 -4
- package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
- package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
- package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
- package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
- package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
- package/dist/shared/utils/combineRef/index.mjs +5 -4
- package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
- package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
- package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
- package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
- package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
- package/dist/shared/utils/getDateRange/index.mjs +5 -4
- package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
- package/dist/shared/utils/getImageUrl/index.mjs +5 -6
- package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
- package/dist/shared/utils/getTimeRange/index.mjs +5 -4
- package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
- package/dist/shared/utils/getVimeoId/index.mjs +5 -4
- package/dist/shared/utils/index.mjs +18 -36
- package/dist/shared/utils/isAndroid/index.mjs +5 -4
- package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
- package/dist/shared/utils/isApp/index.mjs +5 -4
- package/dist/shared/utils/isApp/isApp.mjs +4 -4
- package/dist/shared/utils/isDesktop/index.mjs +5 -4
- package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
- package/dist/shared/utils/isIos/index.mjs +5 -4
- package/dist/shared/utils/isIos/isIos.mjs +5 -5
- package/dist/shared/utils/isServer/index.mjs +4 -3
- package/dist/shared/utils/isServer/isServer.mjs +4 -4
- package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
- package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
- package/dist/shared/utils/parseQueryString/index.mjs +4 -3
- package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
- package/dist/shared/utils/share/index.mjs +5 -4
- package/dist/shared/utils/share/share.mjs +12 -14
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
- package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
- package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
- package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
- package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
- package/dist/teacher/home/components/index.mjs +9 -18
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
- package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
- package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
- package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
- package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
- package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
- package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
- package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
- package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
- package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +11 -12
- package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
- package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
- package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
- package/dist/teacher/profile/components/index.mjs +24 -48
- package/dist/teacher/profile/utils/index.mjs +2 -4
- package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
- package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
- package/package.json +1 -1
- package/dist/purify.es-BGaRrCfO.js +0 -553
|
@@ -1,289 +1,247 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
left: 0,
|
|
249
|
-
width: "100%",
|
|
250
|
-
height: "100%",
|
|
251
|
-
filter: "blur(5px)",
|
|
252
|
-
opacity: W && !h ? 1 : 0,
|
|
253
|
-
transition: "opacity 0.3s"
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
),
|
|
257
|
-
/* @__PURE__ */ l(
|
|
258
|
-
"img",
|
|
259
|
-
{
|
|
260
|
-
ref: I,
|
|
261
|
-
src: Q,
|
|
262
|
-
alt: q,
|
|
263
|
-
width: e,
|
|
264
|
-
height: o,
|
|
265
|
-
onLoad: X,
|
|
266
|
-
onError: Y,
|
|
267
|
-
"aria-hidden": x,
|
|
268
|
-
draggable: !1,
|
|
269
|
-
...g,
|
|
270
|
-
style: {
|
|
271
|
-
position: "absolute",
|
|
272
|
-
top: 0,
|
|
273
|
-
left: 0,
|
|
274
|
-
width: "100%",
|
|
275
|
-
height: "100%",
|
|
276
|
-
transition: "opacity 0.3s",
|
|
277
|
-
...g.style
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
),
|
|
281
|
-
K && x && ((u == null ? void 0 : u()) || /* @__PURE__ */ l(B, {}))
|
|
282
|
-
]
|
|
283
|
-
}
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
);
|
|
287
|
-
export {
|
|
288
|
-
rt as default
|
|
289
|
-
};
|
|
1
|
+
import e from "../../hooks/useInView/index.mjs";
|
|
2
|
+
import t from "../../hooks/useIsomorphicLayoutEffect/index.mjs";
|
|
3
|
+
import n from "../../utils/getImageUrl/index.mjs";
|
|
4
|
+
import r from "./Image.error.mjs";
|
|
5
|
+
import { forwardRef as i, useEffect as a, useImperativeHandle as o, useRef as s, useState as c } from "react";
|
|
6
|
+
import { Flexbox as l, Skeleton as u } from "@dotss/ui";
|
|
7
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
//#region shared/components/Image/Image.tsx
|
|
9
|
+
var m = i(({ src: i, width: m, height: h, fit: g = "cover", position: _ = "center", alt: v, scale: y = 2, onLoad: b, onLazyLoad: x, lazy: S = !1, borderRadius: C, disabledResizing: w = !1, withIntrinsicRatio: T = !1, enableBlurPlaceholder: E = !1, enableFallback: D = !1, enableErrorFallback: O = !0, renderErrorFallback: k, wrapperProps: A = {}, inViewOptions: j = {}, onError: M, ...N }, P) => {
|
|
10
|
+
let F = s(null), I = s(!1), L = s(null);
|
|
11
|
+
o(P, () => L.current);
|
|
12
|
+
let { isInView: R } = e(F, {
|
|
13
|
+
threshold: .4,
|
|
14
|
+
...j
|
|
15
|
+
}), [z, B] = c(!1), [V, H] = c(!1), [U, W] = c(!1), [G, K] = c(!1), [q, J] = c(n({
|
|
16
|
+
mode: "original",
|
|
17
|
+
src: i,
|
|
18
|
+
width: m,
|
|
19
|
+
height: h,
|
|
20
|
+
fit: g,
|
|
21
|
+
position: _,
|
|
22
|
+
scale: y,
|
|
23
|
+
disabledResizing: w
|
|
24
|
+
})), Y = i?.endsWith(".heic"), X = E ? n({
|
|
25
|
+
mode: "blur",
|
|
26
|
+
src: i,
|
|
27
|
+
width: m,
|
|
28
|
+
fit: g,
|
|
29
|
+
position: _,
|
|
30
|
+
scale: 1 / 3,
|
|
31
|
+
disabledResizing: w
|
|
32
|
+
}) : null, Z = (e) => {
|
|
33
|
+
H(!0), W(!1), typeof b == "function" && b(e);
|
|
34
|
+
}, Q = (e) => {
|
|
35
|
+
typeof M == "function" && M(e.nativeEvent), W(!0), H(!1);
|
|
36
|
+
}, $ = () => K(!0);
|
|
37
|
+
return a(() => {
|
|
38
|
+
if (S && F.current) {
|
|
39
|
+
let e = () => {
|
|
40
|
+
R && B(!0);
|
|
41
|
+
};
|
|
42
|
+
return e(), window.appScreenContent?.addEventListener("scroll", e), window.addEventListener("resize", e), window.addEventListener("orientationchange", e), () => {
|
|
43
|
+
window.appScreenContent?.removeEventListener("scroll", e), window.removeEventListener("resize", e), window.removeEventListener("orientationchange", e);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}), a(() => {
|
|
47
|
+
typeof x == "function" && z && !I.current && (I.current = !0, x());
|
|
48
|
+
}, [x, z]), t(() => {
|
|
49
|
+
let e = L.current, t = (e) => {
|
|
50
|
+
window.fetch(i).then(async (t) => {
|
|
51
|
+
let n = await t.blob(), r = (await import("heic2any")).default, i = await r({
|
|
52
|
+
blob: n,
|
|
53
|
+
toType: "image/png"
|
|
54
|
+
});
|
|
55
|
+
J(URL.createObjectURL(i)), e.onload = () => {
|
|
56
|
+
e.style.opacity = "1", H(!0), W(!1), e.onload = null, e.onerror = null;
|
|
57
|
+
}, e.onerror = () => {
|
|
58
|
+
W(!0), H(!1), e.onload = null, e.onerror = null;
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
return e?.complete ? Y ? e.src.startsWith("blob:") || (e.style.transition = "opacity 0.3s", e.style.opacity = "0", t(e)) : e.naturalWidth > 0 ? (e.style.transition = "none", e.style.opacity = "1", H(!0)) : (e.style.opacity = "0", W(!0)) : e && (e.style.transition = "opacity 0.3s", e.style.opacity = "0", e.onload = () => {
|
|
63
|
+
e.style.opacity = "1", H(!0), e.onload = null;
|
|
64
|
+
}, e.onerror = () => {
|
|
65
|
+
if (!Y) {
|
|
66
|
+
W(!0), e.onerror = null;
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
W(!1), e.style.transition = "opacity 0.3s", e.style.opacity = "0", t(e);
|
|
70
|
+
}), () => {
|
|
71
|
+
e && (e.onload = null, e.onerror = null);
|
|
72
|
+
};
|
|
73
|
+
}, [
|
|
74
|
+
z,
|
|
75
|
+
i,
|
|
76
|
+
Y
|
|
77
|
+
]), a(() => {
|
|
78
|
+
J(n({
|
|
79
|
+
mode: "original",
|
|
80
|
+
src: i,
|
|
81
|
+
width: m,
|
|
82
|
+
height: h,
|
|
83
|
+
fit: g,
|
|
84
|
+
position: _,
|
|
85
|
+
scale: y,
|
|
86
|
+
disabledResizing: w
|
|
87
|
+
}));
|
|
88
|
+
}, [
|
|
89
|
+
i,
|
|
90
|
+
m,
|
|
91
|
+
h,
|
|
92
|
+
g,
|
|
93
|
+
_,
|
|
94
|
+
y,
|
|
95
|
+
w
|
|
96
|
+
]), S ? /* @__PURE__ */ p(l, {
|
|
97
|
+
...A,
|
|
98
|
+
ref: F,
|
|
99
|
+
inlineCSS: T ? {
|
|
100
|
+
position: "relative",
|
|
101
|
+
paddingTop: `calc(100% / ${m} * ${h})`,
|
|
102
|
+
minWidth: "100%",
|
|
103
|
+
borderRadius: C,
|
|
104
|
+
overflow: "hidden",
|
|
105
|
+
...A?.inlineCSS
|
|
106
|
+
} : {
|
|
107
|
+
position: "relative",
|
|
108
|
+
width: m,
|
|
109
|
+
minWidth: m,
|
|
110
|
+
height: h,
|
|
111
|
+
borderRadius: C,
|
|
112
|
+
overflow: "hidden",
|
|
113
|
+
...A?.inlineCSS
|
|
114
|
+
},
|
|
115
|
+
children: [
|
|
116
|
+
D && /* @__PURE__ */ f(u, {
|
|
117
|
+
width: "100%",
|
|
118
|
+
height: "100%",
|
|
119
|
+
borderRadius: C || 0,
|
|
120
|
+
inlineCSS: {
|
|
121
|
+
position: "absolute",
|
|
122
|
+
top: 0,
|
|
123
|
+
left: 0,
|
|
124
|
+
opacity: V || E && G ? 0 : 1,
|
|
125
|
+
transition: "opacity 0.3s"
|
|
126
|
+
}
|
|
127
|
+
}),
|
|
128
|
+
E && X && z && /* @__PURE__ */ f("img", {
|
|
129
|
+
src: X,
|
|
130
|
+
alt: "",
|
|
131
|
+
width: m,
|
|
132
|
+
height: h,
|
|
133
|
+
onLoad: $,
|
|
134
|
+
draggable: !1,
|
|
135
|
+
style: {
|
|
136
|
+
position: "absolute",
|
|
137
|
+
top: 0,
|
|
138
|
+
left: 0,
|
|
139
|
+
width: "100%",
|
|
140
|
+
height: "100%",
|
|
141
|
+
filter: "blur(5px)",
|
|
142
|
+
opacity: G && !V ? 1 : 0,
|
|
143
|
+
transition: "opacity 0.3s",
|
|
144
|
+
objectFit: g,
|
|
145
|
+
objectPosition: _
|
|
146
|
+
}
|
|
147
|
+
}),
|
|
148
|
+
z && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("img", {
|
|
149
|
+
ref: L,
|
|
150
|
+
src: q,
|
|
151
|
+
alt: v,
|
|
152
|
+
width: m,
|
|
153
|
+
height: h,
|
|
154
|
+
onLoad: Z,
|
|
155
|
+
onError: Q,
|
|
156
|
+
"aria-hidden": U,
|
|
157
|
+
draggable: !1,
|
|
158
|
+
...N,
|
|
159
|
+
style: {
|
|
160
|
+
position: "absolute",
|
|
161
|
+
top: 0,
|
|
162
|
+
left: 0,
|
|
163
|
+
width: "100%",
|
|
164
|
+
height: "100%",
|
|
165
|
+
transition: "opacity 0.3s",
|
|
166
|
+
...N.style
|
|
167
|
+
}
|
|
168
|
+
}), O && U && (k?.() || /* @__PURE__ */ f(r, {}))] })
|
|
169
|
+
]
|
|
170
|
+
}) : /* @__PURE__ */ p(l, {
|
|
171
|
+
...A,
|
|
172
|
+
ref: F,
|
|
173
|
+
inlineCSS: T ? {
|
|
174
|
+
position: "relative",
|
|
175
|
+
paddingTop: `calc(100% / ${m} * ${h})`,
|
|
176
|
+
minWidth: "100%",
|
|
177
|
+
transition: "padding-top 0.2s",
|
|
178
|
+
borderRadius: C,
|
|
179
|
+
overflow: "hidden",
|
|
180
|
+
...A?.inlineCSS
|
|
181
|
+
} : {
|
|
182
|
+
position: "relative",
|
|
183
|
+
width: m,
|
|
184
|
+
minWidth: m,
|
|
185
|
+
height: h,
|
|
186
|
+
borderRadius: C,
|
|
187
|
+
overflow: "hidden",
|
|
188
|
+
...A?.inlineCSS
|
|
189
|
+
},
|
|
190
|
+
children: [
|
|
191
|
+
D && /* @__PURE__ */ f(u, {
|
|
192
|
+
width: "100%",
|
|
193
|
+
height: "100%",
|
|
194
|
+
borderRadius: C || 0,
|
|
195
|
+
inlineCSS: {
|
|
196
|
+
position: "absolute",
|
|
197
|
+
top: 0,
|
|
198
|
+
left: 0,
|
|
199
|
+
opacity: V || E && G ? 0 : 1,
|
|
200
|
+
transition: "opacity 0.3s"
|
|
201
|
+
}
|
|
202
|
+
}),
|
|
203
|
+
E && X && /* @__PURE__ */ f("img", {
|
|
204
|
+
src: X,
|
|
205
|
+
alt: "",
|
|
206
|
+
width: m,
|
|
207
|
+
height: h,
|
|
208
|
+
onLoad: $,
|
|
209
|
+
draggable: !1,
|
|
210
|
+
style: {
|
|
211
|
+
position: "absolute",
|
|
212
|
+
top: 0,
|
|
213
|
+
left: 0,
|
|
214
|
+
width: "100%",
|
|
215
|
+
height: "100%",
|
|
216
|
+
filter: "blur(5px)",
|
|
217
|
+
opacity: G && !V ? 1 : 0,
|
|
218
|
+
transition: "opacity 0.3s"
|
|
219
|
+
}
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ f("img", {
|
|
222
|
+
ref: L,
|
|
223
|
+
src: q,
|
|
224
|
+
alt: v,
|
|
225
|
+
width: m,
|
|
226
|
+
height: h,
|
|
227
|
+
onLoad: Z,
|
|
228
|
+
onError: Q,
|
|
229
|
+
"aria-hidden": U,
|
|
230
|
+
draggable: !1,
|
|
231
|
+
...N,
|
|
232
|
+
style: {
|
|
233
|
+
position: "absolute",
|
|
234
|
+
top: 0,
|
|
235
|
+
left: 0,
|
|
236
|
+
width: "100%",
|
|
237
|
+
height: "100%",
|
|
238
|
+
transition: "opacity 0.3s",
|
|
239
|
+
...N.style
|
|
240
|
+
}
|
|
241
|
+
}),
|
|
242
|
+
O && U && (k?.() || /* @__PURE__ */ f(r, {}))
|
|
243
|
+
]
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
//#endregion
|
|
247
|
+
export { m as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
import e from "./Image.error.mjs";
|
|
2
|
+
import t from "./Image.mjs";
|
|
3
|
+
//#region shared/components/Image/index.ts
|
|
4
|
+
var n = t;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as ImageError, n as default };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
import { Typography as n } from "@dotss/ui";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
//#region shared/components/LoadingAnnouncer/LoadingAnnouncer.tsx
|
|
5
|
+
function i({ delay: i = 1e3, message: a = "데이터를 불러오는 중입니다.", ...o }) {
|
|
6
|
+
let [s, c] = t(!1);
|
|
7
|
+
return e(() => {
|
|
8
|
+
let e = setTimeout(() => {
|
|
9
|
+
c(!0);
|
|
10
|
+
}, i);
|
|
11
|
+
return () => clearTimeout(e);
|
|
12
|
+
}, [i]), s ? /* @__PURE__ */ r(n, {
|
|
13
|
+
role: "status",
|
|
14
|
+
...o,
|
|
15
|
+
visuallyHidden: !0,
|
|
16
|
+
children: a
|
|
17
|
+
}) : null;
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "./LoadingAnnouncer.mjs";
|
|
2
|
+
//#region shared/components/LoadingAnnouncer/index.ts
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|