import{r as t,h as s}from"./p-1a7a8b00.js";const i=class{constructor(s){t(this,s),this.answers=[],this.labelledBy=void 0,this.useExternal=!1}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-dynamic-input-list"),customElements.whenDefined("bp-sdk-external-dynamic-input-list").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return s("bp-sdk-external-dynamic-input-list",{answers:this.answers,labelledBy:this.labelledBy})}renderInternal(){var t;return s("div",{class:"bp-sdk-dynamic-input-list__container"},null===(t=this.answers)||void 0===t?void 0:t.map((t=>s("bp-sdk-dynamic-input-redux-container",{code:t.question.code,answer:t,labelledBy:this.labelledBy}))))}};i.style="";export{i as bp_sdk_dynamic_input_list}