PageSourceSearch

https://www.drushimavodot.co.il/assets/AdminDemoRoom-DJjnojRl.js

js drushimavodot.co.il collected 2026-10-02 01:56:04 UTC 5,063 bytes, 8 lines download raw bytes

1import{r as t,j as e}from"./react-vendor-KcpGDhDO.js";import{e as S,B as i,aD as h,D as k,h as u,n as B}from"./index-WFq09cu9.js";import{T as E}from"./textarea-BUNzb6oZ.js";import{a as R}from"./integrationsService-C7XYio51.js";import{E as L}from"./EventRoom-nkpE5tnO.js";import{C as A}from"./circle-check-big-B-PemlPR.js";import{C as $}from"./copy-D3q0MUkt.js";import{V as I}from"./video-Fq9eoEGr.js";import"./supabase-vendor-DqO-ystM.js";import"./ui-vendor-IRxhZ7TT.js";import"./animation-vendor-9EcIC_Dc.js";import"./scroll-area-BYha6nr7.js";import"./RoomUi-DItNTKJd.js";import"./message-square-49R3KflO.js";import"./send-fX-ZcCvT.js";import"./trash-2-Bs0HJa24.js";import"./image-plus-Ds-_YPHL.js";import"./palette-C_uQDUlw.js";import"./monitor-CnSqVts-.js";import"./video-off-DwNkHfI9.js";import"./mic-Be_sfG84.js";import"./radio-CybYtBCx.js";const M="drushim-demo",b=[{value:"recruiter",label:"מגייס/ת"},{value:"expert",label:"יועץ/ת קריירה"},{value:"candidate",label:"מועמד/ת"},{value:"general",label:"כללי"}];function re(){const{user:o}=S(),[a,f]=t.useState("recruiter"),[r,j]=t.useState(""),[n,N]=t.useState(""),[m,c]=t.useState(!1),[v,d]=t.useState(!1),[g,x]=t.useState(!1),p=`${window.location.origin}/demo`,w=async()=>{c(!0);try{const l=`אתה עוזר לאדמין של פלטפורמת דרושים-עבודות להכין תסריט הדגמה קצר.
2הלקוח הוא: ${b.find(T=>T.value===a)?.label||a}.
3${r?`פרטים נוספים: ${r}`:""}
4
5הכן 6-7 נקודות דיבור קצרות ומעשיות להדגמת המערכת ללקוח זה.
6התמקד בערך הממשי שהמערכת נותנת לסוג לקוח זה.
7כל נקודה - משפט אחד קצר ומוחשי. ללא כותרות, ללא מספרים - רק נקודות (•).`,C=await R(l);N(C||"")}catch{u("שגיאה בהכנת התסריט")}finally{c(!1)}},y=async()=>{try{await navigator.clipboard.writeText(p),x(!0),setTimeout(()=>x(!1),2500),B("קישור הוזמנה הועתק")}catch{u("שגיאה בהעתקה")}};return v?e.jsx(L,{roomName:M,participantName:o?.user_metadata?.full_name||"Admin",participantIdentity:o?.id,canPublish:!0,isOwner:!0,onClose:()=>d(!1)}):e.jsx("div",{className:"min-h-screen bg-slate-950 text-white p-6",dir:"rtl",children:e.jsxs("div",{className:"max-w-2xl mx-auto space-y-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:"חדר דמו - הדגמת מערכת"}),e.jsx("p",{className:"text-slate-400 mt-1 text-sm",children:"הכן תסריט, שלח קישור ללקוח וכנס לחדר."})]}),e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/5 p-5 space-y-3",children:[e.jsx("p",{className:"text-sm font-semibold",children:"קישור הזמנה ללקוח"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("code",{className:"flex-1 rounded-xl bg-slate-900 px-4 py-2 text-sm text-blue-300 truncate",children:p}),e.jsx(i,{size:"sm",variant:"outline",className:"border-white/20 shrink-0",onClick:y,children:g?e.jsx(A,{className:"h-4 w-4 text-emerald-400"}):e.jsx($,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"text-xs text-slate-500",children:"הלקוח מקליד את שמו ונכנס - ללא הרשמה."})]}),e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/5 p-5 space-y-4",children:[e.jsxs("p",{className:"text-sm font-semibold flex items-center gap-2",children:[e.jsx(h,{className:"h-4 w-4 text-amber-400"}),"הכנת תסריט דמו עם AI"]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-slate-400",children:"סוג לקוח"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:b.map(s=>e.jsx("button",{type:"button",onClick:()=>f(s.value),className:`rounded-xl px-4 py-1.5 text-sm font-medium transition ${a===s.value?"bg-blue-600 text-white":"bg-white/5 text-slate-300 hover:bg-white/10"}`,children:s.label},s.value))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-slate-400",children:"פרטים נוספים על הלקוח (אופציונלי)"}),e.jsx(E,{value:r,onChange:s=>j(s.target.value),placeholder:"לדוגמה: חברה גדולה בתחום ההייטק, מגייסת 20 עובדים בחודש...",className:"bg-slate-900 border-white/10 text-white placeholder:text-slate-600 resize-none",rows:2})]}),e.jsx(i,{onClick:w,disabled:m,className:"bg-amber-600 hover:bg-amber-700",children:m?e.jsxs(e.Fragment,{children:[e.jsx(k,{className:"me-2 h-4 w-4 animate-spin"}),"מכין תסריט..."]}):e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"me-2 h-4 w-4"}),"הכן תסריט"]})}),n&&e.jsx("div",{className:"rounded-xl bg-slate-900 p-4 space-y-1",children:n.split(`
8`).filter(s=>s.trim()).map((s,l)=>e.jsx("p",{className:"text-sm text-slate-200 leading-relaxed",children:s},l))})]}),e.jsxs(i,{className:"w-full bg-blue-600 hover:bg-blue-700 text-base py-6",onClick:()=>d(!0),children:[e.jsx(I,{className:"me-2 h-5 w-5"}),"כנס לחדר הדמו"]})]})})}export{re 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.