1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4252],{2740:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/gallery",function(){return a(4333)}])},4333:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var s=a(5893),r=a(7294),i=a(9008),l=a.n(i),o=a(1664),n=a.n(o),c=a(8384),d=a(3114),h=a(5528),x=a(9687),m=a(483);let u=(0,m.Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var p=a(9618);let g=(0,m.Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),b=(0,m.Z)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);var w=a(5649),f=a(6667),j=a(3518);let v=(0,m.Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var y=a(4079),N=a(4995),k=a(1943);let E=(0,m.Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),F=(0,m.Z)("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var C=a(5297);let S=(0,m.Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var Z=a(1932);let I=(0,m.Z)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),P=(0,m.Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var _=a(5806);function z(){return"iara20interiors26!\xd1"}function M(){let e=z()+"_iara_interiors_salt_2026",t=0;for(let a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a)|0;return"token_".concat(Math.abs(t))}function O(){var e,t;let[a,i]=(0,r.useState)(!1),[o,m]=(0,r.useState)(!0),[O,A]=(0,r.useState)(!1),[L,R]=(0,r.useState)(""),[D,G]=(0,r.useState)(""),[T,U]=(0,r.useState)("photos"),[q,V]=(0,r.useState)(null),[W,H]=(0,r.useState)(null),[X,B]=(0,r.useState)("residential"),[J,Y]=(0,r.useState)(""),[Q,K]=(0,r.useState)(""),[$,ee]=(0,r.useState)(""),[et,ea]=(0,r.useState)(""),[es,er]=(0,r.useState)(null),[ei,el]=(0,r.useState)(""),[eo,en]=(0,r.useState)(""),[ec,ed]=(0,r.useState)("residential"),[eh,ex]=(0,r.useState)(""),[em,eu]=(0,r.useState)(""),[ep,eg]=(0,r.useState)(!1),[eb,ew]=(0,r.useState)([]),[ef,ej]=(0,r.useState)([]),[ev,ey]=(0,r.useState)([]),[eN,ek]=(0,r.useState)([]),[eE,eF]=(0,r.useState)("residential"),[eC,eS]=(0,r.useState)(""),[eZ,eI]=(0,r.useState)(""),[eP,e_]=(0,r.useState)(""),[ez,eM]=(0,r.useState)(""),[eO,eA]=(0,r.useState)(!1),[eL,eR]=(0,r.useState)(0),[eD,eG]=(0,r.useState)(null),[eT,eU]=(0,r.useState)(null),[eq,eV]=(0,r.useState)(""),[eW,eH]=(0,r.useState)(""),[eX,eB]=(0,r.useState)("residential"),[eJ,eY]=(0,r.useState)(""),[eQ,eK]=(0,r.useState)(""),[e$,e0]=(0,r.useState)(!1),[e2,e1]=(0,r.useState)(!1),[e4,e5]=(0,r.useState)([]),[e6,e7]=(0,r.useState)(!1),[e3,e8]=(0,r.useState)(0),[e9,te]=(0,r.useState)(null),[tt,ta]=(0,r.useState)([]),[ts,tr]=(0,r.useState)("residential"),[ti,tl]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=localStorage.getItem("iara_admin_session_token");e&&"string"==typeof e&&e&&e===M()?i(!0):(localStorage.removeItem("iara_admin_session_token"),localStorage.removeItem("iara_admin_session"),i(!1)),m(!1)},[]),(0,r.useEffect)(()=>()=>
1{W&&W.startsWith("blob:")&&URL.revokeObjectURL(W),ev.forEach(e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)})},[W,ev]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(es&&er(null),eT&&eU(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[es,eT]),(0,r.useEffect)(()=>{if(!a)return;let e=(0,_.KU)(e=>{ta(e||[])}),t=(0,_.QI)(e=>{ew(e||[])});return()=>{"function"==typeof e&&e(),"function"==typeof t&&t()}},[a]);let[to,tn]=(0,r.useState)([]),[tc,td]=(0,r.useState)([]);(0,r.useEffect)(()=>{tn(tt)},[tt]),(0,r.useEffect)(()=>{td(eb)},[eb]);let th=async(e,t)=>{let a=tI.findIndex(t=>t.id===e);if(-1===a)return;let s="up"===t?a-1:a+1;if(s<0||s>=tI.length)return;let r=tI[a],i=tI[s],l=tZ.findIndex(e=>e.id===r.id),o=tZ.findIndex(e=>e.id===i.id);if(-1===l||-1===o)return;let n=[...tZ],c=n[l];n[l]=n[o],n[o]=c;let d=[...tc],h=[...to];n.forEach((e,t)=>{if("project"===e.type){let a=d.findIndex(t=>t.id===e.data.id);-1!==a&&(d[a]={...d[a],sortOrder:t})}else{let a=h.findIndex(t=>t.id===e.data.id);-1!==a&&(h[a]={...h[a],sortOrder:t})}}),td(d),tn(h);try{let e=h.map(e=>({id:e.id,sortOrder:void 0!==e.sortOrder?e.sortOrder:Number.MAX_SAFE_INTEGER})),t=d.map(e=>({id:e.id,sortOrder:void 0!==e.sortOrder?e.sortOrder:Number.MAX_SAFE_INTEGER}));await Promise.all([(0,_.yt)(e),(0,_.YI)(t)])}catch(e){console.error("Error al guardar el nuevo orden unificado:",e)}},tx=async(e,t)=>{let a="up"===t?e-1:e+1;if(a<0||a>=tc.length)return;let s=[...tc],r=s[e];s[e]=s[a],s[a]=r,td(s);try{let e=s.map((e,t)=>({id:e.id,sortOrder:t}));await (0,_.YI)(e)}catch(e){console.error("Error al guardar el nuevo orden de proyectos autom\xe1ticamente:",e)}},tm=async e=>{if(e.preventDefault(),L.trim()){A(!0),G("");try{if(function(e){if("string"!=typeof e||!e)return!1;let t=z();return e.trim()===t.trim()}(L)){let e=M();localStorage.setItem("iara_admin_session_token",e),localStorage.setItem("iara_admin_session","true"),i(!0),G(""),R("")}else G("Contrase\xf1a incorrecta. Int\xe9ntalo de nuevo.")}catch(e){G("Error al verificar la contrase\xf1a. Int\xe9ntalo de nuevo.")}finally{A(!1)}}},tu=async e=>{if(e.preventDefault(),!q){te({type:"error",text:"Por favor selecciona una imagen para subir."});return}e7(!0),e8(0),te(null);try{await (0,_.f9)(q,{category:X,title:Q||q.name,titleEs:J||Q||q.name,description:et,descriptionEs:$},e=>{e8(e)}),te({type:"success",text:"\xa1Imagen agregada con \xe9xito a la galer\xeda!"}),W&&W.startsWith("blob:")&&URL.revokeObjectURL(W),V(null),H(null),K(""),Y(""),ea(""),ee("")}catch(e){console.error(e),te({type:"error",text:"Error al subir la imagen (".concat((null==e?void 0:e.message)||"fallo de conexi\xf3n o almacenamiento",'). Tu archivo sigue seleccionado; puedes hacer clic en "Publicar Foto en Galer\xeda" para reintentarlo.')})}finally{e7(!1),e8(0)}},tp=e=>{er(e),el(e.titleEs||e.title||""),en(e.title||""),ed(e.category||"residential"),ex(e.descriptionEs||""),eu(e.description||"")},tg=async e=>{if(e.preventDefault(),es){eg(!0);try{await (0,_.Fn)(es.id,{title:eo.trim()||ei.trim()||"Foto de Galer\xeda",titleEs:ei.trim()||eo.trim()||"Foto de Galer\xeda",category:ec,description:em,descriptionEs:eh}),te({type:"success",text:"\xa1Informaci\xf3n de la foto actualizada correctamente!"}),er(null)}catch(e){console.error(e),te({type:"error",text:"Error al actualizar los datos de la foto."})}finally{eg(!1)}}},tb=async e=>{if(confirm("\xbfEst\xe1s seguro de que deseas eliminar completamente esta foto de la galer\xeda?")){tl(e.id);try{let t=e.storagePath;await (0,_.vX)(e.id,t),te({type:"success",text:"Foto eliminada correctamente de la galer\xeda."})}catch(e){console.error(e),te({type:"error",text:"Error al eliminar la foto."})}finally{tl(null)}}},tw=e=>{ej(t=>t.filter((t,a)=>a!==e)),ey(t=>{let a=t[e];return a&&a.startsWith("blob:")&&URL.revokeObjectURL(a),t.filter((t,a)=>a!==e)})},tf=e=>{ek(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},tj=async e=>{if(e.preventDefault(),0===ef.length&&0===eN.length){te({type:"error",text:"Por favor selecciona fotos de la galer\xeda o sube nuevas fotos para la colecci\xf3n."});return}if(!eC.trim()&&!eZ.trim()){te({type:"error",text:"Por favor ingresa un t\xedtulo para la colecci\xf3n."});return}eA(!0),eR(0),te(null);try{let e=eN.map(e=>({id:String(e.id),src:e.src,storagePath:e.storagePath||"",title:e.titleEs||e.title||""}));
1await (0,_.Pi)(ef,{category:eE,title:eZ||eC,titleEs:eC||eZ,description:ez,descriptionEs:eP,existingImages:e},e=>eR(e)),te({type:"success",text:"\xa1Colecci\xf3n publicada con \xe9xito en la galer\xeda!"}),ev.forEach(e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}),ej([]),ey([]),ek([]),eS(""),eI(""),e_(""),eM("")}catch(e){console.error(e),te({type:"error",text:"Error al crear la colecci\xf3n (".concat((null==e?void 0:e.message)||"fallo de conexi\xf3n o almacenamiento",'). Tus fotos seleccionadas se mantienen intactas; puedes hacer clic en "Crear Colecci\xf3n" para reintentarlo.')})}finally{eA(!1),eR(0)}},tv=async e=>{if(confirm('\xbfEst\xe1s seguro de eliminar la colecci\xf3n "'.concat(e.titleEs||e.title,'" y todas sus fotos?'))){eG(e.id);try{await (0,_.Pz)(e),te({type:"success",text:"Colecci\xf3n eliminada correctamente de la galer\xeda."})}catch(e){console.error(e),te({type:"error",text:"Error al eliminar la colecci\xf3n."})}finally{eG(null)}}},ty=e=>{eU(e),eV(e.titleEs||e.title||""),eH(e.title||""),eB(e.category||"residential"),eY(e.descriptionEs||""),eK(e.description||"")},tN=async e=>{if(e.preventDefault(),eT){e0(!0);try{await (0,_.L8)(eT.id,{title:eW.trim()||eq.trim()||"Colecci\xf3n",titleEs:eq.trim()||eW.trim()||"Colecci\xf3n",category:eX,description:eQ,descriptionEs:eJ}),te({type:"success",text:"\xa1Informaci\xf3n de la colecci\xf3n actualizada!"}),eU(null)}catch(e){console.error(e),te({type:"error",text:"Error al actualizar los datos de la colecci\xf3n."})}finally{e0(!1)}}},tk=async()=>{if(eT&&0!==e4.length){e0(!0);try{let e=e4.map(e=>({id:String(e.id),src:e.src,storagePath:e.storagePath||"",title:e.titleEs||e.title||""})),t=[...eT.images||[],...e];await (0,_.L8)(eT.id,{images:t}),eU(e=>e?{...e,images:t}:null),te({type:"success",text:"\xa1Fotos de la galer\xeda agregadas a la colecci\xf3n!"}),e1(!1),e5([])}catch(e){console.error(e),te({type:"error",text:"Error al agregar fotos a la colecci\xf3n."})}finally{e0(!1)}}},tE=async e=>{if(!eT||!e.target.files)return;let t=Array.from(e.target.files).filter(e=>e.type.startsWith("image/"));if(0!==t.length){e0(!0);try{await (0,_.Iz)(eT.id,eT.images||[],t),te({type:"success",text:"\xa1Im\xe1genes agregadas a la colecci\xf3n con \xe9xito!"})}catch(e){console.error(e),te({type:"error",text:"Error al agregar im\xe1genes a la colecci\xf3n."})}finally{e0(!1)}}},tF=async e=>{if(eT&&confirm("\xbfDeseas quitar esta imagen de la colecci\xf3n?")){e0(!0);try{await (0,_.J$)(eT.id,eT.images||[],e),eU(t=>t?{...t,images:t.images.filter((t,a)=>a!==e)}:null),te({type:"success",text:"Imagen eliminada de la colecci\xf3n."})}catch(e){console.error(e),te({type:"error",text:"Error al eliminar imagen de la colecci\xf3n."})}finally{e0(!1)}}},tC=new Set;tc.forEach(e=>{e.images&&e.images.forEach(e=>{e.src&&tC.add(e.src)})});let tS=to.filter(e=>e&&e.src&&"string"==typeof e.src&&""!==e.src.trim()&&!tC.has(e.src)),tZ=[...tc.map(e=>({type:"project",data:e,id:"proj-".concat(e.id),sortOrder:void 0!==e.sortOrder?e.sortOrder:Number.MAX_SAFE_INTEGER,createdAt:e.createdAt||0})),...tS.map(e=>({type:"image",data:e,id:"img-".concat(e.id),sortOrder:void 0!==e.sortOrder?e.sortOrder:Number.MAX_SAFE_INTEGER,createdAt:e.createdAt||0}))].sort((e,t)=>e.sortOrder!==t.sortOrder?e.sortOrder-t.sortOrder:t.createdAt-e.createdAt),tI=tZ.filter(e=>e.data.category===ts);return o?(0,s.jsx)("div",{className:"min-h-screen bg-[#1C130D] text-white flex items-center justify-center",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(h.Z,{className:"w-5 h-5 animate-spin text-[#6F724E]"}),(0,s.jsx)("span",{className:"text-xs tracking-widest uppercase text-white/60",children:"Verificando sesi\xf3n..."})]})}):a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{children:(0,s.jsx)("title",{children:"Administrar Galer\xeda - Iara Interiors"})}),(0,s.jsxs)("main",{className:"min-h-screen bg-[#1C130D] text-white p-6 md:p-12 relative",children:[(0,s.jsx)("div",{className:"absolute top-0 right-0 w-96 h-96 bg-[#6F724E]/10 blur-[150px] rounded-full pointer-events-none"}),(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 pb-8 mb-10 border-b border-white/10 relative z-10",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(n(),{href:"/gallery",className:"p-2 rounded-full bg-white/5 hover:bg-white/10 text-white/70 hover:text-white transition-colors",title:"Ver Galer\xeda",children:(0,s.jsx)(p.Z,{className:"w-5 h-5"})}),(0,s.jsx)("h1",{className:"text-3xl font-mirage text-white tracking-wide",children:"Administraci\xf3n de Galer\xeda"})]}),(0,s.jsx)("p",{className:"text-xs text-white/60 font-light mt-1 tracking-wider up
1percase pl-11",children:"Agrega, edita t\xedtulos, descripciones y elimina fotograf\xedas de la galer\xeda"})]}),(0,s.jsxs)("button",{onClick:()=>{localStorage.removeItem("iara_admin_session_token"),localStorage.removeItem("iara_admin_session"),i(!1),R("")},className:"flex items-center gap-2 px-4 py-2.5 bg-white/5 hover:bg-white/10 border border-white/10 rounded-xl text-xs uppercase tracking-widest text-white/80 hover:text-white transition-colors",children:[(0,s.jsx)(g,{className:"w-4 h-4"}),"Cerrar Sesi\xf3n"]})]}),(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex gap-4 mb-8 relative z-10",children:[(0,s.jsxs)("button",{onClick:()=>U("photos"),className:"flex items-center gap-2 px-6 py-3.5 rounded-xl text-xs uppercase tracking-widest font-medium transition-all ".concat("photos"===T?"bg-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 text-white/60 hover:text-white border border-white/10"),children:[(0,s.jsx)(b,{className:"w-4 h-4"}),"Fotos Individuales (",tt.length,")"]}),(0,s.jsxs)("button",{onClick:()=>U("projects"),className:"flex items-center gap-2 px-6 py-3.5 rounded-xl text-xs uppercase tracking-widest font-medium transition-all ".concat("projects"===T?"bg-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 text-white/60 hover:text-white border border-white/10"),children:[(0,s.jsx)(w.Z,{className:"w-4 h-4"}),"Colecciones (",eb.length,")"]})]}),"photos"===T&&(0,s.jsxs)("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-12 gap-10 relative z-10",children:[(0,s.jsx)("div",{className:"lg:col-span-5 space-y-6",children:(0,s.jsxs)("div",{className:"bg-white/5 border border-white/10 rounded-[28px] p-6 md:p-8 backdrop-blur-xl shadow-xl",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,s.jsx)(f.Z,{className:"w-5 h-5 text-[#6F724E]"}),(0,s.jsx)("h2",{className:"text-xl font-mirage text-white",children:"Agregar Nueva Foto"})]}),e9&&(0,s.jsxs)("div",{className:"flex items-start gap-3 p-4 rounded-xl mb-6 text-xs leading-relaxed border ".concat("success"===e9.type?"bg-[#6F724E]/20 text-white border-[#6F724E]/40":"bg-red-500/10 text-red-300 border-red-500/20"),children:["success"===e9.type?(0,s.jsx)(j.Z,{className:"w-4 h-4 text-[#6F724E] flex-shrink-0 mt-0.5"}):(0,s.jsx)(u,{className:"w-4 h-4 text-red-400 flex-shrink-0 mt-0.5"}),(0,s.jsx)("span",{children:e9.text})]}),(0,s.jsxs)("form",{onSubmit:tu,className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-2 font-light",children:"Fotograf\xeda *"}),(0,s.jsxs)("div",{onDragOver:e=>{e.preventDefault()},onDrop:e=>{if(e.preventDefault(),e.dataTransfer.files&&e.dataTransfer.files[0]){let t=e.dataTransfer.files[0];if(!t.type.startsWith("image/")){te({type:"error",text:"Por favor arrastra un archivo de imagen v\xe1lido (JPG, PNG, WEBP, etc.)."});return}V(t),H(URL.createObjectURL(t)),te(null)}},className:"relative border-2 border-dashed border-white/20 hover:border-[#6F724E] rounded-2xl p-6 text-center transition-colors cursor-pointer bg-white/[0.02] group",children:[(0,s.jsx)("input",{type:"file",accept:"image/*",onChange:e=>{if(e.target.files&&e.target.files[0]){let t=e.target.files[0];if(!t.type.startsWith("image/")){te({type:"error",text:"Por favor selecciona un archivo de imagen v\xe1lido (JPG, PNG, WEBP, etc.)."});return}V(t),H(URL.createObjectURL(t)),te(null)}},className:"absolute inset-0 opacity-0 cursor-pointer w-full h-full z-10"}),W?(0,s.jsxs)("div",{className:"relative aspect-[4/3] w-full rounded-xl overflow-hidden shadow-md",children:[(0,s.jsx)("img",{src:W,alt:"Preview",className:"w-full h-full object-cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center text-xs text-white",children:"Haga clic para cambiar imagen"})]}):(0,s.jsxs)("div",{className:"py-6 flex flex-col items-center justify-center space-y-3",children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-full bg-white/5 border border-white/10 flex items-center justify-center group-hover:scale-110 transition-transform",children:(0,s.jsx)(v,{className:"w-5 h-5 text-[#6F724E]"})}),(0,s.jsxs)("p",{className:"text-xs text-white/80 font-light",children:["Arrastra una imagen aqu\xed o"," ",(0,s.jsx)("span",{className:"text-[#6F724E] font-normal underline",children:"examina tus archivos"})]}),(0,s.jsx)("p",{className:"text-[10px] text-[#6F724E] font-light",children:"Conversi\xf3n autom\xe1tica a WebP y optimizaci\xf3n de tama\xf1o"})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-3 font-light",children:"Categor\xeda *"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>
1B("residential"),className:"py-3.5 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all flex items-center justify-center gap-2 ".concat("residential"===X?"bg-[#6F724E] border-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 border-white/10 text-white/60 hover:text-white"),children:"Residencial"}),(0,s.jsx)("button",{type:"button",onClick:()=>B("commercial"),className:"py-3.5 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all flex items-center justify-center gap-2 ".concat("commercial"===X?"bg-[#6F724E] border-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 border-white/10 text-white/60 hover:text-white"),children:"Comercial"})]})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo (Espa\xf1ol)"}),(0,s.jsx)("input",{type:"text",value:J,onChange:e=>Y(e.target.value),placeholder:"Ej: Sala Residencial Moderna",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo (Ingl\xe9s - opcional)"}),(0,s.jsx)("input",{type:"text",value:Q,onChange:e=>K(e.target.value),placeholder:"Ej: Modern Residential Living",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"Descripci\xf3n (Espa\xf1ol - opcional)"}),(0,s.jsx)("textarea",{rows:2,value:$,onChange:e=>ee(e.target.value),placeholder:"Descripci\xf3n de la fotograf\xeda en espa\xf1ol...",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light resize-none"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"Descripci\xf3n (Ingl\xe9s - opcional)"}),(0,s.jsx)("textarea",{rows:2,value:et,onChange:e=>ea(e.target.value),placeholder:"Descripci\xf3n de la fotograf\xeda en ingl\xe9s...",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light resize-none"})]})]}),e6&&(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between text-xs text-white/70 font-light",children:[(0,s.jsx)("span",{children:"Subiendo imagen..."}),(0,s.jsxs)("span",{children:[e3,"%"]})]}),(0,s.jsx)("div",{className:"w-full bg-white/10 rounded-full h-2 overflow-hidden",children:(0,s.jsx)("div",{className:"bg-[#6F724E] h-full transition-all duration-300 rounded-full",style:{width:"".concat(e3,"%")}})})]}),(0,s.jsx)("button",{type:"submit",disabled:e6||!q,className:"w-full py-4 rounded-xl text-xs uppercase tracking-[0.2em] font-medium transition-all duration-300 flex items-center justify-center gap-2 ".concat(e6||!q?"bg-white/10 text-white/40 cursor-not-allowed border border-white/5":"bg-[#6F724E] hover:bg-[#5f6242] text-white shadow-lg shadow-[#6F724E]/25"),children:e6?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}),"Guardando..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{className:"w-4 h-4"}),"Publicar Foto en Galer\xeda"]})})]})]})}),(0,s.jsx)("div",{className:"lg:col-span-7 space-y-6",children:(0,s.jsxs)("div",{className:"bg-white/5 border border-white/10 rounded-[28px] p-6 md:p-8 backdrop-blur-xl shadow-xl",children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-mirage text-white",children:"Organizador de Galer\xeda"}),(0,s.jsxs)("p",{className:"text-xs text-white/60 font-light mt-0.5",children:[tI.length," elementos en galer\xeda (fotograf\xedas y colecciones) ⢠Usa las flechas para reordenar"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 bg-white/5 p-1 rounded-xl border border-white/10 self-start sm:self-auto",children:[(0,s.jsx)("button",{onClick:()=>tr("residential"),className:"px-3 py-1.5 rounded-lg text-[11px] uppercase tracking-wider transition-all ".concat("residential"===ts?"bg-[#6F724E] text-white font-normal":"text-white/60 hover:text-white"),children:"Residencial"}),(0,s.jsx)("button",{onClick:()=>tr("commercial"),className:"px-3 py-1.5 rounded-lg text-[11px] uppercase tracking-wider transition-all ".concat("commercial"===ts?"bg-[#6F724E] text-white font-normal":"text-white/60 hover:text-white"),children:"Comercial"})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4 max-h-[650px] overflow-y-auto pr-2 custom-scrollbar",children:0===tI.length?(0,s.jsx)("div",{className:"text-center py-16 px-6 col-span-full border border-white/10 rounded-2xl bg-white/[0.02]",children:(0,s.jsx)("p",{className:"text-xs text-white/50 font-light uppercase tracking-widest",children:"No hay im\xe1genes ni colecciones en esta categor\xeda."})}):(0,s.jsx)(d.M,{mode:"popLayout",children:tI.map((e,t)=>{let a=0===t,r=t===tI.length-1;if("project"===e.type){var i;let t=e.data,l=t.images&&t.images.length>0?t.images[0].src:"",o=eD===t.id;return(0,s.jsxs)(c.E.div,{layout:!0,initial:{opacity:0,scale:.9}
1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},className:"group relative aspect-[3/4] rounded-2xl overflow-hidden bg-black/40 border border-[#6F724E]/50 hover:border-[#6F724E] transition-all shadow-lg",children:[l?(0,s.jsx)("img",{src:l,alt:t.titleEs||t.title||"Project Cover",onError:()=>{(0,_.se)(void 0,void 0,l)},className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 pointer-events-none"}):(0,s.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center bg-white/5 text-white/40",children:[(0,s.jsx)(w.Z,{className:"w-8 h-8 mb-2 text-[#6F724E]"}),(0,s.jsx)("span",{className:"text-xs font-light",children:"Sin im\xe1genes"})]}),(0,s.jsxs)("div",{className:"absolute top-2.5 left-2.5 z-10 px-2.5 py-1 rounded-full bg-[#6F724E]/90 backdrop-blur-md border border-white/20 text-[9px] uppercase tracking-widest text-white flex items-center gap-1.5 shadow-md pointer-events-none",children:[(0,s.jsx)(w.Z,{className:"w-3 h-3 text-white/90"}),(0,s.jsxs)("span",{children:["Colecci\xf3n ⢠","commercial"===t.category?"Comercial":"Residencial"]})]}),(0,s.jsxs)("div",{className:"absolute top-2.5 right-2.5 z-20 flex items-center gap-1 bg-black/70 backdrop-blur-md border border-white/20 rounded-full p-1 shadow-lg",children:[(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),th(e.id,"up")},disabled:a,className:"p-1 text-white/80 hover:text-white hover:bg-white/20 rounded-full disabled:opacity-20 transition-all cursor-pointer",title:"Mover antes",children:(0,s.jsx)(y.Z,{className:"w-3.5 h-3.5"})}),(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),th(e.id,"down")},disabled:r,className:"p-1 text-white/80 hover:text-white hover:bg-white/20 rounded-full disabled:opacity-20 transition-all cursor-pointer",title:"Mover despu\xe9s",children:(0,s.jsx)(N.Z,{className:"w-3.5 h-3.5"})})]}),(0,s.jsxs)("div",{className:"absolute bottom-0 inset-x-0 z-10 p-3.5 bg-gradient-to-t from-black/90 via-black/60 to-transparent flex flex-col pointer-events-none",children:[(0,s.jsx)("p",{className:"text-xs text-white font-medium line-clamp-1",children:t.titleEs||t.title||"Colecci\xf3n #".concat(t.id)}),(0,s.jsxs)("p",{className:"text-[10px] text-white/70 font-light mt-0.5",children:[(null===(i=t.images)||void 0===i?void 0:i.length)||0," fotograf\xedas"]})]}),(0,s.jsx)("div",{className:"absolute inset-0 z-10 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity duration-300 p-4 flex flex-col justify-between backdrop-blur-[2px]",children:(0,s.jsxs)("div",{className:"flex justify-end gap-2 mt-10",children:[(0,s.jsx)("button",{onClick:()=>ty(t),title:"Editar colecci\xf3n",className:"p-2 rounded-full bg-white/20 hover:bg-[#6F724E] border border-white/30 text-white transition-all duration-300 hover:scale-110",children:(0,s.jsx)(k.Z,{className:"w-4 h-4"})}),(0,s.jsx)("button",{onClick:()=>tv(t),disabled:o,title:"Borrar colecci\xf3n",className:"p-2 rounded-full bg-red-500/20 hover:bg-red-500 border border-red-500/30 text-white transition-all duration-300 hover:scale-110",children:o?(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)(E,{className:"w-4 h-4"})})]})})]},e.id)}let l=e.data,o=ti===l.id;return(0,s.jsxs)(c.E.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},className:"group relative aspect-[3/4] rounded-2xl overflow-hidden bg-black/40 border border-white/10 hover:border-white/30 transition-all",children:[(0,s.jsx)("img",{src:l.src,alt:l.titleEs||l.title||"Gallery Item",onError:()=>{ta(e=>e.filter(e=>e.id!==l.id)),(0,_.se)(l.id,l.storagePath,l.src),te({type:"error",text:'La imagen "'.concat(l.titleEs||l.title||"Foto",'" estaba inaccesible o da\xf1ada. Se elimin\xf3 autom\xe1ticamente del sistema. Puedes volver a subirla si lo deseas.')})},className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 pointer-events-none"}),(0,s.jsx)("div",{className:"absolute top-2.5 left-2.5 z-10 px-2.5 py-1 rounded-full bg-black/60 backdrop-blur-md border border-white/10 text-[9px] uppercase tracking-widest text-white/90 flex items-center gap-1 pointer-events-none",children:"commercial"===l.category?"Foto ⢠Comercial":"Foto ⢠Residencial"}),(0,s.jsxs)("div",{className:"absolute top-2.5 right-2.5 z-20 flex items-center gap-1 bg-black/70 backdrop-blur-md border border-white/20 rounded-full p-1 shadow-lg",children:[(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),th(e.id,"up")},disabled:a,className:"p-1 text-white/80 hover:text-white hover:bg-white/20 rounded-full disabled:opacity-20 transition-all cursor-pointer",title:"Mover antes",children:(0,s.jsx)(y.Z,{className:"w-3.5 h-3.5"})}),(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),th(e.id,"down")},disabled:r,className:"p-1 text-white/80 hover:text-white hover:bg-white/20 rounded-full disabled:opacity-20 transition-all cursor-pointer",title:"Mover despu\xe9s",children:(0,s.jsx)(N.Z,{className:"w-3.5 h-3.5"})})]}),(0,s.jsxs)("div",{className:"absolute inset-0 z-10 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity duration-300 p-4 flex flex-col justify-between backdrop-blur-[2px]",children:[(0,s.jsxs)("div",{className:"flex justify-end gap-2 mt-10",children:[(0,s.jsx)("button",{onClick:()=>tp(l),title:"Editar t\xedtulo y datos",className:"p-2 rounded-full bg-white/20 hover:bg-[#6F724E] border border-white/30 text-white transition-all duration-300 hover:scale-110",children:(0,s.jsx)(k.Z,{className:"w-4 h-4"})}),(0,s.jsx)("button",{onClick:()=>tb(l),disabled:o,title:"Borrar foto entera",className:"p-2 rounded-full bg-red-500/20 hover:bg-red-500 border border-red-500/30 text-white transition-all duration-300 hover:scale-110",children:o?(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)(E,{className:"w-4 h-4"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs text-white font-medium line-clamp-1",children:l.titleEs||l.title||"Foto #".concat(l.id)}),(l.descriptionEs||l.description)&&(0,s.jsx)("p",{className:"text-[10px] text-white/60 font-light line-clamp-1 mt-0.5",children:l.descriptionEs||l.description})]})]})]},e.id)})})})]})})]}),"projects"===T&&(0,s.jsxs)("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-12 gap-10 relative z-10",children:[(0,s.jsx)("div",{className:"lg:col-span-5 space-y-6",children:(0,s.jsxs)("div",{className:"bg-white/5 border border-white/10 rounded-[28px] p-6 md:p-8 backdrop-blur-xl shadow-xl",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,s.jsx)(F,{className:"w-5 h-5 text-[#6F724E]"}),(0,s.jsx)("h2",{className:"text-xl font-mirage text-white",children:"Crear Nueva Cole
1cci\xf3n"})]}),e9&&(0,s.jsxs)("div",{className:"flex items-start gap-3 p-4 rounded-xl mb-6 text-xs leading-relaxed border ".concat("success"===e9.type?"bg-[#6F724E]/20 text-white border-[#6F724E]/40":"bg-red-500/10 text-red-300 border-red-500/20"),children:["success"===e9.type?(0,s.jsx)(j.Z,{className:"w-4 h-4 text-[#6F724E] flex-shrink-0 mt-0.5"}):(0,s.jsx)(u,{className:"w-4 h-4 text-red-400 flex-shrink-0 mt-0.5"}),(0,s.jsx)("span",{children:e9.text})]}),(0,s.jsxs)("form",{onSubmit:tj,className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-3 font-light",children:"Categor\xeda *"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>eF("residential"),className:"py-3.5 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all ".concat("residential"===eE?"bg-[#6F724E] border-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 border-white/10 text-white/60 hover:text-white"),children:"Residencial"}),(0,s.jsx)("button",{type:"button",onClick:()=>eF("commercial"),className:"py-3.5 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all ".concat("commercial"===eE?"bg-[#6F724E] border-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 border-white/10 text-white/60 hover:text-white"),children:"Comercial"})]})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo de la Colecci\xf3n (Espa\xf1ol) *"}),(0,s.jsx)("input",{type:"text",value:eC,onChange:e=>eS(e.target.value),placeholder:"Ej: Villa Oasis Atacama",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light",required:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo (Ingl\xe9s - opcional)"}),(0,s.jsx)("input",{type:"text",value:eZ,onChange:e=>eI(e.target.value),placeholder:"Ej: Oasis Villa Atacama",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"Descripci\xf3n (Espa\xf1ol - opcional)"}),(0,s.jsx)("textarea",{rows:2,value:eP,onChange:e=>e_(e.target.value),placeholder:"Descripci\xf3n breve de la colecci\xf3n...",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-2 font-light",children:"Seleccionar Fotograf\xedas *"}),(0,s.jsxs)("div",{className:"relative border-2 border-dashed border-white/20 hover:border-[#6F724E] rounded-2xl p-6 text-center transition-colors cursor-pointer bg-white/[0.02] group",children:[(0,s.jsx)("input",{type:"file",accept:"image/*",multiple:!0,onChange:e=>{if(e.target.files){let t=Array.from(e.target.files).filter(e=>e.type.startsWith("image/"));if(0===t.length)return;ej(e=>[...e,...t]);let a=t.map(e=>URL.createObjectURL(e));ey(e=>[...e,...a]),te(null)}},className:"absolute inset-0 opacity-0 cursor-pointer w-full h-full z-10"}),(0,s.jsxs)("div",{className:"py-4 flex flex-col items-center justify-center space-y-2",children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-full bg-white/5 border border-white/10 flex items-center justify-center group-hover:scale-110 transition-transform",children:(0,s.jsx)(v,{className:"w-5 h-5 text-[#6F724E]"})}),(0,s.jsxs)("p",{className:"text-xs text-white/80 font-light",children:["Haz clic o arrastra ",(0,s.jsx)("span",{className:"text-[#6F724E] font-normal underline",children:"m\xfaltiples fotos"})," aqu\xed"]}),(0,s.jsx)("p",{className:"text-[10px] text-[#6F724E] font-light",children:"Optimizaci\xf3n y conversi\xf3n a WebP autom\xe1ticas"})]})]}),ev.length>0&&(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsxs)("p",{className:"text-xs text-white/70 font-light mb-2",children:[ef.length," foto",1===ef.length?"":"s"," subida",1===ef.length?"":"s",":"]}),(0,s.jsx)("div",{className:"grid grid-cols-4 gap-2 max-h-36 overflow-y-auto pr-1 custom-scrollbar",children:ev.map((e,t)=>(0,s.jsxs)("div",{className:"relative aspect-square rounded-lg overflow-hidden border border-white/20 group",children:[(0,s.jsx)("img",{src:e,alt:"Preview",className:"w-full h-full object-cover"}),(0,s.jsx)("button",{type:"button",onClick:()=>tw(t),className:"absolute top-1 right-1 p-1 rounded-full bg-black/70 hover:bg-red-500 text-white transition-colors",children:(0,s.jsx)(C.Z,{className:"w-3 h-3"})})]},t))})]})]}),tt.length>0&&(0,s.jsxs)("div",{className:"pt-4 border-t border-white/10",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,s.jsxs)("label",{className:"text-xs uppercase tracking-[0.2em] text-white/70 font-light",children:["O seleccionar de fotos ya existentes (",eN.length,")"]}),eN.length>0&&(0,s.jsx)("button",{type:"button",onClick:()=>ek([]),className:"text-[10px] text-white/50 hover:text-white underline font-light",children:"Limpiar selecci\xf3n"})]}),(0,s.jsx)("div",{className:"grid grid-cols-4 gap-2.5 max-h-44 overflow-y-auto pr-1 custom-scrollbar p-1.5 border border-white/10 rounded-xl bg-black/20",children:tt.map(e=>{let t=eN.some(t=>t.id===e.id);return(0,s.jsxs)("div",{onClick:()=>tf(e),className:"relative aspect-square rounded-lg overflow-hidden cursor-pointer border-2 transition-all ".concat(t?"border-[#6F724E] scale-95 shadow-md shadow-[#6F724E]/40":"border-white/10 hover:border-white/40"),children:[(0,s.jsx)("img",{src:e.src,alt:e.titleEs||e.title,className:"w-full h-full object-cover"}),t&&(0,s.jsx)("div",{className:"absolute inset-0 bg-[#6F724E]/40 flex items-center justify-center",children:(0,s.jsx)(j.Z,{className:"w-5 h-5 text-white drop-shadow-md"})})]},e.id)})})]}),eO&&(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between text-xs text-white/70 font-light",children:[(0,s.jsx)("span",{children:"Subiendo fotos de la colecci\xf3n..."}),(0,s.jsxs)("span",{children:[eL,"%"]})]}),(0,s.jsx)("div",{className:"w-full bg-white/10 rounded-full h-2 overflow-hidden",children:(0,s.jsx)("div",{className:"bg-[#6F724E] h-full transition-all duration-300 rounded-full",style:{width:"".concat(eL,"%")}
1})})]}),(0,s.jsx)("button",{type:"submit",disabled:eO||0===ef.length&&0===eN.length,className:"w-full py-4 rounded-xl text-xs uppercase tracking-[0.2em] font-medium transition-all duration-300 flex items-center justify-center gap-2 ".concat(eO||0===ef.length&&0===eN.length?"bg-white/10 text-white/40 cursor-not-allowed border border-white/5":"bg-[#6F724E] hover:bg-[#5f6242] text-white shadow-lg shadow-[#6F724E]/25"),children:eO?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}),"Creando Colecci\xf3n..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(F,{className:"w-4 h-4"}),"Publicar Colecci\xf3n"]})})]})]})}),(0,s.jsx)("div",{className:"lg:col-span-7 space-y-6",children:(0,s.jsxs)("div",{className:"bg-white/5 border border-white/10 rounded-[28px] p-6 md:p-8 backdrop-blur-xl shadow-xl",children:[(0,s.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-mirage text-white",children:"Colecciones Publicadas"}),(0,s.jsxs)("p",{className:"text-xs text-white/60 font-light mt-0.5",children:[tc.length," colecciones disponibles ⢠Usa las flechas para reordenar"]})]})}),0===tc.length?(0,s.jsx)("div",{className:"text-center py-16 px-6 col-span-full border border-white/10 rounded-2xl bg-white/[0.02]",children:(0,s.jsx)("p",{className:"text-xs text-white/50 font-light uppercase tracking-widest",children:"No hay colecciones creadas por el momento."})}):(0,s.jsx)("div",{className:"space-y-4 max-h-[650px] overflow-y-auto pr-2 custom-scrollbar",children:tc.map((e,t)=>{let a=eD===e.id;return(0,s.jsxs)("div",{className:"p-5 rounded-2xl bg-white/5 border border-white/10 hover:border-white/20 flex flex-col md:flex-row gap-5 items-start md:items-center justify-between transition-all",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("button",{type:"button",onClick:()=>tx(t,"up"),disabled:0===t,className:"p-1.5 rounded-lg bg-white/10 hover:bg-[#6F724E] text-white/80 hover:text-white disabled:opacity-20 transition-colors cursor-pointer",title:"Mover arriba",children:(0,s.jsx)(S,{className:"w-4 h-4"})}),(0,s.jsx)("button",{type:"button",onClick:()=>tx(t,"down"),disabled:t===tc.length-1,className:"p-1.5 rounded-lg bg-white/10 hover:bg-[#6F724E] text-white/80 hover:text-white disabled:opacity-20 transition-colors cursor-pointer",title:"Mover abajo",children:(0,s.jsx)(Z.Z,{className:"w-4 h-4"})})]})}),(0,s.jsxs)("div",{className:"flex items-center gap-2 overflow-x-auto max-w-full pb-2 md:pb-0 pointer-events-none",children:[e.images.slice(0,4).map((e,t)=>(0,s.jsx)("div",{className:"w-14 h-14 rounded-xl overflow-hidden bg-black/40 border border-white/10 flex-shrink-0",children:(0,s.jsx)("img",{src:e.src,alt:e.title||"Thumb",className:"w-full h-full object-cover"})},t)),e.images.length>4&&(0,s.jsxs)("div",{className:"w-14 h-14 rounded-xl bg-white/10 border border-white/10 flex items-center justify-center text-xs text-white/70 font-light flex-shrink-0",children:["+",e.images.length-4]})]}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-widest text-[#6F724E] font-medium block mb-1",children:"commercial"===e.category?"Comercial":"Residencial"}),(0,s.jsx)("h3",{className:"text-base font-mirage text-white tracking-wide",children:e.titleEs||e.title}),(0,s.jsxs)("p",{className:"text-xs text-white/50 font-light mt-0.5",children:[e.images.length," fotograf\xedas"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,s.jsx)("button",{onClick:()=>ty(e),className:"p-2.5 rounded-xl bg-white/10 hover:bg-[#6F724E] border border-white/15 text-white transition-colors",title:"Editar Proyecto",children:(0,s.jsx)(k.Z,{className:"w-4 h-4"})}),(0,s.jsx)("button",{onClick:()=>tv(e),disabled:a,className:"p-2.5 rounded-xl bg-red-500/20 hover:bg-red-500 border border-red-500/30 text-white transition-colors",title:"Eliminar Proyecto",children:a?(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)(E,{className:"w-4 h-4"})})]})]},e.id)})})]})})]}),(0,s.jsx)(d.M,{children:es&&(0,s.jsx)(c.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-md flex items-center justify-center p-6",children:(0,s.jsxs)(c.E.div,{initial:{scale:.95,y:20},animate:{scale:1,y:0},exit:{scale:.95,y:20},className:"w-full max-w-lg bg-[#1C130D] border border-white/15 rounded-[32px] p-6 md:p-8 relative shadow-2xl",children:[(0,s.jsx)("button",{onClick:()=>er(null),className:"absolute top-6 right-6 p-2 rounded-full bg-white/5 hover:bg-white/15 text-white/70 hover:text-white transition-colors",children:(0,s.jsx)(C.Z,{className:"w-5 h-5"})}),(0,s.jsx)("h3",{className:"text-2xl font-mirage text-white mb-2",children:"Editar Foto"}),(0,s.jsx)("p",{className:"text-xs text-white/60 font-light mb-6",children:"Modifica el t\xedtulo, la descripci\xf3n o la categor\xeda de la foto seleccionada."}),(0,s.jsxs)("form",{onSubmit:tg,className:"space-y-5",children:[(0,s.jsx)("div",{className:"w-full h-32 rounded-xl overflow-hidden bg-black/50 border border-white/10 relative",children:(0,s.jsx)("img",{src:es.src,alt:"Editing thumbnail",className:"w-full h-full object-cover"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-2 font-light",children:"Categor\xeda"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>ed("residential"),className:"py-3 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all ".concat("residential"===ec?"bg-[#6F724E] border-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 border-white/10 text-white/60 hover:text-white"),children:"Residencial"}),(0,s.jsx)("button",{type:"button",onClick:()=>ed("commercial"),className:"py-3 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all ".concat("commercial"===ec?"bg-[#6F724E] border-[#6F724E] text-white shadow-lg shadow-[#6F724E]/20":"bg-white/5 border-white/10 text-white/60 hover:text-white"),children:"Comercial"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo (Espa\xf1ol)"}),(0,s.jsx)("input",{type:"text",value:ei,onChange:e=>el(e.target.value),className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light",required:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo (Ingl\xe9s)"}),(0,s.jsx)("input",{type:"text",value:eo,onChange:e=>en(e.target.value),className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"Descripci\xf3n (Espa\xf1ol)"}),(0,s.jsx)("textarea",{rows:2,value:eh,onChange:e=>ex(e.target.value),placeholder:"Descripci\xf3n en espa\xf1ol...",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light resize-none"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"Descripci\xf3n (Ingl\xe9s)"}),(0,s.jsx)("textarea",{rows:2,value:em,onChange:e=>eu(e.target.value),placeholder:"Descripci\xf3n en ingl\xe9s...",className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] text-sm font-light resize-none"})]}),(0,s.jsxs)("div",{className:"flex justify-end gap-3 pt-4 border-t border-white/10",children:[(0,s.jsx)("button",{type:"button",onClick:()=>er(null),className:"px-5 py-3 rounded-xl border border-white/15 text-white/70 hover:text-white text-xs uppercase tracking-wider font-light transition-colors",children:"Cancelar"}),(0,s.jsx)("button",{type:"submit",disabled:ep,className:"px-6 py-3 rounded-xl bg-[#6F724E] hover:bg-[#5f6242] text-white text-xs uppercase tracking-wider font-medium shadow-lg shadow-[#6F724E]/25 transition-all flex items-center gap-2",children:ep?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}),"Guardando..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I,{className:"w-4 h-4"}),"Guardar Cambios"]})})]})]})]})})}),(0,s.jsx)(d.M,{children:eT&&(0,s.jsx)(c.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-md flex items-center justify-center p-6",children:(0,s.jsxs)(c.E.div,{initial:{scale:.95,y:20},animate:{scale:1,y:0},exit:{scale:.95,y:20},className:"w-full max-w-2xl bg-[#1C130D] border border-white/15 rounded-[32px] p-6 md:p-8 relative shadow-2xl max-h-[90vh] overflow-y-auto custom-scrollbar",children:[(0,s.jsx)("button",{onClick:()=>eU(null),className:"absolute top-6 right-6 p-2 rounded-full bg-white/5 hover:bg-white/15 text-white/70 hover:text-white transition-colors",children:(0,s.jsx)(C.Z,{className:"w-5 h-5"})}),(0,s.jsx)("h3",{className:"text-2xl font-mirage text-white mb-2",children:"Editar Colecci\xf3n"}),(0,s.jsx)("p",{className:"text-xs text-white/60 font-light mb-6",children:"Modifica los metadatos o gestiona las fotos de esta colecci\xf3n."}),(0,s.jsxs)("form",{onSubmit:tN,className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-2 font-light",children:"Categor\xeda"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>eB("residential"),className:"py-3 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all ".concat("residential"===eX?"bg-[#6F724E] border-[#6F724E] text-white":"bg-white/5 border-white/10 text-white/60"),children:"Residencial"}),(0,s.jsx)("button",{type:"button",onClick:()=>eB("commercial"),className:"py-3 px-4 rounded-xl border text-xs tracking-wider uppercase font-light transition-all ".concat("commercial"===eX?"bg-[#6F724E] border-[#6F724E] text-white":"bg-white/5 border-white/10 text-white/60"),children:"Comercial"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo de la Colecci\xf3n (Espa\xf1ol)"}),(0,s.jsx)("input",{type:"text",value:eq,onChange:e=>eV(e.target.value),className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white text-sm font-light",required:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-1.5 font-light",children:"T\xedtulo (Ingl\xe9s)"}),(0,s.jsx)("input",{type:"text",value:eW,onChange:e=>eH(e.target.value),className:"w-full px-4 py-3 bg-white/5 border border-white/15 rounded-xl text-white text-sm font-light"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-wrap justify-between items-center gap-2 mb-3",children:[(0,s.jsxs)("label",{className:"text-xs uppercase tracking-[0.2em] text-white/70 font-light",children:["Fotos de la Colecci\xf3n (",(null===(e=eT.images)||void 0===e?void 0:e.length)||0,")"]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[tt.length>0&&(0,s.jsxs)("button",{type:"button",onClick:()=>{e5([]),e1(!0)},className:"px-3 py-1.5 rounded-lg bg-white/10 hover:bg-white/20 border border-white/15 text-white text-xs font-light flex items-center gap-1.5 transition-colors",children:[(0,s.jsx)(b,{className:"w-3.5 h-3.5 text-[#6F724E]"}),"Seleccionar de la galer\xeda"]}),(0,s.jsxs)("label",{className:"cursor-pointer px-3 py-1.5 rounded-lg bg-[#6F724E] hover:bg-[#5f6242] text-white text-xs font-light flex items-center gap-1.5 transition-colors",children:[(0,s.jsx)(P,{className:"w-3.5 h-3.5"}),"Subir fotos",(0,s.jsx)("input",{type:"file",accept:"image/*",multiple:!0,onChange:tE,className:"hidden"})]})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-4 gap-3 max-h-48 overflow-y-auto pr-1 custom-scrollbar",children:null===(t=eT.images)||void 0===t?void 0:t.map((e,t)=>(0,s.jsxs)("div",{className:"relative aspect-square rounded-xl overflow-hidden bg-black/40 border border-white/10 group",children:[(0,s.jsx)("img",{src:e.src,alt:"Project image",className:"w-full h-full object-cover"}),(0,s.jsx)("button",{type:"button",onClick:()=>tF(t),className:"absolute top-1.5 right-1.5 p-1 rounded-full bg-red-500/80 hover:bg-red-600 text-white transition-colors",title:"Quitar foto",children:(0,s.jsx)(E,{className:"w-3.5 h-3.5"})})]},t))})]}),(0,s.jsxs)("div",{className:"flex justify-end gap-3 pt-4 border-t border-white/10",children:[(0,s.jsx)("button",{type:"button",onClick:()=>eU(null),className:"px-5 py-3 rounded-xl border border-white/15 text-white/70 hover:text-white text-xs uppercase tracking-wider font-light",children:"Cancelar"}),(0,s.jsxs)("button",{type:"submit",disabled:e$,className:"px-6 py-3 rounded-xl bg-[#6F724E] hover:bg-[#5f6242] text-white text-xs uppercase tracking-wider font-medium flex items-center gap-2",children:[e$?(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)(I,{className:"w-4 h-4"}),"Guardar Cambios"]})]})]})]})})}),(0,s.jsx)(d.M,{children:e2&&eT&&(0,s.jsx)(c.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-60 bg-black/85 backdrop-blur-md flex items-center justify-center p-6",children:(0,s.jsxs)(c.E.div,{initial:{scale:.95,y:20},animate:{scale:1,y:0},exit:{scale:.95,y:20},className:"w-full max-w-xl bg-[#1C130D] border border-white/15 rounded-[32px] p-6 md:p-8 relative shadow-2xl",children:[(0,s.jsx)("button",{onClick:()=>e1(!1),className:"absolute top-6 right-6 p-2 rounded-full bg-white/5 hover:bg-white/15 text-white/70 hover:text-white transition-colors",children:(0,s.jsx)(C.Z,{className:"w-5 h-5"})}),(0,s.jsx)("h3",{className:"text-xl font-mirage text-white mb-2",children:"Agregar Fotos de la Galer\xeda"}),(0,s.jsx)("p",{className:"text-xs text-white/60 font-light mb-6",children:"Selecciona fotograf\xedas ya existentes para agregarlas a esta colecci\xf3n."}),(0,s.jsx)("div",{className:"grid grid-cols-4 gap-3 max-h-72 overflow-y-auto pr-1 custom-scrollbar p-2 border border-white/10 rounded-2xl bg-black/30",children:tt.map(e=>{var t;let a=null===(t=eT.images)||void 0===t?void 0:t.some(t=>t.src===e.src),r=e4.some(t=>t.id===e.id);return(0,s.jsxs)("div",{onClick:()=>{a||e5(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},className:"relative aspect-square rounded-xl overflow-hidden border-2 transition-all ".concat(a?"opacity-30 cursor-not-allowed border-transparent":r?"border-[#6F724E] scale-95 cursor-pointer shadow-lg shadow-[#6F724E]/40":"border-white/10 hover:border-white/40 cursor-pointer"),children:[(0,s.jsx)("img",{src:e.src,alt:e.titleEs||e.title,className:"w-full h-full object-cover"}),r&&(0,s.jsx)("div",{className:"absolute inset-0 bg-[#6F724E]/40 flex items-center justify-center",children:(0,s.jsx)(j.Z,{className:"w-6 h-6 text-white drop-shadow-md"})}),a&&(0,s.jsx)("span",{className:"absolute bottom-1 left-1 right-1 text-[8px] bg-black/80 text-white/70 text-center py-0.5 rounded",children:"Ya en colecci\xf3n"})]},e.id)})}),(0,s.jsxs)("div",{className:"flex justify-between items-center mt-6 pt-4 border-t border-white/10",children:[(0,s.jsxs)("span",{className:"text-xs text-white/60 font-light",children:[e4.length," foto",1===e4.length?"":"s"," seleccionada",1===e4.length?"":"s"]}),(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>e1(!1),className:"px-4 py-2.5 rounded-xl border border-white/15 text-white/70 hover:text-white text-xs font-light",children:"Cancelar"}),(0,s.jsx)("button",{type:"button",disabled:0===e4.length,onClick:tk,className:"px-5 py-2.5 rounded-xl text-xs uppercase tracking-wider font-medium transition-all ".concat(0===e4.length?"bg-white/10 text-white/40 cursor-not-allowed":"bg-[#6F724E] hover:bg-[#5f6242] text-white shadow-lg shadow-[#6F724E]/25"),children:"Agregar a la Colecci\xf3n"})]})]})]})})})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{children:(0,s.jsx)("title",{children:"Admin Gallery - Iara Interiors"})}),(0,s.jsxs)("main",{className:"min-h-screen bg-[#1C130D] text-white flex items-center justify-center p-6 relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 w-96 h-96 bg-[#6F724E]/20 blur-[120px] rounded-full pointer-events-none"}),(0,s.jsxs)(c.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"w-full max-w-md bg-white/5 border border-white/10 rounded-[32px] p-8 md:p-10 backdrop-blur-xl shadow-2xl relative z-10",children:[(0,s.jsxs)("div",{className:"text-center mb-8",children:[(0,s.jsx)("div",{className:"w-16 h-16 rounded-full bg-[#6F724E]/20 border border-[#6F724E]/40 flex items-center justify-center mx-auto mb-4",children:(0,s.jsx)(x.Z,{className:"w-7 h-7 text-[#6F724E]"})}),(0,s.jsx)("h1",{className:"text-2xl md:text-3xl font-mirage tracking-wide text-white",children:"Admin Galer\xeda"}),(0,s.jsx)("p",{className:"text-xs text-white/60 font-light mt-2 tracking-wider uppercase",children:"Iara Interiors Panel"})]}),(0,s.jsxs)("form",{onSubmit:tm,className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs uppercase tracking-[0.2em] text-white/70 mb-2 font-light",children:"Contrase\xf1a de Acceso"}),(0,s.jsx)("input",{type:"password",value:L,onChange:e=>R(e.target.value),placeholder:"Ingrese contrase\xf1a",className:"w-full px-5 py-3.5 bg-white/5 border border-white/15 rounded-xl text-white placeholder-white/30 focus:outline-none focus:border-[#6F724E] transition-colors font-light text-sm",required:!0})]}),D&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-red-400 text-xs bg-red-500/10 p-3 rounded-lg border border-red-500/20",children:[(0,s.jsx)(u,{className:"w-4 h-4 flex-shrink-0"}),(0,s.jsx)("span",{children:D})]}),(0,s.jsx)("button",{type:"submit",disabled:O,className:"w-full py-4 bg-[#6F724E] hover:bg-[#5f6242] text-white font-medium text-xs tracking-[0.2em] uppercase rounded-xl transition-all duration-300 shadow-lg shadow-[#6F724E]/20 active:scale-[0.98] disabled:opacity-50 flex items-center justify-center gap-2",children:O?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Z,{className:"w-4 h-4 animate-spin"}),(0,s.jsx)("span",{children:"Verificando..."})]}):"Ingresar al Admin"})]}),(0,s.jsx)("div",{className:"mt-8 text-center",children:(0,s.jsxs)(n(),{href:"/gallery",className:"inline-flex items-center gap-2 text-xs text-white/50 hover:text-white transition-colors font-light",children:[(0,s.jsx)(p.Z,{className:"w-3.5 h-3.5"}),"Volver a la Galer\xeda p\xfablica"]})})]})]})]})}},9008:function(e,t,a){e.exports=a(7828)},9618:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(483).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},3518:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(483).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},5528:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(483).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},9687:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});
1let s=(0,a(483).Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},1943:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(483).Z)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])}},function(e){e.O(0,[2016,1205,7591,5806,2888,9774,179],function(){return e(e.s=2740)}),_N_E=e.O()}]);
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.