import{r as s,h as t}from"./p-083180bf.js";import"./p-f8a09b0f.js";import{i as e,n as i}from"./p-a7fc1e02.js";import{i as a}from"./p-d0993bb9.js";import{c as o}from"./p-c1086930.js";import{a as r,g as c}from"./p-9ec99ced.js";import"./p-cef45012.js";import{L as n,R as h}from"./p-bc386a7b.js";import{L as m}from"./p-3286ef38.js";const p=class{constructor(t){s(this,t),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,i(this)}disconnectedCallback(){}render(){const s=r([{attribute:"checkbox-name",value:this.checkboxName}]);if(!a()&&s)return t(h,{missingProps:s,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const i={...c(this)},{states:p}=a()?o({states:{leadFormState:{}}},this.demoData||{},{arrayMerge:(s,t)=>t}):{states:{leadFormState:e(n)}};return t(m,{states:p,content:i})}};export{p as sqm_lead_checkbox_field}