@solace-health/ui 0.10.521 → 0.10.523
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/Animate/style.cjs +2 -2
- package/dist/Animate/style.js +1 -1
- package/dist/Avatar/index.cjs +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/style.cjs +1 -1
- package/dist/Avatar/style.js +1 -1
- package/dist/BackLink/BackLink.cjs +1 -1
- package/dist/BackLink/BackLink.js +1 -1
- package/dist/Card/index.cjs +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.cjs +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/style.cjs +1 -1
- package/dist/Checkbox/style.js +1 -1
- package/dist/DateDropdown/index.cjs +1 -1
- package/dist/DateDropdown/index.js +1 -1
- package/dist/DateSelectCalendar/DateSelectCalendar.cjs +1 -1
- package/dist/DateSelectCalendar/DateSelectCalendar.js +1 -1
- package/dist/Error/index.cjs +1 -1
- package/dist/Error/index.js +1 -1
- package/dist/ExpandableDrawer/index.cjs +1 -1
- package/dist/ExpandableDrawer/index.js +1 -1
- package/dist/File/index.cjs +1 -1
- package/dist/File/index.js +1 -1
- package/dist/Form/AddressSelect/index.cjs +1 -1
- package/dist/Form/AddressSelect/index.js +1 -1
- package/dist/Form/Checkbox/index.cjs +1 -1
- package/dist/Form/Checkbox/index.js +1 -1
- package/dist/Form/Checkbox/styles.cjs +1 -1
- package/dist/Form/Checkbox/styles.js +1 -1
- package/dist/Form/DateDropdown/index.cjs +1 -1
- package/dist/Form/DateDropdown/index.js +1 -1
- package/dist/Form/DateDropdown/styles.cjs +1 -1
- package/dist/Form/DateDropdown/styles.js +1 -1
- package/dist/Form/DateSelect/index.cjs +1 -1
- package/dist/Form/DateSelect/index.js +1 -1
- package/dist/Form/DateTextMaskInput/index.cjs +1 -1
- package/dist/Form/DateTextMaskInput/index.js +1 -1
- package/dist/Form/FileUpload/index.cjs +1 -1
- package/dist/Form/FileUpload/index.js +1 -1
- package/dist/Form/FileUpload/styles.cjs +1 -1
- package/dist/Form/FileUpload/styles.js +1 -1
- package/dist/Form/Keyword/index.cjs +1 -1
- package/dist/Form/Keyword/index.js +1 -1
- package/dist/Form/LocationSelect/index.cjs +1 -1
- package/dist/Form/LocationSelect/index.js +1 -1
- package/dist/Form/LocationSelect/style.cjs +1 -1
- package/dist/Form/LocationSelect/style.js +1 -1
- package/dist/Form/Number/index.cjs +1 -1
- package/dist/Form/Number/index.js +1 -1
- package/dist/Form/OTP/index.cjs +1 -1
- package/dist/Form/OTP/index.js +1 -1
- package/dist/Form/Radio/index.cjs +1 -1
- package/dist/Form/Radio/index.js +1 -1
- package/dist/Form/Radio/styles.cjs +1 -1
- package/dist/Form/Radio/styles.js +1 -1
- package/dist/Form/Select/index.cjs +1 -1
- package/dist/Form/Select/index.js +1 -1
- package/dist/Form/Select/styles.cjs +1 -1
- package/dist/Form/Select/styles.js +1 -1
- package/dist/Form/SelectMenu/index.cjs +1 -1
- package/dist/Form/SelectMenu/index.js +1 -1
- package/dist/Form/SentimentSelector/index.cjs +1 -1
- package/dist/Form/SentimentSelector/index.js +1 -1
- package/dist/Form/Signature/index.cjs +1 -1
- package/dist/Form/Signature/index.js +1 -1
- package/dist/Form/Signature/styles.cjs +1 -1
- package/dist/Form/Signature/styles.js +1 -1
- package/dist/Form/Text/index.cjs +1 -1
- package/dist/Form/Text/index.js +1 -1
- package/dist/Form/TextInput/index.cjs +1 -1
- package/dist/Form/TextInput/index.js +1 -1
- package/dist/Form/TextInput/styles.cjs +1 -1
- package/dist/Form/TextInput/styles.js +1 -1
- package/dist/Form/TimePicker/index.cjs +1 -1
- package/dist/Form/TimePicker/index.js +1 -1
- package/dist/Form/TimeSelect/index.cjs +1 -1
- package/dist/Form/TimeSelect/index.js +1 -1
- package/dist/Form/Tree/index.cjs +1 -1
- package/dist/Form/Tree/index.js +1 -1
- package/dist/Form/index.cjs +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/shared/FormInputLabel.cjs +1 -1
- package/dist/Form/shared/FormInputLabel.js +1 -1
- package/dist/Form/shared/HelpModal.cjs +1 -1
- package/dist/Form/shared/HelpModal.js +1 -1
- package/dist/Form/shared/styles.cjs +1 -1
- package/dist/Form/shared/styles.js +1 -1
- package/dist/IconSelector/IconSelector.cjs +1 -1
- package/dist/IconSelector/IconSelector.js +1 -1
- package/dist/InfoContainer/index.cjs +1 -1
- package/dist/InfoContainer/index.js +1 -1
- package/dist/InfoContainer/style.cjs +1 -1
- package/dist/InfoContainer/style.js +1 -1
- package/dist/Menu/ExpandIcon.cjs +1 -1
- package/dist/Menu/ExpandIcon.js +1 -1
- package/dist/Menu/index.cjs +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Molecules/ButtonWithIcon/index.cjs +1 -1
- package/dist/Molecules/ButtonWithIcon/index.js +1 -1
- package/dist/Molecules/ButtonWithIcon/style.cjs +1 -1
- package/dist/Molecules/ButtonWithIcon/style.js +1 -1
- package/dist/Molecules/FilterPopover/FiltersMenu/FiltersMenu.cjs +1 -1
- package/dist/Molecules/FilterPopover/FiltersMenu/FiltersMenu.js +1 -1
- package/dist/Molecules/FilterPopover/index.cjs +1 -1
- package/dist/Molecules/FilterPopover/index.js +1 -1
- package/dist/NavigationMenu/ExpandIcon.cjs +1 -1
- package/dist/NavigationMenu/ExpandIcon.js +1 -1
- package/dist/NavigationMenu/index.cjs +1 -1
- package/dist/NavigationMenu/index.js +1 -1
- package/dist/Overlay/OverlayTitle.cjs +1 -1
- package/dist/Overlay/OverlayTitle.js +1 -1
- package/dist/PreviewDrawer/PreviewDrawer.cjs +1 -1
- package/dist/PreviewDrawer/PreviewDrawer.js +1 -1
- package/dist/Radio/index.cjs +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/Radio/style.cjs +1 -1
- package/dist/Radio/style.js +1 -1
- package/dist/Search/index.cjs +1 -1
- package/dist/Search/index.js +1 -1
- package/dist/SelectClient/index.cjs +2 -2
- package/dist/SelectClient/index.js +1 -1
- package/dist/SentimentSelector/index.cjs +1 -1
- package/dist/SentimentSelector/index.js +1 -1
- package/dist/Table/index.cjs +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/TimeSelect/styles.cjs +4 -4
- package/dist/TimeSelect/styles.js +1 -1
- package/dist/Tree/index.cjs +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Typography/Body/index.stories.cjs +1 -1
- package/dist/Typography/Body/index.stories.js +1 -1
- package/dist/Typography/Display/index.stories.cjs +1 -1
- package/dist/Typography/Display/index.stories.js +1 -1
- package/dist/Typography/Header/index.stories.cjs +1 -1
- package/dist/Typography/Header/index.stories.js +1 -1
- package/dist/Typography/Truncated/index.stories.cjs +1 -1
- package/dist/Typography/Truncated/index.stories.js +1 -1
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/index.js +1 -1
- package/dist/VantaLogo/index.cjs +1 -1
- package/dist/VantaLogo/index.js +1 -1
- package/dist/{chunk-2CGFK2XB.cjs → chunk-2DJU2XVP.cjs} +2 -2
- package/dist/{chunk-2CGFK2XB.cjs.map → chunk-2DJU2XVP.cjs.map} +1 -1
- package/dist/{chunk-T2KDRJQQ.js → chunk-2MG3CSUP.js} +3 -3
- package/dist/{chunk-T2KDRJQQ.js.map → chunk-2MG3CSUP.js.map} +1 -1
- package/dist/{chunk-AIRILC3R.cjs → chunk-2UZQNWIG.cjs} +5 -5
- package/dist/{chunk-AIRILC3R.cjs.map → chunk-2UZQNWIG.cjs.map} +1 -1
- package/dist/{chunk-GORPGRUH.js → chunk-2XKM27N2.js} +2 -2
- package/dist/{chunk-GORPGRUH.js.map → chunk-2XKM27N2.js.map} +1 -1
- package/dist/{chunk-3P5CSJKM.js → chunk-362LBGIH.js} +3 -3
- package/dist/{chunk-3P5CSJKM.js.map → chunk-362LBGIH.js.map} +1 -1
- package/dist/chunk-3IZE3PFI.js +2 -0
- package/dist/{chunk-HLLL4MLA.js.map → chunk-3IZE3PFI.js.map} +1 -1
- package/dist/{chunk-F2O6RQLN.js → chunk-3KCQB7CL.js} +3 -3
- package/dist/{chunk-F2O6RQLN.js.map → chunk-3KCQB7CL.js.map} +1 -1
- package/dist/{chunk-SS4IVJZJ.js → chunk-4LNU632C.js} +2 -2
- package/dist/{chunk-SS4IVJZJ.js.map → chunk-4LNU632C.js.map} +1 -1
- package/dist/{chunk-RNVGFEEK.js → chunk-4MRISKE7.js} +2 -2
- package/dist/{chunk-RNVGFEEK.js.map → chunk-4MRISKE7.js.map} +1 -1
- package/dist/{chunk-CRE56ZS6.js → chunk-4P4GPOGV.js} +3 -3
- package/dist/{chunk-CRE56ZS6.js.map → chunk-4P4GPOGV.js.map} +1 -1
- package/dist/{chunk-N3PHFPWK.js → chunk-5EUQE37Q.js} +12 -12
- package/dist/chunk-5EUQE37Q.js.map +1 -0
- package/dist/{chunk-OXIAIJPE.cjs → chunk-746HXF4M.cjs} +4 -4
- package/dist/{chunk-OXIAIJPE.cjs.map → chunk-746HXF4M.cjs.map} +1 -1
- package/dist/{chunk-GVA4JX2D.cjs → chunk-AADRDIUL.cjs} +5 -5
- package/dist/{chunk-GVA4JX2D.cjs.map → chunk-AADRDIUL.cjs.map} +1 -1
- package/dist/chunk-AB22T7YM.cjs +2 -0
- package/dist/{chunk-4AU52JQX.cjs.map → chunk-AB22T7YM.cjs.map} +1 -1
- package/dist/{chunk-GM7H6BFP.js → chunk-BFOVU5TU.js} +2 -2
- package/dist/{chunk-GM7H6BFP.js.map → chunk-BFOVU5TU.js.map} +1 -1
- package/dist/chunk-CBXUB2WZ.js +2 -0
- package/dist/chunk-CBXUB2WZ.js.map +1 -0
- package/dist/{chunk-KSZKPSHR.cjs → chunk-CFS5FWR5.cjs} +4 -4
- package/dist/{chunk-KSZKPSHR.cjs.map → chunk-CFS5FWR5.cjs.map} +1 -1
- package/dist/{chunk-LK535IDW.cjs → chunk-CYOHA3F3.cjs} +5 -5
- package/dist/{chunk-LK535IDW.cjs.map → chunk-CYOHA3F3.cjs.map} +1 -1
- package/dist/{chunk-IBU33SDB.cjs → chunk-ECTT6EZN.cjs} +2 -2
- package/dist/{chunk-IBU33SDB.cjs.map → chunk-ECTT6EZN.cjs.map} +1 -1
- package/dist/{chunk-XLD7FH6M.js → chunk-EF64FY53.js} +3 -3
- package/dist/{chunk-XLD7FH6M.js.map → chunk-EF64FY53.js.map} +1 -1
- package/dist/{chunk-BFMYCCPY.js → chunk-EGCSSXWR.js} +2 -2
- package/dist/{chunk-BFMYCCPY.js.map → chunk-EGCSSXWR.js.map} +1 -1
- package/dist/{chunk-DD6VULI2.js → chunk-G446PXFN.js} +3 -3
- package/dist/{chunk-DD6VULI2.js.map → chunk-G446PXFN.js.map} +1 -1
- package/dist/{chunk-R3AQSHLA.js → chunk-G4FLMFIC.js} +3 -3
- package/dist/{chunk-R3AQSHLA.js.map → chunk-G4FLMFIC.js.map} +1 -1
- package/dist/{chunk-SFJCN5IS.js → chunk-GMER4NTC.js} +3 -3
- package/dist/{chunk-SFJCN5IS.js.map → chunk-GMER4NTC.js.map} +1 -1
- package/dist/{chunk-IPKKSKOO.js → chunk-IAV4IHWJ.js} +3 -3
- package/dist/{chunk-IPKKSKOO.js.map → chunk-IAV4IHWJ.js.map} +1 -1
- package/dist/{chunk-LZCPDLCP.cjs → chunk-IMCPZSYE.cjs} +3 -3
- package/dist/{chunk-LZCPDLCP.cjs.map → chunk-IMCPZSYE.cjs.map} +1 -1
- package/dist/chunk-JKPFIAYW.cjs +2 -0
- package/dist/{chunk-CHY3ENZO.cjs.map → chunk-JKPFIAYW.cjs.map} +1 -1
- package/dist/{chunk-KJ22EVW5.cjs → chunk-JW5TOHGX.cjs} +2 -2
- package/dist/{chunk-KJ22EVW5.cjs.map → chunk-JW5TOHGX.cjs.map} +1 -1
- package/dist/{chunk-TQQZDOXP.cjs → chunk-KEZUYG7X.cjs} +2 -2
- package/dist/{chunk-TQQZDOXP.cjs.map → chunk-KEZUYG7X.cjs.map} +1 -1
- package/dist/{chunk-N7WW7Q46.js → chunk-LFZTVXPR.js} +2 -2
- package/dist/{chunk-N7WW7Q46.js.map → chunk-LFZTVXPR.js.map} +1 -1
- package/dist/{chunk-3LYCJCIS.js → chunk-LH6QXNLH.js} +3 -3
- package/dist/{chunk-3LYCJCIS.js.map → chunk-LH6QXNLH.js.map} +1 -1
- package/dist/{chunk-4THK4CCO.cjs → chunk-LWOVUB5R.cjs} +4 -4
- package/dist/{chunk-4THK4CCO.cjs.map → chunk-LWOVUB5R.cjs.map} +1 -1
- package/dist/chunk-LZ7Z3HQH.cjs +2 -0
- package/dist/chunk-LZ7Z3HQH.cjs.map +1 -0
- package/dist/{chunk-MFW25ZMV.js → chunk-LZLUCL3I.js} +3 -3
- package/dist/{chunk-MFW25ZMV.js.map → chunk-LZLUCL3I.js.map} +1 -1
- package/dist/{chunk-ZNBJBTRV.cjs → chunk-M46VJJNQ.cjs} +3 -3
- package/dist/{chunk-ZNBJBTRV.cjs.map → chunk-M46VJJNQ.cjs.map} +1 -1
- package/dist/{chunk-2UXTIRYZ.cjs → chunk-MVOTBRXH.cjs} +4 -4
- package/dist/{chunk-2UXTIRYZ.cjs.map → chunk-MVOTBRXH.cjs.map} +1 -1
- package/dist/{chunk-EBAZQVA3.cjs → chunk-N5CVGFYF.cjs} +4 -4
- package/dist/{chunk-EBAZQVA3.cjs.map → chunk-N5CVGFYF.cjs.map} +1 -1
- package/dist/{chunk-OC3UY5NT.cjs → chunk-NFLFEGNN.cjs} +2 -2
- package/dist/{chunk-OC3UY5NT.cjs.map → chunk-NFLFEGNN.cjs.map} +1 -1
- package/dist/{chunk-QWZ4CBP3.js → chunk-NFYAQ2YN.js} +3 -3
- package/dist/{chunk-QWZ4CBP3.js.map → chunk-NFYAQ2YN.js.map} +1 -1
- package/dist/{chunk-LRX4MENV.js → chunk-NS6CEAVC.js} +3 -3
- package/dist/{chunk-LRX4MENV.js.map → chunk-NS6CEAVC.js.map} +1 -1
- package/dist/{chunk-KNBH7SPN.js → chunk-ON7D7JUW.js} +3 -3
- package/dist/{chunk-KNBH7SPN.js.map → chunk-ON7D7JUW.js.map} +1 -1
- package/dist/{chunk-CO6VOEEW.cjs → chunk-P5IP3DTE.cjs} +2 -2
- package/dist/{chunk-CO6VOEEW.cjs.map → chunk-P5IP3DTE.cjs.map} +1 -1
- package/dist/chunk-PBTZQSZ5.cjs +2 -0
- package/dist/{chunk-4YX6C57F.cjs.map → chunk-PBTZQSZ5.cjs.map} +1 -1
- package/dist/{chunk-PK5FIQJK.cjs → chunk-PJOGWFGD.cjs} +4 -4
- package/dist/{chunk-PK5FIQJK.cjs.map → chunk-PJOGWFGD.cjs.map} +1 -1
- package/dist/{chunk-6WSGJB7S.js → chunk-PPLRYJHI.js} +3 -3
- package/dist/{chunk-6WSGJB7S.js.map → chunk-PPLRYJHI.js.map} +1 -1
- package/dist/{chunk-EWN3SLZW.js → chunk-RRFK66KW.js} +2 -2
- package/dist/{chunk-EWN3SLZW.js.map → chunk-RRFK66KW.js.map} +1 -1
- package/dist/{chunk-MRU4WX3A.js → chunk-TMDXPXVN.js} +3 -3
- package/dist/{chunk-MRU4WX3A.js.map → chunk-TMDXPXVN.js.map} +1 -1
- package/dist/{chunk-6JABCM6G.cjs → chunk-UWW33ZUB.cjs} +14 -14
- package/dist/chunk-UWW33ZUB.cjs.map +1 -0
- package/dist/{chunk-QCZVADE4.cjs → chunk-WDISLG23.cjs} +5 -5
- package/dist/{chunk-QCZVADE4.cjs.map → chunk-WDISLG23.cjs.map} +1 -1
- package/dist/{chunk-64LLPZRS.js → chunk-WNYCBQAJ.js} +2 -2
- package/dist/{chunk-64LLPZRS.js.map → chunk-WNYCBQAJ.js.map} +1 -1
- package/dist/chunk-WQOHMOHS.cjs +2 -0
- package/dist/{chunk-5OBABRCS.cjs.map → chunk-WQOHMOHS.cjs.map} +1 -1
- package/dist/{chunk-BIKKV4J2.js → chunk-XGZEN3R3.js} +2 -2
- package/dist/{chunk-BIKKV4J2.js.map → chunk-XGZEN3R3.js.map} +1 -1
- package/dist/{chunk-T7TSZFRY.cjs → chunk-YW4AMCVH.cjs} +4 -4
- package/dist/{chunk-T7TSZFRY.cjs.map → chunk-YW4AMCVH.cjs.map} +1 -1
- package/dist/{chunk-M4CW35TL.cjs → chunk-ZBSFEIMK.cjs} +4 -4
- package/dist/{chunk-M4CW35TL.cjs.map → chunk-ZBSFEIMK.cjs.map} +1 -1
- package/dist/{chunk-6ATE3Z3N.cjs → chunk-ZEJFRBXN.cjs} +3 -3
- package/dist/{chunk-6ATE3Z3N.cjs.map → chunk-ZEJFRBXN.cjs.map} +1 -1
- package/dist/{chunk-ODWAQOOU.cjs → chunk-ZPOZQONM.cjs} +5 -5
- package/dist/{chunk-ODWAQOOU.cjs.map → chunk-ZPOZQONM.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/v2/drawer/drawer.cjs +1 -1
- package/dist/v2/drawer/drawer.js +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/time-select/time-select.cjs +1 -1
- package/dist/v2/time-select/time-select.d.ts +2 -1
- package/dist/v2/time-select/time-select.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4AU52JQX.cjs +0 -2
- package/dist/chunk-4YX6C57F.cjs +0 -2
- package/dist/chunk-5OBABRCS.cjs +0 -2
- package/dist/chunk-6JABCM6G.cjs.map +0 -1
- package/dist/chunk-CHY3ENZO.cjs +0 -2
- package/dist/chunk-HLLL4MLA.js +0 -2
- package/dist/chunk-LHU2ZHYE.cjs +0 -2
- package/dist/chunk-LHU2ZHYE.cjs.map +0 -1
- package/dist/chunk-N3PHFPWK.js.map +0 -1
- package/dist/chunk-SLIKURIN.js +0 -2
- package/dist/chunk-SLIKURIN.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {a as a$B,b as b$e,c as c$9}from'./chunk-ULNBCBSF.js';import {a as a$D}from'./chunk-CLUNW2EL.js';import {d as d$2,a as a$c,e as e$4,c as c$a,b as b$f}from'./chunk-
|
|
1
|
+
import {a as a$B,b as b$e,c as c$9}from'./chunk-ULNBCBSF.js';import {a as a$D}from'./chunk-CLUNW2EL.js';import {d as d$2,a as a$c,e as e$4,c as c$a,b as b$f}from'./chunk-EF64FY53.js';import {a as a$3}from'./chunk-4LNU632C.js';import {d,e,a as a$8,b,c}from'./chunk-NS6CEAVC.js';import {a as a$d,b as b$g,h,c as c$b,d as d$8,e as e$5,i as i$1,g as g$3,f as f$3,k}from'./chunk-LZLUCL3I.js';import {a as a$5}from'./chunk-AFMRWP3V.js';import {a as a$9}from'./chunk-BQ2LVGXV.js';import {b as b$1}from'./chunk-QLWE6EIV.js';import {a as a$G}from'./chunk-DTSPE3KO.js';import {c as c$2,d as d$3,b as b$4,f as f$1,g as g$1,l,u,i as i$2,j,m,k as k$1,n,r,o,p,s,t,q}from'./chunk-IAV4IHWJ.js';import {a as a$f,c as c$3,g as g$2,d as d$5,e as e$1,f as f$2}from'./chunk-PPLRYJHI.js';import {c as c$4,a as a$g,b as b$5}from'./chunk-LTWGGNMG.js';import {a as a$l,b as b$6}from'./chunk-G446PXFN.js';import {a as a$K,g as g$4,b as b$h,f as f$5,c as c$c,d as d$9,e as e$6}from'./chunk-3KCQB7CL.js';import {a as a$E}from'./chunk-4QUV425P.js';import {c as c$1,d as d$1,b as b$2,i,g,f as f$4}from'./chunk-4P4GPOGV.js';import {a as a$6}from'./chunk-EDLF2PU7.js';import {a as a$m}from'./chunk-362LBGIH.js';import {b as b$3}from'./chunk-7X6VF6NF.js';import {a as a$4}from'./chunk-A25F43VS.js';import {a as a$h}from'./chunk-ZXPUGMKY.js';import {a as a$i}from'./chunk-LL3LXKWE.js';import {a as a$I}from'./chunk-ZLW35HTC.js';import {a as a$p}from'./chunk-6WLGZWRV.js';import {a as a$e}from'./chunk-XGZEN3R3.js';import {a as a$C}from'./chunk-DDOKCGVJ.js';import {b as b$8,a as a$w}from'./chunk-H3OHMCMQ.js';import {a as a$u}from'./chunk-NL66A3DQ.js';import'./chunk-HK2PZQ6B.js';import {c as c$7,a as a$z,b as b$b}from'./chunk-LJVORPSS.js';import {a as a$7}from'./chunk-YWYE5ESE.js';import {a as a$A,b as b$c,c as c$8}from'./chunk-4VBD2DLV.js';import {a as a$a}from'./chunk-ICBSOELA.js';import {a as a$q}from'./chunk-ZEGH5CDK.js';import {a as a$L}from'./chunk-QRKZFQAX.js';import {b as b$a,c as c$6,d as d$7,a as a$y}from'./chunk-DYWBVLBI.js';import {a as a$n}from'./chunk-MEESTVOY.js';import {a as a$2}from'./chunk-NACE77U2.js';import {a as a$o}from'./chunk-LZR56RNK.js';import {a as a$H}from'./chunk-6TEEUT5N.js';import {a as a$j}from'./chunk-SPCKQ2AK.js';import {a as a$k}from'./chunk-A6ZVFJJO.js';import {a as a$s,b as b$7,c as c$5,d as d$6,e as e$2}from'./chunk-XKVTVN43.js';import {a as a$r}from'./chunk-AHBRS7P5.js';import {b as b$d,a as a$M}from'./chunk-RNBZSGDC.js';import {a as a$v}from'./chunk-ABS7LHSM.js';import {a as a$F}from'./chunk-PV2EFEFY.js';import {a as a$b}from'./chunk-BFOVU5TU.js';import {a as a$x,b as b$9}from'./chunk-EBHHMSXI.js';import {f}from'./chunk-C5KCPIGD.js';import {a as a$t}from'./chunk-EHULSA4P.js';import {a as a$1}from'./chunk-3IZE3PFI.js';import {a}from'./chunk-7QZQXRMR.js';import {d as d$4,e as e$3}from'./chunk-SLCTEGVG.js';import {a as a$J}from'./chunk-EXJ23J6S.js';import Fn from'@emotion/styled';import {Input,DatePicker,Upload,Card,Flex,Menu,AutoComplete,Badge}from'antd';export{ConfigProvider as ga}from'antd';import {useFormContext,useController,get,Controller,useForm}from'react-hook-form';export{useForm as L,useFormContext as M,useFormState as N,useWatch as O,useFieldArray as P,FormProvider as Q,Controller as R,useController as S}from'react-hook-form';import {createPortal}from'react-dom';import {useState,useMemo,useCallback,useRef,useEffect,createElement,cloneElement}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {animated,useSpring,config}from'@react-spring/web';import Wa,{getGeocode}from'use-places-autocomplete';import {useLoadScript}from'@react-google-maps/api';import st from'dayjs';import {Global,css}from'@emotion/react';import {IMask}from'react-imask';import {useMenuState,useClick,ControlledMenu,MenuButton,MenuItem,FocusableItem,MenuHeader,MenuDivider}from'@szhsin/react-menu';var qn=({modalContent:e$1,modalLabel:t=void 0,modalButtonText:r="Go Back"})=>{let[o,n]=useState(false);return jsxs(Fragment,{children:[jsx(d,{onClick:()=>n(true),children:t?jsx(e,{children:`(${t})`}):jsx(a$2.CircleExclamation,{})}),jsx(a$7,{isOpen:o,onClose:()=>n(false),footer:jsx(f.Secondary,{onClick:()=>n(false),children:r}),children:jsx("div",{style:{marginTop:"2rem"},children:e$1})})]})},go=qn;var Hn=({label:e=null,isLabelBold:t=false,required:r=false,details:o=null,helpContent:n=void 0,helpLabel:a=void 0,labelSize:s="lg"})=>{if(!e)return null;let i=typeof o=="string"?jsx(a$8,{children:o}):o;return jsxs(b,{children:[jsxs(a$1.Body,{className:"input-label",bold:t,size:s,children:[e,r&&jsx(c,{}),n&&jsx(go,{modalContent:n,modalLabel:a})]}),i]})},P=Hn;var Kn=Fn.span`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 8px;
|
|
5
5
|
margin-top: 6px;
|
|
6
6
|
margin-bottom: ${({marginBottom:e})=>e}px;
|
|
7
|
-
`,Yn=({children:e=null,text:t="This field is required",includeIcon:r=true,marginBottom:o=0})=>jsxs(Kn,{marginBottom:o,children:[r&&jsx(a$2.ErrorExclamation,{}),jsx(a$1.Body,{size:"xs",color:"#DA4D54",children:e||t})]}),v=Yn;var ta=({name:e,label:t=null,details:r=null,formOptions:o={},pattern:n=void 0,format:a=void 0,textArea:s=false,password:l=false,isLabelBold:p=true,helpContent:i=void 0,helpLabel:d=void 0,errorMessage:u="This field is required",disableErrorState:c=false,showErrorMessage:m=true,wrapperStyle:y={},contentStyle:h={},...S})=>{let{control:C}=useFormContext(),x=n?{pattern:a$9(n)}:{},{field:b,fieldState:k}=useController({name:e,control:C,rules:{...x,...o}}),E=c?false:k.error,w=k.error?.message?.toString()||u,f=useMemo(()=>s?jsx(a$a.Area,{status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}):a?jsx(a$a.Mask,{name:b.name,onBlur:b.onBlur,format:a,onAccept:I=>b.onChange(I),value:b.value,status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...S}):l?jsx(a$a.Password,{status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}):jsx(a$a.Text,{status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}),[b,S,s,a,l]);return jsxs("div",{style:{width:"100%",...y},children:[jsx(P,{label:t,isLabelBold:p,required:!!o.required,details:r,helpLabel:d,helpContent:i}),jsx(b$1,{style:h,children:f}),m&&E&&jsx(v,{text:w,includeIcon:false})]})},oe=ta;var xe=({option:e,name:t,formOptions:r={},previewOnly:o=false,errorMessage:n=void 0,inGroup:a=false,onChange:s=()=>null,...l})=>{let{control:p}=useFormContext(),{field:i,fieldState:d}=useController({control:p,name:t,rules:r}),u=!!d.error,c=d.error?.message?.toString()||n,m=useCallback(y=>{let{target:h}=y;if(a){let S=i.value||[];h?.checked?i.onChange([...S,e.value]):i.onChange(S.filter(C=>C!==e.value));}else {let S=h?.checked?e.value:"";i.onChange(S),s(S);}},[i.onChange,i.value,a,e.value]);return jsxs(c$1,{children:[jsxs(Flex,{gap:".5rem",children:[jsx(d$1,{type:"checkbox",checked:a?i.value?.includes(e.value):i.value===e.value,value:e.value,hasError:u,previewOnly:o,disabled:!!l?.disabled||o,onChange:m,...l}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})})]}),u&&!a&&jsx(v,{text:c,includeIcon:false})]})},ia=({name:e,formOptions:t={},previewOnly:r=false,...o})=>{let{control:n}=useFormContext(),{field:{name:a,...s}}=useController({control:n,name:`${e}_other`,rules:t});return jsx(oe,{name:a,placeholder:"Other",previewOnly:r,showErrorMessage:false,...o,...s})},la=({name:e,option:t=void 0,formOptions:r={},previewOnly:o=false,inputProps:n={}})=>{let{control:a}=useFormContext(),{field:{name:s},fieldState:l}=useController({control:a,name:e,rules:r}),p=!!l.error,i=t?.label||"Other",d=t?.value||"other";return jsxs(f$4,{children:[jsx(xe,{name:s,option:{label:i,value:d},inGroup:true,hasError:p,formOptions:r,previewOnly:o,...n},`${s}-other`),jsx(ia,{name:s,previewOnly:o,...n})]})},So=({name:e,label:t=void 0,details:r="",options:o=[],inline:n=false,previewOnly:a=false,other:s={},errorMessage:l=void 0,formOptions:p={},...i})=>{let{control:d}=useFormContext(),{field:u,fieldState:c}=useController({control:d,name:e,rules:p}),m=!!c.error;return jsxs(Fragment,{children:[jsx(P,{label:t,isLabelBold:true,required:!!p.required,details:r}),jsxs(b$2,{inline:n,isColumns:o.length>5,children:[o.map(y=>jsx(xe,{name:u.name,inGroup:true,option:y,hasError:m,formOptions:p,previewOnly:a,...i},`${u.name}-${y.value}`)),s.label&&jsx(la,{name:u.name,option:s,formOptions:p,previewOnly:a,...i})]}),m&&jsx(v,{text:l,includeIcon:false})]})},pa=({option:e,name:t,previewOnly:r=false,errorMessage:o=void 0,inGroup:n=false,checked:a,field:s,hasError:l=false,...p})=>{let{isMobile:i$1}=b$3(),[d,u]=useState(false);return jsxs(nt.Illustration,{selected:a,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),active:a||d&&!i$1,illustration:e.illustration,children:[jsx(i,{type:"checkbox",value:e.value,disabled:!!p?.disabled||r,onChange:c=>{if(!a){s.onChange([...s.value,c.target.value]);return}s.onChange((s.value??[]).filter(m=>m!==c.target.value));},...p}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})}),l&&!n&&jsx(v,{text:o,includeIcon:false})]})},Co=({name:e,label:t=void 0,details:r="",options:o=[],previewOnly:n=false,errorMessage:a=void 0,formOptions:s={},...l})=>{let{control:p,formState:{errors:i}}=useFormContext(),d=!!get(i,e);return jsxs(Fragment,{children:[jsx(P,{label:t,isLabelBold:true,required:!!s.required,details:r}),jsx(g,{itemNumber:o.length,children:jsx(Controller,{name:e,control:p,rules:{...s},defaultValue:[],render:({field:u})=>jsx(Fragment,{children:o.map(c=>jsx(pa,{name:e,inGroup:true,field:u,option:c,checked:(u.value??[]).some(m=>m===c.value),hasError:d,previewOnly:n,...l},`${e}-${c.value}`))})})}),d&&jsx(v,{text:a,includeIcon:false})]})},xo=({options:e,name:t,formOptions:r=void 0,disabled:o=false,errorMessage:n=void 0,onChange:a=()=>null})=>{let{control:s,formState:l}=useFormContext(),p=!!l.errors[t];return jsxs(Fragment,{children:[jsx(Controller,{rules:r,control:s,name:t,render:({field:i})=>jsx(a$b,{options:e,disabled:o,...i,onChange:d=>{i.onChange(d),a(d);}})}),p&&jsx(v,{text:n,includeIcon:false})]})};var ma=({name:e,label:t=null,details:r=null,type:o="text",formOptions:n={},previewOnly:a=false,textArea:s=false,marginBottom:l=void 0,isLabelBold:p=true,helpContent:i=void 0,helpLabel:d=void 0,format:u="",errorMessage:c="This field is required",...m})=>{let{control:y,formState:{errors:h}}=useFormContext(),S=!!get(h,e),C=h?.[e]?.message?.toString()||c,x=({field:b})=>s?jsx(e$4,{...b,marginBottom:l,error:S,disabled:a,...m}):u?jsx(c$a,{...b,mask:a$G(u),guide:false,disabled:a,type:o,error:S,...m}):jsx(b$f,{...b,disabled:a,type:o,error:S,...m});return jsxs("div",{style:{width:"100%"},children:[jsx(P,{label:t,isLabelBold:p,required:!!n.required,details:r,helpLabel:d,helpContent:i}),jsxs(d$2,{marginBottom:l,children:[jsx(Controller,{render:x,name:e,rules:n,control:y}),jsx(a$c,{children:S&&jsx(a$2.ErrorExclamation,{})})]}),S&&jsx(v,{text:C,includeIcon:false})]})},ve=ma;var ya=({label:e=null,isLabelBold:t=true,name:r,disabled:o=false,defaultValue:n=void 0,formOptions:a={},errorMessage:s="This field is required.",options:l={},style:p={},...i})=>{let{control:d,formState:{errors:u}}=useFormContext(),c=!!get(u,r),m=get(u,r)?.message?.toString()||s;return jsxs("div",{style:p,children:[jsx(P,{label:e,isLabelBold:t,required:!!a.required}),jsx(Controller,{render:({field:y})=>jsx(a$a.Number,{disabled:o,status:c?"error":"",suffix:c?jsx(a$2.ErrorExclamation,{}):null,...i,...y}),name:r,defaultValue:n,rules:a,control:d,...l}),c&&jsx(v,{text:m,includeIcon:false})]})},wo=ya;var Ca=(r=>(r.MINIMAL="MINIMAL",r.WITH_DATE="WITH_DATE",r))(Ca||{}),xa=({label:e="",name:t,formOptions:r={},description:o="",previewOnly:n=false,errorMessage:a=void 0,signatureType:s=void 0,date:l=void 0,isAdvocate:p=false,showIcon:i=true,formStyle:d="MINIMAL",...u})=>{let{control:c,formState:{errors:m}}=useFormContext(),y=s==="advocate"?"Advocate":"Client",h$1=p&&s==="advocate"||!p&&s==="client",S=({field:b})=>jsxs(Fragment,{children:[jsxs(b$g,{previewOnly:n,children:[i&&jsx(a$H,{}),jsx(h,{...b,...u})]}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e})})]}),C=l?new Date(l).toLocaleDateString():"",x=({field:b})=>jsx(c$b,{children:jsxs(d$8,{children:[jsxs(e$5,{children:[jsx(i$1,{...b,...u,placeholder:`${y} Signature`,disabled:n||!h$1,hasError:!!m[t]}),jsx(g$3,{children:`${y}`}),m[t]&&jsx(v,{text:a,includeIcon:false})]}),jsxs(f$3,{children:[jsx(k,{children:C}),jsx(g$3,{children:"Date"})]})]})});return jsxs(a$d,{previewOnly:n,children:[(e||s)&&jsx(P,{label:jsxs(Fragment,{children:[s&&`${y} `,e]}),required:true,isLabelBold:true}),o,jsx(Controller,{render:d==="MINIMAL"?S:x,name:t,rules:r,control:c})]})},Eo=xa;var Pe=({option:e,name:t,inline:r,previewOnly:o=false,hasError:n=false,formOptions:a={},...s})=>{let{register:l}=useFormContext();return jsxs(c$2,{inline:r,children:[jsx(d$3,{type:"radio",...l(t,a),value:e.value,previewOnly:o,disabled:o,hasError:n,...s}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})})]})},Ro=({name:e,label:t,details:r="",options:o=[],inline:n=false,allowOther:a=false,previewOnly:s=false,formOptions:l={},errorMessage:p=void 0,showErrorMessage:i=true,...d})=>{let{formState:{errors:u}}=useFormContext(),c=!!get(u,e);return jsxs("div",{children:[jsx(P,{label:t,required:!!l.required,isLabelBold:true,details:r}),jsxs(b$4,{inline:n,isColumns:o.length>5,children:[o.map(m=>jsx(Pe,{option:m,name:e,inline:n,previewOnly:s,formOptions:l,...d,hasError:c},`${e}-${m.value}`)),a&&jsxs(f$1,{children:[jsx(Pe,{option:{label:"Other",value:"other"},name:e,inline:n,...d},e),jsx(ve,{name:`${e}_other`,...d})]})]}),i&&c&&jsx(v,{text:p,includeIcon:false})]})},Ra=({option:e,name:t,formOptions:r})=>{let{register:o,watch:n$1,formState:a}=useFormContext(),s=n$1(t)===e.value;return jsxs(i$2,{selected:s,hasError:!!a.errors[t],disabled:e.disabled||false,children:[jsxs(j,{children:[jsxs(m,{selected:s,children:[e.icon||null,e.label]}),jsx(k$1,{type:"radio",value:e.value,...o(t,r)})]}),e.description&&jsx(n,{selected:s,children:e.description})]})},Io=({name:e,label:t=null,className:r="",options:o,formOptions:n={},id:a=""})=>jsxs(g$1,{className:r,id:a,children:[t&&jsx(l,{size:"lg",children:t}),jsx("div",{children:o.map(s=>jsx(Ra,{option:s,name:e,formOptions:n},`${s.label}-${s.value}`))})]}),Ia=({option:e,name:t$1,formOptions:r$1,showCaret:o$1=false,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s$1=()=>null})=>{let{register:l,watch:p$1}=useFormContext(),i=p$1(t$1)===e.value,[d,u]=useState(false),c=a$J[e.icon],m=useSpring(d?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),y=()=>{u(true),a(e.value);},h=()=>{u(false),s$1(e.value);};return jsxs("div",{style:{position:"relative"},children:[jsx(r,{type:"radio",onClick:S=>n?n(S.currentTarget.value):null,value:e.value,...l(t$1,r$1),onMouseEnter:y,onMouseLeave:h}),jsxs(o,{selected:i,children:[jsxs(Flex,{align:"center",gap:16,children:[jsx(p,{children:jsx(c,{active:i||d})}),jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsx(s,{children:e.label}),e?.description&&jsx(t,{children:e.description})]})]}),o$1&&jsx(q,{style:m,children:jsx(a$2.Caret,{direction:"right",color:i||d?"#285E50":"#7F7F7F"})})]})]})},Oo=({name:e,label:t=null,className:r="",options:o,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,showCaret:l$1=false,formOptions:p={}})=>jsxs(g$1,{className:r,children:[t&&jsx(l,{size:"lg",children:t}),jsx(u,{children:o.map(i=>jsx(Ia,{option:i,name:e,onClick:n,onMouseEnter:a,onMouseLeave:s,formOptions:p,showCaret:l$1},`${i.label}-${i.value}`))})]}),Do=({options:e,defaultValue:t=void 0,name:r,formOptions:o=void 0,disabled:n=false,errorMessage:a=void 0,showErrorMessage:s=true,onChange:l=()=>null})=>{let{control:p}=useFormContext(),{field:i,fieldState:d}=useController({name:r,control:p,rules:o}),u=!!d.error;return jsxs(Fragment,{children:[jsx(a$e,{options:e,defaultValue:t,disabled:n,onBlur:i.onBlur,name:r,onChange:c=>{i.onChange(c),l(c.target.value);}}),s&&u&&jsx(v,{text:a,includeIcon:false})]})};var La=({label:e="",name:t,details:r="",placeholder:o="",options:n=[],allowInput:a=false,previewOnly:s=false,isLabelBold:l=true,formOptions:p={},onChange:i=()=>null,containerStyle:d={}})=>{let u=useRef(),c=useFormContext(),{errors:m}=c.formState;c.register(t,p);let y=!!get(m,t),h=get(m,t)?.message?.toString(),[S,C]=useState(false),[x,b]=useState(""),[k,E]=useState(n),w=useSpring(S?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let O=B=>{S&&u.current&&!u.current.contains(B.target)&&C(false);};return document.addEventListener("mousedown",B=>O(B)),()=>{document.removeEventListener("mousedown",B=>O(B));}},[S]);let f=n.find(O=>O.value===c.getValues(t))?.label,I=O=>{b(""),c.setValue(t,O.value),c.trigger(t),i&&i(O),C(false);};useEffect(()=>{if(C(!!x),x){let O=n.filter(B=>String(B.value).toLowerCase().match(x.toLowerCase()));E(O),c.setValue(t,x);}else E(n);},[x,n.length]);let X=O=>{O.code==="Enter"&&O.preventDefault();};return jsxs(a$f,{style:d,children:[jsx(P,{label:e,isLabelBold:l,required:!!p.required,details:r}),jsx(c$3,{onClick:()=>C(!S),previewOnly:s,children:s?jsxs(Fragment,{children:[jsx("i",{style:{color:d$4.grey300},children:"--Select--"}),jsx(a$2.Caret,{direction:"down",color:d$4.grey300})]}):jsxs(Fragment,{children:[f||jsx("i",{children:o}),a&&jsx(g$2,{onKeyDown:X,value:x,onChange:O=>b(O.target.value),type:"text"}),jsx(a$2.Caret,{direction:S?"up":"down"}),jsx(d$5,{style:w,ref:u,children:k.map(O=>{let{label:B}=O,U=O.label===f;return jsxs(e$1,{onClick:()=>I(O),children:[jsx(a$1.Body,{size:"lg",children:B}),jsx(f$2,{isCurrent:U,children:jsx(a$2.Check,{color:"#fff"})})]},O.value)})})]})}),y&&jsx(v,{text:h,includeIcon:false})]})},To=La;var Va=({label:e="",name:t,details:r="",placeholder:o="",unit:n="",options:a=[],disabled:s=false,mode:l=void 0,previewOnly:p=false,isLabelBold:i=true,formOptions:d={},onChange:u=()=>null,showPreview:c=false,containerStyle:m={},style:y={},allowClear:h=true,loading:S=false,value:C=void 0,onlyUseValue:x=false,errorMessage:b="This field is required",defaultValue:k=void 0,showCaret:E=false,...w})=>{let f=useFormContext();f.register(t,d);let{control:I,formState:{errors:X},getValues:O}=useFormContext(),B=!!get(X,t),U=b||X?.[t]?.message?.toString(),Be=O()[t],Ae=(T,te)=>{f.setValue(t,T,{shouldDirty:true,shouldTouch:true}),f.trigger(t),u(T,te);},[Ve,Ne]=useState(false),pe;Ve?pe=jsx(a$2.Caret,{direction:"up"}):pe=jsx(a$2.Caret,{direction:"down"});let L=({field:T})=>jsx(a$I,{allowClear:h,loading:S,mode:l,showSearch:true,onChange:Ae,placeholder:o,options:a,disabled:s||p,value:x?C:T.value??C,defaultValue:k,style:y,suffixIcon:E?pe:void 0,onDropdownVisibleChange:te=>Ne(te),...w});return jsxs("div",{style:m,children:[jsx(P,{label:e,isLabelBold:i,required:!!d.required,details:r}),jsxs(c$4,{children:[jsx(Controller,{control:I,name:t,rules:d,render:L}),n&&jsx(a$1.Body,{size:"lg",children:n})]}),p&&c&&jsx(a$g,{children:a.map(T=>jsx(b$5,{selected:T.value===Be,children:T.label}))}),B&&jsx(v,{text:U,includeIcon:false})]})},Vo=Va;var za=e=>{let t="",r="",o="",n="",a="";e.address_components.forEach(i=>{i.types.some(d=>{switch(d){case "locality":return t=i.short_name,true;case "sublocality":return t=t||i.short_name,true;case "administrative_area_level_1":return r=i.short_name,true;case "street_number":return o=i.short_name,true;case "route":return n=i.short_name,true;case "postal_code":return a=i.short_name,true;default:return false}});});let s=e.geometry.location.lat(),l=e.geometry.location.lng(),p=`${o} ${n}`;return {city:t,state:r,street:p,zip:a,lat:s,long:l}},qa=({handleSelect:e,option:t,value:r})=>{let{description:o}=t,n=o===r,a=o.replace(", USA","");return jsx(e$6,{isCurrent:n,onClick:()=>e(a),children:jsx(a$1.Body,{size:"lg",children:a})})},Ua=["places"],Ga=({label:e="",details:t="",formOptions:r={},previewOnly:o=false,isLabelBold:n=true,locationType:a="city",streetFieldName:s="street",cityFieldName:l="city",stateFieldName:p="state",zipFieldName:i="zip",cityWithStateFieldName:d="city_with_state",placeholder:u="",containerStyle:c={},errorMessage:m="This field is required",hasError:y=false,style:h={},className:S=""})=>{let C=useRef(),[x,b]=useState(false),[k,E]=useState(false),w=useFormContext(),f;switch(a){case "city":f=l;break;case "full":f=s;break;case "city_with_state":f=d;break;default:return null}let I=useSpring(x?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let L=T=>{x&&C.current&&!C.current.contains(T.target)&&b(false);};return document.addEventListener("mousedown",T=>L(T)),()=>{document.removeEventListener("mousedown",T=>L(T));}},[x]);let X=w.getValues(f)?`${w.getValues(f)}, ${w.getValues(p)}`:"",{value:O,suggestions:{data:B,loading:U},setValue:Te,clearSuggestions:Be}=Xa({requestOptions:{...["city","city_with_state"].includes(a)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});useEffect(()=>{if(U){E(U);return}setTimeout(()=>{E(U);},2e3);},[U]);let Ae=useSpring(k?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),Ve=L=>{Te(L.target.value),w.setValue(p,""),a==="full"&&(w.setValue(i,""),w.setValue(l,"")),w.trigger(f),L.target.value.length>=3&&b(true);},Ne=L=>{Te(L,false),Be(),!(L.length<=2)&&getGeocode({address:L}).then(T=>{let{city:te,state:vt,street:Bn,zip:An,lat:Vn,long:Nn}=za(T[0]),Pt=[f,l,p];w.setValue(l,te),w.setValue(p,vt),a==="full"&&(w.setValue(s,Bn),w.setValue(i,An),Pt.push(s,i)),a==="city_with_state"&&w.setValue(d,`${te}, ${vt}`),w.setValue("lat",Vn),w.setValue("long",Nn),w.trigger(Pt);}).catch(T=>console.error(`Google Maps API error: ${T}`));},pe=L=>{L.code==="Enter"&&L.preventDefault();};return jsxs(a$K,{style:h,className:S,children:[jsx(P,{label:e,isLabelBold:n,required:!!r.required,details:t}),o?jsx(g$4,{size:"md",children:X||"N/A"}):jsxs(b$h,{style:c,children:[jsx(f$5,{onKeyDown:pe,type:"text",placeholder:u,...w.register(f,{...r,onChange:Ve})}),B.length>0&&jsx(c$c,{style:I,ref:C,children:B.map(L=>jsx(qa,{handleSelect:Ne,option:L,value:O},L.description))}),jsx(d$9,{style:Ae,children:jsx(a$L,{size:"sm"})})]}),y&&jsx(v,{text:m,includeIcon:false})]})},$o=({api_key:e,...t})=>{let{isLoaded:r}=useLoadScript({googleMapsApiKey:e||process.env.GOOGLE_MAPS_API_KEY||"",libraries:Ua});return r?jsx(Ga,{...t}):null};var ts=Fn(Input.Search)`
|
|
7
|
+
`,Yn=({children:e=null,text:t="This field is required",includeIcon:r=true,marginBottom:o=0})=>jsxs(Kn,{marginBottom:o,children:[r&&jsx(a$2.ErrorExclamation,{}),jsx(a$1.Body,{size:"xs",color:"#DA4D54",children:e||t})]}),v=Yn;var ta=({name:e,label:t=null,details:r=null,formOptions:o={},pattern:n=void 0,format:a=void 0,textArea:s=false,password:i=false,isLabelBold:p=true,helpContent:l=void 0,helpLabel:d=void 0,errorMessage:u="This field is required",disableErrorState:c=false,showErrorMessage:m=true,wrapperStyle:y={},contentStyle:h={},...S})=>{let{control:C}=useFormContext(),x=n?{pattern:a$9(n)}:{},{field:b,fieldState:k}=useController({name:e,control:C,rules:{...x,...o}}),E=c?false:k.error,w=k.error?.message?.toString()||u,f=useMemo(()=>s?jsx(a$a.Area,{status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}):a?jsx(a$a.Mask,{name:b.name,onBlur:b.onBlur,format:a,onAccept:I=>b.onChange(I),value:b.value,status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...S}):i?jsx(a$a.Password,{status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}):jsx(a$a.Text,{status:E?"error":"",suffix:E?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}),[b,S,s,a,i]);return jsxs("div",{style:{width:"100%",...y},children:[jsx(P,{label:t,isLabelBold:p,required:!!o.required,details:r,helpLabel:d,helpContent:l}),jsx(b$1,{style:h,children:f}),m&&E&&jsx(v,{text:w,includeIcon:false})]})},oe=ta;var xe=({option:e,name:t,formOptions:r={},previewOnly:o=false,errorMessage:n=void 0,inGroup:a=false,onChange:s=()=>null,...i})=>{let{control:p}=useFormContext(),{field:l,fieldState:d}=useController({control:p,name:t,rules:r}),u=!!d.error,c=d.error?.message?.toString()||n,m=useCallback(y=>{let{target:h}=y;if(a){let S=l.value||[];h?.checked?l.onChange([...S,e.value]):l.onChange(S.filter(C=>C!==e.value));}else {let S=h?.checked?e.value:"";l.onChange(S),s(S);}},[l.onChange,l.value,a,e.value]);return jsxs(c$1,{children:[jsxs(Flex,{gap:".5rem",children:[jsx(d$1,{type:"checkbox",checked:a?l.value?.includes(e.value):l.value===e.value,value:e.value,hasError:u,previewOnly:o,disabled:!!i?.disabled||o,onChange:m,...i}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})})]}),u&&!a&&jsx(v,{text:c,includeIcon:false})]})},ia=({name:e,formOptions:t={},previewOnly:r=false,...o})=>{let{control:n}=useFormContext(),{field:{name:a,...s}}=useController({control:n,name:`${e}_other`,rules:t});return jsx(oe,{name:a,placeholder:"Other",previewOnly:r,showErrorMessage:false,...o,...s})},la=({name:e,option:t=void 0,formOptions:r={},previewOnly:o=false,inputProps:n={}})=>{let{control:a}=useFormContext(),{field:{name:s},fieldState:i}=useController({control:a,name:e,rules:r}),p=!!i.error,l=t?.label||"Other",d=t?.value||"other";return jsxs(f$4,{children:[jsx(xe,{name:s,option:{label:l,value:d},inGroup:true,hasError:p,formOptions:r,previewOnly:o,...n},`${s}-other`),jsx(ia,{name:s,previewOnly:o,...n})]})},So=({name:e,label:t=void 0,details:r="",options:o=[],inline:n=false,previewOnly:a=false,other:s={},errorMessage:i=void 0,formOptions:p={},...l})=>{let{control:d}=useFormContext(),{field:u,fieldState:c}=useController({control:d,name:e,rules:p}),m=!!c.error;return jsxs(Fragment,{children:[jsx(P,{label:t,isLabelBold:true,required:!!p.required,details:r}),jsxs(b$2,{inline:n,isColumns:o.length>5,children:[o.map(y=>jsx(xe,{name:u.name,inGroup:true,option:y,hasError:m,formOptions:p,previewOnly:a,...l},`${u.name}-${y.value}`)),s.label&&jsx(la,{name:u.name,option:s,formOptions:p,previewOnly:a,...l})]}),m&&jsx(v,{text:i,includeIcon:false})]})},pa=({option:e,name:t,previewOnly:r=false,errorMessage:o=void 0,inGroup:n=false,checked:a,field:s,hasError:i$1=false,...p})=>{let{isMobile:l}=b$3(),[d,u]=useState(false);return jsxs(nt.Illustration,{selected:a,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),active:a||d&&!l,illustration:e.illustration,children:[jsx(i,{type:"checkbox",value:e.value,disabled:!!p?.disabled||r,onChange:c=>{if(!a){s.onChange([...s.value,c.target.value]);return}s.onChange((s.value??[]).filter(m=>m!==c.target.value));},...p}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})}),i$1&&!n&&jsx(v,{text:o,includeIcon:false})]})},Co=({name:e,label:t=void 0,details:r="",options:o=[],previewOnly:n=false,errorMessage:a=void 0,formOptions:s={},...i})=>{let{control:p,formState:{errors:l}}=useFormContext(),d=!!get(l,e);return jsxs(Fragment,{children:[jsx(P,{label:t,isLabelBold:true,required:!!s.required,details:r}),jsx(g,{itemNumber:o.length,children:jsx(Controller,{name:e,control:p,rules:{...s},defaultValue:[],render:({field:u})=>jsx(Fragment,{children:o.map(c=>jsx(pa,{name:e,inGroup:true,field:u,option:c,checked:(u.value??[]).some(m=>m===c.value),hasError:d,previewOnly:n,...i},`${e}-${c.value}`))})})}),d&&jsx(v,{text:a,includeIcon:false})]})},xo=({options:e,name:t,formOptions:r=void 0,disabled:o=false,errorMessage:n=void 0,onChange:a=()=>null})=>{let{control:s,formState:i}=useFormContext(),p=!!i.errors[t];return jsxs(Fragment,{children:[jsx(Controller,{rules:r,control:s,name:t,render:({field:l})=>jsx(a$b,{options:e,disabled:o,...l,onChange:d=>{l.onChange(d),a(d);}})}),p&&jsx(v,{text:n,includeIcon:false})]})};var ma=({name:e,label:t=null,details:r=null,type:o="text",formOptions:n={},previewOnly:a=false,textArea:s=false,marginBottom:i=void 0,isLabelBold:p=true,helpContent:l=void 0,helpLabel:d=void 0,format:u="",errorMessage:c="This field is required",...m})=>{let{control:y,formState:{errors:h}}=useFormContext(),S=!!get(h,e),C=h?.[e]?.message?.toString()||c,x=({field:b})=>s?jsx(e$4,{...b,marginBottom:i,error:S,disabled:a,...m}):u?jsx(c$a,{...b,mask:a$G(u),guide:false,disabled:a,type:o,error:S,...m}):jsx(b$f,{...b,disabled:a,type:o,error:S,...m});return jsxs("div",{style:{width:"100%"},children:[jsx(P,{label:t,isLabelBold:p,required:!!n.required,details:r,helpLabel:d,helpContent:l}),jsxs(d$2,{marginBottom:i,children:[jsx(Controller,{render:x,name:e,rules:n,control:y}),jsx(a$c,{children:S&&jsx(a$2.ErrorExclamation,{})})]}),S&&jsx(v,{text:C,includeIcon:false})]})},ve=ma;var ya=({label:e=null,isLabelBold:t=true,name:r,disabled:o=false,defaultValue:n=void 0,formOptions:a={},errorMessage:s="This field is required.",options:i={},style:p={},...l})=>{let{control:d,formState:{errors:u}}=useFormContext(),c=!!get(u,r),m=get(u,r)?.message?.toString()||s;return jsxs("div",{style:p,children:[jsx(P,{label:e,isLabelBold:t,required:!!a.required}),jsx(Controller,{render:({field:y})=>jsx(a$a.Number,{disabled:o,status:c?"error":"",suffix:c?jsx(a$2.ErrorExclamation,{}):null,...l,...y}),name:r,defaultValue:n,rules:a,control:d,...i}),c&&jsx(v,{text:m,includeIcon:false})]})},wo=ya;var Ca=(r=>(r.MINIMAL="MINIMAL",r.WITH_DATE="WITH_DATE",r))(Ca||{}),xa=({label:e="",name:t,formOptions:r={},description:o="",previewOnly:n=false,errorMessage:a=void 0,signatureType:s=void 0,date:i=void 0,isAdvocate:p=false,showIcon:l=true,formStyle:d="MINIMAL",...u})=>{let{control:c,formState:{errors:m}}=useFormContext(),y=s==="advocate"?"Advocate":"Client",h$1=p&&s==="advocate"||!p&&s==="client",S=({field:b})=>jsxs(Fragment,{children:[jsxs(b$g,{previewOnly:n,children:[l&&jsx(a$H,{}),jsx(h,{...b,...u})]}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e})})]}),C=i?new Date(i).toLocaleDateString():"",x=({field:b})=>jsx(c$b,{children:jsxs(d$8,{children:[jsxs(e$5,{children:[jsx(i$1,{...b,...u,placeholder:`${y} Signature`,disabled:n||!h$1,hasError:!!m[t]}),jsx(g$3,{children:`${y}`}),m[t]&&jsx(v,{text:a,includeIcon:false})]}),jsxs(f$3,{children:[jsx(k,{children:C}),jsx(g$3,{children:"Date"})]})]})});return jsxs(a$d,{previewOnly:n,children:[(e||s)&&jsx(P,{label:jsxs(Fragment,{children:[s&&`${y} `,e]}),required:true,isLabelBold:true}),o,jsx(Controller,{render:d==="MINIMAL"?S:x,name:t,rules:r,control:c})]})},Eo=xa;var Pe=({option:e,name:t,inline:r,previewOnly:o=false,hasError:n=false,formOptions:a={},...s})=>{let{register:i}=useFormContext();return jsxs(c$2,{inline:r,children:[jsx(d$3,{type:"radio",...i(t,a),value:e.value,previewOnly:o,disabled:o,hasError:n,...s}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})})]})},Ro=({name:e,label:t,details:r="",options:o=[],inline:n=false,allowOther:a=false,previewOnly:s=false,formOptions:i={},errorMessage:p=void 0,showErrorMessage:l=true,...d})=>{let{formState:{errors:u}}=useFormContext(),c=!!get(u,e);return jsxs("div",{children:[jsx(P,{label:t,required:!!i.required,isLabelBold:true,details:r}),jsxs(b$4,{inline:n,isColumns:o.length>5,children:[o.map(m=>jsx(Pe,{option:m,name:e,inline:n,previewOnly:s,formOptions:i,...d,hasError:c},`${e}-${m.value}`)),a&&jsxs(f$1,{children:[jsx(Pe,{option:{label:"Other",value:"other"},name:e,inline:n,...d},e),jsx(ve,{name:`${e}_other`,...d})]})]}),l&&c&&jsx(v,{text:p,includeIcon:false})]})},Ra=({option:e,name:t,formOptions:r})=>{let{register:o,watch:n$1,formState:a}=useFormContext(),s=n$1(t)===e.value;return jsxs(i$2,{selected:s,hasError:!!a.errors[t],disabled:e.disabled||false,children:[jsxs(j,{children:[jsxs(m,{selected:s,children:[e.icon||null,e.label]}),jsx(k$1,{type:"radio",value:e.value,...o(t,r)})]}),e.description&&jsx(n,{selected:s,children:e.description})]})},Io=({name:e,label:t=null,className:r="",options:o,formOptions:n={},id:a=""})=>jsxs(g$1,{className:r,id:a,children:[t&&jsx(l,{size:"lg",children:t}),jsx("div",{children:o.map(s=>jsx(Ra,{option:s,name:e,formOptions:n},`${s.label}-${s.value}`))})]}),Ia=({option:e,name:t$1,formOptions:r$1,showCaret:o$1=false,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s$1=()=>null})=>{let{register:i,watch:p$1}=useFormContext(),l=p$1(t$1)===e.value,[d,u]=useState(false),c=a$J[e.icon],m=useSpring(d?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),y=()=>{u(true),a(e.value);},h=()=>{u(false),s$1(e.value);};return jsxs("div",{style:{position:"relative"},children:[jsx(r,{type:"radio",onClick:S=>n?n(S.currentTarget.value):null,value:e.value,...i(t$1,r$1),onMouseEnter:y,onMouseLeave:h}),jsxs(o,{selected:l,children:[jsxs(Flex,{align:"center",gap:16,children:[jsx(p,{children:jsx(c,{active:l||d})}),jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsx(s,{children:e.label}),e?.description&&jsx(t,{children:e.description})]})]}),o$1&&jsx(q,{style:m,children:jsx(a$2.Caret,{direction:"right",color:l||d?"#285E50":"#7F7F7F"})})]})]})},Oo=({name:e,label:t=null,className:r="",options:o,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,showCaret:i=false,formOptions:p={}})=>jsxs(g$1,{className:r,children:[t&&jsx(l,{size:"lg",children:t}),jsx(u,{children:o.map(l=>jsx(Ia,{option:l,name:e,onClick:n,onMouseEnter:a,onMouseLeave:s,formOptions:p,showCaret:i},`${l.label}-${l.value}`))})]}),Do=({options:e,defaultValue:t=void 0,name:r,formOptions:o=void 0,disabled:n=false,errorMessage:a=void 0,showErrorMessage:s=true,onChange:i=()=>null})=>{let{control:p}=useFormContext(),{field:l,fieldState:d}=useController({name:r,control:p,rules:o}),u=!!d.error;return jsxs(Fragment,{children:[jsx(a$e,{options:e,defaultValue:t,disabled:n,onBlur:l.onBlur,name:r,onChange:c=>{l.onChange(c),i(c.target.value);}}),s&&u&&jsx(v,{text:a,includeIcon:false})]})};var La=({label:e="",name:t,details:r="",placeholder:o="",options:n=[],allowInput:a=false,previewOnly:s=false,isLabelBold:i=true,formOptions:p={},onChange:l=()=>null,containerStyle:d={}})=>{let u=useRef(),c=useFormContext(),{errors:m}=c.formState;c.register(t,p);let y=!!get(m,t),h=get(m,t)?.message?.toString(),[S,C]=useState(false),[x,b]=useState(""),[k,E]=useState(n),w=useSpring(S?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let O=B=>{S&&u.current&&!u.current.contains(B.target)&&C(false);};return document.addEventListener("mousedown",B=>O(B)),()=>{document.removeEventListener("mousedown",B=>O(B));}},[S]);let f=n.find(O=>O.value===c.getValues(t))?.label,I=O=>{b(""),c.setValue(t,O.value),c.trigger(t),l&&l(O),C(false);};useEffect(()=>{if(C(!!x),x){let O=n.filter(B=>String(B.value).toLowerCase().match(x.toLowerCase()));E(O),c.setValue(t,x);}else E(n);},[x,n.length]);let W=O=>{O.code==="Enter"&&O.preventDefault();};return jsxs(a$f,{style:d,children:[jsx(P,{label:e,isLabelBold:i,required:!!p.required,details:r}),jsx(c$3,{onClick:()=>C(!S),previewOnly:s,children:s?jsxs(Fragment,{children:[jsx("i",{style:{color:d$4.grey300},children:"--Select--"}),jsx(a$2.Caret,{direction:"down",color:d$4.grey300})]}):jsxs(Fragment,{children:[f||jsx("i",{children:o}),a&&jsx(g$2,{onKeyDown:W,value:x,onChange:O=>b(O.target.value),type:"text"}),jsx(a$2.Caret,{direction:S?"up":"down"}),jsx(d$5,{style:w,ref:u,children:k.map(O=>{let{label:B}=O,U=O.label===f;return jsxs(e$1,{onClick:()=>I(O),children:[jsx(a$1.Body,{size:"lg",children:B}),jsx(f$2,{isCurrent:U,children:jsx(a$2.Check,{color:"#fff"})})]},O.value)})})]})}),y&&jsx(v,{text:h,includeIcon:false})]})},To=La;var Va=({label:e="",name:t,details:r="",placeholder:o="",unit:n="",options:a=[],disabled:s=false,mode:i=void 0,previewOnly:p=false,isLabelBold:l=true,formOptions:d={},onChange:u=()=>null,showPreview:c=false,containerStyle:m={},style:y={},allowClear:h=true,loading:S=false,value:C=void 0,onlyUseValue:x=false,errorMessage:b="This field is required",defaultValue:k=void 0,showCaret:E=false,...w})=>{let f=useFormContext();f.register(t,d);let{control:I,formState:{errors:W},getValues:O}=useFormContext(),B=!!get(W,t),U=b||W?.[t]?.message?.toString(),Be=O()[t],Ae=(T,te)=>{f.setValue(t,T,{shouldDirty:true,shouldTouch:true}),f.trigger(t),u(T,te);},[Ve,Ne]=useState(false),pe;Ve?pe=jsx(a$2.Caret,{direction:"up"}):pe=jsx(a$2.Caret,{direction:"down"});let L=({field:T})=>jsx(a$I,{allowClear:h,loading:S,mode:i,showSearch:true,onChange:Ae,placeholder:o,options:a,disabled:s||p,value:x?C:T.value??C,defaultValue:k,style:y,suffixIcon:E?pe:void 0,onDropdownVisibleChange:te=>Ne(te),...w});return jsxs("div",{style:m,children:[jsx(P,{label:e,isLabelBold:l,required:!!d.required,details:r}),jsxs(c$4,{children:[jsx(Controller,{control:I,name:t,rules:d,render:L}),n&&jsx(a$1.Body,{size:"lg",children:n})]}),p&&c&&jsx(a$g,{children:a.map(T=>jsx(b$5,{selected:T.value===Be,children:T.label}))}),B&&jsx(v,{text:U,includeIcon:false})]})},Vo=Va;var za=e=>{let t="",r="",o="",n="",a="";e.address_components.forEach(l=>{l.types.some(d=>{switch(d){case "locality":case "sublocality":case "neighborhood":case "administrative_area_level_3":return t=t||l.short_name,true;case "administrative_area_level_1":return r=l.short_name,true;case "street_number":return o=l.short_name,true;case "route":return n=l.short_name,true;case "postal_code":return a=l.short_name,true;default:return false}});});let s=e.geometry.location.lat(),i=e.geometry.location.lng(),p=`${o} ${n}`;return {city:t,state:r,street:p,zip:a,lat:s,long:i}},qa=({handleSelect:e,option:t,value:r})=>{let{description:o}=t,n=o===r,a=o.replace(", USA","");return jsx(e$6,{isCurrent:n,onClick:()=>e(a),children:jsx(a$1.Body,{size:"lg",children:a})})},Ua=["places"],Ga=({label:e="",details:t="",formOptions:r={},previewOnly:o=false,isLabelBold:n=true,locationType:a="city",streetFieldName:s="street",cityFieldName:i="city",stateFieldName:p="state",zipFieldName:l="zip",cityWithStateFieldName:d="city_with_state",placeholder:u="",containerStyle:c={},errorMessage:m="This field is required",hasError:y=false,style:h={},className:S=""})=>{let C=useRef(),[x,b]=useState(false),[k,E]=useState(false),w=useFormContext(),f;switch(a){case "city":f=i;break;case "full":f=s;break;case "city_with_state":f=d;break;default:return null}let I=useSpring(x?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let L=T=>{x&&C.current&&!C.current.contains(T.target)&&b(false);};return document.addEventListener("mousedown",T=>L(T)),()=>{document.removeEventListener("mousedown",T=>L(T));}},[x]);let W=w.getValues(f)?`${w.getValues(f)}, ${w.getValues(p)}`:"",{value:O,suggestions:{data:B,loading:U},setValue:Te,clearSuggestions:Be}=Wa({requestOptions:{...["city","city_with_state"].includes(a)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});useEffect(()=>{if(U){E(U);return}setTimeout(()=>{E(U);},2e3);},[U]);let Ae=useSpring(k?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),Ve=L=>{Te(L.target.value),w.setValue(p,""),a==="full"&&(w.setValue(l,""),w.setValue(i,"")),w.trigger(f),L.target.value.length>=3&&b(true);},Ne=L=>{Te(L,false),Be(),!(L.length<=2)&&getGeocode({address:L}).then(T=>{let{city:te,state:vt,street:Bn,zip:An,lat:Vn,long:Nn}=za(T[0]),Pt=[f,i,p];w.setValue(i,te),w.setValue(p,vt),a==="full"&&(w.setValue(s,Bn),w.setValue(l,An),Pt.push(s,l)),a==="city_with_state"&&w.setValue(d,`${te}, ${vt}`),w.setValue("lat",Vn),w.setValue("long",Nn),w.trigger(Pt);}).catch(T=>console.error(`Google Maps API error: ${T}`));},pe=L=>{L.code==="Enter"&&L.preventDefault();};return jsxs(a$K,{style:h,className:S,children:[jsx(P,{label:e,isLabelBold:n,required:!!r.required,details:t}),o?jsx(g$4,{size:"md",children:W||"N/A"}):jsxs(b$h,{style:c,children:[jsx(f$5,{onKeyDown:pe,type:"text",placeholder:u,...w.register(f,{...r,onChange:Ve})}),B.length>0&&jsx(c$c,{style:I,ref:C,children:B.map(L=>jsx(qa,{handleSelect:Ne,option:L,value:O},L.description))}),jsx(d$9,{style:Ae,children:jsx(a$L,{size:"sm"})})]}),y&&jsx(v,{text:m,includeIcon:false})]})},$o=({api_key:e,...t})=>{let{isLoaded:r}=useLoadScript({googleMapsApiKey:e||process.env.GOOGLE_MAPS_API_KEY||"",libraries:Ua});return r?jsx(Ga,{...t}):null};var ts=Fn(Input.Search)`
|
|
8
8
|
.ant-input,
|
|
9
9
|
.ant-input-search-button {
|
|
10
10
|
height: 48px;
|
|
@@ -16,13 +16,13 @@ import {a as a$B,b as b$e,c as c$9}from'./chunk-ULNBCBSF.js';import {a as a$D}fr
|
|
|
16
16
|
.ant-input-search-button {
|
|
17
17
|
border-left: none;
|
|
18
18
|
}
|
|
19
|
-
`,rs=e=>{let t="",r="",o="",n="",a="";e.address_components.forEach(
|
|
19
|
+
`,rs=e=>{let t="",r="",o="",n="",a="";e.address_components.forEach(l=>{l.types.some(d=>{switch(d){case "locality":case "sublocality":case "neighborhood":case "administrative_area_level_3":return t=t||l.short_name,true;case "administrative_area_level_1":return r=l.short_name,true;case "street_number":return o=l.short_name,true;case "route":return n=l.short_name,true;case "postal_code":return a=l.short_name,true;default:return false}});});let s=e.geometry.location.lat(),i=e.geometry.location.lng(),p=`${o} ${n}`;return {city:t,state:r,street:p,zip:a,lat:s,long:i}},os=["places"],ns=({label:e="",formOptions:t={},isLabelBold:r=true,addressType:o="city",streetFieldName:n="street",cityFieldName:a="city",stateFieldName:s="state",zipFieldName:i="zip",cityWithStateFieldName:p="city_with_state",latFieldName:l="lat",longFieldName:d="long",fullAddressFieldName:u="fullAddress",placeholder:c=""})=>{let m=useFormContext(),{suggestions:{data:y=[]},setValue:h,clearSuggestions:S}=Wa({requestOptions:{...["city","city_with_state"].includes(o)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}}),C;switch(o){case "city":C=a;break;case "full":C=u;break;case "city_with_state":C=p;break;default:return null}let x=k=>{h(k),!(k.length<=3)&&(m.setValue(s,""),o==="full"&&(m.setValue(i,""),m.setValue(a,"")),m.trigger(C));},b=k=>{typeof k=="string"&&(h(k,false),S(),!(k.length<=2)&&getGeocode({address:k}).then(E=>{let{city:w,state:f,street:I,zip:W,lat:O,long:B}=rs(E[0]),U=[C,a,s];m.setValue(a,w),m.setValue(s,f),o==="full"&&(m.setValue(n,I),m.setValue(i,W),U.push(n,i)),o==="city_with_state"&&m.setValue(p,`${w}, ${f}`),m.setValue(l,O),m.setValue(d,B),m.setValue(u,k),m.trigger(U);}).catch(E=>console.error(`Google Maps API error: ${E}`)));};return jsxs(a$n,{vertical:true,style:{width:"100%"},children:[jsx(P,{label:e,isLabelBold:r,required:!!t.required}),jsx(Controller,{render:({field:k})=>{let{ref:E,...w}=k;return jsx(AutoComplete,{onSearch:x,options:y.map(f=>({label:f.description,value:f.description})),onSelect:b,...w,children:jsx(ts,{size:"large",placeholder:c})})},name:C,rules:{...t},control:m.control}),m.formState.errors[C]&&jsx(v,{text:m.formState.errors[C]?.message,includeIcon:false})]})},as=({api_key:e,...t})=>{let{isLoaded:r}=useLoadScript({googleMapsApiKey:e||process.env.GOOGLE_MAPS_API_KEY||"",libraries:os});return r?jsx(ns,{...t}):null},zo=as;var us=a.div`
|
|
20
20
|
position: relative;
|
|
21
21
|
margin-bottom: 24px;
|
|
22
|
-
`,cs=({label:e="",formOptions:t={},defaultValue:r=null,name:o,...n})=>{let{control:a,formState:{errors:s}}=useFormContext(),
|
|
22
|
+
`,cs=({label:e="",formOptions:t={},defaultValue:r=null,name:o,...n})=>{let{control:a,formState:{errors:s}}=useFormContext(),i=get(s,o),p=i?i.message?.toString():"This field is required";return jsxs(us,{children:[jsx(P,{isLabelBold:true,label:e,required:!!t.required}),jsx(Controller,{render:({field:l})=>jsx(a$h,{...n,...l,status:i?"error":""}),name:o,defaultValue:r?st(r):null,rules:t,control:a,...t}),i&&jsx(v,{includeIcon:false,children:p})]})},qo=cs;var gs=({label:e="",name:t,options:r=void 0,...o})=>{let{setValue:n,watch:a$1}=useFormContext(),s=a$1(t),i=a.div`
|
|
23
23
|
position: relative;
|
|
24
24
|
margin-bottom: 24px;
|
|
25
|
-
`,p=
|
|
25
|
+
`,p=l=>{n(t,l);};return jsxs(i,{children:[jsx(P,{label:e,required:!!r?.required}),jsx(a$i,{name:t,...o,onChange:p,value:s})]})},Go=gs;var Cs=a.div`
|
|
26
26
|
position: relative;
|
|
27
27
|
margin-bottom: 24px;
|
|
28
28
|
z-index: 20;
|
|
@@ -105,11 +105,11 @@ import {a as a$B,b as b$e,c as c$9}from'./chunk-ULNBCBSF.js';import {a as a$D}fr
|
|
|
105
105
|
border: 0.766898px solid;
|
|
106
106
|
border-color: ${e=>e.isCurrent?"#285E50 !important":"var(--green-600, #3f937c)"};
|
|
107
107
|
background: ${e=>e.isCurrent?"#285E50 !important":"#FFF"};
|
|
108
|
-
`,Is=({label:e="",name:t,details:r="",options:o=[],previewOnly:n=false})=>{let a=useRef(),s=useFormContext(),[
|
|
108
|
+
`,Is=({label:e="",name:t,details:r="",options:o=[],previewOnly:n=false})=>{let a=useRef(),s=useFormContext(),[i,p]=useState(false),[l,d]=useState(""),[u,c]=useState(s.getValues(t)||[]),m=useRef({search:l,keywords:u});useEffect(()=>{m.current={search:l,keywords:u};},[l,u]);let[y,h]=useState(o),S=useSpring(i?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),C=o.find(f=>f===s.getValues(t)),x=f=>{let I=[...m.current.keywords,f];d(""),c(I),s.setValue(t,I),p(false);},b=f=>f?f.charAt(0).toUpperCase()+f.slice(1).toLowerCase():"",k=()=>{if(!m.current.search)return;let f=b(m.current.search);x(f);};useEffect(()=>{let f=I=>{i&&a.current&&!a.current.contains(I.target)&&(k(),p(false));};return document.addEventListener("mousedown",I=>f(I)),()=>{document.removeEventListener("mousedown",I=>f(I));}},[i]);let E=f=>{f.code==="Enter"&&(k(),f.preventDefault());},w=f=>{let I=u.filter(W=>W!==f);c(I),d(""),s.setValue(t,I);};return useEffect(()=>{if(p(!!l),l){let f=o.filter(I=>I.toLowerCase().match(l.toLowerCase()));h(f);}else h(o);},[l]),useEffect(()=>{let f=o.filter(I=>!u.includes(I));h(f);},[u]),jsxs(Cs,{children:[jsx(xs,{size:"lg",children:e}),r&&jsx(vs,{children:r}),!n&&jsxs(Ps,{onClick:()=>p(!i),children:[jsx(a$j,{}),C,jsx(ks,{onKeyDown:E,value:l,onChange:f=>d(f.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxs(ws,{style:S,ref:a,children:[y.map(f=>{let I=f===C;return jsxs(Jo,{onClick:()=>x(f),children:[jsx(a$1.Body,{size:"lg",children:f}),jsx(Rs,{isCurrent:I,children:jsx(a$2.Check,{color:"#fff"})})]},f)}),!y.length&&jsx(Jo,{onClick:()=>k(),children:jsx(a$1.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[n&&u.length===0&&"N/A",u.map(f=>jsxs(Es,{onClick:()=>w(f),children:[f,!n&&jsx(a$k,{})]},f))]})]})},Ko=Is;var As=Fn(DatePicker)`
|
|
109
109
|
padding: 12px 24px;
|
|
110
110
|
width: 100%;
|
|
111
111
|
max-width: 25rem;
|
|
112
|
-
`,Vs=({label:e=null,isLabelBold:t=true,name:r,details:o=void 0,disabled:n=false,defaultValue:a=void 0,startRange:s=void 0,endRange:
|
|
112
|
+
`,Vs=({label:e=null,isLabelBold:t=true,name:r,details:o=void 0,disabled:n=false,defaultValue:a=void 0,startRange:s=void 0,endRange:i=void 0,formOptions:p={},errorMessage:l="This field is required.",style:d={},format:u="MM/DD/YYYY",...c})=>{let{control:m,formState:{errors:y}}=useFormContext(),h=!!get(y,r),S=y?.[r]?.message?.toString()||l,C=b=>b?!!(s&&b.isBefore(st(s).endOf("day"))||i&&b.isAfter(st(i).endOf("day"))):false,{field:x}=useController({name:r,control:m,defaultValue:a,rules:p});return jsxs("div",{style:d,children:[jsx(P,{label:e,details:o,isLabelBold:t,required:!!p.required}),jsx(As,{format:u,disabled:n,disabledDate:C,status:h?"error":"",...c,onChange:(b,k)=>{x.onChange(k);},value:x.value?st(x.value):null,popupClassName:"date-select-pop-up-container"}),jsx(Global,{styles:css`
|
|
113
113
|
.date-select-pop-up-container {
|
|
114
114
|
&&&&& .ant-picker-cell-selected .ant-picker-cell-inner {
|
|
115
115
|
background: #285e50;
|
|
@@ -171,7 +171,7 @@ import {a as a$B,b as b$e,c as c$9}from'./chunk-ULNBCBSF.js';import {a as a$D}fr
|
|
|
171
171
|
pointer-events: auto;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
`}),h&&jsx(v,{text:S,includeIcon:false})]})},Yo=Vs;var {Dragger:_s}=Upload,$s=({label:e="",name:t,disabled:r=false,description:o="",isLabelBold:n=true,formOptions:a={},onChange:s,onRemove:l,onDownload:p,onDrop:i,defaultValue:d=void 0,containerStyle:u={},errorMessage:c=void 0,action:m="",headers:y={},uploadData:h={},defaultFileList:S=[],...C})=>{useFormContext().register(t,a);let{getFieldState:b,formState:{errors:k}}=useFormContext(),E=!!get(k,t);return jsxs("div",{style:u,children:[jsx(P,{label:e,isLabelBold:n,required:!!a.required,details:o}),jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsx(oe,{formOptions:{required:b(t).invalid},name:`${t}_validation`,type:"text"})}),jsxs(_s,{name:"file",multiple:true,onChange:s,onDrop:i,onRemove:l,onDownload:p,action:m,disabled:r,headers:y,defaultFileList:S,showUploadList:{showDownloadIcon:true},data:h,...C,capture:void 0,children:[jsx(a$2.Attachment,{}),jsxs(a$l,{children:[jsx(b$6,{children:jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsx(b$6,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),d?jsxs(Fragment,{children:["Current Value: ",d]}):null,E&&jsx(v,{text:c,includeIcon:false})]})},Zo=$s;var Us=({label:e="",details:t=void 0,isLabelBold:r=true,name:o,formOptions:n={},containerStyle:a=void 0})=>{let{formState:{errors:s,defaultValues:l},register:p,setValue:i}=useFormContext();p(o,n);let d=!!get(s,o),u=get(s,o)?.message?.toString();return jsxs(a$m,{style:a,children:[jsx(it,{label:e,isLabelBold:r,details:t,required:!!n.required,onChange:c=>i(o,c),hasError:d,defaultValue:l?.[o]}),d&&jsx(v,{text:u})]})},tn=Us;var Ks={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function De({iconProps:e={},containerStyles:t={},value:r=void 0,onChange:o=void 0}){let[n,a]=useState(r),s=p=>a(p),l=p=>n===p;return useEffect(()=>{o&&o(n);},[n]),jsx(a$n,{gap:".5rem",style:{...t},children:Object.values(a$o).map(p=>{let{iconFill:i,background:d}=Ks[p],u=l(p);return jsx(a$p,{backgroundColor:n?d:"#ffffff",onClick:()=>s(p),isActive:u,children:jsx(a$2.Sentiment,{...e,variant:p,color:u?i:"#7F7F7F"})})})})}function pt({name:e,...t}){let{control:r}=useFormContext();return jsx(Controller,{control:r,name:e,render:({field:{value:o,onChange:n}})=>jsx(De,{...t,onChange:n,value:o})})}var on=e=>{let t=e.split("/"),r=+t[0],o=+t[1],n=+t[2];return new Date(n,r-1,o)},nn=e=>{if(!e)return "";let t=e.getDate(),r=e.getMonth()+1,o=e.getFullYear(),n=t<10?`0${t}`:t.toString();return [r<10?`0${r}`:r.toString(),n,o].join("/")},ri=({label:e=void 0,isLabelBold:t=true,name:r,details:o=void 0,formOptions:n={},style:a={},errorMessage:s="This field is required.",minDate:l=new Date(1915,0,1),maxDate:p=new Date,showErrorMessage:i=true,...d})=>{let{formState:{errors:u},setValue:c,register:m,watch:y}=useFormContext();m(r,n);let h=y(r),[S,C]=useState("");useEffect(()=>{if(!h)return;let E=typeof h=="string"?new Date(h):h,w=nn(E);C(w);},[h]);let x=(E,w)=>{C(E),w.unmaskedValue.length!==8&&c(r,"");},b=!!get(u,r),k=u?.[r]?.message?.toString()||s;return jsxs("div",{style:a,children:[jsx(P,{label:e,details:o,isLabelBold:t,required:!!n.required}),jsx(a$q,{value:S,mask:Date,blocks:{d:{mask:IMask.MaskedRange,from:1,to:31,autofix:"pad"},m:{mask:IMask.MaskedRange,from:1,to:12,autofix:"pad"},Y:{mask:IMask.MaskedRange,from:1915,to:p.getFullYear(),autofix:false}},placeholder:"MM/DD/YYYY",pattern:"m/d/Y",format:nn,parse:on,onAccept:x,onComplete:E=>c(r,on(E)),min:l,max:p,lazy:true,overwrite:false,...d}),i&&b&&jsx(v,{text:k,includeIcon:false})]})},an=ri;var si=({name:e,label:t=void 0,details:r=void 0,isLabelBold:o=false,formOptions:n={},defaultValue:a="",wrapperStyle:s={},className:l=void 0,onChange:p=void 0,showErrorMessage:i=true,...d})=>{let{control:u}=useFormContext(),{field:c,fieldState:m}=useController({name:e,control:u,rules:n,defaultValue:a}),y=x=>{c.onChange(x),p&&p(x);},h=i?!!m.error:false,S=m.error?.message?.toString(),C=h?"error":"";return jsxs("div",{style:{width:"100%",...s},className:l,children:[t&&jsx(P,{label:t,isLabelBold:o,required:!!n.required,details:r}),jsx(a$a.OTP,{...c,...d,onChange:y,status:C}),i&&h&&jsx(v,{text:S,includeIcon:false})]})},sn=si;var ie={AddressSelect:zo,ButtonRadioGroup:Oo,Container:a$6,Checkbox:xe,CheckboxGroup:So,CheckboxCardGroup:Co,InputLabel:P,DateSelect:Yo,DateTextMaskInput:an,TextInput:ve,Text:oe,TimePicker:qo,TimeSelect:Go,Radio:Pe,RadioGroup:Ro,CheckMarkRadio:Do,WelcomeCheckbox:xo,CardRadioGroup:Io,Number:wo,Select:To,SelectMenu:Vo,SentimentSelector:pt,Signature:Eo,Submit:a$5,LocationSelect:$o,Keyword:Ko,Toggle:a$4,FileUpload:Zo,Tree:a$3,DateDropdown:tn,OTP:sn};var Ci=()=>Array.from({length:12},(t,r)=>({label:new Date(r,r).toLocaleString("en-US",{month:"long"}),value:r+1})),xi=(e,t)=>{let r=e||1,o=t||2024,n=new Date(o,r,0).getDate();return Array.from({length:n},(s,l)=>({label:l+1,value:l+1}))},vi=()=>Array.from({length:110},(t,r)=>{let o=new Date().getFullYear()-r;return {label:o,value:o}}),Pi=({label:e="",details:t=void 0,isLabelBold:r=false,required:o=false,onChange:n=()=>null,defaultValue:a=null,hasError:s=false})=>{let l=useRef(null),[p,i]=useState(false),d=useForm({defaultValues:{month:null,day:null,year:null}}),{reset:u}=d;useEffect(()=>{if(!a)return;let y=new Date(a);u({month:y.getMonth()+1,day:y.getDate(),year:y.getFullYear()});},[a]);let c=d.watch(),m=xi(c?.month,c?.year);return useEffect(()=>{let y=m.find(h=>h.value===c.day);if(c.month&&c.day&&c.year&&y){let h=new Date(c.year,c.month-1,c.day);n(h);}else n(null);},[c.month,c.day,c.year]),useEffect(()=>{l.current&&i(true);},[l,p]),jsxs(Fragment,{children:[jsx("div",{ref:l}),p&&createPortal(jsxs(ie.Container,{formMethods:d,onSubmit:()=>null,children:[jsx(P,{label:e,isLabelBold:r,required:!!o,details:t}),jsxs(a$r,{gap:8,hasError:s,children:[jsx(ie.SelectMenu,{name:"month",options:Ci(),placeholder:"Month",containerStyle:{width:"100%"},sort:false}),jsx(ie.SelectMenu,{name:"day",options:m,placeholder:"Day",containerStyle:{width:"100%"},sort:false}),jsx(ie.SelectMenu,{name:"year",options:vi(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),l.current||document.body)]})},it=Pi;var Ri=({width:e=25,style:t={},drawerStyle:r={},hidden:o=false,position:n="right",arrowPosition:a="top",variant:s="default",children:l,drawerContent:p,drawerButton:i=void 0,defaultOpen:d=false,config:u="gentle",drawerOpen:c=void 0,setDrawerOpen:m=void 0,buttonStyle:y={},drawerContentStyle:h={}})=>{let[S,C]=useState(d),{isMobile:x}=b$3(),b=n==="left",k=s==="minimal",E=k||x||o?"0rem":"3rem",w=x||o?"0rem":`${e}rem`,f=c!==void 0?c:S,I=X=>{m?m(X):C(X);};return useEffect(()=>{d&&I(true);},[d]),jsxs(a$s,{trigger:f,from:b?{paddingLeft:E}:{paddingRight:E},to:b?{paddingLeft:w}:{paddingRight:w},config:u,style:t,animationProps:{reset:o},children:[l,jsxs(b$7,{width:e,trigger:f,bottomArrow:a==="bottom",from:b?{transform:x||k?"translateX(-100%)":`translateX(${3-e}rem)`}:{transform:k||x?"translateX(100%)":`translateX(${e-3}rem)`},to:{transform:k||x?"translateX(0%)":"translateX(0rem)"},config:u,hidden:o,animationProps:{reset:o},isLeft:b,style:r,className:"drawer-content-container",children:[i||jsx(a$t,{from:{transform:k||x?`translateX(${b?"3rem":"-3rem"})`:"translateX(0rem)"},to:{transform:"translateX(0rem)"},trigger:f,style:y,children:jsx(c$5,{onClick:()=>I(!f),children:jsx(d$6,{isLeft:b,trigger:f,from:{transform:`rotate(${b?"180deg":"0deg"})`},to:{transform:`rotate(${b?"0deg":"180deg"})`},children:jsx(a$2.Caret,{})})})}),jsx(e$2,{style:h,trigger:f,from:{opacity:0},to:{opacity:1},children:p})]})]})},Ii=Ri;var Oi=({children:e,desktopNavHeight:t=3.75,drawerWidth:r=30,hideDrawerToggle:o=false,isOpen:n,peekWidth:a=2,setIsOpen:s,smoothContentTransitionOnOpen:l=true,styles:p={content:{},wrapper:{},body:{},mask:{},header:{},footer:{}},wrapperMarginTop:i=2.5,...d})=>{let{isDrawerOpen:u,toggleDrawer:c}=a$u({isOpen:n,setIsOpen:s}),m=d.placement||"right",y=m==="left",h=y?"0rem var(--border-radius-xl, 1.5rem) var(--border-radius-xl, 1.5rem) 0rem":"var(--border-radius-xl, 1.5rem) 0rem 0rem var(--border-radius-xl, 1.5rem)",C=`.125rem solid ${u?d$4.white:d$4.green500}`,x={borderTop:C,[y?"borderRight":"borderLeft"]:C},b=u===y?"left":"right";return jsxs(a$v,{open:true,closable:false,destroyOnClose:false,mask:false,width:u?`${r}rem`:`${a}rem`,placement:m,styles:{content:{background:"transparent",...p.content},wrapper:{height:"50rem",marginTop:`${t+i}rem`,padding:u?"var(--spacing-xxl, 2rem)":0,borderRadius:h,...x,background:"rgba(255, 255, 255, 0.30)",boxShadow:`0px -2px 10px 0px ${d$4.green300}`,backdropFilter:"blur(20px)",...p.wrapper},body:{...p.body},mask:{...p.mask},header:{...p.header},footer:{...p.footer}},...d,children:[!o&&jsx(b$8,{isOpen:u,onClick:c,isLeftPlacement:y,children:jsx(a$2.Caret,{direction:b,color:d$4.green700})}),jsx(a$w,{isLeftPlacement:y,isOpen:u,smoothContentTransitionOnOpen:l,children:e})]})};var yt=({name:e,size:t=22,color:r="green800"})=>{let o=a$2[e];return jsx(o,{size:t,width:t,height:t,color:d$4[r]})};var Fi=({icon:e=void 0,color:t="green800",text:r,onClick:o})=>jsx(a$x,{color:d$4[t],iconPosition:"end",onClick:o,children:jsxs(a$n,{align:"center",gap:`${e$3.xs.rem}rem`,children:[jsx(b$9,{children:jsx(a$2.Caret,{color:d$4[t],direction:"left",size:12})}),jsxs(a$n,{align:"center",gap:`${e$3.xs.rem}rem`,children:[e&&jsx(yt,{name:e,color:t}),r]})]})});var dn=({file:e,display:t="card",handleDownload:r=()=>null,className:o=""})=>{let n=()=>{r(e);};return t==="list"?null:jsxs(b$a,{className:o,children:[jsxs(c$6,{children:[jsx(a$2.Image,{}),jsx(a$1.Header,{children:e.name})]}),jsxs(d$7,{onClick:n,children:[jsx(a$2.DownloadArrow,{}),"Download"]})]})},Li=({files:e,handleDownload:t,className:r=""})=>jsx(a$y,{className:r,children:e.map(o=>jsx(dn,{file:o,handleDownload:t}))}),Ti={Group:Li,Display:dn};function ht({className:e="",isActive:t=false,color:r="#000"}){let o=useSpring(t?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{className:e,style:{...o,display:"flex",alignItems:"center"},children:jsx(a$2.Caret,{direction:"up",color:r})})}var hn={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:true,transitionTimeout:50},$i=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",expandIconClassName:a="",menuProps:s={menuButton:void 0},caretColor:l="#000",borderColor:p=d$4.grey400})=>{let i=useRef(null),[d,u]=useMenuState({transition:true}),c=useClick(d.state,u),m=d.state==="open"||d.state==="opening";return useEffect(()=>{o(d.state);},[d.state]),jsx(Fragment,{children:jsxs(c$7,{className:`${n} ${m?"menu-open":"menu-closed"}`,ref:i,borderColor:p,...c,children:[jsx(a$z,{children:t}),jsx(ht,{className:a,isActive:m,color:l}),jsx(ControlledMenu,{...d,anchorRef:i,onClose:()=>u(false),onItemClick:r,onMenuChange:o,...hn,...s,children:e})]})})},zi=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",menuProps:a={menuButton:void 0}})=>{let s=useRef(null),[l,p]=useMenuState({transition:true}),i=useClick(l.state,p),d=l.state==="open"||l.state==="opening";return useEffect(()=>{o(l.state);},[l.state]),jsx(Fragment,{children:jsxs(b$b,{className:`${n} ${d?"menu-open":"menu-closed"}`,ref:s,...i,children:[t,jsx(ControlledMenu,{...l,anchorRef:s,onClose:()=>p(false),onItemClick:r,onMenuChange:o,...hn,...a,children:e})]})})},qi=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),Ui=({label:e,value:t,selected:r=false,onClick:o=()=>null,disabled:n=false,linkTo:a="",className:s=""})=>jsx(MenuItem,{className:`${s} ${r?"active":"inactive"}`,value:t,onClick:o,href:a,disabled:n,children:e}),Gi=({value:e,onChange:t=()=>null,className:r=""})=>jsx(FocusableItem,{children:({ref:o})=>jsx("input",{className:r,ref:o,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),Hi=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),Ji=({className:e=""})=>jsx(MenuDivider,{className:e}),Ki={Button:qi,Container:$i,Wrapper:zi,Search:Gi,Divider:Ji,Header:Hi,Item:Ui};var Zi=Fn.div`
|
|
174
|
+
`}),h&&jsx(v,{text:S,includeIcon:false})]})},Yo=Vs;var {Dragger:Xs}=Upload,$s=({label:e="",name:t,disabled:r=false,description:o="",isLabelBold:n=true,formOptions:a={},onChange:s,onRemove:i,onDownload:p,onDrop:l,defaultValue:d=void 0,containerStyle:u={},errorMessage:c=void 0,action:m="",headers:y={},uploadData:h={},defaultFileList:S=[],...C})=>{useFormContext().register(t,a);let{getFieldState:b,formState:{errors:k}}=useFormContext(),E=!!get(k,t);return jsxs("div",{style:u,children:[jsx(P,{label:e,isLabelBold:n,required:!!a.required,details:o}),jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsx(oe,{formOptions:{required:b(t).invalid},name:`${t}_validation`,type:"text"})}),jsxs(Xs,{name:"file",multiple:true,onChange:s,onDrop:l,onRemove:i,onDownload:p,action:m,disabled:r,headers:y,defaultFileList:S,showUploadList:{showDownloadIcon:true},data:h,...C,capture:void 0,children:[jsx(a$2.Attachment,{}),jsxs(a$l,{children:[jsx(b$6,{children:jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsx(b$6,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),d?jsxs(Fragment,{children:["Current Value: ",d]}):null,E&&jsx(v,{text:c,includeIcon:false})]})},Zo=$s;var Us=({label:e="",details:t=void 0,isLabelBold:r=true,name:o,formOptions:n={},containerStyle:a=void 0})=>{let{formState:{errors:s,defaultValues:i},register:p,setValue:l}=useFormContext();p(o,n);let d=!!get(s,o),u=get(s,o)?.message?.toString();return jsxs(a$m,{style:a,children:[jsx(it,{label:e,isLabelBold:r,details:t,required:!!n.required,onChange:c=>l(o,c),hasError:d,defaultValue:i?.[o]}),d&&jsx(v,{text:u})]})},tn=Us;var Ks={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function De({iconProps:e={},containerStyles:t={},value:r=void 0,onChange:o=void 0}){let[n,a]=useState(r),s=p=>a(p),i=p=>n===p;return useEffect(()=>{o&&o(n);},[n]),jsx(a$n,{gap:".5rem",style:{...t},children:Object.values(a$o).map(p=>{let{iconFill:l,background:d}=Ks[p],u=i(p);return jsx(a$p,{backgroundColor:n?d:"#ffffff",onClick:()=>s(p),isActive:u,children:jsx(a$2.Sentiment,{...e,variant:p,color:u?l:"#7F7F7F"})})})})}function pt({name:e,...t}){let{control:r}=useFormContext();return jsx(Controller,{control:r,name:e,render:({field:{value:o,onChange:n}})=>jsx(De,{...t,onChange:n,value:o})})}var on=e=>{let t=e.split("/"),r=+t[0],o=+t[1],n=+t[2];return new Date(n,r-1,o)},nn=e=>{if(!e)return "";let t=e.getDate(),r=e.getMonth()+1,o=e.getFullYear(),n=t<10?`0${t}`:t.toString();return [r<10?`0${r}`:r.toString(),n,o].join("/")},ri=({label:e=void 0,isLabelBold:t=true,name:r,details:o=void 0,formOptions:n={},style:a={},errorMessage:s="This field is required.",minDate:i=new Date(1915,0,1),maxDate:p=new Date,showErrorMessage:l=true,...d})=>{let{formState:{errors:u},setValue:c,register:m,watch:y}=useFormContext();m(r,n);let h=y(r),[S,C]=useState("");useEffect(()=>{if(!h)return;let E=typeof h=="string"?new Date(h):h,w=nn(E);C(w);},[h]);let x=(E,w)=>{C(E),w.unmaskedValue.length!==8&&c(r,"");},b=!!get(u,r),k=u?.[r]?.message?.toString()||s;return jsxs("div",{style:a,children:[jsx(P,{label:e,details:o,isLabelBold:t,required:!!n.required}),jsx(a$q,{value:S,mask:Date,blocks:{d:{mask:IMask.MaskedRange,from:1,to:31,autofix:"pad"},m:{mask:IMask.MaskedRange,from:1,to:12,autofix:"pad"},Y:{mask:IMask.MaskedRange,from:1915,to:p.getFullYear(),autofix:false}},placeholder:"MM/DD/YYYY",pattern:"m/d/Y",format:nn,parse:on,onAccept:x,onComplete:E=>c(r,on(E)),min:i,max:p,lazy:true,overwrite:false,...d}),l&&b&&jsx(v,{text:k,includeIcon:false})]})},an=ri;var si=({name:e,label:t=void 0,details:r=void 0,isLabelBold:o=false,formOptions:n={},defaultValue:a="",wrapperStyle:s={},className:i=void 0,onChange:p=void 0,showErrorMessage:l=true,...d})=>{let{control:u}=useFormContext(),{field:c,fieldState:m}=useController({name:e,control:u,rules:n,defaultValue:a}),y=x=>{c.onChange(x),p&&p(x);},h=l?!!m.error:false,S=m.error?.message?.toString(),C=h?"error":"";return jsxs("div",{style:{width:"100%",...s},className:i,children:[t&&jsx(P,{label:t,isLabelBold:o,required:!!n.required,details:r}),jsx(a$a.OTP,{...c,...d,onChange:y,status:C}),l&&h&&jsx(v,{text:S,includeIcon:false})]})},sn=si;var ie={AddressSelect:zo,ButtonRadioGroup:Oo,Container:a$6,Checkbox:xe,CheckboxGroup:So,CheckboxCardGroup:Co,InputLabel:P,DateSelect:Yo,DateTextMaskInput:an,TextInput:ve,Text:oe,TimePicker:qo,TimeSelect:Go,Radio:Pe,RadioGroup:Ro,CheckMarkRadio:Do,WelcomeCheckbox:xo,CardRadioGroup:Io,Number:wo,Select:To,SelectMenu:Vo,SentimentSelector:pt,Signature:Eo,Submit:a$5,LocationSelect:$o,Keyword:Ko,Toggle:a$4,FileUpload:Zo,Tree:a$3,DateDropdown:tn,OTP:sn};var Ci=()=>Array.from({length:12},(t,r)=>({label:new Date(r,r).toLocaleString("en-US",{month:"long"}),value:r+1})),xi=(e,t)=>{let r=e||1,o=t||2024,n=new Date(o,r,0).getDate();return Array.from({length:n},(s,i)=>({label:i+1,value:i+1}))},vi=()=>Array.from({length:110},(t,r)=>{let o=new Date().getFullYear()-r;return {label:o,value:o}}),Pi=({label:e="",details:t=void 0,isLabelBold:r=false,required:o=false,onChange:n=()=>null,defaultValue:a=null,hasError:s=false})=>{let i=useRef(null),[p,l]=useState(false),d=useForm({defaultValues:{month:null,day:null,year:null}}),{reset:u}=d;useEffect(()=>{if(!a)return;let y=new Date(a);u({month:y.getMonth()+1,day:y.getDate(),year:y.getFullYear()});},[a]);let c=d.watch(),m=xi(c?.month,c?.year);return useEffect(()=>{let y=m.find(h=>h.value===c.day);if(c.month&&c.day&&c.year&&y){let h=new Date(c.year,c.month-1,c.day);n(h);}else n(null);},[c.month,c.day,c.year]),useEffect(()=>{i.current&&l(true);},[i,p]),jsxs(Fragment,{children:[jsx("div",{ref:i}),p&&createPortal(jsxs(ie.Container,{formMethods:d,onSubmit:()=>null,children:[jsx(P,{label:e,isLabelBold:r,required:!!o,details:t}),jsxs(a$r,{gap:8,hasError:s,children:[jsx(ie.SelectMenu,{name:"month",options:Ci(),placeholder:"Month",containerStyle:{width:"100%"},sort:false}),jsx(ie.SelectMenu,{name:"day",options:m,placeholder:"Day",containerStyle:{width:"100%"},sort:false}),jsx(ie.SelectMenu,{name:"year",options:vi(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),i.current||document.body)]})},it=Pi;var Ri=({width:e=25,style:t={},drawerStyle:r={},hidden:o=false,position:n="right",arrowPosition:a="top",variant:s="default",children:i,drawerContent:p,drawerButton:l=void 0,defaultOpen:d=false,config:u="gentle",drawerOpen:c=void 0,setDrawerOpen:m=void 0,buttonStyle:y={},drawerContentStyle:h={}})=>{let[S,C]=useState(d),{isMobile:x}=b$3(),b=n==="left",k=s==="minimal",E=k||x||o?"0rem":"3rem",w=x||o?"0rem":`${e}rem`,f=c!==void 0?c:S,I=W=>{m?m(W):C(W);};return useEffect(()=>{d&&I(true);},[d]),jsxs(a$s,{trigger:f,from:b?{paddingLeft:E}:{paddingRight:E},to:b?{paddingLeft:w}:{paddingRight:w},config:u,style:t,animationProps:{reset:o},children:[i,jsxs(b$7,{width:e,trigger:f,bottomArrow:a==="bottom",from:b?{transform:x||k?"translateX(-100%)":`translateX(${3-e}rem)`}:{transform:k||x?"translateX(100%)":`translateX(${e-3}rem)`},to:{transform:k||x?"translateX(0%)":"translateX(0rem)"},config:u,hidden:o,animationProps:{reset:o},isLeft:b,style:r,className:"drawer-content-container",children:[l||jsx(a$t,{from:{transform:k||x?`translateX(${b?"3rem":"-3rem"})`:"translateX(0rem)"},to:{transform:"translateX(0rem)"},trigger:f,style:y,children:jsx(c$5,{onClick:()=>I(!f),children:jsx(d$6,{isLeft:b,trigger:f,from:{transform:`rotate(${b?"180deg":"0deg"})`},to:{transform:`rotate(${b?"0deg":"180deg"})`},children:jsx(a$2.Caret,{})})})}),jsx(e$2,{style:h,trigger:f,from:{opacity:0},to:{opacity:1},children:p})]})]})},Ii=Ri;var Oi=({children:e,desktopNavHeight:t=3.75,drawerWidth:r=30,hideDrawerToggle:o=false,isOpen:n,peekWidth:a=2,setIsOpen:s,smoothContentTransitionOnOpen:i=true,styles:p={content:{},wrapper:{},body:{},mask:{},header:{},footer:{}},wrapperMarginTop:l=2.5,...d})=>{let{isDrawerOpen:u,toggleDrawer:c}=a$u({isOpen:n,setIsOpen:s}),m=d.placement||"right",y=m==="left",h=y?"0rem var(--border-radius-xl, 1.5rem) var(--border-radius-xl, 1.5rem) 0rem":"var(--border-radius-xl, 1.5rem) 0rem 0rem var(--border-radius-xl, 1.5rem)",C=`.125rem solid ${u?d$4.white:d$4.green500}`,x={borderTop:C,[y?"borderRight":"borderLeft"]:C},b=u===y?"left":"right";return jsxs(a$v,{open:true,closable:false,destroyOnClose:false,mask:false,width:u?`${r}rem`:`${a}rem`,placement:m,styles:{content:{background:"transparent",...p.content},wrapper:{height:"50rem",marginTop:`${t+l}rem`,padding:u?"var(--spacing-xxl, 2rem)":0,borderRadius:h,...x,background:"rgba(255, 255, 255, 0.30)",boxShadow:`0px -2px 10px 0px ${d$4.green300}`,backdropFilter:"blur(20px)",...p.wrapper},body:{...p.body},mask:{...p.mask},header:{...p.header},footer:{...p.footer}},...d,children:[!o&&jsx(b$8,{isOpen:u,onClick:c,isLeftPlacement:y,children:jsx(a$2.Caret,{direction:b,color:d$4.green700})}),jsx(a$w,{isLeftPlacement:y,isOpen:u,smoothContentTransitionOnOpen:i,children:e})]})};var yt=({name:e,size:t=22,color:r="green800"})=>{let o=a$2[e];return jsx(o,{size:t,width:t,height:t,color:d$4[r]})};var Fi=({icon:e=void 0,color:t="green800",text:r,onClick:o})=>jsx(a$x,{color:d$4[t],iconPosition:"end",onClick:o,children:jsxs(a$n,{align:"center",gap:`${e$3.xs.rem}rem`,children:[jsx(b$9,{children:jsx(a$2.Caret,{color:d$4[t],direction:"left",size:12})}),jsxs(a$n,{align:"center",gap:`${e$3.xs.rem}rem`,children:[e&&jsx(yt,{name:e,color:t}),r]})]})});var dn=({file:e,display:t="card",handleDownload:r=()=>null,className:o=""})=>{let n=()=>{r(e);};return t==="list"?null:jsxs(b$a,{className:o,children:[jsxs(c$6,{children:[jsx(a$2.Image,{}),jsx(a$1.Header,{children:e.name})]}),jsxs(d$7,{onClick:n,children:[jsx(a$2.DownloadArrow,{}),"Download"]})]})},Li=({files:e,handleDownload:t,className:r=""})=>jsx(a$y,{className:r,children:e.map(o=>jsx(dn,{file:o,handleDownload:t}))}),Ti={Group:Li,Display:dn};function ht({className:e="",isActive:t=false,color:r="#000"}){let o=useSpring(t?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{className:e,style:{...o,display:"flex",alignItems:"center"},children:jsx(a$2.Caret,{direction:"up",color:r})})}var hn={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:true,transitionTimeout:50},$i=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",expandIconClassName:a="",menuProps:s={menuButton:void 0},caretColor:i="#000",borderColor:p=d$4.grey400})=>{let l=useRef(null),[d,u]=useMenuState({transition:true}),c=useClick(d.state,u),m=d.state==="open"||d.state==="opening";return useEffect(()=>{o(d.state);},[d.state]),jsx(Fragment,{children:jsxs(c$7,{className:`${n} ${m?"menu-open":"menu-closed"}`,ref:l,borderColor:p,...c,children:[jsx(a$z,{children:t}),jsx(ht,{className:a,isActive:m,color:i}),jsx(ControlledMenu,{...d,anchorRef:l,onClose:()=>u(false),onItemClick:r,onMenuChange:o,...hn,...s,children:e})]})})},zi=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",menuProps:a={menuButton:void 0}})=>{let s=useRef(null),[i,p]=useMenuState({transition:true}),l=useClick(i.state,p),d=i.state==="open"||i.state==="opening";return useEffect(()=>{o(i.state);},[i.state]),jsx(Fragment,{children:jsxs(b$b,{className:`${n} ${d?"menu-open":"menu-closed"}`,ref:s,...l,children:[t,jsx(ControlledMenu,{...i,anchorRef:s,onClose:()=>p(false),onItemClick:r,onMenuChange:o,...hn,...a,children:e})]})})},qi=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),Ui=({label:e,value:t,selected:r=false,onClick:o=()=>null,disabled:n=false,linkTo:a="",className:s=""})=>jsx(MenuItem,{className:`${s} ${r?"active":"inactive"}`,value:t,onClick:o,href:a,disabled:n,children:e}),Gi=({value:e,onChange:t=()=>null,className:r=""})=>jsx(FocusableItem,{children:({ref:o})=>jsx("input",{className:r,ref:o,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),Hi=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),Ji=({className:e=""})=>jsx(MenuDivider,{className:e}),Ki={Button:qi,Container:$i,Wrapper:zi,Search:Gi,Divider:Ji,Header:Hi,Item:Ui};var Zi=Fn.div`
|
|
175
175
|
${({displaySmall:e,searchValue:t})=>e&&t===""&&`
|
|
176
176
|
:has(input:not(input:focus)) {
|
|
177
177
|
height: 50px;
|
|
@@ -193,7 +193,7 @@ import {a as a$B,b as b$e,c as c$9}from'./chunk-ULNBCBSF.js';import {a as a$D}fr
|
|
|
193
193
|
:hover {
|
|
194
194
|
cursor: pointer;
|
|
195
195
|
}
|
|
196
|
-
`,ji=({searchValue:e="",displaySmall:t=false,iconPosition:r="suffix",iconColor:o="#101010",containerStyle:n={},...a})=>jsx(Zi,{displaySmall:t,searchValue:e,style:n,children:jsx(Input,{placeholder:"Search",allowClear:true,suffix:r==="suffix"?jsx(a$2.Search,{color:o}):void 0,prefix:r==="prefix"?jsx(a$2.Search,{color:o}):void 0,style:{maxWidth:"290px",padding:"12px"},...a})});function St({isActive:e,color:t="#000"}){let r=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...r,display:"flex",alignItems:"center"},children:jsx(a$2.Caret,{direction:"up",color:t})})}var sl=e=>window.location.pathname===e,kn=({icon:e,active:t,useDot:r,ribbonText:o,notificationCount:n,iconSize:a})=>{let s=e&&cloneElement(e,{active:t,size:a??32,color:t?d$4.black:d$4.grey400});return jsx(Badge,{count:n||o,offset:o?[5,0]:[-30,2],color:d$4.green600,dot:r,size:o?"small":"default",children:s})},il=({isOpen:e=false,hideExpandIcon:t=false})=>!t&&jsx(St,{isActive:e,color:d$4.grey400}),En=({items:e,mode:t,...r})=>jsx(a$A,{...r,mode:t,expandIcon:t==="inline"?il:null,items:e}),Ct=({icon:e=void 0,label:t,key:r="",active:o=false,...n})=>{let[a,s]=useState(false),
|
|
196
|
+
`,ji=({searchValue:e="",displaySmall:t=false,iconPosition:r="suffix",iconColor:o="#101010",containerStyle:n={},...a})=>jsx(Zi,{displaySmall:t,searchValue:e,style:n,children:jsx(Input,{placeholder:"Search",allowClear:true,suffix:r==="suffix"?jsx(a$2.Search,{color:o}):void 0,prefix:r==="prefix"?jsx(a$2.Search,{color:o}):void 0,style:{maxWidth:"290px",padding:"12px"},...a})});function St({isActive:e,color:t="#000"}){let r=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...r,display:"flex",alignItems:"center"},children:jsx(a$2.Caret,{direction:"up",color:t})})}var sl=e=>window.location.pathname===e,kn=({icon:e,active:t,useDot:r,ribbonText:o,notificationCount:n,iconSize:a})=>{let s=e&&cloneElement(e,{active:t,size:a??32,color:t?d$4.black:d$4.grey400});return jsx(Badge,{count:n||o,offset:o?[5,0]:[-30,2],color:d$4.green600,dot:r,size:o?"small":"default",children:s})},il=({isOpen:e=false,hideExpandIcon:t=false})=>!t&&jsx(St,{isActive:e,color:d$4.grey400}),En=({items:e,mode:t,...r})=>jsx(a$A,{...r,mode:t,expandIcon:t==="inline"?il:null,items:e}),Ct=({icon:e=void 0,label:t,key:r="",active:o=false,...n})=>{let[a,s]=useState(false),i=sl(String(r))||a||o;return jsx(b$c,{title:t,...n,active:o,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:jsxs(Flex,{gap:"0.5rem",align:"center",children:[jsx(kn,{icon:e,active:i,...n}),jsx("span",{children:t})]})})},Rn=e=>jsx(Menu.Divider,{...e}),In=({icon:e,active:t=false,children:r,...o})=>{let[n,a]=useState(false);return jsx("div",{onMouseEnter:()=>a(true),onMouseLeave:()=>a(false),children:jsx(c$8,{icon:jsx(kn,{icon:e,active:n||t,...o,iconSize:32}),...o,children:r})})},ll=({items:e,...t})=>jsx(En,{...t,children:e.map(r=>r?r.type==="divider"?jsx(Rn,{},r.key):r.items?createElement(In,{...r,key:r.key,title:r.label},r.items?.map(o=>jsx(Ct,{...o,iconSize:25}))):createElement(Ct,{...r,key:r.key}):null)}),pl={Container:En,MenuDivider:Rn,MenuItem:Ct,SubMenuContainer:In,NavigationMenuMain:ll};var ul=({value:e,onChange:t})=>{let r=o=>{t(o==="next"?e.add(1,"month"):e.subtract(1,"month"));};return jsxs(a$n,{justify:"space-between",align:"center",style:{marginBottom:".5rem"},children:[jsx(a$M,{onClick:()=>r("prev"),children:jsx(a$2.Caret,{direction:"left",color:"#285E50"})}),jsxs(a$1.Header,{color:"var(--green-900, #1D4339)",children:[e.toDate().toLocaleString("en",{month:"long"})," ",e.year()]}),jsx(a$M,{onClick:()=>r("next"),children:jsx(a$2.Caret,{direction:"right",color:"#285E50"})})]})};function Dn(e){return jsx(b$d,{fullscreen:false,...e,headerRender:ul})}var Mn=({handleClose:e,reset:t,submit:r,submitDisabled:o,header:n=void 0,children:a})=>jsxs(a$B,{vertical:true,gap:"var(--spacing-lg, 1rem)",children:[jsxs(a$n,{justify:n?"space-between":"flex-end",children:[n&&jsx(a$1.Body,{bold:true,size:"lg",children:n}),jsx(a$n,{children:jsx(f.Unstyled,{onClick:e,children:jsx(a$2.Close,{isThin:true,color:"#000000",size:24})})})]}),a,jsx(a$n,{justify:"flex-end",children:jsxs(a$n,{align:"center",gap:"var(--spacing-md, 0.75rem)",children:[jsx(b$e,{onClick:t,children:"Reset Filters"}),jsx(c$9,{disabled:o,onClick:()=>{r(),e();},children:"See Results"})]})})]});var fl=({filtersApplied:e,onSubmit:t,onReset:r,submitDisabled:o=false,header:n=void 0,...a})=>{let{children:s,placement:i,trigger:p="click"}=a,[l,d]=useState(false);return jsx(a$C,{trigger:p,placement:i,open:l,onOpenChange:u=>d(u),overlayInnerStyle:{padding:"var(--spacing-xl, 1.5rem)"},content:jsx(Mn,{submit:t,submitDisabled:o,handleClose:()=>d(false),reset:r,header:n,children:s}),...a,children:jsx(a$D,{isFilterApplied:e,children:jsx(a$2.Filter,{})})})};var Ln=Fn(Card)`
|
|
197
197
|
margin: 0;
|
|
198
198
|
width: 100%;
|
|
199
199
|
border: none;
|
|
@@ -203,9 +203,9 @@ import {a as a$B,b as b$e,c as c$9}from'./chunk-ULNBCBSF.js';import {a as a$D}fr
|
|
|
203
203
|
background: var(--opal-greens-lily-white, #e9f0ee);
|
|
204
204
|
border-radius: var(--borders-border-3, 10px);
|
|
205
205
|
padding: 10px;
|
|
206
|
-
`,bl=({children:e,...t})=>jsx(Ln,{...t,children:e}),hl=({illustration:e,children:t,active:r=false,selected:o=false,onClick:n=()=>null,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,backgroundColor:
|
|
206
|
+
`,bl=({children:e,...t})=>jsx(Ln,{...t,children:e}),hl=({illustration:e,children:t,active:r=false,selected:o=false,onClick:n=()=>null,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,backgroundColor:i=null})=>{let p=a$E[e];return jsxs(a$F,{selected:o,onClick:n,onMouseEnter:a,onMouseLeave:s,backgroundColor:i,children:[jsx(p,{active:r}),t]})},Sl=Fn(e=>jsx(Ln,{...e,style:{padding:0},children:jsxs(Flex,{align:"center",gap:".6rem",children:[jsx("div",{style:{minWidth:"3rem"},children:jsx(a$2.LightBulb,{})}),jsx(a$1.Body,{children:e.children})]})}))`
|
|
207
207
|
.ant-card-body {
|
|
208
208
|
padding: 1rem;
|
|
209
209
|
}
|
|
210
|
-
`,nt={Primary:bl,Illustration:hl,SolaceTip:Sl};export{Ki as $,qo as A,Go as B,Ko as C,Yo as D,Zo as E,tn as F,De as G,pt as H,an as I,si as J,sn as K,ie as T,it as U,Ii as V,Oi as W,yt as X,Fi as Y,Ti as Z,ht as _,bl as a,ji as aa,hl as b,St as ba,Sl as c,pl as ca,nt as d,Dn as da,go as e,Mn as ea,P as f,fl as fa,v as g,oe as h,xe as i,So as j,pa as k,Co as l,xo as m,ve as n,wo as o,Ca as p,Eo as q,Pe as r,Ro as s,Io as t,Oo as u,Do as v,To as w,Vo as x,$o as y,zo as z};//# sourceMappingURL=chunk-
|
|
211
|
-
//# sourceMappingURL=chunk-
|
|
210
|
+
`,nt={Primary:bl,Illustration:hl,SolaceTip:Sl};export{Ki as $,qo as A,Go as B,Ko as C,Yo as D,Zo as E,tn as F,De as G,pt as H,an as I,si as J,sn as K,ie as T,it as U,Ii as V,Oi as W,yt as X,Fi as Y,Ti as Z,ht as _,bl as a,ji as aa,hl as b,St as ba,Sl as c,pl as ca,nt as d,Dn as da,go as e,Mn as ea,P as f,fl as fa,v as g,oe as h,xe as i,So as j,pa as k,Co as l,xo as m,ve as n,wo as o,Ca as p,Eo as q,Pe as r,Ro as s,Io as t,Oo as u,Do as v,To as w,Vo as x,$o as y,zo as z};//# sourceMappingURL=chunk-5EUQE37Q.js.map
|
|
211
|
+
//# sourceMappingURL=chunk-5EUQE37Q.js.map
|