@dotss/tictoccroc 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.mjs +40 -38
  2. package/dist/shared/components/Carousel/index.d.ts +2 -2
  3. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.d.ts +1 -1
  4. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +59 -53
  5. package/dist/shared/components/Roller/Roller.mjs +5 -5
  6. package/dist/shared/components/Scheduler/Scheduler.mjs +10 -10
  7. package/dist/shared/utils/getDateRange/getDateRange.mjs +16 -15
  8. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +21 -21
  9. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +12 -12
  10. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +11 -12
  11. package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.d.ts +11 -0
  12. package/dist/teacher/profile/components/{CertificationSection/CertificationItem/CertificationItem.mjs → CertificateSection/CertificateItem/CertificateItem.mjs} +5 -11
  13. package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.d.ts +3 -0
  14. package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -0
  15. package/dist/teacher/profile/components/CertificateSection/CertificateSection.d.ts +9 -0
  16. package/dist/teacher/profile/components/{CertificationSection/CertificationSection.mjs → CertificateSection/CertificateSection.mjs} +28 -28
  17. package/dist/teacher/profile/components/CertificateSection/index.d.ts +4 -0
  18. package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -0
  19. package/dist/teacher/profile/components/ClassNotesSection/ClassNote/ClassNote.d.ts +9 -0
  20. package/dist/teacher/profile/components/{LessonNotesSection/LessonNote/LessonNote.mjs → ClassNotesSection/ClassNote/ClassNote.mjs} +15 -15
  21. package/dist/teacher/profile/components/ClassNotesSection/ClassNote/index.d.ts +3 -0
  22. package/dist/teacher/profile/components/ClassNotesSection/ClassNote/index.mjs +4 -0
  23. package/dist/teacher/profile/components/ClassNotesSection/ClassNotesSection.d.ts +7 -0
  24. package/dist/teacher/profile/components/{LessonNotesSection/LessonNotesSection.mjs → ClassNotesSection/ClassNotesSection.mjs} +3 -3
  25. package/dist/teacher/profile/components/ClassNotesSection/index.d.ts +4 -0
  26. package/dist/teacher/profile/components/ClassNotesSection/index.mjs +6 -0
  27. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +1 -1
  28. package/dist/teacher/profile/components/ParentReviewSection/index.d.ts +2 -1
  29. package/dist/teacher/profile/components/ParentReviewSection/index.mjs +5 -3
  30. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +123 -126
  31. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +15 -15
  32. package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +1 -1
  33. package/dist/teacher/profile/components/index.d.ts +4 -4
  34. package/dist/teacher/profile/components/index.mjs +20 -18
  35. package/package.json +2 -2
  36. package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.d.ts +0 -11
  37. package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.d.ts +0 -3
  38. package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.mjs +0 -4
  39. package/dist/teacher/profile/components/CertificationSection/CertificationSection.d.ts +0 -9
  40. package/dist/teacher/profile/components/CertificationSection/index.d.ts +0 -4
  41. package/dist/teacher/profile/components/CertificationSection/index.mjs +0 -6
  42. package/dist/teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.d.ts +0 -9
  43. package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.d.ts +0 -3
  44. package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.mjs +0 -4
  45. package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.d.ts +0 -7
  46. package/dist/teacher/profile/components/LessonNotesSection/index.d.ts +0 -4
  47. package/dist/teacher/profile/components/LessonNotesSection/index.mjs +0 -6
  48. /package/dist/teacher/profile/components/{LessonNotesSection/LessonNotesSection.utils.d.ts → ClassNotesSection/ClassNotesSection.utils.d.ts} +0 -0
  49. /package/dist/teacher/profile/components/{LessonNotesSection/LessonNotesSection.utils.mjs → ClassNotesSection/ClassNotesSection.utils.mjs} +0 -0
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- import { default as t } from "./shared/components/Scheduler/Scheduler.mjs";
1
+ import { default as o } from "./shared/components/Scheduler/Scheduler.mjs";
2
2
  import { default as a } from "./shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs";
3
3
  import { default as l } from "./shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs";
4
4
  import { getAvailableDateRange as s } from "./shared/components/Scheduler/Scheduler.utils.mjs";
5
- import { default as m } from "./shared/components/MediaDialog/MediaDialog.mjs";
5
+ import { default as u } from "./shared/components/MediaDialog/MediaDialog.mjs";
6
6
  import { default as i } from "./shared/components/MediaDialog/MediaBlock/MediaBlock.mjs";
7
- import { default as n } from "./shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs";
7
+ import { default as c } from "./shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs";
8
8
  import { default as g } from "./shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs";
9
9
  import { default as y } from "./shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs";
10
- import { default as C } from "./shared/components/Swiper/Swiper.mjs";
11
- import { default as b } from "./shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
12
- import { default as D } from "./shared/components/Carousel/Carousel.mjs";
13
- import { default as h } from "./shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
10
+ import { default as A } from "./shared/components/Swiper/Swiper.mjs";
11
+ import { default as v } from "./shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
12
+ import { default as B } from "./shared/components/Carousel/Carousel.mjs";
13
+ import { default as I } from "./shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
14
14
  import { default as M } from "./shared/components/TimePicker/TimePicker.mjs";
15
15
  import { default as R } from "./shared/components/Roller/Roller.mjs";
16
16
  import { default as T } from "./shared/components/Roller/RollerBlock/RollerBlock.mjs";
@@ -25,20 +25,20 @@ import { default as W } from "./shared/utils/isServer/isServer.mjs";
25
25
  import { default as Y } from "./shared/utils/getTimeRange/getTimeRange.mjs";
26
26
  import { default as _ } from "./shared/utils/getDateRange/getDateRange.mjs";
27
27
  import { default as ee } from "./shared/utils/isAndroid/isAndroid.mjs";
28
- import { default as te } from "./shared/utils/isApp/isApp.mjs";
28
+ import { default as oe } from "./shared/utils/isApp/isApp.mjs";
29
29
  import { default as ae } from "./shared/utils/isDesktop/isDesktop.mjs";
30
30
  import { default as le } from "./shared/utils/birthDateToAge/birthDateToAge.mjs";
31
31
  import { default as se } from "./shared/utils/objectToQueryString/objectToQueryString.mjs";
32
- import { default as me } from "./shared/utils/getVimeoId/getVimeoId.mjs";
32
+ import { default as ue } from "./shared/utils/getVimeoId/getVimeoId.mjs";
33
33
  import { default as ie } from "./shared/utils/parseQueryString/parseQueryString.mjs";
34
- import { default as ne } from "./shared/utils/share/share.mjs";
34
+ import { default as ce } from "./shared/utils/share/share.mjs";
35
35
  import { default as ge } from "./teacher/profile/components/ProfileSummary/ProfileSummary.mjs";
36
36
  import { default as ye } from "./teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs";
37
- import { default as Ce } from "./teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs";
38
- import { default as be } from "./teacher/profile/components/ActivityGallery/ActivityGallery.mjs";
39
- import { default as De } from "./teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs";
40
- import { default as he } from "./teacher/profile/components/CertificationSection/CertificationSection.mjs";
41
- import { default as Me } from "./teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs";
37
+ import { default as Ae } from "./teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs";
38
+ import { default as ve } from "./teacher/profile/components/ActivityGallery/ActivityGallery.mjs";
39
+ import { default as Be } from "./teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs";
40
+ import { default as Ie } from "./teacher/profile/components/CertificateSection/CertificateSection.mjs";
41
+ import { default as Me } from "./teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs";
42
42
  import { default as Re } from "./teacher/profile/components/CareerSection/CareerSection.mjs";
43
43
  import { default as Te } from "./teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs";
44
44
  import { default as Ge } from "./teacher/profile/components/EducationSection/EducationSection.mjs";
@@ -50,38 +50,39 @@ import { default as ze } from "./teacher/profile/components/AbilityCollection/Ab
50
50
  import { default as Je } from "./teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs";
51
51
  import { getAbilityCollection as We } from "./teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs";
52
52
  import { default as Ye } from "./teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs";
53
- import { default as _e } from "./teacher/profile/components/LessonNotesSection/LessonNotesSection.mjs";
54
- import { default as eo } from "./teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs";
55
- import { default as to } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs";
56
- import { default as ao } from "./teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs";
53
+ import { default as _e } from "./teacher/profile/components/ClassNotesSection/ClassNotesSection.mjs";
54
+ import { default as et } from "./teacher/profile/components/ClassNotesSection/ClassNote/ClassNote.mjs";
55
+ import { default as ot } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs";
56
+ import { getChildLabel as at } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs";
57
+ import { default as lt } from "./teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs";
57
58
  export {
58
59
  Je as AbilityBadge,
59
60
  ze as AbilityCollection,
60
- be as ActivityGallery,
61
- De as ActivityGalleryItem,
61
+ ve as ActivityGallery,
62
+ Be as ActivityGalleryItem,
62
63
  Ye as AvailableScheduleSection,
63
64
  K as Calendar,
64
65
  Te as CareerItem,
65
66
  Re as CareerSection,
66
- D as Carousel,
67
- h as CarouselSlide,
68
- Me as CertificationItem,
69
- he as CertificationSection,
67
+ B as Carousel,
68
+ I as CarouselSlide,
69
+ Me as CertificateItem,
70
+ Ie as CertificateSection,
71
+ et as ClassNote,
72
+ _e as ClassNotesSection,
70
73
  Ke as EducationItem,
71
74
  Ge as EducationSection,
72
75
  G as Image,
73
- eo as LessonNote,
74
- _e as LessonNotesSection,
75
76
  V as LoadingAnnouncer,
76
77
  Q as Masonry,
77
78
  F as MasonryBlock,
78
79
  i as MediaBlock,
79
- m as MediaDialog,
80
- n as MediaDialogContent,
80
+ u as MediaDialog,
81
+ c as MediaDialogContent,
81
82
  g as MediaDialogFooter,
82
83
  y as MediaDialogToolbar,
83
- ao as ParentReviewCard,
84
- to as ParentReviewSection,
84
+ lt as ParentReviewCard,
85
+ ot as ParentReviewSection,
85
86
  Qe as PreferredActivityKeywordGroup,
86
87
  Fe as PreferredAgeGroup,
87
88
  ge as ProfileSummary,
@@ -89,26 +90,27 @@ export {
89
90
  T as RollerBlock,
90
91
  l as ScheduleBlock,
91
92
  a as ScheduleEvent,
92
- t as Scheduler,
93
- Ce as StatBadge,
93
+ o as Scheduler,
94
+ Ae as StatBadge,
94
95
  ye as StatBadgeCollection,
95
- C as Swiper,
96
- b as SwiperBlock,
96
+ A as Swiper,
97
+ v as SwiperBlock,
97
98
  M as TimePicker,
98
99
  le as birthDateToAge,
99
100
  We as getAbilityCollection,
100
101
  s as getAvailableDateRange,
102
+ at as getChildLabel,
101
103
  _ as getDateRange,
102
104
  J as getImageUrl,
103
105
  Ve as getPreferredAgeKeywords,
104
106
  Y as getTimeRange,
105
- me as getVimeoId,
107
+ ue as getVimeoId,
106
108
  ee as isAndroid,
107
- te as isApp,
109
+ oe as isApp,
108
110
  ae as isDesktop,
109
111
  W as isServer,
110
112
  se as objectToQueryString,
111
113
  ie as parseQueryString,
112
- ne as share,
114
+ ce as share,
113
115
  z as useIsomorphicLayoutEffect
114
116
  };
@@ -1,4 +1,4 @@
1
- import { CarouselProps, default as Carousel } from './Carousel';
1
+ import { CarouselPaginationProps, CarouselProps, default as Carousel } from './Carousel';
2
2
  export { default as CarouselSlide, type CarouselSlideProps } from './CarouselSlide';
3
- export type { CarouselProps };
3
+ export type { CarouselProps, CarouselPaginationProps };
4
4
  export default Carousel;
@@ -3,7 +3,7 @@ export interface MasonryBlockProps extends FlexboxProps {
3
3
  width?: number;
4
4
  height?: number;
5
5
  spacing?: number;
6
- borderRadius?: number | string;
6
+ borderRadius?: number;
7
7
  direction?: 'horizontal' | 'vertical';
8
8
  sourceMetadata?: {
9
9
  src: string;
@@ -1,38 +1,40 @@
1
- import { jsxs as k, jsx as g } from "react/jsx-runtime";
2
- import { forwardRef as a, useState as u, useRef as A, useImperativeHandle as B, useEffect as p, Children as W, isValidElement as z, cloneElement as F } from "react";
3
- import { Flexbox as t, Skeleton as D } from "@dotss/ui";
4
- import L from "@dotss/ui/core/useTheme";
5
- import V from "../../Image/Image.mjs";
6
- import { findImageInChildren as $ } from "../Masonry.utils.mjs";
7
- const P = a(
1
+ import { jsxs as C, jsx as b } from "react/jsx-runtime";
2
+ import { forwardRef as W, useState as s, useRef as z, useImperativeHandle as L, useEffect as v, Children as D, isValidElement as V, cloneElement as $ } from "react";
3
+ import { Flexbox as r, Skeleton as q } from "@dotss/ui";
4
+ import G from "@dotss/ui/core/useTheme";
5
+ import J from "../../Image/Image.mjs";
6
+ import { findImageInChildren as K } from "../Masonry.utils.mjs";
7
+ const Z = W(
8
8
  ({
9
- children: m,
10
- width: r = 0,
11
- height: s = 0,
9
+ children: y,
10
+ width: l = 0,
11
+ height: c = 0,
12
12
  spacing: x = 2,
13
- borderRadius: S,
14
- direction: v = "vertical",
15
- setInnerRef: o,
16
- sourceMetadata: l,
13
+ borderRadius: o = 0,
14
+ direction: a = "vertical",
15
+ setInnerRef: t,
16
+ sourceMetadata: d,
17
17
  ...e
18
18
  }, T) => {
19
- var C;
20
- const { spacing: E } = L(), c = $(m), b = (C = c == null ? void 0 : c.props) == null ? void 0 : C.src, i = l == null ? void 0 : l.find((n) => n.src === b), [d, j] = u((i == null ? void 0 : i.width) ?? r ?? 0), [f, H] = u((i == null ? void 0 : i.height) ?? s ?? 0), [y, w] = u(!b), h = A(null), I = () => w(!0);
21
- return B(T, () => h.current), p(() => {
22
- j((i == null ? void 0 : i.width) ?? r ?? 0), H((i == null ? void 0 : i.height) ?? s ?? 0);
23
- }, [r, s, i == null ? void 0 : i.width, i == null ? void 0 : i.height]), p(() => {
24
- const n = setTimeout(() => {
25
- w(!0);
26
- }, 300);
19
+ var w;
20
+ const { spacing: E } = G(), f = K(y), p = (w = f == null ? void 0 : f.props) == null ? void 0 : w.src, n = d == null ? void 0 : d.find((i) => i.src === p), [g, j] = s((n == null ? void 0 : n.width) ?? l ?? 0), [h, I] = s((n == null ? void 0 : n.height) ?? c ?? 0), [u, k] = s(!p), [m, H] = s(!p), S = z(null), A = () => k(!0), B = (i) => (F) => {
21
+ H(!0), i == null || i(F);
22
+ };
23
+ return L(T, () => S.current), v(() => {
24
+ j((n == null ? void 0 : n.width) ?? l ?? 0), I((n == null ? void 0 : n.height) ?? c ?? 0);
25
+ }, [l, c, n == null ? void 0 : n.width, n == null ? void 0 : n.height]), v(() => {
26
+ const i = setTimeout(() => {
27
+ k(!0);
28
+ }, 500);
27
29
  return () => {
28
- clearTimeout(n);
30
+ clearTimeout(i);
29
31
  };
30
- }, []), p(() => {
31
- o == null || o(h.current);
32
- }, [o]), /* @__PURE__ */ k(
33
- t,
32
+ }, []), v(() => {
33
+ t == null || t(S.current);
34
+ }, [t]), /* @__PURE__ */ C(
35
+ r,
34
36
  {
35
- ref: h,
37
+ ref: S,
36
38
  flexDirection: "column",
37
39
  ...e,
38
40
  inlineCSS: {
@@ -40,18 +42,18 @@ const P = a(
40
42
  ...e == null ? void 0 : e.inlineCSS
41
43
  },
42
44
  children: [
43
- v === "vertical" && /* @__PURE__ */ g(
44
- t,
45
+ a === "vertical" && /* @__PURE__ */ b(
46
+ r,
45
47
  {
46
48
  inlineCSS: {
47
49
  minHeight: E.content(x)
48
50
  }
49
51
  }
50
52
  ),
51
- /* @__PURE__ */ k(
52
- t,
53
+ /* @__PURE__ */ C(
54
+ r,
53
55
  {
54
- onTransitionEnd: I,
56
+ onTransitionEnd: A,
55
57
  inlineCSS: {
56
58
  position: "relative",
57
59
  overflow: "hidden",
@@ -62,19 +64,19 @@ const P = a(
62
64
  },
63
65
  ...e == null ? void 0 : e.inlineCSS
64
66
  },
65
- style: v === "vertical" ? {
66
- borderRadius: S,
67
- paddingTop: `calc(${f / d} * 100%)`,
67
+ style: a === "vertical" ? {
68
+ borderRadius: o,
69
+ paddingTop: `calc(${h / g} * 100%)`,
68
70
  transition: "transform 0.3s 0.1s, padding-top 0.3s 0.1s"
69
71
  } : {
70
- borderRadius: S,
71
- paddingLeft: d,
72
- paddingTop: f,
72
+ borderRadius: o,
73
+ paddingLeft: g,
74
+ paddingTop: h,
73
75
  transition: "transform 0.3s 0.1s, padding-top 0.3s 0.1s, padding-left 0.3s 0.1s"
74
76
  },
75
77
  children: [
76
- /* @__PURE__ */ g(
77
- t,
78
+ /* @__PURE__ */ b(
79
+ r,
78
80
  {
79
81
  inlineCSS: {
80
82
  position: "absolute",
@@ -83,25 +85,29 @@ const P = a(
83
85
  width: "100%",
84
86
  height: "100%",
85
87
  overflow: "hidden",
88
+ borderRadius: o + (m && u ? 0 : 2),
89
+ transition: "border-radius 0.3s 0.1s",
86
90
  zIndex: 1
87
91
  },
88
- children: W.toArray(m).filter(z).map((n) => n.type === V || n.type === "img" ? F(n, {
89
- width: d,
90
- height: f,
92
+ children: D.toArray(y).filter(V).map((i) => i.type === J || i.type === "img" ? $(i, {
93
+ width: g,
94
+ height: h,
91
95
  draggable: !1,
92
96
  style: {
93
97
  overflow: "hidden",
94
98
  objectFit: "cover",
95
- ...n.props.style
99
+ ...i.props.style
96
100
  },
97
- ...n.props
98
- }) : n)
101
+ ...i.props,
102
+ onLoad: B(i.props.onLoad),
103
+ enableFallback: !1
104
+ }) : i)
99
105
  }
100
106
  ),
101
- /* @__PURE__ */ g(
102
- D,
107
+ /* @__PURE__ */ b(
108
+ q,
103
109
  {
104
- borderRadius: 0,
110
+ borderRadius: o,
105
111
  inlineCSS: {
106
112
  position: "absolute",
107
113
  top: 0,
@@ -109,9 +115,9 @@ const P = a(
109
115
  width: "100%",
110
116
  height: "100%",
111
117
  zIndex: 2,
112
- opacity: y ? 0 : 1,
118
+ opacity: m && u ? 0 : 1,
113
119
  transition: "opacity 0.3s 0.1s",
114
- pointerEvents: y ? "none" : void 0
120
+ pointerEvents: m && u ? "none" : void 0
115
121
  }
116
122
  }
117
123
  )
@@ -124,5 +130,5 @@ const P = a(
124
130
  }
125
131
  );
126
132
  export {
127
- P as default
133
+ Z as default
128
134
  };
@@ -2,16 +2,16 @@ import { jsx as h } from "react/jsx-runtime";
2
2
  import { useState as w, useRef as a, Children as k, isValidElement as X, useEffect as g, cloneElement as N } from "react";
3
3
  import { Flexbox as P } from "@dotss/ui";
4
4
  import U from "./RollerBlock/RollerBlock.mjs";
5
- import S from "../../../teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs";
5
+ import S from "../../../teacher/profile/components/ClassNotesSection/ClassNote/ClassNote.mjs";
6
6
  function V({
7
- children: L,
8
- spacing: A = 2,
7
+ children: A,
8
+ spacing: L = 2,
9
9
  edgeSpacing: m = 4,
10
10
  rowCount: o = 1,
11
11
  inlineCSS: M,
12
12
  ...R
13
13
  }) {
14
- const [y, x] = w(0), n = a(null), i = a(!1), u = a(!0), b = a(0), l = a(0), c = a(0), v = k.toArray(L).filter(X).filter((r) => r.type === U || r.type === S), f = v.length, E = (r) => {
14
+ const [y, x] = w(0), n = a(null), i = a(!1), u = a(!0), b = a(0), l = a(0), c = a(0), v = k.toArray(A).filter(X).filter((r) => r.type === U || r.type === S), f = v.length, E = (r) => {
15
15
  var e, t;
16
16
  i.current = !0, b.current = r.clientX - (((e = n.current) == null ? void 0 : e.offsetLeft) || 0), l.current = ((t = n.current) == null ? void 0 : t.scrollLeft) || 0;
17
17
  }, I = (r) => {
@@ -81,7 +81,7 @@ function V({
81
81
  {
82
82
  ref: n,
83
83
  alignItems: "baseline",
84
- gap: A,
84
+ gap: L,
85
85
  pl: m,
86
86
  pr: m,
87
87
  onMouseDown: E,
@@ -5,8 +5,8 @@ import Ae from "@dotss/ui/core/useTheme";
5
5
  import v from "dayjs";
6
6
  import ve from "./ScheduleEvent/ScheduleEvent.mjs";
7
7
  import { generateWeek as O, getDayScheduleEvents as Re, resolvePositionedScheduleEventsForDate as Fe, getMinutesFromMidnight as we } from "./Scheduler.utils.mjs";
8
- const R = Array.from({ length: 34 }).map((_, U) => {
9
- const $ = Math.floor((U + 14) / 2) % 24, w = (U + 14) % 2 === 0 ? "00" : "30", T = v().hour($).minute(parseInt(w)), H = v(), D = H.hour(), K = H.minute(), L = D === $ && (K < 30 && w === "00" || K >= 30 && w === "30");
8
+ const R = Array.from({ length: 33 }).map((_, P) => {
9
+ const $ = Math.floor((P + 14) / 2) % 24, w = (P + 14) % 2 === 0 ? "00" : "30", T = v().hour($).minute(parseInt(w)), H = v(), D = H.hour(), U = H.minute(), L = D === $ && (U < 30 && w === "00" || U >= 30 && w === "30");
10
10
  return {
11
11
  time: T.format("HH:mm"),
12
12
  label: T.format("A h시 m분"),
@@ -15,17 +15,17 @@ const R = Array.from({ length: 34 }).map((_, U) => {
15
15
  });
16
16
  function Ye({
17
17
  children: _,
18
- date: U = v(),
18
+ date: P = v(),
19
19
  legend: $,
20
20
  minScheduleBlockHeight: w = 20,
21
21
  maxScheduleBlockHeight: T,
22
22
  renderScheduleBlock: H,
23
23
  onDateChange: D,
24
- ...K
24
+ ...U
25
25
  }) {
26
26
  const {
27
27
  palette: { grey: L }
28
- } = Ae(), [M, F] = j(U.startOf("week")), [Y, ge] = j("100%"), [z, g] = j(0), [I, k] = j(0), [be, ye] = j(""), ee = d(null), te = d(null), re = d(null), J = d(null), ne = d(0), oe = d(0), N = d(!1), X = d(!1), C = d(!1), P = d(0), ae = d(0), se = d(0), ie = d(0), Q = d(!1), S = d(null), G = d(0), V = d(0), E = d(0), p = d(null), Z = fe.toArray(_).filter(me).map((e) => {
28
+ } = Ae(), [M, F] = j(P.startOf("week")), [Y, ge] = j("100%"), [z, g] = j(0), [I, k] = j(0), [be, ye] = j(""), ee = d(null), te = d(null), re = d(null), J = d(null), ne = d(0), oe = d(0), N = d(!1), X = d(!1), C = d(!1), K = d(0), ae = d(0), se = d(0), ie = d(0), Q = d(!1), S = d(null), G = d(0), V = d(0), E = d(0), p = d(null), Z = fe.toArray(_).filter(me).map((e) => {
29
29
  if (e.type === ve) {
30
30
  const { startDate: n, endDate: a } = e.props;
31
31
  return {
@@ -207,19 +207,19 @@ function Ye({
207
207
  };
208
208
  n();
209
209
  const a = (t, r) => {
210
- C.current || (S.current && (e.removeEventListener("transitionend", S.current), S.current = null), ne.current = t, oe.current = r, Q.current = !1, N.current = !0, P.current = 0);
210
+ C.current || (S.current && (e.removeEventListener("transitionend", S.current), S.current = null), ne.current = t, oe.current = r, Q.current = !1, N.current = !0, K.current = 0);
211
211
  }, o = (t, r, l) => {
212
212
  if (!N.current) return;
213
213
  const u = t - ne.current, f = r - oe.current;
214
- if (P.current = u, !Q.current && (se.current = Math.abs(u), ie.current = Math.abs(f), Q.current = !0, ie.current > se.current)) {
214
+ if (K.current = u, !Q.current && (se.current = Math.abs(u), ie.current = Math.abs(f), Q.current = !0, ie.current > se.current)) {
215
215
  N.current = !1;
216
216
  return;
217
217
  }
218
- l.cancelable && l.preventDefault(), e.style.transition = "none", e.style.transform = `translate3d(${P.current}px, 0, 0)`, e.style.cursor = "grabbing";
218
+ l.cancelable && l.preventDefault(), l.stopPropagation(), e.style.transition = "none", e.style.transform = `translate3d(${K.current}px, 0, 0)`, e.style.cursor = "grabbing";
219
219
  }, i = () => {
220
220
  if (e.style.cursor = "grab", !N.current) return;
221
221
  N.current = !1, X.current = !1, C.current = !0;
222
- const t = P.current, r = ae.current, l = r * 0.2;
222
+ const t = K.current, r = ae.current, l = r * 0.2;
223
223
  e.style.transition = "transform 300ms cubic-bezier(0.25, 1, 0.5, 1)", t > l ? (e.style.transform = `translate3d(${r}px, 0, 0)`, S.current = (u) => {
224
224
  u.propertyName === "transform" && (G.current = requestAnimationFrame(() => {
225
225
  F((f) => f.add(-1, "week")), V.current = requestAnimationFrame(() => {
@@ -248,7 +248,7 @@ function Ye({
248
248
  D == null || D(M);
249
249
  }, [M, D]), W(() => () => {
250
250
  G.current && cancelAnimationFrame(G.current), V.current && cancelAnimationFrame(V.current), E.current && cancelAnimationFrame(E.current);
251
- }, []), /* @__PURE__ */ A(m, { ref: ee, flex: 1, flexDirection: "column", "aria-label": "일정 안내", ...K, children: [
251
+ }, []), /* @__PURE__ */ A(m, { ref: ee, flex: 1, flexDirection: "column", "aria-label": "일정 안내", ...U, children: [
252
252
  $ && ($ == null ? void 0 : $.length) > 0 && /* @__PURE__ */ h(
253
253
  m,
254
254
  {
@@ -1,21 +1,22 @@
1
- import a from "dayjs";
2
- import d from "dayjs/plugin/isSameOrBefore";
3
- a.extend(d);
4
- function u(i, n, f = {}) {
5
- const { format: o = "YYYY-MM-DD" } = f, t = a(i), r = a(n);
6
- if (!t.isValid() || !r.isValid())
1
+ import o from "dayjs";
2
+ function l(t, r, f = {}) {
3
+ const { format: s = "YYYY-MM-DD" } = f, a = o(t), n = o(r);
4
+ if (!a.isValid() || !n.isValid())
7
5
  return [];
8
- if (t.isAfter(r))
6
+ if (a.isAfter(n))
9
7
  return [];
10
- const s = [];
11
- let e = t;
12
- for (; e.isSameOrBefore(r); )
13
- s.push({
14
- label: e.format(o),
8
+ const i = [];
9
+ let e = a;
10
+ for (; u(e, n); )
11
+ i.push({
12
+ label: e.format(s),
15
13
  value: e.toDate()
16
- }), o === "YYYY-MM" ? e = e.add(1, "month") : e = e.add(1, "day");
17
- return s;
14
+ }), s === "YYYY-MM" ? e = e.add(1, "month") : e = e.add(1, "day");
15
+ return i;
16
+ }
17
+ function u(t, r) {
18
+ return t.isBefore(r) || t.isSame(r);
18
19
  }
19
20
  export {
20
- u as default
21
+ l as default
21
22
  };
@@ -1,19 +1,19 @@
1
1
  import { jsxs as r, Fragment as c, jsx as i } from "react/jsx-runtime";
2
- import { Flexbox as a, Typography as e, BottomSheet as x, BottomSheetTitle as C, BottomSheetContent as f, Label as v, BottomSheetAction as R, Button as L } from "@dotss/ui";
2
+ import { Flexbox as a, Typography as e, BottomSheet as f, BottomSheetTitle as x, BottomSheetContent as C, Label as v, BottomSheetAction as R, Button as L } from "@dotss/ui";
3
3
  import $ from "@dotss/ui/core/useTheme";
4
- import y from "../../../../../shared/components/Image/Image.mjs";
4
+ import h from "../../../../../shared/components/Image/Image.mjs";
5
5
  import { getIconFileName as B } from "../AbilityCollection.utils.mjs";
6
- function k({
6
+ function F({
7
7
  name: t,
8
- iconBasePath: h,
8
+ iconBasePath: b,
9
9
  completed: d,
10
- detail: { open: g, label: b, description: m, onClose: S, onClickApply: p },
10
+ detail: { open: S, label: m, description: p, onClose: s, onClickApply: g },
11
11
  ...o
12
12
  }) {
13
13
  const {
14
14
  palette: { brand: l },
15
15
  spacing: n
16
- } = $(), s = `${h}/images/activities/${B(t, d)}`, u = ["창의악어", "영어악어", "영유아악어"].includes(t) ? "ability" : "eductation";
16
+ } = $(), y = `${b}/images/activities/${B(t, d)}`, u = ["창의악어", "영어악어", "영유아악어"].includes(t) ? "ability" : "eductation";
17
17
  return /* @__PURE__ */ r(c, { children: [
18
18
  /* @__PURE__ */ r(
19
19
  a,
@@ -25,17 +25,17 @@ function k({
25
25
  "aria-labelledby": `ability-badge-name-${t}`,
26
26
  "aria-describedby": `ability-badge-status-${t}`,
27
27
  "aria-controls": `ability-badge-detail-${t}`,
28
- "aria-expanded": g,
28
+ "aria-expanded": S,
29
29
  gap: 2,
30
30
  ...o,
31
31
  inlineCSS: { width: "100%", cursor: "pointer", ...o == null ? void 0 : o.inlineCSS },
32
32
  children: [
33
33
  /* @__PURE__ */ i(
34
- y,
34
+ h,
35
35
  {
36
36
  width: 48,
37
37
  height: 48,
38
- src: s,
38
+ src: y,
39
39
  alt: `${t} 배지`,
40
40
  borderRadius: 12,
41
41
  "aria-hidden": !0
@@ -60,17 +60,17 @@ function k({
60
60
  }
61
61
  ),
62
62
  /* @__PURE__ */ r(
63
- x,
63
+ f,
64
64
  {
65
65
  id: `ability-badge-detail-${t}`,
66
- open: g,
67
- onClose: S,
66
+ open: S,
67
+ onClose: s,
68
68
  "aria-labelledby": `ability-badge-detail-name-${t}`,
69
69
  "aria-describedby": `ability-badge-detail-description-${t}`,
70
70
  children: [
71
- /* @__PURE__ */ i(C, { onClose: S, autoFocus: !0, hideLine: !0 }),
71
+ /* @__PURE__ */ i(x, { onClose: s, autoFocus: !0, hideLine: !0 }),
72
72
  /* @__PURE__ */ r(
73
- f,
73
+ C,
74
74
  {
75
75
  inlineCSS: {
76
76
  alignItems: "center",
@@ -79,11 +79,11 @@ function k({
79
79
  },
80
80
  children: [
81
81
  /* @__PURE__ */ i(
82
- y,
82
+ h,
83
83
  {
84
84
  width: 80,
85
85
  height: 80,
86
- src: s,
86
+ src: y,
87
87
  alt: `${t} 배지`,
88
88
  borderRadius: 12,
89
89
  "aria-hidden": !0
@@ -99,7 +99,7 @@ function k({
99
99
  mb: d ? 4 : void 0,
100
100
  children: [
101
101
  /* @__PURE__ */ i(e, { tag: "h3", variant: "h3B", id: `ability-badge-detail-name-${t}`, children: t }),
102
- /* @__PURE__ */ i(v, { variant: "outlined", color: "blue", size: "small", children: b }),
102
+ /* @__PURE__ */ i(v, { variant: "outlined", color: "blue", size: "small", children: m }),
103
103
  /* @__PURE__ */ i(
104
104
  e,
105
105
  {
@@ -110,13 +110,13 @@ function k({
110
110
  inlineCSS: {
111
111
  whiteSpace: "pre-line"
112
112
  },
113
- children: m
113
+ children: p
114
114
  }
115
115
  )
116
116
  ]
117
117
  }
118
118
  ),
119
- !d && /* @__PURE__ */ r(
119
+ !d && typeof g == "function" && /* @__PURE__ */ r(
120
120
  a,
121
121
  {
122
122
  mt: 2,
@@ -432,12 +432,12 @@ function k({
432
432
  ]
433
433
  }
434
434
  ),
435
- !d && /* @__PURE__ */ i(R, { children: /* @__PURE__ */ i(L, { size: "large", onClick: p, children: "신청하기" }) })
435
+ !d && typeof g == "function" && /* @__PURE__ */ i(R, { children: /* @__PURE__ */ i(L, { size: "large", onClick: g, children: "신청하기" }) })
436
436
  ]
437
437
  }
438
438
  )
439
439
  ] });
440
440
  }
441
441
  export {
442
- k as default
442
+ F as default
443
443
  };