@dotss/tictoccroc 0.0.16 → 0.0.18

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 (24) hide show
  1. package/dist/shared/components/ChatKit/BotMessage/BotMessage.d.ts +12 -3
  2. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +31 -29
  3. package/dist/shared/components/ChatKit/BotMessage/index.d.ts +2 -2
  4. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.d.ts +2 -1
  5. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +81 -47
  6. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.d.ts +10 -2
  7. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +25 -23
  8. package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +5 -5
  9. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +1 -1
  10. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +4 -3
  11. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +33 -31
  12. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +1 -1
  13. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +10 -9
  14. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +18 -16
  15. package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +1 -1
  16. package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +95 -86
  17. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +25 -23
  18. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +12 -12
  19. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +26 -33
  20. package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +2 -3
  21. package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +30 -37
  22. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +15 -16
  23. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +36 -43
  24. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
2
- export type BotMessageType = 'MATCHING_SUCCEEDED' | 'TEACHER_INQUIRED' | 'PARENT_CHANGED_OFFER_SCHEDULE' | 'PARENT_CHANGED_MATCHING_SCHEDULE' | 'TEACHER_APPLIED' | 'PARENT_SENT_OFFER' | 'TARGET_MATCHING_SUCCEEDED' | 'APPLICATION_MATCHING_SUCCEEDED' | 'PARENT_REFUSED_APPLICATION' | 'TEACHER_REFUSED_OFFER' | 'PARENT_CANCELED_MATCHING' | 'TEACHER_CANCELED_MATCHING' | 'TEACHER_COMPLETED_CARE' | 'ADMIN_CANCELED_MATCHING';
2
+ export type BotMessageType = 'MATCHING_SUCCEEDED' | 'TEACHER_INQUIRED' | 'PARENT_CHANGED_OFFER_SCHEDULE' | 'PARENT_CHANGED_MATCHING_SCHEDULE' | 'TEACHER_APPLIED' | 'PARENT_SENT_OFFER' | 'KOK_MATCHING_SUCCEEDED' | 'APPLICATION_MATCHING_SUCCEEDED' | 'PARENT_REJECTED_APPLICATION' | 'TEACHER_REFUSED_OFFER' | 'PARENT_CANCELED_MATCHING' | 'TEACHER_CANCELED_MATCHING' | 'TEACHER_COMPLETED_CARE' | 'ADMIN_CANCELED_MATCHING';
3
3
  export type BotMessageCtaType = 'MY_CLASS_CHECK' | 'OFFER_CHECK' | 'CHANGE_INFO_CHECK' | 'MY_APPLICATION_INFO_VIEW' | 'CARE_NOTE_CHECK' | 'TEACHER_SELECTION';
4
+ export type BotMessageSubCtaType = 'MATCHING';
4
5
  export interface BotMessageOffer {
5
6
  careStartDate: string;
6
7
  careStartTime: string;
@@ -15,6 +16,8 @@ export interface BotMessageProps extends Omit<FlexboxProps, 'id' | 'title'> {
15
16
  ctaType?: BotMessageCtaType | null;
16
17
  ctaTargetTable?: string | null;
17
18
  ctaTargetId?: number | null;
19
+ subCtaTargetTable?: BotMessageSubCtaType | null;
20
+ subCtaTargetId?: number | null;
18
21
  mine: boolean;
19
22
  avatarUrl?: string;
20
23
  title: string;
@@ -22,8 +25,14 @@ export interface BotMessageProps extends Omit<FlexboxProps, 'id' | 'title'> {
22
25
  unreadUserCount: number;
23
26
  offer: object | null;
24
27
  regDatetime: string;
25
- onAction?: (botMessageType: BotMessageType, ctaType?: BotMessageCtaType | null, ctaTargetId?: number | null) => void;
28
+ onAction?: (params: {
29
+ botMessageType: BotMessageType;
30
+ ctaType?: BotMessageCtaType | null;
31
+ ctaTargetId?: number | null;
32
+ subCtaTargetTable?: BotMessageSubCtaType | null;
33
+ subCtaTargetId?: number | null;
34
+ }) => void;
26
35
  onView?: () => void;
27
36
  }
28
- declare function BotMessage({ id, botMessageType, ctaType, ctaTargetId, mine, avatarUrl, title, content, unreadUserCount, offer, regDatetime, onAction, onView, inlineCSS, ...props }: BotMessageProps): import("@emotion/react/jsx-runtime").JSX.Element;
37
+ declare function BotMessage({ id, botMessageType, ctaType, ctaTargetId, subCtaTargetTable, subCtaTargetId, mine, avatarUrl, title, content, unreadUserCount, offer, regDatetime, onAction, onView, inlineCSS, ...props }: BotMessageProps): import("@emotion/react/jsx-runtime").JSX.Element;
29
38
  export default BotMessage;
@@ -1,37 +1,39 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { useRef as H, useEffect as M } from "react";
3
- import { Flexbox as n, Typography as e, Button as E } from "@dotss/ui";
4
- import F from "@dotss/ui/core/useTheme";
5
- import L from "dayjs";
6
- import { getClassInfo as $, getCtaButtonText as q } from "./BotMessage.utils.mjs";
7
- import z from "../../Image/Image.mjs";
8
- import G from "../../../hooks/useInView/useInView.mjs";
2
+ import { useRef as E, useEffect as F } from "react";
3
+ import { Flexbox as n, Typography as e, Button as L } from "@dotss/ui";
4
+ import $ from "@dotss/ui/core/useTheme";
5
+ import { getClassInfo as q, getCtaButtonText as z } from "./BotMessage.utils.mjs";
6
+ import G from "../../Image/Image.mjs";
7
+ import J from "../../../hooks/useInView/useInView.mjs";
9
8
  import S from "../../../utils/getCareTypeLabel/getCareTypeLabel.mjs";
10
- function A({
11
- id: J,
9
+ import K from "dayjs";
10
+ function O({
11
+ id: N,
12
12
  botMessageType: y,
13
13
  ctaType: s,
14
14
  ctaTargetId: C,
15
+ subCtaTargetTable: b,
16
+ subCtaTargetId: v,
15
17
  mine: a,
16
18
  avatarUrl: g,
17
- title: b,
19
+ title: T,
18
20
  content: p,
19
21
  unreadUserCount: h,
20
- offer: v,
21
- regDatetime: T,
22
+ offer: R,
23
+ regDatetime: w,
22
24
  onAction: o,
23
25
  onView: l,
24
- inlineCSS: R,
25
- ...w
26
+ inlineCSS: I,
27
+ ...B
26
28
  }) {
27
29
  const {
28
- palette: { brand: I, grey: m, background: B },
30
+ palette: { brand: j, grey: m, background: D },
29
31
  spacing: d
30
- } = F(), f = H(null), { isInView: u } = G(f), x = q(s), i = v, j = [
32
+ } = $(), f = E(null), { isInView: u } = J(f), x = z(s), i = R, k = [
31
33
  S(i == null ? void 0 : i.firstCareType),
32
34
  S(i == null ? void 0 : i.secondCareType)
33
- ].filter(Boolean).filter((k) => k !== "-").join("+"), c = $(i), D = () => o == null ? void 0 : o(y, s, C);
34
- return M(() => {
35
+ ].filter(Boolean).filter((M) => M !== "-").join("+"), c = q(i), H = () => o == null ? void 0 : o({ botMessageType: y, ctaType: s, ctaTargetId: C, subCtaTargetTable: b, subCtaTargetId: v });
36
+ return F(() => {
35
37
  u && (l == null || l());
36
38
  }, [u, l]), /* @__PURE__ */ t(
37
39
  n,
@@ -43,10 +45,10 @@ function A({
43
45
  pl: 4,
44
46
  pr: 4,
45
47
  flexDirection: a ? "row" : "row-reverse",
46
- ...w,
48
+ ...B,
47
49
  inlineCSS: {
48
50
  overflowAnchor: "none",
49
- ...R
51
+ ...I
50
52
  },
51
53
  children: [
52
54
  /* @__PURE__ */ r(e, { visuallyHidden: !0, children: "안내" }),
@@ -66,7 +68,7 @@ function A({
66
68
  variant: "c5B",
67
69
  "aria-hidden": !0,
68
70
  inlineCSS: {
69
- color: I.primary.text
71
+ color: j.primary.text
70
72
  },
71
73
  children: h
72
74
  }
@@ -81,7 +83,7 @@ function A({
81
83
  inlineCSS: {
82
84
  whiteSpace: "nowrap"
83
85
  },
84
- children: L(T).format("A h:mm")
86
+ children: K(w).format("A h:mm")
85
87
  }
86
88
  )
87
89
  ]
@@ -102,7 +104,7 @@ function A({
102
104
  },
103
105
  children: [
104
106
  g && /* @__PURE__ */ r(
105
- z,
107
+ G,
106
108
  {
107
109
  src: g,
108
110
  width: 32,
@@ -112,7 +114,7 @@ function A({
112
114
  }
113
115
  ),
114
116
  /* @__PURE__ */ t(n, { flexDirection: "column", children: [
115
- /* @__PURE__ */ r(e, { tag: "p", variant: "h4B", children: b }),
117
+ /* @__PURE__ */ r(e, { tag: "p", variant: "h4B", children: T }),
116
118
  p && /* @__PURE__ */ r(
117
119
  e,
118
120
  {
@@ -132,7 +134,7 @@ function A({
132
134
  flexDirection: "column",
133
135
  inlineCSS: {
134
136
  borderRadius: d.content(2),
135
- backgroundColor: B.primary
137
+ backgroundColor: D.primary
136
138
  },
137
139
  children: [
138
140
  /* @__PURE__ */ t(e, { tag: "dl", children: [
@@ -145,16 +147,16 @@ function A({
145
147
  ] }),
146
148
  /* @__PURE__ */ t(e, { tag: "dl", children: [
147
149
  /* @__PURE__ */ r(e, { tag: "dt", visuallyHidden: !0, children: "돌봄 유형" }),
148
- /* @__PURE__ */ r(e, { tag: "dd", variant: "b4R", color: "grey.70", children: j })
150
+ /* @__PURE__ */ r(e, { tag: "dd", variant: "b4R", color: "grey.70", children: k })
149
151
  ] })
150
152
  ]
151
153
  }
152
154
  ),
153
155
  x && /* @__PURE__ */ r(
154
- E,
156
+ L,
155
157
  {
156
158
  color: "secondary",
157
- onClick: D,
159
+ onClick: H,
158
160
  inlineCSS: {
159
161
  marginTop: d.content(2)
160
162
  },
@@ -170,5 +172,5 @@ function A({
170
172
  );
171
173
  }
172
174
  export {
173
- A as default
175
+ O as default
174
176
  };
@@ -1,4 +1,4 @@
1
- import { default as BotMessage, BotMessageCtaType, BotMessageOffer, BotMessageProps, BotMessageType } from './BotMessage';
1
+ import { default as BotMessage, BotMessageCtaType, BotMessageOffer, BotMessageProps, BotMessageSubCtaType, BotMessageType } from './BotMessage';
2
2
  export { getClassInfo, getCtaButtonText, getBotMessageLabel } from './BotMessage.utils';
3
- export type { BotMessageProps, BotMessageCtaType, BotMessageType, BotMessageOffer };
3
+ export type { BotMessageProps, BotMessageCtaType, BotMessageType, BotMessageOffer, BotMessageSubCtaType };
4
4
  export default BotMessage;
@@ -1,7 +1,8 @@
1
1
  export interface DirectTradeRiskInfoBottomSheetProps {
2
+ target: 'parent' | 'teacher';
2
3
  open: boolean;
3
4
  onClose: () => void;
4
5
  onInquire: () => void;
5
6
  }
6
- declare function DirectTradeRiskInfoBottomSheet({ open, onClose, onInquire }: DirectTradeRiskInfoBottomSheetProps): import("@emotion/react/jsx-runtime").JSX.Element;
7
+ declare function DirectTradeRiskInfoBottomSheet({ target, open, onClose, onInquire }: DirectTradeRiskInfoBottomSheetProps): import("@emotion/react/jsx-runtime").JSX.Element;
7
8
  export default DirectTradeRiskInfoBottomSheet;
@@ -1,23 +1,29 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { BottomSheet as h, BottomSheetTitle as m, BottomSheetContent as s, Typography as t, Flexbox as o, Icon as a, Button as l, BottomSheetAction as p } from "@dotss/ui";
3
- import S from "@dotss/ui/core/useTheme";
4
- function x({
5
- open: c,
6
- onClose: i,
7
- onInquire: d
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
8
9
  }) {
9
10
  const {
10
11
  palette: { background: g },
11
12
  spacing: r
12
- } = S();
13
- return /* @__PURE__ */ n(h, { id: "system-message-action", open: c, onClose: i, children: [
14
- /* @__PURE__ */ e(m, { onClose: i, children: "직거래는 왜 하면 안되나요?" }),
15
- /* @__PURE__ */ n(s, { children: [
16
- /* @__PURE__ */ n(t, { tag: "p", variant: "h3R", textAlign: "center", children: [
17
- /* @__PURE__ */ e(t, { tag: "strong", variant: "h3B", color: "etc.red", children: "직거래" }),
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: "직거래" }),
18
19
  ", 선생님에게 더 불리한 선택이에요."
19
20
  ] }),
20
- /* @__PURE__ */ e(
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(
21
27
  o,
22
28
  {
23
29
  tag: "aside",
@@ -31,34 +37,61 @@ function x({
31
37
  borderRadius: 12,
32
38
  backgroundColor: g.primary
33
39
  },
34
- children: /* @__PURE__ */ n(
35
- o,
36
- {
37
- tag: "ul",
38
- flexDirection: "column",
39
- gap: 1,
40
- inlineCSS: {
41
- listStyle: "none",
42
- padding: 0,
43
- paddingLeft: r.content(2),
44
- "& li:before": {
45
- content: '"•"',
46
- display: "inline-block",
47
- maxWidth: 4,
48
- fontSize: 18,
49
- marginRight: r.content(2)
50
- }
51
- },
52
- children: [
53
- /* @__PURE__ */ e(t, { tag: "li", variant: "b4R", color: "grey.70", children: "부모님과의 갈등, 수업 취소, 아이 안전사고 발생 시 째깍악어로부터 어떠한 도움도 받을 수 없으며" }),
54
- /* @__PURE__ */ e(t, { tag: "li", variant: "b4R", color: "grey.70", children: "직거래가 적발될 경우 경고 없이 활동이 어렵고 바로 계약이 해지돼요" }),
55
- /* @__PURE__ */ e(t, { tag: "li", variant: "b4R", color: "grey.70", children: "또한, 영업 방해로 간주되어 법적 조치가 진행될 있어요" })
56
- ]
57
- }
58
- )
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
+ ]
59
92
  }
60
93
  ),
61
- /* @__PURE__ */ n(
94
+ /* @__PURE__ */ i(
62
95
  o,
63
96
  {
64
97
  tag: "section",
@@ -78,10 +111,11 @@ function x({
78
111
  inlineCSS: { flexShrink: 0 }
79
112
  }
80
113
  ),
81
- /* @__PURE__ */ n(t, { tag: "p", variant: "b4R", color: "etc.orange", children: [
82
- "부모님의 직거래 제안이 왔나요? 당황하지 마시고 째깍악어 운영본부에 알려주세요.",
114
+ /* @__PURE__ */ i(n, { tag: "p", variant: "b4R", color: "etc.orange", children: [
115
+ t === "teacher" && "부모님의 직거래 제안이 왔나요? 당황하지 마시고 째깍악어 운영본부에 알려주세요.",
116
+ t === "parent" && "선생님의 직거래 제안이 왔나요? 당황하지 마시고 째깍악어 운영팀에 알려주세요.",
83
117
  /* @__PURE__ */ e(
84
- t,
118
+ n,
85
119
  {
86
120
  tag: "span",
87
121
  "aria-hidden": !0,
@@ -93,13 +127,13 @@ function x({
93
127
  )
94
128
  ] }),
95
129
  /* @__PURE__ */ e(
96
- l,
130
+ c,
97
131
  {
98
132
  variant: "text",
99
133
  size: "xSmall",
100
134
  color: "secondary",
101
135
  endAdornment: /* @__PURE__ */ e(a, { name: "ChevronRightLine" }),
102
- onClick: d,
136
+ onClick: h,
103
137
  inlineCSS: {
104
138
  position: "absolute",
105
139
  right: 0,
@@ -112,9 +146,9 @@ function x({
112
146
  }
113
147
  )
114
148
  ] }),
115
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(l, { size: "large", onClick: i, children: "이해했어요" }) })
149
+ /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(c, { size: "large", onClick: l, children: "이해했어요" }) })
116
150
  ] });
117
151
  }
118
152
  export {
119
- x as default
153
+ u as default
120
154
  };
@@ -7,9 +7,17 @@ export interface SystemMessageProps extends Omit<FlexboxProps, 'id'> {
7
7
  ctaType?: SystemMessageCtaType | null;
8
8
  ctaTargetTable?: string | null;
9
9
  ctaTargetId?: number | null;
10
+ subCtaTargetTable?: string | null;
11
+ subCtaTargetId?: number | null;
10
12
  content: string;
11
- onAction?: (systemMessageType: SystemMessageType, ctaType?: SystemMessageCtaType | null, ctaTargetId?: number | null) => void;
13
+ onAction?: (params: {
14
+ systemMessageType: SystemMessageType;
15
+ ctaType?: SystemMessageCtaType | null;
16
+ ctaTargetId?: number | null;
17
+ subCtaTargetTable?: string | null;
18
+ subCtaTargetId?: number | null;
19
+ }) => void;
12
20
  onView?: () => void;
13
21
  }
14
- declare function SystemMessage({ children, ref, id, systemMessageType, content, ctaType, ctaTargetId, onAction, onView, inlineCSS, ...props }: SystemMessageProps): import("@emotion/react/jsx-runtime").JSX.Element;
22
+ declare function SystemMessage({ children, ref, id, systemMessageType, content, ctaType, ctaTargetId, subCtaTargetTable, subCtaTargetId, onAction, onView, inlineCSS, ...props }: SystemMessageProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
23
  export default SystemMessage;
@@ -1,27 +1,29 @@
1
- import { jsx as e, jsxs as c, Fragment as b } from "react/jsx-runtime";
2
- import { useRef as x, useImperativeHandle as R, useEffect as v } from "react";
3
- import { Flexbox as d, Typography as o, Button as D, Icon as k } from "@dotss/ui";
4
- import y from "@dotss/ui/core/useTheme";
5
- import E from "../../../hooks/useInView/useInView.mjs";
6
- function z({
7
- children: I,
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
8
  ref: m,
9
- id: T,
9
+ id: _,
10
10
  systemMessageType: a,
11
11
  content: p,
12
12
  ctaType: l,
13
13
  ctaTargetId: h,
14
+ subCtaTargetTable: u,
15
+ subCtaTargetId: f,
14
16
  onAction: i,
15
17
  onView: n,
16
- inlineCSS: u,
17
- ...f
18
+ inlineCSS: g,
19
+ ...S
18
20
  }) {
19
21
  const {
20
- palette: { grey: g, pink: S }
21
- } = y(), r = x(null);
22
- R(m, () => r.current);
23
- const { isInView: s } = E(r), t = ["DIRECT_TRADE_WORD_DETECTED"].includes(a), C = () => i == null ? void 0 : i(a, l, h);
24
- return v(() => {
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(() => {
25
27
  s && (n == null || n());
26
28
  }, [s, n]), /* @__PURE__ */ e(
27
29
  d,
@@ -31,10 +33,10 @@ function z({
31
33
  mr: 4,
32
34
  pt: 1,
33
35
  pb: 1,
34
- ...f,
36
+ ...S,
35
37
  inlineCSS: {
36
38
  overflowAnchor: "none",
37
- ...u
39
+ ...g
38
40
  },
39
41
  children: /* @__PURE__ */ e(
40
42
  d,
@@ -43,7 +45,7 @@ function z({
43
45
  p: 3,
44
46
  inlineCSS: {
45
47
  width: "100%",
46
- backgroundColor: t ? S[10] : g[10],
48
+ backgroundColor: t ? b[10] : C[10],
47
49
  borderRadius: 8
48
50
  },
49
51
  children: /* @__PURE__ */ c(
@@ -62,7 +64,7 @@ function z({
62
64
  /* @__PURE__ */ e(o, { tag: "span", variant: "h5B", color: t ? "pink.80" : "grey.60", children: "알림" }),
63
65
  " ",
64
66
  p,
65
- l && /* @__PURE__ */ c(b, { children: [
67
+ l && /* @__PURE__ */ c(R, { children: [
66
68
  /* @__PURE__ */ e(
67
69
  o,
68
70
  {
@@ -75,13 +77,13 @@ function z({
75
77
  }
76
78
  ),
77
79
  /* @__PURE__ */ e(
78
- D,
80
+ y,
79
81
  {
80
82
  variant: "text",
81
83
  size: "xSmall",
82
84
  color: "secondary",
83
- endAdornment: /* @__PURE__ */ e(k, { name: "ChevronRightLine" }),
84
- onClick: C,
85
+ endAdornment: /* @__PURE__ */ e(E, { name: "ChevronRightLine" }),
86
+ onClick: x,
85
87
  "aria-haspopup": "dialog",
86
88
  "aria-controls": "system-message-action",
87
89
  inlineCSS: {
@@ -103,5 +105,5 @@ function z({
103
105
  );
104
106
  }
105
107
  export {
106
- z as default
108
+ L as default
107
109
  };
@@ -1,10 +1,10 @@
1
- import { jsxs as r, Fragment as e, jsx as n } from "react/jsx-runtime";
2
- import { Flexbox as i, Skeleton as o } from "@dotss/ui";
1
+ import { jsxs as n, Fragment as i, jsx as r } from "react/jsx-runtime";
2
+ import { Flexbox as e, Skeleton as o } from "@dotss/ui";
3
3
  import t from "../../../../shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs";
4
4
  function c() {
5
- return /* @__PURE__ */ r(e, { children: [
6
- /* @__PURE__ */ n(t, {}),
7
- /* @__PURE__ */ n(i, { inlineCSS: { width: "100%" }, children: /* @__PURE__ */ n(o, { height: 100, borderRadius: 12, inlineCSS: { width: "100%" } }) })
5
+ return /* @__PURE__ */ n(i, { children: [
6
+ /* @__PURE__ */ r(t, {}),
7
+ /* @__PURE__ */ r(e, { "aria-busy": !0, inlineCSS: { width: "100%", cursor: "wait" }, children: /* @__PURE__ */ r(o, { height: 100, borderRadius: 12, inlineCSS: { width: "100%" } }) })
8
8
  ] });
9
9
  }
10
10
  export {
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, SyntheticEvent } from 'react';
2
- import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
3
2
  import { ImageProps } from '../../../../shared/components/Image';
3
+ import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
4
4
  import { BannerProps } from '..';
5
5
  export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title'> {
6
6
  id: string;
@@ -3,7 +3,7 @@ import d from "@dotss/ui/core/useTheme";
3
3
  import r from "@dotss/ui/Flexbox";
4
4
  import e from "@dotss/ui/Skeleton";
5
5
  import h from "../../../../shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs";
6
- function s() {
6
+ function S() {
7
7
  const { spacing: t } = d();
8
8
  return /* @__PURE__ */ n(l, { children: [
9
9
  /* @__PURE__ */ i(h, {}),
@@ -12,7 +12,8 @@ function s() {
12
12
  {
13
13
  tag: "section",
14
14
  flexDirection: "column",
15
- inlineCSS: { width: "100%", overflow: "hidden" },
15
+ "aria-busy": !0,
16
+ inlineCSS: { width: "100%", overflow: "hidden", cursor: "wait" },
16
17
  children: [
17
18
  /* @__PURE__ */ i(
18
19
  e,
@@ -63,5 +64,5 @@ function s() {
63
64
  ] });
64
65
  }
65
66
  export {
66
- s as default
67
+ S as default
67
68
  };
@@ -1,54 +1,56 @@
1
- import { jsx as e, Fragment as f, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as r, Fragment as f, jsxs as n } from "react/jsx-runtime";
2
2
  import b from "@dotss/ui/core/useTheme";
3
- import c from "@dotss/ui/Flexbox";
4
- import l from "@dotss/ui/Typography";
3
+ import l from "@dotss/ui/Flexbox";
4
+ import c from "@dotss/ui/Typography";
5
5
  import C from "../../../../shared/components/Carousel/Carousel.mjs";
6
6
  import S from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
7
- import x from "../../../../shared/components/Image/Image.mjs";
7
+ import w from "../../../../shared/components/Image/Image.mjs";
8
8
  import "@dotss/ui";
9
- function I({
10
- id: d,
11
- title: m,
12
- banners: p,
13
- onClickBanner: r,
9
+ function D({
10
+ id: p,
11
+ title: d,
12
+ banners: m,
13
+ onClickBanner: t,
14
14
  imageProps: s,
15
- ...u
15
+ ...h
16
16
  }) {
17
- const { spacing: i } = b(), g = (o) => (t) => {
18
- r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
17
+ const { spacing: a } = b(), u = (i) => (e) => {
18
+ t && typeof t == "function" && (e.stopPropagation(), e.preventDefault(), t(i, e));
19
19
  };
20
- return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ n(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...u, children: [
21
- /* @__PURE__ */ e(
22
- l,
20
+ return /* @__PURE__ */ r(f, { children: /* @__PURE__ */ n(l, { flexDirection: "column", inlineCSS: { width: "100%" }, ...h, children: [
21
+ /* @__PURE__ */ r(
22
+ c,
23
23
  {
24
- id: `banner-account-carousel1-${d}`,
24
+ id: `banner-account-carousel1-${p}`,
25
25
  variant: "h2B",
26
26
  inlineCSS: {
27
- paddingLeft: i.content(4),
28
- paddingRight: i.content(4),
29
- marginBottom: i.content(3)
27
+ whiteSpace: "pre-wrap",
28
+ wordBreak: "keep-all",
29
+ paddingLeft: a.content(4),
30
+ paddingRight: a.content(4),
31
+ marginBottom: a.content(3)
30
32
  },
31
- children: m
33
+ children: d
32
34
  }
33
35
  ),
34
- /* @__PURE__ */ e(C, { rowCount: 2, step: 1, spacing: 5, children: p.map(({ id: o, title: t, url: a, image: h }) => /* @__PURE__ */ e(S, { children: /* @__PURE__ */ n(
35
- c,
36
+ /* @__PURE__ */ r(C, { rowCount: 2, step: 1, spacing: 5, children: m.map(({ id: i, title: e, url: o, image: g }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ n(
37
+ l,
36
38
  {
37
39
  tag: "a",
38
- href: a,
40
+ href: o,
39
41
  alignItems: "center",
40
42
  gap: 4,
41
43
  draggable: !1,
42
- onClick: g(a),
44
+ onClick: u(o),
43
45
  inlineCSS: { width: 264 },
44
46
  children: [
45
- /* @__PURE__ */ e(
46
- x,
47
+ /* @__PURE__ */ r(
48
+ w,
47
49
  {
48
- src: h || "",
50
+ src: g || "",
49
51
  width: 140,
50
52
  height: 98,
51
- alt: `${t} 이미지`,
53
+ alt: `${e} 이미지`,
52
54
  "aria-hidden": !0,
53
55
  draggable: !1,
54
56
  borderRadius: 12,
@@ -58,12 +60,12 @@ function I({
58
60
  ...s
59
61
  }
60
62
  ),
61
- /* @__PURE__ */ e(l, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
63
+ /* @__PURE__ */ r(c, { tag: "p", variant: "b2M", lineClamp: 2, children: e })
62
64
  ]
63
65
  }
64
- ) }, `tictoccroc-carousel1-account-${o}`)) })
66
+ ) }, `tictoccroc-carousel1-account-${i}`)) })
65
67
  ] }) });
66
68
  }
67
69
  export {
68
- I as default
70
+ D as default
69
71
  };