import{r as y,f,u as S,s as b,g as k,o as a,c as r,a as e,h as c,e as t,t as s,F as x,i as L,n as U,b as H,_ as v}from"./entry.7c5c50ee.js";import{_ as M}from"./counters.2aae3a5a.js";import{_ as q}from"./Loader.aab866bc.js";const w={class:"simple-section pt-10 pb-32"},A={class:"min-w-full divide-y divide-slate-300 border-b"},T={class:""},C={scope:"col",class:"py-3.5 pl-4 pr-3 text-center text-sm sm:pl-6"},N={scope:"col",class:"hidden px-3 py-3.5 text-center text-sm lg:table-cell"},$={scope:"col",class:"hidden px-3 py-3.5 text-center text-sm sm:table-cell"},B={scope:"col",class:"px-3 py-3.5 text-center text-sm"},D={class:"divide-y divide-slate-200 text-center"},F={class:"max-w-0 py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none sm:pl-6"},R=["innerHTML"],V={class:"font-normal lg:hidden"},E={class:"sr-only"},z={key:0,class:"mt-1 truncate text-gray-500 text-xs sm:text-sm"},G={key:1,class:"mt-1 truncate text-gray-500 text-xs sm:text-sm"},I={class:"sr-only sm:hidden text-xs sm:text-sm"},P={class:"mt-1 truncate text-gray-500 sm:hidden text-xs sm:text-sm"},j={key:0,class:"hidden px-3 py-4 text-sm text-gray-500 lg:table-cell"},J={key:1,class:"hidden px-3 py-4 text-sm text-gray-500 lg:table-cell"},K={class:"hidden px-3 py-4 text-sm text-gray-500 sm:table-cell"},O={key:2,class:"px-3 py-4 text-sm text-gray-500"},Q={key:3,class:"px-3 py-4 text-sm text-gray-500"},W={key:0},nt={__name:"reporting",setup(X){const i=y(!0),u=f(),_=S(),{currentTranslation:o,currentLanguage:l,reportingCounters:Y,UAHtoUSDrate:d}=b(_);return k(async()=>{await _.checkAndfetchData(),i.value=!1,u.query.locale==="en"&&(l.value="EN")}),(Z,tt)=>{const p=v,m=M,h=q;return a(),r(x,null,[e("div",{class:U({hidden:t(i)})},[c(p,{title:t(o).reporting.title,lead:t(o).reporting.lead,black:!0},null,8,["title","lead"]),c(m),c(p,{title:t(o).reporting.listTitle,lead:t(o).reporting.listLead,black:!1},null,8,["title","lead"]),e("div",w,[e("table",A,[e("thead",null,[e("tr",T,[e("th",C,s(t(o).reporting.listHeaders[0]),1),e("th",N,s(t(o).reporting.listHeaders[1]),1),e("th",$,s(t(o).reporting.listHeaders[2]),1),e("th",B,s(t(o).reporting.listHeaders[3]),1)])]),e("tbody",D,[(a(!0),r(x,null,L(t(o).reportingItems,(n,g)=>(a(),r("tr",{key:g},[e("td",F,[e("span",{innerHTML:n.title},null,8,R),e("dl",V,[e("dt",E,s(t(o).reporting.listHeaders[0]),1),t(l)==="UA"?(a(),r("dd",z,s(Math.round(n.price).toLocaleString("en-US"))+" ₴ ",1)):(a(),r("dd",G," $ "+s(Math.round(n.price/t(d)).toLocaleString("en-US")),1)),e("dt",I,s(t(o).reporting.listHeaders[1]),1),e("dd",P,"* "+s(n.quantity),1)])]),t(l)==="UA"?(a(),r("td",j,s(Math.round(n.price).toLocaleString("en-US"))+" ₴ ",1)):(a(),r("td",J," $ "+s((n.price/t(d)).toFixed(1).toLocaleString("en-US")),1)),e("td",K,s(n.quantity),1),t(l)==="UA"?(a(),r("td",O,s(Math.round(n.price*n.quantity).toLocaleString("en-US"))+" ₴ ",1)):(a(),r("td",Q," $ "+s(Math.round(n.price/t(d)*n.quantity).toLocaleString("en-US")),1))]))),128))])])])],2),t(i)?(a(),r("div",W,[c(h)])):H("",!0)],64)}}};export{nt as default};
