1import{b as N,g as A,a4 as S,ac as r,a8 as B,ad as x,a5 as i}from"./index-CsoSSYpI.js";import{d as V,W as F,I as w,r as j,o as z,w as I,c as t,j as a,P as e,E as d,e as M,F as c,k as p,a2 as E,u as b,z as m,y,X as h}from"./vendor-BdLpyfCE.js";import{_ as g}from"./LabelValueRow.vue_vue_type_script_setup_true_lang-D9XnZfne.js";import"./utils-BKbActuc.js";import"./charts-YSn5Nw6l.js";import"./graphs-s2ssg7ge.js";const R={key:0,class:"border-t border-b border-[#E2E7EC] py-[12px] text-[14px] leading-[24px] text-[#8797A6] flex items-center justify-start"},q={class:"sm:hidden flex flex-col"},L={class:"hidden sm:block w-full overflow-x-auto"},P={class:"w-full overflow-x-auto [&_th]:px-[12px] [&_td]:px-[12px] [&_th:first-child]:pl-0 [&_td:first-child]:pl-0"},W={class:"border-b-[1px] border-[#E2E7EC]"},X={class:"whitespace-nowrap text-[#8797A6] text-[13px] font-medium leading-[14px] text-left py-[12px]"},G={class:"whitespace-nowrap text-[#8797A6] text-[13px] font-medium leading-[14px] py-[12px] text-left"},H={class:"whitespace-nowrap text-[#8797A6] text-[13px] font-medium leading-[14px] py-[12px] text-left"},J={class:"whitespace-nowrap text-[#8797A6] text-[13px] font-medium leading-[14px] py-[12px] text-left"},K={key:0},O={key:1,class:"inline-block w-[32px] h-[1px] bg-[#E2E7EC] align-middle"},Q={key:0},U={key:1,class:"inline-block w-[32px] h-[1px] bg-[#E2E7EC] align-middle"},Y={key:0},Z={key:1,class:"inline-block w-[32px] h-[1px] bg-[#E2E7EC] align-middle"},de=V({__name:"TaxDebtsContent",props:{locked:{type:Boolean,required:!1}},setup(ee){N();const v=F(),C=A(),$=S(),{companyData:u,companyDataStats:te}=w($),{demoTaxDebts:D}=w(C);let o=j([]);z(()=>{k()}),I(()=>u.value.tax_debt_current,(n,f)=>{n!=f&&k()},{deep:!0});function k(){v.name=="demo"?o.value=[...D.value]:o.value=[...T()]}const T=()=>{var s,l;const n=(l=(s=u==null?void 0:u.value)==null?void 0:s.tax_debt_current)==null?void 0:l.taxdebt_detailed;let f=[];return n&&n.length>0&&n.forEach(_=>{f.push({label:_.label,total:r(_.debt),scheduled:r(_.scheduled),contested:r(_.appealed)})}),f};return(n,f)=>(t(),a("div",null,[e(u)&&e(u).tax_debt_current&&e(u).tax_debt_current.error?(t(),a("div",R,d(n.$t("Tax debt data is currently unavailable")),1)):e(o).length===0?(t(),M(B,{key:1,message:n.$t("No tax debts")},null,8,["message"])):(t(),a(c,{key:2},[p("div",q,[(t(!0),a(c,null,E(e(o),(s,l)=>(t(),a("div",{key:l,class:"text-darkgrey border-b border-[#E2E7EC] py-4 flex flex-col gap-1.5"},[p("h3",{class:b(["text-[16px] leading-[20px] mb-2",l===e(o).length-1?"font-bold":"font-semibold"])},d(s.label),3),m(g,{label:n.$t("Tax debt"),"value-class":l===e(o).length-1?"font-bold":""},{default:y(()=>[e(x)(e(r)(s.total))?(t(),a(c,{key:0},[h(d(e(i)(e(r)(s.total),2)),1)],64)):(t(),a(c,{key:1},[h("â")],64))]),_:2},1032,["label","value-class"]),m(g,{label:n.$t("Deferred"),"value-class":l===e(o).length-1?"font-bold":""},{default:y(()=>[e(x)(e(r)(s.scheduled))?(t(),a(c,{key:0},[h(d(e(i)(e(r)(s.scheduled),2)),1)],64)):(t(),a(c,{key:1},[h("â")],64))]),_:2},1032,["label","value-class"]),m(g,{label:n.$t("Contested"),"value-class":l===e(o).length-1?"font-bold":""},{default:y(()=>[e(x)(e(r)(s.contested))?(t(),a(c,{key:0},[h(d(e(i)(e(r)(s.contested),2)),1)],64)):(t(),a(c,{key:1},[h("â")],64))]),_:2},1032,["label","value-class"])]))),128))]),p("div",L,[p("table",P,[p("tr",W,[p("th",X,d(n.$t("Claim type")),1),p("th",G,d(n.$t("Tax debt")),1),p("th",H,d(n.$t("Deferred")),1),p("th",J,d(n.$t("Contested")),1)]),(t(!0),a(c,null,E(e(o),(s,l)=>(t(),a("tr",{class:"text-darkgrey border-b-[1px] border-[#E2E7EC]",key:l},[p("td",{class:b({"py-[12px] text-[14px] leading-[24px] text-left":!0,"font-bold whitespace-nowrap":l===e(o).length-1,"font-medium":l!==e(o).length-1})},d(s.label),3),p("td",{class:b({"whitespace-nowrap py-[12px] text-[14px] leading-[24px] text-left":!0,"font-bold":l===e(o).length-1,"font-normal":l!==e(o).length-1})},[e(x)(e(r)(s.total))?(t(),a("span",K,d(e(i)(e(r)(s.total),2)),1)):(t(),a("span",O))],2),p("td",{class:b({"whitespace-nowrap py-[12px] text-[14px] leading-[24px] text-left":!0,"font-bold":l===e(o).length-1,"font-normal":l!==e(o).length-1})},[e(x)(e(r)(s.scheduled))?(t(),a("span",Q,d(e(i)(e(r)(s.scheduled),2)),1)):(t(),a("span",U))],2),p("td",{class:b({"whitespace-nowrap py-[12px] text-[14px] leading-[24px] text-left":!0,"font-bold":l===e(o).length-1,"font-normal":l!==e(o).length-1})},[e(x)(e(r)(s.contested))?(t(),a("span",Y,d(e(i)(e(r)(s.contested),2)),1)):(t(),a("span",Z))],2)]))),128))])])],64))]))}});
1export{de 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.