@solace-health/ui 0.9.1 → 0.9.3

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/index.d.cts CHANGED
@@ -226,6 +226,7 @@ declare type ContainerProps = {
226
226
  className?: string;
227
227
  menuProps?: MenuProps;
228
228
  caretColor?: string;
229
+ borderColor?: string;
229
230
  };
230
231
  declare type ButtonProps = {
231
232
  label: string | JSX.Element;
@@ -251,7 +252,7 @@ declare type HeaderProps = {
251
252
  };
252
253
  declare const _default$3: {
253
254
  Button: ({ label, className }: ButtonProps) => react_jsx_runtime.JSX.Element;
254
- Container: ({ children, cta, onItemClick, onMenuChange, className, menuProps, caretColor, }: ContainerProps) => react_jsx_runtime.JSX.Element;
255
+ Container: ({ children, cta, onItemClick, onMenuChange, className, menuProps, caretColor, borderColor, }: ContainerProps) => react_jsx_runtime.JSX.Element;
255
256
  Search: ({ value, onChange, className, }: SearchProps) => react_jsx_runtime.JSX.Element;
256
257
  Divider: ({ className }: {
257
258
  className?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -226,6 +226,7 @@ declare type ContainerProps = {
226
226
  className?: string;
227
227
  menuProps?: MenuProps;
228
228
  caretColor?: string;
229
+ borderColor?: string;
229
230
  };
230
231
  declare type ButtonProps = {
231
232
  label: string | JSX.Element;
@@ -251,7 +252,7 @@ declare type HeaderProps = {
251
252
  };
252
253
  declare const _default$3: {
253
254
  Button: ({ label, className }: ButtonProps) => react_jsx_runtime.JSX.Element;
254
- Container: ({ children, cta, onItemClick, onMenuChange, className, menuProps, caretColor, }: ContainerProps) => react_jsx_runtime.JSX.Element;
255
+ Container: ({ children, cta, onItemClick, onMenuChange, className, menuProps, caretColor, borderColor, }: ContainerProps) => react_jsx_runtime.JSX.Element;
255
256
  Search: ({ value, onChange, className, }: SearchProps) => react_jsx_runtime.JSX.Element;
256
257
  Divider: ({ className }: {
257
258
  className?: string | undefined;
package/dist/index.js CHANGED
@@ -9,14 +9,14 @@ export { useForm, useFormContext } from 'react-hook-form';
9
9
  import D2, { useState, useEffect, useRef, useCallback } from 'react';
10
10
  import ee from 'dayjs';
11
11
  import Vo from 'react-lottie-player';
12
- import * as x2 from 'contentful';
12
+ import * as b2 from 'contentful';
13
13
  import { useMenuState, useClick, ControlledMenu, MenuButton, MenuItem, FocusableItem, MenuHeader, MenuDivider } from '@szhsin/react-menu';
14
14
  import { DateTime, Duration } from 'luxon';
15
15
  import { IMaskMixin } from 'react-imask';
16
16
  import j5, { getGeocode } from 'use-places-autocomplete';
17
17
  import { useLoadScript } from '@react-google-maps/api';
18
18
 
19
- var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",fail:"#ff0000",gray:"#f3f3f3"},breakpoint:{small:"500px",medium:"800px",large:"1200px"},typography:{family:{body:"Lato, helvetica, sans-serif",heading:"'Mollie Glaston', serif",subHeading:"'Cinzel', sans-serif",script:"'Dancing Script', sans-serif"},weight:{normal:400,medium:500,semiBold:600,bold:700}}},yt={components:{Switch:{handleSize:24,trackHeight:28,trackMinWidth:67},Tabs:{inkBarColor:"#285E50",itemActiveColor:"#285E50",itemSelectedColor:"#285E50",itemHoverColor:"#285E50",titleFontSize:16,colorBorderSecondary:"#AFC8BF"},Segmented:{fontSize:16,borderRadius:6,borderRadiusXS:6,controlHeight:36,controlHeightSM:30,controlHeightLG:40,itemColor:"#555555",itemActiveBg:"rgba(0, 0, 0, 0)",itemSelectedBg:"#fff",itemHoverBg:"rgba(212, 226, 221, 0.2)",colorBgLayout:"rgb(233, 240, 238)",itemHoverColor:"rgb(85, 85, 85)",itemSelectedColor:"#555555"},Collapse:{headerBg:"rgb(255, 255, 255)",colorBorder:"rgb(175, 200, 191)",colorFillAlter:"rgb(255, 255, 255)",fontSize:18,padding:20,contentPadding:"0px 16px 16px",headerPadding:"25px 16px",borderRadiusLG:10}},token:{colorInfo:"#285E50",colorLink:"#285E50",colorWarning:"#D7A13B",colorError:"#EE2932",colorPrimary:"#285E50",colorPrimaryActive:"#1D4339",fontFamily:"Lato, helvetica, sans-serif",fontSize:16,fontSizeSM:14,fontSizeLG:18,borderRadius:8,borderRadiusLG:20,colorBgMask:"rgba(0, 0, 0, 0.2)"}},xt=({children:e,theme:t={}})=>jsx(ConfigProvider,{theme:{...yt,...t},children:e});var bt=({children:e,theme:t={}})=>jsx(xt,{theme:t,children:e});var Be=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(Be||{});var wt=n.p`
19
+ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",fail:"#ff0000",gray:"#f3f3f3"},breakpoint:{small:"500px",medium:"800px",large:"1200px"},typography:{family:{body:"Lato, helvetica, sans-serif",heading:"'Mollie Glaston', serif",subHeading:"'Cinzel', sans-serif",script:"'Dancing Script', sans-serif"},weight:{normal:400,medium:500,semiBold:600,bold:700}}},yt={components:{Switch:{handleSize:24,trackHeight:28,trackMinWidth:67},Tabs:{inkBarColor:"#285E50",itemActiveColor:"#285E50",itemSelectedColor:"#285E50",itemHoverColor:"#285E50",titleFontSize:16,colorBorderSecondary:"#AFC8BF"},Segmented:{fontSize:16,borderRadius:6,borderRadiusXS:6,controlHeight:36,controlHeightSM:30,controlHeightLG:40,itemColor:"#555555",itemActiveBg:"rgba(0, 0, 0, 0)",itemSelectedBg:"#fff",itemHoverBg:"rgba(212, 226, 221, 0.2)",colorBgLayout:"rgb(233, 240, 238)",itemHoverColor:"rgb(85, 85, 85)",itemSelectedColor:"#555555"},Collapse:{headerBg:"rgb(255, 255, 255)",colorBorder:"rgb(175, 200, 191)",colorFillAlter:"rgb(255, 255, 255)",fontSize:18,padding:20,contentPadding:"0px 16px 16px",headerPadding:"25px 16px",borderRadiusLG:10}},token:{colorInfo:"#285E50",colorLink:"#285E50",colorWarning:"#D7A13B",colorError:"#EE2932",colorPrimary:"#285E50",colorPrimaryActive:"#1D4339",fontFamily:"Lato, helvetica, sans-serif",fontSize:16,fontSizeSM:14,fontSizeLG:18,borderRadius:8,borderRadiusLG:20,colorBgMask:"rgba(0, 0, 0, 0.2)"}},bt=({children:e,theme:t={}})=>jsx(ConfigProvider,{theme:{...yt,...t},children:e});var xt=({children:e,theme:t={}})=>jsx(bt,{theme:t,children:e});var Be=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(Be||{});var wt=n.p`
20
20
  transition: font-size 0.25s;
21
21
  color: ${e=>e.color||"#101010"};
22
22
  font-family: ${({theme:e})=>e.typography.family.body};
@@ -119,7 +119,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
119
119
  `}
120
120
  `,Vt=({className:e="",children:t="",size:o="md",allCaps:r=!1,color:i=""})=>jsx(Pt,{allCaps:r,className:e,size:o,style:{color:i},children:t}),De=Vt;var Rt=n.span`
121
121
  margin: 0;
122
- `,Et=({children:e,as:t,length:o=120})=>{let i=((s,l,a="...")=>{let m=s.length>l?a:"";return s.substring(0,l)+m})(e,o);return jsx(Rt,{as:t,children:i})},Te=Et;var c={Body:Re,Display:Ee,Error:q,Header:De,Truncated:Te};var _t=({size:e=31})=>jsx("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M15.3559 14.2494C13.361 14.2494 11.6748 13.5607 10.2973 12.1832C8.91986 10.8058 8.23113 9.11961 8.23113 7.12469C8.23113 5.12978 8.91986 3.4436 10.2973 2.06616C11.6748 0.688721 13.361 0 15.3559 0C17.3508 0 19.037 0.688721 20.4145 2.06616C21.7919 3.4436 22.4807 5.12978 22.4807 7.12469C22.4807 9.11961 21.7919 10.8058 20.4145 12.1832C19.037 13.5607 17.3508 14.2494 15.3559 14.2494ZM0.5 31V27.1345C0.5 25.8207 0.777916 24.6964 1.33375 23.7616C1.88958 22.8268 2.6728 22.1068 3.68341 21.6015C5.55303 20.6414 7.44791 19.934 9.36806 19.4792C11.2882 19.0244 13.2842 18.7971 15.3559 18.7971C17.4276 18.7971 19.4236 19.0118 21.3437 19.4413C23.2639 19.8708 25.1588 20.5909 27.0284 21.6015C28.039 22.0562 28.8222 22.7637 29.378 23.7237C29.9339 24.6838 30.2118 25.8207 30.2118 27.1345V31H0.5Z",fill:"white"})}),Ot=n(c.Display)`
122
+ `,Et=({children:e,as:t,length:o=120})=>{let i=((s,l,a="...")=>{let c=s.length>l?a:"";return s.substring(0,l)+c})(e,o);return jsx(Rt,{as:t,children:i})},Te=Et;var d={Body:Re,Display:Ee,Error:q,Header:De,Truncated:Te};var _t=({size:e=31})=>jsx("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M15.3559 14.2494C13.361 14.2494 11.6748 13.5607 10.2973 12.1832C8.91986 10.8058 8.23113 9.11961 8.23113 7.12469C8.23113 5.12978 8.91986 3.4436 10.2973 2.06616C11.6748 0.688721 13.361 0 15.3559 0C17.3508 0 19.037 0.688721 20.4145 2.06616C21.7919 3.4436 22.4807 5.12978 22.4807 7.12469C22.4807 9.11961 21.7919 10.8058 20.4145 12.1832C19.037 13.5607 17.3508 14.2494 15.3559 14.2494ZM0.5 31V27.1345C0.5 25.8207 0.777916 24.6964 1.33375 23.7616C1.88958 22.8268 2.6728 22.1068 3.68341 21.6015C5.55303 20.6414 7.44791 19.934 9.36806 19.4792C11.2882 19.0244 13.2842 18.7971 15.3559 18.7971C17.4276 18.7971 19.4236 19.0118 21.3437 19.4413C23.2639 19.8708 25.1588 20.5909 27.0284 21.6015C28.039 22.0562 28.8222 22.7637 29.378 23.7237C29.9339 24.6838 30.2118 25.8207 30.2118 27.1345V31H0.5Z",fill:"white"})}),Ot=n(d.Display)`
123
123
  color: white;
124
124
  `,$t=({size:e=46,style:t={},src:o="",user:r={profile_image_url:"",first_name:"",last_name:""}})=>{let i={flex:"none",display:"flex",alignItems:"center",justifyContent:"center",...t};return o||r.profile_image_url?jsx(Avatar,{size:e,draggable:!1,style:i,src:o||r.profile_image_url}):r.first_name&&r.last_name?jsx(Avatar,{size:e,draggable:!1,gap:0,style:{backgroundColor:"#285E50",color:"white",...i},children:jsxs(Ot,{size:"xs",children:[r.first_name[0],r.last_name[0]]})}):jsx(Avatar,{size:e,gap:6,draggable:!1,style:{backgroundColor:"#285E50",padding:8,...i},icon:jsx(_t,{})})},Zt=$t;var Q=n(Button)`
125
125
  height: 50px;
@@ -200,7 +200,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
200
200
  padding-top: 0;
201
201
  }
202
202
  }
203
- `,ro=e=>{let t=get(e,"isActive",!1),o=useSpring(t?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:o,children:jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})},no=({items:e,onChange:t=()=>null})=>{let o=Array.isArray(e)?e:[e];return jsx(oo,{items:o,expandIcon:ro,defaultActiveKey:["1"],onChange:i=>t(i),expandIconPosition:"end"})},io=no;var lo=({value:e=null,onChange:t,startRange:o=null,endRange:r=null})=>{let[i,s]=useState(!1);return jsx(DatePicker,{disabledDate:a=>a?!!(o&&a<ee(o).endOf("day")||r&&a>ee(r).endOf("day")):!1,onChange:(a,m)=>{t&&t(m);},onFocus:()=>{s(!0);},onBlur:()=>{s(!1);},value:e?ee(e):ee(),style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:i?N.colors.secondaryGreen:"#5a5a5a",padding:"20px 23px",backgroundColor:"#fff",fontFamily:N.typography.family.body,fontWeight:N.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:i?`0 0 0 1px ${N.colors.secondaryGreen}`:"none"}})},he=lo;var mo=({isOpen:e,onClose:t,children:o,title:r="",placement:i="bottom",headerStyle:s={display:"none"},...l})=>{let a=i==="bottom"?{borderTopLeftRadius:32,borderTopRightRadius:32}:{borderBottomLeftRadius:32,borderBottomRightRadius:32};return jsx(Drawer,{style:a,headerStyle:s,title:r,placement:i,onClose:t,open:e,contentWrapperStyle:{...a},...l,children:o})},fo=mo;var Oe=({color:e="#101010"})=>jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:e,fill:"none",strokeMiterlimit:"10",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M8 12H16",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M12 16L12 8",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});var $e=({color:e="#101010"})=>jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{clipPath:"url(#clip0_737_13769)",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4824 3.49935V4.8833H19.5883H19.59V4.88688C20.2552 4.88867 20.8581 5.16797 21.2934 5.62093C21.7253 6.07031 21.9948 6.69157 21.9965 7.37907H22V7.38265V20.5007V20.5024H21.9965C21.9948 21.1899 21.7253 21.8148 21.2882 22.2677C20.8546 22.7153 20.2552 22.9946 19.5918 22.9964V23H19.5883H8.92926H8.92753V22.9964C8.26414 22.9946 7.6595 22.7153 7.22415 22.2624C6.79226 21.813 6.52276 21.1917 6.52103 20.5042H6.51758V20.5007V17.5627H4.41168H4.40995V17.5591C3.74657 17.5573 3.14192 17.278 2.70657 16.825C2.27468 16.3757 2.00518 15.7544 2.00346 15.0669H2V15.0633V3.49935V3.49756H2.00346C2.00518 2.80827 2.27641 2.18343 2.71176 1.73226C3.14537 1.28467 3.74484 1.00537 4.40822 1.00358V1H4.41168H15.0707H15.0725V1.00358C15.7376 1.00537 16.3405 1.28467 16.7758 1.73763C17.2077 2.18701 17.4772 2.80827 17.479 3.49577H17.4824V3.49935ZM15.6547 4.8833V3.49935V3.49577H15.6581C15.6581 3.33285 15.5907 3.18245 15.4836 3.07145C15.3783 2.96224 15.2314 2.89242 15.0742 2.89242V2.896H15.0725H4.41341H4.40995V2.89242C4.25274 2.89242 4.10763 2.96224 4.00052 3.07324C3.89514 3.18245 3.82776 3.33464 3.82776 3.49756H3.83122V3.49935V15.0633V15.0669H3.82776C3.82776 15.2298 3.89514 15.3802 4.00225 15.4912C4.10763 15.6004 4.25447 15.6702 4.41168 15.6702V15.6667H4.41341H6.51931V7.38265V7.38086H6.52276C6.52449 6.69157 6.79572 6.06673 7.23106 5.61556C7.66468 5.16797 8.26414 4.88867 8.92753 4.88688V4.8833H8.93098H15.6547ZM20.1705 20.5007V7.38265V7.37907H20.174C20.174 7.21615 20.1066 7.06576 19.9995 6.95475C19.8941 6.84554 19.7473 6.77572 19.59 6.77572V6.7793H19.5883H8.92926H8.9258V6.77572C8.76859 6.77572 8.62348 6.84554 8.51637 6.95654C8.41099 7.06576 8.34361 7.21794 8.34361 7.38086H8.34707V7.38265V20.5007V20.5042H8.34361C8.34361 20.6672 8.41099 20.8175 8.5181 20.9285C8.62348 21.0378 8.77032 21.1076 8.92753 21.1076V21.104H8.92926H19.5883H19.5918V21.1076C19.749 21.1076 19.8941 21.0378 20.0012 20.9268C20.1066 20.8175 20.174 20.6654 20.174 20.5024H20.1705V20.5007Z",fill:e})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_737_13769",children:jsx("rect",{width:"20",height:"22",fill:"white",transform:"translate(2 1)"})})})]});var Ae=({color:e="#555555",direction:t="left"})=>jsx("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${{left:"0deg",up:"90deg",right:"180deg",down:"270deg"}[t]})`},children:jsx("path",{d:"M8.33162 2.58137C8.72214 2.19085 8.72214 1.55769 8.33162 1.16716C7.94109 0.776637 7.30793 0.776637 6.91741 1.16716L0.792405 7.29216C0.401881 7.68269 0.401881 8.31585 0.792405 8.70637L6.91741 14.8314C7.30793 15.2219 7.94109 15.2219 8.33162 14.8314C8.72214 14.4409 8.72214 13.8077 8.33162 13.4172L2.91373 7.99927L8.33162 2.58137Z",fill:e})});var Fe=()=>jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M3.83398 6.95215H17.1673",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{fill:"none",d:"M16.334 3.61865H4.66732C4.20708 3.61865 3.83398 3.99175 3.83398 4.45199V16.1187C3.83398 16.5789 4.20708 16.952 4.66732 16.952H16.334C16.7942 16.952 17.1673 16.5789 17.1673 16.1187V4.45199C17.1673 3.99175 16.7942 3.61865 16.334 3.61865Z",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M13.834 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M7.16602 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"})]});var Ie=n.div`
203
+ `,ro=e=>{let t=get(e,"isActive",!1),o=useSpring(t?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:o,children:jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})},no=({items:e,onChange:t=()=>null})=>{let o=Array.isArray(e)?e:[e];return jsx(oo,{items:o,expandIcon:ro,defaultActiveKey:["1"],onChange:i=>t(i),expandIconPosition:"end"})},io=no;var lo=({value:e=null,onChange:t,startRange:o=null,endRange:r=null})=>{let[i,s]=useState(!1);return jsx(DatePicker,{disabledDate:a=>a?!!(o&&a<ee(o).endOf("day")||r&&a>ee(r).endOf("day")):!1,onChange:(a,c)=>{t&&t(c);},onFocus:()=>{s(!0);},onBlur:()=>{s(!1);},value:e?ee(e):ee(),style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:i?N.colors.secondaryGreen:"#5a5a5a",padding:"20px 23px",backgroundColor:"#fff",fontFamily:N.typography.family.body,fontWeight:N.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:i?`0 0 0 1px ${N.colors.secondaryGreen}`:"none"}})},he=lo;var mo=({isOpen:e,onClose:t,children:o,title:r="",placement:i="bottom",headerStyle:s={display:"none"},...l})=>{let a=i==="bottom"?{borderTopLeftRadius:32,borderTopRightRadius:32}:{borderBottomLeftRadius:32,borderBottomRightRadius:32};return jsx(Drawer,{style:a,headerStyle:s,title:r,placement:i,onClose:t,open:e,contentWrapperStyle:{...a},...l,children:o})},fo=mo;var Oe=({color:e="#101010"})=>jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:e,fill:"none",strokeMiterlimit:"10",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M8 12H16",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M12 16L12 8",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});var $e=({color:e="#101010"})=>jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{clipPath:"url(#clip0_737_13769)",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4824 3.49935V4.8833H19.5883H19.59V4.88688C20.2552 4.88867 20.8581 5.16797 21.2934 5.62093C21.7253 6.07031 21.9948 6.69157 21.9965 7.37907H22V7.38265V20.5007V20.5024H21.9965C21.9948 21.1899 21.7253 21.8148 21.2882 22.2677C20.8546 22.7153 20.2552 22.9946 19.5918 22.9964V23H19.5883H8.92926H8.92753V22.9964C8.26414 22.9946 7.6595 22.7153 7.22415 22.2624C6.79226 21.813 6.52276 21.1917 6.52103 20.5042H6.51758V20.5007V17.5627H4.41168H4.40995V17.5591C3.74657 17.5573 3.14192 17.278 2.70657 16.825C2.27468 16.3757 2.00518 15.7544 2.00346 15.0669H2V15.0633V3.49935V3.49756H2.00346C2.00518 2.80827 2.27641 2.18343 2.71176 1.73226C3.14537 1.28467 3.74484 1.00537 4.40822 1.00358V1H4.41168H15.0707H15.0725V1.00358C15.7376 1.00537 16.3405 1.28467 16.7758 1.73763C17.2077 2.18701 17.4772 2.80827 17.479 3.49577H17.4824V3.49935ZM15.6547 4.8833V3.49935V3.49577H15.6581C15.6581 3.33285 15.5907 3.18245 15.4836 3.07145C15.3783 2.96224 15.2314 2.89242 15.0742 2.89242V2.896H15.0725H4.41341H4.40995V2.89242C4.25274 2.89242 4.10763 2.96224 4.00052 3.07324C3.89514 3.18245 3.82776 3.33464 3.82776 3.49756H3.83122V3.49935V15.0633V15.0669H3.82776C3.82776 15.2298 3.89514 15.3802 4.00225 15.4912C4.10763 15.6004 4.25447 15.6702 4.41168 15.6702V15.6667H4.41341H6.51931V7.38265V7.38086H6.52276C6.52449 6.69157 6.79572 6.06673 7.23106 5.61556C7.66468 5.16797 8.26414 4.88867 8.92753 4.88688V4.8833H8.93098H15.6547ZM20.1705 20.5007V7.38265V7.37907H20.174C20.174 7.21615 20.1066 7.06576 19.9995 6.95475C19.8941 6.84554 19.7473 6.77572 19.59 6.77572V6.7793H19.5883H8.92926H8.9258V6.77572C8.76859 6.77572 8.62348 6.84554 8.51637 6.95654C8.41099 7.06576 8.34361 7.21794 8.34361 7.38086H8.34707V7.38265V20.5007V20.5042H8.34361C8.34361 20.6672 8.41099 20.8175 8.5181 20.9285C8.62348 21.0378 8.77032 21.1076 8.92753 21.1076V21.104H8.92926H19.5883H19.5918V21.1076C19.749 21.1076 19.8941 21.0378 20.0012 20.9268C20.1066 20.8175 20.174 20.6654 20.174 20.5024H20.1705V20.5007Z",fill:e})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_737_13769",children:jsx("rect",{width:"20",height:"22",fill:"white",transform:"translate(2 1)"})})})]});var Ae=({color:e="#555555",direction:t="left"})=>jsx("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${{left:"0deg",up:"90deg",right:"180deg",down:"270deg"}[t]})`},children:jsx("path",{d:"M8.33162 2.58137C8.72214 2.19085 8.72214 1.55769 8.33162 1.16716C7.94109 0.776637 7.30793 0.776637 6.91741 1.16716L0.792405 7.29216C0.401881 7.68269 0.401881 8.31585 0.792405 8.70637L6.91741 14.8314C7.30793 15.2219 7.94109 15.2219 8.33162 14.8314C8.72214 14.4409 8.72214 13.8077 8.33162 13.4172L2.91373 7.99927L8.33162 2.58137Z",fill:e})});var Fe=()=>jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M3.83398 6.95215H17.1673",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{fill:"none",d:"M16.334 3.61865H4.66732C4.20708 3.61865 3.83398 3.99175 3.83398 4.45199V16.1187C3.83398 16.5789 4.20708 16.952 4.66732 16.952H16.334C16.7942 16.952 17.1673 16.5789 17.1673 16.1187V4.45199C17.1673 3.99175 16.7942 3.61865 16.334 3.61865Z",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M13.834 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M7.16602 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"})]});var Ie=n.div`
204
204
  border-radius: 6px;
205
205
  border: 1px solid #285e50;
206
206
  background: ${({checked:e})=>e?"#285e50":"#fff"};
@@ -265,7 +265,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
265
265
  stroke: ${({color:e})=>e||"#fff"};
266
266
  }
267
267
  }
268
- `,be=({color:e=void 0,size:t="sm"})=>jsx(Mo,{color:e,size:t,children:jsx("div",{className:"loader",children:jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var zo=(o=>(o.LOADING_LISTINGS="loadingListings",o.LOADING_ACCOUNT="loadingAccount",o))(zo||{}),A=class{client;constructor(t){this.client=x2.createClient(t);}async getLottieFile({slug:t}){let r=(await this.client.getEntries({content_type:"lottie"})).items.find(i=>i.fields.slug===t);return r?r.fields.lottieFile:(console.warn(`Lottie file not found for slug ${t}`),null)}async getImage(t){let r=(await this.client.getEntries({content_type:"image"})).items.find(i=>i.fields.slug===t);return r?r.fields.image.fields.file.url:null}};var Eo=({animationData:e,height:t,width:o,loop:r})=>{let i=useSpring({from:{opacity:0},to:{opacity:1}});return jsx(animated.div,{style:i,children:jsx(Vo,{loop:r,animationData:e,play:!0,style:{width:o,height:t},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},Do=({height:e,width:t,loop:o,slug:r,contentfulConfig:i})=>{let[s,l]=useState();return useEffect(()=>{new A(i).getLottieFile({slug:r}).then(a=>{l(a);});},[]),s?jsx(Eo,{animationData:s,height:e,width:t,loop:o}):null};var $o=n(Modal)`
268
+ `,xe=({color:e=void 0,size:t="sm"})=>jsx(Mo,{color:e,size:t,children:jsx("div",{className:"loader",children:jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var zo=(o=>(o.LOADING_LISTINGS="loadingListings",o.LOADING_ACCOUNT="loadingAccount",o))(zo||{}),A=class{client;constructor(t){this.client=b2.createClient(t);}async getLottieFile({slug:t}){let r=(await this.client.getEntries({content_type:"lottie"})).items.find(i=>i.fields.slug===t);return r?r.fields.lottieFile:(console.warn(`Lottie file not found for slug ${t}`),null)}async getImage(t){let r=(await this.client.getEntries({content_type:"image"})).items.find(i=>i.fields.slug===t);return r?r.fields.image.fields.file.url:null}};var Eo=({animationData:e,height:t,width:o,loop:r})=>{let i=useSpring({from:{opacity:0},to:{opacity:1}});return jsx(animated.div,{style:i,children:jsx(Vo,{loop:r,animationData:e,play:!0,style:{width:o,height:t},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},Do=({height:e,width:t,loop:o,slug:r,contentfulConfig:i})=>{let[s,l]=useState();return useEffect(()=>{new A(i).getLottieFile({slug:r}).then(a=>{l(a);});},[]),s?jsx(Eo,{animationData:s,height:e,width:t,loop:o}):null};var $o=n(Modal)`
269
269
  border-radius: 20px;
270
270
  @media (max-width: 620px) {
271
271
  max-width: 100dvw;
@@ -300,7 +300,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
300
300
  margin-right: 10px;
301
301
  `,M2=n.div`
302
302
  display: flex;
303
- border: 1px solid #555555;
303
+ border: ${e=>`1px solid ${e?.borderColor?e.borderColor:"#555555"}`};
304
304
  height: 50px;
305
305
  border-radius: 8px;
306
306
  padding: 0 18px;
@@ -370,7 +370,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
370
370
  outline: none;
371
371
  }
372
372
  .szh-menu__item--hover {
373
- background-color: #E9F0EE;
373
+ background-color: #e9f0ee;
374
374
  }
375
375
  .szh-menu__item--focusable {
376
376
  cursor: default;
@@ -510,36 +510,35 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
510
510
  .szh-menu--state-opening.szh-menu--dir-left {
511
511
  animation: szh-menu-show-slide-left 0.15s ease-out;
512
512
  }
513
-
513
+
514
514
  .szh-menu--state-closing.szh-menu--dir-left {
515
515
  animation: szh-menu-hide-slide-left 0.15s ease-in forwards;
516
516
  }
517
-
517
+
518
518
  .szh-menu--state-opening.szh-menu--dir-right {
519
519
  animation: szh-menu-show-slide-right 0.15s ease-out;
520
520
  }
521
-
521
+
522
522
  .szh-menu--state-closing.szh-menu--dir-right {
523
523
  animation: szh-menu-hide-slide-right 0.15s ease-in forwards;
524
524
  }
525
-
525
+
526
526
  .szh-menu--state-opening.szh-menu--dir-top {
527
527
  animation: szh-menu-show-slide-top 0.15s ease-out;
528
528
  }
529
-
529
+
530
530
  .szh-menu--state-closing.szh-menu--dir-top {
531
531
  animation: szh-menu-hide-slide-top 0.15s ease-in forwards;
532
532
  }
533
-
533
+
534
534
  .szh-menu--state-opening.szh-menu--dir-bottom {
535
535
  animation: szh-menu-show-slide-bottom 0.15s ease-out;
536
536
  }
537
-
537
+
538
538
  .szh-menu--state-closing.szh-menu--dir-bottom {
539
539
  animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;
540
540
  }
541
-
542
- `;function ve({isActive:e,color:t="#000"}){let o=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...o,display:"flex",alignItems:"center"},children:jsx(R.Caret,{direction:"up",color:t})})}var m1=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:i="",menuProps:s={menuButton:null},caretColor:l="#000"})=>{let a={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},m=useRef(null),[d,u]=useMenuState({transition:!0}),g=useClick(d.state,u),C=d.state==="open"||d.state==="opening";return useEffect(()=>{r(d.state);},[d.state]),jsx(Fragment,{children:jsxs(M2,{className:`${i} ${C?"menu-open":"menu-closed"}`,ref:m,...g,children:[jsx(S2,{children:t}),jsx(ve,{isActive:C,color:l}),jsx(ControlledMenu,{...d,anchorRef:m,onClose:()=>u(!1),onItemClick:o,onMenuChange:r,...a,...s,children:e})]})})},f1=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),g1=({label:e,value:t,selected:o=!1,onClick:r=()=>null,disabled:i=!1,linkTo:s="",className:l=""})=>jsx(MenuItem,{className:`${l} ${o?"active":"inactive"}`,value:t,onClick:r,href:s,disabled:i,children:e}),u1=({value:e,onChange:t=()=>null,className:o=""})=>jsx(FocusableItem,{children:({ref:r})=>jsx("input",{className:o,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),C1=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),h1=({className:e=""})=>jsx(MenuDivider,{className:e}),J={Button:f1,Container:m1,Search:u1,Divider:h1,Header:C1,Item:g1};n.div`
541
+ `;function ve({isActive:e,color:t="#000"}){let o=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...o,display:"flex",alignItems:"center"},children:jsx(R.Caret,{direction:"up",color:t})})}var m1=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:i="",menuProps:s={menuButton:null},caretColor:l="#000",borderColor:a="#555555"})=>{let c={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},m=useRef(null),[f,g]=useMenuState({transition:!0}),C=useClick(f.state,g),h=f.state==="open"||f.state==="opening";return useEffect(()=>{r(f.state);},[f.state]),jsx(Fragment,{children:jsxs(M2,{className:`${i} ${h?"menu-open":"menu-closed"}`,ref:m,borderColor:a,...C,children:[jsx(S2,{children:t}),jsx(ve,{isActive:h,color:l}),jsx(ControlledMenu,{...f,anchorRef:m,onClose:()=>g(!1),onItemClick:o,onMenuChange:r,...c,...s,children:e})]})})},f1=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),g1=({label:e,value:t,selected:o=!1,onClick:r=()=>null,disabled:i=!1,linkTo:s="",className:l=""})=>jsx(MenuItem,{className:`${l} ${o?"active":"inactive"}`,value:t,onClick:r,href:s,disabled:i,children:e}),u1=({value:e,onChange:t=()=>null,className:o=""})=>jsx(FocusableItem,{children:({ref:r})=>jsx("input",{className:o,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),C1=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),h1=({className:e=""})=>jsx(MenuDivider,{className:e}),J={Button:f1,Container:m1,Search:u1,Divider:h1,Header:C1,Item:g1};n.div`
543
542
  padding: 0 20px;
544
543
  border-radius: 10px;
545
544
  border: 1px solid #7f7f7f;
@@ -551,16 +550,16 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
551
550
  align-items: center;
552
551
  box-sizing: border-box;
553
552
  `;var P2=n(J.Container)`
554
- max-width: 135px;
553
+ max-width: 140px;
555
554
  `,V2=n(J.Item)`
556
555
  &.szh-menu__item {
557
- min-width: 140px;
556
+ min-width: 145px;
558
557
  }
559
558
  `;n(J.Divider)`
560
559
  &.szh-menu__divider {
561
560
  margin: 0;
562
561
  }
563
- `;var L1=({startTime:e="00:00",endTime:t="24:00",interval:o=30,defaultValue:r="",onChange:i=()=>null})=>{let[s,l]=useState(),m=useCallback(()=>{let u=DateTime.fromFormat(t,"HH:mm"),g=Duration.fromObject({minutes:o}),C=[],h=DateTime.fromFormat(e,"hh:mm");for(;h<=u;)C.push({label:h.toFormat("h:mm a"),value:{hour:h.toFormat("HH"),min:h.toFormat("mm"),raw:h.toFormat("HH:mm"),formatted:h.toFormat("h:mm a")}}),h=h.plus(g);return C},[e,t,o,r])();return useEffect(()=>{let u=m.find(g=>g.value.raw===(r||e));l(u);},[r]),jsx(P2,{onItemClick:u=>{let g=m.find(C=>C.value.raw===u.value.raw);l(g),i(u);},cta:jsx(c.Body,{size:"lg",children:s?.value.formatted||"-"}),children:m.map(u=>jsx(V2,{label:u.label,value:u.value,selected:u.value.raw===s?.value.raw},u.label))})},Le=L1;var H1=({defaultState:e=!1,name:t,label:o={active:"YES",inactive:"NO"},handleEvent:r=null,value:i,disabled:s=!1,loading:l=!1})=>{let a=useFormContext();useEffect(()=>{a&&e&&a.setValue(t,i);},[]);let m=d=>{s||(a&&a.setValue(t,d?i:null),r&&r(d));};return jsx(Switch,{defaultChecked:e,checkedChildren:o.active,unCheckedChildren:o.inactive,loading:l,disabled:s,onChange:m})},Se=H1;var B1=n.div`
562
+ `;var L1=({startTime:e="00:00",endTime:t="24:00",interval:o=30,defaultValue:r="",onChange:i=()=>null})=>{let[s,l]=useState(),c=useCallback(()=>{let f=DateTime.fromFormat(t,"HH:mm"),g=Duration.fromObject({minutes:o}),C=[],h=DateTime.fromFormat(e,"hh:mm");for(;h<=f;)C.push({label:h.toFormat("h:mm a"),value:{hour:h.toFormat("HH"),min:h.toFormat("mm"),raw:h.toFormat("HH:mm"),formatted:h.toFormat("h:mm a")}}),h=h.plus(g);return C},[e,t,o,r])();return useEffect(()=>{let f=c.find(g=>g.value.raw===(r||e));l(f);},[r]),jsx(P2,{onItemClick:f=>{let g=c.find(C=>C.value.raw===f.value.raw);l(g),i(f);},cta:jsx(d.Body,{size:"lg",children:s?.value.formatted||"-"}),children:c.map(f=>jsx(V2,{label:f.label,value:f.value,selected:f.value.raw===s?.value.raw},f.label))})},Le=L1;var H1=({defaultState:e=!1,name:t,label:o={active:"YES",inactive:"NO"},handleEvent:r=null,value:i,disabled:s=!1,loading:l=!1})=>{let a=useFormContext();useEffect(()=>{a&&e&&a.setValue(t,i);},[]);let c=m=>{s||(a&&a.setValue(t,m?i:null),r&&r(m));};return jsx(Switch,{defaultChecked:e,checkedChildren:o.active,unCheckedChildren:o.inactive,loading:l,disabled:s,onChange:c})},Se=H1;var B1=n.div`
564
563
  display: inline-block;
565
564
  `,R1=({className:e="",children:t,content:o,...r})=>jsx(Tooltip,{placement:"topLeft",color:"#E9F0EE",title:o,arrow:{pointAtCenter:!0},overlayClassName:e,...r,children:jsx(B1,{children:t})}),E1=n(R1)`
566
565
  max-width: 355px;
@@ -661,11 +660,11 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
661
660
  font-size: 16px;
662
661
  font-weight: 400;
663
662
  line-height: normal;
664
- `,O2=({steps:e})=>{let t=e.map((o,r)=>jsxs(I1,{children:[jsx("div",{children:jsx(N1,{children:r+1})}),jsxs(G1,{children:[jsx(W1,{children:o.title}),jsx(X1,{children:o.description})]})]},o.title));return jsx(F1,{children:t})};var K1={Horizontal:T2,Vertical:O2};var q1=n(c.Body)`
663
+ `,O2=({steps:e})=>{let t=e.map((o,r)=>jsxs(I1,{children:[jsx("div",{children:jsx(N1,{children:r+1})}),jsxs(G1,{children:[jsx(W1,{children:o.title}),jsx(X1,{children:o.description})]})]},o.title));return jsx(F1,{children:t})};var K1={Horizontal:T2,Vertical:O2};var q1=n(d.Body)`
665
664
  margin-bottom: 5px;
666
665
  font-weight: ${({isLabelBold:e})=>e?"bold":"regular"};
667
666
  text-align: start;
668
- `,Q1=n(c.Body)`
667
+ `,Q1=n(d.Body)`
669
668
  margin-bottom: 5px;
670
669
  `,j1=n.input`
671
670
  width: 100%;
@@ -710,9 +709,9 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
710
709
  outline-style: solid;
711
710
  border-color: ${({theme:e})=>e.colors.secondaryGreen};
712
711
  }
713
- `,$2=n(c.Body)`
712
+ `,$2=n(d.Body)`
714
713
  margin-bottom: 24px;
715
- `,o5=({name:e,label:t=null,details:o=null,type:r="text",options:i={},previewOnly:s=!1,textArea:l=!1,marginBottom:a="24px",isLabelBold:m=!0,format:d=String,errorMessage:u="This field is required",...g})=>{let{register:C,control:h,getValues:b,formState:{errors:v}}=useFormContext();return jsxs(Fragment,{children:[t&&jsx(q1,{size:"lg",isLabelBold:m,children:t}),o&&jsx(Q1,{children:o}),l?jsx("div",{children:s?jsx($2,{size:"md",children:b(e)||"N/A"}):jsx(t5,{...g,...C(e,i),marginBottom:a})}):jsx("div",{style:{width:"100%"},children:s?jsx($2,{size:"md",children:b(e)||"N/A"}):jsxs("div",{style:{marginBottom:v?.[e]?"6px":a,display:"flex",flexDirection:"column"},children:[jsx(Controller,{render:S=>jsx(e5,{...g,unmask:!1,mask:d,name:S.field.name,onBlur:S.field.onBlur,defaultValue:i.value||S.field.value,onAccept:V=>S.field.onChange({target:{value:V}}),marginBottom:a,type:r}),name:e,rules:i,control:h}),v?.[e]&&jsx(q,{children:u})]})})]})},F=o5;var i5=n.div`
714
+ `,o5=({name:e,label:t=null,details:o=null,type:r="text",options:i={},previewOnly:s=!1,textArea:l=!1,marginBottom:a="24px",isLabelBold:c=!0,format:m=String,errorMessage:f="This field is required",...g})=>{let{register:C,control:h,getValues:x,formState:{errors:v}}=useFormContext();return jsxs(Fragment,{children:[t&&jsx(q1,{size:"lg",isLabelBold:c,children:t}),o&&jsx(Q1,{children:o}),l?jsx("div",{children:s?jsx($2,{size:"md",children:x(e)||"N/A"}):jsx(t5,{...g,...C(e,i),marginBottom:a})}):jsx("div",{style:{width:"100%"},children:s?jsx($2,{size:"md",children:x(e)||"N/A"}):jsxs("div",{style:{marginBottom:v?.[e]?"6px":a,display:"flex",flexDirection:"column"},children:[jsx(Controller,{render:S=>jsx(e5,{...g,unmask:!1,mask:m,name:S.field.name,onBlur:S.field.onBlur,defaultValue:i.value||S.field.value,onAccept:V=>S.field.onChange({target:{value:V}}),marginBottom:a,type:r}),name:e,rules:i,control:h}),v?.[e]&&jsx(q,{children:f})]})})]})},F=o5;var i5=n.div`
716
715
  margin-bottom: 32px;
717
716
  `,s5=n.div`
718
717
  display: ${({inline:e})=>e?"flex":"block"};
@@ -785,10 +784,10 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
785
784
  &:checked + label::before {
786
785
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMC42NjY3IDEuNTAwMTJMNC4yNTAwNCA3LjkxNjc5TDEuMzMzMzcgNS4wMDAxMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==");
787
786
  }
788
- `,p5=n(c.Body)`
787
+ `,p5=n(d.Body)`
789
788
  margin-bottom: 5px;
790
789
  font-weight: bold;
791
- `,d5=n(c.Body)`
790
+ `,d5=n(d.Body)`
792
791
  margin-bottom: 5px;
793
792
  `,c5=n.div`
794
793
  display: flex;
@@ -799,7 +798,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
799
798
  input[type="text"] {
800
799
  margin: 0;
801
800
  }
802
- `,le=({option:e,name:t,...o})=>{let{register:r}=useFormContext();return jsxs(a5,{children:[jsx(l5,{type:"checkbox",value:e.value,...r(t),...o}),jsx("label",{htmlFor:t,children:jsx(c.Body,{children:e.label})})]})},A2=({name:e,label:t,details:o="",options:r=[],inline:i=!1,other:s={},...l})=>jsxs(i5,{children:[jsx(p5,{size:"lg",children:t}),o&&jsx(d5,{children:o}),jsxs(s5,{inline:i,children:[r.map(a=>jsx(le,{option:a,name:e,...l},`${e}-${a.value}`)),s.label&&jsxs(c5,{children:[jsx(le,{option:{label:s.label,value:"other"},name:e,...l},e),jsx(F,{name:`${e}_other`,...l})]})]})]});var g5=({formMethods:e=null,formOptions:t={},onSubmit:o,children:r,className:i=""})=>{let s={mode:"onBlur",...t},l=useForm(s),a=e||l,m=d=>o(d);return jsx(FormProvider,{...a,children:jsx("form",{className:i,onSubmit:a.handleSubmit(m),children:r})})},I2=g5;var C5=({label:e,name:t,options:o={},...r})=>{let{register:i}=useFormContext(),s=n.div`
801
+ `,le=({option:e,name:t,...o})=>{let{register:r}=useFormContext();return jsxs(a5,{children:[jsx(l5,{type:"checkbox",value:e.value,...r(t),...o}),jsx("label",{htmlFor:t,children:jsx(d.Body,{children:e.label})})]})},A2=({name:e,label:t,details:o="",options:r=[],inline:i=!1,other:s={},...l})=>jsxs(i5,{children:[jsx(p5,{size:"lg",children:t}),o&&jsx(d5,{children:o}),jsxs(s5,{inline:i,children:[r.map(a=>jsx(le,{option:a,name:e,...l},`${e}-${a.value}`)),s.label&&jsxs(c5,{children:[jsx(le,{option:{label:s.label,value:"other"},name:e,...l},e),jsx(F,{name:`${e}_other`,...l})]})]})]});var g5=({formMethods:e=null,formOptions:t={},onSubmit:o,children:r,className:i=""})=>{let s={mode:"onBlur",...t},l=useForm(s),a=e||l,c=m=>o(m);return jsx(FormProvider,{...a,children:jsx("form",{className:i,onSubmit:a.handleSubmit(c),children:r})})},I2=g5;var C5=({label:e,name:t,options:o={},...r})=>{let{register:i}=useFormContext(),s=n.div`
803
802
  position: relative;
804
803
  margin-bottom: 24px;
805
804
 
@@ -821,19 +820,19 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
821
820
  position: absolute;
822
821
  top: -3px;
823
822
  padding: 0 0 0 30px;
824
- font-family: ${({theme:m})=>m.typography.family.script};
825
- font-weight: ${({theme:m})=>m.typography.weight.normal};
823
+ font-family: ${({theme:c})=>c.typography.family.script};
824
+ font-weight: ${({theme:c})=>c.typography.weight.normal};
826
825
  font-size: 24px;
827
826
  font-style: normal;
828
827
  width: 100%;
829
- `;return jsxs(s,{children:[jsxs(l,{children:[jsx(ne,{}),jsx(a,{...i(t,o),...r})]}),jsx("label",{htmlFor:t,children:jsx(c.Body,{children:e})})]})},G2=C5;var h5=n.div`
828
+ `;return jsxs(s,{children:[jsxs(l,{children:[jsx(ne,{}),jsx(a,{...i(t,o),...r})]}),jsx("label",{htmlFor:t,children:jsx(d.Body,{children:e})})]})},G2=C5;var h5=n.div`
830
829
  margin-bottom: 32px;
831
830
  `,y5=n.div`
832
831
  display: ${({inline:e})=>e?"flex":"block"};
833
832
  gap: 20px;
834
833
  flex-wrap: wrap;
835
834
  margin: 20px 0;
836
- `,x5=n.div`
835
+ `,b5=n.div`
837
836
  display: flex;
838
837
  gap: 30rem;
839
838
  align-items: center;
@@ -844,7 +843,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
844
843
  label {
845
844
  padding-left: 32px;
846
845
  }
847
- `,b5=n.input`
846
+ `,x5=n.input`
848
847
  -webkit-appearance: none;
849
848
  position: absolute;
850
849
  appearance: none;
@@ -898,10 +897,10 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
898
897
  transform: scale(1.65);
899
898
  background: #1d4339;
900
899
  }
901
- `,w5=n(c.Body)`
900
+ `,w5=n(d.Body)`
902
901
  margin-bottom: 5px;
903
902
  font-weight: bold;
904
- `,v5=n(c.Body)`
903
+ `,v5=n(d.Body)`
905
904
  margin-bottom: 5px;
906
905
  `,k5=n.div`
907
906
  display: flex;
@@ -911,7 +910,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
911
910
  input[type="text"] {
912
911
  margin: 0;
913
912
  }
914
- `,de=({option:e,name:t,inline:o,...r})=>{let{register:i}=useFormContext();return jsxs(x5,{inline:o,children:[jsx(b5,{type:"radio",value:e.value,...i(t),...r}),jsx("label",{htmlFor:t,children:jsx(c.Body,{children:e.label})})]})},X2=({name:e,label:t,details:o="",options:r=[],inline:i=!1,allowOther:s=!1,...l})=>jsxs(h5,{children:[jsx(w5,{size:"lg",children:t}),o&&jsx(v5,{children:o}),jsxs(y5,{inline:i,children:[r.map(a=>jsx(de,{option:a,name:e,inline:i,...l},`${e}-${a.value}`)),s&&jsxs(k5,{children:[jsx(de,{option:{label:"Other",value:"other"},name:e,inline:i,...l},e),jsx(F,{name:`${e}_other`,...l})]})]})]}),L5=n.div`
913
+ `,de=({option:e,name:t,inline:o,...r})=>{let{register:i}=useFormContext();return jsxs(b5,{inline:o,children:[jsx(x5,{type:"radio",value:e.value,...i(t),...r}),jsx("label",{htmlFor:t,children:jsx(d.Body,{children:e.label})})]})},X2=({name:e,label:t,details:o="",options:r=[],inline:i=!1,allowOther:s=!1,...l})=>jsxs(h5,{children:[jsx(w5,{size:"lg",children:t}),o&&jsx(v5,{children:o}),jsxs(y5,{inline:i,children:[r.map(a=>jsx(de,{option:a,name:e,inline:i,...l},`${e}-${a.value}`)),s&&jsxs(k5,{children:[jsx(de,{option:{label:"Other",value:"other"},name:e,inline:i,...l},e),jsx(F,{name:`${e}_other`,...l})]})]})]}),L5=n.div`
915
914
  width: 100%;
916
915
  `,S5=({hasError:e,selected:t})=>e?"red":t?"#285E50":"#7f7f7f",M5=n.label`
917
916
  display: flex;
@@ -974,7 +973,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
974
973
  &:checked {
975
974
  border: 0.15em solid #1d4339;
976
975
  }
977
- `,P5=n(c.Body)`
976
+ `,P5=n(d.Body)`
978
977
  color: #000;
979
978
  font-family: Lato;
980
979
  font-size: 18px;
@@ -997,11 +996,11 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
997
996
  position: relative;
998
997
  margin-bottom: 24px;
999
998
  z-index: 40;
1000
- `,$5=n(c.Body)`
999
+ `,$5=n(d.Body)`
1001
1000
  margin-bottom: 5px;
1002
1001
  font-weight: ${({isLabelBold:e})=>e?"bold":"regular"};
1003
1002
  text-align: start;
1004
- `,Z5=n(c.Body)`
1003
+ `,Z5=n(d.Body)`
1005
1004
  margin-bottom: 12px;
1006
1005
  `,A5=n.div`
1007
1006
  position: relative;
@@ -1063,16 +1062,16 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
1063
1062
  position: absolute;
1064
1063
  top: 0;
1065
1064
  left: 0;
1066
- `,W5=n(c.Body)`
1065
+ `,W5=n(d.Body)`
1067
1066
  margin-bottom: 24px;
1068
- `,X5=({label:e="",name:t,details:o="",placeholder:r="",options:i=[],allowInput:s=!1,previewOnly:l=!1,isLabelBold:a=!0,formOptions:m={},onChange:d=()=>null})=>{let u=useRef(),g=useFormContext();g.register(t,m);let[C,h]=useState(!1),[b,v]=useState(""),[S,V]=useState(i),$=useSpring(C?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let f=p=>{C&&u.current&&!u.current.contains(p.target)&&h(!1);};return document.addEventListener("mousedown",p=>f(p)),()=>{document.removeEventListener("mousedown",p=>f(p));}},[C]);let T=i.find(f=>f.value===g.getValues(t))?.label,_=f=>{v(""),g.setValue(t,f.value),g.trigger(t),d&&d(f),h(!1);};useEffect(()=>{if(h(!!b),b){let f=i.filter(p=>p.value.match(b.toLowerCase()));V(f),g.setValue(t,b);}else V(i);},[b,i.length]);let y=f=>{f.code==="Enter"&&f.preventDefault();};return jsxs(O5,{children:[jsx($5,{size:"lg",isLabelBold:a,children:e}),o&&jsx(Z5,{children:o}),l?jsx(W5,{size:"md",children:T||"N/A"}):jsxs(A5,{onClick:()=>h(!C),children:[T||jsx("i",{children:r}),s&&jsx(G5,{onKeyDown:y,value:b,onChange:f=>v(f.target.value),type:"text"}),jsx(R.Caret,{direction:C?"up":"down"}),jsx(F5,{style:$,ref:u,children:S.map(f=>{let{label:p}=f,x=f.label===T;return jsxs(I5,{onClick:()=>_(f),children:[jsx(c.Body,{size:"lg",children:p}),jsx(N5,{isCurrent:x,children:jsx(R.Check,{color:"#fff"})})]},f.value)})})]})]})},U2=X5;var Y5=({label:e="Submit",isSubmitting:t=!1,hideWhenInvalid:o=!1,...r})=>{let i=useFormContext(),{isValid:s}=i.formState,a=useSpring((o?s:!0)?{position:"relative",zIndex:0,opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:250}}:{opacity:0,transform:"translate(0px, -3px)",display:"none",config:{duration:250}});return jsx(animated.div,{style:a,...r,children:jsx(Ce.Primary,{htmlType:"submit",isSubmitting:t,...r,children:e})})},q2=Y5;var o3=n.div`
1067
+ `,X5=({label:e="",name:t,details:o="",placeholder:r="",options:i=[],allowInput:s=!1,previewOnly:l=!1,isLabelBold:a=!0,formOptions:c={},onChange:m=()=>null})=>{let f=useRef(),g=useFormContext();g.register(t,c);let[C,h]=useState(!1),[x,v]=useState(""),[S,V]=useState(i),$=useSpring(C?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let u=p=>{C&&f.current&&!f.current.contains(p.target)&&h(!1);};return document.addEventListener("mousedown",p=>u(p)),()=>{document.removeEventListener("mousedown",p=>u(p));}},[C]);let T=i.find(u=>u.value===g.getValues(t))?.label,_=u=>{v(""),g.setValue(t,u.value),g.trigger(t),m&&m(u),h(!1);};useEffect(()=>{if(h(!!x),x){let u=i.filter(p=>p.value.match(x.toLowerCase()));V(u),g.setValue(t,x);}else V(i);},[x,i.length]);let y=u=>{u.code==="Enter"&&u.preventDefault();};return jsxs(O5,{children:[jsx($5,{size:"lg",isLabelBold:a,children:e}),o&&jsx(Z5,{children:o}),l?jsx(W5,{size:"md",children:T||"N/A"}):jsxs(A5,{onClick:()=>h(!C),children:[T||jsx("i",{children:r}),s&&jsx(G5,{onKeyDown:y,value:x,onChange:u=>v(u.target.value),type:"text"}),jsx(R.Caret,{direction:C?"up":"down"}),jsx(F5,{style:$,ref:f,children:S.map(u=>{let{label:p}=u,b=u.label===T;return jsxs(I5,{onClick:()=>_(u),children:[jsx(d.Body,{size:"lg",children:p}),jsx(N5,{isCurrent:b,children:jsx(R.Check,{color:"#fff"})})]},u.value)})})]})]})},U2=X5;var Y5=({label:e="Submit",isSubmitting:t=!1,hideWhenInvalid:o=!1,...r})=>{let i=useFormContext(),{isValid:s}=i.formState,a=useSpring((o?s:!0)?{position:"relative",zIndex:0,opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:250}}:{opacity:0,transform:"translate(0px, -3px)",display:"none",config:{duration:250}});return jsx(animated.div,{style:a,...r,children:jsx(Ce.Primary,{htmlType:"submit",isSubmitting:t,...r,children:e})})},q2=Y5;var o3=n.div`
1069
1068
  position: relative;
1070
1069
  margin-bottom: 24px;
1071
1070
  z-index: 20;
1072
- `,r3=n(c.Body)`
1071
+ `,r3=n(d.Body)`
1073
1072
  margin-bottom: 5px;
1074
1073
  font-weight: bold;
1075
- `,n3=n(c.Body)`
1074
+ `,n3=n(d.Body)`
1076
1075
  margin-bottom: 12px;
1077
1076
  `,i3=n.div`
1078
1077
  position: relative;
@@ -1133,22 +1132,22 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
1133
1132
  padding: 0 20px;
1134
1133
  width: 100%;
1135
1134
  height: 100%;
1136
- `,d3=n(c.Body)`
1135
+ `,d3=n(d.Body)`
1137
1136
  margin-bottom: 24px;
1138
- `,c3=e=>{let t="",o="";e.address_components.forEach(s=>{let l=s.types.some(m=>m==="locality"),a=s.types.some(m=>m==="administrative_area_level_1");l?t=s.short_name:a&&(o=s.short_name);});let r=e.geometry.location.lat(),i=e.geometry.location.lng();return {city:t,state:o,lat:r,long:i}},m3=({handleSelect:e,option:t,value:o})=>{let{description:r}=t,i=r===o,s=r.replace(", USA","");return jsx(l3,{isCurrent:i,onClick:()=>e(s),children:jsx(c.Body,{size:"lg",children:s})})},f3=({label:e="",details:t="",required:o=!0,previewOnly:r=!1})=>{let i=useRef(),[s,l]=useState(!1),[a,m]=useState(!1),d=useFormContext();d.register("city",{required:o});let u=useSpring(s?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let y=f=>{s&&i.current&&!i.current.contains(f.target)&&l(!1);};return document.addEventListener("mousedown",f=>y(f)),()=>{document.removeEventListener("mousedown",f=>y(f));}},[s]);let g=d.getValues("city")?`${d.getValues("city")}, ${d.getValues("state")}`:"",{value:C,suggestions:{data:h,loading:b},setValue:v,clearSuggestions:S}=j5({requestOptions:{types:["locality","postal_code"],componentRestrictions:{country:"us"}}});useEffect(()=>{if(b){m(b);return}setTimeout(()=>{m(b);},2e3);},[b]);let V=useSpring(a?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),$=y=>{v(y.target.value),d.setValue("city",null),d.setValue("state",null),d.trigger("city"),y.target.value.length>=3&&l(!0);},T=y=>{v(y,!1),S(),!(y.length<=2)&&getGeocode({address:y}).then(f=>{let{city:p,state:x,lat:ge,long:Ct}=c3(f[0]);d.setValue("city",p),d.setValue("state",x),d.setValue("lat",ge),d.setValue("long",Ct),d.trigger("city");}).catch(f=>console.error(`Google Maps API error: ${f}`));},_=y=>{y.code==="Enter"&&y.preventDefault();};return jsxs(o3,{children:[jsx(r3,{size:"lg",children:e}),t&&jsx(n3,{children:t}),r?jsx(d3,{size:"md",children:g||"N/A"}):jsxs(i3,{children:[jsx(p3,{onKeyDown:_,value:C||g,onChange:y=>$(y),type:"text"}),h.length>0&&jsx(s3,{style:u,ref:i,children:h.map(y=>jsx(m3,{handleSelect:T,option:y,value:C},y.description))}),jsx(a3,{style:V,children:jsx(be,{size:"sm"})})]})]})},rt=e=>{let{isLoaded:t}=useLoadScript({googleMapsApiKey:e.api_key||process.env.GOOGLE_MAPS_API_KEY||"",libraries:["places"]});return t?jsx(f3,{...e}):null};var u3=({label:e="",name:t,...o})=>{let{setValue:r}=useFormContext(),i=n(c.Body)`
1137
+ `,c3=e=>{let t="",o="";e.address_components.forEach(s=>{let l=s.types.some(c=>c==="locality"),a=s.types.some(c=>c==="administrative_area_level_1");l?t=s.short_name:a&&(o=s.short_name);});let r=e.geometry.location.lat(),i=e.geometry.location.lng();return {city:t,state:o,lat:r,long:i}},m3=({handleSelect:e,option:t,value:o})=>{let{description:r}=t,i=r===o,s=r.replace(", USA","");return jsx(l3,{isCurrent:i,onClick:()=>e(s),children:jsx(d.Body,{size:"lg",children:s})})},f3=({label:e="",details:t="",required:o=!0,previewOnly:r=!1})=>{let i=useRef(),[s,l]=useState(!1),[a,c]=useState(!1),m=useFormContext();m.register("city",{required:o});let f=useSpring(s?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let y=u=>{s&&i.current&&!i.current.contains(u.target)&&l(!1);};return document.addEventListener("mousedown",u=>y(u)),()=>{document.removeEventListener("mousedown",u=>y(u));}},[s]);let g=m.getValues("city")?`${m.getValues("city")}, ${m.getValues("state")}`:"",{value:C,suggestions:{data:h,loading:x},setValue:v,clearSuggestions:S}=j5({requestOptions:{types:["locality","postal_code"],componentRestrictions:{country:"us"}}});useEffect(()=>{if(x){c(x);return}setTimeout(()=>{c(x);},2e3);},[x]);let V=useSpring(a?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),$=y=>{v(y.target.value),m.setValue("city",null),m.setValue("state",null),m.trigger("city"),y.target.value.length>=3&&l(!0);},T=y=>{v(y,!1),S(),!(y.length<=2)&&getGeocode({address:y}).then(u=>{let{city:p,state:b,lat:ge,long:Ct}=c3(u[0]);m.setValue("city",p),m.setValue("state",b),m.setValue("lat",ge),m.setValue("long",Ct),m.trigger("city");}).catch(u=>console.error(`Google Maps API error: ${u}`));},_=y=>{y.code==="Enter"&&y.preventDefault();};return jsxs(o3,{children:[jsx(r3,{size:"lg",children:e}),t&&jsx(n3,{children:t}),r?jsx(d3,{size:"md",children:g||"N/A"}):jsxs(i3,{children:[jsx(p3,{onKeyDown:_,value:C||g,onChange:y=>$(y),type:"text"}),h.length>0&&jsx(s3,{style:f,ref:i,children:h.map(y=>jsx(m3,{handleSelect:T,option:y,value:C},y.description))}),jsx(a3,{style:V,children:jsx(xe,{size:"sm"})})]})]})},rt=e=>{let{isLoaded:t}=useLoadScript({googleMapsApiKey:e.api_key||process.env.GOOGLE_MAPS_API_KEY||"",libraries:["places"]});return t?jsx(f3,{...e}):null};var u3=({label:e="",name:t,...o})=>{let{setValue:r}=useFormContext(),i=n(d.Body)`
1139
1138
  margin-bottom: 5px;
1140
1139
  text-align: start;
1141
1140
  `,s=n.div`
1142
1141
  position: relative;
1143
1142
  margin-bottom: 24px;
1144
- `;return jsxs(s,{children:[e&&jsx(i,{children:e}),jsx(Le,{...o,onChange:a=>{r(t,a.value);}})]})},it=u3;var at=({color:e="#5A5A5A"})=>jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9999 10.9999H12.2099L11.9299 10.7299C13.1299 9.32989 13.7499 7.41989 13.4099 5.38989C12.9399 2.60989 10.6199 0.389893 7.81989 0.0498932C3.58989 -0.470107 0.0298932 3.08989 0.549893 7.31989C0.889893 10.1199 3.10989 12.4399 5.88989 12.9099C7.91989 13.2499 9.82989 12.6299 11.2299 11.4299L11.4999 11.7099V12.4999L15.7499 16.7499C16.1599 17.1599 16.8299 17.1599 17.2399 16.7499C17.6499 16.3399 17.6499 15.6699 17.2399 15.2599L12.9999 10.9999ZM6.99989 10.9999C4.50989 10.9999 2.49989 8.98989 2.49989 6.49989C2.49989 4.00989 4.50989 1.99989 6.99989 1.99989C9.48989 1.99989 11.4999 4.00989 11.4999 6.49989C11.4999 8.98989 9.48989 10.9999 6.99989 10.9999Z",fill:"#5A5A5A",color:e})});var b3=n.div`
1143
+ `;return jsxs(s,{children:[e&&jsx(i,{children:e}),jsx(Le,{...o,onChange:a=>{r(t,a.value);}})]})},it=u3;var at=({color:e="#5A5A5A"})=>jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9999 10.9999H12.2099L11.9299 10.7299C13.1299 9.32989 13.7499 7.41989 13.4099 5.38989C12.9399 2.60989 10.6199 0.389893 7.81989 0.0498932C3.58989 -0.470107 0.0298932 3.08989 0.549893 7.31989C0.889893 10.1199 3.10989 12.4399 5.88989 12.9099C7.91989 13.2499 9.82989 12.6299 11.2299 11.4299L11.4999 11.7099V12.4999L15.7499 16.7499C16.1599 17.1599 16.8299 17.1599 17.2399 16.7499C17.6499 16.3399 17.6499 15.6699 17.2399 15.2599L12.9999 10.9999ZM6.99989 10.9999C4.50989 10.9999 2.49989 8.98989 2.49989 6.49989C2.49989 4.00989 4.50989 1.99989 6.99989 1.99989C9.48989 1.99989 11.4999 4.00989 11.4999 6.49989C11.4999 8.98989 9.48989 10.9999 6.99989 10.9999Z",fill:"#5A5A5A",color:e})});var x3=n.div`
1145
1144
  position: relative;
1146
1145
  margin-bottom: 24px;
1147
1146
  z-index: 20;
1148
- `,w3=n(c.Body)`
1147
+ `,w3=n(d.Body)`
1149
1148
  margin-bottom: 5px;
1150
1149
  font-weight: bold;
1151
- `,v3=n(c.Body)`
1150
+ `,v3=n(d.Body)`
1152
1151
  margin-bottom: 12px;
1153
1152
  `,k3=n.div`
1154
1153
  position: relative;
@@ -1224,14 +1223,14 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
1224
1223
  border: 0.766898px solid;
1225
1224
  border-color: ${e=>e.isCurrent?"#285E50 !important":"#3f937c"};
1226
1225
  background: ${e=>e.isCurrent?"#285E50 !important":"#FFF"};
1227
- `,H3=({label:e="",name:t,details:o="",options:r=[],previewOnly:i=!1})=>{let s=useRef(),l=useFormContext(),[a,m]=useState(!1),[d,u]=useState(""),[g,C]=useState(l.getValues(t)||[]),h=useRef({search:d,keywords:g});useEffect(()=>{h.current={search:d,keywords:g};},[d,g]);let[b,v]=useState(r),S=useSpring(a?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),V=r.find(p=>p===l.getValues(t)),$=p=>{let x=[...h.current.keywords,p];u(""),C(x),l.setValue(t,x),m(!1);},T=p=>p?p.charAt(0).toUpperCase()+p.slice(1).toLowerCase():"",_=()=>{if(!h.current.search)return;let p=T(h.current.search);$(p);};useEffect(()=>{let p=x=>{a&&s.current&&!s.current.contains(x.target)&&(_(),m(!1));};return document.addEventListener("mousedown",x=>p(x)),()=>{document.removeEventListener("mousedown",x=>p(x));}},[a]);let y=p=>{p.code==="Enter"&&(_(),p.preventDefault());},f=p=>{let x=g.filter(ge=>ge!==p);C(x),u(""),l.setValue(t,x);};return useEffect(()=>{if(m(!!d),d){let p=r.filter(x=>x.toLowerCase().match(d.toLowerCase()));v(p);}else v(r);},[d]),useEffect(()=>{let p=r.filter(x=>!g.includes(x));v(p);},[g]),jsxs(b3,{children:[jsx(w3,{size:"lg",children:e}),o&&jsx(v3,{children:o}),!i&&jsxs(k3,{onClick:()=>m(!a),children:[jsx(at,{}),V,jsx(S3,{onKeyDown:y,value:d,onChange:p=>u(p.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxs(L3,{style:S,ref:s,children:[b.map(p=>{let x=p===V;return jsxs(pt,{onClick:()=>$(p),children:[jsx(c.Body,{size:"lg",children:p}),jsx(z3,{isCurrent:x,children:jsx(R.Check,{color:"#fff"})})]},p)}),!b.length&&jsx(pt,{onClick:()=>_(),children:jsx(c.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[i&&g.length===0&&"N/A",g.map(p=>jsxs(M3,{onClick:()=>f(p),children:[p,!i&&jsx(re,{})]},p))]})]})},dt=H3;var B3=({label:e=null,isLabelBold:t=!0,name:o,options:r={},...i})=>{let{control:s}=useFormContext(),l=n(c.Body)`
1226
+ `,H3=({label:e="",name:t,details:o="",options:r=[],previewOnly:i=!1})=>{let s=useRef(),l=useFormContext(),[a,c]=useState(!1),[m,f]=useState(""),[g,C]=useState(l.getValues(t)||[]),h=useRef({search:m,keywords:g});useEffect(()=>{h.current={search:m,keywords:g};},[m,g]);let[x,v]=useState(r),S=useSpring(a?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),V=r.find(p=>p===l.getValues(t)),$=p=>{let b=[...h.current.keywords,p];f(""),C(b),l.setValue(t,b),c(!1);},T=p=>p?p.charAt(0).toUpperCase()+p.slice(1).toLowerCase():"",_=()=>{if(!h.current.search)return;let p=T(h.current.search);$(p);};useEffect(()=>{let p=b=>{a&&s.current&&!s.current.contains(b.target)&&(_(),c(!1));};return document.addEventListener("mousedown",b=>p(b)),()=>{document.removeEventListener("mousedown",b=>p(b));}},[a]);let y=p=>{p.code==="Enter"&&(_(),p.preventDefault());},u=p=>{let b=g.filter(ge=>ge!==p);C(b),f(""),l.setValue(t,b);};return useEffect(()=>{if(c(!!m),m){let p=r.filter(b=>b.toLowerCase().match(m.toLowerCase()));v(p);}else v(r);},[m]),useEffect(()=>{let p=r.filter(b=>!g.includes(b));v(p);},[g]),jsxs(x3,{children:[jsx(w3,{size:"lg",children:e}),o&&jsx(v3,{children:o}),!i&&jsxs(k3,{onClick:()=>c(!a),children:[jsx(at,{}),V,jsx(S3,{onKeyDown:y,value:m,onChange:p=>f(p.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxs(L3,{style:S,ref:s,children:[x.map(p=>{let b=p===V;return jsxs(pt,{onClick:()=>$(p),children:[jsx(d.Body,{size:"lg",children:p}),jsx(z3,{isCurrent:b,children:jsx(R.Check,{color:"#fff"})})]},p)}),!x.length&&jsx(pt,{onClick:()=>_(),children:jsx(d.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[i&&g.length===0&&"N/A",g.map(p=>jsxs(M3,{onClick:()=>u(p),children:[p,!i&&jsx(re,{})]},p))]})]})},dt=H3;var B3=({label:e=null,isLabelBold:t=!0,name:o,options:r={},...i})=>{let{control:s}=useFormContext(),l=n(d.Body)`
1228
1227
  margin-bottom: 5px;
1229
- font-weight: ${({isLabelBold:m})=>m?"bold":"regular"};
1228
+ font-weight: ${({isLabelBold:c})=>c?"bold":"regular"};
1230
1229
  text-align: start;
1231
1230
  `,a=n.div`
1232
1231
  position: relative;
1233
1232
  margin-bottom: 24px;
1234
- `;return jsxs(a,{children:[e&&jsx(l,{size:"lg",isLabelBold:t,children:e}),jsx(Controller,{render:({field:m})=>jsx(he,{...i,...m}),name:o,control:s,...r})]})},mt=B3;var T3={Container:I2,Checkbox:le,CheckboxGroup:A2,DateSelect:mt,TextInput:F,TimeSelect:it,Radio:de,RadioGroup:X2,CardRadioGroup:K2,Select:U2,Signature:G2,Submit:q2,LocationSelect:rt,Keyword:dt,Toggle:Se};var $3=n(animated.div)`
1233
+ `;return jsxs(a,{children:[e&&jsx(l,{size:"lg",isLabelBold:t,children:e}),jsx(Controller,{render:({field:c})=>jsx(he,{...i,...c}),name:o,control:s,...r})]})},mt=B3;var T3={Container:I2,Checkbox:le,CheckboxGroup:A2,DateSelect:mt,TextInput:F,TimeSelect:it,Radio:de,RadioGroup:X2,CardRadioGroup:K2,Select:U2,Signature:G2,Submit:q2,LocationSelect:rt,Keyword:dt,Toggle:Se};var $3=n(animated.div)`
1235
1234
  max-height: ${({size:e})=>(e||58)+24}px;
1236
1235
  padding: 12px;
1237
1236
  display: flex;
@@ -1263,8 +1262,8 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
1263
1262
  margin: 0;
1264
1263
  line-height: 12px;
1265
1264
  color: #1d4339;
1266
- `,I3=({contentfulConfig:e,size:t=58})=>{let[o,r]=useState(""),[i,s]=useSpring(()=>({from:{width:t+24,backgroundColor:"#fff",color:"#ffffff"}}));useEffect(()=>{new A(e).getImage("vanta-logo").then(C=>{r(C);});},[]);let[l,a]=useSpring(()=>({from:{opacity:0},delay:100})),m=C=>({width:C?198+t:t+24,backgroundColor:C?"#d4e2dd":"#fff"}),d=C=>({opacity:C?1:0}),u=()=>{s(m(!0)),a(d(!0));},g=()=>{s(m(!1)),a(d(!1));};return o?jsxs($3,{style:i,onMouseEnter:u,onMouseLeave:g,size:t,children:[jsx("img",{alt:"Vanta Logo",src:o,height:t,width:t}),jsxs(Z3,{style:l,children:[jsx(c.Body,{children:jsx(A3,{children:"Guaranteed Security"})}),jsx(c.Body,{size:"xs",children:jsx(F3,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},N3=I3;
1265
+ `,I3=({contentfulConfig:e,size:t=58})=>{let[o,r]=useState(""),[i,s]=useSpring(()=>({from:{width:t+24,backgroundColor:"#fff",color:"#ffffff"}}));useEffect(()=>{new A(e).getImage("vanta-logo").then(C=>{r(C);});},[]);let[l,a]=useSpring(()=>({from:{opacity:0},delay:100})),c=C=>({width:C?198+t:t+24,backgroundColor:C?"#d4e2dd":"#fff"}),m=C=>({opacity:C?1:0}),f=()=>{s(c(!0)),a(m(!0));},g=()=>{s(c(!1)),a(m(!1));};return o?jsxs($3,{style:i,onMouseEnter:f,onMouseLeave:g,size:t,children:[jsx("img",{alt:"Vanta Logo",src:o,height:t,width:t}),jsxs(Z3,{style:l,children:[jsx(d.Body,{children:jsx(A3,{children:"Guaranteed Security"})}),jsx(d.Body,{size:"xs",children:jsx(F3,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},N3=I3;
1267
1266
 
1268
- export { Zt as Avatar, Ce as Button, io as Collapse, A as Contentful, zo as ContentfulLottieFileSlug, he as DateSelect, fo as Drawer, T3 as Form, R as Icons, be as LoadingSpinner, Do as LottieAnimation, J as Menu, Ao as Modal, K1 as NumberedProgressSteps, No as Progress, Ko as Segmented, Be as Size, Uo as SolaceLogo, bt as SolaceThemeProvider, Qo as Tabs, Le as TimeSelect, Se as Toggle, D1 as Tooltip, c as Typography, N3 as VantaLogo };
1267
+ export { Zt as Avatar, Ce as Button, io as Collapse, A as Contentful, zo as ContentfulLottieFileSlug, he as DateSelect, fo as Drawer, T3 as Form, R as Icons, xe as LoadingSpinner, Do as LottieAnimation, J as Menu, Ao as Modal, K1 as NumberedProgressSteps, No as Progress, Ko as Segmented, Be as Size, Uo as SolaceLogo, xt as SolaceThemeProvider, Qo as Tabs, Le as TimeSelect, Se as Toggle, D1 as Tooltip, d as Typography, N3 as VantaLogo };
1269
1268
  //# sourceMappingURL=out.js.map
1270
1269
  //# sourceMappingURL=index.js.map