@tipp/ui 1.6.25 → 1.6.26
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/app/index.cjs +429 -425
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +8 -8
- package/dist/app/platform/coach-question-list.cjs +86 -82
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +4 -4
- package/dist/app/platform/contents-card.cjs +70 -66
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +4 -4
- package/dist/app/platform/edit-coaching-time.cjs +158 -154
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +6 -6
- package/dist/app/platform/edit-service-type.cjs +145 -141
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +6 -6
- package/dist/app/platform/goal-manage-card-edit.cjs +154 -150
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +5 -5
- package/dist/app/platform/goal-manage-card-read.cjs +128 -124
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +4 -4
- package/dist/app/platform/on-offline-radio-card.cjs +134 -130
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +5 -5
- package/dist/app/platform/report-card.cjs +89 -85
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +4 -4
- package/dist/app/platform/reservation-card.cjs +191 -187
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +5 -5
- package/dist/app/platform/session-card.cjs +213 -209
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +8 -8
- package/dist/app/platform/session-review-simple-read.cjs +89 -85
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +120 -116
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +97 -93
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +100 -96
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +86 -82
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +4 -4
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +96 -92
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +4 -4
- package/dist/app/platform/userInfos/utils.cjs +88 -84
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +4 -4
- package/dist/atoms/dialog.cjs +1 -1
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/ellipsis-tooltip.cjs +101 -42
- package/dist/atoms/ellipsis-tooltip.cjs.map +1 -1
- package/dist/atoms/ellipsis-tooltip.js +4 -3
- package/dist/atoms/index.cjs +169 -145
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +5 -1
- package/dist/atoms/index.d.ts +5 -1
- package/dist/atoms/index.js +11 -5
- package/dist/atoms/scroll-area.cjs +2 -1
- package/dist/atoms/scroll-area.cjs.map +1 -1
- package/dist/atoms/scroll-area.d.cts +10 -1
- package/dist/atoms/scroll-area.d.ts +10 -1
- package/dist/atoms/scroll-area.js +1 -1
- package/dist/atoms/tooltip.cjs +67 -3
- package/dist/atoms/tooltip.cjs.map +1 -1
- package/dist/atoms/tooltip.d.cts +9 -1
- package/dist/atoms/tooltip.d.ts +9 -1
- package/dist/atoms/tooltip.js +9 -3
- package/dist/chunk-2YJ3EG6A.js +164 -0
- package/dist/chunk-2YJ3EG6A.js.map +1 -0
- package/dist/chunk-3IOLG7AJ.js +145 -0
- package/dist/chunk-3IOLG7AJ.js.map +1 -0
- package/dist/chunk-4DTD3FXF.js +47 -0
- package/dist/chunk-4DTD3FXF.js.map +1 -0
- package/dist/chunk-4Z5NYYOE.js +145 -0
- package/dist/chunk-4Z5NYYOE.js.map +1 -0
- package/dist/chunk-5VDTWYNQ.js +357 -0
- package/dist/chunk-5VDTWYNQ.js.map +1 -0
- package/dist/chunk-7KMPLHBV.js +357 -0
- package/dist/chunk-7KMPLHBV.js.map +1 -0
- package/dist/chunk-AFQMLTCH.js +54 -0
- package/dist/chunk-AFQMLTCH.js.map +1 -0
- package/dist/chunk-AQG6J4WX.js +357 -0
- package/dist/chunk-AQG6J4WX.js.map +1 -0
- package/dist/chunk-AW7YHNJD.js +174 -0
- package/dist/chunk-AW7YHNJD.js.map +1 -0
- package/dist/chunk-CIO2WR2Q.js +145 -0
- package/dist/chunk-CIO2WR2Q.js.map +1 -0
- package/dist/chunk-ED3ABG7K.js +54 -0
- package/dist/chunk-ED3ABG7K.js.map +1 -0
- package/dist/chunk-ERDNB5SX.js +30 -0
- package/dist/chunk-ERDNB5SX.js.map +1 -0
- package/dist/chunk-EREBMLDQ.js +58 -0
- package/dist/chunk-EREBMLDQ.js.map +1 -0
- package/dist/chunk-HN2C35F6.js +70 -0
- package/dist/chunk-HN2C35F6.js.map +1 -0
- package/dist/chunk-J5RZURAR.js +106 -0
- package/dist/chunk-J5RZURAR.js.map +1 -0
- package/dist/chunk-JRPA2S7O.js +54 -0
- package/dist/chunk-JRPA2S7O.js.map +1 -0
- package/dist/chunk-KT4BIOJJ.js +54 -0
- package/dist/chunk-KT4BIOJJ.js.map +1 -0
- package/dist/chunk-KWVNYSQW.js +10 -0
- package/dist/chunk-KWVNYSQW.js.map +1 -0
- package/dist/chunk-OT4OMHJV.js +58 -0
- package/dist/chunk-OT4OMHJV.js.map +1 -0
- package/dist/chunk-OYYJEZVP.js +84 -0
- package/dist/chunk-OYYJEZVP.js.map +1 -0
- package/dist/chunk-P442X52N.js +284 -0
- package/dist/chunk-P442X52N.js.map +1 -0
- package/dist/chunk-RYORYWPY.js +164 -0
- package/dist/chunk-RYORYWPY.js.map +1 -0
- package/dist/chunk-TBEOWECF.js +47 -0
- package/dist/chunk-TBEOWECF.js.map +1 -0
- package/dist/chunk-VJ7EA7ZF.js +54 -0
- package/dist/chunk-VJ7EA7ZF.js.map +1 -0
- package/dist/chunk-X5L3SBB7.js +174 -0
- package/dist/chunk-X5L3SBB7.js.map +1 -0
- package/dist/index.cjs +666 -642
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +15 -9
- package/dist/molecules/date-picker/date-picker-button.cjs +100 -96
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +4 -4
- package/dist/molecules/expand-table/index.cjs +138 -134
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/expand-table/row.cjs +95 -91
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +4 -4
- package/dist/molecules/index.cjs +319 -314
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +5 -5
- package/dist/molecules/navigation.cjs +86 -82
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +4 -4
- package/dist/molecules/radio-button-card.cjs +90 -86
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +4 -4
- package/dist/molecules/tag-selector.cjs +102 -97
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +5 -5
- package/dist/molecules/time-select.cjs +88 -84
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +4 -4
- package/package.json +5 -3
- package/src/atoms/dialog.tsx +1 -1
- package/src/atoms/ellipsis-tooltip.tsx +39 -20
- package/src/atoms/scroll-area.tsx +8 -1
- package/src/atoms/tooltip.tsx +72 -1
package/dist/index.cjs
CHANGED
|
@@ -178,7 +178,7 @@ __export(src_exports, {
|
|
|
178
178
|
RocketIcon: () => import_react_icons2.RocketIcon,
|
|
179
179
|
Root: () => Root6,
|
|
180
180
|
RowsIcon: () => import_react_icons2.RowsIcon,
|
|
181
|
-
ScrollArea: () =>
|
|
181
|
+
ScrollArea: () => ScrollArea,
|
|
182
182
|
Section: () => import_themes36.Section,
|
|
183
183
|
SegmentedControl: () => import_themes37.SegmentedControl,
|
|
184
184
|
Select: () => Select,
|
|
@@ -190,7 +190,7 @@ __export(src_exports, {
|
|
|
190
190
|
Skeleton: () => import_themes40.Skeleton,
|
|
191
191
|
SpeakerLoudIcon: () => import_react_icons2.SpeakerLoudIcon,
|
|
192
192
|
SpeakerOffIcon: () => import_react_icons2.SpeakerOffIcon,
|
|
193
|
-
Spinner: () =>
|
|
193
|
+
Spinner: () => import_themes48.Spinner,
|
|
194
194
|
Stepper: () => Stepper,
|
|
195
195
|
Strong: () => import_themes41.Strong,
|
|
196
196
|
Switch: () => import_themes42.Switch,
|
|
@@ -204,7 +204,10 @@ __export(src_exports, {
|
|
|
204
204
|
TimeSelect: () => TimeSelect,
|
|
205
205
|
TimerIcon: () => import_react_icons2.TimerIcon,
|
|
206
206
|
ToastContainer: () => ToastContainer,
|
|
207
|
-
Tooltip: () =>
|
|
207
|
+
Tooltip: () => Tooltip,
|
|
208
|
+
TooltipContent: () => TooltipContent,
|
|
209
|
+
TooltipProvider: () => TooltipProvider,
|
|
210
|
+
TooltipTrigger: () => TooltipTrigger,
|
|
208
211
|
TrashIcon: () => import_react_icons2.TrashIcon,
|
|
209
212
|
TriangleArrowDownIcon: () => TriangleArrowDownIcon,
|
|
210
213
|
TriangleArrowUpIcon: () => TriangleArrowUpIcon,
|
|
@@ -223,7 +226,7 @@ __export(src_exports, {
|
|
|
223
226
|
toast: () => import_react_toastify2.toast,
|
|
224
227
|
uiProps: () => uiProps,
|
|
225
228
|
usePortalContainer: () => usePortalContainer,
|
|
226
|
-
useThemeContext: () =>
|
|
229
|
+
useThemeContext: () => import_themes52.useThemeContext
|
|
227
230
|
});
|
|
228
231
|
module.exports = __toCommonJS(src_exports);
|
|
229
232
|
|
|
@@ -617,7 +620,7 @@ function Content2(props) {
|
|
|
617
620
|
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes18.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_icons.Cross1Icon, {}) }) })
|
|
618
621
|
] }),
|
|
619
622
|
children,
|
|
620
|
-
buttons ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
623
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Flex, { gap: "3", justify: "end", mt: "3", width: "100%", children: buttons }) : null
|
|
621
624
|
]
|
|
622
625
|
})
|
|
623
626
|
) }) }) });
|
|
@@ -731,6 +734,7 @@ var import_themes34 = require("@radix-ui/themes");
|
|
|
731
734
|
|
|
732
735
|
// src/atoms/scroll-area.tsx
|
|
733
736
|
var import_themes35 = require("@radix-ui/themes");
|
|
737
|
+
var ScrollArea = import_themes35.ScrollArea;
|
|
734
738
|
|
|
735
739
|
// src/atoms/section.tsx
|
|
736
740
|
var import_themes36 = require("@radix-ui/themes");
|
|
@@ -886,46 +890,75 @@ Root4.displayName = "TextField.Root";
|
|
|
886
890
|
var TextField = { Root: Root4, Slot: import_themes47.TextField.Slot };
|
|
887
891
|
|
|
888
892
|
// src/atoms/tooltip.tsx
|
|
889
|
-
var import_themes48 = require("@radix-ui/themes");
|
|
890
|
-
|
|
891
|
-
// src/atoms/collapse.tsx
|
|
892
893
|
var import_react15 = require("react");
|
|
894
|
+
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
895
|
+
var import_react_popover = require("@radix-ui/react-popover");
|
|
893
896
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
897
|
+
var TouchContext = (0, import_react15.createContext)(void 0);
|
|
898
|
+
var useTouch = () => (0, import_react15.useContext)(TouchContext);
|
|
899
|
+
function TooltipProvider(_a) {
|
|
900
|
+
var _b = _a, {
|
|
901
|
+
children
|
|
902
|
+
} = _b, props = __objRest(_b, [
|
|
903
|
+
"children"
|
|
904
|
+
]);
|
|
905
|
+
const [isTouch, setIsTouch] = (0, import_react15.useState)(void 0);
|
|
906
|
+
(0, import_react15.useEffect)(() => {
|
|
907
|
+
setIsTouch(window.matchMedia("(pointer: coarse)").matches);
|
|
908
|
+
}, []);
|
|
909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TouchContext.Provider, { value: isTouch, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.TooltipProvider, __spreadProps(__spreadValues({}, props), { children })) });
|
|
910
|
+
}
|
|
911
|
+
function Tooltip(props) {
|
|
912
|
+
const isTouch = useTouch();
|
|
913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipProvider, { children: isTouch ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_popover.Popover, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.Tooltip, __spreadValues({}, props)) });
|
|
914
|
+
}
|
|
915
|
+
function TooltipTrigger(props) {
|
|
916
|
+
const isTouch = useTouch();
|
|
917
|
+
return isTouch ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_popover.PopoverTrigger, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.TooltipTrigger, __spreadValues({}, props));
|
|
918
|
+
}
|
|
919
|
+
function TooltipContent(props) {
|
|
920
|
+
const isTouch = useTouch();
|
|
921
|
+
return isTouch ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_popover.PopoverContent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.TooltipContent, __spreadValues({}, props));
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// src/atoms/collapse.tsx
|
|
925
|
+
var import_react16 = require("react");
|
|
926
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
894
927
|
function Collapse(props) {
|
|
895
928
|
const { children, closedHeight = "0" } = props;
|
|
896
|
-
const [open, setOpen] = (0,
|
|
929
|
+
const [open, setOpen] = (0, import_react16.useState)(() => {
|
|
897
930
|
return props.open || props.defaultOpen || false;
|
|
898
931
|
});
|
|
899
|
-
(0,
|
|
932
|
+
(0, import_react16.useEffect)(() => {
|
|
900
933
|
if (props.open === void 0)
|
|
901
934
|
return;
|
|
902
935
|
setOpen(props.open);
|
|
903
936
|
}, [props.open]);
|
|
904
|
-
const ref = (0,
|
|
905
|
-
(0,
|
|
937
|
+
const ref = (0, import_react16.useRef)(null);
|
|
938
|
+
(0, import_react16.useEffect)(() => {
|
|
906
939
|
if (!ref.current)
|
|
907
940
|
return;
|
|
908
941
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
909
942
|
}, [closedHeight, open]);
|
|
910
|
-
return /* @__PURE__ */ (0,
|
|
943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "tipp-collapse", ref, children });
|
|
911
944
|
}
|
|
912
945
|
|
|
913
946
|
// src/atoms/spinner.tsx
|
|
914
|
-
var
|
|
947
|
+
var import_themes48 = require("@radix-ui/themes");
|
|
915
948
|
|
|
916
949
|
// src/atoms/pagination.tsx
|
|
917
|
-
var
|
|
950
|
+
var import_react17 = require("react");
|
|
918
951
|
|
|
919
952
|
// src/icon.ts
|
|
920
953
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
921
954
|
|
|
922
955
|
// src/icons/phone-ring.tsx
|
|
923
956
|
var React6 = __toESM(require("react"), 1);
|
|
924
|
-
var
|
|
957
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
925
958
|
var PhoneRingIcon = React6.forwardRef(
|
|
926
959
|
(_a, forwardedRef) => {
|
|
927
960
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
928
|
-
return /* @__PURE__ */ (0,
|
|
961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
929
962
|
"svg",
|
|
930
963
|
__spreadProps(__spreadValues({
|
|
931
964
|
fill: "none",
|
|
@@ -936,14 +969,14 @@ var PhoneRingIcon = React6.forwardRef(
|
|
|
936
969
|
}, props), {
|
|
937
970
|
ref: forwardedRef,
|
|
938
971
|
children: [
|
|
939
|
-
/* @__PURE__ */ (0,
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
940
973
|
"path",
|
|
941
974
|
{
|
|
942
975
|
d: "M7.7207 8.94603C6.98877 8.2141 6.41082 7.3865 5.98686 6.50348C5.95039 6.42753 5.93216 6.38955 5.91815 6.34149C5.86837 6.17072 5.90413 5.96102 6.00769 5.81639C6.03683 5.77569 6.07165 5.74087 6.14128 5.67124C6.35424 5.45828 6.46072 5.3518 6.53033 5.24473C6.79287 4.84094 6.79287 4.32038 6.53033 3.91658C6.46072 3.80951 6.35424 3.70303 6.14128 3.49007L6.02257 3.37137C5.69885 3.04764 5.53699 2.88578 5.36315 2.79786C5.01743 2.62299 4.60914 2.62299 4.26342 2.79786C4.08958 2.88578 3.92772 3.04764 3.604 3.37137L3.50798 3.46739C3.18536 3.79 3.02405 3.95131 2.90086 4.17062C2.76415 4.41398 2.66586 4.79194 2.66669 5.07106C2.66744 5.32261 2.71624 5.49452 2.81382 5.83835C3.33828 7.68611 4.32781 9.42969 5.78242 10.8843C7.23704 12.3389 8.98062 13.3285 10.8284 13.8529C11.1722 13.9505 11.3441 13.9993 11.5957 14C11.8748 14.0009 12.2528 13.9026 12.4961 13.7659C12.7154 13.6427 12.8767 13.4814 13.1993 13.1588L13.2954 13.0627C13.6191 12.739 13.7809 12.5771 13.8689 12.4033C14.0437 12.0576 14.0437 11.6493 13.8689 11.3036C13.7809 11.1297 13.6191 10.9679 13.2954 10.6442L13.1767 10.5255C12.9637 10.3125 12.8572 10.206 12.7501 10.1364C12.3464 9.87386 11.8258 9.87386 11.422 10.1364C11.3149 10.206 11.2084 10.3125 10.9955 10.5255C10.9259 10.5951 10.891 10.6299 10.8503 10.659C10.7057 10.7626 10.496 10.7984 10.3252 10.7486C10.2772 10.7346 10.2392 10.7163 10.1632 10.6799C9.28023 10.2559 8.45262 9.67796 7.7207 8.94603Z",
|
|
943
976
|
fill: color
|
|
944
977
|
}
|
|
945
978
|
),
|
|
946
|
-
/* @__PURE__ */ (0,
|
|
979
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
947
980
|
"path",
|
|
948
981
|
{
|
|
949
982
|
d: "M9.33335 4.22765C10.4699 4.62936 11.3707 5.53016 11.7724 6.66671M9.97701 2.33337C11.7004 2.93456 13.0655 4.2997 13.6667 6.02305M7.7207 8.94603C6.98877 8.2141 6.41082 7.3865 5.98686 6.50348C5.95039 6.42753 5.93216 6.38955 5.91815 6.34149C5.86837 6.17072 5.90413 5.96102 6.00769 5.81639C6.03683 5.77569 6.07165 5.74087 6.14128 5.67124C6.35424 5.45828 6.46072 5.3518 6.53033 5.24473C6.79287 4.84094 6.79287 4.32038 6.53033 3.91658C6.46072 3.80951 6.35424 3.70303 6.14128 3.49007L6.02257 3.37137C5.69885 3.04764 5.53699 2.88578 5.36315 2.79786C5.01743 2.62299 4.60914 2.62299 4.26342 2.79786C4.08958 2.88578 3.92772 3.04764 3.604 3.37137L3.50798 3.46739C3.18536 3.79 3.02405 3.95131 2.90086 4.17062C2.76415 4.41398 2.66586 4.79194 2.66669 5.07106C2.66744 5.32261 2.71624 5.49452 2.81382 5.83835C3.33828 7.68611 4.32781 9.42969 5.78242 10.8843C7.23704 12.3389 8.98062 13.3285 10.8284 13.8529C11.1722 13.9505 11.3441 13.9993 11.5957 14C11.8748 14.0009 12.2528 13.9026 12.4961 13.7659C12.7154 13.6427 12.8767 13.4814 13.1993 13.1588L13.2954 13.0627C13.6191 12.739 13.7809 12.5771 13.8689 12.4033C14.0437 12.0576 14.0437 11.6493 13.8689 11.3036C13.7809 11.1297 13.6191 10.9679 13.2954 10.6442L13.1767 10.5255C12.9637 10.3125 12.8572 10.206 12.7501 10.1364C12.3464 9.87386 11.8258 9.87386 11.422 10.1364C11.3149 10.206 11.2084 10.3125 10.9955 10.5255C10.9259 10.5951 10.891 10.6299 10.8503 10.659C10.7057 10.7626 10.496 10.7984 10.3252 10.7486C10.2772 10.7346 10.2392 10.7163 10.1632 10.6799C9.28023 10.2559 8.45262 9.67796 7.7207 8.94603Z",
|
|
@@ -961,11 +994,11 @@ PhoneRingIcon.displayName = "ArrowUpIcon";
|
|
|
961
994
|
|
|
962
995
|
// src/icons/up.tsx
|
|
963
996
|
var React7 = __toESM(require("react"), 1);
|
|
964
|
-
var
|
|
997
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
965
998
|
var TriangleArrowUpIcon = React7.forwardRef(
|
|
966
999
|
(_a, forwardedRef) => {
|
|
967
1000
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
968
|
-
return /* @__PURE__ */ (0,
|
|
1001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
969
1002
|
"svg",
|
|
970
1003
|
__spreadProps(__spreadValues({
|
|
971
1004
|
fill: "none",
|
|
@@ -975,7 +1008,7 @@ var TriangleArrowUpIcon = React7.forwardRef(
|
|
|
975
1008
|
xmlns: "http://www.w3.org/2000/svg"
|
|
976
1009
|
}, props), {
|
|
977
1010
|
ref: forwardedRef,
|
|
978
|
-
children: /* @__PURE__ */ (0,
|
|
1011
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
979
1012
|
"path",
|
|
980
1013
|
{
|
|
981
1014
|
d: "M0.891555 6.1875L7.10845 6.1875C7.80261 6.1875 8.1771 5.37328 7.72534 4.84623L4.6169 1.21971C4.29263 0.841403 3.70737 0.841403 3.3831 1.21971L0.274659 4.84623C-0.177095 5.37328 0.197393 6.1875 0.891555 6.1875Z",
|
|
@@ -990,11 +1023,11 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
|
|
|
990
1023
|
|
|
991
1024
|
// src/icons/down.tsx
|
|
992
1025
|
var React8 = __toESM(require("react"), 1);
|
|
993
|
-
var
|
|
1026
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
994
1027
|
var TriangleArrowDownIcon = React8.forwardRef(
|
|
995
1028
|
(_a, forwardedRef) => {
|
|
996
1029
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
997
|
-
return /* @__PURE__ */ (0,
|
|
1030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
998
1031
|
"svg",
|
|
999
1032
|
__spreadProps(__spreadValues({
|
|
1000
1033
|
fill: "none",
|
|
@@ -1004,7 +1037,7 @@ var TriangleArrowDownIcon = React8.forwardRef(
|
|
|
1004
1037
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1005
1038
|
}, props), {
|
|
1006
1039
|
ref: forwardedRef,
|
|
1007
|
-
children: /* @__PURE__ */ (0,
|
|
1040
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1008
1041
|
"path",
|
|
1009
1042
|
{
|
|
1010
1043
|
d: "M7.10844 0.8125H0.891554C0.197392 0.8125 -0.177096 1.62672 0.274659 2.15377L3.3831 5.78029C3.70737 6.1586 4.29263 6.1586 4.6169 5.78029L7.72534 2.15377C8.1771 1.62672 7.80261 0.8125 7.10844 0.8125Z",
|
|
@@ -1019,11 +1052,11 @@ TriangleArrowDownIcon.displayName = "ArrowDownIcon";
|
|
|
1019
1052
|
|
|
1020
1053
|
// src/icons/mic.tsx
|
|
1021
1054
|
var React9 = __toESM(require("react"), 1);
|
|
1022
|
-
var
|
|
1055
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1023
1056
|
var MicIcon = React9.forwardRef(
|
|
1024
1057
|
(_a, forwardedRef) => {
|
|
1025
1058
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1026
|
-
return /* @__PURE__ */ (0,
|
|
1059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1027
1060
|
"svg",
|
|
1028
1061
|
__spreadProps(__spreadValues({
|
|
1029
1062
|
fill: "none",
|
|
@@ -1034,7 +1067,7 @@ var MicIcon = React9.forwardRef(
|
|
|
1034
1067
|
}, props), {
|
|
1035
1068
|
ref: forwardedRef,
|
|
1036
1069
|
children: [
|
|
1037
|
-
/* @__PURE__ */ (0,
|
|
1070
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1038
1071
|
"path",
|
|
1039
1072
|
{
|
|
1040
1073
|
clipRule: "evenodd",
|
|
@@ -1043,7 +1076,7 @@ var MicIcon = React9.forwardRef(
|
|
|
1043
1076
|
fillRule: "evenodd"
|
|
1044
1077
|
}
|
|
1045
1078
|
),
|
|
1046
|
-
/* @__PURE__ */ (0,
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1047
1080
|
"path",
|
|
1048
1081
|
{
|
|
1049
1082
|
d: "M1.30707 7.51038C1.30707 8.87401 2.61826 12.2831 5.90497 12.2831M5.90497 12.2831V15.4999M5.90497 12.2831C8.8595 11.9148 10.0284 10.8351 10.5203 7.51038M5.90497 15.4999H4.05182M5.90497 15.4999H7.81056",
|
|
@@ -1061,11 +1094,11 @@ MicIcon.displayName = "MicIcon";
|
|
|
1061
1094
|
|
|
1062
1095
|
// src/icons/camera.tsx
|
|
1063
1096
|
var React10 = __toESM(require("react"), 1);
|
|
1064
|
-
var
|
|
1097
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1065
1098
|
var CameraIcon = React10.forwardRef(
|
|
1066
1099
|
(_a, forwardedRef) => {
|
|
1067
1100
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1068
|
-
return /* @__PURE__ */ (0,
|
|
1101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1069
1102
|
"svg",
|
|
1070
1103
|
__spreadProps(__spreadValues({
|
|
1071
1104
|
fill: "none",
|
|
@@ -1075,7 +1108,7 @@ var CameraIcon = React10.forwardRef(
|
|
|
1075
1108
|
width: "16",
|
|
1076
1109
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1077
1110
|
}, props), {
|
|
1078
|
-
children: /* @__PURE__ */ (0,
|
|
1111
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1079
1112
|
"path",
|
|
1080
1113
|
{
|
|
1081
1114
|
d: "M1.41176 2C0.470588 2 0 2.46222 0 3.38667C0 4.31111 0 11.2444 0 12.1689C0 13.0933 0.470588 13.5556 0.941176 13.5556C1.41176 13.5556 9.88235 13.5556 10.8235 13.5556C11.7647 13.5556 11.7647 13.0933 11.7647 12.1689C11.7647 11.5595 11.7647 10.9502 11.7647 10.6056C11.7647 10.4478 11.8926 10.32 12.0504 10.32H12.1689C12.2126 10.32 12.2557 10.33 12.2949 10.3493L14.1176 11.2444L15.5883 11.9667C15.7782 12.06 16 11.9218 16 11.7103V3.86745C16 3.6507 15.768 3.51238 15.577 3.61479C14.6546 4.10924 12.5222 5.23556 12.2353 5.23556C12.1353 5.23556 12.0821 5.23556 12.0502 5.23556C11.8924 5.23556 11.7647 5.10789 11.7647 4.95009C11.7647 4.51892 11.7647 3.71688 11.7647 3.38667C11.7647 2.92444 11.2941 2 10.3529 2C9.41177 2 2.35294 2 1.41176 2Z",
|
|
@@ -1090,11 +1123,11 @@ CameraIcon.displayName = "CameraIcon";
|
|
|
1090
1123
|
|
|
1091
1124
|
// src/icons/camera-disabled.tsx
|
|
1092
1125
|
var React11 = __toESM(require("react"), 1);
|
|
1093
|
-
var
|
|
1126
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1094
1127
|
var CameraDisabledIcon = React11.forwardRef(
|
|
1095
1128
|
(_a, forwardedRef) => {
|
|
1096
1129
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1097
|
-
return /* @__PURE__ */ (0,
|
|
1130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1098
1131
|
"svg",
|
|
1099
1132
|
__spreadProps(__spreadValues({
|
|
1100
1133
|
fill: "none",
|
|
@@ -1104,7 +1137,7 @@ var CameraDisabledIcon = React11.forwardRef(
|
|
|
1104
1137
|
width: "16",
|
|
1105
1138
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1106
1139
|
}, props), {
|
|
1107
|
-
children: /* @__PURE__ */ (0,
|
|
1140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1108
1141
|
"path",
|
|
1109
1142
|
{
|
|
1110
1143
|
clipRule: "evenodd",
|
|
@@ -1121,11 +1154,11 @@ CameraDisabledIcon.displayName = "VideoDisabledIcon";
|
|
|
1121
1154
|
|
|
1122
1155
|
// src/icons/end-call.tsx
|
|
1123
1156
|
var React12 = __toESM(require("react"), 1);
|
|
1124
|
-
var
|
|
1157
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1125
1158
|
var EndCallIcon = React12.forwardRef(
|
|
1126
1159
|
(_a, forwardedRef) => {
|
|
1127
1160
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1128
|
-
return /* @__PURE__ */ (0,
|
|
1161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1129
1162
|
"svg",
|
|
1130
1163
|
__spreadProps(__spreadValues({
|
|
1131
1164
|
fill: "none",
|
|
@@ -1136,14 +1169,14 @@ var EndCallIcon = React12.forwardRef(
|
|
|
1136
1169
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1137
1170
|
}, props), {
|
|
1138
1171
|
children: [
|
|
1139
|
-
/* @__PURE__ */ (0,
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1140
1173
|
"path",
|
|
1141
1174
|
{
|
|
1142
1175
|
d: "M8 6.66667C8.90629 6.66667 9.77647 6.83841 10.5856 7.15419C10.6552 7.18136 10.69 7.19494 10.7285 7.21836C10.865 7.30159 10.9727 7.47044 10.9981 7.64117C11.0053 7.68921 11.0053 7.73711 11.0053 7.83291C11.0053 8.1259 11.0053 8.27239 11.0285 8.39394C11.1159 8.8523 11.4382 9.2104 11.8507 9.30757C11.9601 9.33333 12.092 9.33333 12.3557 9.33333H12.5026C12.9035 9.33333 13.1039 9.33333 13.266 9.27424C13.5883 9.1567 13.841 8.87584 13.9468 8.51773C14 8.33766 14 8.11498 14 7.6696V7.53749C14 7.09364 14 6.87172 13.9405 6.63611C13.8745 6.37466 13.7013 6.04705 13.528 5.85561C13.3718 5.68309 13.2352 5.5984 12.9619 5.42901C11.4932 4.51871 9.80113 4 8 4C6.19887 4 4.50678 4.51871 3.03812 5.42901C2.76484 5.5984 2.6282 5.68309 2.472 5.85561C2.29868 6.04705 2.12553 6.37466 2.0595 6.63611C2 6.87172 2 7.09364 2 7.53749V7.6696C2 8.11498 2 8.33766 2.05319 8.51773C2.15897 8.87584 2.41174 9.1567 2.73404 9.27424C2.8961 9.33333 3.09652 9.33333 3.49736 9.33333L3.64434 9.33333C3.90803 9.33333 4.03987 9.33333 4.14926 9.30757C4.56179 9.2104 4.88408 8.8523 4.97153 8.39394C4.99472 8.27239 4.99472 8.1259 4.99472 7.83291C4.99472 7.73711 4.99472 7.68921 5.00187 7.64117C5.0273 7.47044 5.13499 7.30159 5.27154 7.21836C5.30996 7.19494 5.34476 7.18136 5.41436 7.15419C6.22353 6.83841 7.09371 6.66667 8 6.66667Z",
|
|
1143
1176
|
fill: color
|
|
1144
1177
|
}
|
|
1145
1178
|
),
|
|
1146
|
-
/* @__PURE__ */ (0,
|
|
1179
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1147
1180
|
"path",
|
|
1148
1181
|
{
|
|
1149
1182
|
d: "M2 12H14M8 6.66667C8.90629 6.66667 9.77647 6.83841 10.5856 7.15419C10.6552 7.18136 10.69 7.19494 10.7285 7.21836C10.865 7.30159 10.9727 7.47044 10.9981 7.64117C11.0053 7.68921 11.0053 7.73711 11.0053 7.83291C11.0053 8.1259 11.0053 8.27239 11.0285 8.39394C11.1159 8.8523 11.4382 9.2104 11.8507 9.30757C11.9601 9.33333 12.092 9.33333 12.3557 9.33333H12.5026C12.9035 9.33333 13.1039 9.33333 13.266 9.27424C13.5883 9.1567 13.841 8.87584 13.9468 8.51773C14 8.33766 14 8.11498 14 7.6696V7.53749C14 7.09364 14 6.87172 13.9405 6.63611C13.8745 6.37466 13.7013 6.04705 13.528 5.85561C13.3718 5.68309 13.2352 5.5984 12.9619 5.42901C11.4932 4.51871 9.80113 4 8 4C6.19887 4 4.50678 4.51871 3.03812 5.42901C2.76484 5.5984 2.6282 5.68309 2.472 5.85561C2.29868 6.04705 2.12553 6.37466 2.0595 6.63611C2 6.87172 2 7.09364 2 7.53749V7.6696C2 8.11498 2 8.33766 2.05319 8.51773C2.15897 8.87584 2.41174 9.1567 2.73404 9.27424C2.8961 9.33333 3.09652 9.33333 3.49736 9.33333L3.64434 9.33333C3.90803 9.33333 4.03987 9.33333 4.14926 9.30757C4.56179 9.2104 4.88408 8.8523 4.97153 8.39394C4.99472 8.27239 4.99472 8.1259 4.99472 7.83291C4.99472 7.73711 4.99472 7.68921 5.00187 7.64117C5.0273 7.47044 5.13499 7.30159 5.27154 7.21836C5.30996 7.19494 5.34476 7.18136 5.41436 7.15419C6.22353 6.83841 7.09371 6.66667 8 6.66667Z",
|
|
@@ -1160,11 +1193,11 @@ var EndCallIcon = React12.forwardRef(
|
|
|
1160
1193
|
EndCallIcon.displayName = "EndCallIcon";
|
|
1161
1194
|
|
|
1162
1195
|
// src/atoms/pagination.tsx
|
|
1163
|
-
var
|
|
1196
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1164
1197
|
function Pagination(props) {
|
|
1165
1198
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
1166
|
-
const [page, setPage] = (0,
|
|
1167
|
-
const visibleItems = (0,
|
|
1199
|
+
const [page, setPage] = (0, import_react17.useState)(() => props.page || props.defaultPage || 1);
|
|
1200
|
+
const visibleItems = (0, import_react17.useMemo)(() => {
|
|
1168
1201
|
let start = Math.max(1, page - siblingCount);
|
|
1169
1202
|
let end = Math.min(count, page + siblingCount);
|
|
1170
1203
|
if (page - siblingCount <= 0 && end < count) {
|
|
@@ -1174,37 +1207,37 @@ function Pagination(props) {
|
|
|
1174
1207
|
}
|
|
1175
1208
|
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
1176
1209
|
}, [count, page, siblingCount]);
|
|
1177
|
-
(0,
|
|
1210
|
+
(0, import_react17.useEffect)(() => {
|
|
1178
1211
|
onChange == null ? void 0 : onChange(page);
|
|
1179
1212
|
}, [onChange, page]);
|
|
1180
|
-
(0,
|
|
1213
|
+
(0, import_react17.useEffect)(() => {
|
|
1181
1214
|
if (props.page) {
|
|
1182
1215
|
setPage(props.page);
|
|
1183
1216
|
}
|
|
1184
1217
|
}, [props.page]);
|
|
1185
|
-
const prev = (0,
|
|
1218
|
+
const prev = (0, import_react17.useMemo)(() => {
|
|
1186
1219
|
const p = page - 1;
|
|
1187
1220
|
return p < 1 ? void 0 : p;
|
|
1188
1221
|
}, [page]);
|
|
1189
|
-
const next = (0,
|
|
1222
|
+
const next = (0, import_react17.useMemo)(() => {
|
|
1190
1223
|
const n = page + 1;
|
|
1191
1224
|
return n > count ? void 0 : n;
|
|
1192
1225
|
}, [count, page]);
|
|
1193
|
-
const onClickPrev = (0,
|
|
1226
|
+
const onClickPrev = (0, import_react17.useCallback)(() => {
|
|
1194
1227
|
prev && setPage(prev);
|
|
1195
1228
|
}, [prev]);
|
|
1196
|
-
const onClickNext = (0,
|
|
1229
|
+
const onClickNext = (0, import_react17.useCallback)(() => {
|
|
1197
1230
|
next && setPage(next);
|
|
1198
1231
|
}, [next]);
|
|
1199
|
-
const doublePrev = (0,
|
|
1232
|
+
const doublePrev = (0, import_react17.useMemo)(() => {
|
|
1200
1233
|
if (!visibleItems.length)
|
|
1201
1234
|
return;
|
|
1202
1235
|
return Math.max(0, visibleItems[0] - 1);
|
|
1203
1236
|
}, [visibleItems]);
|
|
1204
|
-
const onClickDoublePrev = (0,
|
|
1237
|
+
const onClickDoublePrev = (0, import_react17.useCallback)(() => {
|
|
1205
1238
|
doublePrev && setPage(doublePrev);
|
|
1206
1239
|
}, [doublePrev]);
|
|
1207
|
-
const doubleNext = (0,
|
|
1240
|
+
const doubleNext = (0, import_react17.useMemo)(() => {
|
|
1208
1241
|
if (!visibleItems.length)
|
|
1209
1242
|
return;
|
|
1210
1243
|
const n = visibleItems[visibleItems.length - 1] + 1;
|
|
@@ -1212,7 +1245,7 @@ function Pagination(props) {
|
|
|
1212
1245
|
return;
|
|
1213
1246
|
return Math.min(count, n);
|
|
1214
1247
|
}, [count, visibleItems]);
|
|
1215
|
-
const onClickDoubleNext = (0,
|
|
1248
|
+
const onClickDoubleNext = (0, import_react17.useCallback)(() => {
|
|
1216
1249
|
doubleNext && setPage(doubleNext);
|
|
1217
1250
|
}, [doubleNext]);
|
|
1218
1251
|
const iconSize = {
|
|
@@ -1224,19 +1257,19 @@ function Pagination(props) {
|
|
|
1224
1257
|
size: "3",
|
|
1225
1258
|
style: { borderRadius: "50%" }
|
|
1226
1259
|
};
|
|
1227
|
-
return /* @__PURE__ */ (0,
|
|
1228
|
-
/* @__PURE__ */ (0,
|
|
1260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes22.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
1261
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1229
1262
|
import_themes18.IconButton,
|
|
1230
1263
|
__spreadProps(__spreadValues({
|
|
1231
1264
|
disabled: !doublePrev,
|
|
1232
1265
|
onClick: onClickDoublePrev
|
|
1233
1266
|
}, moveButtonProps), {
|
|
1234
|
-
children: /* @__PURE__ */ (0,
|
|
1267
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
1235
1268
|
})
|
|
1236
1269
|
),
|
|
1237
|
-
/* @__PURE__ */ (0,
|
|
1238
|
-
/* @__PURE__ */ (0,
|
|
1239
|
-
return /* @__PURE__ */ (0,
|
|
1270
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
1271
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes22.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
1272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1240
1273
|
"button",
|
|
1241
1274
|
{
|
|
1242
1275
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -1244,46 +1277,46 @@ function Pagination(props) {
|
|
|
1244
1277
|
setPage(item);
|
|
1245
1278
|
},
|
|
1246
1279
|
type: "button",
|
|
1247
|
-
children: /* @__PURE__ */ (0,
|
|
1280
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { variant: "body", children: item })
|
|
1248
1281
|
},
|
|
1249
1282
|
item
|
|
1250
1283
|
);
|
|
1251
1284
|
}) }),
|
|
1252
|
-
/* @__PURE__ */ (0,
|
|
1253
|
-
/* @__PURE__ */ (0,
|
|
1285
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
1286
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1254
1287
|
import_themes18.IconButton,
|
|
1255
1288
|
__spreadProps(__spreadValues({
|
|
1256
1289
|
disabled: !doubleNext,
|
|
1257
1290
|
onClick: onClickDoubleNext
|
|
1258
1291
|
}, moveButtonProps), {
|
|
1259
|
-
children: /* @__PURE__ */ (0,
|
|
1292
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
1260
1293
|
})
|
|
1261
1294
|
)
|
|
1262
1295
|
] });
|
|
1263
1296
|
}
|
|
1264
1297
|
|
|
1265
1298
|
// src/atoms/field-error-wrapper.tsx
|
|
1266
|
-
var
|
|
1299
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1267
1300
|
function FieldErrorWrapper({
|
|
1268
1301
|
children,
|
|
1269
1302
|
error
|
|
1270
1303
|
}) {
|
|
1271
|
-
return /* @__PURE__ */ (0,
|
|
1304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
|
|
1272
1305
|
children,
|
|
1273
|
-
error ? /* @__PURE__ */ (0,
|
|
1306
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
|
|
1274
1307
|
] });
|
|
1275
1308
|
}
|
|
1276
1309
|
|
|
1277
1310
|
// src/atoms/ellipsis-tooltip.tsx
|
|
1278
|
-
var
|
|
1279
|
-
var
|
|
1311
|
+
var import_react18 = require("react");
|
|
1312
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1280
1313
|
function EllipsisTooltip(props) {
|
|
1281
1314
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
1282
|
-
const ref = (0,
|
|
1283
|
-
const [tooltipDisplay, setTooltipDisplay] = (0,
|
|
1315
|
+
const ref = (0, import_react18.useRef)(null);
|
|
1316
|
+
const [tooltipDisplay, setTooltipDisplay] = (0, import_react18.useState)(
|
|
1284
1317
|
"none"
|
|
1285
1318
|
);
|
|
1286
|
-
(0,
|
|
1319
|
+
(0, import_react18.useEffect)(() => {
|
|
1287
1320
|
if (ref.current) {
|
|
1288
1321
|
const typo = ref.current;
|
|
1289
1322
|
const mouseOver = () => {
|
|
@@ -1298,35 +1331,23 @@ function EllipsisTooltip(props) {
|
|
|
1298
1331
|
ref.current.addEventListener("mouseleave", mouseOut);
|
|
1299
1332
|
}
|
|
1300
1333
|
}, [children]);
|
|
1301
|
-
return /* @__PURE__ */ (0,
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
style: __spreadValues({
|
|
1306
|
-
width: "100%",
|
|
1307
|
-
textOverflow: "ellipsis",
|
|
1308
|
-
overflow: "hidden",
|
|
1309
|
-
WebkitLineClamp: lineClamp,
|
|
1310
|
-
display: "-webkit-box",
|
|
1311
|
-
WebkitBoxOrient: "vertical",
|
|
1312
|
-
wordBreak: "break-word"
|
|
1313
|
-
}, style),
|
|
1314
|
-
children
|
|
1315
|
-
})
|
|
1316
|
-
) });
|
|
1334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Tooltip, { children: [
|
|
1335
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { children: "?" }) }),
|
|
1336
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipContent, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { children: "\uD234\uD301 \uB0B4\uC6A9" }) })
|
|
1337
|
+
] }) });
|
|
1317
1338
|
}
|
|
1318
1339
|
|
|
1319
1340
|
// src/atoms/drawer.tsx
|
|
1320
1341
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1321
|
-
var
|
|
1342
|
+
var import_themes49 = require("@radix-ui/themes");
|
|
1322
1343
|
|
|
1323
1344
|
// src/icons/close-panel-arrow.tsx
|
|
1324
1345
|
var React15 = __toESM(require("react"), 1);
|
|
1325
|
-
var
|
|
1346
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1326
1347
|
var ClosePanelArrowIcon = React15.forwardRef(
|
|
1327
1348
|
(_a, forwardedRef) => {
|
|
1328
1349
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1329
|
-
return /* @__PURE__ */ (0,
|
|
1350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1330
1351
|
"svg",
|
|
1331
1352
|
__spreadProps(__spreadValues({
|
|
1332
1353
|
fill: "none",
|
|
@@ -1337,7 +1358,7 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1337
1358
|
}, props), {
|
|
1338
1359
|
ref: forwardedRef,
|
|
1339
1360
|
children: [
|
|
1340
|
-
/* @__PURE__ */ (0,
|
|
1361
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1341
1362
|
"path",
|
|
1342
1363
|
{
|
|
1343
1364
|
clipRule: "evenodd",
|
|
@@ -1346,7 +1367,7 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1346
1367
|
fillRule: "evenodd"
|
|
1347
1368
|
}
|
|
1348
1369
|
),
|
|
1349
|
-
/* @__PURE__ */ (0,
|
|
1370
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1350
1371
|
"path",
|
|
1351
1372
|
{
|
|
1352
1373
|
clipRule: "evenodd",
|
|
@@ -1363,9 +1384,9 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1363
1384
|
ClosePanelArrowIcon.displayName = "ArrowDownIcon";
|
|
1364
1385
|
|
|
1365
1386
|
// src/atoms/drawer.tsx
|
|
1366
|
-
var
|
|
1387
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1367
1388
|
function Root6(props) {
|
|
1368
|
-
return /* @__PURE__ */ (0,
|
|
1389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Dialog2.Root, __spreadValues({}, props));
|
|
1369
1390
|
}
|
|
1370
1391
|
var preventDefault2 = (e) => {
|
|
1371
1392
|
e.preventDefault();
|
|
@@ -1376,16 +1397,16 @@ function Content6(props) {
|
|
|
1376
1397
|
const desktopHeaderSize = 64;
|
|
1377
1398
|
const separatorSize = 1;
|
|
1378
1399
|
const { drawerContainerRef } = usePortalContainer();
|
|
1379
|
-
return /* @__PURE__ */ (0,
|
|
1380
|
-
/* @__PURE__ */ (0,
|
|
1381
|
-
/* @__PURE__ */ (0,
|
|
1400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Dialog2.Portal, { container: drawerContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes49.Theme, { children: [
|
|
1401
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
|
|
1402
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1382
1403
|
Dialog2.Content,
|
|
1383
1404
|
__spreadProps(__spreadValues({
|
|
1384
1405
|
className: `DrawerContent ${position} ${className || ""}`,
|
|
1385
1406
|
onPointerDownOutside: preventDefault2
|
|
1386
1407
|
}, rest), {
|
|
1387
|
-
children: /* @__PURE__ */ (0,
|
|
1388
|
-
|
|
1408
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1409
|
+
import_themes49.Grid,
|
|
1389
1410
|
{
|
|
1390
1411
|
height: "100%",
|
|
1391
1412
|
overflow: "hidden",
|
|
@@ -1394,8 +1415,8 @@ function Content6(props) {
|
|
|
1394
1415
|
sm: `${desktopHeaderSize}px ${separatorSize}px calc(100% - ${desktopHeaderSize + separatorSize}px)`
|
|
1395
1416
|
},
|
|
1396
1417
|
children: [
|
|
1397
|
-
/* @__PURE__ */ (0,
|
|
1398
|
-
/* @__PURE__ */ (0,
|
|
1418
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes22.Flex, { align: "center", px: { initial: "4", md: "6" }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes18.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ClosePanelArrowIcon, {}) }) }) }),
|
|
1419
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes39.Separator, { orientation: "horizontal", size: "4" }),
|
|
1399
1420
|
children
|
|
1400
1421
|
]
|
|
1401
1422
|
}
|
|
@@ -1405,7 +1426,7 @@ function Content6(props) {
|
|
|
1405
1426
|
] }) });
|
|
1406
1427
|
}
|
|
1407
1428
|
function Trigger5(props) {
|
|
1408
|
-
return /* @__PURE__ */ (0,
|
|
1429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
|
|
1409
1430
|
}
|
|
1410
1431
|
var Drawer = {
|
|
1411
1432
|
Root: Dialog2.Root,
|
|
@@ -1420,12 +1441,12 @@ var Drawer = {
|
|
|
1420
1441
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
1421
1442
|
var import_react_toastify = require("react-toastify");
|
|
1422
1443
|
var import_react_toastify2 = require("react-toastify");
|
|
1423
|
-
var
|
|
1444
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1424
1445
|
function CloseButton() {
|
|
1425
1446
|
return null;
|
|
1426
1447
|
}
|
|
1427
1448
|
function ToastContainer(props) {
|
|
1428
|
-
return /* @__PURE__ */ (0,
|
|
1449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1429
1450
|
import_react_toastify.ToastContainer,
|
|
1430
1451
|
__spreadValues({
|
|
1431
1452
|
autoClose: 5e3,
|
|
@@ -1433,7 +1454,7 @@ function ToastContainer(props) {
|
|
|
1433
1454
|
closeOnClick: true,
|
|
1434
1455
|
draggable: true,
|
|
1435
1456
|
hideProgressBar: true,
|
|
1436
|
-
icon: /* @__PURE__ */ (0,
|
|
1457
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons3.InfoCircledIcon, {}),
|
|
1437
1458
|
newestOnTop: true,
|
|
1438
1459
|
pauseOnFocusLoss: true,
|
|
1439
1460
|
pauseOnHover: true,
|
|
@@ -1446,12 +1467,12 @@ function ToastContainer(props) {
|
|
|
1446
1467
|
|
|
1447
1468
|
// src/molecules/form/form.tsx
|
|
1448
1469
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
1449
|
-
var
|
|
1450
|
-
var
|
|
1451
|
-
var Root8 = (0,
|
|
1470
|
+
var import_react19 = require("react");
|
|
1471
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1472
|
+
var Root8 = (0, import_react19.forwardRef)(
|
|
1452
1473
|
(_a, ref) => {
|
|
1453
1474
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1454
|
-
return /* @__PURE__ */ (0,
|
|
1475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1455
1476
|
RadixForm.Root,
|
|
1456
1477
|
__spreadProps(__spreadValues({}, rest), {
|
|
1457
1478
|
className: `FormRoot ${className || ""}`,
|
|
@@ -1462,33 +1483,33 @@ var Root8 = (0, import_react18.forwardRef)(
|
|
|
1462
1483
|
}
|
|
1463
1484
|
);
|
|
1464
1485
|
Root8.displayName = "FORM_ROOT";
|
|
1465
|
-
var FieldContext = (0,
|
|
1486
|
+
var FieldContext = (0, import_react19.createContext)({
|
|
1466
1487
|
name: ""
|
|
1467
1488
|
});
|
|
1468
|
-
var Field2 = (0,
|
|
1489
|
+
var Field2 = (0, import_react19.forwardRef)(
|
|
1469
1490
|
(_a, ref) => {
|
|
1470
1491
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1471
|
-
return /* @__PURE__ */ (0,
|
|
1492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1472
1493
|
RadixForm.Field,
|
|
1473
1494
|
__spreadProps(__spreadValues({}, rest), {
|
|
1474
1495
|
className: `FormField ${className || ""}`,
|
|
1475
1496
|
ref,
|
|
1476
|
-
children: /* @__PURE__ */ (0,
|
|
1497
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FieldContext.Provider, { value: rest, children })
|
|
1477
1498
|
})
|
|
1478
1499
|
);
|
|
1479
1500
|
}
|
|
1480
1501
|
);
|
|
1481
1502
|
Field2.displayName = "FORM_FIELD";
|
|
1482
1503
|
function HeadingLabel(props) {
|
|
1483
|
-
return /* @__PURE__ */ (0,
|
|
1504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
1484
1505
|
}
|
|
1485
1506
|
function CaptionLabel(props) {
|
|
1486
|
-
return /* @__PURE__ */ (0,
|
|
1507
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
1487
1508
|
}
|
|
1488
|
-
var Label2 = (0,
|
|
1509
|
+
var Label2 = (0, import_react19.forwardRef)(
|
|
1489
1510
|
(_a, ref) => {
|
|
1490
1511
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
1491
|
-
const Comp = (0,
|
|
1512
|
+
const Comp = (0, import_react19.useMemo)(() => {
|
|
1492
1513
|
switch (variant) {
|
|
1493
1514
|
case "title":
|
|
1494
1515
|
return HeadingLabel;
|
|
@@ -1499,42 +1520,42 @@ var Label2 = (0, import_react18.forwardRef)(
|
|
|
1499
1520
|
return Typo;
|
|
1500
1521
|
}
|
|
1501
1522
|
}, [variant]);
|
|
1502
|
-
const fieldProps = (0,
|
|
1503
|
-
return /* @__PURE__ */ (0,
|
|
1523
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1504
1525
|
RadixForm.Label,
|
|
1505
1526
|
__spreadProps(__spreadValues({}, rest), {
|
|
1506
1527
|
asChild: true,
|
|
1507
1528
|
className: `FormLabel ${className || ""}`,
|
|
1508
1529
|
ref,
|
|
1509
|
-
children: /* @__PURE__ */ (0,
|
|
1530
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Comp, { children: [
|
|
1510
1531
|
children,
|
|
1511
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
1532
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
1512
1533
|
] })
|
|
1513
1534
|
})
|
|
1514
1535
|
);
|
|
1515
1536
|
}
|
|
1516
1537
|
);
|
|
1517
1538
|
Label2.displayName = "FORM_Label";
|
|
1518
|
-
var Message2 = (0,
|
|
1539
|
+
var Message2 = (0, import_react19.forwardRef)(
|
|
1519
1540
|
(_a, ref) => {
|
|
1520
1541
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1521
|
-
return /* @__PURE__ */ (0,
|
|
1542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1522
1543
|
RadixForm.Message,
|
|
1523
1544
|
__spreadProps(__spreadValues({}, rest), {
|
|
1524
1545
|
asChild: true,
|
|
1525
1546
|
className: `FormMessage ${className || ""}`,
|
|
1526
1547
|
ref,
|
|
1527
|
-
children: /* @__PURE__ */ (0,
|
|
1548
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { color: "red", children })
|
|
1528
1549
|
})
|
|
1529
1550
|
);
|
|
1530
1551
|
}
|
|
1531
1552
|
);
|
|
1532
1553
|
Message2.displayName = "FORM_Message";
|
|
1533
|
-
var Control2 = (0,
|
|
1554
|
+
var Control2 = (0, import_react19.forwardRef)(
|
|
1534
1555
|
(_a, ref) => {
|
|
1535
1556
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
1536
|
-
const fieldProps = (0,
|
|
1537
|
-
return /* @__PURE__ */ (0,
|
|
1557
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1538
1559
|
RadixForm.Control,
|
|
1539
1560
|
__spreadProps(__spreadValues({}, rest), {
|
|
1540
1561
|
className: `FormControl ${className || ""}`,
|
|
@@ -1557,10 +1578,10 @@ function FormItem(_a) {
|
|
|
1557
1578
|
"children",
|
|
1558
1579
|
"errorMessage"
|
|
1559
1580
|
]);
|
|
1560
|
-
return /* @__PURE__ */ (0,
|
|
1561
|
-
/* @__PURE__ */ (0,
|
|
1581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
1582
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
1562
1583
|
children,
|
|
1563
|
-
/* @__PURE__ */ (0,
|
|
1584
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
1564
1585
|
] }));
|
|
1565
1586
|
}
|
|
1566
1587
|
var Form = {
|
|
@@ -1574,69 +1595,69 @@ var Form = {
|
|
|
1574
1595
|
};
|
|
1575
1596
|
|
|
1576
1597
|
// src/atoms/auto-sizing-input.tsx
|
|
1577
|
-
var
|
|
1578
|
-
var
|
|
1579
|
-
var AutoSizingInput = (0,
|
|
1598
|
+
var import_react20 = require("react");
|
|
1599
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1600
|
+
var AutoSizingInput = (0, import_react20.forwardRef)(
|
|
1580
1601
|
(_a, ref) => {
|
|
1581
1602
|
var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
|
|
1582
|
-
const [value, setValue] = (0,
|
|
1583
|
-
const [width, setWidth] = (0,
|
|
1584
|
-
const span = (0,
|
|
1585
|
-
(0,
|
|
1603
|
+
const [value, setValue] = (0, import_react20.useState)(_value);
|
|
1604
|
+
const [width, setWidth] = (0, import_react20.useState)(0);
|
|
1605
|
+
const span = (0, import_react20.useRef)(null);
|
|
1606
|
+
(0, import_react20.useEffect)(() => {
|
|
1586
1607
|
span.current && setWidth(span.current.offsetWidth);
|
|
1587
1608
|
}, [value]);
|
|
1588
|
-
const changeHandler = (0,
|
|
1609
|
+
const changeHandler = (0, import_react20.useCallback)(
|
|
1589
1610
|
(evt) => {
|
|
1590
1611
|
onChange == null ? void 0 : onChange(evt);
|
|
1591
1612
|
setValue(evt.target.value);
|
|
1592
1613
|
},
|
|
1593
1614
|
[onChange]
|
|
1594
1615
|
);
|
|
1595
|
-
(0,
|
|
1616
|
+
(0, import_react20.useEffect)(() => {
|
|
1596
1617
|
setValue(_value || "");
|
|
1597
1618
|
}, [_value]);
|
|
1598
|
-
(0,
|
|
1619
|
+
(0, import_react20.useEffect)(() => {
|
|
1599
1620
|
onChangeValue == null ? void 0 : onChangeValue(value || "");
|
|
1600
1621
|
}, [value, onChangeValue]);
|
|
1601
|
-
return /* @__PURE__ */ (0,
|
|
1602
|
-
/* @__PURE__ */ (0,
|
|
1603
|
-
/* @__PURE__ */ (0,
|
|
1622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "auto-sizing-input wrapper", style: { width: width + 24 }, children: [
|
|
1623
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", __spreadValues({ onChange: changeHandler, ref, value }, rest)),
|
|
1624
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { "aria-hidden": "true", ref: span, children: value })
|
|
1604
1625
|
] });
|
|
1605
1626
|
}
|
|
1606
1627
|
);
|
|
1607
1628
|
AutoSizingInput.displayName = "AutoSizingInput";
|
|
1608
1629
|
|
|
1609
1630
|
// src/atoms/bullet-text.tsx
|
|
1610
|
-
var
|
|
1631
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1611
1632
|
function BulletText(_a) {
|
|
1612
1633
|
var _b = _a, {
|
|
1613
1634
|
children
|
|
1614
1635
|
} = _b, rest = __objRest(_b, [
|
|
1615
1636
|
"children"
|
|
1616
1637
|
]);
|
|
1617
|
-
return /* @__PURE__ */ (0,
|
|
1618
|
-
/* @__PURE__ */ (0,
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes22.Flex, { gap: "1", ml: "2", children: [
|
|
1639
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
1640
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
1620
1641
|
] });
|
|
1621
1642
|
}
|
|
1622
1643
|
|
|
1623
1644
|
// src/molecules/expand-table/index.tsx
|
|
1624
1645
|
var import_react_table2 = require("@tanstack/react-table");
|
|
1625
|
-
var
|
|
1646
|
+
var import_react22 = require("react");
|
|
1626
1647
|
|
|
1627
1648
|
// src/molecules/expand-table/row.tsx
|
|
1628
1649
|
var import_react_table = require("@tanstack/react-table");
|
|
1629
|
-
var
|
|
1630
|
-
var
|
|
1650
|
+
var import_react21 = require("react");
|
|
1651
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1631
1652
|
function Row(props) {
|
|
1632
1653
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
1633
|
-
const [open, setOpen] = (0,
|
|
1634
|
-
const onClickRow = (0,
|
|
1654
|
+
const [open, setOpen] = (0, import_react21.useState)(false);
|
|
1655
|
+
const onClickRow = (0, import_react21.useCallback)(() => {
|
|
1635
1656
|
var _a;
|
|
1636
1657
|
(_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
|
|
1637
1658
|
setOpen((prev) => !prev);
|
|
1638
1659
|
}, [props, row.original]);
|
|
1639
|
-
const rowClassName = (0,
|
|
1660
|
+
const rowClassName = (0, import_react21.useMemo)(() => {
|
|
1640
1661
|
const baseCls = ["tr-wrapper"];
|
|
1641
1662
|
if (ExpandComp) {
|
|
1642
1663
|
baseCls.push("expandable");
|
|
@@ -1646,8 +1667,8 @@ function Row(props) {
|
|
|
1646
1667
|
}
|
|
1647
1668
|
return baseCls.join(" ");
|
|
1648
1669
|
}, [ExpandComp, props.onRowClick]);
|
|
1649
|
-
return /* @__PURE__ */ (0,
|
|
1650
|
-
/* @__PURE__ */ (0,
|
|
1670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: rowClassName, children: [
|
|
1671
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1651
1672
|
"button",
|
|
1652
1673
|
{
|
|
1653
1674
|
className: "tr",
|
|
@@ -1660,7 +1681,7 @@ function Row(props) {
|
|
|
1660
1681
|
var _a, _b, _c;
|
|
1661
1682
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
1662
1683
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
1663
|
-
return /* @__PURE__ */ (0,
|
|
1684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1664
1685
|
"div",
|
|
1665
1686
|
{
|
|
1666
1687
|
className: "td",
|
|
@@ -1671,7 +1692,7 @@ function Row(props) {
|
|
|
1671
1692
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
1672
1693
|
children: [
|
|
1673
1694
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
1674
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
1695
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1675
1696
|
cell.column.columnDef.meta.OpenBtn,
|
|
1676
1697
|
{
|
|
1677
1698
|
data: row.original,
|
|
@@ -1687,12 +1708,12 @@ function Row(props) {
|
|
|
1687
1708
|
},
|
|
1688
1709
|
`tr_${row.id}`
|
|
1689
1710
|
),
|
|
1690
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
1711
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ExpandComp, { row }) }) }) : null
|
|
1691
1712
|
] }, `tr-wrapper_${row.id}`);
|
|
1692
1713
|
}
|
|
1693
1714
|
|
|
1694
1715
|
// src/molecules/expand-table/index.tsx
|
|
1695
|
-
var
|
|
1716
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1696
1717
|
function ExpandTable(props) {
|
|
1697
1718
|
const {
|
|
1698
1719
|
data,
|
|
@@ -1710,11 +1731,11 @@ function ExpandTable(props) {
|
|
|
1710
1731
|
getCellStyle
|
|
1711
1732
|
} = props;
|
|
1712
1733
|
const defaultAlign = "left";
|
|
1713
|
-
const [pagination, setPagination] = (0,
|
|
1734
|
+
const [pagination, setPagination] = (0, import_react22.useState)({
|
|
1714
1735
|
pageIndex: pageIndex || 0,
|
|
1715
1736
|
pageSize: pageSize || 9999
|
|
1716
1737
|
});
|
|
1717
|
-
const [sorting, setSorting] = (0,
|
|
1738
|
+
const [sorting, setSorting] = (0, import_react22.useState)([]);
|
|
1718
1739
|
const { getRowModel, getHeaderGroups, setPageIndex } = (0, import_react_table2.useReactTable)({
|
|
1719
1740
|
data: data || [],
|
|
1720
1741
|
columns,
|
|
@@ -1728,7 +1749,7 @@ function ExpandTable(props) {
|
|
|
1728
1749
|
getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
|
|
1729
1750
|
onPaginationChange: setPagination
|
|
1730
1751
|
});
|
|
1731
|
-
const gridTemplateColumns = (0,
|
|
1752
|
+
const gridTemplateColumns = (0, import_react22.useMemo)(() => {
|
|
1732
1753
|
return columns.map((col) => {
|
|
1733
1754
|
var _a;
|
|
1734
1755
|
if ((_a = col.meta) == null ? void 0 : _a.autoSize)
|
|
@@ -1737,16 +1758,16 @@ function ExpandTable(props) {
|
|
|
1737
1758
|
}).join(" ");
|
|
1738
1759
|
}, [columns]);
|
|
1739
1760
|
const rowModels = getRowModel();
|
|
1740
|
-
const onChangePagination = (0,
|
|
1761
|
+
const onChangePagination = (0, import_react22.useCallback)(
|
|
1741
1762
|
(page) => {
|
|
1742
1763
|
setPageIndex(page - 1);
|
|
1743
1764
|
},
|
|
1744
1765
|
[setPageIndex]
|
|
1745
1766
|
);
|
|
1746
|
-
const helpCompRender = (0,
|
|
1767
|
+
const helpCompRender = (0, import_react22.useCallback)(
|
|
1747
1768
|
(rowLength) => {
|
|
1748
1769
|
if (isLoading) {
|
|
1749
|
-
return /* @__PURE__ */ (0,
|
|
1770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1750
1771
|
import_themes22.Flex,
|
|
1751
1772
|
{
|
|
1752
1773
|
align: "center",
|
|
@@ -1754,24 +1775,24 @@ function ExpandTable(props) {
|
|
|
1754
1775
|
justify: "center",
|
|
1755
1776
|
p: "5",
|
|
1756
1777
|
width: "100%",
|
|
1757
|
-
children: /* @__PURE__ */ (0,
|
|
1778
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes48.Spinner, {})
|
|
1758
1779
|
}
|
|
1759
1780
|
);
|
|
1760
1781
|
}
|
|
1761
1782
|
if (rowLength === 0) {
|
|
1762
|
-
return /* @__PURE__ */ (0,
|
|
1783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
1763
1784
|
}
|
|
1764
1785
|
return null;
|
|
1765
1786
|
},
|
|
1766
1787
|
[isLoading, placeholder]
|
|
1767
1788
|
);
|
|
1768
|
-
const pageCount = (0,
|
|
1789
|
+
const pageCount = (0, import_react22.useMemo)(() => {
|
|
1769
1790
|
if (!data)
|
|
1770
1791
|
return 0;
|
|
1771
1792
|
return Math.ceil(data.length / pageSize);
|
|
1772
1793
|
}, [data, pageSize]);
|
|
1773
|
-
return /* @__PURE__ */ (0,
|
|
1774
|
-
/* @__PURE__ */ (0,
|
|
1794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
1795
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1775
1796
|
"div",
|
|
1776
1797
|
{
|
|
1777
1798
|
className: "tr",
|
|
@@ -1781,30 +1802,30 @@ function ExpandTable(props) {
|
|
|
1781
1802
|
const sortable = header.column.getCanSort();
|
|
1782
1803
|
const sortedState = header.column.getIsSorted();
|
|
1783
1804
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
1784
|
-
return /* @__PURE__ */ (0,
|
|
1805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1785
1806
|
"button",
|
|
1786
1807
|
{
|
|
1787
1808
|
onClick: header.column.getToggleSortingHandler(),
|
|
1788
1809
|
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
1789
1810
|
type: "button",
|
|
1790
1811
|
children: [
|
|
1791
|
-
/* @__PURE__ */ (0,
|
|
1812
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1792
1813
|
header.column.columnDef.header,
|
|
1793
1814
|
header.getContext()
|
|
1794
1815
|
) }),
|
|
1795
|
-
sortable ? /* @__PURE__ */ (0,
|
|
1816
|
+
sortable ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1796
1817
|
import_themes22.Flex,
|
|
1797
1818
|
{
|
|
1798
1819
|
direction: "column",
|
|
1799
1820
|
style: { marginLeft: "var(--space-2)" },
|
|
1800
1821
|
children: [
|
|
1801
|
-
/* @__PURE__ */ (0,
|
|
1822
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1802
1823
|
TriangleArrowUpIcon,
|
|
1803
1824
|
{
|
|
1804
1825
|
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
1805
1826
|
}
|
|
1806
1827
|
),
|
|
1807
|
-
/* @__PURE__ */ (0,
|
|
1828
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1808
1829
|
TriangleArrowDownIcon,
|
|
1809
1830
|
{
|
|
1810
1831
|
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
@@ -1820,8 +1841,8 @@ function ExpandTable(props) {
|
|
|
1820
1841
|
},
|
|
1821
1842
|
headerGroup.id
|
|
1822
1843
|
)) }),
|
|
1823
|
-
/* @__PURE__ */ (0,
|
|
1824
|
-
return /* @__PURE__ */ (0,
|
|
1844
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
1845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1825
1846
|
Row,
|
|
1826
1847
|
{
|
|
1827
1848
|
ExpandComp,
|
|
@@ -1835,7 +1856,7 @@ function ExpandTable(props) {
|
|
|
1835
1856
|
`row_${row.id}`
|
|
1836
1857
|
);
|
|
1837
1858
|
}) }),
|
|
1838
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
1859
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1839
1860
|
Pagination,
|
|
1840
1861
|
{
|
|
1841
1862
|
count: pageCount,
|
|
@@ -1848,14 +1869,14 @@ function ExpandTable(props) {
|
|
|
1848
1869
|
}
|
|
1849
1870
|
|
|
1850
1871
|
// src/molecules/navigation.tsx
|
|
1851
|
-
var
|
|
1872
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1852
1873
|
function Navigation({
|
|
1853
1874
|
items,
|
|
1854
1875
|
fontColor,
|
|
1855
1876
|
backgroundColor,
|
|
1856
1877
|
activeKey
|
|
1857
1878
|
}) {
|
|
1858
|
-
return /* @__PURE__ */ (0,
|
|
1879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1859
1880
|
import_themes22.Flex,
|
|
1860
1881
|
{
|
|
1861
1882
|
direction: "column",
|
|
@@ -1867,13 +1888,13 @@ function Navigation({
|
|
|
1867
1888
|
},
|
|
1868
1889
|
children: items == null ? void 0 : items.map((item) => {
|
|
1869
1890
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1870
|
-
return /* @__PURE__ */ (0,
|
|
1871
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
1891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { direction: "column", onClick, children: [
|
|
1892
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1872
1893
|
icon,
|
|
1873
|
-
/* @__PURE__ */ (0,
|
|
1894
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1874
1895
|
] }),
|
|
1875
1896
|
children == null ? void 0 : children.map((menu) => {
|
|
1876
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
1897
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1877
1898
|
Button,
|
|
1878
1899
|
{
|
|
1879
1900
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -1897,19 +1918,19 @@ function Navigation({
|
|
|
1897
1918
|
}
|
|
1898
1919
|
|
|
1899
1920
|
// src/molecules/date-picker/index.tsx
|
|
1900
|
-
var
|
|
1921
|
+
var import_react23 = require("react");
|
|
1901
1922
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
1902
1923
|
var import_react_datepicker = require("react-datepicker");
|
|
1903
1924
|
var import_locale = require("date-fns/locale");
|
|
1904
|
-
var
|
|
1925
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1905
1926
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
1906
1927
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
1907
1928
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
1908
|
-
var DatePicker = (0,
|
|
1929
|
+
var DatePicker = (0, import_react23.forwardRef)(
|
|
1909
1930
|
(props, ref) => {
|
|
1910
1931
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
1911
1932
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
1912
|
-
return /* @__PURE__ */ (0,
|
|
1933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1913
1934
|
ReactDatePicker,
|
|
1914
1935
|
__spreadProps(__spreadValues({
|
|
1915
1936
|
dateFormat: "YYYY/MM/dd",
|
|
@@ -1940,53 +1961,53 @@ var renderCustomHeader = (props) => {
|
|
|
1940
1961
|
} = props;
|
|
1941
1962
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
1942
1963
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
1943
|
-
return /* @__PURE__ */ (0,
|
|
1944
|
-
/* @__PURE__ */ (0,
|
|
1964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes22.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1965
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1945
1966
|
import_themes18.IconButton,
|
|
1946
1967
|
{
|
|
1947
1968
|
disabled: prevMonthButtonDisabled,
|
|
1948
1969
|
onClick: decreaseMonth,
|
|
1949
1970
|
type: "button",
|
|
1950
1971
|
variant: "ghost",
|
|
1951
|
-
children: /* @__PURE__ */ (0,
|
|
1972
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
1952
1973
|
}
|
|
1953
1974
|
),
|
|
1954
|
-
/* @__PURE__ */ (0,
|
|
1955
|
-
/* @__PURE__ */ (0,
|
|
1975
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
1976
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1956
1977
|
year,
|
|
1957
1978
|
"\uB144"
|
|
1958
1979
|
] }),
|
|
1959
|
-
/* @__PURE__ */ (0,
|
|
1980
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1960
1981
|
month,
|
|
1961
1982
|
"\uC6D4"
|
|
1962
1983
|
] })
|
|
1963
1984
|
] }),
|
|
1964
|
-
/* @__PURE__ */ (0,
|
|
1985
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1965
1986
|
import_themes18.IconButton,
|
|
1966
1987
|
{
|
|
1967
1988
|
disabled: nextMonthButtonDisabled,
|
|
1968
1989
|
onClick: increaseMonth,
|
|
1969
1990
|
type: "button",
|
|
1970
1991
|
variant: "ghost",
|
|
1971
|
-
children: /* @__PURE__ */ (0,
|
|
1992
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
1972
1993
|
}
|
|
1973
1994
|
)
|
|
1974
1995
|
] });
|
|
1975
1996
|
};
|
|
1976
1997
|
|
|
1977
1998
|
// src/molecules/dot-navigation.tsx
|
|
1978
|
-
var
|
|
1999
|
+
var import_react24 = require("react");
|
|
1979
2000
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
1980
|
-
var
|
|
2001
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1981
2002
|
function DotNavigation(props) {
|
|
1982
2003
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
1983
|
-
const [currentDot, setCurrentDot] = (0,
|
|
2004
|
+
const [currentDot, setCurrentDot] = (0, import_react24.useState)(
|
|
1984
2005
|
() => {
|
|
1985
2006
|
var _a;
|
|
1986
2007
|
return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
|
|
1987
2008
|
}
|
|
1988
2009
|
);
|
|
1989
|
-
const onClickDot = (0,
|
|
2010
|
+
const onClickDot = (0, import_react24.useCallback)(
|
|
1990
2011
|
(i) => {
|
|
1991
2012
|
if (onClick) {
|
|
1992
2013
|
onClick(i);
|
|
@@ -1996,17 +2017,17 @@ function DotNavigation(props) {
|
|
|
1996
2017
|
},
|
|
1997
2018
|
[onClick]
|
|
1998
2019
|
);
|
|
1999
|
-
(0,
|
|
2020
|
+
(0, import_react24.useEffect)(() => {
|
|
2000
2021
|
onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
|
|
2001
2022
|
}, [currentDot, onChangeDotIndex]);
|
|
2002
|
-
(0,
|
|
2023
|
+
(0, import_react24.useEffect)(() => {
|
|
2003
2024
|
if (typeof dotIndex === "undefined")
|
|
2004
2025
|
return;
|
|
2005
2026
|
setCurrentDot(dotIndex);
|
|
2006
2027
|
}, [dotIndex]);
|
|
2007
|
-
return /* @__PURE__ */ (0,
|
|
2028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes22.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
2008
2029
|
const isSelected = currentDot === index;
|
|
2009
|
-
return /* @__PURE__ */ (0,
|
|
2030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2010
2031
|
import_react_icons4.DotFilledIcon,
|
|
2011
2032
|
{
|
|
2012
2033
|
height: "24px",
|
|
@@ -2025,10 +2046,10 @@ function DotNavigation(props) {
|
|
|
2025
2046
|
}
|
|
2026
2047
|
|
|
2027
2048
|
// src/molecules/stepper.tsx
|
|
2028
|
-
var
|
|
2029
|
-
var
|
|
2030
|
-
var
|
|
2031
|
-
var StepContext = (0,
|
|
2049
|
+
var import_react25 = require("react");
|
|
2050
|
+
var import_themes50 = require("@radix-ui/themes");
|
|
2051
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2052
|
+
var StepContext = (0, import_react25.createContext)({
|
|
2032
2053
|
active: false,
|
|
2033
2054
|
completed: false,
|
|
2034
2055
|
index: 0
|
|
@@ -2042,7 +2063,7 @@ function Root9(props) {
|
|
|
2042
2063
|
maxWidth,
|
|
2043
2064
|
direction = "vertical"
|
|
2044
2065
|
} = props;
|
|
2045
|
-
return /* @__PURE__ */ (0,
|
|
2066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2046
2067
|
import_themes22.Flex,
|
|
2047
2068
|
{
|
|
2048
2069
|
gap: "3",
|
|
@@ -2051,8 +2072,8 @@ function Root9(props) {
|
|
|
2051
2072
|
minWidth,
|
|
2052
2073
|
maxWidth
|
|
2053
2074
|
},
|
|
2054
|
-
children:
|
|
2055
|
-
return /* @__PURE__ */ (0,
|
|
2075
|
+
children: import_react25.Children.map(children, (child, index) => {
|
|
2076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2056
2077
|
StepContext.Provider,
|
|
2057
2078
|
{
|
|
2058
2079
|
value: {
|
|
@@ -2075,9 +2096,9 @@ function Step(props) {
|
|
|
2075
2096
|
completed,
|
|
2076
2097
|
index,
|
|
2077
2098
|
direction = "vertical"
|
|
2078
|
-
} = (0,
|
|
2079
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
2080
|
-
|
|
2099
|
+
} = (0, import_react25.useContext)(StepContext);
|
|
2100
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2101
|
+
import_themes50.Separator,
|
|
2081
2102
|
{
|
|
2082
2103
|
style: {
|
|
2083
2104
|
width: `calc(100% - 40px)`,
|
|
@@ -2087,7 +2108,7 @@ function Step(props) {
|
|
|
2087
2108
|
}
|
|
2088
2109
|
}
|
|
2089
2110
|
) : null;
|
|
2090
|
-
const InnerStep = (0,
|
|
2111
|
+
const InnerStep = (0, import_react25.useMemo)(() => {
|
|
2091
2112
|
if (active) {
|
|
2092
2113
|
return ActiveStep;
|
|
2093
2114
|
}
|
|
@@ -2096,7 +2117,7 @@ function Step(props) {
|
|
|
2096
2117
|
}
|
|
2097
2118
|
return IncompleteStep;
|
|
2098
2119
|
}, [completed, active]);
|
|
2099
|
-
return /* @__PURE__ */ (0,
|
|
2120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2100
2121
|
import_themes22.Flex,
|
|
2101
2122
|
{
|
|
2102
2123
|
align: "center",
|
|
@@ -2106,22 +2127,22 @@ function Step(props) {
|
|
|
2106
2127
|
style: { flex: 1 },
|
|
2107
2128
|
children: [
|
|
2108
2129
|
connector,
|
|
2109
|
-
/* @__PURE__ */ (0,
|
|
2130
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InnerStep, { Icon, children })
|
|
2110
2131
|
]
|
|
2111
2132
|
}
|
|
2112
2133
|
);
|
|
2113
2134
|
}
|
|
2114
2135
|
function CompleteStep(props) {
|
|
2115
2136
|
const { Icon, children } = props;
|
|
2116
|
-
const { completed, active } = (0,
|
|
2137
|
+
const { completed, active } = (0, import_react25.useContext)(StepContext);
|
|
2117
2138
|
const background = "var(--accent-a4)";
|
|
2118
2139
|
const border = "1px solid var(--accent-7)";
|
|
2119
2140
|
const color = "var(--accent-contrast)";
|
|
2120
|
-
return /* @__PURE__ */ (0,
|
|
2121
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
2142
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2122
2143
|
Avatar,
|
|
2123
2144
|
{
|
|
2124
|
-
fallback: /* @__PURE__ */ (0,
|
|
2145
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons2.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
2125
2146
|
radius: "full",
|
|
2126
2147
|
size: "medium",
|
|
2127
2148
|
style: {
|
|
@@ -2130,19 +2151,19 @@ function CompleteStep(props) {
|
|
|
2130
2151
|
}
|
|
2131
2152
|
}
|
|
2132
2153
|
),
|
|
2133
|
-
/* @__PURE__ */ (0,
|
|
2154
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
2134
2155
|
] });
|
|
2135
2156
|
}
|
|
2136
2157
|
function IncompleteStep(props) {
|
|
2137
2158
|
const { Icon, children } = props;
|
|
2138
|
-
const { completed, active, index } = (0,
|
|
2159
|
+
const { completed, active, index } = (0, import_react25.useContext)(StepContext);
|
|
2139
2160
|
const background = "var(--gray-5)";
|
|
2140
2161
|
const color = "var(--gray-a11)";
|
|
2141
|
-
return /* @__PURE__ */ (0,
|
|
2142
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
2163
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2143
2164
|
Avatar,
|
|
2144
2165
|
{
|
|
2145
|
-
fallback: /* @__PURE__ */ (0,
|
|
2166
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
2146
2167
|
radius: "full",
|
|
2147
2168
|
size: "medium",
|
|
2148
2169
|
style: {
|
|
@@ -2150,25 +2171,25 @@ function IncompleteStep(props) {
|
|
|
2150
2171
|
}
|
|
2151
2172
|
}
|
|
2152
2173
|
),
|
|
2153
|
-
/* @__PURE__ */ (0,
|
|
2174
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
2154
2175
|
] });
|
|
2155
2176
|
}
|
|
2156
2177
|
function ActiveStep(props) {
|
|
2157
2178
|
const { Icon, children } = props;
|
|
2158
|
-
const { completed, active, index } = (0,
|
|
2179
|
+
const { completed, active, index } = (0, import_react25.useContext)(StepContext);
|
|
2159
2180
|
const background = "var(--accent-10)";
|
|
2160
2181
|
const color = "var(--accent-contrast)";
|
|
2161
|
-
return /* @__PURE__ */ (0,
|
|
2162
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
2183
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2163
2184
|
Avatar,
|
|
2164
2185
|
{
|
|
2165
|
-
fallback: /* @__PURE__ */ (0,
|
|
2186
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
2166
2187
|
radius: "full",
|
|
2167
2188
|
size: "medium",
|
|
2168
2189
|
style: { background }
|
|
2169
2190
|
}
|
|
2170
2191
|
),
|
|
2171
|
-
/* @__PURE__ */ (0,
|
|
2192
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
2172
2193
|
] });
|
|
2173
2194
|
}
|
|
2174
2195
|
var Stepper = {
|
|
@@ -2177,9 +2198,9 @@ var Stepper = {
|
|
|
2177
2198
|
};
|
|
2178
2199
|
|
|
2179
2200
|
// src/molecules/tag-selector.tsx
|
|
2180
|
-
var
|
|
2201
|
+
var import_react26 = require("react");
|
|
2181
2202
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
2182
|
-
var
|
|
2203
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2183
2204
|
var OPTION_HEIGHT = 32;
|
|
2184
2205
|
var DefaultDropdownContainer = (props) => {
|
|
2185
2206
|
return props.children;
|
|
@@ -2197,22 +2218,22 @@ function TagSelector(props) {
|
|
|
2197
2218
|
open: propsOpen,
|
|
2198
2219
|
dropdownItemRender
|
|
2199
2220
|
} = props;
|
|
2200
|
-
const [_selected, _setSelected] = (0,
|
|
2221
|
+
const [_selected, _setSelected] = (0, import_react26.useState)(props.selected || []);
|
|
2201
2222
|
const selected = props.selected || _selected;
|
|
2202
2223
|
const setSelected = props.onChange || _setSelected;
|
|
2203
|
-
const [value, setValue] = (0,
|
|
2204
|
-
const [focusIndex, setFocusIndex] = (0,
|
|
2205
|
-
const [open, setOpen] = (0,
|
|
2206
|
-
const [focus, setFocus] = (0,
|
|
2207
|
-
const fieldRef = (0,
|
|
2208
|
-
const scrollRef = (0,
|
|
2209
|
-
const closeRef = (0,
|
|
2210
|
-
const onFocus = (0,
|
|
2224
|
+
const [value, setValue] = (0, import_react26.useState)("");
|
|
2225
|
+
const [focusIndex, setFocusIndex] = (0, import_react26.useState)(null);
|
|
2226
|
+
const [open, setOpen] = (0, import_react26.useState)(false);
|
|
2227
|
+
const [focus, setFocus] = (0, import_react26.useState)(false);
|
|
2228
|
+
const fieldRef = (0, import_react26.useRef)(null);
|
|
2229
|
+
const scrollRef = (0, import_react26.useRef)(null);
|
|
2230
|
+
const closeRef = (0, import_react26.useRef)();
|
|
2231
|
+
const onFocus = (0, import_react26.useCallback)(() => {
|
|
2211
2232
|
clearTimeout(closeRef.current);
|
|
2212
2233
|
setFocus(true);
|
|
2213
2234
|
setOpen(true);
|
|
2214
2235
|
}, []);
|
|
2215
|
-
const onBlur = (0,
|
|
2236
|
+
const onBlur = (0, import_react26.useCallback)(() => {
|
|
2216
2237
|
closeRef.current = setTimeout(() => {
|
|
2217
2238
|
setFocus(false);
|
|
2218
2239
|
setOpen(false);
|
|
@@ -2221,18 +2242,18 @@ function TagSelector(props) {
|
|
|
2221
2242
|
}, 100);
|
|
2222
2243
|
}, 300);
|
|
2223
2244
|
}, []);
|
|
2224
|
-
const onChangeValue = (0,
|
|
2245
|
+
const onChangeValue = (0, import_react26.useCallback)(
|
|
2225
2246
|
(e) => {
|
|
2226
2247
|
setValue(e.target.value);
|
|
2227
2248
|
},
|
|
2228
2249
|
[]
|
|
2229
2250
|
);
|
|
2230
|
-
const filteredOptions = (0,
|
|
2251
|
+
const filteredOptions = (0, import_react26.useMemo)(() => {
|
|
2231
2252
|
return options.filter((option) => {
|
|
2232
2253
|
return option.name.includes(value);
|
|
2233
2254
|
});
|
|
2234
2255
|
}, [options, value]);
|
|
2235
|
-
const selectedItem = (0,
|
|
2256
|
+
const selectedItem = (0, import_react26.useMemo)(() => {
|
|
2236
2257
|
const result = [];
|
|
2237
2258
|
selected.forEach((id) => {
|
|
2238
2259
|
const maybeItem = options.find((option) => option.id === id);
|
|
@@ -2241,13 +2262,13 @@ function TagSelector(props) {
|
|
|
2241
2262
|
});
|
|
2242
2263
|
return result;
|
|
2243
2264
|
}, [options, selected]);
|
|
2244
|
-
const onDelete = (0,
|
|
2265
|
+
const onDelete = (0, import_react26.useCallback)(
|
|
2245
2266
|
(id) => {
|
|
2246
2267
|
setSelected(selected.filter((el) => el !== id));
|
|
2247
2268
|
},
|
|
2248
2269
|
[selected, setSelected]
|
|
2249
2270
|
);
|
|
2250
|
-
const onSelect = (0,
|
|
2271
|
+
const onSelect = (0, import_react26.useCallback)(
|
|
2251
2272
|
(id) => {
|
|
2252
2273
|
if (maxCount && selected.length + 1 > maxCount)
|
|
2253
2274
|
return;
|
|
@@ -2255,7 +2276,7 @@ function TagSelector(props) {
|
|
|
2255
2276
|
},
|
|
2256
2277
|
[maxCount, selected, setSelected]
|
|
2257
2278
|
);
|
|
2258
|
-
const toggleItem = (0,
|
|
2279
|
+
const toggleItem = (0, import_react26.useCallback)(
|
|
2259
2280
|
(id) => {
|
|
2260
2281
|
if (selected.includes(id)) {
|
|
2261
2282
|
onDelete(id);
|
|
@@ -2265,7 +2286,7 @@ function TagSelector(props) {
|
|
|
2265
2286
|
},
|
|
2266
2287
|
[onDelete, onSelect, selected]
|
|
2267
2288
|
);
|
|
2268
|
-
const setScroll = (0,
|
|
2289
|
+
const setScroll = (0, import_react26.useCallback)((index) => {
|
|
2269
2290
|
if (scrollRef.current) {
|
|
2270
2291
|
const scrollTop = scrollRef.current.scrollTop;
|
|
2271
2292
|
const clientHeight = scrollRef.current.clientHeight;
|
|
@@ -2277,7 +2298,7 @@ function TagSelector(props) {
|
|
|
2277
2298
|
}
|
|
2278
2299
|
}
|
|
2279
2300
|
}, []);
|
|
2280
|
-
const handleKeyDown = (0,
|
|
2301
|
+
const handleKeyDown = (0, import_react26.useCallback)(
|
|
2281
2302
|
(e) => {
|
|
2282
2303
|
var _a;
|
|
2283
2304
|
const key = e.key;
|
|
@@ -2329,7 +2350,7 @@ function TagSelector(props) {
|
|
|
2329
2350
|
selected
|
|
2330
2351
|
]
|
|
2331
2352
|
);
|
|
2332
|
-
const placeholderVisible = (0,
|
|
2353
|
+
const placeholderVisible = (0, import_react26.useMemo)(() => {
|
|
2333
2354
|
if (selectedItem.length)
|
|
2334
2355
|
return false;
|
|
2335
2356
|
if (value)
|
|
@@ -2338,13 +2359,13 @@ function TagSelector(props) {
|
|
|
2338
2359
|
return false;
|
|
2339
2360
|
return true;
|
|
2340
2361
|
}, [focus, selectedItem.length, value]);
|
|
2341
|
-
(0,
|
|
2362
|
+
(0, import_react26.useEffect)(() => {
|
|
2342
2363
|
setFocusIndex(null);
|
|
2343
2364
|
}, [open]);
|
|
2344
|
-
(0,
|
|
2365
|
+
(0, import_react26.useEffect)(() => {
|
|
2345
2366
|
setFocusIndex(0);
|
|
2346
2367
|
}, [filteredOptions]);
|
|
2347
|
-
const badgeSize = (0,
|
|
2368
|
+
const badgeSize = (0, import_react26.useMemo)(() => {
|
|
2348
2369
|
switch (size) {
|
|
2349
2370
|
case "large":
|
|
2350
2371
|
return "large";
|
|
@@ -2354,7 +2375,7 @@ function TagSelector(props) {
|
|
|
2354
2375
|
return "small";
|
|
2355
2376
|
}
|
|
2356
2377
|
}, [size]);
|
|
2357
|
-
const placeholderVariant = (0,
|
|
2378
|
+
const placeholderVariant = (0, import_react26.useMemo)(() => {
|
|
2358
2379
|
switch (size) {
|
|
2359
2380
|
case "large":
|
|
2360
2381
|
return "subtitle";
|
|
@@ -2366,11 +2387,11 @@ function TagSelector(props) {
|
|
|
2366
2387
|
const focusClassName = focus ? " focused" : "";
|
|
2367
2388
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2368
2389
|
const errorClassName = error ? " error" : "";
|
|
2369
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
2370
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
2390
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes22.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
2391
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
2371
2392
|
}) });
|
|
2372
|
-
const editContent = /* @__PURE__ */ (0,
|
|
2373
|
-
/* @__PURE__ */ (0,
|
|
2393
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
2394
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2374
2395
|
import_themes22.Flex,
|
|
2375
2396
|
{
|
|
2376
2397
|
align: "center",
|
|
@@ -2382,22 +2403,22 @@ function TagSelector(props) {
|
|
|
2382
2403
|
selectedItem.map((item) => {
|
|
2383
2404
|
return tagRender ? tagRender(item, () => {
|
|
2384
2405
|
onDelete(item.id);
|
|
2385
|
-
}) : /* @__PURE__ */ (0,
|
|
2406
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Badge, { size: badgeSize, children: [
|
|
2386
2407
|
item.name,
|
|
2387
|
-
/* @__PURE__ */ (0,
|
|
2408
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2388
2409
|
Button,
|
|
2389
2410
|
{
|
|
2390
2411
|
onClick: () => {
|
|
2391
2412
|
onDelete(item.id);
|
|
2392
2413
|
},
|
|
2393
2414
|
variant: "transparent",
|
|
2394
|
-
children: /* @__PURE__ */ (0,
|
|
2415
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.Cross1Icon, {})
|
|
2395
2416
|
}
|
|
2396
2417
|
)
|
|
2397
2418
|
] }, item.id);
|
|
2398
2419
|
}),
|
|
2399
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
2400
|
-
/* @__PURE__ */ (0,
|
|
2420
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
2421
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2401
2422
|
AutoSizingInput,
|
|
2402
2423
|
{
|
|
2403
2424
|
onBlur,
|
|
@@ -2411,10 +2432,10 @@ function TagSelector(props) {
|
|
|
2411
2432
|
]
|
|
2412
2433
|
}
|
|
2413
2434
|
),
|
|
2414
|
-
focus ? /* @__PURE__ */ (0,
|
|
2435
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.ChevronRightIcon, {})
|
|
2415
2436
|
] });
|
|
2416
|
-
return /* @__PURE__ */ (0,
|
|
2417
|
-
/* @__PURE__ */ (0,
|
|
2437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2438
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2418
2439
|
import_themes23.Grid,
|
|
2419
2440
|
{
|
|
2420
2441
|
align: "center",
|
|
@@ -2428,31 +2449,31 @@ function TagSelector(props) {
|
|
|
2428
2449
|
children: readOnly ? readonlyContent : editContent
|
|
2429
2450
|
}
|
|
2430
2451
|
) }),
|
|
2431
|
-
/* @__PURE__ */ (0,
|
|
2452
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2432
2453
|
import_themes29.Popover.Content,
|
|
2433
2454
|
{
|
|
2434
2455
|
onOpenAutoFocus: preventDefault3,
|
|
2435
2456
|
onTouchMove: stopPropagationTouch,
|
|
2436
2457
|
onWheel: stopPropagationWheel,
|
|
2437
2458
|
sticky: "always",
|
|
2438
|
-
children: /* @__PURE__ */ (0,
|
|
2459
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2439
2460
|
DropdownContainer,
|
|
2440
2461
|
{
|
|
2441
2462
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2442
2463
|
items: filteredOptions,
|
|
2443
|
-
children: /* @__PURE__ */ (0,
|
|
2444
|
-
|
|
2464
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2465
|
+
ScrollArea,
|
|
2445
2466
|
{
|
|
2446
2467
|
ref: scrollRef,
|
|
2447
2468
|
scrollbars: "vertical",
|
|
2448
2469
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2449
2470
|
type: "auto",
|
|
2450
|
-
children: /* @__PURE__ */ (0,
|
|
2471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes22.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2451
2472
|
const isSelected = Boolean(
|
|
2452
2473
|
selected.find((el) => el === item.id)
|
|
2453
2474
|
);
|
|
2454
2475
|
const isFocus = i === focusIndex;
|
|
2455
|
-
return /* @__PURE__ */ (0,
|
|
2476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2456
2477
|
Button,
|
|
2457
2478
|
{
|
|
2458
2479
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2465,9 +2486,9 @@ function TagSelector(props) {
|
|
|
2465
2486
|
setFocusIndex(i);
|
|
2466
2487
|
},
|
|
2467
2488
|
variant: isSelected ? "soft" : "outline",
|
|
2468
|
-
children: /* @__PURE__ */ (0,
|
|
2489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_themes22.Flex, { justify: "between", width: "100%", children: [
|
|
2469
2490
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2470
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2491
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons2.CheckIcon, {}) : null
|
|
2471
2492
|
] })
|
|
2472
2493
|
},
|
|
2473
2494
|
item.id
|
|
@@ -2492,14 +2513,14 @@ var preventDefault3 = (e) => {
|
|
|
2492
2513
|
};
|
|
2493
2514
|
|
|
2494
2515
|
// src/theme/theme-provider.tsx
|
|
2495
|
-
var
|
|
2496
|
-
var
|
|
2516
|
+
var import_themes51 = require("@radix-ui/themes");
|
|
2517
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2497
2518
|
function ThemeProvider(props) {
|
|
2498
|
-
return /* @__PURE__ */ (0,
|
|
2519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes51.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2499
2520
|
}
|
|
2500
2521
|
|
|
2501
2522
|
// src/molecules/learning-post.tsx
|
|
2502
|
-
var
|
|
2523
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2503
2524
|
function LearningPost(props) {
|
|
2504
2525
|
const {
|
|
2505
2526
|
defaultThemeProps,
|
|
@@ -2511,13 +2532,13 @@ function LearningPost(props) {
|
|
|
2511
2532
|
onPageBack,
|
|
2512
2533
|
children
|
|
2513
2534
|
} = props;
|
|
2514
|
-
return /* @__PURE__ */ (0,
|
|
2535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2515
2536
|
ThemeProvider,
|
|
2516
2537
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2517
2538
|
accentColor: "iris",
|
|
2518
2539
|
scaling: "110%",
|
|
2519
2540
|
style: {},
|
|
2520
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2541
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2521
2542
|
import_themes23.Grid,
|
|
2522
2543
|
{
|
|
2523
2544
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2529,8 +2550,8 @@ function LearningPost(props) {
|
|
|
2529
2550
|
px: "4",
|
|
2530
2551
|
width: "100%",
|
|
2531
2552
|
children: [
|
|
2532
|
-
/* @__PURE__ */ (0,
|
|
2533
|
-
/* @__PURE__ */ (0,
|
|
2553
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", {}),
|
|
2554
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2534
2555
|
import_themes22.Flex,
|
|
2535
2556
|
{
|
|
2536
2557
|
align: "center",
|
|
@@ -2540,15 +2561,15 @@ function LearningPost(props) {
|
|
|
2540
2561
|
overflow: "hidden",
|
|
2541
2562
|
width: "100%",
|
|
2542
2563
|
children: [
|
|
2543
|
-
/* @__PURE__ */ (0,
|
|
2544
|
-
/* @__PURE__ */ (0,
|
|
2564
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes23.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2565
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2545
2566
|
import_themes23.Grid,
|
|
2546
2567
|
{
|
|
2547
2568
|
gap: "3",
|
|
2548
2569
|
mb: { initial: "4", sm: "0" },
|
|
2549
2570
|
style: { alignSelf: "flex-start" },
|
|
2550
2571
|
children: [
|
|
2551
|
-
/* @__PURE__ */ (0,
|
|
2572
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2552
2573
|
Heading2,
|
|
2553
2574
|
{
|
|
2554
2575
|
style: {
|
|
@@ -2560,17 +2581,17 @@ function LearningPost(props) {
|
|
|
2560
2581
|
children: title
|
|
2561
2582
|
}
|
|
2562
2583
|
),
|
|
2563
|
-
/* @__PURE__ */ (0,
|
|
2564
|
-
/* @__PURE__ */ (0,
|
|
2584
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typo, { children: metaDescription }),
|
|
2585
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes22.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
2565
2586
|
var _a;
|
|
2566
2587
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter"))
|
|
2567
2588
|
return;
|
|
2568
|
-
return /* @__PURE__ */ (0,
|
|
2589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
2569
2590
|
}) })
|
|
2570
2591
|
]
|
|
2571
2592
|
}
|
|
2572
2593
|
),
|
|
2573
|
-
/* @__PURE__ */ (0,
|
|
2594
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2574
2595
|
import_themes2.AspectRatio,
|
|
2575
2596
|
{
|
|
2576
2597
|
ratio: 5 / 3,
|
|
@@ -2583,7 +2604,7 @@ function LearningPost(props) {
|
|
|
2583
2604
|
}
|
|
2584
2605
|
)
|
|
2585
2606
|
] }),
|
|
2586
|
-
/* @__PURE__ */ (0,
|
|
2607
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2587
2608
|
"div",
|
|
2588
2609
|
{
|
|
2589
2610
|
className: "gh-content",
|
|
@@ -2596,7 +2617,7 @@ function LearningPost(props) {
|
|
|
2596
2617
|
children
|
|
2597
2618
|
]
|
|
2598
2619
|
}
|
|
2599
|
-
) : /* @__PURE__ */ (0,
|
|
2620
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2600
2621
|
import_themes22.Flex,
|
|
2601
2622
|
{
|
|
2602
2623
|
align: "center",
|
|
@@ -2606,8 +2627,8 @@ function LearningPost(props) {
|
|
|
2606
2627
|
justify: "center",
|
|
2607
2628
|
width: "100%",
|
|
2608
2629
|
children: [
|
|
2609
|
-
/* @__PURE__ */ (0,
|
|
2610
|
-
/* @__PURE__ */ (0,
|
|
2630
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2631
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2611
2632
|
Heading2,
|
|
2612
2633
|
{
|
|
2613
2634
|
align: "center",
|
|
@@ -2618,7 +2639,7 @@ function LearningPost(props) {
|
|
|
2618
2639
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2619
2640
|
}
|
|
2620
2641
|
),
|
|
2621
|
-
/* @__PURE__ */ (0,
|
|
2642
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2622
2643
|
]
|
|
2623
2644
|
}
|
|
2624
2645
|
)
|
|
@@ -2628,9 +2649,9 @@ function LearningPost(props) {
|
|
|
2628
2649
|
|
|
2629
2650
|
// src/molecules/force-refresh.tsx
|
|
2630
2651
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
2631
|
-
var
|
|
2652
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2632
2653
|
function CodeSize3(props) {
|
|
2633
|
-
return /* @__PURE__ */ (0,
|
|
2654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2634
2655
|
import_themes13.Code,
|
|
2635
2656
|
{
|
|
2636
2657
|
style: {
|
|
@@ -2643,87 +2664,87 @@ function CodeSize3(props) {
|
|
|
2643
2664
|
);
|
|
2644
2665
|
}
|
|
2645
2666
|
function ForceRefresh() {
|
|
2646
|
-
return /* @__PURE__ */ (0,
|
|
2647
|
-
/* @__PURE__ */ (0,
|
|
2667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
2668
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2648
2669
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
2649
2670
|
" ",
|
|
2650
|
-
/* @__PURE__ */ (0,
|
|
2651
|
-
/* @__PURE__ */ (0,
|
|
2671
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(CodeSize3, { children: [
|
|
2672
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons6.DotsVerticalIcon, { height: "13px" }),
|
|
2652
2673
|
"\uB354\uBCF4\uAE30"
|
|
2653
2674
|
] }),
|
|
2654
2675
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2655
2676
|
] }),
|
|
2656
|
-
/* @__PURE__ */ (0,
|
|
2677
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2657
2678
|
"2. ",
|
|
2658
|
-
/* @__PURE__ */ (0,
|
|
2679
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
2659
2680
|
" ",
|
|
2660
2681
|
">",
|
|
2661
2682
|
" ",
|
|
2662
|
-
/* @__PURE__ */ (0,
|
|
2683
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
2663
2684
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
2664
2685
|
] }),
|
|
2665
|
-
/* @__PURE__ */ (0,
|
|
2666
|
-
/* @__PURE__ */ (0,
|
|
2686
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2687
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2667
2688
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2668
|
-
/* @__PURE__ */ (0,
|
|
2689
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "F12" })
|
|
2669
2690
|
] }),
|
|
2670
|
-
/* @__PURE__ */ (0,
|
|
2691
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2671
2692
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2672
|
-
/* @__PURE__ */ (0,
|
|
2693
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "Option" }),
|
|
2673
2694
|
" + ",
|
|
2674
|
-
/* @__PURE__ */ (0,
|
|
2695
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "Command" }),
|
|
2675
2696
|
" + ",
|
|
2676
|
-
/* @__PURE__ */ (0,
|
|
2697
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "I" })
|
|
2677
2698
|
] })
|
|
2678
2699
|
] }),
|
|
2679
|
-
/* @__PURE__ */ (0,
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2680
2701
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
2681
2702
|
" ",
|
|
2682
|
-
/* @__PURE__ */ (0,
|
|
2683
|
-
/* @__PURE__ */ (0,
|
|
2703
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(CodeSize3, { children: [
|
|
2704
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons6.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
2684
2705
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
2685
2706
|
] }),
|
|
2686
2707
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2687
2708
|
] }),
|
|
2688
|
-
/* @__PURE__ */ (0,
|
|
2709
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2689
2710
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
2690
|
-
/* @__PURE__ */ (0,
|
|
2711
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
2691
2712
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2692
2713
|
] })
|
|
2693
2714
|
] });
|
|
2694
2715
|
}
|
|
2695
2716
|
|
|
2696
2717
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2697
|
-
var
|
|
2718
|
+
var import_react27 = require("react");
|
|
2698
2719
|
var import_date_fns = require("date-fns");
|
|
2699
2720
|
var import_clsx2 = require("clsx");
|
|
2700
|
-
var
|
|
2721
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2701
2722
|
function DatePickerButton(props) {
|
|
2702
2723
|
const _a = props, { size, placeholder, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "placeholder", "format", "disabled"]);
|
|
2703
|
-
const buttonProps = (0,
|
|
2724
|
+
const buttonProps = (0, import_react27.useMemo)(() => {
|
|
2704
2725
|
const variant = "outline";
|
|
2705
2726
|
const color = "gray";
|
|
2706
2727
|
return { size, color, variant, disabled };
|
|
2707
2728
|
}, [disabled, size]);
|
|
2708
|
-
const selectFormat = (0,
|
|
2729
|
+
const selectFormat = (0, import_react27.useMemo)(() => {
|
|
2709
2730
|
if (formatProps)
|
|
2710
2731
|
return formatProps;
|
|
2711
2732
|
return (date) => {
|
|
2712
2733
|
return date ? (0, import_date_fns.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
2713
2734
|
};
|
|
2714
2735
|
}, [formatProps, placeholder]);
|
|
2715
|
-
const className = (0,
|
|
2736
|
+
const className = (0, import_react27.useMemo)(() => {
|
|
2716
2737
|
return (0, import_clsx2.clsx)(
|
|
2717
2738
|
"date-picker-button",
|
|
2718
2739
|
(disabled || props.readOnly) && "disabled"
|
|
2719
2740
|
);
|
|
2720
2741
|
}, [disabled, props.readOnly]);
|
|
2721
|
-
return /* @__PURE__ */ (0,
|
|
2742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2722
2743
|
DatePicker,
|
|
2723
2744
|
__spreadProps(__spreadValues({
|
|
2724
|
-
customInput: /* @__PURE__ */ (0,
|
|
2745
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Button, __spreadProps(__spreadValues({ className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
2725
2746
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
2726
|
-
/* @__PURE__ */ (0,
|
|
2747
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_icons2.CalendarIcon, {})
|
|
2727
2748
|
] }) })),
|
|
2728
2749
|
wrapperClassName: "full-width"
|
|
2729
2750
|
}, rest), {
|
|
@@ -2733,7 +2754,7 @@ function DatePickerButton(props) {
|
|
|
2733
2754
|
}
|
|
2734
2755
|
|
|
2735
2756
|
// src/molecules/time-select.tsx
|
|
2736
|
-
var
|
|
2757
|
+
var import_react28 = require("react");
|
|
2737
2758
|
var import_date_fns2 = require("date-fns");
|
|
2738
2759
|
|
|
2739
2760
|
// src/utils/get-cell-align.ts
|
|
@@ -2808,7 +2829,7 @@ var getTimeOption = (time) => {
|
|
|
2808
2829
|
};
|
|
2809
2830
|
|
|
2810
2831
|
// src/molecules/time-select.tsx
|
|
2811
|
-
var
|
|
2832
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2812
2833
|
var getOptionValue = (date, timeValue) => {
|
|
2813
2834
|
if (date && timeValue) {
|
|
2814
2835
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -2828,31 +2849,31 @@ function TimeSelect(_a) {
|
|
|
2828
2849
|
"minTime",
|
|
2829
2850
|
"time"
|
|
2830
2851
|
]);
|
|
2831
|
-
const timeOptions = (0,
|
|
2852
|
+
const timeOptions = (0, import_react28.useMemo)(() => {
|
|
2832
2853
|
return getTimeOptions();
|
|
2833
2854
|
}, []);
|
|
2834
|
-
const [minOption, maxOption] = (0,
|
|
2855
|
+
const [minOption, maxOption] = (0, import_react28.useMemo)(() => {
|
|
2835
2856
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
2836
2857
|
}, [maxTime, minTime, time]);
|
|
2837
|
-
return /* @__PURE__ */ (0,
|
|
2838
|
-
/* @__PURE__ */ (0,
|
|
2839
|
-
/* @__PURE__ */ (0,
|
|
2858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
2859
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
2860
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
2840
2861
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
2841
2862
|
if (!visible) {
|
|
2842
2863
|
return null;
|
|
2843
2864
|
}
|
|
2844
|
-
return /* @__PURE__ */ (0,
|
|
2865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Select.Item, { value: option, children: option }, option);
|
|
2845
2866
|
}) })
|
|
2846
2867
|
] }));
|
|
2847
2868
|
}
|
|
2848
2869
|
|
|
2849
2870
|
// src/molecules/radio-button-card.tsx
|
|
2850
|
-
var
|
|
2851
|
-
var
|
|
2852
|
-
var RadioCardContext = (0,
|
|
2871
|
+
var import_react29 = require("react");
|
|
2872
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2873
|
+
var RadioCardContext = (0, import_react29.createContext)({});
|
|
2853
2874
|
function Root10(props) {
|
|
2854
|
-
const [value, setValue] = (0,
|
|
2855
|
-
const onValueChange = (0,
|
|
2875
|
+
const [value, setValue] = (0, import_react29.useState)(props.value || props.defaultValue);
|
|
2876
|
+
const onValueChange = (0, import_react29.useCallback)(
|
|
2856
2877
|
(v) => {
|
|
2857
2878
|
var _a;
|
|
2858
2879
|
setValue(v);
|
|
@@ -2860,7 +2881,7 @@ function Root10(props) {
|
|
|
2860
2881
|
},
|
|
2861
2882
|
[props]
|
|
2862
2883
|
);
|
|
2863
|
-
return /* @__PURE__ */ (0,
|
|
2884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes33.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
2864
2885
|
}
|
|
2865
2886
|
function Item(_a) {
|
|
2866
2887
|
var _b = _a, {
|
|
@@ -2868,18 +2889,18 @@ function Item(_a) {
|
|
|
2868
2889
|
} = _b, itemRest = __objRest(_b, [
|
|
2869
2890
|
"children"
|
|
2870
2891
|
]);
|
|
2871
|
-
const _a2 = (0,
|
|
2892
|
+
const _a2 = (0, import_react29.useContext)(RadioCardContext), {
|
|
2872
2893
|
value,
|
|
2873
2894
|
justify,
|
|
2874
|
-
RadioWrapper =
|
|
2895
|
+
RadioWrapper = import_react29.Fragment
|
|
2875
2896
|
} = _a2, rootRest = __objRest(_a2, [
|
|
2876
2897
|
"value",
|
|
2877
2898
|
"justify",
|
|
2878
2899
|
"RadioWrapper"
|
|
2879
2900
|
]);
|
|
2880
|
-
return /* @__PURE__ */ (0,
|
|
2901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
2881
2902
|
children,
|
|
2882
|
-
/* @__PURE__ */ (0,
|
|
2903
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2883
2904
|
import_themes32.Radio,
|
|
2884
2905
|
{
|
|
2885
2906
|
checked: itemRest.value === value,
|
|
@@ -2896,24 +2917,24 @@ var RadioButtonCard = {
|
|
|
2896
2917
|
|
|
2897
2918
|
// src/molecules/download-card.tsx
|
|
2898
2919
|
var import_react_icons7 = require("@radix-ui/react-icons");
|
|
2899
|
-
var
|
|
2920
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2900
2921
|
function DownloadCard({
|
|
2901
2922
|
fileName,
|
|
2902
2923
|
url,
|
|
2903
2924
|
createdAt,
|
|
2904
2925
|
size
|
|
2905
2926
|
}) {
|
|
2906
|
-
return /* @__PURE__ */ (0,
|
|
2927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2907
2928
|
import_themes18.IconButton,
|
|
2908
2929
|
{
|
|
2909
2930
|
mt: "3",
|
|
2910
2931
|
size: "4",
|
|
2911
2932
|
style: { width: "100%", height: 56 },
|
|
2912
2933
|
variant: "soft",
|
|
2913
|
-
children: /* @__PURE__ */ (0,
|
|
2914
|
-
/* @__PURE__ */ (0,
|
|
2915
|
-
/* @__PURE__ */ (0,
|
|
2916
|
-
/* @__PURE__ */ (0,
|
|
2934
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes22.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
2935
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons7.DownloadIcon, { height: 20, width: 20 }) }),
|
|
2936
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes22.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
2937
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2917
2938
|
Typo,
|
|
2918
2939
|
{
|
|
2919
2940
|
style: {
|
|
@@ -2923,7 +2944,7 @@ function DownloadCard({
|
|
|
2923
2944
|
children: fileName
|
|
2924
2945
|
}
|
|
2925
2946
|
),
|
|
2926
|
-
/* @__PURE__ */ (0,
|
|
2947
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
2927
2948
|
] })
|
|
2928
2949
|
] })
|
|
2929
2950
|
}
|
|
@@ -2931,22 +2952,22 @@ function DownloadCard({
|
|
|
2931
2952
|
}
|
|
2932
2953
|
|
|
2933
2954
|
// src/molecules/ghost-post.tsx
|
|
2934
|
-
var
|
|
2955
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2935
2956
|
function GhostPost(props) {
|
|
2936
2957
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
2937
|
-
return /* @__PURE__ */ (0,
|
|
2958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2938
2959
|
ThemeProvider,
|
|
2939
2960
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2940
2961
|
accentColor: "iris",
|
|
2941
2962
|
scaling: "110%",
|
|
2942
2963
|
style: {},
|
|
2943
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2964
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2944
2965
|
"div",
|
|
2945
2966
|
{
|
|
2946
2967
|
className: "gh-content",
|
|
2947
2968
|
dangerouslySetInnerHTML: { __html: html }
|
|
2948
2969
|
}
|
|
2949
|
-
) }) : /* @__PURE__ */ (0,
|
|
2970
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2950
2971
|
import_themes22.Flex,
|
|
2951
2972
|
{
|
|
2952
2973
|
align: "center",
|
|
@@ -2956,8 +2977,8 @@ function GhostPost(props) {
|
|
|
2956
2977
|
justify: "center",
|
|
2957
2978
|
width: "100%",
|
|
2958
2979
|
children: [
|
|
2959
|
-
/* @__PURE__ */ (0,
|
|
2960
|
-
/* @__PURE__ */ (0,
|
|
2980
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2981
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2961
2982
|
Heading2,
|
|
2962
2983
|
{
|
|
2963
2984
|
align: "center",
|
|
@@ -2968,7 +2989,7 @@ function GhostPost(props) {
|
|
|
2968
2989
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2969
2990
|
}
|
|
2970
2991
|
),
|
|
2971
|
-
/* @__PURE__ */ (0,
|
|
2992
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2972
2993
|
]
|
|
2973
2994
|
}
|
|
2974
2995
|
)
|
|
@@ -2977,28 +2998,28 @@ function GhostPost(props) {
|
|
|
2977
2998
|
}
|
|
2978
2999
|
|
|
2979
3000
|
// src/theme/use-theme.tsx
|
|
2980
|
-
var
|
|
3001
|
+
var import_themes52 = require("@radix-ui/themes");
|
|
2981
3002
|
|
|
2982
3003
|
// src/ui-props/index.ts
|
|
2983
3004
|
var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
|
|
2984
3005
|
|
|
2985
3006
|
// src/charts/horizontal-bar-chart.tsx
|
|
2986
|
-
var
|
|
3007
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2987
3008
|
function HorizontalBarChart(props) {
|
|
2988
3009
|
const { total, value, backgroundColor, barColor, height } = props;
|
|
2989
|
-
return /* @__PURE__ */ (0,
|
|
3010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2990
3011
|
"div",
|
|
2991
3012
|
{
|
|
2992
3013
|
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
2993
3014
|
style: { height, backgroundColor },
|
|
2994
|
-
children: /* @__PURE__ */ (0,
|
|
3015
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2995
3016
|
"div",
|
|
2996
3017
|
{
|
|
2997
3018
|
style: {
|
|
2998
3019
|
width: `${Math.round(value / total * 100)}%`,
|
|
2999
3020
|
height: "100%"
|
|
3000
3021
|
},
|
|
3001
|
-
children: /* @__PURE__ */ (0,
|
|
3022
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
|
|
3002
3023
|
}
|
|
3003
3024
|
)
|
|
3004
3025
|
}
|
|
@@ -3154,23 +3175,23 @@ var EchartDefaultProps = {
|
|
|
3154
3175
|
};
|
|
3155
3176
|
|
|
3156
3177
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
3157
|
-
var
|
|
3178
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3158
3179
|
function CoachingCustomerInfoSmall({
|
|
3159
3180
|
customer,
|
|
3160
3181
|
children,
|
|
3161
3182
|
badge
|
|
3162
3183
|
}) {
|
|
3163
|
-
return /* @__PURE__ */ (0,
|
|
3184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3164
3185
|
import_themes22.Flex,
|
|
3165
3186
|
{
|
|
3166
3187
|
direction: { initial: "column", xs: "row" },
|
|
3167
3188
|
gap: "3",
|
|
3168
3189
|
justify: "between",
|
|
3169
3190
|
children: [
|
|
3170
|
-
/* @__PURE__ */ (0,
|
|
3171
|
-
/* @__PURE__ */ (0,
|
|
3172
|
-
/* @__PURE__ */ (0,
|
|
3173
|
-
/* @__PURE__ */ (0,
|
|
3191
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
3192
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
3193
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
3194
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
3174
3195
|
] }) }),
|
|
3175
3196
|
children
|
|
3176
3197
|
]
|
|
@@ -3181,7 +3202,7 @@ function CoachingCustomerInfoSmall({
|
|
|
3181
3202
|
// src/app/platform/userInfos/utils.tsx
|
|
3182
3203
|
var import_date_fns3 = require("date-fns");
|
|
3183
3204
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
3184
|
-
var
|
|
3205
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3185
3206
|
var infoList = [
|
|
3186
3207
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
3187
3208
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -3241,21 +3262,21 @@ var sessionList = [
|
|
|
3241
3262
|
var renderItem = (args) => {
|
|
3242
3263
|
const { info, data, onClickCopy } = args;
|
|
3243
3264
|
const value = info.getValue(data);
|
|
3244
|
-
return /* @__PURE__ */ (0,
|
|
3265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
3245
3266
|
info.render ? info.render(value) : value || "-",
|
|
3246
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
3267
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
3247
3268
|
] });
|
|
3248
3269
|
};
|
|
3249
3270
|
var renderDataListItem = (args) => {
|
|
3250
3271
|
const { info, data, onClickCopy } = args;
|
|
3251
|
-
return /* @__PURE__ */ (0,
|
|
3252
|
-
/* @__PURE__ */ (0,
|
|
3253
|
-
/* @__PURE__ */ (0,
|
|
3272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes15.DataList.Item, { children: [
|
|
3273
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
3274
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
3254
3275
|
] }, info.label);
|
|
3255
3276
|
};
|
|
3256
3277
|
function CopyButton(props) {
|
|
3257
3278
|
const { value, onClickCopy } = props;
|
|
3258
|
-
return /* @__PURE__ */ (0,
|
|
3279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3259
3280
|
Button,
|
|
3260
3281
|
{
|
|
3261
3282
|
color: "gray",
|
|
@@ -3264,13 +3285,13 @@ function CopyButton(props) {
|
|
|
3264
3285
|
},
|
|
3265
3286
|
style: { marginLeft: "0", marginTop: "0" },
|
|
3266
3287
|
variant: "transparent",
|
|
3267
|
-
children: /* @__PURE__ */ (0,
|
|
3288
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons8.CopyIcon, {})
|
|
3268
3289
|
}
|
|
3269
3290
|
);
|
|
3270
3291
|
}
|
|
3271
3292
|
|
|
3272
3293
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
3273
|
-
var
|
|
3294
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3274
3295
|
function CoachingCustomerInfoMedium({
|
|
3275
3296
|
customer,
|
|
3276
3297
|
session,
|
|
@@ -3278,28 +3299,28 @@ function CoachingCustomerInfoMedium({
|
|
|
3278
3299
|
badge,
|
|
3279
3300
|
onClickCopy
|
|
3280
3301
|
}) {
|
|
3281
|
-
return /* @__PURE__ */ (0,
|
|
3282
|
-
/* @__PURE__ */ (0,
|
|
3283
|
-
/* @__PURE__ */ (0,
|
|
3284
|
-
/* @__PURE__ */ (0,
|
|
3302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3303
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes6.Box, { children: [
|
|
3304
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
3305
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
3285
3306
|
badge
|
|
3286
3307
|
] }),
|
|
3287
|
-
/* @__PURE__ */ (0,
|
|
3308
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
3288
3309
|
] }),
|
|
3289
3310
|
children,
|
|
3290
|
-
/* @__PURE__ */ (0,
|
|
3311
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
3291
3312
|
(el) => renderDataListItem({
|
|
3292
3313
|
info: el,
|
|
3293
3314
|
data: session,
|
|
3294
3315
|
onClickCopy
|
|
3295
3316
|
})
|
|
3296
3317
|
) }) }),
|
|
3297
|
-
/* @__PURE__ */ (0,
|
|
3298
|
-
/* @__PURE__ */ (0,
|
|
3299
|
-
/* @__PURE__ */ (0,
|
|
3318
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
3319
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
3320
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes39.Separator, { size: "4" })
|
|
3300
3321
|
] }),
|
|
3301
|
-
/* @__PURE__ */ (0,
|
|
3302
|
-
return /* @__PURE__ */ (0,
|
|
3322
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
3323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typo, { children: renderItem({
|
|
3303
3324
|
info: el,
|
|
3304
3325
|
data: customer,
|
|
3305
3326
|
onClickCopy
|
|
@@ -3309,7 +3330,7 @@ function CoachingCustomerInfoMedium({
|
|
|
3309
3330
|
}
|
|
3310
3331
|
|
|
3311
3332
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
3312
|
-
var
|
|
3333
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3313
3334
|
function CoachingCustomerInfoLarge({
|
|
3314
3335
|
customer,
|
|
3315
3336
|
session,
|
|
@@ -3317,24 +3338,24 @@ function CoachingCustomerInfoLarge({
|
|
|
3317
3338
|
badge,
|
|
3318
3339
|
onClickCopy
|
|
3319
3340
|
}) {
|
|
3320
|
-
return /* @__PURE__ */ (0,
|
|
3321
|
-
/* @__PURE__ */ (0,
|
|
3322
|
-
/* @__PURE__ */ (0,
|
|
3323
|
-
/* @__PURE__ */ (0,
|
|
3341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3342
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes6.Box, { children: [
|
|
3343
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
3344
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
3324
3345
|
badge
|
|
3325
3346
|
] }),
|
|
3326
|
-
/* @__PURE__ */ (0,
|
|
3347
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
3327
3348
|
] }),
|
|
3328
3349
|
children,
|
|
3329
|
-
/* @__PURE__ */ (0,
|
|
3350
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
3330
3351
|
(el) => renderDataListItem({
|
|
3331
3352
|
info: el,
|
|
3332
3353
|
data: session,
|
|
3333
3354
|
onClickCopy
|
|
3334
3355
|
})
|
|
3335
3356
|
) }) }),
|
|
3336
|
-
/* @__PURE__ */ (0,
|
|
3337
|
-
/* @__PURE__ */ (0,
|
|
3357
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes39.Separator, { size: "4" }),
|
|
3358
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
3338
3359
|
(info) => renderDataListItem({
|
|
3339
3360
|
info,
|
|
3340
3361
|
data: customer,
|
|
@@ -3345,19 +3366,19 @@ function CoachingCustomerInfoLarge({
|
|
|
3345
3366
|
}
|
|
3346
3367
|
|
|
3347
3368
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
3348
|
-
var
|
|
3369
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3349
3370
|
function CoachingCustomerInfo(props) {
|
|
3350
|
-
return /* @__PURE__ */ (0,
|
|
3351
|
-
/* @__PURE__ */ (0,
|
|
3352
|
-
/* @__PURE__ */ (0,
|
|
3353
|
-
/* @__PURE__ */ (0,
|
|
3371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
3372
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes6.Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
3373
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes6.Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
3374
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes6.Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
3354
3375
|
] });
|
|
3355
3376
|
}
|
|
3356
3377
|
|
|
3357
3378
|
// src/app/platform/goal-manage-card-read.tsx
|
|
3358
|
-
var
|
|
3379
|
+
var import_react30 = require("react");
|
|
3359
3380
|
var import_date_fns4 = require("date-fns");
|
|
3360
|
-
var
|
|
3381
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3361
3382
|
function GoalManageCardRead(props) {
|
|
3362
3383
|
const {
|
|
3363
3384
|
title,
|
|
@@ -3371,12 +3392,12 @@ function GoalManageCardRead(props) {
|
|
|
3371
3392
|
onClickIncomplete,
|
|
3372
3393
|
onClickComplete
|
|
3373
3394
|
} = props;
|
|
3374
|
-
const [open, setOpen] = (0,
|
|
3375
|
-
const onClickOpen = (0,
|
|
3395
|
+
const [open, setOpen] = (0, import_react30.useState)(Boolean(defaultOpen));
|
|
3396
|
+
const onClickOpen = (0, import_react30.useCallback)(() => {
|
|
3376
3397
|
setOpen((p) => !p);
|
|
3377
3398
|
}, []);
|
|
3378
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
3379
|
-
const badgeMeta = (0,
|
|
3399
|
+
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_icons2.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_icons2.ChevronDownIcon, {});
|
|
3400
|
+
const badgeMeta = (0, import_react30.useMemo)(() => {
|
|
3380
3401
|
if (!completed && dueDate) {
|
|
3381
3402
|
if (dueDate >= (0, import_date_fns4.startOfDay)(/* @__PURE__ */ new Date()))
|
|
3382
3403
|
return {
|
|
@@ -3387,41 +3408,41 @@ function GoalManageCardRead(props) {
|
|
|
3387
3408
|
}
|
|
3388
3409
|
return null;
|
|
3389
3410
|
}, [completed, dueDate]);
|
|
3390
|
-
const renderSubTitle = (0,
|
|
3391
|
-
return /* @__PURE__ */ (0,
|
|
3411
|
+
const renderSubTitle = (0, import_react30.useCallback)((subTitle) => {
|
|
3412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
3392
3413
|
}, []);
|
|
3393
|
-
const renderSubContent = (0,
|
|
3394
|
-
return /* @__PURE__ */ (0,
|
|
3414
|
+
const renderSubContent = (0, import_react30.useCallback)((content) => {
|
|
3415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
3395
3416
|
}, []);
|
|
3396
|
-
const renderCompleteButton = (0,
|
|
3417
|
+
const renderCompleteButton = (0, import_react30.useCallback)(() => {
|
|
3397
3418
|
if (completed) {
|
|
3398
|
-
return /* @__PURE__ */ (0,
|
|
3419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
3399
3420
|
}
|
|
3400
|
-
return /* @__PURE__ */ (0,
|
|
3401
|
-
/* @__PURE__ */ (0,
|
|
3402
|
-
/* @__PURE__ */ (0,
|
|
3421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes29.Popover.Root, { children: [
|
|
3422
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Button, { size: "small", children: [
|
|
3423
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_icons2.RocketIcon, {}),
|
|
3403
3424
|
"\uB2EC\uC131\uD558\uAE30"
|
|
3404
3425
|
] }) }),
|
|
3405
|
-
/* @__PURE__ */ (0,
|
|
3406
|
-
/* @__PURE__ */ (0,
|
|
3407
|
-
/* @__PURE__ */ (0,
|
|
3408
|
-
/* @__PURE__ */ (0,
|
|
3409
|
-
/* @__PURE__ */ (0,
|
|
3426
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes29.Popover.Content, { children: [
|
|
3427
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
3428
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
3429
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
3430
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { onClick: onClickComplete, size: "small", children: "\uC608" }) })
|
|
3410
3431
|
] })
|
|
3411
3432
|
] })
|
|
3412
3433
|
] });
|
|
3413
3434
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
3414
|
-
return /* @__PURE__ */ (0,
|
|
3415
|
-
/* @__PURE__ */ (0,
|
|
3416
|
-
/* @__PURE__ */ (0,
|
|
3417
|
-
/* @__PURE__ */ (0,
|
|
3418
|
-
/* @__PURE__ */ (0,
|
|
3419
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
3420
|
-
/* @__PURE__ */ (0,
|
|
3435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
3436
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes18.IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
3437
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
3438
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
3439
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
3440
|
+
badgeMeta ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge, __spreadValues({}, badgeMeta)) : null,
|
|
3441
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns4.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
3421
3442
|
] }),
|
|
3422
3443
|
renderCompleteButton()
|
|
3423
3444
|
] }),
|
|
3424
|
-
open ? /* @__PURE__ */ (0,
|
|
3445
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3425
3446
|
import_themes39.Separator,
|
|
3426
3447
|
{
|
|
3427
3448
|
mb: "4",
|
|
@@ -3430,37 +3451,37 @@ function GoalManageCardRead(props) {
|
|
|
3430
3451
|
style: { gridColumnStart: "span 2" }
|
|
3431
3452
|
}
|
|
3432
3453
|
) : null,
|
|
3433
|
-
/* @__PURE__ */ (0,
|
|
3434
|
-
/* @__PURE__ */ (0,
|
|
3435
|
-
/* @__PURE__ */ (0,
|
|
3454
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Collapse, { open, children: [
|
|
3455
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3456
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes6.Box, { children: [
|
|
3436
3457
|
renderSubTitle(
|
|
3437
3458
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
3438
3459
|
),
|
|
3439
3460
|
renderSubContent(expectedEffect)
|
|
3440
3461
|
] }),
|
|
3441
|
-
/* @__PURE__ */ (0,
|
|
3462
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes6.Box, { children: [
|
|
3442
3463
|
renderSubTitle(
|
|
3443
3464
|
"\uBAA9\uD45C\uB97C \uC774\uB8E8\uAE30\uAE4C\uC9C0 \uBC29\uD574\uAC00 \uB420 \uC218 \uC788\uB294 \uC694\uC18C\uB4E4\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4"
|
|
3444
3465
|
),
|
|
3445
3466
|
renderSubContent(huddle)
|
|
3446
3467
|
] })
|
|
3447
3468
|
] }),
|
|
3448
|
-
/* @__PURE__ */ (0,
|
|
3449
|
-
/* @__PURE__ */ (0,
|
|
3450
|
-
/* @__PURE__ */ (0,
|
|
3451
|
-
/* @__PURE__ */ (0,
|
|
3469
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
3470
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes29.Popover.Root, { children: [
|
|
3471
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Button, { color: "gray", size: "small", variant: "ghost", children: [
|
|
3472
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_icons2.TrashIcon, {}),
|
|
3452
3473
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
3453
3474
|
] }) }),
|
|
3454
|
-
/* @__PURE__ */ (0,
|
|
3455
|
-
/* @__PURE__ */ (0,
|
|
3456
|
-
/* @__PURE__ */ (0,
|
|
3457
|
-
/* @__PURE__ */ (0,
|
|
3458
|
-
/* @__PURE__ */ (0,
|
|
3475
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes29.Popover.Content, { children: [
|
|
3476
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
3477
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
3478
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
3479
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { onClick: onClickDelete, size: "small", children: "\uC608" }) })
|
|
3459
3480
|
] })
|
|
3460
3481
|
] })
|
|
3461
3482
|
] }),
|
|
3462
|
-
/* @__PURE__ */ (0,
|
|
3463
|
-
/* @__PURE__ */ (0,
|
|
3483
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Button, { onClick: onClickEdit, size: "small", variant: "surface", children: [
|
|
3484
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_icons2.Pencil1Icon, {}),
|
|
3464
3485
|
"\uC218\uC815\uD558\uAE30"
|
|
3465
3486
|
] })
|
|
3466
3487
|
] })
|
|
@@ -3469,9 +3490,9 @@ function GoalManageCardRead(props) {
|
|
|
3469
3490
|
}
|
|
3470
3491
|
|
|
3471
3492
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
3472
|
-
var
|
|
3493
|
+
var import_react31 = require("react");
|
|
3473
3494
|
var import_date_fns5 = require("date-fns");
|
|
3474
|
-
var
|
|
3495
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3475
3496
|
var initialValues = {
|
|
3476
3497
|
goal: "",
|
|
3477
3498
|
effect: "",
|
|
@@ -3482,8 +3503,8 @@ var dummyFn = () => {
|
|
|
3482
3503
|
};
|
|
3483
3504
|
function GoalManageCardEdit(props) {
|
|
3484
3505
|
const { defaultValues, errors } = props;
|
|
3485
|
-
const [values, setValues] = (0,
|
|
3486
|
-
const onChange = (0,
|
|
3506
|
+
const [values, setValues] = (0, import_react31.useState)(defaultValues || initialValues);
|
|
3507
|
+
const onChange = (0, import_react31.useCallback)(
|
|
3487
3508
|
(v) => {
|
|
3488
3509
|
var _a;
|
|
3489
3510
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -3491,20 +3512,20 @@ function GoalManageCardEdit(props) {
|
|
|
3491
3512
|
},
|
|
3492
3513
|
[props]
|
|
3493
3514
|
);
|
|
3494
|
-
const onClickInit = (0,
|
|
3515
|
+
const onClickInit = (0, import_react31.useCallback)(() => {
|
|
3495
3516
|
var _a;
|
|
3496
3517
|
setValues(initialValues);
|
|
3497
3518
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
3498
3519
|
}, [defaultValues, props]);
|
|
3499
|
-
const onClickSubmit = (0,
|
|
3520
|
+
const onClickSubmit = (0, import_react31.useCallback)(() => {
|
|
3500
3521
|
var _a;
|
|
3501
3522
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
3502
3523
|
}, [props, values]);
|
|
3503
|
-
return /* @__PURE__ */ (0,
|
|
3504
|
-
/* @__PURE__ */ (0,
|
|
3505
|
-
/* @__PURE__ */ (0,
|
|
3506
|
-
/* @__PURE__ */ (0,
|
|
3507
|
-
/* @__PURE__ */ (0,
|
|
3524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
3525
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3526
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Field, { name: "title", children: [
|
|
3527
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
3528
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3508
3529
|
TextField.Root,
|
|
3509
3530
|
{
|
|
3510
3531
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -3515,11 +3536,11 @@ function GoalManageCardEdit(props) {
|
|
|
3515
3536
|
value: values.goal
|
|
3516
3537
|
}
|
|
3517
3538
|
),
|
|
3518
|
-
/* @__PURE__ */ (0,
|
|
3539
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
3519
3540
|
] }),
|
|
3520
|
-
/* @__PURE__ */ (0,
|
|
3521
|
-
/* @__PURE__ */ (0,
|
|
3522
|
-
/* @__PURE__ */ (0,
|
|
3541
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Field, { name: "effect", children: [
|
|
3542
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
3543
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3523
3544
|
TextArea,
|
|
3524
3545
|
{
|
|
3525
3546
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -3531,11 +3552,11 @@ function GoalManageCardEdit(props) {
|
|
|
3531
3552
|
value: values.effect
|
|
3532
3553
|
}
|
|
3533
3554
|
),
|
|
3534
|
-
/* @__PURE__ */ (0,
|
|
3555
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
3535
3556
|
] }),
|
|
3536
|
-
/* @__PURE__ */ (0,
|
|
3537
|
-
/* @__PURE__ */ (0,
|
|
3538
|
-
/* @__PURE__ */ (0,
|
|
3557
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Field, { name: "huddle", children: [
|
|
3558
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
3559
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3539
3560
|
TextArea,
|
|
3540
3561
|
{
|
|
3541
3562
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -3549,11 +3570,11 @@ function GoalManageCardEdit(props) {
|
|
|
3549
3570
|
value: values.huddle
|
|
3550
3571
|
}
|
|
3551
3572
|
),
|
|
3552
|
-
/* @__PURE__ */ (0,
|
|
3573
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
3553
3574
|
] }),
|
|
3554
|
-
/* @__PURE__ */ (0,
|
|
3555
|
-
/* @__PURE__ */ (0,
|
|
3556
|
-
/* @__PURE__ */ (0,
|
|
3575
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
3576
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
3577
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3557
3578
|
DatePickerButton,
|
|
3558
3579
|
{
|
|
3559
3580
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -3564,11 +3585,11 @@ function GoalManageCardEdit(props) {
|
|
|
3564
3585
|
selected: values.dueDate
|
|
3565
3586
|
}
|
|
3566
3587
|
),
|
|
3567
|
-
/* @__PURE__ */ (0,
|
|
3588
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
3568
3589
|
] })
|
|
3569
3590
|
] }),
|
|
3570
|
-
/* @__PURE__ */ (0,
|
|
3571
|
-
/* @__PURE__ */ (0,
|
|
3591
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
3592
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3572
3593
|
Button,
|
|
3573
3594
|
{
|
|
3574
3595
|
color: "gray",
|
|
@@ -3579,18 +3600,18 @@ function GoalManageCardEdit(props) {
|
|
|
3579
3600
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
3580
3601
|
}
|
|
3581
3602
|
),
|
|
3582
|
-
/* @__PURE__ */ (0,
|
|
3603
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
3583
3604
|
] })
|
|
3584
3605
|
] }) });
|
|
3585
3606
|
}
|
|
3586
3607
|
|
|
3587
3608
|
// src/app/platform/session-card.tsx
|
|
3588
|
-
var
|
|
3609
|
+
var import_react34 = require("react");
|
|
3589
3610
|
var import_date_fns6 = require("date-fns");
|
|
3590
3611
|
|
|
3591
3612
|
// src/app/platform/edit-coaching-time.tsx
|
|
3592
|
-
var
|
|
3593
|
-
var
|
|
3613
|
+
var import_react32 = require("react");
|
|
3614
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3594
3615
|
var getValueFromDefaultValue = (args) => {
|
|
3595
3616
|
return {
|
|
3596
3617
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -3610,14 +3631,14 @@ var getDateFromValue = (date, time) => {
|
|
|
3610
3631
|
};
|
|
3611
3632
|
function EditCoachingTime(props) {
|
|
3612
3633
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
3613
|
-
const [values, setValues] = (0,
|
|
3634
|
+
const [values, setValues] = (0, import_react32.useState)(() => {
|
|
3614
3635
|
return getValueFromDefaultValue({
|
|
3615
3636
|
startAt: defaultStartAt,
|
|
3616
3637
|
endAt: defaultEndAt
|
|
3617
3638
|
});
|
|
3618
3639
|
});
|
|
3619
|
-
const [timeError, setTimeError] = (0,
|
|
3620
|
-
const checkTimeError = (0,
|
|
3640
|
+
const [timeError, setTimeError] = (0, import_react32.useState)("");
|
|
3641
|
+
const checkTimeError = (0, import_react32.useCallback)(
|
|
3621
3642
|
(startTime, endTime) => {
|
|
3622
3643
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
3623
3644
|
if (error) {
|
|
@@ -3628,7 +3649,7 @@ function EditCoachingTime(props) {
|
|
|
3628
3649
|
},
|
|
3629
3650
|
[]
|
|
3630
3651
|
);
|
|
3631
|
-
const onChangeStartTime = (0,
|
|
3652
|
+
const onChangeStartTime = (0, import_react32.useCallback)(
|
|
3632
3653
|
(v) => {
|
|
3633
3654
|
checkTimeError(v, values.endTime);
|
|
3634
3655
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3637,7 +3658,7 @@ function EditCoachingTime(props) {
|
|
|
3637
3658
|
},
|
|
3638
3659
|
[checkTimeError, values.endTime]
|
|
3639
3660
|
);
|
|
3640
|
-
const onChangeEndTime = (0,
|
|
3661
|
+
const onChangeEndTime = (0, import_react32.useCallback)(
|
|
3641
3662
|
(v) => {
|
|
3642
3663
|
checkTimeError(values.startTime, v);
|
|
3643
3664
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3646,12 +3667,12 @@ function EditCoachingTime(props) {
|
|
|
3646
3667
|
},
|
|
3647
3668
|
[checkTimeError, values.startTime]
|
|
3648
3669
|
);
|
|
3649
|
-
const onChangeDate = (0,
|
|
3670
|
+
const onChangeDate = (0, import_react32.useCallback)((date) => {
|
|
3650
3671
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
3651
3672
|
date
|
|
3652
3673
|
}));
|
|
3653
3674
|
}, []);
|
|
3654
|
-
const onClickSave = (0,
|
|
3675
|
+
const onClickSave = (0, import_react32.useCallback)(() => {
|
|
3655
3676
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
3656
3677
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
3657
3678
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -3660,10 +3681,10 @@ function EditCoachingTime(props) {
|
|
|
3660
3681
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
3661
3682
|
}
|
|
3662
3683
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
3663
|
-
return /* @__PURE__ */ (0,
|
|
3664
|
-
/* @__PURE__ */ (0,
|
|
3665
|
-
/* @__PURE__ */ (0,
|
|
3666
|
-
/* @__PURE__ */ (0,
|
|
3684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Form.Root, { children: [
|
|
3685
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Form.Field, { name: "date", children: [
|
|
3686
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
3687
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3667
3688
|
DatePickerButton,
|
|
3668
3689
|
{
|
|
3669
3690
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -3673,7 +3694,7 @@ function EditCoachingTime(props) {
|
|
|
3673
3694
|
}
|
|
3674
3695
|
)
|
|
3675
3696
|
] }),
|
|
3676
|
-
/* @__PURE__ */ (0,
|
|
3697
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
3677
3698
|
import_themes23.Grid,
|
|
3678
3699
|
{
|
|
3679
3700
|
align: "center",
|
|
@@ -3688,10 +3709,10 @@ function EditCoachingTime(props) {
|
|
|
3688
3709
|
mt: "5",
|
|
3689
3710
|
width: "100%",
|
|
3690
3711
|
children: [
|
|
3691
|
-
/* @__PURE__ */ (0,
|
|
3692
|
-
/* @__PURE__ */ (0,
|
|
3693
|
-
/* @__PURE__ */ (0,
|
|
3694
|
-
/* @__PURE__ */ (0,
|
|
3712
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
3713
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {}),
|
|
3714
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
3715
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3695
3716
|
TimeSelect,
|
|
3696
3717
|
{
|
|
3697
3718
|
onValueChange: onChangeStartTime,
|
|
@@ -3699,8 +3720,8 @@ function EditCoachingTime(props) {
|
|
|
3699
3720
|
value: values.startTime
|
|
3700
3721
|
}
|
|
3701
3722
|
),
|
|
3702
|
-
/* @__PURE__ */ (0,
|
|
3703
|
-
/* @__PURE__ */ (0,
|
|
3723
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes39.Separator, {}) }),
|
|
3724
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3704
3725
|
TimeSelect,
|
|
3705
3726
|
{
|
|
3706
3727
|
onValueChange: onChangeEndTime,
|
|
@@ -3708,36 +3729,36 @@ function EditCoachingTime(props) {
|
|
|
3708
3729
|
value: values.endTime
|
|
3709
3730
|
}
|
|
3710
3731
|
),
|
|
3711
|
-
/* @__PURE__ */ (0,
|
|
3732
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
3712
3733
|
]
|
|
3713
3734
|
}
|
|
3714
3735
|
),
|
|
3715
|
-
/* @__PURE__ */ (0,
|
|
3716
|
-
/* @__PURE__ */ (0,
|
|
3717
|
-
/* @__PURE__ */ (0,
|
|
3736
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
3737
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
3738
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
3718
3739
|
] })
|
|
3719
3740
|
] }) });
|
|
3720
3741
|
}
|
|
3721
3742
|
|
|
3722
3743
|
// src/app/platform/edit-service-type.tsx
|
|
3723
|
-
var
|
|
3744
|
+
var import_react33 = require("react");
|
|
3724
3745
|
|
|
3725
3746
|
// src/app/platform/on-offline-radio-card.tsx
|
|
3726
3747
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
3727
|
-
var
|
|
3748
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3728
3749
|
var SERVICE_TYPE = {
|
|
3729
3750
|
onlineCoaching: "onlineCoaching",
|
|
3730
3751
|
offlineCoaching: "offlineCoaching"
|
|
3731
3752
|
};
|
|
3732
3753
|
var breakpoint = "sm";
|
|
3733
3754
|
function HideSmallBox(props) {
|
|
3734
|
-
return /* @__PURE__ */ (0,
|
|
3755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
3735
3756
|
}
|
|
3736
3757
|
function OnOfflineRadioCard(props) {
|
|
3737
3758
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
3738
3759
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
3739
3760
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
3740
|
-
return /* @__PURE__ */ (0,
|
|
3761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
3741
3762
|
RadioButtonCard.Root,
|
|
3742
3763
|
__spreadProps(__spreadValues({
|
|
3743
3764
|
RadioWrapper: Wrapper,
|
|
@@ -3746,13 +3767,13 @@ function OnOfflineRadioCard(props) {
|
|
|
3746
3767
|
justify
|
|
3747
3768
|
}, props), {
|
|
3748
3769
|
children: [
|
|
3749
|
-
/* @__PURE__ */ (0,
|
|
3750
|
-
/* @__PURE__ */ (0,
|
|
3751
|
-
/* @__PURE__ */ (0,
|
|
3770
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
3771
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons9.GlobeIcon, {}) }),
|
|
3772
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
3752
3773
|
] }) }),
|
|
3753
|
-
/* @__PURE__ */ (0,
|
|
3754
|
-
/* @__PURE__ */ (0,
|
|
3755
|
-
/* @__PURE__ */ (0,
|
|
3774
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
3775
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons9.BackpackIcon, {}) }),
|
|
3776
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
3756
3777
|
] }) })
|
|
3757
3778
|
]
|
|
3758
3779
|
})
|
|
@@ -3760,18 +3781,18 @@ function OnOfflineRadioCard(props) {
|
|
|
3760
3781
|
}
|
|
3761
3782
|
|
|
3762
3783
|
// src/app/platform/edit-service-type.tsx
|
|
3763
|
-
var
|
|
3784
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3764
3785
|
function EditServiceType(props) {
|
|
3765
3786
|
const { defaultServiceType, onClickCancel } = props;
|
|
3766
|
-
const [sessionType, setSessionType] = (0,
|
|
3787
|
+
const [sessionType, setSessionType] = (0, import_react33.useState)(
|
|
3767
3788
|
defaultServiceType
|
|
3768
3789
|
);
|
|
3769
|
-
const onClickSave = (0,
|
|
3790
|
+
const onClickSave = (0, import_react33.useCallback)(() => {
|
|
3770
3791
|
var _a;
|
|
3771
3792
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
3772
3793
|
}, [props, sessionType]);
|
|
3773
|
-
return /* @__PURE__ */ (0,
|
|
3774
|
-
/* @__PURE__ */ (0,
|
|
3794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes6.Box, { children: [
|
|
3795
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3775
3796
|
Typo,
|
|
3776
3797
|
{
|
|
3777
3798
|
as: "p",
|
|
@@ -3781,16 +3802,16 @@ function EditServiceType(props) {
|
|
|
3781
3802
|
children: "\uC138\uC158 \uC720\uD615\uC5D0 \uB530\uB77C \uCC45\uC815\uB418\uB294 \uCF54\uCE6D \uAE08\uC561\uC774 \uB2EC\uB77C\uC9C0\uBBC0\uB85C, \uC815\uD655\uD558\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694"
|
|
3782
3803
|
}
|
|
3783
3804
|
),
|
|
3784
|
-
/* @__PURE__ */ (0,
|
|
3785
|
-
/* @__PURE__ */ (0,
|
|
3786
|
-
/* @__PURE__ */ (0,
|
|
3787
|
-
/* @__PURE__ */ (0,
|
|
3805
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
3806
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
3807
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
3808
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
3788
3809
|
] })
|
|
3789
3810
|
] });
|
|
3790
3811
|
}
|
|
3791
3812
|
|
|
3792
3813
|
// src/app/platform/session-card.tsx
|
|
3793
|
-
var
|
|
3814
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
3794
3815
|
var preventDefault4 = (e) => {
|
|
3795
3816
|
e.preventDefault();
|
|
3796
3817
|
};
|
|
@@ -3820,34 +3841,34 @@ function SessionCard(props) {
|
|
|
3820
3841
|
"endAt",
|
|
3821
3842
|
"sessionType"
|
|
3822
3843
|
]);
|
|
3823
|
-
const renderEditButton = (0,
|
|
3824
|
-
return /* @__PURE__ */ (0,
|
|
3844
|
+
const renderEditButton = (0, import_react34.useCallback)(() => {
|
|
3845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
3825
3846
|
}, []);
|
|
3826
|
-
const sessionTimeStr = (0,
|
|
3847
|
+
const sessionTimeStr = (0, import_react34.useMemo)(() => {
|
|
3827
3848
|
if (!startAt || !endAt)
|
|
3828
3849
|
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
3829
3850
|
return `${(0, import_date_fns6.format)(startAt, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84")} ~ ${(0, import_date_fns6.format)(endAt, "HH\uC2DC mm\uBD84")}`;
|
|
3830
3851
|
}, [startAt, endAt]);
|
|
3831
|
-
return /* @__PURE__ */ (0,
|
|
3832
|
-
/* @__PURE__ */ (0,
|
|
3833
|
-
/* @__PURE__ */ (0,
|
|
3852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
3853
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
3854
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
3834
3855
|
TitleExtra,
|
|
3835
|
-
error ? /* @__PURE__ */ (0,
|
|
3856
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
3836
3857
|
] }),
|
|
3837
|
-
/* @__PURE__ */ (0,
|
|
3838
|
-
/* @__PURE__ */ (0,
|
|
3839
|
-
/* @__PURE__ */ (0,
|
|
3840
|
-
/* @__PURE__ */ (0,
|
|
3858
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes15.DataList.Root, { children: [
|
|
3859
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes15.DataList.Item, { children: [
|
|
3860
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
3861
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes15.DataList.Value, { children: [
|
|
3841
3862
|
sessionTimeStr,
|
|
3842
|
-
editable ? /* @__PURE__ */ (0,
|
|
3843
|
-
/* @__PURE__ */ (0,
|
|
3844
|
-
/* @__PURE__ */ (0,
|
|
3863
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Dialog.Root, { children: [
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
3865
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3845
3866
|
Dialog.Content,
|
|
3846
3867
|
{
|
|
3847
3868
|
onOpenAutoFocus: preventDefault4,
|
|
3848
3869
|
style: { overflow: "visible" },
|
|
3849
3870
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
3850
|
-
children: /* @__PURE__ */ (0,
|
|
3871
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3851
3872
|
EditCoachingTime,
|
|
3852
3873
|
{
|
|
3853
3874
|
defaultEndAt: endAt,
|
|
@@ -3860,18 +3881,18 @@ function SessionCard(props) {
|
|
|
3860
3881
|
] }) : null
|
|
3861
3882
|
] })
|
|
3862
3883
|
] }),
|
|
3863
|
-
/* @__PURE__ */ (0,
|
|
3864
|
-
/* @__PURE__ */ (0,
|
|
3865
|
-
/* @__PURE__ */ (0,
|
|
3866
|
-
/* @__PURE__ */ (0,
|
|
3884
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
3885
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes15.DataList.Item, { children: [
|
|
3886
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
3887
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes15.DataList.Value, { children: [
|
|
3867
3888
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
3868
|
-
editable ? /* @__PURE__ */ (0,
|
|
3869
|
-
/* @__PURE__ */ (0,
|
|
3870
|
-
/* @__PURE__ */ (0,
|
|
3889
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Dialog.Root, { children: [
|
|
3890
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
3891
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3871
3892
|
Dialog.Content,
|
|
3872
3893
|
{
|
|
3873
3894
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
3874
|
-
children: /* @__PURE__ */ (0,
|
|
3895
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3875
3896
|
EditServiceType,
|
|
3876
3897
|
{
|
|
3877
3898
|
defaultServiceType: sessionType,
|
|
@@ -3883,32 +3904,32 @@ function SessionCard(props) {
|
|
|
3883
3904
|
] }) : null
|
|
3884
3905
|
] })
|
|
3885
3906
|
] }),
|
|
3886
|
-
/* @__PURE__ */ (0,
|
|
3907
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
3887
3908
|
] })
|
|
3888
3909
|
] })
|
|
3889
3910
|
] }) }));
|
|
3890
3911
|
}
|
|
3891
3912
|
|
|
3892
3913
|
// src/app/platform/coach-question-list.tsx
|
|
3893
|
-
var
|
|
3914
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3894
3915
|
function QuestionItem({ question, answer }) {
|
|
3895
|
-
return /* @__PURE__ */ (0,
|
|
3896
|
-
/* @__PURE__ */ (0,
|
|
3897
|
-
/* @__PURE__ */ (0,
|
|
3916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes6.Box, { children: [
|
|
3917
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
3918
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
3898
3919
|
] }, question);
|
|
3899
3920
|
}
|
|
3900
3921
|
function CoachQuestionList({
|
|
3901
3922
|
questions
|
|
3902
3923
|
}) {
|
|
3903
|
-
return /* @__PURE__ */ (0,
|
|
3904
|
-
return /* @__PURE__ */ (0,
|
|
3924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
3925
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
3905
3926
|
}) });
|
|
3906
3927
|
}
|
|
3907
3928
|
|
|
3908
3929
|
// src/app/platform/reservation-card.tsx
|
|
3909
|
-
var
|
|
3930
|
+
var import_react35 = require("react");
|
|
3910
3931
|
var import_date_fns7 = require("date-fns");
|
|
3911
|
-
var
|
|
3932
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3912
3933
|
function ReservationCard(props) {
|
|
3913
3934
|
const {
|
|
3914
3935
|
sessionNumber,
|
|
@@ -3923,30 +3944,30 @@ function ReservationCard(props) {
|
|
|
3923
3944
|
onClickCancel,
|
|
3924
3945
|
onClickCompleteSession
|
|
3925
3946
|
} = props;
|
|
3926
|
-
const [editValues, setEditValues] = (0,
|
|
3947
|
+
const [editValues, setEditValues] = (0, import_react35.useState)({
|
|
3927
3948
|
date: props.defaultTime,
|
|
3928
3949
|
type: props.defaultType
|
|
3929
3950
|
});
|
|
3930
3951
|
const date = readonly ? defaultTime : editValues.date;
|
|
3931
3952
|
const type = readonly ? defaultType : editValues.type;
|
|
3932
3953
|
const time = date && getTimeOption(date);
|
|
3933
|
-
const onClickSave = (0,
|
|
3954
|
+
const onClickSave = (0, import_react35.useCallback)(() => {
|
|
3934
3955
|
var _a;
|
|
3935
3956
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
3936
3957
|
}, [editValues, props]);
|
|
3937
|
-
const onClickReset = (0,
|
|
3958
|
+
const onClickReset = (0, import_react35.useCallback)(() => {
|
|
3938
3959
|
setEditValues({
|
|
3939
3960
|
date: defaultTime,
|
|
3940
3961
|
type: defaultType
|
|
3941
3962
|
});
|
|
3942
3963
|
}, [defaultTime, defaultType]);
|
|
3943
|
-
const ActionButtons = (0,
|
|
3964
|
+
const ActionButtons = (0, import_react35.useMemo)(() => {
|
|
3944
3965
|
if (readonly) {
|
|
3945
|
-
return /* @__PURE__ */ (0,
|
|
3966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
3946
3967
|
}
|
|
3947
|
-
return /* @__PURE__ */ (0,
|
|
3968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
3948
3969
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
3949
|
-
const onChangeDate = (0,
|
|
3970
|
+
const onChangeDate = (0, import_react35.useCallback)(
|
|
3950
3971
|
(newDate) => {
|
|
3951
3972
|
if (!newDate)
|
|
3952
3973
|
return;
|
|
@@ -3959,14 +3980,14 @@ function ReservationCard(props) {
|
|
|
3959
3980
|
},
|
|
3960
3981
|
[time]
|
|
3961
3982
|
);
|
|
3962
|
-
const onChangeType = (0,
|
|
3983
|
+
const onChangeType = (0, import_react35.useCallback)((newType) => {
|
|
3963
3984
|
setEditValues((prev) => {
|
|
3964
3985
|
return __spreadProps(__spreadValues({}, prev), {
|
|
3965
3986
|
type: newType
|
|
3966
3987
|
});
|
|
3967
3988
|
});
|
|
3968
3989
|
}, []);
|
|
3969
|
-
const onChangeTime = (0,
|
|
3990
|
+
const onChangeTime = (0, import_react35.useCallback)(
|
|
3970
3991
|
(v) => {
|
|
3971
3992
|
const { hour, minute } = parseTimeOption(v);
|
|
3972
3993
|
if (typeof v === "undefined") {
|
|
@@ -3984,7 +4005,7 @@ function ReservationCard(props) {
|
|
|
3984
4005
|
},
|
|
3985
4006
|
[date]
|
|
3986
4007
|
);
|
|
3987
|
-
(0,
|
|
4008
|
+
(0, import_react35.useEffect)(() => {
|
|
3988
4009
|
if (!minTime || !editValues.date || readonly)
|
|
3989
4010
|
return;
|
|
3990
4011
|
if (editValues.date < minTime) {
|
|
@@ -3996,7 +4017,7 @@ function ReservationCard(props) {
|
|
|
3996
4017
|
});
|
|
3997
4018
|
}
|
|
3998
4019
|
}, [editValues, minTime, readonly]);
|
|
3999
|
-
(0,
|
|
4020
|
+
(0, import_react35.useEffect)(() => {
|
|
4000
4021
|
if (!maxTime || !editValues.date || readonly)
|
|
4001
4022
|
return;
|
|
4002
4023
|
if (editValues.date > maxTime) {
|
|
@@ -4008,47 +4029,47 @@ function ReservationCard(props) {
|
|
|
4008
4029
|
});
|
|
4009
4030
|
}
|
|
4010
4031
|
}, [editValues, maxTime, readonly]);
|
|
4011
|
-
return /* @__PURE__ */ (0,
|
|
4032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
4012
4033
|
Card,
|
|
4013
4034
|
{
|
|
4014
4035
|
error: Boolean(error),
|
|
4015
4036
|
size: "3",
|
|
4016
4037
|
style: { overflow: "visible", contain: "initial" },
|
|
4017
4038
|
children: [
|
|
4018
|
-
/* @__PURE__ */ (0,
|
|
4019
|
-
/* @__PURE__ */ (0,
|
|
4039
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
4040
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
4020
4041
|
import_themes23.Grid,
|
|
4021
4042
|
{
|
|
4022
4043
|
align: "center",
|
|
4023
4044
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
4024
4045
|
gapY: "2",
|
|
4025
4046
|
children: [
|
|
4026
|
-
/* @__PURE__ */ (0,
|
|
4027
|
-
/* @__PURE__ */ (0,
|
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Heading2, { variant: "heading4", children: [
|
|
4028
4049
|
customerName || "-",
|
|
4029
4050
|
"\uB2D8 ",
|
|
4030
4051
|
sessionNumber || "-",
|
|
4031
4052
|
"\uD68C\uCC28 \uC138\uC158"
|
|
4032
4053
|
] }),
|
|
4033
|
-
/* @__PURE__ */ (0,
|
|
4054
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
4034
4055
|
] }),
|
|
4035
|
-
error ? /* @__PURE__ */ (0,
|
|
4056
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
4036
4057
|
]
|
|
4037
4058
|
}
|
|
4038
4059
|
),
|
|
4039
|
-
/* @__PURE__ */ (0,
|
|
4060
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
4040
4061
|
] }),
|
|
4041
|
-
/* @__PURE__ */ (0,
|
|
4062
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4042
4063
|
Form.Root,
|
|
4043
4064
|
{
|
|
4044
4065
|
onSubmit: (e) => {
|
|
4045
4066
|
e.preventDefault();
|
|
4046
4067
|
},
|
|
4047
|
-
children: /* @__PURE__ */ (0,
|
|
4048
|
-
/* @__PURE__ */ (0,
|
|
4049
|
-
/* @__PURE__ */ (0,
|
|
4050
|
-
/* @__PURE__ */ (0,
|
|
4051
|
-
/* @__PURE__ */ (0,
|
|
4068
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
4069
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Form.Field, { name: "date", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Form.Label, { asChild: true, children: [
|
|
4070
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
4071
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes23.Grid, { columns: "1fr auto", gap: "4", children: [
|
|
4072
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4052
4073
|
DatePickerButton,
|
|
4053
4074
|
{
|
|
4054
4075
|
disabled: readonly,
|
|
@@ -4060,7 +4081,7 @@ function ReservationCard(props) {
|
|
|
4060
4081
|
size: "large"
|
|
4061
4082
|
}
|
|
4062
4083
|
),
|
|
4063
|
-
/* @__PURE__ */ (0,
|
|
4084
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4064
4085
|
TimeSelect,
|
|
4065
4086
|
{
|
|
4066
4087
|
disabled: readonly,
|
|
@@ -4074,9 +4095,9 @@ function ReservationCard(props) {
|
|
|
4074
4095
|
)
|
|
4075
4096
|
] })
|
|
4076
4097
|
] }) }),
|
|
4077
|
-
/* @__PURE__ */ (0,
|
|
4078
|
-
/* @__PURE__ */ (0,
|
|
4079
|
-
/* @__PURE__ */ (0,
|
|
4098
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Form.Field, { name: "type", children: [
|
|
4099
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Form.Label, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }) }),
|
|
4100
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Form.Control, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4080
4101
|
OnOfflineRadioCard,
|
|
4081
4102
|
{
|
|
4082
4103
|
disabled: readonly,
|
|
@@ -4086,8 +4107,8 @@ function ReservationCard(props) {
|
|
|
4086
4107
|
}
|
|
4087
4108
|
) })
|
|
4088
4109
|
] }),
|
|
4089
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
4090
|
-
/* @__PURE__ */ (0,
|
|
4110
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
4111
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4091
4112
|
Button,
|
|
4092
4113
|
{
|
|
4093
4114
|
color: "gray",
|
|
@@ -4097,12 +4118,12 @@ function ReservationCard(props) {
|
|
|
4097
4118
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
4098
4119
|
}
|
|
4099
4120
|
),
|
|
4100
|
-
/* @__PURE__ */ (0,
|
|
4121
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
4101
4122
|
] })
|
|
4102
4123
|
] })
|
|
4103
4124
|
}
|
|
4104
4125
|
) }),
|
|
4105
|
-
readonly ? /* @__PURE__ */ (0,
|
|
4126
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4106
4127
|
import_themes6.Box,
|
|
4107
4128
|
{
|
|
4108
4129
|
mt: "5",
|
|
@@ -4110,14 +4131,14 @@ function ReservationCard(props) {
|
|
|
4110
4131
|
py: "4",
|
|
4111
4132
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
4112
4133
|
width: "100%",
|
|
4113
|
-
children: /* @__PURE__ */ (0,
|
|
4114
|
-
/* @__PURE__ */ (0,
|
|
4134
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
4135
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Typo, { children: [
|
|
4115
4136
|
sessionNumber || "-",
|
|
4116
4137
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
4117
4138
|
] }),
|
|
4118
|
-
/* @__PURE__ */ (0,
|
|
4139
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
4119
4140
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
4120
|
-
/* @__PURE__ */ (0,
|
|
4141
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
4121
4142
|
] })
|
|
4122
4143
|
] })
|
|
4123
4144
|
}
|
|
@@ -4128,22 +4149,22 @@ function ReservationCard(props) {
|
|
|
4128
4149
|
}
|
|
4129
4150
|
|
|
4130
4151
|
// src/app/platform/session-review-simple-read.tsx
|
|
4131
|
-
var
|
|
4132
|
-
var
|
|
4152
|
+
var import_react36 = require("react");
|
|
4153
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4133
4154
|
function SubTitleWrapper({
|
|
4134
4155
|
children,
|
|
4135
4156
|
title
|
|
4136
4157
|
}) {
|
|
4137
|
-
return /* @__PURE__ */ (0,
|
|
4138
|
-
/* @__PURE__ */ (0,
|
|
4139
|
-
/* @__PURE__ */ (0,
|
|
4158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
4160
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes6.Box, { children })
|
|
4140
4161
|
] });
|
|
4141
4162
|
}
|
|
4142
4163
|
function SessionReviewSimpleRead({
|
|
4143
4164
|
helpfulness,
|
|
4144
4165
|
review
|
|
4145
4166
|
}) {
|
|
4146
|
-
const helpfulnessMeta = (0,
|
|
4167
|
+
const helpfulnessMeta = (0, import_react36.useMemo)(() => {
|
|
4147
4168
|
if (helpfulness) {
|
|
4148
4169
|
return {
|
|
4149
4170
|
text: "\uB124",
|
|
@@ -4161,22 +4182,22 @@ function SessionReviewSimpleRead({
|
|
|
4161
4182
|
color: "error"
|
|
4162
4183
|
};
|
|
4163
4184
|
}, [helpfulness]);
|
|
4164
|
-
return /* @__PURE__ */ (0,
|
|
4165
|
-
/* @__PURE__ */ (0,
|
|
4166
|
-
/* @__PURE__ */ (0,
|
|
4185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
4186
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
4187
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
4167
4188
|
] }) });
|
|
4168
4189
|
}
|
|
4169
4190
|
|
|
4170
4191
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
4171
|
-
var
|
|
4192
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4172
4193
|
function SectionWrapper({
|
|
4173
4194
|
title,
|
|
4174
4195
|
children
|
|
4175
4196
|
}) {
|
|
4176
|
-
return /* @__PURE__ */ (0,
|
|
4177
|
-
/* @__PURE__ */ (0,
|
|
4178
|
-
/* @__PURE__ */ (0,
|
|
4179
|
-
/* @__PURE__ */ (0,
|
|
4197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes6.Box, { children: [
|
|
4198
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
4199
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
4200
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes39.Separator, { size: "4" })
|
|
4180
4201
|
] }),
|
|
4181
4202
|
children
|
|
4182
4203
|
] });
|
|
@@ -4186,22 +4207,22 @@ function SessionUserInfoDetail({
|
|
|
4186
4207
|
session,
|
|
4187
4208
|
onClickCopy
|
|
4188
4209
|
}) {
|
|
4189
|
-
return /* @__PURE__ */ (0,
|
|
4190
|
-
/* @__PURE__ */ (0,
|
|
4210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
4211
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
4191
4212
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
4192
4213
|
) }) }),
|
|
4193
|
-
/* @__PURE__ */ (0,
|
|
4214
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
4194
4215
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
4195
4216
|
) }) })
|
|
4196
4217
|
] });
|
|
4197
4218
|
}
|
|
4198
4219
|
|
|
4199
4220
|
// src/app/platform/report-card.tsx
|
|
4200
|
-
var
|
|
4201
|
-
var
|
|
4221
|
+
var import_react37 = require("react");
|
|
4222
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4202
4223
|
function ReportCard(props) {
|
|
4203
4224
|
const { title, file, status } = props;
|
|
4204
|
-
const onClickDownload = (0,
|
|
4225
|
+
const onClickDownload = (0, import_react37.useCallback)(() => {
|
|
4205
4226
|
if (!file)
|
|
4206
4227
|
return;
|
|
4207
4228
|
const { url, fileName } = file;
|
|
@@ -4214,21 +4235,21 @@ function ReportCard(props) {
|
|
|
4214
4235
|
document.body.removeChild(link);
|
|
4215
4236
|
}, [file]);
|
|
4216
4237
|
if (status) {
|
|
4217
|
-
return /* @__PURE__ */ (0,
|
|
4218
|
-
/* @__PURE__ */ (0,
|
|
4238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
4239
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
4219
4240
|
status
|
|
4220
4241
|
] }) });
|
|
4221
4242
|
}
|
|
4222
|
-
return /* @__PURE__ */ (0,
|
|
4243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4223
4244
|
import_themes22.Flex,
|
|
4224
4245
|
{
|
|
4225
4246
|
direction: { initial: "column", xs: "row" },
|
|
4226
4247
|
gapY: "2",
|
|
4227
4248
|
justify: "between",
|
|
4228
4249
|
children: [
|
|
4229
|
-
/* @__PURE__ */ (0,
|
|
4230
|
-
/* @__PURE__ */ (0,
|
|
4231
|
-
/* @__PURE__ */ (0,
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
4251
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
4252
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
4232
4253
|
file == null ? void 0 : file.buttonName
|
|
4233
4254
|
] }) }, file == null ? void 0 : file.url)
|
|
4234
4255
|
]
|
|
@@ -4237,9 +4258,9 @@ function ReportCard(props) {
|
|
|
4237
4258
|
}
|
|
4238
4259
|
|
|
4239
4260
|
// src/app/platform/contents-card.tsx
|
|
4240
|
-
var
|
|
4241
|
-
var
|
|
4242
|
-
var ContentsCard = (0,
|
|
4261
|
+
var import_react38 = require("react");
|
|
4262
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4263
|
+
var ContentsCard = (0, import_react38.forwardRef)(
|
|
4243
4264
|
({
|
|
4244
4265
|
title,
|
|
4245
4266
|
description,
|
|
@@ -4249,7 +4270,7 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
4249
4270
|
onClickCard,
|
|
4250
4271
|
isLoading = false
|
|
4251
4272
|
}, ref) => {
|
|
4252
|
-
return /* @__PURE__ */ (0,
|
|
4273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4253
4274
|
Card,
|
|
4254
4275
|
{
|
|
4255
4276
|
onClick: onClickCard,
|
|
@@ -4262,7 +4283,7 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
4262
4283
|
maxHeight: "450px"
|
|
4263
4284
|
},
|
|
4264
4285
|
children: [
|
|
4265
|
-
/* @__PURE__ */ (0,
|
|
4286
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4266
4287
|
import_themes6.Box,
|
|
4267
4288
|
{
|
|
4268
4289
|
height: "210px",
|
|
@@ -4274,12 +4295,12 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
4274
4295
|
width: "100%"
|
|
4275
4296
|
}
|
|
4276
4297
|
) }) }),
|
|
4277
|
-
/* @__PURE__ */ (0,
|
|
4278
|
-
/* @__PURE__ */ (0,
|
|
4279
|
-
/* @__PURE__ */ (0,
|
|
4280
|
-
/* @__PURE__ */ (0,
|
|
4298
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
4299
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes6.Box, { children: [
|
|
4300
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
4301
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
4281
4302
|
] }),
|
|
4282
|
-
/* @__PURE__ */ (0,
|
|
4303
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4283
4304
|
import_themes23.Grid,
|
|
4284
4305
|
{
|
|
4285
4306
|
align: "center",
|
|
@@ -4289,10 +4310,10 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
4289
4310
|
style: { marginTop: "auto" },
|
|
4290
4311
|
width: "100%",
|
|
4291
4312
|
children: [
|
|
4292
|
-
/* @__PURE__ */ (0,
|
|
4293
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
4294
|
-
/* @__PURE__ */ (0,
|
|
4295
|
-
/* @__PURE__ */ (0,
|
|
4313
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
4314
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(DropdownMenu.Root, { children: [
|
|
4315
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
4316
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4296
4317
|
DropdownMenu.Item,
|
|
4297
4318
|
{
|
|
4298
4319
|
onClick: (e) => {
|
|
@@ -4316,7 +4337,7 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
4316
4337
|
ContentsCard.displayName = "ContentsCard";
|
|
4317
4338
|
|
|
4318
4339
|
// src/app/platform/curriculum-card.tsx
|
|
4319
|
-
var
|
|
4340
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4320
4341
|
function CurriculumCard(props) {
|
|
4321
4342
|
const {
|
|
4322
4343
|
title,
|
|
@@ -4327,7 +4348,7 @@ function CurriculumCard(props) {
|
|
|
4327
4348
|
bgColor,
|
|
4328
4349
|
onClick
|
|
4329
4350
|
} = props;
|
|
4330
|
-
return /* @__PURE__ */ (0,
|
|
4351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4331
4352
|
import_themes23.Grid,
|
|
4332
4353
|
{
|
|
4333
4354
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -4336,7 +4357,7 @@ function CurriculumCard(props) {
|
|
|
4336
4357
|
onClick,
|
|
4337
4358
|
style: { cursor: "pointer" },
|
|
4338
4359
|
children: [
|
|
4339
|
-
/* @__PURE__ */ (0,
|
|
4360
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4340
4361
|
import_themes6.Box,
|
|
4341
4362
|
{
|
|
4342
4363
|
height: "165px",
|
|
@@ -4351,32 +4372,32 @@ function CurriculumCard(props) {
|
|
|
4351
4372
|
backgroundAttachment: "local"
|
|
4352
4373
|
},
|
|
4353
4374
|
width: "100%",
|
|
4354
|
-
children: /* @__PURE__ */ (0,
|
|
4375
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
4355
4376
|
}
|
|
4356
4377
|
),
|
|
4357
|
-
/* @__PURE__ */ (0,
|
|
4358
|
-
/* @__PURE__ */ (0,
|
|
4359
|
-
/* @__PURE__ */ (0,
|
|
4360
|
-
/* @__PURE__ */ (0,
|
|
4378
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
4379
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
4380
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
4381
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4361
4382
|
Badge,
|
|
4362
4383
|
{
|
|
4363
4384
|
size: "medium",
|
|
4364
4385
|
style: { justifySelf: "flex-start" },
|
|
4365
4386
|
variant: "outline",
|
|
4366
|
-
children: /* @__PURE__ */ (0,
|
|
4367
|
-
/* @__PURE__ */ (0,
|
|
4387
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
4388
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons2.TimerIcon, {}),
|
|
4368
4389
|
runningTime
|
|
4369
4390
|
] })
|
|
4370
4391
|
}
|
|
4371
4392
|
)
|
|
4372
4393
|
] }),
|
|
4373
|
-
/* @__PURE__ */ (0,
|
|
4374
|
-
return /* @__PURE__ */ (0,
|
|
4394
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
4395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
4375
4396
|
}) }) }),
|
|
4376
|
-
/* @__PURE__ */ (0,
|
|
4377
|
-
/* @__PURE__ */ (0,
|
|
4378
|
-
/* @__PURE__ */ (0,
|
|
4379
|
-
/* @__PURE__ */ (0,
|
|
4397
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes39.Separator, { size: "4" }),
|
|
4398
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
4399
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
4400
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
4380
4401
|
] })
|
|
4381
4402
|
] })
|
|
4382
4403
|
]
|
|
@@ -4531,6 +4552,9 @@ function CurriculumCard(props) {
|
|
|
4531
4552
|
TimerIcon,
|
|
4532
4553
|
ToastContainer,
|
|
4533
4554
|
Tooltip,
|
|
4555
|
+
TooltipContent,
|
|
4556
|
+
TooltipProvider,
|
|
4557
|
+
TooltipTrigger,
|
|
4534
4558
|
TrashIcon,
|
|
4535
4559
|
TriangleArrowDownIcon,
|
|
4536
4560
|
TriangleArrowUpIcon,
|