PageSourceSearch

https://craibas.al.gov.br/build/assets/Edit-eYTQVu9I.js

js craibas.al.gov.br collected 2026-10-02 23:55:51 UTC 6,168 bytes, 1 lines download raw bytes

1import{c as K,a as O,j as t,H as P,L as I}from"./app-CTaY8UJf.js";import{A as Q}from"./app-layout-DHg6PkRO.js";import W from"./arrow-left-CPptMQyl.js";import"./app-CNmQMdEi.js";import"./button-DXCKLHtj.js";import"./index-sraz7nLe.js";import"./index-CsfSsVkk.js";import"./index-Svmmcv6D.js";import"./x-DmP7A1Bz.js";import"./createLucideIcon-CmjF8lT1.js";import"./index-CJBlix5Q.js";import"./index-DHUBBKJC.js";import"./index-BE_AIKwc.js";import"./video-CWkR2iFG.js";import"./chevron-right-Dcl2lTY9.js";import"./dropdown-menu-D6OZoFra.js";import"./index-DXg2b8Vm.js";import"./index-msf3AG1t.js";import"./avatar-BRFzpAWX.js";import"./index-fQ3brVpV.js";import"./index-BGC6_Qsa.js";import"./index-C_SHgnPd.js";import"./layers-Cb0hKdx0.js";import"./shield-check-CXJJ4XEh.js";import"./file-text-jraIksbC.js";import"./file-check-tR1YCl9R.js";import"./message-square-BtERmk2L.js";import"./users-BYuco8Ea.js";import"./trending-up-CsQX3MuM.js";import"./handshake-ppgb6oUe.js";import"./calendar-CEIt2YqY.js";import"./trending-down-B7TczfdV.js";import"./building-BaJqVYxM.js";import"./list-Dehc_B-t.js";import"./activity-D1Ey-wIS.js";import"./search-BOJp92ky.js";import"./breadcrumbs-ByKSkPWt.js";import"./input-7aHhCeCr.js";function He(S){const e=K.c(66),{item:i,mapaDoSites:U}=S;let k;e[0]!==i.href||e[1]!==i.mapa_do_site_id||e[2]!==i.title?(k={mapa_do_site_id:i.mapa_do_site_id,title:i.title,href:i.href},e[0]=i.href,e[1]=i.mapa_do_site_id,e[2]=i.title,e[3]=k):k=e[3];const{data:s,setData:o,put:V,processing:L,errors:l}=O(k);let w;e[4]!==i.uuid||e[5]!==V?(w=a=>{a.preventDefault(),V(`/admin/mapa-do-site-link/${i.uuid}`)},e[4]=i.uuid,e[5]=V,e[6]=w):w=e[6];const q=w;let E,A;e[7]===Symbol.for("react.memo_cache_sentinel")?(E={title:"Admin",href:"/admin"},A={title:"Links do Mapa do Site",href:"/admin/mapa-do-site-link"},e[7]=E,e[8]=A):(E=e[7],A=e[8]);const B=`/admin/mapa-do-site-link/${i.uuid}/edit`;let r;e[9]!==B?(r=[E,A,{title:"Editar Link",href:B}],e[9]=B,e[10]=r):r=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(P,{title:"Editar Link do Mapa do Site"}),e[11]=C):C=e[11];let D;e[12]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("div",{className:"mb-6",children:t.jsxs(I,{href:"/admin/mapa-do-site-link",className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900",children:[t.jsx(W,{size:20}),"Voltar"]})}),e[12]=D):D=e[12];let M;e[13]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("h1",{className:"text-3xl font-bold mb-6",children:"Editar Link do Mapa do Site"}),e[13]=M):M=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Mapa do Site"}),e[14]=R):R=e[14];const J=s.mapa_do_site_id;let m;e[15]!==o?(m=a=>o("mapa_do_site_id",a.target.value),e[15]=o,e[16]=m):m=e[16];let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("option",{value:"",children:"Selecione um mapa do site..."}),e[17]=$):$=e[17];let n;e[18]!==U?(n=U.map(X),e[18]=U,e[19]=n):n=e[19];let d;e[20]!==s.mapa_do_site_id||e[21]!==m||e[22]!==n?(d=t.jsxs("select",{value:J,onChange:m,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[$,n]}),e[20]=s.mapa_do_site_id,e[21]=m,e[22]=n,e[23]=d):d=e[23];let c;e[24]!==l.mapa_do_site_id?(c=l.mapa_do_site_id&&t.jsx("p",{className:"mt-1 text-sm text-red-600",children:l.mapa_do_site_id}),e[24]=l.mapa_do_site_id,e[25]=c):c=e[25];let p;e[26]!==d||e[27]!==c?(p=t.jsxs("div",{children:[R,d,c]}),e[26]=d,e[27]=c,e[28]=p):p=e[28];let z;e[29]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Título do Link"}),e[29]=z):z=e[29];let f;e[30]!==o?(f=a=>o("title",a.target.value),e[30]=o,e[31]=f):f=e[31];let u;e[32]!==s.title||e[33]!==f?(u=t.jsx("input",{type:"text",value:s.title,onChange:f,placeholder:"Digite o título do link...",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),e[32]=s.title,e[33]=f,e[34]=u):u=e[34];let x;e[35]!==l.title?(x=l.title&&t.jsx("p",{className:"mt-1 text-sm text-red-600",children:l.title}),e[35]=l.title,e[36]=x):x=e[36];let h;e[37]!==u||e[38]!==x?(h=t.jsxs("div",{children:[z,u,x]}),e[37]=u,e[38]=x,e[39]=h):h=e[39];let H;e[40]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"URL do Link"}),e[40]=H):H=e[40];let _;e[41]!==o?(_=a=>
1o("href",a.target.value),e[41]=o,e[42]=_):_=e[42];let b;e[43]!==s.href||e[44]!==_?(b=t.jsx("input",{type:"url",value:s.href,onChange:_,placeholder:"https://exemplo.com/pagina",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),e[43]=s.href,e[44]=_,e[45]=b):b=e[45];let g;e[46]!==l.href?(g=l.href&&t.jsx("p",{className:"mt-1 text-sm text-red-600",children:l.href}),e[46]=l.href,e[47]=g):g=e[47];let y;e[48]!==b||e[49]!==g?(y=t.jsxs("div",{children:[H,b,g]}),e[48]=b,e[49]=g,e[50]=y):y=e[50];const G=L?"Salvando...":"Atualizar";let j;e[51]!==L||e[52]!==G?(j=t.jsx("button",{type:"submit",disabled:L,className:"px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 transition",children:G}),e[51]=L,e[52]=G,e[53]=j):j=e[53];let F;e[54]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(I,{href:"/admin/mapa-do-site-link",className:"px-6 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition",children:"Cancelar"}),e[54]=F):F=e[54];let v;e[55]!==j?(v=t.jsxs("div",{className:"flex gap-4",children:[j,F]}),e[55]=j,e[56]=v):v=e[56];let N;e[57]!==q||e[58]!==p||e[59]!==h||e[60]!==y||e[61]!==v?(N=t.jsxs("div",{className:"container mx-auto px-4 py-8",children:[D,t.jsxs("div",{className:"max-w-2xl",children:[M,t.jsxs("form",{onSubmit:q,className:"space-y-6",children:[p,h,y,v]})]})]}),e[57]=q,e[58]=p,e[59]=h,e[60]=y,e[61]=v,e[62]=N):N=e[62];let T;return e[63]!==N||e[64]!==r?(T=t.jsxs(Q,{breadcrumbs:r,children:[C,N]}),e[63]=N,e[64]=r,e[65]=T):T=e[65],T}function X(S){return t.jsx("option",{value:S.uuid,children:S.title},S.uuid)}export{He 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.