@getcredify/credify-insurance-widget 1.41.1 → 1.43.0
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/README.md +109 -0
- package/dist/address-BEVwov8q-Cgvd-ydq.js +59 -0
- package/dist/{api-Cjj6Dfhg.js → api-BGeBevot.js} +15 -15
- package/dist/car-BQXTRajZ.js +26 -0
- package/dist/check-04Hiu_0S.js +15 -0
- package/dist/copy-applicant-offer-CqzfNhkJ-CXzGxES4.js +56 -0
- package/dist/copy-from-record-BNP6CFFR-Ea4bf4lq.js +189 -0
- package/dist/core-CrEw_I-E-B6agkb7g.js +417 -0
- package/dist/coverageDerivation-CV2ORogj-B42UJhMa.js +76 -0
- package/dist/credify-insurance-widget.css +1 -1
- package/dist/{fixtures-ijbZ16Zg-BfdDTLYu.js → fixtures-ijbZ16Zg-Bmt9N4zO.js} +1 -1
- package/dist/household-prefill-CmtB9R3R-DaQcDYh7.js +151 -0
- package/dist/householdPrefill-DLm3pxFH-CqqJoa0N.js +111 -0
- package/dist/iframe/assets/address-BEVwov8q-Bqt4jr_e.js +1 -0
- package/dist/iframe/assets/car-B0PQzDYj.js +6 -0
- package/dist/iframe/assets/check-bC0Zibyh.js +6 -0
- package/dist/iframe/assets/copy-applicant-offer-CqzfNhkJ-D6mTQGjz.js +1 -0
- package/dist/iframe/assets/copy-from-record-BNP6CFFR-D3zdAXXN.js +6 -0
- package/dist/iframe/assets/core-CrEw_I-E-ecektrnv.js +16 -0
- package/dist/iframe/assets/coverageDerivation-CV2ORogj-CA4KQiLs.js +1 -0
- package/dist/iframe/assets/dob-calendar-RIJ5S6YU-1oIu3-0M.js +1 -0
- package/dist/iframe/assets/{fixtures-ijbZ16Zg-DbpkZfa3.js → fixtures-ijbZ16Zg-Dif2LDkg.js} +1 -1
- package/dist/iframe/assets/household-prefill-CmtB9R3R-CrgN1qav.js +1 -0
- package/dist/iframe/assets/householdPrefill-DLm3pxFH-B3K_XX2k.js +6 -0
- package/dist/iframe/assets/iframe-Bl0qTZgO.css +1 -0
- package/dist/iframe/assets/iframe-BsUmazO0.js +107 -0
- package/dist/iframe/assets/index-BipROEB3.js +6 -0
- package/dist/iframe/assets/intake-review-panel-D27t8CZO-UOfbb2gR.js +1 -0
- package/dist/iframe/assets/{mockJump-CL8w249w-Bp9W72n5.js → mockJump-hNzgzUmO-Dd1MY0fT.js} +1 -1
- package/dist/iframe/assets/payload-DrGFAxms-DeQGFkZt.js +1 -0
- package/dist/iframe/assets/question-list-DFjWa8ZA--GTrxgeK.js +317 -0
- package/dist/iframe/assets/rates-panel-BSFiWEZX-Bw7hcmIi.js +17 -0
- package/dist/iframe/assets/review-panel-C_WxX33U-BxLq8fbL.js +6 -0
- package/dist/iframe/assets/stage-knShj71W-BctzWtx2.js +1 -0
- package/dist/iframe/assets/types-LUGvo5ic-CB-wcgK3.js +1 -0
- package/dist/iframe/assets/validation-D42QXxck-CI1J_zUB.js +3 -0
- package/dist/iframe/assets/vehicleCoverage-CBWORI1l-D_NVJvjm.js +1 -0
- package/dist/iframe/assets/visibility-CKRGC3Il-CzwGG4Rt.js +1 -0
- package/dist/iframe/iframe.html +2 -2
- package/dist/index-C9szcdxC.js +354 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.es.js +4 -4
- package/dist/index.umd.js +105 -115
- package/dist/intake-review-panel-D27t8CZO-BprNqAxn.js +186 -0
- package/dist/{mockJump-CL8w249w-1jjBaNyK.js → mockJump-hNzgzUmO-DdKPcdjz.js} +1 -1
- package/dist/payload-DrGFAxms-4aJBixaL.js +128 -0
- package/dist/question-list-DFjWa8ZA-DqUPEU4a.js +6505 -0
- package/dist/rates-panel-BSFiWEZX-poz1p0rK.js +1001 -0
- package/dist/review-panel-C_WxX33U-DAqsW53a.js +903 -0
- package/dist/stage-knShj71W-DkbEgye4.js +197 -0
- package/dist/types-LUGvo5ic-CiVRcsV9.js +9 -0
- package/dist/utils/assets.d.ts +12 -0
- package/dist/utils/branding.d.ts +21 -0
- package/dist/utils/partner.d.ts +32 -0
- package/dist/utils/prefill.d.ts +18 -0
- package/dist/utils/support/bland.d.ts +5 -0
- package/dist/validation-D42QXxck-6HA5X_Ql.js +2852 -0
- package/dist/vehicleCoverage-CBWORI1l-Cy7XD_03.js +144 -0
- package/dist/visibility-CKRGC3Il-v2xplFmb.js +198 -0
- package/dist/widget-wgT55Lu5.js +13109 -0
- package/package.json +2 -2
- package/dist/iframe/assets/dob-calendar-RIJ5S6YU-DMJbmHdB.js +0 -1
- package/dist/iframe/assets/iframe-DFqQdMHv.css +0 -1
- package/dist/iframe/assets/iframe-iPSy7w5L.js +0 -494
- package/dist/widget-Umfy69_M.js +0 -27318
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dob-calendar-RIJ5S6YU-1oIu3-0M.js","assets/iframe-BsUmazO0.js","assets/iframe-Bl0qTZgO.css","assets/dob-calendar-RIJ5S6YU-D1-0B2xV.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{l as E,r as g,L as he,a as n,M as Js,t as ea,S as ta,U as na,V as ra,d as Ke,p as F,f as V,W as un,X as sa,_ as aa,N as oa,Y as ia,Z as ca,$ as la,a0 as da}from"./iframe-BsUmazO0.js";import{o as ua,r as ha,s as fa,t as Ln,W as In,H as St,S as pa}from"./core-CrEw_I-E-ecektrnv.js";import{n as Ie}from"./types-LUGvo5ic-CB-wcgK3.js";import{s as ma,a as va}from"./address-BEVwov8q-Bqt4jr_e.js";import{U as ga,_ as ya,g as xa,s as ba}from"./householdPrefill-DLm3pxFH-B3K_XX2k.js";import{k as ka,n as wa,u as ja,c as _a,d as Ma,j as Ca,A as Sa}from"./visibility-CKRGC3Il-CzwGG4Rt.js";import{C as Ea,f as Ir,T as Na}from"./validation-D42QXxck-CI1J_zUB.js";import{i as Pa,a as Aa,t as Vr,u as $a,f as Ra,n as Oa,r as Ta,s as Fa,p as Da}from"./vehicleCoverage-CBWORI1l-D_NVJvjm.js";import{d as La,l as Ia,u as Va,t as Ba}from"./stage-knShj71W-BctzWtx2.js";import{s as Ha,u as Br,l as za,c as Wa,U as qa}from"./copy-from-record-BNP6CFFR-D3zdAXXN.js";import{s as Ua,c as Ka,d as Ya}from"./coverageDerivation-CV2ORogj-CA4KQiLs.js";import{e as ze,P as ae,a as X,f as Ga,r as Hr,c as hn,d as fn,u as zr,b as Xa,C as Wr}from"./index-BipROEB3.js";import{C as qr}from"./check-bC0Zibyh.js";import{C as Vn}from"./car-B0PQzDYj.js";/**
|
|
3
|
+
* @license lucide-react v0.562.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const Qa=[["path",{d:"M18 17.5a2.5 2.5 0 1 1-4 2.03V12",key:"yd12zl"}],["path",{d:"M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"larmp2"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"M6.6 15.572A2 2 0 1 0 10 17v-5",key:"1x1kqn"}]],Bn=E("air-vent",Qa);/**
|
|
8
|
+
* @license lucide-react v0.562.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/const Za=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ur=E("ban",Za);/**
|
|
13
|
+
* @license lucide-react v0.562.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/const Ja=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],eo=E("bed-double",Ja);/**
|
|
18
|
+
* @license lucide-react v0.562.0 - ISC
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the ISC license.
|
|
21
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/const to=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Hn=E("bell",to);/**
|
|
23
|
+
* @license lucide-react v0.562.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/const no=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]],me=E("brick-wall",no);/**
|
|
28
|
+
* @license lucide-react v0.562.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/const ro=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],zn=E("briefcase",ro);/**
|
|
33
|
+
* @license lucide-react v0.562.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/const so=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Wn=E("bug",so);/**
|
|
38
|
+
* @license lucide-react v0.562.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/const ao=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],qn=E("building-2",ao);/**
|
|
43
|
+
* @license lucide-react v0.562.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const oo=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],io=E("calendar-days",oo);/**
|
|
48
|
+
* @license lucide-react v0.562.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/const co=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ve=E("circle-alert",co);/**
|
|
53
|
+
* @license lucide-react v0.562.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/const lo=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v2",key:"a1is7l"}],["path",{d:"M8 14v2",key:"1e9m6t"}],["path",{d:"M16 20h.01",key:"xwek51"}],["path",{d:"M8 20h.01",key:"1vjney"}],["path",{d:"M12 16v2",key:"z66u1j"}],["path",{d:"M12 22h.01",key:"1urd7a"}]],Un=E("cloud-hail",lo);/**
|
|
58
|
+
* @license lucide-react v0.562.0 - ISC
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the ISC license.
|
|
61
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/const uo=[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]],Kn=E("cloud-lightning",uo);/**
|
|
63
|
+
* @license lucide-react v0.562.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const ho=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],fo=E("cloud-rain",ho);/**
|
|
68
|
+
* @license lucide-react v0.562.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const po=[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]],ge=E("container",po);/**
|
|
73
|
+
* @license lucide-react v0.562.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const mo=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Yn=E("credit-card",mo);/**
|
|
78
|
+
* @license lucide-react v0.562.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const vo=[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]],go=E("dog",vo);/**
|
|
83
|
+
* @license lucide-react v0.562.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const yo=[["path",{d:"M10 12h.01",key:"1kxr2c"}],["path",{d:"M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14",key:"36qu9e"}],["path",{d:"M2 20h20",key:"owomy5"}]],Et=E("door-closed",yo);/**
|
|
88
|
+
* @license lucide-react v0.562.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const xo=[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]],Gn=E("droplet",xo);/**
|
|
93
|
+
* @license lucide-react v0.562.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const bo=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],Ve=E("droplets",bo);/**
|
|
98
|
+
* @license lucide-react v0.562.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/const ko=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Nt=E("file-text",ko);/**
|
|
103
|
+
* @license lucide-react v0.562.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const wo=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Be=E("flame",wo);/**
|
|
108
|
+
* @license lucide-react v0.562.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const jo=[["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5",key:"1wtuz0"}],["path",{d:"M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16",key:"e09ifn"}],["path",{d:"M2 21h13",key:"1x0fut"}],["path",{d:"M3 9h11",key:"1p7c0w"}]],Xn=E("fuel",jo);/**
|
|
113
|
+
* @license lucide-react v0.562.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const _o=[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]],Mo=E("hard-hat",_o);/**
|
|
118
|
+
* @license lucide-react v0.562.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const Co=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],Qn=E("heart-pulse",Co);/**
|
|
123
|
+
* @license lucide-react v0.562.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const So=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Eo=E("heart",So);/**
|
|
128
|
+
* @license lucide-react v0.562.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const No=[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],Zn=E("hotel",No);/**
|
|
133
|
+
* @license lucide-react v0.562.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const Po=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ao=E("info",Po);/**
|
|
138
|
+
* @license lucide-react v0.562.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const $o=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Ro=E("key",$o);/**
|
|
143
|
+
* @license lucide-react v0.562.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const Oo=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],B=E("layers",Oo);/**
|
|
148
|
+
* @license lucide-react v0.562.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const To=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"m21 3-6.75 6.75",key:"pv0uzu"}],["circle",{cx:"10",cy:"14",r:"6",key:"1qwbdc"}]],Fo=E("mars",To);/**
|
|
153
|
+
* @license lucide-react v0.562.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const Do=[["path",{d:"M5 12h14",key:"1ays0h"}]],Lo=E("minus",Do);/**
|
|
158
|
+
* @license lucide-react v0.562.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const Io=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],K=E("mountain",Io);/**
|
|
163
|
+
* @license lucide-react v0.562.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const Vo=[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]],et=E("person-standing",Vo);/**
|
|
168
|
+
* @license lucide-react v0.562.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const Bo=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3L11 9.999",key:"1lw9ds"}],["path",{d:"M15.973 4.027A13 13 0 0 0 5.902 2.373c-1.398.342-1.092 2.158.277 2.601a19.9 19.9 0 0 1 5.822 3.024",key:"ffj4ej"}],["path",{d:"M16.001 11.999a19.9 19.9 0 0 1 3.024 5.824c.444 1.369 2.26 1.676 2.603.278A13 13 0 0 0 20 8.069",key:"8tj4zw"}],["path",{d:"M18.352 3.352a1.205 1.205 0 0 0-1.704 0l-5.296 5.296a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l5.296-5.296a1.205 1.205 0 0 0 0-1.704z",key:"hh6h97"}]],Pt=E("pickaxe",Bo);/**
|
|
173
|
+
* @license lucide-react v0.562.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const Ho=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Kr=E("plus",Ho);/**
|
|
178
|
+
* @license lucide-react v0.562.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const zo=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],ye=E("rows-3",zo);/**
|
|
183
|
+
* @license lucide-react v0.562.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const Wo=[["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M18 5v16",key:"1ethyx"}],["path",{d:"m4 6 7.106-3.79a2 2 0 0 1 1.788 0L20 6",key:"zywc2d"}],["path",{d:"m6 11-3.52 2.147a1 1 0 0 0-.48.854V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a1 1 0 0 0-.48-.853L18 11",key:"1d4ql0"}],["path",{d:"M6 5v16",key:"1sn0nx"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],qo=E("school",Wo);/**
|
|
188
|
+
* @license lucide-react v0.562.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const Uo=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ko=E("search",Uo);/**
|
|
193
|
+
* @license lucide-react v0.562.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const Yo=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],At=E("shield-alert",Yo);/**
|
|
198
|
+
* @license lucide-react v0.562.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const Go=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],$t=E("shield",Go);/**
|
|
203
|
+
* @license lucide-react v0.562.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/const Xo=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],Jn=E("siren",Xo);/**
|
|
208
|
+
* @license lucide-react v0.562.0 - ISC
|
|
209
|
+
*
|
|
210
|
+
* This source code is licensed under the ISC license.
|
|
211
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
+
*/const Qo=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],Zo=E("snowflake",Qo);/**
|
|
213
|
+
* @license lucide-react v0.562.0 - ISC
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the ISC license.
|
|
216
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
+
*/const Jo=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ei=E("sparkles",Jo);/**
|
|
218
|
+
* @license lucide-react v0.562.0 - ISC
|
|
219
|
+
*
|
|
220
|
+
* This source code is licensed under the ISC license.
|
|
221
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
+
*/const ti=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],Rt=E("thermometer",ti);/**
|
|
223
|
+
* @license lucide-react v0.562.0 - ISC
|
|
224
|
+
*
|
|
225
|
+
* This source code is licensed under the ISC license.
|
|
226
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
+
*/const ni=[["path",{d:"M21 4H3",key:"1hwok0"}],["path",{d:"M18 8H6",key:"41n648"}],["path",{d:"M19 12H9",key:"1g4lpz"}],["path",{d:"M16 16h-6",key:"1j5d54"}],["path",{d:"M11 20H9",key:"39obr8"}]],Ot=E("tornado",ni);/**
|
|
228
|
+
* @license lucide-react v0.562.0 - ISC
|
|
229
|
+
*
|
|
230
|
+
* This source code is licensed under the ISC license.
|
|
231
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
+
*/const ri=[["path",{d:"m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20",key:"she1j9"}],["path",{d:"M16 18h-5",key:"bq60fd"}],["path",{d:"M18 5a1 1 0 0 0-1 1v5.573",key:"1kv8ia"}],["path",{d:"M3 4h8.129a1 1 0 0 1 .99.863L13 11.246",key:"1q1ert"}],["path",{d:"M4 11V4",key:"9ft8pt"}],["path",{d:"M7 15h.01",key:"k5ht0j"}],["path",{d:"M8 10.1V4",key:"1jgyzo"}],["circle",{cx:"18",cy:"18",r:"2",key:"1emm8v"}],["circle",{cx:"7",cy:"15",r:"5",key:"ddtuc"}]],si=E("tractor",ri);/**
|
|
233
|
+
* @license lucide-react v0.562.0 - ISC
|
|
234
|
+
*
|
|
235
|
+
* This source code is licensed under the ISC license.
|
|
236
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
+
*/const ai=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],oi=E("trash-2",ai);/**
|
|
238
|
+
* @license lucide-react v0.562.0 - ISC
|
|
239
|
+
*
|
|
240
|
+
* This source code is licensed under the ISC license.
|
|
241
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
+
*/const ii=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],ci=E("tree-palm",ii);/**
|
|
243
|
+
* @license lucide-react v0.562.0 - ISC
|
|
244
|
+
*
|
|
245
|
+
* This source code is licensed under the ISC license.
|
|
246
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
247
|
+
*/const li=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],xe=E("tree-pine",li);/**
|
|
248
|
+
* @license lucide-react v0.562.0 - ISC
|
|
249
|
+
*
|
|
250
|
+
* This source code is licensed under the ISC license.
|
|
251
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
+
*/const di=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],er=E("truck",di);/**
|
|
253
|
+
* @license lucide-react v0.562.0 - ISC
|
|
254
|
+
*
|
|
255
|
+
* This source code is licensed under the ISC license.
|
|
256
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
257
|
+
*/const ui=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],Tt=E("users-round",ui);/**
|
|
258
|
+
* @license lucide-react v0.562.0 - ISC
|
|
259
|
+
*
|
|
260
|
+
* This source code is licensed under the ISC license.
|
|
261
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
262
|
+
*/const hi=[["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M9 19h6",key:"456am0"}],["circle",{cx:"12",cy:"9",r:"6",key:"1nw4tq"}]],fi=E("venus",hi);/**
|
|
263
|
+
* @license lucide-react v0.562.0 - ISC
|
|
264
|
+
*
|
|
265
|
+
* This source code is licensed under the ISC license.
|
|
266
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
267
|
+
*/const pi=[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]],tr=E("wind",pi);/**
|
|
268
|
+
* @license lucide-react v0.562.0 - ISC
|
|
269
|
+
*
|
|
270
|
+
* This source code is licensed under the ISC license.
|
|
271
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
272
|
+
*/const mi=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Ft=E("wrench",mi);/**
|
|
273
|
+
* @license lucide-react v0.562.0 - ISC
|
|
274
|
+
*
|
|
275
|
+
* This source code is licensed under the ISC license.
|
|
276
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
277
|
+
*/const vi=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],gi=E("zap",vi);var yi=Object.defineProperty,xi=(e,t)=>yi(e,"name",{value:t,configurable:!0});function je(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>((...r)=>t.current?.(...r)),[])}xi(je,"useCallbackRef");var bi=Object.defineProperty,ki=(e,t)=>bi(e,"name",{value:t,configurable:!0});function pn(e){const[t,r]=g.useState(void 0);return ze(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,c;if("borderBoxSize"in o){const l=o.borderBoxSize,f=Array.isArray(l)?l[0]:l;i=f.inlineSize,c=f.blockSize}else i=e.offsetWidth,c=e.offsetHeight;r({width:i,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else r(void 0)},[e]),t}ki(pn,"useSize");var wi=Object.defineProperty,I=(e,t)=>wi(e,"name",{value:t,configurable:!0}),en="dismissableLayer.update",ji="dismissableLayer.pointerDownOutside",_i="dismissableLayer.focusOutside",nr,Yr=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Mi=g.forwardRef(I(function(t,r){const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:l,onDismiss:f,...v}=t,d=g.useContext(Yr),[h,u]=g.useState(null),p=h?.ownerDocument??globalThis?.document,[,m]=g.useState({}),y=he(r,u),x=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),k=b?x.indexOf(b):-1,w=h?x.indexOf(h):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,_=w>=k,M=g.useRef(!1),C=Gr(P=>{i?.(P),l?.(P),P.defaultPrevented||f?.()},{ownerDocument:p,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:M,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:g.useCallback(P=>{if(!(P instanceof Node))return!1;const O=[...d.branches].some(R=>R.contains(P));return _&&!O},[d.branches,_])}),N=Xr(P=>{if(a&&M.current)return;const O=P.target;[...d.branches].some(z=>z.contains(O))||(c?.(P),l?.(P),P.defaultPrevented||f?.())},p),A=h?w===x.length-1:!1,T=je(P=>{P.key==="Escape"&&(o?.(P),!P.defaultPrevented&&f&&(P.preventDefault(),f()))});return g.useEffect(()=>{if(A)return p.addEventListener("keydown",T,{capture:!0}),()=>p.removeEventListener("keydown",T,{capture:!0})},[p,A,T]),g.useEffect(()=>{if(h)return s&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(nr=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),tn(),()=>{s&&(d.layersWithOutsidePointerEventsDisabled.delete(h),d.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=nr))}},[h,p,s,d]),g.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),tn())},[h,d]),g.useEffect(()=>{const P=I(()=>m({}),"handleUpdate");return document.addEventListener(en,P),()=>document.removeEventListener(en,P)},[]),n.jsx(ae.div,{...v,ref:y,style:{pointerEvents:j?_?"auto":"none":void 0,...t.style},onFocusCapture:X(t.onFocusCapture,N.onFocusCapture),onBlurCapture:X(t.onBlurCapture,N.onBlurCapture),onPointerDownCapture:X(t.onPointerDownCapture,C.onPointerDownCapture)})},"DismissableLayer"));function Ci(){const e=g.useContext(Yr),[t,r]=g.useState(null);return g.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}I(Ci,"useDismissableLayerSurface");var Si=I(()=>!0,"IS_TRUE");function Gr(e,t){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:o,shouldHandlePointerDownOutside:i=Si}=t,c=je(e),l=g.useRef(!1),f=g.useRef(!1),v=g.useRef(new Map),d=g.useRef(()=>{});return g.useEffect(()=>{function h(){f.current=!1,a.current=!1,v.current.clear()}I(h,"resetOutsideInteraction");function u(){return Array.from(v.current.values()).some(Boolean)}I(u,"isOutsideInteractionIntercepted");function p(k){if(!f.current)return;const w=k.target;w instanceof Node&&[...o].some(_=>_.contains(w))||v.current.set(k.type,!0),k.type==="click"&&window.setTimeout(()=>{f.current&&d.current()},0)}I(p,"handleInteractionCapture");function m(k){f.current&&v.current.set(k.type,!1)}I(m,"handleInteractionBubble");const y=I(k=>{if(k.target&&!l.current){let w=function(){r.removeEventListener("click",d.current);const _=u();h(),_||mn(ji,c,j,{discrete:!0})};if(I(w,"handleAndDispatchPointerDownOutsideEvent"),!i(k.target)){r.removeEventListener("click",d.current),h(),l.current=!1;return}const j={originalEvent:k};f.current=!0,a.current=s&&k.button===0,v.current.clear(),!s||k.button!==0?w():(r.removeEventListener("click",d.current),d.current=w,r.addEventListener("click",d.current,{once:!0}))}else r.removeEventListener("click",d.current),h();l.current=!1},"handlePointerDown"),x=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const k of x)r.addEventListener(k,p,!0),r.addEventListener(k,m);const b=window.setTimeout(()=>{r.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(b),r.removeEventListener("pointerdown",y),r.removeEventListener("click",d.current);for(const k of x)r.removeEventListener(k,p,!0),r.removeEventListener(k,m)}},[r,c,s,a,o,i]),{onPointerDownCapture:I(()=>l.current=!0,"onPointerDownCapture")}}I(Gr,"usePointerDownOutside");function Xr(e,t=globalThis?.document){const r=je(e),s=g.useRef(!1);return g.useEffect(()=>{const a=I(o=>{o.target&&!s.current&&mn(_i,r,{originalEvent:o},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:I(()=>s.current=!0,"onFocusCapture"),onBlurCapture:I(()=>s.current=!1,"onBlurCapture")}}I(Xr,"useFocusOutside");function tn(){const e=new CustomEvent(en);document.dispatchEvent(e)}I(tn,"dispatchUpdate");function mn(e,t,r,{discrete:s}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),s?Ga(a,o):a.dispatchEvent(o)}I(mn,"handleAndDispatchCustomEvent");var Ei=Object.defineProperty,H=(e,t)=>Ei(e,"name",{value:t,configurable:!0}),Dt="focusScope.autoFocusOnMount",Lt="focusScope.autoFocusOnUnmount",rr={bubbles:!1,cancelable:!0},Ni=g.forwardRef(H(function(t,r){const{loop:s=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=t,[l,f]=g.useState(null),v=je(o),d=je(i),h=g.useRef(null),u=he(r,f),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(a){let y=function(w){if(p.paused||!l)return;const j=w.target;l.contains(j)?h.current=j:J(h.current,{select:!0})},x=function(w){if(p.paused||!l)return;const j=w.relatedTarget;j!==null&&(l.contains(j)||J(h.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&J(l)};H(y,"handleFocusIn"),H(x,"handleFocusOut"),H(b,"handleMutations"),document.addEventListener("focusin",y),document.addEventListener("focusout",x);const k=new MutationObserver(b);return l&&k.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),k.disconnect()}}},[a,l,p.paused]),g.useEffect(()=>{if(l){sr.add(p);const y=document.activeElement;if(!l.contains(y)){const b=new CustomEvent(Dt,rr);l.addEventListener(Dt,v),l.dispatchEvent(b),b.defaultPrevented||(Qr(ns(vn(l)),{select:!0}),document.activeElement===y&&J(l))}return()=>{l.removeEventListener(Dt,v),setTimeout(()=>{const b=new CustomEvent(Lt,rr);l.addEventListener(Lt,d),l.dispatchEvent(b),b.defaultPrevented||J(y??document.body,{select:!0}),l.removeEventListener(Lt,d),sr.remove(p)},0)}}},[l,v,d,p]);const m=g.useCallback(y=>{if(!s&&!a||p.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,b=document.activeElement;if(x&&b){const k=y.currentTarget,[w,j]=Zr(k);w&&j?!y.shiftKey&&b===j?(y.preventDefault(),s&&J(w,{select:!0})):y.shiftKey&&b===w&&(y.preventDefault(),s&&J(j,{select:!0})):b===k&&y.preventDefault()}},[s,a,p.paused]);return n.jsx(ae.div,{tabIndex:-1,...c,ref:u,onKeyDown:m})},"FocusScope"));function Qr(e,{select:t=!1}={}){const r=document.activeElement;for(const s of e)if(J(s,{select:t}),document.activeElement!==r)return}H(Qr,"focusFirst");function Zr(e){const t=vn(e),r=nn(t,e),s=nn(t.reverse(),e);return[r,s]}H(Zr,"getTabbableEdges");function vn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:H(s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}H(vn,"getTabbableCandidates");function nn(e,t){const r=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const s of e)if(!(r?!s.checkVisibility({checkVisibilityCSS:!0}):Jr(s,{upTo:t})))return s}H(nn,"findVisible");function Jr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}H(Jr,"isHidden");function es(e){return e instanceof HTMLInputElement&&"select"in e}H(es,"isSelectableInput");function J(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&es(e)&&t&&e.select()}}H(J,"focus");var sr=ts();function ts(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=rn(e,t),e.unshift(t)},remove(t){e=rn(e,t),e[0]?.resume()}}}H(ts,"createFocusScopesStack");function rn(e,t){const r=[...e],s=r.indexOf(t);return s!==-1&&r.splice(s,1),r}H(rn,"arrayRemove");function ns(e){return e.filter(t=>t.tagName!=="A")}H(ns,"removeLinks");var Pi=Object.defineProperty,Ai=(e,t)=>Pi(e,"name",{value:t,configurable:!0}),$i=g.forwardRef(Ai(function(t,r){const{container:s,...a}=t,[o,i]=g.useState(!1);ze(()=>i(!0),[]);const c=s||o&&globalThis?.document?.body;return c?Hr.createPortal(n.jsx(ae.div,{...a,ref:r}),c):null},"Portal")),Ri=Object.defineProperty,gn=(e,t)=>Ri(e,"name",{value:t,configurable:!0}),tt=0,Se=null;function Oi(e){return yn(),e.children}gn(Oi,"FocusGuards");function yn(){g.useEffect(()=>{Se||(Se={start:sn(),end:sn()});const{start:e,end:t}=Se;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),tt++,()=>{tt===1&&(Se?.start.remove(),Se?.end.remove(),Se=null),tt=Math.max(0,tt-1)}},[])}gn(yn,"useFocusGuards");function sn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}gn(sn,"createFocusGuard");var Y=function(){return Y=Object.assign||function(t){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Y.apply(this,arguments)};function rs(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(r[s[a]]=e[s[a]]);return r}function Ti(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,o;s<a;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))}var lt="right-scroll-bar-position",dt="width-before-scroll-bar",Fi="with-scroll-bars-hidden",Di="--removed-body-scroll-bar-size";function It(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Li(e,t){var r=g.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(s){var a=r.value;a!==s&&(r.value=s,r.callback(s,a))}}}})[0];return r.callback=t,r.facade}var Ii=typeof window<"u"?g.useLayoutEffect:g.useEffect,ar=new WeakMap;function Vi(e,t){var r=Li(null,function(s){return e.forEach(function(a){return It(a,s)})});return Ii(function(){var s=ar.get(r);if(s){var a=new Set(s),o=new Set(e),i=r.current;a.forEach(function(c){o.has(c)||It(c,null)}),o.forEach(function(c){a.has(c)||It(c,i)})}ar.set(r,e)},[e]),r}function Bi(e){return e}function Hi(e,t){t===void 0&&(t=Bi);var r=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,s);return r.push(i),function(){r=r.filter(function(c){return c!==i})}},assignSyncMedium:function(o){for(s=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(c){return o(c)},filter:function(){return r}}},assignMedium:function(o){s=!0;var i=[];if(r.length){var c=r;r=[],c.forEach(o),i=r}var l=function(){var v=i;i=[],v.forEach(o)},f=function(){return Promise.resolve().then(l)};f(),r={push:function(v){i.push(v),f()},filter:function(v){return i=i.filter(v),r}}}};return a}function zi(e){e===void 0&&(e={});var t=Hi(null);return t.options=Y({async:!0,ssr:!1},e),t}var ss=function(e){var t=e.sideCar,r=rs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,Y({},r))};ss.isSideCarExport=!0;function Wi(e,t){return e.useMedium(t),ss}var as=zi(),Vt=function(){},yt=g.forwardRef(function(e,t){var r=g.useRef(null),s=g.useState({onScrollCapture:Vt,onWheelCapture:Vt,onTouchMoveCapture:Vt}),a=s[0],o=s[1],i=e.forwardProps,c=e.children,l=e.className,f=e.removeScrollBar,v=e.enabled,d=e.shards,h=e.sideCar,u=e.noRelative,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,k=e.gapMode,w=rs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=h,_=Vi([r,t]),M=Y(Y({},w),a);return g.createElement(g.Fragment,null,v&&g.createElement(j,{sideCar:as,removeScrollBar:f,shards:d,noRelative:u,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!y,lockRef:r,gapMode:k}),i?g.cloneElement(g.Children.only(c),Y(Y({},M),{ref:_})):g.createElement(b,Y({},M,{className:l,ref:_}),c))});yt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yt.classNames={fullWidth:dt,zeroRight:lt};var qi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ui(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qi();return t&&e.setAttribute("nonce",t),e}function Ki(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gi=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ui())&&(Ki(t,r),Yi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xi=function(){var e=Gi();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},os=function(){var e=Xi(),t=function(r){var s=r.styles,a=r.dynamic;return e(s,a),null};return t},Qi={left:0,top:0,right:0,gap:0},Bt=function(e){return parseInt(e||"",10)||0},Zi=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Bt(r),Bt(s),Bt(a)]},Ji=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qi;var t=Zi(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-r+t[2]-t[0])}},ec=os(),Ae="data-scroll-locked",tc=function(e,t,r,s){var a=e.left,o=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
278
|
+
.`.concat(Fi,` {
|
|
279
|
+
overflow: hidden `).concat(s,`;
|
|
280
|
+
padding-right: `).concat(c,"px ").concat(s,`;
|
|
281
|
+
}
|
|
282
|
+
body[`).concat(Ae,`] {
|
|
283
|
+
overflow: hidden `).concat(s,`;
|
|
284
|
+
overscroll-behavior: contain;
|
|
285
|
+
`).concat([t&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
286
|
+
padding-left: `.concat(a,`px;
|
|
287
|
+
padding-top: `).concat(o,`px;
|
|
288
|
+
padding-right: `).concat(i,`px;
|
|
289
|
+
margin-left:0;
|
|
290
|
+
margin-top:0;
|
|
291
|
+
margin-right: `).concat(c,"px ").concat(s,`;
|
|
292
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.`).concat(lt,` {
|
|
296
|
+
right: `).concat(c,"px ").concat(s,`;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.`).concat(dt,` {
|
|
300
|
+
margin-right: `).concat(c,"px ").concat(s,`;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.`).concat(lt," .").concat(lt,` {
|
|
304
|
+
right: 0 `).concat(s,`;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.`).concat(dt," .").concat(dt,` {
|
|
308
|
+
margin-right: 0 `).concat(s,`;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
body[`).concat(Ae,`] {
|
|
312
|
+
`).concat(Di,": ").concat(c,`px;
|
|
313
|
+
}
|
|
314
|
+
`)},or=function(){var e=parseInt(document.body.getAttribute(Ae)||"0",10);return isFinite(e)?e:0},nc=function(){g.useEffect(function(){return document.body.setAttribute(Ae,(or()+1).toString()),function(){var e=or()-1;e<=0?document.body.removeAttribute(Ae):document.body.setAttribute(Ae,e.toString())}},[])},rc=function(e){var t=e.noRelative,r=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;nc();var o=g.useMemo(function(){return Ji(a)},[a]);return g.createElement(ec,{styles:tc(o,!t,a,r?"":"!important")})},an=!1;if(typeof window<"u")try{var nt=Object.defineProperty({},"passive",{get:function(){return an=!0,!0}});window.addEventListener("test",nt,nt),window.removeEventListener("test",nt,nt)}catch{an=!1}var Ee=an?{passive:!1}:!1,sc=function(e){return e.tagName==="TEXTAREA"},is=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!sc(e)&&r[t]==="visible")},ac=function(e){return is(e,"overflowY")},oc=function(e){return is(e,"overflowX")},ir=function(e,t){var r=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=cs(e,s);if(a){var o=ls(e,s),i=o[1],c=o[2];if(i>c)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},ic=function(e){var t=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[t,r,s]},cc=function(e){var t=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[t,r,s]},cs=function(e,t){return e==="v"?ac(t):oc(t)},ls=function(e,t){return e==="v"?ic(t):cc(t)},lc=function(e,t){return e==="h"&&t==="rtl"?-1:1},dc=function(e,t,r,s,a){var o=lc(e,window.getComputedStyle(t).direction),i=o*s,c=r.target,l=t.contains(c),f=!1,v=i>0,d=0,h=0;do{if(!c)break;var u=ls(e,c),p=u[0],m=u[1],y=u[2],x=m-y-o*p;(p||x)&&cs(e,c)&&(d+=x,h+=p);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(v&&Math.abs(d)<1||!v&&Math.abs(h)<1)&&(f=!0),f},rt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cr=function(e){return[e.deltaX,e.deltaY]},lr=function(e){return e&&"current"in e?e.current:e},uc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hc=function(e){return`
|
|
315
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
316
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
317
|
+
`)},fc=0,Ne=[];function pc(e){var t=g.useRef([]),r=g.useRef([0,0]),s=g.useRef(),a=g.useState(fc++)[0],o=g.useState(os)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var m=Ti([e.lockRef.current],(e.shards||[]).map(lr),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=g.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var x=rt(m),b=r.current,k="deltaX"in m?m.deltaX:b[0]-x[0],w="deltaY"in m?m.deltaY:b[1]-x[1],j,_=m.target,M=Math.abs(k)>Math.abs(w)?"h":"v";if("touches"in m&&M==="h"&&_.type==="range")return!1;var C=window.getSelection(),N=C&&C.anchorNode,A=N?N===_||N.contains(_):!1;if(A)return!1;var T=ir(M,_);if(!T)return!0;if(T?j=M:(j=M==="v"?"h":"v",T=ir(M,_)),!T)return!1;if(!s.current&&"changedTouches"in m&&(k||w)&&(s.current=j),!j)return!0;var P=s.current||j;return dc(P,y,m,P==="h"?k:w)},[]),l=g.useCallback(function(m){var y=m;if(!(!Ne.length||Ne[Ne.length-1]!==o)){var x="deltaY"in y?cr(y):rt(y),b=t.current.filter(function(j){return j.name===y.type&&(j.target===y.target||y.target===j.shadowParent)&&uc(j.delta,x)})[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var k=(i.current.shards||[]).map(lr).filter(Boolean).filter(function(j){return j.contains(y.target)}),w=k.length>0?c(y,k[0]):!i.current.noIsolation;w&&y.cancelable&&y.preventDefault()}}},[]),f=g.useCallback(function(m,y,x,b){var k={name:m,delta:y,target:x,should:b,shadowParent:mc(x)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(w){return w!==k})},1)},[]),v=g.useCallback(function(m){r.current=rt(m),s.current=void 0},[]),d=g.useCallback(function(m){f(m.type,cr(m),m.target,c(m,e.lockRef.current))},[]),h=g.useCallback(function(m){f(m.type,rt(m),m.target,c(m,e.lockRef.current))},[]);g.useEffect(function(){return Ne.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ee),document.addEventListener("touchmove",l,Ee),document.addEventListener("touchstart",v,Ee),function(){Ne=Ne.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,Ee),document.removeEventListener("touchmove",l,Ee),document.removeEventListener("touchstart",v,Ee)}},[]);var u=e.removeScrollBar,p=e.inert;return g.createElement(g.Fragment,null,p?g.createElement(o,{styles:hc(a)}):null,u?g.createElement(rc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vc=Wi(as,pc);var ds=g.forwardRef(function(e,t){return g.createElement(yt,Y({},e,{ref:t,sideCar:vc}))});ds.classNames=yt.classNames;var gc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pe=new WeakMap,st=new WeakMap,at={},Ht=0,us=function(e){return e&&(e.host||us(e.parentNode))},yc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var s=us(r);return s&&e.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},xc=function(e,t,r,s){var a=yc(t,Array.isArray(e)?e:[e]);at[r]||(at[r]=new WeakMap);var o=at[r],i=[],c=new Set,l=new Set(a),f=function(d){!d||c.has(d)||(c.add(d),f(d.parentNode))};a.forEach(f);var v=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(c.has(h))v(h);else try{var u=h.getAttribute(s),p=u!==null&&u!=="false",m=(Pe.get(h)||0)+1,y=(o.get(h)||0)+1;Pe.set(h,m),o.set(h,y),i.push(h),m===1&&p&&st.set(h,!0),y===1&&h.setAttribute(r,"true"),p||h.setAttribute(s,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return v(t),c.clear(),Ht++,function(){i.forEach(function(d){var h=Pe.get(d)-1,u=o.get(d)-1;Pe.set(d,h),o.set(d,u),h||(st.has(d)||d.removeAttribute(s),st.delete(d)),u||d.removeAttribute(r)}),Ht--,Ht||(Pe=new WeakMap,Pe=new WeakMap,st=new WeakMap,at={})}},bc=function(e,t,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=gc(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),xc(s,a,r,"aria-hidden")):function(){return null}};const kc=["top","right","bottom","left"],de=Math.min,ee=Math.max,ft=Math.round,ot=Math.floor,te=e=>({x:e,y:e}),wc={left:"right",right:"left",bottom:"top",top:"bottom"};function hs(e,t,r){return ee(e,de(t,r))}function re(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function Re(e){return e.split("-")[1]}function xn(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}function G(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function kn(e){return xn(G(e))}function jc(e,t,r){r===void 0&&(r=!1);const s=Re(e),a=kn(e),o=bn(a);let i=a==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=pt(i)),[i,pt(i)]}function _c(e){const t=pt(e);return[on(e),t,on(t)]}function on(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const dr=["left","right"],ur=["right","left"],Mc=["top","bottom"],Cc=["bottom","top"];function Sc(e,t,r){switch(e){case"top":case"bottom":return r?t?ur:dr:t?dr:ur;case"left":case"right":return t?Mc:Cc;default:return[]}}function Ec(e,t,r,s){const a=Re(e);let o=Sc(ue(e),r==="start",s);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(on)))),o}function pt(e){const t=ue(e);return wc[t]+e.slice(t.length)}function Nc(e){var t,r,s,a;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(s=e.bottom)!=null?s:0,left:(a=e.left)!=null?a:0}}function fs(e){return typeof e!="number"?Nc(e):{top:e,right:e,bottom:e,left:e}}function mt(e){const{x:t,y:r,width:s,height:a}=e;return{width:s,height:a,top:r,left:t,right:t+s,bottom:r+a,x:t,y:r}}function hr(e,t,r){let{reference:s,floating:a}=e;const o=G(t),i=kn(t),c=bn(i),l=ue(t),f=o==="y",v=s.x+s.width/2-a.width/2,d=s.y+s.height/2-a.height/2,h=s[c]/2-a[c]/2;let u;switch(l){case"top":u={x:v,y:s.y-a.height};break;case"bottom":u={x:v,y:s.y+s.height};break;case"right":u={x:s.x+s.width,y:d};break;case"left":u={x:s.x-a.width,y:d};break;default:u={x:s.x,y:s.y}}const p=Re(t);return p&&(u[i]+=h*(p==="end"?1:-1)*(r&&f?-1:1)),u}async function Pc(e,t){var r;t===void 0&&(t={});const{x:s,y:a,platform:o,rects:i,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:v="viewport",elementContext:d="floating",altBoundary:h=!1,padding:u=0}=re(t,e),p=fs(u),y=c[h?d==="floating"?"reference":"floating":d],x=mt(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(y)))==null||r?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:f,rootBoundary:v,strategy:l})),b=d==="floating"?{x:s,y:a,width:i.floating.width,height:i.floating.height}:i.reference,k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),w=await(o.isElement==null?void 0:o.isElement(k))&&await(o.getScale==null?void 0:o.getScale(k))||{x:1,y:1},j=mt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:k,strategy:l}):b);return{top:(x.top-j.top+p.top)/w.y,bottom:(j.bottom-x.bottom+p.bottom)/w.y,left:(x.left-j.left+p.left)/w.x,right:(j.right-x.right+p.right)/w.x}}const Ac=50,$c=async(e,t,r)=>{const{placement:s="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,c=i.detectOverflow?i:{...i,detectOverflow:Pc},l=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:v,y:d}=hr(f,s,l),h=s,u=0;const p={};for(let m=0;m<o.length;m++){const y=o[m];if(!y)continue;const{name:x,fn:b}=y,{x:k,y:w,data:j,reset:_}=await b({x:v,y:d,initialPlacement:s,placement:h,strategy:a,middlewareData:p,rects:f,platform:c,elements:{reference:e,floating:t}});v=k??v,d=w??d,p[x]={...p[x],...j},_&&u<Ac&&(u++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(f=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):_.rects),{x:v,y:d}=hr(f,h,l)),m=-1)}return{x:v,y:d,placement:h,strategy:a,middlewareData:p}},Rc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:s,placement:a,rects:o,platform:i,elements:c,middlewareData:l}=t,{element:f,padding:v=0}=re(e,t)||{};if(f==null)return{};const d=fs(v),h={x:r,y:s},u=kn(a),p=bn(u),m=await i.getDimensions(f),y=u==="y",x=y?"top":"left",b=y?"bottom":"right",k=y?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[u]-h[u]-o.floating[p],j=h[u]-o.reference[u],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let M=_?_[k]:0;(!M||!await(i.isElement==null?void 0:i.isElement(_)))&&(M=c.floating[k]||o.floating[p]);const C=w/2-j/2,N=M/2-m[p]/2-1,A=de(d[x],N),T=de(d[b],N),P=M-m[p]-T,O=M/2-m[p]/2+C,R=hs(A,O,P),z=!l.arrow&&Re(a)!=null&&O!==R&&o.reference[p]/2-(O<A?A:T)-m[p]/2<0,D=z?O<A?O-A:O-P:0;return{[u]:h[u]+D,data:{[u]:R,centerOffset:O-R-D,...z&&{alignmentOffset:D}},reset:z}}}),Oc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,s;const{placement:a,middlewareData:o,rects:i,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:v=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=re(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const x=ue(a),b=G(c),k=ue(c)===c,w=await(l.isRTL==null?void 0:l.isRTL(f.floating)),j=h||(k||!m?[pt(c)]:_c(c)),_=p!=="none";!h&&_&&j.push(...Ec(c,m,p,w));const M=[c,...j],C=await l.detectOverflow(t,y),N=[];let A=((s=o.flip)==null?void 0:s.overflows)||[];if(v&&N.push(C[x]),d){const R=jc(a,i,w);N.push(C[R[0]],C[R[1]])}if(A=[...A,{placement:a,overflows:N}],!N.every(R=>R<=0)){var T,P;const R=(((T=o.flip)==null?void 0:T.index)||0)+1,z=M[R];if(z&&(!(d==="alignment"?b!==G(z):!1)||A.every($=>G($.placement)===b?$.overflows[0]>0:!0)))return{data:{index:R,overflows:A},reset:{placement:z}};let D=(P=A.filter(W=>W.overflows[0]<=0).sort((W,$)=>W.overflows[1]-$.overflows[1])[0])==null?void 0:P.placement;if(!D)switch(u){case"bestFit":{var O;const W=(O=A.filter($=>{if(_){const L=G($.placement);return L===b||L==="y"}return!0}).map($=>[$.placement,$.overflows.filter(L=>L>0).reduce((L,U)=>L+U,0)]).sort(($,L)=>$[1]-L[1])[0])==null?void 0:O[0];W&&(D=W);break}case"initialPlacement":D=c;break}if(a!==D)return{reset:{placement:D}}}return{}}}};function fr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pr(e){return kc.some(t=>e[t]>=0)}const Tc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:s}=t,{strategy:a="referenceHidden",...o}=re(e,t);switch(a){case"referenceHidden":{const i=await s.detectOverflow(t,{...o,elementContext:"reference"}),c=fr(i,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:pr(c)}}}case"escaped":{const i=await s.detectOverflow(t,{...o,altBoundary:!0}),c=fr(i,r.floating);return{data:{escapedOffsets:c,escaped:pr(c)}}}default:return{}}}}},ps=new Set(["left","top"]);async function Fc(e,t){const{placement:r,platform:s,elements:a}=e,o=await(s.isRTL==null?void 0:s.isRTL(a.floating)),i=ue(r),c=Re(r),l=G(r)==="y",f=ps.has(i)?-1:1,v=o&&l?-1:1,d=re(t,e);let{mainAxis:h,crossAxis:u,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof p=="number"&&(u=c==="end"?p*-1:p),l?{x:u*v,y:h*f}:{x:h*f,y:u*v}}const Dc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,s;const{x:a,y:o,placement:i,middlewareData:c}=t,l=await Fc(t,e);return i===((r=c.offset)==null?void 0:r.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},Lc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:s,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:b=>{let{x:k,y:w}=b;return{x:k,y:w}}},...f}=re(e,t),v={x:r,y:s},d=await o.detectOverflow(t,f),h=G(a),u=xn(h);let p=v[u],m=v[h];const y=(b,k)=>hs(k+d[b==="y"?"top":"left"],k,k-d[b==="y"?"bottom":"right"]);i&&(p=y(u,p)),c&&(m=y(h,m));const x=l.fn({...t,[u]:p,[h]:m});return{...x,data:{x:x.x-r,y:x.y-s,enabled:{[u]:i,[h]:c}}}}}},Ic=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,s;const{x:a,y:o,placement:i,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:v=!0,crossAxis:d=!0}=re(e,t),h={x:a,y:o},u=G(i),p=xn(u);let m=h[p],y=h[u];const x=re(f,t),b=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:(r=x.mainAxis)!=null?r:0,crossAxis:(s=x.crossAxis)!=null?s:0};if(v){const j=p==="y"?"height":"width",_=c.reference[p]-c.floating[j]+b.mainAxis,M=c.reference[p]+c.reference[j]-b.mainAxis;m<_?m=_:m>M&&(m=M)}if(d){var k,w;const j=p==="y"?"width":"height",_=ps.has(ue(i)),M=c.reference[u]-c.floating[j]+(_&&((k=l.offset)==null?void 0:k[u])||0)+(_?0:b.crossAxis),C=c.reference[u]+c.reference[j]+(_?0:((w=l.offset)==null?void 0:w[u])||0)-(_?b.crossAxis:0);y<M?y=M:y>C&&(y=C)}return{[p]:m,[u]:y}}}},Vc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:s,platform:a,elements:o}=t,{apply:i=()=>{},...c}=re(e,t),l=await a.detectOverflow(t,c),f=ue(r),v=Re(r),d=G(r)==="y",{width:h,height:u}=s.floating;let p,m;f==="top"||f==="bottom"?(p=f,m=v===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(m=f,p=v==="end"?"top":"bottom");const y=u-l.top-l.bottom,x=h-l.left-l.right,b=de(u-l[p],y),k=de(h-l[m],x),w=t.middlewareData.shift,j=!w;let _=b,M=k;w!=null&&w.enabled.x&&(M=x),w!=null&&w.enabled.y&&(_=y),j&&!v&&(d?M=h-2*ee(l.left,l.right):_=u-2*ee(l.top,l.bottom)),await i({...t,availableWidth:M,availableHeight:_});const C=await a.getDimensions(o.floating);return h!==C.width||u!==C.height?{reset:{rects:!0}}:{}}}};function xt(){return typeof window<"u"}function Oe(e){return ms(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oe(e){var t;return(t=(ms(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ms(e){return xt()?e instanceof Node||e instanceof q(e).Node:!1}function Q(e){return xt()?e instanceof Element||e instanceof q(e).Element:!1}function fe(e){return xt()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function mr(e){return!xt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function bt(e){const{overflow:t,overflowX:r,overflowY:s,display:a}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+r)&&a!=="inline"&&a!=="contents"}function Bc(e){return/^(table|td|th)$/.test(Oe(e))}function kt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Hc=/transform|translate|scale|rotate|perspective|filter/,zc=/paint|layout|strict|content/,be=e=>!!e&&e!=="none";let zt;function wn(e){const t=Q(e)?Z(e):e;return be(t.transform)||be(t.translate)||be(t.scale)||be(t.rotate)||be(t.perspective)||!jn()&&(be(t.backdropFilter)||be(t.filter))||Hc.test(t.willChange||"")||zc.test(t.contain||"")}function Wc(e){let t=_e(e);for(;fe(t)&&!We(t);){if(wn(t))return t;if(kt(t))return null;t=_e(t)}return null}function jn(){return zt==null&&(zt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zt}function We(e){return/^(html|body|#document)$/.test(Oe(e))}function Z(e){return q(e).getComputedStyle(e)}function wt(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(Oe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mr(e)&&e.host||oe(e);return mr(t)?t.host:t}function vs(e){const t=_e(e);return We(t)?(e.ownerDocument||e).body:fe(t)&&bt(t)?t:vs(t)}function qe(e,t,r){var s;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=vs(e),o=a===((s=e.ownerDocument)==null?void 0:s.body),i=q(a);if(o){const c=cn(i);return t.concat(i,i.visualViewport||[],bt(a)?a:[],c&&r?qe(c):[])}else return t.concat(a,qe(a,[],r))}function cn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gs(e){const t=Z(e);let r=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=fe(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:s,c=ft(r)!==o||ft(s)!==i;return c&&(r=o,s=i),{width:r,height:s,$:c}}function _n(e){return Q(e)?e:e.contextElement}function $e(e){const t=_n(e);if(!fe(t))return te(1);const r=t.getBoundingClientRect(),{width:s,height:a,$:o}=gs(t);let i=(o?ft(r.width):r.width)/s,c=(o?ft(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const qc=te(0);function ys(e){const t=q(e);return!jn()||!t.visualViewport?qc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===q(e)}function Me(e,t,r,s){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),o=_n(e);let i=te(1);t&&(s?Q(s)&&(i=$e(s)):i=$e(e));const c=Uc(o,r,s)?ys(o):te(0);let l=(a.left+c.x)/i.x,f=(a.top+c.y)/i.y,v=a.width/i.x,d=a.height/i.y;if(o&&s){const h=q(o),u=Q(s)?q(s):s;let p=h,m=cn(p);for(;m&&u!==p;){const y=$e(m),x=m.getBoundingClientRect(),b=Z(m),k=x.left+(m.clientLeft+parseFloat(b.paddingLeft))*y.x,w=x.top+(m.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,f*=y.y,v*=y.x,d*=y.y,l+=k,f+=w,p=q(m),m=cn(p)}}return mt({width:v,height:d,x:l,y:f})}function jt(e,t){const r=wt(e).scrollLeft;return t?t.left+r:Me(oe(e)).left+r}function xs(e,t){const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-jt(e,r),a=r.top+t.scrollTop;return{x:s,y:a}}function Kc(e){let{elements:t,rect:r,offsetParent:s,strategy:a}=e;const o=a==="fixed",i=oe(s),c=t?kt(t.floating):!1;if(s===i||c&&o)return r;let l={scrollLeft:0,scrollTop:0},f=te(1);const v=te(0),d=fe(s);if((d||!o)&&((Oe(s)!=="body"||bt(i))&&(l=wt(s)),d)){const u=Me(s);f=$e(s),v.x=u.x+s.clientLeft,v.y=u.y+s.clientTop}const h=i&&!d&&!o?xs(i,l):te(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-l.scrollLeft*f.x+v.x+h.x,y:r.y*f.y-l.scrollTop*f.y+v.y+h.y}}function Yc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Gc(e){const t=wt(e),r=e.ownerDocument.body,s=ee(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=ee(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-t.scrollLeft+jt(e);const i=-t.scrollTop;return Z(r).direction==="rtl"&&(o+=ee(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}const Xc=25;function Qc(e,t,r){r===void 0&&(r="viewport");const s=r==="layoutViewport",a=q(e),o=oe(e),i=a.visualViewport;let c=o.clientWidth,l=o.clientHeight,f=0,v=0;if(i){const h=!jn()||t==="fixed";s?h||(f=-i.offsetLeft,v=-i.offsetTop):(c=i.width,l=i.height,h&&(f=i.offsetLeft,v=i.offsetTop))}if(jt(o)<=0){const h=o.ownerDocument,u=h.body,p=getComputedStyle(u),m=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(o.clientWidth-u.clientWidth-m),x=getComputedStyle(o).scrollbarGutter==="stable both-edges"?y/2:y;x<=Xc&&(c-=x)}return{width:c,height:l,x:f,y:v}}function Zc(e,t){const r=Me(e,!0,t==="fixed"),s=r.top+e.clientTop,a=r.left+e.clientLeft,o=$e(e),i=e.clientWidth*o.x,c=e.clientHeight*o.y,l=a*o.x,f=s*o.y;return{width:i,height:c,x:l,y:f}}function vr(e,t,r){let s;if(t==="viewport"||t==="layoutViewport")s=Qc(e,r,t);else if(t==="document")s=Gc(oe(e));else if(Q(t))s=Zc(t,r);else{const a=ys(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return mt(s)}function Jc(e,t){const r=t.get(e);if(r)return r;let s=qe(e,[],!1).filter(c=>Q(c)&&Oe(c)!=="body"),a=null;const o=Z(e).position==="fixed";let i=o?_e(e):e;for(;Q(i)&&!We(i);){const c=Z(i),l=wn(i),f=a?a.position:o?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&c.position==="static")?s=s.filter(d=>d!==i):a=c,i=_e(i)}return t.set(e,s),s}function el(e){let{element:t,boundary:r,rootBoundary:s,strategy:a}=e;const i=[...r==="clippingAncestors"?kt(t)?[]:Jc(t,this._c):[].concat(r),s],c=vr(t,i[0],a);let l=c.top,f=c.right,v=c.bottom,d=c.left;for(let h=1;h<i.length;h++){const u=vr(t,i[h],a);l=ee(u.top,l),f=de(u.right,f),v=de(u.bottom,v),d=ee(u.left,d)}return{width:f-d,height:v-l,x:d,y:l}}function tl(e){const{width:t,height:r}=gs(e);return{width:t,height:r}}function nl(e,t,r){const s=fe(t),a=oe(t),o=r==="fixed",i=Me(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const l=te(0);if((s||!o)&&((Oe(t)!=="body"||bt(a))&&(c=wt(t)),s)){const h=Me(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}!s&&a&&(l.x=jt(a));const f=a&&!s&&!o?xs(a,c):te(0),v=i.left+c.scrollLeft-l.x-f.x,d=i.top+c.scrollTop-l.y-f.y;return{x:v,y:d,width:i.width,height:i.height}}function Wt(e){return Z(e).position==="static"}function gr(e,t){if(!fe(e)||Z(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return oe(e)===r&&(r=r.ownerDocument.body),r}function bs(e,t){const r=q(e);if(kt(e))return r;if(!fe(e)){let a=_e(e);for(;a&&!We(a);){if(Q(a)&&!Wt(a))return a;a=_e(a)}return r}let s=gr(e,t);for(;s&&Bc(s)&&Wt(s);)s=gr(s,t);return s&&We(s)&&Wt(s)&&!wn(s)?r:s||Wc(e)||r}const rl=async function(e){const t=this.getOffsetParent||bs,r=this.getDimensions,s=await r(e.floating);return{reference:nl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function sl(e){return Z(e).direction==="rtl"}const al={convertOffsetParentRelativeRectToViewportRelativeRect:Kc,getDocumentElement:oe,getClippingRect:el,getOffsetParent:bs,getElementRects:rl,getClientRects:Yc,getDimensions:tl,getScale:$e,isElement:Q,isRTL:sl};function ks(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ol(e,t,r){let s=null,a;const o=oe(e);function i(){var v;clearTimeout(a),(v=s)==null||v.disconnect(),s=null}function c(v,d){v===void 0&&(v=!1),d===void 0&&(d=1),i();const h=e.getBoundingClientRect(),{left:u,top:p,width:m,height:y}=h;if(v||t(),!m||!y)return;const x=ot(p),b=ot(o.clientWidth-(u+m)),k=ot(o.clientHeight-(p+y)),w=ot(u),_={rootMargin:-x+"px "+-b+"px "+-k+"px "+-w+"px",threshold:ee(0,de(1,d))||1};let M=!0;function C(N){const A=N[0].intersectionRatio;if(!ks(h,e.getBoundingClientRect()))return c();if(A!==d){if(!M)return c();A?c(!1,A):a=setTimeout(()=>{c(!1,1e-7)},1e3)}M=!1}try{s=new IntersectionObserver(C,{..._,root:o.ownerDocument})}catch{s=new IntersectionObserver(C,_)}s.observe(e)}const l=q(e),f=()=>c(r);return l.addEventListener("resize",f),c(!0),()=>{l.removeEventListener("resize",f),i()}}function il(e,t,r,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,f=_n(e),v=a||o?[...f?qe(f):[],...t?qe(t):[]]:[];v.forEach(x=>{a&&x.addEventListener("scroll",r),o&&x.addEventListener("resize",r)});const d=f&&c?ol(f,r,o):null;let h=-1,u=null;i&&(u=new ResizeObserver(x=>{let[b]=x;b&&b.target===f&&u&&t&&(u.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=u)==null||k.observe(t)})),r()}),f&&!l&&u.observe(f),t&&u.observe(t));let p,m=l?Me(e):null;l&&y();function y(){const x=Me(e);m&&!ks(m,x)&&r(),m=x,p=requestAnimationFrame(y)}return r(),()=>{var x;v.forEach(b=>{a&&b.removeEventListener("scroll",r),o&&b.removeEventListener("resize",r)}),d?.(),(x=u)==null||x.disconnect(),u=null,l&&cancelAnimationFrame(p)}}const cl=Dc,ll=Lc,dl=Oc,ul=Vc,hl=Tc,yr=Rc,fl=Ic,pl=(e,t,r)=>{const s=new Map,a=r??{},o={...al,...a.platform,_c:s};return $c(e,t,{...a,platform:o})};var ml=typeof document<"u",vl=function(){},ut=ml?g.useLayoutEffect:vl;function vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(s=r;s--!==0;)if(!vt(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=r;s--!==0;){const o=a[s];if(!(o==="_owner"&&e.$$typeof)&&!vt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function ws(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xr(e,t){const r=ws(e);return Math.round(t*r)/r}function qt(e){const t=g.useRef(e);return ut(()=>{t.current=e}),t}function gl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:s=[],platform:a,elements:{reference:o,floating:i}={},transform:c=!0,whileElementsMounted:l,open:f}=e,[v,d]=g.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,u]=g.useState(s);vt(h,s)||u(s);const[p,m]=g.useState(null),[y,x]=g.useState(null),b=g.useCallback($=>{$!==_.current&&(_.current=$,m($))},[]),k=g.useCallback($=>{$!==M.current&&(M.current=$,x($))},[]),w=o||p,j=i||y,_=g.useRef(null),M=g.useRef(null),C=g.useRef(v),N=l!=null,A=qt(l),T=qt(a),P=qt(f),O=g.useCallback(()=>{if(!_.current||!M.current)return;const $={placement:t,strategy:r,middleware:h};T.current&&($.platform=T.current),pl(_.current,M.current,$).then(L=>{const U={...L,isPositioned:P.current!==!1};R.current&&!vt(C.current,U)&&(C.current=U,Hr.flushSync(()=>{d(U)}))})},[h,t,r,T,P]);ut(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d($=>({...$,isPositioned:!1})))},[f]);const R=g.useRef(!1);ut(()=>(R.current=!0,()=>{R.current=!1}),[]),ut(()=>{if(w&&(_.current=w),j&&(M.current=j),w&&j){if(A.current)return A.current(w,j,O);O()}},[w,j,O,A,N]);const z=g.useMemo(()=>({reference:_,floating:M,setReference:b,setFloating:k}),[b,k]),D=g.useMemo(()=>({reference:w,floating:j}),[w,j]),W=g.useMemo(()=>{const $={position:r,left:0,top:0};if(!D.floating)return $;const L=xr(D.floating,v.x),U=xr(D.floating,v.y);return c?{...$,transform:"translate("+L+"px, "+U+"px)",...ws(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:U}},[r,c,D.floating,v.x,v.y]);return g.useMemo(()=>({...v,update:O,refs:z,elements:D,floatingStyles:W}),[v,O,z,D,W])}const yl=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:a}=typeof e=="function"?e(r):e;return s&&t(s)?s.current!=null?yr({element:s.current,padding:a}).fn(r):{}:s?yr({element:s,padding:a}).fn(r):{}}}},xl=(e,t)=>{const r=cl(e);return{name:r.name,fn:r.fn,options:[e,t]}},bl=(e,t)=>{const r=ll(e);return{name:r.name,fn:r.fn,options:[e,t]}},kl=(e,t)=>({fn:fl(e).fn,options:[e,t]}),wl=(e,t)=>{const r=dl(e);return{name:r.name,fn:r.fn,options:[e,t]}},jl=(e,t)=>{const r=ul(e);return{name:r.name,fn:r.fn,options:[e,t]}},_l=(e,t)=>{const r=hl(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ml=(e,t)=>{const r=yl(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Cl=Object.defineProperty,le=(e,t)=>Cl(e,"name",{value:t,configurable:!0}),js="Popper",[_s,Ms]=hn(js),[Sl,Cs]=_s(js),El=le(e=>{const{__scopePopper:t,children:r}=e,[s,a]=g.useState(null),[o,i]=g.useState(void 0);return n.jsx(Sl,{scope:t,anchor:s,onAnchorChange:a,placementState:o,setPlacementState:i,children:r})},"Popper"),Nl="PopperAnchor",Pl=g.forwardRef(le(function(t,r){const{__scopePopper:s,virtualRef:a,...o}=t,i=Cs(Nl,s),c=g.useRef(null),l=i.onAnchorChange,f=g.useCallback(m=>{c.current=m,m&&l(m)},[l]),v=he(r,f),d=g.useRef(null);g.useEffect(()=>{if(!a)return;const m=d.current;d.current=a.current,m!==d.current&&l(d.current)});const h=i.placementState&&_t(i.placementState),u=h?.[0],p=h?.[1];return a?null:n.jsx(ae.div,{"data-radix-popper-side":u,"data-radix-popper-align":p,...o,ref:v})},"PopperAnchor")),Ss="PopperContent",[Al,Fh]=_s(Ss),$l=g.forwardRef(le(function(t,r){const{__scopePopper:s,side:a="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:f=!0,collisionBoundary:v=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:u=!1,updatePositionStrategy:p="optimized",onPlaced:m,...y}=t,x=Cs(Ss,s),[b,k]=g.useState(null),w=he(r,k),[j,_]=g.useState(null),M=pn(j),C=M?.width??0,N=M?.height??0,A=a+(i!=="center"?"-"+i:""),T=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},P=Array.isArray(v)?v:[v],O=P.length>0,R={padding:T,boundary:P.filter(Es),altBoundary:O},{refs:z,floatingStyles:D,placement:W,isPositioned:$,middlewareData:L}=gl({strategy:"fixed",placement:A,whileElementsMounted:le((...Ct)=>il(...Ct,{animationFrame:p==="always"}),"whileElementsMounted"),elements:{reference:x.anchor},middleware:[xl({mainAxis:o+N,alignmentAxis:c}),f&&bl({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?kl():void 0,...R}),f&&wl({...R}),jl({...R,apply:le(({elements:Ct,rects:Dn,availableWidth:Gs,availableHeight:Xs})=>{const{width:Qs,height:Zs}=Dn.reference,Je=Ct.floating.style;Je.setProperty("--radix-popper-available-width",`${Gs}px`),Je.setProperty("--radix-popper-available-height",`${Xs}px`),Je.setProperty("--radix-popper-anchor-width",`${Qs}px`),Je.setProperty("--radix-popper-anchor-height",`${Zs}px`)},"apply")}),j&&Ml({element:j,padding:l}),Rl({arrowWidth:C,arrowHeight:N}),u&&_l({strategy:"referenceHidden",...R,boundary:O?R.boundary:void 0})]}),U=x.setPlacementState;ze(()=>(U(W),()=>{U(void 0)}),[W,U]);const[On,Tn]=_t(W),Fn=je(m);ze(()=>{$&&Fn?.()},[$,Fn]);const Ws=L.arrow?.x,qs=L.arrow?.y,Us=L.arrow?.centerOffset!==0,[Ks,Ys]=g.useState();return ze(()=>{b&&Ys(window.getComputedStyle(b).zIndex)},[b]),n.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:$?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ks,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:n.jsx(Al,{scope:s,placedSide:On,placedAlign:Tn,onArrowChange:_,arrowX:Ws,arrowY:qs,shouldHideArrow:Us,children:n.jsx(ae.div,{"data-side":On,"data-align":Tn,...y,ref:w,style:{...y.style,animation:$?y.style?.animation:"none"}})})})},"PopperContent"));function Es(e){return e!==null}le(Es,"isNotNull");var Rl=le(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:s,middlewareData:a}=t,i=a.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[f,v]=_t(r),d={start:"0%",center:"50%",end:"100%"}[v],h=(a.arrow?.x??0)+c/2,u=(a.arrow?.y??0)+l/2;let p="",m="";return f==="bottom"?(p=i?d:`${h}px`,m=`${-l}px`):f==="top"?(p=i?d:`${h}px`,m=`${s.floating.height+l}px`):f==="right"?(p=`${-l}px`,m=i?d:`${u}px`):f==="left"&&(p=`${s.floating.width+l}px`,m=i?d:`${u}px`),{data:{x:p,y:m}}}}),"transformOrigin");function _t(e){const[t,r="center"]=e.split("-");return[t,r]}le(_t,"getSideAndAlignFromPlacement");var Ol=El,Tl=Pl,Fl=$l,Dl=Object.defineProperty,se=(e,t)=>Dl(e,"name",{value:t,configurable:!0}),Mn="Checkbox",[Ll,Dh]=hn(Mn),[Il,Cn]=Ll(Mn);function Ns(e){const{__scopeCheckbox:t,checked:r,children:s,defaultChecked:a,disabled:o,form:i,name:c,onCheckedChange:l,required:f,value:v="on",internal_do_not_use_render:d}=e,[h,u]=zr({prop:r,defaultProp:a??!1,onChange:l,caller:Mn}),[p,m]=g.useState(null),[y,x]=g.useState(null),b=g.useRef(!1),[k,w]=g.useReducer(M=>M+1,0),j=p?!!i||!!p.closest("form"):!0,_={checked:h,disabled:o,setChecked:u,control:p,setControl:m,name:c,form:i,value:v,hasConsumerStoppedPropagationRef:b,userInteractionCount:k,onUserInteraction:w,required:f,defaultChecked:ne(a)?!1:a,isFormControl:j,bubbleInput:y,setBubbleInput:x};return n.jsx(Il,{scope:t,..._,children:As(d)?d(_):s})}se(Ns,"CheckboxProvider");var Vl="CheckboxTrigger",Bl=g.forwardRef(se(function({__scopeCheckbox:t,onKeyDown:r,onClick:s,...a},o){const{control:i,value:c,disabled:l,checked:f,required:v,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:u,onUserInteraction:p,isFormControl:m,bubbleInput:y}=Cn(Vl,t),x=he(o,d),b=g.useRef(f);return g.useEffect(()=>{const k=i?.form;if(k){const w=se(()=>h(b.current),"reset");return k.addEventListener("reset",w),()=>k.removeEventListener("reset",w)}},[i,h]),n.jsx(ae.button,{type:"button",role:"checkbox","aria-checked":ne(f)?"mixed":f,"aria-required":v,"data-state":Sn(f),"data-disabled":l?"":void 0,disabled:l,value:c,...a,ref:x,onKeyDown:X(r,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:X(s,k=>{p(),h(w=>ne(w)?!0:!w),y&&m&&(u.current=k.isPropagationStopped(),u.current||k.stopPropagation())})})},"CheckboxTrigger")),Ps=g.forwardRef(se(function(t,r){const{__scopeCheckbox:s,name:a,checked:o,defaultChecked:i,required:c,disabled:l,value:f,onCheckedChange:v,form:d,...h}=t;return n.jsx(Ns,{__scopeCheckbox:s,checked:o,defaultChecked:i,disabled:l,required:c,onCheckedChange:v,name:a,form:d,value:f,internal_do_not_use_render:({isFormControl:u})=>n.jsxs(n.Fragment,{children:[n.jsx(Bl,{...h,ref:r,__scopeCheckbox:s}),u&&n.jsx(ql,{__scopeCheckbox:s})]})})},"Checkbox")),Hl="CheckboxIndicator",zl=g.forwardRef(se(function(t,r){const{__scopeCheckbox:s,forceMount:a,...o}=t,i=Cn(Hl,s);return n.jsx(fn,{present:a||ne(i.checked)||i.checked===!0,children:n.jsx(ae.span,{"data-state":Sn(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:r,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),Wl="CheckboxBubbleInput",ql=g.forwardRef(se(function({__scopeCheckbox:t,onClick:r,...s},a){const{control:o,hasConsumerStoppedPropagationRef:i,userInteractionCount:c,checked:l,defaultChecked:f,required:v,disabled:d,name:h,value:u,form:p,bubbleInput:m,setBubbleInput:y}=Cn(Wl,t),x=he(a,y),b=pn(o),k=g.useRef(!1),w=g.useRef(l),j=g.useRef(c);g.useEffect(()=>{const M=m;if(!M)return;const C=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(C,"checked").set,T=c!==j.current;j.current=c;const P=w.current!==l;w.current=l;const O=!(T&&i.current);if(P&&A){k.current=!T;const R=new Event("click",{bubbles:O});M.indeterminate=ne(l),A.call(M,ne(l)?!1:l),M.dispatchEvent(R),k.current=!1}},[m,l,i,c]);const _=g.useRef(ne(l)?!1:l);return n.jsx(ae.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??_.current,required:v,disabled:d,name:h,value:u,form:p,...s,tabIndex:-1,ref:x,onClick:X(r,M=>{k.current&&M.stopPropagation()}),style:{...s.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function As(e){return typeof e=="function"}se(As,"isFunction");function ne(e){return e==="indeterminate"}se(ne,"isIndeterminate");function Sn(e){return ne(e)?"indeterminate":e?"checked":"unchecked"}se(Sn,"getState");var Ul=Object.defineProperty,pe=(e,t)=>Ul(e,"name",{value:t,configurable:!0}),En="Popover",[$s,Lh]=hn(En,[Ms]),Nn=Ms(),[Kl,Te]=$s(En),Yl=pe(e=>{const{__scopePopover:t,children:r,open:s,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,c=Nn(t),l=g.useRef(null),[f,v]=g.useState(!1),[d,h]=zr({prop:s,defaultProp:a??!1,onChange:o,caller:En});return n.jsx(Ol,{...c,children:n.jsx(Kl,{scope:t,contentId:Xa(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:g.useCallback(()=>h(u=>!u),[h]),hasCustomAnchor:f,onCustomAnchorAdd:g.useCallback(()=>v(!0),[]),onCustomAnchorRemove:g.useCallback(()=>v(!1),[]),modal:i,children:r})})},"Popover"),Gl="PopoverTrigger",Xl=g.forwardRef(pe(function(t,r){const{__scopePopover:s,...a}=t,o=Te(Gl,s),i=Nn(s),c=he(r,o.triggerRef),l=n.jsx(ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":Pn(o.open),...a,ref:c,onClick:X(t.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:n.jsx(Tl,{asChild:!0,...i,children:l})},"PopoverTrigger")),Rs="PopoverPortal",[Ql,Zl]=$s(Rs,{forceMount:void 0}),Jl=pe(e=>{const{__scopePopover:t,forceMount:r,children:s,container:a}=e,o=Te(Rs,t);return n.jsx(Ql,{scope:t,forceMount:r,children:n.jsx(fn,{present:r||o.open,children:n.jsx($i,{asChild:!0,container:a,children:s})})})},"PopoverPortal"),Ue="PopoverContent",ed=g.forwardRef(pe(function(t,r){const s=Zl(Ue,t.__scopePopover),{forceMount:a=s.forceMount,...o}=t,i=Te(Ue,t.__scopePopover);return n.jsx(fn,{present:a||i.open,children:i.modal?n.jsx(nd,{...o,ref:r}):n.jsx(rd,{...o,ref:r})})},"PopoverContent")),td=Js("PopoverContent.RemoveScroll"),nd=g.forwardRef(pe(function(t,r){const s=Te(Ue,t.__scopePopover),a=g.useRef(null),o=he(r,a),i=g.useRef(!1);return g.useEffect(()=>{const c=a.current;if(c)return bc(c)},[]),n.jsx(ds,{as:td,allowPinchZoom:!0,children:n.jsx(Os,{...t,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(t.onCloseAutoFocus,c=>{c.preventDefault(),i.current||s.triggerRef.current?.focus()}),onPointerDownOutside:X(t.onPointerDownOutside,c=>{const l=c.detail.originalEvent,f=l.button===0&&l.ctrlKey===!0,v=l.button===2||f;i.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:X(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),rd=g.forwardRef(pe(function(t,r){const s=Te(Ue,t.__scopePopover),a=g.useRef(!1),o=g.useRef(!1);return n.jsx(Os,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(a.current||s.triggerRef.current?.focus(),i.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;s.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})},"PopoverContentNonModal")),Os=g.forwardRef(pe(function(t,r){const{__scopePopover:s,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:d,...h}=t,u=Te(Ue,s),p=Nn(s);return yn(),n.jsx(Ni,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:i,children:n.jsx(Mi,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>u.onOpenChange(!1),deferPointerDownOutside:!0,children:n.jsx(Fl,{"data-state":Pn(u.open),role:"dialog",id:u.contentId,...p,...h,ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function Pn(e){return e?"open":"closed"}pe(Pn,"getState");var sd=Yl,ad=Xl,od=Jl,Ts=ed,Fs=g.forwardRef(({className:e,...t},r)=>n.jsx(Ps,{ref:r,className:Ke("cds-flex cds-h-6 cds-w-6 cds-shrink-0 cds-cursor-pointer cds-items-center cds-justify-center cds-rounded-md cds-border-2 cds-border-input cds-bg-background cds-transition-colors hover:cds-border-accent focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring focus-visible:cds-ring-offset-2 focus-visible:cds-ring-offset-background disabled:cds-cursor-not-allowed disabled:cds-opacity-50 data-[state=checked]:cds-border-accent data-[state=checked]:cds-bg-accent",e),...t,children:n.jsx(zl,{className:"cds-flex cds-items-center cds-justify-center cds-text-accent-foreground",children:n.jsx(qr,{className:"cds-h-4 cds-w-4",strokeWidth:3})})}));Fs.displayName=Ps.displayName;var An=sd,$n=ad,Mt=g.forwardRef(({className:e,align:t="center",sideOffset:r=4,...s},a)=>{let o=ra();return n.jsx(od,{container:o??void 0,children:n.jsx(Ts,{ref:a,align:t,sideOffset:r,collisionBoundary:o??void 0,collisionPadding:8,style:{maxHeight:"var(--radix-popover-content-available-height)",overflowY:"auto"},className:Ke("credify-ui cds-z-50 cds-rounded-lg cds-border cds-border-border cds-bg-popover cds-p-3 cds-text-popover-foreground cds-shadow-lg cds-outline-none",e),...s})})});Mt.displayName=Ts.displayName;var id=g.lazy(()=>aa(()=>import("./dob-calendar-RIJ5S6YU-1oIu3-0M.js"),__vite__mapDeps([0,1,2,3]))),ht=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,cd=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]))},Ut=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return t?`${t[2]}/${t[3]}/${t[1]}`:""},ld=e=>{if(e.includes("-"))return e;let t=e.replace(/\D/g,"").slice(0,8);return t.length<=2?t:t.length<=4?`${t.slice(0,2)}/${t.slice(2)}`:`${t.slice(0,2)}/${t.slice(2,4)}/${t.slice(4)}`},br=e=>{let t=/^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(e.trim()),r=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/.exec(e.trim()),[s,a,o]=t?[Number(t[1]),Number(t[2]),Number(t[3])]:r?[Number(r[3]),Number(r[1]),Number(r[2])]:[0,0,0];if(!s)return"";let i=new Date(s,a-1,o);return i.getFullYear()===s&&i.getMonth()===a-1&&i.getDate()===o&&i<=new Date?ht(i):""},dd=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches,ud=({id:e,hintId:t,value:r,onChange:s})=>{let[a,o]=g.useState(()=>Ut(r)),[i,c]=g.useState(!1),l=new Date,[f,v]=g.useState(r);if(r!==f&&(v(r),br(a)!==r&&o(Ut(r))),dd())return n.jsx("input",{id:e,type:"date",max:ht(l),"aria-describedby":t,className:F,autoComplete:"bday",value:r,onChange:p=>s(p.target.value)});let d=cd(r),h=a.length===10&&!r,u=`${e}-error`;return n.jsxs("div",{children:[n.jsxs("div",{className:"cds-flex cds-gap-2",children:[n.jsx("input",{id:e,className:F,inputMode:"numeric",autoComplete:"bday",placeholder:"MM/DD/YYYY","aria-invalid":h||void 0,"aria-describedby":h?`${u} ${t??""}`.trim():t,value:a,onChange:p=>{let m=ld(p.target.value);o(m),s(br(m))}}),n.jsxs(An,{open:i,onOpenChange:c,children:[n.jsx($n,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":"Pick date of birth from a calendar",className:Ke("cds-flex cds-w-12 cds-shrink-0 cds-items-center cds-justify-center cds-rounded-lg cds-border cds-border-input cds-bg-background cds-text-fg-muted cds-transition-colors hover:cds-border-accent hover:cds-text-accent",V),children:n.jsx(io,{className:"cds-h-5 cds-w-5","aria-hidden":"true"})})}),n.jsx(Mt,{align:"end",className:"cds-w-auto",children:n.jsx(g.Suspense,{fallback:n.jsx("div",{className:"cds-h-8 cds-w-64 cds-animate-pulse cds-rounded cds-bg-surface-muted"}),children:n.jsx(id,{today:l,selected:d,onSelect:p=>{p&&(s(ht(p)),o(Ut(ht(p)))),c(!1)}})})})]})]}),h?n.jsx("p",{id:u,role:"alert",className:"cds-mt-1 cds-text-xs cds-font-medium cds-text-destructive",children:"Enter a valid date of birth as MM/DD/YYYY — it can't be in the future."}):null]})},hd="cds-mt-1 cds-text-xs cds-font-medium cds-text-destructive",fd=({label:e,value:t,onChange:r,onPick:s})=>{let a=`${g.useId()}-address-suggestions`,[o,i]=g.useState([]),[c,l]=g.useState(!1),[f,v]=g.useState(-1),d=g.useRef(null),h=g.useRef(void 0);g.useEffect(()=>{let x=!1;return sa().then(b=>{x||(d.current=b)}),()=>{x=!0,clearTimeout(h.current)}},[]);let u=()=>{i([]),l(!1),v(-1)},p=x=>{if(r(x),clearTimeout(h.current),!d.current||x.trim().length<3){u();return}h.current=setTimeout(()=>{d.current?.(x).then(b=>{i(b),l(b.length>0),v(-1)})},250)},m=x=>{s(x),u()},y=x=>{if(!(!c||!o.length)){if(x.key==="ArrowDown"||x.key==="ArrowUp"){x.preventDefault();let b=x.key==="ArrowDown"?1:-1;v(k=>(k+b+o.length)%o.length);return}if(x.key==="Enter"&&f>=0){x.preventDefault();let b=o[f];b&&m(b);return}x.key==="Escape"&&u()}};return n.jsx(un,{label:e,children:({id:x})=>n.jsxs("div",{className:"cds-relative",children:[n.jsx("input",{id:x,type:"text",role:"combobox","aria-expanded":c,"aria-controls":a,"aria-autocomplete":"list","aria-activedescendant":f>=0?`${a}-${f}`:void 0,autoComplete:"address-line1",value:t,onChange:b=>p(b.target.value),onKeyDown:y,onBlur:()=>setTimeout(u,150),className:F}),c&&o.length?n.jsx("ul",{id:a,role:"listbox","aria-label":"Address suggestions",className:"cds-absolute cds-z-20 cds-mt-1 cds-w-full cds-overflow-hidden cds-rounded-lg cds-border cds-border-border cds-bg-popover cds-shadow-lg",children:o.map((b,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",id:`${a}-${k}`,role:"option","aria-selected":k===f,onMouseDown:w=>w.preventDefault(),onClick:()=>m(b),className:Ke("cds-block cds-w-full cds-px-3 cds-py-2 cds-text-left cds-text-sm",k===f?"cds-bg-highlight cds-text-fg":"cds-text-popover-foreground"),children:b.description})},b.description))}):null]})})},pd=({question:e,values:t,error:r,onPatch:s})=>{let a=`__${e.key}`,o=String(t[e.key]??""),i=`${a}_line_1`in t;g.useEffect(()=>{if(i||!o)return;let u=ma(o);s({[`${a}_line_1`]:u.line_1,[`${a}_line_2`]:"",[`${a}_city`]:u.city||String(t.city??""),[`${a}_state`]:u.state||String(t.state??""),[`${a}_postal_code`]:u.postal_code||String(t.postal_code??"")})},[i,o]);let c=String(t[`${a}_line_1`]??""),l=String(t[`${a}_line_2`]??""),f=String(t[`${a}_city`]??t.city??""),v=String(t[`${a}_state`]??t.state??""),d=String(t[`${a}_postal_code`]??t.postal_code??"");g.useEffect(()=>{let u=va({line_1:c,line_2:l,city:f,state:v,postal_code:d});!u&&o||u!==o&&s({[e.key]:u})},[c,l,f,v,d]);let h=(u,p,m,y={})=>n.jsx(un,{label:p,children:({id:x})=>n.jsx("input",{id:x,type:"text",value:m,autoComplete:y.autoComplete,inputMode:y.inputMode,onChange:b=>s({[u]:y.uppercase?b.target.value.toUpperCase():b.target.value}),className:F})});return n.jsxs("fieldset",{className:"cds-mb-2",children:[n.jsx("legend",{className:"cds-mb-1 cds-block cds-text-sm cds-font-semibold cds-text-fg",children:e.question}),n.jsx(fd,{label:"Street address",value:c,onChange:u=>s({[`${a}_line_1`]:u}),onPick:u=>{let p=ta(u.description);s({[`${a}_line_1`]:p.line_1,[`${a}_city`]:p.city||f,[`${a}_state`]:p.state||v,[`${a}_postal_code`]:p.postal_code||d}),na(u.place_id).then(m=>{m&&s({[`${a}_postal_code`]:m})})}}),h(`${a}_line_2`,"Apt, unit, suite (optional)",l,{autoComplete:"address-line2"}),n.jsxs("div",{className:"cds-grid cds-gap-3 sm:cds-grid-cols-3",children:[h(`${a}_city`,"City",f,{autoComplete:"address-level2"}),h(`${a}_state`,"State",v,{autoComplete:"address-level1",uppercase:!0}),h(`${a}_postal_code`,"ZIP",d,{autoComplete:"postal-code",inputMode:"numeric"})]}),r?n.jsx("p",{className:hd,role:"alert",children:r}):null]})},md=({label:e,checked:t,onChange:r,className:s})=>{let a=g.useId();return n.jsxs("label",{htmlFor:a,className:Ke("cds-mb-2 cds-flex cds-cursor-pointer cds-items-center cds-justify-between cds-rounded-lg cds-border cds-border-border cds-bg-background cds-px-4 cds-py-3 cds-transition-colors hover:cds-border-accent/60 hover:cds-bg-highlight/40",s),children:[n.jsx("span",{className:"cds-text-sm cds-font-medium cds-text-fg",children:e}),n.jsx(Fs,{id:a,checked:t,onCheckedChange:o=>r(o===!0)})]})},S=e=>({className:t})=>n.jsx("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:t,focusable:"false",children:e}),it=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 26 24 8l18 18"}),n.jsx("path",{d:"M10 26v14h28V26"})]})),vd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 26 16 10h16l10 16"}),n.jsx("path",{d:"M10 26v14h28V26"}),n.jsx("path",{d:"M16 10 24 26l8-16"})]})),gd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 16h36"}),n.jsx("path",{d:"M10 16v24h28V16"})]})),Kt=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 26 14 17l10-7 10 7 8 9"}),n.jsx("path",{d:"M10 26v14h28V26"})]})),yd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 26 24 8l18 18"}),n.jsx("path",{d:"M10 26v14h28V26"}),n.jsx("path",{d:"M24 8 15 17",strokeWidth:5,strokeOpacity:.35})]})),xd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 26 24 8l18 18",strokeWidth:5,strokeOpacity:.35}),n.jsx("path",{d:"M6 26 24 8l18 18"}),n.jsx("path",{d:"M10 26v14h28V26"})]})),bd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 26 24 8l18 18",strokeDasharray:"5 4"}),n.jsx("path",{d:"M10 26v14h28V26"})]})),ce=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 24 24 10l18 14"}),n.jsx("path",{d:"M10 24v14h28V24"}),n.jsx("path",{d:"M20 38v-10h8v10"})]})),kd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M4 22 24 10l20 12"}),n.jsx("path",{d:"M8 22v16h32V22"}),n.jsx("path",{d:"M18 38v-8h6v8"})]})),wd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 20 24 8l18 12"}),n.jsx("path",{d:"M10 20v18h28V20"}),n.jsx("path",{d:"M20 38v-9h8v9"}),n.jsx("path",{d:"M14 24h4M30 24h4M14 30h4M30 30h4"})]})),jd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 24 24 10l16 14"}),n.jsx("path",{d:"M12 24v14h24V24"}),n.jsx("path",{d:"M20 38v-8h8v8"}),n.jsx("circle",{cx:"24",cy:"19",r:"1.6",fill:"currentColor",stroke:"none"})]})),_d=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 22 16 12v-4"}),n.jsx("path",{d:"M12 22 24 10l12 12"}),n.jsx("path",{d:"M10 22v16h28V22"}),n.jsx("path",{d:"M20 38v-8h8v8"})]})),kr=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 18h32v20H8z"}),n.jsx("path",{d:"M8 18 24 8l16 10"}),n.jsx("path",{d:"M16 38V26h8v12"})]})),Md=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M4 26 24 12l20 14"}),n.jsx("path",{d:"M8 26v12h32V26"}),n.jsx("path",{d:"M18 38v-7h6v7"})]})),Cd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 24 24 9l18 15"}),n.jsx("path",{d:"M10 24v14h28V24"}),n.jsx("path",{d:"M20 38v-9h8v9"}),n.jsx("path",{d:"M24 9V4"})]})),Sd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 20 24 6l18 14"}),n.jsx("path",{d:"M10 20v18h28V20"}),n.jsx("path",{d:"M14 20v6M20 20v6M28 20v6M34 20v6"}),n.jsx("path",{d:"M20 38v-8h8v8"})]})),Ed=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 20c0-6 6-12 16-12s16 6 16 12"}),n.jsx("path",{d:"M10 20v18h28V20"}),n.jsx("path",{d:"M20 38v-8h8v8"})]})),Yt=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 22c0-7 7-13 16-13s16 6 16 13"}),n.jsx("path",{d:"M10 22v16h28V22"}),n.jsx("path",{d:"M20 38v-9a4 4 0 0 1 8 0v9"})]})),Nd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 18 24 8l16 10"}),n.jsx("path",{d:"M10 18v20h28V18"}),n.jsx("path",{d:"M24 18v20M10 28h28"})]})),Gt=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 22 24 10l18 12"}),n.jsx("path",{d:"M10 22v16h28V22"}),n.jsx("path",{d:"M10 27h28M10 32h28"})]})),wr=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M4 24 16 16l10 6"}),n.jsx("path",{d:"M26 22 36 14l8 6"}),n.jsx("path",{d:"M8 24v14h18V24"}),n.jsx("path",{d:"M26 22v16h14V22"})]})),jr=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M4 30 12 24l8 4"}),n.jsx("path",{d:"M20 28 28 20l8 5"}),n.jsx("path",{d:"M8 30v10h12V30"}),n.jsx("path",{d:"M20 28v12h14V28"}),n.jsx("path",{d:"M34 25 42 20v20h-8"})]})),_r=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 22 24 8l18 14"}),n.jsx("path",{d:"M10 22v16h28V22"}),n.jsx("path",{d:"M24 22v16"}),n.jsx("path",{d:"M14 38v-7h5v7M29 38v-7h5v7"})]})),Pd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 20 18 12l10 8"}),n.jsx("path",{d:"M28 20 38 13l6 7"}),n.jsx("path",{d:"M10 20v18h18V20"}),n.jsx("path",{d:"M28 20v18h14V20"})]})),Ad=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 22 12 16l6 6M18 22l6-6 6 6M30 22l6-6 6 6"}),n.jsx("path",{d:"M8 22v16h10V22M18 22v16h12V22M30 22v16h10V22"})]})),$d=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 20 24 10l16 10"}),n.jsx("path",{d:"M8 20v18h32V20"}),n.jsx("path",{d:"M8 26h32M8 32h32"})]})),Rd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 14h32v24H8z"}),n.jsx("path",{d:"M24 14v24M8 26h32"})]})),Od=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 10h32v28H8z"}),n.jsx("path",{d:"M14 16h5v5h-5zM24 16h5v5h-5zM33 16h3v5h-3z"}),n.jsx("path",{d:"M14 26h5v5h-5zM24 26h5v5h-5zM33 26h3v5h-3z"})]})),Ce=(e,t)=>{let r=40-Math.min(e,4)*7-(t?3:0),s=[];for(let a=1;a<e;a+=1){let o=40-a*7;s.push(n.jsx("path",{d:`M10 ${o}h28`},a))}return S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:`M6 ${r} 24 ${Math.max(r-12,4)}l18 ${r-Math.max(r-12,4)}`}),n.jsx("path",{d:`M10 ${r}v${40-r}h28V${r}`}),s,t?n.jsx("path",{d:`M19 ${r}v-5h5`}):null]}))},Td=Ce(1,!1),Fd=Ce(1,!0),Mr=Ce(2,!1),Dd=Ce(2,!0),Ld=Ce(3,!1),Id=Ce(3,!0),Vd=Ce(4,!1),ie=e=>S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 20 24 10l16 10"}),n.jsx("path",{d:"M11 20v10h26V20"}),n.jsx("path",{d:"M4 30h40"}),e]})),Cr=ie(n.jsx("path",{d:"M11 30v4h26v-4",strokeWidth:4})),Bd=ie(n.jsx("path",{d:"M11 30v11h26V30"})),Hd=ie(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M11 30v11h13V30"}),n.jsx("path",{d:"M24 30v4h13v-4",strokeWidth:4})]})),zd=ie(n.jsx("path",{d:"M11 30v6h26v-6"})),Wd=ie(n.jsx(n.Fragment,{children:n.jsx("path",{d:"M13 30v10M24 30v10M35 30v10"})})),qd=ie(n.jsx("path",{d:"M11 30v10M37 30v10",strokeDasharray:"4 3"})),Sr=ie(n.jsx("path",{d:"M11 30v11h26V30"})),Ud=ie(n.jsx(n.Fragment,{children:n.jsx("path",{d:"M11 30v11h13V36h13v-6"})})),Kd=ie(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M11 30v11h26V30"}),n.jsx("path",{d:"M37 41h6"}),n.jsx("path",{d:"M30 41v-7h7"})]})),Ye=e=>S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 24 18 14l12 10"}),n.jsx("path",{d:"M9 24v16h18V24"}),e]})),Er=Ye(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M29 28h13v12H29z"}),n.jsx("path",{d:"M32 40v-7h7v7"})]})),Yd=Ye(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M33 28h11v12H33z"}),n.jsx("path",{d:"M36 40v-7h5v7"})]})),Gd=Ye(n.jsx("path",{d:"M13 40v-8h10v8"})),Xd=Ye(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M9 34h18"}),n.jsx("path",{d:"M13 40v-4h10v4"})]})),Qd=Ye(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M29 30h14"}),n.jsx("path",{d:"M30 30v10M42 30v10"})]})),Nr=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M22 40V22a4 4 0 0 1 8 0v18"}),n.jsx("path",{d:"M18 26h16M20 40h12M26 22v-4"}),n.jsx("path",{d:"M6 34h10"})]})),Zd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M26 40V24a4 4 0 0 1 8 0v16"}),n.jsx("path",{d:"M22 28h16M24 40h12M30 24v-4"}),n.jsx("path",{d:"M4 34h14",strokeDasharray:"4 3"})]})),Jd=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M32 40V26a3 3 0 0 1 6 0v14"}),n.jsx("path",{d:"M29 29h12M30 40h10M35 26v-3"}),n.jsx("path",{d:"M4 34h20",strokeDasharray:"3 4"})]})),Pr=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 22 24 10l16 12"}),n.jsx("path",{d:"M12 22v14h24V22"}),n.jsx("path",{d:"M4 40h40"})]})),eu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 20 24 8l16 12"}),n.jsx("path",{d:"M12 20v14h24V20"}),n.jsx("path",{d:"M4 40h16"}),n.jsx("path",{d:"M20 38c3-2 5 2 8 0s5 2 8 0 5 2 8 0"})]})),tu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M10 18 24 8l14 10"}),n.jsx("path",{d:"M14 18v12h20V18"}),n.jsx("path",{d:"M17 30v8M31 30v8"}),n.jsx("path",{d:"M4 40c3-2 5 2 8 0s5 2 8 0 5 2 8 0 5 2 8 0 5 2 8 0"})]})),Ge=e=>S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 16h12a6 6 0 0 1 6 6v10a6 6 0 0 0 6 6h8"}),n.jsx("path",{d:"M6 12v8M42 34v8"}),n.jsx("text",{x:"24",y:"14",fill:"currentColor",stroke:"none",fontSize:"11",fontWeight:"700",textAnchor:"middle",children:e})]})),nu=Ge("Cu"),ru=Ge("Gal"),su=Ge("PEX"),au=Ge("PVC"),ou=Ge("PB"),Xt=S(n.jsxs(n.Fragment,{children:[n.jsx("circle",{cx:"24",cy:"24",r:"15"}),n.jsx("path",{d:"M24 9a15 15 0 0 1 0 30z",fill:"currentColor",stroke:"none",fillOpacity:.3})]})),Qt=S(n.jsxs(n.Fragment,{children:[n.jsx("circle",{cx:"24",cy:"24",r:"15",fill:"currentColor",stroke:"none",fillOpacity:.3}),n.jsx("circle",{cx:"24",cy:"24",r:"15"}),n.jsx("path",{d:"M17 24l5 5 9-10"})]})),iu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M4 34h40"}),n.jsx("rect",{x:"14",y:"16",width:"20",height:"14",rx:"4"}),n.jsx("path",{d:"M18 30v4M30 30v4"})]})),cu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M4 20h40"}),n.jsx("rect",{x:"14",y:"26",width:"20",height:"14",rx:"4"}),n.jsx("path",{d:"M24 26v-6"})]})),Ar=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 26 20 16l12 10"}),n.jsx("path",{d:"M11 26v14h18V26"}),n.jsx("path",{d:"M36 20a10 10 0 0 1 0 16"}),n.jsx("path",{d:"M40 15a16 16 0 0 1 0 26"})]})),$r=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 26 20 16l12 10"}),n.jsx("path",{d:"M11 26v14h18V26"}),n.jsx("path",{d:"M31 30h11"}),n.jsx("path",{d:"M38 26l4 4-4 4"})]})),Rr=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M10 26 24 14l14 12"}),n.jsx("path",{d:"M14 26v14h20V26"}),n.jsx("path",{d:"M24 34v-6"}),n.jsx("circle",{cx:"24",cy:"22",r:"2.5"})]})),lu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 14h32"}),n.jsx("path",{d:"M16 14v4M24 14v4M32 14v4"}),n.jsx("path",{d:"M12 26c2-4 4-4 4-8M20 26c2-4 4-4 4-8M28 26c2-4 4-4 4-8",strokeDasharray:"3 3"}),n.jsx("path",{d:"M8 38h32"})]})),du=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 14h32"}),n.jsx("path",{d:"M16 14v4M24 14v4"}),n.jsx("path",{d:"M12 26c2-4 4-4 4-8M20 26c2-4 4-4 4-8",strokeDasharray:"3 3"}),n.jsx("path",{d:"M8 38h18"})]})),Or=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M6 24 24 10l18 14"}),n.jsx("path",{d:"M10 24v14h28V24"}),n.jsx("circle",{cx:"24",cy:"28",r:"3"}),n.jsx("path",{d:"M18 38c0-4 3-6 6-6s6 2 6 6"})]})),uu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M4 22 16 12l12 10"}),n.jsx("path",{d:"M8 22v16h16V22"}),n.jsx("path",{d:"M26 28 35 21l9 7"}),n.jsx("path",{d:"M29 28v10h12V28"})]})),hu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 28 24 16l16 12"}),n.jsx("path",{d:"M12 28v12h24V28"}),n.jsx("circle",{cx:"38",cy:"11",r:"4"}),n.jsx("path",{d:"M38 4v2M38 16v2M45 11h-2M33 11h-2"})]})),fu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 30h32"}),n.jsx("path",{d:"M12 30l4-9h16l4 9"}),n.jsx("circle",{cx:"16",cy:"34",r:"3"}),n.jsx("circle",{cx:"32",cy:"34",r:"3"}),n.jsx("path",{d:"M20 15l3 3 6-6"})]})),pu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 30h32"}),n.jsx("path",{d:"M12 30l4-9h16l4 9"}),n.jsx("circle",{cx:"16",cy:"34",r:"3"}),n.jsx("circle",{cx:"32",cy:"34",r:"3"}),n.jsx("path",{d:"M18 10h12v8H18z"}),n.jsx("path",{d:"M21 14h6"})]})),mu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 30h32"}),n.jsx("path",{d:"M12 30l4-9h16l4 9"}),n.jsx("circle",{cx:"16",cy:"34",r:"3"}),n.jsx("circle",{cx:"32",cy:"34",r:"3"}),n.jsx("rect",{x:"19",y:"11",width:"10",height:"7",rx:"2"}),n.jsx("path",{d:"M21 11V9a3 3 0 0 1 6 0v2"})]})),vu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M10 32h28"}),n.jsx("path",{d:"M14 32l3-8h6l3 8"}),n.jsx("circle",{cx:"17",cy:"35",r:"2.5"}),n.jsx("path",{d:"M31 28a5 5 0 1 1 10 0v6H31z"}),n.jsx("path",{d:"M36 14v6M31 17l3 3M41 17l-3 3"})]})),gu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M10 32h28"}),n.jsx("path",{d:"M14 32l3-8h6l3 8"}),n.jsx("circle",{cx:"17",cy:"35",r:"2.5"}),n.jsx("path",{d:"M28 24h12v8H28z"}),n.jsx("path",{d:"M31 20l3 3 3-3"})]})),yu=S(n.jsxs(n.Fragment,{children:[n.jsx("path",{d:"M8 32h32"}),n.jsx("path",{d:"M12 32l4-9h16l4 9"}),n.jsx("circle",{cx:"16",cy:"35",r:"2.5"}),n.jsx("circle",{cx:"32",cy:"35",r:"2.5"}),n.jsx("path",{d:"M18 16l4 4 8-8"})]})),xu={co_applicant_gender:"gender"},bu={roof_shape:{byToken:{B_Gable:it,C_Hip:vd,A_Flat:gd,D_Other:Kt},fallback:Kt},architectural_style:{byToken:{TwoFamilyHome:_r,American4square:Nd,Basic:ce,BiLevel:wr,Bungalow:Md,CapeCod:jd,Colonial:wd,ColonialSpanish:Yt,CompletelyCustom:kr,Contemporary:kr,ContractorModern:ce,Farmhouse:Cd,Folk:ce,Log:Gt,Mediterranean:Ed,Ranch:kd,TriLevel:jr,Tudor:Sd,Vernacular:ce,Victorian:_d},fallback:ce},dwelling_type:{byToken:{SingleFamilyHouse:ce,Townhouse:Pd,Rowhouse:Ad,Duplex:_r,Triplex:$d,Fourplex:Rd,MultFamily:Od},fallback:ce},number_of_stories:{byToken:{One:Td,OneHalf:Fd,Two:Mr,TwoHalf:Dd,Three:Ld,ThreeHalf:Id,Four:Vd,BiLevel:wr,TriLevel:jr},fallback:Mr},foundation_type:{byToken:{Slab:Cr,Basement:Bd,CrawlSpace:zd,PartialBasement:Hd,PiersPostsPiles:Wd,Open:qd},fallback:Cr},basement_type:{byToken:{Basement:Sr,SplitLevelBasement:Ud,WalkoutBasement:Kd},fallback:Sr},occupancy_type:{byToken:{OwnerPrimary:Or,OwnerSecondary:uu,OwnerSeasonal:hu},fallback:Or},roof_updated_type:{byToken:{NotUpdated:bd,PartialUpdate:yd,CompleteUpdate:xd},fallback:it},located_over_water:{byToken:{NotOverWater:Pr,PartiallyOverWater:eu,FullyOrEntirelyOverWater:tu},fallback:Pr},construction_type:{byToken:{Frame:ce,Masonry:me,MasonryVeneer:me,Log:Gt,Asbestos:At,EFIS:B,HardiPlank:ye,SuperiorFireResistive:Be,SuperiorMasonryNonCombustible:me,SuperiorNonCombustible:$t},fallback:me},exterior_wall_type:{byToken:{VinylSiding:ye,WoodFraming:xe,BrickVeneer:me,Stucco:B,AdobeBlock:ge,AluminumSiding:ye,CementFiberShingles:B,Clapboard:ye,ConcreteBlock:ge,HardboardSiding:ye,InsulatedConcreteForms:ge,LightGaugeSteelFraming:B,LogsSolid:Gt,MasoniteSiding:ye,PreEngineeredMetal:B,SolidBrickConstruction:me,SolidConcrete:ge,StandardPoleFramed:xe,Stone:K,StructuralInsulatedPanels:B,TimberFraming:xe},fallback:me},roof_material_type:{byToken:{ASPHALT_SHINGLES:it,ARCHITECTURAL_SHINGLES:B,METAL:B,TILE_CONCRETE:ge,ASBESTOS:At,BUILT_UP:B,COMPOSITION:B,CONCRETE:ge,COPPER:ei,CORRUGATED_STEEL:ye,FIBERGLASS:B,FOAM:Ve,GRAVEL:K,MEMBRANE:B,MINERAL_FIBER_SHAKE:K,PLASTIC:B,ROCK:K,ROLLED_PAPER:Nt,RUBBER:B,SLATE:K,TAR:Gn,TAR_GRAVEL:K,TILE_CLAY:ge,TILE_MISSION:Yt,TILE_SPANISH:Yt,TIN:B,WOOD_FIBERGLASS_SHINGLES:xe,WOOD_SHAKE:xe,WOOD_SHINGLES:xe,OTHER:Kt},fallback:it},heating_type:{byToken:{Electric:gi,Gas:Be,GasForcedAir:Bn,GasHotWater:Ve,Oil:Xn,OilForcedAir:Bn,OilHotWater:Ve,SolidFuel:xe,HeatPump:Rt,Other:Rt},fallback:Rt},plumbing_type:{byToken:{EntirelyCopper:nu,EntirelyGalvanized:ru,EntirelyPEX:su,EntirelyPVC:au,Polybutylene:ou},fallback:Gn},oil_tank_location:{byToken:{AboveGround:iu,BelowGround:cu},fallback:Xn},heating_update_type:{byToken:{PartialUpdate:Xt,CompleteUpdate:Qt},fallback:Ft},plumbing_update_type:{byToken:{PartialUpdate:Xt,CompleteUpdate:Qt},fallback:Ft},electrical_update_type:{byToken:{PartialUpdate:Xt,CompleteUpdate:Qt},fallback:Ft},garage_type:{byToken:{Attached:Er,Basement:Xd,BuiltIn:Gd,Carport:Qd,Detached:Yd},fallback:Er},distance_from_fire_hydrant_ft:{byToken:{_0_500ft:Nr,_501_1000ft:Zd,_1001ftAndGreater:Jd},fallback:Nr},distance_from_fire_station_miles:{byToken:{Lessthan5miles:Jn,Over5miles:er,NotAvailable:Ao},fallback:Jn},fire_detection_system_type:{byToken:{Central:Ar,Direct:$r,Local:Rr},fallback:Hn},burglar_alarm_system_type:{byToken:{Central:Ar,Direct:$r,Local:Rr},fallback:Hn},sprinkler_system_type:{byToken:{Full:lu,Partial:du},fallback:Ve},ownership_type:{byToken:{Owned:fu,Leased:pu,Lien:mu},fallback:Vn},usage:{byToken:{Business:zn,Pleasure:ci,Farming:si,To_FromWork:qn,To_FromSchool:qo},fallback:Vn},gender:{byToken:{Female:fi,Male:Fo},fallback:et},relationship_to_insured:{byToken:{Spouse:Eo,Parent:Tt,Child:eo,"Domestic Partner":ga,Relative:Tt,Employee:zn,Other:et},fallback:et},license_status:{byToken:{Valid:pa,Suspended:At,Permit:Nt,Unlicensed:Ur},fallback:Nt},residence_type:{byToken:{OwnHome:St,OwnCondo:qn,RentHome:Ro,RentCondo:Zn,RentApartment:Zn,LiveWithParents:Tt},fallback:St},description:{byToken:{"At Fault With Injuries":vu,"At Fault With No Injury":gu,"Not At Fault":yu,"All Others":ve,Contamination:Wn,"Credit Card":Yn,Earthquake:K,"Extended Coverage Perils":$t,Fire:Be,Flood:In,Hail:Un,Lightning:Kn,"Medical Payments":Qn,"Theft/Burglary":Et,"Vandalism/Malicious Mischief":Pt,"Water Damage":Ve,Wind:tr,Towing:er,Glass:ve,"Tornado/Hurricane":Ot,CONTAMINATION:Wn,CREDITCARD:Yn,DAMAGETOPROPERTYOFOTHERS:St,DOGBITELIABILITY:go,EARTHMOVEMENT:K,EARTHQUAKE:K,EXTENDEDCOVERAGEPERILS:$t,FIRE:Be,FLOOD:In,FREEZINGWATERINCLUDINGBURSTPIPES:Zo,HAIL:Un,HURRICANE:Ot,LIABILITYALLOTHER:ve,LIGHTNING:Kn,MEDICALPAYMENTS:Qn,MYSTERIOUSDISAPPEARANCE:ve,MYSTERIOUSDISAPPEARANCESCHEDULEDPROPERTY:ve,PHYSICALDAMAGEALLOTHER:Pt,SINKHOLE:K,SLIPFALLLIABILITY:et,SMOKE:Be,THEFTSCHEDULEDPROPERTY:Et,THEFTBURGLARY:Et,TORNADO:Ot,VANDALISMMALICIOUSMISCHIEF:Pt,WATERDAMAGE:fo,WIND:tr,WORKERSCOMPENSATION:Mo,ALLOTHER:ve},fallback:ve}},ku={Yes:qr,No:Ur},Ds=e=>bu[xu[e]??e],ln=(e,t)=>{let r=Ds(e);if(r)return r.byToken[t]??r.fallback},Fe="cds-relative cds-flex cds-items-center cds-justify-center cds-rounded-xl cds-border-2 cds-transition-colors disabled:cds-cursor-not-allowed",De="cds-border-accent cds-bg-accent/10 cds-text-fg",Le="cds-border-border-strong cds-bg-surface-elevated cds-text-fg-muted hover:cds-border-accent/60",Xe="cds-border-destructive",Qe=()=>n.jsx("span",{"aria-hidden":"true",className:"cds-absolute cds-right-1.5 cds-top-1.5 cds-flex cds-h-5 cds-w-5 cds-items-center cds-justify-center cds-rounded-full cds-bg-accent cds-text-xs cds-font-bold cds-text-accent-foreground",children:"✓"}),Ze=(e,t,r)=>{let s=g.useRef([]),a=g.useRef(null);g.useEffect(()=>{a.current!==null&&(s.current[a.current]?.focus(),a.current=null)},[t]);let o=e.findIndex(i=>i.value===t);return{tabStop:o>=0?o:0,onKeyDown:g.useCallback(i=>{let c=i.key==="ArrowRight"||i.key==="ArrowDown"?1:i.key==="ArrowLeft"||i.key==="ArrowUp"?-1:0;if(!c||e.length===0)return;i.preventDefault();let l=e.findIndex(d=>d.value===t),f=(l<0?0:l+c+e.length)%e.length,v=e[f];v&&(a.current=f,r(v.value))},[e,t,r]),register:g.useCallback(i=>c=>{s.current[i]=c},[])}},dn=({glyph:e,className:t})=>n.jsx("span",{"aria-hidden":"true",className:t??"cds-h-10 cds-w-10 cds-text-fg",children:n.jsx(e,{className:"cds-h-full cds-w-full"})}),wu=({fieldKey:e,label:t,options:r,value:s,invalid:a,describedBy:o,onChange:i})=>{let{tabStop:c,onKeyDown:l,register:f}=Ze(r,s,i),v=r.length<=4?"cds-grid-cols-2 sm:cds-grid-cols-4":"cds-grid-cols-2 sm:cds-grid-cols-3 md:cds-grid-cols-4";return n.jsx("div",{role:"radiogroup","aria-label":t,"aria-invalid":a||void 0,"aria-describedby":o,className:`cds-grid cds-gap-2 ${v}`,onKeyDown:l,children:r.map((d,h)=>{let u=d.value===s,p=ln(e,d.value);return n.jsxs("button",{ref:f(h),type:"button",role:"radio","aria-checked":u,tabIndex:h===c?0:-1,onClick:()=>i(d.value),className:`${Fe} cds-flex-col cds-gap-1 cds-p-3 cds-text-center cds-text-xs cds-font-medium ${V} ${u?De:`${Le} ${a?Xe:""}`}`,children:[u?n.jsx(Qe,{}):null,p?n.jsx(dn,{glyph:p}):null,n.jsx("span",{children:d.label})]},d.value)})})},ju=({label:e,options:t,value:r,invalid:s,describedBy:a,onChange:o})=>{let{tabStop:i,onKeyDown:c,register:l}=Ze(t,r,o);return n.jsx("div",{role:"radiogroup","aria-label":e,"aria-invalid":s||void 0,"aria-describedby":a,className:"cds-grid cds-grid-cols-2 cds-gap-2",onKeyDown:c,children:t.map((f,v)=>{let d=f.value===r,h=ku[f.value];return n.jsxs("button",{ref:l(v),type:"button",role:"radio","aria-checked":d,tabIndex:v===i?0:-1,onClick:()=>o(f.value),className:`${Fe} cds-gap-2 cds-px-4 cds-py-3 cds-text-sm cds-font-semibold ${V} ${d?De:`${Le} ${s?Xe:""}`}`,children:[h?n.jsx(h,{"aria-hidden":"true",className:`cds-h-5 cds-w-5 ${d?"cds-text-accent":"cds-text-fg-muted"}`}):null,n.jsx("span",{children:f.label})]},f.value)})})},_u={tort_threshold:{Verbal_Threshold:"Lower premium. You can sue for pain and suffering only if your injury is serious, as NJ law defines it.",Zero_Threshold:"Higher premium. You keep the full right to sue for pain and suffering."},pip_coverage_type:{Primary:"Your auto policy pays your medical bills first.",Secondary:"Your health plan pays first and auto covers what it does not. Needs eligible health coverage."}},Mu=({fieldKey:e,label:t,options:r,value:s,invalid:a,describedBy:o,onChange:i})=>{let{tabStop:c,onKeyDown:l,register:f}=Ze(r,s,i),v=_u[e];return n.jsx("div",{role:"radiogroup","aria-label":t,"aria-invalid":a||void 0,"aria-describedby":o,className:`cds-grid cds-gap-2 ${r.length===2?"sm:cds-grid-cols-2":"sm:cds-grid-cols-3"}`,onKeyDown:l,children:r.map((d,h)=>{let u=d.value===s,p=v?.[d.value];return n.jsxs("button",{ref:f(h),type:"button",role:"radio","aria-checked":u,tabIndex:h===c?0:-1,onClick:()=>i(d.value),className:`${Fe} cds-flex-col cds-gap-1 cds-px-4 cds-py-3 ${V} ${u?De:`${Le} ${a?Xe:""}`}`,children:[u?n.jsx(Qe,{}):null,n.jsx("span",{className:"cds-w-full cds-pr-6 cds-text-left cds-text-sm cds-font-bold cds-text-fg",children:d.label}),p?n.jsx("span",{className:"cds-w-full cds-text-left cds-text-[11px] cds-font-normal cds-leading-snug cds-text-fg-muted",children:p}):null]},d.value)})})},Cu=({id:e,fieldKey:t,label:r,options:s,value:a,invalid:o,describedBy:i,onChange:c})=>{let[l,f]=g.useState(!1),[v,d]=g.useState(""),h=g.useMemo(()=>{let m=v.trim().toLowerCase();return m?s.filter(y=>y.label.toLowerCase().includes(m)):s},[s,v]),u=s.find(m=>m.value===a),p=u?ln(t,u.value):void 0;return n.jsxs(An,{open:l,onOpenChange:m=>{f(m),m||d("")},children:[n.jsx($n,{asChild:!0,children:n.jsxs("button",{type:"button",id:e,"aria-label":r,"aria-invalid":o||void 0,"aria-describedby":i,className:`${F} cds-flex cds-items-center cds-justify-between cds-gap-2 cds-text-left ${o?"cds-border-destructive":""} ${V}`,children:[n.jsxs("span",{className:"cds-flex cds-min-w-0 cds-items-center cds-gap-2",children:[p?n.jsx(dn,{glyph:p,className:"cds-h-6 cds-w-6 cds-shrink-0 cds-text-fg"}):null,n.jsx("span",{className:`cds-truncate ${u?"cds-text-fg":"cds-text-fg-muted"}`,children:u?u.label:"Select…"})]}),n.jsx(Wr,{"aria-hidden":"true",className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-fg-muted"})]})}),n.jsxs(Mt,{className:"cds-w-[min(30rem,calc(100vw-2rem))] cds-p-0",align:"start",children:[n.jsxs("div",{className:"cds-relative cds-border-b cds-border-border cds-p-2",children:[n.jsx(Ko,{"aria-hidden":"true",className:"cds-pointer-events-none cds-absolute cds-left-4 cds-top-1/2 cds-h-4 cds-w-4 -cds-translate-y-1/2 cds-text-fg-muted"}),n.jsx("input",{autoFocus:!0,type:"text",value:v,onChange:m=>d(m.target.value),placeholder:"Type to search…","aria-label":`Search ${r}`,className:`${F} cds-pl-9`})]}),h.length===0?n.jsx("p",{className:"cds-px-3 cds-py-6 cds-text-center cds-text-sm cds-text-fg-muted",children:"No matches"}):n.jsx("div",{role:"radiogroup","aria-label":r,className:"cds-grid cds-max-h-72 cds-grid-cols-2 cds-gap-2 cds-overflow-y-auto cds-p-2 sm:cds-grid-cols-3",children:h.map(m=>{let y=m.value===a,x=ln(t,m.value);return n.jsxs("button",{type:"button",role:"radio","aria-checked":y,onClick:()=>{c(m.value),f(!1),d("")},className:`${Fe} cds-flex-col cds-gap-1 cds-p-2.5 cds-text-center cds-text-xs cds-font-medium ${V} ${y?De:Le}`,children:[y?n.jsx(Qe,{}):null,x?n.jsx(dn,{glyph:x,className:"cds-h-8 cds-w-8 cds-text-fg"}):null,n.jsx("span",{className:"cds-leading-tight",children:m.label})]},m.value)})})]})]})},Ls=new Set(["Dontknow","Reject","None","NoCoverage","No_Coverage","NotAvailable"]),Su={personal_liability:"per occurrence",dwelling_medical_payments:"per person",policy_pd:"per accident",policy_mp:"per person",policy_umpd:"per accident",policy_pip:"per person",policy_auto_death_indemnity:"per person",policy_pip_deductible:"you pay per claim",extended_medical:"per person",vehicle_comp_deductible:"you pay per claim",vehicle_coll_deductible:"you pay per claim",vehicle_towing_and_labor:"per disablement",windstorm_deductible:"of your dwelling coverage"},Eu=new Set(["policy_pd","policy_mp","policy_umpd","policy_pip","policy_auto_death_indemnity","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor"]),Nu=/^([\d,]+)\s*\/\s*([\d,]+)$/,Pu=/^([\d,]+)\s*CSL$/i,Zt=e=>`$${e}${e.includes(",")?"":",000"}`,Au=(e,t)=>{let r=Nu.exec(t);if(r)return e==="vehicle_transportation_expense"?`$${r[1]??""}/day, up to $${r[2]??""}`:`${Zt(r[1]??"")} per person · ${Zt(r[2]??"")} per accident`;let s=Pu.exec(t);return s?`${Zt(s[1]??"")} combined single limit`:Su[e]},$u=(e,t)=>Ls.has(t.value)||!Eu.has(e)?t.label:/^[\d,]+$/.test(t.label)?`$${t.label}`:t.label,Rn=({fieldKey:e,label:t,options:r,value:s,invalid:a,describedBy:o,detailFor:i,onChange:c})=>{let{tabStop:l,onKeyDown:f,register:v}=Ze(r,s,c);return n.jsx("div",{role:"radiogroup","aria-label":t,"aria-invalid":a||void 0,"aria-describedby":o,className:"cds-grid cds-grid-cols-2 cds-gap-2 sm:cds-grid-cols-3",onKeyDown:f,children:r.map((d,h)=>{let u=d.value===s,p=Ls.has(d.value),m=p?void 0:i?.(d)??Au(e,d.label);return n.jsxs("button",{ref:v(h),type:"button",role:"radio","aria-checked":u,tabIndex:h===l?0:-1,onClick:()=>c(d.value),className:`${Fe} cds-flex-col cds-gap-0.5 cds-px-3 cds-py-2.5 cds-text-center ${V} ${u?De:`${Le} ${a?Xe:""}`} ${p&&!u?"cds-border-dashed":""}`,children:[u?n.jsx(Qe,{}):null,n.jsx("span",{className:p?"cds-text-sm cds-font-semibold cds-text-fg-muted":"cds-text-base cds-font-bold cds-text-fg",children:$u(e,d)}),m?n.jsx("span",{className:"cds-text-[11px] cds-font-normal cds-leading-tight cds-text-fg-muted",children:m}):null]},d.value)})})},ke=e=>String(e??"").replace(/\D/g,""),Ru=({id:e,label:t,value:r,config:s,invalid:a,describedBy:o,onChange:i})=>{let c=ke(r),l=c===""?null:Number(c),f=g.useRef(!1);g.useEffect(()=>{f.current||(f.current=!0,l===null&&i(s.min))},[l,s.min,i]);let v=h=>{if(l===null){i(s.min);return}i(Math.min(s.max,Math.max(s.min,l+h)))},d=`cds-flex cds-h-11 cds-w-11 cds-shrink-0 cds-items-center cds-justify-center cds-rounded-lg cds-border-2 cds-border-border-strong cds-bg-surface-elevated cds-text-fg cds-transition-colors hover:cds-border-accent hover:cds-bg-highlight disabled:cds-cursor-not-allowed disabled:cds-opacity-40 disabled:hover:cds-border-border-strong disabled:hover:cds-bg-surface-elevated ${V}`;return n.jsxs("div",{className:"cds-flex cds-items-center cds-gap-3",children:[n.jsx("button",{type:"button",onClick:()=>v(-1),disabled:l!==null&&l<=s.min,"aria-label":`Decrease ${t}`,className:d,children:n.jsx(Lo,{"aria-hidden":"true",className:"cds-h-5 cds-w-5"})}),n.jsx("input",{id:e,type:"text",inputMode:"numeric","aria-label":t,"aria-invalid":a||void 0,"aria-describedby":o,value:c,onFocus:h=>h.target.select(),onChange:h=>{let u=ke(h.target.value);i(u===""?"":Number(u))},className:`cds-h-11 cds-w-full cds-min-w-0 cds-rounded-lg cds-border-2 cds-bg-surface-elevated cds-text-center cds-text-lg cds-font-bold cds-text-fg focus:cds-border-primary focus:cds-outline-none focus:cds-ring-2 focus:cds-ring-ring/40 ${a?"cds-border-destructive":"cds-border-border-strong"}`}),n.jsx("button",{type:"button",onClick:()=>v(1),disabled:l!==null&&l>=s.max,"aria-label":`Increase ${t}`,className:d,children:n.jsx(Kr,{"aria-hidden":"true",className:"cds-h-5 cds-w-5"})})]})},Ou=200,Tu="cds-h-3 cds-w-full cds-cursor-pointer cds-appearance-none cds-rounded-full focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring focus-visible:cds-ring-offset-2 [&::-webkit-slider-thumb]:cds-h-7 [&::-webkit-slider-thumb]:cds-w-7 [&::-webkit-slider-thumb]:cds-appearance-none [&::-webkit-slider-thumb]:cds-rounded-full [&::-webkit-slider-thumb]:cds-border-4 [&::-webkit-slider-thumb]:cds-border-solid [&::-webkit-slider-thumb]:cds-border-surface-elevated [&::-webkit-slider-thumb]:cds-bg-accent [&::-webkit-slider-thumb]:cds-shadow-md [&::-webkit-slider-thumb]:cds-cursor-grab [&::-webkit-slider-thumb]:active:cds-cursor-grabbing [&::-moz-range-thumb]:cds-h-7 [&::-moz-range-thumb]:cds-w-7 [&::-moz-range-thumb]:cds-rounded-full [&::-moz-range-thumb]:cds-border-4 [&::-moz-range-thumb]:cds-border-solid [&::-moz-range-thumb]:cds-border-surface-elevated [&::-moz-range-thumb]:cds-bg-accent [&::-moz-range-thumb]:cds-shadow-md [&::-moz-range-thumb]:cds-cursor-grab",Is=(e,t)=>t?e.toLocaleString("en-US"):String(e),Tr=(e,{currency:t,grouped:r=!0,unit:s})=>{let a=Is(e,r);return t?`$${a}`:s?`${a} ${s}`:a},Vs=({id:e,label:t,value:r,config:s,invalid:a,describedBy:o,onChange:i})=>{let[c,l]=g.useState(()=>ke(r)),f=g.useRef(!1),v=g.useRef(void 0);g.useEffect(()=>()=>clearTimeout(v.current),[]),g.useEffect(()=>{f.current||l(ke(r))},[r]);let d=g.useRef(!1);g.useEffect(()=>{d.current||(d.current=!0,!(s.openBlank||ke(r)!=="")&&i(s.min))},[s.openBlank,s.min,i,r]);let h=x=>{l(x),f.current=!0,clearTimeout(v.current),v.current=setTimeout(()=>{f.current=!1,i(x===""?"":Number(x))},Ou)},u=c===""?s.min:Number(c),p=Math.min(s.max,Math.max(s.min,u)),m=(p-s.min)/(s.max-s.min)*100,y=!s.hardMax&&u<=s.max;return n.jsxs("div",{children:[n.jsx("div",{className:"cds-mb-2 cds-flex cds-justify-center",children:n.jsxs("div",{className:"cds-relative",children:[s.currency?n.jsx("span",{"aria-hidden":"true",className:`cds-absolute cds-left-3 cds-top-1/2 -cds-translate-y-1/2 cds-font-extrabold cds-text-fg ${s.lead?"cds-text-2xl":"cds-text-xl"}`,children:"$"}):null,n.jsx("input",{id:e,type:"text",inputMode:"numeric","aria-label":t,"aria-invalid":a||void 0,"aria-describedby":o,value:c===""?"":Is(u,s.grouped??!0),onFocus:x=>x.target.select(),onChange:x=>h(ke(x.target.value).slice(0,9)),className:`cds-rounded-lg cds-border-2 cds-bg-surface-elevated cds-py-2 cds-pr-3 cds-text-center cds-font-extrabold cds-text-fg focus:cds-border-primary focus:cds-outline-none focus:cds-ring-2 focus:cds-ring-ring/40 ${s.lead?"cds-w-48 cds-text-2xl":"cds-w-44 cds-text-xl"} ${s.currency?"cds-pl-8":"cds-pl-3"} ${a?"cds-border-destructive":"cds-border-border-strong"}`}),s.unit&&!s.currency?n.jsx("span",{"aria-hidden":"true",className:"cds-absolute cds-right-3 cds-top-1/2 -cds-translate-y-1/2 cds-text-xs cds-font-semibold cds-text-fg-muted",children:s.unit}):null]})}),n.jsx("input",{type:"range","aria-label":`${t} slider`,min:s.min,max:s.max,step:s.step,value:p,"aria-describedby":o,onChange:x=>h(x.target.value),className:Tu,style:{background:`linear-gradient(to right, hsl(var(--cds-accent)) ${m}%, hsl(var(--cds-border)) ${m}%)`}}),n.jsxs("div",{className:"cds-flex cds-justify-between cds-text-xs cds-text-fg-muted",children:[n.jsx("span",{children:Tr(s.min,s)}),n.jsxs("span",{children:[Tr(s.max,s),y?"+":""]})]})]})},we=[{label:"Before 1940",from:1800,to:1939},{label:"1940s–50s",from:1940,to:1959},{label:"1960s–70s",from:1960,to:1979},{label:"1980s–90s",from:1980,to:1999},{label:"2000s",from:2e3,to:2009},{label:"2010 or newer",from:2010,to:new Date().getFullYear()}],Fu=e=>{if(!Number.isFinite(e)||e<=0)return-1;let t=we.findIndex(s=>e>=s.from&&e<=s.to);if(t>=0)return t;let r=we[0];return r&&e<r.from?0:we.length-1},Du=({id:e,label:t,value:r,invalid:s,describedBy:a,onChange:o})=>{let i=Number(ke(r)),c=Fu(i),l=g.useMemo(()=>we.map((p,m)=>({value:String(m),label:p.label})),[]),f=p=>{let m=we[p];m&&!(i>=m.from&&i<=m.to)&&o(m.to)},{tabStop:v,onKeyDown:d,register:h}=Ze(l,c>=0?String(c):"",p=>f(Number(p))),u=c>=0?we[c]:void 0;return n.jsxs("div",{children:[n.jsx("div",{role:"radiogroup","aria-label":`${t} — period`,"aria-invalid":s||void 0,"aria-describedby":a,className:"cds-grid cds-grid-cols-2 cds-gap-2 sm:cds-grid-cols-3",onKeyDown:d,children:we.map((p,m)=>{let y=m===c;return n.jsxs("button",{ref:h(m),type:"button",role:"radio","aria-checked":y,tabIndex:m===v?0:-1,onClick:()=>f(m),className:`${Fe} cds-px-2 cds-py-2.5 cds-text-center cds-text-xs cds-font-semibold ${V} ${y?De:`${Le} ${s?Xe:""}`}`,children:[y?n.jsx(Qe,{}):null,n.jsx("span",{children:p.label})]},p.label)})}),u?n.jsx("div",{className:"cds-mt-3",children:n.jsx(Vs,{id:e,label:t,value:r,config:{min:u.from,max:u.to,step:1,currency:!1,grouped:!1,hardMax:!0},invalid:s,describedBy:a,onChange:o})}):null]})},Lu=12,Iu=new Date().getFullYear(),Vu=new Set(["personal_liability","dwelling_medical_payments","windstorm_deductible","all_perils_deductible","auto_prior_liability_limit","policy_bi","policy_um","policy_pd","policy_mp","policy_umpd","policy_pip","policy_auto_death_indemnity","policy_pip_deductible","extended_medical","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor","vehicle_transportation_expense"]),Bu=new Set(["tort_threshold","pip_coverage_type"]),ct={min:1900,max:Iu,step:1,currency:!1,grouped:!1,hardMax:!0,minFromKey:"year_built",openBlank:!0},Hu={dwelling_replacement_cost:{min:1e5,max:2e6,step:5e3,currency:!0,lead:!0,openBlank:!0},total_area_sq_ft:{min:500,max:6e3,step:50,currency:!1,unit:"sq ft"},annual_mileage:{min:1e3,max:5e4,step:500,currency:!1,unit:"mi/yr"},miles_to_work:{min:1,max:100,step:1,currency:!1,unit:"mi"},year_roof_updated:ct,heating_update_year:ct,plumbing_update_year:ct,electrical_update_year:ct},zu={household_size:{min:1,max:8},number_of_dogs:{min:0,max:99},number_of_units:{min:1,max:99},number_of_families:{min:1,max:5},number_of_units_in_firewall:{min:0,max:99},number_of_mortgagees:{min:0,max:3},number_of_parking_spaces:{min:1,max:3},years_at_address:{min:0,max:100},months_at_address:{min:0,max:11},years_at_prior_address:{min:0,max:100},auto_prior_years:{min:0,max:99},auto_prior_months:{min:0,max:11},auto_continuous_coverage_years:{min:0,max:99},home_prior_years:{min:0,max:99},home_continuous_coverage_years:{min:0,max:99}},Wu=new Set(["social_security_number","vin","date_of_birth","co_applicant_date_of_birth","additional_pip"]),qu=e=>e.length===2&&e.every(t=>t.value==="Yes"||t.value==="No"),Uu=(e,t,r=!1)=>{let s=e.key;if(!Wu.has(s)){if(e.inputType==="number"){let a=Hu[s];if(a)return{kind:"slider",config:a};let o=zu[s];return o?{kind:"stepper",config:o}:s==="year_built"?{kind:"eraYear"}:void 0}if((e.inputType==="select"||e.inputType==="radio")&&!(r||t.length===0)){if(Vu.has(s))return{kind:"amountCards"};if(Bu.has(s))return{kind:"choiceCards"};if(qu(t))return{kind:"yesNo"};if(Ds(s))return t.length>Lu?{kind:"illustrated"}:{kind:"iconCards"}}}},Fr=e=>{let t=String(e??"").replace(/\D/g,"");if(!t)return;let r=Number(t);return Number.isFinite(r)?r:void 0},Ku=(e,t)=>{let r=e.minFromKey?Fr(t[e.minFromKey]):void 0,s=e.maxFromKey?Fr(t[e.maxFromKey]):void 0,a=r!==void 0&&r>=1800?r:e.min,o=s!==void 0&&s>0?s:e.max;return o-a<e.step?e:{...e,min:a,max:o}},Yu=({spec:e,id:t,question:r,options:s,value:a,values:o,invalid:i,describedBy:c,onChange:l,label:f})=>{let v=f??r.question,d=a==null?"":String(a),h={fieldKey:r.key,label:v,options:s,value:d,invalid:i,describedBy:c,onChange:l};switch(e.kind){case"iconCards":return n.jsx(wu,{...h});case"yesNo":return n.jsx(ju,{...h});case"illustrated":return n.jsx(Cu,{id:t,...h});case"amountCards":return n.jsx(Rn,{...h});case"choiceCards":return n.jsx(Mu,{...h});case"stepper":return n.jsx(Ru,{id:t,label:v,value:a,config:e.config,invalid:i,describedBy:c,onChange:l});case"slider":return n.jsx(Vs,{id:t,label:v,value:a,config:Ku(e.config,o),invalid:i,describedBy:c,onChange:l});case"eraYear":return n.jsx(Du,{id:t,label:v,value:a,invalid:i,describedBy:c,onChange:l});default:return null}},Gu=25,Bs="cds-mt-1 cds-text-xs cds-font-medium cds-text-destructive",gt=({id:e,message:t})=>t?n.jsx("p",{id:e,className:Bs,role:"alert",children:t}):null,Xu=({id:e,label:t,value:r,options:s,invalid:a,describedBy:o,onChange:i,onOpen:c})=>{let[l,f]=g.useState(!1),[v,d]=g.useState(""),h=g.useMemo(()=>{let p=v.trim().toLowerCase();return p?s.filter(m=>m.label.toLowerCase().includes(p)).slice(0,200):s.slice(0,200)},[s,v]),u=s.find(p=>p.value===r);return n.jsxs(An,{open:l,onOpenChange:p=>{f(p),p?c?.():d("")},children:[n.jsx($n,{asChild:!0,children:n.jsxs("button",{type:"button",id:e,"aria-label":t,"aria-invalid":a||void 0,"aria-describedby":o,className:`${F} cds-flex cds-items-center cds-justify-between cds-text-left ${a?"cds-border-destructive":""} ${V}`,children:[n.jsx("span",{className:u?"cds-text-fg":"cds-text-fg-muted",children:u?u.label:"Select…"}),n.jsx(Wr,{"aria-hidden":"true",className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-fg-muted"})]})}),n.jsxs(Mt,{className:"cds-w-[min(28rem,calc(100vw-2rem))] cds-p-0",align:"start",children:[n.jsx("div",{className:"cds-border-b cds-border-border cds-p-2",children:n.jsx("input",{autoFocus:!0,type:"text",value:v,onChange:p=>d(p.target.value),placeholder:"Type to search…","aria-label":`Search ${t}`,className:F})}),n.jsx("ul",{className:"cds-max-h-64 cds-overflow-y-auto cds-py-1",role:"listbox","aria-label":t,children:h.length===0?n.jsx("li",{className:"cds-px-3 cds-py-2 cds-text-sm cds-text-fg-muted",children:"No matches"}):h.map(p=>n.jsx("li",{children:n.jsx("button",{type:"button",role:"option","aria-selected":p.value===r,onClick:()=>{i(p.value),f(!1),d("")},className:`cds-block cds-w-full cds-px-3 cds-py-2 cds-text-left cds-text-sm hover:cds-bg-highlight ${p.value===r?"cds-bg-highlight cds-font-semibold cds-text-fg":"cds-text-fg"}`,children:p.label})},p.value))})]})]})},Qu=({id:e,label:t,value:r,options:s,invalid:a,describedBy:o,onChange:i,onOpen:c})=>n.jsxs("select",{id:e,value:r,"aria-label":t,"aria-invalid":a||void 0,"aria-describedby":o,onFocus:c,onChange:l=>i(l.target.value),className:`${F} ${a?"cds-border-destructive":""}`,children:[n.jsx("option",{value:"",children:"Select…"}),s.map(l=>n.jsx("option",{value:l.value,children:l.label},l.value))]}),Zu=({label:e,value:t,options:r,invalid:s,describedBy:a,onChange:o})=>n.jsx("div",{role:"radiogroup","aria-label":e,"aria-invalid":s||void 0,"aria-describedby":a,className:"cds-flex cds-flex-wrap cds-gap-2",children:r.map(i=>{let c=i.value===t;return n.jsx("button",{type:"button",role:"radio","aria-checked":c,onClick:()=>o(i.value),className:`cds-min-w-[5.5rem] cds-flex-1 cds-rounded-lg cds-border cds-px-4 cds-py-2.5 cds-text-sm cds-font-semibold cds-transition-colors ${V} ${c?"cds-border-accent cds-bg-highlight cds-text-fg":`border-gray-400 bg-white text-gray-700 hover:border-brand-accent/60 ${s?"cds-border-destructive":""}`}`,children:i.label},i.value)})}),Ju=(e,t)=>{if(e.key==="occupation"||e.key==="co_applicant_occupation"){let r=e.key==="occupation"?t.industry??t.employment_industry:t.co_applicant_employment_industry,s=oa(r);return s?s.map(a=>({value:a,label:ia(a)})):[]}return ca(e.key,e.options)},Dr={dwelling_replacement_cost:"Cost to rebuild your home",all_perils_deductible:"Deductible"},Jt={dwelling_replacement_cost:"We start you off at your purchase price. Adjust it to what rebuilding would cost today — not the market value, and not necessarily what you paid. Higher-value home? Type the amount directly.",all_perils_deductible:"What you pay out of pocket on a claim before insurance kicks in.",additional_pip:"Extra cover for lost income and essential services after an injury. Pick the weekly benefit, and whether what it pays in total is capped."},eh=e=>`$${e.toLocaleString("en-US")}`,th=e=>String(e??"").replace(/\D/g,""),Lr=e=>e.endsWith("Percent"),nh={OnePercent:1,TwoPercent:2,ThreePercent:3,FourPercent:4,FivePercent:5},rh="OneThousand",sh="OnePercent",ah=({label:e,value:t,options:r,dwelling:s,hint:a,error:o,onChange:i})=>{let c=`deductible-${g.useId()}`,l=a?`${c}-hint`:void 0,f=o?`${c}-error`:void 0,v=Lr(t),d=Number(th(s)),h=r.filter(m=>Lr(m.value)===v),u=m=>{let y=nh[m.value];return!v||!y||!d?void 0:`of coverage (about ${eh(Math.round(d*y/100/500)*500)})`},p=m=>`px-3 py-1.5 transition-colors ${m?"cds-bg-primary cds-text-primary-foreground":"cds-bg-surface-elevated cds-text-fg-muted hover:cds-bg-surface-muted"} ${V}`;return n.jsxs("div",{className:"cds-mb-4",children:[n.jsxs("div",{className:"cds-mb-1 cds-flex cds-items-center cds-justify-between",children:[n.jsx("span",{className:"cds-text-sm cds-font-semibold cds-text-fg",children:e}),n.jsxs("div",{role:"group","aria-label":"Deductible type",className:"cds-flex cds-overflow-hidden cds-rounded-lg cds-border cds-border-input cds-text-xs cds-font-semibold",children:[n.jsx("button",{type:"button","aria-pressed":!v,onClick:()=>v&&i(rh),className:p(!v),children:"Dollar amount"}),n.jsx("button",{type:"button","aria-pressed":v,onClick:()=>!v&&i(sh),className:p(v),children:"% of coverage"})]})]}),n.jsx(Rn,{fieldKey:"all_perils_deductible",label:typeof e=="string"?e:"Deductible",value:t,options:h,invalid:!!o,describedBy:[l,f].filter(Boolean).join(" ")||void 0,detailFor:u,onChange:i}),a?n.jsx("p",{id:l,className:"cds-mt-1.5 cds-text-xs cds-text-fg-muted",children:a}):null,n.jsx(gt,{id:f??"",message:o})]})},oh=/^cov(\d+)(?:_(\d+))?_(LIMITED|UNLIMITED)$/,He=e=>{let t=oh.exec(e);if(t)return{weekly:t[1]??"",aggregate:t[2],capped:t[3]==="LIMITED"}},ih=({label:e,name:t,value:r,options:s,hint:a,error:o,onChange:i})=>{let c=`additional-pip-${g.useId()}`,l=a?`${c}-hint`:void 0,f=o?`${c}-error`:void 0,v=He(r),d=!v||v.capped,h=s.flatMap(y=>{let x=He(y.value);return!x||x.capped!==d?[]:[{value:y.value,label:`$${x.weekly}/wk`}]}),u=y=>{let x=He(y.value);if(x)return x.aggregate?`up to $${Number(x.aggregate).toLocaleString("en-US")} in total`:"no cap on the total"},p=y=>{if(y===d)return;let x=s.find(w=>{let j=He(w.value);return j?.capped===y&&j.weekly===v?.weekly}),b=s.find(w=>He(w.value)?.capped===y),k=x??b;k&&i(k.value)},m=y=>`px-3 py-1.5 transition-colors ${y?"cds-bg-primary cds-text-primary-foreground":"cds-bg-surface-elevated cds-text-fg-muted hover:cds-bg-surface-muted"} ${V}`;return n.jsxs("div",{className:"cds-mb-4",children:[n.jsxs("div",{className:"cds-mb-1 cds-flex cds-items-center cds-justify-between cds-gap-2",children:[n.jsx("span",{className:"cds-text-sm cds-font-semibold cds-text-fg",children:e}),n.jsxs("div",{role:"group","aria-label":"Total benefit",className:"cds-flex cds-shrink-0 cds-overflow-hidden cds-rounded-lg cds-border cds-border-input cds-text-xs cds-font-semibold",children:[n.jsx("button",{type:"button","aria-pressed":d,onClick:()=>p(!0),className:m(d),children:"Capped total"}),n.jsx("button",{type:"button","aria-pressed":!d,onClick:()=>p(!1),className:m(!d),children:"Unlimited total"})]})]}),n.jsx(Rn,{fieldKey:"additional_pip",label:t,value:r,options:h,invalid:!!o,describedBy:[l,f].filter(Boolean).join(" ")||void 0,detailFor:u,onChange:i}),a?n.jsx("p",{id:l,className:"cds-mt-1.5 cds-text-xs cds-text-fg-muted",children:a}):null,n.jsx(gt,{id:f??"",message:o})]})},Hs=({question:e,value:t,error:r,values:s,onChange:a,asyncSelect:o,vinDecode:i,required:c})=>{let l=g.useId(),f=`q-${e.key}-${l}`,v=r?`${f}-error`:void 0,d=e.hint?`${f}-hint`:void 0,h=i?.error?`${f}-vin-error`:void 0,u=[d,v,h].filter(Boolean).join(" ")||void 0,p=Dr[e.key]??e.question,m=n.jsxs(n.Fragment,{children:[p,c?null:n.jsx("span",{className:"cds-ml-1 cds-font-normal cds-text-fg-muted",children:"(optional)"})]}),y=t==null?"":String(t),x=g.useMemo(()=>{let _=o?.options??Ju(e,s);return!o||!y||_.some(M=>M.value===y)?_:[{value:y,label:y},..._]},[o,e,s,y]);if(e.inputType==="checkbox")return n.jsxs("div",{className:"cds-mb-2",children:[n.jsx(md,{label:e.question,checked:t===!0,onChange:_=>a(_)}),n.jsx(gt,{id:v??"",message:r})]});if(e.key==="all_perils_deductible")return n.jsx(ah,{label:Dr.all_perils_deductible,value:y,options:x,dwelling:s.dwelling_replacement_cost,hint:Jt.all_perils_deductible,error:r,onChange:a});if(e.key==="additional_pip")return n.jsx(ih,{label:m,name:p,value:y,options:x,hint:Jt.additional_pip,error:r,onChange:a});let b=_=>{if(e.key==="social_security_number")return n.jsx("input",{id:_,type:"text",inputMode:"numeric",autoComplete:"off",maxLength:11,value:ua(y),"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:C=>a(ha(fa(y,C.target.value))),placeholder:"XXX-XX-XXXX",className:`${F} ${r?"cds-border-destructive":""}`});if(e.key==="vin"&&i){let C=Ir(y);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"cds-flex cds-items-start cds-gap-2",children:[n.jsx("input",{id:_,type:"text",value:y,maxLength:17,autoComplete:"off","aria-invalid":!!r||void 0,"aria-describedby":u,onChange:N=>a(N.target.value),className:`${F} ${r?"cds-border-destructive":""}`}),n.jsx("button",{type:"button",disabled:!C||i.loading,onClick:()=>i.run(y),className:`cds-shrink-0 cds-whitespace-nowrap cds-rounded-lg cds-border cds-border-accent cds-bg-surface-elevated cds-px-4 cds-py-2.5 cds-text-sm cds-font-bold cds-text-fg hover:cds-bg-highlight disabled:cds-cursor-not-allowed disabled:cds-opacity-50 disabled:hover:cds-bg-surface-elevated ${V}`,children:i.loading?"Looking up…":"Verify VIN"})]}),i.error?n.jsx("p",{id:h,className:Bs,role:"alert",children:i.error}):null]})}let M=Uu(e,x,!!o);if(M)return Yu({spec:M,id:_,question:e,options:x,value:t,values:s,invalid:!!r,describedBy:u,onChange:a,label:p});switch(e.inputType){case"radio":return n.jsx(Zu,{label:e.question,value:y,options:x,invalid:!!r,describedBy:u,onChange:a});case"select":return o?.loading&&!x.length?n.jsx("div",{className:`${F} cds-text-fg-muted`,"aria-live":"polite",children:"Loading options…"}):x.length?x.length>Gu?n.jsx(Xu,{id:_,label:e.question,value:y,options:x,invalid:!!r,describedBy:u,onChange:a,onOpen:o?.activate}):n.jsx(Qu,{id:_,label:e.question,value:y,options:x,invalid:!!r,describedBy:u,onChange:a,onOpen:o?.activate}):n.jsx("input",{id:_,type:"text",value:y,"aria-label":e.question,"aria-describedby":u,onFocus:o?.activate,onChange:C=>a(C.target.value),placeholder:"Type your answer",className:F});case"date":return e.key==="date_of_birth"||e.key==="co_applicant_date_of_birth"?n.jsx(ud,{id:_,hintId:u,value:y,onChange:C=>a(C)}):n.jsx("input",{id:_,type:"date",value:y,"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:C=>a(C.target.value),className:`${F} ${r?"cds-border-destructive":""}`});case"number":{let C=La(e.key);return n.jsx("input",{id:_,type:"text",inputMode:"numeric",value:C?Ia(t,Va(e.key)):y,"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:N=>{let A=N.target.value.replace(/[^\d]/g,"");a(A===""?"":Number(A))},className:`${F} ${r?"cds-border-destructive":""}`})}case"tel":return n.jsx("input",{id:_,type:"tel",inputMode:"tel",autoComplete:"tel",value:Ln(y),"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:C=>a(Ln(C.target.value)),placeholder:"(512) 555-0134",className:`${F} ${r?"cds-border-destructive":""}`});case"email":return n.jsx("input",{id:_,type:"email",inputMode:"email",autoComplete:"email",value:y,"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:C=>a(C.target.value),placeholder:"you@example.com",className:`${F} ${r?"cds-border-destructive":""}`});case"password":return n.jsx("input",{id:_,type:"password",autoComplete:"off",value:y,"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:C=>a(C.target.value),className:`${F} ${r?"cds-border-destructive":""}`});case"textarea":return n.jsx("textarea",{id:_,rows:3,value:y,"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:C=>a(C.target.value),className:`${F} ${r?"cds-border-destructive":""}`});default:return n.jsx("input",{id:_,type:"text",value:y,"aria-invalid":!!r||void 0,"aria-describedby":u,onChange:C=>a(C.target.value),className:`${F} ${r?"cds-border-destructive":""}`})}},k=Ua(e.key),w=Jt[e.key]??e.hint,j=e.key==="social_security_number"&&Ea(s)?[`${String(s.ssn_display).trim()}. Re-enter to update.`,w].filter(Boolean).join(" "):k===null?w:[w,`Typically ${k}% of your rebuild cost. Change it if needed.`].filter(Boolean).join(" ");return n.jsx(un,{label:m,hint:j,children:({id:_})=>n.jsxs(n.Fragment,{children:[b(_),n.jsx(gt,{id:v??"",message:r})]})})},Ih=ea({QuestionList:()=>kh}),ch={vehicles:{singular:"vehicle",plural:"Vehicles"},drivers:{singular:"driver",plural:"Drivers"},driver_accidents:{singular:"accident",plural:"Accidents"},driver_violations:{singular:"violation",plural:"Violations"},losses:{singular:"loss",plural:"Losses"},home_losses:{singular:"loss",plural:"Losses"}},lh=e=>ch[e]??{singular:"entry",plural:"Entries"},dh=[{heading:"Your current coverage",caption:"What you have today. Carriers rate on this history.",keys:new Set(["auto_prior_carrier_name","auto_prior_years","auto_prior_months","auto_continuous_coverage_years","auto_prior_expiration_date","auto_reason_for_no_insurance","auto_prior_liability_limit","auto_cancelled_declined_refused_to_renew"])},{heading:"Select your coverages",caption:"The limits on the policy you are quoting now.",keys:new Set(["policy_bi","policy_um","policy_pd","policy_mp","policy_umpd","policy_pip","policy_auto_death_indemnity","policy_pip_deductible","additional_pip","tort_threshold","pip_coverage_type","extended_medical"])},{heading:"Select your coverages for each vehicle",caption:"Deductibles and extras, per vehicle.",keys:new Set([Pa])}],uh=({heading:e,caption:t})=>n.jsxs("div",{className:"cds-mb-3 cds-mt-6 cds-border-t cds-border-border cds-pt-4 first:cds-mt-0 first:cds-border-t-0 first:cds-pt-0",children:[n.jsx("h3",{className:"cds-text-base cds-font-bold cds-text-fg",children:e}),n.jsx("p",{className:"cds-mt-0.5 cds-text-sm cds-text-fg-muted",children:t})]}),hh=e=>(e??[]).map(t=>({value:t,label:t})),fh=(e,t)=>{let[r,s]=g.useState({}),[a,o]=g.useState({}),i=g.useRef(new Set),c=g.useRef(Promise.resolve()),l=e.year?String(e.year):"",f=e.make?String(e.make):"",v=e.model?String(e.model):"",d=e.body_style?String(e.body_style):"",h=l?`make:${l}`:"",u=l&&f?`model:${l}|${f}`:"",p=l&&f&&v?`body:${l}|${f}|${v}`:"",m=g.useCallback((x,b,k)=>{!x||!t||i.current.has(x)||(i.current.add(x),o(w=>({...w,[x]:!0})),c.current=c.current.then(()=>la(b,t)).then(w=>{s(j=>({...j,[x]:hh(k(w))}))}).catch(()=>{s(w=>({...w,[x]:[]}))}).finally(()=>{o(w=>{let j={...w};return delete j[x],j})}))},[t]),y=g.useCallback(x=>{x==="make"?m(h,{year:l},b=>b.makes):x==="model"?m(u,{year:l,make:f},b=>b.models):m(p,{year:l,make:f,model:v},b=>b.bodyStyles)},[m,h,u,p,l,f,v]);return g.useEffect(()=>{l&&(f?v?d||y("body_style"):y("model"):y("make"))},[l,f,v,d,y]),{options:{make:r[h],model:r[u],body_style:r[p]},loading:{make:!!a[h],model:!!a[u],body_style:!!a[p]},ensure:y}},ph=(e,t)=>{let[r,s]=g.useState(!1),[a,o]=g.useState(void 0);return{run:g.useCallback(i=>{!e||r||!Ir(i)||(s(!0),o(void 0),da(i.trim().toUpperCase(),e).then(c=>{if(c.error){o(c.error);return}let l={};if(c.year&&(l.year=String(c.year)),c.make&&(l.make=c.make),c.model&&(l.model=c.model),c.bodyStyle&&(l.body_style=c.bodyStyle),!Object.keys(l).length){o("We couldn't read that VIN — please pick the vehicle details below.");return}t(l)}).catch(()=>o("VIN lookup failed — please pick the vehicle details below.")).finally(()=>s(!1)))},[e,r,t]),loading:r,error:a}},mh=(e,t,r,s)=>{let a=Ca(t,"drivers"),o=g.useCallback(i=>Br({kind:e,source:a[i]??{},targetQuestions:r}),[e,a,r]);return{candidates:g.useMemo(()=>za(t,{exclude:s}).filter(i=>Object.keys(o(i.index)).length>0),[t,o,s]),patchFor:o}},vh=({values:e,targetQuestions:t,onPatch:r})=>{let s=ya(e),{candidates:a,patchFor:o}=mh("coApplicant",e,t,g.useCallback((i,c)=>c===s,[s]));return a.length?n.jsx(Ha,{heading:"Is the co-applicant one of your drivers?",body:"We'll reuse their name, date of birth and details from the driver you entered.",applyLabel:"Use these details",candidates:a,onApply:i=>{let c=o(i);return r(c),Object.keys(c).length}}):null},gh=({entry:e,rootValues:t,targetQuestions:r,onPatch:s})=>{let a=g.useMemo(()=>Br({kind:"driverFromApplicant",source:t,targetQuestions:r}),[t,r]),o=Wa(t);return xa(t)||!ba(e)||!Object.keys(a).length?null:n.jsxs("button",{type:"button",onClick:()=>s(a),className:`cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-fg hover:cds-bg-highlight ${V}`,children:[n.jsx(qa,{"aria-hidden":"true",className:"cds-h-3.5 cds-w-3.5"}),o?`This is me (${o})`:"This is me"]})},yh=({groupKey:e,itemQuestions:t,items:r,rootValues:s,stageKey:a,quoteId:o,itemErrors:i,onChange:c})=>{let{singular:l,plural:f}=lh(e),v=(h,u)=>{c(r.map((p,m)=>m===h?{...p,...u}:p))},d=h=>{c(r.filter((u,p)=>p!==h))};return n.jsxs("section",{className:"cds-mb-6 cds-rounded-xl cds-border cds-border-border cds-bg-surface-muted/60 cds-p-4",children:[n.jsx("h3",{className:"cds-mb-3 cds-text-sm cds-font-bold cds-uppercase cds-tracking-wide cds-text-fg",children:f}),r.map((h,u)=>n.jsx(xh,{index:u,singular:l,groupKey:e,item:h,itemQuestions:t,rootValues:s,stageKey:a,quoteId:o,errors:i.find(p=>p.index===u)?.errorsByKey??{},canRemove:r.length>1||e!=="drivers",onPatch:p=>v(u,p),onRemove:()=>d(u)},u)),n.jsxs("button",{type:"button",onClick:()=>c([...r,{}]),className:`cds-inline-flex cds-items-center cds-gap-1.5 cds-rounded-lg cds-border cds-border-accent cds-bg-surface-elevated cds-px-4 cds-py-2 cds-text-sm cds-font-bold cds-text-fg hover:cds-bg-highlight ${V}`,children:[n.jsx(Kr,{"aria-hidden":"true",className:"cds-h-4 cds-w-4"}),"Add ",r.length?`another ${l}`:l]})]})},xh=({index:e,singular:t,groupKey:r,item:s,itemQuestions:a,rootValues:o,stageKey:i,quoteId:c,errors:l,canRemove:f,onPatch:v,onRemove:d})=>{let h=r==="vehicles",u=fh(h?s:{},c),p=ph(c,v),m=g.useMemo(()=>Sa(a,s,o,i,e),[a,s,o,i,e]),y=g.useMemo(()=>new Set(m.map(x=>x.key)),[m]);return n.jsxs("div",{className:"cds-mb-4 cds-rounded-lg cds-border cds-border-border cds-bg-surface-elevated cds-p-4",children:[n.jsxs("div",{className:"cds-mb-3 cds-flex cds-items-center cds-justify-between",children:[n.jsxs("h4",{className:"cds-text-sm cds-font-bold cds-text-fg",children:[t.charAt(0).toUpperCase()+t.slice(1)," ",e+1]}),r==="drivers"&&e===0?n.jsx(gh,{entry:s,rootValues:o,targetQuestions:m,onPatch:v}):null,f?n.jsxs("button",{type:"button",onClick:d,className:`cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-destructive hover:cds-bg-destructive/10 ${V}`,children:[n.jsx(oi,{"aria-hidden":"true",className:"cds-h-3.5 cds-w-3.5"}),"Remove"]}):null]}),n.jsx(zs,{questions:a,values:s,rootValues:o,visibleKeys:y,errors:l,itemErrors:[],stageKey:i,quoteId:c,cascade:h?u:void 0,vinDecode:h&&c?p:void 0,onPatch:v})]})},bh=({vehicles:e,drivers:t,assignments:r,state:s,itemErrors:a,onChange:o,onAssign:i})=>{let c=g.useMemo(()=>$a(s),[s]),l=t.length>1;if(!e.length)return n.jsx("p",{className:"cds-mb-4 cds-text-sm cds-text-fg-muted",children:"Add a vehicle first to choose its coverage."});let f=(v,d,h)=>{o(e.map((u,p)=>p===v?{...u,[d]:h}:u))};return n.jsx("div",{className:"cds-mb-4",children:e.map((v,d)=>{let h=Ra(v,d),u=a.find(m=>m.index===d)?.errorsByKey??{},p=u[Vr];return n.jsxs("fieldset",{className:`cds-mb-4 cds-rounded-lg cds-border cds-bg-surface-elevated cds-p-4 last:cds-mb-0 ${p?"cds-border-destructive":"cds-border-border"}`,children:[n.jsx("legend",{className:"cds-px-1 cds-text-sm cds-font-bold cds-text-fg",children:h}),Oa.map(m=>n.jsx(Hs,{question:{question:Ta[m],key:m,required:!0,inputType:"select",options:c[m]},required:!0,value:v[m],error:u[m],values:v,onChange:y=>f(d,m,y)},m)),l?n.jsxs("div",{className:"cds-mt-2 cds-border-t cds-border-border cds-pt-3",children:[n.jsxs("p",{className:"cds-mb-2 cds-text-sm cds-font-semibold cds-text-fg",children:["Who drives this one? ",n.jsx("span",{className:"cds-font-normal cds-text-fg-muted",children:"(share of use, totalling 100%)"})]}),n.jsx("div",{className:"cds-flex cds-flex-wrap cds-gap-3",children:t.map((m,y)=>{let x=[m.first_name,m.last_name].filter(Boolean).join(" ")||`Driver ${y+1}`,b=`usage-v${d}-d${y}`,k=Fa(r,d,y);return n.jsxs("div",{className:"cds-w-32",children:[n.jsx("label",{htmlFor:b,className:"cds-mb-1 cds-block cds-text-xs cds-font-semibold cds-text-fg-muted",children:x}),n.jsxs("div",{className:"cds-flex cds-items-center cds-gap-1",children:[n.jsx("input",{id:b,type:"text",inputMode:"numeric",value:k??"","aria-invalid":!!p||void 0,onChange:w=>{let j=w.target.value.replace(/\D/g,"");i(Da(r,d,y,j===""?0:Math.min(100,Number(j))))},className:`${F} ${p?"cds-border-destructive":""}`}),n.jsx("span",{"aria-hidden":"true",className:"cds-text-sm cds-text-fg-muted",children:"%"})]})]},b)})}),p?n.jsx("p",{className:"cds-mt-2 cds-text-sm cds-text-destructive",role:"alert",children:p}):null]}):null]},d)})})},zs=({questions:e,values:t,rootValues:r,visibleKeys:s,rootVisible:a=[],errors:o,itemErrors:i,stageKey:c,quoteId:l,cascade:f,vinDecode:v,onPatch:d})=>{let h=g.useMemo(()=>wa(e),[e]),u=t===r,p=g.useMemo(()=>{if(!u)return new Map;let y=new Map;for(let x of dh){let b=h.find(k=>x.keys.has(k.key)&&s.has(k.key));b&&y.set(b.key,x)}return y},[h,s,u]),m=y=>y.flatMap(x=>{let b=x.key,k=ja(x),w=_a(x);if(!w&&!s.has(b))return[];let j=[];b==="co_applicant_first_name"&&u&&j.push(n.jsx(vh,{values:r,targetQuestions:a,onPatch:d},`${b}-copy`));let _=p.get(b);if(_&&j.push(n.jsx(uh,{heading:_.heading,caption:_.caption},`${b}-section`)),b==="vehicle_policy_selections"){let M=C=>Array.isArray(C)?C:[];return j.push(n.jsx(bh,{vehicles:M(r[Ie("vehicles")]),drivers:M(r[Ie("drivers")]),assignments:Aa(r),state:r.state,itemErrors:i.filter(C=>C.groupKey==="vehicles"),onChange:C=>d({[Ie("vehicles")]:C}),onAssign:C=>d({[Vr]:C})},b)),j}if(!w){let M=b==="make"||b==="model"||b==="body_style"?b:void 0;j.push(x.inputType==="address"?n.jsx(pd,{question:x,values:t,error:o[b],onPatch:d},b):n.jsx(Hs,{question:x,value:t[b],error:o[b],values:t,required:Na(x,t===r?t:Ba(r,t)),asyncSelect:M&&f?{options:f.options[M],loading:f.loading[M],activate:()=>f.ensure(M)}:void 0,vinDecode:b==="vin"?v:void 0,onChange:C=>{let N={[b]:C};b==="year"&&Object.assign(N,{make:"",model:"",body_style:""}),b==="make"&&Object.assign(N,{model:"",body_style:""}),b==="model"&&Object.assign(N,{body_style:""}),(b==="industry"||b==="employment_industry")&&(N.occupation=""),b==="dwelling_replacement_cost"&&Object.assign(N,Ka(t,C)),Object.assign(N,Ya(t,b,C)),d(N)}},b))}if(k&&(w||t[b]===k.conditionalValue)){let M=t[Ie(b)],C=Array.isArray(M)?M:[];j.push(n.jsx(yh,{groupKey:b,itemQuestions:k.conditionalQuestions??[],items:C.length?C:[{}],rootValues:r,stageKey:c,quoteId:l,itemErrors:i.filter(N=>N.groupKey===b),onChange:N=>d({[Ie(b)]:N})},`${b}-group`))}return Ma(x,t).forEach(M=>{if(M.conditionalQuestionsAllowMultiple)return;let C=M.conditionalQuestions??[];C.length&&j.push(n.jsx("div",{className:"cds-mb-2 cds-border-l-2 cds-border-accent/40 cds-pl-4",children:m(C)},`${b}-branch`))}),j});return n.jsx(n.Fragment,{children:m(h)})},kh=({questions:e,values:t,errors:r,itemErrors:s,stageKey:a,quoteId:o,suppressedKeys:i,onPatch:c})=>{let l=g.useMemo(()=>ka(e,t,a),[e,t,a]),f=g.useMemo(()=>new Set(l.map(d=>d.key).filter(d=>!i?.has(d))),[l,i]),v=g.useCallback(d=>c(d),[c]);return n.jsx(zs,{questions:e,values:t,rootValues:t,visibleKeys:f,rootVisible:l,errors:r,itemErrors:s,stageKey:a,quoteId:o,onPatch:v})};export{pd as a,ld as c,Mt as d,$n as f,md as i,br as l,Ih as n,ud as o,Fs as p,Hs as r,ht as s,kh as t,An as u};
|