1import{g as B,a4 as I,a8 as S,j as k,ac as d,a5 as r,a7 as z}from"./index-L8wWOE4G.js";import{d as L,W as M,I as w,r as v,o as j,w as F,K as H,c as e,j as s,P as t,e as E,F as p,k as l,a2 as C,X as c,E as n,m as f,z as h,y as b}from"./vendor-BdLpyfCE.js";import{_ as y}from"./LabelValueRow.vue_vue_type_script_setup_true_lang-D9XnZfne.js";import"./utils-BKbActuc.js";import"./charts-YSn5Nw6l.js";import"./graphs-s2ssg7ge.js";const O={class:"sm:hidden flex flex-col"},R={class:"text-[16px] leading-[20px] font-semibold flex items-center gap-1 mb-2"},U={key:0,class:"relative group cursor-pointer"},q=l("i",{class:"text-[14px] text-orange fa-solid fa-triangle-exclamation"},null,-1),K={class:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 w-max px-2 py-1 rounded bg-gray-800 text-white text-xs opacity-0 group-hover:opacity-100 pointer-events-none transition-opacity z-10 whitespace-nowrap"},P={key:1,class:"text-[#8797A6]"},W={key:1,class:"inline-block w-[32px] h-[1px] bg-[#E2E7EC] align-middle"},X={key:1,class:"inline-block w-[32px] h-[1px] bg-[#E2E7EC] align-middle"},G={class:"hidden sm:block w-full overflow-x-auto"},J={class:"w-full overflow-x-auto [&_th]:px-[12px] [&_td]:px-[12px] [&_th:first-child]:pl-0 [&_td:first-child]:pl-0"},Q={class:"border-b-[1px] border-[#E2E7EC]"},Y={class:"text-[#8797A6] text-[13px] font-medium leading-[14px] text-left py-[12px]"},Z={class:"whitespace-nowrap text-[#8797A6] text-[13px] font-medium leading-[14px] py-[12px] text-left"},tt={class:"whitespace-nowrap text-[#8797A6] text-[13px] font-medium leading-[14px] py-[12px] text-left"},et={class:"whitespace-nowrap text-[#8797A6] text-[13px] font-medium leading-[14px] py-[12px] text-left"},st={class:"whitespace-nowrap py-[12px] text-[14px] leading-[24px] text-left font-medium align-middle"},at={key:0,class:"relative group cursor-pointer ml-1 align-middle"},ot=l("i",{class:"text-[14px] text-orange fa-solid fa-triangle-exclamation"},null,-1),lt={class:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 w-max px-2 py-1 rounded bg-gray-800 text-white text-xs opacity-0 group-hover:opacity-100 pointer-events-none transition-opacity z-10 whitespace-nowrap"},nt={class:"py-[12px] text-[14px] leading-[24px] text-left font-normal"},dt={key:0},it={key:1,class:"text-[#8797A6]"},rt={class:"py-[12px] text-[14px] leading-[24px] text-left font-normal"},pt={key:0},ct={key:1,class:"inline-block w-[32px] h-[1px] bg-[#E2E7EC] align-middle"},xt={class:"py-[12px] text-[14px] leading-[24px] text-left font-normal"},ut={key:0},_t={key:1,class:"inline-block w-[32px] h-[1px] bg-[#E2E7EC] align-middle"},$=5,vt=L({__name:"HistoryTableContent",props:{locked:{type:Boolean,required:!1}},setup(mt){const N=M(),V=B(),D=I(),{companyData:x,companyDataStats:ft}=w(D),{demoHistoryTable:T}=w(V);let i=v([]);j(()=>{g()}),F(()=>x.value.tax_debt,(o,u)=>{o!=u&&g()},{deep:!0});function g(){var o;N.name=="demo"?i.value=[...T.value]:i.value=[...((o=x==null?void 0:x.value)==null?void 0:o.tax_debt)||[]]}const _=v(!1),A=H(()=>_.value?i.value:i.value.slice(0,$));return(o,u)=>(e(),s("div",null,[t(i).length===0?(e(),E(S,{key:0,message:o.$t("No tax debts")},null,8,["message"])):(e(),s(p,{key:1},[l("div",O,[(e(!0),s(p,null,C(A.value,(a,m)=>(e(),s("div",{key:m,class:"text-darkgrey border-b border-[#E2E7EC] last:border-b-0 py-4 flex flex-col gap-1.5"},[l("h3",R,[c(n(t(k)(a.date))+" ",1),a.declaration_not_submitted?(e(),s("span",U,[q,l("div",K,n(o.$t("Declaration not submitted")),1)])):f("",!0)]),h(y,{label:o.$t("Tax debt")},{default:b(()=>[t(d)(a.total)>0?(e(),s(p,{key:0},[c(n(t(r)(t(d)(a.total),2)),1)],64)):(e(),s("span",P,n(o.$t("No tax debt")),1))]),_:2},1032,["label"]),h(y,{label:o.$t("Deferred")},{default:b(()=>[t(d)(a.total_scheduled)>0?(e(),s(p,{key:0},[c(n(t(r)(t(d)(a.total_scheduled),2)),1)],64)):(e(),s("span",W))]),_:2},1032,["label"]),h(y,{label:o.$t("Contested")},{default:b(()=>[t(d)(a.total_contested)>0?(e(),s(p,{key:0},[c(n(t(r)(t(d)(a.total_contested),2)),1)],64)):(e(),s("span",X))]),_:2},1032,["label"])]))),128)),t(i).length>$?(e(),E(z,{key:0,modelValue:_.value,"onUpdate:modelValue":u[0]||(u[0]=a=>
1_.value=a),class:"self-start mt-4"},null,8,["modelValue"])):f("",!0)]),l("div",G,[l("table",J,[l("tr",Q,[l("th",Y,n(o.$t("Date")),1),l("th",Z,n(o.$t("Tax debt")),1),l("th",tt,n(o.$t("Deferred")),1),l("th",et,n(o.$t("Contested")),1)]),(e(!0),s(p,null,C(t(i),(a,m)=>(e(),s("tr",{class:"text-darkgrey border-b-[1px] border-[#E2E7EC]",key:m},[l("td",st,[c(n(t(k)(a.date))+" ",1),a.declaration_not_submitted?(e(),s("span",at,[ot,l("div",lt,n(o.$t("Declaration not submitted")),1)])):f("",!0)]),l("td",nt,[t(d)(a.total)>0?(e(),s("span",dt,n(t(r)(t(d)(a.total),2)),1)):(e(),s("span",it,n(o.$t("No tax debt")),1))]),l("td",rt,[t(d)(a.total_scheduled)>0?(e(),s("span",pt,n(t(r)(t(d)(a.total_scheduled),2)),1)):(e(),s("span",ct))]),l("td",xt,[t(d)(a.total_contested)>0?(e(),s("span",ut,n(t(r)(t(d)(a.total_contested),2)),1)):(e(),s("span",_t))])]))),128))])])],64))]))}});export{vt 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.