@worktango/ai-assistant 0.0.100 → 0.0.101
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-B5uFyBsw.mjs → Absenteeism-1rPTEuue.mjs} +1 -1
- package/dist/{ActivityFeed-CIMHuRRz.mjs → ActivityFeed-CT-q4kay.mjs} +1 -1
- package/dist/{AddUser-Cuo4Nbpa.mjs → AddUser-Cp9T1hXf.mjs} +1 -1
- package/dist/{Admin-gPHNiakz.mjs → Admin-BATdYN8Y.mjs} +1 -1
- package/dist/{Admin-B77s5j3d.mjs → Admin-caeprcjX.mjs} +1 -1
- package/dist/{AiGeneral-BdYWK1Ya.mjs → AiGeneral-AY2QibXE.mjs} +1 -1
- package/dist/{AiScoring-BplnFQDg.mjs → AiScoring-CBSofoFT.mjs} +1 -1
- package/dist/{AiText-DoByI_Rl.mjs → AiText-D0escLne.mjs} +1 -1
- package/dist/{Anniversary-Cg3Pd4Ys.mjs → Anniversary-jxObEpo4.mjs} +1 -1
- package/dist/{Appreciation-DiYuZi43.mjs → Appreciation-CRFTfDRY.mjs} +1 -1
- package/dist/{ArrowDown-B_sUp6Mz.mjs → ArrowDown-CQ1qITGM.mjs} +1 -1
- package/dist/{ArrowLeft-DJQJ5wO9.mjs → ArrowLeft-CmyQcPKx.mjs} +1 -1
- package/dist/{ArrowRight-fusQi3EU.mjs → ArrowRight-7SSlKcxW.mjs} +1 -1
- package/dist/{ArrowUp-CSvPmY_6.mjs → ArrowUp-_sI9Q0mV.mjs} +1 -1
- package/dist/{Attachment-ETC5GqvX.mjs → Attachment-CIMIWuD7.mjs} +1 -1
- package/dist/{BeQuickDontHurry-Dj4zloiI.mjs → BeQuickDontHurry-D7Lts6bj.mjs} +1 -1
- package/dist/{Birthday-DxASETaT.mjs → Birthday-DraogGsP.mjs} +1 -1
- package/dist/{BrandPromise-BONjxxnT.mjs → BrandPromise-BNKcXCAb.mjs} +1 -1
- package/dist/{BrandVision-CP9FL9HY.mjs → BrandVision-DxEKE_nK.mjs} +1 -1
- package/dist/{Calendar-Ca-Xs7Sj.mjs → Calendar-CY2mEl1X.mjs} +1 -1
- package/dist/{CaretDn-caYZmERA.mjs → CaretDn-BKUzjGMw.mjs} +1 -1
- package/dist/{CaretDown-ZQqry_3r.mjs → CaretDown-CAXkrlaU.mjs} +1 -1
- package/dist/{CaretLeft-CGuqjqcJ.mjs → CaretLeft-Bt8yUUkZ.mjs} +1 -1
- package/dist/{CaretRight-0DEVSv0G.mjs → CaretRight-CXcSFxCF.mjs} +1 -1
- package/dist/{CaretUp-BE6DHB4M.mjs → CaretUp-DDek45Jd.mjs} +1 -1
- package/dist/{ChallengeAccepted-gmM_yRvd.mjs → ChallengeAccepted-VYFXl3va.mjs} +1 -1
- package/dist/{CheckIn-yX7_-T7O.mjs → CheckIn-BY5vwDhA.mjs} +1 -1
- package/dist/{CheckIns-COIVP4ov.mjs → CheckIns-C0pmBrwO.mjs} +1 -1
- package/dist/{CheckSeal-f3kly1bK.mjs → CheckSeal-C9YDiohv.mjs} +1 -1
- package/dist/{Checkmark-Cd5CYWzM.mjs → Checkmark-DKXTrYfw.mjs} +1 -1
- package/dist/{Clock-CJR1TbNU.mjs → Clock-DiJX21vX.mjs} +1 -1
- package/dist/{Close-BZEcZCIc.mjs → Close-DmwQl-sP.mjs} +1 -1
- package/dist/{CloudDownload-BXV7fCJP.mjs → CloudDownload-DgkVM0pQ.mjs} +1 -1
- package/dist/{Comment-Bhez6PXs.mjs → Comment-DMITR8Hm.mjs} +1 -1
- package/dist/{Comments-Dt8J2ik8.mjs → Comments-DEzCwFA8.mjs} +1 -1
- package/dist/{Connections-l1XNmhDW.mjs → Connections-BWBK-Chn.mjs} +1 -1
- package/dist/{Copy-9TNpYSZt.mjs → Copy-BUC3gqm_.mjs} +1 -1
- package/dist/{CustomQuestion-BhwYeeOy.mjs → CustomQuestion-DaGPbE3Q.mjs} +1 -1
- package/dist/{CustomerSuccess-BARclpPZ.mjs → CustomerSuccess-BFvF3WJE.mjs} +1 -1
- package/dist/{DatePicker-Cghj6QA2.mjs → DatePicker-Cp9GJ5CG.mjs} +131 -127
- package/dist/{Dot-B2HdR3U8.mjs → Dot-BYmF_riG.mjs} +1 -1
- package/dist/{Download-ClR6iT-H.mjs → Download-B3JlTOjJ.mjs} +1 -1
- package/dist/{Drag-D3-Nt7he.mjs → Drag-D4ChiTSo.mjs} +1 -1
- package/dist/{Earn-C2rlopw-.mjs → Earn-W3jtC9Fd.mjs} +1 -1
- package/dist/{Email-CkVSwjYI.mjs → Email-CyI2CfTk.mjs} +1 -1
- package/dist/{EmojiDisplay-CmrgxF6w.mjs → EmojiDisplay-DaRf2Z0m.mjs} +2 -2
- package/dist/{EmojiPicker-BwRjzcsn.mjs → EmojiPicker-fNWCq3Qf.mjs} +2 -2
- package/dist/{EnpsSurvey-PosHvyEv.mjs → EnpsSurvey-BzYt_uWF.mjs} +1 -1
- package/dist/{Expired-DgCEkXkt.mjs → Expired-D4jNYeCy.mjs} +1 -1
- package/dist/{Eye-Bj2baKc-.mjs → Eye-C4NFifxk.mjs} +1 -1
- package/dist/{Feedback-3XHWDsV7.mjs → Feedback-BZmDrpzo.mjs} +1 -1
- package/dist/{Feedback-BHj27Nk_.mjs → Feedback-BuECoI_g.mjs} +1 -1
- package/dist/{Filter-FUxlMynd.mjs → Filter-BSv_klVC.mjs} +1 -1
- package/dist/{Flag-MvOAWA4B.mjs → Flag-D2rqBpDo.mjs} +1 -1
- package/dist/Giphy-DzXfFRrL.mjs +24 -0
- package/dist/{GoalCount-DHBGasWV.mjs → GoalCount-g7MRWHr8.mjs} +1 -1
- package/dist/{GoalPercent-Clz7scpr.mjs → GoalPercent-Ytowx30f.mjs} +1 -1
- package/dist/{GoalTask-C1Bjtspe.mjs → GoalTask-DUFUOtip.mjs} +1 -1
- package/dist/{GoalTask-DKAb9W-R.mjs → GoalTask-DXzLWixa.mjs} +1 -1
- package/dist/{Goals-yNALCvfb.mjs → Goals-BPvESiPR.mjs} +1 -1
- package/dist/{Goals-CamaQ3jj.mjs → Goals-DfZeIQ4E.mjs} +1 -1
- package/dist/{Growth-CAJ1vwYD.mjs → Growth-I-ucmpnt.mjs} +1 -1
- package/dist/{Hamburger-CwAlAnYw.mjs → Hamburger-DTGRwfom.mjs} +1 -1
- package/dist/{Help-Cx8YZpmf.mjs → Help-BxMmPw7v.mjs} +1 -1
- package/dist/{HighFive-DajJb0K_.mjs → HighFive-CEO0oTCb.mjs} +1 -1
- package/dist/{HighFive-C8hsPDVJ.mjs → HighFive-CeoiKOa1.mjs} +1 -1
- package/dist/{Home-C3n92WXU.mjs → Home-D7ghjSPe.mjs} +1 -1
- package/dist/{Home-D4RQZjyG.mjs → Home-HGhf2aJs.mjs} +1 -1
- package/dist/{HorizontalLine-CPVuk9Fo.mjs → HorizontalLine-BBDoA-7k.mjs} +1 -1
- package/dist/{Hourglass-BbR6oHYB.mjs → Hourglass-DIheqIgr.mjs} +1 -1
- package/dist/{Image-BiU9x2FH.mjs → Image-C9BFWU38.mjs} +1 -1
- package/dist/{ImageFile-COSyXI6o.mjs → ImageFile-CLZuw1rk.mjs} +1 -1
- package/dist/{InGoodCompany-BEazP-d-.mjs → InGoodCompany-CBeC-iHN.mjs} +1 -1
- package/dist/{Incentives-BQxs_I6_.mjs → Incentives-B2UVWZaN.mjs} +1 -1
- package/dist/{Info-B4CbGoMI.mjs → Info-BCMX2aNw.mjs} +1 -1
- package/dist/{Insights-gUwoHSzb.mjs → Insights-7dFILQkw.mjs} +1 -1
- package/dist/{Insights-qx1okLtJ.mjs → Insights-DlqyN_b6.mjs} +1 -1
- package/dist/{Integrations-BFs_6pBF.mjs → Integrations-EjXdZ6P2.mjs} +1 -1
- package/dist/{KazooLogo-sQWVVqoO.mjs → KazooLogo-BeP2UVPd.mjs} +1 -1
- package/dist/{KnowYourAudience-D7bwwbJv.mjs → KnowYourAudience-Dl8oILbj.mjs} +1 -1
- package/dist/{Launch-C4HdDkka.mjs → Launch-B4tRzyxU.mjs} +1 -1
- package/dist/{Link-B5hnZXDR.mjs → Link-Dn1-n7pO.mjs} +1 -1
- package/dist/{LinkArrow-Dk7hHH_q.mjs → LinkArrow-DX9L2eh_.mjs} +1 -1
- package/dist/{Loading-Cpnc_rh2.mjs → Loading-QdfH6V_Y.mjs} +1 -1
- package/dist/{Lock-CebnIop8.mjs → Lock-DhnCxHxA.mjs} +1 -1
- package/dist/{Management-B3GQuGCi.mjs → Management-qpOJur-p.mjs} +1 -1
- package/dist/{MeatballMenu-CbbHW9Oe.mjs → MeatballMenu-C669Ogfz.mjs} +1 -1
- package/dist/{Messages-C81H9Y4k.mjs → Messages-ob98FAF6.mjs} +1 -1
- package/dist/{Microphone-DbMl9d4U.mjs → Microphone-Do0LGY_T.mjs} +1 -1
- package/dist/{Mobile-Bee-36N3.mjs → Mobile-COS-wDSX.mjs} +1 -1
- package/dist/{Nomination-Dl2Zq33G.mjs → Nomination-BUaqqjlk.mjs} +1 -1
- package/dist/{NominationsAndAwards-BO7Z40M5.mjs → NominationsAndAwards-CxVjUMup.mjs} +1 -1
- package/dist/{Notification-DTb0T_PA.mjs → Notification-z2YyRWVt.mjs} +1 -1
- package/dist/{Okrs-pkqrtuz3.mjs → Okrs-C8_iXTko.mjs} +1 -1
- package/dist/{Pause-CDE1U2Vw.mjs → Pause-DPlfin4A.mjs} +1 -1
- package/dist/{PeerToPeer-BJmh95_j.mjs → PeerToPeer-zw9WOGmg.mjs} +1 -1
- package/dist/{Pencil-C_BzkKAF.mjs → Pencil-aAF9FRkD.mjs} +1 -1
- package/dist/{People-C0ZDoIof.mjs → People-CpJSOEKx.mjs} +1 -1
- package/dist/{PerformanceManagement-B4HhVL9U.mjs → PerformanceManagement-CoZmKKrR.mjs} +1 -1
- package/dist/{Pin-Bos_CbVJ.mjs → Pin-DiqEQMvo.mjs} +1 -1
- package/dist/{PinnedIconAward-CKDqcHdY.mjs → PinnedIconAward-yuTAFE2I.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-BtvnsrXt.mjs → PinnedIconBrightIdea-COU2KAp2.mjs} +1 -1
- package/dist/{PinnedIconBullseye-HwfZQc_2.mjs → PinnedIconBullseye-Cuf_BHgP.mjs} +1 -1
- package/dist/{PinnedIconChampagne-Dia5M4hU.mjs → PinnedIconChampagne-Dw0jmn6G.mjs} +1 -1
- package/dist/{PinnedIconCheer-BfYMemPU.mjs → PinnedIconCheer-RkBcRjMo.mjs} +1 -1
- package/dist/{PinnedIconCrown-GUGGk4jm.mjs → PinnedIconCrown-DXOjKdQe.mjs} +1 -1
- package/dist/{PinnedIconDiamond-DtqOqgZQ.mjs → PinnedIconDiamond-DLGuhypz.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-WHbWOSGc.mjs → PinnedIconHoleInOne-C2vji6gm.mjs} +1 -1
- package/dist/{PinnedIconMedal-D8UIOYue.mjs → PinnedIconMedal-NYf4AHqp.mjs} +1 -1
- package/dist/{PinnedIconMetrics-XwsbZnPv.mjs → PinnedIconMetrics-e_1NWNWo.mjs} +1 -1
- package/dist/{PinnedIconPin-D5JD4R6x.mjs → PinnedIconPin-_l-342li.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-E4iJ65Ar.mjs → PinnedIconRockAndRoll-Bb-MEXT2.mjs} +1 -1
- package/dist/{PinnedIconRocket-Cg5jd3-k.mjs → PinnedIconRocket-BE-rQKz8.mjs} +1 -1
- package/dist/{PinnedIconStrength-DksSgYLW.mjs → PinnedIconStrength-s3tS5R0H.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-Dm-qNaJO.mjs → PinnedIconTeddyBear-pSn00npl.mjs} +1 -1
- package/dist/{PlatformLogo-URpi2RPW.mjs → PlatformLogo-XNYb2qwx.mjs} +1 -1
- package/dist/{Plus-z5iCw0B0.mjs → Plus-Cw6rMlKn.mjs} +1 -1
- package/dist/{Popper-B2xEgIXp.mjs → Popper-vj4mltm9.mjs} +1 -1
- package/dist/{PrivateEye-D0PYoJoT.mjs → PrivateEye-Bngrs4-l.mjs} +1 -1
- package/dist/{PrivatePushPin-CWKuQ3ds.mjs → PrivatePushPin-CvEYNBgR.mjs} +1 -1
- package/dist/{Processing-C3wglHZF.mjs → Processing-Z9TzMKuJ.mjs} +1 -1
- package/dist/{Productivity-xit22CUf.mjs → Productivity-CT60Uv2r.mjs} +1 -1
- package/dist/{ProgressCircle-B9SlPYsU.mjs → ProgressCircle-BScTNpwz.mjs} +1 -1
- package/dist/{PulseSurvey-B5D9UvQ5.mjs → PulseSurvey-BjCzlxRP.mjs} +1 -1
- package/dist/{PushPin-DHDhHPEg.mjs → PushPin-z6v_WRT3.mjs} +1 -1
- package/dist/{QuotesLeft-wJIqeAPl.mjs → QuotesLeft-BvowTJhn.mjs} +1 -1
- package/dist/{QuotesRight-HLOPCrbn.mjs → QuotesRight-BFJtUa0O.mjs} +1 -1
- package/dist/{Recognition-CmV7sHtD.mjs → Recognition-BoENDBbA.mjs} +1 -1
- package/dist/{Recognition-Be3C5kZe.mjs → Recognition-DQYG6Gq7.mjs} +1 -1
- package/dist/{Retention-oNRaISWz.mjs → Retention-D6ks5ii8.mjs} +1 -1
- package/dist/{Rewards-skCPkWkf.mjs → Rewards-Cdw75XRk.mjs} +1 -1
- package/dist/{Rewards-D-tp9Yx3.mjs → Rewards-DvLXRX5W.mjs} +1 -1
- package/dist/{RewardsCatalog-C8N0Rwb7.mjs → RewardsCatalog-Z8H2aCq-.mjs} +1 -1
- package/dist/{Roadmap-CZRP4gJ2.mjs → Roadmap-DoV3iMYp.mjs} +1 -1
- package/dist/{Search-Cw9vO8uN.mjs → Search-DpRjiNKN.mjs} +1 -1
- package/dist/{Security-DYyTSVbY.mjs → Security-DjYjKdHQ.mjs} +1 -1
- package/dist/{SendRecognition-CMqAOTTB.mjs → SendRecognition-pgX4bDNG.mjs} +1 -1
- package/dist/{ShareLink-D4_cU5BA.mjs → ShareLink-CHJI96mb.mjs} +1 -1
- package/dist/{SidebarCollapse-C7kgR70W.mjs → SidebarCollapse-DOoNKkF7.mjs} +1 -1
- package/dist/{Skill-5arFQ9YX.mjs → Skill-L5sfDUHy.mjs} +1 -1
- package/dist/{Skills-BQMj_EJS.mjs → Skills-DvOeR-ug.mjs} +1 -1
- package/dist/{Smiley-Bvfl8NuO.mjs → Smiley-7w74Mztu.mjs} +1 -1
- package/dist/{Stop-B_40kxft.mjs → Stop-DQlehZQI.mjs} +1 -1
- package/dist/{Survey-DZrqTQzO.mjs → Survey-D1aU_w7g.mjs} +1 -1
- package/dist/{Surveys-8a5hajnS.mjs → Surveys-DA5Hqkzo.mjs} +1 -1
- package/dist/{SyncUps-CCC0YPm1.mjs → SyncUps-CjGkZB9y.mjs} +1 -1
- package/dist/{Syncs-C_kTYd6D.mjs → Syncs-BRNC7qJw.mjs} +1 -1
- package/dist/{TalentReview-BOSL-bzi.mjs → TalentReview-CgYYF8Yk.mjs} +1 -1
- package/dist/{TalentReview-DN0pPm5C.mjs → TalentReview-PaIAA9nK.mjs} +1 -1
- package/dist/{TalentReviewInsights-BBtFmfvf.mjs → TalentReviewInsights-X0WO4or8.mjs} +1 -1
- package/dist/{TaskCompleted-By8owlWR.mjs → TaskCompleted-Up6oUJbz.mjs} +1 -1
- package/dist/{Team-a2N40XOE.mjs → Team-CzYE31w7.mjs} +1 -1
- package/dist/{Teams-AHukTKm1.mjs → Teams-CaJs4YSA.mjs} +1 -1
- package/dist/{TextBold-mNxsqW90.mjs → TextBold-CK_c5P1G.mjs} +1 -1
- package/dist/{TextBulletList-D1YGy3xD.mjs → TextBulletList-BWQn0uf3.mjs} +1 -1
- package/dist/{TextInput-Bnzk2eEK.mjs → TextInput-G9nCcKRn.mjs} +1 -1
- package/dist/{TextItalic-Bco-2pCX.mjs → TextItalic-B29BrBJI.mjs} +1 -1
- package/dist/{TextNumberList-DKqd90dq.mjs → TextNumberList-B7IkdlI8.mjs} +1 -1
- package/dist/{TextUnderline-BToYo4gM.mjs → TextUnderline-Cjnehz3D.mjs} +1 -1
- package/dist/{Toggle-svR8Q_AR.mjs → Toggle-DP0iu1AQ.mjs} +1 -1
- package/dist/{Translate-DxfYvA-B.mjs → Translate-BRt2jT1P.mjs} +1 -1
- package/dist/{Trash-Db_b4XCv.mjs → Trash-Cw_dpKBX.mjs} +1 -1
- package/dist/{TrendDown-Cn9KFuhS.mjs → TrendDown-BcvJeZvb.mjs} +1 -1
- package/dist/{TrendUp-3KyZx6yA.mjs → TrendUp-BMEVzA7M.mjs} +1 -1
- package/dist/{Undo-BA1cF7l0.mjs → Undo-YlpFT4Bc.mjs} +1 -1
- package/dist/{Unplugged-BXvSAh2A.mjs → Unplugged-DiGh3Y6e.mjs} +1 -1
- package/dist/{UpDownCaret-Bpc3-OXz.mjs → UpDownCaret-DfVyetGs.mjs} +1 -1
- package/dist/{VerticalLine-nreKK4qC.mjs → VerticalLine-Be89aApH.mjs} +1 -1
- package/dist/{Warning-EenOGbq3.mjs → Warning-CKBZiZGS.mjs} +1 -1
- package/dist/{WarningNoOutline-CyP6x9Og.mjs → WarningNoOutline-DEKTkc-A.mjs} +1 -1
- package/dist/{YesAnd-BV3s8Fou.mjs → YesAnd-COO6cbao.mjs} +1 -1
- package/dist/ai-assistant.css +1 -1
- package/dist/{emoji-BZh2LQ3B.mjs → emoji-CH4s9xjA.mjs} +1 -1
- package/dist/express.js +1364 -411
- package/dist/{react-apexcharts.min-DAPGTkr3.mjs → react-apexcharts.min-D61RZXO7.mjs} +1 -1
- package/dist/react.es.js +1 -1
- package/dist/react.umd.js +170 -174
- package/dist/{reactComponent-DH8YSuGK.mjs → reactComponent-DD4lf2U6.mjs} +15287 -15407
- package/express.js +2 -0
- package/package.json +1 -1
- package/react.js +2 -0
- package/sharedTypes.ts +4 -0
- package/dist/Giphy-BRYD67dX.mjs +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as s, f as z, c as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { j as s, f as z, c as K, b as N, a as k, e as I, C as ln, I as Z } from "./reactComponent-DD4lf2U6.mjs";
|
|
2
|
+
import B, { useMemo as P, useRef as J, useImperativeHandle as cn, useEffect as $, useCallback as E } from "react";
|
|
3
|
+
const pn = ["onCreate", "onDestroy"], H = [
|
|
4
4
|
"onChange",
|
|
5
5
|
"onOpen",
|
|
6
6
|
"onClose",
|
|
@@ -9,89 +9,89 @@ const ct = ["onCreate", "onDestroy"], G = [
|
|
|
9
9
|
"onReady",
|
|
10
10
|
"onValueUpdate",
|
|
11
11
|
"onDayCreate"
|
|
12
|
-
],
|
|
13
|
-
const p = u[r], e =
|
|
12
|
+
], dn = (n, u) => (H.forEach((r) => {
|
|
13
|
+
const p = u[r], e = n[r];
|
|
14
14
|
if (p) {
|
|
15
|
-
e && !Array.isArray(e) ?
|
|
15
|
+
e && !Array.isArray(e) ? n[r] = [n[r]] : n[r] || (n[r] = []);
|
|
16
16
|
const x = Array.isArray(p) ? p : [p];
|
|
17
|
-
|
|
17
|
+
n[r].length === 0 ? n[r] = x : n[r].push(...x);
|
|
18
18
|
}
|
|
19
|
-
}),
|
|
19
|
+
}), H.forEach((r) => {
|
|
20
20
|
delete u[r];
|
|
21
|
-
}),
|
|
21
|
+
}), pn.forEach((r) => {
|
|
22
22
|
delete u[r];
|
|
23
|
-
}),
|
|
24
|
-
const u =
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
}), n), fn = (n) => {
|
|
24
|
+
const u = P(() => ({ ...n }), [n]), { defaultValue: r, options: p = {}, value: e, children: x, render: C, onCreate: v, onDestroy: d } = u, m = P(() => dn(p, u), [p, u]), W = J(null), a = J(void 0);
|
|
25
|
+
cn(
|
|
26
|
+
n.ref,
|
|
27
27
|
() => ({
|
|
28
28
|
get flatpickr() {
|
|
29
29
|
return a.current;
|
|
30
30
|
}
|
|
31
31
|
}),
|
|
32
32
|
[]
|
|
33
|
-
),
|
|
33
|
+
), $(() => {
|
|
34
34
|
const l = () => {
|
|
35
35
|
var c;
|
|
36
36
|
m.onClose = m.onClose || (() => {
|
|
37
37
|
var y;
|
|
38
38
|
(y = W.current) != null && y.blur && W.current.blur();
|
|
39
39
|
}), a.current = (((c = z) == null ? void 0 : c.default) || z)(W.current, m), v == null || v(a.current);
|
|
40
|
-
},
|
|
41
|
-
|
|
40
|
+
}, h = () => {
|
|
41
|
+
d == null || d(a.current), a.current && a.current.destroy(), a.current = void 0;
|
|
42
42
|
};
|
|
43
43
|
return l(), () => {
|
|
44
|
-
|
|
44
|
+
h();
|
|
45
45
|
};
|
|
46
|
-
}, [m, v,
|
|
46
|
+
}, [m, v, d]), $(() => {
|
|
47
47
|
var l;
|
|
48
48
|
if (a.current) {
|
|
49
|
-
const
|
|
50
|
-
for (let c =
|
|
51
|
-
const y =
|
|
49
|
+
const h = Object.getOwnPropertyNames(m);
|
|
50
|
+
for (let c = h.length - 1; c >= 0; c--) {
|
|
51
|
+
const y = h[c];
|
|
52
52
|
let o = m[y];
|
|
53
|
-
(o == null ? void 0 : o.toString()) !== ((l = a.current.config[y]) == null ? void 0 : l.toString()) && (
|
|
53
|
+
(o == null ? void 0 : o.toString()) !== ((l = a.current.config[y]) == null ? void 0 : l.toString()) && (H.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
|
|
58
|
+
const g = E((l) => {
|
|
59
59
|
W.current = l;
|
|
60
60
|
}, []);
|
|
61
61
|
if (C)
|
|
62
|
-
return C({ ...u, defaultValue: r, value: e },
|
|
63
|
-
const
|
|
62
|
+
return C({ ...u, defaultValue: r, value: e }, g);
|
|
63
|
+
const j = E(
|
|
64
64
|
(l) => {
|
|
65
|
-
var
|
|
66
|
-
|
|
65
|
+
var h, c;
|
|
66
|
+
n && n.onChange && (Array.isArray(n == null ? void 0 : n.onChange) ? (h = n == null ? void 0 : n.onChange) == null || h.forEach(() => [new Date(l.target.value)], (e == null ? void 0 : e.toString()) || "") : typeof n.onChange == "function" && ((c = n == null ? void 0 : n.onChange) == null || c.call(n, [new Date(l.target.value)], (e == null ? void 0 : e.toString()) || "", a.current)));
|
|
67
67
|
},
|
|
68
|
-
[
|
|
68
|
+
[n, e]
|
|
69
69
|
);
|
|
70
|
-
return p.wrap ? /* @__PURE__ */ s.jsx("div", { className: "flatpickr", ref:
|
|
70
|
+
return p.wrap ? /* @__PURE__ */ s.jsx("div", { className: "flatpickr", ref: g, children: x }) : /* @__PURE__ */ s.jsx(
|
|
71
71
|
"input",
|
|
72
72
|
{
|
|
73
|
-
onChange:
|
|
73
|
+
onChange: j,
|
|
74
74
|
...u,
|
|
75
75
|
value: e == null ? void 0 : e.toString(),
|
|
76
76
|
defaultValue: r,
|
|
77
|
-
ref:
|
|
77
|
+
ref: g
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
},
|
|
81
|
-
systemGray3:
|
|
82
|
-
inputMaxWidthSmall:
|
|
83
|
-
inputMaxWidthDefault:
|
|
84
|
-
inputMaxWidthLarge:
|
|
85
|
-
input:
|
|
86
|
-
inputWrapper:
|
|
87
|
-
inputWrapperCompact:
|
|
80
|
+
}, mn = "#949494", gn = "DatePicker-module_inputMaxWidthSmall_cRYaK", hn = "DatePicker-module_inputMaxWidthDefault_GbIO-", yn = "DatePicker-module_inputMaxWidthLarge_fZKFi", xn = "DatePicker-module_input_3VHte", Cn = "DatePicker-module_inputWrapper_aqoyL", vn = "DatePicker-module_inputWrapperCompact_-7CrL", Wn = "DatePicker-module_iconButton_19a6e", _n = "DatePicker-module_clearButton_O1D31", i = {
|
|
81
|
+
systemGray3: mn,
|
|
82
|
+
inputMaxWidthSmall: gn,
|
|
83
|
+
inputMaxWidthDefault: hn,
|
|
84
|
+
inputMaxWidthLarge: yn,
|
|
85
|
+
input: xn,
|
|
86
|
+
inputWrapper: Cn,
|
|
87
|
+
inputWrapperCompact: vn,
|
|
88
88
|
"inputWrapper--error": "DatePicker-module_inputWrapper--error_bhHqD",
|
|
89
89
|
"inputWrapper--disabled": "DatePicker-module_inputWrapper--disabled_WFJUG",
|
|
90
|
-
iconButton:
|
|
91
|
-
clearButton:
|
|
90
|
+
iconButton: Wn,
|
|
91
|
+
clearButton: _n
|
|
92
92
|
};
|
|
93
|
-
function
|
|
94
|
-
attachTo:
|
|
93
|
+
function Dn({
|
|
94
|
+
attachTo: n,
|
|
95
95
|
position: u,
|
|
96
96
|
compact: r = !1,
|
|
97
97
|
inputMaxWidth: p = "default",
|
|
@@ -99,82 +99,86 @@ function At({
|
|
|
99
99
|
disabled: x = !1,
|
|
100
100
|
error: C = null,
|
|
101
101
|
fullWidth: v = !1,
|
|
102
|
-
id:
|
|
102
|
+
id: d,
|
|
103
103
|
helperText: m = "",
|
|
104
104
|
optionalLabelText: W = "",
|
|
105
105
|
label: a,
|
|
106
|
-
mode:
|
|
107
|
-
onChange:
|
|
106
|
+
mode: g = "single",
|
|
107
|
+
onChange: j,
|
|
108
108
|
onOpen: l,
|
|
109
|
-
onClose:
|
|
109
|
+
onClose: h,
|
|
110
110
|
showClearButton: c = !1,
|
|
111
111
|
showIcon: y = !0,
|
|
112
112
|
firstSelectableDate: o,
|
|
113
113
|
lastSelectableDate: _,
|
|
114
|
-
dateFormat:
|
|
115
|
-
allowInput:
|
|
116
|
-
tooltip:
|
|
117
|
-
"data-testid":
|
|
118
|
-
flatpickrRef:
|
|
119
|
-
placeholder:
|
|
120
|
-
calendarContainerClass:
|
|
121
|
-
plugins:
|
|
114
|
+
dateFormat: F = "F j, Y",
|
|
115
|
+
allowInput: R = !0,
|
|
116
|
+
tooltip: Q,
|
|
117
|
+
"data-testid": T,
|
|
118
|
+
flatpickrRef: V,
|
|
119
|
+
placeholder: X,
|
|
120
|
+
calendarContainerClass: L,
|
|
121
|
+
plugins: O = [],
|
|
122
122
|
value: M
|
|
123
123
|
}) {
|
|
124
|
-
var
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
124
|
+
var Y, q;
|
|
125
|
+
const nn = B.useId();
|
|
126
|
+
d = K(d, `date-picker-${nn}`);
|
|
127
|
+
const f = B.useRef(null), tn = !!((q = (Y = f == null ? void 0 : f.current) == null ? void 0 : Y.input) != null && q.value), en = P(() => Array.isArray(M) ? M : typeof M == "string" ? N(M).toDate() : M, [M]), S = k(
|
|
128
|
+
k(I.input, i.input, {
|
|
129
|
+
[I["input--compact"]]: r,
|
|
130
|
+
[I["input--disabled"]]: x,
|
|
131
|
+
[I["input--error"]]: !!C
|
|
132
132
|
})
|
|
133
133
|
);
|
|
134
|
-
|
|
135
|
-
if (
|
|
136
|
-
const
|
|
137
|
-
|
|
134
|
+
B.useEffect(() => {
|
|
135
|
+
if (f.current) {
|
|
136
|
+
const t = f.current.input.nextSibling;
|
|
137
|
+
t && "id" in t && "autocomplete" in t && Object.assign(t, { id: d, autocomplete: "off" }), V && (V.current = f.current);
|
|
138
138
|
}
|
|
139
|
-
}, [
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
142
|
-
|
|
139
|
+
}, [d, V]), B.useEffect(() => {
|
|
140
|
+
if (f.current) {
|
|
141
|
+
const t = f.current.input.nextSibling;
|
|
142
|
+
t && "className" in t && Object.assign(t, { className: S });
|
|
143
143
|
}
|
|
144
|
-
}, [
|
|
145
|
-
const
|
|
144
|
+
}, [S]);
|
|
145
|
+
const U = B.useMemo(() => {
|
|
146
146
|
if (!o && !_)
|
|
147
147
|
return;
|
|
148
|
-
const
|
|
148
|
+
const t = N(o), A = N(_), D = N(
|
|
149
149
|
Array.isArray(e) ? e[0] : e
|
|
150
150
|
);
|
|
151
|
-
return (
|
|
152
|
-
const
|
|
153
|
-
if (
|
|
151
|
+
return (sn) => {
|
|
152
|
+
const w = N(sn);
|
|
153
|
+
if (w.isSame(D, "day"))
|
|
154
154
|
return !1;
|
|
155
|
-
let
|
|
156
|
-
return o &&
|
|
155
|
+
let G = !0;
|
|
156
|
+
return o && w.isBefore(t, "day") && (G = !1), _ && w.isAfter(A, "day") && (G = !1), !G;
|
|
157
157
|
};
|
|
158
|
-
}, [o, _]),
|
|
159
|
-
(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
158
|
+
}, [o, _]), rn = E(
|
|
159
|
+
(t) => {
|
|
160
|
+
if (t && "clear" in t && "close" in t && "input" in t && "calendarContainer" in t) {
|
|
161
|
+
f.current = t, L && (t.calendarContainer.className = k(
|
|
162
|
+
t.calendarContainer.className,
|
|
163
|
+
L
|
|
164
|
+
));
|
|
165
|
+
const A = K(t.input.nextSibling, null);
|
|
166
|
+
A && "id" in A && Object.assign(A, { id: d });
|
|
167
|
+
}
|
|
164
168
|
},
|
|
165
|
-
[
|
|
166
|
-
),
|
|
167
|
-
(
|
|
168
|
-
|
|
169
|
+
[L]
|
|
170
|
+
), an = E(
|
|
171
|
+
(t, A, D) => {
|
|
172
|
+
j(t), g === "range" && t.length === 2 && (D == null || D.close());
|
|
169
173
|
},
|
|
170
|
-
[
|
|
171
|
-
),
|
|
174
|
+
[j, g]
|
|
175
|
+
), on = P(() => U ? [U] : [], [o, _]), un = P(
|
|
172
176
|
() => ({
|
|
173
|
-
allowInput:
|
|
174
|
-
altFormat:
|
|
177
|
+
allowInput: R,
|
|
178
|
+
altFormat: F,
|
|
175
179
|
altInput: !0,
|
|
176
|
-
altInputClass:
|
|
177
|
-
appendTo:
|
|
180
|
+
altInputClass: S,
|
|
181
|
+
appendTo: n || void 0,
|
|
178
182
|
/**
|
|
179
183
|
* Legacy code supports HTMLDivElement here even thought Flatpickr claims to only support HtmlElement.
|
|
180
184
|
* HTMLDivElement is a subclass of HTMLElement with one additional property (align), so we can safely use it here.
|
|
@@ -182,63 +186,63 @@ function At({
|
|
|
182
186
|
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/consistent-type-assertions */
|
|
183
187
|
position: u || "auto",
|
|
184
188
|
dateFormat: "Z",
|
|
185
|
-
mode:
|
|
189
|
+
mode: g,
|
|
186
190
|
wrap: !0,
|
|
187
191
|
defaultDate: e,
|
|
188
|
-
disable:
|
|
189
|
-
plugins:
|
|
190
|
-
closeOnSelect:
|
|
192
|
+
disable: on,
|
|
193
|
+
plugins: O,
|
|
194
|
+
closeOnSelect: g !== "range"
|
|
191
195
|
}),
|
|
192
196
|
[
|
|
197
|
+
R,
|
|
193
198
|
F,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
t,
|
|
199
|
+
S,
|
|
200
|
+
n,
|
|
197
201
|
u,
|
|
198
|
-
|
|
202
|
+
g,
|
|
199
203
|
o,
|
|
200
204
|
_
|
|
201
205
|
]
|
|
202
206
|
);
|
|
203
|
-
let
|
|
207
|
+
let b;
|
|
204
208
|
switch (p) {
|
|
205
209
|
case "small":
|
|
206
|
-
|
|
210
|
+
b = i.inputMaxWidthSmall;
|
|
207
211
|
break;
|
|
208
212
|
case "large":
|
|
209
|
-
|
|
213
|
+
b = i.inputMaxWidthLarge;
|
|
210
214
|
break;
|
|
211
215
|
default:
|
|
212
|
-
|
|
216
|
+
b = i.inputMaxWidthDefault;
|
|
213
217
|
}
|
|
214
218
|
return /* @__PURE__ */ s.jsx(
|
|
215
|
-
|
|
219
|
+
ln,
|
|
216
220
|
{
|
|
217
|
-
tooltip:
|
|
218
|
-
wrapperClassNames:
|
|
219
|
-
[
|
|
221
|
+
tooltip: Q,
|
|
222
|
+
wrapperClassNames: k({
|
|
223
|
+
[b]: !v
|
|
220
224
|
}),
|
|
221
225
|
label: a,
|
|
222
226
|
helperText: m,
|
|
223
227
|
optionalLabelText: W,
|
|
224
228
|
disabled: x,
|
|
225
229
|
error: C,
|
|
226
|
-
inputId:
|
|
230
|
+
inputId: d,
|
|
227
231
|
fullWidth: v,
|
|
228
232
|
renderControl: () => /* @__PURE__ */ s.jsx(
|
|
229
|
-
|
|
233
|
+
fn,
|
|
230
234
|
{
|
|
231
|
-
options:
|
|
235
|
+
options: un,
|
|
232
236
|
onOpen: l,
|
|
233
|
-
onCreate:
|
|
234
|
-
onClose:
|
|
235
|
-
value:
|
|
236
|
-
onChange:
|
|
237
|
+
onCreate: rn,
|
|
238
|
+
onClose: h,
|
|
239
|
+
value: en,
|
|
240
|
+
onChange: an,
|
|
237
241
|
children: /* @__PURE__ */ s.jsxs(
|
|
238
242
|
"div",
|
|
239
243
|
{
|
|
240
|
-
"data-testid":
|
|
241
|
-
className:
|
|
244
|
+
"data-testid": T,
|
|
245
|
+
className: k(i.inputWrapper, {
|
|
242
246
|
[i["inputWrapper--error"]]: !!C,
|
|
243
247
|
[i["inputWrapper--disabled"]]: x,
|
|
244
248
|
[i.inputWrapperCompact]: r
|
|
@@ -251,11 +255,11 @@ function At({
|
|
|
251
255
|
"data-input": !0,
|
|
252
256
|
defaultValue: e && typeof e == "string" ? e : void 0,
|
|
253
257
|
"data-testid": "date-picker-input",
|
|
254
|
-
placeholder:
|
|
258
|
+
placeholder: X
|
|
255
259
|
}
|
|
256
260
|
),
|
|
257
261
|
y && /* @__PURE__ */ s.jsx("div", { className: i.iconButton, "data-toggle": !0, children: /* @__PURE__ */ s.jsx("div", { className: i.iconWrapper, children: /* @__PURE__ */ s.jsx(
|
|
258
|
-
|
|
262
|
+
Z,
|
|
259
263
|
{
|
|
260
264
|
icon: "calendar",
|
|
261
265
|
variant: "thin",
|
|
@@ -264,19 +268,19 @@ function At({
|
|
|
264
268
|
}
|
|
265
269
|
) }) }),
|
|
266
270
|
// istanbul ignore next - relies on the lifecycle hooks in Flatpickr, which doesn't play nicely with unit tests
|
|
267
|
-
c &&
|
|
271
|
+
c && tn && /* @__PURE__ */ s.jsx(
|
|
268
272
|
"button",
|
|
269
273
|
{
|
|
270
274
|
className: i.clearButton,
|
|
271
275
|
onClick: () => {
|
|
272
|
-
var
|
|
273
|
-
(
|
|
276
|
+
var t;
|
|
277
|
+
(t = f.current) == null || t.clear();
|
|
274
278
|
},
|
|
275
279
|
"data-testid": "data-picker-clear-button",
|
|
276
280
|
title: "Clear",
|
|
277
281
|
type: "button",
|
|
278
282
|
children: /* @__PURE__ */ s.jsx("div", { className: i.iconWrapper, children: /* @__PURE__ */ s.jsx(
|
|
279
|
-
|
|
283
|
+
Z,
|
|
280
284
|
{
|
|
281
285
|
icon: "close",
|
|
282
286
|
variant: "thin",
|
|
@@ -295,5 +299,5 @@ function At({
|
|
|
295
299
|
);
|
|
296
300
|
}
|
|
297
301
|
export {
|
|
298
|
-
|
|
302
|
+
Dn as default
|
|
299
303
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { j as t } from "./reactComponent-DD4lf2U6.mjs";
|
|
2
|
+
const o = (
|
|
3
|
+
// istanbul ignore next - default value
|
|
4
|
+
({ variant: i, color: r = "#000" }) => {
|
|
5
|
+
const e = {
|
|
6
|
+
thin: void 0,
|
|
7
|
+
filled: void 0,
|
|
8
|
+
regular: /* @__PURE__ */ t.jsx(
|
|
9
|
+
"path",
|
|
10
|
+
{
|
|
11
|
+
fill: r,
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
clipRule: "evenodd",
|
|
14
|
+
strokeWidth: 0.1,
|
|
15
|
+
d: "M6.2332 1.26549L5.29913 2.19144C4.88489 1.80156 4.3813 1.69597 3.99955 1.69597C3.07359 1.69597 2.47254 2.24829 2.47254 3.36106C2.47254 4.09208 2.85429 4.99366 3.99955 4.99366C4.30007 4.99366 4.77117 4.9368 5.09607 4.70125V3.97024H3.65841V2.71127H6.43626V5.23733C6.07888 5.96022 5.08794 6.3501 3.99142 6.3501C1.74152 6.3501 0.888672 4.84746 0.888672 3.36106C0.888672 1.87466 1.86336 0.347656 3.99955 0.347656C4.78742 0.347656 5.48594 0.510104 6.2332 1.26549ZM9.15987 6.19581H7.55976V0.510141H9.15987V6.19581ZM12.1189 6.19581H10.5269V0.510141H14.8887V1.85846H12.1189V2.92249H14.7181V4.23832H12.1189V6.19581Z"
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
};
|
|
19
|
+
return e[i] || e.regular;
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
o as giphy
|
|
24
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./reactComponent-
|
|
1
|
+
import { j as t } from "./reactComponent-DD4lf2U6.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-DD4lf2U6.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-DD4lf2U6.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-DD4lf2U6.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-DD4lf2U6.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-DD4lf2U6.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" }),
|