import{h as e}from"./p-083180bf.js";import{i as s}from"./p-f8a09b0f.js";import{k as t,y as a}from"./p-a7fc1e02.js";import{_ as i}from"./p-d0993bb9.js";import{c as o}from"./p-cef45012.js";const l=o({IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}}),r=l.toString();function n({missingProps:a,heading:o="There was a problem loading this section",subheading:n="There was a technical problem that prevented this section from loading. Please contact us with the link to this page.",description:d="Error occured while loading <{tagName}>. Values for the following attributes are missing:"},c){if(!a)return!1;const p=i(),[m,f]=t(!1);return e("sl-alert",{type:"danger",open:!0},e("style",{type:"text/css"},r),e("div",{slot:"icon",class:l.classes.IconStyle},e("sl-icon",{name:"exclamation-octagon"})),e("div",{class:l.classes.DivStyle},e("h2",{class:l.classes.Heading},s.formatMessage({id:"error-heading",defaultMessage:o})),e("p",null,s.formatMessage({id:"error-subheading",defaultMessage:n}))),e("details",{class:l.classes.Details},e("summary",{onClick:()=>f(!m)},m?"Less":"More"," details"),e("p",null,s.formatMessage({id:"error-description",defaultMessage:d},{tagName:p.tagName.toLowerCase()})),e("ul",null,a.map((s=>e("li",null,e("strong",null,s.attribute)))))),e("div",{class:l.classes.Children},c))}const d="sq:lead-form-state";function c(e){const s=i(),[t,o]=a(s,"sq:lead-form-state",e);return a(s,"sq:lead-form-state-internal",[t,o]),{leadFormState:t,setLeadFormState:o}}export{d as L,n as R,c as u}