import{l as e,s as t}from"./preact.module-CNakwbc9.js";import{t as n}from"./jsxRuntime.module-Cao1NCKs.js";import{et as r}from"./hooks-ClTXKdUl.js";import{t as i}from"./FormToggle-wwys3uI5.js";import{t as a}from"./Button-Du0dYm4Z.js";e();function o({name:e,label:i,description:a,children:o,centered:s,stacked:c}){let l=r(e),u=t(o,{id:l,name:o.props.name??e});return n(`div`,{className:`option-row ${s?`centered`:``} ${c?`stacked`:``}`,children:[n(`div`,{className:`option-row-label`,children:[i&&n(`label`,{for:l,children:i}),a&&n(`small`,{className:`option-row-description`,children:a})]}),n(`div`,{className:`option-row-input`,children:u})]})}function s({label:e,description:t,href:r,onClick:i,noContainedNavigation:a}){return n(`a`,{href:r,className:`option-row option-row-link no-tooltip-preview`,onClick:i,"data-no-contained-navigation":a?``:void 0,children:[n(`div`,{className:`option-row-label`,children:[n(`label`,{style:{cursor:`pointer`},children:e}),t&&n(`small`,{className:`option-row-description`,children:t})]}),n(`div`,{className:`option-row-input`,children:n(`span`,{className:`bx bx-chevron-right`})})]})}function c({name:e,label:t,description:r,currentValue:a,onChange:s,disabled:c,helpPage:l}){return n(o,{name:e,label:t,description:r,children:n(i,{switchOnName:``,switchOffName:``,currentValue:a,onChange:s,disabled:c,helpPage:l})})}function l({label:e,description:t,icon:r,disabled:i,onClick:o,buttonText:s,buttonClassName:c}){return n(`div`,{className:`option-row`,children:[n(`div`,{className:`option-row-label`,children:[n(`label`,{children:e}),t&&n(`small`,{className:`option-row-description`,children:t})]}),n(`div`,{className:`option-row-input`,children:n(a,{className:c,text:s,icon:r,disabled:i,onClick:o})})]})}export{c as i,s as n,l as r,o as t};