1import{c as I,j as e,r as d,d as y,s as oe}from"./index-tUFl4-SJ.js";import{N as s,R as le,S as de,d as ce}from"./AdminLayout-C9umxEZS.js";import{c as te,s as z,i as R,p as ne,t as fe}from"./ui-BYz97bZ9.js";import{f as se,s as ue,t as ie,h as he,i as U,j as Z,u as ge,n as q,a as G,r as pe,k as V,S as Y,b as P,C as J,l as xe,m as me,o as ye,c as ke,g as be,e as je}from"./socialPosts-fL2C_wXe.js";import{C as ve,a as Se}from"./chevron-right-p-kfgMhq.js";import{L as M}from"./loader-circle-g-9ieKNe.js";import{C as _e}from"./copy-Db_WYSrg.js";import{T as we}from"./trash-2-4-WMvtbl.js";import"./fnError-BZ_kVHjX.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Be=I("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Ce=I("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const ze=I("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const Te=I("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 22 * @license lucide-react v0.462.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const Ie=I("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 27 * @license lucide-react v0.462.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const Q=I("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 32 * @license lucide-react v0.462.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const Le=I("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);function ae({size:n=14,color:c="currentColor",className:o}){return e.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:c,"aria-hidden":"true",focusable:"false",className:o,style:{display:"block",flexShrink:0},children:[e.jsx("path",{d:"M12 1.5 23 6.75 12 12 1 6.75 12 1.5Z"}),e.jsx("path",{d:"M12 14.05 3.6 10.05 1 11.3 12 16.55 23 11.3l-2.6-1.25-8.4 4Z"}),e.jsx("path",{d:"M12 18.6 3.6 14.6 1 15.85 12 21.1 23 15.85l-2.6-1.25-8.4 4Z"})]})}const Ee=["kf_buffer_status"];function De(n){return new Date(n).toLocaleString("da-DK",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}function Me(){const[n,c]=d.useState(null),[o,h]=d.useState(""),[f,_]=d.useState(!1),[u,w]=d.useState(!1);d.useEffect(()=>{try{Ee.forEach(a=>localStorage.removeItem(a))}catch{}},[]);async function p(a){_(!0),h("");try{c(await a())}catch(x){h(x instanceof Error?x.message:"Kunne ikke tale med Buffer.")}_(!1)}d.useEffect(()=>{u&&!n&&p(se)},[u,n]);const k=o?"Fejl":n?n.configured?`${n.channels.filter(a=>a.is_active).length} aktive kanaler`:"Ikke sat op":"Ikke hentet";return e.jsxs("div",{style:{...te,marginTop:32},children:[e.jsxs("button",{type:"button",onClick:()=>w(a=>!a),"aria-expanded":u,style:{display:"flex",gap:8,alignItems:"center",width:"100%",background:"none",border:0,padding:0,cursor:"pointer",textAlign:"left"},children:[u?e.jsx(ve,{size:14}):e.jsx(Se,{size:14}),e.jsx(ae,{size:14}),e.jsx("strong",{style:{fontSize:13,color:s.text},children:"Buffer â kanaler"}),e.jsx("span",{style:{fontSize:12,color:o?"#B42318":s.textMuted,marginLeft:"auto"},children:k})]}),u&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{display:"flex",gap:10,alignItems:"center",marginTop:12},children:e.jsx("button",{type:"button",onClick:()=>void p(ue),disabled:f,style:{...z,height:30,fontSize:12,padding:"0 10px"},children:f?e.jsxs(e.Fragment,{children:[e.jsx(M,{size:13,className:"animate-spin"})," Henterâ¦"]}):e.jsxs(e.Fragment,{children:[e.jsx(le,{size:13,strokeWidth:2})," Hent kanaler fra Buffer"]})})}),o&&e.jsx("p",{style:{fontSize:12,color:"#B42318",margin:"10px 0 0"},"aria-live":"polite",children:o}),n&&!n.configured&&e.jsx("p",{style:{fontSize:12,color:s.textMuted,margin:"10px 0 0"},children:"Krop+Fysiks Buffer-kanaler er ikke valgt endnu."}),e.jsx("div",{style:{marginTop:12,display:"grid",gap:6},children:((n==null?void 0:n.channels)??[]).map(a=>e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline",fontSize:12,borderTop:`1px solid ${s.border}`,paddingTop:6},children:[e.jsx("span",{style:{width:90,color:s.text,fontWeight:500},children:a.service}),e.jsxs("span",{style:{color:a.is_active?s.text:s.textMuted},children:[a.display_name||a.name,!a.is_active&&" (inaktiv)",a.is_queue_paused&&" (kø sat pÃ¥ pause)"]}),a.last_synced_at&&e.jsxs("span",{style:{marginLeft:"auto",color:s.textMuted},children:["Hentet ",De(a.last_synced_at)]})]},a.id))})]})]})}const We="Europe/Copenhagen";function re(n){const c=new Intl.DateTimeFormat("en-GB",{timeZone:We,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),o={};for(const h of c.formatToParts(new Date(n)))o[h.type]=h.value;return{y:+o.year,mo:+o.month,d:+o.day,h:+o.hour,mi:+o.minute}}function X(n){const c=re(n);
36return Date.UTC(c.y,c.mo-1,c.d,c.h,c.mi)-Math.floor(n/6e4)*6e4}function Ae(n,c){const o=/^(\d{4})-(\d{2})-(\d{2})$/.exec(n??""),h=/^(\d{2}):(\d{2})$/.exec(c??"");if(!o||!h)return null;const[f,_,u,w,p]=[+o[1],+o[2],+o[3],+h[1],+h[2]];if(w>23||p>59)return null;const k=Date.UTC(f,_-1,u,w,p),x=[k-X(k-3*36e5),k-X(k+3*36e5)].filter(S=>{const g=re(S);return g.y===f&&g.mo===_&&g.d===u&&g.h===w&&g.mi===p}).sort((S,g)=>S-g);return x.length?new Date(x[0]):null}const Oe="Opslaget er udgivet og kan ikke længere ændres.",F={height:30,fontSize:12,padding:"0 10px"},Ke={background:"#EDEDEB",color:"#9B9A97",border:"1px dashed #C9C8C5",cursor:"not-allowed",boxShadow:"none"};function Fe({post:n,channelLinked:c,onChanged:o}){const h=ie(n.scheduled_at),[f,_]=d.useState(h.date),[u,w]=d.useState(h.time),[p,k]=d.useState(!1),a=n.has_been_sent||n.buffer_status==="sent",x=!!n.buffer_update_id&&!a,S=he(n);if(!c&&!n.buffer_update_id)return e.jsxs("div",{style:{padding:"8px 12px",fontSize:12,borderTop:`1px solid ${s.border}`,color:s.textMuted},children:[e.jsx("strong",{style:{color:s.text},children:"Kanalen er ikke koblet på Buffer."})," Opslaget kan ikke planlægges eller udgives herfra."]});if(a)return e.jsx("div",{style:{padding:"8px 12px",fontSize:12,borderTop:`1px solid ${s.border}`,color:s.textMuted},children:S||Oe});const g=f&&u?Ae(f,u):null;let m="";!f||!u?m="Vælg dato og tidspunkt før du planlægger.":g?g.getTime()<=Date.now()?m="Planlagt tidspunkt ligger i fortiden.":n.channel==="instagram"&&!n.image_url.trim()?m="Instagram-opslag kræver mindst ét billede.":!n.body.trim()&&!n.image_url.trim()&&(m="Opslaget er tomt."):m="Tidspunktet findes ikke i dansk tid (sommertidsskift).";async function B(j,$){k(!0);try{await j(),y.success($)}catch(A){y.error(A instanceof Error?A.message:"Buffer-fejl")}finally{k(!1),o()}}function W(){if(m||!g)return;const j=`Opslaget planlægges i Buffer og udgives automatisk ${U(g)}. Når det er udgivet, kan det ikke længere ændres eller slettes herfra.`;window.confirm(j)&&B(()=>Z(n.id,{date:f,time:u}),x?"Opslaget er opdateret i Buffer":"Opslaget er planlagt i Buffer")}function N(){const j=`Opslaget sendes til Buffer nu og udgives ca. ${U(new Date(Date.now()+12e4))}. Derefter kan det ikke længere ændres eller slettes herfra.`;window.confirm(j)&&B(()=>Z(n.id,"now"),"Opslaget udgives om et par minutter")}function E(){window.confirm("Fjern opslaget fra Buffers kø? Det bliver ikke udgivet, men bliver liggende her i CMS'et.")&&B(()=>ge(n.id),"Opslaget er fjernet fra Buffers kø")}const L=p||!!m;return e.jsxs("div",{style:{padding:"8px 12px",borderTop:`1px solid ${s.border}`,display:"grid",gap:6},children:[S&&e.jsx("div",{style:{fontSize:12,color:n.buffer_status==="error"?"#B42318":s.textMuted},"aria-live":"polite",children:S}),e.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap",alignItems:"center"},children:[e.jsxs("label",{style:{fontSize:12,color:s.textMuted},children:["Dato",e.jsx("input",{type:"date",value:f,onChange:j=>_(j.target.value),style:{...R,height:30,fontSize:12,marginLeft:4,width:140}})]}),e.jsxs("label",{style:{fontSize:12,color:s.textMuted},children:["Kl. (dansk tid)",e.jsx("input",{type:"time",value:u,onChange:j=>w(j.target.value),style:{...R,height:30,fontSize:12,marginLeft:4,width:100}})]})]}),m&&e.jsx("div",{style:{fontSize:12,color:"#B42318"},children:m}),e.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap",alignItems:"center"},children:[e.jsxs("button",{type:"button",onClick:W,disabled:L,title:m||void 0,"aria-disabled":L,style:L?{...z,...F,...Ke}:{...ne,...F},children:[e.jsx(ae,{size:13})," ",x?"Opdatér i Buffer":"Planlæg i Buffer"]}),!x&&e.jsx("button",{type:"button",onClick:N,disabled:p,style:{...z,...F},children:"Slå op nu"}),x&&e.jsx("button",{type:"button",onClick:E,disabled:p,style:{...z,...F},children:"Fjern fra Buffers kø"}),p&&e.jsx(M,{size:13,className:"animate-spin"})]})]})}const ee={facebook:{color:"#1877F2",band:"#1877F2",icon:e.jsx(Ce,{size:14,strokeWidth:2.2,fill:"currentColor",stroke:"none"}),handle:"Krop + fysik"},instagram:{color:"#DD2A7B",band:"linear-gradient(90deg,#f9ce34 0%,#ee2a7b 50%,#6228d7 100%)",icon:e.jsx(Te,{size:14,strokeWidth:2.2}),handle:"kropogfysik"},linkedin:{color:"#0A66C2",band:"#0A66C2",icon:e.jsx(Ie,{size:14,strokeWidth:2.2,fill:"
36currentColor",stroke:"none"}),handle:"Krop + fysik"}};function Ve(){const[n,c]=d.useState([]),[o,h]=d.useState(!0),[f,_]=d.useState("all"),[u,w]=d.useState({}),[p,k]=d.useState(null),[a,x]=d.useState(!1),[S,g]=d.useState(new Set),m=d.useRef(q()),B=d.useCallback(async()=>{h(!0);try{let t=await G();const r=t.filter(l=>l.buffer_update_id&&!l.has_been_sent).map(l=>l.id);if(r.length)try{await pe(r),t=await G()}catch{}c(t);try{const l=await se();g(new Set(l.channels.filter(i=>i.is_active).map(i=>i.service)))}catch{g(new Set)}}catch(t){y.error(t instanceof Error?t.message:"Kunne ikke hente opslag")}finally{h(!1)}},[]);d.useEffect(()=>{B()},[B]);const W=d.useMemo(()=>f==="all"?n:n.filter(t=>t.status===f),[n,f]),N=d.useMemo(()=>{const t={all:n.length};for(const r of V)t[r]=n.filter(l=>l.status===r).length;return t},[n]);async function E(t,r){k(t);try{await xe(t,r),c(l=>l.map(i=>i.id===t?{...i,...r}:i))}catch(l){y.error(l instanceof Error?l.message:"Kunne ikke gemme")}finally{k(null)}}async function L(t,r){if(!t.has_been_sent&&(await E(t.id,r),!(!t.buffer_update_id||!t.scheduled_at))){try{await Z(t.id,ie(t.scheduled_at)),y.success("Ãndringen er gemt i Buffer")}catch(l){y.error(l instanceof Error?l.message:"Kunne ikke opdatere i Buffer")}B()}}async function j(t){await navigator.clipboard.writeText(me(t)),y.success("Opslaget er kopieret â indsæt det pÃ¥ "+J[t.channel]),t.status==="draft"&&E(t.id,{status:"approved"})}async function $(t){const r=n.find(i=>i.id===t),l=r!=null&&r.buffer_update_id&&!r.has_been_sent?"Slet opslaget? Det fjernes ogsÃ¥ fra Buffers kø og bliver ikke udgivet.":"Slet opslaget?";if(confirm(l))try{await ye(t),c(i=>i.filter(v=>v.id!==t))}catch(i){y.error(i instanceof Error?i.message:"Kunne ikke slette")}}async function A(){if(!a){x(!0);try{const{data:t,error:r}=await oe.from("news").select("id,title,slug,excerpt,body,cover_image").eq("published",!0).order("published_at",{ascending:!1}).limit(12);if(r)throw new Error(r.message);const l=new Set(n.map(C=>C.news_id).filter(Boolean)),i=(t??[]).filter(C=>!l.has(C.id)).slice(0,3);if(!i.length){y.info("Alle de nyeste artikler har allerede opslag i køen.");return}const v=[];for(const C of i){const T=C,K=(T.excerpt??"").trim();for(const b of ke.filter(D=>S.has(D)))v.push({news_id:T.id,channel:b,body:[T.title,K].filter(Boolean).join(` 37 38`).slice(0,P[b]),hashtags:"",image_url:T.cover_image??"",link_url:be(T.slug),note:"Kladde kopieret fra artiklen â skriv den færdig manuelt"})}if(!v.length){y.info("Ingen kanaler er koblet pÃ¥ Buffer.");return}const O=await je(v,m.current);O.duplicate?y.info("Opslagene er allerede lagt i køen."):y.success(`${O.rows.length} kladder lagt i køen`),m.current=q(),await B()}catch(t){y.error(t instanceof Error?t.message:"Kunne ikke lave opslag")}finally{x(!1)}}}return e.jsxs("div",{style:{maxWidth:900},children:[e.jsx("h1",{style:{fontSize:24,fontWeight:600,margin:"0 0 4px",color:s.text},children:"Social"}),e.jsx("p",{style:{color:s.textMuted,fontSize:14,margin:"0 0 16px",maxWidth:620},children:"Opslag til Facebook, Instagram og LinkedIn. Teksterne skrives i artiklen under âSocialâ og godkendes her. Send dem til Buffer, som slÃ¥r dem op pÃ¥ kanalerne â eller kopiér teksten og slÃ¥ den op manuelt."}),e.jsx("button",{type:"button",onClick:()=>void A(),disabled:a,style:{...ne,marginBottom:16,opacity:a?.6:1},children:a?e.jsxs(e.Fragment,{children:[e.jsx(M,{size:14,className:"animate-spin"})," Skriver forslagâ¦"]}):"Lav opslag fra de 3 nyeste artikler"}),e.jsx("div",{style:{display:"flex",gap:6,marginBottom:16,flexWrap:"wrap",alignItems:"center"},children:["all",...V].map(t=>e.jsxs("button",{type:"button",onClick:()=>_(t),style:{...z,height:30,fontSize:12,padding:"0 12px",background:f===t?s.text:"#fff",color:f===t?"#fff":s.text,borderColor:f===t?s.text:s.borderStrong},children:[t==="all"?"Alle":Y[t]," (",N[t]??0,")"]},t))}),o&&e.jsxs("div",{style:{color:s.textMuted,fontSize:14},children:[e.jsx(M,{size:14,className:"animate-spin"})," Henterâ¦"]}),!o&&W.length===0&&e.jsx("div",{style:{...te,color:s.textMuted,fontSize:14},children:"Ingen opslag her endnu. à bn en artikel i Nyheder og brug panelet âSocialâ til at lave forslag."}),e.jsx("div",{style:{display:"grid",gap:16,gridTemplateColumns:"repeat(auto-fill, minmax(360px, 1fr))",alignItems:"start"},children:W.map(t=>{const r=u[t.id]??t.body,l=r.length>P[t.channel],i=t.channel==="instagram",v=ee[t.channel]??ee.facebook,O=v.band,C=e.jsxs("div",{style:{padding:"10px 12px"},children:[e.jsx("textarea",{style:{...fe,minHeight:96,fontSize:13,border:`1px dashed ${s.border}`,background:"transparent",padding:6},value:r,onChange:b=>w(D=>({...D,[t.id]:b.target.value})),readOnly:t.has_been_sent,onBlur:()=>{r!==t.body&&L(t,{body:r})}}),i&&e.jsx("input",{style:{...R,marginTop:6,fontSize:12,border:`1px dashed ${s.border}`,color:"#00376B"},value:t.hashtags,placeholder:"#hashtags",onChange:b=>c(D=>D.map(H=>H.id===t.id?{...H,hashtags:b.target.value}:H)),readOnly:t.has_been_sent,onBlur:b=>void L(t,{hashtags:b.target.value})})]}),T=t.link_url&&!i?e.jsx("div",{style:{padding:"0 12px 8px",fontSize:14,lineHeight:1.4,color:"#385898",wordBreak:"break-all"},children:t.link_url}):null,K=t.image_url?e.jsx("img",{src:t.image_url,alt:"",style:{width:"100%",aspectRatio:i?"1 / 1":"1.91 / 1",objectFit:"cover",display:"block"}}):null;return e.jsxs("div",{style:{background:"#fff",border:`2px solid ${v.color}`,display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"7px 12px",background:O,color:"#fff"},children:[e.jsx("span",{style:{width:22,height:22,background:"#fff",color:v.color,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:v.icon}),e.jsx("span",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase"},children:J[t.channel]}),e.jsx("span",{style:{fontSize:11,background:"rgba(255,255,255,0.22)",padding:"2px 6px"},children:Y[t.status]}),e.jsxs("span",{style:{marginLeft:"auto",fontSize:11,fontWeight:l?700:400,opacity:l?1:.85},children:[r.length," / ",P[t.channel]]})]}),e.jsxs("div",{style:{padding:"10px 12px",display:"flex",alignItems:"center",gap:8,borderBottom:i?`1px solid ${s.border}`:"none"},children:[e.jsx("img",{src:"/favicon.svg",alt:"Krop + fysik",style:{width:i?32:40,height:i?32:40,flexShrink:0,objectFit:"cover",borderRadius:"50%",display:"block"}}),e.jsxs("span",{style:{minWidth:0},children:[e.jsx("span",{style:{display:"block",fontSize:13,fontWeight:600,color:i?"#262626":"#050505"},children:v.handle}),e.jsx("span",{style:{display:"block",fontSize:11,color:i?"#8E8E8E":"#65676B"},children:t.has_been_sent&&t.buffer_sent_at?new Date(t.buffer_sent_at).toLocaleDateString("da-DK",{timeZone:"Europe/Copenhagen",day:"numeric",month:"short",year:"numeric"}):i?"Kladde · kun synlig her":"Kladde · kun synlig her · Offentligt"})]})]}),i?e.jsxs(e.Fragment,{children:[K,C]}):e.jsxs(e.Fragment,{children:[C,T,K]}),i?e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"8px 12px",color:"#262626",borderTop:`1px solid ${s.border}`},children:[e.jsx(ze,{size:19,strokeWidth:1.8}),e.jsx(Q,{size:19,strokeWidth:1.8}),e.jsx(de,{size:19,strokeWidth:1.8}),e.jsx(Be,{size:19,strokeWidth:1.8,style:{marginLeft:"auto"}})]}):e.jsx("div",{style:{display:"flex",borderTop:"1px solid #CED0D4",color:"#65676B"},children:[{icon:e.jsx(Le,{size:15,strokeWidth:2}),label:"Synes godt om"},{icon:e.jsx(Q,{size:15,strokeWidth:2}),label:"Kommentér"},{icon:e.jsx(ce,{size:15,strokeWidth:2}),label:"Del"}].map(b=>e.jsxs("span",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"7px 0",fontSize:12,fontWeight:600},children:[b.icon," ",b.label]},b.label))}),e.jsx(Fe,{post:t,channelLinked:S.has(t.channel),onChanged:()=>void B()},`${t.id}-${t.scheduled_at??""}`),e.jsxs("div",{style:{display:"flex",gap:6,padding:12,marginTop:"auto",flexWrap:"wrap",alignItems:"center",borderTop:`1px solid ${s.border}`},children:[e.jsxs("button",{type:"button",onClick:()=>j(t),style:{...z,height:30,fontSize:12,padding:"0 10px"},children:[e.jsx(_e,{size:13,strokeWidth:2})," Kopiér"]}),t.status!=="skipped"&&!t.has_been_sent&&e.jsx("button",{type:"button",onClick:()=>
38E(t.id,{status:"skipped"}),style:{...z,height:30,fontSize:12,padding:"0 10px"},children:"Drop"}),p===t.id&&e.jsx(M,{size:13,className:"animate-spin"}),e.jsx("button",{type:"button",onClick:()=>$(t.id),title:"Slet",style:{...z,height:30,width:30,padding:0,marginLeft:"auto"},children:e.jsx(we,{size:13,strokeWidth:2})})]})]},t.id)})}),e.jsx(Me,{})]})}export{Ve 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.