PageSourceSearch

https://7maravilhas.pt/build/assets/application-list-BxGaF1db.js

js 7maravilhas.pt collected 2026-09-24 23:50:44 UTC 4,637 bytes, 6 lines download raw bytes

1import{r as l,j as a,q as j,$ as b,Y as o}from"./app-Ce8cAmW-.js";import{B as p}from"./badge-BdOe8ugd.js";import{B as c}from"./button-Ci02fqBP.js";import{C as N,b as g,c as w,a as y}from"./card-BX0hYp-V.js";import{c as v,a as i}from"./primary-button-hvRD1VpQ.js";import{M as C,F as T}from"./main-layout-C-X_DRHS.js";import{C as R}from"./circle-plus-BP-YT_xo.js";import{S as _}from"./settings-uuhWUbkP.js";/* empty css            */import"./index-skiHflQy.js";import"./index-BLDRET_f.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const B=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],H=v("SquarePen",B),h=l.forwardRef(({className:e,...s},t)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:t,className:i("w-full caption-bottom text-sm",e),...s})}));h.displayName="Table";const u=l.forwardRef(({className:e,...s},t)=>a.jsx("thead",{ref:t,className:i("[&_tr]:border-b",e),...s}));u.displayName="TableHeader";const f=l.forwardRef(({className:e,...s},t)=>a.jsx("tbody",{ref:t,className:i("[&_tr:last-child]:border-0",e),...s}));f.displayName="TableBody";const S=l.forwardRef(({className:e,...s},t)=>a.jsx("tfoot",{ref:t,className:i("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...s}));S.displayName="TableFooter";const m=l.forwardRef(({className:e,...s},t)=>a.jsx("tr",{ref:t,className:i("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...s}));m.displayName="TableRow";const d=l.forwardRef(({className:e,...s},t)=>a.jsx("th",{ref:t,className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...s}));d.displayName="TableHead";const n=l.forwardRef(({className:e,...s},t)=>a.jsx("td",{ref:t,className:i("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...s}));n.displayName="TableCell";const F=l.forwardRef(({className:e,...s},t)=>a.jsx("caption",{ref:t,className:i("mt-4 text-sm text-muted-foreground",e),...s}));F.displayName="TableCaption";function U({applications:e}){const{enable_applications_phase:s}=j().props,t=r=>{const x={draft:{variant:"secondary",label:"Rascunho"},submitted:{variant:"default",label:"Submetida"},paid:{variant:"default",label:"Paga"},completed:{variant:"default",label:"Completa"},cancelled:{variant:"destructive",label:"Cancelada"}}[r]||{variant:"secondary",label:r};return a.jsx(p,{variant:x.variant,children:x.label})};return a.jsxs(C,{children:[a.jsx(b,{title:"Minhas Candidaturas"}),a.jsxs("div",{className:"mx-auto max-w-7xl space-y-6 px-4 py-12 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h1",{className:"text-foreground text-3xl font-bold tracking-tight",children:"Minhas Candidaturas"}),s&&a.jsx(c,{asChild:!0,children:a.jsxs(o,{href:route("candidaturas.index",{new:1}),children:[a.jsx(R,{className:"mr-2 h-4 w-4"}),"Nova Candidatura"]})})]}),a.jsxs(N,{children:[a.jsx(g,{children:a.jsx(w,{children:"Histórico de Candidaturas"})}),a.jsx(y,{children:a.jsxs(h,{children:[a.jsx(u,{children:a.jsxs(m,{children:[a.jsx(d,{children:"Data"}),a.jsx(d,{children:"Responsável"}),a.jsx(d,{children:"Estado"}),a.jsx(d,{className:"text-right",children:"Total"}),a.jsx(d,{className:"text-right",children:"Ações"})]})}),a.jsx(f,{children:e.map(r=>a.jsxs(m,{children:[a.jsx(n,{children:new Date(r.created_at).toLocaleDateString()}),a.jsx(n,{children:r.responsible_name}),a.jsx(n,{children:t(r.status)}),a.jsx(n,{className:"text-right",children:new Intl.NumberFormat("pt-PT",{style:"currency",currency:"EUR"}).format(r.total_amount)}),a.jsx(n,{className:"text-right",children:a.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[r.can_edit&&a.jsx(c,{variant:"ghost",size:"sm",asChild:!0,children:a.jsxs(o,{href:route("candidaturas.index",{edit:r.id}),children:[a.jsx(H,{className:"mr-1 h-4 w-4"}),"Editar"]})}),r.status!=="draft"&&a.jsx(c,{variant:"secondary",size:"sm",asChild:!0,children:a.jsxs(o,{href:route("candidaturas.show-summary",{application:r.id}),children:[a.jsx(T,{className:"mr-1 h-4 w-4"}),"Resumo"]})}),r.status!=="draft"&&a.jsx(c,{variant:"outline",size:"sm",asChild:!0,children:a.jsxs(o,{href:route("candidaturas.show-billing",{application:r.id}),children:[a.jsx(_,{className:"mr-1 h-4 w-4"}),"Faturação"]})})]})})]},r.id))})]})})]})]})]})}export{U 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.