@solace-health/ui 0.9.20 → 0.9.22
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 +91 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +86 -86
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import * as I5 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
|
-
import
|
|
16
|
+
import W8, { getGeocode } from 'use-places-autocomplete';
|
|
17
17
|
import { useLoadScript } from '@react-google-maps/api';
|
|
18
18
|
|
|
19
19
|
var l1={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}}},T3={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)"}},I3=({children:e,theme:t={}})=>jsx(ConfigProvider,{theme:{...T3,...t},children:e});var G3=({children:e,theme:t={}})=>jsx(I3,{theme:t,children:e});var g2=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(g2||{});var $3=n.p`
|
|
@@ -115,7 +115,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
115
115
|
color: white;
|
|
116
116
|
`,n0=({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(r0,{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(o0,{})})},i0=n0;var l0=n.div`
|
|
117
117
|
display: inline-block;
|
|
118
|
-
width: 100%;
|
|
118
|
+
// width: 100%;
|
|
119
119
|
`,p0=({className:e="",children:t,content:o,...r})=>jsx(Tooltip,{placement:"topLeft",color:"#E9F0EE",title:o,arrow:{pointAtCenter:!0},overlayClassName:e,...r,children:jsx(l0,{children:t})}),d0=n(p0)`
|
|
120
120
|
max-width: 355px;
|
|
121
121
|
min-width: 300px;
|
|
@@ -164,7 +164,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
164
164
|
color: #fff;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
167
|
+
`,c0=n(x1)`
|
|
168
168
|
background-color: #eeeeee;
|
|
169
169
|
border: 1px solid #eeeeee;
|
|
170
170
|
color: #101010;
|
|
@@ -173,7 +173,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
173
173
|
border-color: #b2b2b2 !important;
|
|
174
174
|
background-color: #e9f0ee;
|
|
175
175
|
}
|
|
176
|
-
`,
|
|
176
|
+
`,f0=n(x1)`
|
|
177
177
|
background-color: #fff;
|
|
178
178
|
border: 1px solid ${e=>e.theme.colors.secondaryGreen};
|
|
179
179
|
color: ${e=>e.theme.colors.secondaryGreen};
|
|
@@ -197,7 +197,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
197
197
|
height: 1px;
|
|
198
198
|
background: #101010;
|
|
199
199
|
}
|
|
200
|
-
`,u0=({children:e,isSubmitting:t=!1,toolTip:o={title:"",color:"black"},...r})=>jsx(K,{content:o?.title,children:jsx(m0,{block:!0,type:"primary",loading:t,...r,children:e})}),h0=({children:e,isSubmitting:t=!1,toolTip:o={title:"",color:"black"},...r})=>jsx(K,{content:o?.title,children:jsx(
|
|
200
|
+
`,u0=({children:e,isSubmitting:t=!1,toolTip:o={title:"",color:"black"},...r})=>jsx(K,{content:o?.title,children:jsx(m0,{block:!0,type:"primary",loading:t,...r,children:e})}),h0=({children:e,isSubmitting:t=!1,toolTip:o={title:"",color:"black"},...r})=>jsx(K,{content:o?.title,children:jsx(c0,{block:!0,loading:t,...r,children:e})}),x0=({children:e,isSubmitting:t=!1,toolTip:o={title:"",color:"black"},...r})=>jsx(K,{content:o?.title,children:jsx(f0,{block:!0,loading:t,...r,children:e})}),y0=({children:e,isSubmitting:t=!1,toolTip:o={title:"",color:"black"},...r})=>jsx(K,{content:o?.title,children:jsx(x1,{block:!0,type:"text",loading:t,...r,children:e})}),b0=({children:e,toolTip:t={title:"",color:"black"},...o})=>jsx(K,{content:t?.title,children:jsx(g0,{type:"link",...o,children:e})}),T1={Primary:u0,Outline:x0,Unstyled:y0,Secondary:h0,Link:b0};var k0=n(Collapse)`
|
|
201
201
|
.ant-collapse-header {
|
|
202
202
|
align-items: center !important;
|
|
203
203
|
padding: 20px 16px !important;
|
|
@@ -248,15 +248,15 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
248
248
|
left: 2px;
|
|
249
249
|
right: 0;
|
|
250
250
|
z-index: -1;
|
|
251
|
-
`,
|
|
251
|
+
`,c5=({active:e=!1,color:t="#555555"})=>{let o=useSpring(e?{opacity:1,transform:"translate(0px, 0px)"}:{opacity:0,transform:"translate(-2px, -4px)"});return jsxs(pe,{children:[jsx("svg",{width:"31",height:"36",viewBox:"0 0 31 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 1507",children:[jsx("path",{id:"Rectangle 286",d:"M0 4C0 2.89543 0.895431 2 2 2H6.75C7.7165 2 8.5 2.7835 8.5 3.75C8.5 4.7165 9.2835 5.5 10.25 5.5H20.75C21.1642 5.5 21.5 5.16421 21.5 4.75C21.5 4.33579 21.8358 4 22.25 4H25.5C26.6046 4 27.5 4.89543 27.5 6V23C27.5 24.1046 26.6046 25 25.5 25H22.5C21.3954 25 20.5 25.8954 20.5 27V30.4506C20.5 31.5743 19.5746 32.4774 18.4512 32.45L1.95123 32.0476C0.865985 32.0211 0 31.1338 0 30.0482V4Z",fill:"url(#paint0_linear_20862_2629)"}),jsx("path",{id:"Vector",d:"M24.7 32.32L28.18 28.84V5.64H24.7M7.3 5.64H3.82V30.58C3.82 31.5411 4.59894 32.32 5.56 32.32H22.38V28.84C22.38 28.26 22.8997 27.68 23.54 27.68H25.86M24.7 3.32H28.18C29.34 3.32 30.5 4.48 30.5 5.64V32.32C30.5 33.48 29.34 34.64 28.18 34.64H3.82C2.66 34.64 1.5 33.48 1.5 32.32V5.64C1.5 4.48 2.66 3.32 3.82 3.32H7.3M13.7963 25.8889H18.0926M13.7963 22.6667H20.2407M13.7963 19.4444H23.463M13.7963 16.2222H21.3148M13.7963 13H22.3889M9.5 25.8889H10.5741M9.5 22.6667H10.5741M9.5 19.4444H10.5741M9.5 16.2222H10.5741M9.5 13H10.5741M18.8414 3.32C18.5729 1.99644 17.403 1 16 1C14.597 1 13.4271 1.99644 13.1586 3.32H9.62V6.8H22.38V3.32H18.8414ZM16 3.32C15.6793 3.32 15.42 3.57984 15.42 3.9C15.42 4.22016 15.6793 4.48 16 4.48C16.3207 4.48 16.58 4.22016 16.58 3.9C16.58 3.57984 16.3207 3.32 16 3.32Z",stroke:"#555555","stroke-linecap":"round","stroke-linejoin":"round"})]})}),jsx(de,{style:o,children:jsxs("svg",{width:"26",height:"30",viewBox:"0 0 26 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M1.49997 28C0.499943 25 -1.00001 4.00004 1.49997 2.00004C3.99995 4.3869e-05 13.9999 0.0454984 17.4999 1.00004C20.9999 1.95459 23.9999 5.00004 24.9999 7.00004C26 9.00004 25.5 16 25.5 18C25.5 20 18.4999 27 16.5 28C14.5 29 2.5 31 1.49997 28Z",fill:"url(#paint0_linear_13770_33952)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_13770_33952",x1:"1.49994",y1:"2.50004",x2:"20.9999",y2:"24.5",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#AFC8BF"}),jsx("stop",{offset:"1",stopColor:"#DEB260"})]})})]})})]})};var ce=n.div`
|
|
252
252
|
position: relative;
|
|
253
|
-
`,
|
|
253
|
+
`,fe=n(animated.div)`
|
|
254
254
|
position: absolute;
|
|
255
255
|
top: 0px;
|
|
256
256
|
left: -1px;
|
|
257
257
|
right: 0;
|
|
258
258
|
z-index: -1;
|
|
259
|
-
`,g5=({active:e=!1,color:t="#555555"})=>{let o=useSpring(e?{opacity:1,transform:"translate(0px, 0px)"}:{opacity:0,transform:"translate(7px, 0px)"});return jsxs(
|
|
259
|
+
`,g5=({active:e=!1,color:t="#555555"})=>{let o=useSpring(e?{opacity:1,transform:"translate(0px, 0px)"}:{opacity:0,transform:"translate(7px, 0px)"});return jsxs(ce,{children:[jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fill:"none",d:"M5.5 26.5H26.5V6.5H3.5V26.5C3.5 26.5 6.5 21.5 10 21.5C13.5 21.5 15.5 23.5 15.5 23.5C15.5 23.5 17.5 20 24.5 20M17 2L19.5 4.5L17 2ZM13 2L10.5 4.5L13 2ZM15.5 1C15.5 0.724 15.2765 0.5 15 0.5C14.7235 0.5 14.5 0.724 14.5 1C14.5 1.276 14.7235 1.5 15 1.5C15.2765 1.5 15.5 1.276 15.5 1ZM20.5 18V20.452V18ZM22.5 16C22.5 14 22 10 20.5 10C19 10 18.5 14 18.5 16C18.5 17.1045 19.3955 18 20.5 18C21.6045 18 22.5 17.1045 22.5 16ZM28.5 25.011V7.989C29.1035 7.532 29.5 6.815 29.5 6C29.5 4.6195 28.381 3.5 27 3.5C26.1845 3.5 25.468 3.896 25.011 4.5H4.989C4.532 3.896 3.8155 3.5 3 3.5C1.619 3.5 0.5 4.6195 0.5 6C0.5 6.815 0.8965 7.532 1.5 7.989V25.011C0.8965 25.468 0.5 26.185 0.5 27C0.5 28.3805 1.619 29.5 3 29.5C3.8155 29.5 4.532 29.104 4.989 28.5H25.011C25.468 29.104 26.1845 29.5 27 29.5C28.381 29.5 29.5 28.3805 29.5 27C29.5 26.185 29.1035 25.468 28.5 25.011ZM8.086 11.085L6.6705 9.6715L8.086 11.085ZM9.5 10.5L9.4995 8.4995L9.5 10.5ZM10.914 11.086L12.328 9.671L10.914 11.086ZM11.499 12.5H13.5H11.499ZM12.328 15.3285L10.913 13.914L12.328 15.3285ZM9.4995 14.4995V16.5V14.4995ZM8.0855 13.914L6.671 15.3285L8.0855 13.914ZM7.4995 12.5H5.4995H7.4995ZM11.4995 12.5C11.4995 13.6045 10.605 14.5 9.4995 14.5C8.394 14.5 7.4995 13.6045 7.4995 12.5C7.4995 11.3955 8.394 10.5 9.4995 10.5C10.605 10.5 11.4995 11.3955 11.4995 12.5Z",stroke:"#555555",strokeLinejoin:"round"})}),jsx(fe,{style:o,children:jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"5",y:"8",width:"23",height:"19",fill:"url(#paint0_linear_11308_26863)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_11308_26863",x1:"16.5",y1:"8",x2:"16.5",y2:"27",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#AFC8BF"}),jsx("stop",{offset:"1",stopColor:"#D7A13B"})]})})]})})]})};var he=n.div`
|
|
260
260
|
position: relative;
|
|
261
261
|
`,xe=n(animated.div)`
|
|
262
262
|
position: absolute;
|
|
@@ -354,7 +354,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
354
354
|
left: 2px;
|
|
355
355
|
right: 0;
|
|
356
356
|
z-index: -1;
|
|
357
|
-
`,O5=({active:e=!1,color:t="#555555"})=>{let o=useSpring(e?{opacity:1,transform:"translate(0px, 0px)"}:{opacity:0,transform:"translate(-2px, -4px)"});return jsxs(at,{children:[jsx("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("g",{id:"financial-report",children:jsx("path",{id:"Vector",d:"M13.5 26.1406H14M13.5 23.1406H14M13.5 20.1406H14M16 26.1406H20M16 23.1406H20.5M21.5 12.1406H24.5M13.5 12.1406H19.5M16 20.1406H19.5M13.5 15.1406H26.5M25 26.1406V26.6406M25 19.6406V20.1406M26.5 21.6406C26.5 20.8121 25.828 20.1406 25 20.1406C24.172 20.1406 23.5 20.8121 23.5 21.6406C23.5 22.4691 24.172 23.1406 25 23.1406C25.828 23.1406 26.5 23.8121 26.5 24.6406C26.5 25.4691 25.828 26.1406 25 26.1406C24.172 26.1406 23.5 25.4691 23.5 24.6406M6.5 27.1406H9.5M11 6.14062H28.5C29.6045 6.14062 30.5 7.03612 30.5 8.14062V31.1406H9.5V8.14062C9.5 7.03612 8.6045 6.14062 7.5 6.14062C6.3955 6.14062 5.5 7.03612 5.5 8.14062V25.1406C5.5 26.2451 4.6045 27.1406 3.5 27.1406C2.3955 27.1406 1.5 26.2451 1.5 25.1406V2.14062H22.5V4.14062",stroke:t,"stroke-linecap":"round","stroke-linejoin":"round"})})}),jsx(lt,{style:o,children:jsxs("svg",{width:"26",height:"30",viewBox:"0 0 26 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M1.49997 28C0.499943 25 -1.00001 4.00004 1.49997 2.00004C3.99995 4.3869e-05 13.9999 0.0454984 17.4999 1.00004C20.9999 1.95459 23.9999 5.00004 24.9999 7.00004C26 9.00004 25.5 16 25.5 18C25.5 20 18.4999 27 16.5 28C14.5 29 2.5 31 1.49997 28Z",fill:"url(#paint0_linear_13770_33952)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_13770_33952",x1:"1.49994",y1:"2.50004",x2:"20.9999",y2:"24.5",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#AFC8BF"}),jsx("stop",{offset:"1",stopColor:"#DEB260"})]})})]})})]})};var v={AddCircle:M2,Books:a5,Tools:_5,Files:P5,Records:E5,Bank:D5,Copy:L2,Caret:k2,Calendar:S2,CalendarClock:p5,Invoice:O5,Celebrate:C5,Checkbox:Z2,ErrorExclamation:R2,Form:
|
|
357
|
+
`,O5=({active:e=!1,color:t="#555555"})=>{let o=useSpring(e?{opacity:1,transform:"translate(0px, 0px)"}:{opacity:0,transform:"translate(-2px, -4px)"});return jsxs(at,{children:[jsx("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("g",{id:"financial-report",children:jsx("path",{id:"Vector",d:"M13.5 26.1406H14M13.5 23.1406H14M13.5 20.1406H14M16 26.1406H20M16 23.1406H20.5M21.5 12.1406H24.5M13.5 12.1406H19.5M16 20.1406H19.5M13.5 15.1406H26.5M25 26.1406V26.6406M25 19.6406V20.1406M26.5 21.6406C26.5 20.8121 25.828 20.1406 25 20.1406C24.172 20.1406 23.5 20.8121 23.5 21.6406C23.5 22.4691 24.172 23.1406 25 23.1406C25.828 23.1406 26.5 23.8121 26.5 24.6406C26.5 25.4691 25.828 26.1406 25 26.1406C24.172 26.1406 23.5 25.4691 23.5 24.6406M6.5 27.1406H9.5M11 6.14062H28.5C29.6045 6.14062 30.5 7.03612 30.5 8.14062V31.1406H9.5V8.14062C9.5 7.03612 8.6045 6.14062 7.5 6.14062C6.3955 6.14062 5.5 7.03612 5.5 8.14062V25.1406C5.5 26.2451 4.6045 27.1406 3.5 27.1406C2.3955 27.1406 1.5 26.2451 1.5 25.1406V2.14062H22.5V4.14062",stroke:t,"stroke-linecap":"round","stroke-linejoin":"round"})})}),jsx(lt,{style:o,children:jsxs("svg",{width:"26",height:"30",viewBox:"0 0 26 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M1.49997 28C0.499943 25 -1.00001 4.00004 1.49997 2.00004C3.99995 4.3869e-05 13.9999 0.0454984 17.4999 1.00004C20.9999 1.95459 23.9999 5.00004 24.9999 7.00004C26 9.00004 25.5 16 25.5 18C25.5 20 18.4999 27 16.5 28C14.5 29 2.5 31 1.49997 28Z",fill:"url(#paint0_linear_13770_33952)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_13770_33952",x1:"1.49994",y1:"2.50004",x2:"20.9999",y2:"24.5",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#AFC8BF"}),jsx("stop",{offset:"1",stopColor:"#DEB260"})]})})]})})]})};var v={AddCircle:M2,Books:a5,Tools:_5,Files:P5,Records:E5,Bank:D5,Copy:L2,Caret:k2,Calendar:S2,CalendarClock:p5,Invoice:O5,Celebrate:C5,Checkbox:Z2,ErrorExclamation:R2,Form:c5,FramedPainting:g5,House:Z5,NoteDocument:i5,CircleExclamation:z2,Check:B2,Close:M1,DefaultFile:E2,Heart:A2,HeartPulse:T2,IdBadge:G2,Key:h5,LightBulb:N2,LocationPin:W2,Message:y5,MoneyLayered:w5,Permissions:K2,Phone:Y2,RatingStar:Q2,ReceptionBell:M5,Rose:H5,Sparkles:j2,Sun:t5,Signature:L1,TaskList:S5,Trash:r5};var dt=n.span`
|
|
358
358
|
display: flex;
|
|
359
359
|
align-items: center;
|
|
360
360
|
gap: 8px;
|
|
@@ -706,7 +706,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
706
706
|
.szh-menu--state-closing.szh-menu--dir-bottom {
|
|
707
707
|
animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;
|
|
708
708
|
}
|
|
709
|
-
`;function i2({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(v.Caret,{direction:"up",color:t})})}var a4=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:i="",menuProps:s={menuButton:null},caretColor:a="#000",borderColor:l="#555555"})=>{let C={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},m=useRef(null),[f,c]=useMenuState({transition:!0}),u=useClick(f.state,c),h=f.state==="open"||f.state==="opening";return useEffect(()=>{r(f.state);},[f.state]),jsx(Fragment,{children:jsxs(K5,{className:`${i} ${h?"menu-open":"menu-closed"}`,ref:m,borderColor:l,...u,children:[jsx(X5,{children:t}),jsx(i2,{isActive:h,color:a}),jsx(ControlledMenu,{...f,anchorRef:m,onClose:()=>c(!1),onItemClick:o,onMenuChange:r,...C,...s,children:e})]})})},l4=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),p4=({label:e,value:t,selected:o=!1,onClick:r=()=>null,disabled:i=!1,linkTo:s="",className:a=""})=>jsx(MenuItem,{className:`${a} ${o?"active":"inactive"}`,value:t,onClick:r,href:s,disabled:i,children:e}),d4=({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})}),C4=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),m4=({className:e=""})=>jsx(MenuDivider,{className:e}),
|
|
709
|
+
`;function i2({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(v.Caret,{direction:"up",color:t})})}var a4=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:i="",menuProps:s={menuButton:null},caretColor:a="#000",borderColor:l="#555555"})=>{let C={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},m=useRef(null),[f,c]=useMenuState({transition:!0}),u=useClick(f.state,c),h=f.state==="open"||f.state==="opening";return useEffect(()=>{r(f.state);},[f.state]),jsx(Fragment,{children:jsxs(K5,{className:`${i} ${h?"menu-open":"menu-closed"}`,ref:m,borderColor:l,...u,children:[jsx(X5,{children:t}),jsx(i2,{isActive:h,color:a}),jsx(ControlledMenu,{...f,anchorRef:m,onClose:()=>c(!1),onItemClick:o,onMenuChange:r,...C,...s,children:e})]})})},l4=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),p4=({label:e,value:t,selected:o=!1,onClick:r=()=>null,disabled:i=!1,linkTo:s="",className:a=""})=>jsx(MenuItem,{className:`${a} ${o?"active":"inactive"}`,value:t,onClick:r,href:s,disabled:i,children:e}),d4=({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})}),C4=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),m4=({className:e=""})=>jsx(MenuDivider,{className:e}),f1={Button:l4,Container:a4,Search:d4,Divider:m4,Header:C4,Item:p4};n.div`
|
|
710
710
|
padding: 0 20px;
|
|
711
711
|
border-radius: 10px;
|
|
712
712
|
border: 1px solid #7f7f7f;
|
|
@@ -717,17 +717,17 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
717
717
|
justify-content: space-between;
|
|
718
718
|
align-items: center;
|
|
719
719
|
box-sizing: border-box;
|
|
720
|
-
`;var q5=n(
|
|
720
|
+
`;var q5=n(f1.Container)`
|
|
721
721
|
max-width: 140px;
|
|
722
|
-
`,Q5=n(
|
|
722
|
+
`,Q5=n(f1.Item)`
|
|
723
723
|
&.szh-menu__item {
|
|
724
724
|
min-width: 145px;
|
|
725
725
|
}
|
|
726
|
-
`;n(
|
|
726
|
+
`;n(f1.Divider)`
|
|
727
727
|
&.szh-menu__divider {
|
|
728
728
|
margin: 0;
|
|
729
729
|
}
|
|
730
|
-
`;var y4=({startTime:e="00:00",endTime:t="24:00",interval:o=30,defaultValue:r="",onChange:i=()=>null})=>{let[s,a]=useState(),C=useCallback(()=>{let f=DateTime.fromFormat(t,"HH:mm"),c=Duration.fromObject({minutes:o}),u=[],h=DateTime.fromFormat(e,"hh:mm");for(;h<=f;)u.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(c);return u},[e,t,o,r])();return useEffect(()=>{let f=C.find(c=>c.value.raw===(r||e));a(f);},[r]),jsx(q5,{onItemClick:f=>{let c=C.find(u=>u.value.raw===f.value.raw);a(c),i(f);},cta:jsx(d.Body,{size:"lg",children:s?.value.formatted||"-"}),children:C.map(f=>jsx(Q5,{label:f.label,value:f.value,selected:f.value.raw===s?.value.raw},f.label))})},a2=y4;var
|
|
730
|
+
`;var y4=({startTime:e="00:00",endTime:t="24:00",interval:o=30,defaultValue:r="",onChange:i=()=>null})=>{let[s,a]=useState(),C=useCallback(()=>{let f=DateTime.fromFormat(t,"HH:mm"),c=Duration.fromObject({minutes:o}),u=[],h=DateTime.fromFormat(e,"hh:mm");for(;h<=f;)u.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(c);return u},[e,t,o,r])();return useEffect(()=>{let f=C.find(c=>c.value.raw===(r||e));a(f);},[r]),jsx(q5,{onItemClick:f=>{let c=C.find(u=>u.value.raw===f.value.raw);a(c),i(f);},cta:jsx(d.Body,{size:"lg",children:s?.value.formatted||"-"}),children:C.map(f=>jsx(Q5,{label:f.label,value:f.value,selected:f.value.raw===s?.value.raw},f.label))})},a2=y4;var L4=({defaultState:e=!1,name:t,label:o={active:"YES",inactive:"NO"},handleEvent:r=null,value:i,disabled:s=!1,loading:a=!1})=>{let l=useFormContext(),[C,m]=useState(e);useEffect(()=>{l&&e&&l.setValue(t,i),m(e);},[e]);let f=c=>{s||(l&&l.setValue(t,c?i:null),r&&r(c),m(c));};return jsx(Switch,{defaultChecked:e,checkedChildren:o.active,unCheckedChildren:o.inactive,checked:C,loading:a,disabled:s,onChange:f})},l2=L4;var k4=n.div`
|
|
731
731
|
display: flex;
|
|
732
732
|
flex-direction: column;
|
|
733
733
|
font-weight: 700;
|
|
@@ -738,10 +738,10 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
738
738
|
align-items: center;
|
|
739
739
|
justify-content: center;
|
|
740
740
|
}
|
|
741
|
-
`,
|
|
741
|
+
`,S4=n.div`
|
|
742
742
|
width: 32px;
|
|
743
743
|
height: 32px;
|
|
744
|
-
`,
|
|
744
|
+
`,V4=n.div`
|
|
745
745
|
border-radius: 30px;
|
|
746
746
|
border: 1px solid #347866;
|
|
747
747
|
width: 32px;
|
|
@@ -753,11 +753,11 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
753
753
|
color: ${({active:e})=>e?"#fff":"#347866"};
|
|
754
754
|
|
|
755
755
|
transition: all 0.15s ease-in;
|
|
756
|
-
`,
|
|
756
|
+
`,Z4=n.div`
|
|
757
757
|
color: #347866;
|
|
758
758
|
width: 32px;
|
|
759
759
|
white-space: nowrap;
|
|
760
|
-
`,
|
|
760
|
+
`,z4=n.div`
|
|
761
761
|
border: 1px solid #afc8bf;
|
|
762
762
|
|
|
763
763
|
width: 35%;
|
|
@@ -765,25 +765,25 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
765
765
|
@media (max-width: 768px) {
|
|
766
766
|
width: 25%;
|
|
767
767
|
}
|
|
768
|
-
`,
|
|
768
|
+
`,_4=n.div`
|
|
769
769
|
width: 35%;
|
|
770
770
|
|
|
771
771
|
@media (max-width: 768px) {
|
|
772
772
|
width: 25%;
|
|
773
773
|
}
|
|
774
|
-
`,t3=({currentStep:e,steps:t})=>jsxs(
|
|
774
|
+
`,t3=({currentStep:e,steps:t})=>jsxs(k4,{children:[jsx("div",{children:t.map((o,r)=>jsxs(e3.Fragment,{children:[jsx(S4,{children:jsx(V4,{active:e===r,children:r+1})}),r<t.length-1&&jsx(z4,{})]},o))}),jsx("div",{children:t.map((o,r)=>jsxs(e3.Fragment,{children:[jsx(Z4,{children:o}),r<t.length-1&&jsx(_4,{})]},o))})]});var B4=n.div`
|
|
775
775
|
margin-left: 16px;
|
|
776
776
|
|
|
777
777
|
& > div:last-of-type {
|
|
778
778
|
padding-bottom: 0;
|
|
779
779
|
border: none;
|
|
780
780
|
}
|
|
781
|
-
`,
|
|
781
|
+
`,P4=n.div`
|
|
782
782
|
display: flex;
|
|
783
783
|
gap: 16px;
|
|
784
784
|
padding-bottom: 40px;
|
|
785
785
|
border-left: 1px solid #afc8bf;
|
|
786
|
-
`,
|
|
786
|
+
`,F4=n.div`
|
|
787
787
|
margin-left: -18px;
|
|
788
788
|
border-radius: 30px;
|
|
789
789
|
border: 1px solid #347866;
|
|
@@ -799,23 +799,23 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
799
799
|
font-size: 16px;
|
|
800
800
|
font-style: normal;
|
|
801
801
|
font-weight: 600;
|
|
802
|
-
`,
|
|
802
|
+
`,E4=n.div`
|
|
803
803
|
display: flex;
|
|
804
804
|
flex-direction: column;
|
|
805
805
|
gap: 8px;
|
|
806
|
-
`,
|
|
806
|
+
`,R4=n.div`
|
|
807
807
|
color: #285e50;
|
|
808
808
|
font-family: Lato;
|
|
809
809
|
font-size: 18px;
|
|
810
810
|
font-weight: 700;
|
|
811
811
|
line-height: normal;
|
|
812
|
-
`,
|
|
812
|
+
`,D4=n.div`
|
|
813
813
|
color: #000;
|
|
814
814
|
font-family: Lato;
|
|
815
815
|
font-size: 16px;
|
|
816
816
|
font-weight: 400;
|
|
817
817
|
line-height: normal;
|
|
818
|
-
`,r3=({steps:e})=>{let t=e.map((o,r)=>jsxs(
|
|
818
|
+
`,r3=({steps:e})=>{let t=e.map((o,r)=>jsxs(P4,{children:[jsx("div",{children:jsx(F4,{children:r+1})}),jsxs(E4,{children:[jsx(R4,{children:o.title}),jsx(D4,{children:o.description})]})]},o.title));return jsx(B4,{children:t})};var A4={Horizontal:t3,Vertical:r3};var $4=n(animated.div)`
|
|
819
819
|
position: absolute;
|
|
820
820
|
display: block;
|
|
821
821
|
width: 45px;
|
|
@@ -829,13 +829,13 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
829
829
|
right: 20px;
|
|
830
830
|
top: 17px;
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
`,N4=n(d.Body)`
|
|
833
833
|
margin-bottom: 5px;
|
|
834
834
|
font-weight: ${({isLabelBold:e})=>e?"bold":"regular"};
|
|
835
835
|
text-align: start;
|
|
836
|
-
`,
|
|
836
|
+
`,U4=n(d.Body)`
|
|
837
837
|
margin-bottom: 5px;
|
|
838
|
-
`,
|
|
838
|
+
`,W4=n.input`
|
|
839
839
|
width: 100%;
|
|
840
840
|
height: 50px;
|
|
841
841
|
box-sizing: border-box;
|
|
@@ -860,7 +860,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
860
860
|
transition: background-color 5000s ease-in-out 0s;
|
|
861
861
|
background-clip: content-box !important;
|
|
862
862
|
}
|
|
863
|
-
`,
|
|
863
|
+
`,X4=IMaskMixin(({inputRef:e,...t})=>jsx(W4,{ref:e,...t})),K4=n.textarea`
|
|
864
864
|
width: 100%;
|
|
865
865
|
resize: none;
|
|
866
866
|
height: 200px;
|
|
@@ -880,14 +880,14 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
880
880
|
}
|
|
881
881
|
`,n3=n(d.Body)`
|
|
882
882
|
margin-bottom: 24px;
|
|
883
|
-
`,
|
|
883
|
+
`,J4=({name:e,label:t=null,details:o=null,type:r="text",options:i={},previewOnly:s=!1,textArea:a=!1,marginBottom:l="24px",isLabelBold:C=!0,format:m=String,errorMessage:f="This field is required",...c})=>{let{register:u,control:h,getValues:b,formState:{errors:w}}=useFormContext();return jsxs(Fragment,{children:[t&&jsx(N4,{size:"lg",isLabelBold:C,children:t}),o&&jsx(U4,{children:o}),a?jsx("div",{children:s?jsx(n3,{size:"md",children:b(e)||"N/A"}):jsx(K4,{...c,...u(e,i),marginBottom:l,error:w?.[e]})}):jsx("div",{style:{width:"100%"},children:s?jsx(n3,{size:"md",children:b(e)||"N/A"}):jsxs("div",{style:{marginBottom:w?.[e]?"6px":l,display:"flex",flexDirection:"column",position:"relative"},children:[jsx(Controller,{render:V=>jsx(X4,{...c,unmask:!1,mask:m,name:V.field.name,onBlur:V.field.onBlur,defaultValue:i.value||V.field.value,onAccept:P=>V.field.onChange({target:{value:P}}),marginBottom:l,type:r,error:w?.[e]}),name:e,rules:i,control:h}),jsx($4,{children:w?.[e]&&jsx(v.ErrorExclamation,{})}),w?.[e]&&jsx(o2,{text:f,includeIcon:!1})]})})]})},s1=J4;var Q4=n.div`
|
|
884
884
|
margin-bottom: 32px;
|
|
885
|
-
`,
|
|
885
|
+
`,j4=n.div`
|
|
886
886
|
display: ${({inline:e})=>e?"flex":"block"};
|
|
887
887
|
gap: 20px;
|
|
888
888
|
flex-wrap: wrap;
|
|
889
889
|
margin: 20px 0;
|
|
890
|
-
`,
|
|
890
|
+
`,e8=n.div`
|
|
891
891
|
display: flex;
|
|
892
892
|
gap: 30rem;
|
|
893
893
|
align-items: center;
|
|
@@ -898,7 +898,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
898
898
|
label {
|
|
899
899
|
padding-left: 35px;
|
|
900
900
|
}
|
|
901
|
-
`,
|
|
901
|
+
`,t8=n.input`
|
|
902
902
|
-webkit-appearance: none;
|
|
903
903
|
position: absolute;
|
|
904
904
|
appearance: none;
|
|
@@ -953,12 +953,12 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
953
953
|
&:checked + label::before {
|
|
954
954
|
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMC42NjY3IDEuNTAwMTJMNC4yNTAwNCA3LjkxNjc5TDEuMzMzMzcgNS4wMDAxMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==');
|
|
955
955
|
}
|
|
956
|
-
`,
|
|
956
|
+
`,o8=n(d.Body)`
|
|
957
957
|
margin-bottom: 5px;
|
|
958
958
|
font-weight: bold;
|
|
959
|
-
`,
|
|
959
|
+
`,r8=n(d.Body)`
|
|
960
960
|
margin-bottom: 5px;
|
|
961
|
-
`,
|
|
961
|
+
`,n8=n.div`
|
|
962
962
|
display: flex;
|
|
963
963
|
gap: 15px;
|
|
964
964
|
align-items: center;
|
|
@@ -967,7 +967,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
967
967
|
input[type='text'] {
|
|
968
968
|
margin: 0;
|
|
969
969
|
}
|
|
970
|
-
`,_1=({option:e,name:t,inputOptions:o={},...r})=>{let{register:i}=useFormContext();return jsxs(
|
|
970
|
+
`,_1=({option:e,name:t,inputOptions:o={},...r})=>{let{register:i}=useFormContext();return jsxs(e8,{children:[jsx(t8,{type:"checkbox",value:e.value,...i(t,o),...r}),jsx("label",{htmlFor:t,children:jsx(d.Body,{children:e.label})})]})},s3=({name:e,label:t,details:o="",options:r=[],inline:i=!1,other:s={},...a})=>jsxs(Q4,{children:[jsx(o8,{size:"lg",children:t}),o&&jsx(r8,{children:o}),jsxs(j4,{inline:i,children:[r.map(l=>jsx(_1,{option:l,name:e,...a},`${e}-${l.value}`)),s.label&&jsxs(n8,{children:[jsx(_1,{option:{label:s.label,value:"other"},name:e,...a},e),jsx(s1,{name:`${e}_other`,...a})]})]})]});var a8=({formMethods:e=null,formOptions:t={},onSubmit:o,children:r,className:i=""})=>{let s={mode:"onBlur",...t},a=useForm(s),l=e||a,C=m=>o(m);return jsx(FormProvider,{...l,children:jsx("form",{className:i,onSubmit:l.handleSubmit(C),children:r})})},l3=a8;var p8=({label:e,name:t,options:o={},...r})=>{let{register:i}=useFormContext(),s=n.div`
|
|
971
971
|
position: relative;
|
|
972
972
|
margin-bottom: 24px;
|
|
973
973
|
|
|
@@ -994,14 +994,14 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
994
994
|
font-size: 24px;
|
|
995
995
|
font-style: normal;
|
|
996
996
|
width: 100%;
|
|
997
|
-
`;return jsxs(s,{children:[jsxs(a,{children:[jsx(L1,{}),jsx(l,{...i(t,o),...r})]}),jsx("label",{htmlFor:t,children:jsx(d.Body,{children:e})})]})},d3=
|
|
997
|
+
`;return jsxs(s,{children:[jsxs(a,{children:[jsx(L1,{}),jsx(l,{...i(t,o),...r})]}),jsx("label",{htmlFor:t,children:jsx(d.Body,{children:e})})]})},d3=p8;var d8=n.div`
|
|
998
998
|
margin-bottom: 32px;
|
|
999
|
-
`,
|
|
999
|
+
`,C8=n.div`
|
|
1000
1000
|
display: ${({inline:e})=>e?"flex":"block"};
|
|
1001
1001
|
gap: 20px;
|
|
1002
1002
|
flex-wrap: wrap;
|
|
1003
1003
|
margin: 20px 0;
|
|
1004
|
-
`,
|
|
1004
|
+
`,m8=n.div`
|
|
1005
1005
|
display: flex;
|
|
1006
1006
|
gap: 30rem;
|
|
1007
1007
|
align-items: center;
|
|
@@ -1012,7 +1012,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1012
1012
|
label {
|
|
1013
1013
|
padding-left: 32px;
|
|
1014
1014
|
}
|
|
1015
|
-
`,
|
|
1015
|
+
`,c8=n.input`
|
|
1016
1016
|
-webkit-appearance: none;
|
|
1017
1017
|
position: absolute;
|
|
1018
1018
|
appearance: none;
|
|
@@ -1069,9 +1069,9 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1069
1069
|
`,f8=n(d.Body)`
|
|
1070
1070
|
margin-bottom: 5px;
|
|
1071
1071
|
font-weight: bold;
|
|
1072
|
-
`,
|
|
1072
|
+
`,g8=n(d.Body)`
|
|
1073
1073
|
margin-bottom: 5px;
|
|
1074
|
-
`,
|
|
1074
|
+
`,u8=n.div`
|
|
1075
1075
|
display: flex;
|
|
1076
1076
|
gap: 15px;
|
|
1077
1077
|
align-items: center;
|
|
@@ -1079,9 +1079,9 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1079
1079
|
input[type="text"] {
|
|
1080
1080
|
margin: 0;
|
|
1081
1081
|
}
|
|
1082
|
-
`,P1=({option:e,name:t,inline:o,...r})=>{let{register:i}=useFormContext();return jsxs(
|
|
1082
|
+
`,P1=({option:e,name:t,inline:o,...r})=>{let{register:i}=useFormContext();return jsxs(m8,{inline:o,children:[jsx(c8,{type:"radio",value:e.value,...i(t),...r}),jsx("label",{htmlFor:t,children:jsx(d.Body,{children:e.label})})]})},m3=({name:e,label:t,details:o="",options:r=[],inline:i=!1,allowOther:s=!1,...a})=>jsxs(d8,{children:[jsx(f8,{size:"lg",children:t}),o&&jsx(g8,{children:o}),jsxs(C8,{inline:i,children:[r.map(l=>jsx(P1,{option:l,name:e,inline:i,...a},`${e}-${l.value}`)),s&&jsxs(u8,{children:[jsx(P1,{option:{label:"Other",value:"other"},name:e,inline:i,...a},e),jsx(s1,{name:`${e}_other`,...a})]})]})]}),h8=n.div`
|
|
1083
1083
|
width: 100%;
|
|
1084
|
-
`,
|
|
1084
|
+
`,x8=({hasError:e,selected:t})=>e?"red":t?"#285E50":"#7f7f7f",y8=n.label`
|
|
1085
1085
|
display: flex;
|
|
1086
1086
|
width: 100%;
|
|
1087
1087
|
gap: 8px;
|
|
@@ -1092,7 +1092,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1092
1092
|
cursor: pointer;
|
|
1093
1093
|
|
|
1094
1094
|
border: 2px solid
|
|
1095
|
-
${({hasError:e,selected:t})=>
|
|
1095
|
+
${({hasError:e,selected:t})=>x8({hasError:e,selected:t})};
|
|
1096
1096
|
|
|
1097
1097
|
svg {
|
|
1098
1098
|
width: 24px;
|
|
@@ -1103,7 +1103,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1103
1103
|
stroke: ${({selected:e})=>e?"#285E50":"#7F7F7F"};
|
|
1104
1104
|
stroke-width: 2.6;
|
|
1105
1105
|
}
|
|
1106
|
-
`,
|
|
1106
|
+
`,b8=n.div`
|
|
1107
1107
|
display: flex;
|
|
1108
1108
|
justify-content: space-between;
|
|
1109
1109
|
color: #000;
|
|
@@ -1112,7 +1112,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1112
1112
|
font-weight: 700;
|
|
1113
1113
|
line-height: 24px;
|
|
1114
1114
|
padding: 18px 24px 0;
|
|
1115
|
-
`,
|
|
1115
|
+
`,w8=n.input`
|
|
1116
1116
|
appearance: none;
|
|
1117
1117
|
background-color: #fff;
|
|
1118
1118
|
margin: 0;
|
|
@@ -1142,17 +1142,17 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1142
1142
|
&:checked {
|
|
1143
1143
|
border: 0.15em solid #1d4339;
|
|
1144
1144
|
}
|
|
1145
|
-
`,
|
|
1145
|
+
`,v8=n(d.Body)`
|
|
1146
1146
|
color: #000;
|
|
1147
1147
|
font-family: Lato;
|
|
1148
1148
|
font-size: 18px;
|
|
1149
1149
|
font-weight: 700;
|
|
1150
1150
|
margin-bottom: 16px;
|
|
1151
|
-
`,
|
|
1151
|
+
`,M8=n.div`
|
|
1152
1152
|
display: flex;
|
|
1153
1153
|
gap: 8px;
|
|
1154
1154
|
color: ${e=>e.selected?"#285E50":"#000"};
|
|
1155
|
-
`,
|
|
1155
|
+
`,L8=n.div`
|
|
1156
1156
|
display: flex;
|
|
1157
1157
|
color: ${e=>e.selected?"#000":"#7F7F7F"};
|
|
1158
1158
|
font-family: Lato;
|
|
@@ -1161,17 +1161,17 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1161
1161
|
font-weight: 400;
|
|
1162
1162
|
line-height: 24px;
|
|
1163
1163
|
padding: 0 24px 19px;
|
|
1164
|
-
`,
|
|
1164
|
+
`,H8=({option:e,name:t,formOptions:o})=>{let{register:r,watch:i,formState:s}=useFormContext(),a=i(t)===e.value;return jsxs(y8,{selected:a,hasError:!!s.errors[t],children:[jsxs(b8,{children:[jsxs(M8,{selected:a,children:[e.icon||null,e.label]}),jsx(w8,{type:"radio",value:e.value,...r(t,o)})]}),jsx(L8,{selected:a,children:e.description})]})},c3=({name:e,label:t=null,className:o="",options:r,formOptions:i={},id:s=""})=>jsxs(h8,{className:o,id:s,children:[t&&jsx(v8,{size:"lg",children:t}),jsx("div",{children:r.map(a=>jsx(H8,{option:a,name:e,formOptions:i},`${a.label}-${a.value}`))})]});var z8=n.div`
|
|
1165
1165
|
position: relative;
|
|
1166
1166
|
margin-bottom: 24px;
|
|
1167
1167
|
z-index: 40;
|
|
1168
|
-
`,
|
|
1168
|
+
`,_8=n(d.Body)`
|
|
1169
1169
|
margin-bottom: 5px;
|
|
1170
1170
|
font-weight: ${({isLabelBold:e})=>e?"bold":"regular"};
|
|
1171
1171
|
text-align: start;
|
|
1172
|
-
`,
|
|
1172
|
+
`,B8=n(d.Body)`
|
|
1173
1173
|
margin-bottom: 12px;
|
|
1174
|
-
`,
|
|
1174
|
+
`,P8=n.div`
|
|
1175
1175
|
position: relative;
|
|
1176
1176
|
margin-top: 8px;
|
|
1177
1177
|
border: 1px solid #5a5a5a;
|
|
@@ -1190,7 +1190,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1190
1190
|
right: 25px;
|
|
1191
1191
|
top: 17px;
|
|
1192
1192
|
}
|
|
1193
|
-
`,
|
|
1193
|
+
`,F8=n(animated.div)`
|
|
1194
1194
|
position: absolute;
|
|
1195
1195
|
background: #fff;
|
|
1196
1196
|
border-radius: 8px;
|
|
@@ -1200,7 +1200,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1200
1200
|
right: 0;
|
|
1201
1201
|
max-height: 180px;
|
|
1202
1202
|
overflow: scroll;
|
|
1203
|
-
`,
|
|
1203
|
+
`,E8=n.div`
|
|
1204
1204
|
cursor: pointer;
|
|
1205
1205
|
padding: 13px 24px;
|
|
1206
1206
|
position: relative;
|
|
@@ -1210,7 +1210,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1210
1210
|
background: #3f937c;
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
|
-
`,
|
|
1213
|
+
`,R8=n.div`
|
|
1214
1214
|
display: flex;
|
|
1215
1215
|
align-items: center;
|
|
1216
1216
|
justify-content: center;
|
|
@@ -1224,25 +1224,25 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1224
1224
|
border: 0.766898px solid;
|
|
1225
1225
|
border-color: ${e=>e.isCurrent?"#285E50 !important":"#3f937c"};
|
|
1226
1226
|
background: ${e=>e.isCurrent?"#285E50 !important":"#FFF"};
|
|
1227
|
-
`,
|
|
1227
|
+
`,D8=n.input`
|
|
1228
1228
|
outline: none;
|
|
1229
1229
|
border: none;
|
|
1230
1230
|
background: none;
|
|
1231
1231
|
position: absolute;
|
|
1232
1232
|
top: 0;
|
|
1233
1233
|
left: 0;
|
|
1234
|
-
`,
|
|
1234
|
+
`,A8=n(d.Body)`
|
|
1235
1235
|
margin-bottom: 24px;
|
|
1236
|
-
`,
|
|
1236
|
+
`,O8=({label:e="",name:t,details:o="",placeholder:r="",options:i=[],allowInput:s=!1,previewOnly:a=!1,isLabelBold:l=!0,formOptions:C={},onChange:m=()=>null})=>{let f=useRef(),c=useFormContext();c.register(t,C);let[u,h]=useState(!1),[b,w]=useState(""),[V,P]=useState(i),o1=useSpring(u?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let g=p=>{u&&f.current&&!f.current.contains(p.target)&&h(!1);};return document.addEventListener("mousedown",p=>g(p)),()=>{document.removeEventListener("mousedown",p=>g(p));}},[u]);let W=i.find(g=>g.value===c.getValues(t))?.label,X=g=>{w(""),c.setValue(t,g.value),c.trigger(t),m&&m(g),h(!1);};useEffect(()=>{if(h(!!b),b){let g=i.filter(p=>p.value.match(b.toLowerCase()));P(g),c.setValue(t,b);}else P(i);},[b,i.length]);let x=g=>{g.code==="Enter"&&g.preventDefault();};return jsxs(z8,{children:[jsx(_8,{size:"lg",isLabelBold:l,children:e}),o&&jsx(B8,{children:o}),a?jsx(A8,{size:"md",children:W||"N/A"}):jsxs(P8,{onClick:()=>h(!u),children:[W||jsx("i",{children:r}),s&&jsx(D8,{onKeyDown:x,value:b,onChange:g=>w(g.target.value),type:"text"}),jsx(v.Caret,{direction:u?"up":"down"}),jsx(F8,{style:o1,ref:f,children:V.map(g=>{let{label:p}=g,y=g.label===W;return jsxs(E8,{onClick:()=>X(g),children:[jsx(d.Body,{size:"lg",children:p}),jsx(R8,{isCurrent:y,children:jsx(v.Check,{color:"#fff"})})]},g.value)})})]})]})},g3=O8;var $8=({label:e="Submit",isSubmitting:t=!1,hideWhenInvalid:o=!1,...r})=>{let i=useFormContext(),{isValid:s}=i.formState,l=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:l,...r,children:jsx(T1.Primary,{htmlType:"submit",isSubmitting:t,...r,children:e})})},h3=$8;var J8=n.div`
|
|
1237
1237
|
position: relative;
|
|
1238
1238
|
margin-bottom: 24px;
|
|
1239
1239
|
z-index: 20;
|
|
1240
|
-
`,
|
|
1240
|
+
`,Y8=n(d.Body)`
|
|
1241
1241
|
margin-bottom: 5px;
|
|
1242
1242
|
font-weight: bold;
|
|
1243
|
-
`,
|
|
1243
|
+
`,q8=n(d.Body)`
|
|
1244
1244
|
margin-bottom: 12px;
|
|
1245
|
-
`,
|
|
1245
|
+
`,Q8=n.div`
|
|
1246
1246
|
position: relative;
|
|
1247
1247
|
display: flex;
|
|
1248
1248
|
align-items: center;
|
|
@@ -1253,7 +1253,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1253
1253
|
border-radius: 8px;
|
|
1254
1254
|
height: 50px;
|
|
1255
1255
|
background-color: #fff;
|
|
1256
|
-
`,
|
|
1256
|
+
`,j8=n(animated.div)`
|
|
1257
1257
|
position: absolute;
|
|
1258
1258
|
background: #fff;
|
|
1259
1259
|
border-radius: 8px;
|
|
@@ -1263,7 +1263,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1263
1263
|
right: 0;
|
|
1264
1264
|
max-height: 180px;
|
|
1265
1265
|
overflow: scroll;
|
|
1266
|
-
`,
|
|
1266
|
+
`,e9=n(animated.div)`
|
|
1267
1267
|
position: absolute;
|
|
1268
1268
|
display: block;
|
|
1269
1269
|
width: 45px;
|
|
@@ -1277,7 +1277,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1277
1277
|
right: 20px;
|
|
1278
1278
|
top: 17px;
|
|
1279
1279
|
}
|
|
1280
|
-
`,
|
|
1280
|
+
`,t9=n.div`
|
|
1281
1281
|
cursor: pointer;
|
|
1282
1282
|
padding: 13px 24px;
|
|
1283
1283
|
position: relative;
|
|
@@ -1288,7 +1288,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1288
1288
|
color: #fff;
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
`,
|
|
1291
|
+
`,o9=n.input`
|
|
1292
1292
|
outline: none;
|
|
1293
1293
|
border: none;
|
|
1294
1294
|
background: none;
|
|
@@ -1301,24 +1301,24 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1301
1301
|
padding: 0 20px;
|
|
1302
1302
|
width: 100%;
|
|
1303
1303
|
height: 100%;
|
|
1304
|
-
`,
|
|
1304
|
+
`,r9=n(d.Body)`
|
|
1305
1305
|
margin-bottom: 24px;
|
|
1306
|
-
`,
|
|
1306
|
+
`,n9=e=>{let t="",o="";e.address_components.forEach(s=>{let a=s.types.some(C=>C==="locality"),l=s.types.some(C=>C==="administrative_area_level_1");a?t=s.short_name:l&&(o=s.short_name);});let r=e.geometry.location.lat(),i=e.geometry.location.lng();return {city:t,state:o,lat:r,long:i}},i9=({handleSelect:e,option:t,value:o})=>{let{description:r}=t,i=r===o,s=r.replace(", USA","");return jsx(t9,{isCurrent:i,onClick:()=>e(s),children:jsx(d.Body,{size:"lg",children:s})})},s9=({label:e="",details:t="",required:o=!0,previewOnly:r=!1})=>{let i=useRef(),[s,a]=useState(!1),[l,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 x=g=>{s&&i.current&&!i.current.contains(g.target)&&a(!1);};return document.addEventListener("mousedown",g=>x(g)),()=>{document.removeEventListener("mousedown",g=>x(g));}},[s]);let c=m.getValues("city")?`${m.getValues("city")}, ${m.getValues("state")}`:"",{value:u,suggestions:{data:h,loading:b},setValue:w,clearSuggestions:V}=W8({requestOptions:{types:["locality","postal_code"],componentRestrictions:{country:"us"}}});useEffect(()=>{if(b){C(b);return}setTimeout(()=>{C(b);},2e3);},[b]);let P=useSpring(l?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),o1=x=>{w(x.target.value),m.setValue("city",null),m.setValue("state",null),m.trigger("city"),x.target.value.length>=3&&a(!0);},W=x=>{w(x,!1),V(),!(x.length<=2)&&getGeocode({address:x}).then(g=>{let{city:p,state:y,lat:A1,long:A3}=n9(g[0]);m.setValue("city",p),m.setValue("state",y),m.setValue("lat",A1),m.setValue("long",A3),m.trigger("city");}).catch(g=>console.error(`Google Maps API error: ${g}`));},X=x=>{x.code==="Enter"&&x.preventDefault();};return jsxs(J8,{children:[jsx(Y8,{size:"lg",children:e}),t&&jsx(q8,{children:t}),r?jsx(r9,{size:"md",children:c||"N/A"}):jsxs(Q8,{children:[jsx(o9,{onKeyDown:X,value:u||c,onChange:x=>o1(x),type:"text"}),h.length>0&&jsx(j8,{style:f,ref:i,children:h.map(x=>jsx(i9,{handleSelect:W,option:x,value:u},x.description))}),jsx(e9,{style:P,children:jsx(r2,{size:"sm"})})]})]})},M3=e=>{let{isLoaded:t}=useLoadScript({googleMapsApiKey:e.api_key||process.env.GOOGLE_MAPS_API_KEY||"",libraries:["places"]});return t?jsx(s9,{...e}):null};var l9=({label:e="",name:t,...o})=>{let{setValue:r}=useFormContext(),i=n(d.Body)`
|
|
1307
1307
|
margin-bottom: 5px;
|
|
1308
1308
|
text-align: start;
|
|
1309
1309
|
`,s=n.div`
|
|
1310
1310
|
position: relative;
|
|
1311
1311
|
margin-bottom: 24px;
|
|
1312
|
-
`;return jsxs(s,{children:[e&&jsx(i,{children:e}),jsx(a2,{...o,onChange:l=>{r(t,l.value);}})]})},H3=
|
|
1312
|
+
`;return jsxs(s,{children:[e&&jsx(i,{children:e}),jsx(a2,{...o,onChange:l=>{r(t,l.value);}})]})},H3=l9;var S3=({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 c9=n.div`
|
|
1313
1313
|
position: relative;
|
|
1314
1314
|
margin-bottom: 24px;
|
|
1315
1315
|
z-index: 20;
|
|
1316
1316
|
`,f9=n(d.Body)`
|
|
1317
1317
|
margin-bottom: 5px;
|
|
1318
1318
|
font-weight: bold;
|
|
1319
|
-
`,
|
|
1319
|
+
`,g9=n(d.Body)`
|
|
1320
1320
|
margin-bottom: 12px;
|
|
1321
|
-
`,
|
|
1321
|
+
`,u9=n.div`
|
|
1322
1322
|
position: relative;
|
|
1323
1323
|
padding: 15px 23px;
|
|
1324
1324
|
margin-top: 8px;
|
|
@@ -1335,7 +1335,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1335
1335
|
left: 25px;
|
|
1336
1336
|
top: 17px;
|
|
1337
1337
|
}
|
|
1338
|
-
`,
|
|
1338
|
+
`,h9=n(animated.div)`
|
|
1339
1339
|
position: absolute;
|
|
1340
1340
|
background: #fff;
|
|
1341
1341
|
border-radius: 8px;
|
|
@@ -1355,7 +1355,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1355
1355
|
background: #3f937c;
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
`,
|
|
1358
|
+
`,x9=n.input`
|
|
1359
1359
|
outline: none;
|
|
1360
1360
|
border: none;
|
|
1361
1361
|
background: none;
|
|
@@ -1367,7 +1367,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1367
1367
|
width: 100%;
|
|
1368
1368
|
height: 100%;
|
|
1369
1369
|
padding-left: 10px;
|
|
1370
|
-
`,
|
|
1370
|
+
`,y9=n.div`
|
|
1371
1371
|
height: 32px;
|
|
1372
1372
|
border-radius: 32px;
|
|
1373
1373
|
margin-right: 10px;
|
|
@@ -1378,7 +1378,7 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1378
1378
|
align-items: center;
|
|
1379
1379
|
display: flex;
|
|
1380
1380
|
margin-top: 8px;
|
|
1381
|
-
`,
|
|
1381
|
+
`,b9=n.div`
|
|
1382
1382
|
display: flex;
|
|
1383
1383
|
align-items: center;
|
|
1384
1384
|
justify-content: center;
|
|
@@ -1392,14 +1392,14 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1392
1392
|
border: 0.766898px solid;
|
|
1393
1393
|
border-color: ${e=>e.isCurrent?"#285E50 !important":"#3f937c"};
|
|
1394
1394
|
background: ${e=>e.isCurrent?"#285E50 !important":"#FFF"};
|
|
1395
|
-
`,
|
|
1395
|
+
`,w9=({label:e="",name:t,details:o="",options:r=[],previewOnly:i=!1})=>{let s=useRef(),a=useFormContext(),[l,C]=useState(!1),[m,f]=useState(""),[c,u]=useState(a.getValues(t)||[]),h=useRef({search:m,keywords:c});useEffect(()=>{h.current={search:m,keywords:c};},[m,c]);let[b,w]=useState(r),V=useSpring(l?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),P=r.find(p=>p===a.getValues(t)),o1=p=>{let y=[...h.current.keywords,p];f(""),u(y),a.setValue(t,y),C(!1);},W=p=>p?p.charAt(0).toUpperCase()+p.slice(1).toLowerCase():"",X=()=>{if(!h.current.search)return;let p=W(h.current.search);o1(p);};useEffect(()=>{let p=y=>{l&&s.current&&!s.current.contains(y.target)&&(X(),C(!1));};return document.addEventListener("mousedown",y=>p(y)),()=>{document.removeEventListener("mousedown",y=>p(y));}},[l]);let x=p=>{p.code==="Enter"&&(X(),p.preventDefault());},g=p=>{let y=c.filter(A1=>A1!==p);u(y),f(""),a.setValue(t,y);};return useEffect(()=>{if(C(!!m),m){let p=r.filter(y=>y.toLowerCase().match(m.toLowerCase()));w(p);}else w(r);},[m]),useEffect(()=>{let p=r.filter(y=>!c.includes(y));w(p);},[c]),jsxs(c9,{children:[jsx(f9,{size:"lg",children:e}),o&&jsx(g9,{children:o}),!i&&jsxs(u9,{onClick:()=>C(!l),children:[jsx(S3,{}),P,jsx(x9,{onKeyDown:x,value:m,onChange:p=>f(p.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxs(h9,{style:V,ref:s,children:[b.map(p=>{let y=p===P;return jsxs(Z3,{onClick:()=>o1(p),children:[jsx(d.Body,{size:"lg",children:p}),jsx(b9,{isCurrent:y,children:jsx(v.Check,{color:"#fff"})})]},p)}),!b.length&&jsx(Z3,{onClick:()=>X(),children:jsx(d.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[i&&c.length===0&&"N/A",c.map(p=>jsxs(y9,{onClick:()=>g(p),children:[p,!i&&jsx(M1,{})]},p))]})]})},z3=w9;var L9=({label:e=null,isLabelBold:t=!0,name:o,options:r={},...i})=>{let{control:s}=useFormContext(),a=n(d.Body)`
|
|
1396
1396
|
margin-bottom: 5px;
|
|
1397
1397
|
font-weight: ${({isLabelBold:C})=>C?"bold":"regular"};
|
|
1398
1398
|
text-align: start;
|
|
1399
1399
|
`,l=n.div`
|
|
1400
1400
|
position: relative;
|
|
1401
1401
|
margin-bottom: 24px;
|
|
1402
|
-
`;return jsxs(l,{children:[e&&jsx(a,{size:"lg",isLabelBold:t,children:e}),jsx(Controller,{render:({field:C})=>jsx(I1,{...i,...C}),name:o,control:s,...r})]})},B3=
|
|
1402
|
+
`;return jsxs(l,{children:[e&&jsx(a,{size:"lg",isLabelBold:t,children:e}),jsx(Controller,{render:({field:C})=>jsx(I1,{...i,...C}),name:o,control:s,...r})]})},B3=L9;var z9={Container:l3,Checkbox:_1,CheckboxGroup:s3,DateSelect:B3,TextInput:s1,TimeSelect:H3,Radio:P1,RadioGroup:m3,CardRadioGroup:c3,Select:g3,Signature:d3,Submit:h3,LocationSelect:M3,Keyword:z3,Toggle:l2};var P9=n(animated.div)`
|
|
1403
1403
|
max-height: ${({size:e})=>(e||58)+24}px;
|
|
1404
1404
|
padding: 12px;
|
|
1405
1405
|
display: flex;
|
|
@@ -1413,25 +1413,25 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1413
1413
|
&:hover {
|
|
1414
1414
|
border-radius: 40px;
|
|
1415
1415
|
}
|
|
1416
|
-
`,
|
|
1416
|
+
`,F9=n(animated.div)`
|
|
1417
1417
|
display: flex;
|
|
1418
1418
|
flex-direction: column;
|
|
1419
1419
|
flex-wrap: wrap;
|
|
1420
1420
|
min-width: 180px;
|
|
1421
1421
|
max-width: 180px;
|
|
1422
1422
|
margin-left: 12px;
|
|
1423
|
-
`,
|
|
1423
|
+
`,E9=n.span`
|
|
1424
1424
|
font-weight: 700;
|
|
1425
1425
|
letter-spacing: 0.157px;
|
|
1426
1426
|
color: #1d4339;
|
|
1427
|
-
`,
|
|
1427
|
+
`,R9=n.p`
|
|
1428
1428
|
font-size: 10px;
|
|
1429
1429
|
letter-spacing: 0.157px;
|
|
1430
1430
|
text-align: left;
|
|
1431
1431
|
margin: 0;
|
|
1432
1432
|
line-height: 12px;
|
|
1433
1433
|
color: #1d4339;
|
|
1434
|
-
`,
|
|
1434
|
+
`,D9=({contentfulConfig:e,size:t=58})=>{let[o,r]=useState(""),[i,s]=useSpring(()=>({from:{width:t+24,backgroundColor:"#fff",color:"#ffffff"}}));useEffect(()=>{new i1(e).getImage("vanta-logo").then(u=>{r(u);});},[]);let[a,l]=useSpring(()=>({from:{opacity:0},delay:100})),C=u=>({width:u?198+t:t+24,backgroundColor:u?"#d4e2dd":"#fff"}),m=u=>({opacity:u?1:0}),f=()=>{s(C(!0)),l(m(!0));},c=()=>{s(C(!1)),l(m(!1));};return o?jsxs(P9,{style:i,onMouseEnter:f,onMouseLeave:c,size:t,children:[jsx("img",{alt:"Vanta Logo",src:o,height:t,width:t}),jsxs(F9,{style:a,children:[jsx(d.Body,{children:jsx(E9,{children:"Guaranteed Security"})}),jsx(d.Body,{size:"xs",children:jsx(R9,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},A9=D9;function c2({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(v.Caret,{direction:"up",color:t})})}var G9=n(Menu)`
|
|
1435
1435
|
.ant-menu-submenu {
|
|
1436
1436
|
background-color: #fff;
|
|
1437
1437
|
color: #555555 !important;
|
|
@@ -1471,8 +1471,8 @@ var l1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1471
1471
|
background-color: #fff !important;
|
|
1472
1472
|
color: #000 !important;
|
|
1473
1473
|
}
|
|
1474
|
-
|
|
1474
|
+
`,$9=({children:e,...t})=>jsx(G9,{...t,expandIcon:o=>jsx(c2,{isActive:o.isOpen,color:"#555555"}),children:e}),N9=({children:e,...t})=>jsx(Menu.Item,{...t,children:e}),U9=e=>jsx(Menu.Divider,{...e}),W9=({children:e,...t})=>jsx(Menu.SubMenu,{...t,children:e}),X9={Container:$9,MenuDivider:U9,MenuItem:N9,SubMenuContainer:W9};
|
|
1475
1475
|
|
|
1476
|
-
export { i0 as Avatar, T1 as Button, Z0 as Collapse, i1 as Contentful, vt as ContentfulLottieFileSlug, I1 as DateSelect, R0 as Drawer, o2 as ErrorTypography,
|
|
1476
|
+
export { i0 as Avatar, T1 as Button, Z0 as Collapse, i1 as Contentful, vt as ContentfulLottieFileSlug, I1 as DateSelect, R0 as Drawer, o2 as ErrorTypography, z9 as Form, v as Icons, r2 as LoadingSpinner, Zt as LottieAnimation, f1 as Menu, Et as Modal, X9 as NavigationMenu, A4 as NumberedProgressSteps, xt as Pill, At as Progress, Gt as Segmented, g2 as Size, Nt as SolaceLogo, G3 as SolaceThemeProvider, Xt as Tabs, a2 as TimeSelect, l2 as Toggle, K as Tooltip, d as Typography, A9 as VantaLogo };
|
|
1477
1477
|
//# sourceMappingURL=out.js.map
|
|
1478
1478
|
//# sourceMappingURL=index.js.map
|