import{r as e,h as t}from"./p-1a7a8b00.js";import{e as s}from"./p-19cd3f24.js";const r=class{constructor(t){e(this,t),this.amount=void 0,this.description=void 0,this.useExternal=!1,this.descriptionId=s(8)}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-quote-request-coverage-item"),customElements.whenDefined("bp-sdk-external-quote-request-coverage-item").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return t("bp-sdk-external-quote-request-coverage-item",{amount:this.amount,description:this.description})}renderInternal(){return t("div",{class:"bp-sdk-quote-request-coverage-item__container bp-sdk-online-quote__coverage-container bp-sdk-quote__coverage-container"},t("span",{class:"bp-sdk-quote-request-coverage-item__description bp-sdk-online-quote__coverage-desc bp-sdk-quote__coverage-desc"},this.description),t("span",{class:"bp-sdk-quote-request-coverage-item__separator"},":"),t("span",{class:"bp-sdk-quote-request-coverage-item__amount bp-sdk-online-quote__coverage-value bp-sdk-quote__coverage-value"},this.amount))}};r.style="";const o=class{constructor(t){e(this,t),this.coverage=void 0,this.useExternal=!1,this.description=void 0,this.amount=void 0}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-quote-request-coverage-item-container"),customElements.whenDefined("bp-sdk-external-quote-request-coverage-item-container").then((()=>{this.useExternal=!0})),this.onCoverageChange(this.coverage)}onCoverageChange(e){this.description=null==e?void 0:e.description,this.amount=null==e?void 0:e.value}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return t("bp-sdk-external-quote-request-coverage-item-container",{coverage:this.coverage})}renderInternal(){return t("bp-sdk-quote-request-coverage-item",{amount:this.amount,description:this.description})}static get watchers(){return{coverage:["onCoverageChange"]}}};o.style="";const i=class{constructor(t){e(this,t),this.coverages=[],this.useExternal=!1}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-quote-request-coverage-list"),customElements.whenDefined("bp-sdk-external-quote-request-coverage-list").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return t("bp-sdk-external-quote-request-coverage-list",{coverages:this.coverages})}renderInternal(){return t("div",{class:"bp-sdk-quote-request-coverage-list__container bp-sdk-online-quote__coverages bp-sdk-quote__coverages"},this.coverages.map((e=>t("bp-sdk-quote-request-coverage-item-container",{coverage:e}))))}};i.style="";export{r as bp_sdk_quote_request_coverage_item,o as bp_sdk_quote_request_coverage_item_container,i as bp_sdk_quote_request_coverage_list}