PageSourceSearch

https://crm.tedxconstanta.ro/assets/ContractsPortalPage-DpMWkgf6.js

js tedxconstanta.ro collected 2026-10-05 01:54:05 UTC 2,941 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-query-Bdf_E1Dh.js";import{P as u,a as o}from"./PortalListPage-BPu1Bp9q.js";import{u as p}from"./usePortalResource-DEBiyXC7.js";import{ad as m,$ as i}from"./index-D14oYjMA.js";import"./vendor-router-BF4rHHgO.js";import{u as y}from"./publicPdfUrl-DsXMeHdE.js";import{u as f}from"./vendor-i18n-CIpi6y-q.js";import{c as g,an as b}from"./vendor-icons-9P8EiTGk.js";import"./A73EmptyState-XYHyI-nF.js";import"./A73Skeleton-DXOl4cHT.js";import"./A73Banner-Cdo7Z7vO.js";import"./vendor-tamagui-CvWoaspE.js";function x(){return p("/api/v1/portal/contracts",{mockFallback:[]})}const l=a=>{if(!a||a==="0000-00-00"||a==="0000-00-00 00:00:00")return"—";const r=new Date(a);return isNaN(r.getTime())?"—":r.toLocaleDateString("ro-RO",{day:"2-digit",month:"2-digit",year:"numeric"})},h=(a,r)=>`${Number(a).toLocaleString("ro-RO",{minimumFractionDigits:2,maximumFractionDigits:2})} ${r}`;function $(){const{t:a}=f(),{data:r,loading:c,error:s}=x(),{c:n}=m(),d=[{key:"subject",i18nKey:"portal.contract.col.subject",fallback:"Subject",render:t=>e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:600},children:t.subject}),t.contract_type_name&&e.jsx("div",{style:{fontSize:"calc(12px * var(--theme-font-scale, 1))",marginTop:2,opacity:.7},children:t.contract_type_name})]})},{key:"value",i18nKey:"portal.contract.col.value",fallback:"Value",align:"right",render:t=>h(t.contract_value,t.currency_symbol)},{key:"datestart",i18nKey:"portal.contract.col.datestart",fallback:"Starts",render:t=>l(t.datestart)},{key:"dateend",i18nKey:"portal.contract.col.dateend",fallback:"Ends",render:t=>l(t.dateend)},{key:"signed",i18nKey:"portal.contract.col.signed",fallback:"Signed",render:t=>t.signed===1?e.jsx(o,{tone:"success",label:a("portal.contract.signed.yes","Signed")}):e.jsx(o,{tone:"warning",label:a("portal.contract.signed.no","Pending")})},{key:"actions",label:"",width:80,align:"right",render:t=>e.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:t.hash&&e.jsxs(e.Fragment,{children:[e.jsx(i,{onClick:()=>window.open(`/public/contract/${t.id}/${t.hash}`,"_blank"),title:a("portal_vizualizeaza",{defaultValue:"Vizualizează"}),"aria-label":a("portal_vizualizeaza",{defaultValue:"Vizualizează"}),style:{padding:"4px 8px"},children:e.jsx(g,{size:16,color:n.textMuted})}),e.jsx(i,{onClick:()=>window.open(y("contracts",t.id,t.hash),"_blank"),title:a("portal_descarca_pdf",{defaultValue:"Descarcă PDF"}),"aria-label":a("portal_descarca_pdf",{defaultValue:"Descarcă PDF"}),style:{padding:"4px 8px"},children:e.jsx(b,{size:16,color:n.textMuted})})]})})}];return e.jsx(u,{titleI18nKey:"portal.contracts.title",titleFallback:"Contracts",subtitleI18
1nKey:"portal.contracts.subtitle",subtitleFallback:"Active and historical contracts with your company.",rows:r||[],loading:c,error:s,columns:d,rowKey:t=>t.id,emptyI18nKey:"portal.contracts.empty",emptyFallback:"No contracts signed yet."})}export{$ 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.