PageSourceSearch

https://tsofit.org.il/assets/votePreviewLink-CONlxBrt.js

js tsofit.org.il collected 2026-10-02 14:24:49 UTC 1,665 bytes, 1 lines download raw bytes

1import{r as c,j as e,C as l,z as d,d as p}from"./index-BH8Hq4fF.js";import{C as x}from"./copy-B_0EPT7Q.js";function w({label:t,url:r,hint:n,className:o=""}){const[s,a]=c.useState(!1),i=async()=>{try{await navigator.clipboard.writeText(r),a(!0),setTimeout(()=>a(!1),1800)}catch{d.error("לא ניתן להעתיק — סמנו את הכתובת והעתיקו ידנית")}};return e.jsxs("div",{className:o,children:[t&&e.jsx("p",{className:"text-xs text-slate-400 mb-1",children:t}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("code",{dir:"ltr",className:"flex-1 min-w-0 truncate text-[0.6875rem] bg-slate-50 border border-slate-200 rounded-lg px-2.5 py-2 text-slate-600",children:r}),e.jsx("button",{type:"button",onClick:i,className:"flex-none h-8 px-3 rounded-lg border border-slate-200 text-[0.6875rem] font-bold text-slate-600 hover:bg-slate-50 inline-flex items-center gap-1",children:s?e.jsxs(e.Fragment,{children:[e.jsx(l,{className:"w-3 h-3 text-emerald-500"})," הועתק"]}):e.jsxs(e.Fragment,{children:[e.jsx(x,{className:"w-3 h-3"})," העתקה"]})})]}),n&&e.jsx("p",{className:"text-[0.625rem] text-slate-400 mt-1",children:n})]})}function m(){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID().replace(/-/g,"");const t=new Uint8Array(16);return crypto.getRandomValues(t),Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function y(t){return t?`${typeof window<"u"?window.location.origin:""}/vote-preview/${t}`:""}async function g(t,r){if(r)return r;const n=m();return await p.entities.DigitalVote.update(t,{preview_token:n,preview_token_at:new Date().toISOString()}),n}export{w as C,g as e,y as p};

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.