@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,434 +1,349 @@
|
|
|
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
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
inlineCSS: {
|
|
348
|
-
"& > span": {
|
|
349
|
-
color: D.red
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
children: [
|
|
353
|
-
/* @__PURE__ */ e("span", { "aria-hidden": !0, children: "(필수)" }),
|
|
354
|
-
" 프로필 소개를 작성하세요."
|
|
355
|
-
]
|
|
356
|
-
}
|
|
357
|
-
),
|
|
358
|
-
(!l.summary || !l.aboutMe) && l.placeholder && l.placeholder,
|
|
359
|
-
l.summary && l.aboutMe && /* @__PURE__ */ i(C, { children: [
|
|
360
|
-
l.status === "REJECTED" && /* @__PURE__ */ e(t, { role: "status", visuallyHidden: !0, children: "프로필 소개가 반려되었어요. 다시 작성해주세요." }),
|
|
361
|
-
/* @__PURE__ */ i(
|
|
362
|
-
t,
|
|
363
|
-
{
|
|
364
|
-
tag: "dl",
|
|
365
|
-
variant: "b4M",
|
|
366
|
-
color: l.status === "REJECTED" ? "grey.30" : void 0,
|
|
367
|
-
inlineCSS: {
|
|
368
|
-
display: "flex",
|
|
369
|
-
alignItems: "center"
|
|
370
|
-
},
|
|
371
|
-
children: [
|
|
372
|
-
l.status === "REJECTED" && /* @__PURE__ */ e(
|
|
373
|
-
d,
|
|
374
|
-
{
|
|
375
|
-
name: "AlertFill",
|
|
376
|
-
size: "xSmall",
|
|
377
|
-
color: "etc.red",
|
|
378
|
-
inlineCSS: {
|
|
379
|
-
marginRight: a.content(1)
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
),
|
|
383
|
-
/* @__PURE__ */ e(r, { tag: "dt", visuallyHidden: !0, children: "한 줄 소개" }),
|
|
384
|
-
/* @__PURE__ */ e("dd", { children: l.summary })
|
|
385
|
-
]
|
|
386
|
-
}
|
|
387
|
-
),
|
|
388
|
-
/* @__PURE__ */ i(
|
|
389
|
-
t,
|
|
390
|
-
{
|
|
391
|
-
ref: b,
|
|
392
|
-
id: "about-me",
|
|
393
|
-
tag: "dl",
|
|
394
|
-
variant: "b4R",
|
|
395
|
-
color: l.status === "REJECTED" ? "grey.30" : "grey.70",
|
|
396
|
-
lineClamp: m ? void 0 : 4,
|
|
397
|
-
inlineCSS: {
|
|
398
|
-
marginTop: a.content(2),
|
|
399
|
-
whiteSpace: "pre-wrap"
|
|
400
|
-
},
|
|
401
|
-
children: [
|
|
402
|
-
/* @__PURE__ */ e(r, { tag: "dt", visuallyHidden: !0, children: "자기소개" }),
|
|
403
|
-
/* @__PURE__ */ e("dd", { children: l.aboutMe })
|
|
404
|
-
]
|
|
405
|
-
}
|
|
406
|
-
)
|
|
407
|
-
] }),
|
|
408
|
-
z && /* @__PURE__ */ e(
|
|
409
|
-
A,
|
|
410
|
-
{
|
|
411
|
-
variant: "text",
|
|
412
|
-
size: "xSmall",
|
|
413
|
-
color: "secondary",
|
|
414
|
-
endAdornment: /* @__PURE__ */ e(d, { name: m ? "ChevronUpLine" : "ChevronDownLine" }),
|
|
415
|
-
onClick: M,
|
|
416
|
-
"aria-expanded": m,
|
|
417
|
-
"aria-controls": "about-me",
|
|
418
|
-
inlineCSS: {
|
|
419
|
-
marginLeft: "auto"
|
|
420
|
-
},
|
|
421
|
-
children: m ? "접기" : "더 보기"
|
|
422
|
-
}
|
|
423
|
-
)
|
|
424
|
-
]
|
|
425
|
-
}
|
|
426
|
-
),
|
|
427
|
-
k
|
|
428
|
-
]
|
|
429
|
-
}
|
|
430
|
-
);
|
|
1
|
+
import e from "../../../../shared/components/Image/index.mjs";
|
|
2
|
+
import { getLastActiveText as t } from "./ProfileSummary.utils.mjs";
|
|
3
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
4
|
+
import { Button as a, Flexbox as o, Icon as s, Label as c, Typography as l } from "@dotss/ui";
|
|
5
|
+
import u from "@dotss/ui/core/useTheme";
|
|
6
|
+
import d from "dayjs";
|
|
7
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
|
+
//#region teacher/profile/components/ProfileSummary/ProfileSummary.tsx
|
|
9
|
+
function h({ avatar: h, introduction: g, name: _, grade: v, activeHours: y = 0, rating: b = 0, reviewCount: x = 0, adornment: S, lastActiveAt: C, action: w }) {
|
|
10
|
+
let { palette: { background: T, brand: E, etc: D }, spacing: O } = u(), [k, A] = i(!1), [j, M] = i(!1), N = r(null), P = y > 0 || x > 0, F = C ? d(C) : null, I = F ? t(F) : null;
|
|
11
|
+
return n(() => {
|
|
12
|
+
let e = () => {
|
|
13
|
+
if (!N.current) return;
|
|
14
|
+
let e = N.current, t = parseInt(window.getComputedStyle(e).lineHeight), n = e.scrollHeight;
|
|
15
|
+
M(Math.ceil(n / t) > 4);
|
|
16
|
+
};
|
|
17
|
+
return e(), window.addEventListener("resize", e), () => {
|
|
18
|
+
window.removeEventListener("resize", e);
|
|
19
|
+
};
|
|
20
|
+
}, [g.aboutMe]), /* @__PURE__ */ m(o, {
|
|
21
|
+
tag: "section",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: 4,
|
|
24
|
+
"aria-label": "선생님 프로필 요약 정보",
|
|
25
|
+
inlineCSS: { width: "100%" },
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ m(o, {
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
gap: 4,
|
|
30
|
+
children: [/* @__PURE__ */ m(o, {
|
|
31
|
+
flexDirection: "column",
|
|
32
|
+
gap: 2,
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
justifyContent: "center",
|
|
35
|
+
children: [/* @__PURE__ */ m(o, {
|
|
36
|
+
role: typeof h.onClick == "function" ? "button" : void 0,
|
|
37
|
+
tabIndex: typeof h.onClick == "function" ? 0 : -1,
|
|
38
|
+
onKeyDown: (e) => {
|
|
39
|
+
switch (e.key) {
|
|
40
|
+
case "Enter":
|
|
41
|
+
e.preventDefault(), h.onClick?.(e);
|
|
42
|
+
break;
|
|
43
|
+
case " ":
|
|
44
|
+
e.preventDefault(), h.onClick?.(e);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
onClick: h.onClick,
|
|
49
|
+
alignItems: "center",
|
|
50
|
+
justifyContent: "center",
|
|
51
|
+
flexDirection: "column",
|
|
52
|
+
gap: 2,
|
|
53
|
+
inlineCSS: {
|
|
54
|
+
position: "relative",
|
|
55
|
+
cursor: typeof h.onClick == "function" ? "pointer" : void 0
|
|
56
|
+
},
|
|
57
|
+
children: [
|
|
58
|
+
h.src && /* @__PURE__ */ p(e, {
|
|
59
|
+
width: 88,
|
|
60
|
+
height: 88,
|
|
61
|
+
src: h.src,
|
|
62
|
+
alt: `${_} 선생님 프로필 이미지`,
|
|
63
|
+
fit: "cover",
|
|
64
|
+
borderRadius: 100,
|
|
65
|
+
role: "presentation",
|
|
66
|
+
style: { objectFit: "cover" }
|
|
67
|
+
}),
|
|
68
|
+
h.adornment,
|
|
69
|
+
!h.src && !h.placeholder && /* @__PURE__ */ m(o, {
|
|
70
|
+
role: "status",
|
|
71
|
+
flexDirection: "column",
|
|
72
|
+
alignItems: "center",
|
|
73
|
+
justifyContent: "center",
|
|
74
|
+
inlineCSS: {
|
|
75
|
+
width: 88,
|
|
76
|
+
height: 88,
|
|
77
|
+
backgroundColor: T.primary,
|
|
78
|
+
borderRadius: 100
|
|
79
|
+
},
|
|
80
|
+
children: [/* @__PURE__ */ p(l, {
|
|
81
|
+
tag: "p",
|
|
82
|
+
variant: "c3M",
|
|
83
|
+
color: "grey.70",
|
|
84
|
+
"aria-label": "등록된 프로필 사진이 없어요.",
|
|
85
|
+
children: "프로필 사진"
|
|
86
|
+
}), /* @__PURE__ */ p(l, {
|
|
87
|
+
tag: "span",
|
|
88
|
+
variant: "c5R",
|
|
89
|
+
color: "etc.red",
|
|
90
|
+
"aria-hidden": !0,
|
|
91
|
+
children: "(필수)"
|
|
92
|
+
})]
|
|
93
|
+
}),
|
|
94
|
+
!h.src && h.placeholder && h.placeholder,
|
|
95
|
+
/* @__PURE__ */ p(o, {
|
|
96
|
+
"aria-hidden": !0,
|
|
97
|
+
inlineCSS: {
|
|
98
|
+
position: "absolute",
|
|
99
|
+
top: 0,
|
|
100
|
+
left: 0,
|
|
101
|
+
width: "100%",
|
|
102
|
+
height: "100%",
|
|
103
|
+
border: "1px solid rgba(0, 0, 0, 0.05)",
|
|
104
|
+
borderRadius: 100
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
h.status === "REJECTED" && /* @__PURE__ */ m(f, { children: [
|
|
108
|
+
/* @__PURE__ */ p(o, {
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
justifyContent: "center",
|
|
111
|
+
inlineCSS: {
|
|
112
|
+
position: "absolute",
|
|
113
|
+
top: 0,
|
|
114
|
+
left: 0,
|
|
115
|
+
width: "100%",
|
|
116
|
+
height: "100%",
|
|
117
|
+
opacity: .8,
|
|
118
|
+
borderRadius: 100,
|
|
119
|
+
backgroundColor: T.primary,
|
|
120
|
+
zIndex: 1
|
|
121
|
+
}
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ p(s, {
|
|
124
|
+
name: "AlertFill",
|
|
125
|
+
size: "xSmall",
|
|
126
|
+
color: "etc.red",
|
|
127
|
+
inlineCSS: {
|
|
128
|
+
position: "absolute",
|
|
129
|
+
top: "50%",
|
|
130
|
+
left: "50%",
|
|
131
|
+
transform: "translate(-50%, -50%)",
|
|
132
|
+
zIndex: 1
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ p(l, {
|
|
136
|
+
role: "status",
|
|
137
|
+
visuallyHidden: !0,
|
|
138
|
+
children: "프로필 사진이 반려되었어요. 다시 등록해주세요."
|
|
139
|
+
})
|
|
140
|
+
] })
|
|
141
|
+
]
|
|
142
|
+
}), F?.isValid() && /* @__PURE__ */ p(l, {
|
|
143
|
+
tag: "p",
|
|
144
|
+
variant: "c3M",
|
|
145
|
+
color: "grey.50",
|
|
146
|
+
inlineCSS: { visibility: I ? void 0 : "hidden" },
|
|
147
|
+
children: I || "활동 정보 없음"
|
|
148
|
+
})]
|
|
149
|
+
}), /* @__PURE__ */ m(o, {
|
|
150
|
+
flexDirection: "column",
|
|
151
|
+
justifyContent: "flex-start",
|
|
152
|
+
gap: 3,
|
|
153
|
+
flexGrow: 1,
|
|
154
|
+
children: [/* @__PURE__ */ m(o, {
|
|
155
|
+
alignItems: "center",
|
|
156
|
+
gap: 2,
|
|
157
|
+
flexWrap: "wrap",
|
|
158
|
+
children: [
|
|
159
|
+
v && /* @__PURE__ */ p(c, {
|
|
160
|
+
variant: "outlined",
|
|
161
|
+
size: "small",
|
|
162
|
+
color: "blue",
|
|
163
|
+
"aria-label": `${v} 등급`,
|
|
164
|
+
children: v
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ m(l, {
|
|
167
|
+
tag: "p",
|
|
168
|
+
variant: "h2B",
|
|
169
|
+
"aria-label": `${_} 선생님`,
|
|
170
|
+
inlineCSS: {
|
|
171
|
+
flexGrow: 1,
|
|
172
|
+
"& > span": {
|
|
173
|
+
marginLeft: O.content(1),
|
|
174
|
+
fontWeight: 400
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
children: [_, /* @__PURE__ */ p("span", {
|
|
178
|
+
"aria-hidden": !0,
|
|
179
|
+
children: "선생님"
|
|
180
|
+
})]
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ p(o, {
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
inlineCSS: { maxHeight: 30 },
|
|
185
|
+
children: S
|
|
186
|
+
})
|
|
187
|
+
]
|
|
188
|
+
}), /* @__PURE__ */ m(o, {
|
|
189
|
+
pl: 4,
|
|
190
|
+
pr: 4,
|
|
191
|
+
pt: 2,
|
|
192
|
+
pb: 2,
|
|
193
|
+
justifyContent: "space-around",
|
|
194
|
+
alignItems: "center",
|
|
195
|
+
gap: 5,
|
|
196
|
+
"aria-hidden": !P,
|
|
197
|
+
inlineCSS: {
|
|
198
|
+
borderRadius: 8,
|
|
199
|
+
backgroundColor: T.primary,
|
|
200
|
+
visibility: P ? void 0 : "hidden"
|
|
201
|
+
},
|
|
202
|
+
children: [/* @__PURE__ */ m(o, {
|
|
203
|
+
alignItems: "center",
|
|
204
|
+
role: "group",
|
|
205
|
+
"aria-label": `누적 수업 ${y}시간`,
|
|
206
|
+
inlineCSS: { whiteSpace: "nowrap" },
|
|
207
|
+
children: [
|
|
208
|
+
/* @__PURE__ */ p(s, {
|
|
209
|
+
name: "TimeLine",
|
|
210
|
+
size: "xSmall",
|
|
211
|
+
color: "grey.70"
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ p(l, {
|
|
214
|
+
tag: "p",
|
|
215
|
+
variant: "h4B",
|
|
216
|
+
inlineCSS: {
|
|
217
|
+
marginLeft: O.content(1),
|
|
218
|
+
color: E.primary.text
|
|
219
|
+
},
|
|
220
|
+
children: y.toLocaleString()
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ p(l, {
|
|
223
|
+
tag: "span",
|
|
224
|
+
variant: "b5R",
|
|
225
|
+
color: "grey.70",
|
|
226
|
+
inlineCSS: { marginLeft: O.content(.5) },
|
|
227
|
+
children: "시간"
|
|
228
|
+
})
|
|
229
|
+
]
|
|
230
|
+
}), /* @__PURE__ */ m(o, {
|
|
231
|
+
alignItems: "center",
|
|
232
|
+
role: "group",
|
|
233
|
+
"aria-label": b > 0 ? `평점 ${b}, 리뷰 ${x}개` : `평점 집계중, 리뷰 ${x}개`,
|
|
234
|
+
inlineCSS: { whiteSpace: "nowrap" },
|
|
235
|
+
children: [/* @__PURE__ */ p(s, {
|
|
236
|
+
name: "ReviewLine",
|
|
237
|
+
size: "xSmall",
|
|
238
|
+
color: "grey.70"
|
|
239
|
+
}), b > 0 ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(l, {
|
|
240
|
+
tag: "p",
|
|
241
|
+
variant: "h4B",
|
|
242
|
+
inlineCSS: {
|
|
243
|
+
marginLeft: O.content(1),
|
|
244
|
+
color: E.primary.text
|
|
245
|
+
},
|
|
246
|
+
children: b.toLocaleString()
|
|
247
|
+
}), /* @__PURE__ */ m(l, {
|
|
248
|
+
tag: "span",
|
|
249
|
+
variant: "b5R",
|
|
250
|
+
color: "grey.70",
|
|
251
|
+
inlineCSS: { marginLeft: O.content(.5) },
|
|
252
|
+
children: [
|
|
253
|
+
"(",
|
|
254
|
+
x.toLocaleString(),
|
|
255
|
+
")"
|
|
256
|
+
]
|
|
257
|
+
})] }) : /* @__PURE__ */ p(l, {
|
|
258
|
+
tag: "p",
|
|
259
|
+
variant: "h4R",
|
|
260
|
+
color: "grey.70",
|
|
261
|
+
inlineCSS: { marginLeft: O.content(1) },
|
|
262
|
+
children: "집계중"
|
|
263
|
+
})]
|
|
264
|
+
})]
|
|
265
|
+
})]
|
|
266
|
+
})]
|
|
267
|
+
}),
|
|
268
|
+
/* @__PURE__ */ m(o, {
|
|
269
|
+
flexDirection: "column",
|
|
270
|
+
inlineCSS: { position: "relative" },
|
|
271
|
+
children: [
|
|
272
|
+
(!g.summary || !g.aboutMe) && !g.placeholder && /* @__PURE__ */ m(l, {
|
|
273
|
+
tag: "p",
|
|
274
|
+
variant: "b4R",
|
|
275
|
+
color: "grey.70",
|
|
276
|
+
"aria-label": "작성된 프로필 소개가 없어요.",
|
|
277
|
+
inlineCSS: { "& > span": { color: D.red } },
|
|
278
|
+
children: [/* @__PURE__ */ p("span", {
|
|
279
|
+
"aria-hidden": !0,
|
|
280
|
+
children: "(필수)"
|
|
281
|
+
}), " 프로필 소개를 작성하세요."]
|
|
282
|
+
}),
|
|
283
|
+
(!g.summary || !g.aboutMe) && g.placeholder && g.placeholder,
|
|
284
|
+
g.summary && g.aboutMe && /* @__PURE__ */ m(f, { children: [
|
|
285
|
+
g.status === "REJECTED" && /* @__PURE__ */ p(l, {
|
|
286
|
+
role: "status",
|
|
287
|
+
visuallyHidden: !0,
|
|
288
|
+
children: "프로필 소개가 반려되었어요. 다시 작성해주세요."
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ m(l, {
|
|
291
|
+
tag: "dl",
|
|
292
|
+
variant: "b4M",
|
|
293
|
+
color: g.status === "REJECTED" ? "grey.30" : void 0,
|
|
294
|
+
inlineCSS: {
|
|
295
|
+
display: "flex",
|
|
296
|
+
alignItems: "center"
|
|
297
|
+
},
|
|
298
|
+
children: [
|
|
299
|
+
g.status === "REJECTED" && /* @__PURE__ */ p(s, {
|
|
300
|
+
name: "AlertFill",
|
|
301
|
+
size: "xSmall",
|
|
302
|
+
color: "etc.red",
|
|
303
|
+
inlineCSS: { marginRight: O.content(1) }
|
|
304
|
+
}),
|
|
305
|
+
/* @__PURE__ */ p(o, {
|
|
306
|
+
tag: "dt",
|
|
307
|
+
visuallyHidden: !0,
|
|
308
|
+
children: "한 줄 소개"
|
|
309
|
+
}),
|
|
310
|
+
/* @__PURE__ */ p("dd", { children: g.summary })
|
|
311
|
+
]
|
|
312
|
+
}),
|
|
313
|
+
/* @__PURE__ */ m(l, {
|
|
314
|
+
ref: N,
|
|
315
|
+
id: "about-me",
|
|
316
|
+
tag: "dl",
|
|
317
|
+
variant: "b4R",
|
|
318
|
+
color: g.status === "REJECTED" ? "grey.30" : "grey.70",
|
|
319
|
+
lineClamp: k ? void 0 : 4,
|
|
320
|
+
inlineCSS: {
|
|
321
|
+
marginTop: O.content(2),
|
|
322
|
+
whiteSpace: "pre-wrap"
|
|
323
|
+
},
|
|
324
|
+
children: [/* @__PURE__ */ p(o, {
|
|
325
|
+
tag: "dt",
|
|
326
|
+
visuallyHidden: !0,
|
|
327
|
+
children: "자기소개"
|
|
328
|
+
}), /* @__PURE__ */ p("dd", { children: g.aboutMe })]
|
|
329
|
+
})
|
|
330
|
+
] }),
|
|
331
|
+
j && /* @__PURE__ */ p(a, {
|
|
332
|
+
variant: "text",
|
|
333
|
+
size: "xSmall",
|
|
334
|
+
color: "secondary",
|
|
335
|
+
endAdornment: /* @__PURE__ */ p(s, { name: k ? "ChevronUpLine" : "ChevronDownLine" }),
|
|
336
|
+
onClick: () => A((e) => !e),
|
|
337
|
+
"aria-expanded": k,
|
|
338
|
+
"aria-controls": "about-me",
|
|
339
|
+
inlineCSS: { marginLeft: "auto" },
|
|
340
|
+
children: k ? "접기" : "더 보기"
|
|
341
|
+
})
|
|
342
|
+
]
|
|
343
|
+
}),
|
|
344
|
+
w
|
|
345
|
+
]
|
|
346
|
+
});
|
|
431
347
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
};
|
|
348
|
+
//#endregion
|
|
349
|
+
export { h as default };
|