import{r as e,h as t}from"./p-1a7a8b00.js";const s=class{constructor(t){e(this,t),this.limits=[],this.name=void 0,this.vehicles=[],this.useExternal=!1}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-quote-request-product"),customElements.whenDefined("bp-sdk-external-quote-request-product").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return t("bp-sdk-external-quote-request-product",{limits:this.limits,name:this.name,vehicles:this.vehicles})}renderInternal(){return t("div",{class:"bp-sdk-quote-request-product__container"},t("div",{class:"bp-sdk-online-quote__product bp-sdk-quote__product"},t("h2",{class:"bp-sdk-online-quote__product-name bp-sdk-quote__product-name"},this.name),t("div",{class:"bp-sdk-online-quote__coverages bp-sdk-quote__coverages"},t("div",null,t("bp-sdk-quote-request-coverage-list",{coverages:this.limits}),t("bp-sdk-quote-request-vehicle-coverage",{vehicles:this.vehicles}),"Commercial Auto"===this.name&&t("div",{class:"bp-sdk-quote__coverages-disclaimer-text-container"},t("span",{class:"bp-sdk-quote__coverages-disclaimer-text"},"*Coverages differ by state. Any coverage legally required in your state is applied to this quote."))))))}};s.style="";const r=class{constructor(t){e(this,t),this.product=void 0,this.useExternal=!1,this.limits=[],this.vehicles=[],this.name=void 0}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-quote-request-product-container"),customElements.whenDefined("bp-sdk-external-quote-request-product-container").then((()=>{this.useExternal=!0})),this.onProductChange(this.product)}onProductChange(e){var t,s;this.limits=this.getLimit(e),this.name=null==e?void 0:e.name,this.vehicles=null!==(s=null===(t=null==e?void 0:e.coverage)||void 0===t?void 0:t.vehicles)&&void 0!==s?s:[]}getLimit(e){var t,s,r,o;return null!==(o=(null===(s=null===(t=null==e?void 0:e.coverage)||void 0===t?void 0:t.limit_and_deductible)||void 0===s?void 0:s.length)?e.coverage.limit_and_deductible:null===(r=null==e?void 0:e.coverage)||void 0===r?void 0:r.limit_and_deductible_default)&&void 0!==o?o:[]}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return t("bp-sdk-external-quote-request-product-container",{product:this.product})}renderInternal(){return t("div",{class:"bp-sdk-quote-request-product-container__container"},t("bp-sdk-quote-request-product",{limits:this.limits,name:this.name,vehicles:this.vehicles}))}static get watchers(){return{product:["onProductChange"]}}};r.style="";const o=class{constructor(t){e(this,t),this.vehicles=[],this.useExternal=!1}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-quote-request-vehicle-coverage"),customElements.whenDefined("bp-sdk-external-quote-request-vehicle-coverage").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return t("bp-sdk-external-quote-request-vehicle-coverage",{vehicles:this.vehicles})}renderInternal(){return t("div",{class:"bp-sdk-quote-request-vehicle-coverage__container"},this.vehicles.map((e=>t("div",{class:"bp-sdk-online-quote__coverages-vehicle-coverage__item bp-sdk-quote__coverages-vehicle-coverage__item"},t("div",{class:"bp-sdk-online-quote__coverages-vehicle-description-container bp-sdk-quote__coverages-vehicle-description-container"},t("span",{class:"bp-sdk-online-quote__coverages-vehicle-description bp-sdk-quote__coverages-vehicle-description"},`${e.year} ${e.make} ${e.model}`)),t("bp-sdk-quote-request-coverage-list",{coverages:e.limit_and_deductible})))))}};o.style="";export{s as bp_sdk_quote_request_product,r as bp_sdk_quote_request_product_container,o as bp_sdk_quote_request_vehicle_coverage}