import{S as o}from"./p-BcQO4NH2.js";import{p as t}from"./p-CQvUntGY.js";import{F as r}from"./p-EeKNA85D.js";import{F as e}from"./p-DBXGhafv.js";const s=t(o,["_XS","_S","_M","_L","_XL"]);const i={root:"gov-form-autocomplete",list:"gov-form-autocomplete__list",item:"gov-form-autocomplete__item",empty:"gov-form-autocomplete__item--empty",loading:"gov-form-autocomplete__item--loading"};t(o,["_M","_L","_XL"]);const _={root:"gov-form-control",holder:"gov-form-control__holder",bottom:"gov-form-control__bottom"};const m=t(o,["_XS","_S","_M","_L","_XL"]);var n;(function(o){o["COLOR"]="color";o["DATE"]="date";o["DATETIME_LOCAL"]="datetime-local";o["EMAIL"]="email";o["MONTH"]="month";o["NUMBER"]="number";o["PASSWORD"]="password";o["SEARCH"]="search";o["TEL"]="tel";o["TEXT"]="text";o["TIME"]="time";o["URL"]="url";o["WEEK"]="week"})(n||(n={}));var a;(function(o){o["RESET"]="reset"})(a||(a={}));const c={root:"gov-form-input",icons:"gov-form-input__icons"};const l=t(o,["_XS","_S","_M","_L","_XL"]);const f={root:"gov-form-select"};const g=t(o,["_XS","_S","_M","_L","_XL"]);const h={root:"gov-form-multi-select",wrap:"gov-form-multi-select__wrap",list:"gov-form-multi-select__list",item:"gov-form-multi-select__item"};const u=t(o,["_XS","_S","_M","_L","_XL"]);const v={root:"gov-form-switch",input:"gov-form-switch__input",indicator:"gov-form-switch__indicator",label:"gov-form-switch__label",noLabel:"gov-form-switch__no-label"};const p=t(o,["_XS","_S","_M","_L","_XL"]);const b={root:"gov-form-checkbox",check:"gov-form-checkbox__check",indeterminate:"gov-form-checkbox__indeterminate",label:"gov-form-checkbox__label"};const L=t(o,["_XS","_S","_M","_L","_XL"]);const d={root:"gov-form-radio",input:"gov-form-radio__input",label:"gov-form-radio__label"};const X=o=>({get govHost(){return o},passAttrToControl(o,t){if(this.control){this.control.setAttribute(o,t)}},passAttrToLabel(o,t){if(this.label){this.label.setAttribute(o,t)}},get hasGroupChildren(){if(this.control){return this.control.querySelectorAll("gov-form-group > *, gov-form-radio-group > *, gov-form-checkbox-group > *").length>1}return false},get control(){if(this.govHost.name===_.root){return this.govHost.hostElement}return this.govHost.getParent(_.root)},get label(){const o=this.govHost.hostElement.querySelector(`.${e.root}`);if(o){return o}if(this.control){return this.control.querySelector(`.${e.root}`)}return null},get mainElementsInControl(){const o=[f.root,c.root,v.root,b.root,d.root,h.root,i.root];if(this.control){const t=o.map((o=>`${o}:first-of-type`)).join(", ");return Array.from(this.control.querySelectorAll(t))}return[]},get messageElements(){if(this.control){return Array.from(this.control.querySelectorAll(r.root))}return[]}});export{i as F,s as a,c as b,m as c,f as d,l as e,b as f,X as g,p as h,_ as i,h as j,g as k,d as l,L as m,v as n,u as o};
//# sourceMappingURL=p-9imLQpxb.js.map