1import{j as e}from"./vendor-ui.CJfDejH6.js";import{r as s}from"./vendor-react.C7jmPDBD.js";import{u as t,d as a,aW as r,a3 as l,S as i,cF as n,V as d,Y as o,a1 as c,X as m,c as x,T as h,g as u,q as g}from"./page-trainee-details.BXSa36mN.js";import{D as p,A as b,E as f,I as j,z as y,w as v,M as N,T as w,U as k}from"./vendor-firebase.D5mq9z_y.js";import{u as C}from"./UserDeletionService.BqfTMYi1.js";import"./vendor-charts.Dev3jzOU.js";import"./vendor-utils.BV3OAVt1.js";import"./dashboard-trainer.D3Qwlg3F.js";import"./page-school-marketing.Bjp8oAF_.js";const S=()=>{var S;const{user:I}=t(),[D,U]=s.useState("all"),[F,_]=s.useState(!0),[A,$]=s.useState([]),[L,B]=s.useState(""),[M,T]=s.useState("all"),[z,E]=s.useState(!1),[R,q]=s.useState(!1),[V,W]=s.useState(null),[Y,G]=s.useState(!1),[H,J]=s.useState(""),[K,O]=s.useState(""),[P,Q]=s.useState("marketing_manager"),[X,Z]=s.useState("active"),[ee,se]=s.useState(""),[te,ae]=s.useState(""),[re,le]=s.useState(null),[ie,ne]=s.useState(!1),de=s.useCallback(async()=>{if(null==I?void 0:I.schoolId)try{_(!0);const e=p(b(a,"schoolUsers"),f("schoolId","==",I.schoolId)),s=(await j(e)).docs.map(e=>({id:e.id,...e.data()}));$(s)}catch(e){}finally{_(!1)}},[I]);s.useEffect(()=>{de()},[de]);if(!(I&&((null==(S=I.availableRoles)?void 0:S.includes("school_admin"))||"school_admin"===I.role)))return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",dir:"rtl",children:e.jsx("div",{className:"max-w-md w-full",children:e.jsx("div",{className:"bg-white shadow-md rounded-lg p-6",children:e.jsxs("div",{className:"text-center",children:[e.jsx(r,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"××× ×רש××"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"רק ×× ××× ××ת ספר ×××××× ××שת ×× ×××× ×שת×ש××."}),e.jsx("button",{onClick:()=>window.history.back(),className:"bg-teal-600 text-white px-4 py-2 rounded-md hover:bg-teal-700",children:"×××ר"})]})})})});const oe=A.filter(e=>"all"===D||e.role===D).filter(e=>e.name.toLowerCase().includes(L.toLowerCase())||e.email.toLowerCase().includes(L.toLowerCase())).filter(e=>"all"===M||e.status===M),ce=e=>{W(e),J(e.name),O(e.email),Q(e.role),Z(e.status),se(e.phone||""),ae(e.position||""),le(null),ne(!1),E(!0)},me=e=>{W(e),q(!0)},xe=e=>{if(!e)return"××¢×××";const s=e.toDate(),t=(new Date).getTime()-s.getTime(),a=Math.floor(t/864e5);return 0===a?"××××":1===a?"×ת×××":a<7?`××¤× × ${a} ××××`:a<30?`××¤× × ${Math.floor(a/7)} ש×××¢×ת`:a<365?`××¤× × ${Math.floor(a/30)} ×××ש××`:`××¤× × ${Math.floor(a/365)} ×©× ××`};return F?e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-teal-500"})}):e.jsxs("div",{dir:"rtl",className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap justify-between items-center mb-6 gap-3",children:[e.jsx("h1",{className:"text-xl md:text-2xl font-bold text-gray-800",children:"× ×××× ×שת×ש××"}),e.jsxs("button",{onClick:()=>{W(null),J(""),O(""),Q("marketing_manager"),Z("active"),se(""),ae(""),le(null),ne(!1),E(!0)},className:"bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-md flex items-center text-sm",children:[e.jsx(l,{className:"h-4 w-4 ml-2"}),"××סף ×שת×ש ××ש"]})]}),e.jsx("div",{className:"bg-white rounded-t-lg shadow-sm border border-gray-200 mb-1",children:e.jsxs("div",{className:"flex border-b border-gray-200 overflow-x-auto",children:[e.jsx("button",{onClick:()=>U("all"),className:"px-4 py-3 text-sm font-medium whitespace-nowrap "+("all"===D?"text-teal-600 border-b-2 border-teal-500":"text-gray-600 hover:text-gray-900"),children:"×× ××שת×ש××"}),e.jsx("button",{onClick:()=>U("admin"),className:"px-4 py-3 text-sm font-medium whitespace-nowrap "+("admin"===D?"text-teal-600 border-b-2 border-teal-500":"text-gray-600 hover:text-gray-900"),children:"×× ××××"}),e.jsx("button",{onClick:()=>U("marketing_manager"),className:"px-4 py-3 text-sm font-medium whitespace-nowrap "+("marketing_manager"===D?"text-teal-600 border-b-2 border-teal-500":"text-gray-600 hover:text-gray-900"),children:"×× ××× ×©××××§"})]})}),e.jsx("div",{className:"bg-white p-4 border-x border-t border-gray-200 rounded-b-none",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsxs("div",{className:"relative flex-grow max-w-md",children:[e.jsx(i,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),e.jsx("input",{type:"text",value:L,onChange:e=>B(e.target.value),placeholder:"××פ×ש ×שת×ש×× ××¤× ×©× ×× ××××××...",className:"pr-9 pl-4 py-2 w-full border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-teal-500 text-right"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("select",{className:"py-2 pr-3 pl-8 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-teal-500 text-sm text-right",value:M,onChange:e=>T(e.target.value),children:[e.jsx("option",{value:"all",children:"×× ×ס×××ס××"}),e.jsx("option",{value:"active",children:"פע××"}),e.jsx("option",{value:"inactive",children:"×× ×¤×¢××"})]}),e.jsxs("button",{className:"flex items-center text-gray-600 hover:text-gray-900 text-sm",children:[e.jsx(n,{className:"h-4 w-4 ml-1"}),e.jsx("span",{children:"ס×× ×× × ×סף"})]})]})]})}),e.jsx("div",{className:"hidden md:block bg-white border-x border-b border-gray-200 rounded-b-lg shadow-sm overflow-hidden",children:oe.length>0?e.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[e.jsx("thead",{className:"bg-gray-50",children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"×שת×ש"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"תפק××"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"ס×××ס"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"×× ××¡× ××ר×× ×"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"פע×××ת"})]})}),e.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:oe.map(s=>e.jsxs("tr",{className:"hover:bg-gray-50",children:[e.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"flex-shrink-0 h-10 w-10 bg-gray-200 rounded-full flex items-center justify-center",children:e.jsx(d,{className:"h-5 w-5 text-gray-500"})}),e.jsxs("div",{className:"mr-4",children:[e.jsx("div",{className:"font-medium text-gray-900",children:s.name}),e.jsx("div",{className:"text-sm text-gray-500",children:s.email})]})]})}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium "+("admin"===s.role?"bg-purple-100 text-purple-800":"bg-blue-100 text-blue-800"),children:"admin"===s.role?e.jsxs(e.Fragment,{children:[e.jsx(r,{className:"h-3 w-3 ml-1"}),"×× ××"]}):e.jsxs(e.Fragment,{children:[e.jsx(o,{className:"h-3 w-3 ml-1"}),"×× ×× ×©××××§"]})})}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium "+("active"===s.status?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"),children:"active"===s.status?e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"h-3 w-3 ml-1"}),"פע××"]}):e.jsxs(e.Fragment,{children:[e.jsx(m,{className:"h-3 w-3 ml-1"}),"×× ×¤×¢××"]})})}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:xe(s.lastLogin)}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-left text-sm font-medium",children:e.jsxs("div",{className:"flex items-center justify-end space-x-reverse space-x-2",children:[e.jsx("button",{onClick:()=>ce(s),className:"text-teal-600 hover:text-teal-900 p-1",children:e.jsx(x,{className:"h-5 w-5"})}),e.jsx("button",{onClick:()=>me(s),className:"text-red-600 hover:text-red-900 p-1",children:e.jsx(h,{className:"h-5 w-5"})})]})})]},s.id))})]}):e.jsx("div",{className:"p-6 text-center text-gray-500",children:"×× × ×צ×× ×שת×ש×× ×ת××××× ×ת ×ס×× ×× ×× ××××"})}),e.jsx("div",{className:"md:hidden bg-white border-x border-b border-gray-200 rounded-b-lg shadow-sm overflow-hidden",children:oe.length>0?e.jsx("div",{className:"divide-y divide-gray-200",children:oe.map(s=>e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"flex-shrink-0 h-10 w-10 bg-gray-200 rounded-full flex items-center justify-center",children:e.jsx(d,{className:"h-5 w-5 text-gray-500"})}),e.jsxs("div",{className:"mr-3",children:[e.jsx("div",{className:"font-medium text-gray-900",children:s.name}),e.jsx("div",{className:"text-sm text-gray-500",children:s.email})]})]}),e.jsx("div",{children:e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium "+("active"===s.status?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"),children:"active"===s.status?"פע××":"×× ×¤×¢××"})})]}),e.jsx("div",{className:"mt-3",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium "+("admin"===s.role?"bg-purple-100 text-purple-800":"bg-blue-100 text-blue-800"),children:"admin"===s.role?"×× ××":"×× ×× ×©××××§"}),e.jsxs("div",{className:"text-xs text-gray-500",children:["×× ××¡× ××ר×× ×: ",xe(s.lastLogin)]})]})}),e.jsxs("div",{className:"mt-3 flex justify-end space-x-reverse space-x-2",children:[e.jsx("button",{onClick:()=>ce(s),className:"text-teal-600 hover:text-teal-900 p-1",children:e.jsx(x,{className:"h-5 w-5"})}),e.jsx("button",{onClick:()=>me(s),className:"text-red-600 hover:text-red-900 p-1",children:e.jsx(h,{className:"h-5 w-5"})})]})]},s.id))}):e.jsx("div",{className:"p-6 text-center text-gray-500",children:"×× × ×צ×× ×שת×ש×× ×ת××××× ×ת ×ס×× ×× ×× ××××"})}),oe.length>0&&e.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[e.jsxs("div",{className:"text-sm text-gray-700",children:["×צ×× ",e.jsx("span",{className:"font-medium",children:"1"})," ×¢× ",e.jsx("span",{className:"font-medium",children:oe.length})," ×ת×× ",e.jsx("span",{className:"font-medium",children:oe.length})," ×שת×ש××"]}),e.jsxs("div",{className:"flex items-center space-x-reverse space-x-2",children:[e.jsx("button",{className:"px-3 py-1 border border-gray-300 rounded-md text-sm text-gray-700 bg-white hover:bg-gray-50",children:"××§×××"}),e.jsx("button",{className:"px-3 py-1 border border-gray-300 rounded-md text-sm text-gray-700 bg-white hover:bg-gray-50",children:"×××"})]})]}),z&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-md w-full p-6 max-h-[90vh] overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h3",{className:"text-lg font-medium text-gray-900",children:V?"ער××ת ×שת×ש":"××ספת ×שת×ש ××ש"}),e.jsx("button",{onClick:()=>E(!1),className:"text-gray-400 hover:text-gray-500",children:e.jsx(m,{className:"h-5 w-5"})})]}),re&&e.jsx("div",{className:"bg-red-50 text-red-700 p-3 rounded-md mb-4",children:re}),e.jsxs("form",{className:"space-y-4",onSubmit:async e=>{if(e.preventDefault(),le(null),ne(!0),!(null==I?void 0:I.schoolId))return le("×××× ××ת ספר ×סר"),void ne(!1);if(!H.trim())return le("×©× ××× ×©×× ××××"),void ne(!1);if(!K.trim())return le("×××××× ××× ×©×× ××××"),void ne(!1);if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(K.trim()))return le("×× × ××× ×ת××ת ×××××× ×ª×§×× ×"),void ne(!1);try{if(V){await y(v(a,"schoolUsers",V.id),{name:H,email:K,role:P,status:X,phone:ee||null,position:te||null,lastUpdated:N()});try{const e={};"admin"===P?e.school_admin={schoolUserDocId:V.id,schoolId:I.schoolId,status:"active",assignedAt:V.createdAt.toDate(),assignedBy:V.createdBy}:"marketing_manager"===P&&(e.marketing_manager={schoolUserDocId:V.id,schoolId:I.schoolId,status:"active",assignedAt:V.createdAt.toDate(),assignedBy:V.createdBy}),await y(v(a,"users",V.uid),{displayName:H,isActive:"active"===X,roles:e,primaryRole:"admin"===P?"school_admin":"marketing_manager",lastUpdatedAt:new Date})}catch(s){}$(e=>e.map(e=>e.id===V.id?{...e,name:H,email:K,role:P,status:X,phone:ee||null,position:te||null}:e))}else{if(!(await j(p(b(a,"schoolUsers"),f("email","==",K),f("schoolId","==",I.schoolId)))).empty)return le("××שת×ש ××ר ××ר ×××ת ×ספר ×××"),void ne(!1);try{const e=u(),s=g(e,"createSchoolUserInvitation"),t=await s({name:H,email:K,phone:ee||"",role:P,schoolId:I.schoolId});if(t.data.success){const e={uid:"",schoolId:I.schoolId,name:H,email:K,role:P,status:"inactive",phone:ee||null,position:te||null,lastLogin:null,createdAt:w.now(),createdBy:I.uid},s=v(b(a,"schoolUsers"));await k(s,e);const t={id:s.id,...e};$(e=>[...e,t]),alert(`×××× × × ×©××× ××צ××× ××ת××ת ${K}. ××שת×ש ×××× ××××¨×©× ×××צע×ת ××§×× ×©× ×©×× ×××××.`)}else le("ש×××× ××צ×רת ××××× ×"),ne(!1)}catch(t){return t instanceof Error&&t.message.includes("××שת×ש ××ר ×ש×××")?le(t.message):le("ש×××× ××צ×רת ××שת×ש. ×× × × ×¡× ×©× ×ת."),void ne(!1)}}E(!1)}catch(r){le(`ש×××× ×ש××רת ×שת×ש: ${r.message}`)}finally{ne(!1)}},children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:"×©× ×××"}),e.jsx("input",{type:"text",id:"name",name:"name",value:H,onChange:e=>J(e.target.value),className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-teal-500 focus:border-teal-500 text-right"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"×ת××ת ××××××"}),e.jsx("input",{type:"email",id:"email",name:"email",value:K,onChange:e=>O(e.target.value),className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-teal-500 focus:border-teal-500 text-right",dir:"ltr"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium text-gray-700",children:"×ספר ××פ×× (××פצ××× ××)"}),e.jsx("input",{type:"tel",id:"phone",name:"phone",value:ee,onChange:e=>se(e.target.value),className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-teal-500 focus:border-teal-500 text-right",dir:"ltr"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"position",className:"block text-sm font-medium text-gray-700",children:"תפק×× (××פצ××× ××)"}),e.jsx("input",{type:"text",id:"position",name:"position",value:te,onChange:e=>ae(e.target.value),className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-teal-500 focus:border-teal-500 text-right"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"role",className:"block text-sm font-medium text-gray-700",children:"ס×× ×שת×ש"}),e.jsxs("select",{id:"role",name:"role",value:P,onChange:e=>Q(e.target.value),className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-teal-500 focus:border-teal-500 text-right",children:[e.jsx("option",{value:"admin",children:"×× ××"}),e.jsx("option",{value:"marketing_manager",children:"×× ×× ×©××××§"})]})]}),!V&&e.jsx("div",{className:"bg-blue-50 p-4 rounded-md"
1,children:e.jsx("p",{className:"text-sm text-blue-700",children:"â¹ï¸ ××שת×ש ××§×× ×××××× ×¢× ×§×× ×××× × ×ר×ש××. ××× ×××× ××§×××¢ ס×ס×× ××××× ×ª×××× ×ר×ש××."})}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"status",className:"block text-sm font-medium text-gray-700",children:"ס×××ס"}),e.jsxs("select",{id:"status",name:"status",value:X,onChange:e=>Z(e.target.value),className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-teal-500 focus:border-teal-500 text-right",children:[e.jsx("option",{value:"active",children:"פע××"}),e.jsx("option",{value:"inactive",children:"×× ×¤×¢××"})]})]}),e.jsxs("div",{className:"flex justify-end space-x-reverse space-x-3 pt-4",children:[e.jsx("button",{type:"button",onClick:()=>E(!1),disabled:ie,className:"px-4 py-2 border border-gray-300 rounded-md text-sm font-medium "+(ie?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white hover:bg-gray-50"),children:"×××××"}),e.jsx("button",{type:"submit",disabled:ie,className:"px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white flex items-center "+(ie?"bg-teal-400 cursor-not-allowed":"bg-teal-600 hover:bg-teal-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-teal-500"),children:ie?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-t-2 border-b-2 border-white ml-2"}),V?"ש××ר...":"ש××× ×××× ×..."]}):V?"ש××ר ש×× ××××":"ש×× ×××× ×"})]})]})]})}),R&&V&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-md w-full p-6",children:[e.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-red-100 mx-auto mb-4",children:e.jsx(h,{className:"h-6 w-6 text-red-600"})}),e.jsx("h3",{className:"text-lg font-medium text-center text-gray-900 mb-2",children:"×××קת ×שת×ש"}),e.jsxs("p",{className:"text-center text-gray-500 mb-6",children:["××× ××ª× ×××× ×©×רצ×× × ×××××§ ×ת ××שת×ש ",e.jsx("strong",{children:V.name}),"? פע××× ×× ××× × × ××ª× ×ª ××××××."]}),e.jsxs("div",{className:"flex justify-center space-x-reverse space-x-3",children:[e.jsx("button",{onClick:()=>q(!1),disabled:Y,className:"px-4 py-2 border border-gray-300 rounded-md text-sm font-medium "+(Y?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white hover:bg-gray-50"),children:"×××××"}),e.jsx("button",{onClick:async()=>{if(V&&!Y){G(!0);try{const e={id:V.id,uid:V.uid,email:V.email,name:V.name,role:V.role,schoolId:V.schoolId,status:V.status},s=await C.deleteSchoolUser(e);if(s.success){if(s.details.partialCleanup&&s.details.partialCleanup.length>0)alert(`××שת×ש × ×××§ ××צ×××, ×× ×××§ ××× ××§×× × ×ש×: ${s.details.partialCleanup.join(", ")}`);else{const e=[];s.details.schoolUserDeleted&&e.push("פר×פ×× ××ת ספר"),s.details.usersCollectionUpdated&&e.push("× ×ª×× × ×שת×ש ×ר×××××"),s.details.consentDataCleaned&&e.push("× ×ª×× × ×ס×××"),s.details.marketingDataCleaned&&e.push("× ×ª×× × ×©××××§"),s.details.legacyDataCleaned&&e.push("× ×ª×× ×× ××©× ××"),s.details.authAccountDeleted&&e.push("×ש××× ××××ת"),alert(`××שת×ש × ×××§ ××צ×××! × ××§×: ${e.join(", ")}`)}$(e=>e.filter(e=>e.id!==V.id)),q(!1),W(null)}else le(s.error||"ש×××× ××××קת ××שת×ש. ×× × × ×¡× ×©× ×ת.")}catch(e){le("ש×××× ××××קת ××שת×ש. ×× × × ×¡× ×©× ×ת.")}finally{G(!1)}}},disabled:Y,className:"px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white flex items-center "+(Y?"bg-red-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"),children:Y?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-t-2 border-b-2 border-white ml-2"}),"××××§..."]}):"×××§"})]})]})})]})};export{S as default};
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.