System.register(["./p-641f968d.system.js","./p-7265bbcb.system.js","./p-1a673057.system.js"],(function(e){"use strict";var a,t,r,o;return{setters:[function(e){a=e.h},function(e){t=e.i},function(e){r=e.j;o=e.a}],execute:function(){e("L",c);var l={ErrorStyle:{"&::part(control)":{borderColor:"var(--sl-color-danger-500)",outline:"var(--sl-color-danger-500)"},"&:host":{"--focus-ring":"0 0 0 var(--sl-focus-ring-width) red !important"}},ErrorMessageStyle:{margin:0,marginTop:"5px",color:"var(--sl-color-danger-500)",fontSize:"var(--sl-input-help-text-font-size-medium)",fontFamily:"var(--sl-font-sans)",fontWeight:"var(--sl-font-weight-normal)"},FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}};var n="\n:host {\n  margin: 0 auto;\n  width: 100%;\n  display: block;\n}\nsl-checkbox::part(label){\n  font-size: var(--sl-input-label-font-size-small);\n  font-weight: var(--sl-font-weight-normal);\n  line-height: 20px;\n}\nsl-checkbox::part(base){\n  align-items: start;\n}\n";r.setup(o());var s=r.createStyleSheet(l);var i=s.toString();function c(e){var r,o,l,c,b;var d=e.states,v=e.content;var u=(r=d===null||d===void 0?void 0:d.leadFormState)===null||r===void 0?void 0:r.validationErrors;var h=function(e){var a=e.checkboxLabel;return t.formatMessage({id:"requiredFieldErrorMessage-"+a,defaultMessage:v.errorMessage},{checkboxLabel:a})};return a("div",{class:s.classes.FieldContainer,part:"sqm-base"},a("style",{type:"text/css"},n,i),a("sl-checkbox",Object.assign({exportparts:"label: input-label, base: input-base",name:"/"+v.checkboxName,"onSl-change":function(e){e.target.value=e.target.checked}},!v.checkboxOptional?{required:false}:[],{disabled:((o=d.leadFormState)===null||o===void 0?void 0:o.loading)||((l=d.leadFormState)===null||l===void 0?void 0:l.disabled),validationError:function(e){var a=e.value;if(!a&&!v.checkboxOptional){return h({checkboxLabel:v.checkboxLabel})}}},((b=(c=d.leadFormState)===null||c===void 0?void 0:c.validationErrors)===null||b===void 0?void 0:b[v.checkboxName])?{class:s.classes.ErrorStyle}:[]),t.formatMessage({id:v.checkboxName+"-message",defaultMessage:v.checkboxLabel},{labelLink:a("a",{href:v.checkboxLabelLink,target:"_blank"},v.checkboxLabelLinkText||v.checkboxLabelLink)})),(u===null||u===void 0?void 0:u[v.checkboxName])&&a("p",{class:s.classes.ErrorMessageStyle},h({checkboxLabel:v.checkboxLabel})))}}}}));