PageSourceSearch

https://indigofinance.co.il/assets/EditToolbar-odTanUxy.js

js indigofinance.co.il collected 2026-10-08 12:26:43 UTC 2,874 bytes, 17 lines download raw bytes

1import{r,u as h,s as o,j as e,e as u,L as g}from"./index-BgA3l4Cy.js";import"./supabase-B5iJqA_x.js";function p(){if(typeof window>"u")return!1;try{for(let n=0;n<window.localStorage.length;n++){const i=window.localStorage.key(n);if(i&&i.startsWith("sb-")&&i.endsWith("-auth-token"))return!0}}catch{}return!1}function x(){const[n]=r.useState(()=>p()),[i,a]=r.useState(!1),t=h();return r.useEffect(()=>{if(!n)return;let s=!0;o.auth.getSession().then(({data:{session:d}})=>{s&&a(!!d)});const{data:{subscription:c}}=o.auth.onAuthStateChange((d,l)=>{a(!!l),l||u.set(!1)});return()=>{s=!1,c.unsubscribe()}},[n]),i?e.jsxs(e.Fragment,{children:[e.jsxs("div",{dir:"rtl",style:{position:"fixed",top:0,left:0,right:0,height:40,background:"linear-gradient(90deg, #1A0535 0%, #3D1A5E 100%)",color:"white",fontFamily:"Heebo, sans-serif",fontSize:12,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 16px",zIndex:9999,boxShadow:"0 2px 12px rgba(0,0,0,0.25)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:t?"#22C55E":"#E0A94E",boxShadow:`0 0 8px ${t?"#22C55E":"#E0A94E"}`}}),e.jsx("span",{style:{color:"rgba(255,255,255,0.85)"},children:t?"מצב עריכה פעיל — לחץ על כל טקסט לעריכה":"מצב צפייה — אתה מחובר כמנהל"})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx("button",{onClick:()=>u.set(!t),style:{background:t?"#22C55E":"#7B3FA8",color:"white",border:"none",borderRadius:20,padding:"6px 16px",fontSize:12,fontWeight:700,cursor:"pointer",fontFamily:"inherit",display:"flex",alignItems:"center",gap:6},children:t?"✓ שמור ויצא ממצב עריכה":"✏️ ערוך דף"}),e.jsx(g,{to:"/admin",style:{background:"rgba(255,255,255,0.08)",border:"1px solid rgba(255,255,255,0.15)",color:"white",borderRadius:20,padding:"6px 14px",fontSize:12,fontWeight:700,textDecoration:"none"},children:"🏠 בק-אופיס"}),e.jsx("button",{onClick:()=>o.auth.signOut(),style:{background:"transparent",color:"rgba(255,255,255,0.5)",border:"none",fontSize:12,cursor:"pointer",fontFamily:"inherit"},children:"התנתק"})]})]}),e.jsx("div",{style:{height:40},"aria-hidden":!0}),t&&e.jsx("style",{children:`
2          [data-editable] {
3            outline: 1px dashed rgba(123,63,168,0.4);
4            outline-offset: 4px;
5            border-radius: 4px;
6            cursor: text;
7            transition: outline-color .15s, background .15s;
8          }
9          [data-editable]:hover {
10            outline-color: #7B3FA8;
11            background: rgba(123,63,168,0.06);
12          }
13          [data-editable]:focus {
14            outline: 2px solid #7B3FA8 !important;
15            background: rgba(123,63,168,0.08);
16          }
17        `})]}):null}export{x as EditToolbar};

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.