1import{c as w,w as j,a as t,f as R,u as p,l as A,e as m,t as r,o as n,b as l,d as u,F as c,r as x,n as h,y,i as I,g}from"./app-BVorPlIM.js";import{C as W}from"./ClientLayout-BRTYLkqJ.js";import{_ as K}from"./ProFeatureNotice-CjBNAvDV.js";import{u as U}from"./useTranslations-Y5761FWH.js";/* empty css */import"./LanguageSwitcher-CrtwdBTZ.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./UpgradeProDialog-Dq9gbCUV.js";const Z={class:"mb-6"},q={class:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 mt-2"},G={class:"text-sm text-gray-500 mt-1"},X=["href"],J={key:1,class:"mt-6 rounded-lg bg-white p-6 shadow-sm ring-1 ring-gray-200"},Q={class:"text-base font-semibold text-gray-900"},Y={class:"mt-1 text-sm text-gray-500"},tt={class:"mt-4 divide-y divide-gray-100"},et={class:"text-sm font-medium text-gray-900"},st=["href"],nt={key:1,class:"text-xs text-gray-400"},lt={class:"border-b border-gray-200 mb-6 -mx-4 px-4 sm:mx-0 sm:px-0 overflow-x-auto scrollbar-hide"},at={class:"-mb-px flex space-x-4 sm:space-x-8 min-w-max"},ot=["onClick"],rt={key:0},it={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8"},dt={class:"bg-white rounded-lg shadow p-5"},ct={class:"text-3xl font-bold text-gray-900 mt-1"},xt={class:"bg-white rounded-lg shadow p-5"},ut={class:"bg-white rounded-lg shadow p-5"},gt={class:"text-3xl font-bold text-green-600 mt-1"},ht={class:"bg-white rounded-lg shadow p-5"},yt={class:"text-3xl font-bold text-red-600 mt-1"},mt={class:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8"},pt={class:"bg-white rounded-lg shadow"},bt={key:0,class:"p-8 text-center text-gray-500"},ft={key:1,class:"p-6 flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-8"},vt={class:"relative w-36 h-36 sm:w-48 sm:h-48 flex-shrink-0 aspect-square"},_t={viewBox:"0 0 40 40",class:"w-full h-full -rotate-90"},wt=["stroke","stroke-dasharray","stroke-dashoffset"],kt={class:"absolute inset-0 flex items-center justify-center"},Ct={class:"text-2xl font-bold text-gray-900"},jt={class:"space-y-3 min-w-0"},At={class:"text-sm text-gray-700"},Lt={class:"text-sm font-semibold text-gray-900 ml-auto"},Nt={class:"bg-white rounded-lg shadow"},zt={class:"p-6 space-y-4"},$t={class:"text-sm font-medium text-gray-700 w-28 shrink-0"},Dt={class:"flex-1 bg-gray-100 rounded-full h-6 relative overflow-hidden"},Bt={class:"bg-white rounded-lg shadow mb-8"},Ht={key:0,class:"p-8 text-center text-gray-500"},Vt={key:1,class:"p-6"},Mt={class:"relative",style:{height:"200px"}},St={class:"ml-12 relative h-full"},Pt={class:"relative",style:{height:"calc(100% - 24px)"}},Tt=["viewBox"],Ft=["points"],Ot=["points"],Et={class:"flex justify-between mt-1"},Rt={class:"bg-white rounded-lg shadow mb-8"},It={key:0,class:"p-8 text-center text-gray-500"},Wt={key:1,class:"p-6"},Kt={class:"flex items-end gap-1",style:{height:"200px"}},Ut={class:"absolute bottom-full mb-2 hidden group-hover:block bg-gray-800 text-white text-xs rounded px-2 py-1 whitespace-nowrap z-10"},Zt={class:"flex gap-1 mt-2"},qt={key:0,class:"text-[10px] text-gray-500"},Gt={key:1},Xt={class:"bg-white rounded-lg shadow overflow-hidden"},Jt={class:"px-6 py-4 border-b border-gray-200 flex items-center justify-between"},Qt={class:"text-sm text-gray-500"},Yt={key:0,class:"p-8 text-center text-gray-500"},te={key:1,class:"overflow-x-auto"},ee={class:"min-w-full divide-y divide-gray-200"},se={class:"bg-white divide-y divide-gray-200"},ne={class:"px-4 py-3 whitespace-nowrap text-sm text-gray-900"},le={class:"px-4 py-3 whitespace-nowrap text-sm text-gray-500 font-mono text-xs"},ae={class:"px-4 py-3 whitespace-nowrap text-sm text-gray-500 font-mono text-xs"},oe={class:"px-4 py-3 whitespace-nowrap"},re={class:"px-4 py-3 whitespace-nowrap text-sm"},ie={class:"flex items-center gap-1.5"},de={key:0},ce={key:1},xe={class:"px-4 py-3 whitespace-nowrap text-sm text-gray-500"},ue={class:"px-4 py-3 whitespace-nowrap text-sm text-gray-500 font-mono text-xs"},ge={key:2,class:"px-6 py-4 border-t border-gray-200 flex items-center justify-between"},he={class:"text-sm text-gray-700"},ye={class:"flex gap-1"},me={key:2},pe={class:"bg-white rounded-lg shadow p-6"},be={key:0,class:"text-center py-12"},fe={key:1,class:"w-full"},ve={class:"divide-y divide-gray-100"},_e={class:"py-3 pr-4 text-sm font-medium text-gray-900"},we={class:"py-3 px-4 text-sm text-gray-600 text-right"},ke={class:"py-3 px-4 text-sm text-green-600 text-right hidden sm:table-cell"},Ce={class:"py-3 px-4 text-sm text-red-600 text-right hidden sm:table-cell"},je={class:"py-3 px-4 text-sm text-right"},Ae={class:"py-3 pl-4 text-right"},Le=["href"],Ne={key:1,class:"text-xs text-gray-400"},Pe={__name:"Show",props:{domain:Object,stats:{type:Object,default:null},consentLogs:{type:Object,default:null},archives:{type:Array,default:()=>[]},planFeatures:{type:Object,default:()=>({})}},setup(o){const{t:f}=U(),i=o,b=I("overview"),L=[{key:"overview",label:"Ãbersicht"},{key:"log",label:"Consent-Log"},{key:"archive",label:"Archiv"}],N=[{key:"necessary",short:"Notw."},{key:"functional",short:"Funkt."},{key:"analytics",short:"Anal."},{key:"marketing",short:"Mark."}],z=g(()=>i.stats?i.stats.opt_in_rate>70?"text-green-600":i.stats.opt_in_rate>40?"text-yellow-600":"text-red-600":"text-gray-400"),$=g(()=>{const a=i.stats?.total_consents??0;return a===0?0:((i.stats.consent_by_action?.accept_all||0)/a*100).toFixed(1)}),D=g(()=>{const a=i.stats?.total_consents??0;return a===0?0:((i.stats.consent_by_action?.reject_all||0)/a*100).toFixed(1)}),k=g(()=>{const a=i.stats?.consent_by_action??{};return[{key:"accept_all",label:"Alle akzeptiert",count:a.accept_all||0,color:"#22c55e"},{key:"reject_all",label:"Alle abgelehnt",count:a.reject_all||0,color:"#ef4444"},{key:"custom",label:"Benutzerdefiniert",count:a.custom||0,color:"#3b82f6"},{key:"withdraw",label:"Widerrufen",count:a.withdraw||0,color:"#f97316"}].filter(s=>s.count>0)}),B=g(()=>{const a=i.stats?.total_consents??0;if(a===0)return[];let s=0;return k.value.map(e=>{const d=e.count/a*100,E={percent:d,offset:s,color:e.color};return s+=d,E})}),H=g(()=>[{key:"necessary",label:"Notwendig",rate:100,barColor:"bg-green-500"},{key:"functional",label:"Funktional",rate:i.stats?.category_rates?.functional||0,barColor:"bg-blue-500"},{key:"analytics",label:"Analytik",rate:i.stats?.category_rates?.anal
1ytics||0,barColor:"bg-blue-500"},{key:"marketing",label:"Marketing",rate:i.stats?.category_rates?.marketing||0,barColor:"bg-blue-500"}]),v=g(()=>{const a=i.stats?.weekly_trend||[];if(a.length===0)return[];const s=60;return a.map((e,d)=>({x:d*s+s/2,y:170-e.rate/100*170}))}),V=g(()=>v.value.map(a=>`${a.x},${a.y}`).join(" ")),M=g(()=>{const a=v.value;return a.length===0?"":(a.length*60,`${a[0].x},170 `+a.map(s=>`${s.x},${s.y}`).join(" ")+` ${a[a.length-1].x},170`)}),S=g(()=>{const a=v.value;if(a.length===0)return[];const s=a.length*60;return a.map(e=>({xPercent:e.x/s*100,yPercent:e.y/170*100}))}),P=g(()=>!i.stats?.daily_consents||i.stats.daily_consents.length===0?1:Math.max(...i.stats.daily_consents.map(a=>Number(a.total)),1)),T=a=>Number(a)/P.value*100,_=(a,s)=>Number(s)===0?0:Number(a)/Number(s)*100,C=a=>a?new Date(a).toLocaleDateString("de-CH",{day:"2-digit",month:"2-digit"}):"",F=a=>{switch(a){case"accept_all":return"bg-green-100 text-green-800";case"reject_all":return"bg-red-100 text-red-800";case"custom":return"bg-blue-100 text-blue-800";case"withdraw":return"bg-orange-100 text-orange-800";default:return"bg-gray-100 text-gray-800"}},O=a=>{switch(a){case"accept_all":return"Alle akzeptiert";case"reject_all":return"Alle abgelehnt";case"custom":return"Benutzerdefiniert";case"withdraw":return"Widerrufen";default:return a}};return(a,s)=>(n(),w(W,null,{default:j(()=>[t("div",Z,[R(p(A),{href:`/domains/${o.domain.slug}`,class:"text-sm text-gray-500 hover:text-gray-700"},{default:j(()=>[m(" â Zurück zu "+r(o.domain.display_name||o.domain.hostname),1)]),_:1},8,["href"]),t("div",q,[t("div",null,[s[0]||(s[0]=t("h1",{class:"text-2xl font-bold text-gray-900"},"Consent-Statistiken",-1)),t("p",G,r(o.domain.hostname),1)]),o.stats?(n(),l("a",{key:0,href:`/domains/${o.domain.slug}/export/consent`,class:"inline-flex items-center gap-2 rounded-md bg-white border border-gray-300 px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},[...s[1]||(s[1]=[t("svg",{class:"h-4 w-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),m(" PDF Export ",-1)])],8,X)):u("",!0)])]),o.stats?u("",!0):(n(),w(K,{key:0,"domain-slug":o.domain.slug,title:p(f)("plan.statistics_locked_title"),description:p(f)("plan.statistics_locked_desc")},null,8,["domain-slug","title","description"])),!o.stats&&o.archives.length?(n(),l("div",J,[t("h2",Q,r(p(f)("plan.archive_title")),1),t("p",Y,r(p(f)("plan.archive_desc")),1),t("ul",tt,[(n(!0),l(c,null,x(o.archives,e=>(n(),l("li",{key:e.id,class:"flex items-center justify-between py-3"},[t("span",et,r(e.month_label),1),e.has_file?(n(),l("a",{key:0,href:`/domains/${o.domain.slug}/export/consent-archive/${e.id}`,class:"inline-flex items-center gap-1 rounded-md bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white shadow-sm transition-colors hover:bg-blue-500"},"CSV",8,st)):(n(),l("span",nt,"â"))]))),128))])])):u("",!0),o.stats?(n(),l(c,{key:2},[t("div",lt,[t("nav",at,[(n(),l(c,null,x(L,e=>t("button",{key:e.key,onClick:d=>b.value=e.key,class:h([b.value===e.key?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 py-3 px-1 text-sm font-medium"])},r(e.label),11,ot)),64))])]),b.value==="overview"?(n(),l("div",rt,[t("div",it,[t("div",dt,[s[2]||(s[2]=t("p",{class:"text-sm font-medium text-gray-500"},"Einwilligungen gesamt",-1)),t("p",ct,r(o.stats.total_consents),1)]),t("div",xt,[s[3]||(s[3]=t("p",{class:"text-sm font-medium text-gray-500"},"Opt-in-Rate",-1)),t("p",{class:h(["text-3xl font-bold mt-1",z.value])},r(o.stats.opt_in_rate)+"%",3)]),t("div",ut,[s[4]||(s[4]=t("p",{class:"text-sm font-medium text-gray-500"},"Alle akzeptiert",-1)),t("p",gt,r($.value)+"%",1)]),t("div",ht,[s[5]||(s[5]=t("p",{class:"text-sm font-medium text-gray-500"},"Alle abgelehnt",-1)),t("p",yt,r(D.value)+"%",1)])]),t("div",mt,[t("div",pt,[s[6]||(s[6]=t("div",{class:"px-6 py-4 border-b border-gray-200"},[t("h2",{class:"text-lg font-semibold text-gray-900"},"Verteilung der Entscheidungen")],-1)),o.stats.total_consents===0?(n(),l("div",bt," Noch keine Consent-Daten vorhanden ")):(n(),l("div",ft,[t("div",vt,[(n(),l("svg",_t,[(n(!0),l(c,null,x(B.value,(e,d)=>(n(),l("circle",{key:d,cx:"20",cy:"20",r:"15.9155",fill:"transparent",stroke:e.color,"stroke-width":"5","stroke-dasharray":`${e.percent} ${100-e.percent}`,"stroke-dashoffset":`${-e.offset}`},null,8,wt))),128))])),t("div",kt,[t("span",Ct,r(o.stats.total_consents),1)])]),t("div",jt,[(n(!0),l(c,null,x(k.value,e=>(n(),l("div",{key:e.key,class:"flex items-center gap-2"},[t("span",{class:"w-3 h-3 rounded-full inline-block flex-shrink-0",style:y({backgroundColor:e.color})},null,4),t("span",At,r(e.label),1),t("span",Lt,r(e.count),1)]))),128))])]))]),t("div",Nt,[s[7]||(s[7]=t("div",{class:"px-6 py-4 border-b border-gray-200"},[t("h2",{class:"text-lg font-semibold text-gray-900"},"Akzeptanzrate nach Kategorie")],-1)),t("div",zt,[(n(!0),l(c,null,x(H.value,e=>(n(),l("div",{key:e.key,class:"flex items-center gap-4"},[t("span",$t,r(e.label),1),t("div",Dt,[t("div",{class:h(["h-full rounded-full transition-all duration-500",e.barColor]),style:y({width:e.rate+"%"})},null,6),t("span",{class:h(["absolute inset-0 flex items-center text-xs font-semibold",e.rate>15?"justify-start pl-3 text-white":"justify-start pl-3 text-gray-700"]),style:y(e.rate>15?{}:{left:e.rate+"%"})},r(e.rate)+"% ",7)])]))),128))])])]),t("div",Bt,[s[12]||(s[12]=t("div",{class:"px-6 py-4 border-b border-gray-200"},[t("h2",{class:"text-lg font-semibold text-gray-900"},"Opt-in-Rate Trend (letzte 12 Wochen)")],-1)),!o.stats.weekly_trend||o.stats.weekly_trend.length===0?(n(),l("div",Ht," Noch keine Trend-Daten vorhanden ")):(n(),l("div",Vt,[t("div",Mt,[s[11]||(s[11]=t("div",{class:"absolute left-0 top-0 bottom-6 w-10 flex flex-col justify-between text-xs text-gray-400"},[t("span",null,"100%"),t("span",null,"50%"),t("span",null,"0%")],-1)),t("div",St,[s[8]||(s[8]=t("div",{class:"absolute top-0 left-0 right-0 border-t border-gray-100"},null,-1)),s[9]||(s[9]=t("div",{class:"absolute top-1/2 left-0 right-0 border-t border-gray-100"},null,-1)),s[10]||(s[10]=t("div",{class:"absolute bottom-6 left-0 right-0 border-t border-gray-200"},null,-1)),t("div",Pt,[(n(),l("svg",{class:"w-full h-full",viewBox:`0 0 ${o.stats.weekly_trend.length*60} 170`,preserveAspectRatio:"none"},[t("polygon",{points:M.value,fill:"rgba(37, 99, 235, 0.1)"},null,8,Ft),t("polyline",{points:V.value,fill:"none",stroke:"#2563eb","stroke-width":"2.5","stroke-linejoin":"round","vector-effect":"non-scaling-stroke"},null,8,Ot)],8,Tt)),(n(!0),l(c,null,x(S.value,(e,d)=>(n(),l("span",{key:d,class:"absolute w-3 h-3 rounded-full bg-blue-600 border-2 border-white pointer-events-none -translate-x-1/2 -translate-y-1/2",style:y({left:e.xPercent+"%",top:e.yPercent+"%"})},null,4))),128))]),t("div",Et,[(n(!0),l(c,null,x(o.stats.weekly_trend,e=>(n(),l("span",{key:e.week,class:"text-[10px] text-gray-500 flex-1 text-center"},r(e.week),1))),128))])])])]))]),t("div",Rt,[s[14]||(s[14]=t("div",{class:"px-6 py-4 border-b border-gray-200"},[t("h2",{class:"text-lg font-semibold text-gray-900"},"Consent-Verlauf (letzte 30 Tage)")],-1)),o.stats.daily_consents.length===0?(n(),l("div",It," Noch keine Consent-Daten vorhanden ")):(n(),l("div",Wt,[t("div",Kt,[(n(!0),l(c,null,x(o.stats.daily_consents,e=>(n(),l("div",{key:e.date,class:"flex-1 flex flex-col justify-end items-center group relative",style:{"min-width":"0"}},[t("div",Ut,r(C(e.date))+": "+r(e.total)+" gesamt ",1),t("div",{class:"w-full flex flex-col justify-end",style:y({height:T(e.total)+"%"})},[Number(e.accepted)>0?(n(),l("div",{key:0,class:"bg-green-500 w-full",style:y({height:_(e.accepted,e.total)+"%"})},null,4)):u("",!0),Number(e.custom)>
10?(n(),l("div",{key:1,class:"bg-blue-500 w-full",style:y({height:_(e.custom,e.total)+"%"})},null,4)):u("",!0),Number(e.rejected)>0?(n(),l("div",{key:2,class:"bg-red-500 w-full",style:y({height:_(e.rejected,e.total)+"%"})},null,4)):u("",!0)],4)]))),128))]),t("div",Zt,[(n(!0),l(c,null,x(o.stats.daily_consents,(e,d)=>(n(),l("div",{key:"label-"+e.date,class:"flex-1 text-center",style:{"min-width":"0"}},[d%5===0?(n(),l("span",qt,r(C(e.date)),1)):u("",!0)]))),128))]),s[13]||(s[13]=t("div",{class:"flex items-center gap-4 mt-4 text-xs text-gray-600"},[t("span",{class:"flex items-center gap-1.5"},[t("span",{class:"w-3 h-3 rounded bg-green-500 inline-block flex-shrink-0"}),m(" Akzeptiert")]),t("span",{class:"flex items-center gap-1.5"},[t("span",{class:"w-3 h-3 rounded bg-blue-500 inline-block flex-shrink-0"}),m(" Benutzerdefiniert")]),t("span",{class:"flex items-center gap-1.5"},[t("span",{class:"w-3 h-3 rounded bg-red-500 inline-block flex-shrink-0"}),m(" Abgelehnt")])],-1))]))])])):u("",!0),b.value==="log"?(n(),l("div",Gt,[t("div",Xt,[t("div",Jt,[s[15]||(s[15]=t("h2",{class:"text-lg font-semibold text-gray-900"},"Consent-Log",-1)),t("span",Qt,r(o.consentLogs.total)+" Einträge",1)]),o.consentLogs.data.length===0?(n(),l("div",Yt," Noch keine Consent-Einträge vorhanden. ")):(n(),l("div",te,[t("table",ee,[s[16]||(s[16]=t("thead",{class:"bg-gray-50"},[t("tr",null,[t("th",{class:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"Datum/Uhrzeit"),t("th",{class:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"Visitor-ID"),t("th",{class:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"IP-Hash"),t("th",{class:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"Aktion"),t("th",{class:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"Kategorien"),t("th",{class:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"Land"),t("th",{class:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"UA-Hash")])],-1)),t("tbody",se,[(n(!0),l(c,null,x(o.consentLogs.data,e=>(n(),l("tr",{key:e.id,class:"hover:bg-gray-50"},[t("td",ne,r(e.created_at),1),t("td",le,r(e.visitor_id),1),t("td",ae,r(e.ip_hash),1),t("td",oe,[t("span",{class:h([F(e.action),"inline-flex rounded-full px-2.5 py-0.5 text-xs font-medium"])},r(O(e.action)),3)]),t("td",re,[t("div",ie,[(n(),l(c,null,x(N,d=>t("span",{key:d.key,class:h([e.consent_given&&e.consent_given[d.key]?"bg-green-100 text-green-700":"bg-gray-100 text-gray-400","inline-flex items-center gap-0.5 rounded px-1.5 py-0.5 text-[10px] font-medium"])},[m(r(d.short)+" ",1),e.consent_given&&e.consent_given[d.key]?(n(),l("span",de,"â")):(n(),l("span",ce,"â"))],2)),64))])]),t("td",xe,r(e.country),1),t("td",ue,r(e.user_agent_hash),1)]))),128))])])])),o.consentLogs.last_page>1?(n(),l("div",ge,[t("p",he," Zeige "+r(o.consentLogs.from)+"-"+r(o.consentLogs.to)+" von "+r(o.consentLogs.total),1),t("div",ye,[(n(!0),l(c,null,x(o.consentLogs.links,e=>(n(),w(p(A),{key:e.label,href:e.url||"",class:h([e.active?"bg-blue-600 text-white":e.url?"bg-white text-gray-700 hover:bg-gray-50":"bg-gray-100 text-gray-400 cursor-not-allowed","px-3 py-1.5 text-sm rounded border border-gray-300"]),"preserve-state":"","preserve-scroll":"",innerHTML:e.label},null,8,["href","class","innerHTML"]))),128))])])):u("",!0)])])):u("",!0),b.value==="archive"?(n(),l("div",me,[t("div",pe,[s[20]||(s[20]=t("div",{class:"flex items-center justify-between mb-6"},[t("div",null,[t("h3",{class:"text-lg font-semibold text-gray-900"},"Monatliche Archivierung"),t("p",{class:"text-sm text-gray-500 mt-1"},"Consent-Logs werden monatlich als CSV-Datei archiviert. Detail-Logs älter als 24 Monate werden automatisch gelöscht.")])],-1)),o.archives.length===0?(n(),l("div",be,[...s[17]||(s[17]=[t("svg",{class:"mx-auto h-12 w-12 text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})],-1),t("p",{class:"mt-3 text-sm text-gray-500"},"Noch keine Archive vorhanden.",-1),t("p",{class:"text-xs text-gray-400 mt-1"},"Archive werden automatisch am 2. jedes Monats erstellt.",-1)])])):(n(),l("table",fe,[s[19]||(s[19]=t("thead",null,[t("tr",{class:"border-b border-gray-200"},[t("th",{class:"text-left text-xs font-semibold text-gray-500 uppercase tracking-wider py-3 pr-4"},"Monat"),t("th",{class:"text-right text-xs font-semibold text-gray-500 uppercase tracking-wider py-3 px-4"},"Gesamt"),t("th",{class:"text-right text-xs font-semibold text-gray-500 uppercase tracking-wider py-3 px-4 hidden sm:table-cell"},"Akzeptiert"),t("th",{class:"text-right text-xs font-semibold text-gray-500 uppercase tracking-wider py-3 px-4 hidden sm:table-cell"},"Abgelehnt"),t("th",{class:"text-right text-xs font-semibold text-gray-500 uppercase tracking-wider py-3 px-4"},"Opt-in"),t("th",{class:"text-right text-xs font-semibold text-gray-500 uppercase tracking-wider py-3 pl-4"},"Download")])],-1)),t("tbody",ve,[(n(!0),l(c,null,x(o.archives,e=>(n(),l("tr",{key:e.id,class:"hover:bg-gray-50"},[t("td",_e,r(e.month_label),1),t("td",we,r(e.total_consents.toLocaleStr
1ing("de-CH")),1),t("td",ke,r(e.accept_all_count.toLocaleString("de-CH")),1),t("td",Ce,r(e.reject_all_count.toLocaleString("de-CH")),1),t("td",je,[t("span",{class:h(["inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",e.opt_in_rate>=50?"bg-green-50 text-green-700":"bg-amber-50 text-amber-700"])},r(e.opt_in_rate)+"% ",3)]),t("td",Ae,[e.has_file?(n(),l("a",{key:0,href:`/domains/${o.domain.slug}/export/consent-archive/${e.id}`,class:"inline-flex items-center gap-1 rounded-md bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white shadow-sm hover:bg-blue-500 transition-colors"},[...s[18]||(s[18]=[t("svg",{class:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1),m(" CSV ",-1)])],8,Le)):(n(),l("span",Ne,"â"))])]))),128))])]))])])):u("",!0)],64)):u("",!0)]),_:1}))}};export{Pe 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.