PageSourceSearch

https://logonova-nw.de/_nuxt/Dxub-k11.js

js logonova-nw.de collected 2026-10-07 05:37:36 UTC 3,148 bytes, 1 lines download raw bytes

1import{d as w,w as k,e as o,g as L,h as g,q as N,b as B,c as r,f as t,F as _,C as x,n as b,j as c,t as n,v as A,_ as I,k as S,r as R,l as V}from"./DfLTLBKk.js";const $={class:"flex items-center justify-between mb-6"},F={class:"flex gap-1"},O=["onClick"],P={key:0,class:"text-sm text-gray-500"},j={key:1,class:"bg-white border border-gray-200 rounded-lg p-8 text-center"},T={key:2,class:"space-y-2"},W={class:"flex items-start justify-between gap-4"},q={class:"min-w-0 flex-1"},K={class:"flex items-center gap-2 mb-1"},z={class:"text-meta text-gray-500"},G={class:"text-sm text-gray-900 font-medium"},H={class:"text-xs text-gray-500 mt-0.5"},J={key:0,class:"text-right whitespace-nowrap"},M={class:"text-sm text-gray-900 font-medium"},Y=w({__name:"index",async setup(Q){let i,u;const l=R("RECEIVED"),p=[{value:"RECEIVED",label:"Offen"},{value:"PROCESSED",label:"Bearbeitet"},{value:"DECLINED",label:"Abgelehnt"},{value:"ALL",label:"Alle"}],{data:d,pending:y}=([i,u]=k(()=>B("/api/admin/revocations","$p-neKDqCWl")),i=await i,u(),i),m=V(()=>d.value?l.value==="ALL"?d.value.revocations:d.value.revocations.filter(a=>a.status===l.value):[]);function f(a){return{RECEIVED:"Offen",PROCESSED:"Bearbeitet",DECLINED:"Abgelehnt"}[a]??a}function v(a){const s="text-[10px] px-1.5 py-0.5 rounded uppercase tracking-wide font-medium";return{RECEIVED:`${s} bg-amber-50 text-amber-800`,PROCESSED:`${s} bg-green-50 text-green-800`,DECLINED:`${s} bg-gray-100 text-gray-600`}[a]??s}function h(a){return new Date(a).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}function E(a,s){return new Intl.NumberFormat("de-DE",{style:"currency",currency:s}).format(a)}return(a,s)=>{const C=I,D=N;return r(),o("div",null,[L(D,{name:"admin"},{default:g(()=>[t("div",$,[s[0]||(s[0]=t("div",null,[t("h1",{class:"text-2xl font-bold text-gray-900"},"Widerrufe"),t("p",{class:"text-sm text-gray-500 mt-0.5"}," § 356a BGB. Bearbeitungsfrist: 14 Tage ab Eingang. ")],-1)),t("div",F,[(r(),o(_,null,x(p,e=>t("button",{key:e.value,class:b(["text-xs px-3 py-1.5 rounded-full border",c(l)===e.value?"bg-gray-900 text-white border-gray-900":"bg-white text-gray-700 border-gray-200 hover:bg-gray-50"]),onClick:U=>l.value=e.value},n(e.label),11,O)),64))])]),c(y)?(r(),o("p",P,"Lädt…")):c(m).length?(r(),o("div",T,[(r(!0),o(_,null,x(c(m),e=>(r(),A(C,{key:e.id,to:`/admin/revocations/${e.id}`,class:"block bg-white border border-gray-200 rounded-lg p-4 hover:border-amber-300 transition-colors"},{default:g(()=>[t("div",W,[t("div",q,[t("div",K,[t("span",{class:b(v(e.status))},n(f(e.status)),3),t("span",z,n(h(e.receivedAt)),1)]),t("p",G,n(e.customerName)+" · "+n(e.orderNumber??"—"),1),t("p",H,n(e.itemCount)+" "+n(e.itemCount===1?"Position":"Positionen")+" · "+n(e.customerEmail),1)]),e.orderTotal!=null?(r(),o("div",J,[s[2]||(s[2]=t("p",{class:"text-xs text-gray-500"},"Bestellwert",-1)),t("p",M,n(E(e.orderTotal,e.orderCurrency)),1)])):S("",!0)])]),_:2},1032,["to"]))),128))])):(r(),o("div",j,[...s[1]||(s[1]=[t("p",{class:"text-sm text-gray-600"},"Keine Widerrufe in dieser Ansicht.",-1)])]))]),_:1})])}}});export{Y 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.