PageSourceSearch

https://www.landhi.com.ar/_next/static/chunks/pages/pro/proyectos-e252b0d7946b932e.js

js landhi.com.ar collected 2026-10-07 15:13:30 UTC 25,903 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6129],{86633:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===i){if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0!==(n=(function(){return a}).apply(t,[]))&&(e.exports=n)}()},46461:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},7936:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pro/proyectos",function(){return n(63248)}])},91003:function(e,t,n){"use strict";n.d(t,{$j:function(){return s.$j},AT:function(){return b},Af:function(){return s.Af},II:function(){return x},Jr:function(){return s.P2},Lv:function(){return j},N4:function(){return s.N4},Ph:function(){return f},QJ:function(){return k},Su:function(){return w},Wl:function(){return g},gx:function(){return m},mQ:function(){return y},p7:function(){return c},pm:function(){return s.pm},rs:function(){return v},u_:function(){return s.u_},ub:function(){return N},un:function(){return o},we:function(){return d}});var r=n(96736),a=n(89094);n(83861);var i=n(1306),l=n(29971),s=n(24622);function o(e){let{className:t="",...n}=e;return(0,r.jsx)(s.un,{className:"min-h-[44px] sm:min-h-0 ".concat(t),...n})}function d(e){let{title:t,description:n,right:a,footer:i,className:l="",bodyClassName:s="",id:o,muted:d=!1,children:c}=e;return(0,r.jsxs)("section",{id:o,className:"".concat(d?"bg-landhi-gray-3/60 dark:bg-gray-900/40":"bg-white dark:bg-gray-900"," border border-landhi-hairline dark:border-gray-800 rounded-landhi-md ").concat(l),children:[t||n||a?(0,r.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-3 sm:gap-4 px-6 pt-6 sm:px-8 sm:pt-7",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[t?(0,r.jsx)("h2",{className:"text-[16px] font-semibold text-landhi-ink dark:text-white m-0 leading-snug",style:{textWrap:"balance"},children:t}):null,n?(0,r.jsx)("p",{className:"text-[14px] sm:text-[13px] text-landhi-inkSoft dark:text-gray-400 mt-1 mb-0 leading-relaxed",children:n}):null]}),a?(0,r.jsx)("div",{className:"flex-none",children:a}):null]}):null,(0,r.jsx)("div",{className:"px-6 py-6 sm:px-8 sm:py-7 ".concat(s),children:c}),i?(0,r.jsx)("footer",{className:"px-6 py-4 sm:px-8 border-t border-landhi-hairline dark:border-gray-800 flex flex-wrap items-center justify-end gap-2 rounded-b-landhi-md",children:i}):null]})}function c(e){let{label:t,help:n,required:a,htmlFor:l,error:s,className:o="",wide:d=!1,children:c}=e;return(0,r.jsxs)("div",{className:"py-5 first:pt-0 last:pb-0 border-b last:border-b-0 border-landhi-hairline/70 dark:border-gray-800 md:grid md:grid-cols-[minmax(0,240px)_minmax(0,1fr)] md:gap-8 ".concat(o),children:[(0,r.jsxs)("div",{className:"mb-2 md:mb-0 md:pt-2",children:[t?(0,r.jsxs)("label",{htmlFor:l,className:"block text-[14px] sm:text-[13px] font-medium text-landhi-ink dark:text-gray-100",children:[t,a?(0,r.jsxs)("span",{className:"text-landhi-pink","aria-hidden":"true",children:[" ","*"]}):null]}):null,n?(0,r.jsx)("p",{className:"text-[14px] sm:text-[12.5px] text-landhi-inkSoft dark:text-gray-400 mt-0.5 mb-0 leading-relaxed",children:n}):null]}),(0,r.jsxs)("div",{className:d?"":"max-w-[560px]",children:[c,s?(0,r.jsxs)("p",{className:"flex items-center gap-1 text-[12.5px] text-red-600 dark:text-red-400 mt-1.5 mb-0",role:"alert",children:[(0,r.jsx)(i.Z,{className:"w-4 h-4 flex-none"}),s]}):null]})]})}let u="block w-full h-11 sm:h-10 rounded-landhi-sm border bg-white dark:bg-gray-800 text-landhi-ink dark:text-gray-100 placeholder-gray-400 px-3 text-[14px] shadow-none transition-colors focus:outline-none focus:ring-2 focus:ring-landhi-pink/40 focu
1s:border-landhi-pink",h="border-landhi-hairline dark:border-gray-700",p="border-red-400 dark:border-red-700",x=(0,a.forwardRef)(function(e,t){let{className:n="",invalid:a=!1,...i}=e;return(0,r.jsx)("input",{ref:t,"aria-invalid":a||void 0,className:"".concat(u," ").concat(a?p:h," ").concat(n),...i})}),m=(0,a.forwardRef)(function(e,t){let{className:n="",invalid:a=!1,rows:i=4,...l}=e;return(0,r.jsx)("textarea",{ref:t,rows:i,"aria-invalid":a||void 0,className:"".concat(u," h-auto py-2.5 leading-relaxed ").concat(a?p:h," ").concat(n),...l})}),f=(0,a.forwardRef)(function(e,t){let{className:n="",invalid:a=!1,children:i,...l}=e;return(0,r.jsx)("select",{ref:t,"aria-invalid":a||void 0,className:"".concat(u," pr-8 ").concat(a?p:h," ").concat(n),...l,children:i})}),g=(0,a.forwardRef)(function(e,t){let{prefix:n,className:a="",invalid:i=!1,...l}=e;return(0,r.jsxs)("div",{className:"flex h-[46px] sm:h-10 rounded-landhi-sm border bg-white dark:bg-gray-800 overflow-hidden focus-within:ring-2 focus-within:ring-landhi-pink/40 focus-within:border-landhi-pink ".concat(i?p:h," ").concat(a),children:[(0,r.jsx)("span",{className:"flex-none inline-flex items-center px-3 text-[13px] text-landhi-inkSoft dark:text-gray-400 bg-landhi-gray-3 dark:bg-gray-900 border-r border-landhi-hairline dark:border-gray-700 whitespace-nowrap select-none",children:n}),(0,r.jsx)("input",{ref:t,"aria-invalid":i||void 0,className:"flex-1 min-w-0 h-full px-3 text-[14px] bg-transparent text-landhi-ink dark:text-gray-100 placeholder-gray-400 focus:outline-none border-0",...l})]})});function b(e){let{value:t="",max:n}=e,a=(t||"").length,i=n&&a>n;return(0,r.jsxs)("div",{className:"text-right text-[12px] tabular-nums mt-1 ".concat(i?"text-red-600":"text-gray-400"),"aria-live":"polite",children:[a,n?" / ".concat(n):""]})}function v(e){let{checked:t,onChange:n,label:i,description:l,disabled:s=!1,id:o}=e,d=(0,a.useId)(),c=o||"sw".concat(d.replace(/:/g,""));return(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4 py-4 first:pt-0 last:pb-0 border-b last:border-b-0 border-landhi-hairline/70 dark:border-gray-800",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("label",{htmlFor:c,className:"block text-[14px] font-medium text-landhi-ink dark:text-gray-100 cursor-pointer",children:i}),l?(0,r.jsx)("p",{className:"text-[14px] sm:text-[12.5px] text-landhi-inkSoft dark:text-gray-400 mt-0.5 mb-0 leading-relaxed",children:l}):null]}
1),(0,r.jsx)("button",{id:c,type:"button",role:"switch","aria-checked":!!t,disabled:s,onClick:()=>n(!t),className:"relative flex-none inline-flex items-center justify-end h-11 w-16 sm:h-6 sm:w-11 -my-2.5 sm:my-0 rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-landhi-pink/40 disabled:opacity-50",children:(0,r.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-6 w-11 items-center rounded-full transition-colors ".concat(t?"bg-landhi-ink dark:bg-white":"bg-gray-300 dark:bg-gray-700"),children:(0,r.jsx)("span",{className:"inline-block h-5 w-5 transform rounded-full bg-white dark:bg-gray-900 shadow transition-transform ".concat(t?"translate-x-[22px]":"translate-x-0.5")})})})]})}function y(e){let{tabs:t,active:n,onChange:a,className:i=""}=e;return(0,r.jsx)("div",{role:"tablist",className:"flex gap-1 overflow-x-auto scrollbar-hide border-b border-landhi-hairline dark:border-gray-800 ".concat(i),children:t.map(e=>{let t=e.key===n;return(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":t,onClick:()=>a(e.key),className:"relative flex-none min-h-[44px] sm:min-h-0 px-3.5 py-2.5 text-[14px] sm:text-[13.5px] font-semibold whitespace-nowrap transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-landhi-pink/40 rounded-t-landhi-sm ".concat(t?"text-landhi-ink dark:text-white":"text-landhi-inkSoft dark:text-gray-400 hover:text-landhi-ink dark:hover:text-white"),children:[e.label,e.count?(0,r.jsx)("span",{className:"ml-1.5 text-[11.5px] tabular-nums text-gray-400",children:e.count}):null,(0,r.jsx)("span",{"aria-hidden":"true",className:"absolute left-2 right-2 -bottom-px h-[2px] rounded-full ".concat(t?"bg-landhi-pink":"bg-transparent")})]},e.key)})})}function j(e){let{dirty:t,saving:n=!1,onDiscard:a,onSave:i,text:l="Ten\xe9s cambios sin guardar",saveLabel:s="Guardar"}=e;return(0,r.jsx)("div",{"aria-hidden":!t,className:"fixed inset-x-0 bottom-0 z-40 lg:pl-[264px] transition-transform duration-200 ".concat(t?"translate-y-0":"translate-y-full pointer-events-none"),style:{paddingBottom:"env(safe-area-inset-bottom, 0px)"},children:(0,r.jsx)("div",{className:"mx-auto max-w-[1120px] px-4 sm:px-6 lg:px-8 pb-3",children:(0,r.jsxs)("div",{role:"status",className:"flex items-center gap-3 bg-landhi-ink dark:bg-white text-white dark:text-landhi-ink rounded-landhi-md shadow-landhi-lg px-4 py-2.5",children:[(0,r.jsx)("span",{className:"text-[13.5px] font-medium min-w-0 truncate",children:l}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-2 flex-none",children:[(0,r.jsx)("button",{type:"button",onClick:a,disabled:n,className:"min-h-[44px] sm:min-h-0 px-3 py-1.5 rounded-landhi-pill text-[14px] sm:text-[13px] font-semibold text-white/80 dark:text-landhi-ink/70 hover:text-white dark:hover:text-landhi-ink focus:outline-none focus-visible:ring-2 focus-visible:ring-white/50 disabled:opacity-50",children:"Descartar"}),(0,r.jsx)(o,{variant:"primary",size:"sm",onClick:i,loading:n,className:"!px-4 min-h-[44px] sm:min-h-0",children:s})]})]})})})}function w(e){let{items:t,className:n=""}=e;return(0,r.jsx)("ul",{className:"m-0 p-0 list-none space-y-2 ".concat(n),children:t.map(e=>(0,r.jsxs)("li",{className:"flex items-start gap-2.5 text-[14px] sm:text-[13.5px] text-landhi-ink dark:text-gray-200",children:[(0,r.jsx)(l.Z,{className:"w-4 h-4 mt-0.5 flex-none text-landhi-verde","aria-hidden":"true"}),(0,r.jsx)("span",{children:"string"==typeof e?e:e.text})]},"string"==typeof e?e:e.text))})}function k(e){let{children:t,className:n=""}=e;return(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-2 mb-5 ".concat(n),children:t})}function N(e){let{title:t,text:n,action:a,className:i=""}=e;return(0,r.jsxs)("div",{className:"text-center px-6 py-14 bg-white dark:bg-gray-900 border border-dashed border-landhi-hairline dark:border-gray-800 rounded-landhi-md ".concat(i),children:[(0,r.jsx)("h2",{className:"text-[17px] font-semibold text-landhi-ink dark:text-white m-0",style:{textWrap:"balance"},children:t}),n?(0,r.jsx)("p",{className:"text-[14px] text-landhi-inkSoft dark:text-gray-400 max-w-md mx-auto mt-1.5 mb-0 leading-relaxed",children:n}):null,a?(0,r.jsx)("div",{className:"mt-5",children:a}):null]})}},81089:function(e,t,n){"use strict";n.r(t),n.d(t,{getServer:function(){return r}});let r=e=>{{let e=window.location.hostname.includes(".ar")||window.location.hostname.includes("ar."),t=window.location.hostname.includes(".br")||window.location.hostname.includes("br.");return e?"https://www.landhi.com.ar":t?"https://www.landhi.com.br":"https://www.landhi.com.ar"}}},64124:function(e){"use strict";e.exports={isVideoFile:e=>(null==e?void 0:e.substr(0,e.indexOf("/")))==="video",getPathType:e=>e&&(null==e?void 0:e.includes("videos/"))?"video":"photo",getThumbnail:(e,t,n)=>{if("photo"===e)return"".concat(t).concat(n);{let e=n;
1return n.includes("e-sharpen")&&(e=n.replace(",e-sharpen","")),"".concat(t,"/ik-thumbnail.jpg").concat(e)}}}},95142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(98617)._(n(51731)),a=!1,i=()=>{a||(r.default.init("13ecec441cb55ebbbbbb11cb640fe5a3",{debug:!1,ignore_dnt:!0,persistence:"localStorage"}),a=!0)};e.exports={mixPanelTracking:(e,t)=>{i(),r.default.__loaded&&r.default.track(e,t)},mixPanelIdentify:e=>{i(),r.default.__loaded&&r.default.identify(e)}}},63248:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return k},default:function(){return N}});var r=n(96736),a=n(19292),i=n(91003),l=n(89094),s=n(83861),o=n.n(s),d=n(76541),c=n(58627),u=n(52405);let h=l.forwardRef(function({title:e,titleId:t,...n},r){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))});var p=n(89621),x=n(7270),m=n(32478),f=n(95836),g=n(21224),b=n(64124),v=n(95142),y=n(50007);function j(e){let{p:t,onDelete:n,canDrag:a}=e,l=t.attributes||{},s=function(e){var t,n,r,a;let i=null==e?void 0:null===(a=e.attributes)||void 0===a?void 0:null===(r=a.mainPhoto)||void 0===r?void 0:null===(n=r.data)||void 0===n?void 0:null===(t=n.attributes)||void 0===t?void 0:t.media;return(null==i?void 0:i.path)?(0,b.getThumbnail)(i.file_type||"photo","".concat("https://ik.imagekit.io/bedpw9jglo5/").concat(i.path),"?tr=w-640,h-480,fo-auto"):null}(t),d=l.totalProjectPhotos||0,c=[l.year,l.locationLabel].filter(Boolean).join(" \xb7 "),f="/pro/proyectos/".concat(t.id,"/general-information/"),g="/project/".concat(t.id,"/");return(0,r.jsxs)("article",{className:"group relative bg-white dark:bg-gray-900 border border-landhi-hairline dark:border-gray-800 rounded-landhi-md overflow-hidden flex flex-col transition-shadow hover:shadow-landhi-sm","data-project-id":t.id,children:[(0,r.jsx)(o(),{href:f,legacyBehavior:!0,children:(0,r.jsxs)("a",{className:"relative block w-full bg-landhi-chipBg dark:bg-gray-800 overflow-hidden no-underline",style:{aspectRatio:"4 / 3"},"aria-label":"Editar ".concat(l.name||"proyecto"),draggable:!1,children:[s?(0,r.jsx)("img",{src:s,alt:"",loading:"lazy",draggable:!1,className:"absolute inset-0 w-full h-full object-cover"}):(0,r.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-gray-400",children:(0,r.jsx)(u.Z,{className:"w-10 h-10"})}),(0,r.jsx)("span",{className:"absolute top-2 left-2",children:d||s?(0,r.jsx)(i.Af,{tone:"verde",children:"Publicado"}):(0,r.jsx)(i.Af,{tone:"ambar",children:"Sin fotos"})}),a?(0,r.jsx)("span",{className:"pro-drag-handle absolute top-1 right-1 w-11 h-11 sm:top-2 sm:right-2 sm:w-8 sm:h-8 rounded-full bg-white/90 dark:bg-gray-900/90 text-landhi-ink dark:text-gray-100 flex items-center justify-center shadow-landhi-sm cursor-grab active:cursor-grabbing opacity-100 sm:opacity-0 sm:group-hover:opacity-100 focus:opacity-100 transition-opacity",title:"Arrastr\xe1 para reordenar","aria-label":"Arrastr\xe1 para reordenar",onClick:e=>e.preventDefault(),children:(0,r.jsx)(h,{className:"w-4 h-4"})}):null]})}),(0,r.jsxs)("div",{className:"p-3.5 flex flex-col gap-1 flex-1",children:[(0,r.jsx)("h3",{className:"text-[14px] font-semibold text-landhi-ink dark:text-white m-0 leading-snug line-clamp-2",children:l.name||"Sin nombre"}),(0,r.jsx)("div",{className:"text-[12.5px] text-landhi-inkSoft dark:text-gray-400 truncate tabular-nums",children:c||"Sin a\xf1o ni ubicaci\xf3n"}),(0,r.jsxs)("div",{className:"text-[12.5px] text-landhi-inkSoft dark:text-gray-400 tabular-nums",children:[d," foto",1===d?"":"s"]}),(0,r.jsxs)("div",{className:"mt-2 pt-2 border-t border-landhi-hairline/70 dark:border-gray-800 flex flex-wrap items-center gap-x-0.5 gap-y-0 -ml-1",children:[(0,r.jsx)(o(),{href:f,legacyBehavior:!0,children:(0,r.jsxs)("a",{className:"inline-flex items-center gap-1 min-h-[44px] sm:min-h-0 px-2 py-1 rounded-landhi-sm text-[13px] font-semibold text-landhi-ink dar
1k:text-gray-100 hover:bg-landhi-chipBg dark:hover:bg-gray-800 no-underline",children:[(0,r.jsx)(p.Z,{className:"w-4 h-4"})," Editar"]})}),(0,r.jsxs)("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 min-h-[44px] sm:min-h-0 px-2 py-1 rounded-landhi-sm text-[13px] font-semibold text-landhi-inkSoft dark:text-gray-300 hover:bg-landhi-chipBg dark:hover:bg-gray-800 no-underline",children:[(0,r.jsx)(x.Z,{className:"w-4 h-4"})," Ver"]}),(0,r.jsxs)("button",{type:"button",onClick:()=>n(t),className:"ml-auto inline-flex items-center gap-1 min-h-[44px] sm:min-h-0 px-2 py-1 rounded-landhi-sm text-[13px] font-semibold text-landhi-inkSoft dark:text-gray-400 hover:text-red-700 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-950/40 focus:outline-none focus-visible:ring-2 focus-visible:ring-landhi-pink/40","aria-label":"Eliminar ".concat(l.name||"proyecto"),children:[(0,r.jsx)(m.Z,{className:"w-4 h-4"})," Eliminar"]})]})]})]})}function w(e){let{customerId:t,userId:n}=e,a=(0,i.pm)(),s=(0,i.N4)(),u=(0,d.useQueryClient)(),{data:h,isLoading:p,error:x}=(0,d.useQuery)(["projectsList",t],()=>(0,g.getProjectsList)(t,150,""),{refetchOnWindowFocus:!1,cacheTime:0}),m=(0,l.useMemo)(()=>{var e;return((null==h?void 0:null===(e=h.projects)||void 0===e?void 0:e.data)||[]).filter(e=>{var t;return(null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.state)!=="in-progress"})},[h]),[b,w]=(0,l.useState)([]),[k,N]=(0,l.useState)(!1),S=(0,l.useRef)(null);(0,l.useEffect)(()=>{w(m)},[m]),(0,l.useEffect)(()=>{n&&(0,v.mixPanelTracking)("upload_projects_view",{user_mixpanelId:n})},[n]);let E=e=>{e.length===m.length&&e.some((e,t)=>{var n;return e.id!==(null===(n=m[t])||void 0===n?void 0:n.id)})&&(clearTimeout(S.current),S.current=setTimeout(async()=>{N(!0);let n=e.map((t,n)=>({id:t.id,sortOrder:e.length-1-n})),r=await (0,g.saveNewProjectsOrder)(n);N(!1),(null==r?void 0:r.message)?(a("Orden guardado."),u.invalidateQueries(["projectsList",t])):(a("No pudimos guardar el orden. Prob\xe1 de nuevo.","error"),w(m))},600))},_=async e=>{var n;if(!await s({title:"Eliminar proyecto",text:'Se elimina "'.concat((null===(n=e.attributes)||void 0===n?void 0:n.name)||"este proyecto",'" con todas sus fotos. Esta acci\xf3n no se puede deshacer.'),confirmText:"Eliminar",danger:!0}))return;let r=await (0,g.deleteProject)(e.id);r&&!r.messageError?(a("Proyecto eliminado."),u.invalidateQueries(["projectsList",t])):a("No pudimos eliminar el proyecto.","error")};if(x)return(0,r.jsx)(i.ub,{title:"No pudimos cargar tus proyectos",text:"Recarg\xe1 la p\xe1gina en unos segundos."});let L=b.length>1;return(0,r.jsxs)("div",{children:[(0,r.jsxs)(i.QJ,{children:[(0,r.jsx)(o(),{href:y.Bi.proyectoNuevo,legacyBehavior:!0,children:(0,r.jsxs)("a",{className:"inline-flex items-center gap-2 min-h-[44px] sm:min-h-0 px-4 py-2.5 rounded-landhi-pill text-[13.5px] font-semibold bg-landhi-pink text-white hover:brightness-95 no-underline focus:outline-none focus-visible:ring-2 focus-visible:ring-landhi-pink/50",children:[(0,r.jsx)(f.Z,{className:"w-4 h-4","aria-hidden":"true"})," Subir proyecto"]})}),b.length?(0,r.jsxs)("span",{className:"text-[13px] text-landhi-inkSoft dark:text-gray-400 tabular-nums ml-1",children:[b.length," proyecto",1===b.length?"":"s",L?" \xb7 arrastr\xe1 para cambiar el orden en tu perfil":""]}):null,k?(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[12.5px] text-gray-400",children:[(0,r.jsx)(i.$j,{className:"w-3.5 h-3.5"})," Guardando orden…"]}):null]}),p?(0,r.jsx)("div",{className:"grid grid-cols-1 min-[420px]:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-4",children:[0,1,2,3].map(e=>(0,r.jsxs)("div",{className:"rounded-landhi-md border border-landhi-hairline dark:border-gray-800 overflow-hidden animate-pulse",children:[(0,r.jsx)("div",{className:"bg-landhi-chipBg dark:bg-gray-800",style:{aspectRatio:"4 / 3"}}),(0,r.jsxs)("div",{className:"p-3.5 space-y-2",children:[(0,r.jsx)("div",{className:"h-3.5 w-2/3 rounded bg-landhi-chipBg dark:bg-gray-800"}),(0,r.jsx)("div",{className:"h-3 w-1/2 rounded bg-landhi-chipBg dark:bg-gray-800"})]})]},e))}):b.length?(0,r.jsx)(c.ReactSortable,{list:b,setList:e=>{w(e),E(e)},animation:180,handle:L?".pro-drag-handle":void 0,disabled:!L,className:"grid grid-cols-1 min-[420px]:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-4",children:b.map(e=>(0,r.jsx)(j,{p:e,onDelete:_,canDrag:L},e.id))}
1):(0,r.jsx)(i.ub,{title:"Todav\xeda no publicaste ning\xfan proyecto",text:"Los perfiles con proyectos reciben hasta 6\xd7 m\xe1s visitas que los que no tienen. Sub\xed tu primera obra con fotos, ubicaci\xf3n y una descripci\xf3n corta.",action:(0,r.jsx)(o(),{href:y.Bi.proyectoNuevo,legacyBehavior:!0,children:(0,r.jsxs)("a",{className:"inline-flex items-center gap-2 min-h-[44px] sm:min-h-0 px-5 py-2.5 rounded-landhi-pill text-[13.5px] font-semibold bg-landhi-pink text-white hover:brightness-95 no-underline",children:[(0,r.jsx)(f.Z,{className:"w-4 h-4","aria-hidden":"true"})," Subir mi primer proyecto"]})})})]})}var k=!0;function N(e){var t,n;let{sessionSSR:l}=e;return(0,r.jsx)(a.ZP,{user:null==l?void 0:l.user,active:"proyectos",children:(0,r.jsx)(i.Jr,{children:(0,r.jsx)(w,{customerId:(null==l?void 0:null===(t=l.user)||void 0===t?void 0:t.id)||"",userId:null==l?void 0:null===(n=l.user)||void 0===n?void 0:n.id})})})}},21224:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(98617)._(n(46461)),a=n(81089),i=async(e,t,n,i)=>{let l=(0,a.getServer)(),s=(null==i?void 0:i.length)&&void 0!==i?"&accessIds=".concat(i.join(",")):"",o="".concat(l,"/api/projects/all?id=").concat(e,"&pageSize=").concat(t,"&type=").concat(n).concat(s);try{let e=await (0,r.default)(o,{method:"GET",headers:{"Content-type":"application/json"}});return await e.json()}catch(e){return console.log(e.message),e}},l=async e=>{let t=(0,a.getServer)(),n="".concat(t,"/api/projects/explore?pageSize=").concat(e);try{let e=await (0,r.default)(n,{method:"GET",headers:{"Content-type":"application/json"}});return await e.json()}catch(e){return console.log(e.message),e}},s=async(e,t)=>{let n=(0,a.getServer)();if(""===e)return{data:{proyect:[]}};{let a="".concat(n,"/api/projects/").concat(e,"?type=").concat(t);try{let e=await (0,r.default)(a,{method:"GET",headers:{"Content-type":"application/json"}});return await e.json()}catch(e){return console.log(e.message),e}}},o=async e=>{let t=(0,a.getServer)();try{let n=await (0,r.default)("".concat(t,"/api/projects/upload"),{method:"POST",body:JSON.stringify(e),headers:{"Content-type":"application/json"}});return await n.json()}catch(e){return console.log(e.message),e}},d=async e=>{let t=(0,a.getServer)(),n="".concat(t,"/api/projects/").concat(e,"/delete");try{let e=await (0,r.default)(n,{method:"DELETE",headers:{"Content-type":"application/json"}});return await e.json()}catch(e){return console.log(e.message),e}},c=async(e,t)=>{let n=(0,a.getServer)(),i="".concat(n,"/api/projects/").concat(t,"/edit");try{let t=await (0,r.default)(i,{method:"PUT",body:JSON.stringify(e),headers:{"Content-type":"application/json"}});return await t.json()}catch(e){return console.log(e.message),e}},u=async e=>{let t=(0,a.getServer)(),n="".concat(t,"/api/projects/").concat(e,"/delete/image");try{let e=await (0,r.default)(n,{method:"DELETE",headers:{"Content-type":"application/json"}});return await e.json()}catch(e){return console.log(e.message),e}},h=async e=>{let t=(0,a.getServer)();try{let n=await (0,r.default)("".concat(t,"/api/projects/order"),{method:"POST",body:JSON.stringify(e),headers:{"Content-type":"application/json"}});return await n.json()}catch(e){return console.log(e.message),e}};e.exports={getProjectsList:i,getProjectInfo:s,uploadNewProject:o,editProject:c,deleteMediaProject:u,saveNewProjectsOrder:h,deleteProject:d,getExploreProjects:l}},95836:function(e,t,n){"use strict";var r=n(89094);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))});t.Z=a},61649:function(e,t,n){"use strict";var r=n(89094);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=a},1306:function(e,t,n){"use strict";var r=n(89094);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75
1a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))});t.Z=a},32478:function(e,t,n){"use strict";var r=n(89094);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))});t.Z=a}},function(e){e.O(0,[3692,3861,2735,3644,5266,7748,9292,4622,2888,9774,179],function(){return e(e.s=7936)}),_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.