@solace-health/ui 0.10.712 → 0.10.714
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/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/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/DateDropdown/index.cjs +1 -1
- package/dist/Form/DateDropdown/index.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/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/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/Select/index.cjs +1 -1
- package/dist/Form/Select/index.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/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/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/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/IconSelector/IconSelector.cjs +1 -1
- package/dist/IconSelector/IconSelector.js +1 -1
- package/dist/Illustration/index.cjs +1 -1
- package/dist/Illustration/index.js +1 -1
- package/dist/Input/Mask/index.cjs +1 -1
- package/dist/Input/Mask/index.js +1 -1
- package/dist/Input/index.cjs +1 -1
- package/dist/Input/index.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/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/PreviewDrawer/PreviewDrawer.cjs +1 -1
- package/dist/PreviewDrawer/PreviewDrawer.js +1 -1
- package/dist/Search/index.cjs +1 -1
- package/dist/Search/index.js +1 -1
- package/dist/SelectClient/index.cjs +1 -1
- package/dist/SelectClient/index.js +1 -1
- package/dist/SentimentSelector/index.cjs +1 -1
- package/dist/SentimentSelector/index.js +1 -1
- package/dist/TimeSelect/styles.cjs +4 -4
- package/dist/TimeSelect/styles.js +1 -1
- package/dist/chunk-2I6C77OW.js +2 -0
- package/dist/{chunk-4NKACID5.js.map → chunk-2I6C77OW.js.map} +1 -1
- package/dist/chunk-3IPF73WH.js +2 -0
- package/dist/chunk-3IPF73WH.js.map +1 -0
- package/dist/chunk-BAH6YD44.cjs +2 -0
- package/dist/{chunk-Y5JXMGN6.cjs.map → chunk-BAH6YD44.cjs.map} +1 -1
- package/dist/{chunk-SHVXPC4U.js → chunk-BILSVYNQ.js} +3 -3
- package/dist/{chunk-SHVXPC4U.js.map → chunk-BILSVYNQ.js.map} +1 -1
- package/dist/chunk-CSQAICOD.cjs +2 -0
- package/dist/chunk-CSQAICOD.cjs.map +1 -0
- package/dist/{chunk-L6PIFK7A.js → chunk-G5G7LYK3.js} +2 -2
- package/dist/{chunk-L6PIFK7A.js.map → chunk-G5G7LYK3.js.map} +1 -1
- package/dist/chunk-U7BJ3NHK.js +2 -0
- package/dist/{chunk-HMLC4WBV.js.map → chunk-U7BJ3NHK.js.map} +1 -1
- package/dist/chunk-VGX6TTRK.cjs +2 -0
- package/dist/{chunk-XE6CF6SQ.cjs.map → chunk-VGX6TTRK.cjs.map} +1 -1
- package/dist/{chunk-RKTSCW5X.cjs → chunk-VKKJQ3G5.cjs} +5 -5
- package/dist/{chunk-RKTSCW5X.cjs.map → chunk-VKKJQ3G5.cjs.map} +1 -1
- package/dist/{chunk-S7P3YEK4.cjs → chunk-YZH53VFW.cjs} +2 -2
- package/dist/{chunk-S7P3YEK4.cjs.map → chunk-YZH53VFW.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/address-input/address-input.cjs +1 -1
- package/dist/v2/address-input/address-input.js +1 -1
- package/dist/v2/date-picker/date-picker-input.cjs +1 -1
- package/dist/v2/date-picker/date-picker-input.js +1 -1
- package/dist/v2/date-picker/date-picker.cjs +1 -1
- package/dist/v2/date-picker/date-picker.js +1 -1
- package/dist/v2/image-preview/image-preview.cjs +1 -1
- package/dist/v2/image-preview/image-preview.js +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/time-input/time-input.cjs +1 -1
- package/dist/v2/time-input/time-input.js +1 -1
- package/dist/v2/time-select/time-select.cjs +1 -1
- package/dist/v2/time-select/time-select.js +1 -1
- package/dist/v2/verified-advocate/verified-advocate.cjs +1 -1
- package/dist/v2/verified-advocate/verified-advocate.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-2USGDLDW.js +0 -2
- package/dist/chunk-2USGDLDW.js.map +0 -1
- package/dist/chunk-4NKACID5.js +0 -2
- package/dist/chunk-6T7SNM2F.cjs +0 -2
- package/dist/chunk-6T7SNM2F.cjs.map +0 -1
- package/dist/chunk-HMLC4WBV.js +0 -2
- package/dist/chunk-XE6CF6SQ.cjs +0 -2
- package/dist/chunk-Y5JXMGN6.cjs +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk2DLCWPKO_cjs=require('./chunk-2DLCWPKO.cjs'),chunkODAOIGPB_cjs=require('./chunk-ODAOIGPB.cjs'),chunkQRO22BPZ_cjs=require('./chunk-QRO22BPZ.cjs'),react=require('react'),O=require('dayjs'),_=require('dayjs/plugin/customParseFormat.js'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var O__default=/*#__PURE__*/_interopDefault(O);var ___default=/*#__PURE__*/_interopDefault(_);O__default.default.extend(___default.default);var H=15,$="h:mm A",F=/^(\d{1,2})(?::?(\d{2}))?\s*(?:([ap])\.?m?\.?)?$/,f=(o,r)=>`${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`,I=o=>O__default.default(o,"HH:mm").format($),B=(o,r)=>{let e=F.exec(o.trim().toLowerCase());if(!e)return null;let n=Number(e[1]),i=Number(e[2]??0),s=e[3];if(i>59)return null;if(s)return n<1||n>12?null:f(n%12+(s==="p"?12:0),i);if(n>23)return null;if(n===0||n>=12)return f(n,i);let u=!!r&&O__default.default(r,"HH:mm").hour()>=12;return f(n%12+(u?12:0),i)},c=Array.from({length:1440/H+1},(o,r)=>{let e=r*H;return f(Math.floor(e/60),e%60)}),V=o=>c.findLast(r=>r<=o)??c[0],G=({id:o,placeholder:r,value:e,onChange:n})=>{let[i,s]=react.useState(false),[u,m]=react.useState(null),[l,g]=react.useState(),h=react.useId(),v=react.useRef(null),x=react.useRef(null),T=l??(e?V(e):void 0),w=t=>`${h}-${t}`;react.useEffect(()=>{i&&x.current?.scrollIntoView?.({block:"center"});},[i]),react.useEffect(()=>{l&&x.current?.scrollIntoView?.({block:"nearest"});},[l]);let b=()=>{m(null),g(void 0),s(false);},y=t=>{t!==e&&n(t),b();},A=()=>{if(l)return y(l);let t=u===null?null:B(u,e);t&&t!==e&&n(t),b();},R=t=>{let p=T?c.indexOf(T):-1,d=c[Math.min(Math.max(p+t,0),c.length-1)];s(true),g(d),m(I(d));};return jsxRuntime.jsxs(chunkODAOIGPB_cjs.a,{open:i,children:[jsxRuntime.jsx(chunkODAOIGPB_cjs.d,{children:jsxRuntime.jsx("div",{ref:v,children:jsxRuntime.jsx(chunk2DLCWPKO_cjs.b,{id:o,type:"text",autoComplete:"off",role:"combobox","aria-expanded":i,"aria-controls":h,"aria-autocomplete":"list","aria-activedescendant":i&&l?w(l):void 0,placeholder:r,value:u??(e?I(e):""),onFocus:t=>{t.target.select(),s(true);},onClick:()=>s(true),onChange:t=>{m(t.target.value),g(void 0);},onBlur:A,onKeyDown:t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),R(t.key==="ArrowDown"?1:-1)),t.key==="Enter"&&(t.preventDefault(),A()),t.key==="Escape"&&b();}})})}),jsxRuntime.jsx(chunkODAOIGPB_cjs.c,{className:"max-h-90 w-(--radix-popover-trigger-width) overflow-y-auto p-1",align:"start",onOpenAutoFocus:t=>t.preventDefault(),onWheel:t=>t.stopPropagation(),onTouchMove:t=>t.stopPropagation(),onInteractOutside:t=>{v.current?.contains(t.target)?t.preventDefault():s(false);},children:jsxRuntime.jsx("div",{id:h,role:"listbox",className:"flex flex-col",children:c.map(t=>{let p=t===T;return jsxRuntime.jsx("button",{ref:p?x:void 0,id:w(t),type:"button",role:"option","aria-selected":t===e,tabIndex:-1,className:chunkQRO22BPZ_cjs.a("text-body-md h-10 shrink-0 rounded-sm px-3 text-left hover:bg-green-100",p&&"bg-green-100"),onPointerDown:d=>d.preventDefault(),onClick:()=>y(t),children:I(t)},t)})})})]})};exports.a=I;exports.b=B;exports.c=G;//# sourceMappingURL=chunk-CSQAICOD.cjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-CSQAICOD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/v2/time-input/time-input.tsx"],"names":["dayjs","customParseFormat","OPTION_INTERVAL_MINUTES","DISPLAY_FORMAT","TYPED_TIME_PATTERN","toRaw","hour","minute","formatTime","raw","parseTypedTime","text","current","match","meridiem","isCurrentPm","OPTIONS","_","index","minutes","nearestOptionAtOrBefore","value","option","TimeInput","id","placeholder","onChange","open","setOpen","useState","draft","setDraft","activeOption","setActiveOption","listboxId","useId","wrapperRef","useRef","highlightedOptionRef","highlightedOption","optionId","useEffect","close","selectOption","commit","parsed","moveActiveOption","step","next","jsxs","Popover","jsx","PopoverAnchor","Input","event","PopoverContent","isHighlighted","cn"],"mappings":"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","file":"chunk-CSQAICOD.cjs","sourcesContent":["import { useEffect, useId, useRef, useState } from 'react';\nimport dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js';\nimport { Input } from '../input/input';\nimport { Popover, PopoverAnchor, PopoverContent } from '../popover/popover';\nimport { cn } from '@/lib/utils';\n\ndayjs.extend(customParseFormat);\n\nconst OPTION_INTERVAL_MINUTES = 15;\nconst DISPLAY_FORMAT = 'h:mm A';\n\n/** \"1:33pm\", \"1:33 PM\", \"133p\", \"13:33\", \"1330\", \"1pm\", \"1\" */\nconst TYPED_TIME_PATTERN = /^(\\d{1,2})(?::?(\\d{2}))?\\s*(?:([ap])\\.?m?\\.?)?$/;\n\nconst toRaw = (hour: number, minute: number) =>\n `${String(hour).padStart(2, '0')}:${String(minute).padStart(2, '0')}`;\n\nexport const formatTime = (raw: string) => dayjs(raw, 'HH:mm').format(DISPLAY_FORMAT);\n\n/**\n * Parses typed text into an \"HH:mm\" value, or null when it isn't a time.\n * Without am/pm, hours 1-11 keep the meridiem of `current` so \"4:15\" next to \"3:00 PM\"\n * stays in the afternoon. Hours 0 and 12-23 read as a 24-hour clock.\n */\nexport const parseTypedTime = (text: string, current?: string): string | null => {\n const match = TYPED_TIME_PATTERN.exec(text.trim().toLowerCase());\n if (!match) return null;\n\n const hour = Number(match[1]);\n const minute = Number(match[2] ?? 0);\n const meridiem = match[3];\n if (minute > 59) return null;\n\n // With am/pm, e.g. \"1:30pm\" or \"11a\"\n if (meridiem) {\n if (hour < 1 || hour > 12) return null;\n return toRaw((hour % 12) + (meridiem === 'p' ? 12 : 0), minute);\n }\n\n if (hour > 23) return null;\n\n // Without am/pm, and the hour is unambiguous: 0 (midnight), 12 (noon), or 13-23\n if (hour === 0 || hour >= 12) return toRaw(hour, minute);\n\n // Without am/pm, and the hour is 1-11: use am/pm from the current value\n const isCurrentPm = !!current && dayjs(current, 'HH:mm').hour() >= 12;\n return toRaw((hour % 12) + (isCurrentPm ? 12 : 0), minute);\n};\n\n// Ends with \"24:00\" so an event can run until midnight, same as the TimeSelect this replaced\nconst OPTIONS = Array.from({ length: (24 * 60) / OPTION_INTERVAL_MINUTES + 1 }, (_, index) => {\n const minutes = index * OPTION_INTERVAL_MINUTES;\n return toRaw(Math.floor(minutes / 60), minutes % 60);\n});\n\n/** The option at or just before `value`, so an off-interval time opens the list near itself */\nconst nearestOptionAtOrBefore = (value: string) =>\n OPTIONS.findLast((option) => option <= value) ?? OPTIONS[0];\n\ntype TimeInputProps = {\n id?: string;\n placeholder?: string;\n /** \"HH:mm\" */\n value?: string;\n onChange: (value: string) => void;\n};\n\n/**\n * A typeable time field with a dropdown of 15-minute suggestions, modeled on Google Calendar.\n * Any minute can be typed; the text is parsed on blur or Enter and reverts when it isn't a time.\n * Arrow keys move through the suggestions, and Enter or blur picks the one they land on.\n */\nexport const TimeInput = ({ id, placeholder, value, onChange }: TimeInputProps) => {\n const [open, setOpen] = useState(false);\n // null while not editing, so the field always shows the committed value\n const [draft, setDraft] = useState<string | null>(null);\n // The option reached with the arrow keys, undefined until one is pressed\n const [activeOption, setActiveOption] = useState<string>();\n const listboxId = useId();\n const wrapperRef = useRef<HTMLDivElement>(null);\n const highlightedOptionRef = useRef<HTMLButtonElement>(null);\n\n const highlightedOption = activeOption ?? (value ? nearestOptionAtOrBefore(value) : undefined);\n const optionId = (option: string) => `${listboxId}-${option}`;\n\n useEffect(() => {\n if (open) highlightedOptionRef.current?.scrollIntoView?.({ block: 'center' });\n }, [open]);\n\n useEffect(() => {\n if (activeOption) highlightedOptionRef.current?.scrollIntoView?.({ block: 'nearest' });\n }, [activeOption]);\n\n const close = () => {\n setDraft(null);\n setActiveOption(undefined);\n setOpen(false);\n };\n\n const selectOption = (option: string) => {\n if (option !== value) onChange(option);\n close();\n };\n\n // Picks the arrowed-to option as is, since \"24:00\" reads back from its text as midnight at the start of the day\n const commit = () => {\n if (activeOption) return selectOption(activeOption);\n const parsed = draft === null ? null : parseTypedTime(draft, value);\n if (parsed && parsed !== value) onChange(parsed);\n close();\n return undefined;\n };\n\n const moveActiveOption = (step: 1 | -1) => {\n const index = highlightedOption ? OPTIONS.indexOf(highlightedOption) : -1;\n const next = OPTIONS[Math.min(Math.max(index + step, 0), OPTIONS.length - 1)];\n setOpen(true);\n setActiveOption(next);\n setDraft(formatTime(next));\n };\n\n return (\n <Popover open={open}>\n <PopoverAnchor>\n <div ref={wrapperRef}>\n <Input\n id={id}\n type=\"text\"\n autoComplete=\"off\"\n role=\"combobox\"\n aria-expanded={open}\n aria-controls={listboxId}\n aria-autocomplete=\"list\"\n aria-activedescendant={open && activeOption ? optionId(activeOption) : undefined}\n placeholder={placeholder}\n value={draft ?? (value ? formatTime(value) : '')}\n onFocus={(event) => {\n event.target.select();\n setOpen(true);\n }}\n onClick={() => setOpen(true)}\n onChange={(event) => {\n setDraft(event.target.value);\n setActiveOption(undefined);\n }}\n onBlur={commit}\n onKeyDown={(event) => {\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault();\n moveActiveOption(event.key === 'ArrowDown' ? 1 : -1);\n }\n if (event.key === 'Enter') {\n event.preventDefault();\n commit();\n }\n if (event.key === 'Escape') close();\n }}\n />\n </div>\n </PopoverAnchor>\n <PopoverContent\n className=\"max-h-90 w-(--radix-popover-trigger-width) overflow-y-auto p-1\"\n align=\"start\"\n onOpenAutoFocus={(event) => event.preventDefault()}\n // The dialog's scroll lock cancels wheel/touch scrolling outside it, and this list is portaled out\n onWheel={(event) => event.stopPropagation()}\n onTouchMove={(event) => event.stopPropagation()}\n onInteractOutside={(event) => {\n if (wrapperRef.current?.contains(event.target as Node)) event.preventDefault();\n else setOpen(false);\n }}\n >\n <div id={listboxId} role=\"listbox\" className=\"flex flex-col\">\n {OPTIONS.map((option) => {\n const isHighlighted = option === highlightedOption;\n return (\n <button\n key={option}\n ref={isHighlighted ? highlightedOptionRef : undefined}\n id={optionId(option)}\n type=\"button\"\n role=\"option\"\n aria-selected={option === value}\n tabIndex={-1}\n className={cn(\n 'text-body-md h-10 shrink-0 rounded-sm px-3 text-left hover:bg-green-100',\n isHighlighted && 'bg-green-100',\n )}\n // Keeps focus in the input so its blur doesn't commit a stale draft first\n onPointerDown={(event) => event.preventDefault()}\n onClick={() => selectOption(option)}\n >\n {formatTime(option)}\n </button>\n );\n })}\n </div>\n </PopoverContent>\n </Popover>\n );\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {b
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import {b,a,d,c}from'./chunk-KJ7WKKNI.js';import {b as b$1,a as a$1}from'./chunk-RGT3EDAB.js';import {useState,useMemo}from'react';import {jsxs,jsx}from'react/jsx-runtime';var h=({previewOnly:c$1=false,format:e,onAccept:d$1=void 0,...a$2})=>{let[s,l]=useState(false),k=a$2?.status==="error",t=["SSN"].some(y=>y===e),f=useMemo(()=>{switch(e){case "phone":return "(000) 000-0000";case "MBI":return "****-***-****";case "date":return "00/00/0000";case "email":return /^\S*@?\S*$/;case "SSN":return [{mask:s?"000-00-0000":"XXX-XX-XXXX",definitions:{X:{mask:"0",displayChar:"\u25CF"}},lazy:true,overwrite:"shift"}];case "SSN":return "00000";case "currency":return [{mask:"$num",lazy:false,blocks:{num:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:true,radix:".",mapToRadix:["."]}}}];default:return e}},[e,s]);return jsxs(b,{children:[jsx(a,{format:e,mask:f,unmask:true,onAccept:d$1,disabled:c$1,error:k,...a$2}),!t&&jsx(d,{children:a$2.suffix}),t&&jsx(c,{onClick:()=>l(!s),children:s?jsx(b$1,{}):jsx(a$1,{})})]})},C=h;export{C as a};//# sourceMappingURL=chunk-G5G7LYK3.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-G5G7LYK3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Input/Mask/index.tsx"],"names":["Mask","previewOnly","format","onAccept","inputProps","showDigits","setShowDigits","useState","hasError","isHidden","maskName","mask","useMemo","jsxs","MaskWrap","jsx","StyledMaskedInput","SuffixContainer","RevealToggle","OpenEye","ClosedEye","Mask_default"],"mappings":"4KAaA,IAAMA,CAAAA,CAAO,CAAC,CAAE,WAAA,CAAAC,IAAc,KAAA,CAAO,MAAA,CAAAC,EAAQ,QAAA,CAAAC,GAAAA,CAAW,OAAW,GAAGC,GAAW,IAAiB,CAChG,GAAM,CAACC,CAAAA,CAAYC,CAAa,EAAIC,QAAAA,CAAS,KAAK,EAE5CC,CAAAA,CAAWJ,GAAAA,EAAY,SAAW,OAAA,CAElCK,CAAAA,CADmB,MAAe,CAAA,CACN,IAAA,CAAMC,GAAaA,CAAAA,GAAaR,CAAM,EAElES,CAAAA,CAAOC,OAAAA,CAAQ,IAAM,CACzB,OAAQV,GACN,KAAA,OAAA,CACE,OAAO,gBAAA,CACT,KAAA,KAAA,CACE,OAAO,eAAA,CACT,KAAA,MAAA,CACE,OAAO,YAAA,CACT,KAAA,OAAA,CACE,OAAO,YAAA,CACT,KAAA,KAAA,CACE,OAAO,CACL,CACE,KAAMG,CAAAA,CAAa,aAAA,CAAgB,cACnC,WAAA,CAAa,CACX,EAAG,CACD,IAAA,CAAM,IACN,WAAA,CAAa,QACf,CACF,CAAA,CACA,IAAA,CAAM,KACN,SAAA,CAAW,OACb,CACF,CAAA,CACF,KAAA,KAAA,CACE,OAAO,OAAA,CACT,KAAA,UAAA,CACE,OAAO,CACL,CACE,KAAM,MAAA,CACN,IAAA,CAAM,MACN,MAAA,CAAQ,CACN,IAAK,CACH,IAAA,CAAM,OACN,KAAA,CAAO,CAAA,CACP,mBAAoB,GAAA,CACpB,kBAAA,CAAoB,KACpB,KAAA,CAAO,GAAA,CACP,WAAY,CAAC,GAAG,CAClB,CACF,CACF,CACF,CAAA,CACF,QACE,OAAOH,CACX,CACF,EAAG,CAACA,CAAAA,CAAQG,CAAU,CAAC,CAAA,CACvB,OACEQ,IAAAA,CAACC,CAAAA,CAAA,CACC,QAAA,CAAA,CAAAC,GAAAA,CAACC,EAAA,CAEC,MAAA,CAAQd,EAER,IAAA,CAAMS,CAAAA,CACN,OAAM,IAAA,CACN,QAAA,CAAUR,IACV,QAAA,CAAUF,GAAAA,CACV,MAAOO,CAAAA,CACN,GAAGJ,IACN,CAAA,CACC,CAACK,GAAYM,GAAAA,CAACE,CAAAA,CAAA,CAAiB,QAAA,CAAAb,GAAAA,CAAW,OAAO,CAAA,CACjDK,CAAAA,EACCM,IAACG,CAAAA,CAAA,CAAa,QAAS,IAAMZ,CAAAA,CAAc,CAACD,CAAU,CAAA,CACnD,SAAAA,CAAAA,CAAaU,GAAAA,CAACI,IAAA,EAAQ,CAAA,CAAKJ,IAACK,GAAAA,CAAA,EAAU,EACzC,CAAA,CAAA,CAEJ,CAEJ,EACOC,CAAAA,CAAQrB","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/Input/Mask/index.tsx"],"names":["Mask","previewOnly","format","onAccept","inputProps","showDigits","setShowDigits","useState","hasError","isHidden","maskName","mask","useMemo","jsxs","MaskWrap","jsx","StyledMaskedInput","SuffixContainer","RevealToggle","OpenEye","ClosedEye","Mask_default"],"mappings":"4KAaA,IAAMA,CAAAA,CAAO,CAAC,CAAE,WAAA,CAAAC,IAAc,KAAA,CAAO,MAAA,CAAAC,EAAQ,QAAA,CAAAC,GAAAA,CAAW,OAAW,GAAGC,GAAW,IAAiB,CAChG,GAAM,CAACC,CAAAA,CAAYC,CAAa,EAAIC,QAAAA,CAAS,KAAK,EAE5CC,CAAAA,CAAWJ,GAAAA,EAAY,SAAW,OAAA,CAElCK,CAAAA,CADmB,MAAe,CAAA,CACN,IAAA,CAAMC,GAAaA,CAAAA,GAAaR,CAAM,EAElES,CAAAA,CAAOC,OAAAA,CAAQ,IAAM,CACzB,OAAQV,GACN,KAAA,OAAA,CACE,OAAO,gBAAA,CACT,KAAA,KAAA,CACE,OAAO,eAAA,CACT,KAAA,MAAA,CACE,OAAO,YAAA,CACT,KAAA,OAAA,CACE,OAAO,YAAA,CACT,KAAA,KAAA,CACE,OAAO,CACL,CACE,KAAMG,CAAAA,CAAa,aAAA,CAAgB,cACnC,WAAA,CAAa,CACX,EAAG,CACD,IAAA,CAAM,IACN,WAAA,CAAa,QACf,CACF,CAAA,CACA,IAAA,CAAM,KACN,SAAA,CAAW,OACb,CACF,CAAA,CACF,KAAA,KAAA,CACE,OAAO,OAAA,CACT,KAAA,UAAA,CACE,OAAO,CACL,CACE,KAAM,MAAA,CACN,IAAA,CAAM,MACN,MAAA,CAAQ,CACN,IAAK,CACH,IAAA,CAAM,OACN,KAAA,CAAO,CAAA,CACP,mBAAoB,GAAA,CACpB,kBAAA,CAAoB,KACpB,KAAA,CAAO,GAAA,CACP,WAAY,CAAC,GAAG,CAClB,CACF,CACF,CACF,CAAA,CACF,QACE,OAAOH,CACX,CACF,EAAG,CAACA,CAAAA,CAAQG,CAAU,CAAC,CAAA,CACvB,OACEQ,IAAAA,CAACC,CAAAA,CAAA,CACC,QAAA,CAAA,CAAAC,GAAAA,CAACC,EAAA,CAEC,MAAA,CAAQd,EAER,IAAA,CAAMS,CAAAA,CACN,OAAM,IAAA,CACN,QAAA,CAAUR,IACV,QAAA,CAAUF,GAAAA,CACV,MAAOO,CAAAA,CACN,GAAGJ,IACN,CAAA,CACC,CAACK,GAAYM,GAAAA,CAACE,CAAAA,CAAA,CAAiB,QAAA,CAAAb,GAAAA,CAAW,OAAO,CAAA,CACjDK,CAAAA,EACCM,IAACG,CAAAA,CAAA,CAAa,QAAS,IAAMZ,CAAAA,CAAc,CAACD,CAAU,CAAA,CACnD,SAAAA,CAAAA,CAAaU,GAAAA,CAACI,IAAA,EAAQ,CAAA,CAAKJ,IAACK,GAAAA,CAAA,EAAU,EACzC,CAAA,CAAA,CAEJ,CAEJ,EACOC,CAAAA,CAAQrB","file":"chunk-G5G7LYK3.js","sourcesContent":["import { InputProps } from 'antd';\nimport { useMemo, useState } from 'react';\nimport { FormatType } from '../../Form/types';\nimport { SuffixContainer, MaskWrap, RevealToggle, StyledMaskedInput } from './style';\nimport { ClosedEye, OpenEye } from '../shared/icons';\n\ntype MaskProps = {\n previewOnly?: boolean;\n format: FormatType | string;\n onAccept?: (value: string) => void;\n} & InputProps;\n\n/** @deprecated Use the Input component from @solace-health/ui/v2 instead. */\nconst Mask = ({ previewOnly = false, format, onAccept = undefined, ...inputProps }: MaskProps) => {\n const [showDigits, setShowDigits] = useState(false);\n\n const hasError = inputProps?.status === 'error';\n const hiddenDigitMasks = [FormatType.SSN];\n const isHidden = hiddenDigitMasks.some((maskName) => maskName === format);\n\n const mask = useMemo(() => {\n switch (format) {\n case FormatType.Phone:\n return '(000) 000-0000';\n case FormatType.MBI:\n return '****-***-****';\n case FormatType.Date:\n return '00/00/0000';\n case FormatType.Email:\n return /^\\S*@?\\S*$/;\n case FormatType.SSN:\n return [\n {\n mask: showDigits ? '000-00-0000' : 'XXX-XX-XXXX',\n definitions: {\n X: {\n mask: '0',\n displayChar: '●',\n },\n },\n lazy: true,\n overwrite: 'shift',\n },\n ];\n case FormatType.Zip:\n return '00000';\n case FormatType.Currency:\n return [\n {\n mask: '$num',\n lazy: false,\n blocks: {\n num: {\n mask: Number,\n scale: 2,\n thousandsSeparator: ',',\n padFractionalZeros: true,\n radix: '.',\n mapToRadix: ['.'],\n },\n },\n },\n ];\n default:\n return format;\n }\n }, [format, showDigits]);\n return (\n <MaskWrap>\n <StyledMaskedInput\n // @ts-expect-error weird mask type error\n format={format}\n // @ts-expect-error weird mask type error\n mask={mask}\n unmask\n onAccept={onAccept}\n disabled={previewOnly}\n error={hasError}\n {...inputProps}\n />\n {!isHidden && <SuffixContainer>{inputProps.suffix}</SuffixContainer>}\n {isHidden && (\n <RevealToggle onClick={() => setShowDigits(!showDigits)}>\n {showDigits ? <OpenEye /> : <ClosedEye />}\n </RevealToggle>\n )}\n </MaskWrap>\n );\n};\nexport default Mask;\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-G5G7LYK3.js';import {a as a$3}from'./chunk-MLDQANAB.js';import {a}from'./chunk-C3SA4MJM.js';import {a as a$2}from'./chunk-HREIJD67.js';import {a as a$4}from'./chunk-6GY72LGS.js';import {a as a$5}from'./chunk-3D5X7YGI.js';var x={Area:a$5,Text:a$4,Number:a$3,Password:a$2,Mask:a$1,OTP:a};export{x as a};//# sourceMappingURL=chunk-U7BJ3NHK.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-U7BJ3NHK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Input/index.ts"],"names":["Input_default","Area_default","Text_default","Number_default","Password_default","Mask_default","OTP_default"],"mappings":"2PAQA,IAAOA,CAAAA,CAAQ,CACb,IAAA,CAAAC,GAAAA,CACA,IAAA,CAAAC,GAAAA,CACA,MAAA,CAAAC,GAAAA,CACA,QAAA,CAAAC,GAAAA,CACA,IAAA,CAAAC,GAAAA,CACA,IAAAC,CACF","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/Input/index.ts"],"names":["Input_default","Area_default","Text_default","Number_default","Password_default","Mask_default","OTP_default"],"mappings":"2PAQA,IAAOA,CAAAA,CAAQ,CACb,IAAA,CAAAC,GAAAA,CACA,IAAA,CAAAC,GAAAA,CACA,MAAA,CAAAC,GAAAA,CACA,QAAA,CAAAC,GAAAA,CACA,IAAA,CAAAC,GAAAA,CACA,IAAAC,CACF","file":"chunk-U7BJ3NHK.js","sourcesContent":["import Area from './Area';\nimport Text from './Text';\nimport Number from './Number';\nimport Password from './Password';\nimport Mask from './Mask';\nimport OTP from './OTP';\n\n/** @deprecated Use the Input component from @solace-health/ui/v2 instead. */\nexport default {\n Area,\n Text,\n Number,\n Password,\n Mask,\n OTP,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkYX4VGU4Y_cjs=require('./chunk-YX4VGU4Y.cjs'),chunk6DJDPSMI_cjs=require('./chunk-6DJDPSMI.cjs'),chunkEILQNZDJ_cjs=require('./chunk-EILQNZDJ.cjs'),chunkMDMUD7WX_cjs=require('./chunk-MDMUD7WX.cjs'),chunk2EMBDGN4_cjs=require('./chunk-2EMBDGN4.cjs'),chunkECMIV3DJ_cjs=require('./chunk-ECMIV3DJ.cjs'),chunkPSTRTH7T_cjs=require('./chunk-PSTRTH7T.cjs'),chunkZQA4SM6V_cjs=require('./chunk-ZQA4SM6V.cjs'),chunkIVGN3KMC_cjs=require('./chunk-IVGN3KMC.cjs'),chunkS4YOIJMV_cjs=require('./chunk-S4YOIJMV.cjs'),chunkYJQAC7LF_cjs=require('./chunk-YJQAC7LF.cjs'),chunk4BVIZ7RO_cjs=require('./chunk-4BVIZ7RO.cjs'),chunkWS3BJN6R_cjs=require('./chunk-WS3BJN6R.cjs'),chunkNBR6THLZ_cjs=require('./chunk-NBR6THLZ.cjs'),chunk4POPWPOK_cjs=require('./chunk-4POPWPOK.cjs'),chunkXO23NFBF_cjs=require('./chunk-XO23NFBF.cjs'),chunkYRL27N6O_cjs=require('./chunk-YRL27N6O.cjs'),chunkJYXAHGOL_cjs=require('./chunk-JYXAHGOL.cjs'),chunkGU4CYWB6_cjs=require('./chunk-GU4CYWB6.cjs'),chunkJ7W3SC75_cjs=require('./chunk-J7W3SC75.cjs'),chunkOBBZWWXW_cjs=require('./chunk-OBBZWWXW.cjs'),chunkRLVDSB3B_cjs=require('./chunk-RLVDSB3B.cjs'),chunkO2QD27XN_cjs=require('./chunk-O2QD27XN.cjs'),chunkK56UVFOQ_cjs=require('./chunk-K56UVFOQ.cjs'),chunkX6Y5CEPX_cjs=require('./chunk-X6Y5CEPX.cjs'),chunk4DE5YLAU_cjs=require('./chunk-4DE5YLAU.cjs'),chunkHRY3FJMJ_cjs=require('./chunk-HRY3FJMJ.cjs'),chunkGOPDYVDV_cjs=require('./chunk-GOPDYVDV.cjs'),chunkAHHWPMPV_cjs=require('./chunk-AHHWPMPV.cjs'),chunkWOSXB3TE_cjs=require('./chunk-WOSXB3TE.cjs'),chunkWOK4IXJX_cjs=require('./chunk-WOK4IXJX.cjs'),chunk46DYESP5_cjs=require('./chunk-46DYESP5.cjs'),chunkS2NZEJ4F_cjs=require('./chunk-S2NZEJ4F.cjs'),chunk6ML22ZHZ_cjs=require('./chunk-6ML22ZHZ.cjs'),chunkHM2ELPDQ_cjs=require('./chunk-HM2ELPDQ.cjs'),chunkYP6BP4UV_cjs=require('./chunk-YP6BP4UV.cjs'),chunk2TI2XTUA_cjs=require('./chunk-2TI2XTUA.cjs'),chunkA342KJ5A_cjs=require('./chunk-A342KJ5A.cjs'),chunkZT47MHJ4_cjs=require('./chunk-ZT47MHJ4.cjs'),chunkCLNHINY2_cjs=require('./chunk-CLNHINY2.cjs'),chunkRCLZGBON_cjs=require('./chunk-RCLZGBON.cjs'),chunkOTAJBCRC_cjs=require('./chunk-OTAJBCRC.cjs'),chunkBYIBU7IA_cjs=require('./chunk-BYIBU7IA.cjs'),chunkNCITUPH3_cjs=require('./chunk-NCITUPH3.cjs'),chunkP26L4F5E_cjs=require('./chunk-P26L4F5E.cjs'),chunk4P3D457R_cjs=require('./chunk-4P3D457R.cjs'),chunkKK2LWINQ_cjs=require('./chunk-KK2LWINQ.cjs'),chunkTSO532LJ_cjs=require('./chunk-TSO532LJ.cjs'),chunkMLU7EKIN_cjs=require('./chunk-MLU7EKIN.cjs'),chunk5X7STTMZ_cjs=require('./chunk-5X7STTMZ.cjs'),chunkBTLZHDZQ_cjs=require('./chunk-BTLZHDZQ.cjs'),chunkPK4PMYLY_cjs=require('./chunk-PK4PMYLY.cjs'),chunkMYVYPFDD_cjs=require('./chunk-MYVYPFDD.cjs'),chunkYLUSTXS4_cjs=require('./chunk-YLUSTXS4.cjs'),chunkJBOZN3AA_cjs=require('./chunk-JBOZN3AA.cjs'),chunkLEHHYWDK_cjs=require('./chunk-LEHHYWDK.cjs'),chunkH5ULGTHX_cjs=require('./chunk-H5ULGTHX.cjs'),chunkMBBNGTC7_cjs=require('./chunk-MBBNGTC7.cjs'),chunkUW2CYVG2_cjs=require('./chunk-UW2CYVG2.cjs'),chunkDSOQGOSV_cjs=require('./chunk-DSOQGOSV.cjs'),chunk3QNRNR2K_cjs=require('./chunk-3QNRNR2K.cjs'),chunkMJ2LANT3_cjs=require('./chunk-MJ2LANT3.cjs'),chunkWH6WPZPG_cjs=require('./chunk-WH6WPZPG.cjs');var io={};chunkWH6WPZPG_cjs.b(io,{Bell:()=>chunkMJ2LANT3_cjs.a,Blob:()=>chunkYLUSTXS4_cjs.a,Books:()=>chunkJBOZN3AA_cjs.a,Calendar:()=>chunkLEHHYWDK_cjs.a,CareNote:()=>chunkH5ULGTHX_cjs.a,Caution:()=>chunkMBBNGTC7_cjs.a,Chart:()=>chunkUW2CYVG2_cjs.a,Clipboard:()=>chunkDSOQGOSV_cjs.a,Clock:()=>chunk3QNRNR2K_cjs.a,ClockTimer:()=>chunk4P3D457R_cjs.a,Coffee:()=>chunkKK2LWINQ_cjs.a,Comments:()=>chunkTSO532LJ_cjs.a,ConcernsHighlight:()=>chunkMLU7EKIN_cjs.a,Confetti:()=>chunk5X7STTMZ_cjs.a,Conversation:()=>chunkBTLZHDZQ_cjs.a,CurvyLines:()=>chunkPK4PMYLY_cjs.a,CurvyLinesWide:()=>chunkMYVYPFDD_cjs.a,Desk:()=>chunkA342KJ5A_cjs.a,DeskWhite:()=>chunkZT47MHJ4_cjs.a,Emails:()=>chunkCLNHINY2_cjs.a,Error:()=>chunkRCLZGBON_cjs.a,FaxBackground:()=>chunkOTAJBCRC_cjs.a,FileFolder:()=>chunkBYIBU7IA_cjs.a,FiveStars:()=>chunkNCITUPH3_cjs.a,Forms:()=>chunkP26L4F5E_cjs.a,Gift:()=>chunkWOSXB3TE_cjs.a,Goal:()=>chunkWOK4IXJX_cjs.a,Hands:()=>chunk46DYESP5_cjs.a,Hearts:()=>chunkS2NZEJ4F_cjs.a,Invite:()=>chunk6ML22ZHZ_cjs.a,Laptop:()=>chunkHM2ELPDQ_cjs.a,Light:()=>chunkYP6BP4UV_cjs.a,LightBulb:()=>chunk2TI2XTUA_cjs.a,LogomarkGradient:()=>chunkRLVDSB3B_cjs.a,MagnifyingGlass:()=>chunkO2QD27XN_cjs.a,MagnifyingGlassSearch:()=>chunkK56UVFOQ_cjs.a,Mail:()=>chunkX6Y5CEPX_cjs.a,Medication:()=>chunk4DE5YLAU_cjs.a,Message:()=>chunkHRY3FJMJ_cjs.a,Navigate:()=>chunkGOPDYVDV_cjs.a,Notes:()=>chunkAHHWPMPV_cjs.a,PaperAirplaneEmailDelivery:()=>chunkNBR6THLZ_cjs.a,Pen:()=>chunk4POPWPOK_cjs.a,PenWithStars:()=>chunkXO23NFBF_cjs.a,PiggyBank:()=>chunkYRL27N6O_cjs.a,Polaris:()=>chunkJYXAHGOL_cjs.a,SolaceVerified:()=>chunkGU4CYWB6_cjs.a,Stars:()=>chunkJ7W3SC75_cjs.a,StarsWithWave:()=>chunkOBBZWWXW_cjs.a,Stethoscope:()=>chunkECMIV3DJ_cjs.a,Stethoscope2:()=>chunkPSTRTH7T_cjs.a,Telephone:()=>chunkZQA4SM6V_cjs.a,Time:()=>chunkIVGN3KMC_cjs.a,Timer:()=>chunkS4YOIJMV_cjs.a,Trophy:()=>chunkYJQAC7LF_cjs.a,VerifiedAdvocateBadge:()=>chunk4BVIZ7RO_cjs.a,Visit:()=>chunkWS3BJN6R_cjs.a,WaitingRoom:()=>chunkYX4VGU4Y_cjs.a,WavyCorner:()=>chunk6DJDPSMI_cjs.a,WavyFooter:()=>chunkEILQNZDJ_cjs.a,WavyHeader:()=>chunkMDMUD7WX_cjs.a,WelcomeDoor:()=>chunk2EMBDGN4_cjs.a});exports.a=io;//# sourceMappingURL=chunk-VGX6TTRK.cjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-VGX6TTRK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Illustration/index.tsx"],"names":["Illustration_exports","__export","Bell","Blob","Books","Calendar","CareNote","Caution","Chart","Clipboard","Clock","ClockTimer","Coffee","Comments","ConcernsHighlight","Confetti","Conversation","CurvyLines","CurvyLinesWide","Desk","DeskWhite","Emails","Error","FaxBackground","FileFolder","FiveStars","Forms","Gift","Goal","Hands","Hearts","Invite","Laptop","Light","LightBulb","LogomarkGradient","MagnifyingGlass","MagnifyingGlassSearch","Mail","Medication","Message","Navigate","Notes","PaperAirplaneEmailDelivery","Pen","PenWithStars","PiggyBank","Polaris","SolaceVerified","Stars","StarsWithWave","Stethoscope","Stethoscope2","Telephone","Time","Timer","Trophy","VerifiedAdvocateBadge","Visit","WaitingRoom","WavyCorner","WavyFooter","WavyHeader","WelcomeDoor"],"mappings":"+lGAAA,IAAAA,EAAAA,CAAA,GAAAC,mBAAAA,CAAAD,EAAAA,CAAA,CAAA,IAAA,CAAA,IAAAE,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,OAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,iBAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,YAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,cAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,aAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,WAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,gBAAA,CAAA,IAAAC,mBAAAA,CAAA,eAAA,CAAA,IAAAC,mBAAAA,CAAA,qBAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,OAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,0BAAA,CAAA,IAAAC,mBAAAA,CAAA,GAAA,CAAA,IAAAC,mBAAAA,CAAA,YAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,OAAA,CAAA,IAAAC,mBAAAA,CAAA,cAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,aAAA,CAAA,IAAAC,mBAAAA,CAAA,WAAA,CAAA,IAAAC,mBAAAA,CAAA,YAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,qBAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,WAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,oBAAA,WAAA,CAAA,IAAAC,mBAAAA,CAAAA,CAAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/Illustration/index.tsx"],"names":["Illustration_exports","__export","Bell","Blob","Books","Calendar","CareNote","Caution","Chart","Clipboard","Clock","ClockTimer","Coffee","Comments","ConcernsHighlight","Confetti","Conversation","CurvyLines","CurvyLinesWide","Desk","DeskWhite","Emails","Error","FaxBackground","FileFolder","FiveStars","Forms","Gift","Goal","Hands","Hearts","Invite","Laptop","Light","LightBulb","LogomarkGradient","MagnifyingGlass","MagnifyingGlassSearch","Mail","Medication","Message","Navigate","Notes","PaperAirplaneEmailDelivery","Pen","PenWithStars","PiggyBank","Polaris","SolaceVerified","Stars","StarsWithWave","Stethoscope","Stethoscope2","Telephone","Time","Timer","Trophy","VerifiedAdvocateBadge","Visit","WaitingRoom","WavyCorner","WavyFooter","WavyHeader","WelcomeDoor"],"mappings":"+lGAAA,IAAAA,EAAAA,CAAA,GAAAC,mBAAAA,CAAAD,EAAAA,CAAA,CAAA,IAAA,CAAA,IAAAE,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,OAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,iBAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,YAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,cAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,aAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,WAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,gBAAA,CAAA,IAAAC,mBAAAA,CAAA,eAAA,CAAA,IAAAC,mBAAAA,CAAA,qBAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,OAAA,CAAA,IAAAC,mBAAAA,CAAA,QAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,0BAAA,CAAA,IAAAC,mBAAAA,CAAA,GAAA,CAAA,IAAAC,mBAAAA,CAAA,YAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,OAAA,CAAA,IAAAC,mBAAAA,CAAA,cAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,aAAA,CAAA,IAAAC,mBAAAA,CAAA,WAAA,CAAA,IAAAC,mBAAAA,CAAA,YAAA,CAAA,IAAAC,mBAAAA,CAAA,SAAA,CAAA,IAAAC,mBAAAA,CAAA,IAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,MAAA,CAAA,IAAAC,mBAAAA,CAAA,qBAAA,CAAA,IAAAC,mBAAAA,CAAA,KAAA,CAAA,IAAAC,mBAAAA,CAAA,WAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,mBAAAA,CAAA,UAAA,CAAA,IAAAC,oBAAA,WAAA,CAAA,IAAAC,mBAAAA,CAAAA,CAAAA","file":"chunk-VGX6TTRK.cjs","sourcesContent":["export { Bell } from './illustrations/Bell';\nexport { Blob } from './illustrations/Blob';\nexport { Books } from './illustrations/Books';\nexport { Calendar } from './illustrations/Calendar';\nexport { CareNote } from './illustrations/CareNote';\nexport { Caution } from './illustrations/Caution';\nexport { Chart } from './illustrations/Chart';\nexport { Clipboard } from './illustrations/Clipboard';\nexport { Clock } from './illustrations/Clock';\nexport { ClockTimer } from './illustrations/ClockTimer';\nexport { Coffee } from './illustrations/Coffee';\nexport { Comments } from './illustrations/Comments';\nexport { Conversation } from './illustrations/Conversation';\nexport { ConcernsHighlight } from './illustrations/ConcernsHighlight';\nexport { Confetti } from './illustrations/Confetti';\nexport { CurvyLines } from './illustrations/CurvyLines';\nexport { CurvyLinesWide } from './illustrations/CurvyLinesWide';\nexport { Desk } from './illustrations/Desk';\nexport { DeskWhite } from './illustrations/DeskWhite';\nexport { Emails } from './illustrations/Emails';\nexport { Error } from './illustrations/Error';\nexport { FaxBackground } from './illustrations/FaxBackground';\nexport { FileFolder } from './illustrations/FileFolder';\nexport { FiveStars } from './illustrations/FiveStars';\nexport { Forms } from './illustrations/Forms';\nexport { Gift } from './illustrations/Gift';\nexport { Goal } from './illustrations/Goal';\nexport { Hands } from './illustrations/Hands';\nexport { Hearts } from './illustrations/Hearts';\nexport { Invite } from './illustrations/Invite';\nexport { Laptop } from './illustrations/Laptop';\nexport { Light } from './illustrations/Light';\nexport { LightBulb } from './illustrations/LightBulb';\nexport { LogomarkGradient } from './illustrations/LogomarkGradient';\nexport { Mail } from './illustrations/Mail';\nexport { MagnifyingGlass } from './illustrations/MagnifyingGlass';\nexport { MagnifyingGlassSearch } from './illustrations/MagnifyingGlassSearch';\nexport { Medication } from './illustrations/Medication';\nexport { Message } from './illustrations/Message';\nexport { Navigate } from './illustrations/Navigate';\nexport { Notes } from './illustrations/Notes';\nexport { PaperAirplaneEmailDelivery } from './illustrations/PaperAirplaneEmailDelivery';\nexport { Pen } from './illustrations/Pen';\nexport { PenWithStars } from './illustrations/PenWithStars';\nexport { PiggyBank } from './illustrations/PiggyBank';\nexport { Polaris } from './illustrations/Polaris';\nexport { SolaceVerified } from './illustrations/SolaceVerified';\nexport { Stars } from './illustrations/Stars';\nexport { StarsWithWave } from './illustrations/StarsWithWave';\nexport { Stethoscope } from './illustrations/Stethoscope';\nexport { Stethoscope2 } from './illustrations/Stethoscope2';\nexport { Telephone } from './illustrations/Telephone';\nexport { Time } from './illustrations/Time';\nexport { Timer } from './illustrations/Timer';\nexport { Trophy } from './illustrations/Trophy';\nexport { VerifiedAdvocateBadge } from './illustrations/VerifiedAdvocateBadge';\nexport { Visit } from './illustrations/Visit';\nexport { WaitingRoom } from './illustrations/WaitingRoom';\nexport { WavyCorner } from './illustrations/WavyCorner';\nexport { WavyHeader } from './illustrations/WavyHeader';\nexport { WavyFooter } from './illustrations/WavyFooter';\nexport { WelcomeDoor } from './illustrations/WelcomeDoor';\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
'use strict';var chunkYROCMSJL_cjs=require('./chunk-YROCMSJL.cjs'),chunkT3YYFSKY_cjs=require('./chunk-T3YYFSKY.cjs'),chunkOIQVIBDD_cjs=require('./chunk-OIQVIBDD.cjs'),chunk2AHF7ACG_cjs=require('./chunk-2AHF7ACG.cjs'),chunkEBVG6SWF_cjs=require('./chunk-EBVG6SWF.cjs'),chunkZTNO5RDP_cjs=require('./chunk-ZTNO5RDP.cjs'),chunkZNU6HKTH_cjs=require('./chunk-ZNU6HKTH.cjs'),chunkKW3USHUH_cjs=require('./chunk-KW3USHUH.cjs'),chunkA2VXF7CC_cjs=require('./chunk-A2VXF7CC.cjs'),chunkCSFBW7OJ_cjs=require('./chunk-CSFBW7OJ.cjs'),chunkCYCQ436D_cjs=require('./chunk-CYCQ436D.cjs'),chunk7GXAQSKF_cjs=require('./chunk-7GXAQSKF.cjs'),chunkGGZGT2MN_cjs=require('./chunk-GGZGT2MN.cjs'),chunkICYFGKFD_cjs=require('./chunk-ICYFGKFD.cjs'),chunkQSQTH3NF_cjs=require('./chunk-QSQTH3NF.cjs'),chunkIKCCI6HH_cjs=require('./chunk-IKCCI6HH.cjs'),chunkRI4OVMZ5_cjs=require('./chunk-RI4OVMZ5.cjs'),chunkNYTYSK7H_cjs=require('./chunk-NYTYSK7H.cjs'),chunkVNKPEU2H_cjs=require('./chunk-VNKPEU2H.cjs'),chunkULTFWLWO_cjs=require('./chunk-ULTFWLWO.cjs'),chunkLXZH3F5J_cjs=require('./chunk-LXZH3F5J.cjs'),chunkWXG65U73_cjs=require('./chunk-WXG65U73.cjs'),chunkZPP2M2HF_cjs=require('./chunk-ZPP2M2HF.cjs'),
|
|
1
|
+
'use strict';var chunkYROCMSJL_cjs=require('./chunk-YROCMSJL.cjs'),chunkT3YYFSKY_cjs=require('./chunk-T3YYFSKY.cjs'),chunkOIQVIBDD_cjs=require('./chunk-OIQVIBDD.cjs'),chunk2AHF7ACG_cjs=require('./chunk-2AHF7ACG.cjs'),chunkEBVG6SWF_cjs=require('./chunk-EBVG6SWF.cjs'),chunkZTNO5RDP_cjs=require('./chunk-ZTNO5RDP.cjs'),chunkZNU6HKTH_cjs=require('./chunk-ZNU6HKTH.cjs'),chunkKW3USHUH_cjs=require('./chunk-KW3USHUH.cjs'),chunkA2VXF7CC_cjs=require('./chunk-A2VXF7CC.cjs'),chunkCSFBW7OJ_cjs=require('./chunk-CSFBW7OJ.cjs'),chunkCYCQ436D_cjs=require('./chunk-CYCQ436D.cjs'),chunk7GXAQSKF_cjs=require('./chunk-7GXAQSKF.cjs'),chunkGGZGT2MN_cjs=require('./chunk-GGZGT2MN.cjs'),chunkICYFGKFD_cjs=require('./chunk-ICYFGKFD.cjs'),chunkQSQTH3NF_cjs=require('./chunk-QSQTH3NF.cjs'),chunkIKCCI6HH_cjs=require('./chunk-IKCCI6HH.cjs'),chunkRI4OVMZ5_cjs=require('./chunk-RI4OVMZ5.cjs'),chunkNYTYSK7H_cjs=require('./chunk-NYTYSK7H.cjs'),chunkVNKPEU2H_cjs=require('./chunk-VNKPEU2H.cjs'),chunkULTFWLWO_cjs=require('./chunk-ULTFWLWO.cjs'),chunkLXZH3F5J_cjs=require('./chunk-LXZH3F5J.cjs'),chunkWXG65U73_cjs=require('./chunk-WXG65U73.cjs'),chunkZPP2M2HF_cjs=require('./chunk-ZPP2M2HF.cjs'),chunkQYSBCT3H_cjs=require('./chunk-QYSBCT3H.cjs'),chunk6SGSS54U_cjs=require('./chunk-6SGSS54U.cjs'),chunkLWS323BW_cjs=require('./chunk-LWS323BW.cjs'),chunk2VEMCSC6_cjs=require('./chunk-2VEMCSC6.cjs'),chunkP2LLXXPW_cjs=require('./chunk-P2LLXXPW.cjs'),chunkE6XN2GQ6_cjs=require('./chunk-E6XN2GQ6.cjs');require('./chunk-QIICME6P.cjs');var chunkVAH6ATXD_cjs=require('./chunk-VAH6ATXD.cjs'),chunkMOE3KKA2_cjs=require('./chunk-MOE3KKA2.cjs'),chunkXQLH3PDO_cjs=require('./chunk-XQLH3PDO.cjs'),chunkBAH6YD44_cjs=require('./chunk-BAH6YD44.cjs'),chunk4R4KRQPE_cjs=require('./chunk-4R4KRQPE.cjs'),chunkD7X5YDM7_cjs=require('./chunk-D7X5YDM7.cjs'),chunk2NACCH4A_cjs=require('./chunk-2NACCH4A.cjs'),chunkEOPHXSAH_cjs=require('./chunk-EOPHXSAH.cjs'),chunkBDFUOPI3_cjs=require('./chunk-BDFUOPI3.cjs'),chunk7TRNCJST_cjs=require('./chunk-7TRNCJST.cjs'),chunkCN3ECQ7A_cjs=require('./chunk-CN3ECQ7A.cjs'),chunkJZEC62LJ_cjs=require('./chunk-JZEC62LJ.cjs'),chunkPLUISLNP_cjs=require('./chunk-PLUISLNP.cjs'),chunkH53FKFPG_cjs=require('./chunk-H53FKFPG.cjs'),chunkXJLS5XTZ_cjs=require('./chunk-XJLS5XTZ.cjs'),chunkMHTG2AHT_cjs=require('./chunk-MHTG2AHT.cjs'),chunk3F4VZVIF_cjs=require('./chunk-3F4VZVIF.cjs'),chunkNRRN3GCE_cjs=require('./chunk-NRRN3GCE.cjs'),chunk76MDPFHV_cjs=require('./chunk-76MDPFHV.cjs'),chunk6AOJPR7C_cjs=require('./chunk-6AOJPR7C.cjs'),chunkHHOJPS3W_cjs=require('./chunk-HHOJPS3W.cjs'),chunkNQEASIW2_cjs=require('./chunk-NQEASIW2.cjs'),chunkQRFUIS7R_cjs=require('./chunk-QRFUIS7R.cjs'),chunk4VIXEDG4_cjs=require('./chunk-4VIXEDG4.cjs'),chunkBXFHENQ3_cjs=require('./chunk-BXFHENQ3.cjs'),chunkN5UQB4MD_cjs=require('./chunk-N5UQB4MD.cjs'),Ln=require('@emotion/styled'),antd=require('antd'),reactHookForm=require('react-hook-form'),reactDom=require('react-dom'),react=require('react'),jsxRuntime=require('react/jsx-runtime'),web=require('@react-spring/web'),Ua=require('use-places-autocomplete'),api=require('@react-google-maps/api'),it=require('dayjs'),react$1=require('@emotion/react'),reactImask=require('react-imask'),reactMenu=require('@szhsin/react-menu');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Ln__default=/*#__PURE__*/_interopDefault(Ln);var Ua__default=/*#__PURE__*/_interopDefault(Ua);var it__default=/*#__PURE__*/_interopDefault(it);var Gn=Ln__default.default.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
|
-
`,Hn=({children:e=null,text:t="This field is required",includeIcon:r=true,marginBottom:o=0})=>jsxRuntime.jsxs(Gn,{marginBottom:o,children:[r&&jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}),jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"xs",color:"#DA4D54",children:e||t})]}),v=Hn;var Kn=({modalContent:e,modalLabel:t=void 0,modalButtonText:r="Go Back"})=>{let[o,n]=react.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(chunkOIQVIBDD_cjs.d,{onClick:()=>n(true),children:t?jsxRuntime.jsx(chunkOIQVIBDD_cjs.e,{children:`(${t})`}):jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.CircleExclamation,{})}),jsxRuntime.jsx(chunkMOE3KKA2_cjs.a,{isOpen:o,onClose:()=>n(false),footer:jsxRuntime.jsx(chunkHHOJPS3W_cjs.f.Secondary,{onClick:()=>n(false),children:r}),children:jsxRuntime.jsx("div",{style:{marginTop:"2rem"},children:e})})]})},yo=Kn;var jn=({id:e,label:t=null,isLabelBold:r=false,required:o=false,details:n=null,helpContent:a=void 0,helpLabel:s=void 0,labelSize:l="lg"})=>{if(!t)return null;let i=typeof n=="string"?jsxRuntime.jsx(chunkOIQVIBDD_cjs.a,{children:n}):n;return jsxRuntime.jsxs(chunkOIQVIBDD_cjs.b,{children:[jsxRuntime.jsxs(chunkQRFUIS7R_cjs.a.Body,{id:e,className:"input-label",bold:r,size:l,children:[t,o&&jsxRuntime.jsx(chunkOIQVIBDD_cjs.c,{}),a&&jsxRuntime.jsx(yo,{modalContent:a,modalLabel:s})]}),i]})},k=jn;var na=({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:i=true,helpContent:d=void 0,helpLabel:u=void 0,errorMessage:p="This field is required",disableErrorState:c=false,showErrorMessage:m=true,wrapperStyle:y={},contentStyle:h={},...S})=>{let{control:C}=reactHookForm.useFormContext(),x=n?{pattern:chunkCSFBW7OJ_cjs.a(n)}:{},{field:b,fieldState:w}=reactHookForm.useController({name:e,control:C,rules:{...x,...o}}),I=c?false:w.error,P=w.error?.message?.toString()||p,f=react.useId(),E=react.useMemo(()=>s?jsxRuntime.jsx(chunkY5JXMGN6_cjs.a.Area,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...b,...S}):a?jsxRuntime.jsx(chunkY5JXMGN6_cjs.a.Mask,{"aria-labelledby":f,name:b.name,onBlur:b.onBlur,format:a,onAccept:B=>b.onChange(B),value:b.value,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...S}):l?jsxRuntime.jsx(chunkY5JXMGN6_cjs.a.Password,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...b,...S}):jsxRuntime.jsx(chunkY5JXMGN6_cjs.a.Text,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...b,...S}),[b,S,s,a,l]);return jsxRuntime.jsxs("div",{style:{width:"100%",...y},children:[jsxRuntime.jsx(k,{id:f,label:t,isLabelBold:i,required:!!o.required,details:r,helpLabel:u,helpContent:d}),jsxRuntime.jsx(chunkCYCQ436D_cjs.b,{style:h,children:E}),m&&I&&jsxRuntime.jsx(v,{text:P,includeIcon:false})]})},ae=na;var ve=({option:e,name:t,formOptions:r={},previewOnly:o=false,errorMessage:n=void 0,inGroup:a=false,onChange:s=()=>null,...l})=>{let{control:i}=reactHookForm.useFormContext(),{field:d,fieldState:u}=reactHookForm.useController({control:i,name:t,rules:r}),p=!!u.error,c=u.error?.message?.toString()||n,m=react.useCallback(y=>{let{target:h}=y;if(a){let S=d.value||[];h?.checked?d.onChange([...S,e.value]):d.onChange(S.filter(C=>C!==e.value));}else {let S=h?.checked?e.value:"";d.onChange(S),s(S);}},[d.onChange,d.value,a,e.value]);return jsxRuntime.jsxs(chunkNYTYSK7H_cjs.c,{children:[jsxRuntime.jsxs(antd.Flex,{gap:".5rem",children:[jsxRuntime.jsx(chunkNYTYSK7H_cjs.d,{type:"checkbox",checked:a?d.value?.includes(e.value):d.value===e.value,value:e.value,hasError:p,previewOnly:o,disabled:!!l?.disabled||o,onChange:m,...l}),jsxRuntime.jsx("label",{htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{children:e.label})})]}),p&&!a&&jsxRuntime.jsx(v,{text:c,includeIcon:false})]})},da=({name:e,formOptions:t={},previewOnly:r=false,...o})=>{let{control:n}=reactHookForm.useFormContext(),{field:{name:a,...s}}=reactHookForm.useController({control:n,name:`${e}_other`,rules:t});return jsxRuntime.jsx(ae,{name:a,placeholder:"Other",previewOnly:r,showErrorMessage:false,...o,...s})},ua=({name:e,option:t=void 0,formOptions:r={},previewOnly:o=false,inputProps:n={}})=>{let{control:a}=reactHookForm.useFormContext(),{field:{name:s},fieldState:l}=reactHookForm.useController({control:a,name:e,rules:r}),i=!!l.error,d=t?.label||"Other",u=t?.value||"other";return jsxRuntime.jsxs(chunkNYTYSK7H_cjs.f,{children:[jsxRuntime.jsx(ve,{name:s,option:{label:d,value:u},inGroup:true,hasError:i,formOptions:r,previewOnly:o,...n},`${s}-other`),jsxRuntime.jsx(da,{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:i={},...d})=>{let{control:u}=reactHookForm.useFormContext(),{field:p,fieldState:c}=reactHookForm.useController({control:u,name:e,rules:i}),m=!!c.error;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(k,{label:t,isLabelBold:true,required:!!i.required,details:r}),jsxRuntime.jsxs(chunkNYTYSK7H_cjs.b,{inline:n,isColumns:o.length>5,children:[o.map(y=>jsxRuntime.jsx(ve,{name:p.name,inGroup:true,option:y,hasError:m,formOptions:i,previewOnly:a,...d},`${p.name}-${y.value}`)),s.label&&jsxRuntime.jsx(ua,{name:p.name,option:s,formOptions:i,previewOnly:a,...d})]}),m&&jsxRuntime.jsx(v,{text:l,includeIcon:false})]})},ca=({option:e,name:t,previewOnly:r=false,errorMessage:o=void 0,inGroup:n=false,checked:a,field:s,hasError:l=false,...i})=>{let{isMobile:d}=chunkULTFWLWO_cjs.b(),[u,p]=react.useState(false);return jsxRuntime.jsxs(at.Illustration,{selected:a,onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),active:a||u&&!d,illustration:e.illustration,children:[jsxRuntime.jsx(chunkNYTYSK7H_cjs.i,{type:"checkbox",value:e.value,disabled:!!i?.disabled||r,onChange:c=>{if(!a){s.onChange([...s.value,c.target.value]);return}s.onChange((s.value??[]).filter(m=>m!==c.target.value));},...i}),jsxRuntime.jsx("label",{htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{children:e.label})}),l&&!n&&jsxRuntime.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:i,formState:{errors:d}}=reactHookForm.useFormContext(),u=!!reactHookForm.get(d,e);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(k,{label:t,isLabelBold:true,required:!!s.required,details:r}),jsxRuntime.jsx(chunkNYTYSK7H_cjs.g,{itemNumber:o.length,children:jsxRuntime.jsx(reactHookForm.Controller,{name:e,control:i,rules:{...s},defaultValue:[],render:({field:p})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.map(c=>jsxRuntime.jsx(ca,{name:e,inGroup:true,field:p,option:c,checked:(p.value??[]).some(m=>m===c.value),hasError:u,previewOnly:n,...l},`${e}-${c.value}`))})})}),u&&jsxRuntime.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}=reactHookForm.useFormContext(),i=!!l.errors[t];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactHookForm.Controller,{rules:r,control:s,name:t,render:({field:d})=>jsxRuntime.jsx(chunk76MDPFHV_cjs.a,{options:e,disabled:o,...d,onChange:u=>{d.onChange(u),a(u);}})}),i&&jsxRuntime.jsx(v,{text:n,includeIcon:false})]})};var ya=({name:e,label:t=null,details:r=null,type:o="text",formOptions:n={},previewOnly:a=false,textArea:s=false,marginBottom:l=void 0,isLabelBold:i=true,helpContent:d=void 0,helpLabel:u=void 0,format:p="",errorMessage:c="This field is required",...m})=>{let{control:y,formState:{errors:h}}=reactHookForm.useFormContext(),S=!!reactHookForm.get(h,e),C=h?.[e]?.message?.toString()||c,x=({field:b})=>s?jsxRuntime.jsx(chunkEBVG6SWF_cjs.e,{...b,marginBottom:l,error:S,disabled:a,...m}):p?jsxRuntime.jsx(chunkEBVG6SWF_cjs.c,{...b,mask:chunk2AHF7ACG_cjs.a(p),guide:false,disabled:a,type:o,error:S,...m}):jsxRuntime.jsx(chunkEBVG6SWF_cjs.b,{...b,disabled:a,type:o,error:S,...m});return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(k,{label:t,isLabelBold:i,required:!!n.required,details:r,helpLabel:u,helpContent:d}),jsxRuntime.jsxs(chunkEBVG6SWF_cjs.d,{marginBottom:l,children:[jsxRuntime.jsx(reactHookForm.Controller,{render:x,name:e,rules:n,control:y}),jsxRuntime.jsx(chunkEBVG6SWF_cjs.a,{children:S&&jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{})})]}),S&&jsxRuntime.jsx(v,{text:C,includeIcon:false})]})},Pe=ya;var Sa=({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:i={},...d})=>{let{control:u,formState:{errors:p}}=reactHookForm.useFormContext(),c=!!reactHookForm.get(p,r),m=reactHookForm.get(p,r)?.message?.toString()||s;return jsxRuntime.jsxs("div",{style:i,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:t,required:!!a.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:y})=>jsxRuntime.jsx(chunkY5JXMGN6_cjs.a.Number,{disabled:o,status:c?"error":"",suffix:c?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):null,...d,...y}),name:r,defaultValue:n,rules:a,control:u,...l}),c&&jsxRuntime.jsx(v,{text:m,includeIcon:false})]})},wo=Sa;var Pa=(r=>(r.MINIMAL="MINIMAL",r.WITH_DATE="WITH_DATE",r))(Pa||{}),wa=({label:e="",name:t,formOptions:r={},description:o="",previewOnly:n=false,errorMessage:a=void 0,signatureType:s=void 0,date:l=void 0,isAdvocate:i=false,showIcon:d=true,formStyle:u="MINIMAL",...p})=>{let{control:c,formState:{errors:m}}=reactHookForm.useFormContext(),y=s==="advocate"?"Advocate":"Client",h=i&&s==="advocate"||!i&&s==="client",S=({field:b})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(chunkKW3USHUH_cjs.b,{previewOnly:n,children:[d&&jsxRuntime.jsx(chunkJZEC62LJ_cjs.a,{}),jsxRuntime.jsx(chunkKW3USHUH_cjs.h,{...b,...p})]}),jsxRuntime.jsx("label",{htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{children:e})})]}),C=l?new Date(l).toLocaleDateString():"",x=({field:b})=>jsxRuntime.jsx(chunkKW3USHUH_cjs.c,{children:jsxRuntime.jsxs(chunkKW3USHUH_cjs.d,{children:[jsxRuntime.jsxs(chunkKW3USHUH_cjs.e,{children:[jsxRuntime.jsx(chunkKW3USHUH_cjs.i,{...b,...p,placeholder:`${y} Signature`,disabled:n||!h,hasError:!!m[t]}),jsxRuntime.jsx(chunkKW3USHUH_cjs.g,{children:`${y}`}),m[t]&&jsxRuntime.jsx(v,{text:a,includeIcon:false})]}),jsxRuntime.jsxs(chunkKW3USHUH_cjs.f,{children:[jsxRuntime.jsx(chunkKW3USHUH_cjs.k,{children:C}),jsxRuntime.jsx(chunkKW3USHUH_cjs.g,{children:"Date"})]})]})});return jsxRuntime.jsxs(chunkKW3USHUH_cjs.a,{previewOnly:n,children:[(e||s)&&jsxRuntime.jsx(k,{label:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&`${y} `,e]}),required:true,isLabelBold:true}),o,jsxRuntime.jsx(reactHookForm.Controller,{render:u==="MINIMAL"?S:x,name:t,rules:r,control:c})]})},ko=wa;var we=({option:e,name:t,inline:r,previewOnly:o=false,hasError:n=false,formOptions:a={},...s})=>{let{register:l}=reactHookForm.useFormContext(),i=react.useId();return jsxRuntime.jsxs(chunkGGZGT2MN_cjs.c,{inline:r,children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.d,{"aria-labelledby":i,type:"radio",...l(t,a),value:e.value,previewOnly:o,disabled:o,hasError:n,...s}),jsxRuntime.jsx("label",{id:i,htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.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:i=void 0,showErrorMessage:d=true,...u})=>{let{formState:{errors:p}}=reactHookForm.useFormContext(),c=!!reactHookForm.get(p,e);return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(k,{label:t,required:!!l.required,isLabelBold:true,details:r}),jsxRuntime.jsxs(chunkGGZGT2MN_cjs.b,{inline:n,isColumns:o.length>5,children:[o.map(m=>jsxRuntime.jsx(we,{option:m,name:e,inline:n,previewOnly:s,formOptions:l,...u,hasError:c},`${e}-${m.value}`)),a&&jsxRuntime.jsxs(chunkGGZGT2MN_cjs.f,{children:[jsxRuntime.jsx(we,{option:{label:"Other",value:"other"},name:e,inline:n,...u},e),jsxRuntime.jsx(Pe,{name:`${e}_other`,...u})]})]}),d&&c&&jsxRuntime.jsx(v,{text:i,includeIcon:false})]})},Ma=({option:e,name:t,formOptions:r})=>{let{register:o,watch:n,formState:a}=reactHookForm.useFormContext(),s=n(t)===e.value;return jsxRuntime.jsxs(chunkGGZGT2MN_cjs.i,{selected:s,hasError:!!a.errors[t],disabled:e.disabled||false,children:[jsxRuntime.jsxs(chunkGGZGT2MN_cjs.j,{children:[jsxRuntime.jsxs(chunkGGZGT2MN_cjs.m,{selected:s,children:[e.icon||null,e.label]}),jsxRuntime.jsx(chunkGGZGT2MN_cjs.k,{type:"radio",value:e.value,...o(t,r)})]}),e.description&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.n,{selected:s,children:e.description})]})},Eo=({name:e,label:t=null,className:r="",options:o,formOptions:n={},id:a=""})=>jsxRuntime.jsxs(chunkGGZGT2MN_cjs.g,{className:r,id:a,children:[t&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.l,{size:"lg",children:t}),jsxRuntime.jsx("div",{children:o.map(s=>jsxRuntime.jsx(Ma,{option:s,name:e,formOptions:n},`${s.label}-${s.value}`))})]}),Ta=({option:e,name:t,formOptions:r,showCaret:o=false,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null})=>{let{register:l,watch:i}=reactHookForm.useFormContext(),d=i(t)===e.value,[u,p]=react.useState(false),c=chunkN5UQB4MD_cjs.a[e.icon],m=web.useSpring(u?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),y=()=>{p(true),a(e.value);},h=()=>{p(false),s(e.value);};return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.r,{type:"radio",onClick:S=>n?n(S.currentTarget.value):null,value:e.value,...l(t,r),onMouseEnter:y,onMouseLeave:h}),jsxRuntime.jsxs(chunkGGZGT2MN_cjs.o,{selected:d,children:[jsxRuntime.jsxs(antd.Flex,{align:"center",gap:16,children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.p,{children:jsxRuntime.jsx(c,{active:d||u})}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.s,{children:e.label}),e?.description&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.t,{children:e.description})]})]}),o&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.q,{style:m,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"right",color:d||u?"#285E50":"#7F7F7F"})})]})]})},Oo=({name:e,label:t=null,className:r="",options:o,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,showCaret:l=false,formOptions:i={}})=>jsxRuntime.jsxs(chunkGGZGT2MN_cjs.g,{className:r,children:[t&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.l,{size:"lg",children:t}),jsxRuntime.jsx(chunkGGZGT2MN_cjs.u,{children:o.map(d=>jsxRuntime.jsx(Ta,{option:d,name:e,onClick:n,onMouseEnter:a,onMouseLeave:s,formOptions:i,showCaret:l},`${d.label}-${d.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:i}=reactHookForm.useFormContext(),{field:d,fieldState:u}=reactHookForm.useController({name:r,control:i,rules:o}),p=!!u.error;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(chunkLWS323BW_cjs.a,{options:e,defaultValue:t,disabled:n,onBlur:d.onBlur,name:r,onChange:c=>{d.onChange(c),l(c.target.value);}}),s&&p&&jsxRuntime.jsx(v,{text:a,includeIcon:false})]})};var Va=({label:e="",name:t,details:r="",placeholder:o="",options:n=[],allowInput:a=false,previewOnly:s=false,isLabelBold:l=true,formOptions:i={},onChange:d=()=>null,containerStyle:u={}})=>{let p=react.useRef(),c=reactHookForm.useFormContext(),{errors:m}=c.formState;c.register(t,i);let y=!!reactHookForm.get(m,t),h=reactHookForm.get(m,t)?.message?.toString(),[S,C]=react.useState(false),[x,b]=react.useState(""),[w,I]=react.useState(n),P=web.useSpring(S?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});react.useEffect(()=>{let O=L=>{S&&p.current&&!p.current.contains(L.target)&&C(false);};return document.addEventListener("mousedown",L=>O(L)),()=>{document.removeEventListener("mousedown",L=>O(L));}},[S]);let f=n.find(O=>O.value===c.getValues(t))?.label,E=O=>{b(""),c.setValue(t,O.value),c.trigger(t),d&&d(O),C(false);};react.useEffect(()=>{if(C(!!x),x){let O=n.filter(L=>String(L.value).toLowerCase().match(x.toLowerCase()));I(O),c.setValue(t,x);}else I(n);},[x,n.length]);let B=O=>{O.code==="Enter"&&O.preventDefault();};return jsxRuntime.jsxs(chunkICYFGKFD_cjs.a,{style:u,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:l,required:!!i.required,details:r}),jsxRuntime.jsx(chunkICYFGKFD_cjs.c,{onClick:()=>C(!S),previewOnly:s,children:s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("i",{style:{color:chunkBXFHENQ3_cjs.d.grey300},children:"--Select--"}),jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"down",color:chunkBXFHENQ3_cjs.d.grey300})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f||jsxRuntime.jsx("i",{children:o}),a&&jsxRuntime.jsx(chunkICYFGKFD_cjs.g,{onKeyDown:B,value:x,onChange:O=>b(O.target.value),type:"text"}),jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:S?"up":"down"}),jsxRuntime.jsx(chunkICYFGKFD_cjs.d,{style:P,ref:p,children:w.map(O=>{let{label:L}=O,q=O.label===f;return jsxRuntime.jsxs(chunkICYFGKFD_cjs.e,{onClick:()=>E(O),children:[jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"lg",children:L}),jsxRuntime.jsx(chunkICYFGKFD_cjs.f,{isCurrent:q,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Check,{color:"#fff"})})]},O.value)})})]})}),y&&jsxRuntime.jsx(v,{text:h,includeIcon:false})]})},Lo=Va;var Xa=({label:e="",name:t,details:r="",placeholder:o="",unit:n="",options:a=[],disabled:s=false,mode:l=void 0,previewOnly:i=false,isLabelBold:d=true,formOptions:u={},onChange:p=()=>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:w=void 0,showCaret:I=false,...P})=>{let f=reactHookForm.useFormContext();f.register(t,u);let{control:E,formState:{errors:B},getValues:O}=reactHookForm.useFormContext(),L=!!reactHookForm.get(B,t),q=b||B?.[t]?.message?.toString(),Ae=O()[t],be=react.useId(),Ve=(H,oe)=>{f.setValue(t,H,{shouldDirty:true,shouldTouch:true}),f.trigger(t),p(H,oe);},[_e,Ne]=react.useState(false),F;_e?F=jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"up"}):F=jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"down"});let U=({field:H})=>jsxRuntime.jsx(chunkQYSBCT3H_cjs.a,{"aria-labelledby":be,allowClear:h,loading:S,mode:l,showSearch:true,onChange:Ve,placeholder:o,options:a,disabled:s||i,value:x?C:H.value??C,defaultValue:w,style:y,suffixIcon:I?F:void 0,onDropdownVisibleChange:oe=>Ne(oe),...P});return jsxRuntime.jsxs("div",{style:m,children:[jsxRuntime.jsx(k,{id:be,label:e,isLabelBold:d,required:!!u.required,details:r}),jsxRuntime.jsxs(chunkZNU6HKTH_cjs.c,{children:[jsxRuntime.jsx(reactHookForm.Controller,{control:E,name:t,rules:u,render:U}),n&&jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"lg",children:n})]}),i&&c&&jsxRuntime.jsx(chunkZNU6HKTH_cjs.a,{children:a.map(H=>jsxRuntime.jsx(chunkZNU6HKTH_cjs.b,{selected:H.value===Ae,children:H.label}))}),L&&jsxRuntime.jsx(v,{text:q,includeIcon:false})]})},Vo=Xa;var zo={locality:1,administrative_area_level_3:2,sublocality:3,neighborhood:4},Ja=e=>{let t="",r="",o="",n="",a="",s="",l=(p,c)=>{(!t||zo[p]<zo[r])&&(t=c,r=p);};e.address_components.forEach(p=>{p.types.some(c=>{switch(c){case "locality":case "sublocality":case "neighborhood":case "administrative_area_level_3":return l(c,p.short_name),true;case "administrative_area_level_1":return o=p.short_name,true;case "street_number":return n=p.short_name,true;case "route":return a=p.short_name,true;case "postal_code":return s=p.short_name,true;default:return false}});});let i=e.geometry.location.lat(),d=e.geometry.location.lng(),u=`${n} ${a}`;return {city:t,state:o,street:u,zip:s,lat:i,long:d}},Ya=({handleSelect:e,option:t,value:r})=>{let{description:o}=t,n=o===r,a=o.replace(", USA","");return jsxRuntime.jsx(chunk7GXAQSKF_cjs.e,{isCurrent:n,onClick:()=>e(a),children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"lg",children:a})})},Ka=["places"],Qa=({label:e="",details:t="",formOptions:r={},previewOnly:o=false,isLabelBold:n=true,locationType:a="city",streetFieldName:s="street",cityFieldName:l="city",stateFieldName:i="state",zipFieldName:d="zip",cityWithStateFieldName:u="city_with_state",placeholder:p="",containerStyle:c={},errorMessage:m="This field is required",hasError:y=false,style:h={},className:S=""})=>{let C=react.useRef(),[x,b]=react.useState(false),[w,I]=react.useState(false),P=reactHookForm.useFormContext(),f;switch(a){case "city":f=l;break;case "full":f=s;break;case "city_with_state":f=u;break;default:return null}let E=web.useSpring(x?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});react.useEffect(()=>{let F=U=>{x&&C.current&&!C.current.contains(U.target)&&b(false);};return document.addEventListener("mousedown",U=>F(U)),()=>{document.removeEventListener("mousedown",U=>F(U));}},[x]);let B=P.getValues(f)?`${P.getValues(f)}, ${P.getValues(i)}`:"",{value:O,suggestions:{data:L,loading:q},setValue:Be,clearSuggestions:Ae}=Ua__default.default({requestOptions:{...["city","city_with_state"].includes(a)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});react.useEffect(()=>{if(q){I(q);return}setTimeout(()=>{I(q);},2e3);},[q]);let be=web.useSpring(w?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),Ve=F=>{Be(F.target.value),P.setValue(i,""),a==="full"&&(P.setValue(d,""),P.setValue(l,"")),P.trigger(f),F.target.value.length>=3&&b(true);},_e=F=>{Be(F,false),Ae(),!(F.length<=2)&&Ua.getGeocode({address:F}).then(U=>{let{city:H,state:oe,street:Vn,zip:_n,lat:Nn,long:Wn}=Ja(U[0]),Pt=[f,l,i];P.setValue(l,H),P.setValue(i,oe),a==="full"&&(P.setValue(s,Vn),P.setValue(d,_n),Pt.push(s,d)),a==="city_with_state"&&P.setValue(u,`${H}, ${oe}`),P.setValue("lat",Nn),P.setValue("long",Wn),P.trigger(Pt);}).catch(U=>console.error(`Google Maps API error: ${U}`));},Ne=F=>{F.code==="Enter"&&F.preventDefault();};return jsxRuntime.jsxs(chunk7GXAQSKF_cjs.a,{style:h,className:S,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:n,required:!!r.required,details:t}),o?jsxRuntime.jsx(chunk7GXAQSKF_cjs.g,{size:"md",children:B||"N/A"}):jsxRuntime.jsxs(chunk7GXAQSKF_cjs.b,{style:c,children:[jsxRuntime.jsx(chunk7GXAQSKF_cjs.f,{onKeyDown:Ne,type:"text",placeholder:p,...P.register(f,{...r,onChange:Ve})}),L.length>0&&jsxRuntime.jsx(chunk7GXAQSKF_cjs.c,{style:E,ref:C,children:L.map(F=>jsxRuntime.jsx(Ya,{handleSelect:_e,option:F,value:O},F.description))}),jsxRuntime.jsx(chunk7GXAQSKF_cjs.d,{style:be,children:jsxRuntime.jsx(chunkD7X5YDM7_cjs.a,{size:"sm"})})]}),y&&jsxRuntime.jsx(v,{text:m,includeIcon:false})]})},$o=({api_key:e,...t})=>{let{isLoaded:r}=api.useLoadScript({googleMapsApiKey:e||process.env.GOOGLE_MAPS_API_KEY||"",libraries:Ka});return r?jsxRuntime.jsx(Qa,{...t}):null};var ss=Ln__default.default(antd.Input.Search)`
|
|
7
|
+
`,Hn=({children:e=null,text:t="This field is required",includeIcon:r=true,marginBottom:o=0})=>jsxRuntime.jsxs(Gn,{marginBottom:o,children:[r&&jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}),jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"xs",color:"#DA4D54",children:e||t})]}),v=Hn;var Kn=({modalContent:e,modalLabel:t=void 0,modalButtonText:r="Go Back"})=>{let[o,n]=react.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(chunkOIQVIBDD_cjs.d,{onClick:()=>n(true),children:t?jsxRuntime.jsx(chunkOIQVIBDD_cjs.e,{children:`(${t})`}):jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.CircleExclamation,{})}),jsxRuntime.jsx(chunkMOE3KKA2_cjs.a,{isOpen:o,onClose:()=>n(false),footer:jsxRuntime.jsx(chunkHHOJPS3W_cjs.f.Secondary,{onClick:()=>n(false),children:r}),children:jsxRuntime.jsx("div",{style:{marginTop:"2rem"},children:e})})]})},yo=Kn;var jn=({id:e,label:t=null,isLabelBold:r=false,required:o=false,details:n=null,helpContent:a=void 0,helpLabel:s=void 0,labelSize:l="lg"})=>{if(!t)return null;let i=typeof n=="string"?jsxRuntime.jsx(chunkOIQVIBDD_cjs.a,{children:n}):n;return jsxRuntime.jsxs(chunkOIQVIBDD_cjs.b,{children:[jsxRuntime.jsxs(chunkQRFUIS7R_cjs.a.Body,{id:e,className:"input-label",bold:r,size:l,children:[t,o&&jsxRuntime.jsx(chunkOIQVIBDD_cjs.c,{}),a&&jsxRuntime.jsx(yo,{modalContent:a,modalLabel:s})]}),i]})},k=jn;var na=({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:i=true,helpContent:d=void 0,helpLabel:u=void 0,errorMessage:p="This field is required",disableErrorState:c=false,showErrorMessage:m=true,wrapperStyle:y={},contentStyle:h={},...S})=>{let{control:C}=reactHookForm.useFormContext(),x=n?{pattern:chunkCSFBW7OJ_cjs.a(n)}:{},{field:b,fieldState:w}=reactHookForm.useController({name:e,control:C,rules:{...x,...o}}),I=c?false:w.error,P=w.error?.message?.toString()||p,f=react.useId(),E=react.useMemo(()=>s?jsxRuntime.jsx(chunkBAH6YD44_cjs.a.Area,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...b,...S}):a?jsxRuntime.jsx(chunkBAH6YD44_cjs.a.Mask,{"aria-labelledby":f,name:b.name,onBlur:b.onBlur,format:a,onAccept:B=>b.onChange(B),value:b.value,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...S}):l?jsxRuntime.jsx(chunkBAH6YD44_cjs.a.Password,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...b,...S}):jsxRuntime.jsx(chunkBAH6YD44_cjs.a.Text,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...b,...S}),[b,S,s,a,l]);return jsxRuntime.jsxs("div",{style:{width:"100%",...y},children:[jsxRuntime.jsx(k,{id:f,label:t,isLabelBold:i,required:!!o.required,details:r,helpLabel:u,helpContent:d}),jsxRuntime.jsx(chunkCYCQ436D_cjs.b,{style:h,children:E}),m&&I&&jsxRuntime.jsx(v,{text:P,includeIcon:false})]})},ae=na;var ve=({option:e,name:t,formOptions:r={},previewOnly:o=false,errorMessage:n=void 0,inGroup:a=false,onChange:s=()=>null,...l})=>{let{control:i}=reactHookForm.useFormContext(),{field:d,fieldState:u}=reactHookForm.useController({control:i,name:t,rules:r}),p=!!u.error,c=u.error?.message?.toString()||n,m=react.useCallback(y=>{let{target:h}=y;if(a){let S=d.value||[];h?.checked?d.onChange([...S,e.value]):d.onChange(S.filter(C=>C!==e.value));}else {let S=h?.checked?e.value:"";d.onChange(S),s(S);}},[d.onChange,d.value,a,e.value]);return jsxRuntime.jsxs(chunkNYTYSK7H_cjs.c,{children:[jsxRuntime.jsxs(antd.Flex,{gap:".5rem",children:[jsxRuntime.jsx(chunkNYTYSK7H_cjs.d,{type:"checkbox",checked:a?d.value?.includes(e.value):d.value===e.value,value:e.value,hasError:p,previewOnly:o,disabled:!!l?.disabled||o,onChange:m,...l}),jsxRuntime.jsx("label",{htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{children:e.label})})]}),p&&!a&&jsxRuntime.jsx(v,{text:c,includeIcon:false})]})},da=({name:e,formOptions:t={},previewOnly:r=false,...o})=>{let{control:n}=reactHookForm.useFormContext(),{field:{name:a,...s}}=reactHookForm.useController({control:n,name:`${e}_other`,rules:t});return jsxRuntime.jsx(ae,{name:a,placeholder:"Other",previewOnly:r,showErrorMessage:false,...o,...s})},ua=({name:e,option:t=void 0,formOptions:r={},previewOnly:o=false,inputProps:n={}})=>{let{control:a}=reactHookForm.useFormContext(),{field:{name:s},fieldState:l}=reactHookForm.useController({control:a,name:e,rules:r}),i=!!l.error,d=t?.label||"Other",u=t?.value||"other";return jsxRuntime.jsxs(chunkNYTYSK7H_cjs.f,{children:[jsxRuntime.jsx(ve,{name:s,option:{label:d,value:u},inGroup:true,hasError:i,formOptions:r,previewOnly:o,...n},`${s}-other`),jsxRuntime.jsx(da,{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:i={},...d})=>{let{control:u}=reactHookForm.useFormContext(),{field:p,fieldState:c}=reactHookForm.useController({control:u,name:e,rules:i}),m=!!c.error;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(k,{label:t,isLabelBold:true,required:!!i.required,details:r}),jsxRuntime.jsxs(chunkNYTYSK7H_cjs.b,{inline:n,isColumns:o.length>5,children:[o.map(y=>jsxRuntime.jsx(ve,{name:p.name,inGroup:true,option:y,hasError:m,formOptions:i,previewOnly:a,...d},`${p.name}-${y.value}`)),s.label&&jsxRuntime.jsx(ua,{name:p.name,option:s,formOptions:i,previewOnly:a,...d})]}),m&&jsxRuntime.jsx(v,{text:l,includeIcon:false})]})},ca=({option:e,name:t,previewOnly:r=false,errorMessage:o=void 0,inGroup:n=false,checked:a,field:s,hasError:l=false,...i})=>{let{isMobile:d}=chunkULTFWLWO_cjs.b(),[u,p]=react.useState(false);return jsxRuntime.jsxs(at.Illustration,{selected:a,onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),active:a||u&&!d,illustration:e.illustration,children:[jsxRuntime.jsx(chunkNYTYSK7H_cjs.i,{type:"checkbox",value:e.value,disabled:!!i?.disabled||r,onChange:c=>{if(!a){s.onChange([...s.value,c.target.value]);return}s.onChange((s.value??[]).filter(m=>m!==c.target.value));},...i}),jsxRuntime.jsx("label",{htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{children:e.label})}),l&&!n&&jsxRuntime.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:i,formState:{errors:d}}=reactHookForm.useFormContext(),u=!!reactHookForm.get(d,e);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(k,{label:t,isLabelBold:true,required:!!s.required,details:r}),jsxRuntime.jsx(chunkNYTYSK7H_cjs.g,{itemNumber:o.length,children:jsxRuntime.jsx(reactHookForm.Controller,{name:e,control:i,rules:{...s},defaultValue:[],render:({field:p})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.map(c=>jsxRuntime.jsx(ca,{name:e,inGroup:true,field:p,option:c,checked:(p.value??[]).some(m=>m===c.value),hasError:u,previewOnly:n,...l},`${e}-${c.value}`))})})}),u&&jsxRuntime.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}=reactHookForm.useFormContext(),i=!!l.errors[t];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactHookForm.Controller,{rules:r,control:s,name:t,render:({field:d})=>jsxRuntime.jsx(chunk76MDPFHV_cjs.a,{options:e,disabled:o,...d,onChange:u=>{d.onChange(u),a(u);}})}),i&&jsxRuntime.jsx(v,{text:n,includeIcon:false})]})};var ya=({name:e,label:t=null,details:r=null,type:o="text",formOptions:n={},previewOnly:a=false,textArea:s=false,marginBottom:l=void 0,isLabelBold:i=true,helpContent:d=void 0,helpLabel:u=void 0,format:p="",errorMessage:c="This field is required",...m})=>{let{control:y,formState:{errors:h}}=reactHookForm.useFormContext(),S=!!reactHookForm.get(h,e),C=h?.[e]?.message?.toString()||c,x=({field:b})=>s?jsxRuntime.jsx(chunkEBVG6SWF_cjs.e,{...b,marginBottom:l,error:S,disabled:a,...m}):p?jsxRuntime.jsx(chunkEBVG6SWF_cjs.c,{...b,mask:chunk2AHF7ACG_cjs.a(p),guide:false,disabled:a,type:o,error:S,...m}):jsxRuntime.jsx(chunkEBVG6SWF_cjs.b,{...b,disabled:a,type:o,error:S,...m});return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(k,{label:t,isLabelBold:i,required:!!n.required,details:r,helpLabel:u,helpContent:d}),jsxRuntime.jsxs(chunkEBVG6SWF_cjs.d,{marginBottom:l,children:[jsxRuntime.jsx(reactHookForm.Controller,{render:x,name:e,rules:n,control:y}),jsxRuntime.jsx(chunkEBVG6SWF_cjs.a,{children:S&&jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{})})]}),S&&jsxRuntime.jsx(v,{text:C,includeIcon:false})]})},Pe=ya;var Sa=({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:i={},...d})=>{let{control:u,formState:{errors:p}}=reactHookForm.useFormContext(),c=!!reactHookForm.get(p,r),m=reactHookForm.get(p,r)?.message?.toString()||s;return jsxRuntime.jsxs("div",{style:i,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:t,required:!!a.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:y})=>jsxRuntime.jsx(chunkBAH6YD44_cjs.a.Number,{disabled:o,status:c?"error":"",suffix:c?jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.ErrorExclamation,{}):null,...d,...y}),name:r,defaultValue:n,rules:a,control:u,...l}),c&&jsxRuntime.jsx(v,{text:m,includeIcon:false})]})},wo=Sa;var Pa=(r=>(r.MINIMAL="MINIMAL",r.WITH_DATE="WITH_DATE",r))(Pa||{}),wa=({label:e="",name:t,formOptions:r={},description:o="",previewOnly:n=false,errorMessage:a=void 0,signatureType:s=void 0,date:l=void 0,isAdvocate:i=false,showIcon:d=true,formStyle:u="MINIMAL",...p})=>{let{control:c,formState:{errors:m}}=reactHookForm.useFormContext(),y=s==="advocate"?"Advocate":"Client",h=i&&s==="advocate"||!i&&s==="client",S=({field:b})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(chunkKW3USHUH_cjs.b,{previewOnly:n,children:[d&&jsxRuntime.jsx(chunkJZEC62LJ_cjs.a,{}),jsxRuntime.jsx(chunkKW3USHUH_cjs.h,{...b,...p})]}),jsxRuntime.jsx("label",{htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{children:e})})]}),C=l?new Date(l).toLocaleDateString():"",x=({field:b})=>jsxRuntime.jsx(chunkKW3USHUH_cjs.c,{children:jsxRuntime.jsxs(chunkKW3USHUH_cjs.d,{children:[jsxRuntime.jsxs(chunkKW3USHUH_cjs.e,{children:[jsxRuntime.jsx(chunkKW3USHUH_cjs.i,{...b,...p,placeholder:`${y} Signature`,disabled:n||!h,hasError:!!m[t]}),jsxRuntime.jsx(chunkKW3USHUH_cjs.g,{children:`${y}`}),m[t]&&jsxRuntime.jsx(v,{text:a,includeIcon:false})]}),jsxRuntime.jsxs(chunkKW3USHUH_cjs.f,{children:[jsxRuntime.jsx(chunkKW3USHUH_cjs.k,{children:C}),jsxRuntime.jsx(chunkKW3USHUH_cjs.g,{children:"Date"})]})]})});return jsxRuntime.jsxs(chunkKW3USHUH_cjs.a,{previewOnly:n,children:[(e||s)&&jsxRuntime.jsx(k,{label:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&`${y} `,e]}),required:true,isLabelBold:true}),o,jsxRuntime.jsx(reactHookForm.Controller,{render:u==="MINIMAL"?S:x,name:t,rules:r,control:c})]})},ko=wa;var we=({option:e,name:t,inline:r,previewOnly:o=false,hasError:n=false,formOptions:a={},...s})=>{let{register:l}=reactHookForm.useFormContext(),i=react.useId();return jsxRuntime.jsxs(chunkGGZGT2MN_cjs.c,{inline:r,children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.d,{"aria-labelledby":i,type:"radio",...l(t,a),value:e.value,previewOnly:o,disabled:o,hasError:n,...s}),jsxRuntime.jsx("label",{id:i,htmlFor:t,children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.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:i=void 0,showErrorMessage:d=true,...u})=>{let{formState:{errors:p}}=reactHookForm.useFormContext(),c=!!reactHookForm.get(p,e);return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(k,{label:t,required:!!l.required,isLabelBold:true,details:r}),jsxRuntime.jsxs(chunkGGZGT2MN_cjs.b,{inline:n,isColumns:o.length>5,children:[o.map(m=>jsxRuntime.jsx(we,{option:m,name:e,inline:n,previewOnly:s,formOptions:l,...u,hasError:c},`${e}-${m.value}`)),a&&jsxRuntime.jsxs(chunkGGZGT2MN_cjs.f,{children:[jsxRuntime.jsx(we,{option:{label:"Other",value:"other"},name:e,inline:n,...u},e),jsxRuntime.jsx(Pe,{name:`${e}_other`,...u})]})]}),d&&c&&jsxRuntime.jsx(v,{text:i,includeIcon:false})]})},Ma=({option:e,name:t,formOptions:r})=>{let{register:o,watch:n,formState:a}=reactHookForm.useFormContext(),s=n(t)===e.value;return jsxRuntime.jsxs(chunkGGZGT2MN_cjs.i,{selected:s,hasError:!!a.errors[t],disabled:e.disabled||false,children:[jsxRuntime.jsxs(chunkGGZGT2MN_cjs.j,{children:[jsxRuntime.jsxs(chunkGGZGT2MN_cjs.m,{selected:s,children:[e.icon||null,e.label]}),jsxRuntime.jsx(chunkGGZGT2MN_cjs.k,{type:"radio",value:e.value,...o(t,r)})]}),e.description&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.n,{selected:s,children:e.description})]})},Eo=({name:e,label:t=null,className:r="",options:o,formOptions:n={},id:a=""})=>jsxRuntime.jsxs(chunkGGZGT2MN_cjs.g,{className:r,id:a,children:[t&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.l,{size:"lg",children:t}),jsxRuntime.jsx("div",{children:o.map(s=>jsxRuntime.jsx(Ma,{option:s,name:e,formOptions:n},`${s.label}-${s.value}`))})]}),Ta=({option:e,name:t,formOptions:r,showCaret:o=false,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null})=>{let{register:l,watch:i}=reactHookForm.useFormContext(),d=i(t)===e.value,[u,p]=react.useState(false),c=chunkN5UQB4MD_cjs.a[e.icon],m=web.useSpring(u?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),y=()=>{p(true),a(e.value);},h=()=>{p(false),s(e.value);};return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.r,{type:"radio",onClick:S=>n?n(S.currentTarget.value):null,value:e.value,...l(t,r),onMouseEnter:y,onMouseLeave:h}),jsxRuntime.jsxs(chunkGGZGT2MN_cjs.o,{selected:d,children:[jsxRuntime.jsxs(antd.Flex,{align:"center",gap:16,children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.p,{children:jsxRuntime.jsx(c,{active:d||u})}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsxRuntime.jsx(chunkGGZGT2MN_cjs.s,{children:e.label}),e?.description&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.t,{children:e.description})]})]}),o&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.q,{style:m,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"right",color:d||u?"#285E50":"#7F7F7F"})})]})]})},Oo=({name:e,label:t=null,className:r="",options:o,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,showCaret:l=false,formOptions:i={}})=>jsxRuntime.jsxs(chunkGGZGT2MN_cjs.g,{className:r,children:[t&&jsxRuntime.jsx(chunkGGZGT2MN_cjs.l,{size:"lg",children:t}),jsxRuntime.jsx(chunkGGZGT2MN_cjs.u,{children:o.map(d=>jsxRuntime.jsx(Ta,{option:d,name:e,onClick:n,onMouseEnter:a,onMouseLeave:s,formOptions:i,showCaret:l},`${d.label}-${d.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:i}=reactHookForm.useFormContext(),{field:d,fieldState:u}=reactHookForm.useController({name:r,control:i,rules:o}),p=!!u.error;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(chunkLWS323BW_cjs.a,{options:e,defaultValue:t,disabled:n,onBlur:d.onBlur,name:r,onChange:c=>{d.onChange(c),l(c.target.value);}}),s&&p&&jsxRuntime.jsx(v,{text:a,includeIcon:false})]})};var Va=({label:e="",name:t,details:r="",placeholder:o="",options:n=[],allowInput:a=false,previewOnly:s=false,isLabelBold:l=true,formOptions:i={},onChange:d=()=>null,containerStyle:u={}})=>{let p=react.useRef(),c=reactHookForm.useFormContext(),{errors:m}=c.formState;c.register(t,i);let y=!!reactHookForm.get(m,t),h=reactHookForm.get(m,t)?.message?.toString(),[S,C]=react.useState(false),[x,b]=react.useState(""),[w,I]=react.useState(n),P=web.useSpring(S?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});react.useEffect(()=>{let O=L=>{S&&p.current&&!p.current.contains(L.target)&&C(false);};return document.addEventListener("mousedown",L=>O(L)),()=>{document.removeEventListener("mousedown",L=>O(L));}},[S]);let f=n.find(O=>O.value===c.getValues(t))?.label,E=O=>{b(""),c.setValue(t,O.value),c.trigger(t),d&&d(O),C(false);};react.useEffect(()=>{if(C(!!x),x){let O=n.filter(L=>String(L.value).toLowerCase().match(x.toLowerCase()));I(O),c.setValue(t,x);}else I(n);},[x,n.length]);let B=O=>{O.code==="Enter"&&O.preventDefault();};return jsxRuntime.jsxs(chunkICYFGKFD_cjs.a,{style:u,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:l,required:!!i.required,details:r}),jsxRuntime.jsx(chunkICYFGKFD_cjs.c,{onClick:()=>C(!S),previewOnly:s,children:s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("i",{style:{color:chunkBXFHENQ3_cjs.d.grey300},children:"--Select--"}),jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"down",color:chunkBXFHENQ3_cjs.d.grey300})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f||jsxRuntime.jsx("i",{children:o}),a&&jsxRuntime.jsx(chunkICYFGKFD_cjs.g,{onKeyDown:B,value:x,onChange:O=>b(O.target.value),type:"text"}),jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:S?"up":"down"}),jsxRuntime.jsx(chunkICYFGKFD_cjs.d,{style:P,ref:p,children:w.map(O=>{let{label:L}=O,q=O.label===f;return jsxRuntime.jsxs(chunkICYFGKFD_cjs.e,{onClick:()=>E(O),children:[jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"lg",children:L}),jsxRuntime.jsx(chunkICYFGKFD_cjs.f,{isCurrent:q,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Check,{color:"#fff"})})]},O.value)})})]})}),y&&jsxRuntime.jsx(v,{text:h,includeIcon:false})]})},Lo=Va;var Xa=({label:e="",name:t,details:r="",placeholder:o="",unit:n="",options:a=[],disabled:s=false,mode:l=void 0,previewOnly:i=false,isLabelBold:d=true,formOptions:u={},onChange:p=()=>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:w=void 0,showCaret:I=false,...P})=>{let f=reactHookForm.useFormContext();f.register(t,u);let{control:E,formState:{errors:B},getValues:O}=reactHookForm.useFormContext(),L=!!reactHookForm.get(B,t),q=b||B?.[t]?.message?.toString(),Ae=O()[t],be=react.useId(),Ve=(H,oe)=>{f.setValue(t,H,{shouldDirty:true,shouldTouch:true}),f.trigger(t),p(H,oe);},[_e,Ne]=react.useState(false),F;_e?F=jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"up"}):F=jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"down"});let U=({field:H})=>jsxRuntime.jsx(chunkQYSBCT3H_cjs.a,{"aria-labelledby":be,allowClear:h,loading:S,mode:l,showSearch:true,onChange:Ve,placeholder:o,options:a,disabled:s||i,value:x?C:H.value??C,defaultValue:w,style:y,suffixIcon:I?F:void 0,onDropdownVisibleChange:oe=>Ne(oe),...P});return jsxRuntime.jsxs("div",{style:m,children:[jsxRuntime.jsx(k,{id:be,label:e,isLabelBold:d,required:!!u.required,details:r}),jsxRuntime.jsxs(chunkZNU6HKTH_cjs.c,{children:[jsxRuntime.jsx(reactHookForm.Controller,{control:E,name:t,rules:u,render:U}),n&&jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"lg",children:n})]}),i&&c&&jsxRuntime.jsx(chunkZNU6HKTH_cjs.a,{children:a.map(H=>jsxRuntime.jsx(chunkZNU6HKTH_cjs.b,{selected:H.value===Ae,children:H.label}))}),L&&jsxRuntime.jsx(v,{text:q,includeIcon:false})]})},Vo=Xa;var zo={locality:1,administrative_area_level_3:2,sublocality:3,neighborhood:4},Ja=e=>{let t="",r="",o="",n="",a="",s="",l=(p,c)=>{(!t||zo[p]<zo[r])&&(t=c,r=p);};e.address_components.forEach(p=>{p.types.some(c=>{switch(c){case "locality":case "sublocality":case "neighborhood":case "administrative_area_level_3":return l(c,p.short_name),true;case "administrative_area_level_1":return o=p.short_name,true;case "street_number":return n=p.short_name,true;case "route":return a=p.short_name,true;case "postal_code":return s=p.short_name,true;default:return false}});});let i=e.geometry.location.lat(),d=e.geometry.location.lng(),u=`${n} ${a}`;return {city:t,state:o,street:u,zip:s,lat:i,long:d}},Ya=({handleSelect:e,option:t,value:r})=>{let{description:o}=t,n=o===r,a=o.replace(", USA","");return jsxRuntime.jsx(chunk7GXAQSKF_cjs.e,{isCurrent:n,onClick:()=>e(a),children:jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Body,{size:"lg",children:a})})},Ka=["places"],Qa=({label:e="",details:t="",formOptions:r={},previewOnly:o=false,isLabelBold:n=true,locationType:a="city",streetFieldName:s="street",cityFieldName:l="city",stateFieldName:i="state",zipFieldName:d="zip",cityWithStateFieldName:u="city_with_state",placeholder:p="",containerStyle:c={},errorMessage:m="This field is required",hasError:y=false,style:h={},className:S=""})=>{let C=react.useRef(),[x,b]=react.useState(false),[w,I]=react.useState(false),P=reactHookForm.useFormContext(),f;switch(a){case "city":f=l;break;case "full":f=s;break;case "city_with_state":f=u;break;default:return null}let E=web.useSpring(x?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});react.useEffect(()=>{let F=U=>{x&&C.current&&!C.current.contains(U.target)&&b(false);};return document.addEventListener("mousedown",U=>F(U)),()=>{document.removeEventListener("mousedown",U=>F(U));}},[x]);let B=P.getValues(f)?`${P.getValues(f)}, ${P.getValues(i)}`:"",{value:O,suggestions:{data:L,loading:q},setValue:Be,clearSuggestions:Ae}=Ua__default.default({requestOptions:{...["city","city_with_state"].includes(a)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});react.useEffect(()=>{if(q){I(q);return}setTimeout(()=>{I(q);},2e3);},[q]);let be=web.useSpring(w?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),Ve=F=>{Be(F.target.value),P.setValue(i,""),a==="full"&&(P.setValue(d,""),P.setValue(l,"")),P.trigger(f),F.target.value.length>=3&&b(true);},_e=F=>{Be(F,false),Ae(),!(F.length<=2)&&Ua.getGeocode({address:F}).then(U=>{let{city:H,state:oe,street:Vn,zip:_n,lat:Nn,long:Wn}=Ja(U[0]),Pt=[f,l,i];P.setValue(l,H),P.setValue(i,oe),a==="full"&&(P.setValue(s,Vn),P.setValue(d,_n),Pt.push(s,d)),a==="city_with_state"&&P.setValue(u,`${H}, ${oe}`),P.setValue("lat",Nn),P.setValue("long",Wn),P.trigger(Pt);}).catch(U=>console.error(`Google Maps API error: ${U}`));},Ne=F=>{F.code==="Enter"&&F.preventDefault();};return jsxRuntime.jsxs(chunk7GXAQSKF_cjs.a,{style:h,className:S,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:n,required:!!r.required,details:t}),o?jsxRuntime.jsx(chunk7GXAQSKF_cjs.g,{size:"md",children:B||"N/A"}):jsxRuntime.jsxs(chunk7GXAQSKF_cjs.b,{style:c,children:[jsxRuntime.jsx(chunk7GXAQSKF_cjs.f,{onKeyDown:Ne,type:"text",placeholder:p,...P.register(f,{...r,onChange:Ve})}),L.length>0&&jsxRuntime.jsx(chunk7GXAQSKF_cjs.c,{style:E,ref:C,children:L.map(F=>jsxRuntime.jsx(Ya,{handleSelect:_e,option:F,value:O},F.description))}),jsxRuntime.jsx(chunk7GXAQSKF_cjs.d,{style:be,children:jsxRuntime.jsx(chunkD7X5YDM7_cjs.a,{size:"sm"})})]}),y&&jsxRuntime.jsx(v,{text:m,includeIcon:false})]})},$o=({api_key:e,...t})=>{let{isLoaded:r}=api.useLoadScript({googleMapsApiKey:e||process.env.GOOGLE_MAPS_API_KEY||"",libraries:Ka});return r?jsxRuntime.jsx(Qa,{...t}):null};var ss=Ln__default.default(antd.Input.Search)`
|
|
8
8
|
.ant-input,
|
|
9
9
|
.ant-input-search-button {
|
|
10
10
|
height: 48px;
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
pointer-events: auto;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
`}),h&&jsxRuntime.jsx(v,{text:S,includeIcon:false})]})},Zo=Xs;var {Dragger:Gs}=antd.Upload,Hs=({label:e="",name:t,disabled:r=false,description:o="",isLabelBold:n=true,formOptions:a={},onChange:s,onRemove:l,onDownload:i,onDrop:d,defaultValue:u=void 0,containerStyle:p={},errorMessage:c=void 0,action:m="",headers:y={},uploadData:h={},defaultFileList:S=[],...C})=>{reactHookForm.useFormContext().register(t,a);let{getFieldState:b,formState:{errors:w}}=reactHookForm.useFormContext(),I=!!reactHookForm.get(w,t);return jsxRuntime.jsxs("div",{style:p,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:n,required:!!a.required,details:o}),jsxRuntime.jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsxRuntime.jsx(ae,{formOptions:{required:b(t).invalid},name:`${t}_validation`,type:"text"})}),jsxRuntime.jsxs(Gs,{name:"file",multiple:true,onChange:s,onDrop:d,onRemove:l,onDownload:i,action:m,disabled:r,headers:y,defaultFileList:S,showUploadList:{showDownloadIcon:true},data:h,...C,capture:void 0,children:[jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Attachment,{}),jsxRuntime.jsxs(chunkIKCCI6HH_cjs.a,{children:[jsxRuntime.jsx(chunkIKCCI6HH_cjs.b,{children:jsxRuntime.jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsxRuntime.jsx(chunkIKCCI6HH_cjs.b,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),u?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Current Value: ",u]}):null,I&&jsxRuntime.jsx(v,{text:c,includeIcon:false})]})},en=Hs;var Ks=({label:e="",details:t=void 0,isLabelBold:r=true,name:o,formOptions:n={},containerStyle:a=void 0})=>{let{formState:{errors:s,defaultValues:l},register:i,setValue:d}=reactHookForm.useFormContext();i(o,n);let u=!!reactHookForm.get(s,o),p=reactHookForm.get(s,o)?.message?.toString();return jsxRuntime.jsxs(chunkQSQTH3NF_cjs.a,{style:a,children:[jsxRuntime.jsx(lt,{label:e,isLabelBold:r,details:t,required:!!n.required,onChange:c=>d(o,c),hasError:u,defaultValue:l?.[o]}),u&&jsxRuntime.jsx(v,{text:p})]})},on=Ks;var ei={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function Me({iconProps:e={},containerStyles:t={},value:r=void 0,onChange:o=void 0}){let[n,a]=react.useState(r),s=i=>a(i),l=i=>n===i;return react.useEffect(()=>{o&&o(n);},[n]),jsxRuntime.jsx(chunkEOPHXSAH_cjs.a,{gap:".5rem",style:{...t},children:Object.values(chunkCN3ECQ7A_cjs.a).map(i=>{let{iconFill:d,background:u}=ei[i],p=l(i);return jsxRuntime.jsx(chunk6SGSS54U_cjs.a,{backgroundColor:n?u:"#ffffff",onClick:()=>s(i),isActive:p,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Sentiment,{...e,variant:i,color:p?d:"#7F7F7F"})})})})}function dt({name:e,...t}){let{control:r}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:r,name:e,render:({field:{value:o,onChange:n}})=>jsxRuntime.jsx(Me,{...t,onChange:n,value:o})})}var an=e=>{let t=e.split("/"),r=+t[0],o=+t[1],n=+t[2];return new Date(n,r-1,o)},sn=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("/")},ii=({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:i=new Date,showErrorMessage:d=true,...u})=>{let{formState:{errors:p},setValue:c,register:m,watch:y}=reactHookForm.useFormContext();m(r,n);let h=y(r),[S,C]=react.useState("");react.useEffect(()=>{if(!h)return;let I=typeof h=="string"?new Date(h):h,P=sn(I);C(P);},[h]);let x=(I,P)=>{C(I),P.unmaskedValue.length!==8&&c(r,"");},b=!!reactHookForm.get(p,r),w=p?.[r]?.message?.toString()||s;return jsxRuntime.jsxs("div",{style:a,children:[jsxRuntime.jsx(k,{label:e,details:o,isLabelBold:t,required:!!n.required}),jsxRuntime.jsx(chunk4R4KRQPE_cjs.a,{value:S,mask:Date,blocks:{d:{mask:reactImask.IMask.MaskedRange,from:1,to:31,autofix:"pad"},m:{mask:reactImask.IMask.MaskedRange,from:1,to:12,autofix:"pad"},Y:{mask:reactImask.IMask.MaskedRange,from:1915,to:i.getFullYear(),autofix:false}},placeholder:"MM/DD/YYYY",pattern:"m/d/Y",format:sn,parse:an,onAccept:x,onComplete:I=>c(r,an(I)),min:l,max:i,lazy:true,overwrite:false,...u}),d&&b&&jsxRuntime.jsx(v,{text:w,includeIcon:false})]})},ln=ii;var ui=({name:e,label:t=void 0,details:r=void 0,isLabelBold:o=false,formOptions:n={},defaultValue:a="",wrapperStyle:s={},className:l=void 0,onChange:i=void 0,showErrorMessage:d=true,...u})=>{let{control:p}=reactHookForm.useFormContext(),{field:c,fieldState:m}=reactHookForm.useController({name:e,control:p,rules:n,defaultValue:a}),y=x=>{c.onChange(x),i&&i(x);},h=d?!!m.error:false,S=m.error?.message?.toString(),C=h?"error":"";return jsxRuntime.jsxs("div",{style:{width:"100%",...s},className:l,children:[t&&jsxRuntime.jsx(k,{label:t,isLabelBold:o,required:!!n.required,details:r}),jsxRuntime.jsx(chunkY5JXMGN6_cjs.a.OTP,{...c,...u,onChange:y,status:C}),d&&h&&jsxRuntime.jsx(v,{text:S,includeIcon:false})]})},pn=ui;var te={AddressSelect:Uo,ButtonRadioGroup:Oo,Container:chunkVNKPEU2H_cjs.a,Checkbox:ve,CheckboxGroup:So,CheckboxCardGroup:Co,InputLabel:k,DateSelect:Zo,DateTextMaskInput:ln,TextInput:Pe,Text:ae,TimePicker:Go,TimeSelect:Jo,Radio:we,RadioGroup:Ro,CheckMarkRadio:Do,WelcomeCheckbox:xo,CardRadioGroup:Eo,Number:wo,Select:Lo,SelectMenu:Vo,SentimentSelector:dt,Signature:ko,Submit:chunkA2VXF7CC_cjs.a,LocationSelect:$o,Keyword:Qo,Toggle:chunkZPP2M2HF_cjs.a,FileUpload:en,Tree:chunkZTNO5RDP_cjs.a,DateDropdown:on,OTP:pn};var Ii=()=>Array.from({length:12},(t,r)=>({label:new Date(r,r).toLocaleString("en-US",{month:"long"}),value:r+1})),ki=(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}))},Ri=()=>Array.from({length:110},(t,r)=>{let o=new Date().getFullYear()-r;return {label:o,value:o}}),Ei=({label:e="",details:t=void 0,isLabelBold:r=false,required:o=false,onChange:n=()=>null,defaultValue:a=null,hasError:s=false})=>{let l=react.useRef(null),[i,d]=react.useState(false),u=reactHookForm.useForm({defaultValues:{month:null,day:null,year:null}}),{reset:p}=u;react.useEffect(()=>{if(!a)return;let y=new Date(a);p({month:y.getMonth()+1,day:y.getDate(),year:y.getFullYear()});},[a]);let c=u.watch(),m=ki(c?.month,c?.year);return react.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]),react.useEffect(()=>{l.current&&d(true);},[l,i]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:l}),i&&reactDom.createPortal(jsxRuntime.jsxs(te.Container,{formMethods:u,onSubmit:()=>null,children:[jsxRuntime.jsx(te.InputLabel,{label:e,isLabelBold:r,required:!!o,details:t}),jsxRuntime.jsxs(chunkXJLS5XTZ_cjs.a,{gap:8,hasError:s,children:[jsxRuntime.jsx(te.SelectMenu,{name:"month",options:Ii(),placeholder:"Month",containerStyle:{width:"100%"},sort:false}),jsxRuntime.jsx(te.SelectMenu,{name:"day",options:m,placeholder:"Day",containerStyle:{width:"100%"},sort:false}),jsxRuntime.jsx(te.SelectMenu,{name:"year",options:Ri(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),l.current||document.body)]})},lt=Ei;var Ti=({width:e=25,style:t={},drawerStyle:r={},hidden:o=false,position:n="right",arrowPosition:a="top",variant:s="default",children:l,drawerContent:i,drawerButton:d=void 0,defaultOpen:u=false,config:p="gentle",drawerOpen:c=void 0,setDrawerOpen:m=void 0,buttonStyle:y={},drawerContentStyle:h={}})=>{let[S,C]=react.useState(u),{isMobile:x}=chunkULTFWLWO_cjs.b(),b=n==="left",w=s==="minimal",I=w||x||o?"0rem":"3rem",P=x||o?"0rem":`${e}rem`,f=c!==void 0?c:S,E=B=>{m?m(B):C(B);};return react.useEffect(()=>{u&&E(true);},[u]),jsxRuntime.jsxs(chunkH53FKFPG_cjs.a,{trigger:f,from:b?{paddingLeft:I}:{paddingRight:I},to:b?{paddingLeft:P}:{paddingRight:P},config:p,style:t,animationProps:{reset:o},children:[l,jsxRuntime.jsxs(chunkH53FKFPG_cjs.b,{width:e,trigger:f,bottomArrow:a==="bottom",from:b?{transform:x||w?"translateX(-100%)":`translateX(${3-e}rem)`}:{transform:w||x?"translateX(100%)":`translateX(${e-3}rem)`},to:{transform:w||x?"translateX(0%)":"translateX(0rem)"},config:p,hidden:o,animationProps:{reset:o},isLeft:b,style:r,className:"drawer-content-container",children:[d||jsxRuntime.jsx(chunkNQEASIW2_cjs.a,{from:{transform:w||x?`translateX(${b?"3rem":"-3rem"})`:"translateX(0rem)"},to:{transform:"translateX(0rem)"},trigger:f,style:y,children:jsxRuntime.jsx(chunkH53FKFPG_cjs.c,{onClick:()=>E(!f),children:jsxRuntime.jsx(chunkH53FKFPG_cjs.d,{isLeft:b,trigger:f,from:{transform:`rotate(${b?"180deg":"0deg"})`},to:{transform:`rotate(${b?"0deg":"180deg"})`},children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{})})})}),jsxRuntime.jsx(chunkH53FKFPG_cjs.e,{style:h,trigger:f,from:{opacity:0},to:{opacity:1},children:i})]})]})},Fi=Ti;var Li=({children:e,desktopNavHeight:t=3.75,drawerWidth:r=30,hideDrawerToggle:o=false,isOpen:n,peekWidth:a=2,setIsOpen:s,smoothContentTransitionOnOpen:l=true,styles:i={content:{},wrapper:{},body:{},mask:{},header:{},footer:{}},wrapperMarginTop:d=2.5,...u})=>{let{isDrawerOpen:p,toggleDrawer:c}=chunkE6XN2GQ6_cjs.a({isOpen:n,setIsOpen:s}),m=u.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 ${p?chunkBXFHENQ3_cjs.d.white:chunkBXFHENQ3_cjs.d.green500}`,x={borderTop:C,[y?"borderRight":"borderLeft"]:C},b=p===y?"left":"right";return jsxRuntime.jsxs(chunk3F4VZVIF_cjs.a,{open:true,closable:false,destroyOnClose:false,mask:false,width:p?`${r}rem`:`${a}rem`,placement:m,styles:{content:{background:"transparent",...i.content},wrapper:{height:"50rem",marginTop:`${t+d}rem`,padding:p?"var(--spacing-xxl, 2rem)":0,borderRadius:h,...x,background:"rgba(255, 255, 255, 0.30)",boxShadow:`0px -2px 10px 0px ${chunkBXFHENQ3_cjs.d.green300}`,backdropFilter:"blur(20px)",...i.wrapper},body:{...i.body},mask:{...i.mask},header:{...i.header},footer:{...i.footer}},...u,children:[!o&&jsxRuntime.jsx(chunkP2LLXXPW_cjs.b,{isOpen:p,onClick:c,isLeftPlacement:y,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:b,color:chunkBXFHENQ3_cjs.d.green700})}),jsxRuntime.jsx(chunkP2LLXXPW_cjs.a,{isLeftPlacement:y,isOpen:p,smoothContentTransitionOnOpen:l,children:e})]})};var bt=({name:e,size:t=22,color:r="green800"})=>{let o=chunkBDFUOPI3_cjs.a[e];return jsxRuntime.jsx(o,{size:t,width:t,height:t,color:chunkBXFHENQ3_cjs.d[r]})};var Vi=({icon:e=void 0,color:t="green800",text:r,onClick:o})=>jsxRuntime.jsx(chunk6AOJPR7C_cjs.a,{color:chunkBXFHENQ3_cjs.d[t],iconPosition:"end",onClick:o,children:jsxRuntime.jsxs(chunkEOPHXSAH_cjs.a,{align:"center",gap:`${chunkBXFHENQ3_cjs.e.xs.rem}rem`,children:[jsxRuntime.jsx(chunk6AOJPR7C_cjs.b,{children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{color:chunkBXFHENQ3_cjs.d[t],direction:"left",size:12})}),jsxRuntime.jsxs(chunkEOPHXSAH_cjs.a,{align:"center",gap:`${chunkBXFHENQ3_cjs.e.xs.rem}rem`,children:[e&&jsxRuntime.jsx(bt,{name:e,color:t}),r]})]})});var cn=({file:e,display:t="card",handleDownload:r=()=>null,className:o=""})=>{let n=()=>{r(e);};return t==="list"?null:jsxRuntime.jsxs(chunk2NACCH4A_cjs.b,{className:o,children:[jsxRuntime.jsxs(chunk2NACCH4A_cjs.c,{children:[jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Image,{}),jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Header,{children:e.name})]}),jsxRuntime.jsxs(chunk2NACCH4A_cjs.d,{onClick:n,children:[jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.DownloadArrow,{}),"Download"]})]})},_i=({files:e,handleDownload:t,className:r=""})=>jsxRuntime.jsx(chunk2NACCH4A_cjs.a,{className:r,children:e.map(o=>jsxRuntime.jsx(cn,{file:o,handleDownload:t}))}),Ni={Group:_i,Display:cn};function St({className:e="",isActive:t=false,color:r="#000"}){let o=web.useSpring(t?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{className:e,style:{...o,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"up",color:r})})}var Cn={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:true,transitionTimeout:50},Hi=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",expandIconClassName:a="",menuProps:s={menuButton:void 0},caretColor:l="#000",borderColor:i=chunkBXFHENQ3_cjs.d.grey400})=>{let d=react.useRef(null),[u,p]=reactMenu.useMenuState({transition:true}),c=reactMenu.useClick(u.state,p),m=u.state==="open"||u.state==="opening";return react.useEffect(()=>{o(u.state);},[u.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(chunkVAH6ATXD_cjs.c,{className:`${n} ${m?"menu-open":"menu-closed"}`,ref:d,borderColor:i,...c,children:[jsxRuntime.jsx(chunkVAH6ATXD_cjs.a,{children:t}),jsxRuntime.jsx(St,{className:a,isActive:m,color:l}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...u,anchorRef:d,onClose:()=>p(false),onItemClick:r,onMenuChange:o,...Cn,...s,children:e})]})})},Ji=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",menuProps:a={menuButton:void 0}})=>{let s=react.useRef(null),[l,i]=reactMenu.useMenuState({transition:true}),d=reactMenu.useClick(l.state,i),u=l.state==="open"||l.state==="opening";return react.useEffect(()=>{o(l.state);},[l.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(chunkVAH6ATXD_cjs.b,{className:`${n} ${u?"menu-open":"menu-closed"}`,ref:s,...d,children:[t,jsxRuntime.jsx(reactMenu.ControlledMenu,{...l,anchorRef:s,onClose:()=>i(false),onItemClick:r,onMenuChange:o,...Cn,...a,children:e})]})})},Yi=({label:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:t,children:e}),Ki=({label:e,value:t,selected:r=false,onClick:o=()=>null,disabled:n=false,linkTo:a="",className:s=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:`${s} ${r?"active":"inactive"}`,value:t,onClick:o,href:a,disabled:n,children:e}),Qi=({value:e,onChange:t=()=>null,className:r=""})=>jsxRuntime.jsx(reactMenu.FocusableItem,{children:({ref:o})=>jsxRuntime.jsx("input",{className:r,ref:o,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),Zi=({children:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:t,children:e}),ji=({className:e=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:e}),el={Button:Yi,Container:Hi,Wrapper:Ji,Search:Qi,Divider:ji,Header:Zi,Item:Ki};var ol=Ln__default.default.div`
|
|
175
|
+
`}),h&&jsxRuntime.jsx(v,{text:S,includeIcon:false})]})},Zo=Xs;var {Dragger:Gs}=antd.Upload,Hs=({label:e="",name:t,disabled:r=false,description:o="",isLabelBold:n=true,formOptions:a={},onChange:s,onRemove:l,onDownload:i,onDrop:d,defaultValue:u=void 0,containerStyle:p={},errorMessage:c=void 0,action:m="",headers:y={},uploadData:h={},defaultFileList:S=[],...C})=>{reactHookForm.useFormContext().register(t,a);let{getFieldState:b,formState:{errors:w}}=reactHookForm.useFormContext(),I=!!reactHookForm.get(w,t);return jsxRuntime.jsxs("div",{style:p,children:[jsxRuntime.jsx(k,{label:e,isLabelBold:n,required:!!a.required,details:o}),jsxRuntime.jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsxRuntime.jsx(ae,{formOptions:{required:b(t).invalid},name:`${t}_validation`,type:"text"})}),jsxRuntime.jsxs(Gs,{name:"file",multiple:true,onChange:s,onDrop:d,onRemove:l,onDownload:i,action:m,disabled:r,headers:y,defaultFileList:S,showUploadList:{showDownloadIcon:true},data:h,...C,capture:void 0,children:[jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Attachment,{}),jsxRuntime.jsxs(chunkIKCCI6HH_cjs.a,{children:[jsxRuntime.jsx(chunkIKCCI6HH_cjs.b,{children:jsxRuntime.jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsxRuntime.jsx(chunkIKCCI6HH_cjs.b,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),u?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Current Value: ",u]}):null,I&&jsxRuntime.jsx(v,{text:c,includeIcon:false})]})},en=Hs;var Ks=({label:e="",details:t=void 0,isLabelBold:r=true,name:o,formOptions:n={},containerStyle:a=void 0})=>{let{formState:{errors:s,defaultValues:l},register:i,setValue:d}=reactHookForm.useFormContext();i(o,n);let u=!!reactHookForm.get(s,o),p=reactHookForm.get(s,o)?.message?.toString();return jsxRuntime.jsxs(chunkQSQTH3NF_cjs.a,{style:a,children:[jsxRuntime.jsx(lt,{label:e,isLabelBold:r,details:t,required:!!n.required,onChange:c=>d(o,c),hasError:u,defaultValue:l?.[o]}),u&&jsxRuntime.jsx(v,{text:p})]})},on=Ks;var ei={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function Me({iconProps:e={},containerStyles:t={},value:r=void 0,onChange:o=void 0}){let[n,a]=react.useState(r),s=i=>a(i),l=i=>n===i;return react.useEffect(()=>{o&&o(n);},[n]),jsxRuntime.jsx(chunkEOPHXSAH_cjs.a,{gap:".5rem",style:{...t},children:Object.values(chunkCN3ECQ7A_cjs.a).map(i=>{let{iconFill:d,background:u}=ei[i],p=l(i);return jsxRuntime.jsx(chunk6SGSS54U_cjs.a,{backgroundColor:n?u:"#ffffff",onClick:()=>s(i),isActive:p,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Sentiment,{...e,variant:i,color:p?d:"#7F7F7F"})})})})}function dt({name:e,...t}){let{control:r}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:r,name:e,render:({field:{value:o,onChange:n}})=>jsxRuntime.jsx(Me,{...t,onChange:n,value:o})})}var an=e=>{let t=e.split("/"),r=+t[0],o=+t[1],n=+t[2];return new Date(n,r-1,o)},sn=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("/")},ii=({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:i=new Date,showErrorMessage:d=true,...u})=>{let{formState:{errors:p},setValue:c,register:m,watch:y}=reactHookForm.useFormContext();m(r,n);let h=y(r),[S,C]=react.useState("");react.useEffect(()=>{if(!h)return;let I=typeof h=="string"?new Date(h):h,P=sn(I);C(P);},[h]);let x=(I,P)=>{C(I),P.unmaskedValue.length!==8&&c(r,"");},b=!!reactHookForm.get(p,r),w=p?.[r]?.message?.toString()||s;return jsxRuntime.jsxs("div",{style:a,children:[jsxRuntime.jsx(k,{label:e,details:o,isLabelBold:t,required:!!n.required}),jsxRuntime.jsx(chunk4R4KRQPE_cjs.a,{value:S,mask:Date,blocks:{d:{mask:reactImask.IMask.MaskedRange,from:1,to:31,autofix:"pad"},m:{mask:reactImask.IMask.MaskedRange,from:1,to:12,autofix:"pad"},Y:{mask:reactImask.IMask.MaskedRange,from:1915,to:i.getFullYear(),autofix:false}},placeholder:"MM/DD/YYYY",pattern:"m/d/Y",format:sn,parse:an,onAccept:x,onComplete:I=>c(r,an(I)),min:l,max:i,lazy:true,overwrite:false,...u}),d&&b&&jsxRuntime.jsx(v,{text:w,includeIcon:false})]})},ln=ii;var ui=({name:e,label:t=void 0,details:r=void 0,isLabelBold:o=false,formOptions:n={},defaultValue:a="",wrapperStyle:s={},className:l=void 0,onChange:i=void 0,showErrorMessage:d=true,...u})=>{let{control:p}=reactHookForm.useFormContext(),{field:c,fieldState:m}=reactHookForm.useController({name:e,control:p,rules:n,defaultValue:a}),y=x=>{c.onChange(x),i&&i(x);},h=d?!!m.error:false,S=m.error?.message?.toString(),C=h?"error":"";return jsxRuntime.jsxs("div",{style:{width:"100%",...s},className:l,children:[t&&jsxRuntime.jsx(k,{label:t,isLabelBold:o,required:!!n.required,details:r}),jsxRuntime.jsx(chunkBAH6YD44_cjs.a.OTP,{...c,...u,onChange:y,status:C}),d&&h&&jsxRuntime.jsx(v,{text:S,includeIcon:false})]})},pn=ui;var te={AddressSelect:Uo,ButtonRadioGroup:Oo,Container:chunkVNKPEU2H_cjs.a,Checkbox:ve,CheckboxGroup:So,CheckboxCardGroup:Co,InputLabel:k,DateSelect:Zo,DateTextMaskInput:ln,TextInput:Pe,Text:ae,TimePicker:Go,TimeSelect:Jo,Radio:we,RadioGroup:Ro,CheckMarkRadio:Do,WelcomeCheckbox:xo,CardRadioGroup:Eo,Number:wo,Select:Lo,SelectMenu:Vo,SentimentSelector:dt,Signature:ko,Submit:chunkA2VXF7CC_cjs.a,LocationSelect:$o,Keyword:Qo,Toggle:chunkZPP2M2HF_cjs.a,FileUpload:en,Tree:chunkZTNO5RDP_cjs.a,DateDropdown:on,OTP:pn};var Ii=()=>Array.from({length:12},(t,r)=>({label:new Date(r,r).toLocaleString("en-US",{month:"long"}),value:r+1})),ki=(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}))},Ri=()=>Array.from({length:110},(t,r)=>{let o=new Date().getFullYear()-r;return {label:o,value:o}}),Ei=({label:e="",details:t=void 0,isLabelBold:r=false,required:o=false,onChange:n=()=>null,defaultValue:a=null,hasError:s=false})=>{let l=react.useRef(null),[i,d]=react.useState(false),u=reactHookForm.useForm({defaultValues:{month:null,day:null,year:null}}),{reset:p}=u;react.useEffect(()=>{if(!a)return;let y=new Date(a);p({month:y.getMonth()+1,day:y.getDate(),year:y.getFullYear()});},[a]);let c=u.watch(),m=ki(c?.month,c?.year);return react.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]),react.useEffect(()=>{l.current&&d(true);},[l,i]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:l}),i&&reactDom.createPortal(jsxRuntime.jsxs(te.Container,{formMethods:u,onSubmit:()=>null,children:[jsxRuntime.jsx(te.InputLabel,{label:e,isLabelBold:r,required:!!o,details:t}),jsxRuntime.jsxs(chunkXJLS5XTZ_cjs.a,{gap:8,hasError:s,children:[jsxRuntime.jsx(te.SelectMenu,{name:"month",options:Ii(),placeholder:"Month",containerStyle:{width:"100%"},sort:false}),jsxRuntime.jsx(te.SelectMenu,{name:"day",options:m,placeholder:"Day",containerStyle:{width:"100%"},sort:false}),jsxRuntime.jsx(te.SelectMenu,{name:"year",options:Ri(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),l.current||document.body)]})},lt=Ei;var Ti=({width:e=25,style:t={},drawerStyle:r={},hidden:o=false,position:n="right",arrowPosition:a="top",variant:s="default",children:l,drawerContent:i,drawerButton:d=void 0,defaultOpen:u=false,config:p="gentle",drawerOpen:c=void 0,setDrawerOpen:m=void 0,buttonStyle:y={},drawerContentStyle:h={}})=>{let[S,C]=react.useState(u),{isMobile:x}=chunkULTFWLWO_cjs.b(),b=n==="left",w=s==="minimal",I=w||x||o?"0rem":"3rem",P=x||o?"0rem":`${e}rem`,f=c!==void 0?c:S,E=B=>{m?m(B):C(B);};return react.useEffect(()=>{u&&E(true);},[u]),jsxRuntime.jsxs(chunkH53FKFPG_cjs.a,{trigger:f,from:b?{paddingLeft:I}:{paddingRight:I},to:b?{paddingLeft:P}:{paddingRight:P},config:p,style:t,animationProps:{reset:o},children:[l,jsxRuntime.jsxs(chunkH53FKFPG_cjs.b,{width:e,trigger:f,bottomArrow:a==="bottom",from:b?{transform:x||w?"translateX(-100%)":`translateX(${3-e}rem)`}:{transform:w||x?"translateX(100%)":`translateX(${e-3}rem)`},to:{transform:w||x?"translateX(0%)":"translateX(0rem)"},config:p,hidden:o,animationProps:{reset:o},isLeft:b,style:r,className:"drawer-content-container",children:[d||jsxRuntime.jsx(chunkNQEASIW2_cjs.a,{from:{transform:w||x?`translateX(${b?"3rem":"-3rem"})`:"translateX(0rem)"},to:{transform:"translateX(0rem)"},trigger:f,style:y,children:jsxRuntime.jsx(chunkH53FKFPG_cjs.c,{onClick:()=>E(!f),children:jsxRuntime.jsx(chunkH53FKFPG_cjs.d,{isLeft:b,trigger:f,from:{transform:`rotate(${b?"180deg":"0deg"})`},to:{transform:`rotate(${b?"0deg":"180deg"})`},children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{})})})}),jsxRuntime.jsx(chunkH53FKFPG_cjs.e,{style:h,trigger:f,from:{opacity:0},to:{opacity:1},children:i})]})]})},Fi=Ti;var Li=({children:e,desktopNavHeight:t=3.75,drawerWidth:r=30,hideDrawerToggle:o=false,isOpen:n,peekWidth:a=2,setIsOpen:s,smoothContentTransitionOnOpen:l=true,styles:i={content:{},wrapper:{},body:{},mask:{},header:{},footer:{}},wrapperMarginTop:d=2.5,...u})=>{let{isDrawerOpen:p,toggleDrawer:c}=chunkE6XN2GQ6_cjs.a({isOpen:n,setIsOpen:s}),m=u.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 ${p?chunkBXFHENQ3_cjs.d.white:chunkBXFHENQ3_cjs.d.green500}`,x={borderTop:C,[y?"borderRight":"borderLeft"]:C},b=p===y?"left":"right";return jsxRuntime.jsxs(chunk3F4VZVIF_cjs.a,{open:true,closable:false,destroyOnClose:false,mask:false,width:p?`${r}rem`:`${a}rem`,placement:m,styles:{content:{background:"transparent",...i.content},wrapper:{height:"50rem",marginTop:`${t+d}rem`,padding:p?"var(--spacing-xxl, 2rem)":0,borderRadius:h,...x,background:"rgba(255, 255, 255, 0.30)",boxShadow:`0px -2px 10px 0px ${chunkBXFHENQ3_cjs.d.green300}`,backdropFilter:"blur(20px)",...i.wrapper},body:{...i.body},mask:{...i.mask},header:{...i.header},footer:{...i.footer}},...u,children:[!o&&jsxRuntime.jsx(chunkP2LLXXPW_cjs.b,{isOpen:p,onClick:c,isLeftPlacement:y,children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:b,color:chunkBXFHENQ3_cjs.d.green700})}),jsxRuntime.jsx(chunkP2LLXXPW_cjs.a,{isLeftPlacement:y,isOpen:p,smoothContentTransitionOnOpen:l,children:e})]})};var bt=({name:e,size:t=22,color:r="green800"})=>{let o=chunkBDFUOPI3_cjs.a[e];return jsxRuntime.jsx(o,{size:t,width:t,height:t,color:chunkBXFHENQ3_cjs.d[r]})};var Vi=({icon:e=void 0,color:t="green800",text:r,onClick:o})=>jsxRuntime.jsx(chunk6AOJPR7C_cjs.a,{color:chunkBXFHENQ3_cjs.d[t],iconPosition:"end",onClick:o,children:jsxRuntime.jsxs(chunkEOPHXSAH_cjs.a,{align:"center",gap:`${chunkBXFHENQ3_cjs.e.xs.rem}rem`,children:[jsxRuntime.jsx(chunk6AOJPR7C_cjs.b,{children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{color:chunkBXFHENQ3_cjs.d[t],direction:"left",size:12})}),jsxRuntime.jsxs(chunkEOPHXSAH_cjs.a,{align:"center",gap:`${chunkBXFHENQ3_cjs.e.xs.rem}rem`,children:[e&&jsxRuntime.jsx(bt,{name:e,color:t}),r]})]})});var cn=({file:e,display:t="card",handleDownload:r=()=>null,className:o=""})=>{let n=()=>{r(e);};return t==="list"?null:jsxRuntime.jsxs(chunk2NACCH4A_cjs.b,{className:o,children:[jsxRuntime.jsxs(chunk2NACCH4A_cjs.c,{children:[jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Image,{}),jsxRuntime.jsx(chunkQRFUIS7R_cjs.a.Header,{children:e.name})]}),jsxRuntime.jsxs(chunk2NACCH4A_cjs.d,{onClick:n,children:[jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.DownloadArrow,{}),"Download"]})]})},_i=({files:e,handleDownload:t,className:r=""})=>jsxRuntime.jsx(chunk2NACCH4A_cjs.a,{className:r,children:e.map(o=>jsxRuntime.jsx(cn,{file:o,handleDownload:t}))}),Ni={Group:_i,Display:cn};function St({className:e="",isActive:t=false,color:r="#000"}){let o=web.useSpring(t?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{className:e,style:{...o,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(chunkBDFUOPI3_cjs.a.Caret,{direction:"up",color:r})})}var Cn={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:true,transitionTimeout:50},Hi=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",expandIconClassName:a="",menuProps:s={menuButton:void 0},caretColor:l="#000",borderColor:i=chunkBXFHENQ3_cjs.d.grey400})=>{let d=react.useRef(null),[u,p]=reactMenu.useMenuState({transition:true}),c=reactMenu.useClick(u.state,p),m=u.state==="open"||u.state==="opening";return react.useEffect(()=>{o(u.state);},[u.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(chunkVAH6ATXD_cjs.c,{className:`${n} ${m?"menu-open":"menu-closed"}`,ref:d,borderColor:i,...c,children:[jsxRuntime.jsx(chunkVAH6ATXD_cjs.a,{children:t}),jsxRuntime.jsx(St,{className:a,isActive:m,color:l}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...u,anchorRef:d,onClose:()=>p(false),onItemClick:r,onMenuChange:o,...Cn,...s,children:e})]})})},Ji=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",menuProps:a={menuButton:void 0}})=>{let s=react.useRef(null),[l,i]=reactMenu.useMenuState({transition:true}),d=reactMenu.useClick(l.state,i),u=l.state==="open"||l.state==="opening";return react.useEffect(()=>{o(l.state);},[l.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(chunkVAH6ATXD_cjs.b,{className:`${n} ${u?"menu-open":"menu-closed"}`,ref:s,...d,children:[t,jsxRuntime.jsx(reactMenu.ControlledMenu,{...l,anchorRef:s,onClose:()=>i(false),onItemClick:r,onMenuChange:o,...Cn,...a,children:e})]})})},Yi=({label:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:t,children:e}),Ki=({label:e,value:t,selected:r=false,onClick:o=()=>null,disabled:n=false,linkTo:a="",className:s=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:`${s} ${r?"active":"inactive"}`,value:t,onClick:o,href:a,disabled:n,children:e}),Qi=({value:e,onChange:t=()=>null,className:r=""})=>jsxRuntime.jsx(reactMenu.FocusableItem,{children:({ref:o})=>jsxRuntime.jsx("input",{className:r,ref:o,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),Zi=({children:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:t,children:e}),ji=({className:e=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:e}),el={Button:Yi,Container:Hi,Wrapper:Ji,Search:Qi,Divider:ji,Header:Zi,Item:Ki};var ol=Ln__default.default.div`
|
|
176
176
|
${({displaySmall:e,searchValue:t})=>e&&t===""&&`
|
|
177
177
|
:has(input:not(input:focus)) {
|
|
178
178
|
height: 50px;
|
|
@@ -208,5 +208,5 @@
|
|
|
208
208
|
.ant-card-body {
|
|
209
209
|
padding: 1rem;
|
|
210
210
|
}
|
|
211
|
-
`,at={Primary:vl,Illustration:Pl,SolaceTip:wl};Object.defineProperty(exports,"ga",{enumerable:true,get:function(){return antd.ConfigProvider}});Object.defineProperty(exports,"L",{enumerable:true,get:function(){return reactHookForm.useForm}});Object.defineProperty(exports,"M",{enumerable:true,get:function(){return reactHookForm.useFormContext}});Object.defineProperty(exports,"N",{enumerable:true,get:function(){return reactHookForm.useFormState}});Object.defineProperty(exports,"O",{enumerable:true,get:function(){return reactHookForm.useWatch}});Object.defineProperty(exports,"P",{enumerable:true,get:function(){return reactHookForm.useFieldArray}});Object.defineProperty(exports,"Q",{enumerable:true,get:function(){return reactHookForm.FormProvider}});Object.defineProperty(exports,"R",{enumerable:true,get:function(){return reactHookForm.Controller}});Object.defineProperty(exports,"S",{enumerable:true,get:function(){return reactHookForm.useController}});exports.$=el;exports.A=Go;exports.B=Jo;exports.C=Qo;exports.D=Zo;exports.E=en;exports.F=on;exports.G=Me;exports.H=dt;exports.I=ln;exports.J=ui;exports.K=pn;exports.T=te;exports.U=lt;exports.V=Fi;exports.W=Li;exports.X=bt;exports.Y=Vi;exports.Z=Ni;exports._=St;exports.a=vl;exports.aa=nl;exports.b=Pl;exports.ba=Ct;exports.c=wl;exports.ca=fl;exports.d=at;exports.da=Tn;exports.e=v;exports.ea=Fn;exports.f=yo;exports.fa=Sl;exports.g=k;exports.h=ae;exports.i=ve;exports.j=So;exports.k=ca;exports.l=Co;exports.m=xo;exports.n=Pe;exports.o=wo;exports.p=Pa;exports.q=ko;exports.r=we;exports.s=Ro;exports.t=Eo;exports.u=Oo;exports.v=Do;exports.w=Lo;exports.x=Vo;exports.y=$o;exports.z=Uo;//# sourceMappingURL=chunk-
|
|
212
|
-
//# sourceMappingURL=chunk-
|
|
211
|
+
`,at={Primary:vl,Illustration:Pl,SolaceTip:wl};Object.defineProperty(exports,"ga",{enumerable:true,get:function(){return antd.ConfigProvider}});Object.defineProperty(exports,"L",{enumerable:true,get:function(){return reactHookForm.useForm}});Object.defineProperty(exports,"M",{enumerable:true,get:function(){return reactHookForm.useFormContext}});Object.defineProperty(exports,"N",{enumerable:true,get:function(){return reactHookForm.useFormState}});Object.defineProperty(exports,"O",{enumerable:true,get:function(){return reactHookForm.useWatch}});Object.defineProperty(exports,"P",{enumerable:true,get:function(){return reactHookForm.useFieldArray}});Object.defineProperty(exports,"Q",{enumerable:true,get:function(){return reactHookForm.FormProvider}});Object.defineProperty(exports,"R",{enumerable:true,get:function(){return reactHookForm.Controller}});Object.defineProperty(exports,"S",{enumerable:true,get:function(){return reactHookForm.useController}});exports.$=el;exports.A=Go;exports.B=Jo;exports.C=Qo;exports.D=Zo;exports.E=en;exports.F=on;exports.G=Me;exports.H=dt;exports.I=ln;exports.J=ui;exports.K=pn;exports.T=te;exports.U=lt;exports.V=Fi;exports.W=Li;exports.X=bt;exports.Y=Vi;exports.Z=Ni;exports._=St;exports.a=vl;exports.aa=nl;exports.b=Pl;exports.ba=Ct;exports.c=wl;exports.ca=fl;exports.d=at;exports.da=Tn;exports.e=v;exports.ea=Fn;exports.f=yo;exports.fa=Sl;exports.g=k;exports.h=ae;exports.i=ve;exports.j=So;exports.k=ca;exports.l=Co;exports.m=xo;exports.n=Pe;exports.o=wo;exports.p=Pa;exports.q=ko;exports.r=we;exports.s=Ro;exports.t=Eo;exports.u=Oo;exports.v=Do;exports.w=Lo;exports.x=Vo;exports.y=$o;exports.z=Uo;//# sourceMappingURL=chunk-VKKJQ3G5.cjs.map
|
|
212
|
+
//# sourceMappingURL=chunk-VKKJQ3G5.cjs.map
|