import{p as t,H as e,h as i,a as o,t as s}from"./index.js";import{d as n}from"./p-D25JsirJ.js";import{d as a}from"./p-CbTDFlzJ.js";const r=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.label="",this.required=!1,this.tooltipDirection="top",this.tooltipCursor="help",this.handleClick=()=>{const t=this.el.getRootNode().getElementById(this.name);t&&t.focus()}}get hasTooltip(){return!(!this.tooltipText&&!this.tooltipTitle)}render(){return i(o,{key:"cb454d092cd78fb71bf1167a4e387ad9fd416d69"},i("label",{key:"641218aa7a026e9dd5805d51926b88ae94692926",class:"spw-field-label",htmlFor:this.name,onClick:this.handleClick},i("span",{key:"53de42be7abcc40b2418489bc13bcd449dcb342f",class:"spw-field-label__text"},this.label),this.hasTooltip&&i("spw-tooltip",{key:"c1f0fdbb0e3742a3f303846b89078a727d69bc04",tooltipTitle:this.tooltipTitle,tooltipText:this.tooltipText,maxWidth:this.tooltipMaxWidth,direction:this.tooltipDirection,cursor:this.tooltipCursor},i("spw-icon",{key:"01b65ea5af7cbf012902ee0b9d50bede9451d0aa",variant:"fa-regular",icon:"fa-circle-info",class:"spw-field-label__icon"})),this.required&&i("span",{key:"5eb8fd2d808a54133da51de5eaa7f7277d08c393",class:"spw-field-label__required"},"*")))}get el(){return this}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-field-label{color:var(--spw-color-themes-grey-grey-800);display:flex;align-items:center;gap:4px;font-weight:600;margin-bottom:8px}.spw-field-label__text{display:inline-block}.spw-field-label__required{color:var(--spw-ds-primary)}.spw-field-label__icon{color:var(--spw-color-themes-grey-grey-600);font-size:16px;flex-shrink:0}"}},[1,"spw-field-label",{name:[1],label:[1],required:[4],tooltipTitle:[1,"tooltip-title"],tooltipText:[1,"tooltip-text"],tooltipMaxWidth:[1,"tooltip-max-width"],tooltipDirection:[1,"tooltip-direction"],tooltipCursor:[1,"tooltip-cursor"]}]);function l(){"undefined"!=typeof customElements&&["spw-field-label","spw-icon","spw-tooltip"].forEach((t=>{switch(t){case"spw-field-label":customElements.get(s(t))||customElements.define(s(t),r);break;case"spw-icon":customElements.get(s(t))||n();break;case"spw-tooltip":customElements.get(s(t))||a()}}))}export{r as S,l as d}