@getcredify/credify-insurance-widget 1.5.7 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,64 +1,64 @@
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-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--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-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-2xl:42rem;--container-4xl:56rem;--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;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--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{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.right-4{right:calc(var(--spacing)*4)}.z-0{z-index:0}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.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-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-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.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}.h-5{height:calc(var(--spacing)*5)}.h-12{height:calc(var(--spacing)*12)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-5{width:calc(var(--spacing)*5)}.w-12{width:calc(var(--spacing)*12)}.w-auto{width:auto}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.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}.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-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}: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-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-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)))}.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-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-\\[var\\(--accent-color\\)\\]{border-color:var(--accent-color)}.border-blue-600{border-color:var(--color-blue-600)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.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)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.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-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.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-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\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.text-center{text-align:center}.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))}.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)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--text-primary\\)\\]{color:var(--text-primary)}.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-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-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.underline{text-decoration-line:underline}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.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)}.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))}.outline-none{--tw-outline-style:none;outline-style:none}.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\\:text-blue-700:hover{color:var(--color-blue-700)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px 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)}}.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\\: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}@media (min-width:40rem){.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}:root{--primary-color:#006aff;--secondary-color:#f0f4ff;--background-color:#fff;--text-primary:#1a202c;--text-secondary:#718096;--accent-color:#e2e8f0;--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%23006aff%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{border-radius:var(--radius-2xl);padding:1.5rem;box-shadow:0 24px 64px -20px #00000059;background:#fff!important}@media (min-width:640px){#insurance-widget-root .modal-panel,#root .modal-panel{padding:2rem}}@media (min-width:768px){#insurance-widget-root .modal-panel,#root .modal-panel{padding:2.5rem}}#insurance-widget-root .h1-title,#root .h1-title{letter-spacing:-.01em;color:var(--text-primary);font-size:1.875rem;font-weight:700;line-height:2.25rem}@media (min-width:640px){#insurance-widget-root .h1-title,#root .h1-title{font-size:2.25rem;line-height:2.5rem}}#insurance-widget-root .p-subtitle,#root .p-subtitle{color:var(--text-secondary);margin-top:.5rem}#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-lg);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 .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 .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 .radio-card,#root .radio-card{border-radius:var(--radius-md);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-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-full);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{opacity:.9}#insurance-widget-root .btn-outline,#root .btn-outline{border-radius:var(--radius-full);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{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));border-radius:3.40282e38px}@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-md);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 .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;place-items:center;width:1.25rem;height:1.25rem;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 .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:#fff;padding-top:.25rem;padding-bottom:.75rem;position:sticky;top:0}#insurance-widget-root .panel-body,#root .panel-body{padding:4px;scroll-padding:4px}#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 .form-label:has(+input[aria-required=true]):after,#root .form-label:has(+input[aria-required=true]):after,#insurance-widget-root .form-label:has(+select[aria-required=true]):after,#root .form-label:has(+select[aria-required=true]):after,#insurance-widget-root .form-label:has(+textarea[aria-required=true]):after,#root .form-label:has(+textarea[aria-required=true]):after,#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[type=button],#root button.form-wizard-next-btn[type=button],#insurance-widget-root button.form-wizard-next-btn[type=button]:disabled,#root button.form-wizard-next-btn[type=button]:disabled{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;min-height:3rem!important;display:flex!important;position:relative!important;overflow:visible!important}#insurance-widget-root button.form-wizard-next-btn[type=button]:disabled,#root button.form-wizard-next-btn[type=button]:disabled{opacity:.5!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;background:0 0;border:none;padding:0;visibility:visible!important;opacity:1!important;cursor:pointer!important;clip-path:none!important;pointer-events:auto!important;display:inline-flex!important;overflow:visible!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{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;display:inline-flex!important;overflow:visible!important}#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{opacity:.5!important}#insurance-widget-root button.credify-retry-btn[type=button],#root button.credify-retry-btn[type=button]{color:var(--text-primary);cursor:pointer;font:inherit;background:0 0;border:none;text-decoration:underline;visibility:visible!important;clip-path:none!important;pointer-events:auto!important;display:inline!important;overflow:visible!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;min-height:2.5rem!important;display:inline-flex!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}#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;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;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]: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 .form-wizard-steps-header,#root .form-wizard-steps-header{visibility:visible!important;display:flex!important}#insurance-widget-root .form-wizard-steps,#root .form-wizard-steps{flex:1;align-items:center;gap:.5rem;min-width:0;margin:0;padding:0;font-size:.75rem;line-height:1rem;list-style:none;overflow-x:auto;display:flex!important}#insurance-widget-root .form-wizard-step-pill,#root .form-wizard-step-pill{white-space:nowrap;border:1px solid;border-radius:9999px;flex-shrink:0;padding:.25rem .625rem;visibility:visible!important;display:inline-flex!important}#insurance-widget-root .form-wizard-step-arrow,#root .form-wizard-step-arrow{color:#94a3b8;flex-shrink:0;visibility:visible!important;display:inline-flex!important}#insurance-widget-root .form-wizard-step-counter,#root .form-wizard-step-counter{color:#64748b;flex-shrink:0;font-size:.875rem;line-height:1.25rem;visibility:visible!important;display:block!important}@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-font-weight{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}@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-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-font-weight: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}}}`)),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { useState as M, useRef as O, useEffect as D, useMemo as ie, useCallback as tt, createElement as nt } from "react";
3
- import { createRoot as rt } from "react-dom/client";
4
- import { jsxs as b, jsx as o, Fragment as We } from "react/jsx-runtime";
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-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--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-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-2xl:42rem;--container-4xl:56rem;--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;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--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{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.right-4{right:calc(var(--spacing)*4)}.z-0{z-index:0}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.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-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-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.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}.h-5{height:calc(var(--spacing)*5)}.h-12{height:calc(var(--spacing)*12)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-5{width:calc(var(--spacing)*5)}.w-12{width:calc(var(--spacing)*12)}.w-auto{width:auto}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.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}.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-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}: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-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-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)))}.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-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-\\[var\\(--accent-color\\)\\]{border-color:var(--accent-color)}.border-blue-600{border-color:var(--color-blue-600)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.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)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.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-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.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-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\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.text-center{text-align:center}.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))}.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)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--text-primary\\)\\]{color:var(--text-primary)}.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-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-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.underline{text-decoration-line:underline}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.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)}.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))}.outline-none{--tw-outline-style:none;outline-style:none}.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\\:text-blue-700:hover{color:var(--color-blue-700)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px 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)}}.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\\: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}@media (min-width:40rem){.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}:root{--primary-color:#006aff;--secondary-color:#f0f4ff;--background-color:#fff;--text-primary:#1a202c;--text-secondary:#718096;--accent-color:#e2e8f0;--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%23006aff%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{border-radius:var(--radius-2xl);padding:1.5rem;box-shadow:0 24px 64px -20px #00000059;background:#fff!important}@media (min-width:640px){#insurance-widget-root .modal-panel,#root .modal-panel{padding:2rem}}@media (min-width:768px){#insurance-widget-root .modal-panel,#root .modal-panel{padding:2.5rem}}#insurance-widget-root .h1-title,#root .h1-title{letter-spacing:-.01em;color:var(--text-primary);font-size:1.875rem;font-weight:700;line-height:2.25rem}@media (min-width:640px){#insurance-widget-root .h1-title,#root .h1-title{font-size:2.25rem;line-height:2.5rem}}#insurance-widget-root .p-subtitle,#root .p-subtitle{color:var(--text-secondary);margin-top:.5rem}#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-lg);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 .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 .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 .radio-card,#root .radio-card{border-radius:var(--radius-md);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-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-full);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{opacity:.9}#insurance-widget-root .btn-outline,#root .btn-outline{border-radius:var(--radius-full);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{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));border-radius:3.40282e38px}@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-md);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 .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;place-items:center;width:1.25rem;height:1.25rem;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 .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:#fff;padding-top:.25rem;padding-bottom:.75rem;position:sticky;top:0}#insurance-widget-root .panel-body,#root .panel-body{padding:4px;scroll-padding:4px}#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 .form-label:has(+input[aria-required=true]):after,#root .form-label:has(+input[aria-required=true]):after,#insurance-widget-root .form-label:has(+select[aria-required=true]):after,#root .form-label:has(+select[aria-required=true]):after,#insurance-widget-root .form-label:has(+textarea[aria-required=true]):after,#root .form-label:has(+textarea[aria-required=true]):after,#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;min-height:3rem!important;display:flex!important;position:relative!important;overflow:visible!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}#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;background:0 0;border:none;padding:0;visibility:visible!important;opacity:1!important;cursor:pointer!important;clip-path:none!important;pointer-events:auto!important;display:inline-flex!important;overflow:visible!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{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;display:inline-flex!important;overflow:visible!important}#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{opacity:.5!important}#insurance-widget-root button.credify-retry-btn[type=button],#root button.credify-retry-btn[type=button]{color:var(--text-primary);cursor:pointer;font:inherit;background:0 0;border:none;text-decoration:underline;visibility:visible!important;clip-path:none!important;pointer-events:auto!important;display:inline!important;overflow:visible!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;min-height:2.5rem!important;display:inline-flex!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}#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;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;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]: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 .form-wizard-steps-header,#root .form-wizard-steps-header{visibility:visible!important;display:flex!important}#insurance-widget-root .form-wizard-steps,#root .form-wizard-steps{flex:1;align-items:center;gap:.5rem;min-width:0;margin:0;padding:0;font-size:.75rem;line-height:1rem;list-style:none;overflow-x:auto;display:flex!important}#insurance-widget-root .form-wizard-step-pill,#root .form-wizard-step-pill{white-space:nowrap;border:1px solid;border-radius:9999px;flex-shrink:0;padding:.25rem .625rem;visibility:visible!important;display:inline-flex!important}#insurance-widget-root .form-wizard-step-arrow,#root .form-wizard-step-arrow{color:#94a3b8;flex-shrink:0;visibility:visible!important;display:inline-flex!important}#insurance-widget-root .form-wizard-step-counter,#root .form-wizard-step-counter{color:#64748b;flex-shrink:0;font-size:.875rem;line-height:1.25rem;visibility:visible!important;display:block!important}@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-font-weight{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}@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-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-font-weight: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}}}`)),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import { useState as M, useRef as L, useEffect as D, useMemo as se, useCallback as nt, createElement as rt } from "react";
3
+ import { createRoot as it } from "react-dom/client";
4
+ import { jsxs as b, jsx as l, Fragment as Pe } from "react/jsx-runtime";
5
5
  (function() {
6
6
  if (typeof e > "u")
7
7
  var e = { env: {} };
8
8
  })();
9
- function U({ id: e, label: t, hint: r, error: s, required: n, className: i, children: l }) {
10
- return /* @__PURE__ */ b("div", { className: i, children: [
9
+ function U({ id: e, label: t, hint: r, error: i, required: n, className: s, children: a }) {
10
+ return /* @__PURE__ */ b("div", { className: s, children: [
11
11
  /* @__PURE__ */ b("label", { htmlFor: e, className: "form-label", children: [
12
12
  t,
13
13
  " ",
14
- n && /* @__PURE__ */ o("span", { className: "text-red-600", children: "*" })
14
+ n && /* @__PURE__ */ l("span", { className: "text-red-600", children: "*" })
15
15
  ] }),
16
- l,
17
- r && !s && /* @__PURE__ */ o("p", { id: `${e}-hint`, className: "mt-1 text-sm text-slate-500", children: r }),
18
- s && /* @__PURE__ */ o("p", { id: `${e}-error`, className: "mt-1 text-sm text-red-600", children: s })
16
+ a,
17
+ r && !i && /* @__PURE__ */ l("p", { id: `${e}-hint`, className: "mt-1 text-sm text-slate-500", children: r }),
18
+ i && /* @__PURE__ */ l("p", { id: `${e}-error`, className: "mt-1 text-sm text-red-600", children: i })
19
19
  ] });
20
20
  }
21
- function st({ id: e, label: t, hint: r, error: s, required: n, className: i, ...l }) {
22
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ o(
21
+ function st({ id: e, label: t, hint: r, error: i, required: n, className: s, ...a }) {
22
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ l(
23
23
  "input",
24
24
  {
25
25
  id: e,
26
- className: `form-input ${s ? "input-error" : ""}`,
27
- "aria-invalid": !!s,
28
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
26
+ className: `form-input ${i ? "input-error" : ""}`,
27
+ "aria-invalid": !!i,
28
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
29
29
  required: n,
30
- ...l,
30
+ ...a,
31
31
  type: "text"
32
32
  }
33
33
  ) });
34
34
  }
35
- function it({ id: e, label: t, hint: r, error: s, required: n, className: i, ...l }) {
36
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ o(
35
+ function at({ id: e, label: t, hint: r, error: i, required: n, className: s, ...a }) {
36
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ l(
37
37
  "input",
38
38
  {
39
39
  id: e,
40
40
  type: "number",
41
- className: `form-input ${s ? "input-error" : ""}`,
42
- "aria-invalid": !!s,
43
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
41
+ className: `form-input ${i ? "input-error" : ""}`,
42
+ "aria-invalid": !!i,
43
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
44
44
  required: n,
45
- ...l
45
+ ...a
46
46
  }
47
47
  ) });
48
48
  }
49
- function at({ id: e, label: t, hint: r, error: s, required: n, className: i, ...l }) {
50
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ o(
49
+ function ot({ id: e, label: t, hint: r, error: i, required: n, className: s, ...a }) {
50
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ l(
51
51
  "input",
52
52
  {
53
53
  id: e,
54
54
  type: "email",
55
- className: `form-input ${s ? "input-error" : ""}`,
55
+ className: `form-input ${i ? "input-error" : ""}`,
56
56
  inputMode: "email",
57
57
  autoComplete: "email",
58
58
  required: n,
59
- "aria-invalid": !!s,
60
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
61
- ...l
59
+ "aria-invalid": !!i,
60
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
61
+ ...a
62
62
  }
63
63
  ) });
64
64
  }
@@ -75,22 +75,22 @@ function be(e) {
75
75
  function ve(e) {
76
76
  return e.replace(/\D/g, "");
77
77
  }
78
- function ot({ id: e, label: t, hint: r, error: s, required: n, className: i, value: l = "", onChange: a, ...u }) {
79
- const [v, k] = M(""), m = O(null), A = O(0);
78
+ function lt({ id: e, label: t, hint: r, error: i, required: n, className: s, value: a = "", onChange: o, ...u }) {
79
+ const [v, k] = M(""), f = L(null), A = L(0);
80
80
  D(() => {
81
- if (!l) {
81
+ if (!a) {
82
82
  k("");
83
83
  return;
84
84
  }
85
- let R = ve(l);
85
+ let R = ve(a);
86
86
  R.length === 11 && R.startsWith("1") && (R = R.slice(1));
87
87
  const Q = R.slice(0, 10);
88
88
  k(be(Q));
89
- }, [l]);
89
+ }, [a]);
90
90
  const I = (R) => {
91
- const Q = R.target, C = Q.value;
91
+ const Q = R.target, E = Q.value;
92
92
  A.current = Q.selectionStart || 0;
93
- const d = ve(C).slice(0, 10), p = be(d);
93
+ const d = ve(E).slice(0, 10), p = be(d);
94
94
  k(p);
95
95
  const c = d.length === 10 ? `+1${d}` : d, y = {
96
96
  ...R,
@@ -103,19 +103,19 @@ function ot({ id: e, label: t, hint: r, error: s, required: n, className: i, val
103
103
  value: c
104
104
  }
105
105
  };
106
- a?.(y), setTimeout(() => {
107
- if (m.current) {
108
- const w = C.slice(0, A.current), $ = ve(w), S = be($), _ = Math.min(S.length, p.length);
109
- m.current.setSelectionRange(_, _);
106
+ o?.(y), setTimeout(() => {
107
+ if (f.current) {
108
+ const w = E.slice(0, A.current), $ = ve(w), S = be($), _ = Math.min(S.length, p.length);
109
+ f.current.setSelectionRange(_, _);
110
110
  }
111
111
  }, 0);
112
112
  };
113
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ b(
113
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ b(
114
114
  "div",
115
115
  {
116
- className: `tel-input-wrapper flex items-center border rounded-lg transition-colors w-full relative ${s ? "border-red-500 error" : "border-[var(--accent-color)] focus-within:border-[var(--primary-color)]"}`,
116
+ className: `tel-input-wrapper flex items-center border rounded-lg transition-colors w-full relative ${i ? "border-red-500 error" : "border-[var(--accent-color)] focus-within:border-[var(--primary-color)]"}`,
117
117
  children: [
118
- /* @__PURE__ */ o(
118
+ /* @__PURE__ */ l(
119
119
  "label",
120
120
  {
121
121
  htmlFor: e,
@@ -123,18 +123,18 @@ function ot({ id: e, label: t, hint: r, error: s, required: n, className: i, val
123
123
  children: "+1"
124
124
  }
125
125
  ),
126
- /* @__PURE__ */ o(
126
+ /* @__PURE__ */ l(
127
127
  "input",
128
128
  {
129
- ref: m,
129
+ ref: f,
130
130
  id: e,
131
131
  type: "tel",
132
- className: `flex-1 px-4 py-3 border-0 rounded-r-lg outline-none bg-transparent text-[var(--text-primary)] text-base ${s ? "input-error" : ""}`,
132
+ className: `flex-1 px-4 py-3 border-0 rounded-r-lg outline-none bg-transparent text-[var(--text-primary)] text-base ${i ? "input-error" : ""}`,
133
133
  inputMode: "tel",
134
134
  autoComplete: "tel",
135
135
  required: n,
136
- "aria-invalid": !!s,
137
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
136
+ "aria-invalid": !!i,
137
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
138
138
  value: v,
139
139
  onChange: I,
140
140
  ...u
@@ -144,115 +144,115 @@ function ot({ id: e, label: t, hint: r, error: s, required: n, className: i, val
144
144
  }
145
145
  ) });
146
146
  }
147
- function lt({ id: e, label: t, hint: r, error: s, required: n, className: i, ...l }) {
148
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ o(
147
+ function ct({ id: e, label: t, hint: r, error: i, required: n, className: s, ...a }) {
148
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ l(
149
149
  "input",
150
150
  {
151
151
  id: e,
152
152
  type: "url",
153
- className: `form-input ${s ? "input-error" : ""}`,
153
+ className: `form-input ${i ? "input-error" : ""}`,
154
154
  inputMode: "url",
155
155
  autoComplete: "url",
156
156
  required: n,
157
- "aria-invalid": !!s,
158
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
159
- ...l
157
+ "aria-invalid": !!i,
158
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
159
+ ...a
160
160
  }
161
161
  ) });
162
162
  }
163
- function ct({ id: e, label: t, hint: r, error: s, required: n, className: i, ...l }) {
164
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ o(
163
+ function dt({ id: e, label: t, hint: r, error: i, required: n, className: s, ...a }) {
164
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ l(
165
165
  "input",
166
166
  {
167
167
  id: e,
168
168
  type: "password",
169
- className: `form-input ${s ? "input-error" : ""}`,
169
+ className: `form-input ${i ? "input-error" : ""}`,
170
170
  autoComplete: "current-password",
171
171
  required: n,
172
- "aria-invalid": !!s,
173
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
174
- ...l
172
+ "aria-invalid": !!i,
173
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
174
+ ...a
175
175
  }
176
176
  ) });
177
177
  }
178
- function dt({ id: e, label: t, hint: r, error: s, required: n, className: i, rows: l = 4, ...a }) {
179
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ o(
178
+ function ut({ id: e, label: t, hint: r, error: i, required: n, className: s, rows: a = 4, ...o }) {
179
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ l(
180
180
  "textarea",
181
181
  {
182
182
  id: e,
183
- rows: l,
184
- className: `form-input ${s ? "input-error" : ""}`,
185
- "aria-invalid": !!s,
186
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
183
+ rows: a,
184
+ className: `form-input ${i ? "input-error" : ""}`,
185
+ "aria-invalid": !!i,
186
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
187
187
  required: n,
188
- ...a
188
+ ...o
189
189
  }
190
190
  ) });
191
191
  }
192
- function ut({ id: e, label: t, hint: r, error: s, required: n, className: i, ...l }) {
193
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ o(
192
+ function _t({ id: e, label: t, hint: r, error: i, required: n, className: s, ...a }) {
193
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ l(
194
194
  "input",
195
195
  {
196
196
  id: e,
197
197
  type: "date",
198
- className: `form-input ${s ? "input-error" : ""}`,
199
- "aria-invalid": !!s,
200
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
198
+ className: `form-input ${i ? "input-error" : ""}`,
199
+ "aria-invalid": !!i,
200
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
201
201
  required: n,
202
- ...l
202
+ ...a
203
203
  }
204
204
  ) });
205
205
  }
206
- function Re({ id: e, label: t, className: r, ...s }) {
206
+ function Re({ id: e, label: t, className: r, ...i }) {
207
207
  return /* @__PURE__ */ b("label", { className: `checkbox-card ${r || ""}`, htmlFor: e, children: [
208
- /* @__PURE__ */ o("input", { id: e, type: "checkbox", className: "checkbox-input", ...s }),
209
- /* @__PURE__ */ o("span", { className: "checkbox-label", children: t })
208
+ /* @__PURE__ */ l("input", { id: e, type: "checkbox", className: "checkbox-input", ...i }),
209
+ /* @__PURE__ */ l("span", { className: "checkbox-label", children: t })
210
210
  ] });
211
211
  }
212
- function _t({
212
+ function ft({
213
213
  name: e,
214
214
  value: t,
215
215
  checked: r,
216
- onChange: s,
216
+ onChange: i,
217
217
  children: n
218
218
  }) {
219
219
  return /* @__PURE__ */ b("label", { className: "radio-card", children: [
220
- /* @__PURE__ */ o("input", { className: "radio-input", type: "radio", name: e, value: t, checked: r, onChange: s }),
221
- /* @__PURE__ */ o("span", { className: "radio-label", children: n })
220
+ /* @__PURE__ */ l("input", { className: "radio-input", type: "radio", name: e, value: t, checked: r, onChange: i }),
221
+ /* @__PURE__ */ l("span", { className: "radio-label", children: n })
222
222
  ] });
223
223
  }
224
- function ft({
224
+ function mt({
225
225
  legend: e,
226
226
  children: t,
227
227
  className: r,
228
- legendClassName: s
228
+ legendClassName: i
229
229
  // NEW
230
230
  }) {
231
231
  return /* @__PURE__ */ b("fieldset", { className: r, children: [
232
- /* @__PURE__ */ o("legend", { className: `mb-4 text-base font-medium ${s || ""}`, style: { color: "var(--text-primary)" }, children: e }),
233
- /* @__PURE__ */ o("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: t })
232
+ /* @__PURE__ */ l("legend", { className: `mb-4 text-base font-medium ${i || ""}`, style: { color: "var(--text-primary)" }, children: e }),
233
+ /* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: t })
234
234
  ] });
235
235
  }
236
- function mt({ id: e, label: t, hint: r, error: s, required: n, className: i, placeholder: l, options: a, children: u, ...v }) {
237
- const k = [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0, m = !!u;
238
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ b(
236
+ function pt({ id: e, label: t, hint: r, error: i, required: n, className: s, placeholder: a, options: o, children: u, ...v }) {
237
+ const k = [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0, f = !!u;
238
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ b(
239
239
  "select",
240
240
  {
241
241
  id: e,
242
- className: `form-input select-caret ${s ? "input-error" : ""}`,
243
- "aria-invalid": !!s,
242
+ className: `form-input select-caret ${i ? "input-error" : ""}`,
243
+ "aria-invalid": !!i,
244
244
  "aria-describedby": k,
245
245
  required: n,
246
246
  ...v,
247
247
  children: [
248
- l && /* @__PURE__ */ o("option", { value: "", disabled: !0, selected: !("value" in v), children: l }),
249
- m ? u : a?.map((A) => /* @__PURE__ */ o("option", { value: A.value, disabled: A.disabled, children: A.label }, A.value))
248
+ a && /* @__PURE__ */ l("option", { value: "", disabled: !0, selected: !("value" in v), children: a }),
249
+ f ? u : o?.map((A) => /* @__PURE__ */ l("option", { value: A.value, disabled: A.disabled, children: A.label }, A.value))
250
250
  ]
251
251
  }
252
252
  ) });
253
253
  }
254
- const pt = "AIzaSyDjLdKLxoa-maLNGAyq_I_2r_Fe_TzFikw";
255
- function gt() {
254
+ const gt = "AIzaSyDjLdKLxoa-maLNGAyq_I_2r_Fe_TzFikw";
255
+ function ht() {
256
256
  return new Promise((e, t) => {
257
257
  if (window.google?.maps?.places) {
258
258
  e();
@@ -263,36 +263,36 @@ function gt() {
263
263
  r.addEventListener("load", () => e()), r.addEventListener("error", () => t(new Error("Failed to load Google Maps script")));
264
264
  return;
265
265
  }
266
- const s = document.createElement("script");
267
- s.src = `https://maps.googleapis.com/maps/api/js?key=${pt}&libraries=places`, s.async = !0, s.defer = !0, s.onload = () => e(), s.onerror = () => t(new Error("Failed to load Google Maps script")), document.head.appendChild(s);
266
+ const i = document.createElement("script");
267
+ i.src = `https://maps.googleapis.com/maps/api/js?key=${gt}&libraries=places`, i.async = !0, i.defer = !0, i.onload = () => e(), i.onerror = () => t(new Error("Failed to load Google Maps script")), document.head.appendChild(i);
268
268
  });
269
269
  }
270
- function ht(e) {
270
+ function yt(e) {
271
271
  const t = {
272
272
  fullAddress: e.formatted_address
273
273
  };
274
274
  return e.address_components && e.address_components.forEach((r) => {
275
- const s = r.types;
276
- s.includes("street_number") && (t.streetNumber = r.long_name), s.includes("route") && (t.streetName = r.long_name), s.includes("locality") && (t.city = r.long_name), s.includes("administrative_area_level_1") && (t.state = r.short_name), s.includes("postal_code") && (t.zipCode = r.long_name), s.includes("country") && (t.country = r.short_name);
275
+ const i = r.types;
276
+ i.includes("street_number") && (t.streetNumber = r.long_name), i.includes("route") && (t.streetName = r.long_name), i.includes("locality") && (t.city = r.long_name), i.includes("administrative_area_level_1") && (t.state = r.short_name), i.includes("postal_code") && (t.zipCode = r.long_name), i.includes("country") && (t.country = r.short_name);
277
277
  }), t;
278
278
  }
279
- function yt({ id: e, label: t, hint: r, error: s, required: n, className: i, onChange: l, onPlaceSelect: a, value: u, ...v }) {
280
- const k = O(null), m = O(null), A = O(null), I = O(null), [R, Q] = M(!0), [C, T] = M(u || ""), [d, p] = M([]), [c, y] = M(!1), [w, $] = M(-1), S = O([]), _ = O(!1), f = O(-1);
279
+ function bt({ id: e, label: t, hint: r, error: i, required: n, className: s, onChange: a, onPlaceSelect: o, value: u, ...v }) {
280
+ const k = L(null), f = L(null), A = L(null), I = L(null), [R, Q] = M(!0), [E, T] = M(u || ""), [d, p] = M([]), [c, y] = M(!1), [w, $] = M(-1), S = L([]), _ = L(!1), m = L(-1);
281
281
  D(() => {
282
282
  S.current = d;
283
283
  }, [d]), D(() => {
284
284
  _.current = c;
285
285
  }, [c]), D(() => {
286
- f.current = w;
286
+ m.current = w;
287
287
  }, [w]), D(() => {
288
288
  u !== void 0 && T(String(u));
289
289
  }, [u]);
290
- const g = O(null);
290
+ const g = L(null);
291
291
  D(() => {
292
292
  if (!k.current) return;
293
293
  let N = !0;
294
- return gt().then(() => {
295
- !N || !k.current || (m.current = new google.maps.places.AutocompleteService(), A.current = new google.maps.places.PlacesService(document.createElement("div")), Q(!1));
294
+ return ht().then(() => {
295
+ !N || !k.current || (f.current = new google.maps.places.AutocompleteService(), A.current = new google.maps.places.PlacesService(document.createElement("div")), Q(!1));
296
296
  }).catch((x) => {
297
297
  console.error("Error loading Google Maps:", x), Q(!1);
298
298
  }), () => {
@@ -301,18 +301,18 @@ function yt({ id: e, label: t, hint: r, error: s, required: n, className: i, onC
301
301
  }, []);
302
302
  const h = (N) => {
303
303
  const x = N.target.value;
304
- if (T(x), l?.(x), g.current && clearTimeout(g.current), x.length < 3) {
304
+ if (T(x), a?.(x), g.current && clearTimeout(g.current), x.length < 3) {
305
305
  p([]), y(!1);
306
306
  return;
307
307
  }
308
308
  g.current = setTimeout(() => {
309
- m.current && m.current.getPlacePredictions(
309
+ f.current && f.current.getPlacePredictions(
310
310
  {
311
311
  input: x,
312
312
  types: ["address"]
313
313
  },
314
- (F, K) => {
315
- K === google.maps.places.PlacesServiceStatus.OK && F ? (p(F), y(!0), $(-1)) : (p([]), y(!1));
314
+ (F, z) => {
315
+ z === google.maps.places.PlacesServiceStatus.OK && F ? (p(F), y(!0), $(-1)) : (p([]), y(!1));
316
316
  }
317
317
  );
318
318
  }, 300);
@@ -325,17 +325,17 @@ function yt({ id: e, label: t, hint: r, error: s, required: n, className: i, onC
325
325
  case "ArrowDown":
326
326
  N.preventDefault(), $((x) => {
327
327
  const F = x < S.current.length - 1 ? x + 1 : x;
328
- return f.current = F, F;
328
+ return m.current = F, F;
329
329
  });
330
330
  break;
331
331
  case "ArrowUp":
332
332
  N.preventDefault(), $((x) => {
333
333
  const F = x > 0 ? x - 1 : -1;
334
- return f.current = F, F;
334
+ return m.current = F, F;
335
335
  });
336
336
  break;
337
337
  case "Enter":
338
- N.preventDefault(), f.current >= 0 && f.current < S.current.length && E(S.current[f.current]);
338
+ N.preventDefault(), m.current >= 0 && m.current < S.current.length && C(S.current[m.current]);
339
339
  break;
340
340
  case "Escape":
341
341
  N.preventDefault(), y(!1), _.current = !1;
@@ -351,7 +351,7 @@ function yt({ id: e, label: t, hint: r, error: s, required: n, className: i, onC
351
351
  document.removeEventListener("mousedown", N);
352
352
  };
353
353
  }, [c]);
354
- const E = (N) => {
354
+ const C = (N) => {
355
355
  A.current && A.current.getDetails(
356
356
  {
357
357
  placeId: N.place_id,
@@ -359,27 +359,27 @@ function yt({ id: e, label: t, hint: r, error: s, required: n, className: i, onC
359
359
  },
360
360
  (x, F) => {
361
361
  if (F === google.maps.places.PlacesServiceStatus.OK && x) {
362
- const K = x.formatted_address || "";
363
- T(K), y(!1), p([]), _.current = !1;
364
- const Z = ht(x);
365
- l?.(K, Z), a?.(x);
362
+ const z = x.formatted_address || "";
363
+ T(z), y(!1), p([]), _.current = !1;
364
+ const Z = yt(x);
365
+ a?.(z, Z), o?.(x);
366
366
  }
367
367
  }
368
368
  );
369
369
  };
370
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ b("div", { className: "relative", children: [
371
- /* @__PURE__ */ o(
370
+ return /* @__PURE__ */ l(U, { id: e, label: t, hint: r, error: i, required: n, className: s, children: /* @__PURE__ */ b("div", { className: "relative", children: [
371
+ /* @__PURE__ */ l(
372
372
  "input",
373
373
  {
374
374
  ref: k,
375
375
  id: e,
376
376
  type: "text",
377
- className: `form-input ${s ? "input-error" : ""}`,
378
- value: C,
377
+ className: `form-input ${i ? "input-error" : ""}`,
378
+ value: E,
379
379
  onChange: h,
380
380
  onKeyDown: B,
381
- "aria-invalid": !!s,
382
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
381
+ "aria-invalid": !!i,
382
+ "aria-describedby": [r ? `${e}-hint` : null, i ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
383
383
  required: n,
384
384
  autoComplete: "street-address",
385
385
  placeholder: v.placeholder || "Enter an address",
@@ -387,8 +387,8 @@ function yt({ id: e, label: t, hint: r, error: s, required: n, className: i, onC
387
387
  ...v
388
388
  }
389
389
  ),
390
- R && /* @__PURE__ */ o("p", { className: "mt-1 text-sm text-slate-500", children: "Loading address suggestions..." }),
391
- c && d.length > 0 && /* @__PURE__ */ o(
390
+ R && /* @__PURE__ */ l("p", { className: "mt-1 text-sm text-slate-500", children: "Loading address suggestions..." }),
391
+ c && d.length > 0 && /* @__PURE__ */ l(
392
392
  "div",
393
393
  {
394
394
  ref: I,
@@ -400,11 +400,11 @@ function yt({ id: e, label: t, hint: r, error: s, required: n, className: i, onC
400
400
  className: `px-4 py-3 cursor-pointer transition-colors ${x === w ? "bg-blue-50 text-slate-900" : "bg-white text-slate-900 hover:bg-slate-50"} ${x < d.length - 1 ? "border-b border-slate-100" : ""}`,
401
401
  role: "option",
402
402
  "aria-selected": x === w,
403
- onClick: () => E(N),
403
+ onClick: () => C(N),
404
404
  onMouseEnter: () => $(x),
405
405
  children: [
406
- /* @__PURE__ */ o("div", { className: "font-medium text-slate-900", children: N.structured_formatting.main_text }),
407
- N.structured_formatting.secondary_text && /* @__PURE__ */ o("div", { className: "text-sm text-slate-500 mt-0.5", children: N.structured_formatting.secondary_text })
406
+ /* @__PURE__ */ l("div", { className: "font-medium text-slate-900", children: N.structured_formatting.main_text }),
407
+ N.structured_formatting.secondary_text && /* @__PURE__ */ l("div", { className: "text-sm text-slate-500 mt-0.5", children: N.structured_formatting.secondary_text })
408
408
  ]
409
409
  },
410
410
  N.place_id
@@ -420,20 +420,20 @@ function Oe(e, t) {
420
420
  return e.key ?? `${Ne(e.question)}-${t}`;
421
421
  }
422
422
  function ge(e, t) {
423
- const r = {}, s = (n) => n == null || typeof n == "string" && n.trim() === "";
424
- return e.forEach((n, i) => {
425
- const l = Oe(n, i), a = t[l];
423
+ const r = {}, i = (n) => n == null || typeof n == "string" && n.trim() === "";
424
+ return e.forEach((n, s) => {
425
+ const a = Oe(n, s), o = t[a];
426
426
  if (n.required)
427
427
  switch (n.inputType) {
428
428
  case "checkbox":
429
- a !== !0 && (r[l] = "Required");
429
+ o !== !0 && (r[a] = "Required");
430
430
  break;
431
431
  case "radio":
432
432
  case "select":
433
- s(a) && (r[l] = "Required");
433
+ i(o) && (r[a] = "Required");
434
434
  break;
435
435
  case "number":
436
- (a == null || typeof a == "string" && a.trim() === "") && (r[l] = "Required");
436
+ (o == null || typeof o == "string" && o.trim() === "") && (r[a] = "Required");
437
437
  break;
438
438
  case "date":
439
439
  case "email":
@@ -444,12 +444,12 @@ function ge(e, t) {
444
444
  case "textarea":
445
445
  case "address":
446
446
  default:
447
- s(a) && (r[l] = "Required");
447
+ i(o) && (r[a] = "Required");
448
448
  break;
449
449
  }
450
450
  }), r;
451
451
  }
452
- function bt(e) {
452
+ function vt(e) {
453
453
  if (e === "" || e === null || e === void 0) return;
454
454
  const t = Number(e);
455
455
  return Number.isNaN(t) ? void 0 : t;
@@ -466,12 +466,12 @@ function je(e) {
466
466
  return null;
467
467
  }
468
468
  function Me(e, t) {
469
- const r = Qe(e), s = Qe(t);
470
- if (r != null && s != null) return r - s;
471
- const n = je(e), i = je(t);
472
- return n != null && i != null ? n - i : e == null || t == null ? null : String(e).localeCompare(String(t));
469
+ const r = Qe(e), i = Qe(t);
470
+ if (r != null && i != null) return r - i;
471
+ const n = je(e), s = je(t);
472
+ return n != null && s != null ? n - s : e == null || t == null ? null : String(e).localeCompare(String(t));
473
473
  }
474
- function vt(e, t) {
474
+ function wt(e, t) {
475
475
  return Array.isArray(e) ? e.some((r) => r === t) : typeof e == "string" ? t != null && e.includes(String(t)) : !1;
476
476
  }
477
477
  function oe(e, t, r) {
@@ -479,15 +479,15 @@ function oe(e, t, r) {
479
479
  case "equals":
480
480
  return e === r;
481
481
  case "lessThan": {
482
- const s = Me(e, r);
483
- return s != null && s < 0;
482
+ const i = Me(e, r);
483
+ return i != null && i < 0;
484
484
  }
485
485
  case "greaterThan": {
486
- const s = Me(e, r);
487
- return s != null && s > 0;
486
+ const i = Me(e, r);
487
+ return i != null && i > 0;
488
488
  }
489
489
  case "contains":
490
- return vt(e, r);
490
+ return wt(e, r);
491
491
  case "startsWith":
492
492
  return e != null && r != null && String(e).startsWith(String(r));
493
493
  case "endsWith":
@@ -497,107 +497,107 @@ function oe(e, t, r) {
497
497
  }
498
498
  }
499
499
  function ke(e, t) {
500
- return t.reduce((r, s) => r?.[s], e);
500
+ return t.reduce((r, i) => r?.[i], e);
501
501
  }
502
502
  function X(e, t, r) {
503
503
  if (t.length === 0) return e;
504
- const [s, ...n] = t;
504
+ const [i, ...n] = t;
505
505
  if (n.length === 0) {
506
- if (typeof s == "number") {
506
+ if (typeof i == "number") {
507
507
  const v = (Array.isArray(e) ? e : []).slice();
508
- return v[s] = r, v;
508
+ return v[i] = r, v;
509
509
  }
510
- return { ...e, [s]: r };
510
+ return { ...e, [i]: r };
511
511
  }
512
- const i = e?.[s], l = typeof n[0] == "number" ? Array.isArray(i) ? i : [] : i && typeof i == "object" ? i : {}, a = X(l, n, r);
513
- if (typeof s == "number") {
512
+ const s = e?.[i], a = typeof n[0] == "number" ? Array.isArray(s) ? s : [] : s && typeof s == "object" ? s : {}, o = X(a, n, r);
513
+ if (typeof i == "number") {
514
514
  const v = (Array.isArray(e) ? e : []).slice();
515
- return v[s] = a, v;
515
+ return v[i] = o, v;
516
516
  }
517
- return { ...e, [s]: a };
517
+ return { ...e, [i]: o };
518
518
  }
519
519
  function le(e, t, r) {
520
520
  return ke(e, [...t ?? [], r]);
521
521
  }
522
- function wt(e, t, r, s) {
523
- return X(e, [...t ?? [], r], s);
522
+ function xt(e, t, r, i) {
523
+ return X(e, [...t ?? [], r], i);
524
524
  }
525
- const xt = "__items", fe = (e) => `${e}${xt}`;
526
- function Nt(e) {
527
- const t = (r, s) => r.map((n, i) => {
528
- const l = s.length ? s.join("__") : "root", a = n.key ?? `${l}__q${i}_${String(n.question).slice(0, 24).replace(/\W+/g, "-") || "field"}`, v = (n.conditionals ?? []).map((k, m) => {
529
- const A = k.conditionalQuestions ? t(k.conditionalQuestions, [...s, `${a}__c${m}`]) : void 0;
525
+ const Nt = "__items", fe = (e) => `${e}${Nt}`;
526
+ function kt(e) {
527
+ const t = (r, i) => r.map((n, s) => {
528
+ const a = i.length ? i.join("__") : "root", o = n.key ?? `${a}__q${s}_${String(n.question).slice(0, 24).replace(/\W+/g, "-") || "field"}`, v = (n.conditionals ?? []).map((k, f) => {
529
+ const A = k.conditionalQuestions ? t(k.conditionalQuestions, [...i, `${o}__c${f}`]) : void 0;
530
530
  return { ...k, conditionalQuestions: A };
531
531
  });
532
- return { ...n, key: a, conditionals: v };
532
+ return { ...n, key: o, conditionals: v };
533
533
  });
534
534
  return t(e, []);
535
535
  }
536
536
  function J(e) {
537
537
  return e == null ? "" : typeof e == "string" ? e : String(e);
538
538
  }
539
- function kt(e) {
539
+ function St(e) {
540
540
  return e == null ? "" : typeof e == "number" && Number.isFinite(e) || typeof e == "string" ? e : "";
541
541
  }
542
- function St(e) {
542
+ function $t(e) {
543
543
  return e == null ? "" : typeof e == "string" || typeof e == "number" ? e : String(e);
544
544
  }
545
- function $t({
545
+ function At({
546
546
  questions: e,
547
547
  initialValues: t,
548
548
  controlledValues: r,
549
- onChangeValues: s,
549
+ onChangeValues: i,
550
550
  onSubmit: n
551
551
  }) {
552
- const i = ie(() => Nt(e), [e]), l = ie(() => {
552
+ const s = se(() => kt(e), [e]), a = se(() => {
553
553
  const d = {};
554
554
  return t && Object.assign(d, t), d;
555
- }, [t]), [a, u] = M(l);
555
+ }, [t]), [o, u] = M(a);
556
556
  D(() => {
557
- u(l);
558
- }, [l]);
559
- const [v, k] = M({}), m = ie(
560
- () => ({ ...v, ...r ?? a }),
561
- [v, r, a]
557
+ u(a);
558
+ }, [a]);
559
+ const [v, k] = M({}), f = se(
560
+ () => ({ ...v, ...r ?? o }),
561
+ [v, r, o]
562
562
  );
563
563
  D(() => {
564
564
  r && k((d) => ({ ...d, ...r }));
565
565
  }, [r]);
566
566
  const [A, I] = M({});
567
567
  function R(d, p) {
568
- const c = d.key, y = d.question, w = le(m, p, c), $ = A[c], S = (_) => {
569
- let f = wt(m, p, c, _);
568
+ const c = d.key, y = d.question, w = le(f, p, c), $ = A[c], S = (_) => {
569
+ let m = xt(f, p, c, _);
570
570
  if (d.inputType === "radio" && d.conditionals) {
571
571
  const g = d.conditionals ?? [];
572
572
  for (const h of g) {
573
- const B = le(m, p, c), E = oe(B, h.conditionalType, h.conditionalValue), N = oe(_, h.conditionalType, h.conditionalValue);
574
- if (E && !N && h.conditionalQuestionsAllowMultiple) {
573
+ const B = le(f, p, c), C = oe(B, h.conditionalType, h.conditionalValue), N = oe(_, h.conditionalType, h.conditionalValue);
574
+ if (C && !N && h.conditionalQuestionsAllowMultiple) {
575
575
  const x = h.conditionalQuestions ?? [];
576
576
  if (x.length > 0) {
577
577
  const F = fe(c);
578
- f = X(f, [...p ?? [], F], []);
579
- const K = (Z, q) => {
580
- Z.forEach((L) => {
581
- (L.conditionals ?? []).forEach((z) => {
582
- if (z.conditionalQuestionsAllowMultiple) {
583
- const ee = fe(L.key);
584
- f = X(f, [...q, ee], []);
578
+ m = X(m, [...p ?? [], F], []);
579
+ const z = (Z, q) => {
580
+ Z.forEach((W) => {
581
+ (W.conditionals ?? []).forEach((K) => {
582
+ if (K.conditionalQuestionsAllowMultiple) {
583
+ const ee = fe(W.key);
584
+ m = X(m, [...q, ee], []);
585
585
  }
586
- const W = z.conditionalQuestions ?? [];
587
- W.length > 0 && K(W, q);
586
+ const P = K.conditionalQuestions ?? [];
587
+ P.length > 0 && z(P, q);
588
588
  });
589
589
  });
590
590
  };
591
- K(x, [...p ?? [], F]);
591
+ z(x, [...p ?? [], F]);
592
592
  }
593
593
  }
594
594
  }
595
595
  }
596
- r && s ? s(f) : u(f), k(f);
596
+ r && i ? i(m) : u(m), k(m);
597
597
  };
598
598
  switch (d.inputType) {
599
599
  case "text":
600
- return /* @__PURE__ */ o(
600
+ return /* @__PURE__ */ l(
601
601
  st,
602
602
  {
603
603
  id: c,
@@ -610,8 +610,8 @@ function $t({
610
610
  c
611
611
  );
612
612
  case "email":
613
- return /* @__PURE__ */ o(
614
- at,
613
+ return /* @__PURE__ */ l(
614
+ ot,
615
615
  {
616
616
  id: c,
617
617
  label: y,
@@ -623,8 +623,8 @@ function $t({
623
623
  c
624
624
  );
625
625
  case "password":
626
- return /* @__PURE__ */ o(
627
- ct,
626
+ return /* @__PURE__ */ l(
627
+ dt,
628
628
  {
629
629
  id: c,
630
630
  label: y,
@@ -636,9 +636,9 @@ function $t({
636
636
  c
637
637
  );
638
638
  case "tel":
639
- return /* @__PURE__ */ b(We, { children: [
640
- /* @__PURE__ */ o(
641
- ot,
639
+ return /* @__PURE__ */ b(Pe, { children: [
640
+ /* @__PURE__ */ l(
641
+ lt,
642
642
  {
643
643
  id: c,
644
644
  label: y,
@@ -650,23 +650,23 @@ function $t({
650
650
  c
651
651
  ),
652
652
  c === "phone" && /* @__PURE__ */ b("div", { className: "mt-3 text-xs text-slate-600 space-y-1", children: [
653
- /* @__PURE__ */ o("p", { children: "By entering your phone number, you agree to receive a one-time SMS from Credify Insurance with a verification code." }),
654
- /* @__PURE__ */ o("p", { children: "Message & data rates may apply. One message per request." }),
653
+ /* @__PURE__ */ l("p", { children: "By entering your phone number, you agree to receive a one-time SMS from Credify Insurance with a verification code." }),
654
+ /* @__PURE__ */ l("p", { children: "Message & data rates may apply. One message per request." }),
655
655
  /* @__PURE__ */ b("p", { children: [
656
656
  "See our",
657
657
  " ",
658
- /* @__PURE__ */ o("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Privacy Policy" }),
658
+ /* @__PURE__ */ l("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Privacy Policy" }),
659
659
  " ",
660
660
  "and",
661
661
  " ",
662
- /* @__PURE__ */ o("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Terms of Service" }),
662
+ /* @__PURE__ */ l("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Terms of Service" }),
663
663
  "."
664
664
  ] })
665
665
  ] })
666
666
  ] });
667
667
  case "url":
668
- return /* @__PURE__ */ o(
669
- lt,
668
+ return /* @__PURE__ */ l(
669
+ ct,
670
670
  {
671
671
  id: c,
672
672
  label: y,
@@ -678,21 +678,21 @@ function $t({
678
678
  c
679
679
  );
680
680
  case "number":
681
- return /* @__PURE__ */ o(
682
- it,
681
+ return /* @__PURE__ */ l(
682
+ at,
683
683
  {
684
684
  id: c,
685
685
  label: y,
686
- value: kt(w),
687
- onChange: (_) => S(bt(_.currentTarget.value)),
686
+ value: St(w),
687
+ onChange: (_) => S(vt(_.currentTarget.value)),
688
688
  "aria-required": d.required || void 0,
689
689
  error: $
690
690
  },
691
691
  c
692
692
  );
693
693
  case "textarea":
694
- return /* @__PURE__ */ o(
695
- dt,
694
+ return /* @__PURE__ */ l(
695
+ ut,
696
696
  {
697
697
  id: c,
698
698
  label: y,
@@ -705,8 +705,8 @@ function $t({
705
705
  c
706
706
  );
707
707
  case "date":
708
- return /* @__PURE__ */ o(
709
- ut,
708
+ return /* @__PURE__ */ l(
709
+ _t,
710
710
  {
711
711
  id: c,
712
712
  label: y,
@@ -723,29 +723,29 @@ function $t({
723
723
  return /* @__PURE__ */ b("div", { className: "space-y-2", children: [
724
724
  /* @__PURE__ */ b("div", { className: "form-label", children: [
725
725
  y,
726
- d.required && /* @__PURE__ */ o("span", { className: "text-red-600 ml-1", children: "*" })
726
+ d.required && /* @__PURE__ */ l("span", { className: "text-red-600 ml-1", children: "*" })
727
727
  ] }),
728
- /* @__PURE__ */ o("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: d.options.map((f) => {
729
- const g = `${c}-${Ne(f)}`, h = _.includes(f);
730
- return /* @__PURE__ */ o(
728
+ /* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: d.options.map((m) => {
729
+ const g = `${c}-${Ne(m)}`, h = _.includes(m);
730
+ return /* @__PURE__ */ l(
731
731
  Re,
732
732
  {
733
733
  id: g,
734
- label: f,
734
+ label: m,
735
735
  checked: h,
736
736
  onChange: (B) => {
737
- const E = new Set(_);
738
- B.currentTarget.checked ? E.add(f) : E.delete(f), S(Array.from(E));
737
+ const C = new Set(_);
738
+ B.currentTarget.checked ? C.add(m) : C.delete(m), S(Array.from(C));
739
739
  },
740
740
  "aria-required": d.required || void 0
741
741
  },
742
742
  g
743
743
  );
744
744
  }) }),
745
- $ && /* @__PURE__ */ o("p", { className: "mt-1 text-sm text-red-600", children: $ })
745
+ $ && /* @__PURE__ */ l("p", { className: "mt-1 text-sm text-red-600", children: $ })
746
746
  ] }, c);
747
747
  }
748
- return /* @__PURE__ */ o(
748
+ return /* @__PURE__ */ l(
749
749
  Re,
750
750
  {
751
751
  id: c,
@@ -758,29 +758,29 @@ function $t({
758
758
  );
759
759
  }
760
760
  case "radio": {
761
- const _ = d.options ?? [], f = p && p.length > 0 ? `${c}__${p.join("__")}` : c;
762
- return /* @__PURE__ */ o(ft, { legend: y, legendClassName: d.required ? "legend-required" : void 0, children: _.map((g) => /* @__PURE__ */ o(_t, { name: f, value: g, checked: w === g, onChange: () => S(g), children: g }, `${c}-${Ne(g)}`)) }, c);
761
+ const _ = d.options ?? [], m = p && p.length > 0 ? `${c}__${p.join("__")}` : c;
762
+ return /* @__PURE__ */ l(mt, { legend: y, legendClassName: d.required ? "legend-required" : void 0, children: _.map((g) => /* @__PURE__ */ l(ft, { name: m, value: g, checked: w === g, onChange: () => S(g), children: g }, `${c}-${Ne(g)}`)) }, c);
763
763
  }
764
764
  case "select": {
765
765
  let _ = d.options ?? [];
766
- return c === "quote_vehicle_id" && (_ = r?.vehicles__items?.map((f) => f.vin) ?? []), /* @__PURE__ */ o(
767
- mt,
766
+ return c === "quote_vehicle_id" && (_ = r?.vehicles__items?.map((m) => m.vin) ?? []), /* @__PURE__ */ l(
767
+ pt,
768
768
  {
769
769
  id: c,
770
770
  label: y,
771
771
  "aria-required": d.required || void 0,
772
772
  error: $,
773
- value: St(w),
774
- onChange: (f) => S(f.currentTarget.value),
773
+ value: $t(w),
774
+ onChange: (m) => S(m.currentTarget.value),
775
775
  placeholder: "Select an option",
776
- options: _.map((f) => ({ value: f, label: f }))
776
+ options: _.map((m) => ({ value: m, label: m }))
777
777
  },
778
778
  c
779
779
  );
780
780
  }
781
781
  case "address":
782
- return /* @__PURE__ */ o(
783
- yt,
782
+ return /* @__PURE__ */ l(
783
+ bt,
784
784
  {
785
785
  id: c,
786
786
  label: y,
@@ -798,110 +798,110 @@ function $t({
798
798
  function Q(d, p) {
799
799
  return d.map((c, y) => {
800
800
  const w = String(c.key), $ = R(c, p), S = c.conditionals ?? [];
801
- if (!S.length) return /* @__PURE__ */ o("div", { children: $ }, `wrap-${w}-${y}`);
802
- const _ = le(m, p, w), f = S.filter((h) => oe(_, h.conditionalType, h.conditionalValue)), g = f.length > 1 && !f.some((h) => h.conditionalQuestionsAllowMultiple) ? f.slice(0, 1) : f;
801
+ if (!S.length) return /* @__PURE__ */ l("div", { children: $ }, `wrap-${w}-${y}`);
802
+ const _ = le(f, p, w), m = S.filter((h) => oe(_, h.conditionalType, h.conditionalValue)), g = m.length > 1 && !m.some((h) => h.conditionalQuestionsAllowMultiple) ? m.slice(0, 1) : m;
803
803
  return /* @__PURE__ */ b("div", { children: [
804
804
  $,
805
805
  g.map((h, B) => {
806
- const E = h.conditionalQuestions ?? [];
807
- if (!E.length) return null;
806
+ const C = h.conditionalQuestions ?? [];
807
+ if (!C.length) return null;
808
808
  if (!h.conditionalQuestionsAllowMultiple)
809
- return /* @__PURE__ */ o("div", { className: "mt-3", children: Q(E, p) }, `branch-${w}-${B}`);
810
- const N = fe(w), x = ke(m, [...p ?? [], N]) ?? [], F = Math.max(1, x.length || 1), K = () => {
811
- const L = X(m, [...p ?? [], N, x.length], {});
812
- r && s ? s(L) : u(L), k(L);
809
+ return /* @__PURE__ */ l("div", { className: "mt-3", children: Q(C, p) }, `branch-${w}-${B}`);
810
+ const N = fe(w), x = ke(f, [...p ?? [], N]) ?? [], F = Math.max(1, x.length || 1), z = () => {
811
+ const W = X(f, [...p ?? [], N, x.length], {});
812
+ r && i ? i(W) : u(W), k(W);
813
813
  }, Z = () => {
814
- const L = x.slice(0, Math.max(0, x.length - 1)), V = X(m, [...p ?? [], N], L);
815
- r && s ? s(V) : u(V), k(V);
814
+ const W = x.slice(0, Math.max(0, x.length - 1)), V = X(f, [...p ?? [], N], W);
815
+ r && i ? i(V) : u(V), k(V);
816
816
  }, q = `${w}__c${B}`;
817
817
  return /* @__PURE__ */ b("div", { className: "mt-3", children: [
818
818
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-2", children: [
819
- /* @__PURE__ */ o("div", { className: "text-sm font-medium opacity-75", children: "Add one or more entries" }),
819
+ /* @__PURE__ */ l("div", { className: "text-sm font-medium opacity-75", children: "Add one or more entries" }),
820
820
  /* @__PURE__ */ b("div", { className: "space-x-2", children: [
821
- /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: K, children: "Add another" }),
822
- F > 1 && /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: Z, children: "Remove last" })
821
+ /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: z, children: "Add another" }),
822
+ F > 1 && /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: Z, children: "Remove last" })
823
823
  ] })
824
824
  ] }),
825
- Array.from({ length: F }).map((L, V) => {
826
- const z = [...p ?? [], N, V], W = `${q}__i${V}`;
825
+ Array.from({ length: F }).map((W, V) => {
826
+ const K = [...p ?? [], N, V], P = `${q}__i${V}`;
827
827
  return /* @__PURE__ */ b("div", { className: "rounded-lg border p-3 mb-3", children: [
828
828
  /* @__PURE__ */ b("div", { className: "text-sm font-semibold mb-2", children: [
829
829
  "Entry #",
830
830
  V + 1
831
831
  ] }),
832
- E.map((ee) => /* @__PURE__ */ b("div", { className: "mt-3", children: [
833
- R(ee, z),
832
+ C.map((ee) => /* @__PURE__ */ b("div", { className: "mt-3", children: [
833
+ R(ee, K),
834
834
  (() => {
835
835
  const Te = ee.conditionals ?? [];
836
836
  if (!Te.length) return null;
837
- const Xe = le(m, z, ee.key), de = Te.filter((te) => oe(Xe, te.conditionalType, te.conditionalValue));
837
+ const Ze = le(f, K, ee.key), de = Te.filter((te) => oe(Ze, te.conditionalType, te.conditionalValue));
838
838
  return (de.length > 1 && !de.some((te) => te.conditionalQuestionsAllowMultiple) ? de.slice(0, 1) : de).map((te, he) => {
839
839
  const ye = te.conditionalQuestions ?? [];
840
840
  if (!ye.length) return null;
841
841
  if (!te.conditionalQuestionsAllowMultiple)
842
- return /* @__PURE__ */ o("div", { className: "mt-3", children: Q(ye, z) }, `nested-${W}-${he}`);
843
- const ue = fe(ee.key), _e = ke(m, [...z, ue]) ?? [], Ie = Math.max(1, _e.length || 1), Ze = () => {
844
- const se = X(m, [...z, ue, _e.length], {});
845
- r && s ? s(se) : u(se), k(se);
846
- }, qe = () => {
847
- const se = _e.slice(0, Math.max(0, _e.length - 1)), ne = X(m, [...z, ue], se);
848
- r && s ? s(ne) : u(ne), k(ne);
842
+ return /* @__PURE__ */ l("div", { className: "mt-3", children: Q(ye, K) }, `nested-${P}-${he}`);
843
+ const ue = fe(ee.key), _e = ke(f, [...K, ue]) ?? [], Ie = Math.max(1, _e.length || 1), qe = () => {
844
+ const ie = X(f, [...K, ue, _e.length], {});
845
+ r && i ? i(ie) : u(ie), k(ie);
846
+ }, et = () => {
847
+ const ie = _e.slice(0, Math.max(0, _e.length - 1)), ne = X(f, [...K, ue], ie);
848
+ r && i ? i(ne) : u(ne), k(ne);
849
849
  };
850
850
  return /* @__PURE__ */ b("div", { className: "mt-3", children: [
851
851
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-2", children: [
852
- /* @__PURE__ */ o("div", { className: "text-sm font-medium opacity-75", children: "Add one or more entries" }),
852
+ /* @__PURE__ */ l("div", { className: "text-sm font-medium opacity-75", children: "Add one or more entries" }),
853
853
  /* @__PURE__ */ b("div", { className: "space-x-2", children: [
854
- /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: Ze, children: "Add another" }),
855
- Ie > 1 && /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: qe, children: "Remove last" })
854
+ /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: qe, children: "Add another" }),
855
+ Ie > 1 && /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: et, children: "Remove last" })
856
856
  ] })
857
857
  ] }),
858
- Array.from({ length: Ie }).map((se, ne) => {
859
- const et = [...z, ue, ne];
858
+ Array.from({ length: Ie }).map((ie, ne) => {
859
+ const tt = [...K, ue, ne];
860
860
  return /* @__PURE__ */ b("div", { className: "rounded-lg border p-3 mb-3", children: [
861
861
  /* @__PURE__ */ b("div", { className: "text-sm font-semibold mb-2", children: [
862
862
  "Entry #",
863
863
  ne + 1
864
864
  ] }),
865
- Q(ye, et)
866
- ] }, `nested-item-${W}-${he}-${ne}`);
865
+ Q(ye, tt)
866
+ ] }, `nested-item-${P}-${he}-${ne}`);
867
867
  })
868
- ] }, `nested-repeat-${W}-${he}`);
868
+ ] }, `nested-repeat-${P}-${he}`);
869
869
  });
870
870
  })()
871
- ] }, `${W}-${String(ee.key)}`))
872
- ] }, `group-${W}`);
871
+ ] }, `${P}-${String(ee.key)}`))
872
+ ] }, `group-${P}`);
873
873
  })
874
874
  ] }, `branch-${w}-${B}`);
875
875
  })
876
876
  ] }, `wrap-${w}-${y}`);
877
877
  });
878
878
  }
879
- const C = ie(() => {
879
+ const E = se(() => {
880
880
  const d = [], p = (c, y) => {
881
881
  c.forEach((w) => {
882
882
  d.push(w);
883
883
  const $ = String(w.key), S = w.conditionals ?? [];
884
884
  if (!S.length) return;
885
- const _ = le(m, y, $), f = S.filter((h) => oe(_, h.conditionalType, h.conditionalValue));
886
- (f.length > 1 && !f.some((h) => h.conditionalQuestionsAllowMultiple) ? f.slice(0, 1) : f).forEach((h) => {
885
+ const _ = le(f, y, $), m = S.filter((h) => oe(_, h.conditionalType, h.conditionalValue));
886
+ (m.length > 1 && !m.some((h) => h.conditionalQuestionsAllowMultiple) ? m.slice(0, 1) : m).forEach((h) => {
887
887
  const B = h.conditionalQuestions ?? [];
888
888
  B.length && (h.conditionalQuestionsAllowMultiple || p(B, y));
889
889
  });
890
890
  });
891
891
  };
892
- return p(i), d;
893
- }, [i, m]);
892
+ return p(s), d;
893
+ }, [s, f]);
894
894
  function T(d) {
895
895
  d.preventDefault();
896
- const p = ge(C, m);
896
+ const p = ge(E, f);
897
897
  if (I(p), Object.keys(p).length > 0) {
898
- const c = C.findIndex((y) => p[y.key]);
899
- c >= 0 && document.getElementById(C[c].key)?.focus();
898
+ const c = E.findIndex((y) => p[y.key]);
899
+ c >= 0 && document.getElementById(E[c].key)?.focus();
900
900
  return;
901
901
  }
902
- n(m);
902
+ n(f);
903
903
  }
904
- return /* @__PURE__ */ o("form", { className: "space-y-6 px-1", onSubmit: T, noValidate: !0, children: Q(i) });
904
+ return /* @__PURE__ */ l("form", { className: "space-y-6 px-1", onSubmit: T, noValidate: !0, children: Q(s) });
905
905
  }
906
906
  function Be(e) {
907
907
  return typeof e == "number" && Number.isFinite(e) ? e : typeof e == "string" && e.trim() !== "" && !Number.isNaN(Number(e)) ? Number(e) : null;
@@ -915,28 +915,28 @@ function Fe(e) {
915
915
  return null;
916
916
  }
917
917
  function De(e, t) {
918
- const r = Be(e), s = Be(t);
919
- if (r != null && s != null) return r - s;
920
- const n = Fe(e), i = Fe(t);
921
- return n != null && i != null ? n - i : e == null || t == null ? null : String(e).localeCompare(String(t));
918
+ const r = Be(e), i = Be(t);
919
+ if (r != null && i != null) return r - i;
920
+ const n = Fe(e), s = Fe(t);
921
+ return n != null && s != null ? n - s : e == null || t == null ? null : String(e).localeCompare(String(t));
922
922
  }
923
- function At(e, t) {
923
+ function Et(e, t) {
924
924
  return Array.isArray(e) ? e.some((r) => r === t) : typeof e == "string" ? t != null && e.includes(String(t)) : !1;
925
925
  }
926
- function Pe(e, t, r) {
926
+ function Ue(e, t, r) {
927
927
  switch (t) {
928
928
  case "equals":
929
929
  return e === r;
930
930
  case "lessThan": {
931
- const s = De(e, r);
932
- return s != null && s < 0;
931
+ const i = De(e, r);
932
+ return i != null && i < 0;
933
933
  }
934
934
  case "greaterThan": {
935
- const s = De(e, r);
936
- return s != null && s > 0;
935
+ const i = De(e, r);
936
+ return i != null && i > 0;
937
937
  }
938
938
  case "contains":
939
- return At(e, r);
939
+ return Et(e, r);
940
940
  case "startsWith":
941
941
  return e != null && r != null && String(e).startsWith(String(r));
942
942
  case "endsWith":
@@ -945,167 +945,211 @@ function Pe(e, t, r) {
945
945
  return !1;
946
946
  }
947
947
  }
948
- function Ke(e, t) {
948
+ function ze(e, t) {
949
949
  const r = [];
950
950
  return ((n) => {
951
- n.forEach((i) => {
952
- r.push(i);
953
- const l = String(i.key), a = t[l], u = i.conditionals ?? [];
951
+ n.forEach((s) => {
952
+ r.push(s);
953
+ const a = String(s.key), o = t[a], u = s.conditionals ?? [];
954
954
  if (!u.length) return;
955
- const v = u.filter((m) => Pe(a, m.conditionalType, m.conditionalValue));
956
- (v.length > 1 && !v.some((m) => m.conditionalQuestionsAllowMultiple) ? v.slice(0, 1) : v).forEach((m) => {
957
- const A = m.conditionalQuestions ?? [];
958
- A.length && (m.conditionalQuestionsAllowMultiple || A.forEach((I) => r.push(I)));
955
+ const v = u.filter((f) => Ue(o, f.conditionalType, f.conditionalValue));
956
+ (v.length > 1 && !v.some((f) => f.conditionalQuestionsAllowMultiple) ? v.slice(0, 1) : v).forEach((f) => {
957
+ const A = f.conditionalQuestions ?? [];
958
+ A.length && (f.conditionalQuestionsAllowMultiple || A.forEach((I) => r.push(I)));
959
959
  });
960
960
  });
961
961
  })(e), r;
962
962
  }
963
- const Ue = "__items", Ve = (e) => `${e}${Ue}`;
963
+ const Ve = "__items", Ge = (e) => `${e}${Ve}`;
964
964
  function Se(e, t) {
965
965
  for (const r of e) {
966
- const s = String(r.key), n = t[s], i = r.conditionals ?? [];
967
- if (!i.length) continue;
968
- const l = i.filter((u) => Pe(n, u.conditionalType, u.conditionalValue)), a = l.length > 1 && !l.some((u) => u.conditionalQuestionsAllowMultiple) ? l.slice(0, 1) : l;
969
- for (const u of a) {
966
+ const i = String(r.key), n = t[i], s = r.conditionals ?? [];
967
+ if (!s.length) continue;
968
+ const a = s.filter((u) => Ue(n, u.conditionalType, u.conditionalValue)), o = a.length > 1 && !a.some((u) => u.conditionalQuestionsAllowMultiple) ? a.slice(0, 1) : a;
969
+ for (const u of o) {
970
970
  const v = u.conditionalQuestions ?? [];
971
971
  if (!v.length) continue;
972
972
  if (!u.conditionalQuestionsAllowMultiple) {
973
973
  if (Se(v, t)) return !0;
974
974
  continue;
975
975
  }
976
- const k = t[Ve(s)] ?? [];
976
+ const k = t[Ge(i)] ?? [];
977
977
  if (k.length === 0) return !0;
978
- for (const m of k) {
979
- const A = ge(v, m);
980
- if (Object.values(A).some(Boolean) || Se(v, m)) return !0;
978
+ for (const f of k) {
979
+ const A = ge(v, f);
980
+ if (Object.values(A).some(Boolean) || Se(v, f)) return !0;
981
981
  }
982
982
  }
983
983
  }
984
984
  return !1;
985
985
  }
986
- function ze(e, t) {
986
+ function Ke(e, t) {
987
987
  return Se(e, t);
988
988
  }
989
989
  function Ct({
990
+ active: e,
991
+ stagesLength: t,
992
+ disableNext: r,
993
+ isSubmitting: i,
994
+ onGoNext: n
995
+ }) {
996
+ const s = L(null);
997
+ return D(() => {
998
+ const a = s.current;
999
+ a && (a.style.setProperty("display", "flex", "important"), a.style.setProperty("visibility", "visible", "important"), a.style.setProperty("opacity", r ? "0.5" : "1", "important"), a.style.setProperty("min-height", "3rem", "important"), a.style.setProperty("clip-path", "none", "important"), a.style.setProperty("overflow", "visible", "important"), a.style.setProperty("position", "relative", "important"), a.style.setProperty("pointer-events", "auto", "important"));
1000
+ }, [r]), /* @__PURE__ */ b(
1001
+ "button",
1002
+ {
1003
+ ref: s,
1004
+ type: "button",
1005
+ "data-widget-ctrl": "next",
1006
+ onClick: n,
1007
+ disabled: r,
1008
+ className: [
1009
+ "form-wizard-next-btn",
1010
+ e > 0 ? "" : "w-full",
1011
+ "h-12 rounded-full text-white transition",
1012
+ "disabled:opacity-50 disabled:cursor-not-allowed",
1013
+ "flex items-center justify-center gap-2",
1014
+ r ? "bg-gray-300" : "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"
1015
+ ].join(" "),
1016
+ children: [
1017
+ i && /* @__PURE__ */ b("svg", { className: "animate-spin h-5 w-5 text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
1018
+ /* @__PURE__ */ l("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
1019
+ /* @__PURE__ */ l(
1020
+ "path",
1021
+ {
1022
+ className: "opacity-75",
1023
+ fill: "currentColor",
1024
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
1025
+ }
1026
+ )
1027
+ ] }),
1028
+ e === t - 1 ? "Finish" : "Next"
1029
+ ]
1030
+ }
1031
+ );
1032
+ }
1033
+ function Tt({
990
1034
  stages: e,
991
1035
  onStageComplete: t,
992
1036
  onComplete: r,
993
- initialValues: s,
1037
+ initialValues: i,
994
1038
  initialActive: n
995
1039
  }) {
996
- const [i, l] = M(n ?? 0), [a, u] = M(s ?? {}), [v, k] = M({}), [m, A] = M(!1), [I, R] = M(!1), [Q, C] = M(null), T = O([]), d = Array.isArray(e) && e.length > 0, p = d ? e[Math.min(i, e.length - 1)] : null, c = p?.key ?? null;
1040
+ const [s, a] = M(n ?? 0), [o, u] = M(i ?? {}), [v, k] = M({}), [f, A] = M(!1), [I, R] = M(!1), [Q, E] = M(null), T = L([]), d = Array.isArray(e) && e.length > 0, p = d ? e[Math.min(s, e.length - 1)] : null, c = p?.key ?? null;
997
1041
  D(() => {
998
- n !== void 0 && l(n);
1042
+ n !== void 0 && a(n);
999
1043
  }, [n]), D(() => {
1000
- const g = T.current[i];
1044
+ const g = T.current[s];
1001
1045
  g && g.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
1002
- }, [i]), D(() => {
1003
- s !== void 0 && u(s);
1004
1046
  }, [s]), D(() => {
1047
+ i !== void 0 && u(i);
1048
+ }, [i]), D(() => {
1005
1049
  if (!p || !c) {
1006
- A(!1), C(null);
1050
+ A(!1), E(null);
1007
1051
  return;
1008
1052
  }
1009
1053
  if (v[c]) {
1010
- A(!1), C(null);
1054
+ A(!1), E(null);
1011
1055
  return;
1012
1056
  }
1013
1057
  let g = !1;
1014
- return A(!0), C(null), Promise.resolve(p.loadQuestions()).then((h) => {
1058
+ return A(!0), E(null), Promise.resolve(p.loadQuestions()).then((h) => {
1015
1059
  if (!g) {
1016
1060
  if (!Array.isArray(h)) throw new Error(`loadQuestions("${c}") did not return an array`);
1017
1061
  k((B) => ({ ...B, [c]: h }));
1018
1062
  }
1019
1063
  }).catch((h) => {
1020
- g || C(`Failed to load stage "${p?.title ?? ""}": ${h?.message ?? "Unknown error"}`);
1064
+ g || E(`Failed to load stage "${p?.title ?? ""}": ${h?.message ?? "Unknown error"}`);
1021
1065
  }).finally(() => {
1022
1066
  g || A(!1);
1023
1067
  }), () => {
1024
1068
  g = !0;
1025
1069
  };
1026
1070
  }, [p, c, v]);
1027
- const y = c ? v[c] : void 0, w = ie(() => {
1071
+ const y = c ? v[c] : void 0, w = se(() => {
1028
1072
  if (!y) return {};
1029
1073
  const g = {};
1030
- ((E) => {
1074
+ ((C) => {
1031
1075
  const N = [], x = (F) => {
1032
- F.forEach((K, Z) => {
1033
- const q = Oe(K, Z);
1076
+ F.forEach((z, Z) => {
1077
+ const q = Oe(z, Z);
1034
1078
  N.push(q);
1035
- const L = Ve(q);
1036
- N.push(L), (K.conditionals ?? []).forEach((z) => {
1037
- const W = z.conditionalQuestions ?? [];
1038
- W.length > 0 && x(W);
1079
+ const W = Ge(q);
1080
+ N.push(W), (z.conditionals ?? []).forEach((K) => {
1081
+ const P = K.conditionalQuestions ?? [];
1082
+ P.length > 0 && x(P);
1039
1083
  });
1040
1084
  });
1041
1085
  };
1042
- return x(E), N;
1043
- })(y).forEach((E) => {
1044
- E in a && (g[E] = a[E]);
1086
+ return x(C), N;
1087
+ })(y).forEach((C) => {
1088
+ C in o && (g[C] = o[C]);
1045
1089
  });
1046
- for (const [E, N] of Object.entries(a))
1047
- E.endsWith(Ue) && !(E in g) && (g[E] = N);
1090
+ for (const [C, N] of Object.entries(o))
1091
+ C.endsWith(Ve) && !(C in g) && (g[C] = N);
1048
1092
  return g;
1049
- }, [y, a]), $ = (g) => {
1093
+ }, [y, o]), $ = (g) => {
1050
1094
  u((h) => ({ ...h, ...g }));
1051
1095
  }, S = () => {
1052
- l((g) => g > 0 ? g - 1 : 0), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" });
1096
+ a((g) => g > 0 ? g - 1 : 0), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" });
1053
1097
  }, _ = async () => {
1054
- if (!y || !p || m || Q || I) return;
1055
- const g = Ke(y, a), h = ge(g, a), B = Object.values(h).some(Boolean), E = ze(y, a);
1056
- if (!(B || E)) {
1098
+ if (!y || !p || f || Q || I) return;
1099
+ const g = ze(y, o), h = ge(g, o), B = Object.values(h).some(Boolean), C = Ke(y, o);
1100
+ if (!(B || C)) {
1057
1101
  R(!0);
1058
1102
  try {
1059
- const N = Math.min(i + 1, e.length - 1), x = i >= e.length - 1, { success: F, error: K } = x ? await r(a, c ?? "") : await t(w, c ?? "");
1103
+ const N = Math.min(s + 1, e.length - 1), x = s >= e.length - 1, { success: F, error: z } = x ? await r(o, c ?? "") : await t(w, c ?? "");
1060
1104
  if (!F) {
1061
- C(K ?? "An error occurred");
1105
+ E(z ?? "An error occurred");
1062
1106
  return;
1063
1107
  }
1064
- x || l(N);
1108
+ x || a(N);
1065
1109
  } finally {
1066
1110
  R(!1);
1067
1111
  }
1068
1112
  }
1069
- }, f = ie(() => {
1070
- if (!y || m || Q || I) return !0;
1071
- const g = Ke(y, a), h = ge(g, a), B = Object.values(h).some(Boolean), E = ze(y, a);
1072
- return B || E;
1073
- }, [y, a, m, Q, I]);
1113
+ }, m = se(() => {
1114
+ if (!y || f || Q || I) return !0;
1115
+ const g = ze(y, o), h = ge(g, o), B = Object.values(h).some(Boolean), C = Ke(y, o);
1116
+ return B || C;
1117
+ }, [y, o, f, Q, I]);
1074
1118
  return d ? /* @__PURE__ */ b("div", { className: "space-y-6", children: [
1075
1119
  /* @__PURE__ */ b("div", { className: "form-wizard-steps-header flex items-center justify-between gap-4", children: [
1076
- /* @__PURE__ */ o(
1120
+ /* @__PURE__ */ l(
1077
1121
  "ol",
1078
1122
  {
1079
1123
  className: "form-wizard-steps flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",
1080
1124
  style: { scrollbarWidth: "none", msOverflowStyle: "none" },
1081
1125
  children: e.flatMap((g, h) => [
1082
- /* @__PURE__ */ o(
1126
+ /* @__PURE__ */ l(
1083
1127
  "li",
1084
1128
  {
1085
1129
  ref: (B) => {
1086
1130
  T.current[h] = B;
1087
1131
  },
1088
- className: `form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap flex-shrink-0 ${h < i ? "bg-blue-600 text-white border-blue-600" : h === i ? "border-blue-600 text-blue-600 bg-white" : "border-slate-200 text-slate-600"}`,
1132
+ className: `form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap flex-shrink-0 ${h < s ? "bg-blue-600 text-white border-blue-600" : h === s ? "border-blue-600 text-blue-600 bg-white" : "border-slate-200 text-slate-600"}`,
1089
1133
  children: g.title
1090
1134
  },
1091
1135
  g.key ?? `stage-${h}`
1092
1136
  ),
1093
1137
  ...h < e.length - 1 ? [
1094
- /* @__PURE__ */ o("li", { className: "form-wizard-step-arrow text-slate-400 flex-shrink-0", children: "→" }, `arrow-${g.key ?? h}`)
1138
+ /* @__PURE__ */ l("li", { className: "form-wizard-step-arrow text-slate-400 flex-shrink-0", children: "→" }, `arrow-${g.key ?? h}`)
1095
1139
  ] : []
1096
1140
  ])
1097
1141
  }
1098
1142
  ),
1099
1143
  /* @__PURE__ */ b("div", { className: "form-wizard-step-counter text-sm text-slate-500 flex-shrink-0", children: [
1100
- Math.min(i + 1, e.length),
1144
+ Math.min(s + 1, e.length),
1101
1145
  " / ",
1102
1146
  e.length
1103
1147
  ] })
1104
1148
  ] }),
1105
1149
  /* @__PURE__ */ b("div", { children: [
1106
- m && /* @__PURE__ */ o("div", { className: "text-slate-500", children: "Loading…" }),
1107
- p && /* @__PURE__ */ o(
1108
- $t,
1150
+ f && /* @__PURE__ */ l("div", { className: "text-slate-500", children: "Loading…" }),
1151
+ p && /* @__PURE__ */ l(
1152
+ At,
1109
1153
  {
1110
1154
  questions: y ?? [],
1111
1155
  controlledValues: w,
@@ -1115,9 +1159,9 @@ function Ct({
1115
1159
  p.key
1116
1160
  )
1117
1161
  ] }),
1118
- !m && Q && /* @__PURE__ */ b("div", { className: "text-red-600 text-sm -mt-4", children: [
1119
- /* @__PURE__ */ o("div", { children: Q }),
1120
- p && /* @__PURE__ */ o(
1162
+ !f && Q && /* @__PURE__ */ b("div", { className: "text-red-600 text-sm -mt-4", children: [
1163
+ /* @__PURE__ */ l("div", { children: Q }),
1164
+ p && /* @__PURE__ */ l(
1121
1165
  "button",
1122
1166
  {
1123
1167
  type: "button",
@@ -1133,172 +1177,143 @@ function Ct({
1133
1177
  }
1134
1178
  )
1135
1179
  ] }),
1136
- /* @__PURE__ */ b("div", { className: i > 0 ? "grid grid-cols-2 gap-3" : "", children: [
1137
- i > 0 && /* @__PURE__ */ o(
1180
+ /* @__PURE__ */ b("div", { className: s > 0 ? "grid grid-cols-2 gap-3" : "", children: [
1181
+ s > 0 && /* @__PURE__ */ l(
1138
1182
  "button",
1139
1183
  {
1140
1184
  type: "button",
1141
1185
  onClick: S,
1142
- disabled: m,
1186
+ disabled: f,
1143
1187
  className: "credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",
1144
1188
  children: "Back"
1145
1189
  }
1146
1190
  ),
1147
- /* @__PURE__ */ b(
1148
- "button",
1149
- {
1150
- type: "button",
1151
- onClick: _,
1152
- disabled: f,
1153
- className: [
1154
- "form-wizard-next-btn",
1155
- i > 0 ? "" : "w-full",
1156
- "h-12 rounded-full text-white transition",
1157
- "disabled:opacity-50 disabled:cursor-not-allowed",
1158
- "flex items-center justify-center gap-2",
1159
- f ? "bg-gray-300" : "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"
1160
- ].join(" "),
1161
- children: [
1162
- I && /* @__PURE__ */ b("svg", { className: "animate-spin h-5 w-5 text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
1163
- /* @__PURE__ */ o("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
1164
- /* @__PURE__ */ o(
1165
- "path",
1166
- {
1167
- className: "opacity-75",
1168
- fill: "currentColor",
1169
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
1170
- }
1171
- )
1172
- ] }),
1173
- i === e.length - 1 ? "Finish" : "Next"
1174
- ]
1175
- }
1176
- )
1191
+ /* @__PURE__ */ l(Ct, { active: s, stagesLength: e.length, disableNext: m, isSubmitting: I, onGoNext: _ })
1177
1192
  ] })
1178
- ] }) : /* @__PURE__ */ o("div", { className: "text-slate-600", children: "Loading..." });
1193
+ ] }) : /* @__PURE__ */ l("div", { className: "text-slate-600", children: "Loading..." });
1179
1194
  }
1180
- const Ce = "credify_quote_id", Ee = "credify_auth_token";
1181
- function Et(e) {
1195
+ const Ee = "credify_quote_id", Ce = "credify_auth_token";
1196
+ function It(e) {
1182
1197
  try {
1183
- localStorage.setItem(Ce, e);
1198
+ localStorage.setItem(Ee, e);
1184
1199
  } catch (t) {
1185
1200
  console.error("Failed to save quoteId to localStorage:", t);
1186
1201
  }
1187
1202
  }
1188
- function Tt() {
1203
+ function Rt() {
1189
1204
  try {
1190
- return localStorage.getItem(Ce);
1205
+ return localStorage.getItem(Ee);
1191
1206
  } catch (e) {
1192
1207
  return console.error("Failed to load quoteId from localStorage:", e), null;
1193
1208
  }
1194
1209
  }
1195
1210
  function Ye() {
1196
1211
  try {
1197
- localStorage.removeItem(Ce);
1212
+ localStorage.removeItem(Ee);
1198
1213
  } catch (e) {
1199
1214
  console.error("Failed to clear quoteId from localStorage:", e);
1200
1215
  }
1201
1216
  }
1202
- function It(e) {
1217
+ function Qt(e) {
1203
1218
  try {
1204
- localStorage.setItem(Ee, e);
1219
+ localStorage.setItem(Ce, e);
1205
1220
  } catch (t) {
1206
1221
  console.error("Failed to save authToken to localStorage:", t);
1207
1222
  }
1208
1223
  }
1209
- function Rt() {
1224
+ function jt() {
1210
1225
  try {
1211
- return localStorage.getItem(Ee);
1226
+ return localStorage.getItem(Ce);
1212
1227
  } catch (e) {
1213
1228
  return console.error("Failed to load authToken from localStorage:", e), null;
1214
1229
  }
1215
1230
  }
1216
- function Ge() {
1231
+ function He() {
1217
1232
  try {
1218
- localStorage.removeItem(Ee);
1233
+ localStorage.removeItem(Ce);
1219
1234
  } catch (e) {
1220
1235
  console.error("Failed to clear authToken from localStorage:", e);
1221
1236
  }
1222
1237
  }
1223
- function Qt() {
1224
- Ye(), Ge();
1238
+ function Mt() {
1239
+ Ye(), He();
1225
1240
  }
1226
- const G = "https://api.getcredify.com";
1241
+ const Y = "https://api.getcredify.com";
1227
1242
  let ae = null;
1228
- function jt(e) {
1229
- ae = e, It(e);
1243
+ function Bt(e) {
1244
+ ae = e, Qt(e);
1230
1245
  }
1231
1246
  function me() {
1232
1247
  return ae;
1233
1248
  }
1234
1249
  function $e() {
1235
- const e = Rt();
1250
+ const e = jt();
1236
1251
  e && (ae = e);
1237
1252
  }
1238
- function He() {
1239
- ae = null, Ge();
1253
+ function Je() {
1254
+ ae = null, He();
1240
1255
  }
1241
1256
  async function H(e, t) {
1242
1257
  const r = {
1243
1258
  "Content-Type": "application/json"
1244
1259
  };
1245
1260
  ae && (r.Authorization = `Bearer ${ae}`);
1246
- const s = await fetch(e, {
1261
+ const i = await fetch(e, {
1247
1262
  method: "POST",
1248
1263
  headers: r,
1249
1264
  body: JSON.stringify(t)
1250
1265
  });
1251
- if (!s.ok) {
1252
- let n = `Request failed with status ${s.status}`;
1266
+ if (!i.ok) {
1267
+ let n = `Request failed with status ${i.status}`;
1253
1268
  try {
1254
- n = (await s.json()).error || n;
1269
+ n = (await i.json()).error || n;
1255
1270
  } catch {
1256
- n = s.statusText || n;
1271
+ n = i.statusText || n;
1257
1272
  }
1258
- const i = new Error(n);
1259
- throw i.statusCode = s.status, i;
1273
+ const s = new Error(n);
1274
+ throw s.statusCode = i.status, s;
1260
1275
  }
1261
- return s;
1276
+ return i;
1262
1277
  }
1263
- async function Mt(e) {
1264
- return await (await H(`${G}/get-questions-by-stage`, { stage: e })).json();
1278
+ async function Ft(e) {
1279
+ return await (await H(`${Y}/get-questions-by-stage`, { stage: e })).json();
1265
1280
  }
1266
1281
  async function we() {
1267
- return await (await H(`${G}/get-stages-for-quote`, {})).json();
1282
+ return await (await H(`${Y}/get-stages-for-quote`, {})).json();
1268
1283
  }
1269
- async function Bt(e) {
1270
- const r = await (await H(`${G}/create-quote`, { phone: e })).json();
1284
+ async function Dt(e) {
1285
+ const r = await (await H(`${Y}/create-quote`, { phone: e })).json();
1271
1286
  if (!r || typeof r != "object" || !r.quoteId)
1272
1287
  throw new Error(`Invalid createQuote response: ${JSON.stringify(r)}`);
1273
1288
  return r;
1274
1289
  }
1275
1290
  async function ce(e, t, r) {
1276
- const s = { payload: e, getRates: t };
1277
- return r && typeof r == "string" && r.trim() !== "" && (s.quoteId = r), await (await H(`${G}/update-quote`, s)).json();
1291
+ const i = { payload: e, getRates: t };
1292
+ return r && typeof r == "string" && r.trim() !== "" && (i.quoteId = r), await (await H(`${Y}/update-quote`, i)).json();
1278
1293
  }
1279
- async function Ft(e, t) {
1280
- return await (await H(`${G}/verify-quote`, { quoteId: e, smsCode: t })).json();
1294
+ async function zt(e, t) {
1295
+ return await (await H(`${Y}/verify-quote`, { quoteId: e, smsCode: t })).json();
1281
1296
  }
1282
- async function Dt(e) {
1283
- return await (await H(`${G}/is-supported-state`, { state: e })).json();
1297
+ async function Kt(e) {
1298
+ return await (await H(`${Y}/is-supported-state`, { state: e })).json();
1284
1299
  }
1285
- async function Kt() {
1286
- return await (await H(`${G}/get-rates`, {})).json();
1300
+ async function Lt() {
1301
+ return await (await H(`${Y}/get-rates`, {})).json();
1287
1302
  }
1288
- async function zt(e) {
1303
+ async function Wt(e) {
1289
1304
  const t = e ? { quoteId: e } : {};
1290
- return await (await H(`${G}/get-quote`, t)).json();
1305
+ return await (await H(`${Y}/get-quote`, t)).json();
1291
1306
  }
1292
- async function Lt(e) {
1293
- const r = await (await H(`${G}/request-bind`, { quoteRateId: e })).json();
1307
+ async function Pt(e) {
1308
+ const r = await (await H(`${Y}/request-bind`, { quoteRateId: e })).json();
1294
1309
  return r && typeof r == "object" && "success" in r ? r : { success: !0 };
1295
1310
  }
1296
- const Wt = new Intl.NumberFormat("en-US", {
1311
+ const Ot = new Intl.NumberFormat("en-US", {
1297
1312
  style: "currency",
1298
1313
  currency: "USD"
1299
1314
  });
1300
1315
  function Le({ onBack: e }) {
1301
- return /* @__PURE__ */ o(
1316
+ return /* @__PURE__ */ l(
1302
1317
  "button",
1303
1318
  {
1304
1319
  type: "button",
@@ -1308,72 +1323,72 @@ function Le({ onBack: e }) {
1308
1323
  }
1309
1324
  );
1310
1325
  }
1311
- function Ot({ rates: e, onBack: t }) {
1312
- const r = Array.isArray(e) && e.length > 0, [s, n] = M({});
1326
+ function Ut({ rates: e, onBack: t }) {
1327
+ const r = Array.isArray(e) && e.length > 0, [i, n] = M({});
1313
1328
  return D(() => {
1314
1329
  $e();
1315
1330
  }, []), r ? /* @__PURE__ */ b("section", { className: "mt-8", children: [
1316
- /* @__PURE__ */ o("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
1317
- /* @__PURE__ */ o("div", { className: "mt-4 grid gap-4 sm:grid-cols-2 lg:grid-cols-3", children: e.map((i) => {
1318
- const l = i.premium_cents / 100, a = Wt.format(l), u = i.quote_rate_id, v = s[u] ?? "idle", k = v === "loading", m = v === "success", A = async () => {
1331
+ /* @__PURE__ */ l("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
1332
+ /* @__PURE__ */ l("div", { className: "mt-4 grid gap-4 sm:grid-cols-2 lg:grid-cols-3", children: e.map((s) => {
1333
+ const a = s.premium_cents / 100, o = Ot.format(a), u = s.quote_rate_id, v = i[u] ?? "idle", k = v === "loading", f = v === "success", A = async () => {
1319
1334
  n((I) => ({ ...I, [u]: "loading" }));
1320
1335
  try {
1321
1336
  if ($e(), !me())
1322
1337
  throw new Error("Authentication required. Please verify your phone number first.");
1323
- if (!((await Lt(i.quote_rate_id))?.success !== !1)) throw new Error("Request failed");
1324
- Qt(), He(), n((C) => ({ ...C, [u]: "success" }));
1338
+ if (!((await Pt(s.quote_rate_id))?.success !== !1)) throw new Error("Request failed");
1339
+ Mt(), Je(), n((E) => ({ ...E, [u]: "success" }));
1325
1340
  } catch {
1326
1341
  n((I) => ({ ...I, [u]: "error" }));
1327
1342
  }
1328
1343
  };
1329
1344
  return /* @__PURE__ */ b("div", { className: "flex flex-col rounded-xl border border-slate-200 bg-white p-6 shadow-sm transition hover:shadow-md", children: [
1330
1345
  /* @__PURE__ */ b("div", { className: "mb-4 flex items-center gap-3", children: [
1331
- i.carrier_logo_base64 ? /* @__PURE__ */ o("img", { src: `data:image/png;base64,${i.carrier_logo_base64}`, alt: i.carrier_name, className: "h-12 w-auto object-contain" }) : /* @__PURE__ */ o("div", { className: "flex h-12 w-12 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500", children: i.carrier_name.charAt(0).toUpperCase() }),
1332
- /* @__PURE__ */ o("div", { className: "flex-1", children: /* @__PURE__ */ o("h4", { className: "font-semibold text-slate-900", children: i.carrier_name }) })
1346
+ s.carrier_logo_base64 ? /* @__PURE__ */ l("img", { src: `data:image/png;base64,${s.carrier_logo_base64}`, alt: s.carrier_name, className: "h-12 w-auto object-contain" }) : /* @__PURE__ */ l("div", { className: "flex h-12 w-12 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500", children: s.carrier_name.charAt(0).toUpperCase() }),
1347
+ /* @__PURE__ */ l("div", { className: "flex-1", children: /* @__PURE__ */ l("h4", { className: "font-semibold text-slate-900", children: s.carrier_name }) })
1333
1348
  ] }),
1334
1349
  /* @__PURE__ */ b("div", { className: "mb-2", children: [
1335
- /* @__PURE__ */ o("p", { className: "text-sm text-slate-500", children: "Premium" }),
1336
- /* @__PURE__ */ o("p", { className: "text-2xl font-bold text-slate-900", children: a })
1350
+ /* @__PURE__ */ l("p", { className: "text-sm text-slate-500", children: "Premium" }),
1351
+ /* @__PURE__ */ l("p", { className: "text-2xl font-bold text-slate-900", children: o })
1337
1352
  ] }),
1338
1353
  /* @__PURE__ */ b("div", { className: "mb-4", children: [
1339
- /* @__PURE__ */ o("p", { className: "text-sm text-slate-500", children: "Term" }),
1354
+ /* @__PURE__ */ l("p", { className: "text-sm text-slate-500", children: "Term" }),
1340
1355
  /* @__PURE__ */ b("p", { className: "font-medium text-slate-700", children: [
1341
- i.term_months,
1356
+ s.term_months,
1342
1357
  " months"
1343
1358
  ] })
1344
1359
  ] }),
1345
- i.carrier_quote_id && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ b("p", { className: "text-xs text-slate-400", children: [
1360
+ s.carrier_quote_id && /* @__PURE__ */ l("div", { className: "mb-4", children: /* @__PURE__ */ b("p", { className: "text-xs text-slate-400", children: [
1346
1361
  "Quote ID: ",
1347
- i.carrier_quote_id
1362
+ s.carrier_quote_id
1348
1363
  ] }) }),
1349
1364
  /* @__PURE__ */ b("div", { className: "mt-auto pt-4", children: [
1350
- /* @__PURE__ */ o(
1365
+ /* @__PURE__ */ l(
1351
1366
  "button",
1352
1367
  {
1353
1368
  type: "button",
1354
1369
  onClick: A,
1355
- disabled: k || m,
1356
- className: `rates-bind-btn w-full rounded-full px-4 py-2.5 text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 ${m ? "bg-emerald-500 text-white" : "bg-blue-600 text-white hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500 disabled:cursor-not-allowed"}`,
1357
- children: k ? "Requesting…" : m ? "Requested" : "Request Bind"
1370
+ disabled: k || f,
1371
+ className: `rates-bind-btn w-full rounded-full px-4 py-2.5 text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 ${f ? "bg-emerald-500 text-white" : "bg-blue-600 text-white hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500 disabled:cursor-not-allowed"}`,
1372
+ children: k ? "Requesting…" : f ? "Requested" : "Request Bind"
1358
1373
  }
1359
1374
  ),
1360
- v === "error" && /* @__PURE__ */ o("p", { className: "mt-2 text-xs text-red-600", children: "Something went wrong. Please try again." }),
1361
- v === "success" && /* @__PURE__ */ o("p", { className: "mt-2 text-xs text-emerald-600", children: "We received your bind request." })
1375
+ v === "error" && /* @__PURE__ */ l("p", { className: "mt-2 text-xs text-red-600", children: "Something went wrong. Please try again." }),
1376
+ v === "success" && /* @__PURE__ */ l("p", { className: "mt-2 text-xs text-emerald-600", children: "We received your bind request." })
1362
1377
  ] })
1363
1378
  ] }, u);
1364
1379
  }) }),
1365
- t && /* @__PURE__ */ o(Le, { onBack: t })
1380
+ t && /* @__PURE__ */ l(Le, { onBack: t })
1366
1381
  ] }) : /* @__PURE__ */ b("section", { className: "mt-8", children: [
1367
- /* @__PURE__ */ o("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
1368
- /* @__PURE__ */ o("p", { className: "mt-2 text-sm text-slate-500", children: "No rates are available at this time." }),
1369
- t && /* @__PURE__ */ o(Le, { onBack: t })
1382
+ /* @__PURE__ */ l("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
1383
+ /* @__PURE__ */ l("p", { className: "mt-2 text-sm text-slate-500", children: "No rates are available at this time." }),
1384
+ t && /* @__PURE__ */ l(Le, { onBack: t })
1370
1385
  ] });
1371
1386
  }
1372
1387
  function j(e) {
1373
1388
  if (e === !0) return "Yes";
1374
1389
  if (e === !1) return "No";
1375
1390
  }
1376
- function P(e) {
1391
+ function O(e) {
1377
1392
  if (e)
1378
1393
  try {
1379
1394
  const t = typeof e == "string" ? new Date(e) : e;
@@ -1382,109 +1397,109 @@ function P(e) {
1382
1397
  return;
1383
1398
  }
1384
1399
  }
1385
- function Pt(e) {
1400
+ function Vt(e) {
1386
1401
  const t = {};
1387
- e.phone && (t.phone = e.phone), e.first_name && (t.first_name = e.first_name), e.last_name && (t.last_name = e.last_name), e.email && (t.email = e.email), e.date_of_birth && (t.date_of_birth = P(e.date_of_birth)), e.product && (t.product = e.product), e.state && (t.state = e.state);
1402
+ e.phone && (t.phone = e.phone), e.first_name && (t.first_name = e.first_name), e.last_name && (t.last_name = e.last_name), e.email && (t.email = e.email), e.date_of_birth && (t.date_of_birth = O(e.date_of_birth)), e.product && (t.product = e.product), e.state && (t.state = e.state);
1388
1403
  const r = [];
1389
- e.line_1 && r.push(e.line_1), e.line_2 && r.push(e.line_2), e.city && r.push(e.city), e.state && r.push(e.state), e.postal_code && r.push(e.postal_code), r.length > 0 && (t.address = r.join(", ")), e.years_at_address !== null && e.years_at_address !== void 0 && (t.years_at_address = e.years_at_address), e.months_at_address !== null && e.months_at_address !== void 0 && (t.months_at_address = e.months_at_address), e.move_in_date && (t.move_in_date = P(e.move_in_date));
1390
- const s = [];
1391
- return e.prior_line_1 && s.push(e.prior_line_1), e.prior_line_2 && s.push(e.prior_line_2), e.prior_city && s.push(e.prior_city), e.prior_state && s.push(e.prior_state), e.prior_postal_code && s.push(e.prior_postal_code), s.length > 0 && (t.prior_address = s.join(", ")), e.years_at_prior_address !== null && e.years_at_prior_address !== void 0 && (t.years_at_prior_address = e.years_at_prior_address), e.auto_has_prior_insurance !== null && e.auto_has_prior_insurance !== void 0 && (t.auto_has_prior_insurance = j(e.auto_has_prior_insurance)), e.auto_prior_expiration_date && (t.auto_prior_expiration_date = P(e.auto_prior_expiration_date)), e.auto_prior_carrier_name && (t.auto_prior_carrier_name = e.auto_prior_carrier_name), e.auto_prior_liability_limit && (t.auto_prior_liability_limit = e.auto_prior_liability_limit), e.auto_reason_for_no_insurance && (t.auto_reason_for_no_insurance = e.auto_reason_for_no_insurance), e.auto_prior_years !== null && e.auto_prior_years !== void 0 && (t.auto_prior_years = e.auto_prior_years), e.auto_prior_months !== null && e.auto_prior_months !== void 0 && (t.auto_prior_months = e.auto_prior_months), e.auto_continuous_coverage_years !== null && e.auto_continuous_coverage_years !== void 0 && (t.auto_continuous_coverage_years = e.auto_continuous_coverage_years), e.auto_cancelled_declined_refused_to_renew !== null && e.auto_cancelled_declined_refused_to_renew !== void 0 && (t.auto_cancelled_declined_refused_to_renew = j(e.auto_cancelled_declined_refused_to_renew)), e.home_has_prior_insurance !== null && e.home_has_prior_insurance !== void 0 && (t.home_has_prior_insurance = j(e.home_has_prior_insurance)), e.home_prior_expiration_date && (t.home_prior_expiration_date = P(e.home_prior_expiration_date)), e.home_prior_carrier_name && (t.home_prior_carrier_name = e.home_prior_carrier_name), e.year_built !== null && e.year_built !== void 0 && (t.year_built = e.year_built), e.number_of_units !== null && e.number_of_units !== void 0 && (t.number_of_units = e.number_of_units), e.number_of_stories !== null && e.number_of_stories !== void 0 && (t.number_of_stories = e.number_of_stories), e.number_of_beds !== null && e.number_of_beds !== void 0 && (t.number_of_beds = e.number_of_beds), e.number_of_full_baths !== null && e.number_of_full_baths !== void 0 && (t.number_of_full_baths = e.number_of_full_baths), e.number_of_partial_baths !== null && e.number_of_partial_baths !== void 0 && (t.number_of_partial_baths = e.number_of_partial_baths), e.under_construction !== null && e.under_construction !== void 0 && (t.under_construction = j(e.under_construction)), e.distance_from_fire_hydrant_ft && (t.distance_from_fire_hydrant_ft = e.distance_from_fire_hydrant_ft), e.distance_from_fire_station_miles && (t.distance_from_fire_station_miles = e.distance_from_fire_station_miles), e.architectural_style && (t.architectural_style = e.architectural_style), e.dwelling_type && (t.dwelling_type = e.dwelling_type), e.construction_quality && (t.construction_quality = e.construction_quality), e.located_over_water !== null && e.located_over_water !== void 0 && (t.located_over_water = e.located_over_water), e.construction_type && (t.construction_type = e.construction_type), e.exterior_wall_type && (t.exterior_wall_type = e.exterior_wall_type), e.foundation_type && (t.foundation_type = e.foundation_type), e.roof_material_type && (t.roof_material_type = e.roof_material_type), e.year_roof_updated !== null && e.year_roof_updated !== void 0 && (t.year_roof_updated = e.year_roof_updated), e.heating_type && (t.heating_type = e.heating_type), e.heating_fuel_type && (t.heating_fuel_type = e.heating_fuel_type), e.number_of_fireplaces !== null && e.number_of_fireplaces !== void 0 && (t.number_of_fireplaces = e.number_of_fireplaces), e.basement_type && (t.basement_type = e.basement_type), e.parking_type && (t.parking_type = e.parking_type), e.number_of_parking_spaces !== null && e.number_of_parking_spaces !== void 0 && (t.number_of_parking_spaces = e.number_of_parking_spaces), e.plumbing_type && (t.plumbing_type = e.plumbing_type), e.pool_type && (t.pool_type = e.pool_type), e.total_area_sq_ft !== null && e.total_area_sq_ft !== void 0 && (t.total_area_sq_ft = e.total_area_sq_ft), e.parcel_area_sq_ft !== null && e.parcel_area_sq_ft !== void 0 && (t.parcel_area_sq_ft = e.parcel_area_sq_ft), e.residence_type && (t.residence_type = e.residence_type), e.usage_type && (t.usage_type = e.usage_type), e.household_size !== null && e.household_size !== void 0 && (t.household_size = e.household_size), e.number_of_mortgagees !== null && e.number_of_mortgagees !== void 0 && (t.number_of_mortgagees = e.number_of_mortgagees), e.has_dog !== null && e.has_dog !== void 0 && (t.has_dog = j(e.has_dog)), e.dog_breed_type && (t.dog_breed_type = e.dog_breed_type), e.number_of_dogs !== null && e.number_of_dogs !== void 0 && (t.number_of_dogs = e.number_of_dogs), e.has_business_on_premises !== null && e.has_business_on_premises !== void 0 && (t.has_business_on_premises = j(e.has_business_on_premises)), e.business_class && (t.business_class = e.business_class), e.retiree_discount !== null && e.retiree_discount !== void 0 && (t.retiree_discount = j(e.retiree_discount)), e.gated_community_discount !== null && e.gated_community_discount !== void 0 && (t.gated_community_discount = j(e.gated_community_discount)), e.multi_policy_discount !== null && e.multi_policy_discount !== void 0 && (t.multi_policy_discount = j(e.multi_policy_discount)), e.non_smoker_discount !== null && e.non_smoker_discount !== void 0 && (t.non_smoker_discount = j(e.non_smoker_discount)), e.first_time_buyer_discount !== null && e.first_time_buyer_discount !== void 0 && (t.first_time_buyer_discount = j(e.first_time_buyer_discount)), e.fire_detection_system !== null && e.fire_detection_system !== void 0 && (t.fire_detection_system = j(e.fire_detection_system)), e.burglar_alarm_system !== null && e.burglar_alarm_system !== void 0 && (t.burglar_alarm_system = j(e.burglar_alarm_system)), e.burglar_alarm_system_type && (t.burglar_alarm_system_type = e.burglar_alarm_system_type), e.smoke_detectors !== null && e.smoke_detectors !== void 0 && (t.smoke_detectors = j(e.smoke_detectors)), e.sprinkler_system !== null && e.sprinkler_system !== void 0 && (t.sprinkler_system = j(e.sprinkler_system)), e.sprinkler_system_type && (t.sprinkler_system_type = e.sprinkler_system_type), e.gas_leakage_detector !== null && e.gas_leakage_detector !== void 0 && (t.gas_leakage_detector = j(e.gas_leakage_detector)), e.deadbolt_locks !== null && e.deadbolt_locks !== void 0 && (t.deadbolt_locks = j(e.deadbolt_locks)), e.fire_extinguisher !== null && e.fire_extinguisher !== void 0 && (t.fire_extinguisher = j(e.fire_extinguisher)), e.order_credit_authorized !== null && e.order_credit_authorized !== void 0 && (t.order_credit_authorized = j(e.order_credit_authorized)), e.has_health_insurance_auto_accident !== null && e.has_health_insurance_auto_accident !== void 0 && (t.has_health_insurance_auto_accident = j(e.has_health_insurance_auto_accident)), e.named_insured_foreclosure_repo_bankruptcy !== null && e.named_insured_foreclosure_repo_bankruptcy !== void 0 && (t.named_insured_foreclosure_repo_bankruptcy = j(e.named_insured_foreclosure_repo_bankruptcy)), e.named_insured_convicted_insurance_fraud !== null && e.named_insured_convicted_insurance_fraud !== void 0 && (t.named_insured_convicted_insurance_fraud = j(e.named_insured_convicted_insurance_fraud)), e.drivers && e.drivers.length > 0 ? (t.drivers = "Yes", t.drivers__items = e.drivers.map((n) => {
1392
- const i = {};
1393
- return n.first_name && (i.first_name = n.first_name), n.last_name && (i.last_name = n.last_name), n.date_of_birth && (i.date_of_birth = P(n.date_of_birth)), n.gender && (i.gender = n.gender), n.marital_status && (i.marital_status = n.marital_status), n.relationship_to_insured && (i.relationship_to_insured = n.relationship_to_insured), n.license_state && (i.license_state = n.license_state), n.license_status && (i.license_status = n.license_status), n.license_number && (i.license_number = n.license_number), n.date_first_licensed && (i.date_first_licensed = P(n.date_first_licensed)), n.education_level && (i.education_level = n.education_level), n.occupation && (i.occupation = n.occupation), n.industry && (i.industry = n.industry), n.driver_violations && n.driver_violations.length > 0 && (i.driver_violations__items = n.driver_violations.map((l) => {
1394
- const a = {};
1395
- return l.code && (a.code = l.code), l.occurred_at && (a.occurred_at = P(l.occurred_at)), a;
1396
- })), n.driver_accidents && n.driver_accidents.length > 0 && (i.driver_accidents__items = n.driver_accidents.map((l) => {
1397
- const a = {};
1398
- return l.occurred_at && (a.occurred_at = P(l.occurred_at)), l.description && (a.description = l.description), l.quote_vehicle_id && (a.quote_vehicle_id = l.quote_vehicle_id), l.property_damage_amount_paid_cents !== null && l.property_damage_amount_paid_cents !== void 0 && (a.property_damage_amount_paid_cents = l.property_damage_amount_paid_cents), l.personal_injury_amount_paid_cents !== null && l.personal_injury_amount_paid_cents !== void 0 && (a.personal_injury_amount_paid_cents = l.personal_injury_amount_paid_cents), a;
1399
- })), n.losses && n.losses.length > 0 && (i.losses = n.losses.map((l) => {
1400
- const a = {};
1401
- return l.description && (a.description = l.description), l.date_of_incident && (a.date_of_incident = P(l.date_of_incident)), l.amount_paid_cents !== null && l.amount_paid_cents !== void 0 && (a.amount_paid_cents = l.amount_paid_cents), l.quote_vehicle_id && (a.quote_vehicle_id = l.quote_vehicle_id), a;
1402
- })), i;
1404
+ e.line_1 && r.push(e.line_1), e.line_2 && r.push(e.line_2), e.city && r.push(e.city), e.state && r.push(e.state), e.postal_code && r.push(e.postal_code), r.length > 0 && (t.address = r.join(", ")), e.years_at_address !== null && e.years_at_address !== void 0 && (t.years_at_address = e.years_at_address), e.months_at_address !== null && e.months_at_address !== void 0 && (t.months_at_address = e.months_at_address), e.move_in_date && (t.move_in_date = O(e.move_in_date));
1405
+ const i = [];
1406
+ return e.prior_line_1 && i.push(e.prior_line_1), e.prior_line_2 && i.push(e.prior_line_2), e.prior_city && i.push(e.prior_city), e.prior_state && i.push(e.prior_state), e.prior_postal_code && i.push(e.prior_postal_code), i.length > 0 && (t.prior_address = i.join(", ")), e.years_at_prior_address !== null && e.years_at_prior_address !== void 0 && (t.years_at_prior_address = e.years_at_prior_address), e.auto_has_prior_insurance !== null && e.auto_has_prior_insurance !== void 0 && (t.auto_has_prior_insurance = j(e.auto_has_prior_insurance)), e.auto_prior_expiration_date && (t.auto_prior_expiration_date = O(e.auto_prior_expiration_date)), e.auto_prior_carrier_name && (t.auto_prior_carrier_name = e.auto_prior_carrier_name), e.auto_prior_liability_limit && (t.auto_prior_liability_limit = e.auto_prior_liability_limit), e.auto_reason_for_no_insurance && (t.auto_reason_for_no_insurance = e.auto_reason_for_no_insurance), e.auto_prior_years !== null && e.auto_prior_years !== void 0 && (t.auto_prior_years = e.auto_prior_years), e.auto_prior_months !== null && e.auto_prior_months !== void 0 && (t.auto_prior_months = e.auto_prior_months), e.auto_continuous_coverage_years !== null && e.auto_continuous_coverage_years !== void 0 && (t.auto_continuous_coverage_years = e.auto_continuous_coverage_years), e.auto_cancelled_declined_refused_to_renew !== null && e.auto_cancelled_declined_refused_to_renew !== void 0 && (t.auto_cancelled_declined_refused_to_renew = j(e.auto_cancelled_declined_refused_to_renew)), e.home_has_prior_insurance !== null && e.home_has_prior_insurance !== void 0 && (t.home_has_prior_insurance = j(e.home_has_prior_insurance)), e.home_prior_expiration_date && (t.home_prior_expiration_date = O(e.home_prior_expiration_date)), e.home_prior_carrier_name && (t.home_prior_carrier_name = e.home_prior_carrier_name), e.year_built !== null && e.year_built !== void 0 && (t.year_built = e.year_built), e.number_of_units !== null && e.number_of_units !== void 0 && (t.number_of_units = e.number_of_units), e.number_of_stories !== null && e.number_of_stories !== void 0 && (t.number_of_stories = e.number_of_stories), e.number_of_beds !== null && e.number_of_beds !== void 0 && (t.number_of_beds = e.number_of_beds), e.number_of_full_baths !== null && e.number_of_full_baths !== void 0 && (t.number_of_full_baths = e.number_of_full_baths), e.number_of_partial_baths !== null && e.number_of_partial_baths !== void 0 && (t.number_of_partial_baths = e.number_of_partial_baths), e.under_construction !== null && e.under_construction !== void 0 && (t.under_construction = j(e.under_construction)), e.distance_from_fire_hydrant_ft && (t.distance_from_fire_hydrant_ft = e.distance_from_fire_hydrant_ft), e.distance_from_fire_station_miles && (t.distance_from_fire_station_miles = e.distance_from_fire_station_miles), e.architectural_style && (t.architectural_style = e.architectural_style), e.dwelling_type && (t.dwelling_type = e.dwelling_type), e.construction_quality && (t.construction_quality = e.construction_quality), e.located_over_water !== null && e.located_over_water !== void 0 && (t.located_over_water = e.located_over_water), e.construction_type && (t.construction_type = e.construction_type), e.exterior_wall_type && (t.exterior_wall_type = e.exterior_wall_type), e.foundation_type && (t.foundation_type = e.foundation_type), e.roof_material_type && (t.roof_material_type = e.roof_material_type), e.year_roof_updated !== null && e.year_roof_updated !== void 0 && (t.year_roof_updated = e.year_roof_updated), e.heating_type && (t.heating_type = e.heating_type), e.heating_fuel_type && (t.heating_fuel_type = e.heating_fuel_type), e.number_of_fireplaces !== null && e.number_of_fireplaces !== void 0 && (t.number_of_fireplaces = e.number_of_fireplaces), e.basement_type && (t.basement_type = e.basement_type), e.parking_type && (t.parking_type = e.parking_type), e.number_of_parking_spaces !== null && e.number_of_parking_spaces !== void 0 && (t.number_of_parking_spaces = e.number_of_parking_spaces), e.plumbing_type && (t.plumbing_type = e.plumbing_type), e.pool_type && (t.pool_type = e.pool_type), e.total_area_sq_ft !== null && e.total_area_sq_ft !== void 0 && (t.total_area_sq_ft = e.total_area_sq_ft), e.parcel_area_sq_ft !== null && e.parcel_area_sq_ft !== void 0 && (t.parcel_area_sq_ft = e.parcel_area_sq_ft), e.residence_type && (t.residence_type = e.residence_type), e.usage_type && (t.usage_type = e.usage_type), e.household_size !== null && e.household_size !== void 0 && (t.household_size = e.household_size), e.number_of_mortgagees !== null && e.number_of_mortgagees !== void 0 && (t.number_of_mortgagees = e.number_of_mortgagees), e.has_dog !== null && e.has_dog !== void 0 && (t.has_dog = j(e.has_dog)), e.dog_breed_type && (t.dog_breed_type = e.dog_breed_type), e.number_of_dogs !== null && e.number_of_dogs !== void 0 && (t.number_of_dogs = e.number_of_dogs), e.has_business_on_premises !== null && e.has_business_on_premises !== void 0 && (t.has_business_on_premises = j(e.has_business_on_premises)), e.business_class && (t.business_class = e.business_class), e.retiree_discount !== null && e.retiree_discount !== void 0 && (t.retiree_discount = j(e.retiree_discount)), e.gated_community_discount !== null && e.gated_community_discount !== void 0 && (t.gated_community_discount = j(e.gated_community_discount)), e.multi_policy_discount !== null && e.multi_policy_discount !== void 0 && (t.multi_policy_discount = j(e.multi_policy_discount)), e.non_smoker_discount !== null && e.non_smoker_discount !== void 0 && (t.non_smoker_discount = j(e.non_smoker_discount)), e.first_time_buyer_discount !== null && e.first_time_buyer_discount !== void 0 && (t.first_time_buyer_discount = j(e.first_time_buyer_discount)), e.fire_detection_system !== null && e.fire_detection_system !== void 0 && (t.fire_detection_system = j(e.fire_detection_system)), e.burglar_alarm_system !== null && e.burglar_alarm_system !== void 0 && (t.burglar_alarm_system = j(e.burglar_alarm_system)), e.burglar_alarm_system_type && (t.burglar_alarm_system_type = e.burglar_alarm_system_type), e.smoke_detectors !== null && e.smoke_detectors !== void 0 && (t.smoke_detectors = j(e.smoke_detectors)), e.sprinkler_system !== null && e.sprinkler_system !== void 0 && (t.sprinkler_system = j(e.sprinkler_system)), e.sprinkler_system_type && (t.sprinkler_system_type = e.sprinkler_system_type), e.gas_leakage_detector !== null && e.gas_leakage_detector !== void 0 && (t.gas_leakage_detector = j(e.gas_leakage_detector)), e.deadbolt_locks !== null && e.deadbolt_locks !== void 0 && (t.deadbolt_locks = j(e.deadbolt_locks)), e.fire_extinguisher !== null && e.fire_extinguisher !== void 0 && (t.fire_extinguisher = j(e.fire_extinguisher)), e.order_credit_authorized !== null && e.order_credit_authorized !== void 0 && (t.order_credit_authorized = j(e.order_credit_authorized)), e.has_health_insurance_auto_accident !== null && e.has_health_insurance_auto_accident !== void 0 && (t.has_health_insurance_auto_accident = j(e.has_health_insurance_auto_accident)), e.named_insured_foreclosure_repo_bankruptcy !== null && e.named_insured_foreclosure_repo_bankruptcy !== void 0 && (t.named_insured_foreclosure_repo_bankruptcy = j(e.named_insured_foreclosure_repo_bankruptcy)), e.named_insured_convicted_insurance_fraud !== null && e.named_insured_convicted_insurance_fraud !== void 0 && (t.named_insured_convicted_insurance_fraud = j(e.named_insured_convicted_insurance_fraud)), e.drivers && e.drivers.length > 0 ? (t.drivers = "Yes", t.drivers__items = e.drivers.map((n) => {
1407
+ const s = {};
1408
+ return n.first_name && (s.first_name = n.first_name), n.last_name && (s.last_name = n.last_name), n.date_of_birth && (s.date_of_birth = O(n.date_of_birth)), n.gender && (s.gender = n.gender), n.marital_status && (s.marital_status = n.marital_status), n.relationship_to_insured && (s.relationship_to_insured = n.relationship_to_insured), n.license_state && (s.license_state = n.license_state), n.license_status && (s.license_status = n.license_status), n.license_number && (s.license_number = n.license_number), n.date_first_licensed && (s.date_first_licensed = O(n.date_first_licensed)), n.education_level && (s.education_level = n.education_level), n.occupation && (s.occupation = n.occupation), n.industry && (s.industry = n.industry), n.driver_violations && n.driver_violations.length > 0 && (s.driver_violations__items = n.driver_violations.map((a) => {
1409
+ const o = {};
1410
+ return a.code && (o.code = a.code), a.occurred_at && (o.occurred_at = O(a.occurred_at)), o;
1411
+ })), n.driver_accidents && n.driver_accidents.length > 0 && (s.driver_accidents__items = n.driver_accidents.map((a) => {
1412
+ const o = {};
1413
+ return a.occurred_at && (o.occurred_at = O(a.occurred_at)), a.description && (o.description = a.description), a.quote_vehicle_id && (o.quote_vehicle_id = a.quote_vehicle_id), a.property_damage_amount_paid_cents !== null && a.property_damage_amount_paid_cents !== void 0 && (o.property_damage_amount_paid_cents = a.property_damage_amount_paid_cents), a.personal_injury_amount_paid_cents !== null && a.personal_injury_amount_paid_cents !== void 0 && (o.personal_injury_amount_paid_cents = a.personal_injury_amount_paid_cents), o;
1414
+ })), n.losses && n.losses.length > 0 && (s.losses = n.losses.map((a) => {
1415
+ const o = {};
1416
+ return a.description && (o.description = a.description), a.date_of_incident && (o.date_of_incident = O(a.date_of_incident)), a.amount_paid_cents !== null && a.amount_paid_cents !== void 0 && (o.amount_paid_cents = a.amount_paid_cents), a.quote_vehicle_id && (o.quote_vehicle_id = a.quote_vehicle_id), o;
1417
+ })), s;
1403
1418
  })) : t.drivers = "No", e.vehicles && e.vehicles.length > 0 ? (t.vehicles = "Yes", t.vehicles__items = e.vehicles.map((n) => {
1404
- const i = {};
1405
- n.vin && (i.vin = n.vin), n.year !== null && n.year !== void 0 && (i.year = n.year), n.make && (i.make = n.make), n.model && (i.model = n.model), n.ownership_type && (i.ownership_type = n.ownership_type), n.usage && (i.usage = n.usage), n.annual_mileage !== null && n.annual_mileage !== void 0 && (i.annual_mileage = n.annual_mileage), n.miles_to_work !== null && n.miles_to_work !== void 0 && (i.miles_to_work = n.miles_to_work), n.percent_to_work !== null && n.percent_to_work !== void 0 && (i.percent_to_work = n.percent_to_work);
1406
- const l = [];
1407
- return n.garaging_address_line_1 && l.push(n.garaging_address_line_1), n.garaging_address_line_2 && l.push(n.garaging_address_line_2), n.garaging_address_city && l.push(n.garaging_address_city), n.garaging_address_state && l.push(n.garaging_address_state), n.garaging_address_postal_code && l.push(n.garaging_address_postal_code), l.length > 0 && (i.garaging_address = l.join(", ")), n.anti_theft_type && (i.anti_theft_type = n.anti_theft_type), n.passive_restraint_type && (i.passive_restraint_type = n.passive_restraint_type), n.coverages && n.coverages.length > 0 && (i.coverages__items = n.coverages.map((a) => {
1419
+ const s = {};
1420
+ n.vin && (s.vin = n.vin), n.year !== null && n.year !== void 0 && (s.year = n.year), n.make && (s.make = n.make), n.model && (s.model = n.model), n.ownership_type && (s.ownership_type = n.ownership_type), n.usage && (s.usage = n.usage), n.annual_mileage !== null && n.annual_mileage !== void 0 && (s.annual_mileage = n.annual_mileage), n.miles_to_work !== null && n.miles_to_work !== void 0 && (s.miles_to_work = n.miles_to_work), n.percent_to_work !== null && n.percent_to_work !== void 0 && (s.percent_to_work = n.percent_to_work);
1421
+ const a = [];
1422
+ return n.garaging_address_line_1 && a.push(n.garaging_address_line_1), n.garaging_address_line_2 && a.push(n.garaging_address_line_2), n.garaging_address_city && a.push(n.garaging_address_city), n.garaging_address_state && a.push(n.garaging_address_state), n.garaging_address_postal_code && a.push(n.garaging_address_postal_code), a.length > 0 && (s.garaging_address = a.join(", ")), n.anti_theft_type && (s.anti_theft_type = n.anti_theft_type), n.passive_restraint_type && (s.passive_restraint_type = n.passive_restraint_type), n.coverages && n.coverages.length > 0 && (s.coverages__items = n.coverages.map((o) => {
1408
1423
  const u = {};
1409
- return a.type && (u.type = a.type), a.per_person_limit_cents !== null && a.per_person_limit_cents !== void 0 && (u.per_person_limit_cents = a.per_person_limit_cents), a.per_incident_limit_cents !== null && a.per_incident_limit_cents !== void 0 && (u.per_incident_limit_cents = a.per_incident_limit_cents), a.per_incident_limit_percent !== null && a.per_incident_limit_percent !== void 0 && (u.per_incident_limit_percent = a.per_incident_limit_percent), a.per_day_limit_cents !== null && a.per_day_limit_cents !== void 0 && (u.per_day_limit_cents = a.per_day_limit_cents), a.deductible_cents !== null && a.deductible_cents !== void 0 && (u.deductible_cents = a.deductible_cents), a.is_declined !== null && a.is_declined !== void 0 && (u.is_declined = j(a.is_declined)), u;
1410
- })), n.vehicle_lienholders && n.vehicle_lienholders.length > 0 && (i.vehicle_lienholders__items = n.vehicle_lienholders.map((a) => {
1424
+ return o.type && (u.type = o.type), o.per_person_limit_cents !== null && o.per_person_limit_cents !== void 0 && (u.per_person_limit_cents = o.per_person_limit_cents), o.per_incident_limit_cents !== null && o.per_incident_limit_cents !== void 0 && (u.per_incident_limit_cents = o.per_incident_limit_cents), o.per_incident_limit_percent !== null && o.per_incident_limit_percent !== void 0 && (u.per_incident_limit_percent = o.per_incident_limit_percent), o.per_day_limit_cents !== null && o.per_day_limit_cents !== void 0 && (u.per_day_limit_cents = o.per_day_limit_cents), o.deductible_cents !== null && o.deductible_cents !== void 0 && (u.deductible_cents = o.deductible_cents), o.is_declined !== null && o.is_declined !== void 0 && (u.is_declined = j(o.is_declined)), u;
1425
+ })), n.vehicle_lienholders && n.vehicle_lienholders.length > 0 && (s.vehicle_lienholders__items = n.vehicle_lienholders.map((o) => {
1411
1426
  const u = {};
1412
- return a.name && (u.name = a.name), a.type && (u.type = a.type), a.line_1 && (u.line_1 = a.line_1), a.line_2 && (u.line_2 = a.line_2), a.city && (u.city = a.city), a.state && (u.state = a.state), a.postal_code && (u.postal_code = a.postal_code), a.phone && (u.phone = a.phone), a.fax && (u.fax = a.fax), u;
1413
- })), i;
1427
+ return o.name && (u.name = o.name), o.type && (u.type = o.type), o.line_1 && (u.line_1 = o.line_1), o.line_2 && (u.line_2 = o.line_2), o.city && (u.city = o.city), o.state && (u.state = o.state), o.postal_code && (u.postal_code = o.postal_code), o.phone && (u.phone = o.phone), o.fax && (u.fax = o.fax), u;
1428
+ })), s;
1414
1429
  })) : t.vehicles = "No", e.losses && e.losses.length > 0 && (t.home_losses__items = e.losses.map((n) => {
1415
- const i = {};
1416
- return n.description && (i.description = n.description), n.date_of_incident && (i.date_of_incident = P(n.date_of_incident)), n.amount_paid_cents !== null && n.amount_paid_cents !== void 0 && (i.amount_paid_cents = n.amount_paid_cents), i;
1430
+ const s = {};
1431
+ return n.description && (s.description = n.description), n.date_of_incident && (s.date_of_incident = O(n.date_of_incident)), n.amount_paid_cents !== null && n.amount_paid_cents !== void 0 && (s.amount_paid_cents = n.amount_paid_cents), s;
1417
1432
  })), t;
1418
1433
  }
1419
1434
  function Ae(e) {
1420
- const t = {}, r = (i) => {
1421
- if (typeof i == "string") {
1422
- if (i === "Yes") return !0;
1423
- if (i === "No") return !1;
1435
+ const t = {}, r = (s) => {
1436
+ if (typeof s == "string") {
1437
+ if (s === "Yes") return !0;
1438
+ if (s === "No") return !1;
1424
1439
  }
1425
- return i;
1426
- }, s = Object.keys(e).filter((i) => !i.includes("__items")), n = /* @__PURE__ */ new Set();
1427
- for (const [i, l] of Object.entries(e))
1428
- i.endsWith("__items") && Array.isArray(l) && l.forEach((a) => {
1429
- typeof a == "object" && a !== null && Object.keys(a).forEach((u) => {
1440
+ return s;
1441
+ }, i = Object.keys(e).filter((s) => !s.includes("__items")), n = /* @__PURE__ */ new Set();
1442
+ for (const [s, a] of Object.entries(e))
1443
+ s.endsWith("__items") && Array.isArray(a) && a.forEach((o) => {
1444
+ typeof o == "object" && o !== null && Object.keys(o).forEach((u) => {
1430
1445
  n.add(u);
1431
1446
  });
1432
1447
  });
1433
- for (const [i, l] of Object.entries(e))
1434
- if (i.endsWith("__items")) {
1435
- const a = i.replace("__items", "");
1436
- if (s.includes(a)) {
1437
- const v = Array.isArray(l) ? l.map((k) => Ae(k)) : l;
1438
- t[a] = v;
1448
+ for (const [s, a] of Object.entries(e))
1449
+ if (s.endsWith("__items")) {
1450
+ const o = s.replace("__items", "");
1451
+ if (i.includes(o)) {
1452
+ const v = Array.isArray(a) ? a.map((k) => Ae(k)) : a;
1453
+ t[o] = v;
1439
1454
  }
1440
- } else i.includes("__items") || n.has(i) || (t[i] = r(l));
1455
+ } else s.includes("__items") || n.has(s) || (t[s] = r(a));
1441
1456
  return t;
1442
1457
  }
1443
- function Ut({ isOpen: e, onClose: t }) {
1444
- const [r, s] = M([]), [n, i] = M(null), [l, a] = M(null), [u, v] = M(null), [k, m] = M(void 0), [A, I] = M(!1);
1445
- function R(C) {
1458
+ function Gt({ isOpen: e, onClose: t }) {
1459
+ const [r, i] = M([]), [n, s] = M(null), [a, o] = M(null), [u, v] = M(null), [k, f] = M(void 0), [A, I] = M(!1);
1460
+ function R(E) {
1446
1461
  const T = {
1447
1462
  SMSVerification: "Verify",
1448
1463
  AutoCurrentCarrier: "Current Auto Policy",
1449
1464
  HomeCurrentCarrier: "Current Home Policy"
1450
1465
  };
1451
- return C.map((d) => ({
1466
+ return E.map((d) => ({
1452
1467
  key: d,
1453
1468
  title: T[d] || d,
1454
- loadQuestions: async () => (await Mt(d)).questions
1469
+ loadQuestions: async () => (await Ft(d)).questions
1455
1470
  }));
1456
1471
  }
1457
1472
  D(() => {
1458
1473
  e && (async () => {
1459
1474
  try {
1460
- const T = Tt();
1475
+ const T = Rt();
1461
1476
  if ($e(), T) {
1462
- I(!0), i(T);
1477
+ I(!0), s(T);
1463
1478
  try {
1464
- const d = me(), p = await zt(d ? void 0 : T);
1479
+ const d = me(), p = await Wt(d ? void 0 : T);
1465
1480
  if (!p || !p.quote)
1466
1481
  throw new Error("Invalid response from getQuote: missing quote data");
1467
1482
  const { quote: c } = p, { stages: y } = await we(), w = R(y);
1468
- s(w);
1483
+ i(w);
1469
1484
  try {
1470
- const $ = Pt(c);
1485
+ const $ = Vt(c);
1471
1486
  v($);
1472
1487
  } catch ($) {
1473
1488
  throw new Error(`Failed to transform quote data: ${$ instanceof Error ? $.message : "Unknown error"}`);
1474
1489
  }
1475
1490
  if (c.current_stage) {
1476
1491
  const $ = w.findIndex((S) => S.key === c.current_stage);
1477
- $ >= 0 ? m($) : m(w.length - 1);
1492
+ $ >= 0 ? f($) : f(w.length - 1);
1478
1493
  } else
1479
- m(w.length - 1);
1494
+ f(w.length - 1);
1480
1495
  } catch (d) {
1481
- d.statusCode === 404 ? (Ye(), i(null)) : He();
1496
+ d.statusCode === 404 ? (Ye(), s(null)) : Je();
1482
1497
  } finally {
1483
1498
  I(!1);
1484
1499
  }
1485
1500
  } else {
1486
1501
  const { stages: d } = await we();
1487
- s(R(d));
1502
+ i(R(d));
1488
1503
  }
1489
1504
  } catch {
1490
1505
  I(!1);
@@ -1492,14 +1507,14 @@ function Ut({ isOpen: e, onClose: t }) {
1492
1507
  })();
1493
1508
  }, [e]), D(() => {
1494
1509
  if (!e) return;
1495
- const { overflow: C } = document.body.style;
1510
+ const { overflow: E } = document.body.style;
1496
1511
  return document.body.style.overflow = "hidden", () => {
1497
- document.body.style.overflow = C;
1512
+ document.body.style.overflow = E;
1498
1513
  };
1499
1514
  }, [e]);
1500
- const Q = tt(
1501
- (C) => {
1502
- C.key === "Escape" && t();
1515
+ const Q = nt(
1516
+ (E) => {
1517
+ E.key === "Escape" && t();
1503
1518
  },
1504
1519
  [t]
1505
1520
  );
@@ -1507,62 +1522,71 @@ function Ut({ isOpen: e, onClose: t }) {
1507
1522
  if (e)
1508
1523
  return window.addEventListener("keydown", Q), () => window.removeEventListener("keydown", Q);
1509
1524
  }, [e, Q]), D(() => {
1510
- e || (v(null), m(void 0), I(!1));
1525
+ e || (v(null), f(void 0), I(!1));
1511
1526
  }, [e]), e ? /* @__PURE__ */ b("div", { className: "fixed inset-0 z-[9999] flex items-center justify-center", role: "dialog", "aria-modal": "true", "aria-labelledby": "insurance-modal-title", children: [
1512
- /* @__PURE__ */ o("div", { className: "backdrop", onClick: t, "aria-hidden": "true" }),
1527
+ /* @__PURE__ */ l("div", { className: "backdrop", onClick: t, "aria-hidden": "true" }),
1513
1528
  /* @__PURE__ */ b("div", { className: "modal-panel bg-white relative w-full max-w-2xl flex flex-col max-h-[90vh] overflow-hidden", role: "document", children: [
1514
- /* @__PURE__ */ o("button", { onClick: t, className: "modal-close-btn absolute top-4 right-4 text-slate-400 hover:text-slate-600 text-xl", "aria-label": "Close", type: "button", children: "×" }),
1529
+ /* @__PURE__ */ l(
1530
+ "button",
1531
+ {
1532
+ onClick: t,
1533
+ className: "modal-close-btn absolute top-4 right-4 text-slate-400 hover:text-slate-600 text-xl",
1534
+ "aria-label": "Close",
1535
+ type: "button",
1536
+ children: "×"
1537
+ }
1538
+ ),
1515
1539
  /* @__PURE__ */ b("div", { className: "text-center mb-6", children: [
1516
- /* @__PURE__ */ o("h2", { id: "insurance-modal-title", className: "h1-title", children: "Let's get you the best insurance rates." }),
1517
- /* @__PURE__ */ o("p", { className: "p-subtitle", children: "This should only take a few minutes." })
1540
+ /* @__PURE__ */ l("h2", { id: "insurance-modal-title", className: "h1-title", children: "Let's get you the best insurance rates." }),
1541
+ /* @__PURE__ */ l("p", { className: "p-subtitle", children: "This should only take a few minutes." })
1518
1542
  ] }),
1519
1543
  /* @__PURE__ */ b("div", { className: "panel-body flex-1 min-h-0 overflow-y-auto", children: [
1520
- !l && /* @__PURE__ */ o(We, { children: A || r.length === 0 ? /* @__PURE__ */ o("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ o("div", { className: "text-slate-600", children: "Loading..." }) }) : /* @__PURE__ */ o(
1521
- Ct,
1544
+ !a && /* @__PURE__ */ l(Pe, { children: A || r.length === 0 ? /* @__PURE__ */ l("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ l("div", { className: "text-slate-600", children: "Loading..." }) }) : /* @__PURE__ */ l(
1545
+ Tt,
1522
1546
  {
1523
1547
  stages: r,
1524
1548
  initialValues: u ?? void 0,
1525
1549
  initialActive: k,
1526
- onStageComplete: async (C, T) => {
1550
+ onStageComplete: async (E, T) => {
1527
1551
  try {
1528
- const d = Ae(C), { stages: p } = await we(), c = R(p);
1529
- s(c);
1552
+ const d = Ae(E), { stages: p } = await we(), c = R(p);
1553
+ i(c);
1530
1554
  const w = c.findIndex((_) => _.key === T) + 1, S = (w < c.length ? c[w] : null)?.key || T;
1531
1555
  if (n)
1532
1556
  if (T === "SMSVerification") {
1533
- const { isVerified: _, token: f } = await Ft(n, d.sms_code);
1557
+ const { isVerified: _, token: m } = await zt(n, d.sms_code);
1534
1558
  if (!_)
1535
1559
  throw new Error("Invalid SMS code");
1536
- f && jt(f), await ce({ current_stage: S }, !1);
1560
+ m && Bt(m), await ce({ current_stage: S }, !1);
1537
1561
  } else if (T === "State") {
1538
- const { isSupported: _ } = await Dt(d.state);
1562
+ const { isSupported: _ } = await Kt(d.state);
1539
1563
  if (!_)
1540
1564
  throw new Error("State is not supported");
1541
- const f = me();
1542
- await ce({ ...d, current_stage: S }, !1, f ? void 0 : n);
1565
+ const m = me();
1566
+ await ce({ ...d, current_stage: S }, !1, m ? void 0 : n);
1543
1567
  } else {
1544
1568
  const _ = me();
1545
1569
  await ce({ ...d, current_stage: S }, !1, _ ? void 0 : n || void 0);
1546
1570
  }
1547
1571
  else {
1548
- const f = (await Bt(d.phone))?.quoteId;
1549
- if (!f || typeof f != "string" || f.trim() === "")
1550
- throw new Error(`Failed to create quote - invalid quoteId returned: ${f}`);
1551
- i(f), Et(f), await ce({ current_stage: S }, !1, f);
1572
+ const m = (await Dt(d.phone))?.quoteId;
1573
+ if (!m || typeof m != "string" || m.trim() === "")
1574
+ throw new Error(`Failed to create quote - invalid quoteId returned: ${m}`);
1575
+ s(m), It(m), await ce({ current_stage: S }, !1, m);
1552
1576
  }
1553
1577
  return { success: !0 };
1554
1578
  } catch (d) {
1555
1579
  return { success: !1, error: d instanceof Error ? d.message : "An error occurred" };
1556
1580
  }
1557
1581
  },
1558
- onComplete: async (C) => {
1582
+ onComplete: async (E) => {
1559
1583
  try {
1560
- const T = Ae(C);
1584
+ const T = Ae(E);
1561
1585
  if (!n)
1562
1586
  throw new Error("Quote ID is required");
1563
- await ce(T, !0), v(C);
1564
- const { rates: d } = await Kt();
1565
- return a(d), { success: !0 };
1587
+ await ce(T, !0), v(E);
1588
+ const { rates: d } = await Lt();
1589
+ return o(d), { success: !0 };
1566
1590
  } catch (T) {
1567
1591
  return { success: !1, error: T instanceof Error ? T.message : "An error occurred" };
1568
1592
  }
@@ -1570,34 +1594,40 @@ function Ut({ isOpen: e, onClose: t }) {
1570
1594
  }
1571
1595
  ) }),
1572
1596
  " ",
1573
- l && n && /* @__PURE__ */ o(Ot, { rates: l, onBack: () => a(null) })
1597
+ a && n && /* @__PURE__ */ l(Ut, { rates: a, onBack: () => o(null) })
1574
1598
  ] }),
1575
- /* @__PURE__ */ o("div", { className: "mt-4 pt-4 border-t border-slate-200", children: /* @__PURE__ */ o("p", { className: "text-center text-sm text-slate-500", children: "Insurance products offered through Credify Corporation, a licensed insurance agency." }) })
1599
+ /* @__PURE__ */ l("div", { className: "mt-4 pt-4 border-t border-slate-200", children: /* @__PURE__ */ l("p", { className: "text-center text-sm text-slate-500", children: "Insurance products offered through Credify Corporation, a licensed insurance agency." }) })
1576
1600
  ] })
1577
1601
  ] }) : null;
1578
1602
  }
1579
- function Vt({ isOpen: e }) {
1580
- return /* @__PURE__ */ o(
1581
- Ut,
1603
+ function Yt({ isOpen: e }) {
1604
+ return /* @__PURE__ */ l(
1605
+ Gt,
1582
1606
  {
1583
1607
  isOpen: e,
1584
1608
  onClose: () => {
1585
- Je.close();
1609
+ Xe.close();
1586
1610
  }
1587
1611
  }
1588
1612
  );
1589
1613
  }
1590
- let Y = null, re = null, pe = !1;
1591
- function Yt() {
1592
- Y || (Y = document.createElement("div"), Y.id = "insurance-widget-root", document.documentElement.appendChild(Y)), !re && Y && (re = rt(Y));
1614
+ let G = null, re = null, pe = !1;
1615
+ const We = "credify-insurance-widget-overrides";
1616
+ function Ht() {
1617
+ if (typeof document > "u" || document.getElementById(We)) return;
1618
+ const e = document.body ?? document.documentElement, t = document.createElement("style");
1619
+ t.id = We, t.textContent = '#insurance-widget-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{display:flex!important;visibility:visible!important;opacity:1!important;min-height:3rem!important;clip-path:none!important;overflow:visible!important;position:relative!important;pointer-events:auto!important}#insurance-widget-root button.form-wizard-next-btn[data-widget-ctrl="next"][type="button"]:disabled{opacity:.5!important}', e.appendChild(t);
1620
+ }
1621
+ function Jt() {
1622
+ G || (G = document.createElement("div"), G.id = "insurance-widget-root", document.documentElement.appendChild(G)), !re && G && (re = it(G)), Ht();
1593
1623
  }
1594
1624
  function xe() {
1595
- Yt(), re && re.render(nt(Vt, { isOpen: pe }));
1625
+ Jt(), re && re.render(rt(Yt, { isOpen: pe }));
1596
1626
  }
1597
- function Gt() {
1598
- re && Y && (re.unmount(), Y.remove()), re = null, Y = null;
1627
+ function Xt() {
1628
+ re && G && (re.unmount(), G.remove()), re = null, G = null;
1599
1629
  }
1600
- const Je = {
1630
+ const Xe = {
1601
1631
  init: (e) => {
1602
1632
  pe = !!e?.autoOpen, xe();
1603
1633
  },
@@ -1607,11 +1637,11 @@ const Je = {
1607
1637
  close: () => {
1608
1638
  pe = !1, xe();
1609
1639
  },
1610
- destroy: Gt
1640
+ destroy: Xt
1611
1641
  };
1612
- typeof window < "u" && (window.CredifyInsuranceWidget = Je);
1642
+ typeof window < "u" && (window.CredifyInsuranceWidget = Xe);
1613
1643
  export {
1614
- Je as CredifyInsuranceWidget,
1615
- Je as default
1644
+ Xe as CredifyInsuranceWidget,
1645
+ Xe as default
1616
1646
  };
1617
1647
  //# sourceMappingURL=index.es.js.map