import{r as t,h as i}from"./p-1a7a8b00.js";import{e}from"./p-19cd3f24.js";const s=class{constructor(i){t(this,i),this.code=void 0,this.label=void 0,this.pristine=!0,this.touched=!1,this.errors=[],this.value=void 0,this.labelId=e(8),this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-vehicle-vin-input"),customElements.whenDefined("bp-sdk-external-vehicle-vin-input").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return i("bp-sdk-external-vehicle-vin-input",{code:this.code,errors:this.errors,label:this.label,pristine:this.pristine,touched:this.touched})}renderInternal(){return i("div",{class:"bp-sdk-vehicle-vin-input__container"},i("bp-sdk-text-input",{code:this.code,errors:this.errors,fieldType:"text",label:this.label,labelId:this.labelId,placeholder:"Vin",pristine:this.pristine,questionId:this.labelId,touched:this.touched,text:this.value}))}};s.style="";export{s as bp_sdk_vehicle_vin_input}