import{j as a,C as l,K as t,g as r,h as c,i as o}from"./app-BgLa5dit.js";function x(e){return a.jsxs("div",{className:"d-flex align-items-center gap-2",children:[a.jsx(l,{id:`${e.checkboxIdPrefix}-select-all-header`,name:`${e.checkboxIdPrefix}-select-all-header`,checked:e.bulkChecked,onChange:e.onToggleBulk,indeterminate:e.hasSomeSelections}),a.jsx("span",{children:e.label})]})}const u="_dropdownMenu_kdo60_1",m={dropdownMenu:u};function k(e){const i=[{label:"Mark as Unverified",status:"unverified"},{label:"Mark as Verified",status:"verified"},{label:"Mark as Denied",status:"denied"}],d=n=>{if(e.onStatusChange){e.onStatusChange(e.domainId,n);return}r.trigger({application:o.CRM_STUDIO,action:c.CrmStudio.DOMAIN_CHANGE_STATUS_POPUP,params:{domainName:e.domainName,currentStatus:e.currentStatus,newStatus:n,domainId:e.domainId}})};return a.jsxs(t,{children:[a.jsx(t.Toggle,{id:`domain-status-${e.domainName}`,variant:"outline-dark",size:e.size,children:e.currentStatus}),a.jsx(t.Menu,{align:"end",className:m.dropdownMenu,children:i.map((n,s)=>a.jsx(t.Item,{onClick:()=>d(n.status),disabled:e.currentStatus===n.status,children:n.label},s))})]})}export{k as D,x as a};
//# sourceMappingURL=ByR0H-rp.chunk.js.map
