@solace-health/ui 0.7.8 → 0.7.9

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.cjs CHANGED
@@ -145,7 +145,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
145
145
  `}
146
146
  `,S1=({className:e="",children:o="",size:t="md",allCaps:r=!1,color:n=""})=>jsxRuntime.jsx(L1,{allCaps:r,className:e,size:t,style:{color:n},children:o}),E2=S1;var H1=i__default.default.span`
147
147
  margin: 0;
148
- `,z1=({children:e,as:o,length:t=120})=>{let n=((s,a,l="...")=>{let c=s.length>a?l:"";return s.substring(0,a)+c})(e,t);return jsxRuntime.jsx(H1,{as:o,children:n})},D2=z1;var d={Body:V2,Display:B2,Error:U,Header:E2,Truncated:D2};var B1=()=>jsxRuntime.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M6.9231 30.4617C6.9231 26.6381 11.8824 23.5386 18 23.5386C24.1176 23.5386 29.0769 26.6381 29.0769 30.4617",stroke:"#E9F0EE",fill:"none",strokeWidth:"2.00107",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M18 19.3852C21.8235 19.3852 24.9231 16.2857 24.9231 12.4621C24.9231 8.63863 21.8235 5.53906 18 5.53906C14.1765 5.53906 11.0769 8.63863 11.0769 12.4621C11.0769 16.2857 14.1765 19.3852 18 19.3852Z",stroke:"#E9F0EE",fill:"none",strokeWidth:"2.00107",strokeLinecap:"round",strokeLinejoin:"round"})]}),E1=i__default.default(d.Display)`
148
+ `,z1=({children:e,as:o,length:t=120})=>{let n=((s,l,a="...")=>{let c=s.length>l?a:"";return s.substring(0,l)+c})(e,t);return jsxRuntime.jsx(H1,{as:o,children:n})},D2=z1;var d={Body:V2,Display:B2,Error:U,Header:E2,Truncated:D2};var B1=()=>jsxRuntime.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M6.9231 30.4617C6.9231 26.6381 11.8824 23.5386 18 23.5386C24.1176 23.5386 29.0769 26.6381 29.0769 30.4617",stroke:"#E9F0EE",fill:"none",strokeWidth:"2.00107",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M18 19.3852C21.8235 19.3852 24.9231 16.2857 24.9231 12.4621C24.9231 8.63863 21.8235 5.53906 18 5.53906C14.1765 5.53906 11.0769 8.63863 11.0769 12.4621C11.0769 16.2857 14.1765 19.3852 18 19.3852Z",stroke:"#E9F0EE",fill:"none",strokeWidth:"2.00107",strokeLinecap:"round",strokeLinejoin:"round"})]}),E1=i__default.default(d.Display)`
149
149
  color: white;
150
150
  `,D1=({size:e=46,style:o={},src:t="",user:r={profile_image_url:"",first_name:"",last_name:""}})=>{let n={flex:"none",display:"flex",alignItems:"center",justifyContent:"center",...o};return t||r.profile_image_url?jsxRuntime.jsx(antd.Avatar,{size:e,draggable:!1,style:n,src:t||r.profile_image_url}):r.first_name&&r.last_name?jsxRuntime.jsx(antd.Avatar,{size:e,draggable:!1,gap:0,style:{backgroundColor:"#285E50",color:"white",...n},children:jsxRuntime.jsxs(E1,{size:"xs",children:[r.first_name[0],r.last_name[0]]})}):jsxRuntime.jsx(antd.Avatar,{size:e,gap:2,draggable:!1,style:{backgroundColor:"#285E50",...n},icon:jsxRuntime.jsx(B1,{})})},R1=D1;var Y=i__default.default(antd.Button)`
151
151
  height: 50px;
@@ -226,7 +226,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
226
226
  padding-top: 0;
227
227
  }
228
228
  }
229
- `,q1=e=>{let o=reactHookForm.get(e,"isActive",!1),t=web.useSpring(o?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:t,children:jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round"})})})},Q1=({items:e,onChange:o})=>{let t=Array.isArray(e)?e:[e];return jsxRuntime.jsx(Y1,{items:t,expandIcon:q1,defaultActiveKey:["1"],onChange:n=>{o(n);},expandIconPosition:"end"})},j1=Q1;var to=({value:e=null,onChange:o,startRange:t=null,endRange:r=null})=>{let[n,s]=react$1.useState(!1);return jsxRuntime.jsx(antd.DatePicker,{disabledDate:l=>l?!!(t&&l<Q__default.default(t).endOf("day")||r&&l>Q__default.default(r).endOf("day")):!1,onChange:(l,c)=>{o&&o(c);},onFocus:()=>{s(!0);},onBlur:()=>{s(!1);},value:e?Q__default.default(e):Q__default.default(),style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:n?A.colors.secondaryGreen:"#5a5a5a",padding:"20px 23px",backgroundColor:"#fff",fontFamily:A.typography.family.body,fontWeight:A.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:n?`0 0 0 1px ${A.colors.secondaryGreen}`:"none"}})},C2=to;var io=({isOpen:e,onClose:o,children:t,title:r="",placement:n="bottom",headerStyle:s={display:"none"},...a})=>jsxRuntime.jsx(antd.Drawer,{style:n==="bottom"?{borderTopLeftRadius:32,borderTopRightRadius:32}:{borderBottomLeftRadius:32,borderBottomRightRadius:32},headerStyle:s,title:r,placement:n,onClose:o,open:e,...a,children:t}),so=io;var _2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M8 12H16",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M12 16L12 8",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});var O2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("g",{clipPath:"url(#clip0_737_13769)",children:jsxRuntime.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})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_737_13769",children:jsxRuntime.jsx("rect",{width:"20",height:"22",fill:"white",transform:"translate(2 1)"})})})]});var I2=({color:e="#555555",direction:o="left"})=>jsxRuntime.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"}[o]})`},children:jsxRuntime.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 $2=()=>jsxRuntime.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M3.83398 6.95215H17.1673",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M13.834 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M7.16602 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"})]});var A2=i__default.default.div`
229
+ `,q1=e=>{let o=reactHookForm.get(e,"isActive",!1),t=web.useSpring(o?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:t,children:jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round"})})})},Q1=({items:e,onChange:o})=>{let t=Array.isArray(e)?e:[e];return jsxRuntime.jsx(Y1,{items:t,expandIcon:q1,defaultActiveKey:["1"],onChange:n=>{o(n);},expandIconPosition:"end"})},j1=Q1;var to=({value:e=null,onChange:o,startRange:t=null,endRange:r=null})=>{let[n,s]=react$1.useState(!1);return jsxRuntime.jsx(antd.DatePicker,{disabledDate:a=>a?!!(t&&a<Q__default.default(t).endOf("day")||r&&a>Q__default.default(r).endOf("day")):!1,onChange:(a,c)=>{o&&o(c);},onFocus:()=>{s(!0);},onBlur:()=>{s(!1);},value:e?Q__default.default(e):Q__default.default(),style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:n?A.colors.secondaryGreen:"#5a5a5a",padding:"20px 23px",backgroundColor:"#fff",fontFamily:A.typography.family.body,fontWeight:A.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:n?`0 0 0 1px ${A.colors.secondaryGreen}`:"none"}})},C2=to;var io=({isOpen:e,onClose:o,children:t,title:r="",placement:n="bottom",headerStyle:s={display:"none"},...l})=>jsxRuntime.jsx(antd.Drawer,{style:n==="bottom"?{borderTopLeftRadius:32,borderTopRightRadius:32}:{borderBottomLeftRadius:32,borderBottomRightRadius:32},headerStyle:s,title:r,placement:n,onClose:o,open:e,...l,children:t}),so=io;var _2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M8 12H16",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M12 16L12 8",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});var O2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("g",{clipPath:"url(#clip0_737_13769)",children:jsxRuntime.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})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_737_13769",children:jsxRuntime.jsx("rect",{width:"20",height:"22",fill:"white",transform:"translate(2 1)"})})})]});var I2=({color:e="#555555",direction:o="left"})=>jsxRuntime.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"}[o]})`},children:jsxRuntime.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 $2=()=>jsxRuntime.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M3.83398 6.95215H17.1673",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M13.834 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M7.16602 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"})]});var A2=i__default.default.div`
230
230
  border-radius: 6px;
231
231
  border: 1px solid #285e50;
232
232
  background: ${({checked:e})=>e?"#285e50":"#fff"};
@@ -291,7 +291,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
291
291
  stroke: ${({color:e})=>e||"#fff"};
292
292
  }
293
293
  }
294
- `,b2=({color:e=void 0,size:o="sm"})=>jsxRuntime.jsx(xo,{color:e,size:o,children:jsxRuntime.jsx("div",{className:"loader",children:jsxRuntime.jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsxRuntime.jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var wo=(o=>(o.LOADING_LISTINGS="loadingListings",o))(wo||{}),Z=class{client;constructor(o){this.client=ye__namespace.createClient(o);}async getLottieFile({slug:o}){let r=(await this.client.getEntries({content_type:"lottie"})).items.find(n=>n.fields.slug===o);return r?r.fields.lottieFile:(console.warn(`Lottie file not found for slug ${o}`),null)}async getImage(o){let r=(await this.client.getEntries({content_type:"image"})).items.find(n=>n.fields.slug===o);return r?r.fields.image.fields.file.url:null}};var Ho=({animationData:e,height:o,width:t,loop:r})=>{let n=web.useSpring({from:{opacity:0},to:{opacity:1}});return jsxRuntime.jsx(web.animated.div,{style:n,children:jsxRuntime.jsx(Lo__default.default,{loop:r,animationData:e,play:!0,style:{width:t,height:o},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},zo=({height:e,width:o,loop:t,slug:r,contentfulConfig:n})=>{let[s,a]=react$1.useState();return react$1.useEffect(()=>{new Z(n).getLottieFile({slug:r}).then(l=>{a(l);});},[]),s?jsxRuntime.jsx(Ho,{animationData:s,height:e,width:o,loop:t}):null};var Eo=i__default.default(antd.Modal)`
294
+ `,b2=({color:e=void 0,size:o="sm"})=>jsxRuntime.jsx(xo,{color:e,size:o,children:jsxRuntime.jsx("div",{className:"loader",children:jsxRuntime.jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsxRuntime.jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var wo=(o=>(o.LOADING_LISTINGS="loadingListings",o))(wo||{}),Z=class{client;constructor(o){this.client=ye__namespace.createClient(o);}async getLottieFile({slug:o}){let r=(await this.client.getEntries({content_type:"lottie"})).items.find(n=>n.fields.slug===o);return r?r.fields.lottieFile:(console.warn(`Lottie file not found for slug ${o}`),null)}async getImage(o){let r=(await this.client.getEntries({content_type:"image"})).items.find(n=>n.fields.slug===o);return r?r.fields.image.fields.file.url:null}};var Ho=({animationData:e,height:o,width:t,loop:r})=>{let n=web.useSpring({from:{opacity:0},to:{opacity:1}});return jsxRuntime.jsx(web.animated.div,{style:n,children:jsxRuntime.jsx(Lo__default.default,{loop:r,animationData:e,play:!0,style:{width:t,height:o},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},zo=({height:e,width:o,loop:t,slug:r,contentfulConfig:n})=>{let[s,l]=react$1.useState();return react$1.useEffect(()=>{new Z(n).getLottieFile({slug:r}).then(a=>{l(a);});},[]),s?jsxRuntime.jsx(Ho,{animationData:s,height:e,width:o,loop:t}):null};var Eo=i__default.default(antd.Modal)`
295
295
  border-radius: 20px;
296
296
  @media (max-width: 620px) {
297
297
  max-width: 100dvw;
@@ -326,7 +326,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
326
326
  .ant-segmented-item-selected {
327
327
  color: white;
328
328
  }
329
- `,$o=({onChange:e=()=>null,options:o=[],size:t="middle",defaultValue:r="",block:n=!0})=>jsxRuntime.jsx(Io,{block:n,onChange:e,options:o,size:t,defaultValue:r}),Ao=$o;var No=({color:e})=>jsxRuntime.jsx("svg",{width:"86",height:"24",viewBox:"0 0 86 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M0.632 6.104C0.632 5.05867 0.834667 4.16267 1.24 3.416C1.66667 2.66933 2.22133 2.06133 2.904 1.592C3.608 1.12267 4.39733 0.781332 5.272 0.567999C6.14667 0.333333 7.032 0.216 7.928 0.216C8.35467 0.216 8.856 0.237333 9.432 0.279999C10.0293 0.322666 10.6267 0.397333 11.224 0.504C11.8427 0.610666 12.44 0.76 13.016 0.952C13.592 1.12267 14.0827 1.34667 14.488 1.624V6.04C14.296 5.336 13.9867 4.664 13.56 4.024C13.1547 3.36267 12.664 2.78667 12.088 2.296C11.512 1.784 10.8613 1.37867 10.136 1.08C9.432 0.759998 8.67467 0.599998 7.864 0.599998C7.224 0.599998 6.584 0.685332 5.944 0.855999C5.32533 1.00533 4.76 1.25067 4.248 1.592C3.75733 1.912 3.352 2.328 3.032 2.84C2.73333 3.352 2.584 3.97067 2.584 4.696C2.584 5.464 2.76533 6.136 3.128 6.712C3.512 7.26667 4.01333 7.768 4.632 8.216C5.25067 8.664 5.95467 9.08 6.744 9.464C7.53333 9.82667 8.33333 10.2 9.144 10.584C9.976 10.9467 10.7867 11.3307 11.576 11.736C12.3653 12.1413 13.0693 12.6107 13.688 13.144C14.3067 13.656 14.7973 14.2533 15.16 14.936C15.544 15.6187 15.736 16.408 15.736 17.304C15.736 18.4773 15.5013 19.4587 15.032 20.248C14.5627 21.016 13.944 21.6347 13.176 22.104C12.4293 22.552 11.576 22.872 10.616 23.064C9.656 23.256 8.68533 23.352 7.704 23.352C7.256 23.352 6.712 23.32 6.072 23.256C5.432 23.2133 4.77067 23.1173 4.088 22.968C3.42667 22.8187 2.78667 22.6373 2.168 22.424C1.54933 22.1893 1.03733 21.8907 0.632 21.528V16.792C0.845333 17.688 1.16533 18.52 1.592 19.288C2.04 20.056 2.57333 20.7173 3.192 21.272C3.832 21.8053 4.54667 22.232 5.336 22.552C6.14667 22.8507 7.02133 23 7.96 23C8.62133 23 9.272 22.9253 9.912 22.776C10.552 22.6053 11.128 22.3493 11.64 22.008C12.152 21.6453 12.5573 21.1973 12.856 20.664C13.176 20.1093 13.336 19.448 13.336 18.68C13.336 17.5493 13.016 16.6107 12.376 15.864C11.7573 15.1173 10.9787 14.4773 10.04 13.944C9.10133 13.3893 8.07733 12.888 6.968 12.44C5.88 11.9707 4.86667 11.4587 3.928 10.904C2.98933 10.3493 2.2 9.69867 1.56 8.952C0.941333 8.20533 0.632 7.256 0.632 6.104ZM25.5425 8.12C26.6945 8.12 27.7078 8.30133 28.5825 8.664C29.4785 9.00533 30.2358 9.48533 30.8545 10.104C31.7932 9.18667 32.6892 8.17333 33.5425 7.064C34.3958 5.95467 35.1852 4.86667 35.9105 3.8C36.3372 3.18133 36.7318 2.60533 37.0945 2.072C37.4572 1.51733 37.7878 1.02667 38.0865 0.599998H38.4065V20.952C38.4065 21.3573 38.4598 21.688 38.5665 21.944C38.6732 22.2 38.8012 22.4027 38.9505 22.552C39.1212 22.68 39.2918 22.776 39.4625 22.84C39.6332 22.8827 39.7825 22.904 39.9105 22.904V23H34.5665V22.904C34.7158 22.904 34.8758 22.8827 35.0465 22.84C35.2172 22.776 35.3772 22.68 35.5265 22.552C35.6758 22.4027 35.7932 22.2 35.8785 21.944C35.9638 21.688 36.0065 21.3573 36.0065 20.952V4.312C35.5158 5.016 34.9932 5.752 34.4385 6.52C33.8838 7.26667 33.2972 8.00267 32.6785 8.728C32.0598 9.432 31.3985 10.104 30.6945 10.744C30.0118 11.3627 29.2972 11.896 28.5505 12.344C27.7185 12.8347 26.9505 13.144 26.2465 13.272C25.5638 13.4 24.9558 13.4 24.4225 13.272C23.8892 13.144 23.4518 12.92 23.1105 12.6C22.7692 12.2587 22.5238 11.8853 22.3745 11.48C22.1398 10.7547 22.2145 10.072 22.5985 9.432C21.9158 10.008 21.4252 10.776 21.1265 11.736C20.8278 12.6747 20.6785 13.6453 20.6785 14.648C20.6785 15.4373 20.7638 16.312 20.9345 17.272C21.1052 18.232 21.3825 19.1387 21.7665 19.992C22.1718 20.824 22.7052 21.528 23.3665 22.104C24.0278 22.68 24.8598 22.968 25.8625 22.968C26.7158 22.968 27.4412 22.808 28.0385 22.488C28.6358 22.168 29.1158 21.7413 29.4785 21.208C29.8412 20.6533 30.0972 20.024 30.2465 19.32C30.4172 18.616 30.5025 17.8907 30.5025 17.144C30.5025 15.416 30.2038 13.7627 29.6065 12.184L31.3985 10.712C31.9532 11.4587 32.3372 12.2587 32.5505 13.112C32.7852 13.9653 32.9025 14.8613 32.9025 15.8C32.9025 16.9307 32.7318 17.9653 32.3905 18.904C32.0705 19.8213 31.5905 20.6107 30.9505 21.272C30.3318 21.9333 29.5638 22.4453 28.6465 22.808C27.7505 23.1707 26.7265 23.352 25.5745 23.352C24.4225 23.352 23.3878 23.1707 22.4705 22.808C21.5745 22.4453 20.8065 21.9333 20.1665 21.272C19.5478 20.6107 19.0678 19.8213 18.7265 18.904C18.4065 17.9653 18.2465 16.9307 18.2465 15.8C18.2465 14.712 18.4172 13.6987 18.7585 12.76C19.0998 11.8213 19.5798 11.0107 20.1985 10.328C20.8385 9.624 21.6065 9.08 22.5025 8.696C23.3985 8.312 24.4118 8.12 25.5425 8.12ZM22.7585 11.224C22.8652 11.608 23.0678 11.96 23.3665 12.28C23.6652 12.6 24.0492 12.824 24.5185 12.952C25.0092 13.08 25.5745 13.0907 26.2145 12.984C26.8758 12.856 27.6118 12.5467 28.4225 12.056C28.5718 11.9493 28.7105 11.8533 28.8385 11.768C28.9878 11.6613 29.1372 11.5547 29.2865 11.448C28.8812 10.6373 28.3478 9.95467 27.6865 9.4C27.0465 8.84533 26.2358 8.568 25.2545 8.568C24.5932 8.568 24.0278 8.664 23.5585 8.856C23.1745 9.15467 22.9185 9.51733 22.7905 9.944C22.6625 10.3707 22.6518 10.7973 22.7585 11.224ZM43.5965 17.016C44.3218 16.44 45.0258 15.992 45.7085 15.672C46.4125 15.352 47.0952 15.0533 47.7565 14.776C48.4392 14.4987 49.0258 14.232 49.5165 13.976C50.0072 13.72 50.4018 13.4533 50.7005 13.176C50.9992 12.8773 51.2125 12.5467 51.3405 12.184C51.4898 11.8 51.5645 11.352 51.5645 10.84C51.5645 10.4773 51.4898 10.136 51.3405 9.816C51.2125 9.496 51.0098 9.22933 50.7325 9.016C50.4552 8.78133 50.1032 8.61067 49.6765 8.504C49.2498 8.39733 48.7378 8.38667 48.1405 8.472C47.0952 8.62133 46.0925 9.15467 45.1325 10.072C44.1938 10.968 43.3512 12.0347 42.6045 13.272V10.648C42.9245 10.2427 43.2978 9.89067 43.7245 9.592C44.1725 9.272 44.6418 9.016 45.1325 8.824C45.6232 8.61067 46.1245 8.45067 46.6365 8.344C47.1698 8.23733 47.6818 8.17333 48.1725 8.152C49.9218 8.10933 51.2872 8.48267 52.2685 9.272C53.2498 10.0613 53.7405 11.384 53.7405 13.24V20.472C53.7405 20.8987 53.8045 21.2933 53.9325 21.656C54.0818 21.9973 54.4338 22.1573 54.9885 22.136C55.1165 22.136 55.2552 22.1147 55.4045 22.072C55.5538 22.008 55.6925 21.912 55.8205 21.784V21.944C55.6285 22.2853 55.3192 22.5733 54.8925 22.808C54.4658 23.0427 53.9752 23.16 53.4205 23.16C53.0365 23.16 52.7165 23.0853 52.4605 22.936C52.2045 22.7867 51.9912 22.6053 51.8205 22.392C51.6712 22.1787 51.5645 21.9653 51.5005 21.752C51.4365 21.5173 51.4045 21.3253 51.4045 21.176C51.0845 21.5387 50.7432 21.8587 50.3805 22.136C50.0392 22.392 49.6445 22.616 49.1965 22.808C48.7698 23 48.2685 23.1387 47.6925 23.224C47.1378 23.3307 46.4872 23.3733 45.7405 23.352C45.1858 23.3307 44.6738 23.2453 44.2045 23.096C43.7352 22.968 43.3512 22.776 43.0525 22.52C42.7325 22.2427 42.4872 21.9227 42.3165 21.56C42.1672 21.1973 42.0818 20.8027 42.0605 20.376C42.0392 19.7573 42.1672 19.1387 42.4445 18.52C42.7218 17.9013 43.1058 17.4 43.5965 17.016ZM44.5885 19.8C44.5885 20.8453 44.8552 21.624 45.3885 22.136C45.9432 22.6267 46.5618 22.8827 47.2445 22.904C47.6712 22.9253 48.1192 22.8613 48.5885 22.712C49.0792 22.5413 49.5272 22.328 49.9325 22.072C50.3378 21.816 50.6685 21.5173 50.9245 21.176C51.2018 20.8133 51.3405 20.4507 51.3405 20.088V13.56C50.5938 13.816 49.8258 14.1253 49.0365 14.488C48.2472 14.8507 47.5218 15.2773 46.8605 15.768C46.1992 16.2587 45.6552 16.8347 45.2285 17.496C44.8018 18.1573 44.5885 18.9253 44.5885 19.8ZM59.2045 21.08C58.6498 20.4613 58.2125 19.7147 57.8925 18.84C57.5938 17.944 57.4445 16.9093 57.4445 15.736C57.4445 14.392 57.7112 13.1867 58.2445 12.12C58.8632 10.8613 59.7592 9.89067 60.9325 9.208C62.1058 8.504 63.4178 8.152 64.8685 8.152C65.8712 8.152 66.8738 8.28 67.8765 8.536C68.9005 8.792 69.7218 9.272 70.3405 9.976V13.016C70.1058 12.5253 69.8285 12.024 69.5085 11.512C69.2098 10.9787 68.8578 10.488 68.4525 10.04C68.0472 9.592 67.5885 9.22933 67.0765 8.952C66.5645 8.65333 65.9778 8.504 65.3165 8.504C64.6125 8.48267 63.8978 8.64267 63.1725 8.984C62.4472 9.304 61.8392 9.74133 61.3485 10.296C60.8792 10.8507 60.5272 11.5333 60.2925 12.344C60.0792 13.1333 59.9618 13.9653 59.9405 14.84C59.9192 15.6933 59.9938 16.536 60.1645 17.368C60.3565 18.2 60.6232 18.9253 60.9645 19.544C61.5405 20.6107 62.2765 21.3787 63.1725 21.848C64.0685 22.296 64.9965 22.52 65.9565 22.52C66.9805 22.52 67.8445 22.2853 68.5485 21.816C69.2738 21.3253 69.9138 20.7387 70.4685 20.056L70.6605 20.184C70.1272 21.016 69.3592 21.752 68.3565 22.392C67.3538 23.032 66.1165 23.352 64.6445 23.352C63.5778 23.352 62.5752 23.1707 61.6365 22.808C60.6978 22.424 59.8872 21.848 59.2045 21.08ZM73.2155 12.12C73.8342 10.8613 74.7302 9.89067 75.9035 9.208C77.0768 8.504 78.3888 8.152 79.8395 8.152C80.9275 8.152 81.8662 8.33333 82.6555 8.696C83.4448 9.03733 84.0742 9.50667 84.5435 10.104C85.0128 10.68 85.3328 11.352 85.5035 12.12C85.6742 12.8667 85.6955 13.6347 85.5675 14.424L74.9435 16.12C75.0075 16.76 75.1248 17.3787 75.2955 17.976C75.4662 18.552 75.6688 19.0747 75.9035 19.544C76.4795 20.6107 77.2155 21.3787 78.1115 21.848C79.0288 22.296 79.9675 22.52 80.9275 22.52C81.9515 22.52 82.8155 22.2853 83.5195 21.816C84.2448 21.3253 84.8848 20.7387 85.4395 20.056L85.5995 20.184C85.0875 21.016 84.3302 21.752 83.3275 22.392C82.3248 23.032 81.0875 23.352 79.6155 23.352C78.5488 23.352 77.5355 23.1707 76.5755 22.808C75.6368 22.424 74.8368 21.848 74.1755 21.08C73.6208 20.4613 73.1835 19.7147 72.8635 18.84C72.5648 17.944 72.4155 16.9093 72.4155 15.736C72.4155 14.392 72.6822 13.1867 73.2155 12.12ZM74.9115 15.768L80.7035 14.68C81.0235 14.616 81.3008 14.5307 81.5355 14.424C81.7915 14.3173 82.0368 14.2107 82.2715 14.104C82.7835 13.848 83.1568 13.5173 83.3915 13.112C83.6262 12.6853 83.7328 12.248 83.7115 11.8C83.6902 10.7547 83.3915 9.976 82.8155 9.464C82.2395 8.93067 81.5568 8.62133 80.7675 8.536C79.9782 8.45067 79.1675 8.55733 78.3355 8.856C77.5035 9.15467 76.8315 9.61333 76.3195 10.232C75.7648 10.8933 75.3702 11.7253 75.1355 12.728C74.9222 13.7093 74.8475 14.7227 74.9115 15.768Z",fill:e})});var Wo=({className:e="",items:o,navigate:t,activeKey:r,...n})=>{let s=o?.map(a=>({...a,label:a.label,key:a.key,children:a.children}));return jsxRuntime.jsx(antd.Tabs,{className:e,style:{marginBottom:32},items:s,activeKey:r,onChange:a=>{t&&t(`${window.location.pathname}/${a}`);},...n})},Xo=Wo;var ke=i__default.default.div`
329
+ `,$o=({onChange:e=()=>null,options:o=[],size:t="middle",defaultValue:r="",block:n=!0})=>jsxRuntime.jsx(Io,{block:n,onChange:e,options:o,size:t,defaultValue:r}),Ao=$o;var No=({color:e})=>jsxRuntime.jsx("svg",{width:"86",height:"24",viewBox:"0 0 86 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M0.632 6.104C0.632 5.05867 0.834667 4.16267 1.24 3.416C1.66667 2.66933 2.22133 2.06133 2.904 1.592C3.608 1.12267 4.39733 0.781332 5.272 0.567999C6.14667 0.333333 7.032 0.216 7.928 0.216C8.35467 0.216 8.856 0.237333 9.432 0.279999C10.0293 0.322666 10.6267 0.397333 11.224 0.504C11.8427 0.610666 12.44 0.76 13.016 0.952C13.592 1.12267 14.0827 1.34667 14.488 1.624V6.04C14.296 5.336 13.9867 4.664 13.56 4.024C13.1547 3.36267 12.664 2.78667 12.088 2.296C11.512 1.784 10.8613 1.37867 10.136 1.08C9.432 0.759998 8.67467 0.599998 7.864 0.599998C7.224 0.599998 6.584 0.685332 5.944 0.855999C5.32533 1.00533 4.76 1.25067 4.248 1.592C3.75733 1.912 3.352 2.328 3.032 2.84C2.73333 3.352 2.584 3.97067 2.584 4.696C2.584 5.464 2.76533 6.136 3.128 6.712C3.512 7.26667 4.01333 7.768 4.632 8.216C5.25067 8.664 5.95467 9.08 6.744 9.464C7.53333 9.82667 8.33333 10.2 9.144 10.584C9.976 10.9467 10.7867 11.3307 11.576 11.736C12.3653 12.1413 13.0693 12.6107 13.688 13.144C14.3067 13.656 14.7973 14.2533 15.16 14.936C15.544 15.6187 15.736 16.408 15.736 17.304C15.736 18.4773 15.5013 19.4587 15.032 20.248C14.5627 21.016 13.944 21.6347 13.176 22.104C12.4293 22.552 11.576 22.872 10.616 23.064C9.656 23.256 8.68533 23.352 7.704 23.352C7.256 23.352 6.712 23.32 6.072 23.256C5.432 23.2133 4.77067 23.1173 4.088 22.968C3.42667 22.8187 2.78667 22.6373 2.168 22.424C1.54933 22.1893 1.03733 21.8907 0.632 21.528V16.792C0.845333 17.688 1.16533 18.52 1.592 19.288C2.04 20.056 2.57333 20.7173 3.192 21.272C3.832 21.8053 4.54667 22.232 5.336 22.552C6.14667 22.8507 7.02133 23 7.96 23C8.62133 23 9.272 22.9253 9.912 22.776C10.552 22.6053 11.128 22.3493 11.64 22.008C12.152 21.6453 12.5573 21.1973 12.856 20.664C13.176 20.1093 13.336 19.448 13.336 18.68C13.336 17.5493 13.016 16.6107 12.376 15.864C11.7573 15.1173 10.9787 14.4773 10.04 13.944C9.10133 13.3893 8.07733 12.888 6.968 12.44C5.88 11.9707 4.86667 11.4587 3.928 10.904C2.98933 10.3493 2.2 9.69867 1.56 8.952C0.941333 8.20533 0.632 7.256 0.632 6.104ZM25.5425 8.12C26.6945 8.12 27.7078 8.30133 28.5825 8.664C29.4785 9.00533 30.2358 9.48533 30.8545 10.104C31.7932 9.18667 32.6892 8.17333 33.5425 7.064C34.3958 5.95467 35.1852 4.86667 35.9105 3.8C36.3372 3.18133 36.7318 2.60533 37.0945 2.072C37.4572 1.51733 37.7878 1.02667 38.0865 0.599998H38.4065V20.952C38.4065 21.3573 38.4598 21.688 38.5665 21.944C38.6732 22.2 38.8012 22.4027 38.9505 22.552C39.1212 22.68 39.2918 22.776 39.4625 22.84C39.6332 22.8827 39.7825 22.904 39.9105 22.904V23H34.5665V22.904C34.7158 22.904 34.8758 22.8827 35.0465 22.84C35.2172 22.776 35.3772 22.68 35.5265 22.552C35.6758 22.4027 35.7932 22.2 35.8785 21.944C35.9638 21.688 36.0065 21.3573 36.0065 20.952V4.312C35.5158 5.016 34.9932 5.752 34.4385 6.52C33.8838 7.26667 33.2972 8.00267 32.6785 8.728C32.0598 9.432 31.3985 10.104 30.6945 10.744C30.0118 11.3627 29.2972 11.896 28.5505 12.344C27.7185 12.8347 26.9505 13.144 26.2465 13.272C25.5638 13.4 24.9558 13.4 24.4225 13.272C23.8892 13.144 23.4518 12.92 23.1105 12.6C22.7692 12.2587 22.5238 11.8853 22.3745 11.48C22.1398 10.7547 22.2145 10.072 22.5985 9.432C21.9158 10.008 21.4252 10.776 21.1265 11.736C20.8278 12.6747 20.6785 13.6453 20.6785 14.648C20.6785 15.4373 20.7638 16.312 20.9345 17.272C21.1052 18.232 21.3825 19.1387 21.7665 19.992C22.1718 20.824 22.7052 21.528 23.3665 22.104C24.0278 22.68 24.8598 22.968 25.8625 22.968C26.7158 22.968 27.4412 22.808 28.0385 22.488C28.6358 22.168 29.1158 21.7413 29.4785 21.208C29.8412 20.6533 30.0972 20.024 30.2465 19.32C30.4172 18.616 30.5025 17.8907 30.5025 17.144C30.5025 15.416 30.2038 13.7627 29.6065 12.184L31.3985 10.712C31.9532 11.4587 32.3372 12.2587 32.5505 13.112C32.7852 13.9653 32.9025 14.8613 32.9025 15.8C32.9025 16.9307 32.7318 17.9653 32.3905 18.904C32.0705 19.8213 31.5905 20.6107 30.9505 21.272C30.3318 21.9333 29.5638 22.4453 28.6465 22.808C27.7505 23.1707 26.7265 23.352 25.5745 23.352C24.4225 23.352 23.3878 23.1707 22.4705 22.808C21.5745 22.4453 20.8065 21.9333 20.1665 21.272C19.5478 20.6107 19.0678 19.8213 18.7265 18.904C18.4065 17.9653 18.2465 16.9307 18.2465 15.8C18.2465 14.712 18.4172 13.6987 18.7585 12.76C19.0998 11.8213 19.5798 11.0107 20.1985 10.328C20.8385 9.624 21.6065 9.08 22.5025 8.696C23.3985 8.312 24.4118 8.12 25.5425 8.12ZM22.7585 11.224C22.8652 11.608 23.0678 11.96 23.3665 12.28C23.6652 12.6 24.0492 12.824 24.5185 12.952C25.0092 13.08 25.5745 13.0907 26.2145 12.984C26.8758 12.856 27.6118 12.5467 28.4225 12.056C28.5718 11.9493 28.7105 11.8533 28.8385 11.768C28.9878 11.6613 29.1372 11.5547 29.2865 11.448C28.8812 10.6373 28.3478 9.95467 27.6865 9.4C27.0465 8.84533 26.2358 8.568 25.2545 8.568C24.5932 8.568 24.0278 8.664 23.5585 8.856C23.1745 9.15467 22.9185 9.51733 22.7905 9.944C22.6625 10.3707 22.6518 10.7973 22.7585 11.224ZM43.5965 17.016C44.3218 16.44 45.0258 15.992 45.7085 15.672C46.4125 15.352 47.0952 15.0533 47.7565 14.776C48.4392 14.4987 49.0258 14.232 49.5165 13.976C50.0072 13.72 50.4018 13.4533 50.7005 13.176C50.9992 12.8773 51.2125 12.5467 51.3405 12.184C51.4898 11.8 51.5645 11.352 51.5645 10.84C51.5645 10.4773 51.4898 10.136 51.3405 9.816C51.2125 9.496 51.0098 9.22933 50.7325 9.016C50.4552 8.78133 50.1032 8.61067 49.6765 8.504C49.2498 8.39733 48.7378 8.38667 48.1405 8.472C47.0952 8.62133 46.0925 9.15467 45.1325 10.072C44.1938 10.968 43.3512 12.0347 42.6045 13.272V10.648C42.9245 10.2427 43.2978 9.89067 43.7245 9.592C44.1725 9.272 44.6418 9.016 45.1325 8.824C45.6232 8.61067 46.1245 8.45067 46.6365 8.344C47.1698 8.23733 47.6818 8.17333 48.1725 8.152C49.9218 8.10933 51.2872 8.48267 52.2685 9.272C53.2498 10.0613 53.7405 11.384 53.7405 13.24V20.472C53.7405 20.8987 53.8045 21.2933 53.9325 21.656C54.0818 21.9973 54.4338 22.1573 54.9885 22.136C55.1165 22.136 55.2552 22.1147 55.4045 22.072C55.5538 22.008 55.6925 21.912 55.8205 21.784V21.944C55.6285 22.2853 55.3192 22.5733 54.8925 22.808C54.4658 23.0427 53.9752 23.16 53.4205 23.16C53.0365 23.16 52.7165 23.0853 52.4605 22.936C52.2045 22.7867 51.9912 22.6053 51.8205 22.392C51.6712 22.1787 51.5645 21.9653 51.5005 21.752C51.4365 21.5173 51.4045 21.3253 51.4045 21.176C51.0845 21.5387 50.7432 21.8587 50.3805 22.136C50.0392 22.392 49.6445 22.616 49.1965 22.808C48.7698 23 48.2685 23.1387 47.6925 23.224C47.1378 23.3307 46.4872 23.3733 45.7405 23.352C45.1858 23.3307 44.6738 23.2453 44.2045 23.096C43.7352 22.968 43.3512 22.776 43.0525 22.52C42.7325 22.2427 42.4872 21.9227 42.3165 21.56C42.1672 21.1973 42.0818 20.8027 42.0605 20.376C42.0392 19.7573 42.1672 19.1387 42.4445 18.52C42.7218 17.9013 43.1058 17.4 43.5965 17.016ZM44.5885 19.8C44.5885 20.8453 44.8552 21.624 45.3885 22.136C45.9432 22.6267 46.5618 22.8827 47.2445 22.904C47.6712 22.9253 48.1192 22.8613 48.5885 22.712C49.0792 22.5413 49.5272 22.328 49.9325 22.072C50.3378 21.816 50.6685 21.5173 50.9245 21.176C51.2018 20.8133 51.3405 20.4507 51.3405 20.088V13.56C50.5938 13.816 49.8258 14.1253 49.0365 14.488C48.2472 14.8507 47.5218 15.2773 46.8605 15.768C46.1992 16.2587 45.6552 16.8347 45.2285 17.496C44.8018 18.1573 44.5885 18.9253 44.5885 19.8ZM59.2045 21.08C58.6498 20.4613 58.2125 19.7147 57.8925 18.84C57.5938 17.944 57.4445 16.9093 57.4445 15.736C57.4445 14.392 57.7112 13.1867 58.2445 12.12C58.8632 10.8613 59.7592 9.89067 60.9325 9.208C62.1058 8.504 63.4178 8.152 64.8685 8.152C65.8712 8.152 66.8738 8.28 67.8765 8.536C68.9005 8.792 69.7218 9.272 70.3405 9.976V13.016C70.1058 12.5253 69.8285 12.024 69.5085 11.512C69.2098 10.9787 68.8578 10.488 68.4525 10.04C68.0472 9.592 67.5885 9.22933 67.0765 8.952C66.5645 8.65333 65.9778 8.504 65.3165 8.504C64.6125 8.48267 63.8978 8.64267 63.1725 8.984C62.4472 9.304 61.8392 9.74133 61.3485 10.296C60.8792 10.8507 60.5272 11.5333 60.2925 12.344C60.0792 13.1333 59.9618 13.9653 59.9405 14.84C59.9192 15.6933 59.9938 16.536 60.1645 17.368C60.3565 18.2 60.6232 18.9253 60.9645 19.544C61.5405 20.6107 62.2765 21.3787 63.1725 21.848C64.0685 22.296 64.9965 22.52 65.9565 22.52C66.9805 22.52 67.8445 22.2853 68.5485 21.816C69.2738 21.3253 69.9138 20.7387 70.4685 20.056L70.6605 20.184C70.1272 21.016 69.3592 21.752 68.3565 22.392C67.3538 23.032 66.1165 23.352 64.6445 23.352C63.5778 23.352 62.5752 23.1707 61.6365 22.808C60.6978 22.424 59.8872 21.848 59.2045 21.08ZM73.2155 12.12C73.8342 10.8613 74.7302 9.89067 75.9035 9.208C77.0768 8.504 78.3888 8.152 79.8395 8.152C80.9275 8.152 81.8662 8.33333 82.6555 8.696C83.4448 9.03733 84.0742 9.50667 84.5435 10.104C85.0128 10.68 85.3328 11.352 85.5035 12.12C85.6742 12.8667 85.6955 13.6347 85.5675 14.424L74.9435 16.12C75.0075 16.76 75.1248 17.3787 75.2955 17.976C75.4662 18.552 75.6688 19.0747 75.9035 19.544C76.4795 20.6107 77.2155 21.3787 78.1115 21.848C79.0288 22.296 79.9675 22.52 80.9275 22.52C81.9515 22.52 82.8155 22.2853 83.5195 21.816C84.2448 21.3253 84.8848 20.7387 85.4395 20.056L85.5995 20.184C85.0875 21.016 84.3302 21.752 83.3275 22.392C82.3248 23.032 81.0875 23.352 79.6155 23.352C78.5488 23.352 77.5355 23.1707 76.5755 22.808C75.6368 22.424 74.8368 21.848 74.1755 21.08C73.6208 20.4613 73.1835 19.7147 72.8635 18.84C72.5648 17.944 72.4155 16.9093 72.4155 15.736C72.4155 14.392 72.6822 13.1867 73.2155 12.12ZM74.9115 15.768L80.7035 14.68C81.0235 14.616 81.3008 14.5307 81.5355 14.424C81.7915 14.3173 82.0368 14.2107 82.2715 14.104C82.7835 13.848 83.1568 13.5173 83.3915 13.112C83.6262 12.6853 83.7328 12.248 83.7115 11.8C83.6902 10.7547 83.3915 9.976 82.8155 9.464C82.2395 8.93067 81.5568 8.62133 80.7675 8.536C79.9782 8.45067 79.1675 8.55733 78.3355 8.856C77.5035 9.15467 76.8315 9.61333 76.3195 10.232C75.7648 10.8933 75.3702 11.7253 75.1355 12.728C74.9222 13.7093 74.8475 14.7227 74.9115 15.768Z",fill:e})});var Wo=({className:e="",items:o,navigate:t,activeKey:r,pathname:n,...s})=>{let l=o?.map(a=>({...a,label:a.label,key:a.key,children:a.children}));return jsxRuntime.jsx(antd.Tabs,{className:e,style:{marginBottom:32},items:l,activeKey:r,onChange:a=>{t&&t(`${n}/${a}`);},...s})},Xo=Wo;var ke=i__default.default.div`
330
330
  display: flex;
331
331
  border: 1px solid #285e50;
332
332
  border-radius: 8px;
@@ -475,7 +475,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
475
475
  padding: 0.2rem 1.5rem;
476
476
  text-transform: uppercase;
477
477
  }
478
- `;var it=({children:e,cta:o,onItemClick:t=()=>null,onMenuChange:r=()=>null,className:n="",menuProps:s={menuButton:null},caretColor:a="#285E50"})=>{let l={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0},c=react$1.useRef(null),[m,y]=reactMenu.useMenuState({transition:!0}),f=reactMenu.useClick(m.state,y),h=m.state==="open";return react$1.useEffect(()=>{r(m.state);},[m.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(ke,{className:`${n} ${h?"menu-open":"menu-closed"}`,ref:c,...f,children:[jsxRuntime.jsx("div",{children:o}),jsxRuntime.jsx("div",{style:{marginTop:2},children:jsxRuntime.jsx(H.Caret,{direction:h?"up":"down",color:a})}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...m,anchorRef:c,onClose:()=>y(!1),onItemClick:t,onMenuChange:r,...l,...s,children:e})]})})},st=({label:e,className:o=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:o,children:e}),at=({label:e,value:o,onClick:t=()=>null,disabled:r=!1,linkTo:n="",className:s=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:s,value:o,onClick:t,href:n,disabled:r,children:e}),lt=({value:e,onChange:o=()=>null,className:t=""})=>jsxRuntime.jsx(reactMenu.FocusableItem,{children:({ref:r})=>jsxRuntime.jsx("input",{className:t,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:o})}),pt=({children:e,className:o=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:o,children:e}),dt=({className:e=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:e}),X={Button:st,Container:it,Search:lt,Divider:dt,Header:pt,Item:at};var gt=react.keyframes`
478
+ `;var it=({children:e,cta:o,onItemClick:t=()=>null,onMenuChange:r=()=>null,className:n="",menuProps:s={menuButton:null},caretColor:l="#285E50"})=>{let a={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0},c=react$1.useRef(null),[m,y]=reactMenu.useMenuState({transition:!0}),f=reactMenu.useClick(m.state,y),h=m.state==="open";return react$1.useEffect(()=>{r(m.state);},[m.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(ke,{className:`${n} ${h?"menu-open":"menu-closed"}`,ref:c,...f,children:[jsxRuntime.jsx("div",{children:o}),jsxRuntime.jsx("div",{style:{marginTop:2},children:jsxRuntime.jsx(H.Caret,{direction:h?"up":"down",color:l})}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...m,anchorRef:c,onClose:()=>y(!1),onItemClick:t,onMenuChange:r,...a,...s,children:e})]})})},st=({label:e,className:o=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:o,children:e}),at=({label:e,value:o,onClick:t=()=>null,disabled:r=!1,linkTo:n="",className:s=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:s,value:o,onClick:t,href:n,disabled:r,children:e}),lt=({value:e,onChange:o=()=>null,className:t=""})=>jsxRuntime.jsx(reactMenu.FocusableItem,{children:({ref:r})=>jsxRuntime.jsx("input",{className:t,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:o})}),pt=({children:e,className:o=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:o,children:e}),dt=({className:e=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:e}),X={Button:st,Container:it,Search:lt,Divider:dt,Header:pt,Item:at};var gt=react.keyframes`
479
479
  from {
480
480
  opacity: 0;
481
481
  }
@@ -524,7 +524,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
524
524
  &.szh-menu__divider {
525
525
  margin: 0;
526
526
  }
527
- `;var yt=({startTime:e="00:00",endTime:o="24:00",interval:t=30,defaultValue:r="",onChange:n=()=>null})=>{let[s,a]=react$1.useState("closed"),[l,c]=react$1.useState(),y=react$1.useCallback(()=>{let u=luxon.DateTime.fromFormat(o,"HH:mm"),C=luxon.Duration.fromObject({minutes:t}),w=[],v=luxon.DateTime.fromFormat(e,"hh:mm");for(;v<=u;)w.push({label:v.toFormat("h:mm a"),value:{hour:v.toFormat("HH"),min:v.toFormat("mm"),raw:v.toFormat("HH:mm"),formatted:v.toFormat("h:mm a")}}),v=v.plus(C);return w},[e,o,t,r])();return react$1.useEffect(()=>{let u=y.find(C=>C.value.raw===(r||e));c(u);},[r]),jsxRuntime.jsx(Me,{onItemClick:u=>{let C=y.find(w=>w.value.raw===u.value.raw);c(C),n(u);},onMenuChange:u=>a(u),cta:jsxRuntime.jsxs(Se,{children:[jsxRuntime.jsx(d.Body,{size:"lg",children:l?.value.formatted||"-"}),jsxRuntime.jsx(H.Caret,{direction:["open","opening"].includes(s)?"up":"down"})]}),children:y.map((u,C,w)=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(He,{label:u.label,value:u.value},u.label),w.length-1!==C&&jsxRuntime.jsx(ze,{})]}))})},w2=yt;var vt=i__default.default.label`
527
+ `;var yt=({startTime:e="00:00",endTime:o="24:00",interval:t=30,defaultValue:r="",onChange:n=()=>null})=>{let[s,l]=react$1.useState("closed"),[a,c]=react$1.useState(),y=react$1.useCallback(()=>{let u=luxon.DateTime.fromFormat(o,"HH:mm"),C=luxon.Duration.fromObject({minutes:t}),w=[],v=luxon.DateTime.fromFormat(e,"hh:mm");for(;v<=u;)w.push({label:v.toFormat("h:mm a"),value:{hour:v.toFormat("HH"),min:v.toFormat("mm"),raw:v.toFormat("HH:mm"),formatted:v.toFormat("h:mm a")}}),v=v.plus(C);return w},[e,o,t,r])();return react$1.useEffect(()=>{let u=y.find(C=>C.value.raw===(r||e));c(u);},[r]),jsxRuntime.jsx(Me,{onItemClick:u=>{let C=y.find(w=>w.value.raw===u.value.raw);c(C),n(u);},onMenuChange:u=>l(u),cta:jsxRuntime.jsxs(Se,{children:[jsxRuntime.jsx(d.Body,{size:"lg",children:a?.value.formatted||"-"}),jsxRuntime.jsx(H.Caret,{direction:["open","opening"].includes(s)?"up":"down"})]}),children:y.map((u,C,w)=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(He,{label:u.label,value:u.value},u.label),w.length-1!==C&&jsxRuntime.jsx(ze,{})]}))})},w2=yt;var vt=i__default.default.label`
528
528
  position: relative;
529
529
  display: inline-block;
530
530
  width: 75px;
@@ -573,7 +573,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
573
573
  font-weight: 500;
574
574
  line-height: 30px;
575
575
  }
576
- `,St=({defaultState:e=!1,name:o,label:t={active:"YES",inactive:"NO"},handleEvent:r=null,value:n,disabled:s=!1})=>{let a=reactHookForm.useFormContext(),[l,c]=react$1.useState(e);return react$1.useEffect(()=>{a&&e&&a.setValue(o,n);},[]),react$1.useEffect(()=>{c(e);},[e]),jsxRuntime.jsxs(vt,{htmlFor:o,children:[jsxRuntime.jsx(kt,{type:"checkbox",checked:l,onClick:y=>{if(s)return;let f=!l;c(f),a&&a.setValue(o,f?y.target.value:null),r&&r(y.target.value);},id:o,name:o,value:n}),jsxRuntime.jsx(Lt,{style:s?{backgroundColor:"#adadad"}:{},children:jsxRuntime.jsx(d.Body,{color:"#fff",children:l?t.active:t.inactive})})]})},L2=St;var zt=i__default.default.div`
576
+ `,St=({defaultState:e=!1,name:o,label:t={active:"YES",inactive:"NO"},handleEvent:r=null,value:n,disabled:s=!1})=>{let l=reactHookForm.useFormContext(),[a,c]=react$1.useState(e);return react$1.useEffect(()=>{l&&e&&l.setValue(o,n);},[]),react$1.useEffect(()=>{c(e);},[e]),jsxRuntime.jsxs(vt,{htmlFor:o,children:[jsxRuntime.jsx(kt,{type:"checkbox",checked:a,onClick:y=>{if(s)return;let f=!a;c(f),l&&l.setValue(o,f?y.target.value:null),r&&r(y.target.value);},id:o,name:o,value:n}),jsxRuntime.jsx(Lt,{style:s?{backgroundColor:"#adadad"}:{},children:jsxRuntime.jsx(d.Body,{color:"#fff",children:a?t.active:t.inactive})})]})},L2=St;var zt=i__default.default.div`
577
577
  display: inline-block;
578
578
  `,Pt=({className:e="",children:o,content:t,...r})=>jsxRuntime.jsx(antd.Tooltip,{placement:"topLeft",color:"#E9F0EE",title:t,arrow:{pointAtCenter:!0},overlayClassName:e,...r,children:jsxRuntime.jsx(zt,{children:o})}),Vt=i__default.default(Pt)`
579
579
  max-width: 355px;
@@ -641,7 +641,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
641
641
  }
642
642
  `,Te=i__default.default(d.Body)`
643
643
  margin-bottom: 24px;
644
- `,$t=({name:e,label:o=null,details:t=null,type:r="text",options:n={},previewOnly:s=!1,textArea:a=!1,marginBottom:l="24px",isLabelBold:c=!0,format:m=String,errorMessage:y="This field is required",...f})=>{let{register:h,control:u,getValues:C,formState:{errors:w}}=reactHookForm.useFormContext();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx(Tt,{size:"lg",isLabelBold:c,children:o}),t&&jsxRuntime.jsx(_t,{children:t}),a?jsxRuntime.jsx("div",{children:s?jsxRuntime.jsx(Te,{size:"md",children:C(e)||"N/A"}):jsxRuntime.jsx(It,{...f,...h(e,n),marginBottom:l})}):jsxRuntime.jsx("div",{style:{width:"100%"},children:s?jsxRuntime.jsx(Te,{size:"md",children:C(e)||"N/A"}):jsxRuntime.jsxs("div",{style:{marginBottom:w?.[e]?"6px":l,display:"flex",flexDirection:"column"},children:[jsxRuntime.jsx(reactHookForm.Controller,{render:v=>jsxRuntime.jsx(Zt,{...f,unmask:!1,mask:m,name:v.field.name,onBlur:v.field.onBlur,defaultValue:n.value||v.field.value,onAccept:V=>v.field.onChange({target:{value:V}}),marginBottom:l,type:r}),name:e,rules:n,control:u}),w?.[e]&&jsxRuntime.jsx(U,{children:y})]})})]})},I=$t;var Nt=i__default.default.div`
644
+ `,$t=({name:e,label:o=null,details:t=null,type:r="text",options:n={},previewOnly:s=!1,textArea:l=!1,marginBottom:a="24px",isLabelBold:c=!0,format:m=String,errorMessage:y="This field is required",...f})=>{let{register:h,control:u,getValues:C,formState:{errors:w}}=reactHookForm.useFormContext();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx(Tt,{size:"lg",isLabelBold:c,children:o}),t&&jsxRuntime.jsx(_t,{children:t}),l?jsxRuntime.jsx("div",{children:s?jsxRuntime.jsx(Te,{size:"md",children:C(e)||"N/A"}):jsxRuntime.jsx(It,{...f,...h(e,n),marginBottom:a})}):jsxRuntime.jsx("div",{style:{width:"100%"},children:s?jsxRuntime.jsx(Te,{size:"md",children:C(e)||"N/A"}):jsxRuntime.jsxs("div",{style:{marginBottom:w?.[e]?"6px":a,display:"flex",flexDirection:"column"},children:[jsxRuntime.jsx(reactHookForm.Controller,{render:v=>jsxRuntime.jsx(Zt,{...f,unmask:!1,mask:m,name:v.field.name,onBlur:v.field.onBlur,defaultValue:n.value||v.field.value,onAccept:V=>v.field.onChange({target:{value:V}}),marginBottom:a,type:r}),name:e,rules:n,control:u}),w?.[e]&&jsxRuntime.jsx(U,{children:y})]})})]})},I=$t;var Nt=i__default.default.div`
645
645
  margin-bottom: 32px;
646
646
  `,Gt=i__default.default.div`
647
647
  display: ${({inline:e})=>e?"flex":"block"};
@@ -728,7 +728,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
728
728
  input[type="text"] {
729
729
  margin: 0;
730
730
  }
731
- `,s2=({option:e,name:o,...t})=>{let{register:r}=reactHookForm.useFormContext();return jsxRuntime.jsxs(Wt,{children:[jsxRuntime.jsx(Xt,{type:"checkbox",value:e.value,...r(o),...t}),jsxRuntime.jsx("label",{htmlFor:o,children:jsxRuntime.jsx(d.Body,{children:e.label})})]})},Oe=({name:e,label:o,details:t="",options:r=[],inline:n=!1,other:s={},...a})=>jsxRuntime.jsxs(Nt,{children:[jsxRuntime.jsx(Kt,{size:"lg",children:o}),t&&jsxRuntime.jsx(Jt,{children:t}),jsxRuntime.jsxs(Gt,{inline:n,children:[r.map(l=>jsxRuntime.jsx(s2,{option:l,name:e,...a},`${e}-${l.value}`)),s.label&&jsxRuntime.jsxs(Ut,{children:[jsxRuntime.jsx(s2,{option:{label:s.label,value:"other"},name:e,...a},e),jsxRuntime.jsx(I,{name:`${e}_other`,...a})]})]})]});var Qt=({formMethods:e=null,formOptions:o={},onSubmit:t,children:r,className:n=""})=>{let s={mode:"onBlur",...o},a=reactHookForm.useForm(s),l=e||a,c=m=>t(m);return jsxRuntime.jsx(reactHookForm.FormProvider,{...l,children:jsxRuntime.jsx("form",{className:n,onSubmit:l.handleSubmit(c),children:r})})},Ie=Qt;var e5=({label:e,name:o,options:t={},...r})=>{let{register:n}=reactHookForm.useFormContext(),s=i__default.default.div`
731
+ `,s2=({option:e,name:o,...t})=>{let{register:r}=reactHookForm.useFormContext();return jsxRuntime.jsxs(Wt,{children:[jsxRuntime.jsx(Xt,{type:"checkbox",value:e.value,...r(o),...t}),jsxRuntime.jsx("label",{htmlFor:o,children:jsxRuntime.jsx(d.Body,{children:e.label})})]})},Oe=({name:e,label:o,details:t="",options:r=[],inline:n=!1,other:s={},...l})=>jsxRuntime.jsxs(Nt,{children:[jsxRuntime.jsx(Kt,{size:"lg",children:o}),t&&jsxRuntime.jsx(Jt,{children:t}),jsxRuntime.jsxs(Gt,{inline:n,children:[r.map(a=>jsxRuntime.jsx(s2,{option:a,name:e,...l},`${e}-${a.value}`)),s.label&&jsxRuntime.jsxs(Ut,{children:[jsxRuntime.jsx(s2,{option:{label:s.label,value:"other"},name:e,...l},e),jsxRuntime.jsx(I,{name:`${e}_other`,...l})]})]})]});var Qt=({formMethods:e=null,formOptions:o={},onSubmit:t,children:r,className:n=""})=>{let s={mode:"onBlur",...o},l=reactHookForm.useForm(s),a=e||l,c=m=>t(m);return jsxRuntime.jsx(reactHookForm.FormProvider,{...a,children:jsxRuntime.jsx("form",{className:n,onSubmit:a.handleSubmit(c),children:r})})},Ie=Qt;var e5=({label:e,name:o,options:t={},...r})=>{let{register:n}=reactHookForm.useFormContext(),s=i__default.default.div`
732
732
  position: relative;
733
733
  margin-bottom: 24px;
734
734
 
@@ -737,13 +737,13 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
737
737
  line-height: 17px;
738
738
  color: #555555;
739
739
  }
740
- `,a=i__default.default.div`
740
+ `,l=i__default.default.div`
741
741
  margin: 10px 0;
742
742
  padding: 5px 0;
743
743
  border-bottom: 0.5px solid #555555;
744
744
  display: flex;
745
745
  align-items: end;
746
- `,l=i__default.default.input`
746
+ `,a=i__default.default.input`
747
747
  outline: none;
748
748
  border: none;
749
749
  background: none;
@@ -755,7 +755,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
755
755
  font-size: 24px;
756
756
  font-style: normal;
757
757
  width: 100%;
758
- `;return jsxRuntime.jsxs(s,{children:[jsxRuntime.jsxs(a,{children:[jsxRuntime.jsx(t2,{}),jsxRuntime.jsx(l,{...n(o,t),...r})]}),jsxRuntime.jsx("label",{htmlFor:o,children:jsxRuntime.jsx(d.Body,{children:e})})]})},Ae=e5;var t5=i__default.default.div`
758
+ `;return jsxRuntime.jsxs(s,{children:[jsxRuntime.jsxs(l,{children:[jsxRuntime.jsx(t2,{}),jsxRuntime.jsx(a,{...n(o,t),...r})]}),jsxRuntime.jsx("label",{htmlFor:o,children:jsxRuntime.jsx(d.Body,{children:e})})]})},Ae=e5;var t5=i__default.default.div`
759
759
  margin-bottom: 32px;
760
760
  `,r5=i__default.default.div`
761
761
  display: ${({inline:e})=>e?"flex":"block"};
@@ -840,7 +840,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
840
840
  input[type="text"] {
841
841
  margin: 0;
842
842
  }
843
- `,p2=({option:e,name:o,inline:t,...r})=>{let{register:n}=reactHookForm.useFormContext();return jsxRuntime.jsxs(n5,{inline:t,children:[jsxRuntime.jsx(i5,{type:"radio",value:e.value,...n(o),...r}),jsxRuntime.jsx("label",{htmlFor:o,children:jsxRuntime.jsx(d.Body,{children:e.label})})]})},Fe=({name:e,label:o,details:t="",options:r=[],inline:n=!1,allowOther:s=!1,...a})=>jsxRuntime.jsxs(t5,{children:[jsxRuntime.jsx(s5,{size:"lg",children:o}),t&&jsxRuntime.jsx(a5,{children:t}),jsxRuntime.jsxs(r5,{inline:n,children:[r.map(l=>jsxRuntime.jsx(p2,{option:l,name:e,inline:n,...a},`${e}-${l.value}`)),s&&jsxRuntime.jsxs(l5,{children:[jsxRuntime.jsx(p2,{option:{label:"Other",value:"other"},name:e,inline:n,...a},e),jsxRuntime.jsx(I,{name:`${e}_other`,...a})]})]})]});var g5=i__default.default.div`
843
+ `,p2=({option:e,name:o,inline:t,...r})=>{let{register:n}=reactHookForm.useFormContext();return jsxRuntime.jsxs(n5,{inline:t,children:[jsxRuntime.jsx(i5,{type:"radio",value:e.value,...n(o),...r}),jsxRuntime.jsx("label",{htmlFor:o,children:jsxRuntime.jsx(d.Body,{children:e.label})})]})},Fe=({name:e,label:o,details:t="",options:r=[],inline:n=!1,allowOther:s=!1,...l})=>jsxRuntime.jsxs(t5,{children:[jsxRuntime.jsx(s5,{size:"lg",children:o}),t&&jsxRuntime.jsx(a5,{children:t}),jsxRuntime.jsxs(r5,{inline:n,children:[r.map(a=>jsxRuntime.jsx(p2,{option:a,name:e,inline:n,...l},`${e}-${a.value}`)),s&&jsxRuntime.jsxs(l5,{children:[jsxRuntime.jsx(p2,{option:{label:"Other",value:"other"},name:e,inline:n,...l},e),jsxRuntime.jsx(I,{name:`${e}_other`,...l})]})]})]});var g5=i__default.default.div`
844
844
  position: relative;
845
845
  margin-bottom: 24px;
846
846
  z-index: 40;
@@ -912,7 +912,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
912
912
  left: 0;
913
913
  `,w5=i__default.default(d.Body)`
914
914
  margin-bottom: 24px;
915
- `,v5=({label:e="",name:o,details:t="",placeholder:r="",options:n=[],allowInput:s=!1,previewOnly:a=!1,isLabelBold:l=!0,formOptions:c={},onChange:m=()=>null})=>{let y=react$1.useRef(),f=reactHookForm.useFormContext();f.register(o,c);let[h,u]=react$1.useState(!1),[C,w]=react$1.useState(""),[v,V]=react$1.useState(n),_=web.useSpring(h?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});react$1.useEffect(()=>{let g=p=>{h&&y.current&&!y.current.contains(p.target)&&u(!1);};return document.addEventListener("mousedown",p=>g(p)),()=>{document.removeEventListener("mousedown",p=>g(p));}},[h]);let R=n.find(g=>g.value===f.getValues(o))?.label,T=g=>{w(""),f.setValue(o,g.value),f.trigger(o),m&&m(g),u(!1);};react$1.useEffect(()=>{if(u(!!C),C){let g=n.filter(p=>p.value.match(C.toLowerCase()));V(g),f.setValue(o,C);}else V(n);},[C,n.length]);let b=g=>{g.code==="Enter"&&g.preventDefault();};return jsxRuntime.jsxs(g5,{children:[jsxRuntime.jsx(f5,{size:"lg",isLabelBold:l,children:e}),t&&jsxRuntime.jsx(u5,{children:t}),a?jsxRuntime.jsx(w5,{size:"md",children:R||"N/A"}):jsxRuntime.jsxs(C5,{onClick:()=>u(!h),children:[R||jsxRuntime.jsx("i",{children:r}),s&&jsxRuntime.jsx(x5,{onKeyDown:b,value:C,onChange:g=>w(g.target.value),type:"text"}),jsxRuntime.jsx(H.Caret,{direction:h?"up":"down"}),jsxRuntime.jsx(h5,{style:_,ref:y,children:v.map(g=>{let{label:p}=g,x=g.label===R;return jsxRuntime.jsxs(y5,{onClick:()=>T(g),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:p}),jsxRuntime.jsx(b5,{isCurrent:x,children:jsxRuntime.jsx(H.Check,{color:"#fff"})})]},g.value)})})]})]})},Ge=v5;var M5=({label:e="Submit",isSubmitting:o=!1,hideWhenInvalid:t=!1,...r})=>{let n=reactHookForm.useFormContext(),{isValid:s}=n.formState,l=web.useSpring((t?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 jsxRuntime.jsx(web.animated.div,{style:l,...r,children:jsxRuntime.jsx(u2.Primary,{htmlType:"submit",isSubmitting:o,...r,children:e})})},Xe=M5;var E5=i__default.default.div`
915
+ `,v5=({label:e="",name:o,details:t="",placeholder:r="",options:n=[],allowInput:s=!1,previewOnly:l=!1,isLabelBold:a=!0,formOptions:c={},onChange:m=()=>null})=>{let y=react$1.useRef(),f=reactHookForm.useFormContext();f.register(o,c);let[h,u]=react$1.useState(!1),[C,w]=react$1.useState(""),[v,V]=react$1.useState(n),_=web.useSpring(h?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});react$1.useEffect(()=>{let g=p=>{h&&y.current&&!y.current.contains(p.target)&&u(!1);};return document.addEventListener("mousedown",p=>g(p)),()=>{document.removeEventListener("mousedown",p=>g(p));}},[h]);let R=n.find(g=>g.value===f.getValues(o))?.label,T=g=>{w(""),f.setValue(o,g.value),f.trigger(o),m&&m(g),u(!1);};react$1.useEffect(()=>{if(u(!!C),C){let g=n.filter(p=>p.value.match(C.toLowerCase()));V(g),f.setValue(o,C);}else V(n);},[C,n.length]);let b=g=>{g.code==="Enter"&&g.preventDefault();};return jsxRuntime.jsxs(g5,{children:[jsxRuntime.jsx(f5,{size:"lg",isLabelBold:a,children:e}),t&&jsxRuntime.jsx(u5,{children:t}),l?jsxRuntime.jsx(w5,{size:"md",children:R||"N/A"}):jsxRuntime.jsxs(C5,{onClick:()=>u(!h),children:[R||jsxRuntime.jsx("i",{children:r}),s&&jsxRuntime.jsx(x5,{onKeyDown:b,value:C,onChange:g=>w(g.target.value),type:"text"}),jsxRuntime.jsx(H.Caret,{direction:h?"up":"down"}),jsxRuntime.jsx(h5,{style:_,ref:y,children:v.map(g=>{let{label:p}=g,x=g.label===R;return jsxRuntime.jsxs(y5,{onClick:()=>T(g),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:p}),jsxRuntime.jsx(b5,{isCurrent:x,children:jsxRuntime.jsx(H.Check,{color:"#fff"})})]},g.value)})})]})]})},Ge=v5;var M5=({label:e="Submit",isSubmitting:o=!1,hideWhenInvalid:t=!1,...r})=>{let n=reactHookForm.useFormContext(),{isValid:s}=n.formState,a=web.useSpring((t?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 jsxRuntime.jsx(web.animated.div,{style:a,...r,children:jsxRuntime.jsx(u2.Primary,{htmlType:"submit",isSubmitting:o,...r,children:e})})},Xe=M5;var E5=i__default.default.div`
916
916
  position: relative;
917
917
  margin-bottom: 24px;
918
918
  z-index: 20;
@@ -982,13 +982,13 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
982
982
  height: 100%;
983
983
  `,$5=i__default.default(d.Body)`
984
984
  margin-bottom: 24px;
985
- `,A5=e=>{let o="",t="";e.address_components.forEach(s=>{let a=s.types.some(c=>c==="locality"),l=s.types.some(c=>c==="administrative_area_level_1");a?o=s.short_name:l&&(t=s.short_name);});let r=e.geometry.location.lat(),n=e.geometry.location.lng();return {city:o,state:t,lat:r,long:n}},F5=({handleSelect:e,option:o,value:t})=>{let{description:r}=o,n=r===t,s=r.replace(", USA","");return jsxRuntime.jsx(Z5,{isCurrent:n,onClick:()=>e(s),children:jsxRuntime.jsx(d.Body,{size:"lg",children:s})})},N5=({label:e="",details:o="",required:t=!0,previewOnly:r=!1})=>{let n=react$1.useRef(),[s,a]=react$1.useState(!1),[l,c]=react$1.useState(!1),m=reactHookForm.useFormContext();m.register("city",{required:t});let y=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$1.useEffect(()=>{let b=g=>{s&&n.current&&!n.current.contains(g.target)&&a(!1);};return document.addEventListener("mousedown",g=>b(g)),()=>{document.removeEventListener("mousedown",g=>b(g));}},[s]);let f=m.getValues("city")?`${m.getValues("city")}, ${m.getValues("state")}`:"",{value:h,suggestions:{data:u,loading:C},setValue:w,clearSuggestions:v}=P5__default.default({requestOptions:{types:["locality","postal_code"],componentRestrictions:{country:"us"}}});react$1.useEffect(()=>{if(C){c(C);return}setTimeout(()=>{c(C);},2e3);},[C]);let V=web.useSpring(l?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),_=b=>{w(b.target.value),m.setValue("city",null),m.setValue("state",null),m.trigger("city"),b.target.value.length>=3&&a(!0);},R=b=>{w(b,!1),v(),!(b.length<=2)&&P5.getGeocode({address:b}).then(g=>{let{city:p,state:x,lat:g2,long:c1}=A5(g[0]);m.setValue("city",p),m.setValue("state",x),m.setValue("lat",g2),m.setValue("long",c1),m.trigger("city");}).catch(g=>console.error(`Google Maps API error: ${g}`));},T=b=>{b.code==="Enter"&&b.preventDefault();};return jsxRuntime.jsxs(E5,{children:[jsxRuntime.jsx(D5,{size:"lg",children:e}),o&&jsxRuntime.jsx(R5,{children:o}),r?jsxRuntime.jsx($5,{size:"md",children:f||"N/A"}):jsxRuntime.jsxs(T5,{children:[jsxRuntime.jsx(I5,{onKeyDown:T,value:h||f,onChange:b=>_(b),type:"text"}),u.length>0&&jsxRuntime.jsx(_5,{style:y,ref:n,children:u.map(b=>jsxRuntime.jsx(F5,{handleSelect:R,option:b,value:h},b.description))}),jsxRuntime.jsx(O5,{style:V,children:jsxRuntime.jsx(b2,{size:"sm"})})]})]})},Qe=e=>{let{isLoaded:o}=api.useLoadScript({googleMapsApiKey:e.api_key||process.env.GOOGLE_MAPS_API_KEY||"",libraries:["places"]});return o?jsxRuntime.jsx(N5,{...e}):null};var W5=({label:e="",name:o,...t})=>{let{setValue:r}=reactHookForm.useFormContext(),n=i__default.default(d.Body)`
985
+ `,A5=e=>{let o="",t="";e.address_components.forEach(s=>{let l=s.types.some(c=>c==="locality"),a=s.types.some(c=>c==="administrative_area_level_1");l?o=s.short_name:a&&(t=s.short_name);});let r=e.geometry.location.lat(),n=e.geometry.location.lng();return {city:o,state:t,lat:r,long:n}},F5=({handleSelect:e,option:o,value:t})=>{let{description:r}=o,n=r===t,s=r.replace(", USA","");return jsxRuntime.jsx(Z5,{isCurrent:n,onClick:()=>e(s),children:jsxRuntime.jsx(d.Body,{size:"lg",children:s})})},N5=({label:e="",details:o="",required:t=!0,previewOnly:r=!1})=>{let n=react$1.useRef(),[s,l]=react$1.useState(!1),[a,c]=react$1.useState(!1),m=reactHookForm.useFormContext();m.register("city",{required:t});let y=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$1.useEffect(()=>{let b=g=>{s&&n.current&&!n.current.contains(g.target)&&l(!1);};return document.addEventListener("mousedown",g=>b(g)),()=>{document.removeEventListener("mousedown",g=>b(g));}},[s]);let f=m.getValues("city")?`${m.getValues("city")}, ${m.getValues("state")}`:"",{value:h,suggestions:{data:u,loading:C},setValue:w,clearSuggestions:v}=P5__default.default({requestOptions:{types:["locality","postal_code"],componentRestrictions:{country:"us"}}});react$1.useEffect(()=>{if(C){c(C);return}setTimeout(()=>{c(C);},2e3);},[C]);let V=web.useSpring(a?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),_=b=>{w(b.target.value),m.setValue("city",null),m.setValue("state",null),m.trigger("city"),b.target.value.length>=3&&l(!0);},R=b=>{w(b,!1),v(),!(b.length<=2)&&P5.getGeocode({address:b}).then(g=>{let{city:p,state:x,lat:g2,long:c1}=A5(g[0]);m.setValue("city",p),m.setValue("state",x),m.setValue("lat",g2),m.setValue("long",c1),m.trigger("city");}).catch(g=>console.error(`Google Maps API error: ${g}`));},T=b=>{b.code==="Enter"&&b.preventDefault();};return jsxRuntime.jsxs(E5,{children:[jsxRuntime.jsx(D5,{size:"lg",children:e}),o&&jsxRuntime.jsx(R5,{children:o}),r?jsxRuntime.jsx($5,{size:"md",children:f||"N/A"}):jsxRuntime.jsxs(T5,{children:[jsxRuntime.jsx(I5,{onKeyDown:T,value:h||f,onChange:b=>_(b),type:"text"}),u.length>0&&jsxRuntime.jsx(_5,{style:y,ref:n,children:u.map(b=>jsxRuntime.jsx(F5,{handleSelect:R,option:b,value:h},b.description))}),jsxRuntime.jsx(O5,{style:V,children:jsxRuntime.jsx(b2,{size:"sm"})})]})]})},Qe=e=>{let{isLoaded:o}=api.useLoadScript({googleMapsApiKey:e.api_key||process.env.GOOGLE_MAPS_API_KEY||"",libraries:["places"]});return o?jsxRuntime.jsx(N5,{...e}):null};var W5=({label:e="",name:o,...t})=>{let{setValue:r}=reactHookForm.useFormContext(),n=i__default.default(d.Body)`
986
986
  margin-bottom: 5px;
987
987
  text-align: start;
988
988
  `,s=i__default.default.div`
989
989
  position: relative;
990
990
  margin-bottom: 24px;
991
- `;return jsxRuntime.jsxs(s,{children:[e&&jsxRuntime.jsx(n,{children:e}),jsxRuntime.jsx(w2,{...t,onChange:l=>{r(o,l.value);}})]})},e1=W5;var t1=({color:e="#5A5A5A"})=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.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 Y5=i__default.default.div`
991
+ `;return jsxRuntime.jsxs(s,{children:[e&&jsxRuntime.jsx(n,{children:e}),jsxRuntime.jsx(w2,{...t,onChange:a=>{r(o,a.value);}})]})},e1=W5;var t1=({color:e="#5A5A5A"})=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.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 Y5=i__default.default.div`
992
992
  position: relative;
993
993
  margin-bottom: 24px;
994
994
  z-index: 20;
@@ -1071,14 +1071,14 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
1071
1071
  border: 0.766898px solid;
1072
1072
  border-color: ${e=>e.isCurrent?"#285E50 !important":"#3f937c"};
1073
1073
  background: ${e=>e.isCurrent?"#285E50 !important":"#FFF"};
1074
- `,n3=({label:e="",name:o,details:t="",options:r=[],previewOnly:n=!1})=>{let s=react$1.useRef(),a=reactHookForm.useFormContext(),[l,c]=react$1.useState(!1),[m,y]=react$1.useState(""),[f,h]=react$1.useState(a.getValues(o)||[]),u=react$1.useRef({search:m,keywords:f});react$1.useEffect(()=>{u.current={search:m,keywords:f};},[m,f]);let[C,w]=react$1.useState(r),v=web.useSpring(l?{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===a.getValues(o)),_=p=>{let x=[...u.current.keywords,p];y(""),h(x),a.setValue(o,x),c(!1);},R=p=>p?p.charAt(0).toUpperCase()+p.slice(1).toLowerCase():"",T=()=>{if(!u.current.search)return;let p=R(u.current.search);_(p);};react$1.useEffect(()=>{let p=x=>{l&&s.current&&!s.current.contains(x.target)&&(T(),c(!1));};return document.addEventListener("mousedown",x=>p(x)),()=>{document.removeEventListener("mousedown",x=>p(x));}},[l]);let b=p=>{p.code==="Enter"&&(T(),p.preventDefault());},g=p=>{let x=f.filter(g2=>g2!==p);h(x),y(""),a.setValue(o,x);};return react$1.useEffect(()=>{if(c(!!m),m){let p=r.filter(x=>x.toLowerCase().match(m.toLowerCase()));w(p);}else w(r);},[m]),react$1.useEffect(()=>{let p=r.filter(x=>!f.includes(x));w(p);},[f]),jsxRuntime.jsxs(Y5,{children:[jsxRuntime.jsx(q5,{size:"lg",children:e}),t&&jsxRuntime.jsx(Q5,{children:t}),!n&&jsxRuntime.jsxs(j5,{onClick:()=>c(!l),children:[jsxRuntime.jsx(t1,{}),V,jsxRuntime.jsx(o3,{onKeyDown:b,value:m,onChange:p=>y(p.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxRuntime.jsxs(e3,{style:v,ref:s,children:[C.map(p=>{let x=p===V;return jsxRuntime.jsxs(n1,{onClick:()=>_(p),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:p}),jsxRuntime.jsx(r3,{isCurrent:x,children:jsxRuntime.jsx(H.Check,{color:"#fff"})})]},p)}),!C.length&&jsxRuntime.jsx(n1,{onClick:()=>T(),children:jsxRuntime.jsx(d.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[n&&f.length===0&&"N/A",f.map(p=>jsxRuntime.jsxs(t3,{onClick:()=>g(p),children:[p,!n&&jsxRuntime.jsx(o2,{})]},p))]})]})},i1=n3;var a3=({label:e=null,isLabelBold:o=!0,name:t,options:r={},...n})=>{let{control:s}=reactHookForm.useFormContext(),a=i__default.default(d.Body)`
1074
+ `,n3=({label:e="",name:o,details:t="",options:r=[],previewOnly:n=!1})=>{let s=react$1.useRef(),l=reactHookForm.useFormContext(),[a,c]=react$1.useState(!1),[m,y]=react$1.useState(""),[f,h]=react$1.useState(l.getValues(o)||[]),u=react$1.useRef({search:m,keywords:f});react$1.useEffect(()=>{u.current={search:m,keywords:f};},[m,f]);let[C,w]=react$1.useState(r),v=web.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(o)),_=p=>{let x=[...u.current.keywords,p];y(""),h(x),l.setValue(o,x),c(!1);},R=p=>p?p.charAt(0).toUpperCase()+p.slice(1).toLowerCase():"",T=()=>{if(!u.current.search)return;let p=R(u.current.search);_(p);};react$1.useEffect(()=>{let p=x=>{a&&s.current&&!s.current.contains(x.target)&&(T(),c(!1));};return document.addEventListener("mousedown",x=>p(x)),()=>{document.removeEventListener("mousedown",x=>p(x));}},[a]);let b=p=>{p.code==="Enter"&&(T(),p.preventDefault());},g=p=>{let x=f.filter(g2=>g2!==p);h(x),y(""),l.setValue(o,x);};return react$1.useEffect(()=>{if(c(!!m),m){let p=r.filter(x=>x.toLowerCase().match(m.toLowerCase()));w(p);}else w(r);},[m]),react$1.useEffect(()=>{let p=r.filter(x=>!f.includes(x));w(p);},[f]),jsxRuntime.jsxs(Y5,{children:[jsxRuntime.jsx(q5,{size:"lg",children:e}),t&&jsxRuntime.jsx(Q5,{children:t}),!n&&jsxRuntime.jsxs(j5,{onClick:()=>c(!a),children:[jsxRuntime.jsx(t1,{}),V,jsxRuntime.jsx(o3,{onKeyDown:b,value:m,onChange:p=>y(p.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxRuntime.jsxs(e3,{style:v,ref:s,children:[C.map(p=>{let x=p===V;return jsxRuntime.jsxs(n1,{onClick:()=>_(p),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:p}),jsxRuntime.jsx(r3,{isCurrent:x,children:jsxRuntime.jsx(H.Check,{color:"#fff"})})]},p)}),!C.length&&jsxRuntime.jsx(n1,{onClick:()=>T(),children:jsxRuntime.jsx(d.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[n&&f.length===0&&"N/A",f.map(p=>jsxRuntime.jsxs(t3,{onClick:()=>g(p),children:[p,!n&&jsxRuntime.jsx(o2,{})]},p))]})]})},i1=n3;var a3=({label:e=null,isLabelBold:o=!0,name:t,options:r={},...n})=>{let{control:s}=reactHookForm.useFormContext(),l=i__default.default(d.Body)`
1075
1075
  margin-bottom: 5px;
1076
1076
  font-weight: ${({isLabelBold:c})=>c?"bold":"regular"};
1077
1077
  text-align: start;
1078
- `,l=i__default.default.div`
1078
+ `,a=i__default.default.div`
1079
1079
  position: relative;
1080
1080
  margin-bottom: 24px;
1081
- `;return jsxRuntime.jsxs(l,{children:[e&&jsxRuntime.jsx(a,{size:"lg",isLabelBold:o,children:e}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:c})=>jsxRuntime.jsx(C2,{...n,...c}),name:t,control:s,...r})]})},a1=a3;var c3={Container:Ie,Checkbox:s2,CheckboxGroup:Oe,DateSelect:a1,TextInput:I,TimeSelect:e1,Radio:p2,RadioGroup:Fe,Select:Ge,Signature:Ae,Submit:Xe,LocationSelect:Qe,Keyword:i1,Toggle:L2};var f3=i__default.default(web.animated.div)`
1081
+ `;return jsxRuntime.jsxs(a,{children:[e&&jsxRuntime.jsx(l,{size:"lg",isLabelBold:o,children:e}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:c})=>jsxRuntime.jsx(C2,{...n,...c}),name:t,control:s,...r})]})},a1=a3;var c3={Container:Ie,Checkbox:s2,CheckboxGroup:Oe,DateSelect:a1,TextInput:I,TimeSelect:e1,Radio:p2,RadioGroup:Fe,Select:Ge,Signature:Ae,Submit:Xe,LocationSelect:Qe,Keyword:i1,Toggle:L2};var f3=i__default.default(web.animated.div)`
1082
1082
  max-height: ${({size:e})=>(e||58)+24}px;
1083
1083
  padding: 12px;
1084
1084
  display: flex;
@@ -1110,7 +1110,7 @@ var A={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
1110
1110
  margin: 0;
1111
1111
  line-height: 12px;
1112
1112
  color: #1d4339;
1113
- `,y3=({contentfulConfig:e,size:o=58})=>{let[t,r]=react$1.useState(""),[n,s]=web.useSpring(()=>({from:{width:o+24,backgroundColor:"#fff",color:"#ffffff"}}));react$1.useEffect(()=>{new Z(e).getImage("vanta-logo").then(h=>{r(h);});},[]);let[a,l]=web.useSpring(()=>({from:{opacity:0},delay:100})),c=h=>({width:h?198+o:o+24,backgroundColor:h?"#d4e2dd":"#fff"}),m=h=>({opacity:h?1:0}),y=()=>{s(c(!0)),l(m(!0));},f=()=>{s(c(!1)),l(m(!1));};return t?jsxRuntime.jsxs(f3,{style:n,onMouseEnter:y,onMouseLeave:f,size:o,children:[jsxRuntime.jsx("img",{alt:"Vanta Logo",src:t,height:o,width:o}),jsxRuntime.jsxs(u3,{style:a,children:[jsxRuntime.jsx(d.Body,{children:jsxRuntime.jsx(C3,{children:"Guaranteed Security"})}),jsxRuntime.jsx(d.Body,{size:"xs",children:jsxRuntime.jsx(h3,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},b3=y3;
1113
+ `,y3=({contentfulConfig:e,size:o=58})=>{let[t,r]=react$1.useState(""),[n,s]=web.useSpring(()=>({from:{width:o+24,backgroundColor:"#fff",color:"#ffffff"}}));react$1.useEffect(()=>{new Z(e).getImage("vanta-logo").then(h=>{r(h);});},[]);let[l,a]=web.useSpring(()=>({from:{opacity:0},delay:100})),c=h=>({width:h?198+o:o+24,backgroundColor:h?"#d4e2dd":"#fff"}),m=h=>({opacity:h?1:0}),y=()=>{s(c(!0)),a(m(!0));},f=()=>{s(c(!1)),a(m(!1));};return t?jsxRuntime.jsxs(f3,{style:n,onMouseEnter:y,onMouseLeave:f,size:o,children:[jsxRuntime.jsx("img",{alt:"Vanta Logo",src:t,height:o,width:o}),jsxRuntime.jsxs(u3,{style:l,children:[jsxRuntime.jsx(d.Body,{children:jsxRuntime.jsx(C3,{children:"Guaranteed Security"})}),jsxRuntime.jsx(d.Body,{size:"xs",children:jsxRuntime.jsx(h3,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},b3=y3;
1114
1114
 
1115
1115
  Object.defineProperty(exports, 'styled', {
1116
1116
  enumerable: true,