1import{u as x,j as l,T as y,m as b,r as _,a6 as u,aa as w,h as L}from"./WarningIcon-hckcyQCq.js";import{I as k}from"./Tooltip-D1xdzme0.js";const m=e=>{const a=x(),{color:t,variant:i}=e;return l.jsx("div",{style:{color:a.palette[t].main},children:l.jsx(y,{variant:i,component:"span",children:e.children})})},v=b()(e=>({tooltip__headline:{fontSize:12,fontWeight:700,color:e.palette.white.main,paddingBottom:10,lineHeight:1.1}})),$=e=>{const[a,t]=_.useState(!1),{title:i,body:o,placement:d="bottom",disabled:c=!1,className:p}=e,{classes:s}=v();return l.jsx("div",{children:l.jsx(u,{...e,classes:{tooltip:p},placement:d,arrow:!0,onClose:()=>t(!1),onOpen:h=>{var n;t(!0),(n=e.onOpen)==null||n.call(e,h)},open:a&&!c,title:l.jsx(w.Fragment,{children:l.jsx("div",{children:o?l.jsxs("div",{children:[l.jsx("div",{className:s.tooltip__headline,children:i}),l.jsx(m,{variant:"subtitle2",color:"white",children:o})]}):l.jsx(m,{variant:"subtitle2",color:"white",children:i})})}),children:l.jsx("div",{style:{display:"flex",alignItems:"center"},children:e.children})})})},I=b()((e,{disabled:a,labelStyle:t})=>({fieldLabel__wrapper:{display:"flex",alignItems:"center"},fieldLabel__wrapperPadding:{paddingBottom:4},fieldLabel:{color:a?e.palette.hintText.main:e.palette.gray.dark,float:"left",textAlign:"left",fontWeight:t==="bold"?600:400,fontSize:14,lineHeight:t==="bold"?1.4:1.1,fontFamily:e.typography.fontFamily,width:"auto",marginRight:0,paddingRight:0},fieldLabel__tooltip:{float:"left",paddingLeft:6,display:"flex",alignItems:"center"},fieldLabel__error:{color:e.palette.error.dark},asteriskStyles:{color:e.palette.shade6.dark,marginRight:5,"&.error":{color:e.palette.error.dark}},clickable:{cursor:"pointer"}})),S=e=>{const{clickable:a=!1,disabled:t=!1,error:i="",id:o,label:d,labelStyle:c="regular",paddingBottom:p=!0,tooltip:s,required:h=!1,htmlFor:n}=e,g=x(),{classes:r}=I({disabled:t,labelStyle:c}),j=s&&Object.keys(s).length>0;let f=`${r.fieldLabel} ${i?r.fieldLabel__error:""} `;return a&&(f+=` ${r.clickable}`),l.jsx(l.Fragment,{children:l.jsxs("div",{className:`${r.fieldLabel__wrapper}
1 ${p&&r.fieldLabel__wrapperPadding}`,children:[l.jsxs(L,{display:"flex",alignItems:"center",children:[h&&l.jsx("span",{className:`${r.asteriskStyles} ${i?"error":""}`,children:"*"}),l.jsx("label",{htmlFor:n,className:f,id:`${o}__label`,children:d})]}),j&&l.jsx("div",{className:r.fieldLabel__tooltip,children:l.jsx($,{title:s.title,body:s.body,arrow:s.arrow??!1,placement:"right",children:l.jsx(k,{size:16,color:g.palette.ofwBlue.main})})})]})})};export{m as B,S as I,$ as T};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.