1import{bd as w,bF as x,bG as C,bH as k,bh as T,bu as A,by as e,bt as u,bz as I,cb as D,bC as N,bx as d,bN as f,bn as a,bV as E,c6 as R,eV as S,c2 as z}from"./D0mcFovV.js";import{O as n}from"./zt2LYs8n.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"777cd10e877c32cfcb2528469cdcbde642cea1f1"};var l=new o.Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="e38d157f-e62e-4178-b239-9bec8ca63290",o._sentryDebugIdIdentifier="sentry-dbid-e38d157f-e62e-4178-b239-9bec8ca63290")}catch{}})();const B={class:"code-overview"},V={class:"value"},F=w({__name:"[id]",async setup(o){let l,c;const r=x(),{$brain:m}=C(),p=R(()=>decodeURIComponent(r.currentRoute.value.params.id)),{data:t}=([l,c]=k(()=>m.admin.codes.getCode(p.value)),l=await l,c(),l),h=()=>{if(window.history.state.back?.startsWith("/admin/codes?suche")){r.back();return}r.push("/admin/codes/")},i=s=>s?`${S(s.value)} ${s.currencyCode}`:"-",b=s=>s?z(s):"-";return(s,v)=>{const y=D,g=I,_=E;return T(),A("div",null,[e(_,{"section-classes":"pt-5","has-container":""},{default:u(()=>[e(g,{class:"btn btn-inline p-0",onClick:h},{default:u(()=>[e(y,{direction:"left",class:"to-admintool--chevron-icon"}),v[0]||(v[0]=N(" Zurück zum Admin-Tool ",-1))]),_:1}),d("h1",null,f(a(t).name),1)]),_:1}),e(_,{"aria-label":"Ãbersicht des Codes","has-container":""},{default:u(()=>[d("div",B,[e(n,{label:"Code ID",value:a(t).id},null,8,["value"]),e(n,{label:"Auszahlung",value:i(a(t).payout)},null,8,["value"]),e(n,{label:"Notiz",class:"note"},{default:u(()=>[d("p",V,f(a(t).note||"-"),1)]),_:1}),e(n,{label:"Name",value:a(t).name},null,8,["value"]),e(n,{label:"Spende",value:i(a(t).donation)},null,8,["value"]),e(n,{label:"Kategorie",value:a(t).category},null,8,["value"]),e(n,{label:"Provision",value:i(a(t).provision)},null,8,["value"]),e(n,{label:"Reporting-Turnus",value:a(t).reportingTurnus??"-"},null,8,["value"]),e(n,{label:"Gültig ab",value:b(a(t).validFrom)},null,8,["value"]),e(n,{label:"Status",value:a(t).isActive?"Aktiviert":"Deaktiviert"},null,8,["value"]),e(n,{label:"Gültig bis",value:b(a(t).validTo)},null,8,["value"]),e(n,{label:"Auszahlung nach Monaten",value:a(t).payoutAfterMonths?.toString()??"-"},null,8,["value"])])]),_:1})])}}});export{F 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.