module.exports=[6015,a=>{"use strict";var b=a.i(87924),c=a.i(68114);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCaption",0,function({className:a,...d}){return(0,b.jsx)("caption",{"data-slot":"table-caption",className:(0,c.cn)("mt-4 text-sm text-muted-foreground",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableFooter",0,function({className:a,...d}){return(0,b.jsx)("tfoot",{"data-slot":"table-footer",className:(0,c.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},52562,a=>{"use strict";var b=a.i(2589);a.s(["Check",()=>b.default])},33540,45766,a=>{"use strict";let b=(0,a.i(64831).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["default",0,b],45766),a.s(["Search",0,b],33540)},52466,a=>{"use strict";a.s(["isElementDisabled",0,function(a){return null==a||a.hasAttribute("disabled")||"true"===a.getAttribute("aria-disabled")}])},75898,a=>{"use strict";var b=a.i(72131);let c=b.createContext(void 0),d={disableStyleElements:!1};a.s(["useCSPContext",0,function(){return b.useContext(c)??d}])},29246,a=>{"use strict";var b=a.i(87924),c=a.i(68114);a.s(["Textarea",0,function({className:a,...d}){return(0,b.jsx)("textarea",{"data-slot":"textarea",className:(0,c.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",a),...d})}])},70430,a=>{"use strict";var b=a.i(87924),c=a.i(68114);a.s(["Label",0,function({className:a,...d}){return(0,b.jsx)("label",{"data-slot":"label",className:(0,c.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...d})}])},76965,a=>{"use strict";let b=(0,a.i(64831).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["default",0,b])},3512,a=>{"use strict";let b=(0,a.i(64831).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",0,b],3512)},80180,a=>{"use strict";let b=(0,a.i(64831).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["Trash2",0,b],80180)},19283,a=>{"use strict";let b=async(a,b,c,d,e,f,g)=>{if(console.log("logActivity called with:",{tenantId:b,userId:c,action:d}),!b||!c){console.warn("Skipping logActivity because tenantId or userId is missing"),alert("تحذير: تعذر تسجيل النشاط لأن بيانات المستخدم مفقودة (userId is undefined).");return}try{let{error:h}=await a.from("activity_logs").insert([{tenant_id:b,user_id:c,action_type:d,entity_type:e||null,entity_id:f||null,details:g||null}]);h&&(console.error("Supabase insert error in logActivity:",h),alert("Error logging activity: "+h.message))}catch(a){console.error("Failed to log activity:",a),alert("Exception logging activity: "+a.message)}};a.s(["logActivity",0,b])}];

//# sourceMappingURL=_0-37rnr._.js.map