PageSourceSearch

https://space-pal.com/_next/static/chunks/pages/[locale]/service/[id]-9626156e4dab78a6.js

js space-pal.com collected 2026-10-04 02:58:55 UTC 32,032 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fbe470ef-5c85-486d-9d92-917a9337f623",e._sentryDebugIdIdentifier="sentry-dbid-fbe470ef-5c85-486d-9d92-917a9337f623")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7764],{90204:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/service/[id]",function(){return l(17644)}])},11820:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});let i={src:"/_next/static/media/pelotita.50b5e112.png",height:2e3,width:2e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEXH+IPM/YZlZGXA7n2033apznR3hmJxc2+bwGWPqWpLTUomLB0t9m//AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAM0lEQVR4nC2LWw4AIAjDykB83f++RvRna9IUALsD5vG+SVmUkpqBp/oFG3v1WSrCf1X1ARBDAIFR6j75AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},53308:(e,t,l)=>{"use strict";l.d(t,{p:()=>n});var i=l(74848);let n=e=>{let{className:t=""}=e;return(0,i.jsx)("div",{className:"animate-pulse bg-gray-100 h-10 w-full rounded-lg ".concat(t)})}},62568:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var i=l(74848),n=l(29965),o=l.n(n);l(96540);var s=l(88746),a=l(30063);let r="https://spacepal-files-prd.s3.us-east-1.amazonaws.com/assets/placeholder.png",c=e=>{var t,l,n;let{images:c,title:d,onClick:u,className:p}=e,m=(0,s.L)(c),v=c.length&&(null===(t=(0,s.o)(c.filter(e=>1!=e.priority&&e.id!=m.id)))||void 0===t?void 0:t.slice(0,4).map((e,t,l)=>{let i=t===l.length-1;return{...e,isLastElement:i}}));return(0,i.jsxs)("div",{className:"md:grid grid-rows-2 grid-cols-4 gap-2 py-4 grid-flow-col-dense w-full h-[520px] hidden",children:[(0,i.jsx)("div",{className:"w-full row-span-2 col-span-2 rounded-lg overflow-auto",children:(0,i.jsx)(o(),{onClick:u,alt:"".concat(d,"-0"),className:"block object-cover object-center w-full h-full",src:(null==m?void 0:null===(l=m.file)||void 0===l?void 0:l.path)?(0,a.y)({src:null==m?void 0:null===(n=m.file)||void 0===n?void 0:n.path,width:1e3,height:300,quality:95}):r,width:600,height:600,priority:!0})}),(null==v?void 0:v.length)&&v.map((e,t)=>{var l,n,s,c;return e.isLastElement||e.file.path.endsWith(".mp4")?!e.isLastElement&&e.file.path.endsWith(".mp4")?(0,i.jsx)("div",{className:"overflow-clip",children:(0,i.jsx)("video",{className:"h-full w-full object-cover rounded-lg video-with-poster",src:e.file.path,muted:!0,autoPlay:!0,height:300,width:300,loop:!0,playsInline:!0,defaultMuted:!0},t)},t):(0,i.jsxs)("div",{className:"overflow-hidden cursor-pointer  relative group h-full rounded-lg",onClick:u,children:[(0,i.jsx)("div",{className:" opacity-100 transition duration-300 ease-in-out cursor-pointer absolute bg-transparent-black text-white h-full w-full",children:(0,i.jsx)("div",{className:"absolute transform-gpu opacity-100 translate-y-0 transform transition duration-300 ease-in-out w-full top-1/3",children:(0,i.jsx)("p",{className:"text-center text-4xl",children:"+"})})}),(0,i.jsx)(o(),{alt:"gallery",className:"block object-cover object-center w-full h-full ",src:(null==e?void 0:null===(l=e.file)||void 0===l?void 0:l.path)?(0,a.y)({src:null==e?void 0:null===(n=e.file)||void 0===n?void 0:n.path,width:1e3,height:300,quality:85}):r,width:300,height:300})]},e.id):(0,i.jsx)("div",{onClick:u,className:"rounded-lg overflow-auto",children:(0,i.jsx)(o(),{alt:"".concat(d,"-").concat(t+1),className:"block object-cover object-center w-full h-full ",src:(null==e?void 0:null===(s=e.file)||void 0===s?void 0:s.path)?(0,a.y)({src:null==e?void 0:null===(c=e.file)||void 0===c?void 0:c.path,width:1e3,height:300,quality:95}):r,width:300,height:300})},e.id)})]})}},1630:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var i=l(74848);l(96540);var n=l(30063),o=l(46874);l(79690),l(31576),l(92598);var s=l(58943),a=l(42669);let r=e=>{let{images:t,onClick:l,title:r}=e,c=null==t?void 0:t.map(e=>({url:e.file.path,priority:e.priority})).sort((e,t)=>(null==e?void 0:e.priority)-(null==t?void 0:t.priority));return(null==c?void 0:c.length)>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"max-w-[1400px] h-[450px] w-full sm:hidden",children:(0,i.jsx)(o.RC,{slidesPerView:1,pagination:{clickable:!0,dynamicBullets:!0,dynamicMainBullets:5},loop:!0,modules:[s.Vx,s.dK],className:"w-full max-w-container custom-swiper h-full",children:(0,a.on)(c).map((e,t)=>(0,i.jsx)(o.qr,{children:e.url.endsWith(".mp4")?(0,i.jsx)("video",{src:e.url,className:"w-full object-cover video-with-poster rounded-xl h-full",autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,defaultMuted:!0,onClick:l}):(0,i.jsx)("img",{src:(0,n.y)({src:e.url,width:1e3,height:300,quality:95}),alt:null!=r?r:"Slide",className:"w-full object-cover h-full video-with-poster",onClick:l})},t))})})})}},10777:(e,t,l)=>{"use strict";l.d(t,{c:()=>n});var i=l(74848);let n=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"sm:hidden animate-pulse bg-gray-100 h-80 w-full"}),(0,i.jsx)("div",{className:"hidden sm:block animate-pulse bg-gray-100 h-80 w-full m-5 rounded-md"})]})},69640:(e,t,l)=>{"use strict";l.d(t,{f:()=>n});var i=l(74848);let n=()=>(0,i.jsx)("div",{className:"animate-pulse bg-gray-100 h-10 w-1/2 rounded-lg"})},99064:(e,t,l)=>{"use strict";l.d(t,{A:()=>b});var i=l(74848),n=l(18778),o=l(96540);let s=[{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]}];var a=l(51548);function r(e){let t=(0,o.useRef)();return d(e,t.current)||(t.current=e),t.current}let c=e=>null!=e&&"object"==typeof e&&Number.isFinite(e.lat)&&Number.isFinite(e.lng),d=(0,a.createCustomEqual)(e=>({areObjectsEqual:(e,t)=>c(e)||e instanceof google.maps.LatLng||c(t)||t instanceof google.maps.LatLng?new google.maps.LatLng(e).equals(new google.maps.LatLng(t)):(0,a.deepEqual)(e,t)}));function u(e){var t,l;let{className:n,onClick:a,onIdle:c,children:d,...u}=e,p=(0,o.useRef)(null),[m,v]=(0,o.useState)();return(0,o.useEffect)(()=>{p.current&&void 0===m&&v(new window.google.maps.Map(p.current,{styles:s}))},[p,m]),t=()=>{m&&m.setOptions(u)},l=[m,u],(0,o.useEffect)(t,l.map(r)),(0,o.useEffect)(()=>{m&&(["click","idle"].forEach(e=>google.maps.event.clearListeners(m,e)),a&&m.addListener("click",a),c&&m.addListener("idle",()=>c(m)))},[m,a,c]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:p,className:n}),o.Children.map(d,e=>{if((0,o.isValidElement)(e))return(0,o.cloneElement)(e,{map:m})})]})}var p=l(40961);function m(e){let{position:t,pane:l="floatPane",map:i,zIndex:n,children:s,moveCenter:a=""}=e,r=(0,o.useMemo)(()=>{let e=document.createElement("div");return e.style.position="absolute",e.style.marginLeft=a,e.style.marginTop=a,e},[]),c=(0,o.useMemo)(()=>(function(e,t,l){class i extends google.maps.OverlayView{onAdd(){var e;let t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null==t||t.appendChild(this.container)}draw(){let e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.container.style.transform="translate(".concat(e.x,"px, ").concat(e.y,"px)"))}onRemove(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)}constructor(e,t,l){super(),this.container=e,this.pane=t,this.position=l}}return new i(e,t,l)})(r,l,t),[r,l,t]);return(0,o.useEffect)(()=>(null==c||c.setMap(i),()=>null==c?void 0:c.setMap(null)),[i,c]),(0,o.useEffect)(()=>{r.style.zIndex="".concat(n)},[n,r]),(0,p.createPortal)(s,r)}var v=l(8338),h=l(83149);function g(e){let{space:t,map:l,highlight:n,onClick:o,hoverMarker:s,approxLocation:a=!1}=e;return l&&(0,i.jsx)(m,{position:{lat:parseFloat(null==t?void 0:t.latitude),lng:parseFloat(null==t?void 0:t.longitude)},map:l,zIndex:n?99:0,children:(0,i.jsx)(v.P.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{delay:.3*Math.random()}},exit:{opacity:0},transition:{type:"spring",stiffness:400,damping:20},children:t.id===s?(0,i.jsx)("div",{className:"shadow-md rounded-full w-6 h-6 ",onClick:()=>o(t),children:(0,i.jsx)(h.A,{iconName:"MARKER_MAP",className:"fill-primary-100 stroke-black"})}):a?(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)("div",{className:"rounded-full bg-secondary-200 w-32 h-32 flex items-center justify-center bg-opacity-50",onClick:()=>o(t),children:(0,i.jsx)("div",{className:"rounded-full bg-secondary-300 w-16 h-16 flex items-center justify-center bg-opacity-70"})})]}):(0,i.jsx)("div",{className:"shadow-md rounded-full w-6 h-6 ",onClick:()=>o(t),children:(0,i.jsx)(h.A,{iconName:"MARKER_MAP",className:"fill-secondary-300 stroke-black"})})})})}var x=l(42503);function f(e){var t,l;let{space:n,map:o,highlight:s,onClick:a,showTooltip:r=!1}=e;return(0,i.jsx)(i.Fragment,{children:o&&(0,i.jsx)(m,{position:{lat:parseFloat(null===(t=n.address)||void 0===t?void 0:t.latitude),lng:parseFloat(null===(l=n.address)||void 0===l?void 0:l.longitude)},map:o,zIndex:s?99:0,moveCenter:"-64px",children:(0,i.jsx)(v.P.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{delay:.3*Math.random()}},exit:{opacity:0},transition:{type:"spring",stiffness:400,damping:20},className:"flex flex-col items-center",children:(0,i.jsx)("div",{className:"rounded-full bg-secondary-200 w-32 h-32 flex items-center justify-center bg-opacity-50",onClick:()=>a(n),children:r?(0,i.jsxs)("a",{"data-tooltip-id":"eye-tooltip","data-tooltip-content":"Vamos a compartir tu ubicaci\xf3n aproximada.","data-tooltip-place":"bottom",target:"_blank",id:"space_card",className:"text-lg",children:[(0,i.jsx)(x.m_,{id:"eye-tooltip",style:{backgroundColor:"rgb(255, 255, 255)",color:"#000000",borderRadius:"10px"}}),(0,i.jsx)("div",{className:"rounded-full bg-secondary-300 w-16 h-16 flex items-center justify-center bg-opacity-70",onClick:()=>a(n)})," "]}):(0,i.jsx)("div",{className:"rounded-full bg-secondary-300 w-16 h-16 flex items-center justify-center bg-opacity-70",onClick:()=>a(n)})})})})})}let y=e=>e===n.Status.FAILURE?(0,i.jsx)("p",{children:"failed"}):(0,i.jsx)("p",{children:"loading..."});function b(e){let{apiKey:t,onClick:l,onIdle:o,zoom:s,center:a,markers:r,onMarkerClick:c,highlightedMarkerId:d,zoomEnabled:p=!0,showTooltip:m=!1,showAsSingleMarker:v=!1,hoverMarker:h,cameraControl:x=!1,className:b="",spaceCreation:j=!1}=e,w=null==r?void 0:r.filter(e=>{var t,l;return parseFloat(null==e?void 0:e.latitude)&&parseFloat(null==e?void 0:e.longitude)||parseFloat(null==e?void 0:null===(t=e.address)||void 0===t?void 0:t.latitude)&&parseFloat(null==e?void 0:null===(l=e.address)||void 0===l?void 0:l.longitude)});return(0,i.jsxs)("div",{className:"relative h-full w-full ".concat(b),children:[(0,i.jsx)(n.Wrapper,{apiKey:t,render:y,children:(0,i.jsx)(u,{scrollwheel:p,disableDoubleClickZoom:!p,className:"h-full w-full outline-none ".concat(b),center:a,zoom:s,minZoom:2,maxZoom:18,onIdle:o,onClick:l,fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,zoomControl:j,clickableIcons:!1,draggable:j||p,scaleControl:!0,keyboardShortcuts:!1,gestureHandling:"greedy",cameraControl:x,children:!j&&(()=>{if((null==w?void 0:w.length)===1&&v){var e,t;return(0,i.jsx)(f,{space:w.shift(),highlight:(null===(e=w.shift())||void 0===e?void 0:e.id)===d,onClick:()=>c,showTooltip:m},null===(t=w.shift())||void 0===t?void 0:t.id)}return null==w?void 0:w.map(e=>(0,i.jsx)(g,{space:e,highlight:e.id===d,hoverMarker:h,onClick:c,approxLocation:v},e.id))})()})}),j&&(0,i.jsx)("div",{className:"absolute top-1/2 left-1/2 z-10 -translate-x-1/2 -translate-y-[100%] pointer-events-none",children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#FF0000",width:"36",height:"36",children:(0,i.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5 14.5 7.62 14.5 9 13.38 11.5 12 11.5z"})})})]})}},17644:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>P,default:()=>I});var i=l(74848),n=l(53295),o=l(52149),s=l(62568),a=l(86715),r=l(96540),c=l(99064),d=l(29965),u=l.n(d),p=l(43051),m=l(1630),v=l(91106),h=l.n(v),g=l(10777),x=l(69640),f=l(53308),y=l(10174),b=l(13368),j=l.n(b),w=l(11820),N=l(2096),k=l(20181),A=l(30063),R=l(97916),C=l(79862),S=l(93359);let D=e=>{let{images:t,isOpen:l,onClose:n,startIndex:o}=e,[s,a]=(0,r.useState)(o),[c,d]=(0,r.useState)(1),[p,m]=(0,r.useState)({x:0,y:0}),[v,h]=(0,r.useState)(!1),[g,x]=(0,r.useState)({x:0,y:0}),[f,y]=(0,r.useState)(!1);(0,r.useEffect)(()=>{a(o),d(1),m({x:0,y:0})},[o]),(0,r.useEffect)(()=>{if(!l)return;let e=e=>{"ArrowLeft"===e.key&&(e.preventDefault(),a(e=>0===e?t.length-1:e-1),d(1),m({x:0,y:0})),"ArrowRight"===e.key&&(e.preventDefault(),a(e=>e===t.length-1?0:e+1),d(1),m({x:0,y:0})),"Escape"===e.key&&(e.preventDefault(),n())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[l,t.length,n]);let b=e=>{e.stopPropagation(),a(e=>0===e?t.length-1:e-1),d(1),y(!0),m({x:0,y:0})},j=e=>{e.stopPropagation(),a(e=>e===t.length-1?0:e+1),d(1),y(!0),m({x:0,y:0})},k=e=>{c>1&&(h(!0),x({x:e.clientX-p.x,y:e.clientY-p.y}))},R=e=>{v&&c>1&&m({x:e.clientX-g.x,y:e.clientY-g.y})},C=()=>{h(!1)};return l?(0,i.jsxs)("div",{className:"fixed inset-0 bg-black bg-opacity-90 z-[100] flex items-center justify-center",onClick:e=>{e.stopPropagation(),n()},children:[(0,i.jsx)("button",{className:"absolute top-4 right-4 text-white p-2 z-[101]",onClick:e=>{e.stopPropagation(),n()},children:(0,i.jsx)(S.uv5,{className:"h-8 w-8 z-[101]"})}),(0,i.jsx)("button",{className:"absolute left-4 text-white p-2 z-[101]",onClick:e=>{e.stopPropagation(),b(e)},children:(0,i.jsx)(N.YJP,{className:"h-8 w-8"})}),(0,i.jsx)("button",{className:"absolute right-4 text-white p-2 z-[101]",onClick:e=>{e.stopPropagation(),j(e)},children:(0,i.jsx)(N.vKP,{className:"h-8 w-8"})}),(0,i.jsxs)("div",{className:"relative max-w-[90vw] max-h-[90vh] overflow-hidden",onMouseDown:e=>{e.stopPropagation(),k(e)},onMouseMove:e=>{e.stopPropagation(),R(e)},onMouseUp:e=>{e.stopPropagation(),C()},onMouseLeave:e=>{e.stopPropagation(),C()},children:[f&&(0,i.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black bg-opacity-50 z-[102]",children:(0,i.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-4 border-white border-t-transparent"})}),(0,i.jsx)(u(),{src:(0,A.y)({src:t[s],width:1200,height:800,quality:95})||w.A,alt:"Image ".concat(s+1),className:"w-auto h-auto max-w-full max-h-[90vh] transition-transform duration-100",style:{transform:"scale(".concat(c,") translate(").concat(p.x,"px, ").concat(p.y,"px)"),cursor:v?"grabbing":c>1?"grab":"default"},width:1200,height:800,onClick:e=>e.stopPropagation(),onLoadingComplete:()=>y(!1)})]}),(0,i.jsxs)("div",{className:"absolute bottom-4 left-1/2 transform -translate-x-1/2 text-white",children:[s+1," / ",t.length]})]}):null};var P=!0;function I(e){var t,l,d,v,b,N;let S=(0,a.useRouter)(),{id:P}=S.query,[I,F]=(0,r.useState)(0),[E,L]=(0,r.useState)(!1),{isOpen:M,onOpen:O,onClose:_,onOpenChange:z}=(0,R.j)(),{isOpen:T,onOpen:q,onClose:B,onOpenChange:V}=(0,R.j)(),{isOpen:W,onOpen:K,onClose:U,onOpenChange:G}=(0,R.j)(),[X,J]=(0,r.useState)(14.5),Y=e.serviceFind,[Z,H]=(0,r.useState)(!1),[Q,$]=(0,r.useState)(!0);(0,r.useEffect)(()=>{H(!0),e.serviceFind&&$(!1)},[e.serviceFind]);let ee=()=>{let e=encodeURIComponent("I'm interested in hiring ".concat(null==Y?void 0:Y.title,". Link: ").concat(window.location.href));window.open("https://wa.me/5492944289059?text=".concat(e),"_blank")},et=(null==Y?void 0:null===(t=Y.images)||void 0===t?void 0:t.map((e,t)=>({id:t.toString(),file:{path:e},priority:t})))||[];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(j(),{children:[(0,i.jsx)("title",{children:(null==Y?void 0:Y.title)?Y.title.concat(" - SpacePal Services"):"Servicio - SpacePal Services"}
1,"title"),(0,i.jsx)("meta",{name:"description",content:(null==Y?void 0:Y.description)||"Service: ".concat(null==Y?void 0:Y.title)}),(0,i.jsx)("meta",{name:"og:title",property:"og:title",content:"".concat(null==Y?void 0:Y.title," - SpacePal Services")},"og:title"),(0,i.jsx)("meta",{property:"og:type",name:"og:type",content:"website"},"og:type"),(0,i.jsx)("meta",{property:"og:url",name:"og:url",content:"".concat("https://space-pal.com/").concat(e.locale,"/service/").concat(null==Y?void 0:Y.id)},"og:url"),(0,i.jsx)("meta",{name:"og:description",property:"og:description",content:null==Y?void 0:Y.description},"og:description"),(0,i.jsx)("meta",{name:"og:image",property:"og:image",content:(null==Y?void 0:null===(l=Y.images)||void 0===l?void 0:l[0])||""},"og:image"),(null==Y?void 0:Y.latitude)&&(null==Y?void 0:Y.longitude)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"geo.region",content:null==Y?void 0:Y.country}),(0,i.jsx)("meta",{name:"geo.position",content:"".concat(null==Y?void 0:Y.latitude,";").concat(null==Y?void 0:Y.longitude)}),(0,i.jsx)("meta",{name:"ICBM",content:"".concat(null==Y?void 0:Y.latitude,", ").concat(null==Y?void 0:Y.longitude)})]}),(0,i.jsx)("link",{rel:"canonical",href:"".concat("https://space-pal.com/").concat(e.locale,"/service/").concat(null==Y?void 0:Y.id)}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e.jsonLd)}})]}),Z&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.A,{className:"hidden sm:block",onSearch:()=>{S.replace("/")}}),Q&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("main",{className:"sm:hidden px-0 md:px-10 xl:px-10",children:[(0,i.jsx)(g.c,{}),(0,i.jsx)("div",{className:"p-4",children:(0,i.jsx)(x.f,{})}),(0,i.jsx)("div",{className:"p-4",children:(0,i.jsx)(f.p,{})})]}),(0,i.jsx)("main",{className:"hidden sm:flex px-0 md:px-10 xl:px-10 sm:justify-center",children:(0,i.jsxs)("div",{className:"sm:w-[1120px]",children:[(0,i.jsx)(g.c,{}),(0,i.jsx)("div",{className:"p-4",children:(0,i.jsx)(x.f,{})}),(0,i.jsx)("div",{className:"grid gap-8 grid-cols-1 md:grid-cols-3 w-full",children:(0,i.jsx)("div",{className:"md:col-span-2",children:(0,i.jsx)("div",{className:"p-4",children:(0,i.jsx)(f.p,{})})})})]})})]}),Y&&!Q&&(0,i.jsx)("main",{className:"px-0 block sm:flex sm:justify-center pb-24 sm:pb-12",children:(0,i.jsxs)("div",{className:"w-full sm:w-[1120px]",children:[(0,i.jsx)("div",{className:"hidden sm:flex items-center justify-between",children:(0,i.jsx)("h1",{className:"hidden sm:block mb-4 text-2xl font-bold md:mb-4 lg:mb-2 md:text-3xl lg:text-4xl mt-6 notranslate",children:(null==Y?void 0:Y.title)||((null==Y?void 0:Y.category)?null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("categories.".concat(Y.category)):"Servicio")})}),(null==Y?void 0:Y.images)&&Y.images.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{title:null==Y?void 0:Y.title,images:et,onClick:()=>O()}),(0,i.jsx)(m.A,{images:et,onClick:()=>O(),title:null==Y?void 0:Y.title})]}),(0,i.jsx)(C.A,{size:"full",onClose:()=>_(),open:M,onOpenChange:z,width:"100vw",title:p.Ru.t("space.imageGallery"),children:(0,i.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 p-4",children:(null==Y?void 0:Y.images)&&Y.images.length>0&&(0,i.jsx)(i.Fragment,{children:Y.images.map((e,t)=>(0,i.jsx)("div",{className:"col-span-1",children:(0,i.jsx)(u(),{alt:"".concat(null==Y?void 0:Y.title,"-").concat(t),className:"block object-cover w-full h-[250px] md:h-[450px] rounded-lg cursor-pointer",src:(0,A.y)({src:e,width:1e3,height:300,quality:95})||w.A,width:1e3,height:1e3,onClick:()=>{F(t),L(!0)}})},t))})})}),(0,i.jsx)(D,{images:(null==Y?void 0:Y.images)||[],isOpen:E,onClose:()=>L(!1),startIndex:I}),(0,i.jsxs)("div",{className:"grid gap-8 grid-cols-1 md:grid-cols-3 w-full sm:pr-8",children:[(0,i.jsxs)("div",{className:"md:col-span-2 p-4 sm:p-0 sm:w-[653px]",children:[(0,i.jsx)("h1",{className:"sm:hidden mb-5 text-2xl font-medium md:mb-4 lg:mb-2 md:text-3xl lg:text-4xl notranslate",children:(null==Y?void 0:Y.title)||((null==Y?void 0:Y.category)?null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("categories.".concat(Y.category)):"Servicio")}),(null==Y?void 0:Y.category)&&(0,i.jsxs)("div",{className:"sm:mt-3 mb-4 flex flex-wrap gap-2",children:[(null==Y?void 0:Y.city)&&(0,i.jsxs)(h(),{href:"/".concat(e.locale,"/services?category=").concat(Y.category,"&city=").concat(Y.city),className:"px-4 py-2 bg-white border border-gray-300 rounded-lg text-gray-700 text-sm font-medium hover:bg-gray-50 transition-colors cursor-pointer inline-block",children:[null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("categories.".concat(Y.category))," ",null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.in")," ",Y.city]}),(null==Y?void 0:Y.state)&&(0,i.jsxs)(h(),{href:"/".concat(e.locale,"/services?category=").concat(Y.category,"&state=").concat(Y.state),className:"px-4 py-2 bg-white border border-gray-300 rounded-lg text-gray-700 text-sm font-medium hover:bg-gray-50 transition-colors cursor-pointer inline-block",children:[null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("categories.".concat(Y.category))," ",null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.in")," ",Y.state]})]}),(null==Y?void 0:Y.promoted)&&(0,i.jsx)("div",{className:"mb-4 inline-flex items-center px-3 py-1 rounded-full bg-yellow-100 text-yellow-800 text-sm font-semibold",children:"⭐ Premium Service"}),(0,i.jsx)(n.A,{color:"border-[#DDDDDD]",border:"none"}),(null==Y?void 0:Y.user)&&(0,i.jsx)("div",{className:"flex flex-row justify-between items-center",children:(0,i.jsxs)("div",{className:"flex items-center pt-5 pb-5",children:[(null==Y?void 0:null===(d=Y.user)||void 0===d?void 0:d.photo)?(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(u(),{className:"h-12 rounded-full w-12 object-cover",src:null==Y?void 0:null===(b=Y.user)||void 0===b?void 0:null===(v=b.photo)||void 0===v?void 0:v.path,alt:"User Photo",width:342,height:324})}):(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(u(),{src:"https://spacepal-files-prd.s3.us-east-1.amazonaws.com/assets/pelotita.png",alt:"pelotita",className:"h-12 rounded-full w-12",blurDataURL:"https://spacepal-files-prd.s3.us-east-1.amazonaws.com/assets/pelotita.png",width:342,height:324})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{style:{display:"inline-block"},className:"ml-3",children:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("space.providedBy"))||"Provided by"}),(0,i.jsx)("p",{style:{display:"inline-block"},className:"font-semibold ml-1 notranslate",children:(null==Y?void 0:null===(N=Y.user)||void 0===N?void 0:N.firstName)||""})]})]})}),(0,i.jsx)(n.A,{color:"border-[#DDDDDD]",border:"none"}),(0,i.jsxs)(o.A,{title:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.details"))||"Detalles",children:[(0,i.jsx)("p",{className:"text-gray-500 dark:text-gray-400 pr-1 mb
1-4 whitespace-pre-line text-justify hyphens-auto",children:(null==Y?void 0:Y.description)&&Y.description.length>500?"".concat(Y.description.substring(0,500),"..."):null==Y?void 0:Y.description}),(null==Y?void 0:Y.description)&&Y.description.length>500&&(0,i.jsx)("button",{onClick:q,className:"px-4 py-2 bg-white border border-gray-300 rounded-lg text-gray-700 text-sm font-medium hover:bg-gray-50 transition-colors mb-8",children:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.viewMore"))||"Ver m\xe1s"})]}),(0,i.jsx)(C.A,{size:"full",onClose:B,open:T,onOpenChange:V,title:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.details"))||"Detalles",children:(0,i.jsx)("div",{className:"p-6 border-t border-gray-200",children:(0,i.jsx)("p",{className:"text-gray-700 whitespace-pre-line text-justify hyphens-auto",children:null==Y?void 0:Y.description})})}),(null==Y?void 0:Y.extraInfo)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{color:"border-[#DDDDDD]",border:"none"}),(0,i.jsxs)(o.A,{title:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.additionalInfo"))||"Additional Information",children:[(0,i.jsx)("p",{className:"text-gray-500 dark:text-gray-400 pr-1 mb-4 whitespace-pre-line text-justify hyphens-auto",children:Y.extraInfo.length>500?"".concat(Y.extraInfo.substring(0,500),"..."):Y.extraInfo}),Y.extraInfo.length>500&&(0,i.jsx)("button",{onClick:K,className:"px-4 py-2 bg-white border border-gray-300 rounded-lg text-gray-700 text-sm font-medium hover:bg-gray-50 transition-colors mb-8",children:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.viewMore"))||"Ver m\xe1s"})]}),(0,i.jsx)(C.A,{size:"full",onClose:U,open:W,onOpenChange:G,title:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("space.additionalInfo"))||"Additional Information",children:(0,i.jsx)("div",{className:"p-6 border-t border-gray-200",children:(0,i.jsx)("p",{className:"text-gray-700 whitespace-pre-line text-justify hyphens-auto",children:Y.extraInfo})})})]}),(null==Y?void 0:Y.capacity)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{color:"border-[#DDDDDD]",border:"none"}),(0,i.jsx)(o.A,{title:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("space.capacity"))||"Capacity",children:(0,i.jsxs)("p",{className:"text-gray-700",children:[Y.capacity," ",(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("space.people"))||"people"]})})]}),(null==Y?void 0:Y.latitude)&&(null==Y?void 0:Y.longitude)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{color:"border-[#DDDDDD]",border:"none"}),(0,i.jsxs)(o.A,{title:"",className:"overflow-hidden sm:w-[653px] rounded-lg",children:[(0,i.jsx)("h2",{className:"text-xl font-bold md:text-1xl lg:text-2xl",children:(null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("space.location"))||"Location"}),(0,i.jsx)("h2",{className:"text-base text-gray-500 mb-3 mt-2",children:[null==Y?void 0:Y.city,null==Y?void 0:Y.state,null==Y?void 0:Y.country].filter(Boolean).join(", ")}),(0,i.jsx)("div",{className:"h-96",children:(0,i.jsx)(c.A,{apiKey:"AIzaSyDGILAYvWJqOCRPh_bcttLzomWzPjjkKGw",center:{lat:parseFloat(null==Y?void 0:Y.latitude.toString()),lng:parseFloat(null==Y?void 0:Y.longitude.toString())},zoom:X,markers:[{id:Y.id,lat:parseFloat(null==Y?void 0:Y.latitude.toString()),lng:parseFloat(null==Y?void 0:Y.longitude.toString()),title:null==Y?void 0:Y.title}],onIdle:e=>{J(e.getZoom())},onMarkerClick:()=>null,highlightedMarkerId:null==Y?void 0:Y.id,zoomEnabled:!1,showAsSingleMarker:!0})}),(null==Y?void 0:Y.category)&&(0,i.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(null==Y?void 0:Y.city)&&(0,i.jsxs)(h(),{href:"/".concat(e.locale,"/services?category=").concat(null==Y?void 0:Y.category,"&city=").concat(null==Y?void 0:Y.city),className:"px-4 py-2 bg-white border border-gray-300 rounded-lg text-gray-700 text-sm font-medium hover:bg-gray-50 transition-colors cursor-pointer inline-block",children:[null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("categories.".concat(null==Y?void 0:Y.category))," en"," ",null==Y?void 0:Y.city]}),(null==Y?void 0:Y.state)&&(0,i.jsxs)(h(),{href:"/".concat(e.locale,"/services?category=").concat(null==Y?void 0:Y.category,"&state=").concat(null==Y?void 0:Y.state),className:"px-4 py-2 bg-white border border-gray-300 rounded-lg text-gray-700 text-sm font-medium hover:bg-gray-50 transition-colors cursor-pointer inline-block",children:[null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("categories.".concat(null==Y?void 0:Y.category))," en"," ",null==Y?void 0:Y.state]})]})]})]})]}),(0,i.jsx)("div",{className:"hidden sm:flex col-span-1 h-fit place-content-center justify-center sm:w-[372px] sticky top-10 mt-4 z-40",children:(0,i.jsxs)("div",{className:"w-full border border-gray-100 rounded-lg shadow-sm p-6",children:[(0,i.jsx)("h3",{className:"text-xl font-bold mb-4 notranslate",children:(null==Y?void 0:Y.title)?Y.title:(null==Y?void 0:Y.category)?null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("categories.".concat(null==Y?void 0:Y.category)):"Servicio"}),(0,i.jsx)("p",{className:"text-gray-600 mb-2",children:[(null==Y?void 0:Y.streetName)&&(null==Y?void 0:Y.streetNumber)?"".concat(null==Y?void 0:Y.streetName," ").concat(null==Y?void 0:Y.streetNumber):null==Y?void 0:Y.streetName,null==Y?void 0:Y.city].filter(
1Boolean).join(", ")||"Contact us via WhatsApp to get more information and book this service."}),(null==Y?void 0:Y.price)&&(0,i.jsx)("p",{className:"text-gray-600 mb-6",children:null==Y?void 0:Y.price}),(0,i.jsx)("button",{onClick:ee,className:"w-full flex items-center justify-center gap-2 bg-primary-100 hover:scale-[1.02] text-black font-semibold py-3 px-6 rounded-lg transition-transform duration-200 border border-black",children:"Consultar"})]})})]}),(0,i.jsxs)("div",{className:"sm:hidden fixed inset-x-0 bottom-0 bg-white p-4 border-t border-gray-100 rounded-t-lg shadow-sm z-50",children:[(0,i.jsx)("button",{onClick:ee,className:"w-full flex items-center justify-center gap-2 bg-primary-100 hover:scale-[1.02] text-black font-semibold py-3 px-6 rounded-lg transition-transform duration-200 border border-black",children:null===p.Ru||void 0===p.Ru?void 0:p.Ru.t("service.book")}),(null==Y?void 0:Y.price)&&(0,i.jsx)("p",{className:"text-center mt-2 text-sm text-gray-600",children:(0,i.jsx)("span",{className:"font-bold",children:null==Y?void 0:Y.price})})]})]})}),(0,i.jsx)("div",{className:"mb-16 sm:mb-0",children:(0,i.jsx)(k.A,{})})]})]})}},34650:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>a,fx:()=>r,rg:()=>c});var i=l(96540);function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i])}return e}).apply(this,arguments)}var o=function(e){var t=(0,i.useRef)(e);return t.current=e,t},s=function(e,t){var l;return function(){for(var i=this,n=arguments.length,o=Array(n),s=0;s<n;s++)o[s]=arguments[s];null!==l&&(clearTimeout(l),l=null),l=setTimeout(function(){return e.apply(i,o)},t)}},a=function(e){var t=void 0===e?{}:e,l=t.requestOptions,a=t.debounce,r=t.cache,c=void 0===r?86400:r,d=t.cacheKey,u=void 0===d?"upa":d,p=t.googleMaps,m=t.callbackName,v=t.defaultValue,h=t.initOnMount,g=void 0===h||h,x=(0,i.useState)(!1),f=x[0],y=x[1],b=(0,i.useState)(void 0===v?"":v),j=b[0],w=b[1],N=(0,i.useState)({loading:!1,status:"",data:[]}),k=N[0],A=N[1],R=(0,i.useRef)(),C=o(l),S=o(p),D=(0,i.useCallback)(function(){if(!R.current){var e,t=window.google,l=S.current,i=(null==l?void 0:l.places)||(null==t?void 0:null==(e=t.maps)?void 0:e.places);if(!i){console.error("\uD83D\uDCA1 use-places-autocomplete: Google Maps Places API library must be loaded. See: https://github.com/wellyshen/use-places-autocomplete#load-the-library");return}R.current=new i.AutocompleteService,y(!0)}},[S]),P=(0,i.useCallback)(function(){A({loading:!1,status:"",data:[]})},[]),I=(0,i.useCallback)(function(e){void 0===e&&(e=u);try{sessionStorage.removeItem(e)}catch(e){}},[u]),F=(0,i.useCallback)(s(function(e){if(!e){P();return}A(function(e){return n({},e,{loading:!0})});var t,l={};try{l=JSON.parse(sessionStorage.getItem(u)||"{}")}catch(e){}if(c&&(l=Object.keys(l).reduce(function(e,t){return l[t].maxAge-Date.now()>=0&&(e[t]=l[t]),e},{}))[e]){A({loading:!1,status:"OK",data:l[e].data});return}null==(t=R.current)||t.getPlacePredictions(n({},C.current,{input:e}),function(t,i){if(A({loading:!1,status:i,data:t||[]}),c&&"OK"===i){l[e]={data:t,maxAge:Date.now()+1e3*c};try{sessionStorage.setItem(u,JSON.stringify(l))}catch(e){}}})},void 0===a?200:a),[c,u,P,C]),E=(0,i.useCallback)(function(e,t){void 0===t&&(t=!0),w(e),R.current&&t&&F(e)},[F]);return(0,i.useEffect)(function(){if(!g)return function(){return null};var e=window.google;return S.current||null!=e&&e.maps||!m?D():window[m]=D,function(){window[m]&&delete window[m]}},[m,S,D,g]),{ready:f,value:j,suggestions:k,setValue:E,clearSuggestions:P,clearCache:I,init:D}},r=function(e){var t=new window.google.maps.Geocoder;return new Promise(function(l,i){t.geocode(e,function(t,n){"OK"!==n&&i(n),!e.address&&e.componentRestrictions&&(console.error("\uD83D\uDCA1 use-places-autocomplete: Please provide an address when using getGeocode() with the componentRestrictions."),l(t)),l(t)})})},c=function(e){var t=e.geometry.location,l=t.lat,i=t.lng;return{lat:l(),lng:i()}}}},e=>{var t=t=>e(e.s=t);e.O(0,[2632,8186,6424,2503,437,4127,8015,2217,2579,6758,181,174,636,6593,8792],()=>t(90204)),_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.