@getcredify/credify-insurance-widget 1.37.1 → 1.38.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/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;700&display=swap";/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties,theme,base,components,utilities;@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-emerald-600:oklch(59.6% .145 163.225);--color-cyan-500:oklch(71.5% .143 215.221);--color-blue-50:oklch(97% .014 254.604);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-widest:.1em;--leading-snug:1.375;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.right-4{right:calc(var(--spacing)*4)}.bottom-full{bottom:100%}.left-1\\/2{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.z-\\[10000\\]{z-index:10000}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.-mt-4{margin-top:calc(var(--spacing)*-4)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-1{margin-left:calc(var(--spacing)*1)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-full{height:100%}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[85vh\\]{max-height:85vh}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.\\!w-auto{width:auto!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-60{width:calc(var(--spacing)*60)}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\\[7rem\\]{max-width:7rem}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[8\\.5rem\\]{min-width:8.5rem}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-lg{border-top-left-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-\\[var\\(--accent-color\\)\\]{border-color:var(--accent-color)}.border-amber-300{border-color:var(--color-amber-300)}.border-cyan-500{border-color:var(--color-cyan-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-transparent{border-color:#0000}.border-t-slate-600{border-top-color:var(--color-slate-600)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\\/40{background-color:#fffbeb66}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\\/40{background-color:color-mix(in oklab,var(--color-amber-50)40%,transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-red-50{background-color:var(--color-red-50)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pl-5{padding-left:calc(var(--spacing)*5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--text-primary\\)\\]{color:var(--text-primary)}.text-amber-800{color:var(--color-amber-800)}.text-blue-600{color:var(--color-blue-600)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.focus-within\\:border-\\[var\\(--primary-color\\)\\]:focus-within{border-color:var(--primary-color)}@media (hover:hover){.hover\\:bg-blue-600\\/90:hover{background-color:#155dfce6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-blue-600\\/90:hover{background-color:color-mix(in oklab,var(--color-blue-600)90%,transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:text-amber-900:hover{color:var(--color-amber-900)}.hover\\:text-blue-700:hover{color:var(--color-blue-700)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-blue-600\\/40:focus-visible{--tw-ring-color:#155dfc66}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-blue-600\\/40:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-blue-600)40%,transparent)}}.focus-visible\\:ring-slate-400:focus-visible{--tw-ring-color:var(--color-slate-400)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-slate-300:disabled{background-color:var(--color-slate-300)}.disabled\\:text-slate-500:disabled{color:var(--color-slate-500)}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}@media (min-width:40rem){.sm\\:w-\\[calc\\(50\\%-0\\.5rem\\)\\]{width:calc(50% - .5rem)}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:64rem){.lg\\:w-\\[calc\\(33\\.333\\%-0\\.667rem\\)\\]{width:calc(33.333% - .667rem)}}@media (min-width:80rem){.xl\\:w-\\[calc\\(25\\%-0\\.75rem\\)\\]{width:calc(25% - .75rem)}}}:root{--primary-color:#0b7248;--primary-hover-color:#095c3b;--secondary-color:#eaf3fc;--brand-blue:#005cee;--background-color:#fff;--text-primary:#10233f;--text-secondary:#42566e;--accent-color:#dbe8f5;--surface-muted:#eaf3fc;--brand-border:#c8dff4;--radius-sm:.25rem;--radius-md:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-2xl:1.25rem;--radius-3xl:1.75rem;--radius-full:9999px;--radio-dot-svg:url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27%230b7248%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%274%27/%3e%3c/svg%3e");--select-button-svg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24px' height='24px' fill='%23718096' viewBox='0 0 256 256'%3e%3cpath d='m215.39 92.94-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 1 1 11.32-11.32L128 154.06l74.07-72.44a8 8 0 0 1 11.32 11.32Z'/%3e%3c/svg%3e")}#insurance-widget-root,#root{color:var(--text-primary);font-family:Spline Sans,ui-sans-serif,system-ui,sans-serif}#insurance-widget-root .backdrop,#root .backdrop{background:#00000080;position:fixed;inset:0}#insurance-widget-root .modal-panel,#root .modal-panel{--modal-edge-padding:1rem;border-radius:var(--radius-lg);height:min(80dvh,820px);max-height:min(80dvh,820px);padding:var(--modal-edge-padding);box-shadow:0 24px 64px -20px #0f233f59;background:linear-gradient(180deg,#fff 0%,var(--surface-muted)34%,#dcecfb 100%)!important}@media (min-width:640px){#insurance-widget-root .modal-panel,#root .modal-panel{--modal-edge-padding:1.25rem}}@media (min-width:768px){#insurance-widget-root .modal-panel,#root .modal-panel{--modal-edge-padding:1.5rem}}@media (max-width:767px){#insurance-widget-root .modal-panel,#root .modal-panel{--modal-edge-padding:0rem;width:100%;max-width:none;height:100%;max-height:none;box-shadow:none;border-radius:0;position:fixed;inset:0;background:linear-gradient(180deg,#fff 0%,var(--surface-muted)34%,#dcecfb 100%)!important}}#insurance-widget-root .h1-title,#root .h1-title{color:var(--text-primary);padding-inline:1.75rem;font-size:1.375rem;font-weight:800;line-height:1.75rem}@media (min-width:640px){#insurance-widget-root .h1-title,#root .h1-title{font-size:1.625rem;line-height:2rem}}#insurance-widget-root .p-subtitle,#root .p-subtitle{color:var(--text-secondary);margin-top:.5rem}#insurance-widget-root .form-area,#root .form-area{gap:1.5rem;margin:0;padding:0;display:grid}#insurance-widget-root .form-section,#root .form-section,#insurance-widget-root .form-question,#root .form-question,#insurance-widget-root .form-field,#root .form-field{min-width:0}#insurance-widget-root .form-label,#root .form-label{color:var(--text-secondary);margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:block}#insurance-widget-root .form-input,#root .form-input{border-radius:var(--radius-md);border:1px solid var(--accent-color);width:100%;color:var(--text-primary);background:#fff;outline:none;padding:.75rem 1rem;font-size:1rem;transition:box-shadow .15s,border-color .15s}#insurance-widget-root input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#insurance-widget-root input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#root input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#root input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#insurance-widget-root input[type=number],#root input[type=number]{-moz-appearance:textfield}#insurance-widget-root .form-input::placeholder,#root .form-input::placeholder{color:#94a3b8}#insurance-widget-root .form-input:focus,#root .form-input:focus{border-color:var(--primary-color);box-shadow:0 0 0 1px var(--primary-color)}#insurance-widget-root .date-picker,#root .date-picker{width:100%;position:relative}#insurance-widget-root .date-picker-group,#root .date-picker-group{cursor:pointer;align-items:center;gap:.375rem;min-height:3rem;padding:.25rem .375rem .25rem .875rem;display:flex!important}#insurance-widget-root .date-picker-group:hover,#root .date-picker-group:hover{border-color:var(--brand-blue)}#insurance-widget-root .date-picker[data-focus-within] .date-picker-group,#root .date-picker[data-focus-within] .date-picker-group{border-color:var(--primary-color);box-shadow:0 0 0 1px var(--primary-color)}#insurance-widget-root .date-picker-input,#root .date-picker-input{flex:auto;align-items:center;gap:.0625rem;min-width:0;display:inline-flex}#insurance-widget-root .date-picker-segment,#root .date-picker-segment{border-radius:var(--radius-sm);color:var(--text-primary);font-variant-numeric:tabular-nums;padding:0 .125rem;line-height:1.6}#insurance-widget-root .date-picker-segment[data-placeholder],#root .date-picker-segment[data-placeholder]{color:#94a3b8}#insurance-widget-root .date-picker-segment[data-focused],#root .date-picker-segment[data-focused]{color:#064fa8;background:#eaf3ff;outline:none}#insurance-widget-root .date-picker-button,#root .date-picker-button{border-radius:var(--radius-sm);color:#64748b;cursor:pointer;width:2.25rem;height:2.25rem;font:inherit;background:0 0;border:0;flex:none;justify-content:center;align-items:center;font-size:1.125rem;display:inline-flex}#insurance-widget-root .date-picker-button:hover,#root .date-picker-button:hover{color:#064fa8;background:#eaf3ff}#insurance-widget-root .date-picker-button[data-disabled],#root .date-picker-button[data-disabled]{cursor:not-allowed;opacity:.5}#insurance-widget-root .date-picker-popover,#root .date-picker-popover{z-index:80;border:1px solid var(--brand-border);border-radius:var(--radius-md);background:#fff;max-width:min(100vw - 2rem,22rem);padding:.75rem;box-shadow:0 24px 56px -24px #0f233f80}#insurance-widget-root .date-picker-calendar-header,#root .date-picker-calendar-header{grid-template-columns:2.25rem 1fr 2.25rem;align-items:center;gap:.5rem;margin-bottom:.625rem;display:grid}#insurance-widget-root .date-picker-heading,#root .date-picker-heading{color:var(--text-primary);text-align:center;font-size:.95rem;font-weight:800;line-height:1.25rem}#insurance-widget-root .date-picker-selects,#root .date-picker-selects{grid-template-columns:minmax(0,1fr) 5.75rem;gap:.5rem;min-width:0;display:grid}#insurance-widget-root .date-picker-select,#root .date-picker-select{border:1px solid var(--brand-border);border-radius:var(--radius-sm);width:100%;min-width:0;min-height:2.5rem;color:var(--text-primary);cursor:pointer;font:inherit;background-color:#fff;padding:0 .625rem;font-size:.875rem;font-weight:700;line-height:1.2}#insurance-widget-root .date-picker-select:hover,#root .date-picker-select:hover,#insurance-widget-root .date-picker-select:focus,#root .date-picker-select:focus{border-color:var(--brand-blue);box-shadow:0 0 0 1px var(--brand-blue);outline:none}#insurance-widget-root .date-picker-nav-button,#root .date-picker-nav-button{border:1px solid var(--brand-border);border-radius:var(--radius-sm);width:2.25rem;height:2.25rem;color:var(--text-primary);cursor:pointer;font:inherit;background:#fff;place-items:center;font-size:1.25rem;line-height:1;display:grid}#insurance-widget-root .date-picker-nav-button:hover,#root .date-picker-nav-button:hover{border-color:var(--brand-blue);color:#064fa8;background:#eaf3ff}#insurance-widget-root .date-picker-nav-button[data-disabled],#root .date-picker-nav-button[data-disabled]{cursor:not-allowed;opacity:.45}#insurance-widget-root .date-picker-grid,#root .date-picker-grid{border-collapse:collapse;width:100%}#insurance-widget-root .date-picker-header-cell,#root .date-picker-header-cell{color:#64748b;text-align:center;padding:.25rem;font-size:.75rem;font-weight:700}#insurance-widget-root .date-picker-cell,#root .date-picker-cell{border-radius:var(--radius-sm);width:2.25rem;height:2.25rem;color:var(--text-primary);cursor:pointer;text-align:center;font-size:.875rem;line-height:2.25rem}#insurance-widget-root .date-picker-cell:hover,#root .date-picker-cell:hover,#insurance-widget-root .date-picker-cell[data-focused],#root .date-picker-cell[data-focused]{color:#064fa8;background:#eaf3ff}#insurance-widget-root .date-picker-cell[data-selected],#root .date-picker-cell[data-selected]{background:var(--brand-blue);color:#fff;font-weight:800}#insurance-widget-root .date-picker-cell[data-outside-month],#root .date-picker-cell[data-outside-month]{color:#94a3b8}#insurance-widget-root .date-picker-cell[data-disabled],#root .date-picker-cell[data-disabled]{cursor:not-allowed;opacity:.35}.date-picker-popover{z-index:80;box-sizing:border-box;border:1px solid var(--brand-border,#c8dff4);border-radius:var(--radius-md,.5rem);background:#fff;width:min(22rem,100vw - 1rem);max-width:calc(100vw - 1rem);padding:.75rem;box-shadow:0 24px 56px -24px #0f233f80}.date-picker-calendar{width:100%}.date-picker-calendar-header{grid-template-columns:2.5rem 1fr 2.5rem;align-items:center;gap:.5rem;margin-bottom:.75rem;display:grid}.date-picker-heading{color:var(--text-primary,#10233f);text-align:center;font-size:.95rem;font-weight:800;line-height:1.25rem}.date-picker-selects{grid-template-columns:minmax(0,1fr) 5.75rem;gap:.5rem;min-width:0;display:grid}.date-picker-select{border:1px solid var(--brand-border,#c8dff4);border-radius:var(--radius-sm,.25rem);width:100%;min-width:0;min-height:2.5rem;color:var(--text-primary,#10233f);cursor:pointer;font:inherit;background-color:#fff;padding:0 .625rem;font-size:.875rem;font-weight:700;line-height:1.2}.date-picker-select:hover,.date-picker-select:focus{border-color:var(--brand-blue,#005cee);box-shadow:0 0 0 1px var(--brand-blue,#005cee);outline:none}.date-picker-nav-button{border:1px solid var(--brand-border,#c8dff4);border-radius:var(--radius-sm,.25rem);width:2.5rem;height:2.5rem;color:var(--text-primary,#10233f);cursor:pointer;font:inherit;background:#fff;place-items:center;font-size:1.35rem;line-height:1;display:grid}.date-picker-nav-button:hover{border-color:var(--brand-blue,#005cee);color:#064fa8;background:#eaf3ff}.date-picker-nav-button[data-disabled]{cursor:not-allowed;opacity:.45}.date-picker-grid{border-collapse:separate;border-spacing:.125rem;table-layout:fixed;width:100%}.date-picker-header-cell{color:#64748b;text-align:center;padding:.25rem;font-size:.75rem;font-weight:700}.date-picker-cell{border-radius:var(--radius-sm,.25rem);width:2.5rem;height:2.5rem;color:var(--text-primary,#10233f);cursor:pointer;text-align:center;font-size:.9rem;line-height:2.5rem}.date-picker-cell:hover,.date-picker-cell[data-focused]{color:#064fa8;background:#eaf3ff}.date-picker-cell[data-selected]{background:var(--brand-blue,#005cee);color:#fff;font-weight:800}.date-picker-cell[data-outside-month]{color:#94a3b8}.date-picker-cell[data-disabled]{cursor:not-allowed;opacity:.35}@media (max-width:420px){.date-picker-popover{width:calc(100vw - 1rem);padding:.625rem}.date-picker-cell{width:2.25rem;height:2.25rem;line-height:2.25rem}}#insurance-widget-root .stage-footer-hint,#root .stage-footer-hint{color:#475569;text-align:left;margin:1rem 0 0;font-size:.75rem;line-height:1.35}#insurance-widget-root .stage-footer-hint>*+*,#root .stage-footer-hint>*+*{margin-top:.25rem}#insurance-widget-root .select-caret,#root .select-caret{background-image:var(--select-button-svg);appearance:none;background-position:right .75rem center;background-repeat:no-repeat;background-size:1.25rem 1.25rem;padding-right:2.5rem}#insurance-widget-root .combobox-wrapper,#root .combobox-wrapper{position:relative}#insurance-widget-root .combobox-input,#root .combobox-input{padding-right:2.5rem}#insurance-widget-root .combobox-caret,#root .combobox-caret{pointer-events:none;border-bottom:2px solid #64748b;border-right:2px solid #64748b;width:.625rem;height:.625rem;position:absolute;top:50%;right:.875rem;transform:translateY(-65%)rotate(45deg)}#insurance-widget-root .combobox-listbox,#root .combobox-listbox{z-index:60;border:1px solid var(--brand-border);border-radius:var(--radius-md);background:#fff;max-height:min(16rem,42dvh);padding:.25rem;position:absolute;top:calc(100% + .375rem);left:0;right:0;overflow-y:auto;box-shadow:0 18px 42px -22px #0f233f73}#insurance-widget-root .combobox-listbox[data-placement=top],#root .combobox-listbox[data-placement=top]{top:auto;bottom:calc(100% + .375rem)}#insurance-widget-root .combobox-option,#root .combobox-option{border-radius:var(--radius-sm);width:100%;min-height:2.5rem;color:var(--text-primary);cursor:pointer;font:inherit;text-align:left;background:#fff;border:0;justify-content:flex-start;align-items:center;padding:.625rem .75rem;font-size:.9375rem;line-height:1.25rem;display:flex!important}#insurance-widget-root .combobox-option:hover,#root .combobox-option:hover,#insurance-widget-root .combobox-option[data-highlighted=true],#root .combobox-option[data-highlighted=true]{color:#064fa8;background:#eaf3ff}#insurance-widget-root .combobox-option[data-selected=true],#root .combobox-option[data-selected=true]{background:var(--brand-blue);color:#fff}#insurance-widget-root .combobox-option[aria-disabled=true],#root .combobox-option[aria-disabled=true]{cursor:not-allowed;opacity:.55}#insurance-widget-root .combobox-empty,#root .combobox-empty{color:#64748b;padding:.75rem;font-size:.875rem}#insurance-widget-root .radio-card,#root .radio-card{border-radius:var(--radius-sm);border:2px solid var(--accent-color);cursor:pointer;background:#fff;align-items:center;gap:.75rem;padding:1rem;transition:all .15s;display:flex}#insurance-widget-root .radio-card:hover,#root .radio-card:hover{border-color:#cfd8e3}#insurance-widget-root .radio-input,#root .radio-input{border:2px solid var(--accent-color);appearance:none;background:0 0;border-radius:9999px;outline:none;width:1.25rem;height:1.25rem}#insurance-widget-root .radio-input:checked,#root .radio-input:checked{border-color:var(--primary-color);background-image:var(--radio-dot-svg);background-position:50%;background-repeat:no-repeat}#insurance-widget-root .radio-input:focus-visible,#root .radio-input:focus-visible,#insurance-widget-root .checkbox-input:focus-visible,#root .checkbox-input:focus-visible{outline:3px solid var(--primary-color)}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root .radio-input:focus-visible,#root .radio-input:focus-visible,#insurance-widget-root .checkbox-input:focus-visible,#root .checkbox-input:focus-visible{outline:3px solid color-mix(in oklab,var(--primary-color)55%,white)}}#insurance-widget-root .radio-input:focus-visible,#root .radio-input:focus-visible,#insurance-widget-root .checkbox-input:focus-visible,#root .checkbox-input:focus-visible{outline-offset:3px}#insurance-widget-root .radio-card:has(.radio-input:checked),#root .radio-card:has(.radio-input:checked){border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color)}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root .radio-card:has(.radio-input:checked),#root .radio-card:has(.radio-input:checked){box-shadow:0 0 0 2px color-mix(in oklab,var(--primary-color)20%,transparent)}}#insurance-widget-root .radio-label,#root .radio-label{color:var(--text-primary);font-size:1rem;font-weight:600}#insurance-widget-root .btn-primary,#root .btn-primary{border-radius:var(--radius-md);background:var(--primary-color);color:#fff;letter-spacing:.02em;justify-content:center;align-items:center;width:100%;height:3rem;font-weight:700;transition:opacity .15s;display:flex}#insurance-widget-root .btn-primary:hover,#root .btn-primary:hover{background:var(--primary-hover-color);opacity:1}#insurance-widget-root .btn-outline,#root .btn-outline{border-radius:var(--radius-md);width:100%;height:3rem;color:var(--text-primary);border:1px solid var(--accent-color);letter-spacing:.02em;background:#fff;justify-content:center;align-items:center;font-weight:700;transition:background .15s,color .15s,border-color .15s,opacity .15s;display:flex}#insurance-widget-root .btn-outline:hover,#root .btn-outline:hover{border-color:#cfd8e3}#insurance-widget-root .btn-primary,#root .btn-primary,#insurance-widget-root .btn-outline,#root .btn-outline{cursor:pointer}#insurance-widget-root .btn-primary:disabled,#root .btn-primary:disabled,#insurance-widget-root .btn-outline:disabled,#root .btn-outline:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(20%)}#insurance-widget-root .btn-primary:not(:disabled):hover,#root .btn-primary:not(:disabled):hover{opacity:.95}#insurance-widget-root .btn-outline:not(:disabled):hover,#root .btn-outline:not(:disabled):hover{border-color:#cfd8e3}#insurance-widget-root .quote-btn,#root .quote-btn{border-radius:var(--radius-md);background-color:var(--color-blue-600);padding-inline:calc(var(--spacing)*6);padding-block:calc(var(--spacing)*3);--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);color:var(--color-white);--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){:is(#insurance-widget-root .quote-btn,#root .quote-btn):hover{background-color:var(--color-blue-700)}}#insurance-widget-root .input-error,#root .input-error{border-color:#dc2626!important;box-shadow:0 0 0 1px #dc2626!important}#insurance-widget-root .checkbox-card,#root .checkbox-card{border-radius:var(--radius-sm);border:2px solid var(--accent-color);cursor:pointer;background:#fff;align-items:flex-start;gap:.75rem;padding:1rem;transition:all .15s;display:flex}#insurance-widget-root .checkbox-card:hover,#root .checkbox-card:hover{border-color:#cfd8e3}#insurance-widget-root .checkbox-input,#root .checkbox-input{border:2px solid var(--accent-color);appearance:none;background:#fff;border-radius:.375rem;outline:none;flex-shrink:0;place-items:center;width:1.25rem;height:1.25rem;margin-top:.125rem;display:grid}#insurance-widget-root .checkbox-input:checked,#root .checkbox-input:checked{border-color:var(--primary-color);background-color:var(--primary-color);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 24 24'%3e%3cpath d='M20.285 6.709a1 1 0 0 1 0 1.414l-9.192 9.193a1 1 0 0 1-1.414 0L3.715 11.55a1 1 0 1 1 1.414-1.414l5.05 5.05 8.485-8.478a1 1 0 0 1 1.621.001z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat}#insurance-widget-root .checkbox-card:has(.checkbox-input:checked),#root .checkbox-card:has(.checkbox-input:checked){border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color)}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root .checkbox-card:has(.checkbox-input:checked),#root .checkbox-card:has(.checkbox-input:checked){box-shadow:0 0 0 2px color-mix(in oklab,var(--primary-color)20%,transparent)}}#insurance-widget-root .checkbox-label,#root .checkbox-label{color:var(--text-primary);font-size:1rem;font-weight:600}#insurance-widget-root .communications-consent-checkbox.checkbox-card,#root .communications-consent-checkbox.checkbox-card{border-width:2px;border-color:var(--primary-color);background:var(--primary-color);align-items:flex-start;gap:.875rem;padding:1rem 1.125rem}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root .communications-consent-checkbox.checkbox-card,#root .communications-consent-checkbox.checkbox-card{background:color-mix(in oklab,var(--primary-color)7%,#fff)}}#insurance-widget-root .communications-consent-checkbox.checkbox-card,#root .communications-consent-checkbox.checkbox-card{box-shadow:0 0 0 1px var(--primary-color)}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root .communications-consent-checkbox.checkbox-card,#root .communications-consent-checkbox.checkbox-card{box-shadow:0 0 0 1px color-mix(in oklab,var(--primary-color)20%,transparent)}}#insurance-widget-root .communications-consent-checkbox.checkbox-card:hover,#root .communications-consent-checkbox.checkbox-card:hover{border-color:var(--primary-color);background:var(--primary-color)}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root .communications-consent-checkbox.checkbox-card:hover,#root .communications-consent-checkbox.checkbox-card:hover{background:color-mix(in oklab,var(--primary-color)11%,#fff)}}#insurance-widget-root .communications-consent-checkbox .checkbox-input,#root .communications-consent-checkbox .checkbox-input{border-width:3px;border-color:var(--primary-color);flex-shrink:0;width:1.625rem;height:1.625rem;margin-top:.0625rem}#insurance-widget-root .communications-consent-checkbox .checkbox-input:checked,#root .communications-consent-checkbox .checkbox-input:checked{background-size:1.125rem 1.125rem}#insurance-widget-root .communications-consent-checkbox .checkbox-label,#root .communications-consent-checkbox .checkbox-label{font-size:.875rem;font-weight:400;line-height:1.4}#insurance-widget-root .modal-scroll,#root .modal-scroll{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:min(90dvh,800px);overflow-y:auto}#insurance-widget-root .modal-scroll .h1-title,#root .modal-scroll .h1-title{z-index:1;background:0 0;padding-top:.25rem;padding-bottom:.75rem;position:sticky;top:0}#insurance-widget-root .panel-body,#root .panel-body{padding:0;scroll-padding:0}#insurance-widget-root .widget-modal-header,#root .widget-modal-header{margin:calc(-1*var(--modal-edge-padding))calc(-1*var(--modal-edge-padding))0;padding:1rem calc(var(--modal-edge-padding) + 3rem).875rem max(var(--modal-edge-padding),.875rem);background:0 0}#insurance-widget-root .widget-legal-footer,#root .widget-legal-footer{margin:0 calc(-1*var(--modal-edge-padding))calc(-1*var(--modal-edge-padding))!important;padding:.625rem max(var(--modal-edge-padding),.875rem).75rem!important;background:0 0!important}#insurance-widget-root .widget-legal-footer p,#root .widget-legal-footer p{color:#64748b!important;margin:0!important;font-size:.75rem!important;line-height:1.25!important}#insurance-widget-root .form-wizard-actions,#root .form-wizard-actions{z-index:2;background:#fff;margin:0;padding:.625rem 0 .875rem}#insurance-widget-root .tel-input-wrapper:focus-within:not(.error),#root .tel-input-wrapper:focus-within:not(.error){outline:1px solid var(--primary-color);outline-offset:0px;z-index:1}#insurance-widget-root .tel-input-wrapper.error,#root .tel-input-wrapper.error{outline-offset:0px;z-index:1;outline:1px solid #ef4444}#insurance-widget-root .tel-input-wrapper:focus-within:after,#root .tel-input-wrapper:focus-within:after{content:"";border:1px solid var(--primary-color);pointer-events:none;z-index:10;border-radius:.75rem;position:absolute;inset:-1px}#insurance-widget-root .tel-input-wrapper.error:after,#root .tel-input-wrapper.error:after{content:"";pointer-events:none;z-index:10;border:1px solid #ef4444;border-radius:.75rem;position:absolute;inset:-1px}#insurance-widget-root .legend-required:after,#root .legend-required:after{content:" *";color:#dc2626;margin-left:.25rem}#insurance-widget-root .scrollbar-hide,#root .scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}#insurance-widget-root .scrollbar-hide::-webkit-scrollbar{display:none}#root .scrollbar-hide::-webkit-scrollbar{display:none}#insurance-widget-root button.form-wizard-next-btn[data-widget-ctrl=next][type=button],#root button.form-wizard-next-btn[data-widget-ctrl=next][type=button],#insurance-widget-root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:disabled,#root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:disabled{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;border-radius:var(--radius-md)!important;background-color:var(--primary-color)!important;color:#fff!important;min-height:3rem!important;box-shadow:none!important;font-weight:800!important;display:flex!important;position:relative!important;overflow:visible!important}#insurance-widget-root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:not(:disabled),#root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:not(:disabled){cursor:pointer!important}#insurance-widget-root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:disabled,#root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:disabled{opacity:.5!important;box-shadow:none!important;background-color:#cbd5e1!important}#insurance-widget-root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:not(:disabled):hover,#root button.form-wizard-next-btn[data-widget-ctrl=next][type=button]:not(:disabled):hover{background-color:var(--primary-hover-color)!important}#insurance-widget-root .credify-link-underline,#root .credify-link-underline{color:var(--primary-color);text-decoration:underline}#insurance-widget-root .credify-link-underline:hover,#root .credify-link-underline:hover{color:#0052cc}#insurance-widget-root button.modal-close-btn[type=button],#root button.modal-close-btn[type=button]{appearance:none;visibility:visible!important;opacity:1!important;cursor:pointer!important;border:1px solid var(--brand-border)!important;clip-path:none!important;pointer-events:auto!important;border-radius:var(--radius-md)!important;min-width:2.75rem!important;min-height:2.75rem!important;color:var(--text-primary)!important;background:#fff!important;justify-content:center!important;align-items:center!important;padding:0!important;font-size:1.75rem!important;line-height:1!important;transition:background-color .15s,border-color .15s,color .15s,transform .15s!important;display:inline-flex!important;top:.75rem!important;right:.75rem!important;overflow:visible!important;box-shadow:0 4px 12px #0f233f14!important}#insurance-widget-root button.modal-close-btn[type=button]:hover,#root button.modal-close-btn[type=button]:hover{background:var(--surface-muted)!important;border-color:var(--primary-color)!important}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root button.modal-close-btn[type=button]:hover,#root button.modal-close-btn[type=button]:hover{border-color:color-mix(in oklab,var(--primary-color)45%,var(--brand-border))!important}}#insurance-widget-root button.modal-close-btn[type=button]:hover,#root button.modal-close-btn[type=button]:hover{color:var(--primary-color)!important}@media (max-width:767px){#insurance-widget-root button.modal-close-btn[type=button],#root button.modal-close-btn[type=button]{visibility:visible!important;pointer-events:auto!important;border-radius:var(--radius-md)!important;justify-content:center!important;align-items:center!important;min-width:2.75rem!important;min-height:2.75rem!important;display:inline-flex!important}}#insurance-widget-root button.credify-btn-back[type=button],#root button.credify-btn-back[type=button],#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{transition:border-color .15s,background-color .15s;visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;box-sizing:border-box!important;border-radius:var(--radius-md)!important;color:#1a202c!important;text-align:center!important;cursor:pointer!important;background-color:#fff!important;border:1px solid #e2e8f0!important;place-content:center!important;place-items:center!important;height:3rem!important;min-height:3rem!important;margin:0!important;padding:0!important;font-size:1rem!important;font-weight:600!important;line-height:1!important;display:grid!important;overflow:visible!important}#insurance-widget-root button.credify-btn-back[type=button]:not(:disabled):hover,#root button.credify-btn-back[type=button]:not(:disabled):hover{background-color:#f9fafb!important;border-color:#cbd5e1!important}#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{opacity:.5!important;cursor:not-allowed!important;background-color:#f3f4f6!important}#insurance-widget-root button.credify-btn-back[type=button][data-testid=communications-consent-decline],#root button.credify-btn-back[type=button][data-testid=communications-consent-decline]{font-weight:400!important}#insurance-widget-root button.credify-btn-back-rates[type=button],#root button.credify-btn-back-rates[type=button]{margin-top:2rem!important}#insurance-widget-root button.credify-retry-btn[type=button],#root button.credify-retry-btn[type=button]{cursor:pointer;font:inherit;border:none;visibility:visible!important;color:var(--text-primary)!important;clip-path:none!important;pointer-events:auto!important;background:0 0!important;text-decoration:underline!important;display:inline!important;overflow:visible!important}#insurance-widget-root button:focus-visible,#root button:focus-visible,#insurance-widget-root a:focus-visible,#root a:focus-visible,#insurance-widget-root [tabindex]:focus-visible,#root [tabindex]:focus-visible{outline:3px solid var(--primary-color)}@supports (color:color-mix(in lab,red,red)){#insurance-widget-root button:focus-visible,#root button:focus-visible,#insurance-widget-root a:focus-visible,#root a:focus-visible,#insurance-widget-root [tabindex]:focus-visible,#root [tabindex]:focus-visible{outline:3px solid color-mix(in oklab,var(--primary-color)55%,white)}}#insurance-widget-root button:focus-visible,#root button:focus-visible,#insurance-widget-root a:focus-visible,#root a:focus-visible,#insurance-widget-root [tabindex]:focus-visible,#root [tabindex]:focus-visible{outline-offset:3px}#insurance-widget-root .close-confirm-backdrop,#root .close-confirm-backdrop{z-index:20;background:#0f233f6b;place-items:center;padding:1rem;display:grid;position:absolute;inset:0}#insurance-widget-root .close-confirm-dialog,#root .close-confirm-dialog{border-radius:var(--radius-lg);border:1px solid var(--brand-border);background:#fff;width:min(100%,24rem);padding:1rem;box-shadow:0 24px 64px -20px #0f233f73}#insurance-widget-root .close-confirm-dialog h3,#root .close-confirm-dialog h3{color:var(--text-primary);margin:0;font-size:1.125rem;font-weight:800;line-height:1.35}#insurance-widget-root .close-confirm-dialog p,#root .close-confirm-dialog p{color:var(--text-secondary);margin:.5rem 0 0;font-size:.925rem;line-height:1.45}#insurance-widget-root .close-confirm-actions,#root .close-confirm-actions{grid-template-columns:1fr;gap:.625rem;margin-top:1rem;display:grid}#insurance-widget-root .close-confirm-actions .btn-primary,#root .close-confirm-actions .btn-primary,#insurance-widget-root .close-confirm-actions .btn-outline,#root .close-confirm-actions .btn-outline{min-height:2.75rem!important}#insurance-widget-root .close-confirm-danger,#root .close-confirm-danger{box-shadow:none!important;background:#b42318!important}#insurance-widget-root .close-confirm-danger:hover,#root .close-confirm-danger:hover{background:#8f1d14!important}@media (min-width:440px){#insurance-widget-root .close-confirm-actions,#root .close-confirm-actions{grid-template-columns:1fr 1fr}}@media (max-width:420px){#insurance-widget-root .repeatable-controls,#root .repeatable-controls{flex-direction:column;align-items:stretch}#insurance-widget-root .repeatable-actions,#root .repeatable-actions{gap:.5rem;width:100%;display:grid}#insurance-widget-root .repeatable-actions>button,#root .repeatable-actions>button{width:100%;margin-inline:0!important}}@media (prefers-reduced-motion:reduce){#insurance-widget-root *,#root *{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}#insurance-widget-root button.rates-bind-btn[type=button],#root button.rates-bind-btn[type=button],#insurance-widget-root button.rates-bind-btn[type=button]:disabled,#root button.rates-bind-btn[type=button]:disabled{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;box-sizing:border-box!important;text-align:center!important;border-radius:var(--radius-md)!important;background-color:var(--primary-color)!important;color:#fff!important;place-content:center!important;place-items:center!important;min-height:2.5rem!important;padding:0 1rem!important;line-height:1!important;display:grid!important;overflow:visible!important}#insurance-widget-root button.rates-bind-btn[type=button]:disabled,#root button.rates-bind-btn[type=button]:disabled{opacity:.5!important;background-color:#cbd5e1!important}#insurance-widget-root button.rates-bind-btn.rates-bind-btn-requested,#root button.rates-bind-btn.rates-bind-btn-requested{background-color:var(--primary-color)!important;color:#fff!important}#insurance-widget-root button.quote-btn[type=button],#root button.quote-btn[type=button]{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;border-radius:var(--radius-md)!important;background-color:var(--primary-color)!important;color:#fff!important;display:inline-flex!important;overflow:visible!important}#insurance-widget-root a.credify-link-underline[href],#root a.credify-link-underline[href]{color:var(--primary-color);visibility:visible!important;clip-path:none!important;pointer-events:auto!important;text-decoration:underline!important;display:inline!important;overflow:visible!important}#insurance-widget-root input.form-input,#root input.form-input,#insurance-widget-root select.form-input,#root select.form-input,#insurance-widget-root textarea.form-input,#root textarea.form-input{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;display:block!important;overflow:visible!important}#insurance-widget-root button.btn-primary[type=button],#root button.btn-primary[type=button],#insurance-widget-root button.btn-primary[type=submit],#root button.btn-primary[type=submit],#insurance-widget-root button.btn-outline[type=button],#root button.btn-outline[type=button],#insurance-widget-root button.btn-primary[type=button]:disabled,#root button.btn-primary[type=button]:disabled,#insurance-widget-root button.btn-outline[type=button]:disabled,#root button.btn-outline[type=button]:disabled{visibility:visible!important;opacity:1!important;border-radius:var(--radius-md)!important;clip-path:none!important;pointer-events:auto!important;min-height:3rem!important;display:flex!important;overflow:visible!important}#insurance-widget-root button.btn-primary[type=button],#root button.btn-primary[type=button],#insurance-widget-root button.btn-primary[type=submit],#root button.btn-primary[type=submit]{background-color:var(--primary-color)!important;color:#fff!important}#insurance-widget-root button.btn-outline[type=button],#root button.btn-outline[type=button]{color:var(--text-primary)!important;border:1px solid var(--accent-color)!important;background-color:#fff!important}#insurance-widget-root button.btn-primary[type=button]:disabled,#root button.btn-primary[type=button]:disabled,#insurance-widget-root button.btn-outline[type=button]:disabled,#root button.btn-outline[type=button]:disabled{opacity:.5!important}#insurance-widget-root button.btn-primary[type=button]:disabled,#root button.btn-primary[type=button]:disabled{color:#fff!important;background-color:#d1d5db!important}#insurance-widget-root button.btn-outline[type=button]:disabled,#root button.btn-outline[type=button]:disabled{color:var(--text-primary)!important;background-color:#f1f5f9!important}#insurance-widget-root .form-wizard-shell,#root .form-wizard-shell{background:0 0;flex-direction:column;height:100%;min-height:0;display:flex}#insurance-widget-root .form-wizard-steps-header,#root .form-wizard-steps-header{margin:0 calc(-1*var(--modal-edge-padding));padding:.625rem max(var(--modal-edge-padding),.875rem).75rem;background:0 0;justify-content:flex-start;align-items:center;visibility:visible!important;display:flex!important}#insurance-widget-root .form-wizard-steps-scroll,#root .form-wizard-steps-scroll{flex:auto;min-width:0;position:relative}#insurance-widget-root .form-wizard-steps-scroll:after,#root .form-wizard-steps-scroll:after{content:"";pointer-events:none;-webkit-backdrop-filter:blur(1.5px);width:2.25rem;position:absolute;top:0;bottom:0;right:0;-webkit-mask-image:linear-gradient(90deg,#0000,#000 70%);mask-image:linear-gradient(90deg,#0000,#000 70%)}#insurance-widget-root .form-wizard-steps,#root .form-wizard-steps{overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch;flex:1;align-items:center;gap:.625rem;min-width:0;margin:0;padding:0 .75rem 0 0;font-size:.75rem;line-height:1rem;list-style:none;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 2.5rem),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 2.5rem),#0000);display:flex!important}#insurance-widget-root .form-wizard-step-pill,#root .form-wizard-step-pill{border-radius:var(--radius-md);white-space:nowrap;border:1px solid;flex-shrink:0;justify-content:center;align-items:center;min-height:2rem;padding:.3125rem .7rem;font-size:.78rem;font-weight:700;line-height:1rem;transition:background-color .15s,border-color .15s,color .15s;visibility:visible!important;display:inline-flex!important}#insurance-widget-root .form-wizard-step-pill:not(:disabled),#root .form-wizard-step-pill:not(:disabled){cursor:pointer}#insurance-widget-root .form-wizard-step-pill[data-step-state=complete],#root .form-wizard-step-pill[data-step-state=complete]{color:#075fc9;background:#f5f9ff;border-color:#9dc4f8}#insurance-widget-root .form-wizard-step-pill[data-step-state=current],#root .form-wizard-step-pill[data-step-state=current]{border-color:var(--brand-blue);background:var(--brand-blue);color:#fff}#insurance-widget-root .form-wizard-step-pill[data-step-state=upcoming],#root .form-wizard-step-pill[data-step-state=upcoming]{color:#526276;background:#ffffffad;border-color:#cbd8e6}#insurance-widget-root .form-wizard-step-pill:not(:disabled):hover,#root .form-wizard-step-pill:not(:disabled):hover{border-color:var(--brand-blue);color:#064fa8;background:#eaf3ff}#insurance-widget-root .form-wizard-step-pill:disabled,#root .form-wizard-step-pill:disabled{cursor:not-allowed;opacity:.65}#insurance-widget-root .form-wizard-step-arrow,#root .form-wizard-step-arrow{color:#526276;flex-shrink:0;justify-content:center;align-items:center;width:.875rem;font-size:1.25rem;font-weight:700;line-height:1;visibility:visible!important;display:inline-flex!important}#insurance-widget-root .form-wizard-content,#root .form-wizard-content{min-height:0;padding:1rem max(var(--modal-edge-padding),.875rem)0;-webkit-overflow-scrolling:touch;flex:auto;overflow-y:auto}#insurance-widget-root .form-wizard-card,#root .form-wizard-card{min-height:0;margin:0 calc(-1*var(--modal-edge-padding));border-radius:var(--radius-lg);background:#fff;flex-direction:column;flex:auto;display:flex;position:relative;overflow:hidden}#insurance-widget-root .form-wizard-card:before,#root .form-wizard-card:before{content:"";z-index:1;width:var(--form-wizard-progress,0%);background:var(--brand-blue);pointer-events:none;height:.25rem;transition:width .2s;position:absolute;top:0;left:0}#insurance-widget-root .form-wizard-card .form-wizard-actions,#root .form-wizard-card .form-wizard-actions{padding-inline:max(var(--modal-edge-padding),.875rem)}@media (min-width:768px){#insurance-widget-root .form-wizard-card,#root .form-wizard-card{border-radius:var(--radius-lg);margin-inline:0}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}`)),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  import * as Li from "react";
3
- import X, { version as Cm, useState as M, useRef as G, useEffect as ae, useContext as Ne, useCallback as Ee, useMemo as J, forwardRef as st, useReducer as E_, createContext as Le, cloneElement as S_, createElement as w_ } from "react";
3
+ import X, { version as Cm, useState as M, useRef as G, useEffect as oe, useContext as Ne, useCallback as Ee, useMemo as J, forwardRef as st, useReducer as E_, createContext as Le, cloneElement as S_, createElement as w_ } from "react";
4
4
  import { createRoot as C_ } from "react-dom/client";
5
5
  import { jsxs as T, jsx as h, Fragment as Ct } from "react/jsx-runtime";
6
6
  import x_, { flushSync as A_ } from "react-dom";
@@ -4421,7 +4421,7 @@ function r$({
4421
4421
  ...d
4422
4422
  }) {
4423
4423
  const [f, m] = M(""), p = G(null);
4424
- ae(() => {
4424
+ oe(() => {
4425
4425
  if (i == null || i === "") {
4426
4426
  m("");
4427
4427
  return;
@@ -4472,7 +4472,7 @@ function Hc(e) {
4472
4472
  }
4473
4473
  function n$({ id: e, label: t, hint: r, error: n, required: a, className: o, value: i = "", onChange: s, ...u }) {
4474
4474
  const [l, c] = M(""), d = G(null);
4475
- ae(() => {
4475
+ oe(() => {
4476
4476
  const m = i.replace(/\D/g, "").slice(0, 9);
4477
4477
  c(Hc(m));
4478
4478
  }, [i]);
@@ -4557,7 +4557,7 @@ function Yi(e) {
4557
4557
  }
4558
4558
  function ip({ id: e, label: t, hint: r, error: n, required: a, className: o, value: i = "", onChange: s, ...u }) {
4559
4559
  const [l, c] = M(""), d = G(null), f = G(0);
4560
- ae(() => {
4560
+ oe(() => {
4561
4561
  if (!i) {
4562
4562
  c("");
4563
4563
  return;
@@ -4762,7 +4762,7 @@ function Zt(e) {
4762
4762
  };
4763
4763
  }, [
4764
4764
  a
4765
- ]), ae(() => {
4765
+ ]), oe(() => {
4766
4766
  let i = n.current;
4767
4767
  return i && r(i), () => {
4768
4768
  i && (n.current = null);
@@ -5348,7 +5348,7 @@ function j$(e, t, r) {
5348
5348
  return e = e || c instanceof i && !z$.has(c.type) || c instanceof s || c instanceof u && c.isContentEditable, !(e && t === "keyboard" && r instanceof l && !L$[r.key]);
5349
5349
  }
5350
5350
  function W$(e, t, r) {
5351
- tu(), ae(() => {
5351
+ tu(), oe(() => {
5352
5352
  if (r?.enabled === !1) return;
5353
5353
  let n = (a, o) => {
5354
5354
  j$(!!r?.isTextInput, a, o) && e(ru());
@@ -5386,7 +5386,7 @@ function et(e) {
5386
5386
  }
5387
5387
  function Qi(e, t, r, n) {
5388
5388
  let a = et(r), o = r == null;
5389
- ae(() => {
5389
+ oe(() => {
5390
5390
  if (o || !e.current) return;
5391
5391
  let i = e.current;
5392
5392
  return i.addEventListener(t, a, n), () => {
@@ -5479,7 +5479,7 @@ function jc() {
5479
5479
  }
5480
5480
  function J$() {
5481
5481
  let e = rl(), [t, r] = M(nu);
5482
- return ae(() => (ra.size === 0 && window.addEventListener("languagechange", jc), ra.add(r), () => {
5482
+ return oe(() => (ra.size === 0 && window.addEventListener("languagechange", jc), ra.add(r), () => {
5483
5483
  ra.delete(r), ra.size === 0 && window.removeEventListener("languagechange", jc);
5484
5484
  }), []), e ? {
5485
5485
  locale: typeof window < "u" && window[Ep] || "en-US",
@@ -5583,7 +5583,7 @@ const aD = typeof document < "u" ? X.useInsertionEffect ?? X.useLayoutEffect : (
5583
5583
  };
5584
5584
  function fa(e, t, r) {
5585
5585
  let [n, a] = M(e || t), o = G(n), i = G(e !== void 0), s = e !== void 0;
5586
- ae(() => {
5586
+ oe(() => {
5587
5587
  i.current, i.current = s;
5588
5588
  }, [
5589
5589
  s
@@ -5722,7 +5722,7 @@ function uD(e) {
5722
5722
  }
5723
5723
  function lD(e, t) {
5724
5724
  let { focusProps: r } = Ap(e), { keyboardProps: n } = iD(e), a = Fe(r, n), o = uD(t), i = e.isDisabled ? {} : o, s = G(e.autoFocus);
5725
- ae(() => {
5725
+ oe(() => {
5726
5726
  s.current && t.current && ma(t.current), s.current = !1;
5727
5727
  }, [
5728
5728
  t
@@ -5896,7 +5896,7 @@ function bi() {
5896
5896
  }, [
5897
5897
  r
5898
5898
  ]);
5899
- return ae(() => n, [
5899
+ return oe(() => n, [
5900
5900
  n
5901
5901
  ]), {
5902
5902
  addGlobalListener: t,
@@ -5995,7 +5995,7 @@ function dl(e) {
5995
5995
  S,
5996
5996
  E
5997
5997
  ]), F = et(K);
5998
- ae(() => {
5998
+ oe(() => {
5999
5999
  s && b.current.isPressed && F({
6000
6000
  currentTarget: b.current.target,
6001
6001
  shiftKey: !1,
@@ -6016,7 +6016,7 @@ function dl(e) {
6016
6016
  }, [
6017
6017
  s,
6018
6018
  i
6019
- ]), re = Ee((w, j) => {
6019
+ ]), te = Ee((w, j) => {
6020
6020
  if (!s && i) {
6021
6021
  let H = new MouseEvent("click", w);
6022
6022
  mp(H, j), i(sl(H));
@@ -6024,7 +6024,7 @@ function dl(e) {
6024
6024
  }, [
6025
6025
  s,
6026
6026
  i
6027
- ]), he = J(() => {
6027
+ ]), ge = J(() => {
6028
6028
  let w = b.current, j = {
6029
6029
  onKeyDown(P) {
6030
6030
  if (es(P.nativeEvent, P.currentTarget) && ke(P.currentTarget, ve(P))) {
@@ -6054,7 +6054,7 @@ function dl(e) {
6054
6054
  if (w.isPressed && w.target && es(P, w.target)) {
6055
6055
  rd(ve(P), P.key) && P.preventDefault();
6056
6056
  let q = ve(P), C = ke(w.target, q);
6057
- _(Fr(w.target, P), "keyboard", C), C && re(P, w.target), S(), P.key !== "Enter" && fl(w.target) && ke(w.target, q) && !P[Xc] && (P[Xc] = !0, Qr(w.target, P, !1)), w.isPressed = !1, w.metaKeyEvents?.delete(P.key);
6057
+ _(Fr(w.target, P), "keyboard", C), C && te(P, w.target), S(), P.key !== "Enter" && fl(w.target) && ke(w.target, q) && !P[Xc] && (P[Xc] = !0, Qr(w.target, P, !1)), w.isPressed = !1, w.metaKeyEvents?.delete(P.key);
6058
6058
  } else if (P.key === "Meta" && w.metaKeyEvents?.size) {
6059
6059
  let q = w.metaKeyEvents;
6060
6060
  w.metaKeyEvents = void 0;
@@ -6119,9 +6119,9 @@ function dl(e) {
6119
6119
  Z,
6120
6120
  y,
6121
6121
  I,
6122
- re
6122
+ te
6123
6123
  ]);
6124
- return ae(() => {
6124
+ return oe(() => {
6125
6125
  if (!f) return;
6126
6126
  const w = Te(f.current);
6127
6127
  if (!w || !w.head || w.getElementById(ed)) return;
@@ -6137,7 +6137,7 @@ function dl(e) {
6137
6137
  `.trim(), w.head.prepend(j);
6138
6138
  }, [
6139
6139
  f
6140
- ]), ae(() => {
6140
+ ]), oe(() => {
6141
6141
  let w = b.current;
6142
6142
  return () => {
6143
6143
  d || Jc(w.target ?? void 0);
@@ -6148,7 +6148,7 @@ function dl(e) {
6148
6148
  d
6149
6149
  ]), {
6150
6150
  isPressed: u || p,
6151
- pressProps: Fe(m, he, {
6151
+ pressProps: Fe(m, ge, {
6152
6152
  [td]: !0
6153
6153
  })
6154
6154
  };
@@ -6299,7 +6299,7 @@ function Pa(e) {
6299
6299
  pointerType: "",
6300
6300
  target: null
6301
6301
  }).current;
6302
- ae($D, []);
6302
+ oe($D, []);
6303
6303
  let { addGlobalListener: u, removeAllGlobalListeners: l } = bi(), { hoverProps: c, triggerHoverEnd: d } = J(() => {
6304
6304
  let f = (g, b) => {
6305
6305
  if (s.pointerType = b, a || b === "touch" || s.isHovered || !ke(g.currentTarget, ve(g))) return;
@@ -6339,7 +6339,7 @@ function Pa(e) {
6339
6339
  u,
6340
6340
  l
6341
6341
  ]);
6342
- return ae(() => {
6342
+ return oe(() => {
6343
6343
  a && d({
6344
6344
  currentTarget: s.target
6345
6345
  }, s.pointerType);
@@ -6764,7 +6764,7 @@ const Na = /* @__PURE__ */ Le({}), ns = /* @__PURE__ */ Pp(function(t, r) {
6764
6764
  }), p = Zt(o.id), g = Zt(), b = o["aria-labelledby"];
6765
6765
  a && (b ? b = `${b} ${g}` : o["aria-label"] && (b = `${p} ${g}`));
6766
6766
  let $ = G(a);
6767
- ae(() => {
6767
+ oe(() => {
6768
6768
  let y = {
6769
6769
  "aria-labelledby": b || p
6770
6770
  };
@@ -9116,9 +9116,9 @@ function bu(e, t, r, n, a) {
9116
9116
  function xd(e, t) {
9117
9117
  const r = G(!0), n = G(null);
9118
9118
  let a = et(e);
9119
- ae(() => (r.current = !0, () => {
9119
+ oe(() => (r.current = !0, () => {
9120
9120
  r.current = !1;
9121
- }), []), ae(() => {
9121
+ }), []), oe(() => {
9122
9122
  let o = n.current;
9123
9123
  r.current ? r.current = !1 : (!o || t.some((i, s) => !Object.is(i, o[s]))) && a(), n.current = t;
9124
9124
  }, t);
@@ -9289,21 +9289,21 @@ function ds(e, t) {
9289
9289
  function fs(e, t, r = {}) {
9290
9290
  let { block: n = "nearest", inline: a = "nearest" } = r;
9291
9291
  if (e === t) return;
9292
- let o = e.scrollTop, i = e.scrollLeft, s = t.getBoundingClientRect(), u = e.getBoundingClientRect(), l = window.getComputedStyle(t), c = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, m = e === d ? 0 : u.top, p = e === d ? e.clientHeight : u.bottom, g = e === d ? 0 : u.left, b = e === d ? e.clientWidth : u.right, $ = parseFloat(l.scrollMarginTop) || 0, S = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, E = parseFloat(l.scrollMarginRight) || 0, _ = parseFloat(c.scrollPaddingTop) || 0, A = parseFloat(c.scrollPaddingBottom) || 0, N = parseFloat(c.scrollPaddingLeft) || 0, K = parseFloat(c.scrollPaddingRight) || 0, F = parseFloat(c.borderTopWidth) || 0, Z = parseFloat(c.borderBottomWidth) || 0, I = parseFloat(c.borderLeftWidth) || 0, re = parseFloat(c.borderRightWidth) || 0, he = s.top - $, w = s.bottom + S, j = s.left - y, H = s.right + E, P = e === d ? 0 : I + re, q = e === d ? 0 : F + Z, C = e === d ? 0 : e.offsetWidth - e.clientWidth - P, k = e === d ? 0 : e.offsetHeight - e.clientHeight - q, Q = m + (f ? 0 : F) + _, fe = p - (f ? 0 : Z) - A - k, oe = g + (f ? 0 : I) + N, V = b - (f ? 0 : re) - K;
9293
- c.direction === "rtl" && !Aa() ? oe += C : V -= C;
9294
- let ee = he < Q || w > fe, x = j < oe || H > V;
9295
- if (ee && n === "start") o += he - Q;
9296
- else if (ee && n === "center") o += (he + w) / 2 - (Q + fe) / 2;
9292
+ let o = e.scrollTop, i = e.scrollLeft, s = t.getBoundingClientRect(), u = e.getBoundingClientRect(), l = window.getComputedStyle(t), c = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, m = e === d ? 0 : u.top, p = e === d ? e.clientHeight : u.bottom, g = e === d ? 0 : u.left, b = e === d ? e.clientWidth : u.right, $ = parseFloat(l.scrollMarginTop) || 0, S = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, E = parseFloat(l.scrollMarginRight) || 0, _ = parseFloat(c.scrollPaddingTop) || 0, A = parseFloat(c.scrollPaddingBottom) || 0, N = parseFloat(c.scrollPaddingLeft) || 0, K = parseFloat(c.scrollPaddingRight) || 0, F = parseFloat(c.borderTopWidth) || 0, Z = parseFloat(c.borderBottomWidth) || 0, I = parseFloat(c.borderLeftWidth) || 0, te = parseFloat(c.borderRightWidth) || 0, ge = s.top - $, w = s.bottom + S, j = s.left - y, H = s.right + E, P = e === d ? 0 : I + te, q = e === d ? 0 : F + Z, C = e === d ? 0 : e.offsetWidth - e.clientWidth - P, k = e === d ? 0 : e.offsetHeight - e.clientHeight - q, Q = m + (f ? 0 : F) + _, fe = p - (f ? 0 : Z) - A - k, ie = g + (f ? 0 : I) + N, V = b - (f ? 0 : te) - K;
9293
+ c.direction === "rtl" && !Aa() ? ie += C : V -= C;
9294
+ let ee = ge < Q || w > fe, x = j < ie || H > V;
9295
+ if (ee && n === "start") o += ge - Q;
9296
+ else if (ee && n === "center") o += (ge + w) / 2 - (Q + fe) / 2;
9297
9297
  else if (ee && n === "end") o += w - fe;
9298
9298
  else if (ee && n === "nearest") {
9299
- let D = he - Q, v = w - fe;
9299
+ let D = ge - Q, v = w - fe;
9300
9300
  o += Math.abs(D) <= Math.abs(v) ? D : v;
9301
9301
  }
9302
- if (x && a === "start") i += j - oe;
9303
- else if (x && a === "center") i += (j + H) / 2 - (oe + V) / 2;
9302
+ if (x && a === "start") i += j - ie;
9303
+ else if (x && a === "center") i += (j + H) / 2 - (ie + V) / 2;
9304
9304
  else if (x && a === "end") i += H - V;
9305
9305
  else if (x && a === "nearest") {
9306
- let D = j - oe, v = H - V;
9306
+ let D = j - ie, v = H - V;
9307
9307
  i += Math.abs(D) <= Math.abs(v) ? D : v;
9308
9308
  }
9309
9309
  e.scrollTo({
@@ -9426,10 +9426,10 @@ function LE(e, t, r) {
9426
9426
  return;
9427
9427
  }
9428
9428
  }
9429
- let re = () => {
9429
+ let te = () => {
9430
9430
  t.setDragging(!0), _.current = void 0, t.selectDate(n), t.setFocusedDate(n), t.setFocused(!0), y.current = !0;
9431
9431
  };
9432
- I.pointerType === "touch" ? _.current = setTimeout(re, 200) : re();
9432
+ I.pointerType === "touch" ? _.current = setTimeout(te, 200) : te();
9433
9433
  }
9434
9434
  },
9435
9435
  onPressEnd() {
@@ -9442,7 +9442,7 @@ function LE(e, t, r) {
9442
9442
  t.isReadOnly || ("anchorDate" in t && _.current && (t.selectDate(n), t.setFocusedDate(n), t.setFocused(!0)), "anchorDate" in t && (E.current ? t.setAnchorDate(n) : t.anchorDate && !y.current ? (t.selectDate(n), t.setFocusedDate(n), t.setFocused(!0)) : I.pointerType === "keyboard" && !t.anchorDate ? (t.selectDate(n), t.focusNearestAvailableDate(n)) : I.pointerType === "virtual" && (t.selectDate(n), t.setFocusedDate(n), t.setFocused(!0))));
9443
9443
  }
9444
9444
  }), K;
9445
- a || (K = je(n, t.focusedDate) ? 0 : -1), ae(() => {
9445
+ a || (K = je(n, t.focusedDate) ? 0 : -1), oe(() => {
9446
9446
  l && r.current && (Jr(r.current), yi() !== "pointer" && ze() === r.current && Xh(r.current, {
9447
9447
  containingElement: Ei(r.current)
9448
9448
  }));
@@ -9482,8 +9482,8 @@ function LE(e, t, r) {
9482
9482
  "highlightDate" in t && (I.pointerType !== "touch" || t.isDragging) && d && t.highlightDate(n);
9483
9483
  },
9484
9484
  onPointerDown(I) {
9485
- let re = ve(I);
9486
- re instanceof HTMLElement && "releasePointerCapture" in re && ("hasPointerCapture" in re ? re.hasPointerCapture(I.pointerId) && re.releasePointerCapture(I.pointerId) : re.releasePointerCapture(I.pointerId));
9485
+ let te = ve(I);
9486
+ te instanceof HTMLElement && "releasePointerCapture" in te && ("hasPointerCapture" in te ? te.hasPointerCapture(I.pointerId) && te.releasePointerCapture(I.pointerId) : te.releasePointerCapture(I.pointerId));
9487
9487
  },
9488
9488
  onContextMenu(I) {
9489
9489
  I.preventDefault();
@@ -9667,8 +9667,8 @@ function jE(e) {
9667
9667
  default:
9668
9668
  return Ad(_, o, n, i, s);
9669
9669
  }
9670
- }, [K, F] = M(N), [Z, I] = M(e.autoFocus || !1), [re, he] = M(o);
9671
- zE(o, re) || (he(o), F(N()));
9670
+ }, [K, F] = M(N), [Z, I] = M(e.autoFocus || !1), [te, ge] = M(o);
9671
+ zE(o, te) || (ge(o), F(N()));
9672
9672
  let w = J(() => {
9673
9673
  let V = {
9674
9674
  ...o
@@ -9710,7 +9710,7 @@ function jE(e) {
9710
9710
  l,
9711
9711
  i,
9712
9712
  s
9713
- ]), Q = e.isInvalid || e.validationState === "invalid" || k, fe = Q ? "invalid" : null, oe = J(() => c === "visible" ? o : ps(o), [
9713
+ ]), Q = e.isInvalid || e.validationState === "invalid" || k, fe = Q ? "invalid" : null, ie = J(() => c === "visible" ? o : ps(o), [
9714
9714
  c,
9715
9715
  o
9716
9716
  ]);
@@ -9755,12 +9755,12 @@ function jE(e) {
9755
9755
  }));
9756
9756
  },
9757
9757
  focusNextPage() {
9758
- let V = K.add(oe);
9759
- A(Kt(_.add(oe), i, s)), F(Vr(va(_, V, oe, n, i, s), oe, n));
9758
+ let V = K.add(ie);
9759
+ A(Kt(_.add(ie), i, s)), F(Vr(va(_, V, ie, n, i, s), ie, n));
9760
9760
  },
9761
9761
  focusPreviousPage() {
9762
- let V = K.subtract(oe);
9763
- A(Kt(_.subtract(oe), i, s)), F(Vr(va(_, V, oe, n, i, s), oe, n));
9762
+ let V = K.subtract(ie);
9763
+ A(Kt(_.subtract(ie), i, s)), F(Vr(va(_, V, ie, n, i, s), ie, n));
9764
9764
  },
9765
9765
  focusSectionStart() {
9766
9766
  o.days ? P(K) : o.weeks ? P(ha(_, n)) : (o.months || o.years) && P(en(_));
@@ -10168,7 +10168,7 @@ function rS(e) {
10168
10168
  let Z = l || o || $.current;
10169
10169
  hs(Z, E.current) || (E.current = Z, y(Z));
10170
10170
  }, [A, N] = M(!1);
10171
- return ae(_), {
10171
+ return oe(_), {
10172
10172
  realtimeValidation: u || b || l || o || Kn,
10173
10173
  displayValidation: s === "native" ? u || b || S : u || b || l || o || S,
10174
10174
  updateValidation(Z) {
@@ -10240,7 +10240,7 @@ function oS(e, t, r) {
10240
10240
  let n = et((a) => {
10241
10241
  r && !a.defaultPrevented && r(t);
10242
10242
  });
10243
- ae(() => {
10243
+ oe(() => {
10244
10244
  let a = e?.current?.form;
10245
10245
  return a?.addEventListener("reset", n), () => {
10246
10246
  a?.removeEventListener("reset", n);
@@ -10266,7 +10266,7 @@ function iS(e, t, r) {
10266
10266
  }), u = et(() => {
10267
10267
  t.commitValidation();
10268
10268
  });
10269
- ae(() => {
10269
+ oe(() => {
10270
10270
  let l = r?.current;
10271
10271
  if (!l) return;
10272
10272
  let c = l.form, d = c?.reset;
@@ -10570,35 +10570,35 @@ function mS(e) {
10570
10570
  }, []), S = et(() => {
10571
10571
  $();
10572
10572
  });
10573
- ae(() => () => S(), []);
10574
- let y = (oe) => {
10575
- if (!(oe.ctrlKey || oe.metaKey || oe.shiftKey || oe.altKey || s || oe.nativeEvent.isComposing))
10576
- switch (oe.key) {
10573
+ oe(() => () => S(), []);
10574
+ let y = (ie) => {
10575
+ if (!(ie.ctrlKey || ie.metaKey || ie.shiftKey || ie.altKey || s || ie.nativeEvent.isComposing))
10576
+ switch (ie.key) {
10577
10577
  case "PageUp":
10578
10578
  if (c) {
10579
- oe.preventDefault(), c?.();
10579
+ ie.preventDefault(), c?.();
10580
10580
  break;
10581
10581
  }
10582
10582
  // fallthrough!
10583
10583
  case "ArrowUp":
10584
10584
  case "Up":
10585
- l && (oe.preventDefault(), l?.());
10585
+ l && (ie.preventDefault(), l?.());
10586
10586
  break;
10587
10587
  case "PageDown":
10588
10588
  if (f) {
10589
- oe.preventDefault(), f?.();
10589
+ ie.preventDefault(), f?.();
10590
10590
  break;
10591
10591
  }
10592
10592
  // fallthrough
10593
10593
  case "ArrowDown":
10594
10594
  case "Down":
10595
- d && (oe.preventDefault(), d?.());
10595
+ d && (ie.preventDefault(), d?.());
10596
10596
  break;
10597
10597
  case "Home":
10598
- m && (oe.preventDefault(), m?.());
10598
+ m && (ie.preventDefault(), m?.());
10599
10599
  break;
10600
10600
  case "End":
10601
- p && (oe.preventDefault(), p?.());
10601
+ p && (ie.preventDefault(), p?.());
10602
10602
  break;
10603
10603
  }
10604
10604
  }, E = G(!1), _ = () => {
@@ -10606,7 +10606,7 @@ function mS(e) {
10606
10606
  }, A = () => {
10607
10607
  E.current = !1;
10608
10608
  }, N = n === "" ? g.format("Empty") : (n || `${r}`).replace("-", "−");
10609
- ae(() => {
10609
+ oe(() => {
10610
10610
  E.current && (kD("assertive"), pa(N, "assertive"));
10611
10611
  }, [
10612
10612
  N
@@ -10617,24 +10617,24 @@ function mS(e) {
10617
10617
  $
10618
10618
  ]);
10619
10619
  const F = et(l ?? Pd), Z = et(d ?? Pd), I = et(() => {
10620
- (o === void 0 || isNaN(o) || r === void 0 || isNaN(r) || r < o) && (F(), re(60));
10621
- }), re = et((oe) => {
10622
- S(), b.current = !0, t.current = window.setTimeout(I, oe);
10623
- }), he = et(() => {
10620
+ (o === void 0 || isNaN(o) || r === void 0 || isNaN(r) || r < o) && (F(), te(60));
10621
+ }), te = et((ie) => {
10622
+ S(), b.current = !0, t.current = window.setTimeout(I, ie);
10623
+ }), ge = et(() => {
10624
10624
  (a === void 0 || isNaN(a) || r === void 0 || isNaN(r) || r > a) && (Z(), w(60));
10625
- }), w = et((oe) => {
10626
- S(), b.current = !0, t.current = window.setTimeout(he, oe);
10625
+ }), w = et((ie) => {
10626
+ S(), b.current = !0, t.current = window.setTimeout(ge, ie);
10627
10627
  });
10628
- let j = (oe) => {
10629
- oe.preventDefault();
10628
+ let j = (ie) => {
10629
+ ie.preventDefault();
10630
10630
  }, { addGlobalListener: H, removeAllGlobalListeners: P } = bi(), q = G(!1), [C, k] = M(null);
10631
- ae(() => {
10632
- C === "touch" ? re(600) : C ? re(400) : C || S();
10631
+ oe(() => {
10632
+ C === "touch" ? te(600) : C ? te(400) : C || S();
10633
10633
  }, [
10634
10634
  C
10635
10635
  ]);
10636
10636
  let [Q, fe] = M(null);
10637
- return ae(() => {
10637
+ return oe(() => {
10638
10638
  Q === "touch" ? w(600) : Q ? w(400) : Q || S();
10639
10639
  }, [
10640
10640
  Q
@@ -10653,31 +10653,31 @@ function mS(e) {
10653
10653
  onBlur: A
10654
10654
  },
10655
10655
  incrementButtonProps: {
10656
- onPressStart: (oe) => {
10657
- $(), oe.pointerType !== "touch" ? (l?.(), k("mouse")) : (H(window, "pointercancel", K, {
10656
+ onPressStart: (ie) => {
10657
+ $(), ie.pointerType !== "touch" ? (l?.(), k("mouse")) : (H(window, "pointercancel", K, {
10658
10658
  capture: !0
10659
10659
  }), q.current = !1, k("touch")), H(window, "contextmenu", j);
10660
10660
  },
10661
- onPressUp: (oe) => {
10662
- $(), oe.pointerType === "touch" && (q.current = !0), P(), k(null);
10661
+ onPressUp: (ie) => {
10662
+ $(), ie.pointerType === "touch" && (q.current = !0), P(), k(null);
10663
10663
  },
10664
- onPressEnd: (oe) => {
10665
- $(), oe.pointerType === "touch" && !b.current && q.current && l?.(), q.current = !1, k(null);
10664
+ onPressEnd: (ie) => {
10665
+ $(), ie.pointerType === "touch" && !b.current && q.current && l?.(), q.current = !1, k(null);
10666
10666
  },
10667
10667
  onFocus: _,
10668
10668
  onBlur: A
10669
10669
  },
10670
10670
  decrementButtonProps: {
10671
- onPressStart: (oe) => {
10672
- $(), oe.pointerType !== "touch" ? (d?.(), fe("mouse")) : (H(window, "pointercancel", K, {
10671
+ onPressStart: (ie) => {
10672
+ $(), ie.pointerType !== "touch" ? (d?.(), fe("mouse")) : (H(window, "pointercancel", K, {
10673
10673
  capture: !0
10674
10674
  }), q.current = !1, fe("touch"));
10675
10675
  },
10676
- onPressUp: (oe) => {
10677
- $(), oe.pointerType === "touch" && (q.current = !0), P(), fe(null);
10676
+ onPressUp: (ie) => {
10677
+ $(), ie.pointerType === "touch" && (q.current = !0), P(), fe(null);
10678
10678
  },
10679
- onPressEnd: (oe) => {
10680
- $(), oe.pointerType === "touch" && !b.current && q.current && d?.(), q.current = !1, fe(null);
10679
+ onPressEnd: (ie) => {
10680
+ $(), ie.pointerType === "touch" && !b.current && q.current && d?.(), q.current = !1, fe(null);
10681
10681
  },
10682
10682
  onFocus: _,
10683
10683
  onBlur: A
@@ -10837,7 +10837,7 @@ function hS(e) {
10837
10837
  };
10838
10838
  }, [
10839
10839
  t
10840
- ]), DS(s, n, r), _S(s, r), ES(s, n, r), $S(s, a), ae(() => {
10840
+ ]), DS(s, n, r), _S(s, r), ES(s, n, r), $S(s, a), oe(() => {
10841
10841
  const f = ze(Te(s.current ? s.current[0] : void 0));
10842
10842
  let m = null;
10843
10843
  if (Ft(f, s.current)) {
@@ -11028,7 +11028,7 @@ function Su(e, t = !0) {
11028
11028
  }
11029
11029
  function $S(e, t) {
11030
11030
  const r = X.useRef(t);
11031
- ae(() => {
11031
+ oe(() => {
11032
11032
  if (r.current) {
11033
11033
  He = e;
11034
11034
  const n = Te(e.current ? e.current[0] : void 0);
@@ -11512,20 +11512,20 @@ function RS(e, t, r, n, a, o, i, s, u, l, c, d, f, m, p, g, b, $) {
11512
11512
  }
11513
11513
  let I = "bottom";
11514
11514
  S.axis === "top" ? S.placement === "top" ? I = "top" : S.placement === "bottom" && (I = "bottom") : S.crossAxis === "top" && (S.crossPlacement === "top" ? I = "bottom" : S.crossPlacement === "bottom" && (I = "top"));
11515
- let re = Od(E, K[E], r[_], s, u, o, l);
11516
- K[E] += re;
11517
- let he = IS(K, s, l, f, a, o, r.height, I, u, b, $);
11518
- m && m < he && (he = m), r.height = Math.min(r.height, he), K = bs(t, s, r, S, F, d, l, f, p, g, u), re = Od(E, K[E], r[_], s, u, o, l), K[E] += re;
11515
+ let te = Od(E, K[E], r[_], s, u, o, l);
11516
+ K[E] += te;
11517
+ let ge = IS(K, s, l, f, a, o, r.height, I, u, b, $);
11518
+ m && m < ge && (ge = m), r.height = Math.min(r.height, ge), K = bs(t, s, r, S, F, d, l, f, p, g, u), te = Od(E, K[E], r[_], s, u, o, l), K[E] += te;
11519
11519
  let w = {}, j = t[E] - K[E] - a[Pt[E]], H = j + 0.5 * t[_];
11520
11520
  const P = p / 2 + g, q = Pt[E] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), C = r[_] - q - p / 2 - g, k = t[E] + p / 2 - (K[E] + a[Pt[E]]), Q = t[E] + t[_] - p / 2 - (K[E] + a[Pt[E]]), fe = lu(H, k, Q);
11521
11521
  w[E] = lu(fe, P, C), { placement: A, crossPlacement: N } = S, p ? j = w[E] : N === "right" ? j += t[_] : N === "center" && (j += t[_] / 2);
11522
- let oe = A === "left" || A === "top" ? r[y] : 0, V = {
11523
- x: A === "top" || A === "bottom" ? j : oe,
11524
- y: A === "left" || A === "right" ? j : oe
11522
+ let ie = A === "left" || A === "top" ? r[y] : 0, V = {
11523
+ x: A === "top" || A === "bottom" ? j : ie,
11524
+ y: A === "left" || A === "right" ? j : ie
11525
11525
  };
11526
11526
  return {
11527
11527
  position: K,
11528
- maxHeight: he,
11528
+ maxHeight: ge,
11529
11529
  arrowOffsetLeft: w.left,
11530
11530
  arrowOffsetTop: w.top,
11531
11531
  placement: A,
@@ -11537,8 +11537,8 @@ function MS(e) {
11537
11537
  const $ = window.getComputedStyle(g).position;
11538
11538
  let S = !!$ && $ !== "static", y = b ? $a(r, !1, m) : Ud(r, g, !1, m);
11539
11539
  if (!b) {
11540
- let { marginTop: I, marginLeft: re } = window.getComputedStyle(r);
11541
- y.top += parseInt(I, 10) || 0, y.left += parseInt(re, 10) || 0;
11540
+ let { marginTop: I, marginLeft: te } = window.getComputedStyle(r);
11541
+ y.top += parseInt(I, 10) || 0, y.left += parseInt(te, 10) || 0;
11542
11542
  }
11543
11543
  let E = $a(n, !0), _ = NS(n);
11544
11544
  E.width += (_.left ?? 0) + (_.right ?? 0), E.height += (_.top ?? 0) + (_.bottom ?? 0);
@@ -11601,7 +11601,7 @@ function Hd(e) {
11601
11601
  const OS = /* @__PURE__ */ new WeakMap();
11602
11602
  function BS(e) {
11603
11603
  let { triggerRef: t, isOpen: r, onClose: n } = e;
11604
- ae(() => {
11604
+ oe(() => {
11605
11605
  if (!r || n === null) return;
11606
11606
  let a = (o) => {
11607
11607
  let i = ve(o);
@@ -11624,7 +11624,7 @@ function LS() {
11624
11624
  function xu(e) {
11625
11625
  const { ref: t, box: r, onResize: n } = e;
11626
11626
  let a = et(n);
11627
- ae(() => {
11627
+ oe(() => {
11628
11628
  let o = t?.current;
11629
11629
  if (o)
11630
11630
  if (LS()) {
@@ -11665,7 +11665,7 @@ function US(e) {
11665
11665
  $,
11666
11666
  r
11667
11667
  ], A = G(Or?.scale);
11668
- ae(() => {
11668
+ oe(() => {
11669
11669
  p && (A.current = Or?.scale);
11670
11670
  }, [
11671
11671
  p
@@ -11682,7 +11682,7 @@ function US(e) {
11682
11682
  }
11683
11683
  let I = a.current;
11684
11684
  !b && a.current && (I.style.top = "0px", I.style.bottom = "", I.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
11685
- let re = MS({
11685
+ let te = MS({
11686
11686
  placement: VS(s, t),
11687
11687
  overlayNode: a.current,
11688
11688
  targetNode: n.current,
@@ -11697,14 +11697,14 @@ function US(e) {
11697
11697
  arrowBoundaryOffset: $,
11698
11698
  targetRect: S?.(n.current)
11699
11699
  });
11700
- if (!re.position) return;
11701
- I.style.top = "", I.style.bottom = "", I.style.left = "", I.style.right = "", Object.keys(re.position).forEach((w) => I.style[w] = re.position[w] + "px"), I.style.maxHeight = re.maxHeight != null ? re.maxHeight + "px" : "";
11702
- let he = ze();
11703
- if (Z && he && i.current) {
11704
- let w = he.getBoundingClientRect(), j = i.current.getBoundingClientRect(), H = w[Z.type] - j[Z.type];
11700
+ if (!te.position) return;
11701
+ I.style.top = "", I.style.bottom = "", I.style.left = "", I.style.right = "", Object.keys(te.position).forEach((w) => I.style[w] = te.position[w] + "px"), I.style.maxHeight = te.maxHeight != null ? te.maxHeight + "px" : "";
11702
+ let ge = ze();
11703
+ if (Z && ge && i.current) {
11704
+ let w = ge.getBoundingClientRect(), j = i.current.getBoundingClientRect(), H = w[Z.type] - j[Z.type];
11705
11705
  i.current.scrollTop += H - Z.offset;
11706
11706
  }
11707
- E(re);
11707
+ E(te);
11708
11708
  }, _);
11709
11709
  Re(N, _), HS(N), xu({
11710
11710
  ref: a,
@@ -11719,11 +11719,11 @@ function US(e) {
11719
11719
  K.current = !0, clearTimeout(Z), Z = setTimeout(() => {
11720
11720
  K.current = !1;
11721
11721
  }, 500), N();
11722
- }, re = () => {
11722
+ }, te = () => {
11723
11723
  K.current && I();
11724
11724
  };
11725
- return Or?.addEventListener("resize", I), Or?.addEventListener("scroll", re), () => {
11726
- Or?.removeEventListener("resize", I), Or?.removeEventListener("scroll", re);
11725
+ return Or?.addEventListener("resize", I), Or?.addEventListener("scroll", te), () => {
11726
+ Or?.removeEventListener("resize", I), Or?.removeEventListener("scroll", te);
11727
11727
  };
11728
11728
  }, [
11729
11729
  N
@@ -11781,7 +11781,7 @@ function zS(e) {
11781
11781
  }), s = et((u) => {
11782
11782
  r && r(u);
11783
11783
  });
11784
- ae(() => {
11784
+ oe(() => {
11785
11785
  let u = o.current;
11786
11786
  if (n) return;
11787
11787
  const l = t.current, c = Te(l);
@@ -11810,7 +11810,7 @@ function Vd(e, t) {
11810
11810
  const Vt = [];
11811
11811
  function jS(e, t) {
11812
11812
  let { onClose: r, shouldCloseOnBlur: n, isOpen: a, isDismissable: o = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: s } = e, u = G(void 0);
11813
- ae(() => {
11813
+ oe(() => {
11814
11814
  if (a && !Vt.includes(t))
11815
11815
  return Vt.push(t), () => {
11816
11816
  let p = Vt.indexOf(t);
@@ -11967,7 +11967,7 @@ function KS(e, t) {
11967
11967
  });
11968
11968
  return WS({
11969
11969
  isDisabled: o || !t.isOpen
11970
- }), ae(() => {
11970
+ }), oe(() => {
11971
11971
  if (t.isOpen && n.current)
11972
11972
  return o ? AS(a?.current ?? n.current) : xS([
11973
11973
  a?.current ?? n.current
@@ -12338,7 +12338,7 @@ function nw({ state: e, isExiting: t, UNSTABLE_portalContainer: r, clearContexts
12338
12338
  }, [
12339
12339
  p,
12340
12340
  $
12341
- ]), ae(() => {
12341
+ ]), oe(() => {
12342
12342
  S && (a.trigger !== "SubmenuTrigger" || yi() !== "pointer") && p.current && !al(p.current) && ma(p.current);
12343
12343
  }, [
12344
12344
  S,
@@ -12428,7 +12428,7 @@ function aw(e, t) {
12428
12428
  let { role: r = "dialog" } = e, n = Io();
12429
12429
  n = e["aria-label"] ? void 0 : n;
12430
12430
  let a = G(!1);
12431
- return ae(() => {
12431
+ return oe(() => {
12432
12432
  if (t.current && !al(t.current)) {
12433
12433
  ma(t.current);
12434
12434
  let o = setTimeout(() => {
@@ -12440,7 +12440,7 @@ function aw(e, t) {
12440
12440
  }
12441
12441
  }, [
12442
12442
  t
12443
- ]), XS(), G(!1), ae(() => {
12443
+ ]), XS(), G(!1), oe(() => {
12444
12444
  }), {
12445
12445
  dialogProps: {
12446
12446
  ...ct(e, {
@@ -13406,7 +13406,7 @@ function mw(e, t, r) {
13406
13406
  role: "group",
13407
13407
  "aria-disabled": e.isDisabled || void 0,
13408
13408
  "aria-describedby": $
13409
- }), ae(() => {
13409
+ }), oe(() => {
13410
13410
  _.current && y.focusFirst(), _.current = !1;
13411
13411
  }, [
13412
13412
  y
@@ -13560,19 +13560,19 @@ function yw(e, t, r) {
13560
13560
  timeZone: "UTC"
13561
13561
  }), K = J(() => {
13562
13562
  if (e.type !== "era") return [];
13563
- let k = Ve(new Ke(1, 1, 1), t.calendar), Q = t.calendar.getEras().map((oe) => {
13563
+ let k = Ve(new Ke(1, 1, 1), t.calendar), Q = t.calendar.getEras().map((ie) => {
13564
13564
  let V = k.set({
13565
13565
  year: 1,
13566
13566
  month: 1,
13567
13567
  day: 1,
13568
- era: oe
13568
+ era: ie
13569
13569
  }).toDate("UTC"), x = N.formatToParts(V).find((D) => D.type === "era").value;
13570
13570
  return {
13571
- era: oe,
13571
+ era: ie,
13572
13572
  formatted: x
13573
13573
  };
13574
- }), fe = bw(Q.map((oe) => oe.formatted));
13575
- if (fe) for (let oe of Q) oe.formatted = oe.formatted.slice(fe);
13574
+ }), fe = bw(Q.map((ie) => ie.formatted));
13575
+ if (fe) for (let ie of Q) ie.formatted = ie.formatted.slice(fe);
13576
13576
  return Q;
13577
13577
  }, [
13578
13578
  N,
@@ -13589,7 +13589,7 @@ function yw(e, t, r) {
13589
13589
  c.focusNext();
13590
13590
  break;
13591
13591
  case "era": {
13592
- let fe = K.find((oe) => y(oe.formatted, k));
13592
+ let fe = K.find((ie) => y(ie.formatted, k));
13593
13593
  fe && (t.setSegment("era", fe.era), c.focusNext());
13594
13594
  break;
13595
13595
  }
@@ -13600,9 +13600,9 @@ function yw(e, t, r) {
13600
13600
  case "month":
13601
13601
  case "year": {
13602
13602
  if (!b.isValidPartialNumber(Q)) return;
13603
- let fe = b.parse(Q), oe = fe;
13604
- if (e.maxValue !== void 0 && fe > e.maxValue && (oe = b.parse(k)), isNaN(fe)) return;
13605
- t.setSegment(e.type, oe), e.maxValue !== void 0 && (+(fe + "0") > e.maxValue || Q.length >= String(e.maxValue).length) ? (n.current = "", c.focusNext()) : n.current = Q;
13603
+ let fe = b.parse(Q), ie = fe;
13604
+ if (e.maxValue !== void 0 && fe > e.maxValue && (ie = b.parse(k)), isNaN(fe)) return;
13605
+ t.setSegment(e.type, ie), e.maxValue !== void 0 && (+(fe + "0") > e.maxValue || Q.length >= String(e.maxValue).length) ? (n.current = "", c.focusNext()) : n.current = Q;
13606
13606
  break;
13607
13607
  }
13608
13608
  }
@@ -13615,7 +13615,7 @@ function yw(e, t, r) {
13615
13615
  let k = window.getSelection();
13616
13616
  k?.anchorNode && ke(r.current, k?.anchorNode) && k.collapse(r.current);
13617
13617
  });
13618
- let re = G("");
13618
+ let te = G("");
13619
13619
  Qi(r, "beforeinput", (k) => {
13620
13620
  if (r.current)
13621
13621
  switch (k.preventDefault(), k.inputType) {
@@ -13624,7 +13624,7 @@ function yw(e, t, r) {
13624
13624
  b.isValidPartialNumber(e.text) && !t.isReadOnly && $();
13625
13625
  break;
13626
13626
  case "insertCompositionText":
13627
- re.current = r.current.textContent, r.current.textContent = r.current.textContent;
13627
+ te.current = r.current.textContent, r.current.textContent = r.current.textContent;
13628
13628
  break;
13629
13629
  default:
13630
13630
  k.data != null && F(k.data);
@@ -13634,7 +13634,7 @@ function yw(e, t, r) {
13634
13634
  let { inputType: Q, data: fe } = k;
13635
13635
  switch (Q) {
13636
13636
  case "insertCompositionText":
13637
- r.current && (r.current.textContent = re.current), fe != null && (y(_, fe) || y(A, fe)) && F(fe);
13637
+ r.current && (r.current.textContent = te.current), fe != null && (y(_, fe) || y(A, fe)) && F(fe);
13638
13638
  break;
13639
13639
  }
13640
13640
  }), Re(() => {
@@ -13646,7 +13646,7 @@ function yw(e, t, r) {
13646
13646
  r,
13647
13647
  c
13648
13648
  ]);
13649
- let he = Aa() || e.type === "timeZoneName" ? {
13649
+ let ge = Aa() || e.type === "timeZoneName" ? {
13650
13650
  role: "textbox",
13651
13651
  "aria-valuemax": null,
13652
13652
  "aria-valuemin": null,
@@ -13676,7 +13676,7 @@ function yw(e, t, r) {
13676
13676
  return {
13677
13677
  segmentProps: Fe(g, q, {
13678
13678
  id: j,
13679
- ...he,
13679
+ ...ge,
13680
13680
  "aria-invalid": t.isInvalid ? "true" : void 0,
13681
13681
  "aria-describedby": l,
13682
13682
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
@@ -14790,7 +14790,7 @@ function Tw(e) {
14790
14790
  d,
14791
14791
  p,
14792
14792
  f
14793
- ]), re = J(() => {
14793
+ ]), te = J(() => {
14794
14794
  let D = g === "h11" || g === "h12", v = [
14795
14795
  "era",
14796
14796
  "year",
@@ -14808,18 +14808,18 @@ function Tw(e) {
14808
14808
  e.maxGranularity,
14809
14809
  d,
14810
14810
  g
14811
- ]), [he, w] = M(y), [j, H] = M(p), [P, q] = M(g);
14812
- (y !== he || g !== P || !vi(p, j)) && (E = new zt(p, g, y), w(y), H(p), q(g), _(E));
14811
+ ]), [ge, w] = M(y), [j, H] = M(p), [P, q] = M(g);
14812
+ (y !== ge || g !== P || !vi(p, j)) && (E = new zt(p, g, y), w(y), H(p), q(g), _(E));
14813
14813
  let C = (D) => {
14814
14814
  if (!(e.isDisabled || e.isReadOnly))
14815
- if (D == null || D instanceof zt && D.isCleared(re))
14815
+ if (D == null || D instanceof zt && D.isCleared(te))
14816
14816
  _(new zt(p, g, y)), $(null);
14817
14817
  else if (!(D instanceof zt))
14818
14818
  D = Ve(D, c?.calendar || new pt()), _(new zt(p, g, y)), $(D);
14819
14819
  else {
14820
- if (D.isComplete(re)) {
14820
+ if (D.isComplete(te)) {
14821
14821
  let v = D.toValue(y ?? I);
14822
- if (D.validate(v, re)) {
14822
+ if (D.validate(v, te)) {
14823
14823
  let W = Ve(v, c?.calendar || new pt());
14824
14824
  if (!b || W.compare(b) !== 0) {
14825
14825
  _(new zt(p, g, y)), $(W);
@@ -14843,8 +14843,8 @@ function Tw(e) {
14843
14843
  t,
14844
14844
  d
14845
14845
  ]), fe = (D, v) => {
14846
- C(E.cycle(D, v, I, re));
14847
- }, oe = J(() => Qy(b, s, u, l, N), [
14846
+ C(E.cycle(D, v, I, te));
14847
+ }, ie = J(() => Qy(b, s, u, l, N), [
14848
14848
  b,
14849
14849
  s,
14850
14850
  u,
@@ -14853,7 +14853,7 @@ function Tw(e) {
14853
14853
  ]), V = i0({
14854
14854
  ...e,
14855
14855
  value: b,
14856
- builtinValidation: oe
14856
+ builtinValidation: ie
14857
14857
  }), ee = V.displayValidation.isInvalid, x = e.validationState || (ee ? "invalid" : null);
14858
14858
  return {
14859
14859
  ...V,
@@ -14895,7 +14895,7 @@ function Tw(e) {
14895
14895
  C(E.set(D, v, I));
14896
14896
  },
14897
14897
  confirmPlaceholder() {
14898
- if (!(e.isDisabled || e.isReadOnly) && E.isComplete(re)) {
14898
+ if (!(e.isDisabled || e.isReadOnly) && E.isComplete(te)) {
14899
14899
  let D = E.toValue(y ?? I), v = Ve(D, c?.calendar || new pt());
14900
14900
  (!b || v.compare(b) !== 0) && $(v), _(new zt(p, g, y));
14901
14901
  }
@@ -15196,11 +15196,11 @@ function Fw(e) {
15196
15196
  ...e,
15197
15197
  value: r,
15198
15198
  builtinValidation: E
15199
- }), A = _.displayValidation.isInvalid, N = e.validationState || (A ? "invalid" : null), K = (I, re) => {
15200
- n("timeZone" in re ? re.set(mt(I)) : sr(I, re)), f(null), p(null), _.commitValidation();
15199
+ }), A = _.displayValidation.isInvalid, N = e.validationState || (A ? "invalid" : null), K = (I, te) => {
15200
+ n("timeZone" in te ? te.set(mt(I)) : sr(I, te)), f(null), p(null), _.commitValidation();
15201
15201
  }, F = (I) => {
15202
- let re = typeof c == "function" ? c() : c;
15203
- l ? m || re ? K(I, m || Yd(e.defaultValue || e.placeholderValue)) : f(I) : (n(I), _.commitValidation()), re && t.setOpen(!1);
15202
+ let te = typeof c == "function" ? c() : c;
15203
+ l ? m || te ? K(I, m || Yd(e.defaultValue || e.placeholderValue)) : f(I) : (n(I), _.commitValidation()), te && t.setOpen(!1);
15204
15204
  }, Z = (I) => {
15205
15205
  d && I ? K(d, I) : p(I);
15206
15206
  };
@@ -15221,16 +15221,16 @@ function Fw(e) {
15221
15221
  },
15222
15222
  validationState: N,
15223
15223
  isInvalid: A,
15224
- formatValue(I, re) {
15224
+ formatValue(I, te) {
15225
15225
  if (!u) return "";
15226
- let he = Tn(re, b);
15227
- return new ar(I, he).format(u);
15226
+ let ge = Tn(te, b);
15227
+ return new ar(I, ge).format(u);
15228
15228
  },
15229
- getDateFormatter(I, re) {
15230
- let he = {
15229
+ getDateFormatter(I, te) {
15230
+ let ge = {
15231
15231
  ...b,
15232
- ...re
15233
- }, w = Tn({}, he);
15232
+ ...te
15233
+ }, w = Tn({}, ge);
15234
15234
  return new ar(I, w);
15235
15235
  }
15236
15236
  };
@@ -15614,24 +15614,24 @@ function Zw({
15614
15614
  disabled: f,
15615
15615
  ...m
15616
15616
  }) {
15617
- const p = G(null), g = G(null), b = G(null), [$, S] = M(!1), [y, E] = M(""), [_, A] = M(-1), [N, K] = M("bottom"), F = Array.isArray(u) ? String(u[0] ?? "") : String(u ?? ""), Z = s.find((C) => C.value === F), I = `${e}-listbox`, re = _ >= 0 ? `${e}-option-${_}` : void 0, he = [r ? `${e}-hint` : null, n ? `${e}-error` : null].filter(Boolean).join(" ") || void 0, w = J(() => {
15617
+ const p = G(null), g = G(null), b = G(null), [$, S] = M(!1), [y, E] = M(""), [_, A] = M(-1), [N, K] = M("bottom"), F = Array.isArray(u) ? String(u[0] ?? "") : String(u ?? ""), Z = s.find((C) => C.value === F), I = `${e}-listbox`, te = _ >= 0 ? `${e}-option-${_}` : void 0, ge = [r ? `${e}-hint` : null, n ? `${e}-error` : null].filter(Boolean).join(" ") || void 0, w = J(() => {
15618
15618
  const C = y.trim().toLowerCase();
15619
15619
  return !C || Z?.label === y ? s : s.filter((k) => k.label.toLowerCase().includes(C) || k.value.toLowerCase().includes(C));
15620
15620
  }, [s, y, Z?.label]);
15621
- ae(() => {
15621
+ oe(() => {
15622
15622
  E(Z?.label ?? "");
15623
- }, [Z?.label]), ae(() => {
15623
+ }, [Z?.label]), oe(() => {
15624
15624
  if (!$) return;
15625
15625
  const C = (k) => {
15626
15626
  p.current && !p.current.contains(k.target) && (S(!1), A(-1), E(Z?.label ?? ""));
15627
15627
  };
15628
15628
  return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
15629
- }, [$, Z?.label]), ae(() => {
15629
+ }, [$, Z?.label]), oe(() => {
15630
15630
  if (!$) return;
15631
15631
  const C = () => {
15632
15632
  const k = g.current;
15633
15633
  if (!k) return;
15634
- const Q = k.getBoundingClientRect(), fe = window.innerHeight || document.documentElement.clientHeight, oe = b.current?.scrollHeight ?? 0, V = Math.min(oe > 0 ? oe : 256, fe * 0.42, 256), ee = 8, x = fe - Q.bottom - ee, D = Q.top - ee;
15634
+ const Q = k.getBoundingClientRect(), fe = window.innerHeight || document.documentElement.clientHeight, ie = b.current?.scrollHeight ?? 0, V = Math.min(ie > 0 ? ie : 256, fe * 0.42, 256), ee = 8, x = fe - Q.bottom - ee, D = Q.top - ee;
15635
15635
  K(x < V && D > x ? "top" : "bottom");
15636
15636
  };
15637
15637
  return C(), window.addEventListener("resize", C), window.addEventListener("scroll", C, !0), () => {
@@ -15687,9 +15687,9 @@ function Zw({
15687
15687
  "aria-autocomplete": "list",
15688
15688
  "aria-expanded": $ && w.length > 0,
15689
15689
  "aria-controls": $ && w.length > 0 ? I : void 0,
15690
- "aria-activedescendant": re,
15690
+ "aria-activedescendant": te,
15691
15691
  "aria-invalid": !!n,
15692
- "aria-describedby": he,
15692
+ "aria-describedby": ge,
15693
15693
  autoComplete: "off",
15694
15694
  onFocus: (C) => {
15695
15695
  c?.(C), j();
@@ -15810,18 +15810,18 @@ function Yw(e) {
15810
15810
  }), t;
15811
15811
  }
15812
15812
  function qw({ id: e, label: t, hint: r, error: n, required: a, className: o, onChange: i, onPlaceSelect: s, value: u, ...l }) {
15813
- const c = G(null), d = G(null), f = G(null), m = G(null), [p, g] = M(!0), [b, $] = M(u || ""), [S, y] = M([]), [E, _] = M(!1), [A, N] = M(-1), K = `${e}-suggestions`, F = A >= 0 ? `${e}-suggestion-${A}` : void 0, Z = G([]), I = G(!1), re = G(-1);
15814
- ae(() => {
15813
+ const c = G(null), d = G(null), f = G(null), m = G(null), [p, g] = M(!0), [b, $] = M(u || ""), [S, y] = M([]), [E, _] = M(!1), [A, N] = M(-1), K = `${e}-suggestions`, F = A >= 0 ? `${e}-suggestion-${A}` : void 0, Z = G([]), I = G(!1), te = G(-1);
15814
+ oe(() => {
15815
15815
  Z.current = S;
15816
- }, [S]), ae(() => {
15816
+ }, [S]), oe(() => {
15817
15817
  I.current = E;
15818
- }, [E]), ae(() => {
15819
- re.current = A;
15820
- }, [A]), ae(() => {
15818
+ }, [E]), oe(() => {
15819
+ te.current = A;
15820
+ }, [A]), oe(() => {
15821
15821
  u !== void 0 && $(String(u));
15822
15822
  }, [u]);
15823
- const he = G(null);
15824
- ae(() => {
15823
+ const ge = G(null);
15824
+ oe(() => {
15825
15825
  if (!c.current) return;
15826
15826
  let P = !0;
15827
15827
  return Kw().then(() => {
@@ -15829,16 +15829,16 @@ function qw({ id: e, label: t, hint: r, error: n, required: a, className: o, onC
15829
15829
  }).catch((q) => {
15830
15830
  console.error("Error loading Google Maps:", q), g(!1);
15831
15831
  }), () => {
15832
- P = !1, he.current && clearTimeout(he.current);
15832
+ P = !1, ge.current && clearTimeout(ge.current);
15833
15833
  };
15834
15834
  }, []);
15835
15835
  const w = (P) => {
15836
15836
  const q = P.target.value;
15837
- if ($(q), i?.(q), he.current && clearTimeout(he.current), q.length < 3) {
15837
+ if ($(q), i?.(q), ge.current && clearTimeout(ge.current), q.length < 3) {
15838
15838
  y([]), _(!1);
15839
15839
  return;
15840
15840
  }
15841
- he.current = setTimeout(() => {
15841
+ ge.current = setTimeout(() => {
15842
15842
  d.current && d.current.getPlacePredictions(
15843
15843
  {
15844
15844
  input: q,
@@ -15858,24 +15858,24 @@ function qw({ id: e, label: t, hint: r, error: n, required: a, className: o, onC
15858
15858
  case "ArrowDown":
15859
15859
  P.preventDefault(), N((q) => {
15860
15860
  const C = q < Z.current.length - 1 ? q + 1 : q;
15861
- return re.current = C, C;
15861
+ return te.current = C, C;
15862
15862
  });
15863
15863
  break;
15864
15864
  case "ArrowUp":
15865
15865
  P.preventDefault(), N((q) => {
15866
15866
  const C = q > 0 ? q - 1 : -1;
15867
- return re.current = C, C;
15867
+ return te.current = C, C;
15868
15868
  });
15869
15869
  break;
15870
15870
  case "Enter":
15871
- P.preventDefault(), re.current >= 0 && re.current < Z.current.length && H(Z.current[re.current]);
15871
+ P.preventDefault(), te.current >= 0 && te.current < Z.current.length && H(Z.current[te.current]);
15872
15872
  break;
15873
15873
  case "Escape":
15874
15874
  P.preventDefault(), _(!1), I.current = !1;
15875
15875
  break;
15876
15876
  }
15877
15877
  };
15878
- ae(() => {
15878
+ oe(() => {
15879
15879
  const P = (q) => {
15880
15880
  m.current && !m.current.contains(q.target) && c.current && !c.current.contains(q.target) && (_(!1), I.current = !1);
15881
15881
  };
@@ -21283,14 +21283,19 @@ async function rt(e, t) {
21283
21283
  throw Uf(o, e, 0), a;
21284
21284
  }
21285
21285
  if (!n.ok) {
21286
- let a = `Request failed with status ${n.status}`;
21286
+ let a = `Request failed with status ${n.status}`, o;
21287
21287
  try {
21288
- a = (await n.json()).error || a;
21288
+ const s = await n.json();
21289
+ a = s.error || a, typeof s.retryAfterSeconds == "number" && (o = s.retryAfterSeconds);
21289
21290
  } catch {
21290
21291
  a = n.statusText || a;
21291
21292
  }
21292
- const o = new Error(a);
21293
- throw o.statusCode = n.status, Uf(o, e, n.status), o;
21293
+ if (o === void 0) {
21294
+ const s = Number(n.headers?.get("Retry-After"));
21295
+ Number.isFinite(s) && s > 0 && (o = s);
21296
+ }
21297
+ const i = new Error(a);
21298
+ throw i.statusCode = n.status, i.retryAfterSeconds = o, Uf(i, e, n.status), i;
21294
21299
  }
21295
21300
  return n;
21296
21301
  }
@@ -21715,30 +21720,30 @@ function Jb({
21715
21720
  const x = {};
21716
21721
  return t && Object.assign(x, t), x;
21717
21722
  }, [t]), [g, b] = M(p);
21718
- ae(() => {
21723
+ oe(() => {
21719
21724
  b(p);
21720
21725
  }, [p]);
21721
21726
  const [$, S] = M({}), y = J(
21722
21727
  () => ({ ...$, ...r ?? g }),
21723
21728
  [$, r, g]
21724
21729
  );
21725
- ae(() => {
21730
+ oe(() => {
21726
21731
  r && S((x) => ({ ...x, ...r }));
21727
21732
  }, [r]);
21728
21733
  const [E, _] = M({}), A = G(/* @__PURE__ */ new Map()), N = G(/* @__PURE__ */ new Set()), [, K] = M({}), [F, Z] = M({}), I = G(!1);
21729
- ae(() => {
21734
+ oe(() => {
21730
21735
  !o || I.current || !d.some((D) => D.key === "year" || D.key === "make" || D.key === "model" || D.key === "body_style") || (I.current = !0, c({}).catch(() => {
21731
21736
  }));
21732
21737
  }, [o, d, c]);
21733
- const [re, he] = M({}), [w, j] = M({}), H = Ee(
21738
+ const [te, ge] = M({}), [w, j] = M({}), H = Ee(
21734
21739
  async (x, D) => {
21735
21740
  if (!o || !Sf(D)) return;
21736
21741
  const v = x ? x.join("-") : "_root";
21737
- he((W) => ({ ...W, [v]: !0 })), j((W) => ({ ...W, [v]: null }));
21742
+ ge((W) => ({ ...W, [v]: !0 })), j((W) => ({ ...W, [v]: null }));
21738
21743
  try {
21739
21744
  const W = await dT({ quoteId: o, vin: D });
21740
21745
  if (W.error) {
21741
- j((se) => ({ ...se, [v]: W.error }));
21746
+ j((ue) => ({ ...ue, [v]: W.error }));
21742
21747
  return;
21743
21748
  }
21744
21749
  let Y = y;
@@ -21746,7 +21751,7 @@ function Jb({
21746
21751
  } catch {
21747
21752
  j((W) => ({ ...W, [v]: "VIN lookup failed — please enter vehicle details manually" }));
21748
21753
  } finally {
21749
- he((W) => ({ ...W, [v]: !1 }));
21754
+ ge((W) => ({ ...W, [v]: !1 }));
21750
21755
  }
21751
21756
  },
21752
21757
  [o, y, r, n]
@@ -21757,12 +21762,12 @@ function Jb({
21757
21762
  (x, D) => {
21758
21763
  if (!o) return;
21759
21764
  const v = `${D.year}|${D.make ?? ""}|${D.model ?? ""}`, W = D.model ? "bodyStyles" : D.make ? "models" : "makes", Y = `${x}:${W}`;
21760
- A.current.has(v) || N.current.has(v) || (N.current.add(v), Z((se) => ({ ...se, [Y]: !0 })), c(D).then((se) => {
21761
- A.current.set(v, se), K((z) => ({ ...z, [Y]: se[W] ?? [] }));
21765
+ A.current.has(v) || N.current.has(v) || (N.current.add(v), Z((ue) => ({ ...ue, [Y]: !0 })), c(D).then((ue) => {
21766
+ A.current.set(v, ue), K((z) => ({ ...z, [Y]: ue[W] ?? [] }));
21762
21767
  }).catch(() => {
21763
- A.current.set(v, {}), K((se) => ({ ...se, [Y]: [] }));
21768
+ A.current.set(v, {}), K((ue) => ({ ...ue, [Y]: [] }));
21764
21769
  }).finally(() => {
21765
- N.current.delete(v), Z((se) => ({ ...se, [Y]: !1 }));
21770
+ N.current.delete(v), Z((ue) => ({ ...ue, [Y]: !1 }));
21766
21771
  }));
21767
21772
  },
21768
21773
  [o, c]
@@ -21774,25 +21779,25 @@ function Jb({
21774
21779
  function k(x, D) {
21775
21780
  const v = Mb.filter((Y) => Y.targetKey === x || Y.dependsOn.includes(x)), W = { [x]: void 0 };
21776
21781
  for (const Y of v) {
21777
- const se = Y.validate(D);
21778
- Y.targetKey in W ? se !== void 0 && (W[Y.targetKey] = se) : W[Y.targetKey] = se;
21782
+ const ue = Y.validate(D);
21783
+ Y.targetKey in W ? ue !== void 0 && (W[Y.targetKey] = ue) : W[Y.targetKey] = ue;
21779
21784
  }
21780
21785
  _((Y) => ({ ...Y, ...W }));
21781
21786
  }
21782
21787
  const Q = (x, D, v) => {
21783
21788
  const W = ot(y, v, x);
21784
21789
  if (Wt(W, D)) {
21785
- E[x] && _((se) => ({ ...se, [x]: void 0 }));
21790
+ E[x] && _((ue) => ({ ...ue, [x]: void 0 }));
21786
21791
  return;
21787
21792
  }
21788
21793
  const Y = Nu(x, W);
21789
21794
  if (Y) {
21790
- _((se) => ({ ...se, [x]: Y }));
21795
+ _((ue) => ({ ...ue, [x]: Y }));
21791
21796
  return;
21792
21797
  }
21793
21798
  k(x, C(v, x, W));
21794
21799
  };
21795
- ae(() => {
21800
+ oe(() => {
21796
21801
  let x = y, D = !1;
21797
21802
  d.forEach((v) => {
21798
21803
  if (!Co(v)) return;
@@ -21803,50 +21808,50 @@ function Jb({
21803
21808
  function fe(x, D) {
21804
21809
  const v = x.key;
21805
21810
  if ((v === "relationship_to_insured" || v === "is_registered_owner") && D) {
21806
- const L = D[D.length - 1];
21807
- if (typeof L == "number" && L === 0) return null;
21811
+ const U = D[D.length - 1];
21812
+ if (typeof U == "number" && U === 0) return null;
21808
21813
  }
21809
21814
  if ((v === "purchase_date" || v === "cost_new_value_cents") && D)
21810
21815
  return null;
21811
21816
  if (v === "custom_equipment_value_cents" && D) {
21812
- const L = ot(y, D, "vehicle_has_modifications");
21813
- if (L !== "Yes" && L !== !0) return null;
21817
+ const U = ot(y, D, "vehicle_has_modifications");
21818
+ if (U !== "Yes" && U !== !0) return null;
21814
21819
  }
21815
- const W = v === "auto_reason_for_no_insurance" && f.currentCarrierKey ? y[f.currentCarrierKey] === "NoPriorInsurance" ? "Reason you are not currently insured" : "Reason for lapse in coverage" : x.question, Y = x.hint, se = ot(y, D, v), z = Eo(x, f) ? ca(y, f) : v === "social_security_number" && Jo(y.state ?? y.State) ? !0 : x.required, me = E[v], Ce = (L) => {
21816
- let ue = ut(y, D, v, L);
21820
+ const W = v === "auto_reason_for_no_insurance" && f.currentCarrierKey ? y[f.currentCarrierKey] === "NoPriorInsurance" ? "Reason you are not currently insured" : "Reason for lapse in coverage" : x.question, Y = x.hint, ue = ot(y, D, v), z = Eo(x, f) ? ca(y, f) : v === "social_security_number" && Jo(y.state ?? y.State) ? !0 : x.required, me = E[v], Ce = (U) => {
21821
+ let le = ut(y, D, v, U);
21817
21822
  if (x.inputType === "radio" && x.conditionals) {
21818
21823
  const B = x.conditionals ?? [];
21819
21824
  for (const ne of B) {
21820
- const te = ot(y, D, v), de = Qn(te, ne.conditionalType, ne.conditionalValue), le = Qn(L, ne.conditionalType, ne.conditionalValue);
21821
- if (de && !le && ne.conditionalQuestionsAllowMultiple) {
21822
- const ge = ne.conditionalQuestions ?? [];
21823
- if (ge.length > 0) {
21825
+ const re = ot(y, D, v), de = Qn(re, ne.conditionalType, ne.conditionalValue), ce = Qn(U, ne.conditionalType, ne.conditionalValue);
21826
+ if (de && !ce && ne.conditionalQuestionsAllowMultiple) {
21827
+ const he = ne.conditionalQuestions ?? [];
21828
+ if (he.length > 0) {
21824
21829
  const R = co(v);
21825
- ue = At(ue, [...D ?? [], R], []);
21826
- const U = (ce, ie) => {
21827
- ce.forEach((pe) => {
21830
+ le = At(le, [...D ?? [], R], []);
21831
+ const L = (se, ae) => {
21832
+ se.forEach((pe) => {
21828
21833
  (pe.conditionals ?? []).forEach((be) => {
21829
21834
  if (be.conditionalQuestionsAllowMultiple) {
21830
21835
  const we = co(pe.key);
21831
- ue = At(ue, [...ie, we], []);
21836
+ le = At(le, [...ae, we], []);
21832
21837
  }
21833
21838
  const Ae = be.conditionalQuestions ?? [];
21834
- Ae.length > 0 && U(Ae, ie);
21839
+ Ae.length > 0 && L(Ae, ae);
21835
21840
  });
21836
21841
  });
21837
21842
  };
21838
- U(ge, [...D ?? [], R]);
21843
+ L(he, [...D ?? [], R]);
21839
21844
  }
21840
21845
  }
21841
21846
  }
21842
21847
  }
21843
- r && n ? n(ue) : b(ue), S(ue);
21848
+ r && n ? n(le) : b(le), S(le);
21844
21849
  };
21845
21850
  if (v === "vehicle_policy_selections") {
21846
- const L = y.vehicles__items ?? [], ue = y.drivers__items ?? [];
21847
- if (L.length === 0)
21851
+ const U = y.vehicles__items ?? [], le = y.drivers__items ?? [];
21852
+ if (U.length === 0)
21848
21853
  return /* @__PURE__ */ h("p", { style: { color: "#666", fontStyle: "italic" }, children: "Add vehicles first to configure coverage selections." }, v);
21849
- const B = y.driver_vehicle_assignments ?? {}, ne = ue.length > 1, te = (we) => Object.entries(we).map(([Se, Oe]) => ({ value: Se, label: Oe })), de = Jo(y.state ?? y.State), le = (we, Se) => Object.fromEntries(we.filter((Oe) => Oe in Se).map((Oe) => [Oe, Se[Oe]])), R = te(le(de ? nA : aA, Iu)), U = de ? le(oA, Ru) : Ru, ce = te(U), pe = te(le(de ? iA : sA, Fb)), ye = (we, Se, Oe) => {
21854
+ const B = y.driver_vehicle_assignments ?? {}, ne = le.length > 1, re = (we) => Object.entries(we).map(([Se, Oe]) => ({ value: Se, label: Oe })), de = Jo(y.state ?? y.State), ce = (we, Se) => Object.fromEntries(we.filter((Oe) => Oe in Se).map((Oe) => [Oe, Se[Oe]])), R = re(ce(de ? nA : aA, Iu)), L = de ? ce(oA, Ru) : Ru, se = re(L), pe = re(ce(de ? iA : sA, Fb)), ye = (we, Se, Oe) => {
21850
21855
  const nt = At(y, ["vehicles__items", we, Se], Oe);
21851
21856
  r && n ? n(nt) : b(nt), S(nt);
21852
21857
  }, be = (we, Se, Oe) => {
@@ -21858,13 +21863,13 @@ function Jb({
21858
21863
  if (!ne) return null;
21859
21864
  const Se = B[`v${we}`];
21860
21865
  if (!Se) return null;
21861
- const Oe = ue.map((Ue, Ht) => Se[`d${Ht}`] ?? 0), nt = Oe.filter((Ue) => Ue > 0);
21866
+ const Oe = le.map((Ue, Ht) => Se[`d${Ht}`] ?? 0), nt = Oe.filter((Ue) => Ue > 0);
21862
21867
  if (nt.length >= 2 && nt.every((Ue) => Ue === nt[0]) && nt[0] === 50)
21863
21868
  return `Assignments for Vehicle ${we + 1} cannot be 50 percent for both Drivers.`;
21864
21869
  const Et = Oe.reduce((Ue, Ht) => Ue + Ht, 0);
21865
21870
  return Et > 0 && Et !== 100 ? `Driver percentages for this vehicle must add up to 100% (currently ${Et}%).` : null;
21866
21871
  };
21867
- return /* @__PURE__ */ h("div", { children: L.map((we, Se) => {
21872
+ return /* @__PURE__ */ h("div", { children: U.map((we, Se) => {
21868
21873
  const Oe = [we.year, we.make, we.model].filter(Boolean).join(" ") || `Vehicle ${Se + 1}`, nt = Ae(Se), Et = (Ue) => typeof we[Ue] == "string" ? we[Ue] : "";
21869
21874
  return /* @__PURE__ */ T(
21870
21875
  "fieldset",
@@ -21904,7 +21909,7 @@ function Jb({
21904
21909
  label: "Towing and Labor",
21905
21910
  required: !0,
21906
21911
  placeholder: "Select...",
21907
- options: ce,
21912
+ options: se,
21908
21913
  value: Et("vehicle_towing_and_labor"),
21909
21914
  onChange: (Ue) => ye(Se, "vehicle_towing_and_labor", Ue.currentTarget.value)
21910
21915
  }
@@ -21924,7 +21929,7 @@ function Jb({
21924
21929
  ] }),
21925
21930
  ne && /* @__PURE__ */ T("div", { style: { marginTop: "16px" }, children: [
21926
21931
  /* @__PURE__ */ h("p", { style: { fontWeight: 600, margin: "0 0 8px" }, children: "Drivers usage (%)" }),
21927
- /* @__PURE__ */ h("div", { style: { display: "flex", flexWrap: "wrap", gap: "12px" }, children: ue.map((Ue, Ht) => {
21932
+ /* @__PURE__ */ h("div", { style: { display: "flex", flexWrap: "wrap", gap: "12px" }, children: le.map((Ue, Ht) => {
21928
21933
  const Fi = [Ue.first_name, Ue.last_name].filter(Boolean).join(" ") || `Driver ${Ht + 1}`, Bt = B[`v${Se}`]?.[`d${Ht}`];
21929
21934
  return /* @__PURE__ */ h("div", { style: { flex: "0 0 140px" }, children: /* @__PURE__ */ h(
21930
21935
  Gi,
@@ -21952,41 +21957,41 @@ function Jb({
21952
21957
  }) }, v);
21953
21958
  }
21954
21959
  if (v === "driver_vehicle_assignments") {
21955
- const L = y.vehicles__items ?? [], ue = y.drivers__items ?? [];
21956
- if (m && ue.length <= 1)
21960
+ const U = y.vehicles__items ?? [], le = y.drivers__items ?? [];
21961
+ if (m && le.length <= 1)
21957
21962
  return null;
21958
- if (L.length === 0 || ue.length === 0)
21963
+ if (U.length === 0 || le.length === 0)
21959
21964
  return /* @__PURE__ */ h("p", { style: { color: "#666", fontStyle: "italic" }, children: "Add vehicles and drivers first to configure driver usage percentages." }, v);
21960
- const B = y.driver_vehicle_assignments ?? {}, ne = (de, le, ge) => {
21961
- const R = { ...B }, U = `v${de}`;
21962
- R[U] = { ...R[U] ?? {} }, R[U][`d${le}`] = ge, Ce(R);
21963
- }, te = (de) => {
21964
- if (ue.length < 2) return null;
21965
- const le = B[`v${de}`];
21966
- if (!le) return null;
21967
- const ge = ue.map((ce, ie) => le[`d${ie}`] ?? 0), R = ge.filter((ce) => ce > 0);
21968
- if (R.length >= 2 && R.every((ce) => ce === R[0]) && R[0] === 50)
21965
+ const B = y.driver_vehicle_assignments ?? {}, ne = (de, ce, he) => {
21966
+ const R = { ...B }, L = `v${de}`;
21967
+ R[L] = { ...R[L] ?? {} }, R[L][`d${ce}`] = he, Ce(R);
21968
+ }, re = (de) => {
21969
+ if (le.length < 2) return null;
21970
+ const ce = B[`v${de}`];
21971
+ if (!ce) return null;
21972
+ const he = le.map((se, ae) => ce[`d${ae}`] ?? 0), R = he.filter((se) => se > 0);
21973
+ if (R.length >= 2 && R.every((se) => se === R[0]) && R[0] === 50)
21969
21974
  return `Assignments for Vehicle ${de + 1} cannot be 50 percent for both Drivers.`;
21970
- const U = ge.reduce((ce, ie) => ce + ie, 0);
21971
- return U > 0 && U !== 100 ? `Driver percentages for this vehicle must add up to 100% (currently ${U}%).` : null;
21975
+ const L = he.reduce((se, ae) => se + ae, 0);
21976
+ return L > 0 && L !== 100 ? `Driver percentages for this vehicle must add up to 100% (currently ${L}%).` : null;
21972
21977
  };
21973
21978
  return /* @__PURE__ */ T("div", { children: [
21974
21979
  /* @__PURE__ */ h("h4", { style: { marginBottom: "12px" }, children: W }),
21975
- L.map((de, le) => {
21976
- const ge = [de.year, de.make, de.model].filter(Boolean).join(" ") || `Vehicle ${le + 1}`, R = te(le);
21980
+ U.map((de, ce) => {
21981
+ const he = [de.year, de.make, de.model].filter(Boolean).join(" ") || `Vehicle ${ce + 1}`, R = re(ce);
21977
21982
  return /* @__PURE__ */ T(
21978
21983
  "fieldset",
21979
21984
  {
21980
21985
  style: { border: `1px solid ${R ? "#dc3545" : "#ddd"}`, borderRadius: "8px", padding: "16px", marginBottom: "16px" },
21981
21986
  children: [
21982
- /* @__PURE__ */ h("legend", { style: { fontWeight: 600, padding: "0 8px" }, children: ge }),
21983
- /* @__PURE__ */ h("div", { style: { display: "flex", flexWrap: "wrap", gap: "12px" }, children: ue.map((U, ce) => {
21984
- const ie = [U.first_name, U.last_name].filter(Boolean).join(" ") || `Driver ${ce + 1}`, pe = B[`v${le}`]?.[`d${ce}`];
21987
+ /* @__PURE__ */ h("legend", { style: { fontWeight: 600, padding: "0 8px" }, children: he }),
21988
+ /* @__PURE__ */ h("div", { style: { display: "flex", flexWrap: "wrap", gap: "12px" }, children: le.map((L, se) => {
21989
+ const ae = [L.first_name, L.last_name].filter(Boolean).join(" ") || `Driver ${se + 1}`, pe = B[`v${ce}`]?.[`d${se}`];
21985
21990
  return /* @__PURE__ */ h("div", { style: { flex: "0 0 140px" }, children: /* @__PURE__ */ h(
21986
21991
  Gi,
21987
21992
  {
21988
- id: `assignment-v${le}-d${ce}`,
21989
- label: `${ie} %`,
21993
+ id: `assignment-v${ce}-d${se}`,
21994
+ label: `${ae} %`,
21990
21995
  value: pe ?? "",
21991
21996
  min: 0,
21992
21997
  max: 100,
@@ -21994,15 +21999,15 @@ function Jb({
21994
21999
  inputMode: "numeric",
21995
22000
  onChange: (ye) => {
21996
22001
  const be = ye.currentTarget.value.replace(/\D+/g, "");
21997
- ne(le, ce, be === "" ? 0 : Math.min(100, parseInt(be, 10)));
22002
+ ne(ce, se, be === "" ? 0 : Math.min(100, parseInt(be, 10)));
21998
22003
  }
21999
22004
  }
22000
- ) }, `${le}-${ce}`);
22005
+ ) }, `${ce}-${se}`);
22001
22006
  }) }),
22002
22007
  R && /* @__PURE__ */ h("p", { style: { color: "#dc3545", fontSize: "0.85rem", marginTop: "8px", marginBottom: 0 }, children: R })
22003
22008
  ]
22004
22009
  },
22005
- le
22010
+ ce
22006
22011
  );
22007
22012
  })
22008
22013
  ] }, v);
@@ -22010,7 +22015,7 @@ function Jb({
22010
22015
  switch (x.inputType) {
22011
22016
  case "text": {
22012
22017
  if (v === "vin" && o) {
22013
- const L = D ? D.join("-") : "_root", ue = re[L] ?? !1, B = w[L] ?? null, ne = [Y ? `${v}-hint` : null, me ? `${v}-error` : null, B ? `${v}-vin-error` : null].filter(Boolean).join(" ");
22018
+ const U = D ? D.join("-") : "_root", le = te[U] ?? !1, B = w[U] ?? null, ne = [Y ? `${v}-hint` : null, me ? `${v}-error` : null, B ? `${v}-vin-error` : null].filter(Boolean).join(" ");
22014
22019
  return /* @__PURE__ */ T("div", { children: [
22015
22020
  /* @__PURE__ */ h(xt, { id: v, label: W, hint: Y, error: me, required: z, children: /* @__PURE__ */ T("div", { className: "flex items-end gap-2", children: [
22016
22021
  /* @__PURE__ */ h("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ h(
@@ -22022,9 +22027,9 @@ function Jb({
22022
22027
  "aria-describedby": ne || void 0,
22023
22028
  "aria-required": z || void 0,
22024
22029
  required: z,
22025
- value: gt(se),
22030
+ value: gt(ue),
22026
22031
  maxLength: 17,
22027
- onChange: (te) => Ce(te.currentTarget.value),
22032
+ onChange: (re) => Ce(re.currentTarget.value),
22028
22033
  onBlur: () => Q(v, "text", D),
22029
22034
  autoComplete: lo[v],
22030
22035
  type: "text"
@@ -22034,10 +22039,10 @@ function Jb({
22034
22039
  "button",
22035
22040
  {
22036
22041
  type: "button",
22037
- disabled: ue || !Sf(gt(se)),
22042
+ disabled: le || !Sf(gt(ue)),
22038
22043
  className: "btn btn-outline shrink-0 self-end !w-auto min-w-[8.5rem] px-4 whitespace-nowrap disabled:opacity-50",
22039
- onClick: () => H(D, gt(se)),
22040
- children: ue ? "Looking up..." : "Verify VIN"
22044
+ onClick: () => H(D, gt(ue)),
22045
+ children: le ? "Looking up..." : "Verify VIN"
22041
22046
  }
22042
22047
  )
22043
22048
  ] }) }),
@@ -22045,19 +22050,19 @@ function Jb({
22045
22050
  ] }, v);
22046
22051
  }
22047
22052
  if (v === "sms_code") {
22048
- const L = gt(se);
22053
+ const U = gt(ue);
22049
22054
  return /* @__PURE__ */ h(
22050
22055
  po,
22051
22056
  {
22052
22057
  id: v,
22053
22058
  label: W,
22054
22059
  hint: Y,
22055
- value: L,
22060
+ value: U,
22056
22061
  inputMode: "numeric",
22057
22062
  pattern: "[0-9]*",
22058
22063
  maxLength: 6,
22059
- onChange: (ue) => {
22060
- const B = ue.currentTarget.value.replace(/\D+/g, "").slice(0, 6);
22064
+ onChange: (le) => {
22065
+ const B = le.currentTarget.value.replace(/\D+/g, "").slice(0, 6);
22061
22066
  Ce(B);
22062
22067
  },
22063
22068
  onBlur: () => Q(v, "text", D),
@@ -22075,8 +22080,8 @@ function Jb({
22075
22080
  id: v,
22076
22081
  label: W,
22077
22082
  hint: Y,
22078
- value: gt(se),
22079
- onChange: (L) => Ce(L.currentTarget.value.replace(/[^A-Z0-9]/gi, "").slice(0, 20)),
22083
+ value: gt(ue),
22084
+ onChange: (U) => Ce(U.currentTarget.value.replace(/[^A-Z0-9]/gi, "").slice(0, 20)),
22080
22085
  onBlur: () => Q(v, "text", D),
22081
22086
  "aria-required": z || void 0,
22082
22087
  error: me,
@@ -22086,14 +22091,14 @@ function Jb({
22086
22091
  v
22087
22092
  );
22088
22093
  if (v === "social_security_number") {
22089
- const L = ot(y, D, "ssn_display"), ue = typeof L == "string" ? L : "", B = ue ? `${ue}. Re-enter to update.${Y ? ` ${Y}` : ""}` : Y;
22094
+ const U = ot(y, D, "ssn_display"), le = typeof U == "string" ? U : "", B = le ? `${le}. Re-enter to update.${Y ? ` ${Y}` : ""}` : Y;
22090
22095
  return /* @__PURE__ */ h(
22091
22096
  n$,
22092
22097
  {
22093
22098
  id: v,
22094
22099
  label: W,
22095
22100
  hint: B,
22096
- value: gt(se),
22101
+ value: gt(ue),
22097
22102
  onChange: (ne) => Ce(ne.currentTarget.value),
22098
22103
  onBlur: () => Q(v, "text", D),
22099
22104
  "aria-required": z || void 0,
@@ -22108,8 +22113,8 @@ function Jb({
22108
22113
  id: v,
22109
22114
  label: W,
22110
22115
  hint: Y,
22111
- value: gt(se),
22112
- onChange: (L) => Ce(L.currentTarget.value),
22116
+ value: gt(ue),
22117
+ onChange: (U) => Ce(U.currentTarget.value),
22113
22118
  onBlur: () => Q(v, "text", D),
22114
22119
  "aria-required": z || void 0,
22115
22120
  error: me,
@@ -22125,8 +22130,8 @@ function Jb({
22125
22130
  {
22126
22131
  id: v,
22127
22132
  label: W,
22128
- value: gt(se),
22129
- onChange: (L) => Ce(L.currentTarget.value),
22133
+ value: gt(ue),
22134
+ onChange: (U) => Ce(U.currentTarget.value),
22130
22135
  onBlur: () => Q(v, "email", D),
22131
22136
  "aria-required": z || void 0,
22132
22137
  error: me
@@ -22139,8 +22144,8 @@ function Jb({
22139
22144
  {
22140
22145
  id: v,
22141
22146
  label: W,
22142
- value: gt(se),
22143
- onChange: (L) => Ce(L.currentTarget.value),
22147
+ value: gt(ue),
22148
+ onChange: (U) => Ce(U.currentTarget.value),
22144
22149
  onBlur: () => Q(v, "password", D),
22145
22150
  "aria-required": z || void 0,
22146
22151
  error: me
@@ -22154,8 +22159,8 @@ function Jb({
22154
22159
  {
22155
22160
  id: v,
22156
22161
  label: W,
22157
- value: gt(se),
22158
- onChange: (L) => Ce(L.currentTarget.value),
22162
+ value: gt(ue),
22163
+ onChange: (U) => Ce(U.currentTarget.value),
22159
22164
  onBlur: () => Q(v, "tel", D),
22160
22165
  "aria-required": z || void 0,
22161
22166
  error: me
@@ -22183,8 +22188,8 @@ function Jb({
22183
22188
  {
22184
22189
  id: v,
22185
22190
  label: W,
22186
- value: gt(se),
22187
- onChange: (L) => Ce(L.currentTarget.value),
22191
+ value: gt(ue),
22192
+ onChange: (U) => Ce(U.currentTarget.value),
22188
22193
  onBlur: () => Q(v, "url", D),
22189
22194
  "aria-required": z || void 0,
22190
22195
  error: me
@@ -22192,17 +22197,17 @@ function Jb({
22192
22197
  v
22193
22198
  );
22194
22199
  case "number": {
22195
- const L = ET[v];
22200
+ const U = ET[v];
22196
22201
  return Zf.has(v) || ST.has(v) ? /* @__PURE__ */ h(
22197
22202
  r$,
22198
22203
  {
22199
22204
  id: v,
22200
22205
  label: W,
22201
22206
  hint: Y,
22202
- value: Jf(se),
22207
+ value: Jf(ue),
22203
22208
  isCurrency: Zf.has(v),
22204
- maxDigits: L,
22205
- onChange: (ue) => Ce(Wf(ue.currentTarget.value)),
22209
+ maxDigits: U,
22210
+ onChange: (le) => Ce(Wf(le.currentTarget.value)),
22206
22211
  onBlur: () => Q(v, "number", D),
22207
22212
  required: z,
22208
22213
  "aria-required": z || void 0,
@@ -22215,19 +22220,19 @@ function Jb({
22215
22220
  id: v,
22216
22221
  label: W,
22217
22222
  hint: Y,
22218
- value: Jf(se),
22223
+ value: Jf(ue),
22219
22224
  inputMode: "numeric",
22220
22225
  pattern: "[0-9]*",
22221
- onKeyDown: (ue) => {
22222
- if (DT(ue.key)) {
22223
- ue.preventDefault();
22226
+ onKeyDown: (le) => {
22227
+ if (DT(le.key)) {
22228
+ le.preventDefault();
22224
22229
  return;
22225
22230
  }
22226
- L !== void 0 && /^\d$/.test(ue.key) && String(ue.currentTarget.value).replace(/\D/g, "").length >= L && ue.preventDefault();
22231
+ U !== void 0 && /^\d$/.test(le.key) && String(le.currentTarget.value).replace(/\D/g, "").length >= U && le.preventDefault();
22227
22232
  },
22228
- onChange: (ue) => {
22229
- let B = ue.currentTarget.value;
22230
- L !== void 0 && (B = B.slice(0, L)), Ce(Wf(B));
22233
+ onChange: (le) => {
22234
+ let B = le.currentTarget.value;
22235
+ U !== void 0 && (B = B.slice(0, U)), Ce(Wf(B));
22231
22236
  },
22232
22237
  onBlur: () => Q(v, "number", D),
22233
22238
  required: z,
@@ -22243,8 +22248,8 @@ function Jb({
22243
22248
  {
22244
22249
  id: v,
22245
22250
  label: W,
22246
- value: gt(se),
22247
- onChange: (L) => Ce(L.currentTarget.value),
22251
+ value: gt(ue),
22252
+ onChange: (U) => Ce(U.currentTarget.value),
22248
22253
  onBlur: () => Q(v, "textarea", D),
22249
22254
  "aria-required": z || void 0,
22250
22255
  error: me,
@@ -22253,16 +22258,16 @@ function Jb({
22253
22258
  v
22254
22259
  );
22255
22260
  case "date": {
22256
- const { min: L, max: ue } = CT(v);
22261
+ const { min: U, max: le } = CT(v);
22257
22262
  return /* @__PURE__ */ h(
22258
22263
  Vw,
22259
22264
  {
22260
22265
  id: v,
22261
22266
  label: W,
22262
22267
  hint: Y,
22263
- value: gt(se),
22264
- min: L,
22265
- max: ue,
22268
+ value: gt(ue),
22269
+ min: U,
22270
+ max: le,
22266
22271
  onChange: (B) => {
22267
22272
  const ne = B.currentTarget.value;
22268
22273
  Ce(ne), !Wt(ne, "date") && !Nu(v, ne) && k(v, C(D, v, ne));
@@ -22277,8 +22282,8 @@ function Jb({
22277
22282
  }
22278
22283
  case "checkbox": {
22279
22284
  if (x.options) {
22280
- const L = Array.isArray(se) ? se : [], ue = `${v}-error`;
22281
- return /* @__PURE__ */ T("fieldset", { className: "space-y-2", "aria-describedby": me ? ue : void 0, children: [
22285
+ const U = Array.isArray(ue) ? ue : [], le = `${v}-error`;
22286
+ return /* @__PURE__ */ T("fieldset", { className: "space-y-2", "aria-describedby": me ? le : void 0, children: [
22282
22287
  /* @__PURE__ */ T("legend", { className: "form-label", children: [
22283
22288
  W,
22284
22289
  z && /* @__PURE__ */ T(Ct, { children: [
@@ -22287,24 +22292,24 @@ function Jb({
22287
22292
  ] })
22288
22293
  ] }),
22289
22294
  /* @__PURE__ */ h("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: x.options.map((B) => {
22290
- const ne = `${v}-${Qo(B)}`, te = L.includes(B);
22295
+ const ne = `${v}-${Qo(B)}`, re = U.includes(B);
22291
22296
  return /* @__PURE__ */ h(
22292
22297
  rn,
22293
22298
  {
22294
22299
  id: ne,
22295
22300
  label: B,
22296
- checked: te,
22301
+ checked: re,
22297
22302
  onChange: (de) => {
22298
- const le = new Set(L);
22299
- de.currentTarget.checked ? le.add(B) : le.delete(B), Ce(Array.from(le));
22303
+ const ce = new Set(U);
22304
+ de.currentTarget.checked ? ce.add(B) : ce.delete(B), Ce(Array.from(ce));
22300
22305
  },
22301
22306
  "aria-required": z || void 0,
22302
- "aria-describedby": me ? ue : void 0
22307
+ "aria-describedby": me ? le : void 0
22303
22308
  },
22304
22309
  ne
22305
22310
  );
22306
22311
  }) }),
22307
- me && /* @__PURE__ */ h("p", { id: ue, className: "mt-1 text-sm text-red-600", children: me })
22312
+ me && /* @__PURE__ */ h("p", { id: le, className: "mt-1 text-sm text-red-600", children: me })
22308
22313
  ] }, v);
22309
22314
  }
22310
22315
  return /* @__PURE__ */ h(
@@ -22312,8 +22317,8 @@ function Jb({
22312
22317
  {
22313
22318
  id: v,
22314
22319
  label: z ? `${W} *` : W,
22315
- checked: !!se,
22316
- onChange: (L) => Ce(L.currentTarget.checked),
22320
+ checked: !!ue,
22321
+ onChange: (U) => Ce(U.currentTarget.checked),
22317
22322
  "aria-required": z || void 0
22318
22323
  },
22319
22324
  v
@@ -22322,13 +22327,13 @@ function Jb({
22322
22327
  case "radio": {
22323
22328
  if (Co(x))
22324
22329
  return null;
22325
- const L = x.options ?? [], ue = D && D.length > 0 ? `${v}__${D.join("__")}` : v;
22326
- return /* @__PURE__ */ h(Ww, { legend: W, required: z, children: L.map((B) => /* @__PURE__ */ h(
22330
+ const U = x.options ?? [], le = D && D.length > 0 ? `${v}__${D.join("__")}` : v;
22331
+ return /* @__PURE__ */ h(Ww, { legend: W, required: z, children: U.map((B) => /* @__PURE__ */ h(
22327
22332
  jw,
22328
22333
  {
22329
- name: ue,
22334
+ name: le,
22330
22335
  value: B,
22331
- checked: se === B,
22336
+ checked: ue === B,
22332
22337
  onChange: () => {
22333
22338
  Ce(B), k(v, C(D, v, B));
22334
22339
  },
@@ -22338,54 +22343,54 @@ function Jb({
22338
22343
  )) }, v);
22339
22344
  }
22340
22345
  case "select": {
22341
- let L = x.options ?? [];
22342
- v === "quote_vehicle_id" && (L = r?.vehicles__items?.map((ge) => ge.vin) ?? []);
22343
- let ue = !1, B, ne, te;
22346
+ let U = x.options ?? [];
22347
+ v === "quote_vehicle_id" && (U = r?.vehicles__items?.map((he) => he.vin) ?? []);
22348
+ let le = !1, B, ne, re;
22344
22349
  if (v === "year" || v === "make" || v === "model" || v === "body_style") {
22345
- const ge = D ? D.join("-") : "_root";
22346
- re[ge] && (ue = !0, B = "Looking up VIN...");
22350
+ const he = D ? D.join("-") : "_root";
22351
+ te[he] && (le = !0, B = "Looking up VIN...");
22347
22352
  }
22348
- if (!ue && (v === "make" || v === "model" || v === "body_style")) {
22349
- const ge = D ? D.join("-") : "_root";
22350
- te = ge;
22351
- const R = ot(y, D, "year"), U = typeof R == "number" ? R : Number(R);
22353
+ if (!le && (v === "make" || v === "model" || v === "body_style")) {
22354
+ const he = D ? D.join("-") : "_root";
22355
+ re = he;
22356
+ const R = ot(y, D, "year"), L = typeof R == "number" ? R : Number(R);
22352
22357
  if (v === "make") {
22353
- const ce = `${ge}:makes`;
22354
- if (!U || !Number.isFinite(U))
22355
- ue = !0, B = "Select a year first";
22358
+ const se = `${he}:makes`;
22359
+ if (!L || !Number.isFinite(L))
22360
+ le = !0, B = "Select a year first";
22356
22361
  else {
22357
- ne = { year: U };
22358
- const ie = P(ne);
22359
- ie && ie.length > 0 ? L = ie : F[ce] ? (B = "Loading makes...", L = [...kf]) : L = [...kf];
22362
+ ne = { year: L };
22363
+ const ae = P(ne);
22364
+ ae && ae.length > 0 ? U = ae : F[se] ? (B = "Loading makes...", U = [...kf]) : U = [...kf];
22360
22365
  }
22361
- typeof se == "string" && se && !L.includes(se) && (L = [se, ...L]);
22366
+ typeof ue == "string" && ue && !U.includes(ue) && (U = [ue, ...U]);
22362
22367
  } else if (v === "model") {
22363
- const ce = `${ge}:models`, ie = String(ot(y, D, "make") ?? "");
22364
- if (!ie)
22365
- ue = !0, B = "Select a make first";
22366
- else if (U && Number.isFinite(U)) {
22367
- ne = { year: U, make: ie };
22368
+ const se = `${he}:models`, ae = String(ot(y, D, "make") ?? "");
22369
+ if (!ae)
22370
+ le = !0, B = "Select a make first";
22371
+ else if (L && Number.isFinite(L)) {
22372
+ ne = { year: L, make: ae };
22368
22373
  const pe = P(ne);
22369
- pe && pe.length > 0 ? L = pe : F[ce] ? (B = "Loading models...", L = [...zf]) : L = [...zf];
22374
+ pe && pe.length > 0 ? U = pe : F[se] ? (B = "Loading models...", U = [...zf]) : U = [...zf];
22370
22375
  }
22371
- typeof se == "string" && se && !L.includes(se) && (L = [se, ...L]);
22376
+ typeof ue == "string" && ue && !U.includes(ue) && (U = [ue, ...U]);
22372
22377
  } else {
22373
- const ce = `${ge}:bodyStyles`, ie = String(ot(y, D, "make") ?? ""), pe = String(ot(y, D, "model") ?? "");
22378
+ const se = `${he}:bodyStyles`, ae = String(ot(y, D, "make") ?? ""), pe = String(ot(y, D, "model") ?? "");
22374
22379
  if (!pe)
22375
- ue = !0, B = "Select a model first";
22376
- else if (U && Number.isFinite(U) && ie) {
22377
- ne = { year: U, make: ie, model: pe };
22380
+ le = !0, B = "Select a model first";
22381
+ else if (L && Number.isFinite(L) && ae) {
22382
+ ne = { year: L, make: ae, model: pe };
22378
22383
  const ye = P(ne);
22379
- ye && ye.length > 0 ? L = ye : F[ce] ? (B = "Loading body styles...", L = [...jf]) : L = [...jf];
22384
+ ye && ye.length > 0 ? U = ye : F[se] ? (B = "Loading body styles...", U = [...jf]) : U = [...jf];
22380
22385
  }
22381
- typeof se == "string" && se && !L.includes(se) && (L = [se, ...L]);
22386
+ typeof ue == "string" && ue && !U.includes(ue) && (U = [ue, ...U]);
22382
22387
  }
22383
22388
  }
22384
22389
  if (v === "occupation" || v === "co_applicant_occupation") {
22385
- const ge = v === "co_applicant_occupation" ? "co_applicant_employment_industry" : void 0, R = ge ? void 0 : ot(y, D, "industry"), U = ot(y, D, ge ?? "employment_industry"), ie = String(Xo(R ?? U) ?? "").trim();
22386
- L = [...Af[ie] ?? $T], typeof se == "string" && se && !L.includes(se) && (L = [se, ...L]);
22390
+ const he = v === "co_applicant_occupation" ? "co_applicant_employment_industry" : void 0, R = he ? void 0 : ot(y, D, "industry"), L = ot(y, D, he ?? "employment_industry"), ae = String(Xo(R ?? L) ?? "").trim();
22391
+ U = [...Af[ae] ?? $T], typeof ue == "string" && ue && !U.includes(ue) && (U = [ue, ...U]);
22387
22392
  }
22388
- const de = TT(D, v), le = u?.has([...D ?? [], v].join(".")) ?? !1;
22393
+ const de = TT(D, v), ce = u?.has([...D ?? [], v].join(".")) ?? !1;
22389
22394
  return /* @__PURE__ */ h(
22390
22395
  qn,
22391
22396
  {
@@ -22394,36 +22399,36 @@ function Jb({
22394
22399
  required: z,
22395
22400
  "aria-required": z || void 0,
22396
22401
  error: me,
22397
- disabled: ue,
22398
- value: le ? "" : PT(se),
22399
- onChange: (ge) => {
22400
- const R = ge.currentTarget.value;
22402
+ disabled: le,
22403
+ value: ce ? "" : PT(ue),
22404
+ onChange: (he) => {
22405
+ const R = he.currentTarget.value;
22401
22406
  if (v !== "year" && v !== "make" && v !== "model" && v !== "industry" && v !== "employment_industry" && v !== "co_applicant_employment_industry") {
22402
22407
  Ce(R), k(v, C(D, v, R));
22403
22408
  return;
22404
22409
  }
22405
- let U = ut(y, D, v, R);
22410
+ let L = ut(y, D, v, R);
22406
22411
  if (v === "year")
22407
- U = ut(U, D, "make", ""), U = ut(U, D, "model", ""), U = ut(U, D, "body_style", "");
22412
+ L = ut(L, D, "make", ""), L = ut(L, D, "model", ""), L = ut(L, D, "body_style", "");
22408
22413
  else if (v === "make")
22409
- U = ut(U, D, "model", ""), U = ut(U, D, "body_style", "");
22414
+ L = ut(L, D, "model", ""), L = ut(L, D, "body_style", "");
22410
22415
  else if (v === "model")
22411
- U = ut(U, D, "body_style", "");
22416
+ L = ut(L, D, "body_style", "");
22412
22417
  else if (v === "industry" || v === "employment_industry")
22413
- U = ut(U, D, "occupation", "");
22418
+ L = ut(L, D, "occupation", "");
22414
22419
  else if (v === "co_applicant_employment_industry") {
22415
- const ie = String(Xo(R) ?? "").trim(), pe = Af[ie] ?? [], ye = pe.find((be) => be === ie) ?? pe[0] ?? "";
22416
- U = ut(U, D, "co_applicant_occupation", ye ?? "");
22420
+ const ae = String(Xo(R) ?? "").trim(), pe = Af[ae] ?? [], ye = pe.find((be) => be === ae) ?? pe[0] ?? "";
22421
+ L = ut(L, D, "co_applicant_occupation", ye ?? "");
22417
22422
  }
22418
- r && n ? n(U) : b(U), S(U);
22419
- const ce = D ? ia(U, D) ?? {} : U;
22420
- k(v, { ...ce, [v]: R });
22423
+ r && n ? n(L) : b(L), S(L);
22424
+ const se = D ? ia(L, D) ?? {} : L;
22425
+ k(v, { ...se, [v]: R });
22421
22426
  },
22422
22427
  placeholder: B ?? "Select an option",
22423
- onFocus: ne && te ? () => q(te, ne) : void 0,
22424
- options: L.map((ge) => ({
22425
- value: ge,
22426
- label: Vf[v]?.[ge] ?? vT[ge] ?? ge
22428
+ onFocus: ne && re ? () => q(re, ne) : void 0,
22429
+ options: U.map((he) => ({
22430
+ value: he,
22431
+ label: Vf[v]?.[he] ?? vT[he] ?? he
22427
22432
  }))
22428
22433
  },
22429
22434
  de
@@ -22435,17 +22440,17 @@ function Jb({
22435
22440
  {
22436
22441
  id: v,
22437
22442
  label: W,
22438
- value: gt(se),
22439
- onChange: (L, ue) => {
22440
- let B = ut(y, D, v, L);
22441
- const ne = ue?.state ?? (typeof L == "string" ? L.match(/,\s*([A-Z]{2})\s+\d{5}\b/)?.[1] : void 0);
22443
+ value: gt(ue),
22444
+ onChange: (U, le) => {
22445
+ let B = ut(y, D, v, U);
22446
+ const ne = le?.state ?? (typeof U == "string" ? U.match(/,\s*([A-Z]{2})\s+\d{5}\b/)?.[1] : void 0);
22442
22447
  if (ne) {
22443
- const te = D ? [...D, "state"] : ["state"];
22444
- B = At(B, te, ne);
22448
+ const re = D ? [...D, "state"] : ["state"];
22449
+ B = At(B, re, ne);
22445
22450
  }
22446
22451
  if (!D) {
22447
- const te = ue?.zipCode ?? (typeof L == "string" ? L.match(/,\s*[A-Z]{2}\s+(\d{5})(?:-\d{4})?\b/)?.[1] : void 0);
22448
- te && (B = At(B, ["postal_code"], te));
22452
+ const re = le?.zipCode ?? (typeof U == "string" ? U.match(/,\s*[A-Z]{2}\s+(\d{5})(?:-\d{4})?\b/)?.[1] : void 0);
22453
+ re && (B = At(B, ["postal_code"], re));
22449
22454
  }
22450
22455
  r && n ? n(B) : b(B), S(B);
22451
22456
  },
@@ -22460,56 +22465,56 @@ function Jb({
22460
22465
  return null;
22461
22466
  }
22462
22467
  }
22463
- function oe(x, D) {
22468
+ function ie(x, D) {
22464
22469
  const v = x.some((Y) => String(Y.key) === "years_at_address"), W = x.find((Y) => String(Y.key) === "months_at_address");
22465
- return x.map((Y, se) => {
22470
+ return x.map((Y, ue) => {
22466
22471
  const z = String(Y.key);
22467
22472
  if (z === "months_at_address" && v || !Do(Y, y, f) || !As(Y, y, D) || !$o(Y, y, i)) return null;
22468
22473
  if (Ts(z, Y, y, i)) {
22469
- const te = f.currentCarrierKey ? y[f.currentCarrierKey] : void 0;
22470
- if (!(te && te !== "NoPriorInsurance" && Pn(y, f) && Cs.has(z))) return null;
22474
+ const re = f.currentCarrierKey ? y[f.currentCarrierKey] : void 0;
22475
+ if (!(re && re !== "NoPriorInsurance" && Pn(y, f) && Cs.has(z))) return null;
22471
22476
  }
22472
- const me = fe(Y, D), Ce = z === "years_at_address" && W ? fe(W, D) : null, L = Y.conditionals ?? [];
22473
- if (!L.length)
22477
+ const me = fe(Y, D), Ce = z === "years_at_address" && W ? fe(W, D) : null, U = Y.conditionals ?? [];
22478
+ if (!U.length)
22474
22479
  return i === "BundlePolicy" && z === "policy_bi" ? /* @__PURE__ */ T("div", { className: xs(z, i, D), "data-question-key": z, children: [
22475
22480
  /* @__PURE__ */ h("h3", { className: "text-lg font-semibold mt-6 mb-3", children: "Vehicle Coverage Information" }),
22476
22481
  me
22477
- ] }, `wrap-${z}-${se}`) : /* @__PURE__ */ T("div", { className: xs(z, i, D), "data-question-key": z, children: [
22482
+ ] }, `wrap-${z}-${ue}`) : /* @__PURE__ */ T("div", { className: xs(z, i, D), "data-question-key": z, children: [
22478
22483
  me,
22479
22484
  Ce
22480
- ] }, `wrap-${z}-${se}`);
22481
- const ue = Gf(Y, ot(y, D, z)), B = L.filter((te) => Qn(ue, te.conditionalType, te.conditionalValue)), ne = B.length > 1 && !B.some((te) => te.conditionalQuestionsAllowMultiple) ? B.slice(0, 1) : B;
22485
+ ] }, `wrap-${z}-${ue}`);
22486
+ const le = Gf(Y, ot(y, D, z)), B = U.filter((re) => Qn(le, re.conditionalType, re.conditionalValue)), ne = B.length > 1 && !B.some((re) => re.conditionalQuestionsAllowMultiple) ? B.slice(0, 1) : B;
22482
22487
  return /* @__PURE__ */ T("div", { className: xs(z, i, D), "data-question-key": z, children: [
22483
22488
  me,
22484
22489
  Ce,
22485
- ne.map((te, de) => {
22486
- const le = te.conditionalQuestions ?? [];
22487
- if (!le.length) return null;
22488
- if (!te.conditionalQuestionsAllowMultiple)
22489
- return /* @__PURE__ */ h("div", { className: "mt-3", children: oe(le, D) }, `branch-${z}-${de}`);
22490
- const ge = co(z), R = ia(y, [...D ?? [], ge]) ?? [], U = Math.max(1, R.length || 1), ce = () => {
22491
- const ye = At(y, [...D ?? [], ge, R.length], {});
22490
+ ne.map((re, de) => {
22491
+ const ce = re.conditionalQuestions ?? [];
22492
+ if (!ce.length) return null;
22493
+ if (!re.conditionalQuestionsAllowMultiple)
22494
+ return /* @__PURE__ */ h("div", { className: "mt-3", children: ie(ce, D) }, `branch-${z}-${de}`);
22495
+ const he = co(z), R = ia(y, [...D ?? [], he]) ?? [], L = Math.max(1, R.length || 1), se = () => {
22496
+ const ye = At(y, [...D ?? [], he, R.length], {});
22492
22497
  r && n ? n(ye) : b(ye), S(ye);
22493
- }, ie = () => {
22494
- const ye = R.slice(0, Math.max(0, R.length - 1)), be = At(y, [...D ?? [], ge], ye);
22498
+ }, ae = () => {
22499
+ const ye = R.slice(0, Math.max(0, R.length - 1)), be = At(y, [...D ?? [], he], ye);
22495
22500
  r && n ? n(be) : b(be), S(be);
22496
22501
  }, pe = `${z}__c${de}`;
22497
22502
  return /* @__PURE__ */ T("div", { className: "mt-3", children: [
22498
22503
  /* @__PURE__ */ T("div", { className: "repeatable-controls flex items-center justify-between mb-2 gap-2", children: [
22499
22504
  /* @__PURE__ */ h("div", { className: "text-sm font-medium opacity-75", children: "Add one or more entries" }),
22500
22505
  /* @__PURE__ */ T("div", { className: "repeatable-actions space-x-2", children: [
22501
- /* @__PURE__ */ h("button", { type: "button", className: "btn-outline px-3 py-1", onClick: ce, children: "Add another" }),
22502
- U > 1 && /* @__PURE__ */ h("button", { type: "button", className: "btn-outline px-3 py-1", onClick: ie, children: "Remove last" })
22506
+ /* @__PURE__ */ h("button", { type: "button", className: "btn-outline px-3 py-1", onClick: se, children: "Add another" }),
22507
+ L > 1 && /* @__PURE__ */ h("button", { type: "button", className: "btn-outline px-3 py-1", onClick: ae, children: "Remove last" })
22503
22508
  ] })
22504
22509
  ] }),
22505
- Array.from({ length: U }).map((ye, be) => {
22506
- const Ae = [...D ?? [], ge, be], we = `${pe}__i${be}`, Se = R[be] ?? {}, Oe = z === "drivers", Ue = Oe ? `Driver #${be + 1}` : z === "vehicles" ? `Vehicle #${be + 1}` : z === "home_losses" || z === "losses" ? `Loss #${be + 1}` : `Entry #${be + 1}`, Fi = Oe && typeof Se.ssn_display == "string" && Se.ssn_display ? ` — ${Se.ssn_display}` : "";
22510
+ Array.from({ length: L }).map((ye, be) => {
22511
+ const Ae = [...D ?? [], he, be], we = `${pe}__i${be}`, Se = R[be] ?? {}, Oe = z === "drivers", Ue = Oe ? `Driver #${be + 1}` : z === "vehicles" ? `Vehicle #${be + 1}` : z === "home_losses" || z === "losses" ? `Loss #${be + 1}` : `Entry #${be + 1}`, Fi = Oe && typeof Se.ssn_display == "string" && Se.ssn_display ? ` — ${Se.ssn_display}` : "";
22507
22512
  return /* @__PURE__ */ T("div", { className: "rounded-lg border p-3 mb-3", children: [
22508
22513
  /* @__PURE__ */ T("div", { className: "text-sm font-semibold mb-2", children: [
22509
22514
  Ue,
22510
22515
  Fi
22511
22516
  ] }),
22512
- le.map((Bt) => {
22517
+ ce.map((Bt) => {
22513
22518
  const Zn = String(Bt.key);
22514
22519
  if (!Do(Bt, y, f) || !As(Bt, y, Ae) || !$o(Bt, y, i)) return null;
22515
22520
  if (Ts(Zn, Bt, y, i)) {
@@ -22526,7 +22531,7 @@ function Jb({
22526
22531
  const Bi = Rr.conditionalQuestions ?? [];
22527
22532
  if (!Bi.length) return null;
22528
22533
  if (!Rr.conditionalQuestionsAllowMultiple)
22529
- return /* @__PURE__ */ h("div", { className: "mt-3", children: oe(Bi, Ae) }, `nested-${we}-${Oi}`);
22534
+ return /* @__PURE__ */ h("div", { className: "mt-3", children: ie(Bi, Ae) }, `nested-${we}-${Oi}`);
22530
22535
  const Ba = co(Bt.key), La = ia(y, [...Ae, Ba]) ?? [], Yl = Math.max(1, La.length || 1), v_ = () => {
22531
22536
  const pn = At(y, [...Ae, Ba, La.length], {});
22532
22537
  r && n ? n(pn) : b(pn), S(pn);
@@ -22549,7 +22554,7 @@ function Jb({
22549
22554
  "Entry #",
22550
22555
  Mr + 1
22551
22556
  ] }),
22552
- oe(Bi, D_)
22557
+ ie(Bi, D_)
22553
22558
  ] }, `nested-item-${we}-${Oi}-${Mr}`);
22554
22559
  })
22555
22560
  ] }, `nested-repeat-${we}-${Oi}`);
@@ -22561,31 +22566,31 @@ function Jb({
22561
22566
  })
22562
22567
  ] }, `branch-${z}-${de}`);
22563
22568
  })
22564
- ] }, `wrap-${z}-${se}`);
22569
+ ] }, `wrap-${z}-${ue}`);
22565
22570
  });
22566
22571
  }
22567
22572
  const V = J(() => {
22568
22573
  const x = [], D = (v, W) => {
22569
22574
  v.forEach((Y) => {
22570
22575
  if (!Do(Y, y, f) || !As(Y, y, W) || !$o(Y, y, i)) return;
22571
- const se = String(Y.key);
22572
- if (Ts(se, Y, y, i)) {
22573
- const ue = f.currentCarrierKey ? y[f.currentCarrierKey] : void 0;
22574
- if (!(ue && ue !== "NoPriorInsurance" && Pn(y, f) && Cs.has(se))) return;
22576
+ const ue = String(Y.key);
22577
+ if (Ts(ue, Y, y, i)) {
22578
+ const le = f.currentCarrierKey ? y[f.currentCarrierKey] : void 0;
22579
+ if (!(le && le !== "NoPriorInsurance" && Pn(y, f) && Cs.has(ue))) return;
22575
22580
  }
22576
22581
  Co(Y) || x.push(Y);
22577
22582
  const z = Y.conditionals ?? [];
22578
22583
  if (!z.length) return;
22579
- const me = Gf(Y, ot(y, W, se)), Ce = z.filter((ue) => Qn(me, ue.conditionalType, ue.conditionalValue));
22580
- (Ce.length > 1 && !Ce.some((ue) => ue.conditionalQuestionsAllowMultiple) ? Ce.slice(0, 1) : Ce).forEach((ue) => {
22581
- const B = ue.conditionalQuestions ?? [];
22582
- B.length && (ue.conditionalQuestionsAllowMultiple || D(B, W));
22584
+ const me = Gf(Y, ot(y, W, ue)), Ce = z.filter((le) => Qn(me, le.conditionalType, le.conditionalValue));
22585
+ (Ce.length > 1 && !Ce.some((le) => le.conditionalQuestionsAllowMultiple) ? Ce.slice(0, 1) : Ce).forEach((le) => {
22586
+ const B = le.conditionalQuestions ?? [];
22587
+ B.length && (le.conditionalQuestionsAllowMultiple || D(B, W));
22583
22588
  });
22584
22589
  });
22585
22590
  };
22586
22591
  return D(d), x;
22587
22592
  }, [d, y, f, i]);
22588
- ae(() => {
22593
+ oe(() => {
22589
22594
  if (s <= 0) return;
22590
22595
  const x = ca(y, f), D = V.map((v) => Eo(v, f) ? { ...v, required: x } : v);
22591
22596
  _(Sa(D, y));
@@ -22594,13 +22599,13 @@ function Jb({
22594
22599
  x.preventDefault();
22595
22600
  const D = ca(y, f), v = V.map((Y) => Eo(Y, f) ? { ...Y, required: D } : Y), W = Sa(v, y);
22596
22601
  if (_(W), Object.keys(W).length > 0) {
22597
- const Y = V.findIndex((se) => W[se.key]);
22602
+ const Y = V.findIndex((ue) => W[ue.key]);
22598
22603
  Y >= 0 && document.getElementById(V[Y].key)?.focus();
22599
22604
  return;
22600
22605
  }
22601
22606
  a(y);
22602
22607
  }
22603
- return /* @__PURE__ */ h("form", { className: _T(i), "data-form-area": i ?? "unknown-stage", onSubmit: ee, noValidate: !0, children: oe(d) });
22608
+ return /* @__PURE__ */ h("form", { className: _T(i), "data-form-area": i ?? "unknown-stage", onSubmit: ee, noValidate: !0, children: ie(d) });
22604
22609
  }
22605
22610
  function Qf({
22606
22611
  title: e,
@@ -23027,7 +23032,7 @@ function om({
23027
23032
  shouldSkip: l
23028
23033
  }) {
23029
23034
  const [c, d] = M(null), [f, m] = M(!1), [p, g] = M(!1), b = G(/* @__PURE__ */ new Set());
23030
- return ae(() => {
23035
+ return oe(() => {
23031
23036
  if (t !== e || !r || b.current.has(r)) return;
23032
23037
  if (l?.()) {
23033
23038
  b.current.add(r);
@@ -23073,7 +23078,7 @@ function dk({
23073
23078
  quoteId: o,
23074
23079
  nonTerminalStageKeys: i
23075
23080
  }) {
23076
- const [s, u] = M(a ?? 0), [l, c] = M(n ?? {}), [d, f] = M({}), [m, p] = M(!1), [g, b] = M(!1), [$, S] = M(null), [y, E] = M(0), [_, A] = M([]), [N, K] = M(a ?? 0), F = G({}), Z = G([]), I = G(null), re = G(e), he = Array.isArray(e) && e.length > 0, w = he ? Math.min(s, e.length - 1) : 0, j = he ? e[w] : null, H = j?.key ?? null, P = G(l);
23081
+ const [s, u] = M(a ?? 0), [l, c] = M(n ?? {}), [d, f] = M({}), [m, p] = M(!1), [g, b] = M(!1), [$, S] = M(null), [y, E] = M(0), [_, A] = M([]), [N, K] = M(a ?? 0), F = G({}), Z = G([]), I = G(null), te = G(e), ge = Array.isArray(e) && e.length > 0, w = ge ? Math.min(s, e.length - 1) : 0, j = ge ? e[w] : null, H = j?.key ?? null, P = G(l);
23077
23082
  P.current = l;
23078
23083
  const q = om({
23079
23084
  targetStage: "Vehicle",
@@ -23099,23 +23104,23 @@ function dk({
23099
23104
  // don't re-drive the Bolt session for a popup the user has already answered.
23100
23105
  shouldSkip: () => KT(P.current)
23101
23106
  }), k = H === "Vehicle" && q.isPending || H === "Driver" && C.isPending;
23102
- ae(() => {
23107
+ oe(() => {
23103
23108
  a !== void 0 && (u(a), K((z) => Math.max(z, a)));
23104
- }, [a]), re.current = e;
23109
+ }, [a]), te.current = e;
23105
23110
  const Q = J(() => {
23106
23111
  const z = w >= e.length - 1;
23107
23112
  return z && H && i?.has(H) ? !1 : !!(z || e.slice(w + 1).every((Ce) => Ce.key === "AutoPolicy") && (l.drivers__items ?? []).length <= 1);
23108
23113
  }, [w, e, l, H, i]);
23109
- ae(() => {
23110
- he && s >= e.length && u(e.length - 1);
23111
- }, [s, e.length, he]), ae(() => {
23114
+ oe(() => {
23115
+ ge && s >= e.length && u(e.length - 1);
23116
+ }, [s, e.length, ge]), oe(() => {
23112
23117
  E(0), A([]);
23113
- }, [H]), ae(() => {
23118
+ }, [H]), oe(() => {
23114
23119
  const z = Z.current[w];
23115
23120
  z && z.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
23116
- }, [w]), ae(() => {
23121
+ }, [w]), oe(() => {
23117
23122
  n !== void 0 && c(n);
23118
- }, [n]), ae(() => {
23123
+ }, [n]), oe(() => {
23119
23124
  if (!j || !H) {
23120
23125
  p(!1), S(null);
23121
23126
  return;
@@ -23138,8 +23143,8 @@ function dk({
23138
23143
  z = !0;
23139
23144
  };
23140
23145
  }, [j, H, d]);
23141
- const fe = H ? d[H] : void 0, oe = J(() => Hl(Nl(fe ?? [])), [fe]);
23142
- ae(() => {
23146
+ const fe = H ? d[H] : void 0, ie = J(() => Hl(Nl(fe ?? [])), [fe]);
23147
+ oe(() => {
23143
23148
  j && H && fe && XT({
23144
23149
  stageKey: H,
23145
23150
  stageTitle: j.title ?? H,
@@ -23150,26 +23155,26 @@ function dk({
23150
23155
  const V = J(() => {
23151
23156
  if (!fe) return {};
23152
23157
  const z = {};
23153
- ((L) => {
23154
- const ue = [], B = (ne) => {
23155
- ne.forEach((te, de) => {
23156
- const le = Sr(te, de);
23157
- ue.push(le);
23158
- const ge = ei(le);
23159
- ue.push(ge), (te.conditionals ?? []).forEach((U) => {
23160
- const ce = U.conditionalQuestions ?? [];
23161
- ce.length > 0 && B(ce);
23158
+ ((U) => {
23159
+ const le = [], B = (ne) => {
23160
+ ne.forEach((re, de) => {
23161
+ const ce = Sr(re, de);
23162
+ le.push(ce);
23163
+ const he = ei(ce);
23164
+ le.push(he), (re.conditionals ?? []).forEach((L) => {
23165
+ const se = L.conditionalQuestions ?? [];
23166
+ se.length > 0 && B(se);
23162
23167
  });
23163
23168
  });
23164
23169
  };
23165
- return B(L), ue;
23166
- })(fe).forEach((L) => {
23167
- L in l && (z[L] = l[L]);
23170
+ return B(U), le;
23171
+ })(fe).forEach((U) => {
23172
+ U in l && (z[U] = l[U]);
23168
23173
  });
23169
- for (const L of ["state", "State", "address", "product"])
23170
- L in l && (z[L] = l[L]);
23171
- for (const [L, ue] of Object.entries(l))
23172
- L.endsWith(o_) && !(L in z) && (z[L] = ue);
23174
+ for (const U of ["state", "State", "address", "product"])
23175
+ U in l && (z[U] = l[U]);
23176
+ for (const [U, le] of Object.entries(l))
23177
+ U.endsWith(o_) && !(U in z) && (z[U] = le);
23173
23178
  return z;
23174
23179
  }, [fe, l]), ee = (z) => {
23175
23180
  c((me) => ({ ...me, ...z }));
@@ -23179,14 +23184,14 @@ function dk({
23179
23184
  z < 0 || z >= e.length || z > N || z === w || (u(z), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" }));
23180
23185
  }, v = async () => {
23181
23186
  if (!fe || !j || m || $ || g || k) return;
23182
- const z = Mi(fe, V, H ?? void 0), me = ca(l, oe), Ce = z.map((ie) => Eo(ie, oe) ? { ...ie, required: me } : ie), L = Sa(Ce, V), ue = new Set(Ce.map((ie, pe) => Sr(ie, pe))), B = Object.entries(L).some(([ie, pe]) => pe && ue.has(ie)), ne = ck(fe, l, H ?? void 0), de = z.some((ie) => String(ie.key ?? "") === "vehicle_policy_selections") ? i_(l) : !1, le = l.driver_vehicle_assignments, ge = l.drivers__items ?? [];
23187
+ const z = Mi(fe, V, H ?? void 0), me = ca(l, ie), Ce = z.map((ae) => Eo(ae, ie) ? { ...ae, required: me } : ae), U = Sa(Ce, V), le = new Set(Ce.map((ae, pe) => Sr(ae, pe))), B = Object.entries(U).some(([ae, pe]) => pe && le.has(ae)), ne = ck(fe, l, H ?? void 0), de = z.some((ae) => String(ae.key ?? "") === "vehicle_policy_selections") ? i_(l) : !1, ce = l.driver_vehicle_assignments, he = l.drivers__items ?? [];
23183
23188
  let R = !1;
23184
- if (le && ge.length >= 2) {
23185
- const ie = l.vehicles__items ?? [];
23186
- for (let pe = 0; pe < ie.length; pe++) {
23187
- const ye = le[`v${pe}`];
23189
+ if (ce && he.length >= 2) {
23190
+ const ae = l.vehicles__items ?? [];
23191
+ for (let pe = 0; pe < ae.length; pe++) {
23192
+ const ye = ce[`v${pe}`];
23188
23193
  if (!ye) continue;
23189
- const be = ge.map((Se, Oe) => ye[`d${Oe}`] ?? 0), Ae = be.filter((Se) => Se > 0);
23194
+ const be = he.map((Se, Oe) => ye[`d${Oe}`] ?? 0), Ae = be.filter((Se) => Se > 0);
23190
23195
  if (Ae.length >= 2 && Ae.every((Se) => Se === 50)) {
23191
23196
  R = !0;
23192
23197
  break;
@@ -23199,9 +23204,9 @@ function dk({
23199
23204
  }
23200
23205
  }
23201
23206
  if (B || ne || de || R) {
23202
- const ie = new Map(Ce.map((be, Ae) => [Sr(be, Ae), be])), ye = [
23203
- ...Object.entries(L).filter(([be, Ae]) => !!Ae && ue.has(be)).map(([be, Ae]) => {
23204
- const we = Ae, Se = ie.get(be)?.question;
23207
+ const ae = new Map(Ce.map((be, Ae) => [Sr(be, Ae), be])), ye = [
23208
+ ...Object.entries(U).filter(([be, Ae]) => !!Ae && le.has(be)).map(([be, Ae]) => {
23209
+ const we = Ae, Se = ae.get(be)?.question;
23205
23210
  return we === "Required" && Se ? `${Se} is required` : we;
23206
23211
  }),
23207
23212
  ne ? "Complete all required repeated entries before continuing." : null,
@@ -23214,27 +23219,27 @@ function dk({
23214
23219
  return;
23215
23220
  }
23216
23221
  A([]);
23217
- const U = JSON.stringify(V);
23218
- if (!Q && w < N && F.current[H ?? ""] === U) {
23219
- u((ie) => Math.min(ie + 1, e.length - 1)), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" });
23222
+ const L = JSON.stringify(V);
23223
+ if (!Q && w < N && F.current[H ?? ""] === L) {
23224
+ u((ae) => Math.min(ae + 1, e.length - 1)), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" });
23220
23225
  return;
23221
23226
  }
23222
23227
  b(!0);
23223
23228
  try {
23224
- const ie = Q, pe = ie ? await r(l, H ?? "") : await t(V, H ?? ""), { success: ye, error: be } = pe;
23229
+ const ae = Q, pe = ae ? await r(l, H ?? "") : await t(V, H ?? ""), { success: ye, error: be } = pe;
23225
23230
  if (!ye) {
23226
23231
  S(be ?? "An error occurred");
23227
23232
  return;
23228
23233
  }
23229
- if (!ie) {
23230
- const Ae = pe.latestStages ?? re.current, we = Ae.findIndex((Oe) => Oe.key === H), Se = we >= 0 ? Math.min(we + 1, Ae.length - 1) : Math.min(s + 1, Ae.length - 1);
23231
- F.current[H ?? ""] = U, K((Oe) => Math.max(Oe, Se)), u(Se);
23234
+ if (!ae) {
23235
+ const Ae = pe.latestStages ?? te.current, we = Ae.findIndex((Oe) => Oe.key === H), Se = we >= 0 ? Math.min(we + 1, Ae.length - 1) : Math.min(s + 1, Ae.length - 1);
23236
+ F.current[H ?? ""] = L, K((Oe) => Math.max(Oe, Se)), u(Se);
23232
23237
  }
23233
23238
  } finally {
23234
23239
  b(!1);
23235
23240
  }
23236
- }, W = J(() => !!(!fe || m || $ || g || k), [fe, m, $, g, k]), Y = e.length > 0 ? (w + 1) / e.length * 100 : 0, se = sk(H ?? "unknown-stage");
23237
- return he ? /* @__PURE__ */ T("div", { className: `form-wizard-shell form-wizard-shell--${se}`, "data-stage-key": H ?? void 0, children: [
23241
+ }, W = J(() => !!(!fe || m || $ || g || k), [fe, m, $, g, k]), Y = e.length > 0 ? (w + 1) / e.length * 100 : 0, ue = sk(H ?? "unknown-stage");
23242
+ return ge ? /* @__PURE__ */ T("div", { className: `form-wizard-shell form-wizard-shell--${ue}`, "data-stage-key": H ?? void 0, children: [
23238
23243
  H === "Vehicle" && q.suggestions && q.suggestions.length > 0 && /* @__PURE__ */ h(
23239
23244
  Qf,
23240
23245
  {
@@ -23263,7 +23268,7 @@ function dk({
23263
23268
  onDismiss: C.handleDismiss
23264
23269
  }
23265
23270
  ),
23266
- /* @__PURE__ */ h("div", { className: `form-wizard-steps-header form-wizard-steps-header--${se}`, children: /* @__PURE__ */ h("div", { className: "form-wizard-steps-scroll", children: /* @__PURE__ */ h(
23271
+ /* @__PURE__ */ h("div", { className: `form-wizard-steps-header form-wizard-steps-header--${ue}`, children: /* @__PURE__ */ h("div", { className: "form-wizard-steps-scroll", children: /* @__PURE__ */ h(
23267
23272
  "ol",
23268
23273
  {
23269
23274
  className: "form-wizard-steps flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",
@@ -23303,10 +23308,10 @@ function dk({
23303
23308
  /* @__PURE__ */ T(
23304
23309
  "div",
23305
23310
  {
23306
- className: `form-wizard-card form-wizard-card--${se}`,
23311
+ className: `form-wizard-card form-wizard-card--${ue}`,
23307
23312
  style: { "--form-wizard-progress": `${Y}%` },
23308
23313
  children: [
23309
- /* @__PURE__ */ T("div", { className: `form-wizard-content form-wizard-content--${se}`, children: [
23314
+ /* @__PURE__ */ T("div", { className: `form-wizard-content form-wizard-content--${ue}`, children: [
23310
23315
  m && /* @__PURE__ */ h("div", { className: "text-slate-500", role: "status", "aria-live": "polite", children: "Loading…" }),
23311
23316
  k && /* @__PURE__ */ T("div", { className: "flex flex-col items-center justify-center py-16 text-center", role: "status", "aria-live": "polite", children: [
23312
23317
  /* @__PURE__ */ T(
@@ -23868,80 +23873,80 @@ function $k({
23868
23873
  requirePursueVerification: o = !1,
23869
23874
  onSubScreenChange: i
23870
23875
  }) {
23871
- const s = J(() => Array.isArray(e) ? e : [], [e]), u = s.length > 0, [l, c] = M({}), [d, f] = M("admitted"), [m, p] = M(!1), [g, b] = M(null), [$, S] = M(!1), [y, E] = M(null), [_, A] = M(!1), [N, K] = M(a), [F, Z] = M(""), [I, re] = M("phone"), [he, w] = M("idle"), [j, H] = M(null), P = !!(y || g);
23872
- ae(() => {
23876
+ const s = J(() => Array.isArray(e) ? e : [], [e]), u = s.length > 0, [l, c] = M({}), [d, f] = M("admitted"), [m, p] = M(!1), [g, b] = M(null), [$, S] = M(!1), [y, E] = M(null), [_, A] = M(!1), [N, K] = M(a), [F, Z] = M(""), [I, te] = M("phone"), [ge, w] = M("idle"), [j, H] = M(null), P = !!(y || g);
23877
+ oe(() => {
23873
23878
  i?.(P);
23874
- }, [P, i]), ae(() => () => i?.(!1), [i]);
23879
+ }, [P, i]), oe(() => () => i?.(!1), [i]);
23875
23880
  const q = J(() => s.some((R) => R.lob === "PersonalAuto"), [s]), C = J(() => s.some((R) => R.lob === "PersonalHome"), [s]), k = J(() => {
23876
23881
  if (!r) return [];
23877
23882
  const R = [];
23878
23883
  return q && R.push("PersonalAuto"), C && R.push("PersonalHome"), R;
23879
23884
  }, [r, q, C]), Q = J(() => {
23880
23885
  const R = /* @__PURE__ */ new Set();
23881
- for (const U of s) {
23882
- const ce = U.lob ?? null;
23883
- ce && l[U.quote_rate_id] === "success" && R.add(ce);
23886
+ for (const L of s) {
23887
+ const se = L.lob ?? null;
23888
+ se && l[L.quote_rate_id] === "success" && R.add(se);
23884
23889
  }
23885
23890
  return R;
23886
- }, [s, l]), fe = J(() => Object.values(l).some((R) => R === "success"), [l]), oe = J(() => m ? !0 : !r || k.length === 0 ? fe : k.every((R) => Q.has(R)), [m, r, fe, k, Q]), V = J(() => u ? s.filter((R) => (R.admitted_status ?? "admitted") === "admitted") : [], [s, u]), ee = J(() => u ? s.filter((R) => R.admitted_status === "non_admitted") : [], [s, u]), x = J(() => u ? s.filter((R) => R.admitted_status === "not_quoted") : [], [s, u]), D = V.length, v = ee.length, W = x.length, Y = D + v > 0, se = Y || W > 0, z = J(() => bk(x), [x]);
23887
- ae(() => {
23888
- se && d === "admitted" && D === 0 && (v > 0 ? f("non_admitted") : W > 0 && f("not_quoted"));
23889
- }, [d, D, v, W, se]);
23891
+ }, [s, l]), fe = J(() => Object.values(l).some((R) => R === "success"), [l]), ie = J(() => m ? !0 : !r || k.length === 0 ? fe : k.every((R) => Q.has(R)), [m, r, fe, k, Q]), V = J(() => u ? s.filter((R) => (R.admitted_status ?? "admitted") === "admitted") : [], [s, u]), ee = J(() => u ? s.filter((R) => R.admitted_status === "non_admitted") : [], [s, u]), x = J(() => u ? s.filter((R) => R.admitted_status === "not_quoted") : [], [s, u]), D = V.length, v = ee.length, W = x.length, Y = D + v > 0, ue = Y || W > 0, z = J(() => bk(x), [x]);
23892
+ oe(() => {
23893
+ ue && d === "admitted" && D === 0 && (v > 0 ? f("non_admitted") : W > 0 && f("not_quoted"));
23894
+ }, [d, D, v, W, ue]);
23890
23895
  const me = J(() => Y ? d === "admitted" ? V : d === "non_admitted" ? ee : [] : [], [Y, d, V, ee]), Ce = (R) => {
23891
23896
  if (R.key !== "ArrowLeft" && R.key !== "ArrowRight" && R.key !== "Home" && R.key !== "End")
23892
23897
  return;
23893
23898
  R.preventDefault();
23894
- const U = R.key === "Home" ? "admitted" : R.key === "End" || d === "admitted" ? "non_admitted" : "admitted";
23895
- f(U), window.setTimeout(() => document.getElementById(Yt[U].tab)?.focus(), 0);
23899
+ const L = R.key === "Home" ? "admitted" : R.key === "End" || d === "admitted" ? "non_admitted" : "admitted";
23900
+ f(L), window.setTimeout(() => document.getElementById(Yt[L].tab)?.focus(), 0);
23896
23901
  };
23897
- ae(() => {
23902
+ oe(() => {
23898
23903
  wo();
23899
- }, []), ae(() => {
23900
- !oe || m || (VA(), Gb(), p(!0));
23901
- }, [oe, m]);
23902
- const L = J(() => {
23904
+ }, []), oe(() => {
23905
+ !ie || m || (VA(), Gb(), p(!0));
23906
+ }, [ie, m]);
23907
+ const U = J(() => {
23903
23908
  if (me.length === 0) return [];
23904
- if (!me.some((ie) => ie.lob))
23909
+ if (!me.some((ae) => ae.lob))
23905
23910
  return [{ lob: null, title: "Rates", rates: [...me].sort((pe, ye) => {
23906
23911
  const be = Number.isFinite(pe.term_months) && pe.term_months > 0 ? pe.term_months : 1, Ae = Number.isFinite(ye.term_months) && ye.term_months > 0 ? ye.term_months : 1, we = pe.monthly_premium_cents ?? Math.round((pe.premium_cents || 0) / be), Se = ye.monthly_premium_cents ?? Math.round((ye.premium_cents || 0) / Ae);
23907
23912
  return we - Se;
23908
23913
  }) }];
23909
- const U = /* @__PURE__ */ new Map();
23910
- for (const ie of me) {
23911
- const pe = ie.lob || "_other", ye = U.get(pe);
23912
- ye ? ye.push(ie) : U.set(pe, [ie]);
23914
+ const L = /* @__PURE__ */ new Map();
23915
+ for (const ae of me) {
23916
+ const pe = ae.lob || "_other", ye = L.get(pe);
23917
+ ye ? ye.push(ae) : L.set(pe, [ae]);
23913
23918
  }
23914
- return [...U.entries()].sort(([ie], [pe]) => {
23915
- const ye = ni.indexOf(ie), be = ni.indexOf(pe);
23919
+ return [...L.entries()].sort(([ae], [pe]) => {
23920
+ const ye = ni.indexOf(ae), be = ni.indexOf(pe);
23916
23921
  return (ye === -1 ? 999 : ye) - (be === -1 ? 999 : be);
23917
- }).map(([ie, pe]) => ({
23918
- lob: ie,
23919
- title: ri[ie] ?? ie,
23922
+ }).map(([ae, pe]) => ({
23923
+ lob: ae,
23924
+ title: ri[ae] ?? ae,
23920
23925
  rates: [...pe].sort((ye, be) => {
23921
23926
  const Ae = Number.isFinite(ye.term_months) && ye.term_months > 0 ? ye.term_months : 1, we = Number.isFinite(be.term_months) && be.term_months > 0 ? be.term_months : 1, Se = ye.monthly_premium_cents ?? Math.round((ye.premium_cents || 0) / Ae), Oe = be.monthly_premium_cents ?? Math.round((be.premium_cents || 0) / we);
23922
23927
  return Se - Oe;
23923
23928
  })
23924
23929
  }));
23925
- }, [me]), ue = J(() => {
23930
+ }, [me]), le = J(() => {
23926
23931
  if (!r) return [];
23927
- const R = s.some((ie) => ie.lob === "PersonalAuto"), U = s.some((ie) => ie.lob === "PersonalHome"), ce = [];
23928
- return R || ce.push("Sorry, no rates found for Personal Auto."), U || ce.push("Sorry, no rates found for Homeowners."), ce;
23932
+ const R = s.some((ae) => ae.lob === "PersonalAuto"), L = s.some((ae) => ae.lob === "PersonalHome"), se = [];
23933
+ return R || se.push("Sorry, no rates found for Personal Auto."), L || se.push("Sorry, no rates found for Homeowners."), se;
23929
23934
  }, [r, s]);
23930
- if (!se)
23935
+ if (!ue)
23931
23936
  return /* @__PURE__ */ T("section", { className: "mt-8", children: [
23932
23937
  /* @__PURE__ */ h("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
23933
23938
  /* @__PURE__ */ h("p", { className: "mt-2 text-sm text-slate-500", children: "Sorry, no rates are available at this time." }),
23934
23939
  t && /* @__PURE__ */ h(sm, { onBack: t })
23935
23940
  ] });
23936
23941
  const B = (R) => {
23937
- if (c((U) => ({ ...U, [R.quote_rate_id]: "idle" })), S(!1), wo(), !_ && (o || !Qt())) {
23938
- K(a), Z(""), re("phone"), w("idle"), H(null), E({ cardKey: R.quote_rate_id, rate: R });
23942
+ if (c((L) => ({ ...L, [R.quote_rate_id]: "idle" })), S(!1), wo(), !_ && (o || !Qt())) {
23943
+ K(a), Z(""), te("phone"), w("idle"), H(null), E({ cardKey: R.quote_rate_id, rate: R });
23939
23944
  return;
23940
23945
  }
23941
23946
  b({ cardKey: R.quote_rate_id, rate: R });
23942
23947
  }, ne = () => {
23943
23948
  b(null), S(!1);
23944
- }, te = () => {
23949
+ }, re = () => {
23945
23950
  E(null), H(null), w("idle");
23946
23951
  }, de = async () => {
23947
23952
  if (!y || !n) return;
@@ -23952,11 +23957,17 @@ function $k({
23952
23957
  }
23953
23958
  w("sending"), H(null);
23954
23959
  try {
23955
- await Kb(n, R), re("code"), w("sent");
23956
- } catch {
23957
- w("idle"), H("We could not send a code to that number. Please check it and try again.");
23960
+ await Kb(n, R), te("code"), w("sent");
23961
+ } catch (L) {
23962
+ const se = L;
23963
+ if (w("idle"), se?.message === "sms_rate_limited") {
23964
+ const ae = se.retryAfterSeconds ?? 60;
23965
+ te("code"), H(`We just sent a code to that number. You can request another in ${ae} second${ae === 1 ? "" : "s"}.`);
23966
+ return;
23967
+ }
23968
+ H("We could not send a code to that number. Please check it and try again.");
23958
23969
  }
23959
- }, le = async () => {
23970
+ }, ce = async () => {
23960
23971
  if (!y || !n) return;
23961
23972
  const R = F.trim();
23962
23973
  if (!R) {
@@ -23965,37 +23976,44 @@ function $k({
23965
23976
  }
23966
23977
  w("verifying"), H(null);
23967
23978
  try {
23968
- const { isVerified: U, token: ce } = await Fu(n, R);
23969
- if (!U || !ce) {
23970
- w("sent"), H("That code was incorrect. Please try again.");
23979
+ const { isVerified: L, token: se, code: ae } = await Fu(n, R);
23980
+ if (!L || !se) {
23981
+ w("sent"), H(
23982
+ ae === "OTP_EXPIRED" ? "That code has expired. Request a new one and try again." : "That code was incorrect. Please try again."
23983
+ );
23971
23984
  return;
23972
23985
  }
23973
- So(ce);
23974
- const ie = y;
23975
- A(!0), E(null), w("idle"), b(ie);
23976
- } catch {
23977
- w("sent"), H("Something went wrong verifying your code. Please try again.");
23986
+ So(se);
23987
+ const pe = y;
23988
+ A(!0), E(null), w("idle"), b(pe);
23989
+ } catch (L) {
23990
+ const se = L;
23991
+ if (w("sent"), se?.message === "too_many_attempts") {
23992
+ H("Too many incorrect attempts. Request a new code to try again.");
23993
+ return;
23994
+ }
23995
+ H("Something went wrong verifying your code. Please try again.");
23978
23996
  }
23979
- }, ge = async () => {
23997
+ }, he = async () => {
23980
23998
  if (!g || !$) return;
23981
23999
  const R = g.cardKey;
23982
- c((U) => ({ ...U, [R]: "loading" }));
24000
+ c((L) => ({ ...L, [R]: "loading" }));
23983
24001
  try {
23984
24002
  if (wo(), !Qt())
23985
24003
  throw new Error("Authentication required. Please verify your phone number first.");
23986
24004
  if (!((await bT(R, !0))?.success !== !1)) throw new Error("Request failed");
23987
24005
  c((pe) => ({ ...pe, [R]: "success" })), b(null), S(!1);
23988
24006
  } catch {
23989
- c((U) => ({ ...U, [R]: "error" }));
24007
+ c((L) => ({ ...L, [R]: "error" }));
23990
24008
  }
23991
24009
  };
23992
24010
  if (y) {
23993
- const R = he === "sending" || he === "verifying", U = [
24011
+ const R = ge === "sending" || ge === "verifying", L = [
23994
24012
  "h-12 rounded-full text-white font-bold transition",
23995
24013
  "flex items-center justify-center gap-2",
23996
24014
  "disabled:cursor-not-allowed",
23997
24015
  R ? "bg-slate-400" : "bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"
23998
- ].join(" "), ce = "credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed";
24016
+ ].join(" "), se = "credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed";
23999
24017
  return /* @__PURE__ */ h("section", { className: "mt-8", children: I === "phone" ? /* @__PURE__ */ T(Ct, { children: [
24000
24018
  /* @__PURE__ */ h(
24001
24019
  ip,
@@ -24003,7 +24021,7 @@ function $k({
24003
24021
  id: "phone",
24004
24022
  label: "What is your phone number?",
24005
24023
  value: N,
24006
- onChange: (ie) => K(ie.currentTarget.value),
24024
+ onChange: (ae) => K(ae.currentTarget.value),
24007
24025
  error: j ?? void 0
24008
24026
  }
24009
24027
  ),
@@ -24022,8 +24040,8 @@ function $k({
24022
24040
  ] })
24023
24041
  ] }),
24024
24042
  /* @__PURE__ */ T("div", { className: "mt-6 grid grid-cols-2 gap-3", children: [
24025
- /* @__PURE__ */ h("button", { type: "button", onClick: te, className: ce, children: "Back to rates" }),
24026
- /* @__PURE__ */ h("button", { type: "button", onClick: de, disabled: R, className: U, children: he === "sending" ? "Sending…" : "Send code" })
24043
+ /* @__PURE__ */ h("button", { type: "button", onClick: re, className: se, children: "Back to rates" }),
24044
+ /* @__PURE__ */ h("button", { type: "button", onClick: de, disabled: R, className: L, children: ge === "sending" ? "Sending…" : "Send code" })
24027
24045
  ] })
24028
24046
  ] }) : /* @__PURE__ */ T(Ct, { children: [
24029
24047
  /* @__PURE__ */ h(
@@ -24036,7 +24054,7 @@ function $k({
24036
24054
  pattern: "[0-9]*",
24037
24055
  maxLength: 6,
24038
24056
  autoComplete: "one-time-code",
24039
- onChange: (ie) => Z(ie.currentTarget.value.replace(/\D+/g, "").slice(0, 6)),
24057
+ onChange: (ae) => Z(ae.currentTarget.value.replace(/\D+/g, "").slice(0, 6)),
24040
24058
  error: j ?? void 0
24041
24059
  }
24042
24060
  ),
@@ -24047,13 +24065,13 @@ function $k({
24047
24065
  {
24048
24066
  type: "button",
24049
24067
  onClick: () => {
24050
- re("phone"), H(null);
24068
+ te("phone"), H(null);
24051
24069
  },
24052
- className: ce,
24070
+ className: se,
24053
24071
  children: "Change number"
24054
24072
  }
24055
24073
  ),
24056
- /* @__PURE__ */ h("button", { type: "button", onClick: le, disabled: R, className: U, children: he === "verifying" ? "Verifying…" : "Verify & continue" })
24074
+ /* @__PURE__ */ h("button", { type: "button", onClick: ce, disabled: R, className: L, children: ge === "verifying" ? "Verifying…" : "Verify & continue" })
24057
24075
  ] })
24058
24076
  ] }) });
24059
24077
  }
@@ -24068,7 +24086,7 @@ function $k({
24068
24086
  acknowledged: $,
24069
24087
  onAcknowledgeChange: S,
24070
24088
  onCancel: ne,
24071
- onProceed: ge,
24089
+ onProceed: he,
24072
24090
  isProcessing: l[g.cardKey] === "loading",
24073
24091
  hasError: l[g.cardKey] === "error"
24074
24092
  }
@@ -24076,7 +24094,7 @@ function $k({
24076
24094
  }
24077
24095
  return /* @__PURE__ */ T("section", { className: "mt-8", children: [
24078
24096
  /* @__PURE__ */ h("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
24079
- ue.length > 0 && /* @__PURE__ */ h("div", { className: "mt-3 space-y-1", children: ue.map((R) => /* @__PURE__ */ h("p", { className: "text-sm text-slate-600", children: R }, R)) }),
24097
+ le.length > 0 && /* @__PURE__ */ h("div", { className: "mt-3 space-y-1", children: le.map((R) => /* @__PURE__ */ h("p", { className: "text-sm text-slate-600", children: R }, R)) }),
24080
24098
  /* @__PURE__ */ h("div", { className: "mt-4 border-b border-slate-200", children: /* @__PURE__ */ T("div", { className: "flex items-center gap-6", role: "tablist", "aria-label": "Rate market type", children: [
24081
24099
  /* @__PURE__ */ T(
24082
24100
  "button",
@@ -24134,27 +24152,27 @@ function $k({
24134
24152
  ] }) }),
24135
24153
  /* @__PURE__ */ h("div", { id: Yt[d].panel, role: "tabpanel", "aria-labelledby": Yt[d].tab, tabIndex: 0, children: d === "not_quoted" ? z.map((R) => /* @__PURE__ */ T("div", { className: "mt-6", children: [
24136
24154
  R.lob != null && /* @__PURE__ */ h("h4", { className: "mb-3 text-center text-base font-semibold text-slate-800", children: R.title }),
24137
- /* @__PURE__ */ h("div", { className: "space-y-3", children: R.rates.map((U) => /* @__PURE__ */ h(vk, { item: U }, U.quote_rate_id)) })
24155
+ /* @__PURE__ */ h("div", { className: "space-y-3", children: R.rates.map((L) => /* @__PURE__ */ h(vk, { item: L }, L.quote_rate_id)) })
24138
24156
  ] }, R.lob ?? "all")) : /* @__PURE__ */ T(Ct, { children: [
24139
24157
  me.length === 0 && /* @__PURE__ */ h("p", { className: "mt-4 text-sm text-slate-500", children: d === "admitted" ? "Sorry, no admitted rates are available at this time." : "Sorry, no non-admitted rates are available at this time." }),
24140
- me.length > 0 && L.map((R) => /* @__PURE__ */ T("div", { className: "mt-6", children: [
24158
+ me.length > 0 && U.map((R) => /* @__PURE__ */ T("div", { className: "mt-6", children: [
24141
24159
  /* @__PURE__ */ h("h4", { className: "mb-3 text-center text-base font-semibold text-slate-800", children: R.title }),
24142
- /* @__PURE__ */ h("div", { className: "flex flex-wrap justify-center gap-4", children: R.rates.map((U) => /* @__PURE__ */ h(
24160
+ /* @__PURE__ */ h("div", { className: "flex flex-wrap justify-center gap-4", children: R.rates.map((L) => /* @__PURE__ */ h(
24143
24161
  "div",
24144
24162
  {
24145
24163
  className: "w-full min-w-0 sm:w-[calc(50%-0.5rem)] lg:w-[calc(33.333%-0.667rem)] xl:w-[calc(25%-0.75rem)]",
24146
24164
  children: /* @__PURE__ */ h(
24147
24165
  _k,
24148
24166
  {
24149
- rate: U,
24167
+ rate: L,
24150
24168
  showLobLabel: R.lob == null,
24151
- status: l[U.quote_rate_id] ?? "idle",
24152
- disabled: oe || (r ? !!(U.lob && k.includes(U.lob) && Q.has(U.lob)) : fe),
24153
- onRequestBind: () => B(U)
24169
+ status: l[L.quote_rate_id] ?? "idle",
24170
+ disabled: ie || (r ? !!(L.lob && k.includes(L.lob) && Q.has(L.lob)) : fe),
24171
+ onRequestBind: () => B(L)
24154
24172
  }
24155
24173
  )
24156
24174
  },
24157
- U.quote_rate_id
24175
+ L.quote_rate_id
24158
24176
  )) })
24159
24177
  ] }, R.lob ?? "all"))
24160
24178
  ] }) }),
@@ -24489,7 +24507,7 @@ function Ik(e) {
24489
24507
  }
24490
24508
  function Rk({ stages: e, initialValues: t, quoteId: r, isSubmitting: n, onConfirmed: a }) {
24491
24509
  const o = J(() => e.filter((ee) => !Ek.has(String(ee.key))), [e]), [i, s] = M(t), [u, l] = M({}), [c, d] = M(null), [f, m] = M(!0), [p, g] = M(0), [b, $] = M(!1), [S, y] = M(null), [E, _] = M(!1);
24492
- ae(() => {
24510
+ oe(() => {
24493
24511
  let ee = !1;
24494
24512
  return m(!0), d(null), Promise.all(
24495
24513
  o.map(async (x) => {
@@ -24507,7 +24525,7 @@ function Rk({ stages: e, initialValues: t, quoteId: r, isSubmitting: n, onConfir
24507
24525
  };
24508
24526
  }, [o, p]);
24509
24527
  const A = G(null), N = G(!0);
24510
- ae(() => {
24528
+ oe(() => {
24511
24529
  if (N.current) {
24512
24530
  N.current = !1;
24513
24531
  return;
@@ -24526,7 +24544,7 @@ function Rk({ stages: e, initialValues: t, quoteId: r, isSubmitting: n, onConfir
24526
24544
  for (const [ee, x] of Object.entries(u))
24527
24545
  if (x.some((D) => String(D.key ?? "") === "vehicles")) return ee;
24528
24546
  return null;
24529
- }, [u]), [Z, I] = M([]), [re, he] = M(!1), w = G(0), j = Ik(i), H = G(/* @__PURE__ */ new Map()), P = G(Promise.resolve()), q = Ee(
24547
+ }, [u]), [Z, I] = M([]), [te, ge] = M(!1), w = G(0), j = Ik(i), H = G(/* @__PURE__ */ new Map()), P = G(Promise.resolve()), q = Ee(
24530
24548
  (ee) => {
24531
24549
  const x = `${ee.year ?? ""}|${ee.make ?? ""}|${ee.model ?? ""}`, D = H.current, v = D.get(x);
24532
24550
  if (v) return v;
@@ -24534,25 +24552,25 @@ function Rk({ stages: e, initialValues: t, quoteId: r, isSubmitting: n, onConfir
24534
24552
  }).then(() => qb({ quoteId: r, ...ee }));
24535
24553
  P.current = W.catch(() => {
24536
24554
  });
24537
- const Y = W.catch((se) => {
24538
- throw D.delete(x), se;
24555
+ const Y = W.catch((ue) => {
24556
+ throw D.delete(x), ue;
24539
24557
  });
24540
24558
  return D.set(x, Y), Y;
24541
24559
  },
24542
24560
  [r]
24543
24561
  );
24544
- ae(() => {
24562
+ oe(() => {
24545
24563
  if (!F || !j) {
24546
- I([]), he(!1);
24564
+ I([]), ge(!1);
24547
24565
  return;
24548
24566
  }
24549
24567
  const ee = ++w.current;
24550
- he(!0);
24568
+ ge(!0);
24551
24569
  const x = window.setTimeout(() => {
24552
24570
  wk(i, q).then((D) => {
24553
24571
  w.current === ee && I(D);
24554
24572
  }).finally(() => {
24555
- w.current === ee && he(!1);
24573
+ w.current === ee && ge(!1);
24556
24574
  });
24557
24575
  }, Nk);
24558
24576
  return () => window.clearTimeout(x);
@@ -24573,7 +24591,7 @@ function Rk({ stages: e, initialValues: t, quoteId: r, isSubmitting: n, onConfir
24573
24591
  };
24574
24592
  }
24575
24593
  return ee;
24576
- }, [o, u, i, F, Z]), k = J(() => Object.values(C).reduce((ee, x) => ee + x.issues.length, 0), [C]), Q = n || E, fe = !f && !c && k === 0 && b && !Q && !re, oe = Ee(() => {
24594
+ }, [o, u, i, F, Z]), k = J(() => Object.values(C).reduce((ee, x) => ee + x.issues.length, 0), [C]), Q = n || E, fe = !f && !c && k === 0 && b && !Q && !te, ie = Ee(() => {
24577
24595
  const ee = o.find((x) => C[String(x.key)]?.hasIssues);
24578
24596
  ee && document.getElementById(`review-section-${String(ee.key)}`)?.scrollIntoView({ behavior: "smooth", block: "start" });
24579
24597
  }, [o, C]), V = Ee(async () => {
@@ -24619,7 +24637,7 @@ function Rk({ stages: e, initialValues: t, quoteId: r, isSubmitting: n, onConfir
24619
24637
  k === 1 ? "field needs" : "fields need",
24620
24638
  " your attention before you can continue."
24621
24639
  ] }),
24622
- /* @__PURE__ */ h("button", { type: "button", onClick: oe, className: "shrink-0 font-bold underline text-amber-800 hover:text-amber-900", children: "Show me" })
24640
+ /* @__PURE__ */ h("button", { type: "button", onClick: ie, className: "shrink-0 font-bold underline text-amber-800 hover:text-amber-900", children: "Show me" })
24623
24641
  ]
24624
24642
  }
24625
24643
  ),
@@ -24741,24 +24759,24 @@ function Fk({
24741
24759
  onComplete: a
24742
24760
  }) {
24743
24761
  const o = dm[r] ?? dm.Auto, i = fm[r] ?? fm.Auto, s = e.length > 0 ? Math.floor(i / e.length) : t, [u, l] = M(0), [c, d] = M(0), [f, m] = M(0), [p, g] = M(0), [b, $] = M(!0), S = G(n), y = G(a), E = G(u), _ = G(e.length), A = G(!1), N = G(!1);
24744
- ae(() => {
24762
+ oe(() => {
24745
24763
  S.current = n, n && e.length === 0 && !A.current && (A.current = !0, y.current?.());
24746
- }, [n, e.length]), ae(() => {
24764
+ }, [n, e.length]), oe(() => {
24747
24765
  y.current = a;
24748
- }, [a]), ae(() => {
24766
+ }, [a]), oe(() => {
24749
24767
  E.current = u;
24750
- }, [u]), ae(() => {
24768
+ }, [u]), oe(() => {
24751
24769
  _.current = e.length, e.length > 0 && (N.current = !1, l(0), d(0), m(0), g(0), $(!0));
24752
- }, [e.length]), ae(() => {
24770
+ }, [e.length]), oe(() => {
24753
24771
  if (e.length === 0) {
24754
24772
  S.current && !A.current && (A.current = !0, y.current?.());
24755
24773
  return;
24756
24774
  }
24757
24775
  N.current = !1;
24758
- const I = 100, re = 100 / (s / I), he = setInterval(() => {
24776
+ const I = 100, te = 100 / (s / I), ge = setInterval(() => {
24759
24777
  m((w) => {
24760
24778
  if (N.current || A.current) return w;
24761
- const j = w + re;
24779
+ const j = w + te;
24762
24780
  return j < 100 ? j : (N.current = !0, setTimeout(() => {
24763
24781
  if (S.current) {
24764
24782
  if (A.current) return;
@@ -24772,11 +24790,11 @@ function Fk({
24772
24790
  }, 400), 100);
24773
24791
  });
24774
24792
  }, I);
24775
- return () => clearInterval(he);
24776
- }, [u, s, e.length]), ae(() => {
24793
+ return () => clearInterval(ge);
24794
+ }, [u, s, e.length]), oe(() => {
24777
24795
  if (e.length === 0) return;
24778
- const I = Math.floor(s / ks.length), re = setInterval(() => g((he) => Math.min(he + 1, ks.length - 1)), I);
24779
- return () => clearInterval(re);
24796
+ const I = Math.floor(s / ks.length), te = setInterval(() => g((ge) => Math.min(ge + 1, ks.length - 1)), I);
24797
+ return () => clearInterval(te);
24780
24798
  }, [u, s, e.length]);
24781
24799
  const K = e.length === 0, F = K ? null : e[Math.min(u, e.length - 1)], Z = c > 0;
24782
24800
  return /* @__PURE__ */ T(Ct, { children: [
@@ -25564,27 +25582,27 @@ function hP(e, t) {
25564
25582
  }
25565
25583
  function gP({ isOpen: e, onClose: t }) {
25566
25584
  const [r, n] = M([]), [a, o] = M(null), i = G(null);
25567
- ae(() => {
25585
+ oe(() => {
25568
25586
  i.current = a;
25569
25587
  }, [a]);
25570
- const [s, u] = M(null), [l, c] = M(!1), [d, f] = M(!1), [m, p] = M(!1), [g, b] = M(!1), [$, S] = M([]), y = G(null), [E, _] = M(null), [A, N] = M(void 0), [K, F] = M(!1), [Z, I] = M(null), [re, he] = M(null), [w, j] = M(!1), [H, P] = M(!1), [q, C] = M(!1), k = G(!1), Q = G(null), fe = G(null), oe = G(null), V = G(null), [ee, x] = M(!1);
25571
- ae(() => {
25588
+ const [s, u] = M(null), [l, c] = M(!1), [d, f] = M(!1), [m, p] = M(!1), [g, b] = M(!1), [$, S] = M([]), y = G(null), [E, _] = M(null), [A, N] = M(void 0), [K, F] = M(!1), [Z, I] = M(null), [te, ge] = M(null), [w, j] = M(!1), [H, P] = M(!1), [q, C] = M(!1), k = G(!1), Q = G(null), fe = G(null), ie = G(null), V = G(null), [ee, x] = M(!1);
25589
+ oe(() => {
25572
25590
  if (!m || g) return;
25573
25591
  const B = vm(r);
25574
25592
  let ne = !1;
25575
- const te = [];
25576
- let de = 0, le = 0;
25577
- const ge = 66, R = 3, U = 5e3;
25578
- let ce = !1;
25579
- const ie = async () => {
25593
+ const re = [];
25594
+ let de = 0, ce = 0;
25595
+ const he = 66, R = 3, L = 5e3;
25596
+ let se = !1;
25597
+ const ae = async () => {
25580
25598
  if (ne) return;
25581
25599
  de++;
25582
25600
  try {
25583
25601
  const { quote: ye } = await Hf(a ?? void 0);
25584
25602
  if (ne) return;
25585
- if (le = 0, !ce) {
25603
+ if (ce = 0, !se) {
25586
25604
  const Ae = ye?.appetites ?? null, we = pk(Ae, B);
25587
- we.length > 0 && (S(we), ce = !0);
25605
+ we.length > 0 && (S(we), se = !0);
25588
25606
  }
25589
25607
  const be = ye?.rates_status ?? null;
25590
25608
  if (be === "completed") {
@@ -25605,7 +25623,7 @@ function gP({ isOpen: e, onClose: t }) {
25605
25623
  return;
25606
25624
  }
25607
25625
  } catch (ye) {
25608
- if (le++, console.warn("Provider polling: getQuote failed", { attempt: de, consecutiveFailures: le, error: ye }), le >= R) {
25626
+ if (ce++, console.warn("Provider polling: getQuote failed", { attempt: de, consecutiveFailures: ce, error: ye }), ce >= R) {
25609
25627
  ye?.__sentryReported || vn(ye, {
25610
25628
  quoteId: i.current ?? void 0,
25611
25629
  phase: "rates_polling",
@@ -25615,70 +25633,70 @@ function gP({ isOpen: e, onClose: t }) {
25615
25633
  }
25616
25634
  }
25617
25635
  if (ne) return;
25618
- if (de >= ge) {
25619
- vn(new Error(`Quote failed: rate-generation timed out after ${ge} polls`), {
25636
+ if (de >= he) {
25637
+ vn(new Error(`Quote failed: rate-generation timed out after ${he} polls`), {
25620
25638
  quoteId: i.current ?? void 0,
25621
25639
  phase: "rates_polling_timeout"
25622
25640
  }), Xn({ reason: "timeout" }), I({ message: "submission_failed" }), p(!1);
25623
25641
  return;
25624
25642
  }
25625
- const pe = window.setTimeout(ie, U);
25626
- te.push(pe);
25643
+ const pe = window.setTimeout(ae, L);
25644
+ re.push(pe);
25627
25645
  };
25628
- return ie(), () => {
25629
- ne = !0, te.forEach((pe) => window.clearTimeout(pe));
25646
+ return ae(), () => {
25647
+ ne = !0, re.forEach((pe) => window.clearTimeout(pe));
25630
25648
  };
25631
25649
  }, [m, g, r, a]);
25632
25650
  function D(B) {
25633
- return B.map((te) => ({
25634
- key: te,
25651
+ return B.map((re) => ({
25652
+ key: re,
25635
25653
  // Map stage keys to human-friendly titles for the wizard progress bar.
25636
- title: cP(te),
25654
+ title: cP(re),
25637
25655
  loadQuestions: async () => {
25638
- const de = await uT(te, i.current ?? void 0);
25639
- let le = pP(te, de.questions);
25640
- return le = hP(te, le), le;
25656
+ const de = await uT(re, i.current ?? void 0);
25657
+ let ce = pP(re, de.questions);
25658
+ return ce = hP(re, ce), ce;
25641
25659
  }
25642
25660
  }));
25643
25661
  }
25644
- ae(() => {
25662
+ oe(() => {
25645
25663
  const B = async () => {
25646
25664
  try {
25647
25665
  const ne = aP();
25648
25666
  if (ne)
25649
25667
  try {
25650
- const { token: de, quoteId: le } = await cT(ne);
25651
- de && le && (So(de), Pf(le));
25668
+ const { token: de, quoteId: ce } = await cT(ne);
25669
+ de && ce && (So(de), Pf(ce));
25652
25670
  } catch (de) {
25653
25671
  de.statusCode === 401 && P(!0);
25654
25672
  }
25655
- const te = Ii();
25656
- if (wo(), te) {
25657
- F(!0), o(te);
25673
+ const re = Ii();
25674
+ if (wo(), re) {
25675
+ F(!0), o(re);
25658
25676
  try {
25659
- const de = Qt(), le = await Hf(de ? void 0 : te);
25660
- if (!le || !le.quote)
25677
+ const de = Qt(), ce = await Hf(de ? void 0 : re);
25678
+ if (!ce || !ce.quote)
25661
25679
  throw new Error("Invalid response from getQuote: missing quote data");
25662
- const { quote: ge } = le, { stages: R } = await uo(te), U = D(R);
25663
- n(U);
25664
- let ce;
25680
+ const { quote: he } = ce, { stages: R } = await uo(re), L = D(R);
25681
+ n(L);
25682
+ let se;
25665
25683
  try {
25666
- ce = uP(ge), _(ce);
25684
+ se = uP(he), _(se);
25667
25685
  } catch (we) {
25668
25686
  throw new Error(`Failed to transform quote data: ${we instanceof Error ? we.message : "Unknown error"}`);
25669
25687
  }
25670
- const ie = _m(U, ce);
25671
- n(ie);
25672
- const pe = ge?.review_status ?? null;
25688
+ const ae = _m(L, se);
25689
+ n(ae);
25690
+ const pe = he?.review_status ?? null;
25673
25691
  if (f(pe != null), pe === "pending_review" && Qt()) {
25674
25692
  C(!0);
25675
25693
  return;
25676
25694
  }
25677
- const ye = ge?.rates_status ?? null, be = Qt() != null;
25695
+ const ye = he?.rates_status ?? null, be = Qt() != null;
25678
25696
  if (be || pe === null) {
25679
25697
  if (ye === "completed")
25680
25698
  try {
25681
- const { rates: we } = await ws(be ? void 0 : te);
25699
+ const { rates: we } = await ws(be ? void 0 : re);
25682
25700
  u(we);
25683
25701
  return;
25684
25702
  } catch (we) {
@@ -25694,16 +25712,16 @@ function gP({ isOpen: e, onClose: t }) {
25694
25712
  }
25695
25713
  N(0);
25696
25714
  } catch (de) {
25697
- const le = de;
25698
- if (le.statusCode === 404)
25715
+ const ce = de;
25716
+ if (ce.statusCode === 404)
25699
25717
  Vb(), o(null);
25700
- else if (le.statusCode === 401) {
25718
+ else if (ce.statusCode === 401) {
25701
25719
  Gb();
25702
25720
  try {
25703
- const { stages: ge } = await uo(te), R = D(ge);
25721
+ const { stages: he } = await uo(re), R = D(he);
25704
25722
  n(R);
25705
- const U = R.findIndex((ce) => ce.key === "SMSVerification");
25706
- N(U >= 0 ? U : R.length - 1);
25723
+ const L = R.findIndex((se) => se.key === "SMSVerification");
25724
+ N(L >= 0 ? L : R.length - 1);
25707
25725
  } catch {
25708
25726
  }
25709
25727
  }
@@ -25719,13 +25737,13 @@ function gP({ isOpen: e, onClose: t }) {
25719
25737
  }
25720
25738
  };
25721
25739
  e && !k.current && (k.current = !0, B());
25722
- }, [e]), ae(() => {
25740
+ }, [e]), oe(() => {
25723
25741
  if (!e) return;
25724
25742
  const { overflow: B } = document.body.style;
25725
25743
  return document.body.style.overflow = "hidden", () => {
25726
25744
  document.body.style.overflow = B;
25727
25745
  };
25728
- }, [e]), ae(() => {
25746
+ }, [e]), oe(() => {
25729
25747
  if (!e) return;
25730
25748
  V.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
25731
25749
  const B = window.setTimeout(() => {
@@ -25749,32 +25767,32 @@ function gP({ isOpen: e, onClose: t }) {
25749
25767
  return;
25750
25768
  const ne = ee ? fe.current : Q.current;
25751
25769
  if (!ne) return;
25752
- const te = Array.from(ne.querySelectorAll($m)).filter(
25770
+ const re = Array.from(ne.querySelectorAll($m)).filter(
25753
25771
  (R) => !R.hasAttribute("disabled") && R.getAttribute("aria-hidden") !== "true"
25754
25772
  );
25755
- if (te.length === 0) {
25773
+ if (re.length === 0) {
25756
25774
  B.preventDefault(), ne.focus();
25757
25775
  return;
25758
25776
  }
25759
- const de = te[0], le = te[te.length - 1], ge = document.activeElement;
25760
- B.shiftKey && ge === de ? (B.preventDefault(), le.focus()) : !B.shiftKey && ge === le && (B.preventDefault(), de.focus());
25777
+ const de = re[0], ce = re[re.length - 1], he = document.activeElement;
25778
+ B.shiftKey && he === de ? (B.preventDefault(), ce.focus()) : !B.shiftKey && he === ce && (B.preventDefault(), de.focus());
25761
25779
  },
25762
25780
  [ee]
25763
25781
  );
25764
- ae(() => {
25782
+ oe(() => {
25765
25783
  if (e)
25766
25784
  return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
25767
- }, [e, v]), ae(() => {
25785
+ }, [e, v]), oe(() => {
25768
25786
  if (!ee) return;
25769
25787
  const B = window.setTimeout(() => {
25770
- oe.current?.focus();
25788
+ ie.current?.focus();
25771
25789
  }, 0);
25772
25790
  return () => window.clearTimeout(B);
25773
- }, [ee]), ae(() => {
25774
- e || (_(null), N(void 0), F(!1), p(!1), he(null), j(!1), x(!1));
25775
- }, [e]), ae(() => {
25791
+ }, [ee]), oe(() => {
25792
+ e || (_(null), N(void 0), F(!1), p(!1), ge(null), j(!1), x(!1));
25793
+ }, [e]), oe(() => {
25776
25794
  e && JT();
25777
- }, [e]), ae(() => {
25795
+ }, [e]), oe(() => {
25778
25796
  s && Array.isArray(s) && tk({ rateCount: s.length });
25779
25797
  }, [s]);
25780
25798
  const W = Ee(() => {
@@ -25783,54 +25801,54 @@ function gP({ isOpen: e, onClose: t }) {
25783
25801
  async (B, ne) => {
25784
25802
  try {
25785
25803
  S([]), b(!1), y.current = null, p(!0);
25786
- let te;
25804
+ let re;
25787
25805
  try {
25788
- te = await mr(B, !0, a ?? void 0);
25789
- } catch (ge) {
25790
- throw p(!1), ge;
25806
+ re = await mr(B, !0, a ?? void 0);
25807
+ } catch (he) {
25808
+ throw p(!1), he;
25791
25809
  }
25792
- if (te.status === "submission_failed") {
25793
- vn(new Error(`Quote failed at submission: ${te.message}`), {
25810
+ if (re.status === "submission_failed") {
25811
+ vn(new Error(`Quote failed at submission: ${re.message}`), {
25794
25812
  quoteId: a ?? void 0,
25795
25813
  phase: ne
25796
- }), p(!1), b(!1), y.current = null, Xn({ reason: "submission" }), I({ message: te.message });
25814
+ }), p(!1), b(!1), y.current = null, Xn({ reason: "submission" }), I({ message: re.message });
25797
25815
  return;
25798
25816
  }
25799
- if (te.status === "success")
25817
+ if (re.status === "success")
25800
25818
  try {
25801
- const { rates: ge } = await ws(a ?? void 0);
25802
- y.current = ge, b(!0);
25803
- } catch (ge) {
25804
- throw p(!1), ge;
25819
+ const { rates: he } = await ws(a ?? void 0);
25820
+ y.current = he, b(!0);
25821
+ } catch (he) {
25822
+ throw p(!1), he;
25805
25823
  }
25806
- const de = r.length, le = r[de - 1];
25824
+ const de = r.length, ce = r[de - 1];
25807
25825
  tm({
25808
- stageKey: le?.key ?? "unknown",
25809
- stageTitle: le?.title ?? "unknown",
25826
+ stageKey: ce?.key ?? "unknown",
25827
+ stageTitle: ce?.title ?? "unknown",
25810
25828
  stepIndex: de,
25811
25829
  totalSteps: de
25812
25830
  }), ek();
25813
- } catch (te) {
25814
- te?.__sentryReported || vn(te, {
25831
+ } catch (re) {
25832
+ re?.__sentryReported || vn(re, {
25815
25833
  quoteId: a ?? void 0,
25816
25834
  phase: ne
25817
25835
  }), p(!1), Xn({ reason: "submission" }), I({ message: "Oops, something went wrong. Please try again later." });
25818
25836
  }
25819
25837
  },
25820
25838
  [a, r]
25821
- ), se = Ee(
25839
+ ), ue = Ee(
25822
25840
  async (B) => {
25823
- if (!(!re || !a || w)) {
25841
+ if (!(!te || !a || w)) {
25824
25842
  j(!0);
25825
25843
  try {
25826
- const te = { ...Ur(re.allValues), communications_consent: B };
25827
- he(null), await Y(te, "consent_submit");
25844
+ const re = { ...Ur(te.allValues), communications_consent: B };
25845
+ ge(null), await Y(re, "consent_submit");
25828
25846
  } finally {
25829
25847
  j(!1);
25830
25848
  }
25831
25849
  }
25832
25850
  },
25833
- [re, a, w, Y]
25851
+ [te, a, w, Y]
25834
25852
  ), z = Ee(
25835
25853
  async (B) => {
25836
25854
  if (!(!a || w)) {
@@ -25851,7 +25869,7 @@ function gP({ isOpen: e, onClose: t }) {
25851
25869
  x(!0);
25852
25870
  }, Ce = () => {
25853
25871
  x(!1);
25854
- }, L = () => {
25872
+ }, U = () => {
25855
25873
  QT(), t();
25856
25874
  };
25857
25875
  return /* @__PURE__ */ T(
@@ -25911,8 +25929,8 @@ function gP({ isOpen: e, onClose: t }) {
25911
25929
  }
25912
25930
  );
25913
25931
  })(),
25914
- !Z && !m && re && /* @__PURE__ */ h(zw, { onChoose: se, isSubmitting: w }),
25915
- !Z && !s && !m && !re && /* @__PURE__ */ h(Ct, { children: K || r.length === 0 ? /* @__PURE__ */ h("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ h("div", { className: "text-slate-600", children: "Loading..." }) }) : q && a ? /* @__PURE__ */ h(
25932
+ !Z && !m && te && /* @__PURE__ */ h(zw, { onChoose: ue, isSubmitting: w }),
25933
+ !Z && !s && !m && !te && /* @__PURE__ */ h(Ct, { children: K || r.length === 0 ? /* @__PURE__ */ h("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ h("div", { className: "text-slate-600", children: "Loading..." }) }) : q && a ? /* @__PURE__ */ h(
25916
25934
  Rk,
25917
25935
  {
25918
25936
  stages: r,
@@ -25931,72 +25949,76 @@ function gP({ isOpen: e, onClose: t }) {
25931
25949
  nonTerminalStageKeys: bm,
25932
25950
  onStageComplete: async (B, ne) => {
25933
25951
  try {
25934
- const te = Ur(B);
25935
- let de = a, le = r;
25936
- const ge = le.findIndex((ce) => ce.key === ne), R = le[ge], U = fP(le, ne);
25952
+ const re = Ur(B);
25953
+ let de = a, ce = r;
25954
+ const he = ce.findIndex((se) => se.key === ne), R = ce[he], L = fP(ce, ne);
25937
25955
  if (de)
25938
25956
  if (ne === "Phone") {
25939
- const ce = te.phone;
25940
- if (!ce)
25957
+ const se = re.phone;
25958
+ if (!se)
25941
25959
  throw new Error("Phone number is required.");
25942
- const ie = Qt();
25943
- await mr({ ...te, current_stage: U }, !1, ie ? void 0 : de), await Kb(de, ce);
25960
+ const ae = Qt();
25961
+ await mr(
25962
+ { ...re, current_stage: L, suppress_verification_sms: !0 },
25963
+ !1,
25964
+ ae ? void 0 : de
25965
+ ), await Kb(de, se);
25944
25966
  } else if (ne === "SMSVerification") {
25945
- const { isVerified: ce, token: ie } = await Fu(de, te.sms_code);
25946
- if (!ce)
25967
+ const { isVerified: se, token: ae } = await Fu(de, re.sms_code);
25968
+ if (!se)
25947
25969
  throw new Error("Invalid SMS code");
25948
- ie && So(ie), await mr({ current_stage: U }, !1);
25970
+ ae && So(ae), await mr({ current_stage: L }, !1);
25949
25971
  } else if (ne === "Product") {
25950
- const ce = Qt(), { isSupported: ie } = await Yb(
25951
- te.state,
25952
- ce ? void 0 : de ?? void 0
25972
+ const se = Qt(), { isSupported: ae } = await Yb(
25973
+ re.state,
25974
+ se ? void 0 : de ?? void 0
25953
25975
  );
25954
25976
  if (await mr(
25955
- { ...te, current_stage: ie ? U : ne },
25977
+ { ...re, current_stage: ae ? L : ne },
25956
25978
  !1,
25957
- ce ? void 0 : de
25958
- ), !ie) {
25959
- const pe = d_(te.state);
25979
+ se ? void 0 : de
25980
+ ), !ae) {
25981
+ const pe = d_(re.state);
25960
25982
  throw new Error(
25961
25983
  `Sorry, Credify Corporation doesn't currently offer insurance in ${pe}. We're expanding our coverage and hope to serve your state soon.`
25962
25984
  );
25963
25985
  }
25964
25986
  } else {
25965
- const ce = Qt();
25987
+ const se = Qt();
25966
25988
  await mr(
25967
- { ...te, current_stage: U },
25989
+ { ...re, current_stage: L },
25968
25990
  !1,
25969
- ce ? void 0 : de || void 0
25991
+ se ? void 0 : de || void 0
25970
25992
  );
25971
25993
  }
25972
25994
  else {
25973
- const ce = te.postal_code ?? "";
25974
- if (!ce)
25995
+ const se = re.postal_code ?? "";
25996
+ if (!se)
25975
25997
  throw new Error("ZIP code is required to start a quote.");
25976
- const pe = (await lT(ce, sP()))?.quoteId;
25998
+ const pe = (await lT(se, sP()))?.quoteId;
25977
25999
  if (!pe || typeof pe != "string" || pe.trim() === "")
25978
26000
  throw new Error(`Failed to create quote - invalid quoteId returned: ${pe}`);
25979
- de = pe, o(pe), Pf(pe), await mr({ ...te, current_stage: U }, !1, pe);
26001
+ de = pe, o(pe), Pf(pe), await mr({ ...re, current_stage: L }, !1, pe);
25980
26002
  }
25981
26003
  if (ne === "Name" && de) {
25982
- const ce = String(B.product ?? "");
25983
- (ce === "Auto" || ce === "Both") && LT(de);
26004
+ const se = String(B.product ?? "");
26005
+ (se === "Auto" || se === "Both") && LT(de);
25984
26006
  }
25985
26007
  if (ne === "Vehicle" && de && VT(de), bm.has(ne))
25986
26008
  try {
25987
- const { stages: ce } = await uo(de || void 0);
25988
- le = D(ce), le = _m(le, B), n(le);
25989
- } catch (ce) {
25990
- console.warn("Unable to refresh stages after flow-shaping step", ce);
26009
+ const { stages: se } = await uo(de || void 0);
26010
+ ce = D(se), ce = _m(ce, B), n(ce);
26011
+ } catch (se) {
26012
+ console.warn("Unable to refresh stages after flow-shaping step", se);
25991
26013
  }
25992
26014
  return tm({
25993
26015
  stageKey: ne,
25994
26016
  stageTitle: R?.title ?? ne,
25995
- stepIndex: ge + 1,
25996
- totalSteps: le.length
25997
- }), { success: !0, latestStages: le };
25998
- } catch (te) {
25999
- return { success: !1, error: te instanceof Error ? te.message : "An error occurred" };
26017
+ stepIndex: he + 1,
26018
+ totalSteps: ce.length
26019
+ }), { success: !0, latestStages: ce };
26020
+ } catch (re) {
26021
+ return { success: !1, error: re instanceof Error ? re.message : "An error occurred" };
26000
26022
  }
26001
26023
  },
26002
26024
  onComplete: async (B, ne) => {
@@ -26005,17 +26027,20 @@ function gP({ isOpen: e, onClose: t }) {
26005
26027
  _(B);
26006
26028
  try {
26007
26029
  if (ne === "Phone") {
26008
- const te = Ur(B);
26009
- if (!te.phone)
26030
+ const re = Ur(B);
26031
+ if (!re.phone)
26010
26032
  return { success: !1, error: "Phone number is required." };
26011
- const le = Qt();
26012
- return await mr({ ...te, suppress_verification_sms: !0 }, !1, le ? void 0 : a), he({ allValues: B }), { success: !0 };
26033
+ const ce = Qt();
26034
+ return await mr({ ...re, suppress_verification_sms: !0 }, !1, ce ? void 0 : a), ge({ allValues: B }), { success: !0 };
26013
26035
  }
26014
26036
  if (ne === "SMSVerification") {
26015
- const te = Ur(B), { isVerified: de, token: le } = await Fu(a, te.sms_code);
26016
- return de ? (le && So(le), he({ allValues: B }), { success: !0 }) : { success: !1, error: "Invalid SMS code" };
26037
+ const re = Ur(B), { isVerified: de, token: ce, code: he } = await Fu(a, re.sms_code);
26038
+ return de ? (ce && So(ce), ge({ allValues: B }), { success: !0 }) : {
26039
+ success: !1,
26040
+ error: he === "OTP_EXPIRED" ? "That code has expired. Request a new one." : "Invalid SMS code"
26041
+ };
26017
26042
  }
26018
- return he({ allValues: B }), { success: !0 };
26043
+ return ge({ allValues: B }), { success: !0 };
26019
26044
  } catch {
26020
26045
  const de = "Oops, something went wrong. Please try again later.";
26021
26046
  return I({ message: de }), { success: !1, error: de };
@@ -26055,8 +26080,8 @@ function gP({ isOpen: e, onClose: t }) {
26055
26080
  /* @__PURE__ */ h("h3", { id: "close-confirm-title", children: "Close quote form?" }),
26056
26081
  /* @__PURE__ */ h("p", { id: "close-confirm-description", children: "Your answers in this session will be lost if you close this window." }),
26057
26082
  /* @__PURE__ */ T("div", { className: "close-confirm-actions", children: [
26058
- /* @__PURE__ */ h("button", { ref: oe, type: "button", className: "btn-outline", onClick: Ce, children: "Keep editing" }),
26059
- /* @__PURE__ */ h("button", { type: "button", className: "btn-primary close-confirm-danger", onClick: L, children: "Close form" })
26083
+ /* @__PURE__ */ h("button", { ref: ie, type: "button", className: "btn-outline", onClick: Ce, children: "Keep editing" }),
26084
+ /* @__PURE__ */ h("button", { type: "button", className: "btn-primary close-confirm-danger", onClick: U, children: "Close form" })
26060
26085
  ] })
26061
26086
  ]
26062
26087
  }
@@ -26078,7 +26103,7 @@ function bP({ isOpen: e }) {
26078
26103
  const t = () => __.close();
26079
26104
  return /* @__PURE__ */ h(tl, { fallback: /* @__PURE__ */ h(yP, { onClose: t }), children: /* @__PURE__ */ h(gP, { isOpen: e, onClose: t }) });
26080
26105
  }
26081
- var Is = { dsn: "", environment: "production", release: "c17815f0e3c1103e5daecd58a5cd0ecf718a2daf" };
26106
+ var Is = { dsn: "", environment: "production", release: "69c7b518a16c901b4b9cbf1b73131565ee9155a4" };
26082
26107
  function _P() {
26083
26108
  try {
26084
26109
  return typeof Is < "u" && Is ? Is : {};