@worktango/ai-assistant 0.0.93 → 0.0.94-james.2
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/{Absenteeism-Bx8NMcYc.mjs → Absenteeism-CU6NL_Pv.mjs} +1 -1
- package/dist/{ActivityFeed-BqTP6tRT.mjs → ActivityFeed-Cc1LLxi9.mjs} +1 -1
- package/dist/{AddUser-Cy_by6iH.mjs → AddUser-mg4KuiXK.mjs} +1 -1
- package/dist/{Admin-DMIR7Q04.mjs → Admin-BM8KzqTw.mjs} +1 -1
- package/dist/{Admin-6t5H9d2Y.mjs → Admin-CFQXbM1o.mjs} +1 -1
- package/dist/{AiGeneral-Cah5z3n-.mjs → AiGeneral-CLC0xaDn.mjs} +1 -1
- package/dist/{AiScoring-DBcVcJUL.mjs → AiScoring-Bbu0m2AY.mjs} +1 -1
- package/dist/{AiText-C0ChVh5U.mjs → AiText-BtCLJWDK.mjs} +1 -1
- package/dist/{Anniversary-C5IIXePk.mjs → Anniversary-D-KNwU0_.mjs} +1 -1
- package/dist/{Appreciation-DTkreVuf.mjs → Appreciation-BUjJWWhS.mjs} +1 -1
- package/dist/{ArrowDown-BK_rqLqU.mjs → ArrowDown-uLgN1CGD.mjs} +1 -1
- package/dist/{ArrowLeft-Btkii38n.mjs → ArrowLeft-BJzYUBcG.mjs} +1 -1
- package/dist/{ArrowRight-B-Ta9Z_G.mjs → ArrowRight-DOKUgWuz.mjs} +1 -1
- package/dist/{ArrowUp-BHXSVNlD.mjs → ArrowUp-BJovTVCV.mjs} +1 -1
- package/dist/{Attachment-DNSSkN0A.mjs → Attachment-CwJlC077.mjs} +1 -1
- package/dist/{BeQuickDontHurry-v4EUE5XF.mjs → BeQuickDontHurry-0yd8eLia.mjs} +1 -1
- package/dist/{Birthday-g_hviAnH.mjs → Birthday-ByCCitAn.mjs} +1 -1
- package/dist/{BrandPromise-Bj_acJdO.mjs → BrandPromise-DATnabXl.mjs} +1 -1
- package/dist/{BrandVision-CTmoqrmL.mjs → BrandVision-kXjrwo0e.mjs} +1 -1
- package/dist/{Calendar-3D0iDOZy.mjs → Calendar-BBWQ0Xpv.mjs} +1 -1
- package/dist/{CaretDn-CGKovbPv.mjs → CaretDn-CHiY32Ua.mjs} +1 -1
- package/dist/{CaretDown-Bmeons8I.mjs → CaretDown-zgc0Zznn.mjs} +1 -1
- package/dist/{CaretLeft-CO6sWEp_.mjs → CaretLeft-Dy2ZjcnK.mjs} +1 -1
- package/dist/{CaretRight-DCYZGkI5.mjs → CaretRight-Ch4cyA8G.mjs} +1 -1
- package/dist/{CaretUp-BwyMQWmm.mjs → CaretUp-CJxM78r_.mjs} +1 -1
- package/dist/{ChallengeAccepted-TOtZmohL.mjs → ChallengeAccepted-YROpI54g.mjs} +1 -1
- package/dist/{CheckIn-XjISjSw9.mjs → CheckIn-Oo6TAawo.mjs} +1 -1
- package/dist/{CheckIns-DiB3HYUi.mjs → CheckIns-CQDJoNc8.mjs} +1 -1
- package/dist/{CheckSeal-tW9pvN8M.mjs → CheckSeal-BUMogiE8.mjs} +1 -1
- package/dist/{Checkmark-_4L3YlRQ.mjs → Checkmark-B8_ysWh0.mjs} +1 -1
- package/dist/{Clock-BiVRJq8q.mjs → Clock-DNQjUVQt.mjs} +1 -1
- package/dist/{Close-OUZa539V.mjs → Close-D1HAhcvG.mjs} +1 -1
- package/dist/{CloudDownload-BwGr7Wjx.mjs → CloudDownload-Dn4pkP3l.mjs} +1 -1
- package/dist/{Comment-vVJQBXrh.mjs → Comment-w2hsGe89.mjs} +1 -1
- package/dist/{Comments-UkAFGCTB.mjs → Comments-Bo92f_X3.mjs} +1 -1
- package/dist/{Connections-B6AjbTuC.mjs → Connections-DdY63vjs.mjs} +1 -1
- package/dist/{Copy-viXz8gMn.mjs → Copy-D8cPa_jt.mjs} +1 -1
- package/dist/{CustomQuestion-CJ-M4qFT.mjs → CustomQuestion-qnknW_0w.mjs} +1 -1
- package/dist/{CustomerSuccess-CqjuFz24.mjs → CustomerSuccess-B59QiRwt.mjs} +1 -1
- package/dist/{DatePicker-CRDz2zAB.mjs → DatePicker-Dq1nAXvj.mjs} +116 -116
- package/dist/{Dot-CLyE33yJ.mjs → Dot-Cc6M_1eH.mjs} +1 -1
- package/dist/{Download-C15dl_pD.mjs → Download-D_4UOrUX.mjs} +1 -1
- package/dist/{Drag-BWoF-7rj.mjs → Drag-DlbYavQ1.mjs} +1 -1
- package/dist/{Earn-DjmCgUoI.mjs → Earn-DyUY_8_R.mjs} +1 -1
- package/dist/{Email-BndKdvd1.mjs → Email-CHl_5NxI.mjs} +1 -1
- package/dist/{EmojiDisplay-BfIh2T3-.mjs → EmojiDisplay-CWuZ1ISH.mjs} +2 -2
- package/dist/{EmojiPicker-BQdYTooP.mjs → EmojiPicker-BONHJohF.mjs} +2 -2
- package/dist/{EnpsSurvey-BdKrEVtx.mjs → EnpsSurvey-DCBu-EjV.mjs} +1 -1
- package/dist/{Expired-C22F1bA9.mjs → Expired-BLUlBHRe.mjs} +1 -1
- package/dist/{Eye-BE3FmYxT.mjs → Eye-BPyFsCOx.mjs} +1 -1
- package/dist/{Feedback-DnAvZ6sd.mjs → Feedback-BytpvnfA.mjs} +1 -1
- package/dist/{Feedback-i7JnHh4J.mjs → Feedback-xMG6-0be.mjs} +1 -1
- package/dist/{Filter-DwPcojHw.mjs → Filter-BMRiDgui.mjs} +1 -1
- package/dist/{Flag-DLWntS2C.mjs → Flag-B6H5G1mK.mjs} +1 -1
- package/dist/{Giphy-B38ETzEW.mjs → Giphy-C_39DAZc.mjs} +1 -1
- package/dist/{GoalCount-G-_t_JiQ.mjs → GoalCount-CXQUq1bQ.mjs} +1 -1
- package/dist/{GoalPercent-BToSyWZX.mjs → GoalPercent-cXGnJEax.mjs} +1 -1
- package/dist/{GoalTask-Cjw7FR9I.mjs → GoalTask-5_krv1Gx.mjs} +1 -1
- package/dist/{GoalTask-CDKzAz0i.mjs → GoalTask-DAc6vsW0.mjs} +1 -1
- package/dist/{Goals-up_7K5X9.mjs → Goals-BQAvM234.mjs} +1 -1
- package/dist/{Goals-tVWGpHJ_.mjs → Goals-ByxfI077.mjs} +1 -1
- package/dist/{Growth-B8mKe82W.mjs → Growth-Bl6N7X4U.mjs} +1 -1
- package/dist/{Hamburger-BcGfyddB.mjs → Hamburger-OKrqDfh4.mjs} +1 -1
- package/dist/{Help-CNmQuwhB.mjs → Help-C1IGi8Tr.mjs} +1 -1
- package/dist/{HighFive-BSj2q5Wd.mjs → HighFive-BDi1dDOe.mjs} +1 -1
- package/dist/{HighFive-BtD-G_xc.mjs → HighFive-QlD7B4IP.mjs} +1 -1
- package/dist/{Home-Cp4rYUq_.mjs → Home-B8BwGeFA.mjs} +1 -1
- package/dist/{Home-CfQKm74i.mjs → Home-C450bIMt.mjs} +1 -1
- package/dist/{HorizontalLine-Bl8U8Qgl.mjs → HorizontalLine-DW_kym4o.mjs} +1 -1
- package/dist/{Hourglass-BeDSMhO_.mjs → Hourglass-9t9y3OnO.mjs} +1 -1
- package/dist/{Image-BT5RAv4G.mjs → Image-Dwey7OU7.mjs} +1 -1
- package/dist/{ImageFile-D2lhvEHH.mjs → ImageFile-BR7FjL3N.mjs} +1 -1
- package/dist/{InGoodCompany-e3bMjvaR.mjs → InGoodCompany-CZ0lCu8I.mjs} +1 -1
- package/dist/{Incentives-DLK23h_D.mjs → Incentives-DJZkiqzd.mjs} +1 -1
- package/dist/{Info-C55tX8Jt.mjs → Info-CVwlmXz4.mjs} +1 -1
- package/dist/{Insights-DMJH5LQs.mjs → Insights-DRpUK-GO.mjs} +1 -1
- package/dist/{Insights-BnMbwQnV.mjs → Insights-DyMIte9x.mjs} +1 -1
- package/dist/{Integrations-B7m-oF0Y.mjs → Integrations-CvQqYTEd.mjs} +1 -1
- package/dist/{KazooLogo-B-_wCKqJ.mjs → KazooLogo-B7Icj7Wx.mjs} +1 -1
- package/dist/{KnowYourAudience-7I-gGEcu.mjs → KnowYourAudience-oafh6K63.mjs} +1 -1
- package/dist/{Launch-J7aSzcpA.mjs → Launch-CDbHIOym.mjs} +1 -1
- package/dist/{Link-k_DYLbIt.mjs → Link-cTcAvGtY.mjs} +1 -1
- package/dist/{LinkArrow-Y3jfN0pN.mjs → LinkArrow-BEoGG28g.mjs} +1 -1
- package/dist/{Loading-HYo73Wnw.mjs → Loading-Cd-MDlmw.mjs} +1 -1
- package/dist/{Lock-D6wPjB9H.mjs → Lock-CzttKc6M.mjs} +1 -1
- package/dist/{Management-B85zUasf.mjs → Management-BHxPes7v.mjs} +1 -1
- package/dist/{MeatballMenu-CT6qMxpX.mjs → MeatballMenu-BNxgbHTi.mjs} +1 -1
- package/dist/{Messages-BxZEevo2.mjs → Messages-CPp7uGAt.mjs} +1 -1
- package/dist/{Microphone-C4yL4b-X.mjs → Microphone-CuMFwCV4.mjs} +1 -1
- package/dist/{Mobile-B7j2P3re.mjs → Mobile-DyldBLpc.mjs} +1 -1
- package/dist/{Nomination-DE-msYl4.mjs → Nomination-CMl6Ok6g.mjs} +1 -1
- package/dist/{NominationsAndAwards-Dv0ZivFe.mjs → NominationsAndAwards-V7LreLWr.mjs} +1 -1
- package/dist/{Notification-B7To-gMA.mjs → Notification-BQsTcBok.mjs} +1 -1
- package/dist/{Okrs-CA3vzke3.mjs → Okrs-BdiBUwI_.mjs} +1 -1
- package/dist/{Pause-CeuZyybN.mjs → Pause-CjR0zIZd.mjs} +1 -1
- package/dist/{PeerToPeer-C0T4Xbcw.mjs → PeerToPeer-CRNHo-ui.mjs} +1 -1
- package/dist/{Pencil-o7Kb4ufy.mjs → Pencil-B5sWiCes.mjs} +1 -1
- package/dist/{People-FpPl94ag.mjs → People-a4rue_6p.mjs} +1 -1
- package/dist/{PerformanceManagement-B0xF5btK.mjs → PerformanceManagement-BY9KLMty.mjs} +1 -1
- package/dist/{Pin-Jq9itfQO.mjs → Pin-CWfQm_gZ.mjs} +1 -1
- package/dist/{PinnedIconAward-4QZYZED3.mjs → PinnedIconAward-ObMi_aAv.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-CZyaF8fN.mjs → PinnedIconBrightIdea-CEWta00H.mjs} +1 -1
- package/dist/{PinnedIconBullseye-DH8RBtUh.mjs → PinnedIconBullseye-yki0XcJH.mjs} +1 -1
- package/dist/{PinnedIconChampagne-1duIwDmg.mjs → PinnedIconChampagne-D1W2_ywu.mjs} +1 -1
- package/dist/{PinnedIconCheer-DergkJD8.mjs → PinnedIconCheer-CheunSi3.mjs} +1 -1
- package/dist/{PinnedIconCrown-DY7hwOxr.mjs → PinnedIconCrown-1JAzmvez.mjs} +1 -1
- package/dist/{PinnedIconDiamond-CivoB8FX.mjs → PinnedIconDiamond-BmdYFQ3b.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-C34zs13M.mjs → PinnedIconHoleInOne-BEf6YUq3.mjs} +1 -1
- package/dist/{PinnedIconMedal-gBuz2kcD.mjs → PinnedIconMedal-CuRxrg6A.mjs} +1 -1
- package/dist/{PinnedIconMetrics-H0X9er-R.mjs → PinnedIconMetrics-BMoT_6Gn.mjs} +1 -1
- package/dist/{PinnedIconPin-t7Vj-OCg.mjs → PinnedIconPin-DJn3FsYh.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-Crkmz3Rc.mjs → PinnedIconRockAndRoll-B_vDiibw.mjs} +1 -1
- package/dist/{PinnedIconRocket-xrAQYkGk.mjs → PinnedIconRocket-DFDVjRXl.mjs} +1 -1
- package/dist/{PinnedIconStrength-B9jijUG3.mjs → PinnedIconStrength-B5_ZRI_4.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-5KI1m1Qw.mjs → PinnedIconTeddyBear-T7vsP5pq.mjs} +1 -1
- package/dist/{PlatformLogo-jtjllSFy.mjs → PlatformLogo-CaH0pQl1.mjs} +1 -1
- package/dist/{Plus-yr9i6n9T.mjs → Plus-px1mmsoc.mjs} +1 -1
- package/dist/{Popper-lF6oEyoQ.mjs → Popper-Bkkniwll.mjs} +1 -1
- package/dist/{PrivateEye-IhIj2Vx3.mjs → PrivateEye-B7J5XMGJ.mjs} +1 -1
- package/dist/{PrivatePushPin-DXB_CX_u.mjs → PrivatePushPin-onVW_lOd.mjs} +1 -1
- package/dist/{Processing-Cj3SJA_N.mjs → Processing-DSAFZfFp.mjs} +1 -1
- package/dist/{Productivity-BvNlmeeQ.mjs → Productivity-BSbmCexE.mjs} +1 -1
- package/dist/{ProgressCircle-C9x5sA-_.mjs → ProgressCircle-CoYr8r_J.mjs} +1 -1
- package/dist/{PulseSurvey-BAxIAeNJ.mjs → PulseSurvey-JWFayQp1.mjs} +1 -1
- package/dist/{PushPin-C_aTdzBw.mjs → PushPin-yDNF0ktx.mjs} +1 -1
- package/dist/{Recognition-DqXbZ_e8.mjs → Recognition-CFZXQXsy.mjs} +1 -1
- package/dist/{Recognition-Cn18Dbcz.mjs → Recognition-MkJNeMnQ.mjs} +1 -1
- package/dist/{Retention-DmPMAEUP.mjs → Retention-BNxiQxro.mjs} +1 -1
- package/dist/{Rewards-KuXKrCce.mjs → Rewards-B76pmiAX.mjs} +1 -1
- package/dist/{Rewards-Bi97Tdcx.mjs → Rewards-BvqFpvgn.mjs} +1 -1
- package/dist/{RewardsCatalog-y6CTx1Y2.mjs → RewardsCatalog-BMbWiPUW.mjs} +1 -1
- package/dist/{Roadmap-CIyprE8W.mjs → Roadmap-g2QzfMgu.mjs} +1 -1
- package/dist/{Search-q5lJwWcF.mjs → Search-D3J-dCO7.mjs} +1 -1
- package/dist/{Security-DarSE182.mjs → Security-CsD62BJW.mjs} +1 -1
- package/dist/{SendRecognition-CGiilZKQ.mjs → SendRecognition-KSy7X-lM.mjs} +1 -1
- package/dist/{ShareLink-CoExgu3z.mjs → ShareLink-C_UzYBhb.mjs} +1 -1
- package/dist/{SidebarCollapse-Do2AJq-r.mjs → SidebarCollapse-D_h87S4T.mjs} +1 -1
- package/dist/{Skill-Cc-Sq4rt.mjs → Skill-BN6vppcs.mjs} +1 -1
- package/dist/{Skills-D3BejmlO.mjs → Skills-CGgJxOLX.mjs} +1 -1
- package/dist/{Smiley-CHDkYytl.mjs → Smiley-Ci75oOdg.mjs} +1 -1
- package/dist/{Stop-CJ5mFsHY.mjs → Stop-DjjxV3hn.mjs} +1 -1
- package/dist/{Survey-oo7jbAvb.mjs → Survey-BWR_xgGC.mjs} +1 -1
- package/dist/{Surveys-ErdcKMgj.mjs → Surveys-DNRT4IRs.mjs} +1 -1
- package/dist/{SyncUps-CsrB_cGg.mjs → SyncUps-D-KTY61e.mjs} +1 -1
- package/dist/{Syncs-rV7oY8TC.mjs → Syncs-kjNWIxva.mjs} +1 -1
- package/dist/{TalentReview-Esx0J3DP.mjs → TalentReview-97yXtf9H.mjs} +1 -1
- package/dist/{TalentReview-GEnXCWTJ.mjs → TalentReview-BM0tlHgH.mjs} +1 -1
- package/dist/{TalentReviewInsights-DfKkATPW.mjs → TalentReviewInsights-BrX1k_rm.mjs} +1 -1
- package/dist/{TaskCompleted-CxGNxuLn.mjs → TaskCompleted-CK31Xaw_.mjs} +1 -1
- package/dist/{Team-DV-5MqOi.mjs → Team-BIyNt3O6.mjs} +1 -1
- package/dist/{Teams-Tdftf9qi.mjs → Teams-Feqvl_VR.mjs} +1 -1
- package/dist/{TextBold-aZmuGU13.mjs → TextBold-B_hzWXso.mjs} +1 -1
- package/dist/{TextBulletList-UDaJvhbw.mjs → TextBulletList-CQPBs3an.mjs} +1 -1
- package/dist/{TextInput-BsaVyzTh.mjs → TextInput-BG7cxDz-.mjs} +1 -1
- package/dist/{TextItalic-CiK_mbd9.mjs → TextItalic-X4KdFZQS.mjs} +1 -1
- package/dist/{TextNumberList-mWdjVZIa.mjs → TextNumberList-W_IP62vW.mjs} +1 -1
- package/dist/{TextUnderline-DkQKzcVd.mjs → TextUnderline-CthRU4DA.mjs} +1 -1
- package/dist/{Toggle-gNT1iPvI.mjs → Toggle-B2aHgk88.mjs} +1 -1
- package/dist/{Translate-DZiZ7f9x.mjs → Translate-C5K4EXlV.mjs} +1 -1
- package/dist/{Trash-IegnLc6Q.mjs → Trash-CC2HKKIK.mjs} +1 -1
- package/dist/{TrendDown-CMgY-Trv.mjs → TrendDown-BqTgxdgr.mjs} +1 -1
- package/dist/{TrendUp-CjhWOh-0.mjs → TrendUp-Dz1B8KV4.mjs} +1 -1
- package/dist/{Undo-BjWg0DQr.mjs → Undo-GUeycrEk.mjs} +1 -1
- package/dist/{Unplugged-owCL3g9n.mjs → Unplugged-BcnRk_NE.mjs} +1 -1
- package/dist/{UpDownCaret-DVxga0-W.mjs → UpDownCaret-COhQELW-.mjs} +1 -1
- package/dist/{VerticalLine-DyFaial1.mjs → VerticalLine-DeoXmjqc.mjs} +1 -1
- package/dist/{Warning-DfRDgT05.mjs → Warning-Dyfumy52.mjs} +1 -1
- package/dist/{WarningNoOutline-QfX0mmVf.mjs → WarningNoOutline-BO0yVP2f.mjs} +1 -1
- package/dist/{YesAnd-Dv6hwIh2.mjs → YesAnd-Dq2kIzMf.mjs} +1 -1
- package/dist/{emoji-DgVB1Iad.mjs → emoji-BzhlNJom.mjs} +1 -1
- package/dist/express.js +391 -1344
- package/dist/{react-apexcharts.min-C9yEwfTE.mjs → react-apexcharts.min-BrO3hSo3.mjs} +1 -1
- package/dist/react.es.js +1 -1
- package/dist/react.umd.js +406 -402
- package/dist/{reactComponent-DAPubGzk.mjs → reactComponent-C-J7hoAX.mjs} +11002 -10874
- package/package.json +1 -1
- package/react.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as s, f as
|
|
2
|
-
import k, { useMemo as
|
|
3
|
-
const
|
|
1
|
+
import { j as s, f as z, c as ut, b as D, a as N, e as E, C as st, I as K } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
|
+
import k, { useMemo as B, useRef as Z, useImperativeHandle as lt, useEffect as J, useCallback as S } from "react";
|
|
3
|
+
const ct = ["onCreate", "onDestroy"], G = [
|
|
4
4
|
"onChange",
|
|
5
5
|
"onOpen",
|
|
6
6
|
"onClose",
|
|
@@ -9,20 +9,20 @@ const lt = ["onCreate", "onDestroy"], w = [
|
|
|
9
9
|
"onReady",
|
|
10
10
|
"onValueUpdate",
|
|
11
11
|
"onDayCreate"
|
|
12
|
-
],
|
|
12
|
+
], pt = (t, u) => (G.forEach((r) => {
|
|
13
13
|
const p = u[r], e = t[r];
|
|
14
14
|
if (p) {
|
|
15
15
|
e && !Array.isArray(e) ? t[r] = [t[r]] : t[r] || (t[r] = []);
|
|
16
|
-
const
|
|
17
|
-
t[r].length === 0 ? t[r] =
|
|
16
|
+
const x = Array.isArray(p) ? p : [p];
|
|
17
|
+
t[r].length === 0 ? t[r] = x : t[r].push(...x);
|
|
18
18
|
}
|
|
19
|
-
}),
|
|
19
|
+
}), G.forEach((r) => {
|
|
20
20
|
delete u[r];
|
|
21
|
-
}),
|
|
21
|
+
}), ct.forEach((r) => {
|
|
22
22
|
delete u[r];
|
|
23
|
-
}), t),
|
|
24
|
-
const u =
|
|
25
|
-
|
|
23
|
+
}), t), dt = (t) => {
|
|
24
|
+
const u = B(() => ({ ...t }), [t]), { defaultValue: r, options: p = {}, value: e, children: x, render: C, onCreate: v, onDestroy: f } = u, m = B(() => pt(p, u), [p, u]), W = Z(null), a = Z(void 0);
|
|
25
|
+
lt(
|
|
26
26
|
t.ref,
|
|
27
27
|
() => ({
|
|
28
28
|
get flatpickr() {
|
|
@@ -30,150 +30,150 @@ const lt = ["onCreate", "onDestroy"], w = [
|
|
|
30
30
|
}
|
|
31
31
|
}),
|
|
32
32
|
[]
|
|
33
|
-
),
|
|
33
|
+
), J(() => {
|
|
34
34
|
const l = () => {
|
|
35
35
|
var c;
|
|
36
36
|
m.onClose = m.onClose || (() => {
|
|
37
|
-
var
|
|
38
|
-
(
|
|
39
|
-
}), a.current = (((c =
|
|
37
|
+
var y;
|
|
38
|
+
(y = W.current) != null && y.blur && W.current.blur();
|
|
39
|
+
}), a.current = (((c = z) == null ? void 0 : c.default) || z)(W.current, m), v == null || v(a.current);
|
|
40
40
|
}, g = () => {
|
|
41
41
|
f == null || f(a.current), a.current && a.current.destroy(), a.current = void 0;
|
|
42
42
|
};
|
|
43
43
|
return l(), () => {
|
|
44
44
|
g();
|
|
45
45
|
};
|
|
46
|
-
}, [m,
|
|
46
|
+
}, [m, v, f]), J(() => {
|
|
47
47
|
var l;
|
|
48
48
|
if (a.current) {
|
|
49
49
|
const g = Object.getOwnPropertyNames(m);
|
|
50
50
|
for (let c = g.length - 1; c >= 0; c--) {
|
|
51
|
-
const
|
|
52
|
-
let
|
|
53
|
-
(
|
|
51
|
+
const y = g[c];
|
|
52
|
+
let o = m[y];
|
|
53
|
+
(o == null ? void 0 : o.toString()) !== ((l = a.current.config[y]) == null ? void 0 : l.toString()) && (G.includes(y) && !Array.isArray(o) && (o = [o]), a.current.set(y, o));
|
|
54
54
|
}
|
|
55
55
|
e !== void 0 && e !== a.current.input.value && a.current.setDate(e, !1);
|
|
56
56
|
}
|
|
57
57
|
}, [m, e]);
|
|
58
|
-
const h =
|
|
58
|
+
const h = S((l) => {
|
|
59
59
|
W.current = l;
|
|
60
60
|
}, []);
|
|
61
|
-
if (
|
|
62
|
-
return
|
|
63
|
-
const
|
|
61
|
+
if (C)
|
|
62
|
+
return C({ ...u, defaultValue: r, value: e }, h);
|
|
63
|
+
const P = S(
|
|
64
64
|
(l) => {
|
|
65
65
|
var g, c;
|
|
66
66
|
t && t.onChange && (Array.isArray(t == null ? void 0 : t.onChange) ? (g = t == null ? void 0 : t.onChange) == null || g.forEach(() => [new Date(l.target.value)], (e == null ? void 0 : e.toString()) || "") : typeof t.onChange == "function" && ((c = t == null ? void 0 : t.onChange) == null || c.call(t, [new Date(l.target.value)], (e == null ? void 0 : e.toString()) || "", a.current)));
|
|
67
67
|
},
|
|
68
68
|
[t, e]
|
|
69
69
|
);
|
|
70
|
-
return p.wrap ? /* @__PURE__ */ s.jsx("div", { className: "flatpickr", ref: h, children:
|
|
70
|
+
return p.wrap ? /* @__PURE__ */ s.jsx("div", { className: "flatpickr", ref: h, children: x }) : /* @__PURE__ */ s.jsx(
|
|
71
71
|
"input",
|
|
72
72
|
{
|
|
73
|
-
onChange:
|
|
73
|
+
onChange: P,
|
|
74
74
|
...u,
|
|
75
75
|
value: e == null ? void 0 : e.toString(),
|
|
76
76
|
defaultValue: r,
|
|
77
77
|
ref: h
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
},
|
|
81
|
-
systemGray3:
|
|
82
|
-
inputMaxWidthSmall:
|
|
83
|
-
inputMaxWidthDefault:
|
|
84
|
-
inputMaxWidthLarge:
|
|
85
|
-
input:
|
|
86
|
-
inputWrapper:
|
|
87
|
-
inputWrapperCompact:
|
|
80
|
+
}, ft = "#949494", mt = "DatePicker-module_inputMaxWidthSmall_cRYaK", ht = "DatePicker-module_inputMaxWidthDefault_GbIO-", gt = "DatePicker-module_inputMaxWidthLarge_fZKFi", yt = "DatePicker-module_input_3VHte", xt = "DatePicker-module_inputWrapper_aqoyL", Ct = "DatePicker-module_inputWrapperCompact_-7CrL", vt = "DatePicker-module_iconButton_19a6e", Wt = "DatePicker-module_clearButton_O1D31", i = {
|
|
81
|
+
systemGray3: ft,
|
|
82
|
+
inputMaxWidthSmall: mt,
|
|
83
|
+
inputMaxWidthDefault: ht,
|
|
84
|
+
inputMaxWidthLarge: gt,
|
|
85
|
+
input: yt,
|
|
86
|
+
inputWrapper: xt,
|
|
87
|
+
inputWrapperCompact: Ct,
|
|
88
88
|
"inputWrapper--error": "DatePicker-module_inputWrapper--error_bhHqD",
|
|
89
89
|
"inputWrapper--disabled": "DatePicker-module_inputWrapper--disabled_WFJUG",
|
|
90
|
-
iconButton:
|
|
91
|
-
clearButton:
|
|
90
|
+
iconButton: vt,
|
|
91
|
+
clearButton: Wt
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function At({
|
|
94
94
|
attachTo: t,
|
|
95
95
|
position: u,
|
|
96
96
|
compact: r = !1,
|
|
97
97
|
inputMaxWidth: p = "default",
|
|
98
98
|
defaultDate: e,
|
|
99
|
-
disabled:
|
|
100
|
-
error:
|
|
101
|
-
fullWidth:
|
|
99
|
+
disabled: x = !1,
|
|
100
|
+
error: C = null,
|
|
101
|
+
fullWidth: v = !1,
|
|
102
102
|
id: f,
|
|
103
103
|
helperText: m = "",
|
|
104
104
|
optionalLabelText: W = "",
|
|
105
105
|
label: a,
|
|
106
106
|
mode: h = "single",
|
|
107
|
-
onChange:
|
|
107
|
+
onChange: P,
|
|
108
108
|
onOpen: l,
|
|
109
109
|
onClose: g,
|
|
110
110
|
showClearButton: c = !1,
|
|
111
|
-
showIcon:
|
|
112
|
-
firstSelectableDate:
|
|
111
|
+
showIcon: y = !0,
|
|
112
|
+
firstSelectableDate: o,
|
|
113
113
|
lastSelectableDate: _,
|
|
114
|
-
dateFormat:
|
|
115
|
-
allowInput:
|
|
116
|
-
tooltip:
|
|
117
|
-
"data-testid":
|
|
118
|
-
flatpickrRef:
|
|
119
|
-
placeholder:
|
|
120
|
-
calendarContainerClass:
|
|
121
|
-
plugins:
|
|
122
|
-
value:
|
|
114
|
+
dateFormat: H = "F j, Y",
|
|
115
|
+
allowInput: F = !0,
|
|
116
|
+
tooltip: $,
|
|
117
|
+
"data-testid": Q,
|
|
118
|
+
flatpickrRef: b,
|
|
119
|
+
placeholder: T,
|
|
120
|
+
calendarContainerClass: V,
|
|
121
|
+
plugins: X = [],
|
|
122
|
+
value: M
|
|
123
123
|
}) {
|
|
124
|
-
var
|
|
124
|
+
var U, Y;
|
|
125
125
|
const O = k.useId();
|
|
126
|
-
f =
|
|
127
|
-
const d = k.useRef(null), tt = !!((
|
|
128
|
-
N(
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
126
|
+
f = ut(f, `date-picker-${O}`);
|
|
127
|
+
const d = k.useRef(null), tt = !!((Y = (U = d == null ? void 0 : d.current) == null ? void 0 : U.input) != null && Y.value), nt = B(() => Array.isArray(M) ? M : typeof M == "string" ? D(M).toDate() : M, [M]), j = N(
|
|
128
|
+
N(E.input, i.input, {
|
|
129
|
+
[E["input--compact"]]: r,
|
|
130
|
+
[E["input--disabled"]]: x,
|
|
131
|
+
[E["input--error"]]: !!C
|
|
132
132
|
})
|
|
133
133
|
);
|
|
134
134
|
k.useEffect(() => {
|
|
135
135
|
if (d.current) {
|
|
136
136
|
const n = d.current.input.nextSibling;
|
|
137
|
-
n && "id" in n && "autocomplete" in n && Object.assign(n, { id: f, autocomplete: "off" }),
|
|
137
|
+
n && "id" in n && "autocomplete" in n && Object.assign(n, { id: f, autocomplete: "off" }), b && (b.current = d.current);
|
|
138
138
|
}
|
|
139
|
-
}, [f,
|
|
139
|
+
}, [f, b]), k.useEffect(() => {
|
|
140
140
|
if (d.current) {
|
|
141
141
|
const n = d.current.input.nextSibling;
|
|
142
|
-
n && "className" in n && Object.assign(n, { className:
|
|
142
|
+
n && "className" in n && Object.assign(n, { className: j });
|
|
143
143
|
}
|
|
144
|
-
}, [
|
|
145
|
-
const
|
|
146
|
-
if (!
|
|
144
|
+
}, [j]);
|
|
145
|
+
const R = k.useMemo(() => {
|
|
146
|
+
if (!o && !_)
|
|
147
147
|
return;
|
|
148
|
-
const n =
|
|
148
|
+
const n = D(o), q = D(_), A = D(
|
|
149
149
|
Array.isArray(e) ? e[0] : e
|
|
150
150
|
);
|
|
151
151
|
return (ot) => {
|
|
152
|
-
const L =
|
|
153
|
-
if (L.isSame(
|
|
152
|
+
const L = D(ot);
|
|
153
|
+
if (L.isSame(A, "day"))
|
|
154
154
|
return !1;
|
|
155
|
-
let
|
|
156
|
-
return
|
|
155
|
+
let w = !0;
|
|
156
|
+
return o && L.isBefore(n, "day") && (w = !1), _ && L.isAfter(q, "day") && (w = !1), !w;
|
|
157
157
|
};
|
|
158
|
-
}, [
|
|
158
|
+
}, [o, _]), et = S(
|
|
159
159
|
(n) => {
|
|
160
|
-
n && "clear" in n && "close" in n && "input" in n && "calendarContainer" in n && (d.current = n,
|
|
160
|
+
n && "clear" in n && "close" in n && "input" in n && "calendarContainer" in n && (d.current = n, V && (n.calendarContainer.className = N(
|
|
161
161
|
n.calendarContainer.className,
|
|
162
|
-
|
|
162
|
+
V
|
|
163
163
|
)));
|
|
164
164
|
},
|
|
165
|
-
[
|
|
166
|
-
),
|
|
167
|
-
(n,
|
|
168
|
-
|
|
165
|
+
[V]
|
|
166
|
+
), rt = S(
|
|
167
|
+
(n, q, A) => {
|
|
168
|
+
P(n), h === "range" && n.length === 2 && (A == null || A.close());
|
|
169
169
|
},
|
|
170
|
-
[
|
|
171
|
-
),
|
|
170
|
+
[P, h]
|
|
171
|
+
), at = B(() => R ? [R] : [], [o, _]), it = B(
|
|
172
172
|
() => ({
|
|
173
|
-
allowInput:
|
|
174
|
-
altFormat:
|
|
173
|
+
allowInput: F,
|
|
174
|
+
altFormat: H,
|
|
175
175
|
altInput: !0,
|
|
176
|
-
altInputClass:
|
|
176
|
+
altInputClass: j,
|
|
177
177
|
appendTo: t || void 0,
|
|
178
178
|
/**
|
|
179
179
|
* Legacy code supports HTMLDivElement here even thought Flatpickr claims to only support HtmlElement.
|
|
@@ -185,89 +185,89 @@ function Mt({
|
|
|
185
185
|
mode: h,
|
|
186
186
|
wrap: !0,
|
|
187
187
|
defaultDate: e,
|
|
188
|
-
disable:
|
|
189
|
-
plugins:
|
|
188
|
+
disable: at,
|
|
189
|
+
plugins: X,
|
|
190
190
|
closeOnSelect: h !== "range"
|
|
191
191
|
}),
|
|
192
192
|
[
|
|
193
|
+
F,
|
|
193
194
|
H,
|
|
194
|
-
|
|
195
|
-
A,
|
|
195
|
+
j,
|
|
196
196
|
t,
|
|
197
197
|
u,
|
|
198
198
|
h,
|
|
199
|
-
|
|
199
|
+
o,
|
|
200
200
|
_
|
|
201
201
|
]
|
|
202
202
|
);
|
|
203
|
-
let
|
|
203
|
+
let I;
|
|
204
204
|
switch (p) {
|
|
205
205
|
case "small":
|
|
206
|
-
|
|
206
|
+
I = i.inputMaxWidthSmall;
|
|
207
207
|
break;
|
|
208
208
|
case "large":
|
|
209
|
-
|
|
209
|
+
I = i.inputMaxWidthLarge;
|
|
210
210
|
break;
|
|
211
211
|
default:
|
|
212
|
-
|
|
212
|
+
I = i.inputMaxWidthDefault;
|
|
213
213
|
}
|
|
214
214
|
return /* @__PURE__ */ s.jsx(
|
|
215
|
-
|
|
215
|
+
st,
|
|
216
216
|
{
|
|
217
|
-
tooltip:
|
|
217
|
+
tooltip: $,
|
|
218
218
|
wrapperClassNames: N({
|
|
219
|
-
[
|
|
219
|
+
[I]: !v
|
|
220
220
|
}),
|
|
221
221
|
label: a,
|
|
222
222
|
helperText: m,
|
|
223
223
|
optionalLabelText: W,
|
|
224
|
-
disabled:
|
|
225
|
-
error:
|
|
224
|
+
disabled: x,
|
|
225
|
+
error: C,
|
|
226
226
|
inputId: f,
|
|
227
|
-
fullWidth:
|
|
227
|
+
fullWidth: v,
|
|
228
228
|
renderControl: () => /* @__PURE__ */ s.jsx(
|
|
229
|
-
|
|
229
|
+
dt,
|
|
230
230
|
{
|
|
231
|
-
options:
|
|
231
|
+
options: it,
|
|
232
232
|
onOpen: l,
|
|
233
|
-
onCreate:
|
|
233
|
+
onCreate: et,
|
|
234
234
|
onClose: g,
|
|
235
|
-
value:
|
|
236
|
-
onChange:
|
|
235
|
+
value: nt,
|
|
236
|
+
onChange: rt,
|
|
237
237
|
children: /* @__PURE__ */ s.jsxs(
|
|
238
238
|
"div",
|
|
239
239
|
{
|
|
240
|
-
"data-testid":
|
|
241
|
-
className: N(
|
|
242
|
-
[
|
|
243
|
-
[
|
|
244
|
-
[
|
|
240
|
+
"data-testid": Q,
|
|
241
|
+
className: N(i.inputWrapper, {
|
|
242
|
+
[i["inputWrapper--error"]]: !!C,
|
|
243
|
+
[i["inputWrapper--disabled"]]: x,
|
|
244
|
+
[i.inputWrapperCompact]: r
|
|
245
245
|
}),
|
|
246
246
|
children: [
|
|
247
247
|
/* @__PURE__ */ s.jsx(
|
|
248
248
|
"input",
|
|
249
249
|
{
|
|
250
|
-
className:
|
|
250
|
+
className: i.inputElement,
|
|
251
251
|
"data-input": !0,
|
|
252
252
|
defaultValue: e && typeof e == "string" ? e : void 0,
|
|
253
253
|
"data-testid": "date-picker-input",
|
|
254
|
-
placeholder:
|
|
254
|
+
placeholder: T
|
|
255
255
|
}
|
|
256
256
|
),
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
y && /* @__PURE__ */ s.jsx("div", { className: i.iconButton, "data-toggle": !0, children: /* @__PURE__ */ s.jsx("div", { className: i.iconWrapper, children: /* @__PURE__ */ s.jsx(
|
|
258
|
+
K,
|
|
259
259
|
{
|
|
260
260
|
icon: "calendar",
|
|
261
261
|
variant: "thin",
|
|
262
262
|
size: 24,
|
|
263
|
-
color:
|
|
263
|
+
color: i.systemGray3
|
|
264
264
|
}
|
|
265
265
|
) }) }),
|
|
266
266
|
// istanbul ignore next - relies on the lifecycle hooks in Flatpickr, which doesn't play nicely with unit tests
|
|
267
267
|
c && tt && /* @__PURE__ */ s.jsx(
|
|
268
268
|
"button",
|
|
269
269
|
{
|
|
270
|
-
className:
|
|
270
|
+
className: i.clearButton,
|
|
271
271
|
onClick: () => {
|
|
272
272
|
var n;
|
|
273
273
|
(n = d.current) == null || n.clear();
|
|
@@ -275,13 +275,13 @@ function Mt({
|
|
|
275
275
|
"data-testid": "data-picker-clear-button",
|
|
276
276
|
title: "Clear",
|
|
277
277
|
type: "button",
|
|
278
|
-
children: /* @__PURE__ */ s.jsx("div", { className:
|
|
279
|
-
|
|
278
|
+
children: /* @__PURE__ */ s.jsx("div", { className: i.iconWrapper, children: /* @__PURE__ */ s.jsx(
|
|
279
|
+
K,
|
|
280
280
|
{
|
|
281
281
|
icon: "close",
|
|
282
282
|
variant: "thin",
|
|
283
283
|
size: 12,
|
|
284
|
-
color:
|
|
284
|
+
color: i.systemGray3
|
|
285
285
|
}
|
|
286
286
|
) })
|
|
287
287
|
}
|
|
@@ -295,5 +295,5 @@ function Mt({
|
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
297
|
export {
|
|
298
|
-
|
|
298
|
+
At as default
|
|
299
299
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./reactComponent-
|
|
1
|
+
import { j as t } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
2
|
const e = ({ color: o }) => /* @__PURE__ */ t.jsxs("g", { fill: "none", strokeWidth: "1", stroke: o, children: [
|
|
3
3
|
/* @__PURE__ */ t.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M3.739 8.957h18.261" }),
|
|
4
4
|
/* @__PURE__ */ t.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M2 15.043h18.261" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./reactComponent-
|
|
1
|
+
import { j as t } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
2
|
const o = ({ color: s }) => /* @__PURE__ */ t.jsxs("g", { fill: "none", strokeWidth: "1", stroke: s, children: [
|
|
3
3
|
/* @__PURE__ */ t.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M3 21l18-18" }),
|
|
4
4
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as C } from "./reactComponent-
|
|
1
|
+
import { j as C } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
2
|
function l({ illustrationColor: t }) {
|
|
3
3
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ C.jsx("title", { children: "Goals illustration" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as C } from "./reactComponent-
|
|
1
|
+
import { j as C } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
2
|
function i({ illustrationColor: t }) {
|
|
3
3
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ C.jsx("title", { children: "Growth illustration" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./reactComponent-
|
|
1
|
+
import { j as t } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
2
|
const e = ({ color: o }) => /* @__PURE__ */ t.jsxs("g", { id: "Symbols", fill: "none", stroke: o, children: [
|
|
3
3
|
/* @__PURE__ */ t.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M2 17.5h20" }),
|
|
4
4
|
/* @__PURE__ */ t.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M2 11.5h20" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as C } from "./reactComponent-
|
|
1
|
+
import { j as C } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
2
|
function e({ illustrationColor: t }) {
|
|
3
3
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ C.jsx("title", { children: "Home illustration" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./reactComponent-
|
|
1
|
+
import { j as t } from "./reactComponent-C-J7hoAX.mjs";
|
|
2
2
|
const r = ({ variant: e }) => n[e], n = {
|
|
3
3
|
regular: /* @__PURE__ */ t.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M1,12.5 h 22", strokeWidth: 3 }),
|
|
4
4
|
thin: /* @__PURE__ */ t.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M1,12.5 h 22", strokeWidth: 1 }),
|