1 line
2.3 KiB
JavaScript
1 line
2.3 KiB
JavaScript
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./dist-BHykSMWQ.js";import{n,t as r}from"./jsx-runtime-BpzPEenQ.js";import{t as i}from"./compiler-runtime-sKsOXjDo.js";import{t as a}from"./shared-BGAnmLIF.js";var o=i(),s=e(n(),1),c=r(),l={draft:`Rascunho`,pending:`Submetida — legado`,submitted:`Submetida`,returned:`Devolvida`,rejected:`Rejeitada`,published:`Publicada`,suspended:`Suspensa`,archived:`Arquivada`,withdrawn:`Retirada`,clarification:`Em esclarecimento`,shortlisted:`Lista curta`,negotiation:`Em negociação`,agreement_recorded:`Acordo registado`,agreed:`Confirmado pelas partes`,execution:`Em execução`,closed:`Concluída`,cancelled:`Cancelada`,progress:`Em curso`,completed:`Concluído`,met:`Comprovadamente cumprido`,unmet:`Comprovadamente incumprido`,unknown:`Informação insuficiente`},u=`w-full rounded border bg-background p-2`,d=`inline-flex rounded bg-emerald-800 px-4 py-2 text-white disabled:opacity-50`;function f(e){let n=(0,o.c)(4),{title:r,children:i}=e,s;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,c.jsxs)(`nav`,{className:`mb-6 flex flex-wrap gap-5 underline`,children:[(0,c.jsx)(t,{href:`/parcerias`,children:`Catálogo`}),(0,c.jsx)(t,{href:`/parcerias/painel`,children:`O meu painel`}),(0,c.jsx)(t,{href:`/parcerias/criar`,children:`Preparar parceria`}),(0,c.jsx)(t,{href:`/como-investir`,children:`Como investir`}),(0,c.jsx)(t,{href:`/simulador-fiscal`,children:`Simulador e ficha de projeto`})]}),n[0]=s):s=n[0];let l;return n[1]!==i||n[2]!==r?(l=(0,c.jsxs)(a,{title:r,mainLandmark:!1,children:[s,i]}),n[1]=i,n[2]=r,n[3]=l):l=n[3],l}function p(e){let t=(0,o.c)(2),{errors:n}=e,r;return t[0]===n?r=t[1]:(r=(0,c.jsx)(c.Fragment,{children:Object.entries(n).map(m)}),t[0]=n,t[1]=r),r}function m(e){let[t,n]=e;return(0,c.jsx)(`p`,{role:`alert`,className:`text-red-700`,children:n},t)}function h(e){let t=(0,o.c)(9),{label:n,children:r}=e,i=(0,s.useId)(),a;t[0]!==i||t[1]!==n?(a=(0,c.jsx)(`span`,{id:i,className:`font-medium`,children:n}),t[0]=i,t[1]=n,t[2]=a):a=t[2];let l;t[3]!==r||t[4]!==i?(l=(0,s.isValidElement)(r)?(0,s.cloneElement)(r,{"aria-labelledby":i}):r,t[3]=r,t[4]=i,t[5]=l):l=t[5];let u;return t[6]!==a||t[7]!==l?(u=(0,c.jsxs)(`label`,{className:`block space-y-2`,children:[a,l]}),t[6]=a,t[7]=l,t[8]=u):u=t[8],u}export{p as Errors,h as Field,f as Frame,d as button,u as control,l as labels}; |