1import{c as Bt,u as Lt,a as gt,w as At,x as _t,j as t,d as Et,D as qt,y as zt,z as Dt,I as Ht,J as Ft,K as Vt,N as Mt,O as Rt,Q as Ut,t as Gt,R as vt,U as Kt,V as ut,W as jt,Y as yt,Z as Wt,_ as wt,$ as Nt,a0 as St,a1 as $t,a2 as Ot,a3 as Qt,g as Jt,a4 as Yt,f as Zt,a5 as Xt,a6 as es,H as ts,a7 as ss,E as as,a8 as ls,a9 as os,S as is}from"./vendor-BEiifegs.js";import{A as ns}from"./app-layout-C3VWiYz6.js";import{B as ht}from"./button-CzWzRcks.js";import{I as rs}from"./input-7qhqwwXu.js";import{L as bt}from"./label-DY8Hb7PL.js";import{S as cs}from"./switch-BKZSJrmW.js";import{a as ms,b as ds,d as fs,S as xs,c as us}from"./select-DdJsCHpC.js";import{T as Ct,b as kt,a as hs,c as bs}from"./tabs-C28JSKop.js";import{S as ps}from"./SortableBlock-NuKOs3u8.js";import{B as gs}from"./BlockRenderer-DkaUOwhk.js";import"./utils-Brt-rx33.js";import"./AccessibilityMenu-Cv6uCVhL.js";import"./app-Dqd_TtrX.js";import"./app-CeM2vtc2.js";import"./index-BdkDokuX.js";import"./HeadingBlock-B86tXcqO.js";import"./TextBlock-u6GKDdKk.js";import"./rich-text-editor-DM2FfIGg.js";import"./ImageBlock-D1x51ZqG.js";import"./MediaLibraryModal-CK-fshCl.js";import"./dialog-BAZHkjAX.js";import"./PdfBlock-9xv7g8gv.js";import"./SliderBlock-BHi0LLpP.js";import"./ListBlock-Cc5e-lE1.js";import"./AccordionBlock-BsGzDfQA.js";import"./TabsBlock-BdsC1XF-.js";import"./TableBlock-BsSlEVZO.js";import"./QuoteBlock-BeLzga5_.js";import"./CalloutBlock-BpPHIqYu.js";import"./CalendarBlock-LJ5RVyNZ.js";
1import"./EmergenciesBlock-Blz99dDJ.js";import"./TaxCalendarBlock-B1UchtZ8.js";import"./TaxMapBlock-BLS_Lhf1.js";import"./QuickLinksBlock-Dx8wJtZO.js";import"./MiniMarqueeBlock-DtmdQmbe.js";import"./accordion-Cn5xWN0s.js";import"./table-CGjdJm18.js";import"./CalendarioEmbed-BI3tHgZ2.js";import"./card-Bu_BY0wg.js";import"./badge-COoHAGrY.js";import"./TaxMapEmbed-I56xZdPF.js";import"./TramiteCard-0dE-zsNe.js";function ma(c){const e=Bt.c(168),{page:o,categories:Ue,calendarios:Ge,emergencies:K,procedureCategories:Ke}=c,We=o?.title||"";let f;e[0]!==o?.page_category_id?(f=o?.page_category_id?.toString()||"",e[0]=o?.page_category_id,e[1]=f):f=e[1];let x;e[2]!==o?.government_section_id?(x=o?.government_section_id?.toString()||"",e[2]=o?.government_section_id,e[3]=x):x=e[3];let u;e[4]!==o?(u=Array.isArray(o?.content)?o.content:[],e[4]=o,e[5]=u):u=e[5];let W;e[6]!==u?(W=u.map(js),e[6]=u,e[7]=W):W=e[7];const $e=W,Oe=o?.is_active??!1;let $;e[8]!==We||e[9]!==f||e[10]!==x||e[11]!==$e||e[12]!==Oe?($={title:We,page_category_id:f,government_section_id:x,content:$e,is_active:Oe},e[8]=We,e[9]=f,e[10]=x,e[11]=$e,e[12]=Oe,e[13]=$):$=e[13];const{data:a,setData:l,post:Qe,put:Je,processing:O,errors:d}=Lt($),[Ye,pt]=gt.useState("blocks"),[n,Tt]=gt.useState(!1);let Q;e[14]===Symbol.for("react.memo_cache_sentinel")?(Q={activationConstraint:{distance:5}},e[14]=Q):Q=e[14];let J;e[15]===Symbol.for("react.memo_cache_sentinel")?(J={coordinateGetter:Ft},e[15]=J):J=e[15];const Ze=At(_t(Mt,Q),_t(Vt,J));let Y;e[16]!==a.content||e[17]!==l?(Y=s=>{const{active:i,over:m}=s;if(m&&i.id!==m.id){const r=a.content.findIndex(xt=>xt.id===i.id),ft=a.content.findIndex(xt=>xt.id===m.id);l("content",Rt(a.content,r,ft))}},e[16]=a.content,e[17]=l,e[18]=Y):Y=e[18];const Xe=Y;let Z;e[19]!==a.content||e[20]!==l?(Z=s=>{const i={id:crypto.randomUUID(),type:s,content:s==="list"||s==="accordion"||s==="slider"||s==="tabs"||s==="container"||s==="rows"||s==="quick_links"||s==="grid"?[]:s==="table"?{rows:[["",""],["",""]],hasHeader:!0,caption:""}:"",columns:s==="accordion"?1:void 0,containerColumns:s==="container"?1:void 0,calloutType:s==="callout"?"info":void 0,newsCount:s==="news"?3:void 0,categoryId:s==="tramites_por_categoria"?"all":void 0,showSubcategories:s==="tramites_por_categoria"?!0:void 0,displayMode:s==="tramites_por_categoria"?"grid":void 0,gridColumns:s==="grid"?3:void 0,dividerStyle:s==="divider"?"solid":void 0,dividerThickness:s==="divider"?"thin":void 0,padding:"medium",backgroundColor:"bg-white",isFullWidth:s==="container"||s==="rows",blockWidth:"100%",textColor:void 0};l("content",[...a.content,i])},e[19]=a.content,e[20]=l,e[21]=Z):Z=e[21];const et=Z;let X;e[22]!==a.content||e[23]!==l?(X=(s,i)=>{const m=a.content.map(r=>r.id===s?{...r,content:i}:r);l("content",m)},e[22]=a.content,e[23]=l,e[24]=X):X=e[24];const tt=X;let ee;e[25]!==a.content||e[26]!==l?(ee=(s,i)=>{const m=a.content.map(r=>r.id===s?{...r,...i}:r);l("content",m)},e[25]=a.content,e[26]=l,e[27]=ee):ee=e[27];const st=ee;let te;e[28]!==a.content||e[29]!==l?(te=s=>{l("content",a.content.filter(i=>i.id!==s))},e[28]=a.content,e[29]=l,e[30]=te):te=e[30];const at=te;let se;e[31]!==o||e[32]!==Qe||e[33]!==Je?(se=s=>{s.preventDefault(),o?Je(route("admin.custom-pages.update",o.id)):Qe(route("admin.custom-pages.store"))},e[31]=o,e[32]=Qe,e[33]=Je,e[34]=se):se=e[34];const lt=se;let ae;e[35]===Symbol.for("react.memo_cache_sentinel")?(ae={type:"heading",icon:t.jsx(Ut,{className:"w-5 h-5"}),label:"TÃtulo",desc:"Encabezados principales"},e[35]=ae):ae=e[35];let le;e[36]===Symbol.for("react.memo_cache_sentinel")?(le={type:"text",icon:t.jsx(Gt,{className:"w-5 h-5"}),label:"Texto",desc:"Párrafos y descripciones"},e[36]=le):le=e[36];let oe;e[37]===Symbol.for("react.memo_cache_sentinel")?(oe={type:"image",icon:t.jsx(vt,{className:"w-5 h-5"}),label:"Imagen",desc:"Sube o enlaza imágenes"},e[37]=oe):oe=e[37];let ie;e[38]===Symbol.for("react.memo_cache_sentinel")?(ie={type:"pdf",icon:t.jsx(Kt,{className:"w-5 h-5 text-red-500"}),label:"Visor de PDF",desc:"Sube o enlaza PDFs"},e[38]=ie):ie=e[38];let ne;e[39]===Symbol.for("react.memo_cache_sentinel")?(ne={type:"list",icon:t.jsx(ut,{className:"w-5 h-5"}),label:"Lista",desc:"Listas ordenadas o viñetas"},e[39]=ne):ne=e[39];let re;e[40]===Symbol.for("react.memo_cache_sentinel")?(re={type:"accordion",icon:t.jsx(jt,{className:"w-5 h-5"}),label:"Acordeón",desc:"Contenido colapsable"},e[40]=re):re=e[40];let ce;e[41]===Symbol.for("react.memo_cache_sentinel")?(ce={type:"slider",icon:t.jsx(yt,{className:"w-5 h-5"}),label:"Slider",desc:"Carrusel de imágenes"},e[41]=ce):ce=e[41];let me;e[42]===Symbol.for("react.memo_cache_sentinel")?(me={type:"quote",icon:t.jsx(Wt,{className:"w-5 h-5"}),label:"Cita",desc:"Bloque destacado"},e[42]=me):me=e[42];let de;e[43]===Symbol.for("react.memo_cache_sentinel")?(de={type:"callout",icon:t.jsx(wt,{className:"w-5 h-5"}),label:"Aviso",desc:"Cajas de alerta o info"},e[43]=de):de=e[43];let fe;e[44]===Symbol.for("react.memo_cache_sentinel")?(fe={type:"tabs",icon:t.jsx(Nt,{className:"w-5 h-5"}),label:"Pestañas",desc:"Contenido tabulado"},e[44]=fe):fe=e[44];let xe;e[45]===Symbol.for("react.memo_cache_sentinel")?(xe={type:"table",icon:t.jsx(St,{className:"w-5 h-5"}),label:"Tabla",desc:"Tabla de datos simples"},e[45]=xe):xe=e[45];let ue;e[46]===Symbol.for("react.memo_cache_sentinel")?(ue={type:"divider",icon:t.jsx($t,{className:"w-5 h-5"}),label:"Separador",desc:"LÃnea de división o espacio"},e[46]=ue):ue=e[46];let he;e[47]===Symbol.for("react.memo_cache_sentinel")?(he={type:"container",icon:t.jsx(Ot,{className:"w-5 h-5"}),label:"Contenedor",desc:"Agrupa bloques en columnas"},e[47]=he):he=e[47];let be;e[48]===Symbol.for("react.memo_cache_sentinel")?(be={type:"rows",icon:t.jsx(Qt,{className:"w-5 h-5"}),label:"Filas",desc:"Apila bloques en filas"},e[48]=be):be=e[48];let pe;e[49]===Symbol.for("react.memo_cache_sentinel")?(pe={type:"calendar",icon:t.jsx(Jt,{className:"w-5 h-5"}),label:"Calendario",desc:"Agenda y eventos"},e[49]=pe):pe=e[49];let ge;e[50]===Symbol.for("react.memo_cache_sentinel")?(ge={type:"tax_calendar",icon:t.jsx(Yt,{className:"w-5 h-5"}
1),label:"Calendario Impositivo",desc:"Vencimientos de Tasas"},e[50]=ge):ge=e[50];let _e;e[51]===Symbol.for("react.memo_cache_sentinel")?(_e={type:"tax_map",icon:t.jsx(Zt,{className:"w-5 h-5"}),label:"Mapa de Trámites",desc:"Puntos de Atención"},e[51]=_e):_e=e[51];let ve;e[52]===Symbol.for("react.memo_cache_sentinel")?(ve={type:"news",icon:t.jsx(Xt,{className:"w-5 h-5"}),label:"Noticias",desc:"Ãltimas novedades"},e[52]=ve):ve=e[52];let je;e[53]===Symbol.for("react.memo_cache_sentinel")?(je={type:"quick_links",icon:t.jsx(ut,{className:"w-5 h-5"}),label:"Accesos Rápidos",desc:"Iconos personalizables"},e[53]=je):je=e[53];let ye;e[54]===Symbol.for("react.memo_cache_sentinel")?(ye={type:"emergencies",icon:t.jsx(es,{className:"w-5 h-5"}),label:"Emergencias",desc:"Números de urgencia"},e[54]=ye):ye=e[54];let we;e[55]===Symbol.for("react.memo_cache_sentinel")?(we={type:"hero_slider",icon:t.jsx(vt,{className:"w-5 h-5"}),label:"Hero (Home)",desc:"Slider principal (Solo Inicio)"},e[55]=we):we=e[55];let Ne;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ne={type:"mini_marquee",icon:t.jsx(yt,{className:"w-5 h-5"}),label:"Marquesina (Home)",desc:"Logos/Iconos (Solo Inicio)"},e[56]=Ne):Ne=e[56];let Se;e[57]===Symbol.for("react.memo_cache_sentinel")?(Se={type:"gobierno",icon:t.jsx(wt,{className:"w-5 h-5"}),label:"Gobierno (Home)",desc:"Institucional (Solo Inicio)"},e[57]=Se):Se=e[57];let Ce;e[58]===Symbol.for("react.memo_cache_sentinel")?(Ce={type:"tramites_destacados",icon:t.jsx(ut,{className:"w-5 h-5"}),label:"Trámites (Home)",desc:"Trámites frecuentes (Solo Inicio)"},e[58]=Ce):Ce=e[58];let ke;e[59]===Symbol.for("react.memo_cache_sentinel")?(ke={type:"tramites_por_categoria",icon:t.jsx(jt,{className:"w-5 h-5"}),label:"Trámites por CategorÃa",desc:"Filtra trámites por cat."},e[59]=ke):ke=e[59];let Te;e[60]===Symbol.for("react.memo_cache_sentinel")?(Te={type:"transparencia",icon:t.jsx(St,{className:"w-5 h-5"}),label:"Transparencia (Home)",desc:"Licitaciones (Solo Inicio)"},e[60]=Te):Te=e[60];let Ie;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ie=[ae,le,oe,ie,ne,re,ce,me,de,fe,xe,ue,he,be,pe,ge,_e,ve,je,ye,we,Ne,Se,Ce,ke,Te,{type:"grid",icon:t.jsx(Nt,{className:"w-5 h-5"}),label:"CuadrÃcula",desc:"CuadrÃcula de tarjetas"}],e[61]=Ie):Ie=e[61];const It=Ie;let Pe;e[62]===Symbol.for("react.memo_cache_sentinel")?(Pe={title:"Páginas",href:route("admin.custom-pages.index")},e[62]=Pe):Pe=e[62];const ot=o?"Editar Página":"Nueva Página";let h;e[63]!==ot?(h=[Pe,{title:ot,href:"#"}],e[63]=ot,e[64]=h):h=e[64];const it=o?`Editar ${o.title}`:"Nueva Página";let b;e[65]!==it?(b=t.jsx(ts,{title:it}),e[65]=it,e[66]=b):b=e[66];let Be;e[67]===Symbol.for("react.memo_cache_sentinel")?(Be=t.jsx("h2",{className:"font-semibold text-lg text-neutral-800",children:"Constructor"}),e[67]=Be):Be=e[67];const nt=a.title||"Página sin tÃtulo";let p;e[68]!==nt?(p=t.jsxs("div",{children:[Be,t.jsx("p",{className:"text-xs text-neutral-500",children:nt})]}),e[68]=nt,e[69]=p):p=e[69];const rt=n?"default":"outline";let g;e[70]!==n?(g=()=>Tt(!n),e[70]=n,e[71]=g):g=e[71];const ct=n?"bg-blue-600 hover:bg-blue-700":"";let _;e[72]!==n?(_=n?t.jsx(ss,{className:"w-4 h-4 mr-1"}):t.jsx(as,{className:"w-4 h-4 mr-1"}),e[72]=n,e[73]=_):_=e[73];const mt=n?"Editar":"Previsualizar";let v;e[74]!==rt||e[75]!==g||e[76]!==ct||e[77]!==_||e[78]!==mt?(v=t.jsxs(ht,{type:"button",variant:rt,size:"sm",onClick:g,className:ct,children:[_,mt]}),e[74]=rt,e[75]=g,e[76]=ct,e[77]=_,e[78]=mt,e[79]=v):v=e[79];let j;e[80]!==p||e[81]!==v?(j=t.jsxs("div",{className:"p-4 border-b border-neutral-200 flex items-center justify-between bg-white",children:[p,v]}),e[80]=p,e[81]=v,e[82]=j):j=e[82];let Le;e[83]===Symbol.for("react.memo_cache_sentinel")?(Le=t.jsxs(kt,{value:"blocks",className:"text-xs data-[state=active]:bg-white data-[state=active]:shadow-sm",children:[t.jsx(ls,{className:"w-3.5 h-3.5 mr-1"})," Bloques"]}),e[83]=Le):Le=e[83];let Ae;e[84]===Symbol.for("react.memo_cache_sentinel")?(Ae=t.jsx("div",{className:"px-4 pt-4 border-b border-neutral-100",children:t.jsxs(hs,{className:"w-full grid grid-cols-2 bg-neutral-100/80",children:[Le,t.jsxs(kt,{value:"settings",className:"text-xs data-[state=active]:bg-white data-[state=active]:shadow-sm",children:[t.jsx(os,{className:"w-3.5 h-3.5 mr-1"})," Ajustes"]})]})}),e[84]=Ae):Ae=e[84];let Ee;e[85]===Symbol.for("react.memo_cache_sentinel")?(Ee=t.jsx("div",{className:"text-sm font-medium text-neutral-700 mb-2",children:"Añadir bloque"}),e[85]=Ee):Ee=e[85];let y;e[86]!==et?(y=t.jsxs(Ct,{value:"blocks",className:"flex-1 overflow-y-auto p-4 space-y-3 m-0 data-[state=inactive]:hidden focu
1s-visible:outline-none",children:[Ee,t.jsx("div",{className:"grid grid-cols-1 gap-2",children:It.map(s=>{const{type:i,icon:m,label:r,desc:ft}=s;return t.jsxs("button",{type:"button",onClick:()=>et(i),className:"flex items-center gap-3 p-3 rounded-xl border border-neutral-200 bg-white hover:border-blue-500 hover:shadow-sm hover:text-blue-600 transition-all text-left group",children:[t.jsx("div",{className:"p-2 rounded-lg bg-neutral-50 group-hover:bg-blue-50 text-neutral-600 group-hover:text-blue-600 transition-colors",children:m}),t.jsxs("div",{children:[t.jsx("div",{className:"text-sm font-semibold",children:r}),t.jsx("div",{className:"text-xs text-neutral-400",children:ft})]})]},i)})})]}),e[86]=et,e[87]=y):y=e[87];let qe;e[88]===Symbol.for("react.memo_cache_sentinel")?(qe=t.jsx(bt,{htmlFor:"title",className:"text-xs font-semibold uppercase text-neutral-500",children:"TÃtulo de la Página"}),e[88]=qe):qe=e[88];let w;e[89]!==l?(w=s=>l("title",s.target.value),e[89]=l,e[90]=w):w=e[90];let N;e[91]!==a.title||e[92]!==w?(N=t.jsx(rs,{id:"title",value:a.title,onChange:w,placeholder:"Ej. Historia del Municipio",required:!0,className:"bg-neutral-50"}),e[91]=a.title,e[92]=w,e[93]=N):N=e[93];let S;e[94]!==d.title?(S=d.title&&t.jsx("span",{className:"text-red-500 text-xs",children:d.title}),e[94]=d.title,e[95]=S):S=e[95];let C;e[96]!==N||e[97]!==S?(C=t.jsxs("div",{className:"space-y-2",children:[qe,N,S]}),e[96]=N,e[97]=S,e[98]=C):C=e[98];let ze;e[99]===Symbol.for("react.memo_cache_sentinel")?(ze=t.jsx(bt,{className:"text-xs font-semibold uppercase text-neutral-500",children:"CategorÃa"}),e[99]=ze):ze=e[99];const Pt=a.page_category_id;let k;e[100]!==l?(k=s=>l("page_category_id",s),e[100]=l,e[101]=k):k=e[101];let De;e[102]===Symbol.for("react.memo_cache_sentinel")?(De=t.jsx(ms,{className:"bg-neutral-50",children:t.jsx(ds,{placeholder:"Seleccionar..."})}),e[102]=De):De=e[102];let T;e[103]!==Ue?(T=Ue.map(vs),e[103]=Ue,e[104]=T):T=e[104];let I;e[105]!==T?(I=t.jsx(fs,{children:T}),e[105]=T,e[106]=I):I=e[106];let P;e[107]!==a.page_category_id||e[108]!==k||e[109]!==I?(P=t.jsxs(xs,{value:Pt,onValueChange:k,children:[De,I]}),e[107]=a.page_category_id,e[108]=k,e[109]=I,e[110]=P):P=e[110];let B;e[111]!==d.page_category_id?(B=d.page_category_id&&t.jsx("span",{className:"text-red-500 text-xs",children:d.page_category_id}),e[111]=d.page_category_id,e[112]=B):B=e[112];let L;e[113]!==P||e[114]!==B?(L=t.jsxs("div",{className:"space-y-2",children:[ze,P,B]}),e[113]=P,e[114]=B,e[115]=L):L=e[115];let A;e[116]!==C||e[117]!==L?(A=t.jsxs(Ct,{value:"settings",className:"flex-1 overflow-y-auto p-4 space-y-5 m-0 data-[state=inactive]:hidden focus-visible:outline-none",children:[C,L]}),e[116]=C,e[117]=L,e[118]=A):A=e[118];let E;e[119]!==Ye||e[120]!==y||e[121]!==A?(E=t.jsxs(bs,{value:Ye,onValueChange:pt,className:"flex-1 flex flex-col overflow-hidden",children:[Ae,y,A]}),e[119]=Ye,e[120]=y,e[121]=A,e[122]=E):E=e[122];let He;e[123]===Symbol.for("react.memo_cache_sentinel")?(He=t.jsx(bt,{htmlFor:"is_active",className:"cursor-pointer text-sm font-medium",children:"Publicar Página"}),e[123]=He):He=e[123];let q;e[124]!==l?(q=s=>l("is_active",s),e[124]=l,e[125]=q):q=e[125];let z;e[126]!==a.is_active||e[127]!==q?(z=t.jsxs("div",{className:"flex items-center justify-between px-1",children:[He,t.jsx(cs,{id:"is_active",checked:a.is_active,onCheckedChange:q})]}),e[126]=a.is_active,e[127]=q,e[128]=z):z=e[128];let Fe;e[129]===Symbol.for("react.memo_cache_sentinel")?(Fe=t.jsx(is,{className:"w-4 h-4"}),e[129]=Fe):Fe=e[129];const dt=O?"Guardando...":"Guardar Página";let D;e[130]!==O||e[131]!==dt?(D=t.jsxs(ht,{type:"submit",className:"w-full shadow-md bg-blue-600 hover:bg-blue-700 text-white font-medium gap-2",disabled:O,children:[Fe,dt]}),e[130]=O,e[131]=dt,e[132]=D):D=e[132];let H;e[133]!==z||e[134]!==D?(H=t.jsxs("div",{className:"p-4 border-t border-neutral-200 bg-neutral-50 space-y-4",children:[z,D]}),e[133]=z,e[134]=D,e[135]=H):H=e[135];let F;e[136]!==j||e[137]!==E||e[138]!==H?(F=t.jsxs("div",{className:"w-80 bg-white border-r border-neutral-200 flex flex-col z-10 shadow-sm shrink-0",children:[j,E,H]}),e[136]=j,e[137]=E,e[138]=H,e[139]=F):F=e[139];let Ve;e[140]===Symbol.for("react.memo_cache_sentinel")?(Ve={backgroundImage:"radial-gradient(#e5e7eb 1px, transparent 1px)",backgroundSize:"20px 20px"},e[140]=Ve):Ve=e[140];let Me;e[141]===Symbol.for("react.memo_cache_sentinel")?(Me=t.jsxs("div",{className:"flex gap-1.5",children:[t.jsx("div",{className:"w-3 h-3 rounded-full bg-red-400/80"}),t.jsx("div",{className:"w-3 h-3 rounded-full bg-amber-400/80"}),t.jsx("div",{className:"w-3 h-3 rounded-full bg-green-400/80"})]}),e[141]=Me):Me=e[141];let V;e[142]!==a.title?(V=a.title?a.title.toLowerCase().replace(/ /g,"-"):"nueva",e[142]=a.title,e[143]=V):V=e[143];let M;e[144]!==V?(M=t.jsxs("div",{className:"h-10 border-b border-neutral-100 flex items-center px-4 gap-2 bg-neutral-50/80",children:[Me,t.jsxs("div",{className:"mx-auto bg-white border border-neutral-200 rounded text-[10px] text-neutral-400 px-24 py-1 truncate max-w-sm text-center",children:["/paginas/",V]})]}),e[144]=V,e[145]=M):M=e[145];let R;
1e[146]!==Ge||e[147]!==a.content||e[148]!==K||e[149]!==Xe||e[150]!==n||e[151]!==Ke||e[152]!==at||e[153]!==Ze||e[154]!==tt||e[155]!==st?(R=t.jsx("div",{className:"flex-1 p-6 md:p-10",children:a.content.length===0?t.jsxs("div",{className:"h-full min-h-[400px] flex flex-col items-center justify-center text-neutral-400 border-2 border-dashed border-neutral-200 rounded-xl bg-neutral-50/50",children:[t.jsx("div",{className:"p-5 bg-white shadow-sm rounded-full mb-4 border border-neutral-100",children:t.jsx(Et,{className:"w-8 h-8 text-neutral-300"})}),t.jsx("p",{className:"font-semibold text-lg text-neutral-600",children:"Lienzo VacÃo"}),t.jsx("p",{className:"text-sm mt-1",children:"Selecciona bloques del menú lateral para comenzar a diseñar."}),t.jsx(ht,{variant:"outline",className:"mt-6",type:"button",onClick:()=>pt("blocks"),children:"Ver Bloques"})]}):n?t.jsx("div",{className:"bg-white rounded-xl overflow-hidden shadow-inner border border-neutral-100 p-2 sm:p-4",children:t.jsx(gs,{blocks:a.content,emergencies:K})}):t.jsx(qt,{sensors:Ze,collisionDetection:zt,onDragEnd:Xe,children:t.jsx(Dt,{items:a.content.map(_s),strategy:Ht,children:t.jsx("div",{className:"flex flex-wrap items-start -mx-2 -mt-2",children:a.content.map(s=>t.jsx(ps,{block:s,updateBlock:tt,removeBlock:at,updateBlockConfig:st,calendarios:Ge,emergencies:K,procedureCategories:Ke},s.id))})})})}),e[146]=Ge,e[147]=a.content,e[148]=K,e[149]=Xe,e[150]=n,e[151]=Ke,e[152]=at,e[153]=Ze,e[154]=tt,e[155]=st,e[156]=R):R=e[156];let U;e[157]!==M||e[158]!==R?(U=t.jsx("div",{className:"flex-1 overflow-y-auto relative",style:Ve,children:t.jsx("div",{className:"w-full mx-auto py-12 px-4 sm:px-8 min-h-full flex flex-col",children:t.jsxs("div",{className:"bg-white rounded-2xl shadow-xl border border-neutral-200/60 min-h-[500px] overflow-hidden flex flex-col mb-12",children:[M,R]})})}),e[157]=M,e[158]=R,e[159]=U):U=e[159];let G;e[160]!==lt||e[161]!==F||e[162]!==U?(G=t.jsxs("form",{onSubmit:lt,className:"flex h-[calc(100vh-64px)] overflow-hidden bg-neutral-100/50 relative",children:[F,U]}),e[160]=lt,e[161]=F,e[162]=U,e[163]=G):G=e[163];let Re;return e[164]!==h||e[165]!==b||e[166]!==G?(Re=t.jsxs(ns,{breadcrumbs:h,children:[b,G]}),e[164]=h,e[165]=b,e[166]=G,e[167]=Re):Re=e[167],Re}function _s(c){return c.id}function vs(c){return t.jsx(us,{value:c.id.toString(),children:c.name},c.id)}function js(c){return{...c,id:c.id||crypto.randomUUID()}}export{ma 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.