import{A as e,D as t,I as n,et as r,k as i,qt as a,rt as o}from"./vue-vendor-DMUmTARL.js";import{t as s}from"./_plugin-vue_export-helper-CWyGVBf-.js";var c=[`role`,`tabindex`],l={key:0,class:`zf-setting-item__icon`},u={class:`zf-setting-item__body`},d={key:0,class:`zf-setting-item__title`},f={key:1,class:`zf-setting-item__desc`},p={key:1,class:`zf-setting-item__action`},m=s(n({__name:`ZSettingItem`,props:{clickable:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(n){let s=n;function m(e){s.clickable&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget?.click())}return(s,h)=>(r(),e(`div`,{class:a([`zf-setting-item`,{"zf-setting-item--clickable":n.clickable,"zf-setting-item--compact":n.compact}]),role:n.clickable?`button`:void 0,tabindex:n.clickable?0:void 0,onKeydown:m},[s.$slots.icon?(r(),e(`div`,l,[o(s.$slots,`icon`,{},void 0,!0)])):i(``,!0),t(`div`,u,[s.$slots.title?(r(),e(`div`,d,[o(s.$slots,`title`,{},void 0,!0)])):i(``,!0),s.$slots.description?(r(),e(`div`,f,[o(s.$slots,`description`,{},void 0,!0)])):i(``,!0)]),s.$slots.action||s.$slots.default?(r(),e(`div`,p,[o(s.$slots,`action`,{},void 0,!0),o(s.$slots,`default`,{},void 0,!0)])):i(``,!0)],42,c))}}),[[`__scopeId`,`data-v-bcc52d77`]]);export{m as t};