@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.
Files changed (205) hide show
  1. package/dist/Calendar-BOLCHnjh.js +97 -0
  2. package/dist/TimePicker-BwACyeBR.js +120 -0
  3. package/dist/convertMdToHtml-Bmk0brLK.js +1431 -0
  4. package/dist/index.mjs +105 -200
  5. package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +26 -29
  6. package/dist/parent/b2b/components/ActionButtons/index.mjs +5 -4
  7. package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -35
  8. package/dist/parent/b2b/components/BottomNotes/index.mjs +5 -4
  9. package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +12 -15
  10. package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +5 -4
  11. package/dist/parent/b2b/components/NameField/NameField.mjs +12 -7
  12. package/dist/parent/b2b/components/NameField/index.mjs +5 -4
  13. package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +27 -30
  14. package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +7 -8
  15. package/dist/parent/b2b/components/PhoneNumberField/index.mjs +6 -7
  16. package/dist/parent/b2b/components/Title/Title.mjs +22 -16
  17. package/dist/parent/b2b/components/Title/index.mjs +4 -3
  18. package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +55 -93
  19. package/dist/parent/b2b/components/TopLogo/index.mjs +5 -4
  20. package/dist/parent/b2b/components/index.mjs +9 -19
  21. package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +2 -1143
  22. package/dist/parent/b2b/utils/index.mjs +2 -4
  23. package/dist/parent/notification/components/NotificationCard/NotificationCard.d.ts +3 -1
  24. package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -105
  25. package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
  26. package/dist/parent/notification/components/index.mjs +2 -4
  27. package/dist/parent/notification/utils/index.mjs +2 -4
  28. package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
  29. package/dist/purify.es-D3W4zDrg.js +549 -0
  30. package/dist/shared/components/Calendar/Calendar.mjs +2 -80
  31. package/dist/shared/components/Calendar/index.mjs +5 -4
  32. package/dist/shared/components/Carousel/Carousel.mjs +184 -210
  33. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
  34. package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
  35. package/dist/shared/components/Carousel/index.mjs +6 -6
  36. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
  37. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
  38. package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
  39. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
  40. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
  41. package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
  42. package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
  43. package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
  44. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
  45. package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
  46. package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
  47. package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
  48. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
  49. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
  50. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
  51. package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
  52. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
  53. package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
  54. package/dist/shared/components/ChatKit/index.mjs +13 -29
  55. package/dist/shared/components/Image/Image.d.ts +2 -0
  56. package/dist/shared/components/Image/Image.error.mjs +34 -40
  57. package/dist/shared/components/Image/Image.mjs +247 -289
  58. package/dist/shared/components/Image/index.mjs +6 -6
  59. package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
  60. package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
  61. package/dist/shared/components/Masonry/Masonry.mjs +240 -276
  62. package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
  63. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
  64. package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
  65. package/dist/shared/components/Masonry/index.mjs +6 -6
  66. package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
  67. package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
  68. package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
  69. package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
  70. package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
  71. package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
  72. package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
  73. package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
  74. package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
  75. package/dist/shared/components/MediaDialog/index.mjs +9 -12
  76. package/dist/shared/components/Roller/Roller.mjs +99 -132
  77. package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
  78. package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
  79. package/dist/shared/components/Roller/index.mjs +6 -6
  80. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
  81. package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
  82. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
  83. package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
  84. package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
  85. package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
  86. package/dist/shared/components/Scheduler/index.mjs +8 -10
  87. package/dist/shared/components/Swiper/Swiper.mjs +238 -283
  88. package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
  89. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
  90. package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
  91. package/dist/shared/components/Swiper/index.mjs +6 -6
  92. package/dist/shared/components/TextField/TextField.mjs +44 -55
  93. package/dist/shared/components/TextField/index.mjs +5 -4
  94. package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
  95. package/dist/shared/components/TimePicker/index.mjs +5 -4
  96. package/dist/shared/components/index.mjs +36 -75
  97. package/dist/shared/hooks/index.mjs +4 -8
  98. package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
  99. package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
  100. package/dist/shared/hooks/useInView/index.mjs +5 -4
  101. package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
  102. package/dist/shared/hooks/useInView/useInView.mjs +37 -47
  103. package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
  104. package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
  105. package/dist/shared/typings/common.mjs +6 -4
  106. package/dist/shared/typings/index.mjs +2 -4
  107. package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
  108. package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
  109. package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
  110. package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
  111. package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
  112. package/dist/shared/utils/combineRef/index.mjs +5 -4
  113. package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
  114. package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
  115. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
  116. package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
  117. package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
  118. package/dist/shared/utils/getDateRange/index.mjs +5 -4
  119. package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
  120. package/dist/shared/utils/getImageUrl/index.mjs +5 -6
  121. package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
  122. package/dist/shared/utils/getTimeRange/index.mjs +5 -4
  123. package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
  124. package/dist/shared/utils/getVimeoId/index.mjs +5 -4
  125. package/dist/shared/utils/index.mjs +18 -36
  126. package/dist/shared/utils/isAndroid/index.mjs +5 -4
  127. package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
  128. package/dist/shared/utils/isApp/index.mjs +5 -4
  129. package/dist/shared/utils/isApp/isApp.mjs +4 -4
  130. package/dist/shared/utils/isDesktop/index.mjs +5 -4
  131. package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
  132. package/dist/shared/utils/isIos/index.mjs +5 -4
  133. package/dist/shared/utils/isIos/isIos.mjs +5 -5
  134. package/dist/shared/utils/isServer/index.mjs +4 -3
  135. package/dist/shared/utils/isServer/isServer.mjs +4 -4
  136. package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
  137. package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
  138. package/dist/shared/utils/parseQueryString/index.mjs +4 -3
  139. package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
  140. package/dist/shared/utils/share/index.mjs +5 -4
  141. package/dist/shared/utils/share/share.mjs +12 -14
  142. package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
  143. package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
  144. package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
  145. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
  146. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
  147. package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
  148. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
  149. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
  150. package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
  151. package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
  152. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
  153. package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
  154. package/dist/teacher/home/components/index.mjs +9 -18
  155. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
  156. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
  157. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
  158. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
  159. package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
  160. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
  161. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
  162. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
  163. package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
  164. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
  165. package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
  166. package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
  167. package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
  168. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
  169. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
  170. package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
  171. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
  172. package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
  173. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
  174. package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
  175. package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
  176. package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
  177. package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
  178. package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
  179. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
  180. package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
  181. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
  182. package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
  183. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
  184. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
  185. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
  186. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
  187. package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
  188. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
  189. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
  190. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
  191. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +11 -12
  192. package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
  193. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
  194. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
  195. package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
  196. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
  197. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
  198. package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
  199. package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
  200. package/dist/teacher/profile/components/index.mjs +24 -48
  201. package/dist/teacher/profile/utils/index.mjs +2 -4
  202. package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
  203. package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
  204. package/package.json +1 -1
  205. package/dist/purify.es-BGaRrCfO.js +0 -553
@@ -1,184 +1,152 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { useRef as F, useEffect as L } from "react";
3
- import { Flexbox as n, Typography as e, Button as $ } from "@dotss/ui";
4
- import q from "@dotss/ui/core/useTheme";
5
- import z from "dayjs";
6
- import { getClassInfo as G, getCtaButtonText as J } from "./BotMessage.utils.mjs";
7
- import K from "../../Image/Image.mjs";
8
- import N from "../../../hooks/useInView/useInView.mjs";
9
- import S from "../../../utils/getCareTypeLabel/getCareTypeLabel.mjs";
10
- function V({
11
- id: P,
12
- botMessageType: y,
13
- ctaType: s,
14
- ctaTargetId: C,
15
- ctaTargetTable: b,
16
- subCtaTargetTable: v,
17
- subCtaTargetId: T,
18
- mine: a,
19
- avatarUrl: g,
20
- title: R,
21
- content: p,
22
- unreadUserCount: h,
23
- offer: w,
24
- regDatetime: I,
25
- onAction: o,
26
- onView: l,
27
- inlineCSS: B,
28
- ...j
29
- }) {
30
- const {
31
- palette: { brand: D, grey: m, background: k },
32
- spacing: d
33
- } = q(), f = F(null), { isInView: u } = N(f), x = J(s), i = w, H = [
34
- S(i == null ? void 0 : i.firstCareType),
35
- S(i == null ? void 0 : i.secondCareType)
36
- ].filter(Boolean).filter((E) => E !== "-").join("+"), c = G(i), M = () => o == null ? void 0 : o({
37
- botMessageType: y,
38
- ctaType: s,
39
- ctaTargetId: C,
40
- ctaTargetTable: b,
41
- subCtaTargetTable: v,
42
- subCtaTargetId: T
43
- });
44
- return L(() => {
45
- u && (l == null || l());
46
- }, [u, l]), /* @__PURE__ */ t(
47
- n,
48
- {
49
- ref: f,
50
- alignItems: "flex-end",
51
- justifyContent: "flex-end",
52
- gap: 1,
53
- pl: 4,
54
- pr: 4,
55
- flexDirection: a ? "row" : "row-reverse",
56
- ...j,
57
- inlineCSS: {
58
- overflowAnchor: "none",
59
- ...B
60
- },
61
- children: [
62
- /* @__PURE__ */ r(e, { visuallyHidden: !0, children: "안내" }),
63
- /* @__PURE__ */ t(
64
- n,
65
- {
66
- flexDirection: "column",
67
- alignItems: a ? "flex-end" : "flex-start",
68
- inlineCSS: {
69
- whiteSpace: "nowrap"
70
- },
71
- children: [
72
- a && h > 0 && /* @__PURE__ */ r(
73
- e,
74
- {
75
- tag: "span",
76
- variant: "c5B",
77
- "aria-hidden": !0,
78
- inlineCSS: {
79
- color: D.primary.text
80
- },
81
- children: h
82
- }
83
- ),
84
- /* @__PURE__ */ r(
85
- e,
86
- {
87
- tag: "span",
88
- variant: "c5R",
89
- color: "etc.dimmed01",
90
- "aria-hidden": !0,
91
- inlineCSS: {
92
- whiteSpace: "nowrap"
93
- },
94
- children: z(I).format("A h:mm")
95
- }
96
- )
97
- ]
98
- }
99
- ),
100
- /* @__PURE__ */ t(
101
- n,
102
- {
103
- alignItems: "flex-start",
104
- flexDirection: a ? "row-reverse" : "row",
105
- gap: 3,
106
- p: 4,
107
- "aria-hidden": !0,
108
- inlineCSS: {
109
- backgroundColor: m.white,
110
- borderRadius: 12,
111
- border: `1px solid ${m[20]}`
112
- },
113
- children: [
114
- g && /* @__PURE__ */ r(
115
- K,
116
- {
117
- src: g,
118
- width: 32,
119
- height: 32,
120
- alt: "째깍악어 선생님 심볼",
121
- role: "presentation"
122
- }
123
- ),
124
- /* @__PURE__ */ t(n, { flexDirection: "column", children: [
125
- /* @__PURE__ */ r(e, { tag: "p", variant: "h4B", children: R }),
126
- p && /* @__PURE__ */ r(
127
- e,
128
- {
129
- tag: "p",
130
- variant: "b3R",
131
- inlineCSS: {
132
- marginTop: d.content(1)
133
- },
134
- children: p
135
- }
136
- ),
137
- c && /* @__PURE__ */ t(
138
- n,
139
- {
140
- mt: 2,
141
- p: 2,
142
- flexDirection: "column",
143
- inlineCSS: {
144
- borderRadius: d.content(2),
145
- backgroundColor: k.primary
146
- },
147
- children: [
148
- /* @__PURE__ */ t(e, { tag: "dl", children: [
149
- /* @__PURE__ */ r(e, { tag: "dt", visuallyHidden: !0, children: "날짜" }),
150
- /* @__PURE__ */ r(e, { tag: "dd", variant: "b4M", children: c.dateRangeText })
151
- ] }),
152
- /* @__PURE__ */ t(e, { tag: "dl", children: [
153
- /* @__PURE__ */ r(e, { tag: "dt", visuallyHidden: !0, children: "시간" }),
154
- /* @__PURE__ */ r(e, { tag: "dd", variant: "b4R", color: "grey.70", children: c.timeRangeText })
155
- ] }),
156
- /* @__PURE__ */ t(e, { tag: "dl", children: [
157
- /* @__PURE__ */ r(e, { tag: "dt", visuallyHidden: !0, children: "돌봄 유형" }),
158
- /* @__PURE__ */ r(e, { tag: "dd", variant: "b4R", color: "grey.70", children: H })
159
- ] })
160
- ]
161
- }
162
- ),
163
- x && /* @__PURE__ */ r(
164
- $,
165
- {
166
- color: "secondary",
167
- onClick: M,
168
- inlineCSS: {
169
- marginTop: d.content(2)
170
- },
171
- children: x
172
- }
173
- )
174
- ] })
175
- ]
176
- }
177
- )
178
- ]
179
- }
180
- );
1
+ import e from "../../../hooks/useInView/index.mjs";
2
+ import t from "../../Image/index.mjs";
3
+ import n from "../../../utils/getCareTypeLabel/index.mjs";
4
+ import { getClassInfo as r, getCtaButtonText as i } from "./BotMessage.utils.mjs";
5
+ import { useEffect as a, useRef as o } from "react";
6
+ import { Button as s, Flexbox as c, Typography as l } from "@dotss/ui";
7
+ import u from "@dotss/ui/core/useTheme";
8
+ import d from "dayjs";
9
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
+ //#region shared/components/ChatKit/BotMessage/BotMessage.tsx
11
+ function m({ id: m, botMessageType: h, ctaType: g, ctaTargetId: _, ctaTargetTable: v, subCtaTargetTable: y, subCtaTargetId: b, mine: x, avatarUrl: S, title: C, content: w, unreadUserCount: T, offer: E, regDatetime: D, onAction: O, onView: k, inlineCSS: A, ...j }) {
12
+ let { palette: { brand: M, grey: N, background: P }, spacing: F } = u(), I = o(null), { isInView: L } = e(I), R = i(g), z = E, B = [n(z?.firstCareType), n(z?.secondCareType)].filter(Boolean).filter((e) => e !== "-").join("+"), V = r(z), H = () => O?.({
13
+ botMessageType: h,
14
+ ctaType: g,
15
+ ctaTargetId: _,
16
+ ctaTargetTable: v,
17
+ subCtaTargetTable: y,
18
+ subCtaTargetId: b
19
+ });
20
+ return a(() => {
21
+ L && k?.();
22
+ }, [L, k]), /* @__PURE__ */ p(c, {
23
+ ref: I,
24
+ alignItems: "flex-end",
25
+ justifyContent: "flex-end",
26
+ gap: 1,
27
+ pl: 4,
28
+ pr: 4,
29
+ flexDirection: x ? "row" : "row-reverse",
30
+ ...j,
31
+ inlineCSS: {
32
+ overflowAnchor: "none",
33
+ ...A
34
+ },
35
+ children: [
36
+ /* @__PURE__ */ f(l, {
37
+ visuallyHidden: !0,
38
+ children: "안내"
39
+ }),
40
+ /* @__PURE__ */ p(c, {
41
+ flexDirection: "column",
42
+ alignItems: x ? "flex-end" : "flex-start",
43
+ inlineCSS: { whiteSpace: "nowrap" },
44
+ children: [x && T > 0 && /* @__PURE__ */ f(l, {
45
+ tag: "span",
46
+ variant: "c5B",
47
+ "aria-hidden": !0,
48
+ inlineCSS: { color: M.primary.text },
49
+ children: T
50
+ }), /* @__PURE__ */ f(l, {
51
+ tag: "span",
52
+ variant: "c5R",
53
+ color: "etc.dimmed01",
54
+ "aria-hidden": !0,
55
+ inlineCSS: { whiteSpace: "nowrap" },
56
+ children: d(D).format("A h:mm")
57
+ })]
58
+ }),
59
+ /* @__PURE__ */ p(c, {
60
+ alignItems: "flex-start",
61
+ flexDirection: x ? "row-reverse" : "row",
62
+ gap: 3,
63
+ p: 4,
64
+ "aria-hidden": !0,
65
+ inlineCSS: {
66
+ backgroundColor: N.white,
67
+ borderRadius: 12,
68
+ border: `1px solid ${N[20]}`
69
+ },
70
+ children: [S && /* @__PURE__ */ f(t, {
71
+ src: S,
72
+ width: 32,
73
+ height: 32,
74
+ alt: "째깍악어 선생님 심볼",
75
+ role: "presentation"
76
+ }), /* @__PURE__ */ p(c, {
77
+ flexDirection: "column",
78
+ children: [
79
+ /* @__PURE__ */ f(l, {
80
+ tag: "p",
81
+ variant: "h4B",
82
+ children: C
83
+ }),
84
+ w && /* @__PURE__ */ f(l, {
85
+ tag: "p",
86
+ variant: "b3R",
87
+ inlineCSS: { marginTop: F.content(1) },
88
+ children: w
89
+ }),
90
+ V && /* @__PURE__ */ p(c, {
91
+ mt: 2,
92
+ p: 2,
93
+ flexDirection: "column",
94
+ inlineCSS: {
95
+ borderRadius: F.content(2),
96
+ backgroundColor: P.primary
97
+ },
98
+ children: [
99
+ /* @__PURE__ */ p(l, {
100
+ tag: "dl",
101
+ children: [/* @__PURE__ */ f(l, {
102
+ tag: "dt",
103
+ visuallyHidden: !0,
104
+ children: "날짜"
105
+ }), /* @__PURE__ */ f(l, {
106
+ tag: "dd",
107
+ variant: "b4M",
108
+ children: V.dateRangeText
109
+ })]
110
+ }),
111
+ /* @__PURE__ */ p(l, {
112
+ tag: "dl",
113
+ children: [/* @__PURE__ */ f(l, {
114
+ tag: "dt",
115
+ visuallyHidden: !0,
116
+ children: "시간"
117
+ }), /* @__PURE__ */ f(l, {
118
+ tag: "dd",
119
+ variant: "b4R",
120
+ color: "grey.70",
121
+ children: V.timeRangeText
122
+ })]
123
+ }),
124
+ /* @__PURE__ */ p(l, {
125
+ tag: "dl",
126
+ children: [/* @__PURE__ */ f(l, {
127
+ tag: "dt",
128
+ visuallyHidden: !0,
129
+ children: "돌봄 유형"
130
+ }), /* @__PURE__ */ f(l, {
131
+ tag: "dd",
132
+ variant: "b4R",
133
+ color: "grey.70",
134
+ children: B
135
+ })]
136
+ })
137
+ ]
138
+ }),
139
+ R && /* @__PURE__ */ f(s, {
140
+ color: "secondary",
141
+ onClick: H,
142
+ inlineCSS: { marginTop: F.content(2) },
143
+ children: R
144
+ })
145
+ ]
146
+ })]
147
+ })
148
+ ]
149
+ });
181
150
  }
182
- export {
183
- V as default
184
- };
151
+ //#endregion
152
+ export { m as default };
@@ -1,53 +1,33 @@
1
- import n from "dayjs";
2
- import o from "../../../utils/getCareTypeLabel/getCareTypeLabel.mjs";
3
- function u(r) {
4
- switch (r) {
5
- case "MY_CLASS_CHECK":
6
- return "내 수업 확인하기";
7
- case "OFFER_CHECK":
8
- return "공고 확인하기";
9
- case "CHANGE_INFO_CHECK":
10
- return "변경내용 확인하기";
11
- case "MY_APPLICATION_INFO_VIEW":
12
- return "나의 지원 내역 보러가기";
13
- case "CARE_NOTE_CHECK":
14
- return "돌봄노트 확인하기";
15
- case "TEACHER_SELECTION":
16
- return "선생님 선택하러 가기";
17
- case "PLAY_CONTENT_EXPLORE":
18
- return "놀이콘텐츠 둘러보기";
19
- default:
20
- return "";
21
- }
1
+ import e from "../../../utils/getCareTypeLabel/index.mjs";
2
+ import t from "dayjs";
3
+ //#region shared/components/ChatKit/BotMessage/BotMessage.utils.ts
4
+ function n(e) {
5
+ switch (e) {
6
+ case "MY_CLASS_CHECK": return "내 수업 확인하기";
7
+ case "OFFER_CHECK": return "공고 확인하기";
8
+ case "CHANGE_INFO_CHECK": return "변경내용 확인하기";
9
+ case "MY_APPLICATION_INFO_VIEW": return "나의 지원 내역 보러가기";
10
+ case "CARE_NOTE_CHECK": return "돌봄노트 확인하기";
11
+ case "TEACHER_SELECTION": return "선생님 선택하러 가기";
12
+ case "PLAY_CONTENT_EXPLORE": return "놀이콘텐츠 둘러보기";
13
+ default: return "";
14
+ }
22
15
  }
23
- function C(r) {
24
- const e = r;
25
- if (!e)
26
- return null;
27
- let a;
28
- e.totalCareCount > 1 ? a = `${n(e.careStartDate).format("M월 D일(ddd)")}부터 / 총 ${e.totalCareCount}회` : a = n(e.careStartDate).format("M월 D일(ddd)");
29
- const c = n(`${e.careStartDate} ${e.careStartTime}`).format(
30
- "A h:mm"
31
- ), t = n(`${e.careStartDate} ${e.careEndTime}`).format(
32
- "A h:mm"
33
- );
34
- return {
35
- dateRangeText: a,
36
- timeRangeText: `${c} ~ ${t}`,
37
- careType: o(e.firstCareType)
38
- };
16
+ function r(n) {
17
+ let r = n;
18
+ if (!r) return null;
19
+ let i;
20
+ i = r.totalCareCount > 1 ? `${t(r.careStartDate).format("M월 D일(ddd)")}부터 / 총 ${r.totalCareCount}회` : t(r.careStartDate).format("M월 D일(ddd)");
21
+ let a = t(`${r.careStartDate} ${r.careStartTime}`).format("A h:mm"), o = t(`${r.careStartDate} ${r.careEndTime}`).format("A h:mm");
22
+ return {
23
+ dateRangeText: i,
24
+ timeRangeText: `${a} ~ ${o}`,
25
+ careType: e(r.firstCareType)
26
+ };
39
27
  }
40
- function T({
41
- title: r,
42
- content: e,
43
- offer: a,
44
- regDatetime: c
45
- }) {
46
- const t = C(a);
47
- return `안내, ${r}, ${e ? `${e}, ` : ""}${t ? `${t.dateRangeText}, ${t.timeRangeText}, ${t.careType}, ` : ""}${n(c).format("YYYY년 MM월 DD일 A h:mm")}`;
28
+ function i({ title: e, content: n, offer: i, regDatetime: a }) {
29
+ let o = r(i);
30
+ return `안내, ${e}, ${n ? `${n}, ` : ""}${o ? `${o.dateRangeText}, ${o.timeRangeText}, ${o.careType}, ` : ""}${t(a).format("YYYY년 MM월 DD일 A h:mm")}`;
48
31
  }
49
- export {
50
- T as getBotMessageLabel,
51
- C as getClassInfo,
52
- u as getCtaButtonText
53
- };
32
+ //#endregion
33
+ export { i as getBotMessageLabel, r as getClassInfo, n as getCtaButtonText };
@@ -1,8 +1,6 @@
1
- import e from "./BotMessage.mjs";
2
- import { getBotMessageLabel as s, getClassInfo as g, getCtaButtonText as r } from "./BotMessage.utils.mjs";
3
- export {
4
- e as default,
5
- s as getBotMessageLabel,
6
- g as getClassInfo,
7
- r as getCtaButtonText
8
- };
1
+ import { getBotMessageLabel as e, getClassInfo as t, getCtaButtonText as n } from "./BotMessage.utils.mjs";
2
+ import r from "./BotMessage.mjs";
3
+ //#region shared/components/ChatKit/BotMessage/index.ts
4
+ var i = r;
5
+ //#endregion
6
+ export { i as default, e as getBotMessageLabel, t as getClassInfo, n as getCtaButtonText };
@@ -1,85 +1,65 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import { Flexbox as o, IconButton as l } from "@dotss/ui";
3
- import p from "@dotss/ui/core/useTheme";
4
- const n = 24;
5
- function b() {
6
- const {
7
- palette: { grey: r, background: t },
8
- spacing: i
9
- } = p();
10
- return /* @__PURE__ */ e(
11
- o,
12
- {
13
- pt: 2,
14
- pb: 2,
15
- pl: 4,
16
- pr: 4,
17
- gap: 1,
18
- "aria-busy": !0,
19
- alignItems: "center",
20
- inlineCSS: {
21
- cursor: "wait",
22
- borderTop: `1px solid ${r[10]}`,
23
- backgroundColor: r.white
24
- },
25
- children: /* @__PURE__ */ a(
26
- o,
27
- {
28
- alignItems: "center",
29
- pt: 2,
30
- pb: 2,
31
- pl: 4,
32
- flexGrow: 1,
33
- inlineCSS: {
34
- position: "relative",
35
- paddingRight: i.content(12),
36
- border: `1px solid ${r[10]}`,
37
- borderRadius: 20,
38
- backgroundColor: t.primary
39
- },
40
- children: [
41
- /* @__PURE__ */ e(
42
- o,
43
- {
44
- tag: "textarea",
45
- readOnly: !0,
46
- flexGrow: 1,
47
- disabled: !0,
48
- inlineCSS: {
49
- cursor: "wait",
50
- height: n,
51
- lineHeight: `${n}px`,
52
- border: "none",
53
- outline: "none",
54
- backgroundColor: "transparent",
55
- resize: "none",
56
- scrollbarWidth: "none",
57
- "&::-webkit-scrollbar": {
58
- display: "none"
59
- }
60
- }
61
- }
62
- ),
63
- /* @__PURE__ */ e(
64
- l,
65
- {
66
- name: "ArrowUpwardLine",
67
- variant: "filled",
68
- disabled: !0,
69
- inlineCSS: {
70
- cursor: "wait !important",
71
- position: "absolute",
72
- right: 0,
73
- bottom: 0
74
- }
75
- }
76
- )
77
- ]
78
- }
79
- )
80
- }
81
- );
1
+ import { Flexbox as e, IconButton as t } from "@dotss/ui";
2
+ import n from "@dotss/ui/core/useTheme";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region shared/components/ChatKit/InputBar/InputBar.fallback.tsx
5
+ var a = 24;
6
+ function o() {
7
+ let { palette: { grey: o, background: s }, spacing: c } = n();
8
+ return /* @__PURE__ */ r(e, {
9
+ pt: 2,
10
+ pb: 2,
11
+ pl: 4,
12
+ pr: 4,
13
+ gap: 1,
14
+ "aria-busy": !0,
15
+ alignItems: "center",
16
+ inlineCSS: {
17
+ cursor: "wait",
18
+ borderTop: `1px solid ${o[10]}`,
19
+ backgroundColor: o.white
20
+ },
21
+ children: /* @__PURE__ */ i(e, {
22
+ alignItems: "center",
23
+ pt: 2,
24
+ pb: 2,
25
+ pl: 4,
26
+ flexGrow: 1,
27
+ inlineCSS: {
28
+ position: "relative",
29
+ paddingRight: c.content(12),
30
+ border: `1px solid ${o[10]}`,
31
+ borderRadius: 20,
32
+ backgroundColor: s.primary
33
+ },
34
+ children: [/* @__PURE__ */ r(e, {
35
+ tag: "textarea",
36
+ readOnly: !0,
37
+ flexGrow: 1,
38
+ disabled: !0,
39
+ inlineCSS: {
40
+ cursor: "wait",
41
+ height: a,
42
+ lineHeight: `${a}px`,
43
+ border: "none",
44
+ outline: "none",
45
+ backgroundColor: "transparent",
46
+ resize: "none",
47
+ scrollbarWidth: "none",
48
+ "&::-webkit-scrollbar": { display: "none" }
49
+ }
50
+ }), /* @__PURE__ */ r(t, {
51
+ name: "ArrowUpwardLine",
52
+ variant: "filled",
53
+ disabled: !0,
54
+ inlineCSS: {
55
+ cursor: "wait !important",
56
+ position: "absolute",
57
+ right: 0,
58
+ bottom: 0
59
+ }
60
+ })]
61
+ })
62
+ });
82
63
  }
83
- export {
84
- b as default
85
- };
64
+ //#endregion
65
+ export { o as default };