@cagatayfdn/flora-components 0.0.138 → 0.0.140

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 (186) hide show
  1. package/dist/Accordion.css +1 -0
  2. package/dist/ActionButton.css +1 -0
  3. package/dist/AlertCard.css +1 -0
  4. package/dist/Autocomplete.css +1 -0
  5. package/dist/Button.css +1 -0
  6. package/dist/Card.css +1 -0
  7. package/dist/Checkbox.css +1 -0
  8. package/dist/Config.css +1 -0
  9. package/dist/Confirm.css +1 -0
  10. package/dist/ContentHeader.css +1 -0
  11. package/dist/Datepicker.css +1 -0
  12. package/dist/Divider.css +1 -0
  13. package/dist/DropdownList.css +1 -0
  14. package/dist/ErrorLogModal.css +1 -0
  15. package/dist/FileUpload.css +1 -0
  16. package/dist/FileUpload.module-BxCEtOHx.js +32 -0
  17. package/dist/Heading.css +1 -0
  18. package/dist/IconBox.css +1 -0
  19. package/dist/InfoBoxList.css +1 -0
  20. package/dist/InfoBoxList.module-BHkAHgos.js +8 -0
  21. package/dist/InfoDate.css +1 -0
  22. package/dist/InfoText.css +1 -0
  23. package/dist/Input.css +1 -0
  24. package/dist/Label.css +1 -0
  25. package/dist/Legends.css +1 -0
  26. package/dist/Loading.css +1 -0
  27. package/dist/MenuItem-Df6Zsa7E.js +53 -0
  28. package/dist/MenuItem.css +1 -0
  29. package/dist/Modal.css +1 -0
  30. package/dist/NoResult.css +1 -0
  31. package/dist/PageWrap.css +1 -0
  32. package/dist/Pager.css +1 -0
  33. package/dist/Panel.css +1 -0
  34. package/dist/Radio.css +1 -0
  35. package/dist/ResultError.css +1 -0
  36. package/dist/ScrollContainer.css +1 -0
  37. package/dist/Select-BE_y91ZN.js +1831 -0
  38. package/dist/Select.css +1 -0
  39. package/dist/Select.module-ByPQ6qr4.js +21 -0
  40. package/dist/StatusTag.css +1 -0
  41. package/dist/StatusTypography.css +1 -0
  42. package/dist/Stepper.css +1 -0
  43. package/dist/Switch.css +1 -0
  44. package/dist/Tab.css +1 -0
  45. package/dist/Table.css +1 -0
  46. package/dist/Table.module-DUqpZOLt.js +29 -0
  47. package/dist/Textarea.css +1 -0
  48. package/dist/Tooltip.css +1 -0
  49. package/dist/Trans-B4ILpbwK.js +343 -0
  50. package/dist/TypographyText.css +1 -0
  51. package/dist/ValidationError.css +1 -0
  52. package/dist/_commonjsHelpers-CT_km90n.js +30 -0
  53. package/dist/_isArray-CBUZFxFA.js +6 -0
  54. package/dist/_isString-BUpNGP_8.js +6 -0
  55. package/dist/_reduce-DsUCMz4O.js +148 -0
  56. package/dist/assets/icons/icons.js +70 -0
  57. package/dist/assets/images/500_error_2x.gif +0 -0
  58. package/dist/assets/images/oms.png +0 -0
  59. package/dist/components/Accordion/Accordion.js +60 -0
  60. package/dist/components/ActionButton/ActionButton.js +54 -0
  61. package/dist/components/AlertCard/AlertCard.js +29 -0
  62. package/dist/components/AuthUserCan/Permission.js +18 -0
  63. package/dist/components/AuthUserCan/index.js +23 -0
  64. package/dist/components/Autocomplete/Autocomplete.js +87 -0
  65. package/dist/components/Button/Button.js +87 -0
  66. package/dist/components/Card/Card.js +21 -0
  67. package/dist/components/Charts/Bar.js +18 -0
  68. package/dist/components/Charts/Legends.js +21 -0
  69. package/dist/components/Charts/Line.js +18 -0
  70. package/dist/components/Charts/Pie.js +43 -0
  71. package/dist/components/Charts/index.js +31 -0
  72. package/dist/components/Charts/types.js +1 -0
  73. package/dist/components/Charts/utils.js +12 -0
  74. package/dist/components/Checkbox/Checkbox.js +68 -0
  75. package/dist/components/Config/Config.js +32 -0
  76. package/dist/components/Confirm/Confirm.js +60 -0
  77. package/dist/components/ContentHeader/ContentHeader.js +75 -0
  78. package/dist/components/ContentLoader/ContentLoader.js +16 -0
  79. package/dist/components/Countdown/Countdown.js +20 -0
  80. package/dist/components/Datepicker/Datepicker.js +1478 -0
  81. package/dist/components/Divider/Divider.js +27 -0
  82. package/dist/components/Drawer/Provider.js +24 -0
  83. package/dist/components/Drawer/index.js +55 -0
  84. package/dist/components/Dropdown/DropdownList.js +90 -0
  85. package/dist/components/ErrorLogModal/ErrorLogModal.js +69 -0
  86. package/dist/components/FileUpload/FileUpload.js +237 -0
  87. package/dist/components/FileUpload/ImagePreview.js +19 -0
  88. package/dist/components/FileUpload/LengthCard.js +6 -0
  89. package/dist/components/FileUpload/PreviewModal.js +53 -0
  90. package/dist/components/Grid/Column.js +29 -0
  91. package/dist/components/Grid/Row.js +6 -0
  92. package/dist/components/Heading/Heading.js +22 -0
  93. package/dist/components/Icon/index.js +24 -0
  94. package/dist/components/IconBox/IconBox.js +13 -0
  95. package/dist/components/InfiniteScroll/InfiniteScroll.js +41 -0
  96. package/dist/components/InfoBoxList/InfoBoxList.js +30 -0
  97. package/dist/components/InfoBoxList/helper.js +83 -0
  98. package/dist/components/InfoDate/InfoDate.js +19 -0
  99. package/dist/components/InfoText/InfoText.js +13 -0
  100. package/dist/components/Input/Input.js +140 -0
  101. package/dist/components/Label/Label.js +22 -0
  102. package/dist/components/Loading/Loading.js +62 -0
  103. package/dist/components/Modal/Modal.js +74 -0
  104. package/dist/components/NavigatorCard/index.js +59 -0
  105. package/dist/components/NoResult/NoResult.js +12 -0
  106. package/dist/components/Notification/Notification.js +26 -0
  107. package/dist/components/PageWrapper/PageWrap.js +46 -0
  108. package/dist/components/Pager/Pager.js +103 -0
  109. package/dist/components/Panel/Panel.js +71 -0
  110. package/dist/components/PermaLink/PermaLink.js +387 -0
  111. package/dist/components/Radio/Radio.js +96 -0
  112. package/dist/components/ResultError/ResultError.js +20 -0
  113. package/dist/components/ScrollContainer/ScrollContainer.js +23 -0
  114. package/dist/components/Select/NoData.js +10 -0
  115. package/dist/components/Select/OptionItem.js +19 -0
  116. package/dist/components/Select/Select.js +13 -0
  117. package/dist/components/Sidebar/MenuItem.js +9 -0
  118. package/dist/components/Sidebar/index.js +137 -0
  119. package/dist/components/StatusTag/StatusTag.js +24 -0
  120. package/dist/components/StatusTypography/StatusTypography.js +51 -0
  121. package/dist/components/Stepper/Stepper.js +75 -0
  122. package/dist/components/Switch/Switch.js +84 -0
  123. package/dist/components/Tab/Tab.js +28 -0
  124. package/dist/components/Table/Table.js +271 -0
  125. package/dist/components/Table/TableHeader.js +137 -0
  126. package/dist/components/Table/TableSort.js +25 -0
  127. package/dist/components/Textarea/Textarea.js +95 -0
  128. package/dist/components/Tooltip/Tooltip.js +1548 -0
  129. package/dist/components/TypographyText/TypographyText.js +91 -0
  130. package/dist/components/ValidationError/ValidationError.js +7 -0
  131. package/dist/components/index.js +133 -0
  132. package/dist/defineProperty-DeKy1XT0.js +37 -0
  133. package/dist/enums/appearance.js +14 -0
  134. package/dist/enums/applicationTypeSlug.js +4 -0
  135. package/dist/enums/index.js +29 -0
  136. package/dist/enums/isActiveColor.js +4 -0
  137. package/dist/enums/size.js +4 -0
  138. package/dist/enums/status.js +11 -0
  139. package/dist/equals-PL9KqVQf.js +119 -0
  140. package/dist/flatpickr-CRz1AV0e.js +59 -0
  141. package/dist/helper-lFjvXQpv.js +1465 -0
  142. package/dist/hooks/index.js +15 -0
  143. package/dist/hooks/useAauth.js +40 -0
  144. package/dist/hooks/useDisclosure.js +14 -0
  145. package/dist/hooks/useDrawer.js +9 -0
  146. package/dist/hooks/useMediaQuery.js +21 -0
  147. package/dist/hooks/useNiceModal.js +13 -0
  148. package/dist/i18nInstance-CiCZbaCK.js +55 -0
  149. package/dist/includes-8YTFrx85.js +46 -0
  150. package/dist/index-9ZLCCecr.js +364 -0
  151. package/dist/index-BHf7G3IG.js +35 -0
  152. package/dist/index-BJU1K2Aw.js +8003 -0
  153. package/dist/index-CB61CB0b.js +669 -0
  154. package/dist/index-H7XbDVmH.js +320 -0
  155. package/dist/index.css +1 -0
  156. package/dist/index.d.mts +1478 -0
  157. package/dist/index.d.ts +1478 -0
  158. package/dist/index.js +203 -0
  159. package/dist/index2.css +1 -0
  160. package/dist/jsx-runtime-BcAkpsdy.js +631 -0
  161. package/dist/keys-B0bo5Q7o.js +67 -0
  162. package/dist/locales/en/index.js +615 -0
  163. package/dist/locales/i18n.js +1417 -0
  164. package/dist/locales/index.js +5 -0
  165. package/dist/locales/tr/index.js +615 -0
  166. package/dist/main.css +1 -0
  167. package/dist/main.js +57 -0
  168. package/dist/prodivers.css +6 -0
  169. package/dist/prodivers.js +13 -0
  170. package/dist/react-content-loader.es-CswLCxkm.js +90 -0
  171. package/dist/react-toastify.esm-BUWNP7Nm.js +808 -0
  172. package/dist/types/common/date.js +1 -0
  173. package/dist/types/common/events.js +1 -0
  174. package/dist/types/common/forms.js +1 -0
  175. package/dist/types/common/option.js +1 -0
  176. package/dist/types/index.js +1 -0
  177. package/dist/useTranslation-CnCPcxVj.js +142 -0
  178. package/dist/utils/date.js +413 -0
  179. package/dist/utils/flatpickr.js +4 -0
  180. package/dist/utils/helper.js +18 -0
  181. package/dist/utils/index.js +27 -0
  182. package/dist/utils/language.js +46 -0
  183. package/dist/utils/table.js +62 -0
  184. package/dist/utils/validation.js +27 -0
  185. package/dist/utils/yup.js +2921 -0
  186. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ import { j as u } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import { g as n } from "../../index-BJU1K2Aw.js";
3
+ function f({ data: e, options: r }) {
4
+ var t;
5
+ function s(o) {
6
+ switch (o) {
7
+ case 0:
8
+ case 1:
9
+ return 88;
10
+ case 2:
11
+ return 76;
12
+ case 3:
13
+ return 63;
14
+ default:
15
+ return 50;
16
+ }
17
+ }
18
+ return /* @__PURE__ */ u.jsx(
19
+ n,
20
+ {
21
+ options: {
22
+ responsive: !0,
23
+ elements: {
24
+ arc: {
25
+ borderWidth: 0,
26
+ offset: 0
27
+ }
28
+ },
29
+ plugins: {
30
+ filler: {
31
+ propagate: !1
32
+ }
33
+ },
34
+ cutout: `${s((t = e.datasets) == null ? void 0 : t.length)}%`,
35
+ ...r
36
+ },
37
+ data: e
38
+ }
39
+ );
40
+ }
41
+ export {
42
+ f as default
43
+ };
@@ -0,0 +1,31 @@
1
+ import a from "./Bar.js";
2
+ import t from "./Legends.js";
3
+ import r from "./Line.js";
4
+ import s from "./Pie.js";
5
+ import { C as e, a as i, L as l, b as o, A as n, P as f, c as m, i as p, p as d, d as u, e as g } from "../../index-BJU1K2Aw.js";
6
+ const P = {
7
+ Bar: a,
8
+ Pie: s,
9
+ Line: r,
10
+ Legends: t
11
+ };
12
+ e.defaults.color = "#fff";
13
+ e.defaults.borderColor = "#3C4560";
14
+ e.defaults.responsive = !0;
15
+ e.defaults.maintainAspectRatio = !0;
16
+ e.register(
17
+ i,
18
+ l,
19
+ o,
20
+ n,
21
+ f,
22
+ m,
23
+ p,
24
+ d,
25
+ u,
26
+ g
27
+ );
28
+ e.defaults.plugins.legend.display = !1;
29
+ export {
30
+ P as default
31
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,12 @@
1
+ function n(r, a, e) {
2
+ const { chartArea: o } = r.chart, t = r.chart.ctx.createLinearGradient(
3
+ 0,
4
+ o.bottom,
5
+ 0,
6
+ o.top
7
+ );
8
+ return t.addColorStop(0.9, a), t.addColorStop(0, e), t;
9
+ }
10
+ export {
11
+ n as getGradient
12
+ };
@@ -0,0 +1,68 @@
1
+ import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import b, { useState as k, useEffect as p } from "react";
3
+ import { c as u } from "../../index-BHf7G3IG.js";
4
+ import C from "../Label/Label.js";
5
+ import w from "../ValidationError/ValidationError.js";
6
+ import '../../Checkbox.css';const y = "_checkbox_1msjn_2", E = "_checkbox__filter_1msjn_2", N = "_slider_1msjn_2", R = "_round_1msjn_2", s = {
7
+ checkbox: y,
8
+ checkbox__filter: E,
9
+ switch: "_switch_1msjn_2",
10
+ "text-hide": "_text-hide_1msjn_2",
11
+ slider: N,
12
+ round: R
13
+ }, S = b.forwardRef(
14
+ ({
15
+ name: c,
16
+ label: i,
17
+ labelAppearance: x,
18
+ error: n,
19
+ isDisabled: r = !1,
20
+ isInline: h,
21
+ checked: t = !1,
22
+ onChange: _,
23
+ filterInput: m,
24
+ wrapperClassName: f,
25
+ ...o
26
+ }) => {
27
+ const [a, d] = k(
28
+ t || !!o.value
29
+ );
30
+ p(() => {
31
+ d(t);
32
+ }, [t]);
33
+ const j = (l) => {
34
+ !o.readOnly && !r && (l.persist(), d(!a), _ && _(l));
35
+ };
36
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
37
+ /* @__PURE__ */ e.jsxs(
38
+ "div",
39
+ {
40
+ className: u(s.checkbox, f, {
41
+ [s.inline]: h,
42
+ [s.checkbox__filter]: m
43
+ }),
44
+ "data-testid": "checkbox",
45
+ children: [
46
+ /* @__PURE__ */ e.jsx(
47
+ "input",
48
+ {
49
+ type: "checkbox",
50
+ name: c,
51
+ id: c,
52
+ disabled: r,
53
+ checked: a,
54
+ onChange: j,
55
+ ...o
56
+ }
57
+ ),
58
+ /* @__PURE__ */ e.jsx(C, { className: s.label, name: c, appearance: x, children: i && /* @__PURE__ */ e.jsx("span", { children: i }) })
59
+ ]
60
+ }
61
+ ),
62
+ n && /* @__PURE__ */ e.jsx(w, { ...n })
63
+ ] });
64
+ }
65
+ );
66
+ export {
67
+ S as default
68
+ };
@@ -0,0 +1,32 @@
1
+ import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import o from "../ScrollContainer/ScrollContainer.js";
3
+ import '../../Config.css';const m = "_configWrapper_rymlp_2", f = "_configItem_rymlp_2", p = "_configItemTitle_rymlp_2", i = {
4
+ configWrapper: m,
5
+ configItem: f,
6
+ configItemTitle: p
7
+ };
8
+ function j({ config: r, scrollProps: c }) {
9
+ const a = () => Object.keys(r).map((e) => {
10
+ var n, s, l;
11
+ return (n = r[e]) != null && n.isUrl ? /* @__PURE__ */ t.jsxs("li", { className: i.configItem, "data-testid": "config-list-item", children: [
12
+ /* @__PURE__ */ t.jsx("span", { className: i.configItemTitle, children: `${e}: ` }),
13
+ /* @__PURE__ */ t.jsx(
14
+ "a",
15
+ {
16
+ className: "link",
17
+ target: "_blank",
18
+ rel: "noreferrer",
19
+ href: (s = r[e]) == null ? void 0 : s.url,
20
+ children: `${(l = r[e]) == null ? void 0 : l.url}`
21
+ }
22
+ )
23
+ ] }, e) : /* @__PURE__ */ t.jsxs("li", { className: i.configItem, "data-testid": "config-list-item", children: [
24
+ /* @__PURE__ */ t.jsx("span", { className: i.configItemTitle, children: `${e}: ` }),
25
+ /* @__PURE__ */ t.jsx("span", { children: `${r[e]}` })
26
+ ] }, e);
27
+ });
28
+ return /* @__PURE__ */ t.jsx(o, { ...c, children: /* @__PURE__ */ t.jsx("ul", { className: i.configWrapper, "data-testid": "config-list", children: a() }) });
29
+ }
30
+ export {
31
+ j as default
32
+ };
@@ -0,0 +1,60 @@
1
+ import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import { useEffect as C } from "react";
3
+ import h from "../Button/Button.js";
4
+ import w from "../Modal/Modal.js";
5
+ import N from "../../hooks/useNiceModal.js";
6
+ import { ThemeAppearance as c, AppearanceButton as b } from "../../enums/appearance.js";
7
+ import { c as _ } from "../../index-BHf7G3IG.js";
8
+ import { N as y } from "../../index-H7XbDVmH.js";
9
+ import { u as v } from "../../useTranslation-CnCPcxVj.js";
10
+ import '../../Confirm.css';const B = "_btnWrap_1j5qr_2", E = "_dark_1j5qr_2", l = {
11
+ btnWrap: B,
12
+ dark: E
13
+ }, M = (o) => {
14
+ const { t: n } = v(), [, d] = N(o.id), {
15
+ onClose: t,
16
+ okBtnCallback: r,
17
+ isLoading: m,
18
+ appearence: p = c.LIGHT,
19
+ description: f,
20
+ descriptionClassName: k,
21
+ title: u = n("title.warning"),
22
+ okBtnText: x = n("button.yes_proceed"),
23
+ cancelBtnText: j = n("button.cancel")
24
+ } = o, a = () => {
25
+ d(), t && t();
26
+ };
27
+ return C(() => {
28
+ const s = (i) => {
29
+ i.key === "Enter" && (i.preventDefault(), r());
30
+ };
31
+ return window.addEventListener("keydown", s), () => {
32
+ window.removeEventListener("keydown", s);
33
+ };
34
+ }, []), /* @__PURE__ */ e.jsxs(w, { title: u, appearance: p, onClose: a, children: [
35
+ /* @__PURE__ */ e.jsx(
36
+ "p",
37
+ {
38
+ className: _(k, {
39
+ [l.dark]: c.DARK
40
+ }),
41
+ children: f
42
+ }
43
+ ),
44
+ /* @__PURE__ */ e.jsxs("div", { className: l.btnWrap, children: [
45
+ /* @__PURE__ */ e.jsx(
46
+ h,
47
+ {
48
+ appearance: b.PRIMARY,
49
+ onClick: r,
50
+ isLoading: m,
51
+ children: x
52
+ }
53
+ ),
54
+ /* @__PURE__ */ e.jsx("a", { className: "link", onClick: a, children: j })
55
+ ] })
56
+ ] });
57
+ }, K = y.create(M);
58
+ export {
59
+ K as default
60
+ };
@@ -0,0 +1,75 @@
1
+ import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import { C as _ } from "../../react-content-loader.es-CswLCxkm.js";
3
+ import { c as t } from "../../index-BHf7G3IG.js";
4
+ import '../../ContentHeader.css';const x = "_container_ffrew_2", j = "_left_ffrew_2", v = "_right_ffrew_2", N = "_isActiveBorder_ffrew_2", g = "_titleWrapper_ffrew_2", w = "_title_ffrew_2", C = "_description_ffrew_2", r = {
5
+ container: x,
6
+ left: j,
7
+ right: v,
8
+ isActiveBorder: N,
9
+ titleWrapper: g,
10
+ title: w,
11
+ description: C
12
+ }, A = (a) => {
13
+ const {
14
+ title: i,
15
+ leftClassName: n,
16
+ leftComponent: s,
17
+ rightClassName: d,
18
+ titleClassName: l,
19
+ titleWrapperClassName: f,
20
+ component: c,
21
+ description: h,
22
+ isActiveBorder: o,
23
+ isLoading: p,
24
+ ...m
25
+ } = a;
26
+ return /* @__PURE__ */ e.jsxs(
27
+ "div",
28
+ {
29
+ className: t(r.container, {
30
+ isActiveBorder: o
31
+ }),
32
+ ...m,
33
+ "data-testid": "content-header",
34
+ children: [
35
+ /* @__PURE__ */ e.jsx("div", { className: t(n, r.left), children: p ? /* @__PURE__ */ e.jsxs(
36
+ _,
37
+ {
38
+ backgroundColor: "#8c919d",
39
+ foregroundColor: "#dbdbdb",
40
+ width: 150,
41
+ height: 40,
42
+ viewBox: "0 0 150 40",
43
+ children: [
44
+ /* @__PURE__ */ e.jsx("rect", { x: "0", y: "10", rx: "3", ry: "3", width: "100%", height: "15" }),
45
+ /* @__PURE__ */ e.jsx("rect", { x: "0", y: "37", rx: "3", ry: "3", width: "100%", height: "3" })
46
+ ]
47
+ }
48
+ ) : /* @__PURE__ */ e.jsxs("div", { className: t(f), children: [
49
+ i && /* @__PURE__ */ e.jsx(
50
+ "div",
51
+ {
52
+ className: t({
53
+ [r.titleWrapper]: o
54
+ }),
55
+ children: /* @__PURE__ */ e.jsx(
56
+ "h2",
57
+ {
58
+ "data-testid": "content-header-title",
59
+ className: t(l, r.title),
60
+ children: i
61
+ }
62
+ )
63
+ }
64
+ ),
65
+ s && s,
66
+ /* @__PURE__ */ e.jsx("div", { className: r.description, children: h })
67
+ ] }) }),
68
+ /* @__PURE__ */ e.jsx("div", { className: t(d, r.right), children: c && c })
69
+ ]
70
+ }
71
+ );
72
+ };
73
+ export {
74
+ A as default
75
+ };
@@ -0,0 +1,16 @@
1
+ import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import { C as o } from "../../react-content-loader.es-CswLCxkm.js";
3
+ const f = () => /* @__PURE__ */ r.jsx(
4
+ o,
5
+ {
6
+ backgroundColor: "#ffffff",
7
+ foregroundColor: "#8c919d",
8
+ width: 55,
9
+ height: 12,
10
+ viewBox: "0 0 55 12",
11
+ children: /* @__PURE__ */ r.jsx("rect", { x: "0", y: "3", rx: "3", ry: "3", width: "100%", height: "9" })
12
+ }
13
+ );
14
+ export {
15
+ f as default
16
+ };
@@ -0,0 +1,20 @@
1
+ import { j as i } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import r from "react";
3
+ function c({ seconds: e, reset: f, onEnd: a }) {
4
+ const [t, n] = r.useState(e);
5
+ return r.useEffect(() => {
6
+ n(e);
7
+ }, [e, f]), r.useEffect(() => {
8
+ if (!t) {
9
+ a && a();
10
+ return;
11
+ }
12
+ const u = setInterval(() => {
13
+ n(t - 1);
14
+ }, 1e3);
15
+ return () => clearInterval(u);
16
+ }, [t]), /* @__PURE__ */ i.jsx("span", { "data-testid": "countdown", children: t });
17
+ }
18
+ export {
19
+ c as default
20
+ };