@getcredify/credify-insurance-widget 1.12.1 → 1.12.3

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.umd.js CHANGED
@@ -72,5 +72,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
72
72
  .iq-status-text {
73
73
  animation: statusFadeIn 0.25s ease forwards;
74
74
  }
75
- `}),c.jsx("div",{style:{background:"#F8FAFC",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem",fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",height:"100%",minHeight:400,overflowY:"auto"},children:c.jsxs("div",{style:{width:"100%",maxWidth:560},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[c.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:i.accent+"12",border:`1px solid ${i.accent}30`,borderRadius:100,padding:"6px 16px",marginBottom:16},children:[c.jsx("span",{style:{fontSize:14},children:i.icon}),c.jsx("span",{style:{fontSize:12,fontWeight:700,color:i.accent,letterSpacing:"0.1em",textTransform:"uppercase"},children:i.label})]}),c.jsx("h1",{style:{fontSize:26,fontWeight:700,color:"#0F172A",margin:0,letterSpacing:"-0.02em",lineHeight:1.3},children:H?"Connecting to top carriers":"Fetching your best rates"}),c.jsx("p",{style:{fontSize:14,color:"#64748B",marginTop:8,marginBottom:0},children:H?"Identifying the carriers eligible for your quote...":J?"Still gathering — a few carriers are taking a little longer...":"We're reaching out to multiple insurers on your behalf"})]}),c.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:32},children:H?c.jsx("div",{style:{display:"flex",gap:20},children:[0,1,2,3,4].map(F=>c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[c.jsx("div",{style:{width:48,height:48,borderRadius:14,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${F*.12}s`}}),c.jsx("div",{style:{width:40,height:8,borderRadius:4,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${F*.12}s`}})]},`skeleton-${F}`))}):ae?c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[c.jsxs("div",{style:{width:64,height:64,borderRadius:18,background:ae.color+"18",border:`2px solid ${ae.color}`,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16,color:ae.color,position:"relative",animation:"providerPulse 1.8s ease-in-out infinite"},children:[ae.abbr,c.jsx("div",{style:{position:"absolute",inset:-5,borderRadius:22,border:`2px solid ${ae.color}`,pointerEvents:"none",animation:"ringPulse 1.6s ease-in-out infinite"}})]}),c.jsx("span",{style:{fontSize:13,fontWeight:600,color:ae.color,letterSpacing:"0.04em"},children:ae.name})]}):null}),c.jsxs("div",{className:`iq-card-fade ${g?"iq-card-visible":"iq-card-hidden"}`,style:{background:"#FFFFFF",borderRadius:24,border:"1px solid #E2E8F0",padding:32},children:[c.jsx("div",{style:{display:"flex",alignItems:"center",gap:20,marginBottom:28},children:H||!ae?c.jsxs("div",{style:{flex:1,textAlign:"center",padding:"8px 0"},children:[c.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 6px"},children:"Please wait"}),c.jsx("h2",{style:{fontSize:18,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:"Checking eligible providers"}),c.jsx("p",{style:{fontSize:13,color:"#64748B",margin:0},children:"Reviewing your details against our carrier network"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{position:"relative",flexShrink:0},children:[c.jsx(Fd,{progress:m,color:ae.color,size:80}),c.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsxs("span",{style:{fontSize:14,fontWeight:700,color:ae.color},children:[Math.round(m),"%"]})})]}),c.jsxs("div",{style:{flex:1},children:[c.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 4px"},children:J?"Still checking":"Now checking"}),c.jsx("h2",{style:{fontSize:20,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:ae.name}),c.jsx("p",{className:"iq-status-text",style:{fontSize:13,color:"#64748B",margin:0},children:kr[h]},`${s}-${h}`)]})]})}),c.jsxs("div",{children:[c.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.08em",textTransform:"uppercase",margin:"0 0 8px"},children:H?"Initializing":"Gathering quotes"}),c.jsx("div",{style:{height:6,background:"#F1F5F9",borderRadius:100,overflow:"hidden"},children:c.jsx("div",{style:{height:"100%",width:"35%",background:i.accent,borderRadius:100,animation:"shimmerSlide 1.4s ease-in-out infinite"}})})]})]})]})})]})}const Bd={SafecoPersonal:{name:"Safeco",abbr:"SFC",color:"#0F337A"},SafecoPersoanl:{name:"Safeco",abbr:"SFC",color:"#0F337A"},AssuranceAmerica:{name:"Assurance America",abbr:"AA",color:"#2768B5"},CommonWealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#2D69EC"},Alinsco:{name:"Alinsco",abbr:"AL",color:"#20395D"},ACORDBOLTPersonalAuto:{name:"Bolt Auto",abbr:"BLT",color:"#1F2937"},ACORDBOLTPersonalHome:{name:"Bolt Home",abbr:"BLT",color:"#1F2937"},TwentyFirstCentury:{name:"21st Century",abbr:"21C",color:"#B2392A"},ACentral:{name:"A-Central",abbr:"ACT",color:"#EAAD1D"},AAA:{name:"AAA",abbr:"AAA",color:"#DB461C"},AARP:{name:"AARP",abbr:"ARP",color:"#DB4724"},Acadia:{name:"Acadia",abbr:"ACD",color:"#386B61"},Ace:{name:"ACE",abbr:"ACE",color:"#457D48"},Acuity:{name:"Acuity",abbr:"ACU",color:"#D74630"},AdirondackInsExchange:{name:"Adirondack",abbr:"ADK",color:"#1F5490"},Aegis:{name:"Aegis",abbr:"AEG",color:"#1A4675"},AIC:{name:"AIC",abbr:"AIC",color:"#508F47"},AIG:{name:"AIG",abbr:"AIG",color:"#223572"},AlfaAlliance:{name:"Alfa Alliance",abbr:"ALF",color:"#C13D17"},AllianzOfAmerica:{name:"Allianz",abbr:"ALZ",color:"#003781"},AllianzOfAmericaJefferson:{name:"Allianz Jefferson",abbr:"ALZ",color:"#003781"},Allied:{name:"Allied",abbr:"ALD",color:"#0047BB"},Allmerica:{name:"Allmerica",abbr:"ALM",color:"#003DA5"},Allstate:{name:"Allstate",abbr:"ALS",color:"#002F87"},AmericaFirst:{name:"America First",abbr:"AMF",color:"#003DA5"},AmericanCommerce:{name:"American Commerce",abbr:"ACM",color:"#003DA5"},AmericanFamily:{name:"American Family",abbr:"AMF",color:"#0033A0"},Amica:{name:"Amica",abbr:"AMI",color:"#003DA5"},Ameriprise:{name:"Ameriprise",abbr:"AMP",color:"#003DA5"},ASILloyds:{name:"ASI Lloyds",abbr:"ASI",color:"#003DA5"},Assurant:{name:"Assurant",abbr:"ASR",color:"#0033A0"},AtlasGeneralAgency:{name:"Atlas General",abbr:"ATL",color:"#1F3864"},AustinMutual:{name:"Austin Mutual",abbr:"AUS",color:"#1F3864"},Autoone:{name:"AutoOne",abbr:"AON",color:"#003DA5"},AutoOwners:{name:"Auto-Owners",abbr:"AO",color:"#C8102E"},BadgerMutual:{name:"Badger Mutual",abbr:"BDG",color:"#003DA5"},Balboa:{name:"Balboa",abbr:"BAL",color:"#1F3864"},Bamboo:{name:"Bamboo",abbr:"BMB",color:"#0F4C3A"},Bankers:{name:"Bankers",abbr:"BNK",color:"#1F3864"},BeaconNational:{name:"Beacon National",abbr:"BCN",color:"#003DA5"},BrethernMutual:{name:"Brethren Mutual",abbr:"BRT",color:"#1F3864"},BristolWest:{name:"Bristol West",abbr:"BW",color:"#003DA5"},BunkerHill:{name:"Bunker Hill",abbr:"BHL",color:"#1F3864"},CapitalInsuranceGroup:{name:"Capital Insurance",abbr:"CIG",color:"#003DA5"},Celina:{name:"Celina",abbr:"CEL",color:"#1F3864"},CentralMutualOfOH:{name:"Central Mutual",abbr:"CMO",color:"#003DA5"},Chubb:{name:"Chubb",abbr:"CHB",color:"#000000"},ChubbInsurance:{name:"Chubb",abbr:"CHB",color:"#000000"},Cincinnati:{name:"Cincinnati",abbr:"CIN",color:"#003DA5"},Citizens:{name:"Citizens",abbr:"CTZ",color:"#003DA5"},Clearcover:{name:"Clearcover",abbr:"CC",color:"#00B5E2"},CNA:{name:"CNA",abbr:"CNA",color:"#CC3232"},ColonialPenn:{name:"Colonial Penn",abbr:"CPN",color:"#0072CE"},ColoradoCasualty:{name:"Colorado Casualty",abbr:"COC",color:"#1F3864"},Columbia:{name:"Columbia",abbr:"CLM",color:"#003DA5"},CommerceWest:{name:"Commerce West",abbr:"CMW",color:"#003DA5"},CommonwealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#1F3864"},ConstitutionalCasualty:{name:"Constitutional Casualty",abbr:"CON",color:"#1F3864"},Cornerstone:{name:"Cornerstone",abbr:"CRN",color:"#1F3864"},Countrywide:{name:"Countrywide",abbr:"CTW",color:"#003DA5"},CSE:{name:"CSE",abbr:"CSE",color:"#003DA5"},Cumberland:{name:"Cumberland",abbr:"CMB",color:"#1F3864"},Cypress:{name:"Cypress",abbr:"CYP",color:"#0F4C3A"},Dairyland:{name:"Dairyland",abbr:"DL",color:"#0072CE"},Deerbrook:{name:"Deerbrook",abbr:"DBK",color:"#1F3864"},Direct:{name:"Direct",abbr:"DIR",color:"#D52B1E"},Donegal:{name:"Donegal",abbr:"DON",color:"#003DA5"},Drive:{name:"Drive",abbr:"DRV",color:"#1F3864"},Electric:{name:"Electric",abbr:"ELC",color:"#003DA5"},EMC:{name:"EMC",abbr:"EMC",color:"#003DA5"},Encompass:{name:"Encompass",abbr:"ENC",color:"#002F87"},Erie:{name:"Erie",abbr:"ERI",color:"#005FAC"},Esurance:{name:"Esurance",abbr:"ESU",color:"#00A6CE"},ExcelsiorInsuranceCompany:{name:"Excelsior",abbr:"EXC",color:"#1F3864"},Explorer:{name:"Explorer",abbr:"EXP",color:"#1F3864"},FairPlan:{name:"FAIR Plan",abbr:"FPN",color:"#1F3864"},FarmBureau:{name:"Farm Bureau",abbr:"FB",color:"#00843D"},Farmers:{name:"Farmers",abbr:"FRM",color:"#1C428B"},Fidelity:{name:"Fidelity",abbr:"FID",color:"#00833F"},FiremansFund:{name:"Fireman's Fund",abbr:"FF",color:"#E31837"},FirstAmerican:{name:"First American",abbr:"FAM",color:"#003DA5"},Foremost:{name:"Foremost",abbr:"FOR",color:"#E31837"},ForemostInsuranceCompany:{name:"Foremost",abbr:"FOR",color:"#E31837"},Geico:{name:"GEICO",abbr:"GEI",color:"#0F4293"},GeneralCasualty:{name:"General Casualty",abbr:"GC",color:"#1F3864"},GermantownMutual:{name:"Germantown Mutual",abbr:"GTM",color:"#1F3864"},GMAC:{name:"GMAC",abbr:"GMA",color:"#003DA5"},Grange:{name:"Grange",abbr:"GRG",color:"#003DA5"},GreatAmerican:{name:"Great American",abbr:"GA",color:"#003DA5"},Grinnell:{name:"Grinnell Mutual",abbr:"GRN",color:"#E31837"},GuideOne:{name:"GuideOne",abbr:"GO",color:"#0072CE"},Hanover:{name:"Hanover",abbr:"HAN",color:"#003DA5"},Harbor:{name:"Harbor",abbr:"HBR",color:"#1F3864"},Harleysville:{name:"Harleysville",abbr:"HRL",color:"#003DA5"},Hartford:{name:"The Hartford",abbr:"HFD",color:"#7F1734"},HartfordOMNI:{name:"Hartford OMNI",abbr:"HOM",color:"#7F1734"},HastingsMutual:{name:"Hastings Mutual",abbr:"HST",color:"#1F3864"},HawkeyeSecurity:{name:"Hawkeye Security",abbr:"HWK",color:"#1F3864"},HDI:{name:"HDI",abbr:"HDI",color:"#00563F"},HippoInsuranceCompany:{name:"Hippo",abbr:"HPO",color:"#00C9A7"},HomeownersOfAmerica:{name:"Homeowners of America",abbr:"HOA",color:"#003DA5"},Homesite:{name:"Homesite",abbr:"HMS",color:"#0033A0"},HoraceMann:{name:"Horace Mann",abbr:"HM",color:"#003DA5"},HoustonGeneral:{name:"Houston General",abbr:"HG",color:"#1F3864"},IFA:{name:"IFA",abbr:"IFA",color:"#003DA5"},ImperialCasualty:{name:"Imperial Casualty",abbr:"IMP",color:"#1F3864"},Indiana:{name:"Indiana Insurance",abbr:"IND",color:"#003DA5"},IndianaFarmers:{name:"Indiana Farmers",abbr:"IFM",color:"#00843D"},Infinity:{name:"Infinity",abbr:"INF",color:"#E31837"},Insurequest:{name:"Insurequest",abbr:"INQ",color:"#1F3864"},Integon:{name:"Integon",abbr:"ITG",color:"#003DA5"},Integrity:{name:"Integrity",abbr:"ITY",color:"#1F3864"},Kemper:{name:"Kemper",abbr:"KMP",color:"#0033A0"},LibertyMutual:{name:"Liberty Mutual",abbr:"LM",color:"#FFD000"},LibertyNorthwest:{name:"Liberty Northwest",abbr:"LNW",color:"#FFD000"},Lloyds:{name:"Lloyd's",abbr:"LLY",color:"#003DA5"},MainStreetAmerica:{name:"Main Street America",abbr:"MSA",color:"#003DA5"},Mapfre:{name:"MAPFRE",abbr:"MAP",color:"#E31837"},MarkelInsuranceCompany:{name:"Markel",abbr:"MKL",color:"#003DA5"},Mendota:{name:"Mendota",abbr:"MND",color:"#1F3864"},MerchantsGroup:{name:"Merchants Group",abbr:"MRC",color:"#003DA5"},Mercury:{name:"Mercury",abbr:"MER",color:"#ED1C24"},Metlife:{name:"MetLife",abbr:"MET",color:"#0090DA"},Metropolitan:{name:"Metropolitan",abbr:"MTP",color:"#0090DA"},MidContinent:{name:"Mid-Continent",abbr:"MC",color:"#003DA5"},MidwesternIndemnity:{name:"Midwestern Indemnity",abbr:"MWI",color:"#003DA5"},Montgomery:{name:"Montgomery",abbr:"MTG",color:"#1F3864"},MSA:{name:"MSA",abbr:"MSA",color:"#003DA5"},MtWashington:{name:"Mt. Washington",abbr:"MTW",color:"#1F3864"},MutualBenefit:{name:"Mutual Benefit",abbr:"MB",color:"#1F3864"},NatGenPremier:{name:"NatGen Premier",abbr:"NGP",color:"#0033A0"},NationalGeneral:{name:"National General",abbr:"NG",color:"#0033A0"},Nationwide:{name:"Nationwide",abbr:"NW",color:"#204D9B"},NationwideScottsdale:{name:"Nationwide Scottsdale",abbr:"NWS",color:"#204D9B"},NewYorkCentralMutual:{name:"NY Central Mutual",abbr:"NYC",color:"#003DA5"},NJManufacturers:{name:"NJM Insurance",abbr:"NJM",color:"#003DA5"},NJSkylands:{name:"NJ Skylands",abbr:"NJS",color:"#003DA5"},Northstar:{name:"Northstar",abbr:"NST",color:"#1F3864"},Occidental:{name:"Occidental",abbr:"OCC",color:"#1F3864"},OhioCasualty:{name:"Ohio Casualty",abbr:"OHC",color:"#003DA5"},OmahaPC:{name:"Omaha P&C",abbr:"OMA",color:"#003DA5"},OneBeacon:{name:"OneBeacon",abbr:"OB",color:"#003DA5"},OregonMutual:{name:"Oregon Mutual",abbr:"ORE",color:"#003DA5"},Palisades:{name:"Palisades",abbr:"PAL",color:"#1F3864"},PeerlessMontgomery:{name:"Peerless Montgomery",abbr:"PRM",color:"#1F3864"},Pekin:{name:"Pekin",abbr:"PEK",color:"#003DA5"},Pemco:{name:"PEMCO",abbr:"PMC",color:"#0072CE"},PennNational:{name:"Penn National",abbr:"PN",color:"#003DA5"},PlymouthRock:{name:"Plymouth Rock",abbr:"PLR",color:"#003DA5"},PreferredMutual:{name:"Preferred Mutual",abbr:"PFM",color:"#003DA5"},Proformance:{name:"Proformance",abbr:"PRF",color:"#1F3864"},Progressive:{name:"Progressive",abbr:"PRG",color:"#0053BA"},Prudential:{name:"Prudential",abbr:"PRU",color:"#0033A0"},PureHighValue:{name:"PURE",abbr:"PUR",color:"#003DA5"},Republic:{name:"Republic",abbr:"REP",color:"#003DA5"},RockfordMutual:{name:"Rockford Mutual",abbr:"RKF",color:"#1F3864"},RoyalAndSunAlliance:{name:"Royal & SunAlliance",abbr:"RSA",color:"#003DA5"},Safeco:{name:"Safeco",abbr:"SFC",color:"#E4002B"},SECURA:{name:"SECURA",abbr:"SEC",color:"#003DA5"},Selective:{name:"Selective",abbr:"SEL",color:"#003DA5"},SouthernCounty:{name:"Southern County",abbr:"SCM",color:"#1F3864"},SouthernMutual:{name:"Southern Mutual",abbr:"SM",color:"#1F3864"},SouthernTrust:{name:"Southern Trust",abbr:"ST",color:"#1F3864"},StPaulTravelers:{name:"St. Paul Travelers",abbr:"SPT",color:"#C8102E"},StandardMutual:{name:"Standard Mutual",abbr:"STM",color:"#1F3864"},StarCasualty:{name:"Star Casualty",abbr:"SC",color:"#1F3864"},StateAuto:{name:"State Auto",abbr:"SA",color:"#003DA5"},StateFarm:{name:"State Farm",abbr:"SF",color:"#CC0717"},StateFarmFloridaInsuranceCompany:{name:"State Farm Florida",abbr:"SFF",color:"#CC0717"},SunshineStateInsuranceCompany:{name:"Sunshine State",abbr:"SSS",color:"#FFC72C"},Travelers:{name:"Travelers",abbr:"TRV",color:"#C8102E"},Tower:{name:"Tower",abbr:"TWR",color:"#1F3864"},TWFG:{name:"TWFG",abbr:"TWF",color:"#003DA5"},Unigard:{name:"Unigard",abbr:"UNG",color:"#1F3864"},UnitedFireAndCasualty:{name:"United Fire & Casualty",abbr:"UFC",color:"#003DA5"},Unitrin:{name:"Unitrin",abbr:"UTN",color:"#003DA5"},Universal:{name:"Universal",abbr:"UNV",color:"#003DA5"},USAA:{name:"USAA",abbr:"USA",color:"#1A3258"},UticaNational:{name:"Utica National",abbr:"UTC",color:"#003DA5"},Victoria:{name:"Victoria",abbr:"VIC",color:"#1F3864"},Wellington:{name:"Wellington",abbr:"WLG",color:"#1F3864"},WestBend:{name:"West Bend",abbr:"WB",color:"#003DA5"},WesternNational:{name:"Western National",abbr:"WN",color:"#003DA5"},WesternReserveGroup:{name:"Western Reserve",abbr:"WR",color:"#003DA5"},Westfield:{name:"Westfield",abbr:"WF",color:"#F05136"},WhiteMountains:{name:"White Mountains",abbr:"WM",color:"#1F3864"},WilsonMutual:{name:"Wilson Mutual",abbr:"WLM",color:"#1F3864"},Windsor:{name:"Windsor",abbr:"WIN",color:"#1F3864"},Zurich:{name:"Zurich",abbr:"ZUR",color:"#003399"}},Po=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function xd(e){return e.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function zd(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function Rd(e){const t=new Set,r=[];return e.forEach((n,o)=>{const a=Bd[n]??{name:zd(n),abbr:xd(n),color:Po[o%Po.length]};t.has(a.name)||(t.add(a.name),r.push(a))}),r}function Hd(e,t){if(!e)return[];const r=[];return(t==="Auto"||t==="Bundle")&&Array.isArray(e.PersonalAuto)&&r.push(...e.PersonalAuto),(t==="Home"||t==="Bundle")&&Array.isArray(e.PersonalHome)&&r.push(...e.PersonalHome),Rd(r)}function U(e){if(e===!0)return"Yes";if(e===!1)return"No"}function ke(e){if(e)try{const t=typeof e=="string"?new Date(e):e;return isNaN(t.getTime())?void 0:t.toISOString().split("T")[0]}catch{return}}function Ud(e){const t=e,r={};t.phone&&(r.phone=t.phone),t.first_name&&(r.first_name=t.first_name),t.last_name&&(r.last_name=t.last_name),t.email&&(r.email=t.email),t.date_of_birth&&(r.date_of_birth=ke(t.date_of_birth)),t.product&&(r.product=t.product),t.state&&(r.state=t.state);const n=[];t.line_1&&n.push(t.line_1),t.line_2&&n.push(t.line_2),t.city&&n.push(t.city),t.state&&n.push(t.state),t.postal_code&&n.push(t.postal_code),n.length>0&&(r.address=n.join(", ")),t.years_at_address!==null&&t.years_at_address!==void 0&&(r.years_at_address=t.years_at_address),t.months_at_address!==null&&t.months_at_address!==void 0&&(r.months_at_address=t.months_at_address),t.move_in_date&&(r.move_in_date=ke(t.move_in_date));const o=[];t.prior_line_1&&o.push(t.prior_line_1),t.prior_line_2&&o.push(t.prior_line_2),t.prior_city&&o.push(t.prior_city),t.prior_state&&o.push(t.prior_state),t.prior_postal_code&&o.push(t.prior_postal_code),o.length>0&&(r.prior_address=o.join(", ")),t.years_at_prior_address!==null&&t.years_at_prior_address!==void 0&&(r.years_at_prior_address=t.years_at_prior_address),t.is_mailing_address_different!==null&&t.is_mailing_address_different!==void 0&&(r.is_mailing_address_different=U(t.is_mailing_address_different)),t.mailing_address&&(r.mailing_address=t.mailing_address),t.effective_date&&(r.effective_date=ke(t.effective_date)),t.auto_has_prior_insurance!==null&&t.auto_has_prior_insurance!==void 0&&(r.auto_has_prior_insurance=U(t.auto_has_prior_insurance)),t.auto_prior_expiration_date&&(r.auto_prior_expiration_date=ke(t.auto_prior_expiration_date)),t.auto_prior_carrier_name&&(r.auto_prior_carrier_name=t.auto_prior_carrier_name),t.auto_prior_liability_limit&&(r.auto_prior_liability_limit=t.auto_prior_liability_limit),t.auto_reason_for_no_insurance&&(r.auto_reason_for_no_insurance=t.auto_reason_for_no_insurance),t.auto_prior_years!==null&&t.auto_prior_years!==void 0&&(r.auto_prior_years=t.auto_prior_years),t.auto_prior_months!==null&&t.auto_prior_months!==void 0&&(r.auto_prior_months=t.auto_prior_months),t.auto_continuous_coverage_years!==null&&t.auto_continuous_coverage_years!==void 0&&(r.auto_continuous_coverage_years=t.auto_continuous_coverage_years),t.auto_cancelled_declined_refused_to_renew!==null&&t.auto_cancelled_declined_refused_to_renew!==void 0&&(r.auto_cancelled_declined_refused_to_renew=U(t.auto_cancelled_declined_refused_to_renew)),t.auto_current_annual_premium_cents!==null&&t.auto_current_annual_premium_cents!==void 0&&(r.auto_current_annual_premium_cents=t.auto_current_annual_premium_cents),t.policy_bi&&(r.policy_bi=t.policy_bi),t.policy_um&&(r.policy_um=t.policy_um),t.policy_pd&&(r.policy_pd=t.policy_pd),t.policy_mp&&(r.policy_mp=t.policy_mp),t.policy_umpd&&(r.policy_umpd=t.policy_umpd),t.policy_pip&&(r.policy_pip=t.policy_pip),t.policy_auto_death_indemnity&&(r.policy_auto_death_indemnity=t.policy_auto_death_indemnity),t.driver_vehicle_assignments&&(r.driver_vehicle_assignments=t.driver_vehicle_assignments),t.home_has_prior_insurance!==null&&t.home_has_prior_insurance!==void 0&&(r.home_has_prior_insurance=U(t.home_has_prior_insurance)),t.home_prior_expiration_date&&(r.home_prior_expiration_date=ke(t.home_prior_expiration_date)),t.home_prior_carrier_name&&(r.home_prior_carrier_name=t.home_prior_carrier_name),t.home_prior_years!==null&&t.home_prior_years!==void 0&&(r.home_prior_years=t.home_prior_years),t.home_continuous_coverage_years!==null&&t.home_continuous_coverage_years!==void 0&&(r.home_continuous_coverage_years=t.home_continuous_coverage_years),t.property_insurance_cancelled!==null&&t.property_insurance_cancelled!==void 0&&(r.property_insurance_cancelled=U(t.property_insurance_cancelled)),t.lapse_in_coverage!==null&&t.lapse_in_coverage!==void 0&&(r.lapse_in_coverage=U(t.lapse_in_coverage)),t.year_built!==null&&t.year_built!==void 0&&(r.year_built=t.year_built),t.number_of_units!==null&&t.number_of_units!==void 0&&(r.number_of_units=t.number_of_units),t.number_of_stories!==null&&t.number_of_stories!==void 0&&(r.number_of_stories=t.number_of_stories),t.number_of_beds!==null&&t.number_of_beds!==void 0&&(r.number_of_beds=t.number_of_beds),t.number_of_full_baths!==null&&t.number_of_full_baths!==void 0&&(r.number_of_full_baths=t.number_of_full_baths),t.number_of_partial_baths!==null&&t.number_of_partial_baths!==void 0&&(r.number_of_partial_baths=t.number_of_partial_baths),t.under_construction!==null&&t.under_construction!==void 0&&(r.under_construction=U(t.under_construction)),t.distance_from_fire_hydrant_ft&&(r.distance_from_fire_hydrant_ft=t.distance_from_fire_hydrant_ft),t.distance_from_fire_station_miles&&(r.distance_from_fire_station_miles=t.distance_from_fire_station_miles),t.architectural_style&&(r.architectural_style=t.architectural_style),t.dwelling_type&&(r.dwelling_type=t.dwelling_type),t.construction_quality&&(r.construction_quality=t.construction_quality),t.located_over_water!==null&&t.located_over_water!==void 0&&(r.located_over_water=t.located_over_water),t.construction_type&&(r.construction_type=t.construction_type),t.exterior_wall_type&&(r.exterior_wall_type=t.exterior_wall_type),t.foundation_type&&(r.foundation_type=t.foundation_type),t.roof_material_type&&(r.roof_material_type=t.roof_material_type),t.roof_shape&&(r.roof_shape=t.roof_shape),t.roof_updated_type&&(r.roof_updated_type=t.roof_updated_type),t.year_roof_updated!==null&&t.year_roof_updated!==void 0&&(r.year_roof_updated=t.year_roof_updated),t.mit_credit_form!==null&&t.mit_credit_form!==void 0&&(r.mit_credit_form=U(t.mit_credit_form)),t.storm_shutters!==null&&t.storm_shutters!==void 0&&(r.storm_shutters=U(t.storm_shutters)),t.heating_type&&(r.heating_type=t.heating_type),t.oil_tank_location&&(r.oil_tank_location=t.oil_tank_location),t.heating_fuel_type&&(r.heating_fuel_type=t.heating_fuel_type),t.number_of_fireplaces!==null&&t.number_of_fireplaces!==void 0&&(r.number_of_fireplaces=t.number_of_fireplaces),t.basement_type&&(r.basement_type=t.basement_type),t.parking_type&&(r.parking_type=t.parking_type),t.number_of_parking_spaces!==null&&t.number_of_parking_spaces!==void 0&&(r.number_of_parking_spaces=t.number_of_parking_spaces),t.plumbing_type&&(r.plumbing_type=t.plumbing_type),t.pool_type&&(r.pool_type=t.pool_type),t.total_area_sq_ft!==null&&t.total_area_sq_ft!==void 0&&(r.total_area_sq_ft=t.total_area_sq_ft),t.parcel_area_sq_ft!==null&&t.parcel_area_sq_ft!==void 0&&(r.parcel_area_sq_ft=t.parcel_area_sq_ft),t.residence_type&&(r.residence_type=t.residence_type),t.usage_type&&(r.usage_type=t.usage_type),t.household_size!==null&&t.household_size!==void 0&&(r.household_size=t.household_size),t.number_of_mortgagees!==null&&t.number_of_mortgagees!==void 0&&(r.number_of_mortgagees=t.number_of_mortgagees),t.has_dog!==null&&t.has_dog!==void 0&&(r.has_dog=U(t.has_dog)),t.dog_breed_type&&(r.dog_breed_type=t.dog_breed_type),t.number_of_dogs!==null&&t.number_of_dogs!==void 0&&(r.number_of_dogs=t.number_of_dogs),t.has_vicious_animals!==null&&t.has_vicious_animals!==void 0&&(r.has_vicious_animals=U(t.has_vicious_animals)),t.has_business_on_premises!==null&&t.has_business_on_premises!==void 0&&(r.has_business_on_premises=U(t.has_business_on_premises)),t.business_class&&(r.business_class=t.business_class),t.occupancy_type&&(r.occupancy_type=t.occupancy_type),t.short_term_rental!==null&&t.short_term_rental!==void 0&&(r.short_term_rental=U(t.short_term_rental)),t.sale_price_cents!==null&&t.sale_price_cents!==void 0&&(r.sale_price_cents=Math.round(Number(t.sale_price_cents)/100)),t.number_of_families!==null&&t.number_of_families!==void 0&&(r.number_of_families=t.number_of_families),t.number_of_units_in_firewall!==null&&t.number_of_units_in_firewall!==void 0&&(r.number_of_units_in_firewall=t.number_of_units_in_firewall),t.heating_update_yn!==null&&t.heating_update_yn!==void 0&&(r.heating_update_yn=U(t.heating_update_yn)),t.heating_update_type&&(r.heating_update_type=t.heating_update_type),t.heating_update_year!==null&&t.heating_update_year!==void 0&&(r.heating_update_year=t.heating_update_year),t.plumbing_update_yn!==null&&t.plumbing_update_yn!==void 0&&(r.plumbing_update_yn=U(t.plumbing_update_yn)),t.plumbing_update_type&&(r.plumbing_update_type=t.plumbing_update_type),t.plumbing_update_year!==null&&t.plumbing_update_year!==void 0&&(r.plumbing_update_year=t.plumbing_update_year),t.electrical_update_yn!==null&&t.electrical_update_yn!==void 0&&(r.electrical_update_yn=U(t.electrical_update_yn)),t.electrical_update_type&&(r.electrical_update_type=t.electrical_update_type),t.electrical_update_year!==null&&t.electrical_update_year!==void 0&&(r.electrical_update_year=t.electrical_update_year),t.electric_circuit_breaker!==null&&t.electric_circuit_breaker!==void 0&&(r.electric_circuit_breaker=U(t.electric_circuit_breaker)),t.dwelling_replacement_cost!==null&&t.dwelling_replacement_cost!==void 0&&(r.dwelling_replacement_cost=t.dwelling_replacement_cost),t.other_structures_coverage!==null&&t.other_structures_coverage!==void 0&&(r.other_structures_coverage=t.other_structures_coverage),t.personal_property_coverage!==null&&t.personal_property_coverage!==void 0&&(r.personal_property_coverage=t.personal_property_coverage),t.loss_of_use_coverage!==null&&t.loss_of_use_coverage!==void 0&&(r.loss_of_use_coverage=t.loss_of_use_coverage),t.personal_liability&&(r.personal_liability=t.personal_liability),t.dwelling_medical_payments&&(r.dwelling_medical_payments=t.dwelling_medical_payments),t.all_perils_deductible&&(r.all_perils_deductible=t.all_perils_deductible),t.windstorm_deductible&&(r.windstorm_deductible=t.windstorm_deductible),t.has_garage!==null&&t.has_garage!==void 0&&(r.has_garage=U(t.has_garage)),t.has_pool!==null&&t.has_pool!==void 0&&(r.has_pool=U(t.has_pool)),t.has_trampoline!==null&&t.has_trampoline!==void 0&&(r.has_trampoline=U(t.has_trampoline)),t.gender&&(r.gender=t.gender),t.marital_status&&(r.marital_status=t.marital_status),t.employment_industry&&(r.employment_industry=t.employment_industry),t.occupation&&(r.occupation=t.occupation),t.has_co_applicant!==null&&t.has_co_applicant!==void 0&&(r.has_co_applicant=U(t.has_co_applicant)),t.co_applicant_first_name&&(r.co_applicant_first_name=t.co_applicant_first_name),t.co_applicant_middle_name&&(r.co_applicant_middle_name=t.co_applicant_middle_name),t.co_applicant_last_name&&(r.co_applicant_last_name=t.co_applicant_last_name),t.co_applicant_gender&&(r.co_applicant_gender=t.co_applicant_gender),t.co_applicant_marital_status&&(r.co_applicant_marital_status=t.co_applicant_marital_status),t.co_applicant_relationship&&(r.co_applicant_relationship=t.co_applicant_relationship),t.co_applicant_date_of_birth&&(r.co_applicant_date_of_birth=ke(t.co_applicant_date_of_birth)),t.co_applicant_employment_industry&&(r.co_applicant_employment_industry=t.co_applicant_employment_industry),t.co_applicant_occupation&&(r.co_applicant_occupation=t.co_applicant_occupation),t.retiree_discount!==null&&t.retiree_discount!==void 0&&(r.retiree_discount=U(t.retiree_discount)),t.gated_community_discount!==null&&t.gated_community_discount!==void 0&&(r.gated_community_discount=U(t.gated_community_discount)),t.multi_policy_discount!==null&&t.multi_policy_discount!==void 0&&(r.multi_policy_discount=U(t.multi_policy_discount)),t.non_smoker_discount!==null&&t.non_smoker_discount!==void 0&&(r.non_smoker_discount=U(t.non_smoker_discount)),t.first_time_buyer_discount!==null&&t.first_time_buyer_discount!==void 0&&(r.first_time_buyer_discount=U(t.first_time_buyer_discount)),t.fire_detection_system!==null&&t.fire_detection_system!==void 0&&(r.fire_detection_system=U(t.fire_detection_system)),t.burglar_alarm_system!==null&&t.burglar_alarm_system!==void 0&&(r.burglar_alarm_system=U(t.burglar_alarm_system)),t.burglar_alarm_system_type&&(r.burglar_alarm_system_type=t.burglar_alarm_system_type),t.smoke_detectors!==null&&t.smoke_detectors!==void 0&&(r.smoke_detectors=U(t.smoke_detectors)),t.sprinkler_system!==null&&t.sprinkler_system!==void 0&&(r.sprinkler_system=U(t.sprinkler_system)),t.sprinkler_system_type&&(r.sprinkler_system_type=t.sprinkler_system_type),t.gas_leakage_detector!==null&&t.gas_leakage_detector!==void 0&&(r.gas_leakage_detector=U(t.gas_leakage_detector)),t.deadbolt_locks!==null&&t.deadbolt_locks!==void 0&&(r.deadbolt_locks=U(t.deadbolt_locks)),t.fire_extinguisher!==null&&t.fire_extinguisher!==void 0&&(r.fire_extinguisher=U(t.fire_extinguisher)),t.order_credit_authorized!==null&&t.order_credit_authorized!==void 0&&(r.order_credit_authorized=U(t.order_credit_authorized)),t.has_health_insurance_auto_accident!==null&&t.has_health_insurance_auto_accident!==void 0&&(r.has_health_insurance_auto_accident=U(t.has_health_insurance_auto_accident)),t.is_corporation!==null&&t.is_corporation!==void 0&&(r.is_corporation=U(t.is_corporation)),t.named_insured_foreclosure_repo_bankruptcy!==null&&t.named_insured_foreclosure_repo_bankruptcy!==void 0&&(r.named_insured_foreclosure_repo_bankruptcy=U(t.named_insured_foreclosure_repo_bankruptcy)),t.named_insured_convicted_insurance_fraud!==null&&t.named_insured_convicted_insurance_fraud!==void 0&&(r.named_insured_convicted_insurance_fraud=U(t.named_insured_convicted_insurance_fraud));const i={};if(t.vehicles)for(const a of t.vehicles)a.quote_vehicle_id&&a.vin&&(i[a.quote_vehicle_id]=a.vin);return t.drivers&&t.drivers.length>0?(r.drivers="Yes",r.drivers__items=t.drivers.map(a=>{const s=a,l={};s.first_name&&(l.first_name=s.first_name),s.middle_name&&(l.middle_name=s.middle_name),s.last_name&&(l.last_name=s.last_name),s.date_of_birth&&(l.date_of_birth=ke(s.date_of_birth)),s.gender&&(l.gender=s.gender),s.marital_status&&(l.marital_status=s.marital_status),s.relationship_to_insured&&(l.relationship_to_insured=s.relationship_to_insured),s.is_registered_owner!==null&&s.is_registered_owner!==void 0&&(l.is_registered_owner=s.is_registered_owner?"Yes":"No"),s.license_state&&(l.license_state=s.license_state),s.license_status&&(l.license_status=s.license_status),s.license_number&&(l.license_number=s.license_number),s.date_first_licensed&&(l.date_first_licensed=ke(s.date_first_licensed)),s.education_level&&(l.education_level=Qn(s.education_level)),s.occupation&&(l.occupation=Xn(s.occupation)),s.industry&&(l.industry=Pt(s.industry)),s.employment_status&&(l.employment_status=s.employment_status),s.last_5_years_license_suspended_or_revoked!==null&&s.last_5_years_license_suspended_or_revoked!==void 0&&(l.last_5_years_license_suspended_or_revoked=U(s.last_5_years_license_suspended_or_revoked)),s.accident_prevention_course!==null&&s.accident_prevention_course!==void 0&&(l.accident_prevention_course=U(s.accident_prevention_course)),s.accident_prevention_course_date&&(l.accident_prevention_course_date=ke(s.accident_prevention_course_date)),s.sr22!==null&&s.sr22!==void 0&&(l.sr22=U(s.sr22));const u=s.ssn_display;typeof u=="string"&&(l.ssn_display=u);const d=s.driver_violations;d&&d.length>0&&(l.driver_violations="Yes",l.driver_violations__items=d.map(h=>{const S={};return h.code&&(S.code=h.code),h.occurred_at&&(S.occurred_at=ke(h.occurred_at)),S}));const m=s.driver_accidents;m&&m.length>0&&(l.driver_accidents="Yes",l.driver_accidents__items=m.map(h=>{const S={};return h.occurred_at&&(S.occurred_at=ke(h.occurred_at)),h.description&&(S.description=h.description),h.quote_vehicle_id&&(S.quote_vehicle_id=i[h.quote_vehicle_id]??h.quote_vehicle_id),h.property_damage_amount_paid_cents!==null&&h.property_damage_amount_paid_cents!==void 0&&(S.property_damage_amount_paid_cents=h.property_damage_amount_paid_cents),h.personal_injury_amount_paid_cents!==null&&h.personal_injury_amount_paid_cents!==void 0&&(S.personal_injury_amount_paid_cents=h.personal_injury_amount_paid_cents),S}));const b=s.losses;return b&&b.length>0&&(l.losses="Yes",l.losses__items=b.map(h=>{const S={};return h.description&&(S.description=h.description),h.date_of_incident&&(S.date_of_incident=ke(h.date_of_incident)),h.amount_paid_cents!==null&&h.amount_paid_cents!==void 0&&(S.amount_paid_cents=h.amount_paid_cents),h.quote_vehicle_id&&(S.quote_vehicle_id=i[h.quote_vehicle_id]??h.quote_vehicle_id),S})),l})):r.drivers="No",t.vehicles&&t.vehicles.length>0?(r.vehicles="Yes",r.vehicles__items=t.vehicles.map(a=>{const s=a,l={};s.vin&&(l.vin=s.vin),s.year!==null&&s.year!==void 0&&(l.year=String(s.year)),s.make&&(l.make=s.make),s.model&&(l.model=s.model),s.body_style&&(l.body_style=s.body_style),s.ownership_type&&(l.ownership_type=s.ownership_type),s.usage&&(l.usage=s.usage),s.annual_mileage!==null&&s.annual_mileage!==void 0&&(l.annual_mileage=s.annual_mileage),s.miles_to_work!==null&&s.miles_to_work!==void 0&&(l.miles_to_work=s.miles_to_work),s.percent_to_work!==null&&s.percent_to_work!==void 0&&(l.percent_to_work=s.percent_to_work);const u=[];return s.garaging_address_line_1&&u.push(s.garaging_address_line_1),s.garaging_address_line_2&&u.push(s.garaging_address_line_2),s.garaging_address_city&&u.push(s.garaging_address_city),s.garaging_address_state&&u.push(s.garaging_address_state),s.garaging_address_postal_code&&u.push(s.garaging_address_postal_code),u.length>0&&(l.garaging_address=u.join(", ")),s.new_when_purchased!==null&&s.new_when_purchased!==void 0&&(l.new_when_purchased=U(s.new_when_purchased)),s.purchase_date&&(l.purchase_date=ke(s.purchase_date)),s.anti_theft_type&&(l.anti_theft_type=s.anti_theft_type),s.passive_restraint_type&&(l.passive_restraint_type=s.passive_restraint_type),s.anti_lock_brakes!==null&&s.anti_lock_brakes!==void 0&&(l.anti_lock_brakes=U(s.anti_lock_brakes)),s.daytime_running_lights!==null&&s.daytime_running_lights!==void 0&&(l.daytime_running_lights=U(s.daytime_running_lights)),s.custom_equipment_value_cents!==null&&s.custom_equipment_value_cents!==void 0&&(l.custom_equipment_value_cents=s.custom_equipment_value_cents),s.cost_new_value_cents!==null&&s.cost_new_value_cents!==void 0&&(l.cost_new_value_cents=s.cost_new_value_cents),s.stated_value_amount_cents!==null&&s.stated_value_amount_cents!==void 0&&(l.stated_value_amount_cents=s.stated_value_amount_cents),s.vehicle_has_modifications!==null&&s.vehicle_has_modifications!==void 0&&(l.vehicle_has_modifications=U(s.vehicle_has_modifications)),s.vehicle_garaged_at_residence!==null&&s.vehicle_garaged_at_residence!==void 0&&(l.vehicle_garaged_at_residence=U(s.vehicle_garaged_at_residence)),s.vehicle_comp_deductible&&(l.vehicle_comp_deductible=s.vehicle_comp_deductible),s.vehicle_coll_deductible&&(l.vehicle_coll_deductible=s.vehicle_coll_deductible),s.vehicle_towing_and_labor&&(l.vehicle_towing_and_labor=s.vehicle_towing_and_labor),s.vehicle_transportation_expense&&(l.vehicle_transportation_expense=s.vehicle_transportation_expense),s.vehicle_full_glass!==null&&s.vehicle_full_glass!==void 0&&(l.vehicle_full_glass=U(s.vehicle_full_glass)),s.vehicle_loan_lease!==null&&s.vehicle_loan_lease!==void 0&&(l.vehicle_loan_lease=U(s.vehicle_loan_lease)),s.coverages&&s.coverages.length>0&&(l.coverages__items=s.coverages.map(d=>{const m={};return d.type&&(m.type=d.type),d.per_person_limit_cents!==null&&d.per_person_limit_cents!==void 0&&(m.per_person_limit_cents=d.per_person_limit_cents),d.per_incident_limit_cents!==null&&d.per_incident_limit_cents!==void 0&&(m.per_incident_limit_cents=d.per_incident_limit_cents),d.per_incident_limit_percent!==null&&d.per_incident_limit_percent!==void 0&&(m.per_incident_limit_percent=d.per_incident_limit_percent),d.per_day_limit_cents!==null&&d.per_day_limit_cents!==void 0&&(m.per_day_limit_cents=d.per_day_limit_cents),d.deductible_cents!==null&&d.deductible_cents!==void 0&&(m.deductible_cents=d.deductible_cents),d.is_declined!==null&&d.is_declined!==void 0&&(m.is_declined=U(d.is_declined)),m})),s.vehicle_lienholders&&s.vehicle_lienholders.length>0&&(l.vehicle_lienholders__items=s.vehicle_lienholders.map(d=>{const m={};return d.name&&(m.name=d.name),d.type&&(m.type=d.type),d.line_1&&(m.line_1=d.line_1),d.line_2&&(m.line_2=d.line_2),d.city&&(m.city=d.city),d.state&&(m.state=d.state),d.postal_code&&(m.postal_code=d.postal_code),d.phone&&(m.phone=d.phone),d.fax&&(m.fax=d.fax),m})),l})):r.vehicles="No",t.losses&&t.losses.length>0&&(r.home_losses="Yes",r.home_losses__items=t.losses.map(a=>{const s={};return a.description&&(s.description=a.description),a.date_of_incident&&(s.date_of_incident=ke(a.date_of_incident)),a.amount_paid_cents!==null&&a.amount_paid_cents!==void 0&&(s.amount_paid_cents=Math.round(Number(a.amount_paid_cents)/100)),s})),r}const Zd=new Set(["Product","Driver","Vehicle"]);function Wd(e){return e?Array.isArray(e.drivers__items)?e.drivers__items.length:Array.isArray(e.drivers)?e.drivers.length:null:null}function Fo(e,t){const r=Wd(t),n=e.filter(i=>i.key!=="AutoPolicy"),o=n.length>0?n:e;return o}function Or(e){const t={},r=u=>{if(typeof u=="string"){if(u==="Yes")return!0;if(u==="No")return!1}return u},n=Object.keys(e).filter(u=>!u.includes("__items")),o=new Set,i=new Set;for(const[u,d]of Object.entries(e))u.endsWith("__items")&&Array.isArray(d)&&(i.add(u.replace("__items","")),d.forEach(m=>{typeof m=="object"&&m!==null&&Object.keys(m).forEach(b=>{o.add(b)})}));for(const[u,d]of Object.entries(e))if(u.endsWith("__items")){const m=u.replace("__items","");if(n.includes(m)){const h=Array.isArray(d)?d.map(S=>Or(S)):d;t[m]=h}}else if(!u.includes("__items")){if(i.has(u))continue;o.has(u)||(t[u]=r(d))}const a=t.auto_prior_carrier_name;if(typeof a=="string"&&a.trim()!==""){const u=a==="NoPriorInsurance";t.auto_has_prior_insurance=!u,u&&(delete t.auto_prior_years,delete t.auto_prior_months,delete t.auto_prior_expiration_date,delete t.auto_prior_liability_limit,delete t.auto_continuous_coverage_years,delete t.auto_cancelled_declined_refused_to_renew,delete t.auto_current_annual_premium_cents)}const s=t.home_prior_carrier_name;if(typeof s=="string"&&s.trim()!==""){const u=s==="NoPriorInsurance";t.home_has_prior_insurance=!u,u&&(delete t.home_prior_years,delete t.home_continuous_coverage_years,delete t.home_prior_expiration_date,delete t.property_insurance_cancelled)}Array.isArray(t.drivers)&&(t.drivers=t.drivers.map(u=>{if(!u||typeof u!="object")return u;const d={...u};return d.industry=Pt(d.industry),d.education_level=Qn(d.education_level),d.occupation=Xn(d.occupation),d})),console.log("[DEBUG_TRANSFORM] transformed.drivers type:",typeof t.drivers,"isArray:",Array.isArray(t.drivers),Array.isArray(t.drivers)?`count=${t.drivers.length}`:`value=${JSON.stringify(t.drivers)?.slice(0,100)}`),Array.isArray(t.drivers)&&t.drivers.forEach((u,d)=>{const m=u;console.log(`[DEBUG_TRANSFORM] Driver ${d}:`,{first_name:m.first_name,gender:m.gender,marital_status:m.marital_status,education_level:m.education_level,industry:m.industry,occupation:m.occupation,sr22:m.sr22,keys:Object.keys(m)})});const l=21474836;if("sale_price_cents"in t){const u=t.sale_price_cents;if(typeof u=="number"&&Number.isFinite(u)){const d=Math.trunc(u);if(d>=1){const m=Math.min(d,l);t.sale_price_cents=m*100}}}return Array.isArray(t.home_losses)&&(t.home_losses=t.home_losses.map(u=>{if(!u||typeof u!="object")return u;const d=u,m=d.amount_paid_cents;if(typeof m!="number"||!Number.isFinite(m))return d;const b=Math.trunc(m),h=Math.min(Math.max(b,0),l);return{...d,amount_paid_cents:h*100}})),t}function Gd(e,t){const r=e.findIndex(o=>o.key===t);return r<0?t:e[r+1]?.key??t}function $o(e){return e.some(t=>String(t.key)==="BundlePolicy"||String(t.key)==="BundleCustomer")}function Bo(e){return $o(e)?"Bundle":e.some(t=>String(t.key)==="Vehicle"||String(t.key)==="Driver")?"Auto":"Home"}const jd={Auto:45e3,Home:5e4,Bundle:1e5};function Vd(e,t){if(e!=="AutoCurrentCarrier")return t;const r=t.some(i=>String(i.key)==="auto_cancelled_declined_refused_to_renew"),n=t.some(i=>String(i.key)==="vehicle_policy_selections"),o=[...t];return r||o.push({question:"Has any auto insurance company cancelled, declined or refused to renew you in the last 5 years?",inputType:"radio",options:["Yes","No"],key:"auto_cancelled_declined_refused_to_renew",required:!0}),n||o.push({question:"Vehicle coverage selections",inputType:"custom",key:"vehicle_policy_selections",required:!1}),o}function Yd(e,t){if(e!=="Vehicle")return t;const r=n=>n.map(o=>{const i=o.conditionals?.map(a=>{const s=a.conditionalQuestions??[];return s.length?{...a,conditionalQuestions:r(s)}:a});return String(o.key)!=="vin"?i?{...o,conditionals:i}:o:{...o,required:!1,...i?{conditionals:i}:{}}});return r(t)}function Kd({isOpen:e,onClose:t}){const[r,n]=p.useState([]),[o,i]=p.useState(null),a=p.useRef(null);p.useEffect(()=>{a.current=o},[o]);const[s,l]=p.useState(null),[u,d]=p.useState(!1),[m,b]=p.useState(!1),[h,S]=p.useState([]),g=p.useRef(null),[Y,R]=p.useState(null),[K,V]=p.useState(void 0),[G,D]=p.useState(!1),X=p.useRef(!1);p.useEffect(()=>{if(!u||m)return;const F=Bo(r);let $=!1;const Q=[];let ie=0;const Z=8,z=5e3,f=async()=>{if($)return;ie++;try{const{quote:M}=await oo();if($)return;const k=M?.appetites??null,ee=Hd(k,F);if(ee.length>0){S(ee);return}}catch(M){console.warn("Provider polling: getQuote failed",M)}if($||ie>=Z)return;const A=window.setTimeout(f,z);Q.push(A)};return f(),()=>{$=!0,Q.forEach(A=>window.clearTimeout(A))}},[u,m,r]);function H(F){const $={SMSVerification:"Verify",Name:"Basic Details",Product:"Product & Address",AutoCurrentCarrier:"Policy",HomeCurrentCarrier:"Current Home Policy",AutoPolicy:"Policy",Vehicle:"Vehicle Details",Driver:"Operator",Customer:"Applicant",HomeConstruction:"Structure",HomeFeatures:"Features",HomePolicy:"Policy",HomeCustomer:"Applicant",BundlePolicy:"Policy",BundleCustomer:"Customer"};let Q=F.map(Z=>({key:Z,title:$[Z]||Z,loadQuestions:async()=>{const z=await Gu(Z,a.current??void 0);let f=Vd(Z,z.questions);return f=Yd(Z,f),f}}));if(F.includes("Vehicle")&&F.includes("Driver")&&F.includes("AutoCurrentCarrier")&&F.includes("Customer")){const Z=Q.findIndex(z=>z.key==="Product");if(Z>=0){const z=Q.slice(0,Z+1),f=Q.slice(Z+1),A=ee=>f.find(C=>C.key===ee)??null,M=[A("Vehicle"),A("Driver"),A("AutoCurrentCarrier"),A("Customer")].filter(ee=>!!ee),k=f.filter(ee=>!["Vehicle","Driver","AutoCurrentCarrier","Customer","AutoPolicy"].includes(String(ee.key)));Q=[...z,...M,...k]}}return Q}p.useEffect(()=>{const F=async()=>{try{const $=zu();if(Sr(),$){D(!0),i($);try{const Q=xt(),ie=await oo(Q?void 0:$);if(!ie||!ie.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:Z}=ie,{stages:z}=await zt($),f=H(z);n(f);let A;try{A=Ud(Z),R(A)}catch(k){throw new Error(`Failed to transform quote data: ${k instanceof Error?k.message:"Unknown error"}`)}const M=Fo(f,A);if(n(M),Z.current_stage){const k=Z.current_stage==="State"?"Product":Z.current_stage,ee=M.findIndex(C=>C.key===k);ee>=0?V(ee):V(M.length-1)}else V(M.length-1)}catch(Q){const ie=Q;if(ie.statusCode===404)to(),i(null);else if(ie.statusCode===401){no();try{const{stages:Z}=await zt($),z=H(Z);n(z);const f=z.findIndex(A=>A.key==="SMSVerification");f>=0&&V(f)}catch{}}}finally{D(!1)}}else{const{stages:Q}=await zt();n(H(Q))}}catch{D(!1)}};e&&!X.current&&(X.current=!0,F())},[e]),p.useEffect(()=>{if(!e)return;const{overflow:F}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=F}},[e]);const ae=p.useCallback(F=>{F.key==="Escape"&&(ho(),t())},[t]);if(p.useEffect(()=>{if(e)return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[e,ae]),p.useEffect(()=>{e||(R(null),V(void 0),D(!1),d(!1))},[e]),p.useEffect(()=>{e&&gd()},[e]),p.useEffect(()=>{s&&Array.isArray(s)&&vd({rateCount:s.length})},[s]),!e)return null;const J=()=>{ho(),t()};return c.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true","aria-labelledby":"insurance-modal-title",children:[c.jsx("div",{className:"backdrop","aria-hidden":"true"}),c.jsxs("div",{className:"modal-panel bg-white relative w-full max-w-2xl flex flex-col max-h-[90vh] overflow-hidden",role:"document",children:[c.jsx("button",{onClick:J,className:"modal-close-btn absolute top-4 right-4 text-slate-400 hover:text-slate-600 text-xl","aria-label":"Close",type:"button",children:"×"}),!u&&c.jsx("div",{className:"text-center mb-6",children:c.jsx("h2",{id:"insurance-modal-title",className:"h1-title",children:"Let's get you the best insurance rates."})}),c.jsxs("div",{className:"panel-body flex-1 min-h-0 overflow-y-auto",children:[u&&(()=>{const F=Bo(r);return c.jsx($d,{providers:h,totalTime:jd[F],flow:F,isComplete:m,onComplete:()=>{d(!1),b(!1),S([]),g.current&&(l(g.current),g.current=null)}})})(),!s&&!u&&c.jsx(c.Fragment,{children:G||r.length===0?c.jsx("div",{className:"flex items-center justify-center py-12",children:c.jsx("div",{className:"text-slate-600",children:"Loading..."})}):c.jsx(Id,{stages:r,initialValues:Y??void 0,initialActive:K,quoteId:o??void 0,onStageComplete:async(F,$)=>{try{const Q=Or(F);let ie=o,Z=r;const z=Z.findIndex(M=>M.key===$),f=Z[z],A=Gd(Z,$);if(ie)if($==="SMSVerification"){const{isVerified:M,token:k}=await Vu(ie,Q.sms_code);if(!M)throw new Error("Invalid SMS code");k&&Zu(k),await ft({current_stage:A},!1)}else if($==="Product"){const{isSupported:M}=await Yu(Q.state);if(!M)throw new Error("State is not supported");const k=xt();await ft({...Q,current_stage:A},!1,k?void 0:ie)}else{const M=xt();await ft({...Q,current_stage:A},!1,M?void 0:ie||void 0)}else{const k=(await ju(Q.phone))?.quoteId;if(!k||typeof k!="string"||k.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${k}`);ie=k,i(k),xu(k),await ft({current_stage:A},!1,k)}if(Zd.has($))try{const{stages:M}=await zt(ie||void 0);Z=H(M),Z=Fo(Z,F),n(Z)}catch(M){console.warn("Unable to refresh stages after flow-shaping step",M)}return go({stageKey:$,stageTitle:f?.title??$,stepIndex:z+1,totalSteps:Z.length}),{success:!0}}catch(Q){return{success:!1,error:Q instanceof Error?Q.message:"An error occurred"}}},onComplete:async F=>{try{const $=Or(F);if(!o)throw new Error("Quote ID is required");R(F),S([]),b(!1),g.current=null,d(!0);try{await ft($,!0);const{rates:Z}=await Ku();g.current=Z,b(!0)}catch(Z){throw d(!1),Z}const Q=r.length,ie=r[Q-1];return go({stageKey:ie?.key??"unknown",stageTitle:ie?.title??"unknown",stepIndex:Q,totalSteps:Q}),bd(),{success:!0}}catch{return{success:!1,error:"Oops, something went wrong. Please try again later."}}}})})," ",s&&o&&c.jsx(Dd,{rates:s,onBack:()=>l(null),isBundleFlow:$o(r)})]}),c.jsx("div",{className:"mt-4 pt-4 border-t border-slate-200",children:c.jsx("p",{className:"text-center text-sm text-slate-500",children:"Insurance products offered through Credify Corporation, a licensed insurance agency."})})]})]})}function qd({isOpen:e}){return c.jsx(Kd,{isOpen:e,onClose:()=>{Gt.close()}})}let xe=null,Ke=null,Wt=!1;function Jd(){xe||(xe=document.createElement("div"),xe.id="insurance-widget-root",document.documentElement.appendChild(xe)),!Ke&&xe&&(Ke=Ho.createRoot(xe))}function Ir(){Jd(),Ke&&Ke.render(p.createElement(qd,{isOpen:Wt}))}function Qd(){Ke&&xe&&(Ke.unmount(),xe.remove()),Ke=null,xe=null}const Gt={init:e=>{Wt=!!e?.autoOpen,Ir()},open:()=>{Wt=!0,Ir()},close:()=>{Wt=!1,Ir()},destroy:Qd};typeof window<"u"&&(window.CredifyInsuranceWidget=Gt),Le.CredifyInsuranceWidget=Gt,Le.default=Gt,Object.defineProperties(Le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
75
+ `}),c.jsx("div",{style:{background:"#F8FAFC",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem",fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",height:"100%",minHeight:400,overflowY:"auto"},children:c.jsxs("div",{style:{width:"100%",maxWidth:560},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[c.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:i.accent+"12",border:`1px solid ${i.accent}30`,borderRadius:100,padding:"6px 16px",marginBottom:16},children:[c.jsx("span",{style:{fontSize:14},children:i.icon}),c.jsx("span",{style:{fontSize:12,fontWeight:700,color:i.accent,letterSpacing:"0.1em",textTransform:"uppercase"},children:i.label})]}),c.jsx("h1",{style:{fontSize:26,fontWeight:700,color:"#0F172A",margin:0,letterSpacing:"-0.02em",lineHeight:1.3},children:H?"Connecting to top carriers":"Fetching your best rates"}),c.jsx("p",{style:{fontSize:14,color:"#64748B",marginTop:8,marginBottom:0},children:H?"Identifying the carriers eligible for your quote...":J?"Still gathering — a few carriers are taking a little longer...":"We're reaching out to multiple insurers on your behalf"})]}),c.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:32},children:H?c.jsx("div",{style:{display:"flex",gap:20},children:[0,1,2,3,4].map(F=>c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[c.jsx("div",{style:{width:48,height:48,borderRadius:14,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${F*.12}s`}}),c.jsx("div",{style:{width:40,height:8,borderRadius:4,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${F*.12}s`}})]},`skeleton-${F}`))}):ae?c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[c.jsxs("div",{style:{width:64,height:64,borderRadius:18,background:ae.color+"18",border:`2px solid ${ae.color}`,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16,color:ae.color,position:"relative",animation:"providerPulse 1.8s ease-in-out infinite"},children:[ae.abbr,c.jsx("div",{style:{position:"absolute",inset:-5,borderRadius:22,border:`2px solid ${ae.color}`,pointerEvents:"none",animation:"ringPulse 1.6s ease-in-out infinite"}})]}),c.jsx("span",{style:{fontSize:13,fontWeight:600,color:ae.color,letterSpacing:"0.04em"},children:ae.name})]}):null}),c.jsxs("div",{className:`iq-card-fade ${g?"iq-card-visible":"iq-card-hidden"}`,style:{background:"#FFFFFF",borderRadius:24,border:"1px solid #E2E8F0",padding:32},children:[c.jsx("div",{style:{display:"flex",alignItems:"center",gap:20,marginBottom:28},children:H||!ae?c.jsxs("div",{style:{flex:1,textAlign:"center",padding:"8px 0"},children:[c.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 6px"},children:"Please wait"}),c.jsx("h2",{style:{fontSize:18,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:"Checking eligible providers"}),c.jsx("p",{style:{fontSize:13,color:"#64748B",margin:0},children:"Reviewing your details against our carrier network"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{position:"relative",flexShrink:0},children:[c.jsx(Fd,{progress:m,color:ae.color,size:80}),c.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsxs("span",{style:{fontSize:14,fontWeight:700,color:ae.color},children:[Math.round(m),"%"]})})]}),c.jsxs("div",{style:{flex:1},children:[c.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 4px"},children:J?"Still checking":"Now checking"}),c.jsx("h2",{style:{fontSize:20,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:ae.name}),c.jsx("p",{className:"iq-status-text",style:{fontSize:13,color:"#64748B",margin:0},children:kr[h]},`${s}-${h}`)]})]})}),c.jsxs("div",{children:[c.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.08em",textTransform:"uppercase",margin:"0 0 8px"},children:H?"Initializing":"Gathering quotes"}),c.jsx("div",{style:{height:6,background:"#F1F5F9",borderRadius:100,overflow:"hidden"},children:c.jsx("div",{style:{height:"100%",width:"35%",background:i.accent,borderRadius:100,animation:"shimmerSlide 1.4s ease-in-out infinite"}})})]})]})]})})]})}const Bd={SafecoPersonal:{name:"Safeco",abbr:"SFC",color:"#0F337A"},AssuranceAmerica:{name:"Assurance America",abbr:"AA",color:"#2768B5"},CommonWealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#2D69EC"},Alinsco:{name:"Alinsco",abbr:"AL",color:"#20395D"},ACORDBOLTPersonalAuto:{name:"Bolt Auto",abbr:"BLT",color:"#1F2937"},ACORDBOLTPersonalHome:{name:"Bolt Home",abbr:"BLT",color:"#1F2937"},TwentyFirstCentury:{name:"21st Century",abbr:"21C",color:"#B2392A"},ACentral:{name:"A-Central",abbr:"ACT",color:"#EAAD1D"},AAA:{name:"AAA",abbr:"AAA",color:"#DB461C"},AARP:{name:"AARP",abbr:"ARP",color:"#DB4724"},Acadia:{name:"Acadia",abbr:"ACD",color:"#386B61"},Ace:{name:"ACE",abbr:"ACE",color:"#457D48"},Acuity:{name:"Acuity",abbr:"ACU",color:"#D74630"},AdirondackInsExchange:{name:"Adirondack",abbr:"ADK",color:"#1F5490"},Aegis:{name:"Aegis",abbr:"AEG",color:"#1A4675"},AIC:{name:"AIC",abbr:"AIC",color:"#508F47"},AIG:{name:"AIG",abbr:"AIG",color:"#223572"},AlfaAlliance:{name:"Alfa Alliance",abbr:"ALF",color:"#C13D17"},AllianzOfAmerica:{name:"Allianz",abbr:"ALZ",color:"#003781"},AllianzOfAmericaJefferson:{name:"Allianz Jefferson",abbr:"ALZ",color:"#003781"},Allied:{name:"Allied",abbr:"ALD",color:"#0047BB"},Allmerica:{name:"Allmerica",abbr:"ALM",color:"#003DA5"},Allstate:{name:"Allstate",abbr:"ALS",color:"#002F87"},AmericaFirst:{name:"America First",abbr:"AMF",color:"#003DA5"},AmericanCommerce:{name:"American Commerce",abbr:"ACM",color:"#003DA5"},AmericanFamily:{name:"American Family",abbr:"AMF",color:"#0033A0"},Amica:{name:"Amica",abbr:"AMI",color:"#003DA5"},Ameriprise:{name:"Ameriprise",abbr:"AMP",color:"#003DA5"},ASILloyds:{name:"ASI Lloyds",abbr:"ASI",color:"#003DA5"},Assurant:{name:"Assurant",abbr:"ASR",color:"#0033A0"},AtlasGeneralAgency:{name:"Atlas General",abbr:"ATL",color:"#1F3864"},AustinMutual:{name:"Austin Mutual",abbr:"AUS",color:"#1F3864"},Autoone:{name:"AutoOne",abbr:"AON",color:"#003DA5"},AutoOwners:{name:"Auto-Owners",abbr:"AO",color:"#C8102E"},BadgerMutual:{name:"Badger Mutual",abbr:"BDG",color:"#003DA5"},Balboa:{name:"Balboa",abbr:"BAL",color:"#1F3864"},Bamboo:{name:"Bamboo",abbr:"BMB",color:"#0F4C3A"},Bankers:{name:"Bankers",abbr:"BNK",color:"#1F3864"},BeaconNational:{name:"Beacon National",abbr:"BCN",color:"#003DA5"},BrethernMutual:{name:"Brethren Mutual",abbr:"BRT",color:"#1F3864"},BristolWest:{name:"Bristol West",abbr:"BW",color:"#003DA5"},BunkerHill:{name:"Bunker Hill",abbr:"BHL",color:"#1F3864"},CapitalInsuranceGroup:{name:"Capital Insurance",abbr:"CIG",color:"#003DA5"},Celina:{name:"Celina",abbr:"CEL",color:"#1F3864"},CentralMutualOfOH:{name:"Central Mutual",abbr:"CMO",color:"#003DA5"},Chubb:{name:"Chubb",abbr:"CHB",color:"#000000"},ChubbInsurance:{name:"Chubb",abbr:"CHB",color:"#000000"},Cincinnati:{name:"Cincinnati",abbr:"CIN",color:"#003DA5"},Citizens:{name:"Citizens",abbr:"CTZ",color:"#003DA5"},Clearcover:{name:"Clearcover",abbr:"CC",color:"#00B5E2"},CNA:{name:"CNA",abbr:"CNA",color:"#CC3232"},ColonialPenn:{name:"Colonial Penn",abbr:"CPN",color:"#0072CE"},ColoradoCasualty:{name:"Colorado Casualty",abbr:"COC",color:"#1F3864"},Columbia:{name:"Columbia",abbr:"CLM",color:"#003DA5"},CommerceWest:{name:"Commerce West",abbr:"CMW",color:"#003DA5"},CommonwealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#1F3864"},ConstitutionalCasualty:{name:"Constitutional Casualty",abbr:"CON",color:"#1F3864"},Cornerstone:{name:"Cornerstone",abbr:"CRN",color:"#1F3864"},Countrywide:{name:"Countrywide",abbr:"CTW",color:"#003DA5"},CSE:{name:"CSE",abbr:"CSE",color:"#003DA5"},Cumberland:{name:"Cumberland",abbr:"CMB",color:"#1F3864"},Cypress:{name:"Cypress",abbr:"CYP",color:"#0F4C3A"},Dairyland:{name:"Dairyland",abbr:"DL",color:"#0072CE"},Deerbrook:{name:"Deerbrook",abbr:"DBK",color:"#1F3864"},Direct:{name:"Direct",abbr:"DIR",color:"#D52B1E"},Donegal:{name:"Donegal",abbr:"DON",color:"#003DA5"},Drive:{name:"Drive",abbr:"DRV",color:"#1F3864"},Electric:{name:"Electric",abbr:"ELC",color:"#003DA5"},EMC:{name:"EMC",abbr:"EMC",color:"#003DA5"},Encompass:{name:"Encompass",abbr:"ENC",color:"#002F87"},Erie:{name:"Erie",abbr:"ERI",color:"#005FAC"},Esurance:{name:"Esurance",abbr:"ESU",color:"#00A6CE"},ExcelsiorInsuranceCompany:{name:"Excelsior",abbr:"EXC",color:"#1F3864"},Explorer:{name:"Explorer",abbr:"EXP",color:"#1F3864"},FairPlan:{name:"FAIR Plan",abbr:"FPN",color:"#1F3864"},FarmBureau:{name:"Farm Bureau",abbr:"FB",color:"#00843D"},Farmers:{name:"Farmers",abbr:"FRM",color:"#1C428B"},Fidelity:{name:"Fidelity",abbr:"FID",color:"#00833F"},FiremansFund:{name:"Fireman's Fund",abbr:"FF",color:"#E31837"},FirstAmerican:{name:"First American",abbr:"FAM",color:"#003DA5"},Foremost:{name:"Foremost",abbr:"FOR",color:"#E31837"},ForemostInsuranceCompany:{name:"Foremost",abbr:"FOR",color:"#E31837"},Geico:{name:"GEICO",abbr:"GEI",color:"#0F4293"},GeneralCasualty:{name:"General Casualty",abbr:"GC",color:"#1F3864"},GermantownMutual:{name:"Germantown Mutual",abbr:"GTM",color:"#1F3864"},GMAC:{name:"GMAC",abbr:"GMA",color:"#003DA5"},Grange:{name:"Grange",abbr:"GRG",color:"#003DA5"},GreatAmerican:{name:"Great American",abbr:"GA",color:"#003DA5"},Grinnell:{name:"Grinnell Mutual",abbr:"GRN",color:"#E31837"},GuideOne:{name:"GuideOne",abbr:"GO",color:"#0072CE"},Hanover:{name:"Hanover",abbr:"HAN",color:"#003DA5"},Harbor:{name:"Harbor",abbr:"HBR",color:"#1F3864"},Harleysville:{name:"Harleysville",abbr:"HRL",color:"#003DA5"},Hartford:{name:"The Hartford",abbr:"HFD",color:"#7F1734"},HartfordOMNI:{name:"Hartford OMNI",abbr:"HOM",color:"#7F1734"},HastingsMutual:{name:"Hastings Mutual",abbr:"HST",color:"#1F3864"},HawkeyeSecurity:{name:"Hawkeye Security",abbr:"HWK",color:"#1F3864"},HDI:{name:"HDI",abbr:"HDI",color:"#00563F"},HippoInsuranceCompany:{name:"Hippo",abbr:"HPO",color:"#00C9A7"},HomeownersOfAmerica:{name:"Homeowners of America",abbr:"HOA",color:"#003DA5"},Homesite:{name:"Homesite",abbr:"HMS",color:"#0033A0"},HoraceMann:{name:"Horace Mann",abbr:"HM",color:"#003DA5"},HoustonGeneral:{name:"Houston General",abbr:"HG",color:"#1F3864"},IFA:{name:"IFA",abbr:"IFA",color:"#003DA5"},ImperialCasualty:{name:"Imperial Casualty",abbr:"IMP",color:"#1F3864"},Indiana:{name:"Indiana Insurance",abbr:"IND",color:"#003DA5"},IndianaFarmers:{name:"Indiana Farmers",abbr:"IFM",color:"#00843D"},Infinity:{name:"Infinity",abbr:"INF",color:"#E31837"},Insurequest:{name:"Insurequest",abbr:"INQ",color:"#1F3864"},Integon:{name:"Integon",abbr:"ITG",color:"#003DA5"},Integrity:{name:"Integrity",abbr:"ITY",color:"#1F3864"},Kemper:{name:"Kemper",abbr:"KMP",color:"#0033A0"},LibertyMutual:{name:"Liberty Mutual",abbr:"LM",color:"#FFD000"},LibertyNorthwest:{name:"Liberty Northwest",abbr:"LNW",color:"#FFD000"},Lloyds:{name:"Lloyd's",abbr:"LLY",color:"#003DA5"},MainStreetAmerica:{name:"Main Street America",abbr:"MSA",color:"#003DA5"},Mapfre:{name:"MAPFRE",abbr:"MAP",color:"#E31837"},MarkelInsuranceCompany:{name:"Markel",abbr:"MKL",color:"#003DA5"},Mendota:{name:"Mendota",abbr:"MND",color:"#1F3864"},MerchantsGroup:{name:"Merchants Group",abbr:"MRC",color:"#003DA5"},Mercury:{name:"Mercury",abbr:"MER",color:"#ED1C24"},Metlife:{name:"MetLife",abbr:"MET",color:"#0090DA"},Metropolitan:{name:"Metropolitan",abbr:"MTP",color:"#0090DA"},MidContinent:{name:"Mid-Continent",abbr:"MC",color:"#003DA5"},MidwesternIndemnity:{name:"Midwestern Indemnity",abbr:"MWI",color:"#003DA5"},Montgomery:{name:"Montgomery",abbr:"MTG",color:"#1F3864"},MSA:{name:"MSA",abbr:"MSA",color:"#003DA5"},MtWashington:{name:"Mt. Washington",abbr:"MTW",color:"#1F3864"},MutualBenefit:{name:"Mutual Benefit",abbr:"MB",color:"#1F3864"},NatGenPremier:{name:"NatGen Premier",abbr:"NGP",color:"#0033A0"},NationalGeneral:{name:"National General",abbr:"NG",color:"#0033A0"},Nationwide:{name:"Nationwide",abbr:"NW",color:"#204D9B"},NationwideScottsdale:{name:"Nationwide Scottsdale",abbr:"NWS",color:"#204D9B"},NewYorkCentralMutual:{name:"NY Central Mutual",abbr:"NYC",color:"#003DA5"},NJManufacturers:{name:"NJM Insurance",abbr:"NJM",color:"#003DA5"},NJSkylands:{name:"NJ Skylands",abbr:"NJS",color:"#003DA5"},Northstar:{name:"Northstar",abbr:"NST",color:"#1F3864"},Occidental:{name:"Occidental",abbr:"OCC",color:"#1F3864"},OhioCasualty:{name:"Ohio Casualty",abbr:"OHC",color:"#003DA5"},OmahaPC:{name:"Omaha P&C",abbr:"OMA",color:"#003DA5"},OneBeacon:{name:"OneBeacon",abbr:"OB",color:"#003DA5"},OregonMutual:{name:"Oregon Mutual",abbr:"ORE",color:"#003DA5"},Palisades:{name:"Palisades",abbr:"PAL",color:"#1F3864"},PeerlessMontgomery:{name:"Peerless Montgomery",abbr:"PRM",color:"#1F3864"},Pekin:{name:"Pekin",abbr:"PEK",color:"#003DA5"},Pemco:{name:"PEMCO",abbr:"PMC",color:"#0072CE"},PennNational:{name:"Penn National",abbr:"PN",color:"#003DA5"},PlymouthRock:{name:"Plymouth Rock",abbr:"PLR",color:"#003DA5"},PreferredMutual:{name:"Preferred Mutual",abbr:"PFM",color:"#003DA5"},Proformance:{name:"Proformance",abbr:"PRF",color:"#1F3864"},Progressive:{name:"Progressive",abbr:"PRG",color:"#0053BA"},Prudential:{name:"Prudential",abbr:"PRU",color:"#0033A0"},PureHighValue:{name:"PURE",abbr:"PUR",color:"#003DA5"},Republic:{name:"Republic",abbr:"REP",color:"#003DA5"},RockfordMutual:{name:"Rockford Mutual",abbr:"RKF",color:"#1F3864"},RoyalAndSunAlliance:{name:"Royal & SunAlliance",abbr:"RSA",color:"#003DA5"},Safeco:{name:"Safeco",abbr:"SFC",color:"#E4002B"},SECURA:{name:"SECURA",abbr:"SEC",color:"#003DA5"},Selective:{name:"Selective",abbr:"SEL",color:"#003DA5"},SouthernCounty:{name:"Southern County",abbr:"SCM",color:"#1F3864"},SouthernMutual:{name:"Southern Mutual",abbr:"SM",color:"#1F3864"},SouthernTrust:{name:"Southern Trust",abbr:"ST",color:"#1F3864"},StPaulTravelers:{name:"St. Paul Travelers",abbr:"SPT",color:"#C8102E"},StandardMutual:{name:"Standard Mutual",abbr:"STM",color:"#1F3864"},StarCasualty:{name:"Star Casualty",abbr:"SC",color:"#1F3864"},StateAuto:{name:"State Auto",abbr:"SA",color:"#003DA5"},StateFarm:{name:"State Farm",abbr:"SF",color:"#CC0717"},StateFarmFloridaInsuranceCompany:{name:"State Farm Florida",abbr:"SFF",color:"#CC0717"},SunshineStateInsuranceCompany:{name:"Sunshine State",abbr:"SSS",color:"#FFC72C"},Travelers:{name:"Travelers",abbr:"TRV",color:"#C8102E"},Tower:{name:"Tower",abbr:"TWR",color:"#1F3864"},TWFG:{name:"TWFG",abbr:"TWF",color:"#003DA5"},Unigard:{name:"Unigard",abbr:"UNG",color:"#1F3864"},UnitedFireAndCasualty:{name:"United Fire & Casualty",abbr:"UFC",color:"#003DA5"},Unitrin:{name:"Unitrin",abbr:"UTN",color:"#003DA5"},Universal:{name:"Universal",abbr:"UNV",color:"#003DA5"},USAA:{name:"USAA",abbr:"USA",color:"#1A3258"},UticaNational:{name:"Utica National",abbr:"UTC",color:"#003DA5"},Victoria:{name:"Victoria",abbr:"VIC",color:"#1F3864"},Wellington:{name:"Wellington",abbr:"WLG",color:"#1F3864"},WestBend:{name:"West Bend",abbr:"WB",color:"#003DA5"},WesternNational:{name:"Western National",abbr:"WN",color:"#003DA5"},WesternReserveGroup:{name:"Western Reserve",abbr:"WR",color:"#003DA5"},Westfield:{name:"Westfield",abbr:"WF",color:"#F05136"},WhiteMountains:{name:"White Mountains",abbr:"WM",color:"#1F3864"},WilsonMutual:{name:"Wilson Mutual",abbr:"WLM",color:"#1F3864"},Windsor:{name:"Windsor",abbr:"WIN",color:"#1F3864"},Zurich:{name:"Zurich",abbr:"ZUR",color:"#003399"}},Po=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function xd(e){return e.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function zd(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function Rd(e){const t=new Set,r=[];return e.forEach((n,o)=>{const a=Bd[n]??{name:zd(n),abbr:xd(n),color:Po[o%Po.length]};t.has(a.name)||(t.add(a.name),r.push(a))}),r}function Hd(e,t){if(!e)return[];const r=[];return(t==="Auto"||t==="Bundle")&&Array.isArray(e.PersonalAuto)&&r.push(...e.PersonalAuto),(t==="Home"||t==="Bundle")&&Array.isArray(e.PersonalHome)&&r.push(...e.PersonalHome),Rd(r)}function U(e){if(e===!0)return"Yes";if(e===!1)return"No"}function ke(e){if(e)try{const t=typeof e=="string"?new Date(e):e;return isNaN(t.getTime())?void 0:t.toISOString().split("T")[0]}catch{return}}function Ud(e){const t=e,r={};t.phone&&(r.phone=t.phone),t.first_name&&(r.first_name=t.first_name),t.last_name&&(r.last_name=t.last_name),t.email&&(r.email=t.email),t.date_of_birth&&(r.date_of_birth=ke(t.date_of_birth)),t.product&&(r.product=t.product),t.state&&(r.state=t.state);const n=[];t.line_1&&n.push(t.line_1),t.line_2&&n.push(t.line_2),t.city&&n.push(t.city),t.state&&n.push(t.state),t.postal_code&&n.push(t.postal_code),n.length>0&&(r.address=n.join(", ")),t.years_at_address!==null&&t.years_at_address!==void 0&&(r.years_at_address=t.years_at_address),t.months_at_address!==null&&t.months_at_address!==void 0&&(r.months_at_address=t.months_at_address),t.move_in_date&&(r.move_in_date=ke(t.move_in_date));const o=[];t.prior_line_1&&o.push(t.prior_line_1),t.prior_line_2&&o.push(t.prior_line_2),t.prior_city&&o.push(t.prior_city),t.prior_state&&o.push(t.prior_state),t.prior_postal_code&&o.push(t.prior_postal_code),o.length>0&&(r.prior_address=o.join(", ")),t.years_at_prior_address!==null&&t.years_at_prior_address!==void 0&&(r.years_at_prior_address=t.years_at_prior_address),t.is_mailing_address_different!==null&&t.is_mailing_address_different!==void 0&&(r.is_mailing_address_different=U(t.is_mailing_address_different)),t.mailing_address&&(r.mailing_address=t.mailing_address),t.effective_date&&(r.effective_date=ke(t.effective_date)),t.auto_has_prior_insurance!==null&&t.auto_has_prior_insurance!==void 0&&(r.auto_has_prior_insurance=U(t.auto_has_prior_insurance)),t.auto_prior_expiration_date&&(r.auto_prior_expiration_date=ke(t.auto_prior_expiration_date)),t.auto_prior_carrier_name&&(r.auto_prior_carrier_name=t.auto_prior_carrier_name),t.auto_prior_liability_limit&&(r.auto_prior_liability_limit=t.auto_prior_liability_limit),t.auto_reason_for_no_insurance&&(r.auto_reason_for_no_insurance=t.auto_reason_for_no_insurance),t.auto_prior_years!==null&&t.auto_prior_years!==void 0&&(r.auto_prior_years=t.auto_prior_years),t.auto_prior_months!==null&&t.auto_prior_months!==void 0&&(r.auto_prior_months=t.auto_prior_months),t.auto_continuous_coverage_years!==null&&t.auto_continuous_coverage_years!==void 0&&(r.auto_continuous_coverage_years=t.auto_continuous_coverage_years),t.auto_cancelled_declined_refused_to_renew!==null&&t.auto_cancelled_declined_refused_to_renew!==void 0&&(r.auto_cancelled_declined_refused_to_renew=U(t.auto_cancelled_declined_refused_to_renew)),t.auto_current_annual_premium_cents!==null&&t.auto_current_annual_premium_cents!==void 0&&(r.auto_current_annual_premium_cents=t.auto_current_annual_premium_cents),t.policy_bi&&(r.policy_bi=t.policy_bi),t.policy_um&&(r.policy_um=t.policy_um),t.policy_pd&&(r.policy_pd=t.policy_pd),t.policy_mp&&(r.policy_mp=t.policy_mp),t.policy_umpd&&(r.policy_umpd=t.policy_umpd),t.policy_pip&&(r.policy_pip=t.policy_pip),t.policy_auto_death_indemnity&&(r.policy_auto_death_indemnity=t.policy_auto_death_indemnity),t.driver_vehicle_assignments&&(r.driver_vehicle_assignments=t.driver_vehicle_assignments),t.home_has_prior_insurance!==null&&t.home_has_prior_insurance!==void 0&&(r.home_has_prior_insurance=U(t.home_has_prior_insurance)),t.home_prior_expiration_date&&(r.home_prior_expiration_date=ke(t.home_prior_expiration_date)),t.home_prior_carrier_name&&(r.home_prior_carrier_name=t.home_prior_carrier_name),t.home_prior_years!==null&&t.home_prior_years!==void 0&&(r.home_prior_years=t.home_prior_years),t.home_continuous_coverage_years!==null&&t.home_continuous_coverage_years!==void 0&&(r.home_continuous_coverage_years=t.home_continuous_coverage_years),t.property_insurance_cancelled!==null&&t.property_insurance_cancelled!==void 0&&(r.property_insurance_cancelled=U(t.property_insurance_cancelled)),t.lapse_in_coverage!==null&&t.lapse_in_coverage!==void 0&&(r.lapse_in_coverage=U(t.lapse_in_coverage)),t.year_built!==null&&t.year_built!==void 0&&(r.year_built=t.year_built),t.number_of_units!==null&&t.number_of_units!==void 0&&(r.number_of_units=t.number_of_units),t.number_of_stories!==null&&t.number_of_stories!==void 0&&(r.number_of_stories=t.number_of_stories),t.number_of_beds!==null&&t.number_of_beds!==void 0&&(r.number_of_beds=t.number_of_beds),t.number_of_full_baths!==null&&t.number_of_full_baths!==void 0&&(r.number_of_full_baths=t.number_of_full_baths),t.number_of_partial_baths!==null&&t.number_of_partial_baths!==void 0&&(r.number_of_partial_baths=t.number_of_partial_baths),t.under_construction!==null&&t.under_construction!==void 0&&(r.under_construction=U(t.under_construction)),t.distance_from_fire_hydrant_ft&&(r.distance_from_fire_hydrant_ft=t.distance_from_fire_hydrant_ft),t.distance_from_fire_station_miles&&(r.distance_from_fire_station_miles=t.distance_from_fire_station_miles),t.architectural_style&&(r.architectural_style=t.architectural_style),t.dwelling_type&&(r.dwelling_type=t.dwelling_type),t.construction_quality&&(r.construction_quality=t.construction_quality),t.located_over_water!==null&&t.located_over_water!==void 0&&(r.located_over_water=t.located_over_water),t.construction_type&&(r.construction_type=t.construction_type),t.exterior_wall_type&&(r.exterior_wall_type=t.exterior_wall_type),t.foundation_type&&(r.foundation_type=t.foundation_type),t.roof_material_type&&(r.roof_material_type=t.roof_material_type),t.roof_shape&&(r.roof_shape=t.roof_shape),t.roof_updated_type&&(r.roof_updated_type=t.roof_updated_type),t.year_roof_updated!==null&&t.year_roof_updated!==void 0&&(r.year_roof_updated=t.year_roof_updated),t.mit_credit_form!==null&&t.mit_credit_form!==void 0&&(r.mit_credit_form=U(t.mit_credit_form)),t.storm_shutters!==null&&t.storm_shutters!==void 0&&(r.storm_shutters=U(t.storm_shutters)),t.heating_type&&(r.heating_type=t.heating_type),t.oil_tank_location&&(r.oil_tank_location=t.oil_tank_location),t.heating_fuel_type&&(r.heating_fuel_type=t.heating_fuel_type),t.number_of_fireplaces!==null&&t.number_of_fireplaces!==void 0&&(r.number_of_fireplaces=t.number_of_fireplaces),t.basement_type&&(r.basement_type=t.basement_type),t.parking_type&&(r.parking_type=t.parking_type),t.number_of_parking_spaces!==null&&t.number_of_parking_spaces!==void 0&&(r.number_of_parking_spaces=t.number_of_parking_spaces),t.plumbing_type&&(r.plumbing_type=t.plumbing_type),t.pool_type&&(r.pool_type=t.pool_type),t.total_area_sq_ft!==null&&t.total_area_sq_ft!==void 0&&(r.total_area_sq_ft=t.total_area_sq_ft),t.parcel_area_sq_ft!==null&&t.parcel_area_sq_ft!==void 0&&(r.parcel_area_sq_ft=t.parcel_area_sq_ft),t.residence_type&&(r.residence_type=t.residence_type),t.usage_type&&(r.usage_type=t.usage_type),t.household_size!==null&&t.household_size!==void 0&&(r.household_size=t.household_size),t.number_of_mortgagees!==null&&t.number_of_mortgagees!==void 0&&(r.number_of_mortgagees=t.number_of_mortgagees),t.has_dog!==null&&t.has_dog!==void 0&&(r.has_dog=U(t.has_dog)),t.dog_breed_type&&(r.dog_breed_type=t.dog_breed_type),t.number_of_dogs!==null&&t.number_of_dogs!==void 0&&(r.number_of_dogs=t.number_of_dogs),t.has_vicious_animals!==null&&t.has_vicious_animals!==void 0&&(r.has_vicious_animals=U(t.has_vicious_animals)),t.has_business_on_premises!==null&&t.has_business_on_premises!==void 0&&(r.has_business_on_premises=U(t.has_business_on_premises)),t.business_class&&(r.business_class=t.business_class),t.occupancy_type&&(r.occupancy_type=t.occupancy_type),t.short_term_rental!==null&&t.short_term_rental!==void 0&&(r.short_term_rental=U(t.short_term_rental)),t.sale_price_cents!==null&&t.sale_price_cents!==void 0&&(r.sale_price_cents=Math.round(Number(t.sale_price_cents)/100)),t.number_of_families!==null&&t.number_of_families!==void 0&&(r.number_of_families=t.number_of_families),t.number_of_units_in_firewall!==null&&t.number_of_units_in_firewall!==void 0&&(r.number_of_units_in_firewall=t.number_of_units_in_firewall),t.heating_update_yn!==null&&t.heating_update_yn!==void 0&&(r.heating_update_yn=U(t.heating_update_yn)),t.heating_update_type&&(r.heating_update_type=t.heating_update_type),t.heating_update_year!==null&&t.heating_update_year!==void 0&&(r.heating_update_year=t.heating_update_year),t.plumbing_update_yn!==null&&t.plumbing_update_yn!==void 0&&(r.plumbing_update_yn=U(t.plumbing_update_yn)),t.plumbing_update_type&&(r.plumbing_update_type=t.plumbing_update_type),t.plumbing_update_year!==null&&t.plumbing_update_year!==void 0&&(r.plumbing_update_year=t.plumbing_update_year),t.electrical_update_yn!==null&&t.electrical_update_yn!==void 0&&(r.electrical_update_yn=U(t.electrical_update_yn)),t.electrical_update_type&&(r.electrical_update_type=t.electrical_update_type),t.electrical_update_year!==null&&t.electrical_update_year!==void 0&&(r.electrical_update_year=t.electrical_update_year),t.electric_circuit_breaker!==null&&t.electric_circuit_breaker!==void 0&&(r.electric_circuit_breaker=U(t.electric_circuit_breaker)),t.dwelling_replacement_cost!==null&&t.dwelling_replacement_cost!==void 0&&(r.dwelling_replacement_cost=t.dwelling_replacement_cost),t.other_structures_coverage!==null&&t.other_structures_coverage!==void 0&&(r.other_structures_coverage=t.other_structures_coverage),t.personal_property_coverage!==null&&t.personal_property_coverage!==void 0&&(r.personal_property_coverage=t.personal_property_coverage),t.loss_of_use_coverage!==null&&t.loss_of_use_coverage!==void 0&&(r.loss_of_use_coverage=t.loss_of_use_coverage),t.personal_liability&&(r.personal_liability=t.personal_liability),t.dwelling_medical_payments&&(r.dwelling_medical_payments=t.dwelling_medical_payments),t.all_perils_deductible&&(r.all_perils_deductible=t.all_perils_deductible),t.windstorm_deductible&&(r.windstorm_deductible=t.windstorm_deductible),t.has_garage!==null&&t.has_garage!==void 0&&(r.has_garage=U(t.has_garage)),t.has_pool!==null&&t.has_pool!==void 0&&(r.has_pool=U(t.has_pool)),t.has_trampoline!==null&&t.has_trampoline!==void 0&&(r.has_trampoline=U(t.has_trampoline)),t.gender&&(r.gender=t.gender),t.marital_status&&(r.marital_status=t.marital_status),t.employment_industry&&(r.employment_industry=t.employment_industry),t.occupation&&(r.occupation=t.occupation),t.has_co_applicant!==null&&t.has_co_applicant!==void 0&&(r.has_co_applicant=U(t.has_co_applicant)),t.co_applicant_first_name&&(r.co_applicant_first_name=t.co_applicant_first_name),t.co_applicant_middle_name&&(r.co_applicant_middle_name=t.co_applicant_middle_name),t.co_applicant_last_name&&(r.co_applicant_last_name=t.co_applicant_last_name),t.co_applicant_gender&&(r.co_applicant_gender=t.co_applicant_gender),t.co_applicant_marital_status&&(r.co_applicant_marital_status=t.co_applicant_marital_status),t.co_applicant_relationship&&(r.co_applicant_relationship=t.co_applicant_relationship),t.co_applicant_date_of_birth&&(r.co_applicant_date_of_birth=ke(t.co_applicant_date_of_birth)),t.co_applicant_employment_industry&&(r.co_applicant_employment_industry=t.co_applicant_employment_industry),t.co_applicant_occupation&&(r.co_applicant_occupation=t.co_applicant_occupation),t.retiree_discount!==null&&t.retiree_discount!==void 0&&(r.retiree_discount=U(t.retiree_discount)),t.gated_community_discount!==null&&t.gated_community_discount!==void 0&&(r.gated_community_discount=U(t.gated_community_discount)),t.multi_policy_discount!==null&&t.multi_policy_discount!==void 0&&(r.multi_policy_discount=U(t.multi_policy_discount)),t.non_smoker_discount!==null&&t.non_smoker_discount!==void 0&&(r.non_smoker_discount=U(t.non_smoker_discount)),t.first_time_buyer_discount!==null&&t.first_time_buyer_discount!==void 0&&(r.first_time_buyer_discount=U(t.first_time_buyer_discount)),t.fire_detection_system!==null&&t.fire_detection_system!==void 0&&(r.fire_detection_system=U(t.fire_detection_system)),t.burglar_alarm_system!==null&&t.burglar_alarm_system!==void 0&&(r.burglar_alarm_system=U(t.burglar_alarm_system)),t.burglar_alarm_system_type&&(r.burglar_alarm_system_type=t.burglar_alarm_system_type),t.smoke_detectors!==null&&t.smoke_detectors!==void 0&&(r.smoke_detectors=U(t.smoke_detectors)),t.sprinkler_system!==null&&t.sprinkler_system!==void 0&&(r.sprinkler_system=U(t.sprinkler_system)),t.sprinkler_system_type&&(r.sprinkler_system_type=t.sprinkler_system_type),t.gas_leakage_detector!==null&&t.gas_leakage_detector!==void 0&&(r.gas_leakage_detector=U(t.gas_leakage_detector)),t.deadbolt_locks!==null&&t.deadbolt_locks!==void 0&&(r.deadbolt_locks=U(t.deadbolt_locks)),t.fire_extinguisher!==null&&t.fire_extinguisher!==void 0&&(r.fire_extinguisher=U(t.fire_extinguisher)),t.order_credit_authorized!==null&&t.order_credit_authorized!==void 0&&(r.order_credit_authorized=U(t.order_credit_authorized)),t.has_health_insurance_auto_accident!==null&&t.has_health_insurance_auto_accident!==void 0&&(r.has_health_insurance_auto_accident=U(t.has_health_insurance_auto_accident)),t.is_corporation!==null&&t.is_corporation!==void 0&&(r.is_corporation=U(t.is_corporation)),t.named_insured_foreclosure_repo_bankruptcy!==null&&t.named_insured_foreclosure_repo_bankruptcy!==void 0&&(r.named_insured_foreclosure_repo_bankruptcy=U(t.named_insured_foreclosure_repo_bankruptcy)),t.named_insured_convicted_insurance_fraud!==null&&t.named_insured_convicted_insurance_fraud!==void 0&&(r.named_insured_convicted_insurance_fraud=U(t.named_insured_convicted_insurance_fraud));const i={};if(t.vehicles)for(const a of t.vehicles)a.quote_vehicle_id&&a.vin&&(i[a.quote_vehicle_id]=a.vin);return t.drivers&&t.drivers.length>0?(r.drivers="Yes",r.drivers__items=t.drivers.map(a=>{const s=a,l={};s.first_name&&(l.first_name=s.first_name),s.middle_name&&(l.middle_name=s.middle_name),s.last_name&&(l.last_name=s.last_name),s.date_of_birth&&(l.date_of_birth=ke(s.date_of_birth)),s.gender&&(l.gender=s.gender),s.marital_status&&(l.marital_status=s.marital_status),s.relationship_to_insured&&(l.relationship_to_insured=s.relationship_to_insured),s.is_registered_owner!==null&&s.is_registered_owner!==void 0&&(l.is_registered_owner=s.is_registered_owner?"Yes":"No"),s.license_state&&(l.license_state=s.license_state),s.license_status&&(l.license_status=s.license_status),s.license_number&&(l.license_number=s.license_number),s.date_first_licensed&&(l.date_first_licensed=ke(s.date_first_licensed)),s.education_level&&(l.education_level=Qn(s.education_level)),s.occupation&&(l.occupation=Xn(s.occupation)),s.industry&&(l.industry=Pt(s.industry)),s.employment_status&&(l.employment_status=s.employment_status),s.last_5_years_license_suspended_or_revoked!==null&&s.last_5_years_license_suspended_or_revoked!==void 0&&(l.last_5_years_license_suspended_or_revoked=U(s.last_5_years_license_suspended_or_revoked)),s.accident_prevention_course!==null&&s.accident_prevention_course!==void 0&&(l.accident_prevention_course=U(s.accident_prevention_course)),s.accident_prevention_course_date&&(l.accident_prevention_course_date=ke(s.accident_prevention_course_date)),s.sr22!==null&&s.sr22!==void 0&&(l.sr22=U(s.sr22));const u=s.ssn_display;typeof u=="string"&&(l.ssn_display=u);const d=s.driver_violations;d&&d.length>0&&(l.driver_violations="Yes",l.driver_violations__items=d.map(h=>{const S={};return h.code&&(S.code=h.code),h.occurred_at&&(S.occurred_at=ke(h.occurred_at)),S}));const m=s.driver_accidents;m&&m.length>0&&(l.driver_accidents="Yes",l.driver_accidents__items=m.map(h=>{const S={};return h.occurred_at&&(S.occurred_at=ke(h.occurred_at)),h.description&&(S.description=h.description),h.quote_vehicle_id&&(S.quote_vehicle_id=i[h.quote_vehicle_id]??h.quote_vehicle_id),h.property_damage_amount_paid_cents!==null&&h.property_damage_amount_paid_cents!==void 0&&(S.property_damage_amount_paid_cents=h.property_damage_amount_paid_cents),h.personal_injury_amount_paid_cents!==null&&h.personal_injury_amount_paid_cents!==void 0&&(S.personal_injury_amount_paid_cents=h.personal_injury_amount_paid_cents),S}));const b=s.losses;return b&&b.length>0&&(l.losses="Yes",l.losses__items=b.map(h=>{const S={};return h.description&&(S.description=h.description),h.date_of_incident&&(S.date_of_incident=ke(h.date_of_incident)),h.amount_paid_cents!==null&&h.amount_paid_cents!==void 0&&(S.amount_paid_cents=h.amount_paid_cents),h.quote_vehicle_id&&(S.quote_vehicle_id=i[h.quote_vehicle_id]??h.quote_vehicle_id),S})),l})):r.drivers="No",t.vehicles&&t.vehicles.length>0?(r.vehicles="Yes",r.vehicles__items=t.vehicles.map(a=>{const s=a,l={};s.vin&&(l.vin=s.vin),s.year!==null&&s.year!==void 0&&(l.year=String(s.year)),s.make&&(l.make=s.make),s.model&&(l.model=s.model),s.body_style&&(l.body_style=s.body_style),s.ownership_type&&(l.ownership_type=s.ownership_type),s.usage&&(l.usage=s.usage),s.annual_mileage!==null&&s.annual_mileage!==void 0&&(l.annual_mileage=s.annual_mileage),s.miles_to_work!==null&&s.miles_to_work!==void 0&&(l.miles_to_work=s.miles_to_work),s.percent_to_work!==null&&s.percent_to_work!==void 0&&(l.percent_to_work=s.percent_to_work);const u=[];return s.garaging_address_line_1&&u.push(s.garaging_address_line_1),s.garaging_address_line_2&&u.push(s.garaging_address_line_2),s.garaging_address_city&&u.push(s.garaging_address_city),s.garaging_address_state&&u.push(s.garaging_address_state),s.garaging_address_postal_code&&u.push(s.garaging_address_postal_code),u.length>0&&(l.garaging_address=u.join(", ")),s.new_when_purchased!==null&&s.new_when_purchased!==void 0&&(l.new_when_purchased=U(s.new_when_purchased)),s.purchase_date&&(l.purchase_date=ke(s.purchase_date)),s.anti_theft_type&&(l.anti_theft_type=s.anti_theft_type),s.passive_restraint_type&&(l.passive_restraint_type=s.passive_restraint_type),s.anti_lock_brakes!==null&&s.anti_lock_brakes!==void 0&&(l.anti_lock_brakes=U(s.anti_lock_brakes)),s.daytime_running_lights!==null&&s.daytime_running_lights!==void 0&&(l.daytime_running_lights=U(s.daytime_running_lights)),s.custom_equipment_value_cents!==null&&s.custom_equipment_value_cents!==void 0&&(l.custom_equipment_value_cents=s.custom_equipment_value_cents),s.cost_new_value_cents!==null&&s.cost_new_value_cents!==void 0&&(l.cost_new_value_cents=s.cost_new_value_cents),s.stated_value_amount_cents!==null&&s.stated_value_amount_cents!==void 0&&(l.stated_value_amount_cents=s.stated_value_amount_cents),s.vehicle_has_modifications!==null&&s.vehicle_has_modifications!==void 0&&(l.vehicle_has_modifications=U(s.vehicle_has_modifications)),s.vehicle_garaged_at_residence!==null&&s.vehicle_garaged_at_residence!==void 0&&(l.vehicle_garaged_at_residence=U(s.vehicle_garaged_at_residence)),s.vehicle_comp_deductible&&(l.vehicle_comp_deductible=s.vehicle_comp_deductible),s.vehicle_coll_deductible&&(l.vehicle_coll_deductible=s.vehicle_coll_deductible),s.vehicle_towing_and_labor&&(l.vehicle_towing_and_labor=s.vehicle_towing_and_labor),s.vehicle_transportation_expense&&(l.vehicle_transportation_expense=s.vehicle_transportation_expense),s.vehicle_full_glass!==null&&s.vehicle_full_glass!==void 0&&(l.vehicle_full_glass=U(s.vehicle_full_glass)),s.vehicle_loan_lease!==null&&s.vehicle_loan_lease!==void 0&&(l.vehicle_loan_lease=U(s.vehicle_loan_lease)),s.coverages&&s.coverages.length>0&&(l.coverages__items=s.coverages.map(d=>{const m={};return d.type&&(m.type=d.type),d.per_person_limit_cents!==null&&d.per_person_limit_cents!==void 0&&(m.per_person_limit_cents=d.per_person_limit_cents),d.per_incident_limit_cents!==null&&d.per_incident_limit_cents!==void 0&&(m.per_incident_limit_cents=d.per_incident_limit_cents),d.per_incident_limit_percent!==null&&d.per_incident_limit_percent!==void 0&&(m.per_incident_limit_percent=d.per_incident_limit_percent),d.per_day_limit_cents!==null&&d.per_day_limit_cents!==void 0&&(m.per_day_limit_cents=d.per_day_limit_cents),d.deductible_cents!==null&&d.deductible_cents!==void 0&&(m.deductible_cents=d.deductible_cents),d.is_declined!==null&&d.is_declined!==void 0&&(m.is_declined=U(d.is_declined)),m})),s.vehicle_lienholders&&s.vehicle_lienholders.length>0&&(l.vehicle_lienholders__items=s.vehicle_lienholders.map(d=>{const m={};return d.name&&(m.name=d.name),d.type&&(m.type=d.type),d.line_1&&(m.line_1=d.line_1),d.line_2&&(m.line_2=d.line_2),d.city&&(m.city=d.city),d.state&&(m.state=d.state),d.postal_code&&(m.postal_code=d.postal_code),d.phone&&(m.phone=d.phone),d.fax&&(m.fax=d.fax),m})),l})):r.vehicles="No",t.losses&&t.losses.length>0&&(r.home_losses="Yes",r.home_losses__items=t.losses.map(a=>{const s={};return a.description&&(s.description=a.description),a.date_of_incident&&(s.date_of_incident=ke(a.date_of_incident)),a.amount_paid_cents!==null&&a.amount_paid_cents!==void 0&&(s.amount_paid_cents=Math.round(Number(a.amount_paid_cents)/100)),s})),r}const Zd=new Set(["Product","Driver","Vehicle"]);function Wd(e){return e?Array.isArray(e.drivers__items)?e.drivers__items.length:Array.isArray(e.drivers)?e.drivers.length:null:null}function Fo(e,t){const r=Wd(t),n=e.filter(i=>i.key!=="AutoPolicy"),o=n.length>0?n:e;return o}function Or(e){const t={},r=u=>{if(typeof u=="string"){if(u==="Yes")return!0;if(u==="No")return!1}return u},n=Object.keys(e).filter(u=>!u.includes("__items")),o=new Set,i=new Set;for(const[u,d]of Object.entries(e))u.endsWith("__items")&&Array.isArray(d)&&(i.add(u.replace("__items","")),d.forEach(m=>{typeof m=="object"&&m!==null&&Object.keys(m).forEach(b=>{o.add(b)})}));for(const[u,d]of Object.entries(e))if(u.endsWith("__items")){const m=u.replace("__items","");if(n.includes(m)){const h=Array.isArray(d)?d.map(S=>Or(S)):d;t[m]=h}}else if(!u.includes("__items")){if(i.has(u))continue;o.has(u)||(t[u]=r(d))}const a=t.auto_prior_carrier_name;if(typeof a=="string"&&a.trim()!==""){const u=a==="NoPriorInsurance";t.auto_has_prior_insurance=!u,u&&(delete t.auto_prior_years,delete t.auto_prior_months,delete t.auto_prior_expiration_date,delete t.auto_prior_liability_limit,delete t.auto_continuous_coverage_years,delete t.auto_cancelled_declined_refused_to_renew,delete t.auto_current_annual_premium_cents)}const s=t.home_prior_carrier_name;if(typeof s=="string"&&s.trim()!==""){const u=s==="NoPriorInsurance";t.home_has_prior_insurance=!u,u&&(delete t.home_prior_years,delete t.home_continuous_coverage_years,delete t.home_prior_expiration_date,delete t.property_insurance_cancelled)}Array.isArray(t.drivers)&&(t.drivers=t.drivers.map(u=>{if(!u||typeof u!="object")return u;const d={...u};return d.industry=Pt(d.industry),d.education_level=Qn(d.education_level),d.occupation=Xn(d.occupation),d})),console.log("[DEBUG_TRANSFORM] transformed.drivers type:",typeof t.drivers,"isArray:",Array.isArray(t.drivers),Array.isArray(t.drivers)?`count=${t.drivers.length}`:`value=${JSON.stringify(t.drivers)?.slice(0,100)}`),Array.isArray(t.drivers)&&t.drivers.forEach((u,d)=>{const m=u;console.log(`[DEBUG_TRANSFORM] Driver ${d}:`,{first_name:m.first_name,gender:m.gender,marital_status:m.marital_status,education_level:m.education_level,industry:m.industry,occupation:m.occupation,sr22:m.sr22,keys:Object.keys(m)})});const l=21474836;if("sale_price_cents"in t){const u=t.sale_price_cents;if(typeof u=="number"&&Number.isFinite(u)){const d=Math.trunc(u);if(d>=1){const m=Math.min(d,l);t.sale_price_cents=m*100}}}return Array.isArray(t.home_losses)&&(t.home_losses=t.home_losses.map(u=>{if(!u||typeof u!="object")return u;const d=u,m=d.amount_paid_cents;if(typeof m!="number"||!Number.isFinite(m))return d;const b=Math.trunc(m),h=Math.min(Math.max(b,0),l);return{...d,amount_paid_cents:h*100}})),t}function Gd(e,t){const r=e.findIndex(o=>o.key===t);return r<0?t:e[r+1]?.key??t}function $o(e){return e.some(t=>String(t.key)==="BundlePolicy"||String(t.key)==="BundleCustomer")}function Bo(e){return $o(e)?"Bundle":e.some(t=>String(t.key)==="Vehicle"||String(t.key)==="Driver")?"Auto":"Home"}const jd={Auto:45e3,Home:5e4,Bundle:1e5};function Vd(e,t){if(e!=="AutoCurrentCarrier")return t;const r=t.some(i=>String(i.key)==="auto_cancelled_declined_refused_to_renew"),n=t.some(i=>String(i.key)==="vehicle_policy_selections"),o=[...t];return r||o.push({question:"Has any auto insurance company cancelled, declined or refused to renew you in the last 5 years?",inputType:"radio",options:["Yes","No"],key:"auto_cancelled_declined_refused_to_renew",required:!0}),n||o.push({question:"Vehicle coverage selections",inputType:"custom",key:"vehicle_policy_selections",required:!1}),o}function Yd(e,t){if(e!=="Vehicle")return t;const r=n=>n.map(o=>{const i=o.conditionals?.map(a=>{const s=a.conditionalQuestions??[];return s.length?{...a,conditionalQuestions:r(s)}:a});return String(o.key)!=="vin"?i?{...o,conditionals:i}:o:{...o,required:!1,...i?{conditionals:i}:{}}});return r(t)}function Kd({isOpen:e,onClose:t}){const[r,n]=p.useState([]),[o,i]=p.useState(null),a=p.useRef(null);p.useEffect(()=>{a.current=o},[o]);const[s,l]=p.useState(null),[u,d]=p.useState(!1),[m,b]=p.useState(!1),[h,S]=p.useState([]),g=p.useRef(null),[Y,R]=p.useState(null),[K,V]=p.useState(void 0),[G,D]=p.useState(!1),X=p.useRef(!1);p.useEffect(()=>{if(!u||m)return;const F=Bo(r);let $=!1;const Q=[];let ie=0;const Z=8,z=5e3,f=async()=>{if($)return;ie++;try{const{quote:M}=await oo();if($)return;const k=M?.appetites??null,ee=Hd(k,F);if(ee.length>0){S(ee);return}}catch(M){console.warn("Provider polling: getQuote failed",M)}if($||ie>=Z)return;const A=window.setTimeout(f,z);Q.push(A)};return f(),()=>{$=!0,Q.forEach(A=>window.clearTimeout(A))}},[u,m,r]);function H(F){const $={SMSVerification:"Verify",Name:"Basic Details",Product:"Product & Address",AutoCurrentCarrier:"Policy",HomeCurrentCarrier:"Current Home Policy",AutoPolicy:"Policy",Vehicle:"Vehicle Details",Driver:"Operator",Customer:"Applicant",HomeConstruction:"Structure",HomeFeatures:"Features",HomePolicy:"Policy",HomeCustomer:"Applicant",BundlePolicy:"Policy",BundleCustomer:"Customer"};let Q=F.map(Z=>({key:Z,title:$[Z]||Z,loadQuestions:async()=>{const z=await Gu(Z,a.current??void 0);let f=Vd(Z,z.questions);return f=Yd(Z,f),f}}));if(F.includes("Vehicle")&&F.includes("Driver")&&F.includes("AutoCurrentCarrier")&&F.includes("Customer")){const Z=Q.findIndex(z=>z.key==="Product");if(Z>=0){const z=Q.slice(0,Z+1),f=Q.slice(Z+1),A=ee=>f.find(C=>C.key===ee)??null,M=[A("Vehicle"),A("Driver"),A("AutoCurrentCarrier"),A("Customer")].filter(ee=>!!ee),k=f.filter(ee=>!["Vehicle","Driver","AutoCurrentCarrier","Customer","AutoPolicy"].includes(String(ee.key)));Q=[...z,...M,...k]}}return Q}p.useEffect(()=>{const F=async()=>{try{const $=zu();if(Sr(),$){D(!0),i($);try{const Q=xt(),ie=await oo(Q?void 0:$);if(!ie||!ie.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:Z}=ie,{stages:z}=await zt($),f=H(z);n(f);let A;try{A=Ud(Z),R(A)}catch(k){throw new Error(`Failed to transform quote data: ${k instanceof Error?k.message:"Unknown error"}`)}const M=Fo(f,A);if(n(M),Z.current_stage){const k=Z.current_stage==="State"?"Product":Z.current_stage,ee=M.findIndex(C=>C.key===k);ee>=0?V(ee):V(M.length-1)}else V(M.length-1)}catch(Q){const ie=Q;if(ie.statusCode===404)to(),i(null);else if(ie.statusCode===401){no();try{const{stages:Z}=await zt($),z=H(Z);n(z);const f=z.findIndex(A=>A.key==="SMSVerification");f>=0&&V(f)}catch{}}}finally{D(!1)}}else{const{stages:Q}=await zt();n(H(Q))}}catch{D(!1)}};e&&!X.current&&(X.current=!0,F())},[e]),p.useEffect(()=>{if(!e)return;const{overflow:F}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=F}},[e]);const ae=p.useCallback(F=>{F.key==="Escape"&&(ho(),t())},[t]);if(p.useEffect(()=>{if(e)return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[e,ae]),p.useEffect(()=>{e||(R(null),V(void 0),D(!1),d(!1))},[e]),p.useEffect(()=>{e&&gd()},[e]),p.useEffect(()=>{s&&Array.isArray(s)&&vd({rateCount:s.length})},[s]),!e)return null;const J=()=>{ho(),t()};return c.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true","aria-labelledby":"insurance-modal-title",children:[c.jsx("div",{className:"backdrop","aria-hidden":"true"}),c.jsxs("div",{className:"modal-panel bg-white relative w-full max-w-2xl flex flex-col max-h-[90vh] overflow-hidden",role:"document",children:[c.jsx("button",{onClick:J,className:"modal-close-btn absolute top-4 right-4 text-slate-400 hover:text-slate-600 text-xl","aria-label":"Close",type:"button",children:"×"}),!u&&c.jsx("div",{className:"text-center mb-6",children:c.jsx("h2",{id:"insurance-modal-title",className:"h1-title",children:"Let's get you the best insurance rates."})}),c.jsxs("div",{className:"panel-body flex-1 min-h-0 overflow-y-auto",children:[u&&(()=>{const F=Bo(r);return c.jsx($d,{providers:h,totalTime:jd[F],flow:F,isComplete:m,onComplete:()=>{d(!1),b(!1),S([]),g.current&&(l(g.current),g.current=null)}})})(),!s&&!u&&c.jsx(c.Fragment,{children:G||r.length===0?c.jsx("div",{className:"flex items-center justify-center py-12",children:c.jsx("div",{className:"text-slate-600",children:"Loading..."})}):c.jsx(Id,{stages:r,initialValues:Y??void 0,initialActive:K,quoteId:o??void 0,onStageComplete:async(F,$)=>{try{const Q=Or(F);let ie=o,Z=r;const z=Z.findIndex(M=>M.key===$),f=Z[z],A=Gd(Z,$);if(ie)if($==="SMSVerification"){const{isVerified:M,token:k}=await Vu(ie,Q.sms_code);if(!M)throw new Error("Invalid SMS code");k&&Zu(k),await ft({current_stage:A},!1)}else if($==="Product"){const{isSupported:M}=await Yu(Q.state);if(!M)throw new Error("State is not supported");const k=xt();await ft({...Q,current_stage:A},!1,k?void 0:ie)}else{const M=xt();await ft({...Q,current_stage:A},!1,M?void 0:ie||void 0)}else{const k=(await ju(Q.phone))?.quoteId;if(!k||typeof k!="string"||k.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${k}`);ie=k,i(k),xu(k),await ft({current_stage:A},!1,k)}if(Zd.has($))try{const{stages:M}=await zt(ie||void 0);Z=H(M),Z=Fo(Z,F),n(Z)}catch(M){console.warn("Unable to refresh stages after flow-shaping step",M)}return go({stageKey:$,stageTitle:f?.title??$,stepIndex:z+1,totalSteps:Z.length}),{success:!0}}catch(Q){return{success:!1,error:Q instanceof Error?Q.message:"An error occurred"}}},onComplete:async F=>{try{const $=Or(F);if(!o)throw new Error("Quote ID is required");R(F),S([]),b(!1),g.current=null,d(!0);try{await ft($,!0);const{rates:Z}=await Ku();g.current=Z,b(!0)}catch(Z){throw d(!1),Z}const Q=r.length,ie=r[Q-1];return go({stageKey:ie?.key??"unknown",stageTitle:ie?.title??"unknown",stepIndex:Q,totalSteps:Q}),bd(),{success:!0}}catch{return{success:!1,error:"Oops, something went wrong. Please try again later."}}}})})," ",s&&o&&c.jsx(Dd,{rates:s,onBack:()=>l(null),isBundleFlow:$o(r)})]}),c.jsx("div",{className:"mt-4 pt-4 border-t border-slate-200",children:c.jsx("p",{className:"text-center text-sm text-slate-500",children:"Insurance products offered through Credify Corporation, a licensed insurance agency."})})]})]})}function qd({isOpen:e}){return c.jsx(Kd,{isOpen:e,onClose:()=>{Gt.close()}})}let xe=null,Ke=null,Wt=!1;function Jd(){xe||(xe=document.createElement("div"),xe.id="insurance-widget-root",document.documentElement.appendChild(xe)),!Ke&&xe&&(Ke=Ho.createRoot(xe))}function Ir(){Jd(),Ke&&Ke.render(p.createElement(qd,{isOpen:Wt}))}function Qd(){Ke&&xe&&(Ke.unmount(),xe.remove()),Ke=null,xe=null}const Gt={init:e=>{Wt=!!e?.autoOpen,Ir()},open:()=>{Wt=!0,Ir()},close:()=>{Wt=!1,Ir()},destroy:Qd};typeof window<"u"&&(window.CredifyInsuranceWidget=Gt),Le.CredifyInsuranceWidget=Gt,Le.default=Gt,Object.defineProperties(Le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
76
76
  //# sourceMappingURL=index.umd.js.map