@getcredify/credify-insurance-widget 1.7.2 → 1.8.2

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,439 +1,438 @@
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-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-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}}@media (max-width:767px){#insurance-widget-root .modal-panel,#root .modal-panel{width:100%;max-width:none;height:100%;max-height:none;box-shadow:none;border-radius:0;position:fixed;inset:0}}#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;color:#fff!important;background-color:#2563eb!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;background-color:#d1d5db!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}@media (max-width:767px){#insurance-widget-root button.modal-close-btn[type=button],#root button.modal-close-btn[type=button]{visibility:hidden!important;pointer-events:none!important;display:none!important}}#insurance-widget-root button.credify-btn-back[type=button],#root button.credify-btn-back[type=button],#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{transition:border-color .15s,background-color .15s;visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;box-sizing:border-box!important;border-radius:var(--radius-full)!important;color:#1a202c!important;text-align:center!important;cursor:pointer!important;background-color:#fff!important;border:1px solid #e2e8f0!important;place-content:center!important;place-items:center!important;height:3rem!important;min-height:3rem!important;margin:0!important;padding:0!important;font-size:1rem!important;font-weight:600!important;line-height:1!important;display:grid!important;overflow:visible!important}#insurance-widget-root button.credify-btn-back[type=button]:not(:disabled):hover,#root button.credify-btn-back[type=button]:not(:disabled):hover{background-color:#f9fafb!important;border-color:#cbd5e1!important}#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{opacity:.5!important;cursor:not-allowed!important;background-color:#f3f4f6!important}#insurance-widget-root button.credify-btn-back-rates[type=button],#root button.credify-btn-back-rates[type=button]{margin-top:2rem!important}#insurance-widget-root button.credify-retry-btn[type=button],#root button.credify-retry-btn[type=button]{cursor:pointer;font:inherit;border:none;visibility:visible!important;color:var(--text-primary)!important;clip-path:none!important;pointer-events:auto!important;background:0 0!important;text-decoration:underline!important;display:inline!important;overflow:visible!important}#insurance-widget-root button.rates-bind-btn[type=button],#root button.rates-bind-btn[type=button],#insurance-widget-root button.rates-bind-btn[type=button]:disabled,#root button.rates-bind-btn[type=button]:disabled{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;box-sizing:border-box!important;text-align:center!important;color:#fff!important;background-color:#2563eb!important;place-content:center!important;place-items:center!important;min-height:2.5rem!important;padding:0 1rem!important;line-height:1!important;display:grid!important;overflow:visible!important}#insurance-widget-root button.rates-bind-btn[type=button]:disabled,#root button.rates-bind-btn[type=button]:disabled{opacity:.5!important;background-color:#cbd5e1!important}#insurance-widget-root button.rates-bind-btn.rates-bind-btn-requested,#root button.rates-bind-btn.rates-bind-btn-requested{color:#fff!important;background-color:#10b981!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;color:#fff!important;background-color:#2563eb!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],#root button.btn-primary[type=button],#insurance-widget-root button.btn-primary[type=submit],#root button.btn-primary[type=submit]{color:#fff!important;background-color:#2563eb!important}#insurance-widget-root button.btn-outline[type=button],#root button.btn-outline[type=button]{color:var(--text-primary)!important;border:1px solid var(--accent-color)!important;background-color:#fff!important}#insurance-widget-root button.btn-primary[type=button]:disabled,#root button.btn-primary[type=button]:disabled,#insurance-widget-root button.btn-outline[type=button]:disabled,#root button.btn-outline[type=button]:disabled{opacity:.5!important}#insurance-widget-root button.btn-primary[type=button]:disabled,#root button.btn-primary[type=button]:disabled{color:#fff!important;background-color:#d1d5db!important}#insurance-widget-root button.btn-outline[type=button]:disabled,#root button.btn-outline[type=button]:disabled{color:var(--text-primary)!important;background-color:#f1f5f9!important}#insurance-widget-root .form-wizard-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 Q, useRef as O, useEffect as B, useMemo as ae, useCallback as st, createElement as it } from "react";
3
- import { createRoot as at } from "react-dom/client";
4
- import { jsxs as b, jsx as o, Fragment as Ue } 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-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}.static{position:static}.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-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}.uppercase{text-transform:uppercase}.italic{font-style:italic}.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}}@media (max-width:767px){#insurance-widget-root .modal-panel,#root .modal-panel{width:100%;max-width:none;height:100%;max-height:none;box-shadow:none;border-radius:0;position:fixed;inset:0}}#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;color:#fff!important;background-color:#2563eb!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;background-color:#d1d5db!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}@media (max-width:767px){#insurance-widget-root button.modal-close-btn[type=button],#root button.modal-close-btn[type=button]{visibility:hidden!important;pointer-events:none!important;display:none!important}}#insurance-widget-root button.credify-btn-back[type=button],#root button.credify-btn-back[type=button],#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{transition:border-color .15s,background-color .15s;visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;box-sizing:border-box!important;border-radius:var(--radius-full)!important;color:#1a202c!important;text-align:center!important;cursor:pointer!important;background-color:#fff!important;border:1px solid #e2e8f0!important;place-content:center!important;place-items:center!important;height:3rem!important;min-height:3rem!important;margin:0!important;padding:0!important;font-size:1rem!important;font-weight:600!important;line-height:1!important;display:grid!important;overflow:visible!important}#insurance-widget-root button.credify-btn-back[type=button]:not(:disabled):hover,#root button.credify-btn-back[type=button]:not(:disabled):hover{background-color:#f9fafb!important;border-color:#cbd5e1!important}#insurance-widget-root button.credify-btn-back[type=button]:disabled,#root button.credify-btn-back[type=button]:disabled{opacity:.5!important;cursor:not-allowed!important;background-color:#f3f4f6!important}#insurance-widget-root button.credify-btn-back-rates[type=button],#root button.credify-btn-back-rates[type=button]{margin-top:2rem!important}#insurance-widget-root button.credify-retry-btn[type=button],#root button.credify-retry-btn[type=button]{cursor:pointer;font:inherit;border:none;visibility:visible!important;color:var(--text-primary)!important;clip-path:none!important;pointer-events:auto!important;background:0 0!important;text-decoration:underline!important;display:inline!important;overflow:visible!important}#insurance-widget-root button.rates-bind-btn[type=button],#root button.rates-bind-btn[type=button],#insurance-widget-root button.rates-bind-btn[type=button]:disabled,#root button.rates-bind-btn[type=button]:disabled{visibility:visible!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important;box-sizing:border-box!important;text-align:center!important;color:#fff!important;background-color:#2563eb!important;place-content:center!important;place-items:center!important;min-height:2.5rem!important;padding:0 1rem!important;line-height:1!important;display:grid!important;overflow:visible!important}#insurance-widget-root button.rates-bind-btn[type=button]:disabled,#root button.rates-bind-btn[type=button]:disabled{opacity:.5!important;background-color:#cbd5e1!important}#insurance-widget-root button.rates-bind-btn.rates-bind-btn-requested,#root button.rates-bind-btn.rates-bind-btn-requested{color:#fff!important;background-color:#10b981!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;color:#fff!important;background-color:#2563eb!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],#root button.btn-primary[type=button],#insurance-widget-root button.btn-primary[type=submit],#root button.btn-primary[type=submit]{color:#fff!important;background-color:#2563eb!important}#insurance-widget-root button.btn-outline[type=button],#root button.btn-outline[type=button]{color:var(--text-primary)!important;border:1px solid var(--accent-color)!important;background-color:#fff!important}#insurance-widget-root button.btn-primary[type=button]:disabled,#root button.btn-primary[type=button]:disabled,#insurance-widget-root button.btn-outline[type=button]:disabled,#root button.btn-outline[type=button]:disabled{opacity:.5!important}#insurance-widget-root button.btn-primary[type=button]:disabled,#root button.btn-primary[type=button]:disabled{color:#fff!important;background-color:#d1d5db!important}#insurance-widget-root button.btn-outline[type=button]:disabled,#root button.btn-outline[type=button]:disabled{color:var(--text-primary)!important;background-color:#f1f5f9!important}#insurance-widget-root .form-wizard-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 V, useRef as J, useEffect as W, useMemo as se, useCallback as Fr, createElement as xr } from "react";
3
+ import { createRoot as Hr } from "react-dom/client";
4
+ import { jsxs as M, jsx as l, Fragment as hr } from "react/jsx-runtime";
5
5
  (function() {
6
- if (typeof e > "u")
7
- var e = { env: {} };
6
+ if (typeof r > "u")
7
+ var r = { 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: [
11
- /* @__PURE__ */ b("label", { htmlFor: e, className: "form-label", children: [
12
- t,
9
+ function ee({ id: r, label: e, hint: t, error: i, required: o, className: a, children: c }) {
10
+ return /* @__PURE__ */ M("div", { className: a, children: [
11
+ /* @__PURE__ */ M("label", { htmlFor: r, className: "form-label", children: [
12
+ e,
13
13
  " ",
14
- n && /* @__PURE__ */ o("span", { className: "text-red-600", children: "*" })
14
+ o && /* @__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
+ c,
17
+ t && !i && /* @__PURE__ */ l("p", { id: `${r}-hint`, className: "mt-1 text-sm text-slate-500", children: t }),
18
+ i && /* @__PURE__ */ l("p", { id: `${r}-error`, className: "mt-1 text-sm text-red-600", children: i })
19
19
  ] });
20
20
  }
21
- function ot({ 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 $r({ id: r, label: e, hint: t, error: i, required: o, className: a, ...c }) {
22
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ l(
23
23
  "input",
24
24
  {
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,
29
- required: n,
30
- ...l,
25
+ id: r,
26
+ className: `form-input ${i ? "input-error" : ""}`,
27
+ "aria-invalid": !!i,
28
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
29
+ required: o,
30
+ ...c,
31
31
  type: "text"
32
32
  }
33
33
  ) });
34
34
  }
35
- function lt({ 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 Xe({ id: r, label: e, hint: t, error: i, required: o, className: a, ...c }) {
36
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ l(
37
37
  "input",
38
38
  {
39
- id: e,
39
+ id: r,
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,
44
- required: n,
45
- ...l
41
+ className: `form-input ${i ? "input-error" : ""}`,
42
+ "aria-invalid": !!i,
43
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
44
+ required: o,
45
+ ...c
46
46
  }
47
47
  ) });
48
48
  }
49
- function ct({ 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 Gr({ id: r, label: e, hint: t, error: i, required: o, className: a, ...c }) {
50
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ l(
51
51
  "input",
52
52
  {
53
- id: e,
53
+ id: r,
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
- required: n,
59
- "aria-invalid": !!s,
60
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
61
- ...l
58
+ required: o,
59
+ "aria-invalid": !!i,
60
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
61
+ ...c
62
62
  }
63
63
  ) });
64
64
  }
65
- function ve(e) {
66
- const t = e.replace(/\D/g, "");
67
- if (t.length === 10)
65
+ function Te(r) {
66
+ const e = r.replace(/\D/g, "");
67
+ if (e.length === 10)
68
+ return `(${e.slice(0, 3)}) ${e.slice(3, 6)} - ${e.slice(6)}`;
69
+ if (e.length > 10) {
70
+ const t = e.slice(0, 10);
68
71
  return `(${t.slice(0, 3)}) ${t.slice(3, 6)} - ${t.slice(6)}`;
69
- if (t.length > 10) {
70
- const r = t.slice(0, 10);
71
- return `(${r.slice(0, 3)}) ${r.slice(3, 6)} - ${r.slice(6)}`;
72
72
  }
73
- return t.length >= 6 ? `(${t.slice(0, 3)}) ${t.slice(3, 6)} - ${t.slice(6)}` : t.length >= 3 ? `(${t.slice(0, 3)}) ${t.slice(3)}` : t.length > 0 ? `(${t}` : t;
73
+ return e.length >= 6 ? `(${e.slice(0, 3)}) ${e.slice(3, 6)} - ${e.slice(6)}` : e.length >= 3 ? `(${e.slice(0, 3)}) ${e.slice(3)}` : e.length > 0 ? `(${e}` : e;
74
74
  }
75
- function we(e) {
76
- return e.replace(/\D/g, "");
75
+ function Oe(r) {
76
+ return r.replace(/\D/g, "");
77
77
  }
78
- function dt({ id: e, label: t, hint: r, error: s, required: n, className: i, value: l = "", onChange: a, ..._ }) {
79
- const [v, S] = Q(""), g = O(null), A = O(0);
80
- B(() => {
81
- if (!l) {
82
- S("");
78
+ function Ur({ id: r, label: e, hint: t, error: i, required: o, className: a, value: c = "", onChange: n, ...s }) {
79
+ const [f, d] = V(""), v = J(null), g = J(0);
80
+ W(() => {
81
+ if (!c) {
82
+ d("");
83
83
  return;
84
84
  }
85
- let E = we(l);
86
- E.length === 11 && E.startsWith("1") && (E = E.slice(1));
87
- const I = E.slice(0, 10);
88
- S(ve(I));
89
- }, [l]);
90
- const T = (E) => {
91
- const I = E.target, D = I.value;
92
- A.current = I.selectionStart || 0;
93
- const d = we(D).slice(0, 10), u = ve(d);
94
- S(u);
95
- const c = d.length === 10 ? `+1${d}` : d, f = {
96
- ...E,
85
+ let N = Oe(c);
86
+ N.length === 11 && N.startsWith("1") && (N = N.slice(1));
87
+ const G = N.slice(0, 10);
88
+ d(Te(G));
89
+ }, [c]);
90
+ const A = (N) => {
91
+ const G = N.target, Y = G.value;
92
+ g.current = G.selectionStart || 0;
93
+ const T = Oe(Y).slice(0, 10), y = Te(T);
94
+ d(y);
95
+ const _ = T.length === 10 ? `+1${T}` : T, u = {
96
+ ...N,
97
97
  currentTarget: {
98
- ...E.currentTarget,
99
- value: c
98
+ ...N.currentTarget,
99
+ value: _
100
100
  },
101
101
  target: {
102
- ...E.target,
103
- value: c
102
+ ...N.target,
103
+ value: _
104
104
  }
105
105
  };
106
- a?.(f), setTimeout(() => {
107
- if (g.current) {
108
- const w = D.slice(0, A.current), $ = we(w), x = ve($), h = Math.min(x.length, u.length);
109
- g.current.setSelectionRange(h, h);
106
+ n?.(u), setTimeout(() => {
107
+ if (v.current) {
108
+ const b = Y.slice(0, g.current), h = Oe(b), E = Te(h), R = Math.min(E.length, y.length);
109
+ v.current.setSelectionRange(R, R);
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(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ M(
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
- htmlFor: e,
121
+ htmlFor: r,
122
122
  className: "px-3 py-3 text-slate-700 font-medium border-r border-[var(--accent-color)] bg-slate-50 flex-shrink-0 relative z-0 rounded-l-lg",
123
123
  children: "+1"
124
124
  }
125
125
  ),
126
- /* @__PURE__ */ o(
126
+ /* @__PURE__ */ l(
127
127
  "input",
128
128
  {
129
- ref: g,
130
- id: e,
129
+ ref: v,
130
+ id: r,
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
- required: n,
136
- "aria-invalid": !!s,
137
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
138
- value: v,
139
- onChange: T,
140
- ..._
135
+ required: o,
136
+ "aria-invalid": !!i,
137
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
138
+ value: f,
139
+ onChange: A,
140
+ ...s
141
141
  }
142
142
  )
143
143
  ]
144
144
  }
145
145
  ) });
146
146
  }
147
- function ut({ 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 Wr({ id: r, label: e, hint: t, error: i, required: o, className: a, ...c }) {
148
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ l(
149
149
  "input",
150
150
  {
151
- id: e,
151
+ id: r,
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
- required: n,
157
- "aria-invalid": !!s,
158
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
159
- ...l
156
+ required: o,
157
+ "aria-invalid": !!i,
158
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
159
+ ...c
160
160
  }
161
161
  ) });
162
162
  }
163
- function _t({ 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 Vr({ id: r, label: e, hint: t, error: i, required: o, className: a, ...c }) {
164
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ l(
165
165
  "input",
166
166
  {
167
- id: e,
167
+ id: r,
168
168
  type: "password",
169
- className: `form-input ${s ? "input-error" : ""}`,
169
+ className: `form-input ${i ? "input-error" : ""}`,
170
170
  autoComplete: "current-password",
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
171
+ required: o,
172
+ "aria-invalid": !!i,
173
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
174
+ ...c
175
175
  }
176
176
  ) });
177
177
  }
178
- function ft({ 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 Yr({ id: r, label: e, hint: t, error: i, required: o, className: a, rows: c = 4, ...n }) {
179
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ l(
180
180
  "textarea",
181
181
  {
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,
187
- required: n,
188
- ...a
182
+ id: r,
183
+ rows: c,
184
+ className: `form-input ${i ? "input-error" : ""}`,
185
+ "aria-invalid": !!i,
186
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
187
+ required: o,
188
+ ...n
189
189
  }
190
190
  ) });
191
191
  }
192
- function mt({ 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 Kr({ id: r, label: e, hint: t, error: i, required: o, className: a, ...c }) {
193
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ l(
194
194
  "input",
195
195
  {
196
- id: e,
196
+ id: r,
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,
201
- required: n,
202
- ...l
198
+ className: `form-input ${i ? "input-error" : ""}`,
199
+ "aria-invalid": !!i,
200
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
201
+ required: o,
202
+ ...c
203
203
  }
204
204
  ) });
205
205
  }
206
- function Qe({ id: e, label: t, className: r, ...s }) {
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 })
206
+ function ze({ id: r, label: e, className: t, ...i }) {
207
+ return /* @__PURE__ */ M("label", { className: `checkbox-card ${t || ""}`, htmlFor: r, children: [
208
+ /* @__PURE__ */ l("input", { id: r, type: "checkbox", className: "checkbox-input", ...i }),
209
+ /* @__PURE__ */ l("span", { className: "checkbox-label", children: e })
210
210
  ] });
211
211
  }
212
- function pt({
213
- name: e,
214
- value: t,
215
- checked: r,
216
- onChange: s,
217
- children: n
212
+ function jr({
213
+ name: r,
214
+ value: e,
215
+ checked: t,
216
+ onChange: i,
217
+ children: o
218
218
  }) {
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 })
219
+ return /* @__PURE__ */ M("label", { className: "radio-card", children: [
220
+ /* @__PURE__ */ l("input", { className: "radio-input", type: "radio", name: r, value: e, checked: t, onChange: i }),
221
+ /* @__PURE__ */ l("span", { className: "radio-label", children: o })
222
222
  ] });
223
223
  }
224
- function gt({
225
- legend: e,
226
- children: t,
227
- className: r,
228
- legendClassName: s
229
- // NEW
224
+ function Qr({
225
+ legend: r,
226
+ children: e,
227
+ className: t,
228
+ legendClassName: i
230
229
  }) {
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 })
230
+ return /* @__PURE__ */ M("fieldset", { className: t, children: [
231
+ /* @__PURE__ */ l("legend", { className: `form-label mb-4 ${i || ""}`, children: r }),
232
+ /* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: e })
234
233
  ] });
235
234
  }
236
- function ht({ id: e, label: t, hint: r, error: s, required: n, className: i, placeholder: l, options: a, children: _, ...v }) {
237
- const S = [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0, g = !!_;
238
- return /* @__PURE__ */ o(U, { id: e, label: t, hint: r, error: s, required: n, className: i, children: /* @__PURE__ */ b(
235
+ function qr({ id: r, label: e, hint: t, error: i, required: o, className: a, placeholder: c, options: n, children: s, ...f }) {
236
+ const d = [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0, v = !!s;
237
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ M(
239
238
  "select",
240
239
  {
241
- id: e,
242
- className: `form-input select-caret ${s ? "input-error" : ""}`,
243
- "aria-invalid": !!s,
244
- "aria-describedby": S,
245
- required: n,
246
- ...v,
240
+ id: r,
241
+ className: `form-input select-caret ${i ? "input-error" : ""}`,
242
+ "aria-invalid": !!i,
243
+ "aria-describedby": d,
244
+ required: o,
245
+ ...f,
247
246
  children: [
248
- l && /* @__PURE__ */ o("option", { value: "", disabled: !0, selected: !("value" in v), children: l }),
249
- g ? _ : a?.map((A) => /* @__PURE__ */ o("option", { value: A.value, disabled: A.disabled, children: A.label }, A.value))
247
+ c && /* @__PURE__ */ l("option", { value: "", disabled: !0, selected: !("value" in f), children: c }),
248
+ v ? s : n?.map((g) => /* @__PURE__ */ l("option", { value: g.value, disabled: g.disabled, children: g.label }, g.value))
250
249
  ]
251
250
  }
252
251
  ) });
253
252
  }
254
- const yt = "AIzaSyDjLdKLxoa-maLNGAyq_I_2r_Fe_TzFikw";
255
- function bt() {
256
- return new Promise((e, t) => {
253
+ const Xr = "AIzaSyDjLdKLxoa-maLNGAyq_I_2r_Fe_TzFikw";
254
+ function zr() {
255
+ return new Promise((r, e) => {
257
256
  if (window.google?.maps?.places) {
258
- e();
257
+ r();
259
258
  return;
260
259
  }
261
- const r = document.querySelector('script[src*="maps.googleapis.com"]');
262
- if (r) {
263
- r.addEventListener("load", () => e()), r.addEventListener("error", () => t(new Error("Failed to load Google Maps script")));
260
+ const t = document.querySelector('script[src*="maps.googleapis.com"]');
261
+ if (t) {
262
+ t.addEventListener("load", () => r()), t.addEventListener("error", () => e(new Error("Failed to load Google Maps script")));
264
263
  return;
265
264
  }
266
- const s = document.createElement("script");
267
- s.src = `https://maps.googleapis.com/maps/api/js?key=${yt}&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);
265
+ const i = document.createElement("script");
266
+ i.src = `https://maps.googleapis.com/maps/api/js?key=${Xr}&libraries=places`, i.async = !0, i.defer = !0, i.onload = () => r(), i.onerror = () => e(new Error("Failed to load Google Maps script")), document.head.appendChild(i);
268
267
  });
269
268
  }
270
- function vt(e) {
271
- const t = {
272
- fullAddress: e.formatted_address
269
+ function Jr(r) {
270
+ const e = {
271
+ fullAddress: r.formatted_address
273
272
  };
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);
277
- }), t;
278
- }
279
- function wt({ id: e, label: t, hint: r, error: s, required: n, className: i, onChange: l, onPlaceSelect: a, value: _, ...v }) {
280
- const S = O(null), g = O(null), A = O(null), T = O(null), [E, I] = Q(!0), [D, M] = Q(_ || ""), [d, u] = Q([]), [c, f] = Q(!1), [w, $] = Q(-1), x = O([]), h = O(!1), y = O(-1);
281
- B(() => {
282
- x.current = d;
283
- }, [d]), B(() => {
284
- h.current = c;
285
- }, [c]), B(() => {
286
- y.current = w;
287
- }, [w]), B(() => {
288
- _ !== void 0 && M(String(_));
289
- }, [_]);
290
- const p = O(null);
291
- B(() => {
292
- if (!S.current) return;
293
- let N = !0;
294
- return bt().then(() => {
295
- !N || !S.current || (g.current = new google.maps.places.AutocompleteService(), A.current = new google.maps.places.PlacesService(document.createElement("div")), I(!1));
296
- }).catch((k) => {
297
- console.error("Error loading Google Maps:", k), I(!1);
273
+ return r.address_components && r.address_components.forEach((t) => {
274
+ const i = t.types;
275
+ i.includes("street_number") && (e.streetNumber = t.long_name), i.includes("route") && (e.streetName = t.long_name), i.includes("locality") && (e.city = t.long_name), i.includes("administrative_area_level_1") && (e.state = t.short_name), i.includes("postal_code") && (e.zipCode = t.long_name), i.includes("country") && (e.country = t.short_name);
276
+ }), e;
277
+ }
278
+ function Zr({ id: r, label: e, hint: t, error: i, required: o, className: a, onChange: c, onPlaceSelect: n, value: s, ...f }) {
279
+ const d = J(null), v = J(null), g = J(null), A = J(null), [N, G] = V(!0), [Y, B] = V(s || ""), [T, y] = V([]), [_, u] = V(!1), [b, h] = V(-1), E = J([]), R = J(!1), L = J(-1);
280
+ W(() => {
281
+ E.current = T;
282
+ }, [T]), W(() => {
283
+ R.current = _;
284
+ }, [_]), W(() => {
285
+ L.current = b;
286
+ }, [b]), W(() => {
287
+ s !== void 0 && B(String(s));
288
+ }, [s]);
289
+ const p = J(null);
290
+ W(() => {
291
+ if (!d.current) return;
292
+ let S = !0;
293
+ return zr().then(() => {
294
+ !S || !d.current || (v.current = new google.maps.places.AutocompleteService(), g.current = new google.maps.places.PlacesService(document.createElement("div")), G(!1));
295
+ }).catch((C) => {
296
+ console.error("Error loading Google Maps:", C), G(!1);
298
297
  }), () => {
299
- N = !1, p.current && clearTimeout(p.current);
298
+ S = !1, p.current && clearTimeout(p.current);
300
299
  };
301
300
  }, []);
302
- const m = (N) => {
303
- const k = N.target.value;
304
- if (M(k), l?.(k), p.current && clearTimeout(p.current), k.length < 3) {
305
- u([]), f(!1);
301
+ const O = (S) => {
302
+ const C = S.target.value;
303
+ if (B(C), c?.(C), p.current && clearTimeout(p.current), C.length < 3) {
304
+ y([]), u(!1);
306
305
  return;
307
306
  }
308
307
  p.current = setTimeout(() => {
309
- g.current && g.current.getPlacePredictions(
308
+ v.current && v.current.getPlacePredictions(
310
309
  {
311
- input: k,
310
+ input: C,
312
311
  types: ["address"]
313
312
  },
314
- (F, L) => {
315
- L === google.maps.places.PlacesServiceStatus.OK && F ? (u(F), f(!0), $(-1)) : (u([]), f(!1));
313
+ (w, H) => {
314
+ H === google.maps.places.PlacesServiceStatus.OK && w ? (y(w), u(!0), h(-1)) : (y([]), u(!1));
316
315
  }
317
316
  );
318
317
  }, 300);
319
- }, j = (N) => {
320
- if (!h.current || x.current.length === 0) {
321
- N.key === "Escape" && (f(!1), h.current = !1);
318
+ }, m = (S) => {
319
+ if (!R.current || E.current.length === 0) {
320
+ S.key === "Escape" && (u(!1), R.current = !1);
322
321
  return;
323
322
  }
324
- switch (N.key) {
323
+ switch (S.key) {
325
324
  case "ArrowDown":
326
- N.preventDefault(), $((k) => {
327
- const F = k < x.current.length - 1 ? k + 1 : k;
328
- return y.current = F, F;
325
+ S.preventDefault(), h((C) => {
326
+ const w = C < E.current.length - 1 ? C + 1 : C;
327
+ return L.current = w, w;
329
328
  });
330
329
  break;
331
330
  case "ArrowUp":
332
- N.preventDefault(), $((k) => {
333
- const F = k > 0 ? k - 1 : -1;
334
- return y.current = F, F;
331
+ S.preventDefault(), h((C) => {
332
+ const w = C > 0 ? C - 1 : -1;
333
+ return L.current = w, w;
335
334
  });
336
335
  break;
337
336
  case "Enter":
338
- N.preventDefault(), y.current >= 0 && y.current < x.current.length && C(x.current[y.current]);
337
+ S.preventDefault(), L.current >= 0 && L.current < E.current.length && k(E.current[L.current]);
339
338
  break;
340
339
  case "Escape":
341
- N.preventDefault(), f(!1), h.current = !1;
340
+ S.preventDefault(), u(!1), R.current = !1;
342
341
  break;
343
342
  }
344
343
  };
345
- B(() => {
346
- const N = (k) => {
347
- T.current && !T.current.contains(k.target) && S.current && !S.current.contains(k.target) && (f(!1), h.current = !1);
344
+ W(() => {
345
+ const S = (C) => {
346
+ A.current && !A.current.contains(C.target) && d.current && !d.current.contains(C.target) && (u(!1), R.current = !1);
348
347
  };
349
- if (c)
350
- return document.addEventListener("mousedown", N), () => {
351
- document.removeEventListener("mousedown", N);
348
+ if (_)
349
+ return document.addEventListener("mousedown", S), () => {
350
+ document.removeEventListener("mousedown", S);
352
351
  };
353
- }, [c]);
354
- const C = (N) => {
355
- A.current && A.current.getDetails(
352
+ }, [_]);
353
+ const k = (S) => {
354
+ g.current && g.current.getDetails(
356
355
  {
357
- placeId: N.place_id,
356
+ placeId: S.place_id,
358
357
  fields: ["address_components", "formatted_address", "geometry"]
359
358
  },
360
- (k, F) => {
361
- if (F === google.maps.places.PlacesServiceStatus.OK && k) {
362
- const L = k.formatted_address || "";
363
- M(L), f(!1), u([]), h.current = !1;
364
- const Z = vt(k);
365
- l?.(L, Z), a?.(k);
359
+ (C, w) => {
360
+ if (w === google.maps.places.PlacesServiceStatus.OK && C) {
361
+ const H = C.formatted_address || "";
362
+ B(H), u(!1), y([]), R.current = !1;
363
+ const P = Jr(C);
364
+ c?.(H, P), n?.(C);
366
365
  }
367
366
  }
368
367
  );
369
368
  };
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(
369
+ return /* @__PURE__ */ l(ee, { id: r, label: e, hint: t, error: i, required: o, className: a, children: /* @__PURE__ */ M("div", { className: "relative", children: [
370
+ /* @__PURE__ */ l(
372
371
  "input",
373
372
  {
374
- ref: S,
375
- id: e,
373
+ ref: d,
374
+ id: r,
376
375
  type: "text",
377
- className: `form-input ${s ? "input-error" : ""}`,
378
- value: D,
379
- onChange: m,
380
- onKeyDown: j,
381
- "aria-invalid": !!s,
382
- "aria-describedby": [r ? `${e}-hint` : null, s ? `${e}-error` : null].filter(Boolean).join(" ") || void 0,
383
- required: n,
376
+ className: `form-input ${i ? "input-error" : ""}`,
377
+ value: Y,
378
+ onChange: O,
379
+ onKeyDown: m,
380
+ "aria-invalid": !!i,
381
+ "aria-describedby": [t ? `${r}-hint` : null, i ? `${r}-error` : null].filter(Boolean).join(" ") || void 0,
382
+ required: o,
384
383
  autoComplete: "street-address",
385
- placeholder: v.placeholder || "Enter an address",
386
- disabled: E || v.disabled,
387
- ...v
384
+ placeholder: f.placeholder || "Enter an address",
385
+ disabled: N || f.disabled,
386
+ ...f
388
387
  }
389
388
  ),
390
- E && /* @__PURE__ */ o("p", { className: "mt-1 text-sm text-slate-500", children: "Loading address suggestions..." }),
391
- c && d.length > 0 && /* @__PURE__ */ o(
389
+ N && /* @__PURE__ */ l("p", { className: "mt-1 text-sm text-slate-500", children: "Loading address suggestions..." }),
390
+ _ && T.length > 0 && /* @__PURE__ */ l(
392
391
  "div",
393
392
  {
394
- ref: T,
393
+ ref: A,
395
394
  className: "absolute z-50 w-full mt-1 bg-white border border-slate-200 rounded-lg shadow-lg max-h-60 overflow-y-auto",
396
395
  role: "listbox",
397
- children: d.map((N, k) => /* @__PURE__ */ b(
396
+ children: T.map((S, C) => /* @__PURE__ */ M(
398
397
  "div",
399
398
  {
400
- className: `px-4 py-3 cursor-pointer transition-colors ${k === w ? "bg-blue-50 text-slate-900" : "bg-white text-slate-900 hover:bg-slate-50"} ${k < d.length - 1 ? "border-b border-slate-100" : ""}`,
399
+ className: `px-4 py-3 cursor-pointer transition-colors ${C === b ? "bg-blue-50 text-slate-900" : "bg-white text-slate-900 hover:bg-slate-50"} ${C < T.length - 1 ? "border-b border-slate-100" : ""}`,
401
400
  role: "option",
402
- "aria-selected": k === w,
403
- onClick: () => C(N),
404
- onMouseEnter: () => $(k),
401
+ "aria-selected": C === b,
402
+ onClick: () => k(S),
403
+ onMouseEnter: () => h(C),
405
404
  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 })
405
+ /* @__PURE__ */ l("div", { className: "font-medium text-slate-900", children: S.structured_formatting.main_text }),
406
+ S.structured_formatting.secondary_text && /* @__PURE__ */ l("div", { className: "text-sm text-slate-500 mt-0.5", children: S.structured_formatting.secondary_text })
408
407
  ]
409
408
  },
410
- N.place_id
409
+ S.place_id
411
410
  ))
412
411
  }
413
412
  )
414
413
  ] }) });
415
414
  }
416
- function Ne(e) {
417
- return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
415
+ function De(r) {
416
+ return r.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
418
417
  }
419
- function Ve(e, t) {
420
- return e.key ?? `${Ne(e.question)}-${t}`;
418
+ function gr(r, e) {
419
+ return r.key ?? `${De(r.question)}-${e}`;
421
420
  }
422
- function he(e, t) {
423
- const r = {}, s = (n) => n == null || typeof n == "string" && n.trim() === "";
424
- return e.forEach((n, i) => {
425
- const l = Ve(n, i), a = t[l];
426
- if (n.required)
427
- switch (n.inputType) {
421
+ function Ee(r, e) {
422
+ const t = {}, i = (o) => o == null || typeof o == "string" && o.trim() === "";
423
+ return r.forEach((o, a) => {
424
+ const c = gr(o, a), n = e[c];
425
+ if (o.required)
426
+ switch (o.inputType) {
428
427
  case "checkbox":
429
- a !== !0 && (r[l] = "Required");
428
+ n !== !0 && (t[c] = "Required");
430
429
  break;
431
430
  case "radio":
432
431
  case "select":
433
- s(a) && (r[l] = "Required");
432
+ i(n) && (t[c] = "Required");
434
433
  break;
435
434
  case "number":
436
- (a == null || typeof a == "string" && a.trim() === "") && (r[l] = "Required");
435
+ (n == null || typeof n == "string" && n.trim() === "") && (t[c] = "Required");
437
436
  break;
438
437
  case "date":
439
438
  case "email":
@@ -444,768 +443,2428 @@ function he(e, t) {
444
443
  case "textarea":
445
444
  case "address":
446
445
  default:
447
- s(a) && (r[l] = "Required");
446
+ i(n) && (t[c] = "Required");
448
447
  break;
449
448
  }
450
- }), r;
451
- }
452
- function xt(e) {
453
- if (e === "" || e === null || e === void 0) return;
454
- const t = Number(e);
455
- return Number.isNaN(t) ? void 0 : t;
449
+ }), t;
456
450
  }
457
- function Me(e) {
458
- return typeof e == "number" && Number.isFinite(e) ? e : typeof e == "string" && e.trim() !== "" && !Number.isNaN(Number(e)) ? Number(e) : null;
451
+ function et(r) {
452
+ if (r === "" || r === null || r === void 0) return;
453
+ const e = Number(r);
454
+ return Number.isNaN(e) ? void 0 : e;
455
+ }
456
+ const rt = {
457
+ NoPriorInsurance: "No Prior Insurance",
458
+ TwentyFirstCentury: "21st Century",
459
+ ACentral: "A.Central",
460
+ AAA: "AAA",
461
+ AARP: "AARP",
462
+ Acadia: "Acadia",
463
+ Ace: "Ace",
464
+ Acuity: "Acuity",
465
+ AdirondackInsExchange: "Adirondack Ins Exchange",
466
+ Aegis: "Aegis",
467
+ AIC: "AIC",
468
+ AIG: "AIG",
469
+ AlfaAlliance: "Alfa Alliance",
470
+ Allied: "Allied",
471
+ Allstate: "Allstate",
472
+ AmericaFirst: "America First",
473
+ AmericanCommerce: "American Commerce",
474
+ AmericanFamily: "American Family",
475
+ Amica: "Amica",
476
+ ASILloyds: "ASI Lloyds",
477
+ AustinMutual: "Austin Mutual",
478
+ Autoone: "Autoone",
479
+ AutoOwners: "Auto-Owners",
480
+ BadgerMutual: "Badger Mutual",
481
+ Balboa: "Balboa",
482
+ Bankers: "Bankers",
483
+ BeaconNational: "Beacon National",
484
+ BrethernMutual: "Brethern Mutual",
485
+ BristolWest: "Bristol West",
486
+ CapitalInsuranceGroup: "Capital Insurance Group",
487
+ Celina: "Celina",
488
+ CentralMutualOfOH: "Central Mutual of OH",
489
+ Chubb: "Chubb",
490
+ Cincinnati: "Cincinnati",
491
+ Clearcover: "Clearcover",
492
+ CNA: "CNA",
493
+ ColonialPenn: "Colonial Penn",
494
+ ColoradoCasualty: "Colorado Casualty",
495
+ Columbia: "Columbia",
496
+ CommerceWest: "Commerce West",
497
+ CommonwealthCasualty: "Commonwealth Casualty",
498
+ Ameriprise: "CONNECT",
499
+ ConstitutionalCasualty: "Constitutional Casualty",
500
+ Cornerstone: "Cornerstone",
501
+ Countrywide: "Countrywide",
502
+ CSE: "CSE",
503
+ Cumberland: "Cumberland",
504
+ Dairyland: "Dairyland",
505
+ Deerbrook: "Deerbrook",
506
+ Direct: "Direct",
507
+ Donegal: "Donegal",
508
+ Drive: "Drive",
509
+ Electric: "Electric",
510
+ EMC: "EMC",
511
+ Encompass: "Encompass",
512
+ Erie: "Erie",
513
+ Esurance: "Esurance",
514
+ Explorer: "Explorer",
515
+ FarmBureau: "Farm Bureau",
516
+ Farmers: "Farmers",
517
+ FiremansFund: "Firemans Fund",
518
+ FirstAmerican: "First American",
519
+ Foremost: "Foremost",
520
+ Geico: "Geico",
521
+ GeneralCasualty: "General Casualty",
522
+ GermantownMutual: "Germantown Mutual",
523
+ GMAC: "GMAC",
524
+ Grange: "Grange",
525
+ GreatAmerican: "Great American",
526
+ Grinnell: "Grinnell",
527
+ GuideOne: "Guide One",
528
+ Hanover: "Hanover",
529
+ Harbor: "Harbor",
530
+ Harleysville: "Harleysville",
531
+ HartfordOMNI: "Hartford OMNI",
532
+ Hartford: "Hartford",
533
+ HastingsMutual: "Hastings Mutual",
534
+ HawkeyeSecurity: "Hawkeye Security",
535
+ HDI: "HDI",
536
+ HoraceMann: "Horace Mann",
537
+ HoustonGeneral: "Houston General",
538
+ IFA: "IFA",
539
+ ImperialCasualty: "Imperial Casualty",
540
+ IndianaFarmers: "Indiana Farmers",
541
+ Indiana: "Indiana",
542
+ Infinity: "Infinity",
543
+ Insurequest: "Insurequest",
544
+ Integon: "Integon",
545
+ Integrity: "Integrity",
546
+ Kemper: "Kemper",
547
+ LibertyMutual: "Liberty Mutual",
548
+ LibertyNorthwest: "Liberty Northwest",
549
+ MainStreetAmerica: "Main Street America",
550
+ Mapfre: "Mapfre",
551
+ Mendota: "Mendota",
552
+ MerchantsGroup: "Merchants Group",
553
+ Mercury: "Mercury",
554
+ Metlife: "MetLife",
555
+ Metropolitan: "Metropolitan",
556
+ MidContinent: "Mid-Continent",
557
+ MidwesternIndemnity: "Midwestern Indemnity",
558
+ Montgomery: "Montgomery",
559
+ MSA: "MSA",
560
+ MtWashington: "Mt. Washington",
561
+ MutualBenefit: "Mutual Benefit",
562
+ NationalGeneral: "National General",
563
+ Nationwide: "Nationwide",
564
+ NewYorkCentralMutual: "New York Central Mutual",
565
+ NJManufacturers: "NJ Manufacturers",
566
+ NJSkylands: "NJ Skylands",
567
+ Northstar: "Northstar",
568
+ Occidental: "Occidental",
569
+ OhioCasualty: "Ohio Casualty",
570
+ OmahaPC: "Omaha P/C",
571
+ OneBeacon: "One Beacon",
572
+ OregonMutual: "Oregon Mutual",
573
+ Palisades: "Palisades",
574
+ PeerlessMontgomery: "Peerless/Montgomery",
575
+ Pekin: "Pekin",
576
+ Pemco: "Pemco",
577
+ PennNational: "Penn National",
578
+ PlymouthRock: "Plymouth Rock",
579
+ PreferredMutual: "Preferred Mutual",
580
+ // cspell:disable-next-line
581
+ Proformance: "Proformance",
582
+ Progressive: "Progressive",
583
+ Prudential: "Prudential",
584
+ Republic: "Republic",
585
+ RockfordMutual: "Rockford Mutual",
586
+ RoyalAndSunAlliance: "Royal and Sun Alliance",
587
+ Safeco: "Safeco",
588
+ SECURA: "SECURA",
589
+ Selective: "Selective",
590
+ SouthernCounty: "Southern County",
591
+ SouthernMutual: "Southern Mutual",
592
+ SouthernTrust: "Southern Trust",
593
+ StPaulTravelers: "St. Paul/Travelers",
594
+ StandardMutual: "Standard Mutual",
595
+ StarCasualty: "Star Casualty",
596
+ StateAuto: "State Auto",
597
+ StateFarm: "State Farm",
598
+ Fidelity: "Stillwater",
599
+ Travelers: "Travelers",
600
+ TWFG: "TWFG",
601
+ Unigard: "Unigard",
602
+ UnitedFireAndCasualty: "United Fire and Casualty",
603
+ Unitrin: "Unitrin",
604
+ Universal: "Universal",
605
+ USAA: "USAA",
606
+ UticaNational: "Utica National",
607
+ Victoria: "Victoria",
608
+ WestBend: "West Bend",
609
+ WesternNational: "Western National",
610
+ WesternReserveGroup: "Western Reserve Group",
611
+ Westfield: "Westfield",
612
+ WhiteMountains: "White Mountains",
613
+ WilsonMutual: "Wilson Mutual",
614
+ Windsor: "Windsor",
615
+ Zurich: "Zurich",
616
+ OtherStandard: "Other Standard",
617
+ OtherNonStandard: "Other Non-Standard"
618
+ }, tt = {
619
+ OwnHome: "Own Home",
620
+ OwnCondo: "Own Condo",
621
+ RentHome: "Rent Home",
622
+ RentCondo: "Rent Condo",
623
+ RentApartment: "Rent Apartment",
624
+ LiveWithParents: "Live With Parents"
625
+ }, nt = {
626
+ TwentyFirstCentury: "21st Century",
627
+ AAA: "AAA",
628
+ Acuity: "Acuity",
629
+ AdirondackInsExchange: "Adirondack Ins Exchange",
630
+ AIG: "AIG",
631
+ AlfaAlliance: "Alfa Alliance",
632
+ AllianzOfAmerica: "Allianz of America",
633
+ AllianzOfAmericaJefferson: "Allianz of America-Jefferson",
634
+ Allied: "Allied",
635
+ Allmerica: "Allmerica",
636
+ Allstate: "Allstate",
637
+ AmericaFirst: "America First",
638
+ AmericanFamily: "American Family",
639
+ AmericanCommerce: "American Commerce",
640
+ Amica: "Amica",
641
+ ASILloyds: "ASI Lloyds",
642
+ Assurant: "Assurant",
643
+ AtlasGeneralAgency: "Atlas General Agency",
644
+ AustinMutual: "Austin Mutual",
645
+ AutoOwners: "Auto-Owners",
646
+ BadgerMutual: "Badger Mutual",
647
+ Balboa: "Balboa",
648
+ Bamboo: "Bamboo",
649
+ BeaconNational: "Beacon National",
650
+ BunkerHill: "Bunker Hill",
651
+ CapitalInsuranceGroup: "Capital Insurance Group",
652
+ CentralMutualOfOH: "Central Mutual of OH",
653
+ ChubbInsurance: "Chubb",
654
+ Cincinnati: "Cincinnati",
655
+ Citizens: "Citizens",
656
+ ColoradoCasualty: "Colorado Casualty",
657
+ Ameriprise: "CONNECT",
658
+ CSE: "CSE",
659
+ Cumberland: "Cumberland",
660
+ Cypress: "Cypress",
661
+ Dairyland: "Dairyland",
662
+ Donegal: "Donegal",
663
+ Electric: "Electric",
664
+ EMC: "EMC",
665
+ Encompass: "Encompass",
666
+ Erie: "Erie",
667
+ Esurance: "Esurance",
668
+ ExcelsiorInsuranceCompany: "Excelsior Insurance Company",
669
+ FairPlan: "Fair Plan",
670
+ FarmBureau: "Farm Bureau",
671
+ Farmers: "Farmers",
672
+ FiremansFund: "Firemans Fund",
673
+ FirstAmerican: "First American",
674
+ ForemostInsuranceCompany: "Foremost Insurance Company",
675
+ Geico: "Geico",
676
+ GeneralCasualty: "General Casualty",
677
+ GermantownMutual: "Germantown Mutual",
678
+ GMAC: "GMAC",
679
+ Grange: "Grange",
680
+ Grinnell: "Grinnell",
681
+ GuideOne: "Guide One",
682
+ Hanover: "Hanover",
683
+ Harleysville: "Harleysville",
684
+ Hartford: "Hartford",
685
+ HartfordOMNI: "Hartford OMNI",
686
+ HawkeyeSecurity: "Hawkeye Security",
687
+ HippoInsuranceCompany: "Hippo Insurance Company",
688
+ HomeownersOfAmerica: "Homeowners of America",
689
+ Homesite: "Homesite",
690
+ HoraceMann: "Horace Mann",
691
+ HoustonGeneral: "Houston General",
692
+ Indiana: "Indiana",
693
+ IndianaFarmers: "Indiana Farmers",
694
+ Integrity: "Integrity",
695
+ Kemper: "Kemper",
696
+ LibertyMutual: "Liberty Mutual",
697
+ LibertyNorthwest: "Liberty Northwest",
698
+ Lloyds: "Lloyds",
699
+ MainStreetAmerica: "Main Street America",
700
+ MarkelInsuranceCompany: "Markel Insurance Company",
701
+ MerchantsGroup: "Merchants Group",
702
+ Mercury: "Mercury",
703
+ Metlife: "MetLife",
704
+ MidwesternIndemnity: "Midwestern Indemnity",
705
+ Montgomery: "Montgomery",
706
+ MSA: "MSA",
707
+ MutualBenefit: "Mutual Benefit",
708
+ Tower: "National General",
709
+ NatGenPremier: "NatGen Premier",
710
+ Nationwide: "Nationwide",
711
+ NationwideScottsdale: "Nationwide-Scottsdale",
712
+ NewYorkCentralMutual: "New York Central Mutual",
713
+ NJSkylands: "NJ Skylands",
714
+ Northstar: "Northstar",
715
+ OhioCasualty: "Ohio Casualty",
716
+ OneBeacon: "One Beacon",
717
+ OregonMutual: "Oregon Mutual",
718
+ PeerlessMontgomery: "Peerless/Montgomery",
719
+ Pekin: "Pekin",
720
+ PennNational: "Penn National",
721
+ PlymouthRock: "Plymouth Rock",
722
+ PreferredMutual: "Preferred Mutual",
723
+ Prudential: "Prudential",
724
+ PureHighValue: "Pure High Value",
725
+ Republic: "Republic",
726
+ RoyalAndSunAlliance: "Royal and Sun Alliance",
727
+ Safeco: "Safeco",
728
+ SECURA: "SECURA",
729
+ SouthernMutual: "Southern Mutual",
730
+ SouthernTrust: "Southern Trust",
731
+ StPaulTravelers: "St. Paul/Travelers",
732
+ StandardMutual: "Standard Mutual",
733
+ StateAuto: "State Auto",
734
+ StateFarm: "State Farm",
735
+ StateFarmFloridaInsuranceCompany: "State Farm Florida Insurance Company",
736
+ Fidelity: "Stillwater",
737
+ SunshineStateInsuranceCompany: "Sunshine State Insurance Company",
738
+ Travelers: "Travelers",
739
+ TWFG: "TWFG",
740
+ Unigard: "Unigard",
741
+ UnitedFireAndCasualty: "United Fire and Casualty",
742
+ Unitrin: "Unitrin",
743
+ Universal: "Universal",
744
+ USAA: "USAA",
745
+ UticaNational: "Utica National",
746
+ Wellington: "Wellington",
747
+ WestBend: "West Bend",
748
+ WesternNational: "Western National",
749
+ WesternReserveGroup: "Western Reserve Group",
750
+ Westfield: "Westfield",
751
+ WhiteMountains: "White Mountains",
752
+ WilsonMutual: "Wilson Mutual",
753
+ Zurich: "Zurich",
754
+ Other: "Other",
755
+ OtherNonStandard: "Other Non-Standard",
756
+ OtherStandard: "Other Standard"
757
+ }, it = {
758
+ Business: "Business",
759
+ Pleasure: "Pleasure",
760
+ Farming: "Farming",
761
+ To_FromWork: "To/From Work",
762
+ To_FromSchool: "To/From School"
763
+ }, ot = {
764
+ Dontknow: "Don't Know",
765
+ ThirtyToSixty: "30/60",
766
+ FiftyToHundred: "50/100",
767
+ HundredToHundred: "100/100",
768
+ HundredToThreeHundred: "100/300",
769
+ TwoHundredFiftyToFiveHundred: "250/500",
770
+ ThreeHundredToThreeHundred: "300/300",
771
+ FiveHundredToFiveHundred: "500/500",
772
+ HundredCSL: "100CSL",
773
+ ThreeHundredCSL: "300CSL",
774
+ FiveHundredCSL: "500CSL"
775
+ }, at = {
776
+ ActiveMilitaryDuty: "Active Military Duty",
777
+ DrivingCompanyCar: "Driving A Company Car",
778
+ DrivingCarOwnedByRelative: "Driving A Car Owned By A Relative",
779
+ HasNotOwnedOrOperatedVehicle: "Has Not Owned Or Operated A Vehicle",
780
+ OwnedVehParkedStoredOffRoadNotDriven: "Owned Veh Parked/Stored Off Road/Not Driven",
781
+ NonPayment: "Non-Payment",
782
+ Other: "Other"
783
+ }, st = {
784
+ Dontknow: "Don't Know",
785
+ cov30to60: "30/60",
786
+ cov50to100: "50/100",
787
+ cov100to100: "100/100",
788
+ cov100to300: "100/300",
789
+ cov250to500: "250/500",
790
+ cov300to300: "300/300",
791
+ cov500to500: "500/500",
792
+ cov100CSL: "100 CSL",
793
+ cov300CSL: "300 CSL",
794
+ cov500CSL: "500 CSL"
795
+ }, lt = {
796
+ Reject: "Reject",
797
+ cov30to60: "30/60",
798
+ cov50to100: "50/100",
799
+ cov100to100: "100/100",
800
+ cov100to300: "100/300",
801
+ cov250to500: "250/500",
802
+ cov300to300: "300/300",
803
+ cov500to500: "500/500",
804
+ cov100CSL: "100 CSL",
805
+ cov300CSL: "300 CSL",
806
+ cov500CSL: "500 CSL"
807
+ }, ct = {
808
+ Dontknow: "Don't know",
809
+ cov25000: "25,000",
810
+ cov50000: "50,000",
811
+ cov100000: "100,000",
812
+ cov250000: "250,000",
813
+ cov500000: "500,000"
814
+ }, ut = {
815
+ None: "None",
816
+ cov500: "500",
817
+ cov1000: "1,000",
818
+ cov2000: "2,000",
819
+ cov2500: "2,500",
820
+ cov5000: "5,000",
821
+ cov10000: "10,000",
822
+ cov15000: "15,000",
823
+ cov25000: "25,000",
824
+ cov50000: "50,000",
825
+ cov100000: "100,000"
826
+ }, dt = {
827
+ NoCoverage: "No Coverage",
828
+ cov25000: "25,000",
829
+ cov50000: "50,000",
830
+ cov100000: "100,000"
831
+ }, _t = {
832
+ No_Coverage: "No Coverage",
833
+ cov2500: "2,500",
834
+ cov5000: "5,000",
835
+ cov10000: "10,000",
836
+ cov25000: "25,000",
837
+ cov50000: "50,000",
838
+ cov100000: "100,000"
839
+ }, ft = {
840
+ NoCoverage: "No Coverage",
841
+ cov5000: "5,000",
842
+ cov10000: "10,000"
843
+ }, Je = {
844
+ NoCoverage: "No Coverage",
845
+ Zero: "0",
846
+ Fifty: "50",
847
+ Hundred: "100",
848
+ TwoHunderd: "200",
849
+ TwoHundredfifty: "250",
850
+ FiveHundred: "500",
851
+ Thousand: "1,000",
852
+ TwoThousand: "2,000"
853
+ }, mt = {
854
+ NoCoverage: "No Coverage",
855
+ TwentyFive: "25",
856
+ Forty: "40",
857
+ Fifty: "50",
858
+ SeventyFive: "75",
859
+ Eighty: "80",
860
+ Hundred: "100",
861
+ TwelveHundred: "120",
862
+ TwoHundred: "200",
863
+ Unlimited: "Unlimited"
864
+ }, pt = {
865
+ NoCoverage: "No Coverage",
866
+ cov20to600: "20/600",
867
+ cov30to900: "30/900",
868
+ cov40to1200: "40/1,200",
869
+ cov50to1500: "50/1,500"
870
+ }, yr = {
871
+ NoHighSchoolDiploma: "No High School Diploma",
872
+ HighSchoolDiploma: "High School Diploma",
873
+ SomeCollegeNoDegree: "Some College - No Degree",
874
+ VocationalTechnicalDegree: "Vocational Technical Degree",
875
+ AssociatesDegree: "Associates Degree",
876
+ Bachelors: "Bachelors",
877
+ Masters: "Masters",
878
+ Phd: "Phd",
879
+ MedicalDegree: "Medical Degree",
880
+ LawDegree: "Law Degree"
881
+ }, vr = {
882
+ "Agriclt/Forestry/Fish": "Agriculture/Forestry/Fishing",
883
+ "Art/Design/Media": "Art/Design/Media",
884
+ "Banking/Finance/RE": "Banking/Finance/Real Estate",
885
+ "Business/Sales/Offi": "Business/Sales/Office",
886
+ "Construct/EnrgyTrds": "Construction/Energy Trades",
887
+ Disabled: "Disabled",
888
+ "Education/Library": "Education/Library",
889
+ "Engr/Archt/Sci/Math": "Engineer/Architect/Science/Math",
890
+ "Government/Military": "Government/Military",
891
+ "Homemaker/Houseprsn": "Homemaker/House person",
892
+ "Info Tech": "Information Technology",
893
+ Insurance: "Insurance",
894
+ "Lgl/Law Enfcmt/Sec": "Legal/Law Enforcement/Security",
895
+ "Maint/Rpr/Hsekeep": "Maintenance/Repair/Housekeeping",
896
+ "Mfg/Production": "Manufacturing/Production",
897
+ "Med/Soc Svcs/Relig": "Medical/Social Services/Religion",
898
+ Other: "Other",
899
+ "Person.Care/Service": "Personal Care/Service",
900
+ "Rest/Hotel Services": "Restaurant/Hotel Services",
901
+ Retired: "Retired",
902
+ "Sports/Recreation": "Sports/Recreation",
903
+ Student: "Student",
904
+ "Trvl/Trnsprt/Warehs": "Travel/Transportation/Warehousing",
905
+ Unemployed: "Unemployed"
906
+ }, ht = {
907
+ "Agriclt/Forestry/Fish": [
908
+ "Agr Inspect/Grader",
909
+ "Arborist",
910
+ "Clerk",
911
+ "Equip. Operator",
912
+ "Farm/Ranch Owner",
913
+ "Farm/Ranch Worker",
914
+ "Fisherman",
915
+ "Florist",
916
+ "Laborer/Worker",
917
+ "Landscape/NursryWkr",
918
+ "Landscaper",
919
+ "Logger",
920
+ "Millworker",
921
+ "Other",
922
+ "Ranger",
923
+ "Supervisor",
924
+ "Timber Grader/Scale"
925
+ ],
926
+ "Art/Design/Media": [
927
+ "Actor",
928
+ "Admin Assist",
929
+ "Announcer/Broadcstr",
930
+ "Artist/Animator",
931
+ "Author/Writer",
932
+ "Choreography/Dancer",
933
+ "Clerk",
934
+ "Composer/Director",
935
+ "Curator",
936
+ "Designer",
937
+ "Editor",
938
+ "Journalist/Reporter",
939
+ "Musician/Singer",
940
+ "Other",
941
+ "Printer",
942
+ "Producer",
943
+ "Production Crew",
944
+ "Projectionist",
945
+ "Receptionist/Sec",
946
+ "Ticket Sales/Usher"
947
+ ],
948
+ "Banking/Finance/RE": [
949
+ "Accountant/Auditor",
950
+ "Admin Assist",
951
+ "Analyst/Broker",
952
+ "Bookkeeper",
953
+ "Branch Manager",
954
+ "Clerk",
955
+ "Collections",
956
+ "Consultant",
957
+ "Controller",
958
+ "CSR/Teller",
959
+ "Director/Administr",
960
+ "Executive",
961
+ "Financial Advisor",
962
+ "Investment Banker",
963
+ "Investor",
964
+ "Loan/EscrowProcess",
965
+ "Mgr-Credit/Loan",
966
+ "Mgr-Portfolio/Prod.",
967
+ "Mgr-Property",
968
+ "Other",
969
+ "Realtor",
970
+ "Receptionist/Sec",
971
+ "SalesAgt/Represent.",
972
+ "Trader,Finan Instru",
973
+ "Underwriter"
974
+ ],
975
+ "Business/Sales/Offi": [
976
+ "Account Executive",
977
+ "Admin Assist",
978
+ "Buyer",
979
+ "Clerk-Office",
980
+ "Consultant",
981
+ "CSR",
982
+ "Director/Administr",
983
+ "Executive",
984
+ "H.R. Representative",
985
+ "Marketing Researchr",
986
+ "Messenger/Courier",
987
+ "Mgr - District",
988
+ "Mgr - Finance",
989
+ "Mgr-Dept/Store",
990
+ "Mgr-General Opers",
991
+ "Mgr-H.R./PublicRel",
992
+ "Mgr-Mkt/Sales",
993
+ "Mgr/Supervisr-Offic",
994
+ "Other",
995
+ "Receptionist/Sec",
996
+ "Sales-Counter/Rentl",
997
+ "Sales-Home Based",
998
+ "Sales-Mfg Rep",
999
+ "Sales-Retail/Whlsle",
1000
+ "Sales-Route/Vendor"
1001
+ ],
1002
+ "Construct/EnrgyTrds": [
1003
+ "Boiler Oper/Maker",
1004
+ "Bricklayer/Mason",
1005
+ "Carpenter",
1006
+ "Carpet Installer",
1007
+ "Concrete Worker",
1008
+ "Constrct Proj Mgr",
1009
+ "Contractor",
1010
+ "Crane Operator",
1011
+ "Electrician/Linesmn",
1012
+ "ElevatorTech/Instl",
1013
+ "Equip. Operator",
1014
+ "FloorLayer/Finisher",
1015
+ "Foreman/Supervisor",
1016
+ "Handyman",
1017
+ "Heat/Air Technician",
1018
+ "Inspector",
1019
+ "Laborer/Worker",
1020
+ "Metalworker",
1021
+ "Miner",
1022
+ "Oil/GasDril/RigOpr",
1023
+ "Other",
1024
+ "Painter",
1025
+ "Plstr/Drywall/Stuc",
1026
+ "Plumber",
1027
+ "Roofer"
1028
+ ],
1029
+ Disabled: ["Disabled"],
1030
+ "Education/Library": [
1031
+ "Admin Assist",
1032
+ "Audio-Visual Tech.",
1033
+ "Child/DayCare Wrker",
1034
+ "Clerk",
1035
+ "Counselor",
1036
+ "Grad. Teaching/Asst",
1037
+ "Instructor-Vocation",
1038
+ "Librarian/Curator",
1039
+ "Other",
1040
+ "Professor, College",
1041
+ "Receptionist/Sec",
1042
+ "Superintendent",
1043
+ "Teacher, College",
1044
+ "Teacher, K-12",
1045
+ "Teaching Asst/Aide",
1046
+ "Tutor"
1047
+ ],
1048
+ "Engr/Archt/Sci/Math": [
1049
+ "Actuary",
1050
+ "Admin Assist",
1051
+ "Analyst",
1052
+ "Architect",
1053
+ "Clerk",
1054
+ "Clinical Data Coord.",
1055
+ "Drafter",
1056
+ "Engineer",
1057
+ "Manager-Project",
1058
+ "Manager-R&D",
1059
+ "Mathematician",
1060
+ "Other",
1061
+ "Receptionist/Sec",
1062
+ "Research Prog. Dir.",
1063
+ "Researcher",
1064
+ "Scientist",
1065
+ "Sociologist",
1066
+ "Surveyor/Mapmaker",
1067
+ "Technician"
1068
+ ],
1069
+ "Government/Military": [
1070
+ "Accountant/Auditor",
1071
+ "Admin Assist",
1072
+ "Analyst",
1073
+ "Attorney",
1074
+ "Chief Executive",
1075
+ "Clerk",
1076
+ "Commissioner",
1077
+ "Council member",
1078
+ "Director/Administr",
1079
+ "Enlst Mil Prsnl E1-4",
1080
+ "Legislator",
1081
+ "Mayor/City Manager",
1082
+ "Meter Reader",
1083
+ "NCO (E5-9)",
1084
+ "Officer-Commissiond",
1085
+ "Officer-Warrant",
1086
+ "Other",
1087
+ "Park Ranger",
1088
+ "Planner",
1089
+ "Postmaster",
1090
+ "Receptionist/Sec",
1091
+ "Regulator",
1092
+ "US Postal Worker"
1093
+ ],
1094
+ "Homemaker/Houseprsn": ["Homemaker/Houseprsn"],
1095
+ "Info Tech": [
1096
+ "Admin Assist",
1097
+ "Analyst",
1098
+ "Clerk",
1099
+ "Director/Administr",
1100
+ "Engineer-Hardware",
1101
+ "Engineer-Software",
1102
+ "Engineer-Systems",
1103
+ "Executive",
1104
+ "Manager-Systems",
1105
+ "Network Admin",
1106
+ "Other",
1107
+ "Programmer",
1108
+ "Project Coordinator",
1109
+ "Receptionist/Sec",
1110
+ "Support Technician",
1111
+ "Systems Security",
1112
+ "Technical Writer",
1113
+ "Web Developer"
1114
+ ],
1115
+ Insurance: [
1116
+ "Accountant/Auditor",
1117
+ "Actuarial Clerk",
1118
+ "Actuary",
1119
+ "Admin Assist",
1120
+ "Agent/Broker",
1121
+ "Analyst",
1122
+ "Attorney",
1123
+ "Claims Adjuster",
1124
+ "Clerk",
1125
+ "Commissioner",
1126
+ "CSR",
1127
+ "Director/Administr",
1128
+ "Executive",
1129
+ "Other",
1130
+ "Product Manager",
1131
+ "Receptionist/Sec",
1132
+ "Sales Rep",
1133
+ "Underwriter"
1134
+ ],
1135
+ "Lgl/Law Enfcmt/Sec": [
1136
+ "Airport Sec Ofcr",
1137
+ "Animal Control Ofcr",
1138
+ "Attorney",
1139
+ "Bailiff",
1140
+ "Corrections Officer",
1141
+ "Court Clrk/Reporter",
1142
+ "Deputy Sheriff",
1143
+ "Dispatcher",
1144
+ "Examiner",
1145
+ "Fed Agt/Marshall",
1146
+ "Fire Chief",
1147
+ "Fire Fighter/Supv.",
1148
+ "Gaming Ofcr/Invest",
1149
+ "Highway Patrol Ofcr",
1150
+ "Judge/Hearing Ofcr",
1151
+ "Legal Asst./Sec",
1152
+ "Other",
1153
+ "Paralegal/Law Clerk",
1154
+ "Police Chief",
1155
+ "Police Det/Investgr",
1156
+ "Police Offcr/Supvr",
1157
+ "Process Server",
1158
+ "Prvt Invest/Detec.",
1159
+ "Security Guard",
1160
+ "Sheriff"
1161
+ ],
1162
+ "Maint/Rpr/Hsekeep": [
1163
+ "Bldg Maint Engineer",
1164
+ "Custodian/Janitor",
1165
+ "Electrician",
1166
+ "Field Service Tech.",
1167
+ "Handyman",
1168
+ "Heat/AirCond Repair",
1169
+ "Housekeeper/Maid",
1170
+ "Lndscpe/Grnds Maint",
1171
+ "Maint Mechanic",
1172
+ "Mechanic",
1173
+ "Other"
1174
+ ],
1175
+ "Mfg/Production": [
1176
+ "Admin Assist",
1177
+ "Clerk",
1178
+ "Factory Worker",
1179
+ "Foreman/Supervisor",
1180
+ "Furniture Finisher",
1181
+ "Inspector",
1182
+ "Jeweler",
1183
+ "Machine Operator",
1184
+ "Other",
1185
+ "Packer",
1186
+ "Plant Manager",
1187
+ "Printer/Bookbinder",
1188
+ "Quality Control",
1189
+ "Receptionist/Sec",
1190
+ "Refining Operator",
1191
+ "Shoemaker",
1192
+ "Tailor/Custom Sewer",
1193
+ "Textile Worker",
1194
+ "Upholsterer"
1195
+ ],
1196
+ "Med/Soc Svcs/Relig": [
1197
+ "Admin Assist",
1198
+ "Assist-Med/Dent/Vet",
1199
+ "Clergy",
1200
+ "Clerk",
1201
+ "Client Care Worker",
1202
+ "Dental Hygenist",
1203
+ "Dentist",
1204
+ "Doctor",
1205
+ "Hospice Volunteer",
1206
+ "Mortician",
1207
+ "Nurse - C.N.A.",
1208
+ "Nurse - LPN",
1209
+ "Nurse - RN",
1210
+ "Nurse Practitioner",
1211
+ "Optometrist",
1212
+ "Other",
1213
+ "Paramedic/EM Tech",
1214
+ "Pharmacist",
1215
+ "Receptionist/Sec",
1216
+ "Social Worker",
1217
+ "Support Services",
1218
+ "Technician",
1219
+ "Therapist",
1220
+ "Veterinarian"
1221
+ ],
1222
+ Other: ["Other"],
1223
+ "Person.Care/Service": [
1224
+ "Caregiver",
1225
+ "Dry Cleaner/Laundry",
1226
+ "Hair Stylist/Barber",
1227
+ "Housekeeper",
1228
+ "Manicurist",
1229
+ "Masseuse",
1230
+ "Nanny",
1231
+ "Other",
1232
+ "Pet Services",
1233
+ "Receptionist/Sec"
1234
+ ],
1235
+ "Rest/Hotel Services": [
1236
+ "Baker",
1237
+ "Bartender",
1238
+ "Bellhop",
1239
+ "Bus Person",
1240
+ "Caterer",
1241
+ "Chef",
1242
+ "Concessionaire",
1243
+ "Concierge",
1244
+ "Cook-Rest/Cafeteria",
1245
+ "Cook/Wrkr-Fast Food",
1246
+ "Delivery Person",
1247
+ "Desk Clerk",
1248
+ "Dishwasher",
1249
+ "Food Prod/Packing",
1250
+ "Host/Maitre d",
1251
+ "Housekeeper/Maid",
1252
+ "Manager",
1253
+ "Other",
1254
+ "Valet",
1255
+ "Waiter/Waitress",
1256
+ "Wine Steward"
1257
+ ],
1258
+ Retired: ["Retired"],
1259
+ "Sports/Recreation": [
1260
+ "Activity/Recre.Asst",
1261
+ "Admin Assist",
1262
+ "Agent",
1263
+ "Athlete",
1264
+ "CampCounselor/Lead",
1265
+ "Clerk",
1266
+ "Coach",
1267
+ "Concessionaire",
1268
+ "Director, Program",
1269
+ "Event Mgr/Promoter",
1270
+ "Life Guard",
1271
+ "Mgr - Fitness Club",
1272
+ "Other",
1273
+ "Park Ranger",
1274
+ "Receptionist/Sec",
1275
+ "Sales-Tkt/Mmbrshp",
1276
+ "SportsBrdcstr/Journ",
1277
+ "Trainer/Instructor",
1278
+ "Umpire/Referee"
1279
+ ],
1280
+ Student: ["Graduate Student", "High school", "Other", "Undergraduate"],
1281
+ "Trvl/Trnsprt/Warehs": [
1282
+ "Admin Assist",
1283
+ "Air Traffic Control",
1284
+ "Airport Ops Crew",
1285
+ "Bellhop/Porter",
1286
+ "Clerk",
1287
+ "Crane Loader/Oper",
1288
+ "Dispatcher",
1289
+ "Driver-Bus/Strcar",
1290
+ "Driver-Taxi/Limo",
1291
+ "Driver-Truck/Delvry",
1292
+ "Flight Attendant",
1293
+ "Forklift Operator",
1294
+ "Laborer",
1295
+ "Longshoreman",
1296
+ "Mate/Sailor",
1297
+ "Mgr Warehse/Dist",
1298
+ "Other",
1299
+ "Parking Lot Attend",
1300
+ "Pilot/Capt/Eng",
1301
+ "Railroad Worker",
1302
+ "Receptionist/Sec",
1303
+ "Shipping/RecClk",
1304
+ "Subway/LgtRail Oper",
1305
+ "Ticket Agent",
1306
+ "Transportation Spec"
1307
+ ],
1308
+ Unemployed: ["Unemployed"]
1309
+ }, Sr = {
1310
+ "Agr Inspect/Grader": "Agriculture Inspector/Grader",
1311
+ Arborist: "Arborist",
1312
+ Clerk: "Clerk",
1313
+ "Equip. Operator": "Equipment Operator",
1314
+ "Farm/Ranch Owner": "Farm/Ranch Owner",
1315
+ "Farm/Ranch Worker": "Farm/Ranch Worker",
1316
+ Fisherman: "Fisherman",
1317
+ Florist: "Florist",
1318
+ "Laborer/Worker": "Laborer/Worker",
1319
+ "Landscape/NursryWkr": "Landscaper/Nursery Worker",
1320
+ Landscaper: "Landscaper",
1321
+ Logger: "Logger",
1322
+ Millworker: "Mill worker",
1323
+ Other: "Other",
1324
+ Ranger: "Ranger",
1325
+ Supervisor: "Supervisor",
1326
+ "Timber Grader/Scale": "Timber Grader/Scale",
1327
+ Actor: "Actor",
1328
+ "Admin Assist": "Administrative Assistant",
1329
+ "Announcer/Broadcstr": "Announcer/Broadcaster",
1330
+ "Artist/Animator": "Artist/Animator",
1331
+ "Author/Writer": "Author/Writer",
1332
+ "Choreography/Dancer": "Choreography/Dancer",
1333
+ "Composer/Director": "Composer/Director",
1334
+ Curator: "Curator",
1335
+ Designer: "Designer",
1336
+ Editor: "Editor",
1337
+ "Journalist/Reporter": "Journalist/Reporter",
1338
+ "Musician/Singer": "Musician/Singer",
1339
+ Printer: "Printer",
1340
+ Producer: "Producer",
1341
+ "Production Crew": "Production Crew",
1342
+ Projectionist: "Projectionist",
1343
+ "Receptionist/Sec": "Receptionist/Secretary",
1344
+ "Ticket Sales/Usher": "Ticket Sales/Usher",
1345
+ "Accountant/Auditor": "Accountant/Auditor",
1346
+ "Analyst/Broker": "Analyst/Broker",
1347
+ Bookkeeper: "Bookkeeper",
1348
+ "Branch Manager": "Branch Manager",
1349
+ Collections: "Collections",
1350
+ Consultant: "Consultant",
1351
+ Controller: "Controller",
1352
+ "CSR/Teller": "CSR/Teller",
1353
+ "Director/Administr": "Director/Administrator",
1354
+ Executive: "Executive",
1355
+ "Financial Advisor": "Financial Advisor",
1356
+ "Investment Banker": "Investment Banker",
1357
+ Investor: "Investor",
1358
+ "Loan/EscrowProcess": "Loan/Escrow Processor",
1359
+ "Mgr-Credit/Loan": "Manager-Credit/Loan",
1360
+ "Mgr-Portfolio/Prod.": "Manager-Portfolio/Production",
1361
+ "Mgr-Property": "Manager-Property",
1362
+ Realtor: "Realtor",
1363
+ "SalesAgt/Represent.": "Sales Agent/Representative",
1364
+ "Trader,Finan Instru": "Trader, Financial Instruments",
1365
+ Underwriter: "Underwriter",
1366
+ "Account Executive": "Account Executive",
1367
+ Buyer: "Buyer",
1368
+ "Clerk-Office": "Clerk-Office",
1369
+ CSR: "Customer Service Representative",
1370
+ "H.R. Representative": "H.R. Representative",
1371
+ "Marketing Researchr": "Marketing Researcher",
1372
+ "Messenger/Courier": "Messenger/Courier",
1373
+ "Mgr - District": "Manager - District",
1374
+ "Mgr - Finance": "Manager - Finance",
1375
+ "Mgr-Dept/Store": "Manager - Department/Store",
1376
+ "Mgr-General Opers": "Manager - General Operations",
1377
+ "Mgr-H.R./PublicRel": "Manager - H.R./Public Relations",
1378
+ "Mgr-Mkt/Sales": "Manager - Marketing/Sales",
1379
+ "Mgr/Supervisr-Offic": "Manager/Supervisor - Office",
1380
+ "Sales-Counter/Rentl": "Sales-Counter/Rental",
1381
+ "Sales-Home Based": "Sales-Home Based",
1382
+ "Sales-Mfg Rep": "Sales-Manufacture Rep",
1383
+ "Sales-Retail/Whlsle": "Sales-Retail/Wholesale",
1384
+ "Sales-Route/Vendor": "Sales-Route/Vendor",
1385
+ "Boiler Oper/Maker": "Boiler Operator/Maker",
1386
+ "Bricklayer/Mason": "Bricklayer/Mason",
1387
+ Carpenter: "Carpenter",
1388
+ "Carpet Installer": "Carpet Installer",
1389
+ "Concrete Worker": "Concrete Worker",
1390
+ "Constrct Proj Mgr": "Construction - Project Manager",
1391
+ Contractor: "Contractor",
1392
+ "Crane Operator": "Crane Operator",
1393
+ "Electrician/Linesmn": "Electrician/Linesman",
1394
+ "ElevatorTech/Instl": "Elevator Technician/Installer",
1395
+ "FloorLayer/Finisher": "Floor Layer/Finisher",
1396
+ "Foreman/Supervisor": "Foreman/Supervisor",
1397
+ Handyman: "Handyman",
1398
+ "Heat/Air Technician": "Heat/Air Technician",
1399
+ Inspector: "Inspector",
1400
+ Metalworker: "Metalworker",
1401
+ Miner: "Miner",
1402
+ "Oil/GasDril/RigOpr": "Oil/Gas Driller/Rig Operator",
1403
+ Painter: "Painter",
1404
+ "Plstr/Drywall/Stuc": "Plaster/Drywall/Stucco",
1405
+ Plumber: "Plumber",
1406
+ Roofer: "Roofer",
1407
+ Disabled: "Disabled",
1408
+ "Audio-Visual Tech.": "Audio-Visual Tech.",
1409
+ "Child/DayCare Wrker": "Child/Daycare Worker",
1410
+ Counselor: "Counselor",
1411
+ "Grad. Teaching/Asst": "Graduate Teaching Assistant",
1412
+ "Instructor-Vocation": "Instructor-Vocation",
1413
+ "Librarian/Curator": "Librarian/Curator",
1414
+ "Professor, College": "Professor, College",
1415
+ Superintendent: "Superintendent",
1416
+ "Teacher, College": "Teacher, College",
1417
+ "Teacher, K-12": "Teacher, K-12",
1418
+ "Teaching Asst/Aide": "Teaching Assistant/Aide",
1419
+ Tutor: "Tutor",
1420
+ Actuary: "Actuary",
1421
+ Analyst: "Analyst",
1422
+ Architect: "Architect",
1423
+ "Clinical Data Coord.": "Clinical Data Coordinator",
1424
+ Drafter: "Drafter",
1425
+ Engineer: "Engineer",
1426
+ "Manager-Project": "Manager-Project",
1427
+ "Manager-R&D": "Manager-R&D",
1428
+ Mathematician: "Mathematician",
1429
+ "Research Prog. Dir.": "Research Program Director",
1430
+ Researcher: "Researcher",
1431
+ Scientist: "Scientist",
1432
+ Sociologist: "Sociologist",
1433
+ "Surveyor/Mapmaker": "Surveyor/Mapmaker",
1434
+ Technician: "Technician",
1435
+ Attorney: "Attorney",
1436
+ "Chief Executive": "Chief Executive",
1437
+ Commissioner: "Commissioner",
1438
+ "Council member": "Council member",
1439
+ "Enlst Mil Prsnl E1-4": "Enlisted Military Personnel (E1-4)",
1440
+ Legislator: "Legislator",
1441
+ "Mayor/City Manager": "Mayor/City Manager",
1442
+ "Meter Reader": "Meter Reader",
1443
+ "NCO (E5-9)": "NCO (E5-9)",
1444
+ "Officer-Commissiond": "Officer-Commissioned",
1445
+ "Officer-Warrant": "Officer-Warrant",
1446
+ "Park Ranger": "Park Ranger",
1447
+ Planner: "Planner",
1448
+ Postmaster: "Postmaster",
1449
+ Regulator: "Regulator",
1450
+ "US Postal Worker": "US Postal Worker",
1451
+ "Homemaker/Houseprsn": "Homemaker/House person",
1452
+ "Engineer-Hardware": "Engineer-Hardware",
1453
+ "Engineer-Software": "Engineer-Software",
1454
+ "Engineer-Systems": "Engineer-Systems",
1455
+ "Manager-Systems": "Manager-Systems",
1456
+ "Network Admin": "Network Administrator",
1457
+ Programmer: "Programmer",
1458
+ "Project Coordinator": "Project Coordinator",
1459
+ "Support Technician": "Support Technician",
1460
+ "Systems Security": "Systems Security",
1461
+ "Technical Writer": "Technical Writer",
1462
+ "Web Developer": "Web Developer",
1463
+ "Actuarial Clerk": "Actuarial Clerk",
1464
+ "Agent/Broker": "Agent/Broker",
1465
+ "Claims Adjuster": "Claims Adjuster",
1466
+ "Product Manager": "Product Manager",
1467
+ "Sales Rep": "Sales Representative",
1468
+ "Airport Sec Ofcr": "Airport Security Officer",
1469
+ "Animal Control Ofcr": "Animal Control Officer",
1470
+ Bailiff: "Bailiff",
1471
+ "Corrections Officer": "Corrections Officer",
1472
+ "Court Clrk/Reporter": "Court Clerk/Reporter",
1473
+ "Deputy Sheriff": "Deputy Sheriff",
1474
+ Dispatcher: "Dispatcher",
1475
+ Examiner: "Examiner",
1476
+ "Fed Agt/Marshall": "Federal Agent/Marshall",
1477
+ "Fire Chief": "Fire Chief",
1478
+ "Fire Fighter/Supv.": "Fire Fighter/Supervisor",
1479
+ "Gaming Ofcr/Invest": "Gaming Officer/Investigator",
1480
+ "Highway Patrol Ofcr": "Highway Patrol Officer",
1481
+ "Judge/Hearing Ofcr": "Judge/Hearing Officer",
1482
+ "Legal Asst./Sec": "Legal Assistant/Secretary",
1483
+ "Paralegal/Law Clerk": "Paralegal/Law Clerk",
1484
+ "Police Chief": "Police Chief",
1485
+ "Police Det/Investgr": "Police Detective/Investigator",
1486
+ "Police Offcr/Supvr": "Police Officer/Supervisor",
1487
+ "Process Server": "Process Server",
1488
+ "Prvt Invest/Detec.": "Private Investigator/Detective",
1489
+ "Security Guard": "Security Guard",
1490
+ Sheriff: "Sheriff",
1491
+ "Bldg Maint Engineer": "Building Maintenance Engineer",
1492
+ "Custodian/Janitor": "Custodian/Janitor",
1493
+ Electrician: "Electrician",
1494
+ "Field Service Tech.": "Field Service Technician",
1495
+ "Heat/AirCond Repair": "Heat/Air Conditioner Repairman",
1496
+ "Housekeeper/Maid": "Housekeeper/Maid",
1497
+ "Lndscpe/Grnds Maint": "Landscape/Grounds Maintenance",
1498
+ "Maint Mechanic": "Maintenance Mechanic",
1499
+ Mechanic: "Mechanic",
1500
+ "Factory Worker": "Factory Worker",
1501
+ "Furniture Finisher": "Furniture Finisher",
1502
+ Jeweler: "Jeweler",
1503
+ "Machine Operator": "Machine Operator",
1504
+ Packer: "Packer",
1505
+ "Plant Manager": "Plant Manager",
1506
+ "Printer/Bookbinder": "Printer/Bookbinder",
1507
+ "Quality Control": "Quality Control",
1508
+ "Refining Operator": "Refining Operator",
1509
+ Shoemaker: "Shoemaker",
1510
+ "Tailor/Custom Sewer": "Tailor/Custom Sewer",
1511
+ "Textile Worker": "Textile Worker",
1512
+ Upholsterer: "Upholsterer",
1513
+ "Assist-Med/Dent/Vet": "Assistant - Medic/Dent/Vet",
1514
+ Clergy: "Clergy",
1515
+ "Client Care Worker": "Client Care Worker",
1516
+ "Dental Hygenist": "Dental Hygienist",
1517
+ Dentist: "Dentist",
1518
+ Doctor: "Doctor",
1519
+ "Hospice Volunteer": "Hospice Volunteer",
1520
+ Mortician: "Mortician",
1521
+ "Nurse - C.N.A.": "Nurse - C.N.A.",
1522
+ "Nurse - LPN": "Nurse - LPN",
1523
+ "Nurse - RN": "Nurse - RN",
1524
+ "Nurse Practitioner": "Nurse Practitioner",
1525
+ Optometrist: "Optometrist",
1526
+ "Paramedic/EM Tech": "Paramedic/E.M. Technician",
1527
+ Pharmacist: "Pharmacist",
1528
+ "Social Worker": "Social Worker",
1529
+ "Support Services": "Support Services",
1530
+ Therapist: "Therapist",
1531
+ Veterinarian: "Veterinarian",
1532
+ Caregiver: "Caregiver",
1533
+ "Dry Cleaner/Laundry": "Dry Cleaner/Laundry",
1534
+ "Hair Stylist/Barber": "Hair Stylist/Barber",
1535
+ Housekeeper: "Housekeeper",
1536
+ Manicurist: "Manicurist",
1537
+ Masseuse: "Masseuse",
1538
+ Nanny: "Nanny",
1539
+ "Pet Services": "Pet Services",
1540
+ Baker: "Baker",
1541
+ Bartender: "Bartender",
1542
+ Bellhop: "Bellhop",
1543
+ "Bus Person": "Bus Person",
1544
+ Caterer: "Caterer",
1545
+ Chef: "Chef",
1546
+ Concessionaire: "Concessionaire",
1547
+ Concierge: "Concierge",
1548
+ "Cook-Rest/Cafeteria": "Cook - Restaurant/Cafeteria",
1549
+ "Cook/Wrkr-Fast Food": "Cook/Worker-Fast Food",
1550
+ "Delivery Person": "Delivery Person",
1551
+ "Desk Clerk": "Desk Clerk",
1552
+ Dishwasher: "Dishwasher",
1553
+ "Food Prod/Packing": "Food Production/Packing",
1554
+ "Host/Maitre d": "Host/Maitre d",
1555
+ Manager: "Manager",
1556
+ Valet: "Valet",
1557
+ "Waiter/Waitress": "Waiter/Waitress",
1558
+ "Wine Steward": "Wine Steward",
1559
+ Retired: "Retired",
1560
+ "Activity/Recre.Asst": "Activity/Recreational Assistant",
1561
+ Agent: "Agent",
1562
+ Athlete: "Athlete",
1563
+ "CampCounselor/Lead": "Camp Counselor/Lead",
1564
+ Coach: "Coach",
1565
+ "Director, Program": "Director, Program",
1566
+ "Event Mgr/Promoter": "Event Manager/Promoter",
1567
+ "Life Guard": "Life Guard",
1568
+ "Mgr - Fitness Club": "Manager - Fitness Club",
1569
+ "Sales-Tkt/Mmbrshp": "Sales-Ticket/Membership",
1570
+ "SportsBrdcstr/Journ": "Sports Broadcaster/Journalist",
1571
+ "Trainer/Instructor": "Trainer/Instructor",
1572
+ "Umpire/Referee": "Umpire/Referee",
1573
+ "Graduate Student": "Graduate Student",
1574
+ "High school": "High school",
1575
+ Undergraduate: "Undergraduate",
1576
+ "Air Traffic Control": "Air Traffic Control",
1577
+ "Airport Ops Crew": "Airport Operations Crew",
1578
+ "Bellhop/Porter": "Bellhop/Porter",
1579
+ "Crane Loader/Oper": "Crane Loader/Operator",
1580
+ "Driver-Bus/Strcar": "Driver - Bus/Streetcar",
1581
+ "Driver-Taxi/Limo": "Driver-Taxi/Limo",
1582
+ "Driver-Truck/Delvry": "Driver-Truck/Delivery",
1583
+ "Flight Attendant": "Flight Attendant",
1584
+ "Forklift Operator": "Forklift Operator",
1585
+ Laborer: "Laborer",
1586
+ Longshoreman: "Longshoreman",
1587
+ "Mate/Sailor": "Mate/Sailor",
1588
+ "Mgr Warehse/Dist": "Manager - Warehouse/District",
1589
+ "Parking Lot Attend": "Parking Lot Attendant",
1590
+ "Pilot/Capt/Eng": "Pilot/Captain/Engineer",
1591
+ "Railroad Worker": "Railroad Worker",
1592
+ "Shipping/RecClk": "Shipping/Receiving Clerk",
1593
+ "Subway/LgtRail Oper": "Subway/Light Rail Operator",
1594
+ "Ticket Agent": "Ticket Agent",
1595
+ "Transportation Spec": "Transportation Specialist",
1596
+ Unemployed: "Unemployed"
1597
+ };
1598
+ function We(r, e) {
1599
+ if (typeof r != "string") return r;
1600
+ const t = r.trim();
1601
+ if (!t) return r;
1602
+ if (e[t]) return t;
1603
+ const i = t.toLowerCase();
1604
+ return Object.keys(e).find((a) => a.toLowerCase() === i || e[a]?.toLowerCase() === i) ?? r;
1605
+ }
1606
+ function Ve(r) {
1607
+ return We(r, vr);
1608
+ }
1609
+ function Cr(r) {
1610
+ return We(r, yr);
1611
+ }
1612
+ function Ar(r) {
1613
+ return We(r, Sr);
1614
+ }
1615
+ function gt(r) {
1616
+ return r.trim().toLowerCase();
1617
+ }
1618
+ function Ze(r) {
1619
+ if (typeof r != "string") return null;
1620
+ const e = r.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1621
+ if (!e) return null;
1622
+ const t = Number(e[1]), i = Number(e[2]), o = Number(e[3]);
1623
+ if (!Number.isFinite(t) || !Number.isFinite(i) || !Number.isFinite(o) || i < 1 || i > 12 || o < 1 || o > 31) return null;
1624
+ const a = new Date(Date.UTC(t, i - 1, o));
1625
+ return a.getUTCFullYear() !== t || a.getUTCMonth() !== i - 1 || a.getUTCDate() !== o ? null : a.getTime();
1626
+ }
1627
+ function Ye(r) {
1628
+ let e = null, t = null, i = null;
1629
+ const o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
1630
+ return r.forEach((c) => {
1631
+ const n = String(c.key ?? ""), s = gt(String(c.question ?? ""));
1632
+ (n === "auto_prior_carrier_name" || s.includes("current auto insurance company")) && (e = n), (n === "effective_date" || s.includes("when do you need your insurance to begin")) && (t = n), (n === "auto_prior_expiration_date" || s.includes("when does the current policy expire")) && (i = n), (n === "auto_reason_for_no_insurance" || s.includes("reason you are not currently insured")) && o.add(n), (n === "auto_prior_years" || n === "auto_prior_months" || n === "auto_continuous_coverage_years" || n === "auto_prior_expiration_date" || n === "auto_current_annual_premium_cents" || n === "auto_prior_liability_limit") && a.add(n);
1633
+ }), {
1634
+ currentCarrierKey: e,
1635
+ effectiveDateKey: t,
1636
+ expirationDateKey: i,
1637
+ noInsuranceReasonKeys: o,
1638
+ hideWhenNoPriorInsuranceKeys: a
1639
+ };
459
1640
  }
460
- function je(e) {
461
- if (e instanceof Date && !Number.isNaN(e.getTime())) return e.getTime();
462
- if (typeof e == "string") {
463
- const t = Date.parse(e);
464
- return Number.isNaN(t) ? null : t;
1641
+ function ge(r, e) {
1642
+ if ((e.currentCarrierKey ? r[e.currentCarrierKey] : void 0) === "NoPriorInsurance") return !0;
1643
+ if (!e.effectiveDateKey || !e.expirationDateKey) return !1;
1644
+ const i = Ze(r[e.expirationDateKey]), o = Ze(r[e.effectiveDateKey]);
1645
+ return i == null || o == null ? !1 : i < o;
1646
+ }
1647
+ function Pe(r, e, t) {
1648
+ const i = String(r.key ?? ""), a = (t.currentCarrierKey ? e[t.currentCarrierKey] : void 0) === "NoPriorInsurance";
1649
+ return a && t.hideWhenNoPriorInsuranceKeys.has(i) ? !1 : !t.noInsuranceReasonKeys.has(i) || a ? !0 : ge(e, t);
1650
+ }
1651
+ function Me(r, e) {
1652
+ const t = String(r.key ?? "");
1653
+ return e.noInsuranceReasonKeys.has(t);
1654
+ }
1655
+ const yt = [
1656
+ "ACURA",
1657
+ "ALFA ROMEO",
1658
+ "ASTON MARTIN",
1659
+ "AUDI",
1660
+ "BENTLEY",
1661
+ "BMW",
1662
+ "BUGATTI",
1663
+ "BUICK",
1664
+ "CADILLAC",
1665
+ "CHEVROLET",
1666
+ "CHRYSLER",
1667
+ "CRUISE",
1668
+ "DODGE",
1669
+ "FERRARI",
1670
+ "FIAT",
1671
+ "FORD",
1672
+ "FREIGHTLINER",
1673
+ "GENESIS",
1674
+ "GLOBAL ELECTRIC MOTORS",
1675
+ "GMC",
1676
+ "HONDA",
1677
+ "HYUNDAI",
1678
+ "INFINITI",
1679
+ "JAGUAR",
1680
+ "JEEP",
1681
+ "KARMA AUTOMOTIVE",
1682
+ "KIA",
1683
+ "LAMBORGHINI",
1684
+ "LAND ROVER",
1685
+ "LEXUS",
1686
+ "LINCOLN",
1687
+ "LOTUS",
1688
+ "MASERATI",
1689
+ "MAZDA",
1690
+ "MCLAREN AUTOMOTIVE",
1691
+ "MERCEDES-BENZ",
1692
+ "MINI",
1693
+ "MITSUBISHI",
1694
+ "NISSAN",
1695
+ "POLESTAR",
1696
+ "PORSCHE",
1697
+ "RAM",
1698
+ "ROLLS-ROYCE",
1699
+ "SUBARU",
1700
+ "TESLA",
1701
+ "TOYOTA",
1702
+ "VOLKSWAGEN",
1703
+ "VOLVO"
1704
+ ], er = {
1705
+ 2020: {
1706
+ // Additional makes: static catalog is sparse; year fallback still applies. Expand as Bolt data is imported.
1707
+ TOYOTA: ["CAMRY LE", "CAMRY SE", "COROLLA LE", "COROLLA SE", "RAV4 LE", "HIGHLANDER LE", "TACOMA SR5", "PRIUS LE"],
1708
+ FORD: ["F-150 XL", "F-150 XLT", "ESCAPE SE", "EXPLORER XLT", "MUSTANG GT", "EDGE SEL", "FUSION SE"],
1709
+ CHEVROLET: ["SILVERADO 1500 WT", "EQUINOX LS", "MALIBU LT", "TRAVERSE LS", "TAHOE LS", "BOLT EV LT"],
1710
+ NISSAN: ["ALTIMA S", "SENTRA S", "ROGUE S", "FRONTIER S", "MAXIMA SV", "PATHFINDER S"],
1711
+ HONDA: [
1712
+ "ACCORD EX",
1713
+ "ACCORD EXL",
1714
+ "ACCORD HYBRID",
1715
+ "ACCORD HYBRID EX",
1716
+ "ACCORD HYBRID EXL",
1717
+ "ACCORD LX",
1718
+ "ACCORD SPORT",
1719
+ "ACCORD TOURING",
1720
+ "ACCORD TOURING HYBRID",
1721
+ "CIVIC EX",
1722
+ "CIVIC EXL",
1723
+ "CIVIC LX",
1724
+ "CIVIC SI",
1725
+ "CIVIC SPORT",
1726
+ "CIVIC SPORT TOURING",
1727
+ "CIVIC TOURING",
1728
+ "CIVIC TYPE-R",
1729
+ "CIVIC TYPE-R TOURING",
1730
+ "CLARITY",
1731
+ "CLARITY TOURING",
1732
+ "CR-V EX",
1733
+ "CR-V EXL",
1734
+ "CR-V LX",
1735
+ "CR-V SPORT",
1736
+ "CR-V TOURING",
1737
+ "FIT EX",
1738
+ "FIT EXL",
1739
+ "FIT LX",
1740
+ "FIT SPORT",
1741
+ "HR-V EX",
1742
+ "HR-V EXL",
1743
+ "HR-V LX",
1744
+ "HR-V SPORT",
1745
+ "HR-V TOURING",
1746
+ "INSIGHT EX",
1747
+ "INSIGHT LX",
1748
+ "INSIGHT TOURING",
1749
+ "ODYSSEY ELITE",
1750
+ "ODYSSEY EX",
1751
+ "ODYSSEY EXL",
1752
+ "ODYSSEY LX",
1753
+ "ODYSSEY TOURING",
1754
+ "PASSPORT ELITE",
1755
+ "PASSPORT EXL",
1756
+ "PASSPORT SPORT",
1757
+ "PASSPORT TOURING",
1758
+ "PILOT BLACK",
1759
+ "PILOT ELITE",
1760
+ "PILOT EX",
1761
+ "PILOT EXL",
1762
+ "PILOT LX",
1763
+ "PILOT TOURING",
1764
+ "RIDGELINE BLACK EDITION",
1765
+ "RIDGELINE RTL",
1766
+ "RIDGELINE SPORT"
1767
+ ]
1768
+ }
1769
+ }, rr = {
1770
+ 2020: {
1771
+ TOYOTA: {
1772
+ "CAMRY LE": ["SEDAN 4 Door"],
1773
+ "CAMRY SE": ["SEDAN 4 Door"],
1774
+ "COROLLA LE": ["SEDAN 4 Door"],
1775
+ "COROLLA SE": ["SEDAN 4 Door"],
1776
+ "RAV4 LE": ["SUV 4 Door"],
1777
+ "HIGHLANDER LE": ["SUV 4 Door"],
1778
+ "TACOMA SR5": ["PICKUP 4 Door"],
1779
+ "PRIUS LE": ["HATCHBACK 4 Door"]
1780
+ },
1781
+ FORD: {
1782
+ "F-150 XL": ["PICKUP 4 Door"],
1783
+ "F-150 XLT": ["PICKUP 4 Door"],
1784
+ "ESCAPE SE": ["SUV 4 Door"],
1785
+ "EXPLORER XLT": ["SUV 4 Door"],
1786
+ "MUSTANG GT": ["COUPE 2 Door"],
1787
+ "EDGE SEL": ["SUV 4 Door"],
1788
+ "FUSION SE": ["SEDAN 4 Door"]
1789
+ },
1790
+ CHEVROLET: {
1791
+ "SILVERADO 1500 WT": ["PICKUP 4 Door"],
1792
+ "EQUINOX LS": ["SUV 4 Door"],
1793
+ "MALIBU LT": ["SEDAN 4 Door"],
1794
+ "TRAVERSE LS": ["SUV 4 Door"],
1795
+ "TAHOE LS": ["SUV 4 Door"],
1796
+ "BOLT EV LT": ["HATCHBACK 4 Door"]
1797
+ },
1798
+ NISSAN: {
1799
+ "ALTIMA S": ["SEDAN 4 Door"],
1800
+ "SENTRA S": ["SEDAN 4 Door"],
1801
+ "ROGUE S": ["SUV 4 Door"],
1802
+ "FRONTIER S": ["PICKUP 4 Door"],
1803
+ "MAXIMA SV": ["SEDAN 4 Door"],
1804
+ "PATHFINDER S": ["SUV 4 Door"]
1805
+ },
1806
+ HONDA: {
1807
+ "ACCORD EX": ["SEDAN 4 Front 4L DOHC 16V"]
1808
+ }
1809
+ }
1810
+ };
1811
+ function Be(r) {
1812
+ return String(r ?? "").trim().toUpperCase();
1813
+ }
1814
+ function Re(r, e) {
1815
+ if (!(!e || !r))
1816
+ return e[r] !== void 0 ? r : Object.keys(e).find((t) => t.toUpperCase() === r);
1817
+ }
1818
+ function vt(r) {
1819
+ return Object.keys(r).map((e) => Number(e)).filter((e) => Number.isFinite(e)).sort((e, t) => e - t);
1820
+ }
1821
+ function tr(r, e, t) {
1822
+ const i = r[e], o = Re(t, i), a = o ? i?.[o] : void 0;
1823
+ return !!(a && a.length > 0);
1824
+ }
1825
+ function St(r, e, t) {
1826
+ if (tr(t, r, e)) return r;
1827
+ const i = vt(t), o = Number(r);
1828
+ if (!Number.isFinite(o) || i.length === 0) return;
1829
+ let a, c = 1 / 0;
1830
+ for (const n of i) {
1831
+ const s = String(n);
1832
+ if (!tr(t, s, e)) continue;
1833
+ const f = Math.abs(n - o);
1834
+ f < c && (c = f, a = s);
1835
+ }
1836
+ return a;
1837
+ }
1838
+ function Fe(r, e, t, i) {
1839
+ const o = i[r], a = Re(e, o);
1840
+ if (!a) return;
1841
+ const c = o?.[a], n = Re(t, c);
1842
+ if (!n) return;
1843
+ const s = c?.[n];
1844
+ return s && s.length > 0 ? s : void 0;
1845
+ }
1846
+ function Ct(r, e, t, i) {
1847
+ if (Fe(r, e, t, i)) return r;
1848
+ const o = Object.keys(i).map((s) => Number(s)).filter((s) => Number.isFinite(s)).sort((s, f) => s - f), a = Number(r);
1849
+ if (!Number.isFinite(a) || o.length === 0) return;
1850
+ let c, n = 1 / 0;
1851
+ for (const s of o) {
1852
+ const f = String(s);
1853
+ if (!Fe(f, e, t, i)) continue;
1854
+ const d = Math.abs(s - a);
1855
+ d < n && (n = d, c = f);
1856
+ }
1857
+ return c;
1858
+ }
1859
+ function At(r, e) {
1860
+ const t = String(r ?? "").trim(), i = Be(e);
1861
+ if (!t || !i) return [];
1862
+ const o = St(t, i, er);
1863
+ if (!o) return [];
1864
+ const a = er[o], c = Re(i, a);
1865
+ return c ? [...a[c] ?? []] : [];
1866
+ }
1867
+ function bt(r, e, t) {
1868
+ const i = String(r ?? "").trim(), o = Be(e), a = Be(t);
1869
+ if (!i || !o || !a) return [];
1870
+ const c = Ct(i, o, a, rr);
1871
+ if (!c) return [];
1872
+ const n = Fe(c, o, a, rr);
1873
+ return n ? [...n] : [];
1874
+ }
1875
+ const kt = {
1876
+ // Prior liability limit (ZywavePriorLiabilityLimit format → readable label)
1877
+ None: "None",
1878
+ "30000/60000/25000": "30/60k",
1879
+ "30000/60000/30000": "30/60k",
1880
+ "50000/100000/30000": "50/100k",
1881
+ "50000/100000/50000": "50/100k",
1882
+ "100000/300000/50000": "100/300k",
1883
+ "100000/300000/100000": "100/300k",
1884
+ "250000/500000/100000": "250/500k",
1885
+ "250000/500000/250000": "250/500k",
1886
+ "300000/500000/250000": "300/500k",
1887
+ "300000/500000/300000": "300/500k",
1888
+ "500000/500000/300000": "500k CSL",
1889
+ "500000/500000/500000": "500k CSL",
1890
+ "500000/1000000/300000": "500k/1M",
1891
+ "500000/1000000/500000": "500k/1M"
1892
+ }, Et = {
1893
+ auto_prior_carrier_name: rt,
1894
+ auto_prior_liability_limit: ot,
1895
+ auto_reason_for_no_insurance: at,
1896
+ residence_type: tt,
1897
+ home_prior_carrier_name: nt,
1898
+ policy_bi: st,
1899
+ policy_um: lt,
1900
+ policy_pd: ct,
1901
+ policy_mp: ut,
1902
+ policy_umpd: dt,
1903
+ policy_pip: _t,
1904
+ policy_auto_death_indemnity: ft,
1905
+ vehicle_comp_deductible: Je,
1906
+ vehicle_coll_deductible: Je,
1907
+ vehicle_towing_and_labor: mt,
1908
+ vehicle_transportation_expense: pt,
1909
+ education_level: yr,
1910
+ industry: vr,
1911
+ occupation: Sr,
1912
+ usage: it
1913
+ }, Mt = ["OTHER / NOT LISTED"], Rt = ["SEDAN", "SUV", "COUPE", "HATCHBACK", "PICKUP", "VAN", "WAGON", "OTHER"], Nt = ["Other"];
1914
+ function br(r) {
1915
+ const e = r.getFullYear(), t = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
1916
+ return `${e}-${t}-${i}`;
1917
+ }
1918
+ function wt(r) {
1919
+ const e = r.replace(/\D+/g, "");
1920
+ if (e !== "")
1921
+ return et(e);
1922
+ }
1923
+ function Tt(r) {
1924
+ return r === "-" || r === "+" || r === "." || r === "e" || r === "E";
1925
+ }
1926
+ function Ot(r) {
1927
+ if (r !== "effective_date") return;
1928
+ const e = /* @__PURE__ */ new Date();
1929
+ return e.setDate(e.getDate() + 1), br(e);
1930
+ }
1931
+ function Ae(r) {
1932
+ return r.inputType !== "radio" || !r.options || r.options.length !== 1 || r.options[0] !== "Yes" ? !1 : (r.conditionals ?? []).some((t) => t.conditionalQuestionsAllowMultiple && t.conditionalType === "equals" && t.conditionalValue === "Yes");
1933
+ }
1934
+ function nr(r, e) {
1935
+ return Ae(r) ? "Yes" : e;
1936
+ }
1937
+ function ir(r) {
1938
+ return typeof r == "number" && Number.isFinite(r) ? r : typeof r == "string" && r.trim() !== "" && !Number.isNaN(Number(r)) ? Number(r) : null;
1939
+ }
1940
+ function or(r) {
1941
+ if (r instanceof Date && !Number.isNaN(r.getTime())) return r.getTime();
1942
+ if (typeof r == "string") {
1943
+ const e = Date.parse(r);
1944
+ return Number.isNaN(e) ? null : e;
465
1945
  }
466
1946
  return null;
467
1947
  }
468
- function Be(e, t) {
469
- const r = Me(e), s = Me(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));
1948
+ function ar(r, e) {
1949
+ const t = ir(r), i = ir(e);
1950
+ if (t != null && i != null) return t - i;
1951
+ const o = or(r), a = or(e);
1952
+ return o != null && a != null ? o - a : r == null || e == null ? null : String(r).localeCompare(String(e));
473
1953
  }
474
- function kt(e, t) {
475
- return Array.isArray(e) ? e.some((r) => r === t) : typeof e == "string" ? t != null && e.includes(String(t)) : !1;
1954
+ function It(r, e) {
1955
+ return Array.isArray(r) ? r.some((t) => t === e) : typeof r == "string" ? e != null && r.includes(String(e)) : !1;
476
1956
  }
477
- function le(e, t, r) {
478
- switch (t) {
1957
+ function pe(r, e, t) {
1958
+ switch (e) {
479
1959
  case "equals":
480
- return e === r;
1960
+ return r === t;
481
1961
  case "lessThan": {
482
- const s = Be(e, r);
483
- return s != null && s < 0;
1962
+ const i = ar(r, t);
1963
+ return i != null && i < 0;
484
1964
  }
485
1965
  case "greaterThan": {
486
- const s = Be(e, r);
487
- return s != null && s > 0;
1966
+ const i = ar(r, t);
1967
+ return i != null && i > 0;
488
1968
  }
489
1969
  case "contains":
490
- return kt(e, r);
1970
+ return It(r, t);
491
1971
  case "startsWith":
492
- return e != null && r != null && String(e).startsWith(String(r));
1972
+ return r != null && t != null && String(r).startsWith(String(t));
493
1973
  case "endsWith":
494
- return e != null && r != null && String(e).endsWith(String(r));
1974
+ return r != null && t != null && String(r).endsWith(String(t));
495
1975
  default:
496
1976
  return !1;
497
1977
  }
498
1978
  }
499
- function Se(e, t) {
500
- return t.reduce((r, s) => r?.[s], e);
1979
+ function xe(r, e) {
1980
+ return e.reduce((t, i) => t?.[i], r);
501
1981
  }
502
- function X(e, t, r) {
503
- if (t.length === 0) return e;
504
- const [s, ...n] = t;
505
- if (n.length === 0) {
506
- if (typeof s == "number") {
507
- const v = (Array.isArray(e) ? e : []).slice();
508
- return v[s] = r, v;
1982
+ function ae(r, e, t) {
1983
+ if (e.length === 0) return r;
1984
+ const [i, ...o] = e;
1985
+ if (o.length === 0) {
1986
+ if (typeof i == "number") {
1987
+ const f = (Array.isArray(r) ? r : []).slice();
1988
+ return f[i] = t, f;
509
1989
  }
510
- return { ...e, [s]: r };
1990
+ return { ...r, [i]: t };
511
1991
  }
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") {
514
- const v = (Array.isArray(e) ? e : []).slice();
515
- return v[s] = a, v;
1992
+ const a = r?.[i], c = typeof o[0] == "number" ? Array.isArray(a) ? a : [] : a && typeof a == "object" ? a : {}, n = ae(c, o, t);
1993
+ if (typeof i == "number") {
1994
+ const f = (Array.isArray(r) ? r : []).slice();
1995
+ return f[i] = n, f;
516
1996
  }
517
- return { ...e, [s]: a };
1997
+ return { ...r, [i]: n };
1998
+ }
1999
+ function q(r, e, t) {
2000
+ return xe(r, [...e ?? [], t]);
518
2001
  }
519
- function ce(e, t, r) {
520
- return Se(e, [...t ?? [], r]);
2002
+ function Z(r, e, t, i) {
2003
+ return ae(r, [...e ?? [], t], i);
521
2004
  }
522
- function Nt(e, t, r, s) {
523
- return X(e, [...t ?? [], r], s);
2005
+ function Lt(r, e) {
2006
+ return r?.length ? `${r.join("-")}-${e}` : e;
524
2007
  }
525
- const St = "__items", me = (e) => `${e}${St}`;
526
- function $t(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((S, g) => {
529
- const A = S.conditionalQuestions ? t(S.conditionalQuestions, [...s, `${a}__c${g}`]) : void 0;
530
- return { ...S, conditionalQuestions: A };
2008
+ const Dt = "__items", Ce = (r) => `${r}${Dt}`;
2009
+ function Pt(r) {
2010
+ const e = (t, i) => t.map((o, a) => {
2011
+ const c = i.length ? i.join("__") : "root", n = o.key ?? `${c}__q${a}_${String(o.question).slice(0, 24).replace(/\W+/g, "-") || "field"}`, f = (o.conditionals ?? []).map((d, v) => {
2012
+ const g = d.conditionalQuestions ? e(d.conditionalQuestions, [...i, `${n}__c${v}`]) : void 0;
2013
+ return { ...d, conditionalQuestions: g };
531
2014
  });
532
- return { ...n, key: a, conditionals: v };
2015
+ return { ...o, key: n, conditionals: f };
533
2016
  });
534
- return t(e, []);
2017
+ return e(r, []);
535
2018
  }
536
- function J(e) {
537
- return e == null ? "" : typeof e == "string" ? e : String(e);
2019
+ function oe(r) {
2020
+ return r == null ? "" : typeof r == "string" ? r : String(r);
538
2021
  }
539
- function At(e) {
540
- return e == null ? "" : typeof e == "number" && Number.isFinite(e) || typeof e == "string" ? e : "";
2022
+ function Bt(r) {
2023
+ return r == null ? "" : typeof r == "number" && Number.isFinite(r) || typeof r == "string" ? r : "";
541
2024
  }
542
- function Ct(e) {
543
- return e == null ? "" : typeof e == "string" || typeof e == "number" ? e : String(e);
2025
+ function Ft(r) {
2026
+ return r == null ? "" : typeof r == "string" || typeof r == "number" ? r : String(r);
544
2027
  }
545
- function Tt({
546
- questions: e,
547
- initialValues: t,
548
- controlledValues: r,
549
- onChangeValues: s,
550
- onSubmit: n
2028
+ function xt({
2029
+ questions: r,
2030
+ initialValues: e,
2031
+ controlledValues: t,
2032
+ onChangeValues: i,
2033
+ onSubmit: o
551
2034
  }) {
552
- const i = ae(() => $t(e), [e]), l = ae(() => {
553
- const d = {};
554
- return t && Object.assign(d, t), d;
555
- }, [t]), [a, _] = Q(l);
556
- B(() => {
557
- _(l);
558
- }, [l]);
559
- const [v, S] = Q({}), g = ae(
560
- () => ({ ...v, ...r ?? a }),
561
- [v, r, a]
2035
+ const a = se(() => Pt(r), [r]), c = se(() => Ye(a), [a]), n = se(() => {
2036
+ const y = {};
2037
+ return e && Object.assign(y, e), y;
2038
+ }, [e]), [s, f] = V(n);
2039
+ W(() => {
2040
+ f(n);
2041
+ }, [n]);
2042
+ const [d, v] = V({}), g = se(
2043
+ () => ({ ...d, ...t ?? s }),
2044
+ [d, t, s]
562
2045
  );
563
- B(() => {
564
- r && S((d) => ({ ...d, ...r }));
565
- }, [r]);
566
- const [A, T] = Q({});
567
- function E(d, u) {
568
- const c = d.key, f = d.question, w = ce(g, u, c), $ = A[c], x = (h) => {
569
- let y = Nt(g, u, c, h);
570
- if (d.inputType === "radio" && d.conditionals) {
571
- const p = d.conditionals ?? [];
572
- for (const m of p) {
573
- const j = ce(g, u, c), C = le(j, m.conditionalType, m.conditionalValue), N = le(h, m.conditionalType, m.conditionalValue);
574
- if (C && !N && m.conditionalQuestionsAllowMultiple) {
575
- const k = m.conditionalQuestions ?? [];
576
- if (k.length > 0) {
577
- const F = me(c);
578
- y = X(y, [...u ?? [], F], []);
579
- const L = (Z, q) => {
580
- Z.forEach((z) => {
581
- (z.conditionals ?? []).forEach((K) => {
582
- if (K.conditionalQuestionsAllowMultiple) {
583
- const ee = me(z.key);
584
- y = X(y, [...q, ee], []);
2046
+ W(() => {
2047
+ t && v((y) => ({ ...y, ...t }));
2048
+ }, [t]);
2049
+ const [A, N] = V({});
2050
+ W(() => {
2051
+ let y = g, _ = !1;
2052
+ a.forEach((u) => {
2053
+ if (!Ae(u)) return;
2054
+ const b = String(u.key);
2055
+ q(y, void 0, b) !== "Yes" && (y = Z(y, void 0, b, "Yes"), _ = !0);
2056
+ }), _ && (t && i ? i(y) : f(y), v(y));
2057
+ }, [a, g, t, i]);
2058
+ function G(y, _) {
2059
+ const u = y.key;
2060
+ if (u === "relationship_to_insured" && _) {
2061
+ const p = _[_.length - 1];
2062
+ if (typeof p == "number" && p === 0) return null;
2063
+ }
2064
+ const b = y.question, h = q(g, _, u), E = Me(y, c) ? ge(g, c) : y.required, R = A[u], L = (p) => {
2065
+ let O = Z(g, _, u, p);
2066
+ if (y.inputType === "radio" && y.conditionals) {
2067
+ const m = y.conditionals ?? [];
2068
+ for (const k of m) {
2069
+ const S = q(g, _, u), C = pe(S, k.conditionalType, k.conditionalValue), w = pe(p, k.conditionalType, k.conditionalValue);
2070
+ if (C && !w && k.conditionalQuestionsAllowMultiple) {
2071
+ const H = k.conditionalQuestions ?? [];
2072
+ if (H.length > 0) {
2073
+ const P = Ce(u);
2074
+ O = ae(O, [..._ ?? [], P], []);
2075
+ const $ = (F, D) => {
2076
+ F.forEach((x) => {
2077
+ (x.conditionals ?? []).forEach((U) => {
2078
+ if (U.conditionalQuestionsAllowMultiple) {
2079
+ const z = Ce(x.key);
2080
+ O = ae(O, [...D, z], []);
585
2081
  }
586
- const W = K.conditionalQuestions ?? [];
587
- W.length > 0 && L(W, q);
2082
+ const j = U.conditionalQuestions ?? [];
2083
+ j.length > 0 && $(j, D);
588
2084
  });
589
2085
  });
590
2086
  };
591
- L(k, [...u ?? [], F]);
2087
+ $(H, [..._ ?? [], P]);
592
2088
  }
593
2089
  }
594
2090
  }
595
2091
  }
596
- r && s ? s(y) : _(y), S(y);
2092
+ t && i ? i(O) : f(O), v(O);
597
2093
  };
598
- switch (d.inputType) {
2094
+ if (u === "driver_vehicle_assignments") {
2095
+ const p = g.vehicles__items ?? [], O = g.drivers__items ?? [];
2096
+ if (p.length === 0 || O.length === 0)
2097
+ return /* @__PURE__ */ l("p", { style: { color: "#666", fontStyle: "italic" }, children: "Add vehicles and drivers first to configure driver usage percentages." }, u);
2098
+ const m = g.driver_vehicle_assignments ?? {}, k = (C, w, H) => {
2099
+ const P = { ...m }, $ = `v${C}`;
2100
+ P[$] = { ...P[$] ?? {} }, P[$][`d${w}`] = H, L(P);
2101
+ }, S = (C) => {
2102
+ if (O.length < 2) return null;
2103
+ const w = m[`v${C}`];
2104
+ if (!w) return null;
2105
+ const H = O.map((F, D) => w[`d${D}`] ?? 0), P = H.filter((F) => F > 0);
2106
+ if (P.length >= 2 && P.every((F) => F === P[0]) && P[0] === 50)
2107
+ return `Assignments for Vehicle ${C + 1} cannot be 50 percent for both Drivers.`;
2108
+ const $ = H.reduce((F, D) => F + D, 0);
2109
+ return $ > 0 && $ !== 100 ? `Driver percentages for this vehicle must add up to 100% (currently ${$}%).` : null;
2110
+ };
2111
+ return /* @__PURE__ */ M("div", { children: [
2112
+ /* @__PURE__ */ l("h4", { style: { marginBottom: "12px" }, children: b }),
2113
+ p.map((C, w) => {
2114
+ const H = [C.year, C.make, C.model].filter(Boolean).join(" ") || `Vehicle ${w + 1}`, P = S(w);
2115
+ return /* @__PURE__ */ M(
2116
+ "fieldset",
2117
+ {
2118
+ style: { border: `1px solid ${P ? "#dc3545" : "#ddd"}`, borderRadius: "8px", padding: "16px", marginBottom: "16px" },
2119
+ children: [
2120
+ /* @__PURE__ */ l("legend", { style: { fontWeight: 600, padding: "0 8px" }, children: H }),
2121
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexWrap: "wrap", gap: "12px" }, children: O.map(($, F) => {
2122
+ const D = [$.first_name, $.last_name].filter(Boolean).join(" ") || `Driver ${F + 1}`, x = m[`v${w}`]?.[`d${F}`];
2123
+ return /* @__PURE__ */ l("div", { style: { flex: "0 0 140px" }, children: /* @__PURE__ */ l(
2124
+ Xe,
2125
+ {
2126
+ id: `assignment-v${w}-d${F}`,
2127
+ label: `${D} %`,
2128
+ value: x ?? "",
2129
+ min: 0,
2130
+ max: 100,
2131
+ step: 1,
2132
+ inputMode: "numeric",
2133
+ onChange: (K) => {
2134
+ const U = K.currentTarget.value.replace(/\D+/g, "");
2135
+ k(w, F, U === "" ? 0 : Math.min(100, parseInt(U, 10)));
2136
+ }
2137
+ }
2138
+ ) }, `${w}-${F}`);
2139
+ }) }),
2140
+ P && /* @__PURE__ */ l("p", { style: { color: "#dc3545", fontSize: "0.85rem", marginTop: "8px", marginBottom: 0 }, children: P })
2141
+ ]
2142
+ },
2143
+ w
2144
+ );
2145
+ })
2146
+ ] }, u);
2147
+ }
2148
+ switch (y.inputType) {
599
2149
  case "text":
600
- return /* @__PURE__ */ o(
601
- ot,
2150
+ return /* @__PURE__ */ l(
2151
+ $r,
602
2152
  {
603
- id: c,
604
- label: f,
605
- value: J(w),
606
- onChange: (h) => x(h.currentTarget.value),
607
- "aria-required": d.required || void 0,
608
- error: $
2153
+ id: u,
2154
+ label: b,
2155
+ value: oe(h),
2156
+ onChange: (p) => L(p.currentTarget.value),
2157
+ "aria-required": E || void 0,
2158
+ error: R
609
2159
  },
610
- c
2160
+ u
611
2161
  );
612
2162
  case "email":
613
- return /* @__PURE__ */ o(
614
- ct,
2163
+ return /* @__PURE__ */ l(
2164
+ Gr,
615
2165
  {
616
- id: c,
617
- label: f,
618
- value: J(w),
619
- onChange: (h) => x(h.currentTarget.value),
620
- "aria-required": d.required || void 0,
621
- error: $
2166
+ id: u,
2167
+ label: b,
2168
+ value: oe(h),
2169
+ onChange: (p) => L(p.currentTarget.value),
2170
+ "aria-required": E || void 0,
2171
+ error: R
622
2172
  },
623
- c
2173
+ u
624
2174
  );
625
2175
  case "password":
626
- return /* @__PURE__ */ o(
627
- _t,
2176
+ return /* @__PURE__ */ l(
2177
+ Vr,
628
2178
  {
629
- id: c,
630
- label: f,
631
- value: J(w),
632
- onChange: (h) => x(h.currentTarget.value),
633
- "aria-required": d.required || void 0,
634
- error: $
2179
+ id: u,
2180
+ label: b,
2181
+ value: oe(h),
2182
+ onChange: (p) => L(p.currentTarget.value),
2183
+ "aria-required": E || void 0,
2184
+ error: R
635
2185
  },
636
- c
2186
+ u
637
2187
  );
638
2188
  case "tel":
639
- return /* @__PURE__ */ b(Ue, { children: [
640
- /* @__PURE__ */ o(
641
- dt,
2189
+ return /* @__PURE__ */ M(hr, { children: [
2190
+ /* @__PURE__ */ l(
2191
+ Ur,
642
2192
  {
643
- id: c,
644
- label: f,
645
- value: J(w),
646
- onChange: (h) => x(h.currentTarget.value),
647
- "aria-required": d.required || void 0,
648
- error: $
2193
+ id: u,
2194
+ label: b,
2195
+ value: oe(h),
2196
+ onChange: (p) => L(p.currentTarget.value),
2197
+ "aria-required": E || void 0,
2198
+ error: R
649
2199
  },
650
- c
2200
+ u
651
2201
  ),
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." }),
655
- /* @__PURE__ */ b("p", { children: [
2202
+ u === "phone" && /* @__PURE__ */ M("div", { className: "mt-3 text-xs text-slate-600 space-y-1", children: [
2203
+ /* @__PURE__ */ l("p", { children: "By entering your phone number, you agree to receive a one-time SMS from Credify Insurance with a verification code." }),
2204
+ /* @__PURE__ */ l("p", { children: "Message & data rates may apply. One message per request." }),
2205
+ /* @__PURE__ */ M("p", { children: [
656
2206
  "See our",
657
2207
  " ",
658
- /* @__PURE__ */ o("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Privacy Policy" }),
2208
+ /* @__PURE__ */ l("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Privacy Policy" }),
659
2209
  " ",
660
2210
  "and",
661
2211
  " ",
662
- /* @__PURE__ */ o("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Terms of Service" }),
2212
+ /* @__PURE__ */ l("a", { href: "https://getcredify.com", target: "_blank", rel: "noopener noreferrer", className: "credify-link-underline", children: "Terms of Service" }),
663
2213
  "."
664
2214
  ] })
665
2215
  ] })
666
2216
  ] });
667
2217
  case "url":
668
- return /* @__PURE__ */ o(
669
- ut,
2218
+ return /* @__PURE__ */ l(
2219
+ Wr,
670
2220
  {
671
- id: c,
672
- label: f,
673
- value: J(w),
674
- onChange: (h) => x(h.currentTarget.value),
675
- "aria-required": d.required || void 0,
676
- error: $
2221
+ id: u,
2222
+ label: b,
2223
+ value: oe(h),
2224
+ onChange: (p) => L(p.currentTarget.value),
2225
+ "aria-required": E || void 0,
2226
+ error: R
677
2227
  },
678
- c
2228
+ u
679
2229
  );
680
2230
  case "number":
681
- return /* @__PURE__ */ o(
682
- lt,
2231
+ return /* @__PURE__ */ l(
2232
+ Xe,
683
2233
  {
684
- id: c,
685
- label: f,
686
- value: At(w),
687
- onChange: (h) => x(xt(h.currentTarget.value)),
688
- "aria-required": d.required || void 0,
689
- error: $
2234
+ id: u,
2235
+ label: b,
2236
+ value: Bt(h),
2237
+ min: 0,
2238
+ step: 1,
2239
+ inputMode: "numeric",
2240
+ pattern: "[0-9]*",
2241
+ onKeyDown: (p) => {
2242
+ Tt(p.key) && p.preventDefault();
2243
+ },
2244
+ onChange: (p) => L(wt(p.currentTarget.value)),
2245
+ "aria-required": E || void 0,
2246
+ error: R
690
2247
  },
691
- c
2248
+ u
692
2249
  );
693
2250
  case "textarea":
694
- return /* @__PURE__ */ o(
695
- ft,
2251
+ return /* @__PURE__ */ l(
2252
+ Yr,
696
2253
  {
697
- id: c,
698
- label: f,
699
- value: J(w),
700
- onChange: (h) => x(h.currentTarget.value),
701
- "aria-required": d.required || void 0,
702
- error: $,
2254
+ id: u,
2255
+ label: b,
2256
+ value: oe(h),
2257
+ onChange: (p) => L(p.currentTarget.value),
2258
+ "aria-required": E || void 0,
2259
+ error: R,
703
2260
  rows: 4
704
2261
  },
705
- c
2262
+ u
706
2263
  );
707
- case "date":
708
- return /* @__PURE__ */ o(
709
- mt,
2264
+ case "date": {
2265
+ let p = Ot(u), O = R;
2266
+ if (u === "date_first_licensed" && _) {
2267
+ const m = q(g, _, "date_of_birth");
2268
+ if (typeof m == "string" && m) {
2269
+ const k = new Date(m);
2270
+ if (!isNaN(k.getTime())) {
2271
+ const S = new Date(k);
2272
+ if (S.setFullYear(S.getFullYear() + 16), p = br(S), typeof h == "string" && h) {
2273
+ const C = new Date(h);
2274
+ !isNaN(C.getTime()) && C < S && (O = "Driver must be at least 16 years old at the date first licensed");
2275
+ }
2276
+ }
2277
+ }
2278
+ }
2279
+ return /* @__PURE__ */ l(
2280
+ Kr,
710
2281
  {
711
- id: c,
712
- label: f,
713
- value: J(w),
714
- onChange: (h) => x(h.currentTarget.value),
715
- "aria-required": d.required || void 0,
716
- error: $
2282
+ id: u,
2283
+ label: b,
2284
+ value: oe(h),
2285
+ min: p,
2286
+ onChange: (m) => L(m.currentTarget.value),
2287
+ "aria-required": E || void 0,
2288
+ error: O
717
2289
  },
718
- c
2290
+ u
719
2291
  );
2292
+ }
720
2293
  case "checkbox": {
721
- if (d.options) {
722
- const h = Array.isArray(w) ? w : [];
723
- return /* @__PURE__ */ b("div", { className: "space-y-2", children: [
724
- /* @__PURE__ */ b("div", { className: "form-label", children: [
725
- f,
726
- d.required && /* @__PURE__ */ o("span", { className: "text-red-600 ml-1", children: "*" })
2294
+ if (y.options) {
2295
+ const p = Array.isArray(h) ? h : [];
2296
+ return /* @__PURE__ */ M("div", { className: "space-y-2", children: [
2297
+ /* @__PURE__ */ M("div", { className: "form-label", children: [
2298
+ b,
2299
+ E && /* @__PURE__ */ l("span", { className: "text-red-600 ml-1", children: "*" })
727
2300
  ] }),
728
- /* @__PURE__ */ o("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: d.options.map((y) => {
729
- const p = `${c}-${Ne(y)}`, m = h.includes(y);
730
- return /* @__PURE__ */ o(
731
- Qe,
2301
+ /* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: y.options.map((O) => {
2302
+ const m = `${u}-${De(O)}`, k = p.includes(O);
2303
+ return /* @__PURE__ */ l(
2304
+ ze,
732
2305
  {
733
- id: p,
734
- label: y,
735
- checked: m,
736
- onChange: (j) => {
737
- const C = new Set(h);
738
- j.currentTarget.checked ? C.add(y) : C.delete(y), x(Array.from(C));
2306
+ id: m,
2307
+ label: O,
2308
+ checked: k,
2309
+ onChange: (S) => {
2310
+ const C = new Set(p);
2311
+ S.currentTarget.checked ? C.add(O) : C.delete(O), L(Array.from(C));
739
2312
  },
740
- "aria-required": d.required || void 0
2313
+ "aria-required": E || void 0
741
2314
  },
742
- p
2315
+ m
743
2316
  );
744
2317
  }) }),
745
- $ && /* @__PURE__ */ o("p", { className: "mt-1 text-sm text-red-600", children: $ })
746
- ] }, c);
2318
+ R && /* @__PURE__ */ l("p", { className: "mt-1 text-sm text-red-600", children: R })
2319
+ ] }, u);
747
2320
  }
748
- return /* @__PURE__ */ o(
749
- Qe,
2321
+ return /* @__PURE__ */ l(
2322
+ ze,
750
2323
  {
751
- id: c,
752
- label: d.required ? `${f} *` : f,
753
- checked: !!w,
754
- onChange: (h) => x(h.currentTarget.checked),
755
- "aria-required": d.required || void 0
2324
+ id: u,
2325
+ label: E ? `${b} *` : b,
2326
+ checked: !!h,
2327
+ onChange: (p) => L(p.currentTarget.checked),
2328
+ "aria-required": E || void 0
756
2329
  },
757
- c
2330
+ u
758
2331
  );
759
2332
  }
760
2333
  case "radio": {
761
- const h = d.options ?? [], y = u && u.length > 0 ? `${c}__${u.join("__")}` : c;
762
- return /* @__PURE__ */ o(gt, { legend: f, legendClassName: d.required ? "legend-required" : void 0, children: h.map((p) => /* @__PURE__ */ o(pt, { name: y, value: p, checked: w === p, onChange: () => x(p), children: p }, `${c}-${Ne(p)}`)) }, c);
2334
+ if (Ae(y))
2335
+ return null;
2336
+ const p = y.options ?? [], O = _ && _.length > 0 ? `${u}__${_.join("__")}` : u;
2337
+ return /* @__PURE__ */ l(Qr, { legend: b, legendClassName: E ? "legend-required" : void 0, children: p.map((m) => /* @__PURE__ */ l(jr, { name: O, value: m, checked: h === m, onChange: () => L(m), children: m }, `${u}-${De(m)}`)) }, u);
763
2338
  }
764
2339
  case "select": {
765
- let h = d.options ?? [];
766
- return c === "quote_vehicle_id" && (h = r?.vehicles__items?.map((y) => y.vin) ?? []), /* @__PURE__ */ o(
767
- ht,
2340
+ let p = y.options ?? [];
2341
+ if (u === "quote_vehicle_id" && (p = t?.vehicles__items?.map((m) => m.vin) ?? []), u === "make" && (p = [...yt]), u === "model") {
2342
+ const m = q(g, _, "year"), k = q(g, _, "make");
2343
+ p = At(m, k), p.length === 0 && (p = [...Mt]), typeof h == "string" && h && !p.includes(h) && (p = [h, ...p]);
2344
+ }
2345
+ if (u === "body_style") {
2346
+ const m = q(g, _, "year"), k = q(g, _, "make"), S = q(g, _, "model");
2347
+ p = bt(m, k, S), p.length === 0 && (p = [...Rt]), typeof h == "string" && h && !p.includes(h) && (p = [h, ...p]);
2348
+ }
2349
+ if (u === "occupation") {
2350
+ const m = String(Ve(q(g, _, "industry")) ?? "").trim();
2351
+ p = [
2352
+ ...ht[m] ?? Nt
2353
+ ], typeof h == "string" && h && !p.includes(h) && (p = [h, ...p]);
2354
+ }
2355
+ const O = Lt(_, u);
2356
+ return /* @__PURE__ */ l(
2357
+ qr,
768
2358
  {
769
- id: c,
770
- label: f,
771
- "aria-required": d.required || void 0,
772
- error: $,
773
- value: Ct(w),
774
- onChange: (y) => x(y.currentTarget.value),
2359
+ id: O,
2360
+ label: b,
2361
+ "aria-required": E || void 0,
2362
+ error: R,
2363
+ value: Ft(h),
2364
+ onChange: (m) => {
2365
+ const k = m.currentTarget.value;
2366
+ if (u !== "year" && u !== "make" && u !== "model" && u !== "industry") {
2367
+ L(k);
2368
+ return;
2369
+ }
2370
+ let S = Z(g, _, u, k);
2371
+ u === "year" ? (S = Z(S, _, "make", ""), S = Z(S, _, "model", ""), S = Z(S, _, "body_style", "")) : u === "make" ? (S = Z(S, _, "model", ""), S = Z(S, _, "body_style", "")) : u === "model" ? S = Z(S, _, "body_style", "") : u === "industry" && (S = Z(S, _, "occupation", "")), t && i ? i(S) : f(S), v(S);
2372
+ },
775
2373
  placeholder: "Select an option",
776
- options: h.map((y) => ({ value: y, label: y }))
2374
+ options: p.map((m) => ({
2375
+ value: m,
2376
+ label: Et[u]?.[m] ?? kt[m] ?? m
2377
+ }))
777
2378
  },
778
- c
2379
+ O
779
2380
  );
780
2381
  }
781
2382
  case "address":
782
- return /* @__PURE__ */ o(
783
- wt,
2383
+ return /* @__PURE__ */ l(
2384
+ Zr,
784
2385
  {
785
- id: c,
786
- label: f,
787
- value: J(w),
788
- onChange: (h) => x(h),
789
- "aria-required": d.required || void 0,
790
- error: $
2386
+ id: u,
2387
+ label: b,
2388
+ value: oe(h),
2389
+ onChange: (p) => L(p),
2390
+ "aria-required": E || void 0,
2391
+ error: R
791
2392
  },
792
- c
2393
+ u
793
2394
  );
794
2395
  default:
795
2396
  return null;
796
2397
  }
797
2398
  }
798
- function I(d, u) {
799
- return d.map((c, f) => {
800
- const w = String(c.key), $ = E(c, u), x = c.conditionals ?? [];
801
- if (!x.length) return /* @__PURE__ */ o("div", { children: $ }, `wrap-${w}-${f}`);
802
- const h = ce(g, u, w), y = x.filter((m) => le(h, m.conditionalType, m.conditionalValue)), p = y.length > 1 && !y.some((m) => m.conditionalQuestionsAllowMultiple) ? y.slice(0, 1) : y;
803
- return /* @__PURE__ */ b("div", { children: [
804
- $,
805
- p.map((m, j) => {
806
- const C = m.conditionalQuestions ?? [];
807
- if (!C.length) return null;
2399
+ function Y(y, _) {
2400
+ return y.map((u, b) => {
2401
+ const h = String(u.key);
2402
+ if (!Pe(u, g, c)) return null;
2403
+ const E = G(u, _), R = u.conditionals ?? [];
2404
+ if (!R.length) return /* @__PURE__ */ l("div", { children: E }, `wrap-${h}-${b}`);
2405
+ const L = nr(u, q(g, _, h)), p = R.filter((m) => pe(L, m.conditionalType, m.conditionalValue)), O = p.length > 1 && !p.some((m) => m.conditionalQuestionsAllowMultiple) ? p.slice(0, 1) : p;
2406
+ return /* @__PURE__ */ M("div", { children: [
2407
+ E,
2408
+ O.map((m, k) => {
2409
+ const S = m.conditionalQuestions ?? [];
2410
+ if (!S.length) return null;
808
2411
  if (!m.conditionalQuestionsAllowMultiple)
809
- return /* @__PURE__ */ o("div", { className: "mt-3", children: I(C, u) }, `branch-${w}-${j}`);
810
- const N = me(w), k = Se(g, [...u ?? [], N]) ?? [], F = Math.max(1, k.length || 1), L = () => {
811
- const z = X(g, [...u ?? [], N, k.length], {});
812
- r && s ? s(z) : _(z), S(z);
813
- }, Z = () => {
814
- const z = k.slice(0, Math.max(0, k.length - 1)), V = X(g, [...u ?? [], N], z);
815
- r && s ? s(V) : _(V), S(V);
816
- }, q = `${w}__c${j}`;
817
- return /* @__PURE__ */ b("div", { className: "mt-3", children: [
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" }),
820
- /* @__PURE__ */ b("div", { className: "space-x-2", children: [
821
- /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: L, children: "Add another" }),
822
- F > 1 && /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: Z, children: "Remove last" })
2412
+ return /* @__PURE__ */ l("div", { className: "mt-3", children: Y(S, _) }, `branch-${h}-${k}`);
2413
+ const C = Ce(h), w = xe(g, [..._ ?? [], C]) ?? [], H = Math.max(1, w.length || 1), P = () => {
2414
+ const D = ae(g, [..._ ?? [], C, w.length], {});
2415
+ t && i ? i(D) : f(D), v(D);
2416
+ }, $ = () => {
2417
+ const D = w.slice(0, Math.max(0, w.length - 1)), x = ae(g, [..._ ?? [], C], D);
2418
+ t && i ? i(x) : f(x), v(x);
2419
+ }, F = `${h}__c${k}`;
2420
+ return /* @__PURE__ */ M("div", { className: "mt-3", children: [
2421
+ /* @__PURE__ */ M("div", { className: "flex items-center justify-between mb-2", children: [
2422
+ /* @__PURE__ */ l("div", { className: "text-sm font-medium opacity-75", children: "Add one or more entries" }),
2423
+ /* @__PURE__ */ M("div", { className: "space-x-2", children: [
2424
+ /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: P, children: "Add another" }),
2425
+ H > 1 && /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: $, children: "Remove last" })
823
2426
  ] })
824
2427
  ] }),
825
- Array.from({ length: F }).map((z, V) => {
826
- const K = [...u ?? [], N, V], W = `${q}__i${V}`;
827
- return /* @__PURE__ */ b("div", { className: "rounded-lg border p-3 mb-3", children: [
828
- /* @__PURE__ */ b("div", { className: "text-sm font-semibold mb-2", children: [
829
- "Entry #",
830
- V + 1
2428
+ Array.from({ length: H }).map((D, x) => {
2429
+ const K = [..._ ?? [], C, x], U = `${F}__i${x}`, j = w[x] ?? {}, z = h === "drivers", Q = z ? `Driver #${x + 1}` : `Entry #${x + 1}`, Ir = z && typeof j.ssn_display == "string" && j.ssn_display ? ` — ${j.ssn_display}` : "";
2430
+ return /* @__PURE__ */ M("div", { className: "rounded-lg border p-3 mb-3", children: [
2431
+ /* @__PURE__ */ M("div", { className: "text-sm font-semibold mb-2", children: [
2432
+ Q,
2433
+ Ir
831
2434
  ] }),
832
- C.map((ee) => /* @__PURE__ */ b("div", { className: "mt-3", children: [
833
- E(ee, K),
2435
+ S.map((me) => /* @__PURE__ */ M("div", { className: "mt-3", children: [
2436
+ G(me, K),
834
2437
  (() => {
835
- const Ie = ee.conditionals ?? [];
836
- if (!Ie.length) return null;
837
- const et = ce(g, K, ee.key), ue = Ie.filter((te) => le(et, te.conditionalType, te.conditionalValue));
838
- return (ue.length > 1 && !ue.some((te) => te.conditionalQuestionsAllowMultiple) ? ue.slice(0, 1) : ue).map((te, ye) => {
839
- const be = te.conditionalQuestions ?? [];
840
- if (!be.length) return null;
841
- if (!te.conditionalQuestionsAllowMultiple)
842
- return /* @__PURE__ */ o("div", { className: "mt-3", children: I(be, K) }, `nested-${W}-${ye}`);
843
- const _e = me(ee.key), fe = Se(g, [...K, _e]) ?? [], Re = Math.max(1, fe.length || 1), tt = () => {
844
- const ie = X(g, [...K, _e, fe.length], {});
845
- r && s ? s(ie) : _(ie), S(ie);
846
- }, nt = () => {
847
- const ie = fe.slice(0, Math.max(0, fe.length - 1)), ne = X(g, [...K, _e], ie);
848
- r && s ? s(ne) : _(ne), S(ne);
2438
+ const Qe = me.conditionals ?? [];
2439
+ if (!Qe.length) return null;
2440
+ const Lr = q(g, K, me.key), ye = Qe.filter((le) => pe(Lr, le.conditionalType, le.conditionalValue));
2441
+ return (ye.length > 1 && !ye.some((le) => le.conditionalQuestionsAllowMultiple) ? ye.slice(0, 1) : ye).map((le, Ne) => {
2442
+ const we = le.conditionalQuestions ?? [];
2443
+ if (!we.length) return null;
2444
+ if (!le.conditionalQuestionsAllowMultiple)
2445
+ return /* @__PURE__ */ l("div", { className: "mt-3", children: Y(we, K) }, `nested-${U}-${Ne}`);
2446
+ const ve = Ce(me.key), Se = xe(g, [...K, ve]) ?? [], qe = Math.max(1, Se.length || 1), Dr = () => {
2447
+ const _e = ae(g, [...K, ve, Se.length], {});
2448
+ t && i ? i(_e) : f(_e), v(_e);
2449
+ }, Pr = () => {
2450
+ const _e = Se.slice(0, Math.max(0, Se.length - 1)), ce = ae(g, [...K, ve], _e);
2451
+ t && i ? i(ce) : f(ce), v(ce);
849
2452
  };
850
- return /* @__PURE__ */ b("div", { className: "mt-3", children: [
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" }),
853
- /* @__PURE__ */ b("div", { className: "space-x-2", children: [
854
- /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: tt, children: "Add another" }),
855
- Re > 1 && /* @__PURE__ */ o("button", { type: "button", className: "btn-outline px-3 py-1", onClick: nt, children: "Remove last" })
2453
+ return /* @__PURE__ */ M("div", { className: "mt-3", children: [
2454
+ /* @__PURE__ */ M("div", { className: "flex items-center justify-between mb-2", children: [
2455
+ /* @__PURE__ */ l("div", { className: "text-sm font-medium opacity-75", children: "Add one or more entries" }),
2456
+ /* @__PURE__ */ M("div", { className: "space-x-2", children: [
2457
+ /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: Dr, children: "Add another" }),
2458
+ qe > 1 && /* @__PURE__ */ l("button", { type: "button", className: "btn-outline px-3 py-1", onClick: Pr, children: "Remove last" })
856
2459
  ] })
857
2460
  ] }),
858
- Array.from({ length: Re }).map((ie, ne) => {
859
- const rt = [...K, _e, ne];
860
- return /* @__PURE__ */ b("div", { className: "rounded-lg border p-3 mb-3", children: [
861
- /* @__PURE__ */ b("div", { className: "text-sm font-semibold mb-2", children: [
2461
+ Array.from({ length: qe }).map((_e, ce) => {
2462
+ const Br = [...K, ve, ce];
2463
+ return /* @__PURE__ */ M("div", { className: "rounded-lg border p-3 mb-3", children: [
2464
+ /* @__PURE__ */ M("div", { className: "text-sm font-semibold mb-2", children: [
862
2465
  "Entry #",
863
- ne + 1
2466
+ ce + 1
864
2467
  ] }),
865
- I(be, rt)
866
- ] }, `nested-item-${W}-${ye}-${ne}`);
2468
+ Y(we, Br)
2469
+ ] }, `nested-item-${U}-${Ne}-${ce}`);
867
2470
  })
868
- ] }, `nested-repeat-${W}-${ye}`);
2471
+ ] }, `nested-repeat-${U}-${Ne}`);
869
2472
  });
870
2473
  })()
871
- ] }, `${W}-${String(ee.key)}`))
872
- ] }, `group-${W}`);
2474
+ ] }, `${U}-${String(me.key)}`))
2475
+ ] }, `group-${U}`);
873
2476
  })
874
- ] }, `branch-${w}-${j}`);
2477
+ ] }, `branch-${h}-${k}`);
875
2478
  })
876
- ] }, `wrap-${w}-${f}`);
2479
+ ] }, `wrap-${h}-${b}`);
877
2480
  });
878
2481
  }
879
- const D = ae(() => {
880
- const d = [], u = (c, f) => {
881
- c.forEach((w) => {
882
- d.push(w);
883
- const $ = String(w.key), x = w.conditionals ?? [];
884
- if (!x.length) return;
885
- const h = ce(g, f, $), y = x.filter((m) => le(h, m.conditionalType, m.conditionalValue));
886
- (y.length > 1 && !y.some((m) => m.conditionalQuestionsAllowMultiple) ? y.slice(0, 1) : y).forEach((m) => {
887
- const j = m.conditionalQuestions ?? [];
888
- j.length && (m.conditionalQuestionsAllowMultiple || u(j, f));
2482
+ const B = se(() => {
2483
+ const y = [], _ = (u, b) => {
2484
+ u.forEach((h) => {
2485
+ if (!Pe(h, g, c)) return;
2486
+ Ae(h) || y.push(h);
2487
+ const E = String(h.key), R = h.conditionals ?? [];
2488
+ if (!R.length) return;
2489
+ const L = nr(h, q(g, b, E)), p = R.filter((m) => pe(L, m.conditionalType, m.conditionalValue));
2490
+ (p.length > 1 && !p.some((m) => m.conditionalQuestionsAllowMultiple) ? p.slice(0, 1) : p).forEach((m) => {
2491
+ const k = m.conditionalQuestions ?? [];
2492
+ k.length && (m.conditionalQuestionsAllowMultiple || _(k, b));
889
2493
  });
890
2494
  });
891
2495
  };
892
- return u(i), d;
893
- }, [i, g]);
894
- function M(d) {
895
- d.preventDefault();
896
- const u = he(D, g);
897
- if (T(u), Object.keys(u).length > 0) {
898
- const c = D.findIndex((f) => u[f.key]);
899
- c >= 0 && document.getElementById(D[c].key)?.focus();
2496
+ return _(a), y;
2497
+ }, [a, g, c]);
2498
+ function T(y) {
2499
+ y.preventDefault();
2500
+ const _ = ge(g, c), u = B.map((h) => Me(h, c) ? { ...h, required: _ } : h), b = Ee(u, g);
2501
+ if (N(b), Object.keys(b).length > 0) {
2502
+ const h = B.findIndex((E) => b[E.key]);
2503
+ h >= 0 && document.getElementById(B[h].key)?.focus();
900
2504
  return;
901
2505
  }
902
- n(g);
2506
+ o(g);
903
2507
  }
904
- return /* @__PURE__ */ o("form", { className: "space-y-6 px-1", onSubmit: M, noValidate: !0, children: I(i) });
2508
+ return /* @__PURE__ */ l("form", { className: "space-y-6 px-1", onSubmit: T, noValidate: !0, children: Y(a) });
905
2509
  }
906
- const Et = "GTM-NK8LGHTQ";
907
- function It() {
2510
+ const Ht = "GTM-NK8LGHTQ";
2511
+ function $t() {
908
2512
  return typeof window > "u" ? [] : (window.dataLayer = window.dataLayer ?? [], window.dataLayer);
909
2513
  }
910
- function se(e, t = {}) {
911
- It().push({
912
- event: e,
2514
+ function de(r, e = {}) {
2515
+ $t().push({
2516
+ event: r,
913
2517
  credifyWidget: {
914
- ...t,
915
- containerId: Et
2518
+ ...e,
2519
+ containerId: Ht
916
2520
  }
917
2521
  });
918
2522
  }
919
- function Rt() {
920
- se("credify_widget_opened");
2523
+ function Gt() {
2524
+ de("credify_widget_opened");
921
2525
  }
922
- function Fe() {
923
- se("credify_widget_closed");
2526
+ function sr() {
2527
+ de("credify_widget_closed");
924
2528
  }
925
- function Qt(e) {
926
- se("credify_widget_stage_viewed", e);
2529
+ function Ut(r) {
2530
+ de("credify_widget_stage_viewed", r);
927
2531
  }
928
- function De(e) {
929
- se("credify_widget_stage_completed", e);
2532
+ function lr(r) {
2533
+ de("credify_widget_stage_completed", r);
930
2534
  }
931
- function Mt() {
932
- se("credify_widget_flow_completed");
2535
+ function Wt() {
2536
+ de("credify_widget_flow_completed");
2537
+ }
2538
+ function Vt(r) {
2539
+ de("credify_widget_rates_viewed", r ?? {});
2540
+ }
2541
+ function Yt() {
2542
+ de("credify_widget_rates_back");
933
2543
  }
934
- function jt(e) {
935
- se("credify_widget_rates_viewed", e ?? {});
2544
+ function kr(r) {
2545
+ return r.inputType !== "radio" || !r.options || r.options.length !== 1 || r.options[0] !== "Yes" ? !1 : (r.conditionals ?? []).some((t) => t.conditionalQuestionsAllowMultiple && t.conditionalType === "equals" && t.conditionalValue === "Yes");
936
2546
  }
937
- function Bt() {
938
- se("credify_widget_rates_back");
2547
+ function Er(r, e) {
2548
+ return kr(r) ? "Yes" : e;
939
2549
  }
940
- function Le(e) {
941
- return typeof e == "number" && Number.isFinite(e) ? e : typeof e == "string" && e.trim() !== "" && !Number.isNaN(Number(e)) ? Number(e) : null;
2550
+ function cr(r) {
2551
+ return typeof r == "number" && Number.isFinite(r) ? r : typeof r == "string" && r.trim() !== "" && !Number.isNaN(Number(r)) ? Number(r) : null;
942
2552
  }
943
- function Ke(e) {
944
- if (e instanceof Date && !Number.isNaN(e.getTime())) return e.getTime();
945
- if (typeof e == "string") {
946
- const t = Date.parse(e);
947
- return Number.isNaN(t) ? null : t;
2553
+ function ur(r) {
2554
+ if (r instanceof Date && !Number.isNaN(r.getTime())) return r.getTime();
2555
+ if (typeof r == "string") {
2556
+ const e = Date.parse(r);
2557
+ return Number.isNaN(e) ? null : e;
948
2558
  }
949
2559
  return null;
950
2560
  }
951
- function ze(e, t) {
952
- const r = Le(e), s = Le(t);
953
- if (r != null && s != null) return r - s;
954
- const n = Ke(e), i = Ke(t);
955
- return n != null && i != null ? n - i : e == null || t == null ? null : String(e).localeCompare(String(t));
2561
+ function dr(r, e) {
2562
+ const t = cr(r), i = cr(e);
2563
+ if (t != null && i != null) return t - i;
2564
+ const o = ur(r), a = ur(e);
2565
+ return o != null && a != null ? o - a : r == null || e == null ? null : String(r).localeCompare(String(e));
956
2566
  }
957
- function Ft(e, t) {
958
- return Array.isArray(e) ? e.some((r) => r === t) : typeof e == "string" ? t != null && e.includes(String(t)) : !1;
2567
+ function Kt(r, e) {
2568
+ return Array.isArray(r) ? r.some((t) => t === e) : typeof r == "string" ? e != null && r.includes(String(e)) : !1;
959
2569
  }
960
- function Ge(e, t, r) {
961
- switch (t) {
2570
+ function Mr(r, e, t) {
2571
+ switch (e) {
962
2572
  case "equals":
963
- return e === r;
2573
+ return r === t;
964
2574
  case "lessThan": {
965
- const s = ze(e, r);
966
- return s != null && s < 0;
2575
+ const i = dr(r, t);
2576
+ return i != null && i < 0;
967
2577
  }
968
2578
  case "greaterThan": {
969
- const s = ze(e, r);
970
- return s != null && s > 0;
2579
+ const i = dr(r, t);
2580
+ return i != null && i > 0;
971
2581
  }
972
2582
  case "contains":
973
- return Ft(e, r);
2583
+ return Kt(r, t);
974
2584
  case "startsWith":
975
- return e != null && r != null && String(e).startsWith(String(r));
2585
+ return r != null && t != null && String(r).startsWith(String(t));
976
2586
  case "endsWith":
977
- return e != null && r != null && String(e).endsWith(String(r));
2587
+ return r != null && t != null && String(r).endsWith(String(t));
978
2588
  default:
979
2589
  return !1;
980
2590
  }
981
2591
  }
982
- function We(e, t) {
983
- const r = [];
984
- return ((n) => {
985
- n.forEach((i) => {
986
- r.push(i);
987
- const l = String(i.key), a = t[l], _ = i.conditionals ?? [];
988
- if (!_.length) return;
989
- const v = _.filter((g) => Ge(a, g.conditionalType, g.conditionalValue));
990
- (v.length > 1 && !v.some((g) => g.conditionalQuestionsAllowMultiple) ? v.slice(0, 1) : v).forEach((g) => {
2592
+ function _r(r, e) {
2593
+ const t = Ye(r), i = [];
2594
+ return ((a) => {
2595
+ a.forEach((c) => {
2596
+ if (!Pe(c, e, t)) return;
2597
+ kr(c) || i.push(c);
2598
+ const n = String(c.key), s = Er(c, e[n]), f = c.conditionals ?? [];
2599
+ if (!f.length) return;
2600
+ const d = f.filter((g) => Mr(s, g.conditionalType, g.conditionalValue));
2601
+ (d.length > 1 && !d.some((g) => g.conditionalQuestionsAllowMultiple) ? d.slice(0, 1) : d).forEach((g) => {
991
2602
  const A = g.conditionalQuestions ?? [];
992
- A.length && (g.conditionalQuestionsAllowMultiple || A.forEach((T) => r.push(T)));
2603
+ A.length && (g.conditionalQuestionsAllowMultiple || A.forEach((N) => i.push(N)));
993
2604
  });
994
2605
  });
995
- })(e), r;
996
- }
997
- const Ye = "__items", He = (e) => `${e}${Ye}`;
998
- function $e(e, t) {
999
- for (const r of e) {
1000
- const s = String(r.key), n = t[s], i = r.conditionals ?? [];
1001
- if (!i.length) continue;
1002
- const l = i.filter((_) => Ge(n, _.conditionalType, _.conditionalValue)), a = l.length > 1 && !l.some((_) => _.conditionalQuestionsAllowMultiple) ? l.slice(0, 1) : l;
1003
- for (const _ of a) {
1004
- const v = _.conditionalQuestions ?? [];
1005
- if (!v.length) continue;
1006
- if (!_.conditionalQuestionsAllowMultiple) {
1007
- if ($e(v, t)) return !0;
2606
+ })(r), i;
2607
+ }
2608
+ const Rr = "__items", He = (r) => `${r}${Rr}`;
2609
+ function jt(r, e) {
2610
+ if (r.key === "relationship_to_insured") {
2611
+ const t = e[e.length - 1];
2612
+ return typeof t == "number" && t === 0;
2613
+ }
2614
+ return !1;
2615
+ }
2616
+ function $e(r, e, t = []) {
2617
+ for (const i of r) {
2618
+ const o = String(i.key), a = Er(i, e[o]), c = i.conditionals ?? [];
2619
+ if (!c.length) continue;
2620
+ const n = c.filter((f) => Mr(a, f.conditionalType, f.conditionalValue)), s = n.length > 1 && !n.some((f) => f.conditionalQuestionsAllowMultiple) ? n.slice(0, 1) : n;
2621
+ for (const f of s) {
2622
+ const d = f.conditionalQuestions ?? [];
2623
+ if (!d.length) continue;
2624
+ if (!f.conditionalQuestionsAllowMultiple) {
2625
+ if ($e(d, e, t)) return !0;
1008
2626
  continue;
1009
2627
  }
1010
- const S = t[He(s)] ?? [];
1011
- if (S.length === 0) return !0;
1012
- for (const g of S) {
1013
- const A = he(v, g);
1014
- if (Object.values(A).some(Boolean) || $e(v, g)) return !0;
2628
+ const v = e[He(o)] ?? [];
2629
+ if (v.length === 0) return !0;
2630
+ for (const [g, A] of v.entries()) {
2631
+ const N = [...t, He(o), g], G = d.filter((B) => !jt(B, N)), Y = Ee(G, A);
2632
+ if (Object.values(Y).some(Boolean) || $e(d, A, N)) return !0;
1015
2633
  }
1016
2634
  }
1017
2635
  }
1018
2636
  return !1;
1019
2637
  }
1020
- function Oe(e, t) {
1021
- return $e(e, t);
2638
+ function fr(r, e) {
2639
+ return $e(r, e);
1022
2640
  }
1023
- function Dt({
1024
- stages: e,
1025
- onStageComplete: t,
1026
- onComplete: r,
1027
- initialValues: s,
1028
- initialActive: n
2641
+ function Qt({
2642
+ stages: r,
2643
+ onStageComplete: e,
2644
+ onComplete: t,
2645
+ initialValues: i,
2646
+ initialActive: o
1029
2647
  }) {
1030
- const [i, l] = Q(n ?? 0), [a, _] = Q(s ?? {}), [v, S] = Q({}), [g, A] = Q(!1), [T, E] = Q(!1), [I, D] = Q(null), M = O([]), d = Array.isArray(e) && e.length > 0, u = d ? e[Math.min(i, e.length - 1)] : null, c = u?.key ?? null;
1031
- B(() => {
1032
- n !== void 0 && l(n);
1033
- }, [n]), B(() => {
1034
- const p = M.current[i];
1035
- p && p.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
1036
- }, [i]), B(() => {
1037
- s !== void 0 && _(s);
1038
- }, [s]), B(() => {
1039
- if (!u || !c) {
1040
- A(!1), D(null);
2648
+ const [a, c] = V(o ?? 0), [n, s] = V(i ?? {}), [f, d] = V({}), [v, g] = V(!1), [A, N] = V(!1), [G, Y] = V(null), B = J([]), T = J(r), y = Array.isArray(r) && r.length > 0, _ = y ? r[Math.min(a, r.length - 1)] : null, u = _?.key ?? null;
2649
+ W(() => {
2650
+ o !== void 0 && c(o);
2651
+ }, [o]), W(() => {
2652
+ T.current = r;
2653
+ }, [r]), W(() => {
2654
+ const m = B.current[a];
2655
+ m && m.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
2656
+ }, [a]), W(() => {
2657
+ i !== void 0 && s(i);
2658
+ }, [i]), W(() => {
2659
+ if (!_ || !u) {
2660
+ g(!1), Y(null);
1041
2661
  return;
1042
2662
  }
1043
- if (v[c]) {
1044
- A(!1), D(null);
2663
+ if (f[u]) {
2664
+ g(!1), Y(null);
1045
2665
  return;
1046
2666
  }
1047
- let p = !1;
1048
- return A(!0), D(null), Promise.resolve(u.loadQuestions()).then((m) => {
1049
- if (!p) {
1050
- if (!Array.isArray(m)) throw new Error(`loadQuestions("${c}") did not return an array`);
1051
- S((j) => ({ ...j, [c]: m }));
2667
+ let m = !1;
2668
+ return g(!0), Y(null), Promise.resolve(_.loadQuestions()).then((k) => {
2669
+ if (!m) {
2670
+ if (!Array.isArray(k)) throw new Error(`loadQuestions("${u}") did not return an array`);
2671
+ d((S) => ({ ...S, [u]: k }));
1052
2672
  }
1053
- }).catch((m) => {
1054
- p || D(`Failed to load stage "${u?.title ?? ""}": ${m?.message ?? "Unknown error"}`);
2673
+ }).catch((k) => {
2674
+ m || Y(`Failed to load stage "${_?.title ?? ""}": ${k?.message ?? "Unknown error"}`);
1055
2675
  }).finally(() => {
1056
- p || A(!1);
2676
+ m || g(!1);
1057
2677
  }), () => {
1058
- p = !0;
2678
+ m = !0;
1059
2679
  };
1060
- }, [u, c, v]);
1061
- const f = c ? v[c] : void 0;
1062
- B(() => {
1063
- u && c && f && Qt({
1064
- stageKey: c,
1065
- stageTitle: u.title ?? c,
1066
- stepIndex: i + 1,
1067
- totalSteps: e.length
2680
+ }, [_, u, f]);
2681
+ const b = u ? f[u] : void 0, h = se(() => Ye(b ?? []), [b]);
2682
+ W(() => {
2683
+ _ && u && b && Ut({
2684
+ stageKey: u,
2685
+ stageTitle: _.title ?? u,
2686
+ stepIndex: a + 1,
2687
+ totalSteps: r.length
1068
2688
  });
1069
- }, [c, i, e.length, u, f]);
1070
- const w = ae(() => {
1071
- if (!f) return {};
1072
- const p = {};
2689
+ }, [u, a, r.length, _, b]);
2690
+ const E = se(() => {
2691
+ if (!b) return {};
2692
+ const m = {};
1073
2693
  ((C) => {
1074
- const N = [], k = (F) => {
1075
- F.forEach((L, Z) => {
1076
- const q = Ve(L, Z);
1077
- N.push(q);
1078
- const z = He(q);
1079
- N.push(z), (L.conditionals ?? []).forEach((K) => {
1080
- const W = K.conditionalQuestions ?? [];
1081
- W.length > 0 && k(W);
2694
+ const w = [], H = (P) => {
2695
+ P.forEach(($, F) => {
2696
+ const D = gr($, F);
2697
+ w.push(D);
2698
+ const x = He(D);
2699
+ w.push(x), ($.conditionals ?? []).forEach((U) => {
2700
+ const j = U.conditionalQuestions ?? [];
2701
+ j.length > 0 && H(j);
1082
2702
  });
1083
2703
  });
1084
2704
  };
1085
- return k(C), N;
1086
- })(f).forEach((C) => {
1087
- C in a && (p[C] = a[C]);
2705
+ return H(C), w;
2706
+ })(b).forEach((C) => {
2707
+ C in n && (m[C] = n[C]);
1088
2708
  });
1089
- for (const [C, N] of Object.entries(a))
1090
- C.endsWith(Ye) && !(C in p) && (p[C] = N);
1091
- return p;
1092
- }, [f, a]), $ = (p) => {
1093
- _((m) => ({ ...m, ...p }));
1094
- }, x = () => {
1095
- l((p) => p > 0 ? p - 1 : 0), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" });
1096
- }, h = async () => {
1097
- if (!f || !u || g || I || T) return;
1098
- const p = We(f, a), m = he(p, a), j = Object.values(m).some(Boolean), C = Oe(f, a);
1099
- if (!(j || C)) {
1100
- E(!0);
2709
+ for (const [C, w] of Object.entries(n))
2710
+ C.endsWith(Rr) && !(C in m) && (m[C] = w);
2711
+ return m;
2712
+ }, [b, n]), R = (m) => {
2713
+ s((k) => ({ ...k, ...m }));
2714
+ }, L = () => {
2715
+ c((m) => m > 0 ? m - 1 : 0), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" });
2716
+ }, p = async () => {
2717
+ if (!b || !_ || v || G || A) return;
2718
+ const m = _r(b, n), k = ge(n, h), S = m.map((D) => Me(D, h) ? { ...D, required: k } : D), C = Ee(S, n), w = Object.values(C).some(Boolean), H = fr(b, n), P = n.driver_vehicle_assignments, $ = n.drivers__items ?? [];
2719
+ let F = !1;
2720
+ if (P && $.length >= 2) {
2721
+ const D = n.vehicles__items ?? [];
2722
+ for (let x = 0; x < D.length; x++) {
2723
+ const K = P[`v${x}`];
2724
+ if (!K) continue;
2725
+ const U = $.map((Q, ie) => K[`d${ie}`] ?? 0), j = U.filter((Q) => Q > 0);
2726
+ if (j.length >= 2 && j.every((Q) => Q === 50)) {
2727
+ F = !0;
2728
+ break;
2729
+ }
2730
+ const z = U.reduce((Q, ie) => Q + ie, 0);
2731
+ if (z > 0 && z !== 100) {
2732
+ F = !0;
2733
+ break;
2734
+ }
2735
+ }
2736
+ }
2737
+ if (!(w || H || F)) {
2738
+ N(!0);
1101
2739
  try {
1102
- const N = Math.min(i + 1, e.length - 1), k = i >= e.length - 1, { success: F, error: L } = k ? await r(a, c ?? "") : await t(w, c ?? "");
1103
- if (!F) {
1104
- D(L ?? "An error occurred");
2740
+ const D = a >= r.length - 1, { success: x, error: K } = D ? await t(n, u ?? "") : await e(E, u ?? "");
2741
+ if (!x) {
2742
+ Y(K ?? "An error occurred");
1105
2743
  return;
1106
2744
  }
1107
- k || l(N);
2745
+ if (!D) {
2746
+ const U = T.current, j = U.findIndex((Q) => Q.key === u), z = j >= 0 ? Math.min(j + 1, U.length - 1) : Math.min(a + 1, U.length - 1);
2747
+ c(z);
2748
+ }
1108
2749
  } finally {
1109
- E(!1);
2750
+ N(!1);
2751
+ }
2752
+ }
2753
+ }, O = se(() => {
2754
+ if (!b || v || G || A) return !0;
2755
+ const m = _r(b, n), k = ge(n, h), S = m.map((D) => Me(D, h) ? { ...D, required: k } : D), C = Ee(S, n), w = Object.values(C).some(Boolean), H = fr(b, n), P = n.driver_vehicle_assignments, $ = n.drivers__items ?? [];
2756
+ let F = !1;
2757
+ if (P && $.length >= 2) {
2758
+ const D = n.vehicles__items ?? [];
2759
+ for (let x = 0; x < D.length; x++) {
2760
+ const K = P[`v${x}`];
2761
+ if (!K) continue;
2762
+ const U = $.map((Q, ie) => K[`d${ie}`] ?? 0), j = U.filter((Q) => Q > 0);
2763
+ if (j.length >= 2 && j.every((Q) => Q === 50)) {
2764
+ F = !0;
2765
+ break;
2766
+ }
2767
+ const z = U.reduce((Q, ie) => Q + ie, 0);
2768
+ if (z > 0 && z !== 100) {
2769
+ F = !0;
2770
+ break;
2771
+ }
1110
2772
  }
1111
2773
  }
1112
- }, y = ae(() => {
1113
- if (!f || g || I || T) return !0;
1114
- const p = We(f, a), m = he(p, a), j = Object.values(m).some(Boolean), C = Oe(f, a);
1115
- return j || C;
1116
- }, [f, a, g, I, T]);
1117
- return d ? /* @__PURE__ */ b("div", { className: "space-y-6", children: [
1118
- /* @__PURE__ */ b("div", { className: "form-wizard-steps-header flex items-center justify-between gap-4", children: [
1119
- /* @__PURE__ */ o(
2774
+ return w || H || F;
2775
+ }, [b, n, v, G, A, h]);
2776
+ return y ? /* @__PURE__ */ M("div", { className: "space-y-6", children: [
2777
+ /* @__PURE__ */ M("div", { className: "form-wizard-steps-header flex items-center justify-between gap-4", children: [
2778
+ /* @__PURE__ */ l(
1120
2779
  "ol",
1121
2780
  {
1122
2781
  className: "form-wizard-steps flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",
1123
2782
  style: { scrollbarWidth: "none", msOverflowStyle: "none" },
1124
- children: e.flatMap((p, m) => [
1125
- /* @__PURE__ */ o(
2783
+ children: r.flatMap((m, k) => [
2784
+ /* @__PURE__ */ l(
1126
2785
  "li",
1127
2786
  {
1128
- ref: (j) => {
1129
- M.current[m] = j;
2787
+ ref: (S) => {
2788
+ B.current[k] = S;
1130
2789
  },
1131
- className: `form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap flex-shrink-0 ${m < i ? "bg-blue-600 text-white border-blue-600" : m === i ? "border-blue-600 text-blue-600 bg-white" : "border-slate-200 text-slate-600"}`,
1132
- children: p.title
2790
+ className: `form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap flex-shrink-0 ${k < a ? "bg-blue-600 text-white border-blue-600" : k === a ? "border-blue-600 text-blue-600 bg-white" : "border-slate-200 text-slate-600"}`,
2791
+ children: m.title
1133
2792
  },
1134
- p.key ?? `stage-${m}`
2793
+ m.key ?? `stage-${k}`
1135
2794
  ),
1136
- ...m < e.length - 1 ? [
1137
- /* @__PURE__ */ o("li", { className: "form-wizard-step-arrow text-slate-400 flex-shrink-0", children: "→" }, `arrow-${p.key ?? m}`)
2795
+ ...k < r.length - 1 ? [
2796
+ /* @__PURE__ */ l("li", { className: "form-wizard-step-arrow text-slate-400 flex-shrink-0", children: "→" }, `arrow-${m.key ?? k}`)
1138
2797
  ] : []
1139
2798
  ])
1140
2799
  }
1141
2800
  ),
1142
- /* @__PURE__ */ b("div", { className: "form-wizard-step-counter text-sm text-slate-500 flex-shrink-0", children: [
1143
- Math.min(i + 1, e.length),
2801
+ /* @__PURE__ */ M("div", { className: "form-wizard-step-counter text-sm text-slate-500 flex-shrink-0", children: [
2802
+ Math.min(a + 1, r.length),
1144
2803
  " / ",
1145
- e.length
2804
+ r.length
1146
2805
  ] })
1147
2806
  ] }),
1148
- /* @__PURE__ */ b("div", { children: [
1149
- g && /* @__PURE__ */ o("div", { className: "text-slate-500", children: "Loading…" }),
1150
- u && /* @__PURE__ */ o(
1151
- Tt,
2807
+ /* @__PURE__ */ M("div", { children: [
2808
+ v && /* @__PURE__ */ l("div", { className: "text-slate-500", children: "Loading…" }),
2809
+ _ && /* @__PURE__ */ l(
2810
+ xt,
1152
2811
  {
1153
- questions: f ?? [],
1154
- controlledValues: w,
1155
- onChangeValues: $,
1156
- onSubmit: () => h()
2812
+ questions: b ?? [],
2813
+ controlledValues: E,
2814
+ onChangeValues: R,
2815
+ onSubmit: () => p()
1157
2816
  },
1158
- u.key
2817
+ _.key
1159
2818
  )
1160
2819
  ] }),
1161
- !g && I && /* @__PURE__ */ b("div", { className: "text-red-600 text-sm -mt-4", children: [
1162
- /* @__PURE__ */ o("div", { children: I }),
1163
- u && /* @__PURE__ */ o(
2820
+ !v && G && /* @__PURE__ */ M("div", { className: "text-red-600 text-sm -mt-4", children: [
2821
+ /* @__PURE__ */ l("div", { children: G }),
2822
+ _ && /* @__PURE__ */ l(
1164
2823
  "button",
1165
2824
  {
1166
2825
  type: "button",
1167
2826
  className: "credify-retry-btn underline mt-1 font-bold",
1168
2827
  onClick: () => {
1169
- S((p) => {
1170
- if (!c) return p;
1171
- const m = { ...p };
1172
- return delete m[c], m;
2828
+ d((m) => {
2829
+ if (!u) return m;
2830
+ const k = { ...m };
2831
+ return delete k[u], k;
1173
2832
  });
1174
2833
  },
1175
2834
  children: "Retry"
1176
2835
  }
1177
2836
  )
1178
2837
  ] }),
1179
- /* @__PURE__ */ b("div", { className: i > 0 ? "grid grid-cols-2 gap-3" : "", children: [
1180
- i > 0 && /* @__PURE__ */ o(
2838
+ /* @__PURE__ */ M("div", { className: a > 0 ? "grid grid-cols-2 gap-3" : "", children: [
2839
+ a > 0 && /* @__PURE__ */ l(
1181
2840
  "button",
1182
2841
  {
1183
2842
  type: "button",
1184
- onClick: x,
1185
- disabled: g,
2843
+ onClick: L,
2844
+ disabled: v,
1186
2845
  className: "credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",
1187
2846
  children: "Back"
1188
2847
  }
1189
2848
  ),
1190
- /* @__PURE__ */ b(
2849
+ /* @__PURE__ */ M(
1191
2850
  "button",
1192
2851
  {
1193
2852
  type: "button",
1194
2853
  "data-widget-ctrl": "next",
1195
- onClick: h,
1196
- disabled: y,
2854
+ onClick: p,
2855
+ disabled: O,
1197
2856
  className: [
1198
2857
  "form-wizard-next-btn",
1199
- i > 0 ? "" : "w-full",
2858
+ a > 0 ? "" : "w-full",
1200
2859
  "h-12 rounded-full text-white transition",
1201
2860
  "disabled:opacity-50 disabled:cursor-not-allowed",
1202
2861
  "flex items-center justify-center gap-2",
1203
- y ? "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"
2862
+ O ? "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"
1204
2863
  ].join(" "),
1205
2864
  children: [
1206
- T && /* @__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: [
1207
- /* @__PURE__ */ o("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
1208
- /* @__PURE__ */ o(
2865
+ A && /* @__PURE__ */ M("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: [
2866
+ /* @__PURE__ */ l("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
2867
+ /* @__PURE__ */ l(
1209
2868
  "path",
1210
2869
  {
1211
2870
  className: "opacity-75",
@@ -1214,358 +2873,447 @@ function Dt({
1214
2873
  }
1215
2874
  )
1216
2875
  ] }),
1217
- i === e.length - 1 ? "Finish" : "Next"
2876
+ a === r.length - 1 ? "Finish" : "Next"
1218
2877
  ]
1219
2878
  }
1220
2879
  )
1221
2880
  ] })
1222
- ] }) : /* @__PURE__ */ o("div", { className: "text-slate-600", children: "Loading..." });
2881
+ ] }) : /* @__PURE__ */ l("div", { className: "text-slate-600", children: "Loading..." });
1223
2882
  }
1224
- const Te = "credify_quote_id", Ee = "credify_auth_token";
1225
- function Lt(e) {
2883
+ const Ke = "credify_quote_id", je = "credify_auth_token";
2884
+ function qt(r) {
1226
2885
  try {
1227
- localStorage.setItem(Te, e);
1228
- } catch (t) {
1229
- console.error("Failed to save quoteId to localStorage:", t);
2886
+ localStorage.setItem(Ke, r);
2887
+ } catch (e) {
2888
+ console.error("Failed to save quoteId to localStorage:", e);
1230
2889
  }
1231
2890
  }
1232
- function Kt() {
2891
+ function Xt() {
1233
2892
  try {
1234
- return localStorage.getItem(Te);
1235
- } catch (e) {
1236
- return console.error("Failed to load quoteId from localStorage:", e), null;
2893
+ return localStorage.getItem(Ke);
2894
+ } catch (r) {
2895
+ return console.error("Failed to load quoteId from localStorage:", r), null;
1237
2896
  }
1238
2897
  }
1239
- function Je() {
2898
+ function Nr() {
1240
2899
  try {
1241
- localStorage.removeItem(Te);
1242
- } catch (e) {
1243
- console.error("Failed to clear quoteId from localStorage:", e);
2900
+ localStorage.removeItem(Ke);
2901
+ } catch (r) {
2902
+ console.error("Failed to clear quoteId from localStorage:", r);
1244
2903
  }
1245
2904
  }
1246
- function zt(e) {
2905
+ function zt(r) {
1247
2906
  try {
1248
- localStorage.setItem(Ee, e);
1249
- } catch (t) {
1250
- console.error("Failed to save authToken to localStorage:", t);
2907
+ localStorage.setItem(je, r);
2908
+ } catch (e) {
2909
+ console.error("Failed to save authToken to localStorage:", e);
1251
2910
  }
1252
2911
  }
1253
- function Wt() {
2912
+ function Jt() {
1254
2913
  try {
1255
- return localStorage.getItem(Ee);
1256
- } catch (e) {
1257
- return console.error("Failed to load authToken from localStorage:", e), null;
2914
+ return localStorage.getItem(je);
2915
+ } catch (r) {
2916
+ return console.error("Failed to load authToken from localStorage:", r), null;
1258
2917
  }
1259
2918
  }
1260
- function Xe() {
2919
+ function wr() {
1261
2920
  try {
1262
- localStorage.removeItem(Ee);
1263
- } catch (e) {
1264
- console.error("Failed to clear authToken from localStorage:", e);
2921
+ localStorage.removeItem(je);
2922
+ } catch (r) {
2923
+ console.error("Failed to clear authToken from localStorage:", r);
1265
2924
  }
1266
2925
  }
1267
- function Ot() {
1268
- Je(), Xe();
2926
+ function Zt() {
2927
+ Nr(), wr();
1269
2928
  }
1270
- const Y = "https://api.getcredify.com";
1271
- let oe = null;
1272
- function Pt(e) {
1273
- oe = e, zt(e);
2929
+ const te = "https://api.getcredify.com";
2930
+ let fe = null;
2931
+ function en(r) {
2932
+ fe = r, zt(r);
1274
2933
  }
1275
- function pe() {
1276
- return oe;
2934
+ function be() {
2935
+ return fe;
1277
2936
  }
1278
- function Ae() {
1279
- const e = Wt();
1280
- e && (oe = e);
2937
+ function Ge() {
2938
+ const r = Jt();
2939
+ r && (fe = r);
1281
2940
  }
1282
- function Ze() {
1283
- oe = null, Xe();
2941
+ function Tr() {
2942
+ fe = null, wr();
1284
2943
  }
1285
- async function H(e, t) {
1286
- const r = {
2944
+ async function ne(r, e) {
2945
+ const t = {
1287
2946
  "Content-Type": "application/json"
1288
2947
  };
1289
- oe && (r.Authorization = `Bearer ${oe}`);
1290
- const s = await fetch(e, {
2948
+ fe && (t.Authorization = `Bearer ${fe}`);
2949
+ const i = await fetch(r, {
1291
2950
  method: "POST",
1292
- headers: r,
1293
- body: JSON.stringify(t)
2951
+ headers: t,
2952
+ body: JSON.stringify(e)
1294
2953
  });
1295
- if (!s.ok) {
1296
- let n = `Request failed with status ${s.status}`;
2954
+ if (!i.ok) {
2955
+ let o = `Request failed with status ${i.status}`;
1297
2956
  try {
1298
- n = (await s.json()).error || n;
2957
+ o = (await i.json()).error || o;
1299
2958
  } catch {
1300
- n = s.statusText || n;
2959
+ o = i.statusText || o;
1301
2960
  }
1302
- const i = new Error(n);
1303
- throw i.statusCode = s.status, i;
2961
+ const a = new Error(o);
2962
+ throw a.statusCode = i.status, a;
1304
2963
  }
1305
- return s;
2964
+ return i;
1306
2965
  }
1307
- async function Ut(e) {
1308
- return await (await H(`${Y}/get-questions-by-stage`, { stage: e })).json();
2966
+ async function rn(r) {
2967
+ return await (await ne(`${te}/get-questions-by-stage`, { stage: r })).json();
1309
2968
  }
1310
- async function xe() {
1311
- return await (await H(`${Y}/get-stages-for-quote`, {})).json();
2969
+ async function Ie() {
2970
+ return await (await ne(`${te}/get-stages-for-quote`, {})).json();
1312
2971
  }
1313
- async function Vt(e) {
1314
- const r = await (await H(`${Y}/create-quote`, { phone: e })).json();
1315
- if (!r || typeof r != "object" || !r.quoteId)
1316
- throw new Error(`Invalid createQuote response: ${JSON.stringify(r)}`);
1317
- return r;
2972
+ async function tn(r) {
2973
+ const t = await (await ne(`${te}/create-quote`, { phone: r })).json();
2974
+ if (!t || typeof t != "object" || !t.quoteId)
2975
+ throw new Error(`Invalid createQuote response: ${JSON.stringify(t)}`);
2976
+ return t;
1318
2977
  }
1319
- async function de(e, t, r) {
1320
- const s = { payload: e, getRates: t };
1321
- return r && typeof r == "string" && r.trim() !== "" && (s.quoteId = r), await (await H(`${Y}/update-quote`, s)).json();
2978
+ async function he(r, e, t) {
2979
+ const i = { payload: r, getRates: e };
2980
+ return t && typeof t == "string" && t.trim() !== "" && (i.quoteId = t), await (await ne(`${te}/update-quote`, i)).json();
1322
2981
  }
1323
- async function Gt(e, t) {
1324
- return await (await H(`${Y}/verify-quote`, { quoteId: e, smsCode: t })).json();
2982
+ async function nn(r, e) {
2983
+ return await (await ne(`${te}/verify-quote`, { quoteId: r, smsCode: e })).json();
1325
2984
  }
1326
- async function Yt(e) {
1327
- return await (await H(`${Y}/is-supported-state`, { state: e })).json();
2985
+ async function on(r) {
2986
+ return await (await ne(`${te}/is-supported-state`, { state: r })).json();
1328
2987
  }
1329
- async function Ht() {
1330
- return await (await H(`${Y}/get-rates`, {})).json();
2988
+ async function an() {
2989
+ return await (await ne(`${te}/get-rates`, {})).json();
1331
2990
  }
1332
- async function Jt(e) {
1333
- const t = e ? { quoteId: e } : {};
1334
- return await (await H(`${Y}/get-quote`, t)).json();
2991
+ async function sn(r) {
2992
+ const e = r ? { quoteId: r } : {};
2993
+ return await (await ne(`${te}/get-quote`, e)).json();
1335
2994
  }
1336
- async function Xt(e) {
1337
- const r = await (await H(`${Y}/request-bind`, { quoteRateId: e })).json();
1338
- return r && typeof r == "object" && "success" in r ? r : { success: !0 };
2995
+ async function ln(r) {
2996
+ const t = await (await ne(`${te}/request-bind`, { quoteRateId: r })).json();
2997
+ return t && typeof t == "object" && "success" in t ? t : { success: !0 };
1339
2998
  }
1340
- const Zt = new Intl.NumberFormat("en-US", {
2999
+ const cn = new Intl.NumberFormat("en-US", {
1341
3000
  style: "currency",
1342
3001
  currency: "USD"
1343
3002
  });
1344
- function Pe({ onBack: e }) {
1345
- return /* @__PURE__ */ o(
3003
+ function mr({ onBack: r }) {
3004
+ return /* @__PURE__ */ l(
1346
3005
  "button",
1347
3006
  {
1348
3007
  type: "button",
1349
3008
  onClick: () => {
1350
- Bt(), e?.();
3009
+ Yt(), r?.();
1351
3010
  },
1352
3011
  className: "credify-btn-back credify-btn-back-rates h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition w-full",
1353
3012
  children: "Back"
1354
3013
  }
1355
3014
  );
1356
3015
  }
1357
- function qt({ rates: e, onBack: t }) {
1358
- const r = Array.isArray(e) && e.length > 0, [s, n] = Q({});
1359
- return B(() => {
1360
- Ae();
1361
- }, []), r ? /* @__PURE__ */ b("section", { className: "mt-8", children: [
1362
- /* @__PURE__ */ o("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
1363
- /* @__PURE__ */ o("div", { className: "mt-4 grid gap-4 sm:grid-cols-2 lg:grid-cols-3", children: e.map((i) => {
1364
- const l = i.premium_cents / 100, a = Zt.format(l), _ = i.quote_rate_id, v = s[_] ?? "idle", S = v === "loading", g = v === "success", A = async () => {
1365
- n((T) => ({ ...T, [_]: "loading" }));
3016
+ function un({ rates: r, onBack: e }) {
3017
+ const t = Array.isArray(r) && r.length > 0, [i, o] = V({});
3018
+ return W(() => {
3019
+ Ge();
3020
+ }, []), t ? /* @__PURE__ */ M("section", { className: "mt-8", children: [
3021
+ /* @__PURE__ */ l("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
3022
+ /* @__PURE__ */ l("div", { className: "mt-4 grid gap-4 sm:grid-cols-2 lg:grid-cols-3", children: r.map((a) => {
3023
+ const c = a.premium_cents / 100, n = cn.format(c), s = a.quote_rate_id, f = i[s] ?? "idle", d = f === "loading", v = f === "success", g = async () => {
3024
+ o((A) => ({ ...A, [s]: "loading" }));
1366
3025
  try {
1367
- if (Ae(), !pe())
3026
+ if (Ge(), !be())
1368
3027
  throw new Error("Authentication required. Please verify your phone number first.");
1369
- if (!((await Xt(i.quote_rate_id))?.success !== !1)) throw new Error("Request failed");
1370
- Ot(), Ze(), n((D) => ({ ...D, [_]: "success" }));
3028
+ if (!((await ln(a.quote_rate_id))?.success !== !1)) throw new Error("Request failed");
3029
+ Zt(), Tr(), o((Y) => ({ ...Y, [s]: "success" }));
1371
3030
  } catch {
1372
- n((T) => ({ ...T, [_]: "error" }));
3031
+ o((A) => ({ ...A, [s]: "error" }));
1373
3032
  }
1374
3033
  };
1375
- 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: [
1376
- /* @__PURE__ */ b("div", { className: "mb-4 flex items-center gap-3", children: [
1377
- 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() }),
1378
- /* @__PURE__ */ o("div", { className: "flex-1", children: /* @__PURE__ */ o("h4", { className: "font-semibold text-slate-900", children: i.carrier_name }) })
3034
+ return /* @__PURE__ */ M("div", { className: "flex flex-col rounded-xl border border-slate-200 bg-white p-6 shadow-sm transition hover:shadow-md", children: [
3035
+ /* @__PURE__ */ M("div", { className: "mb-4 flex items-center gap-3", children: [
3036
+ a.carrier_logo_base64 ? /* @__PURE__ */ l("img", { src: `data:image/png;base64,${a.carrier_logo_base64}`, alt: a.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: a.carrier_name.charAt(0).toUpperCase() }),
3037
+ /* @__PURE__ */ l("div", { className: "flex-1", children: /* @__PURE__ */ l("h4", { className: "font-semibold text-slate-900", children: a.carrier_name }) })
1379
3038
  ] }),
1380
- /* @__PURE__ */ b("div", { className: "mb-2", children: [
1381
- /* @__PURE__ */ o("p", { className: "text-sm text-slate-500", children: "Premium" }),
1382
- /* @__PURE__ */ o("p", { className: "text-2xl font-bold text-slate-900", children: a })
3039
+ /* @__PURE__ */ M("div", { className: "mb-2", children: [
3040
+ /* @__PURE__ */ l("p", { className: "text-sm text-slate-500", children: "Premium" }),
3041
+ /* @__PURE__ */ l("p", { className: "text-2xl font-bold text-slate-900", children: n })
1383
3042
  ] }),
1384
- /* @__PURE__ */ b("div", { className: "mb-4", children: [
1385
- /* @__PURE__ */ o("p", { className: "text-sm text-slate-500", children: "Term" }),
1386
- /* @__PURE__ */ b("p", { className: "font-medium text-slate-700", children: [
1387
- i.term_months,
3043
+ /* @__PURE__ */ M("div", { className: "mb-4", children: [
3044
+ /* @__PURE__ */ l("p", { className: "text-sm text-slate-500", children: "Term" }),
3045
+ /* @__PURE__ */ M("p", { className: "font-medium text-slate-700", children: [
3046
+ a.term_months,
1388
3047
  " months"
1389
3048
  ] })
1390
3049
  ] }),
1391
- i.carrier_quote_id && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ b("p", { className: "text-xs text-slate-400", children: [
3050
+ a.carrier_quote_id && /* @__PURE__ */ l("div", { className: "mb-4", children: /* @__PURE__ */ M("p", { className: "text-xs text-slate-400", children: [
1392
3051
  "Quote ID: ",
1393
- i.carrier_quote_id
3052
+ a.carrier_quote_id
1394
3053
  ] }) }),
1395
- /* @__PURE__ */ b("div", { className: "mt-auto pt-4", children: [
1396
- /* @__PURE__ */ o(
3054
+ /* @__PURE__ */ M("div", { className: "mt-auto pt-4", children: [
3055
+ /* @__PURE__ */ l(
1397
3056
  "button",
1398
3057
  {
1399
3058
  type: "button",
1400
- onClick: A,
1401
- disabled: S || g,
1402
- 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 disabled:cursor-not-allowed ${g ? "rates-bind-btn-requested" : "hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500"}`,
1403
- children: S ? "Requesting…" : g ? "Requested" : "Request Bind"
3059
+ onClick: g,
3060
+ disabled: d || v,
3061
+ 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 disabled:cursor-not-allowed ${v ? "rates-bind-btn-requested" : "hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500"}`,
3062
+ children: d ? "Requesting…" : v ? "Requested" : "Request Bind"
1404
3063
  }
1405
3064
  ),
1406
- v === "error" && /* @__PURE__ */ o("p", { className: "mt-2 text-xs text-red-600", children: "Something went wrong. Please try again." }),
1407
- v === "success" && /* @__PURE__ */ o("p", { className: "mt-2 text-xs text-emerald-600", children: "We received your bind request." })
3065
+ f === "error" && /* @__PURE__ */ l("p", { className: "mt-2 text-xs text-red-600", children: "Something went wrong. Please try again." }),
3066
+ f === "success" && /* @__PURE__ */ l("p", { className: "mt-2 text-xs text-emerald-600", children: "We received your bind request." })
1408
3067
  ] })
1409
- ] }, _);
3068
+ ] }, s);
1410
3069
  }) }),
1411
- t && /* @__PURE__ */ o(Pe, { onBack: t })
1412
- ] }) : /* @__PURE__ */ b("section", { className: "mt-8", children: [
1413
- /* @__PURE__ */ o("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
1414
- /* @__PURE__ */ o("p", { className: "mt-2 text-sm text-slate-500", children: "No rates are available at this time." }),
1415
- t && /* @__PURE__ */ o(Pe, { onBack: t })
3070
+ e && /* @__PURE__ */ l(mr, { onBack: e })
3071
+ ] }) : /* @__PURE__ */ M("section", { className: "mt-8", children: [
3072
+ /* @__PURE__ */ l("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
3073
+ /* @__PURE__ */ l("p", { className: "mt-2 text-sm text-slate-500", children: "No rates are available at this time." }),
3074
+ e && /* @__PURE__ */ l(mr, { onBack: e })
1416
3075
  ] });
1417
3076
  }
1418
- function R(e) {
1419
- if (e === !0) return "Yes";
1420
- if (e === !1) return "No";
3077
+ function I(r) {
3078
+ if (r === !0) return "Yes";
3079
+ if (r === !1) return "No";
1421
3080
  }
1422
- function P(e) {
1423
- if (e)
3081
+ function X(r) {
3082
+ if (r)
1424
3083
  try {
1425
- const t = typeof e == "string" ? new Date(e) : e;
1426
- return isNaN(t.getTime()) ? void 0 : t.toISOString().split("T")[0];
3084
+ const e = typeof r == "string" ? new Date(r) : r;
3085
+ return isNaN(e.getTime()) ? void 0 : e.toISOString().split("T")[0];
1427
3086
  } catch {
1428
3087
  return;
1429
3088
  }
1430
3089
  }
1431
- function en(e) {
1432
- const t = {};
1433
- 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);
1434
- const r = [];
1435
- 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));
1436
- const s = [];
1437
- 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 = R(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 = R(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 = R(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 = R(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 = R(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 = R(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 = R(e.retiree_discount)), e.gated_community_discount !== null && e.gated_community_discount !== void 0 && (t.gated_community_discount = R(e.gated_community_discount)), e.multi_policy_discount !== null && e.multi_policy_discount !== void 0 && (t.multi_policy_discount = R(e.multi_policy_discount)), e.non_smoker_discount !== null && e.non_smoker_discount !== void 0 && (t.non_smoker_discount = R(e.non_smoker_discount)), e.first_time_buyer_discount !== null && e.first_time_buyer_discount !== void 0 && (t.first_time_buyer_discount = R(e.first_time_buyer_discount)), e.fire_detection_system !== null && e.fire_detection_system !== void 0 && (t.fire_detection_system = R(e.fire_detection_system)), e.burglar_alarm_system !== null && e.burglar_alarm_system !== void 0 && (t.burglar_alarm_system = R(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 = R(e.smoke_detectors)), e.sprinkler_system !== null && e.sprinkler_system !== void 0 && (t.sprinkler_system = R(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 = R(e.gas_leakage_detector)), e.deadbolt_locks !== null && e.deadbolt_locks !== void 0 && (t.deadbolt_locks = R(e.deadbolt_locks)), e.fire_extinguisher !== null && e.fire_extinguisher !== void 0 && (t.fire_extinguisher = R(e.fire_extinguisher)), e.order_credit_authorized !== null && e.order_credit_authorized !== void 0 && (t.order_credit_authorized = R(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 = R(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 = R(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 = R(e.named_insured_convicted_insurance_fraud)), e.drivers && e.drivers.length > 0 ? (t.drivers = "Yes", t.drivers__items = e.drivers.map((n) => {
1438
- const i = {};
1439
- 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) => {
1440
- const a = {};
1441
- return l.code && (a.code = l.code), l.occurred_at && (a.occurred_at = P(l.occurred_at)), a;
1442
- })), n.driver_accidents && n.driver_accidents.length > 0 && (i.driver_accidents__items = n.driver_accidents.map((l) => {
1443
- const a = {};
1444
- 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;
1445
- })), n.losses && n.losses.length > 0 && (i.losses = n.losses.map((l) => {
1446
- const a = {};
1447
- 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;
1448
- })), i;
1449
- })) : t.drivers = "No", e.vehicles && e.vehicles.length > 0 ? (t.vehicles = "Yes", t.vehicles__items = e.vehicles.map((n) => {
1450
- const i = {};
1451
- 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);
1452
- const l = [];
1453
- 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) => {
1454
- const _ = {};
1455
- return a.type && (_.type = a.type), a.per_person_limit_cents !== null && a.per_person_limit_cents !== void 0 && (_.per_person_limit_cents = a.per_person_limit_cents), a.per_incident_limit_cents !== null && a.per_incident_limit_cents !== void 0 && (_.per_incident_limit_cents = a.per_incident_limit_cents), a.per_incident_limit_percent !== null && a.per_incident_limit_percent !== void 0 && (_.per_incident_limit_percent = a.per_incident_limit_percent), a.per_day_limit_cents !== null && a.per_day_limit_cents !== void 0 && (_.per_day_limit_cents = a.per_day_limit_cents), a.deductible_cents !== null && a.deductible_cents !== void 0 && (_.deductible_cents = a.deductible_cents), a.is_declined !== null && a.is_declined !== void 0 && (_.is_declined = R(a.is_declined)), _;
1456
- })), n.vehicle_lienholders && n.vehicle_lienholders.length > 0 && (i.vehicle_lienholders__items = n.vehicle_lienholders.map((a) => {
1457
- const _ = {};
1458
- return a.name && (_.name = a.name), a.type && (_.type = a.type), a.line_1 && (_.line_1 = a.line_1), a.line_2 && (_.line_2 = a.line_2), a.city && (_.city = a.city), a.state && (_.state = a.state), a.postal_code && (_.postal_code = a.postal_code), a.phone && (_.phone = a.phone), a.fax && (_.fax = a.fax), _;
1459
- })), i;
1460
- })) : t.vehicles = "No", e.losses && e.losses.length > 0 && (t.home_losses__items = e.losses.map((n) => {
1461
- const i = {};
1462
- 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;
3090
+ function dn(r) {
3091
+ const e = r, t = {};
3092
+ 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 = X(e.date_of_birth)), e.product && (t.product = e.product), e.state && (t.state = e.state);
3093
+ const i = [];
3094
+ e.line_1 && i.push(e.line_1), e.line_2 && i.push(e.line_2), e.city && i.push(e.city), e.state && i.push(e.state), e.postal_code && i.push(e.postal_code), i.length > 0 && (t.address = i.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 = X(e.move_in_date));
3095
+ const o = [];
3096
+ e.prior_line_1 && o.push(e.prior_line_1), e.prior_line_2 && o.push(e.prior_line_2), e.prior_city && o.push(e.prior_city), e.prior_state && o.push(e.prior_state), e.prior_postal_code && o.push(e.prior_postal_code), o.length > 0 && (t.prior_address = o.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.is_mailing_address_different !== null && e.is_mailing_address_different !== void 0 && (t.is_mailing_address_different = I(e.is_mailing_address_different)), e.mailing_address && (t.mailing_address = e.mailing_address), e.effective_date && (t.effective_date = X(e.effective_date)), e.auto_has_prior_insurance !== null && e.auto_has_prior_insurance !== void 0 && (t.auto_has_prior_insurance = I(e.auto_has_prior_insurance)), e.auto_prior_expiration_date && (t.auto_prior_expiration_date = X(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 = I(e.auto_cancelled_declined_refused_to_renew)), e.auto_current_annual_premium_cents !== null && e.auto_current_annual_premium_cents !== void 0 && (t.auto_current_annual_premium_cents = e.auto_current_annual_premium_cents), e.policy_bi && (t.policy_bi = e.policy_bi), e.policy_um && (t.policy_um = e.policy_um), e.policy_pd && (t.policy_pd = e.policy_pd), e.policy_mp && (t.policy_mp = e.policy_mp), e.policy_umpd && (t.policy_umpd = e.policy_umpd), e.policy_pip && (t.policy_pip = e.policy_pip), e.policy_auto_death_indemnity && (t.policy_auto_death_indemnity = e.policy_auto_death_indemnity), e.driver_vehicle_assignments && (t.driver_vehicle_assignments = e.driver_vehicle_assignments), e.home_has_prior_insurance !== null && e.home_has_prior_insurance !== void 0 && (t.home_has_prior_insurance = I(e.home_has_prior_insurance)), e.home_prior_expiration_date && (t.home_prior_expiration_date = X(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 = I(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 = I(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 = I(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 = I(e.retiree_discount)), e.gated_community_discount !== null && e.gated_community_discount !== void 0 && (t.gated_community_discount = I(e.gated_community_discount)), e.multi_policy_discount !== null && e.multi_policy_discount !== void 0 && (t.multi_policy_discount = I(e.multi_policy_discount)), e.non_smoker_discount !== null && e.non_smoker_discount !== void 0 && (t.non_smoker_discount = I(e.non_smoker_discount)), e.first_time_buyer_discount !== null && e.first_time_buyer_discount !== void 0 && (t.first_time_buyer_discount = I(e.first_time_buyer_discount)), e.fire_detection_system !== null && e.fire_detection_system !== void 0 && (t.fire_detection_system = I(e.fire_detection_system)), e.burglar_alarm_system !== null && e.burglar_alarm_system !== void 0 && (t.burglar_alarm_system = I(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 = I(e.smoke_detectors)), e.sprinkler_system !== null && e.sprinkler_system !== void 0 && (t.sprinkler_system = I(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 = I(e.gas_leakage_detector)), e.deadbolt_locks !== null && e.deadbolt_locks !== void 0 && (t.deadbolt_locks = I(e.deadbolt_locks)), e.fire_extinguisher !== null && e.fire_extinguisher !== void 0 && (t.fire_extinguisher = I(e.fire_extinguisher)), e.order_credit_authorized !== null && e.order_credit_authorized !== void 0 && (t.order_credit_authorized = I(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 = I(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 = I(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 = I(e.named_insured_convicted_insurance_fraud));
3097
+ const a = {};
3098
+ if (e.vehicles)
3099
+ for (const c of e.vehicles)
3100
+ c.quote_vehicle_id && c.vin && (a[c.quote_vehicle_id] = c.vin);
3101
+ return e.drivers && e.drivers.length > 0 ? (t.drivers = "Yes", t.drivers__items = e.drivers.map((c) => {
3102
+ const n = c, s = {};
3103
+ n.first_name && (s.first_name = n.first_name), n.middle_name && (s.middle_name = n.middle_name), n.last_name && (s.last_name = n.last_name), n.date_of_birth && (s.date_of_birth = X(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.is_registered_owner !== null && n.is_registered_owner !== void 0 && (s.is_registered_owner = n.is_registered_owner ? "Yes" : "No"), 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 = X(n.date_first_licensed)), n.education_level && (s.education_level = Cr(n.education_level)), n.occupation && (s.occupation = Ar(n.occupation)), n.industry && (s.industry = Ve(n.industry)), n.employment_status && (s.employment_status = n.employment_status), n.last_5_years_license_suspended_or_revoked !== null && n.last_5_years_license_suspended_or_revoked !== void 0 && (s.last_5_years_license_suspended_or_revoked = I(n.last_5_years_license_suspended_or_revoked)), n.accident_prevention_course !== null && n.accident_prevention_course !== void 0 && (s.accident_prevention_course = I(n.accident_prevention_course)), n.accident_prevention_course_date && (s.accident_prevention_course_date = X(n.accident_prevention_course_date)), n.sr22 !== null && n.sr22 !== void 0 && (s.sr22 = I(n.sr22));
3104
+ const f = n.ssn_display;
3105
+ typeof f == "string" && (s.ssn_display = f);
3106
+ const d = n.driver_violations;
3107
+ d && d.length > 0 && (s.driver_violations = "Yes", s.driver_violations__items = d.map((A) => {
3108
+ const N = {};
3109
+ return A.code && (N.code = A.code), A.occurred_at && (N.occurred_at = X(A.occurred_at)), N;
3110
+ }));
3111
+ const v = n.driver_accidents;
3112
+ v && v.length > 0 && (s.driver_accidents = "Yes", s.driver_accidents__items = v.map((A) => {
3113
+ const N = {};
3114
+ return A.occurred_at && (N.occurred_at = X(A.occurred_at)), A.description && (N.description = A.description), A.quote_vehicle_id && (N.quote_vehicle_id = a[A.quote_vehicle_id] ?? A.quote_vehicle_id), A.property_damage_amount_paid_cents !== null && A.property_damage_amount_paid_cents !== void 0 && (N.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 && (N.personal_injury_amount_paid_cents = A.personal_injury_amount_paid_cents), N;
3115
+ }));
3116
+ const g = n.losses;
3117
+ return g && g.length > 0 && (s.losses = "Yes", s.losses__items = g.map((A) => {
3118
+ const N = {};
3119
+ return A.description && (N.description = A.description), A.date_of_incident && (N.date_of_incident = X(A.date_of_incident)), A.amount_paid_cents !== null && A.amount_paid_cents !== void 0 && (N.amount_paid_cents = A.amount_paid_cents), A.quote_vehicle_id && (N.quote_vehicle_id = a[A.quote_vehicle_id] ?? A.quote_vehicle_id), N;
3120
+ })), s;
3121
+ })) : t.drivers = "No", e.vehicles && e.vehicles.length > 0 ? (t.vehicles = "Yes", t.vehicles__items = e.vehicles.map((c) => {
3122
+ const n = c, s = {};
3123
+ n.vin && (s.vin = n.vin), n.year !== null && n.year !== void 0 && (s.year = String(n.year)), n.make && (s.make = n.make), n.model && (s.model = n.model), n.body_style && (s.body_style = n.body_style), 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);
3124
+ const f = [];
3125
+ return n.garaging_address_line_1 && f.push(n.garaging_address_line_1), n.garaging_address_line_2 && f.push(n.garaging_address_line_2), n.garaging_address_city && f.push(n.garaging_address_city), n.garaging_address_state && f.push(n.garaging_address_state), n.garaging_address_postal_code && f.push(n.garaging_address_postal_code), f.length > 0 && (s.garaging_address = f.join(", ")), n.new_when_purchased !== null && n.new_when_purchased !== void 0 && (s.new_when_purchased = I(n.new_when_purchased)), n.purchase_date && (s.purchase_date = X(n.purchase_date)), 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.anti_lock_brakes !== null && n.anti_lock_brakes !== void 0 && (s.anti_lock_brakes = I(n.anti_lock_brakes)), n.daytime_running_lights !== null && n.daytime_running_lights !== void 0 && (s.daytime_running_lights = I(n.daytime_running_lights)), n.custom_equipment_value_cents !== null && n.custom_equipment_value_cents !== void 0 && (s.custom_equipment_value_cents = n.custom_equipment_value_cents), n.vehicle_has_modifications !== null && n.vehicle_has_modifications !== void 0 && (s.vehicle_has_modifications = I(n.vehicle_has_modifications)), n.vehicle_garaged_at_residence !== null && n.vehicle_garaged_at_residence !== void 0 && (s.vehicle_garaged_at_residence = I(n.vehicle_garaged_at_residence)), n.vehicle_comp_deductible && (s.vehicle_comp_deductible = n.vehicle_comp_deductible), n.vehicle_coll_deductible && (s.vehicle_coll_deductible = n.vehicle_coll_deductible), n.vehicle_towing_and_labor && (s.vehicle_towing_and_labor = n.vehicle_towing_and_labor), n.vehicle_transportation_expense && (s.vehicle_transportation_expense = n.vehicle_transportation_expense), n.vehicle_full_glass !== null && n.vehicle_full_glass !== void 0 && (s.vehicle_full_glass = I(n.vehicle_full_glass)), n.vehicle_loan_lease !== null && n.vehicle_loan_lease !== void 0 && (s.vehicle_loan_lease = I(n.vehicle_loan_lease)), n.coverages && n.coverages.length > 0 && (s.coverages__items = n.coverages.map((d) => {
3126
+ const v = {};
3127
+ return d.type && (v.type = d.type), d.per_person_limit_cents !== null && d.per_person_limit_cents !== void 0 && (v.per_person_limit_cents = d.per_person_limit_cents), d.per_incident_limit_cents !== null && d.per_incident_limit_cents !== void 0 && (v.per_incident_limit_cents = d.per_incident_limit_cents), d.per_incident_limit_percent !== null && d.per_incident_limit_percent !== void 0 && (v.per_incident_limit_percent = d.per_incident_limit_percent), d.per_day_limit_cents !== null && d.per_day_limit_cents !== void 0 && (v.per_day_limit_cents = d.per_day_limit_cents), d.deductible_cents !== null && d.deductible_cents !== void 0 && (v.deductible_cents = d.deductible_cents), d.is_declined !== null && d.is_declined !== void 0 && (v.is_declined = I(d.is_declined)), v;
3128
+ })), n.vehicle_lienholders && n.vehicle_lienholders.length > 0 && (s.vehicle_lienholders__items = n.vehicle_lienholders.map((d) => {
3129
+ const v = {};
3130
+ return d.name && (v.name = d.name), d.type && (v.type = d.type), d.line_1 && (v.line_1 = d.line_1), d.line_2 && (v.line_2 = d.line_2), d.city && (v.city = d.city), d.state && (v.state = d.state), d.postal_code && (v.postal_code = d.postal_code), d.phone && (v.phone = d.phone), d.fax && (v.fax = d.fax), v;
3131
+ })), s;
3132
+ })) : t.vehicles = "No", e.losses && e.losses.length > 0 && (t.home_losses = "Yes", t.home_losses__items = e.losses.map((c) => {
3133
+ const n = {};
3134
+ return c.description && (n.description = c.description), c.date_of_incident && (n.date_of_incident = X(c.date_of_incident)), c.amount_paid_cents !== null && c.amount_paid_cents !== void 0 && (n.amount_paid_cents = c.amount_paid_cents), n;
1463
3135
  })), t;
1464
3136
  }
1465
- function Ce(e) {
1466
- const t = {}, r = (i) => {
1467
- if (typeof i == "string") {
1468
- if (i === "Yes") return !0;
1469
- if (i === "No") return !1;
3137
+ const _n = /* @__PURE__ */ new Set(["Product", "State", "Driver", "Vehicle"]);
3138
+ function fn(r) {
3139
+ return r ? Array.isArray(r.drivers__items) ? r.drivers__items.length : Array.isArray(r.drivers) ? r.drivers.length : null : null;
3140
+ }
3141
+ function pr(r, e) {
3142
+ if (fn(e) === 1) {
3143
+ const i = r.filter((o) => o.key !== "AutoPolicy");
3144
+ return i.length > 0 ? i : r;
3145
+ }
3146
+ return r;
3147
+ }
3148
+ function Ue(r) {
3149
+ const e = {}, t = (n) => {
3150
+ if (typeof n == "string") {
3151
+ if (n === "Yes") return !0;
3152
+ if (n === "No") return !1;
1470
3153
  }
1471
- return i;
1472
- }, s = Object.keys(e).filter((i) => !i.includes("__items")), n = /* @__PURE__ */ new Set();
1473
- for (const [i, l] of Object.entries(e))
1474
- i.endsWith("__items") && Array.isArray(l) && l.forEach((a) => {
1475
- typeof a == "object" && a !== null && Object.keys(a).forEach((_) => {
1476
- n.add(_);
3154
+ return n;
3155
+ }, i = Object.keys(r).filter((n) => !n.includes("__items")), o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
3156
+ for (const [n, s] of Object.entries(r))
3157
+ n.endsWith("__items") && Array.isArray(s) && (a.add(n.replace("__items", "")), s.forEach((f) => {
3158
+ typeof f == "object" && f !== null && Object.keys(f).forEach((d) => {
3159
+ o.add(d);
1477
3160
  });
1478
- });
1479
- for (const [i, l] of Object.entries(e))
1480
- if (i.endsWith("__items")) {
1481
- const a = i.replace("__items", "");
1482
- if (s.includes(a)) {
1483
- const v = Array.isArray(l) ? l.map((S) => Ce(S)) : l;
1484
- t[a] = v;
3161
+ }));
3162
+ for (const [n, s] of Object.entries(r))
3163
+ if (n.endsWith("__items")) {
3164
+ const f = n.replace("__items", "");
3165
+ if (i.includes(f)) {
3166
+ const v = Array.isArray(s) ? s.map((g) => Ue(g)) : s;
3167
+ e[f] = v;
1485
3168
  }
1486
- } else i.includes("__items") || n.has(i) || (t[i] = r(l));
1487
- return t;
3169
+ } else if (!n.includes("__items")) {
3170
+ if (a.has(n)) continue;
3171
+ o.has(n) || (e[n] = t(s));
3172
+ }
3173
+ const c = e.auto_prior_carrier_name;
3174
+ return typeof c == "string" && c.trim() !== "" && (e.auto_has_prior_insurance = c !== "NoPriorInsurance"), Array.isArray(e.drivers) && (e.drivers = e.drivers.map((n) => {
3175
+ if (!n || typeof n != "object") return n;
3176
+ const s = { ...n };
3177
+ return s.industry = Ve(s.industry), s.education_level = Cr(s.education_level), s.occupation = Ar(s.occupation), s;
3178
+ })), console.log(
3179
+ "[DEBUG_TRANSFORM] transformed.drivers type:",
3180
+ typeof e.drivers,
3181
+ "isArray:",
3182
+ Array.isArray(e.drivers),
3183
+ Array.isArray(e.drivers) ? `count=${e.drivers.length}` : `value=${JSON.stringify(e.drivers)?.slice(0, 100)}`
3184
+ ), Array.isArray(e.drivers) && e.drivers.forEach((n, s) => {
3185
+ const f = n;
3186
+ console.log(`[DEBUG_TRANSFORM] Driver ${s}:`, {
3187
+ first_name: f.first_name,
3188
+ gender: f.gender,
3189
+ marital_status: f.marital_status,
3190
+ education_level: f.education_level,
3191
+ industry: f.industry,
3192
+ occupation: f.occupation,
3193
+ sr22: f.sr22,
3194
+ keys: Object.keys(f)
3195
+ });
3196
+ }), e;
3197
+ }
3198
+ function mn(r, e) {
3199
+ const t = r.findIndex((o) => o.key === e);
3200
+ return t < 0 ? e : r[t + 1]?.key ?? e;
1488
3201
  }
1489
- function tn({ isOpen: e, onClose: t }) {
1490
- const [r, s] = Q([]), [n, i] = Q(null), [l, a] = Q(null), [_, v] = Q(null), [S, g] = Q(void 0), [A, T] = Q(!1);
1491
- function E(M) {
1492
- const d = {
3202
+ function pn(r, e) {
3203
+ return r !== "AutoCurrentCarrier" || e.some((i) => String(i.key) === "auto_cancelled_declined_refused_to_renew") ? e : [
3204
+ ...e,
3205
+ {
3206
+ question: "Has any auto insurance company cancelled, declined or refused to renew you in the last 5 years?",
3207
+ inputType: "radio",
3208
+ options: ["Yes", "No"],
3209
+ key: "auto_cancelled_declined_refused_to_renew",
3210
+ required: !0
3211
+ }
3212
+ ];
3213
+ }
3214
+ function hn(r, e) {
3215
+ if (r !== "Vehicle") return e;
3216
+ const t = (i) => i.map((o) => {
3217
+ const a = o.conditionals?.map((c) => {
3218
+ const n = c.conditionalQuestions ?? [];
3219
+ return n.length ? {
3220
+ ...c,
3221
+ conditionalQuestions: t(n)
3222
+ } : c;
3223
+ });
3224
+ return String(o.key) !== "vin" ? a ? { ...o, conditionals: a } : o : {
3225
+ ...o,
3226
+ required: !1,
3227
+ ...a ? { conditionals: a } : {}
3228
+ };
3229
+ });
3230
+ return t(e);
3231
+ }
3232
+ function gn({ isOpen: r, onClose: e }) {
3233
+ const [t, i] = V([]), [o, a] = V(null), [c, n] = V(null), [s, f] = V(null), [d, v] = V(void 0), [g, A] = V(!1);
3234
+ function N(B) {
3235
+ const T = {
1493
3236
  SMSVerification: "Verify",
1494
3237
  AutoCurrentCarrier: "Current Auto Policy",
1495
- HomeCurrentCarrier: "Current Home Policy"
3238
+ HomeCurrentCarrier: "Current Home Policy",
3239
+ AutoPolicy: "Policy"
1496
3240
  };
1497
- return M.map((u) => ({
1498
- key: u,
1499
- title: d[u] || u,
1500
- loadQuestions: async () => (await Ut(u)).questions
3241
+ return B.map((y) => ({
3242
+ key: y,
3243
+ title: T[y] || y,
3244
+ loadQuestions: async () => {
3245
+ const _ = await rn(y), u = pn(y, _.questions);
3246
+ return hn(y, u);
3247
+ }
1501
3248
  }));
1502
3249
  }
1503
- B(() => {
1504
- e && (async () => {
3250
+ W(() => {
3251
+ r && (async () => {
1505
3252
  try {
1506
- const d = Kt();
1507
- if (Ae(), d) {
1508
- T(!0), i(d);
3253
+ const T = Xt();
3254
+ if (Ge(), T) {
3255
+ A(!0), a(T);
1509
3256
  try {
1510
- const u = pe(), c = await Jt(u ? void 0 : d);
1511
- if (!c || !c.quote)
3257
+ const y = be(), _ = await sn(y ? void 0 : T);
3258
+ if (!_ || !_.quote)
1512
3259
  throw new Error("Invalid response from getQuote: missing quote data");
1513
- const { quote: f } = c, { stages: w } = await xe(), $ = E(w);
1514
- s($);
3260
+ const { quote: u } = _, { stages: b } = await Ie(), h = N(b);
3261
+ i(h);
3262
+ let E;
1515
3263
  try {
1516
- const x = en(f);
1517
- v(x);
1518
- } catch (x) {
1519
- throw new Error(`Failed to transform quote data: ${x instanceof Error ? x.message : "Unknown error"}`);
3264
+ E = dn(u), f(E);
3265
+ } catch (L) {
3266
+ throw new Error(`Failed to transform quote data: ${L instanceof Error ? L.message : "Unknown error"}`);
1520
3267
  }
1521
- if (f.current_stage) {
1522
- const x = $.findIndex((h) => h.key === f.current_stage);
1523
- x >= 0 ? g(x) : g($.length - 1);
3268
+ const R = pr(h, E);
3269
+ if (i(R), u.current_stage) {
3270
+ const L = R.findIndex((p) => p.key === u.current_stage);
3271
+ L >= 0 ? v(L) : v(R.length - 1);
1524
3272
  } else
1525
- g($.length - 1);
1526
- } catch (u) {
1527
- u.statusCode === 404 ? (Je(), i(null)) : Ze();
3273
+ v(R.length - 1);
3274
+ } catch (y) {
3275
+ y.statusCode === 404 ? (Nr(), a(null)) : Tr();
1528
3276
  } finally {
1529
- T(!1);
3277
+ A(!1);
1530
3278
  }
1531
3279
  } else {
1532
- const { stages: u } = await xe();
1533
- s(E(u));
3280
+ const { stages: y } = await Ie();
3281
+ i(N(y));
1534
3282
  }
1535
3283
  } catch {
1536
- T(!1);
3284
+ A(!1);
1537
3285
  }
1538
3286
  })();
1539
- }, [e]), B(() => {
1540
- if (!e) return;
1541
- const { overflow: M } = document.body.style;
3287
+ }, [r]), W(() => {
3288
+ if (!r) return;
3289
+ const { overflow: B } = document.body.style;
1542
3290
  return document.body.style.overflow = "hidden", () => {
1543
- document.body.style.overflow = M;
3291
+ document.body.style.overflow = B;
1544
3292
  };
1545
- }, [e]);
1546
- const I = st(
1547
- (M) => {
1548
- M.key === "Escape" && (Fe(), t());
3293
+ }, [r]);
3294
+ const G = Fr(
3295
+ (B) => {
3296
+ B.key === "Escape" && (sr(), e());
1549
3297
  },
1550
- [t]
3298
+ [e]
1551
3299
  );
1552
- return B(() => {
1553
- if (e)
1554
- return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
1555
- }, [e, I]), B(() => {
1556
- e || (v(null), g(void 0), T(!1));
1557
- }, [e]), B(() => {
1558
- e && Rt();
1559
- }, [e]), B(() => {
1560
- l && Array.isArray(l) && jt({ rateCount: l.length });
1561
- }, [l]), 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: [
1562
- /* @__PURE__ */ o("div", { className: "backdrop", "aria-hidden": "true" }),
1563
- /* @__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: [
1564
- /* @__PURE__ */ o(
3300
+ return W(() => {
3301
+ if (r)
3302
+ return window.addEventListener("keydown", G), () => window.removeEventListener("keydown", G);
3303
+ }, [r, G]), W(() => {
3304
+ r || (f(null), v(void 0), A(!1));
3305
+ }, [r]), W(() => {
3306
+ r && Gt();
3307
+ }, [r]), W(() => {
3308
+ c && Array.isArray(c) && Vt({ rateCount: c.length });
3309
+ }, [c]), r ? /* @__PURE__ */ M("div", { className: "fixed inset-0 z-[9999] flex items-center justify-center", role: "dialog", "aria-modal": "true", "aria-labelledby": "insurance-modal-title", children: [
3310
+ /* @__PURE__ */ l("div", { className: "backdrop", "aria-hidden": "true" }),
3311
+ /* @__PURE__ */ M("div", { className: "modal-panel bg-white relative w-full max-w-2xl flex flex-col max-h-[90vh] overflow-hidden", role: "document", children: [
3312
+ /* @__PURE__ */ l(
1565
3313
  "button",
1566
3314
  {
1567
3315
  onClick: () => {
1568
- Fe(), t();
3316
+ sr(), e();
1569
3317
  },
1570
3318
  className: "modal-close-btn absolute top-4 right-4 text-slate-400 hover:text-slate-600 text-xl",
1571
3319
  "aria-label": "Close",
@@ -1573,118 +3321,125 @@ function tn({ isOpen: e, onClose: t }) {
1573
3321
  children: "×"
1574
3322
  }
1575
3323
  ),
1576
- /* @__PURE__ */ b("div", { className: "text-center mb-6", children: [
1577
- /* @__PURE__ */ o("h2", { id: "insurance-modal-title", className: "h1-title", children: "Let's get you the best insurance rates." }),
1578
- /* @__PURE__ */ o("p", { className: "p-subtitle", children: "This should only take a few minutes." })
3324
+ /* @__PURE__ */ M("div", { className: "text-center mb-6", children: [
3325
+ /* @__PURE__ */ l("h2", { id: "insurance-modal-title", className: "h1-title", children: "Let's get you the best insurance rates." }),
3326
+ /* @__PURE__ */ l("p", { className: "p-subtitle", children: "This should only take a few minutes." })
1579
3327
  ] }),
1580
- /* @__PURE__ */ b("div", { className: "panel-body flex-1 min-h-0 overflow-y-auto", children: [
1581
- !l && /* @__PURE__ */ o(Ue, { 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(
1582
- Dt,
3328
+ /* @__PURE__ */ M("div", { className: "panel-body flex-1 min-h-0 overflow-y-auto", children: [
3329
+ !c && /* @__PURE__ */ l(hr, { children: g || t.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(
3330
+ Qt,
1583
3331
  {
1584
- stages: r,
1585
- initialValues: _ ?? void 0,
1586
- initialActive: S,
1587
- onStageComplete: async (M, d) => {
3332
+ stages: t,
3333
+ initialValues: s ?? void 0,
3334
+ initialActive: d,
3335
+ onStageComplete: async (B, T) => {
1588
3336
  try {
1589
- const u = Ce(M), { stages: c } = await xe(), f = E(c);
1590
- s(f);
1591
- const w = f.findIndex((p) => p.key === d), $ = f[w], x = w + 1, y = (x < f.length ? f[x] : null)?.key || d;
1592
- if (n)
1593
- if (d === "SMSVerification") {
1594
- const { isVerified: p, token: m } = await Gt(n, u.sms_code);
1595
- if (!p)
3337
+ const y = Ue(B);
3338
+ let _ = t;
3339
+ const u = _.findIndex((E) => E.key === T), b = _[u], h = mn(_, T);
3340
+ if (o)
3341
+ if (T === "SMSVerification") {
3342
+ const { isVerified: E, token: R } = await nn(o, y.sms_code);
3343
+ if (!E)
1596
3344
  throw new Error("Invalid SMS code");
1597
- m && Pt(m), await de({ current_stage: y }, !1);
1598
- } else if (d === "State") {
1599
- const { isSupported: p } = await Yt(u.state);
1600
- if (!p)
3345
+ R && en(R), await he({ current_stage: h }, !1);
3346
+ } else if (T === "State") {
3347
+ const { isSupported: E } = await on(y.state);
3348
+ if (!E)
1601
3349
  throw new Error("State is not supported");
1602
- const m = pe();
1603
- await de({ ...u, current_stage: y }, !1, m ? void 0 : n);
3350
+ const R = be();
3351
+ await he({ ...y, current_stage: h }, !1, R ? void 0 : o);
1604
3352
  } else {
1605
- const p = pe();
1606
- await de({ ...u, current_stage: y }, !1, p ? void 0 : n || void 0);
3353
+ const E = be();
3354
+ await he({ ...y, current_stage: h }, !1, E ? void 0 : o || void 0);
1607
3355
  }
1608
3356
  else {
1609
- const m = (await Vt(u.phone))?.quoteId;
1610
- if (!m || typeof m != "string" || m.trim() === "")
1611
- throw new Error(`Failed to create quote - invalid quoteId returned: ${m}`);
1612
- i(m), Lt(m), await de({ current_stage: y }, !1, m);
3357
+ const R = (await tn(y.phone))?.quoteId;
3358
+ if (!R || typeof R != "string" || R.trim() === "")
3359
+ throw new Error(`Failed to create quote - invalid quoteId returned: ${R}`);
3360
+ a(R), qt(R), await he({ current_stage: h }, !1, R);
1613
3361
  }
1614
- return De({
1615
- stageKey: d,
1616
- stageTitle: $?.title ?? d,
1617
- stepIndex: w + 1,
1618
- totalSteps: f.length
3362
+ if (_n.has(T))
3363
+ try {
3364
+ const { stages: E } = await Ie();
3365
+ _ = N(E), _ = pr(_, B), i(_);
3366
+ } catch (E) {
3367
+ console.warn("Unable to refresh stages after flow-shaping step", E);
3368
+ }
3369
+ return lr({
3370
+ stageKey: T,
3371
+ stageTitle: b?.title ?? T,
3372
+ stepIndex: u + 1,
3373
+ totalSteps: _.length
1619
3374
  }), { success: !0 };
1620
- } catch (u) {
1621
- return { success: !1, error: u instanceof Error ? u.message : "An error occurred" };
3375
+ } catch (y) {
3376
+ return { success: !1, error: y instanceof Error ? y.message : "An error occurred" };
1622
3377
  }
1623
3378
  },
1624
- onComplete: async (M) => {
3379
+ onComplete: async (B) => {
1625
3380
  try {
1626
- const d = Ce(M);
1627
- if (!n)
3381
+ const T = Ue(B);
3382
+ if (!o)
1628
3383
  throw new Error("Quote ID is required");
1629
- await de(d, !0), v(M);
1630
- const { rates: u } = await Ht();
1631
- a(u);
1632
- const c = r.length, f = r[c - 1];
1633
- return De({
1634
- stageKey: f?.key ?? "unknown",
1635
- stageTitle: f?.title ?? "unknown",
1636
- stepIndex: c,
1637
- totalSteps: c
1638
- }), Mt(), { success: !0 };
1639
- } catch (d) {
1640
- return { success: !1, error: d instanceof Error ? d.message : "An error occurred" };
3384
+ await he(T, !0), f(B);
3385
+ const { rates: y } = await an();
3386
+ n(y);
3387
+ const _ = t.length, u = t[_ - 1];
3388
+ return lr({
3389
+ stageKey: u?.key ?? "unknown",
3390
+ stageTitle: u?.title ?? "unknown",
3391
+ stepIndex: _,
3392
+ totalSteps: _
3393
+ }), Wt(), { success: !0 };
3394
+ } catch (T) {
3395
+ return { success: !1, error: T instanceof Error ? T.message : "An error occurred" };
1641
3396
  }
1642
3397
  }
1643
3398
  }
1644
3399
  ) }),
1645
3400
  " ",
1646
- l && n && /* @__PURE__ */ o(qt, { rates: l, onBack: () => a(null) })
3401
+ c && o && /* @__PURE__ */ l(un, { rates: c, onBack: () => n(null) })
1647
3402
  ] }),
1648
- /* @__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." }) })
3403
+ /* @__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." }) })
1649
3404
  ] })
1650
3405
  ] }) : null;
1651
3406
  }
1652
- function nn({ isOpen: e }) {
1653
- return /* @__PURE__ */ o(
1654
- tn,
3407
+ function yn({ isOpen: r }) {
3408
+ return /* @__PURE__ */ l(
3409
+ gn,
1655
3410
  {
1656
- isOpen: e,
3411
+ isOpen: r,
1657
3412
  onClose: () => {
1658
- qe.close();
3413
+ Or.close();
1659
3414
  }
1660
3415
  }
1661
3416
  );
1662
3417
  }
1663
- let G = null, re = null, ge = !1;
1664
- function rn() {
1665
- G || (G = document.createElement("div"), G.id = "insurance-widget-root", document.documentElement.appendChild(G)), !re && G && (re = at(G));
3418
+ let re = null, ue = null, ke = !1;
3419
+ function vn() {
3420
+ re || (re = document.createElement("div"), re.id = "insurance-widget-root", document.documentElement.appendChild(re)), !ue && re && (ue = Hr(re));
1666
3421
  }
1667
- function ke() {
1668
- rn(), re && re.render(it(nn, { isOpen: ge }));
3422
+ function Le() {
3423
+ vn(), ue && ue.render(xr(yn, { isOpen: ke }));
1669
3424
  }
1670
- function sn() {
1671
- re && G && (re.unmount(), G.remove()), re = null, G = null;
3425
+ function Sn() {
3426
+ ue && re && (ue.unmount(), re.remove()), ue = null, re = null;
1672
3427
  }
1673
- const qe = {
1674
- init: (e) => {
1675
- ge = !!e?.autoOpen, ke();
3428
+ const Or = {
3429
+ init: (r) => {
3430
+ ke = !!r?.autoOpen, Le();
1676
3431
  },
1677
3432
  open: () => {
1678
- ge = !0, ke();
3433
+ ke = !0, Le();
1679
3434
  },
1680
3435
  close: () => {
1681
- ge = !1, ke();
3436
+ ke = !1, Le();
1682
3437
  },
1683
- destroy: sn
3438
+ destroy: Sn
1684
3439
  };
1685
- typeof window < "u" && (window.CredifyInsuranceWidget = qe);
3440
+ typeof window < "u" && (window.CredifyInsuranceWidget = Or);
1686
3441
  export {
1687
- qe as CredifyInsuranceWidget,
1688
- qe as default
3442
+ Or as CredifyInsuranceWidget,
3443
+ Or as default
1689
3444
  };
1690
3445
  //# sourceMappingURL=index.es.js.map