@dotss/tictoccroc 0.4.2 → 0.6.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.mjs +90 -108
  24. package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
  25. package/dist/parent/notification/components/index.mjs +2 -4
  26. package/dist/parent/notification/utils/index.mjs +2 -4
  27. package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
  28. package/dist/purify.es-D3W4zDrg.js +549 -0
  29. package/dist/shared/components/Calendar/Calendar.mjs +2 -80
  30. package/dist/shared/components/Calendar/index.mjs +5 -4
  31. package/dist/shared/components/Carousel/Carousel.mjs +184 -210
  32. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
  33. package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
  34. package/dist/shared/components/Carousel/index.mjs +6 -6
  35. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
  36. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
  37. package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
  38. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
  39. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
  40. package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
  41. package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
  42. package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
  43. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
  44. package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
  45. package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
  46. package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
  47. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
  48. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
  49. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
  50. package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
  51. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
  52. package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
  53. package/dist/shared/components/ChatKit/index.mjs +13 -29
  54. package/dist/shared/components/Image/Image.d.ts +2 -0
  55. package/dist/shared/components/Image/Image.error.mjs +34 -40
  56. package/dist/shared/components/Image/Image.mjs +247 -289
  57. package/dist/shared/components/Image/index.mjs +6 -6
  58. package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
  59. package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
  60. package/dist/shared/components/Masonry/Masonry.mjs +240 -276
  61. package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
  62. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
  63. package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
  64. package/dist/shared/components/Masonry/index.mjs +6 -6
  65. package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
  66. package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
  67. package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
  68. package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
  69. package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
  70. package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
  71. package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
  72. package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
  73. package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
  74. package/dist/shared/components/MediaDialog/index.mjs +9 -12
  75. package/dist/shared/components/Roller/Roller.mjs +99 -132
  76. package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
  77. package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
  78. package/dist/shared/components/Roller/index.mjs +6 -6
  79. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
  80. package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
  81. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
  82. package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
  83. package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
  84. package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
  85. package/dist/shared/components/Scheduler/index.mjs +8 -10
  86. package/dist/shared/components/Swiper/Swiper.mjs +238 -283
  87. package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
  88. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
  89. package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
  90. package/dist/shared/components/Swiper/index.mjs +6 -6
  91. package/dist/shared/components/TextField/TextField.mjs +44 -55
  92. package/dist/shared/components/TextField/index.mjs +5 -4
  93. package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
  94. package/dist/shared/components/TimePicker/index.mjs +5 -4
  95. package/dist/shared/components/index.mjs +36 -75
  96. package/dist/shared/hooks/index.mjs +4 -8
  97. package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
  98. package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
  99. package/dist/shared/hooks/useInView/index.mjs +5 -4
  100. package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
  101. package/dist/shared/hooks/useInView/useInView.mjs +37 -47
  102. package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
  103. package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
  104. package/dist/shared/typings/common.mjs +6 -4
  105. package/dist/shared/typings/index.mjs +2 -4
  106. package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
  107. package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
  108. package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
  109. package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
  110. package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
  111. package/dist/shared/utils/combineRef/index.mjs +5 -4
  112. package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
  113. package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
  114. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
  115. package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
  116. package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
  117. package/dist/shared/utils/getDateRange/index.mjs +5 -4
  118. package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
  119. package/dist/shared/utils/getImageUrl/index.mjs +5 -6
  120. package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
  121. package/dist/shared/utils/getTimeRange/index.mjs +5 -4
  122. package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
  123. package/dist/shared/utils/getVimeoId/index.mjs +5 -4
  124. package/dist/shared/utils/index.mjs +18 -36
  125. package/dist/shared/utils/isAndroid/index.mjs +5 -4
  126. package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
  127. package/dist/shared/utils/isApp/index.mjs +5 -4
  128. package/dist/shared/utils/isApp/isApp.mjs +4 -4
  129. package/dist/shared/utils/isDesktop/index.mjs +5 -4
  130. package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
  131. package/dist/shared/utils/isIos/index.mjs +5 -4
  132. package/dist/shared/utils/isIos/isIos.mjs +5 -5
  133. package/dist/shared/utils/isServer/index.mjs +4 -3
  134. package/dist/shared/utils/isServer/isServer.mjs +4 -4
  135. package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
  136. package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
  137. package/dist/shared/utils/parseQueryString/index.mjs +4 -3
  138. package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
  139. package/dist/shared/utils/share/index.mjs +5 -4
  140. package/dist/shared/utils/share/share.mjs +12 -14
  141. package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
  142. package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
  143. package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
  144. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
  145. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
  146. package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
  147. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
  148. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
  149. package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
  150. package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
  151. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
  152. package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
  153. package/dist/teacher/home/components/index.mjs +9 -18
  154. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
  155. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
  156. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
  157. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
  158. package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
  159. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
  160. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
  161. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
  162. package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
  163. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
  164. package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
  165. package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
  166. package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
  167. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
  168. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
  169. package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
  170. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
  171. package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
  172. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
  173. package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
  174. package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
  175. package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
  176. package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
  177. package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
  178. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
  179. package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
  180. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
  181. package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
  182. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
  183. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
  184. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
  185. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
  186. package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
  187. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
  188. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
  189. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
  190. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.d.ts +3 -0
  191. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +12 -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,154 +1,184 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { BottomSheet as m, BottomSheetTitle as p, BottomSheetContent as s, Typography as n, Flexbox as o, Icon as a, Button as c, BottomSheetAction as S } from "@dotss/ui";
3
- import b from "@dotss/ui/core/useTheme";
4
- function u({
5
- target: t,
6
- open: d,
7
- onClose: l,
8
- onInquire: h
9
- }) {
10
- const {
11
- palette: { background: g },
12
- spacing: r
13
- } = b();
14
- return /* @__PURE__ */ i(m, { id: "system-message-action", open: d, onClose: l, children: [
15
- /* @__PURE__ */ e(p, { onClose: l, children: "직거래는 왜 하면 안되나요?" }),
16
- /* @__PURE__ */ i(s, { children: [
17
- t === "teacher" && /* @__PURE__ */ i(n, { tag: "p", variant: "h3R", textAlign: "center", children: [
18
- /* @__PURE__ */ e(n, { tag: "strong", variant: "h3B", color: "etc.red", children: "직거래" }),
19
- ", 선생님에게 더 불리한 선택이에요."
20
- ] }),
21
- t === "parent" && /* @__PURE__ */ i(n, { tag: "p", variant: "h4R", textAlign: "center", children: [
22
- /* @__PURE__ */ e(n, { tag: "strong", variant: "h4B", color: "etc.red", children: "선생님과 직거래가 적발되면" }),
23
- /* @__PURE__ */ e("br", {}),
24
- "사고 발생 시 째깍악어의 도움을 받을 수 없어요"
25
- ] }),
26
- /* @__PURE__ */ i(
27
- o,
28
- {
29
- tag: "aside",
30
- role: "note",
31
- mt: 3,
32
- pt: 4,
33
- pb: 4,
34
- pl: 3,
35
- pr: 3,
36
- inlineCSS: {
37
- borderRadius: 12,
38
- backgroundColor: g.primary
39
- },
40
- children: [
41
- t === "parent" && /* @__PURE__ */ i(
42
- o,
43
- {
44
- tag: "ul",
45
- flexDirection: "column",
46
- gap: 1,
47
- inlineCSS: {
48
- listStyle: "none",
49
- padding: 0,
50
- paddingLeft: r.content(2),
51
- "& li:before": {
52
- content: '"•"',
53
- display: "inline-block",
54
- maxWidth: 4,
55
- fontSize: 18,
56
- marginRight: r.content(2)
57
- }
58
- },
59
- children: [
60
- /* @__PURE__ */ e(n, { tag: "li", variant: "b4R", color: "grey.70", children: "선생님과의 갈등 및 문제 발생시 째깍악어로부터 어떠한 도움이나 중재를 받으실 수 없고" }),
61
- /* @__PURE__ */ e(n, { tag: "li", variant: "b4R", color: "grey.70", children: "배상책임보험에 가입되지 않아 아이 안전사고 발생 시 보장받기 어려우며" }),
62
- /* @__PURE__ */ e(n, { tag: "li", variant: "b4R", color: "grey.70", children: "영업 방해로 간주되어, 법적 조치가 이루어집니다 (약관 제 42조)" })
63
- ]
64
- }
65
- ),
66
- t === "teacher" && /* @__PURE__ */ i(
67
- o,
68
- {
69
- tag: "ul",
70
- flexDirection: "column",
71
- gap: 1,
72
- inlineCSS: {
73
- listStyle: "none",
74
- padding: 0,
75
- paddingLeft: r.content(2),
76
- "& li:before": {
77
- content: '"•"',
78
- display: "inline-block",
79
- maxWidth: 4,
80
- fontSize: 18,
81
- marginRight: r.content(2)
82
- }
83
- },
84
- children: [
85
- /* @__PURE__ */ e(n, { tag: "li", variant: "b4R", color: "grey.70", children: "부모님과의 갈등, 수업 취소, 아이 안전사고 발생 시 째깍악어로부터 어떠한 도움도 받을 수 없으며" }),
86
- /* @__PURE__ */ e(n, { tag: "li", variant: "b4R", color: "grey.70", children: "직거래가 적발될 경우 경고 없이 활동이 어렵고 바로 계약이 해지돼요" }),
87
- /* @__PURE__ */ e(n, { tag: "li", variant: "b4R", color: "grey.70", children: "또한, 영업 방해로 간주되어 법적 조치가 진행될 수 있어요" })
88
- ]
89
- }
90
- )
91
- ]
92
- }
93
- ),
94
- /* @__PURE__ */ i(
95
- o,
96
- {
97
- tag: "section",
98
- alignItems: "flex-start",
99
- gap: 2,
100
- mt: 3,
101
- inlineCSS: {
102
- position: "relative"
103
- },
104
- children: [
105
- /* @__PURE__ */ e(
106
- a,
107
- {
108
- name: "InformationLine",
109
- color: "etc.orange",
110
- size: "small",
111
- inlineCSS: { flexShrink: 0 }
112
- }
113
- ),
114
- /* @__PURE__ */ i(n, { tag: "p", variant: "b4R", color: "etc.orange", children: [
115
- t === "teacher" && "부모님의 직거래 제안이 왔나요? 당황하지 마시고 째깍악어 운영본부에 알려주세요.",
116
- t === "parent" && "선생님의 직거래 제안이 왔나요? 당황하지 마시고 째깍악어 운영팀에 알려주세요.",
117
- /* @__PURE__ */ e(
118
- n,
119
- {
120
- tag: "span",
121
- "aria-hidden": !0,
122
- inlineCSS: {
123
- display: "inline-block",
124
- minWidth: 70
125
- }
126
- }
127
- )
128
- ] }),
129
- /* @__PURE__ */ e(
130
- c,
131
- {
132
- variant: "text",
133
- size: "xSmall",
134
- color: "secondary",
135
- endAdornment: /* @__PURE__ */ e(a, { name: "ChevronRightLine" }),
136
- onClick: h,
137
- inlineCSS: {
138
- position: "absolute",
139
- right: 0,
140
- bottom: -2
141
- },
142
- children: "1:1 문의"
143
- }
144
- )
145
- ]
146
- }
147
- )
148
- ] }),
149
- /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(c, { size: "large", onClick: l, children: "이해했어요" }) })
150
- ] });
1
+ import { BottomSheet as e, BottomSheetAction as t, BottomSheetContent as n, BottomSheetTitle as r, Button as i, Flexbox as a, Icon as o, Typography as s } from "@dotss/ui";
2
+ import c from "@dotss/ui/core/useTheme";
3
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
4
+ //#region shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.tsx
5
+ function d({ target: d, open: f, onClose: p, onInquire: m }) {
6
+ let { palette: { background: h }, spacing: g } = c();
7
+ return /* @__PURE__ */ u(e, {
8
+ id: "system-message-action",
9
+ open: f,
10
+ onClose: p,
11
+ children: [
12
+ /* @__PURE__ */ l(r, {
13
+ onClose: p,
14
+ children: "직거래는 왜 하면 안되나요?"
15
+ }),
16
+ /* @__PURE__ */ u(n, { children: [
17
+ d === "teacher" && /* @__PURE__ */ u(s, {
18
+ tag: "p",
19
+ variant: "h3R",
20
+ textAlign: "center",
21
+ children: [/* @__PURE__ */ l(s, {
22
+ tag: "strong",
23
+ variant: "h3B",
24
+ color: "etc.red",
25
+ children: "직거래"
26
+ }), ", 선생님에게 더 불리한 선택이에요."]
27
+ }),
28
+ d === "parent" && /* @__PURE__ */ u(s, {
29
+ tag: "p",
30
+ variant: "h4R",
31
+ textAlign: "center",
32
+ children: [
33
+ /* @__PURE__ */ l(s, {
34
+ tag: "strong",
35
+ variant: "h4B",
36
+ color: "etc.red",
37
+ children: "선생님과 직거래가 적발되면"
38
+ }),
39
+ /* @__PURE__ */ l("br", {}),
40
+ "사고 발생 시 째깍악어의 도움을 받을 수 없어요"
41
+ ]
42
+ }),
43
+ /* @__PURE__ */ u(a, {
44
+ tag: "aside",
45
+ role: "note",
46
+ mt: 3,
47
+ pt: 4,
48
+ pb: 4,
49
+ pl: 3,
50
+ pr: 3,
51
+ inlineCSS: {
52
+ borderRadius: 12,
53
+ backgroundColor: h.primary
54
+ },
55
+ children: [d === "parent" && /* @__PURE__ */ u(a, {
56
+ tag: "ul",
57
+ flexDirection: "column",
58
+ gap: 1,
59
+ inlineCSS: {
60
+ listStyle: "none",
61
+ padding: 0,
62
+ paddingLeft: g.content(2),
63
+ "& li:before": {
64
+ content: "\"•\"",
65
+ display: "inline-block",
66
+ maxWidth: 4,
67
+ fontSize: 18,
68
+ marginRight: g.content(2)
69
+ }
70
+ },
71
+ children: [
72
+ /* @__PURE__ */ l(s, {
73
+ tag: "li",
74
+ variant: "b4R",
75
+ color: "grey.70",
76
+ children: "선생님과의 갈등 및 문제 발생시 째깍악어로부터 어떠한 도움이나 중재를 받으실 수 없고"
77
+ }),
78
+ /* @__PURE__ */ l(s, {
79
+ tag: "li",
80
+ variant: "b4R",
81
+ color: "grey.70",
82
+ children: "배상책임보험에 가입되지 않아 아이 안전사고 발생 시 보장받기 어려우며"
83
+ }),
84
+ /* @__PURE__ */ l(s, {
85
+ tag: "li",
86
+ variant: "b4R",
87
+ color: "grey.70",
88
+ children: "영업 방해로 간주되어, 법적 조치가 이루어집니다 (약관 제 42조)"
89
+ })
90
+ ]
91
+ }), d === "teacher" && /* @__PURE__ */ u(a, {
92
+ tag: "ul",
93
+ flexDirection: "column",
94
+ gap: 1,
95
+ inlineCSS: {
96
+ listStyle: "none",
97
+ padding: 0,
98
+ paddingLeft: g.content(2),
99
+ "& li:before": {
100
+ content: "\"•\"",
101
+ display: "inline-block",
102
+ maxWidth: 4,
103
+ fontSize: 18,
104
+ marginRight: g.content(2)
105
+ }
106
+ },
107
+ children: [
108
+ /* @__PURE__ */ l(s, {
109
+ tag: "li",
110
+ variant: "b4R",
111
+ color: "grey.70",
112
+ children: "부모님과의 갈등, 수업 취소, 아이 안전사고 발생 시 째깍악어로부터 어떠한 도움도 받을 수 없으며"
113
+ }),
114
+ /* @__PURE__ */ l(s, {
115
+ tag: "li",
116
+ variant: "b4R",
117
+ color: "grey.70",
118
+ children: "직거래가 적발될 경우 경고 없이 활동이 어렵고 바로 계약이 해지돼요"
119
+ }),
120
+ /* @__PURE__ */ l(s, {
121
+ tag: "li",
122
+ variant: "b4R",
123
+ color: "grey.70",
124
+ children: "또한, 영업 방해로 간주되어 법적 조치가 진행될 수 있어요"
125
+ })
126
+ ]
127
+ })]
128
+ }),
129
+ /* @__PURE__ */ u(a, {
130
+ tag: "section",
131
+ alignItems: "flex-start",
132
+ gap: 2,
133
+ mt: 3,
134
+ inlineCSS: { position: "relative" },
135
+ children: [
136
+ /* @__PURE__ */ l(o, {
137
+ name: "InformationLine",
138
+ color: "etc.orange",
139
+ size: "small",
140
+ inlineCSS: { flexShrink: 0 }
141
+ }),
142
+ /* @__PURE__ */ u(s, {
143
+ tag: "p",
144
+ variant: "b4R",
145
+ color: "etc.orange",
146
+ children: [
147
+ d === "teacher" && "부모님의 직거래 제안이 왔나요? 당황하지 마시고 째깍악어 운영본부에 알려주세요.",
148
+ d === "parent" && "선생님의 직거래 제안이 왔나요? 당황하지 마시고 째깍악어 운영팀에 알려주세요.",
149
+ /* @__PURE__ */ l(s, {
150
+ tag: "span",
151
+ "aria-hidden": !0,
152
+ inlineCSS: {
153
+ display: "inline-block",
154
+ minWidth: 70
155
+ }
156
+ })
157
+ ]
158
+ }),
159
+ /* @__PURE__ */ l(i, {
160
+ variant: "text",
161
+ size: "xSmall",
162
+ color: "secondary",
163
+ endAdornment: /* @__PURE__ */ l(o, { name: "ChevronRightLine" }),
164
+ onClick: m,
165
+ inlineCSS: {
166
+ position: "absolute",
167
+ right: 0,
168
+ bottom: -2
169
+ },
170
+ children: "1:1 문의"
171
+ })
172
+ ]
173
+ })
174
+ ] }),
175
+ /* @__PURE__ */ l(t, { children: /* @__PURE__ */ l(i, {
176
+ size: "large",
177
+ onClick: p,
178
+ children: "이해했어요"
179
+ }) })
180
+ ]
181
+ });
151
182
  }
152
- export {
153
- u as default
154
- };
183
+ //#endregion
184
+ export { d as default };
@@ -1,109 +1,84 @@
1
- import { jsx as e, jsxs as c, Fragment as R } from "react/jsx-runtime";
2
- import { useRef as v, useImperativeHandle as D, useEffect as k } from "react";
3
- import { Flexbox as d, Typography as o, Button as y, Icon as E } from "@dotss/ui";
4
- import I from "@dotss/ui/core/useTheme";
5
- import T from "../../../hooks/useInView/useInView.mjs";
6
- function L({
7
- children: W,
8
- ref: m,
9
- id: _,
10
- systemMessageType: a,
11
- content: p,
12
- ctaType: l,
13
- ctaTargetId: h,
14
- subCtaTargetTable: u,
15
- subCtaTargetId: f,
16
- onAction: i,
17
- onView: n,
18
- inlineCSS: g,
19
- ...S
20
- }) {
21
- const {
22
- palette: { grey: C, pink: b }
23
- } = I(), r = v(null);
24
- D(m, () => r.current);
25
- const { isInView: s } = T(r), t = ["DIRECT_TRADE_WORD_DETECTED"].includes(a), x = () => i == null ? void 0 : i({ systemMessageType: a, ctaType: l, ctaTargetId: h, subCtaTargetTable: u, subCtaTargetId: f });
26
- return k(() => {
27
- s && (n == null || n());
28
- }, [s, n]), /* @__PURE__ */ e(
29
- d,
30
- {
31
- ref: r,
32
- ml: 4,
33
- mr: 4,
34
- pt: 1,
35
- pb: 1,
36
- ...S,
37
- inlineCSS: {
38
- overflowAnchor: "none",
39
- ...g
40
- },
41
- children: /* @__PURE__ */ e(
42
- d,
43
- {
44
- flexDirection: "column",
45
- p: 3,
46
- inlineCSS: {
47
- width: "100%",
48
- backgroundColor: t ? b[10] : C[10],
49
- borderRadius: 8
50
- },
51
- children: /* @__PURE__ */ c(
52
- o,
53
- {
54
- tag: "p",
55
- variant: "b4R",
56
- color: t ? "pink.80" : "grey.60",
57
- inlineCSS: {
58
- position: "relative",
59
- "& > span": {
60
- fontWeight: 700
61
- }
62
- },
63
- children: [
64
- /* @__PURE__ */ e(o, { tag: "span", variant: "h5B", color: t ? "pink.80" : "grey.60", children: "알림" }),
65
- " ",
66
- p,
67
- l && /* @__PURE__ */ c(R, { children: [
68
- /* @__PURE__ */ e(
69
- o,
70
- {
71
- tag: "span",
72
- "aria-hidden": !0,
73
- inlineCSS: {
74
- display: "inline-block",
75
- minWidth: 87
76
- }
77
- }
78
- ),
79
- /* @__PURE__ */ e(
80
- y,
81
- {
82
- variant: "text",
83
- size: "xSmall",
84
- color: "secondary",
85
- endAdornment: /* @__PURE__ */ e(E, { name: "ChevronRightLine" }),
86
- onClick: x,
87
- "aria-haspopup": "dialog",
88
- "aria-controls": "system-message-action",
89
- inlineCSS: {
90
- position: "absolute",
91
- right: 0,
92
- bottom: -2,
93
- fontWeight: 700
94
- },
95
- children: "더 알아보기"
96
- }
97
- )
98
- ] })
99
- ]
100
- }
101
- )
102
- }
103
- )
104
- }
105
- );
1
+ import e from "../../../hooks/useInView/index.mjs";
2
+ import { useEffect as t, useImperativeHandle as n, useRef as r } from "react";
3
+ import { Button as i, Flexbox as a, Icon as o, Typography as s } from "@dotss/ui";
4
+ import c from "@dotss/ui/core/useTheme";
5
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
+ //#region shared/components/ChatKit/SystemMessage/SystemMessage.tsx
7
+ function f({ children: f, ref: p, id: m, systemMessageType: h, content: g, ctaType: _, ctaTargetId: v, subCtaTargetTable: y, subCtaTargetId: b, onAction: x, onView: S, inlineCSS: C, ...w }) {
8
+ let { palette: { grey: T, pink: E } } = c(), D = r(null);
9
+ n(p, () => D.current);
10
+ let { isInView: O } = e(D), k = ["DIRECT_TRADE_WORD_DETECTED"].includes(h), A = () => x?.({
11
+ systemMessageType: h,
12
+ ctaType: _,
13
+ ctaTargetId: v,
14
+ subCtaTargetTable: y,
15
+ subCtaTargetId: b
16
+ });
17
+ return t(() => {
18
+ O && S?.();
19
+ }, [O, S]), /* @__PURE__ */ u(a, {
20
+ ref: D,
21
+ ml: 4,
22
+ mr: 4,
23
+ pt: 1,
24
+ pb: 1,
25
+ ...w,
26
+ inlineCSS: {
27
+ overflowAnchor: "none",
28
+ ...C
29
+ },
30
+ children: /* @__PURE__ */ u(a, {
31
+ flexDirection: "column",
32
+ p: 3,
33
+ inlineCSS: {
34
+ width: "100%",
35
+ backgroundColor: k ? E[10] : T[10],
36
+ borderRadius: 8
37
+ },
38
+ children: /* @__PURE__ */ d(s, {
39
+ tag: "p",
40
+ variant: "b4R",
41
+ color: k ? "pink.80" : "grey.60",
42
+ inlineCSS: {
43
+ position: "relative",
44
+ "& > span": { fontWeight: 700 }
45
+ },
46
+ children: [
47
+ /* @__PURE__ */ u(s, {
48
+ tag: "span",
49
+ variant: "h5B",
50
+ color: k ? "pink.80" : "grey.60",
51
+ children: "알림"
52
+ }),
53
+ " ",
54
+ g,
55
+ _ && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(s, {
56
+ tag: "span",
57
+ "aria-hidden": !0,
58
+ inlineCSS: {
59
+ display: "inline-block",
60
+ minWidth: 87
61
+ }
62
+ }), /* @__PURE__ */ u(i, {
63
+ variant: "text",
64
+ size: "xSmall",
65
+ color: "secondary",
66
+ endAdornment: /* @__PURE__ */ u(o, { name: "ChevronRightLine" }),
67
+ onClick: A,
68
+ "aria-haspopup": "dialog",
69
+ "aria-controls": "system-message-action",
70
+ inlineCSS: {
71
+ position: "absolute",
72
+ right: 0,
73
+ bottom: -2,
74
+ fontWeight: 700
75
+ },
76
+ children: "더 알아보기"
77
+ })] })
78
+ ]
79
+ })
80
+ })
81
+ });
106
82
  }
107
- export {
108
- L as default
109
- };
83
+ //#endregion
84
+ export { f as default };
@@ -1,6 +1,6 @@
1
- function t({ content: e }) {
2
- return `알림, ${e}`;
1
+ //#region shared/components/ChatKit/SystemMessage/SystemMessage.utils.ts
2
+ function e({ content: e }) {
3
+ return `알림, ${e}`;
3
4
  }
4
- export {
5
- t as getSystemMessageLabel
6
- };
5
+ //#endregion
6
+ export { e as getSystemMessageLabel };
@@ -1,8 +1,7 @@
1
- import t from "./SystemMessage.mjs";
2
- import { default as s } from "./(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
3
- import { getSystemMessageLabel as m } from "./SystemMessage.utils.mjs";
4
- export {
5
- s as DirectTradeRiskInfoBottomSheet,
6
- t as default,
7
- m as getSystemMessageLabel
8
- };
1
+ import e from "./SystemMessage.mjs";
2
+ import t from "./(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
3
+ import { getSystemMessageLabel as n } from "./SystemMessage.utils.mjs";
4
+ //#region shared/components/ChatKit/SystemMessage/index.ts
5
+ var r = e;
6
+ //#endregion
7
+ export { t as DirectTradeRiskInfoBottomSheet, r as default, n as getSystemMessageLabel };