1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,294176,e=>{"use strict";var t=e.i(5386);let n={"meal-provision":["1200_950.png","9.png"]},i=function(){let e=[];for(let[i,r]of Object.entries(t.SERVICE_PAGE_FOLDER_BY_SLUG))(n[i]??["1200_950.png","1200_1400.png"]).forEach((t,n)=>{e.push({id:`${i}-${n}`,image:encodeURI(`/my homecare our services images/${r}/${t}`),alt:`${r} â My Homecare`})});return e}();function r(e){let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}e.s(["SERVICE_GALLERY_IMAGE_POOL",0,i,"shuffleGalleryItems",()=>r])},381333,e=>{"use strict";var t=e.i(843476),n=e.i(271645),i=e.i(846932),r=e.i(344230),l=e.i(947414),a=e.i(287022),s=e.i(674008),o=e.i(486427),c=e.i(737806);function u(e){let t=(0,l.useConstant)(()=>(0,o.motionValue)(e)),{isStatic:i}=(0,n.useContext)(c.MotionConfigContext);if(i){let[,i]=(0,n.useState)(e);(0,n.useEffect)(()=>t.on("change",i),[])}return t}function f(e,t){let n=u(t()),i=()=>n.set(t());return i(),(0,s.useIsomorphicLayoutEffect)(()=>{let t=()=>a.frame.preRender(i,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,a.cancelFrame)(i)}}),n}function d(e,t,n,i){if("function"==typeof e){let t;return o.collectMotionValues.current=[],e(),t=f(o.collectMotionValues.current,e),o.collectMotionValues.current=void 0,t}if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof t){var a=e,s=t,c=n,u=i;let r=(0,l.useConstant)(()=>Object.keys(c)),o=(0,l.useConstant)(()=>({}));for(let e of r)o[e]=d(a,s,c[e],u);return o}let h="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],l=e[1+n],a=e[2+n],s=e[3+n],o=(0,r.interpolate)(l,a,s);return t?o(i):o}(t,n,i),x=Array.isArray(e)?m(e,h):m([e],([e])=>h(e)),p=Array.isArray(e)?void 0:e.accelerate;return p&&!p.isTransformed&&"function"!=typeof t&&Array.isArray(n)&&i?.clamp!==!1&&(x.accelerate={...p,times:t,keyframes:n,isTransformed:!0,...i?.ease?{ease:i.ease}:{}}),x}function m(e,t){let n=(0,l.useConstant)(()=>[]);return f(e,()=>{n.length=0;let i=e.length;for(let t=0;t<i;t++)n[t]=e[t].get();return t(n)})}var h=e.i(83352),x=e.i(83411);function p(e){return"number"==typeof e?e:parseFloat(e)}var v=e.i(657688),g=e.i(867406),y=e.i(294176);function w(){let e=(0,n.useRef)(null),r=(0,n.useRef)(null),[l,s]=(0,n.useState)(y.SERVICE_GALLERY_IMAGE_POOL),[o,f]=(0,n.useState)(!1),m=(0,n.useMemo)(()=>[...l,...l,...l,...l],[l]);(0,n.useEffect)(()=>{s((0,y.shuffleGalleryItems)(y.SERVICE_GALLERY_IMAGE_POOL))},[]),(0,n.useEffect)(()=>{let e=window.matchMedia("(max-width: 767px)"),t=()=>f(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);
1let[w,j]=(0,n.useState)(!1),[E,A]=(0,n.useState)(2e3),N=u(0),S=function(e,t={}){return function(e,t={}){let{isStatic:i}=(0,n.useContext)(c.MotionConfigContext),r=()=>(0,x.isMotionValue)(e)?e.get():e;if(i)return d(r);let l=u(r());return(0,n.useInsertionEffect)(()=>(function(e,t,n={}){let i,r=e.get(),l=null,s=r,o="string"==typeof r?r.replace(/[\d.-]/g,""):void 0,c=()=>{l&&(l.stop(),l=null),e.animation=void 0},u=()=>{(()=>{let t=p(e.get()),r=p(s);if(t===r)return c();let a=l?l.getGeneratorVelocity():e.getVelocity();c(),l=new h.JSAnimation({keyframes:[t,r],velocity:a,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:i})})(),e.animation=l??void 0,e.events.animationStart?.notify(),l?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{s=e,i=e=>{var n,i;return t((n=e,(i=o)?n+i:n))},a.frame.postRender(u)},c),(0,x.isMotionValue)(t)){let i=!0===n.skipInitialAnimation,r=t.on("change",t=>{var n,r,l,a;i?(i=!1,e.jump((n=t,(r=o)?n+r:n),!1)):e.set((l=t,(a=o)?l+a:l))}),l=e.on("destroy",r);return()=>{r(),l()}}return c})(l,e,t),[l,JSON.stringify(t)]),l}(e,{type:"spring",...t})}(N,{damping:40,stiffness:100});return(0,n.useEffect)(()=>{let e;if(o)return;r.current&&A(r.current.offsetWidth);let t=performance.now(),n=i=>{if(!w){let e=i-t,n=N.get()+.08*e;n>2*(300*Math.max(l.length,1))?(n=0,N.jump(0)):N.set(n)}t=i,e=requestAnimationFrame(n)};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[w,N,l.length,o]),(0,t.jsxs)("section",{className:"bg-white py-24 overflow-hidden relative font-sans",children:[(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full bg-[#f9fafa] z-0"}),(0,t.jsx)("div",{className:"relative z-10 w-full text-center px-4 mb-16 bg-[#1e3a47] py-14",children:(0,t.jsx)("h2",{className:"text-4xl md:text-5xl font-bold text-white",children:"Gallery"})}),(0,t.jsx)("div",{className:"md:hidden relative z-10 w-full -mb-10 overflow-x-auto scrollbar-hide snap-x snap-mandatory px-4 pb-2 [-webkit-overflow-scrolling:touch]",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:(0,t.jsx)("div",{className:"flex gap-4 items-stretch w-max py-2",children:l.map(e=>(0,t.jsx)("div",{className:"snap-center shrink-0 w-[85vw] max-w-[320px]",children:(0,t.jsx)("div",{className:"relative h-[400px] rounded-[32px] overflow-hidden shadow-lg",children:(0,t.jsx)(v.default,{src:e.image,alt:e.alt,fill:!0,sizes:"85vw",className:"object-cover"})})},e.id))})}),(0,t.jsx)("div",{ref:r,className:"hidden md:flex relative z-10 w-full h-[600px] items-center justify-center -mb-20",children:(0,t.jsx)("div",{className:"w-full h-full overflow-hidden relative",onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),onTouchStart:()=>j(!0),onTouchEnd:()=>j(!1),children:(0,t.jsx)(i.motion.div,{ref:e,className:"h-full flex items-start gap-6 absolute left-0",style:{x:d(N,e=>-e),paddingLeft:"calc(50vw - 140px)",paddingRight:"calc(50vw - 140px)"},children:m.map((e,n)=>(0,t.jsx)(b,{item:e,index:n,smoothScrollX:S},`${e.id}-${n}`))})})}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center mt-[-40px] relative z-20 pb-10 gap-6",children:[(0,t.jsxs)("p",{className:"text-gray-400 text-sm flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"w-5 h-5 animate-bounce-x md:hidden",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})}),(0,t.jsx)("span",{className:"md:hidden",children:"Swipe to explore"}),(0,t.jsx)("span",{className:"hidden md:inline",children:"Scroll to explore"})]}),(0,t.jsx)(g.default,{label:"View All",href:"/gallery",className:"mt-4"}),(0,t.jsx)("style",{children:` 2 @keyframes bounce-x { 3 0%, 100% { transform: translateX(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 4 50% { transform: translateX(0); animation-timing-function: cubic-bezier(0,0,0.2,1); } 5 } 6 .animate-bounce-x { animation: bounce-x 1s infinite; } 7 .scrollbar-hide::-webkit-scrollbar { display: none; } 8 `})]})]})}function b({item:e,index:r,smoothScrollX:l}
8){let a=(0,n.useRef)(null),[s,o]=(0,n.useState)({x:0,width:280}),[c,u]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=()=>{a.current&&(o({x:a.current.offsetLeft,width:a.current.offsetWidth}),u(window.innerWidth/2))};e(),window.addEventListener("resize",e);let t=setTimeout(e,100);return()=>{window.removeEventListener("resize",e),clearTimeout(t)}},[]);let f=s.x+s.width/2,m=d(l,e=>f-(e+c)),h=d(m,[-1e3,0,1e3],[200,0,200]),x=d(m,[-1e3,0,1e3],[-15,0,15]),p=d(m,[-1e3,0,1e3],[.8,1,.8]),g=d(m,[-1e3,0,1e3],[0,50,0]);return(0,t.jsx)("div",{ref:a,className:"w-[280px] md:w-[320px] shrink-0 h-[480px] flex items-center justify-center relative",children:(0,t.jsx)(i.motion.div,{className:"w-full h-[400px] md:h-[450px] rounded-[32px] overflow-hidden relative shadow-2xl origin-bottom",style:{y:h,rotateZ:x,scale:p,zIndex:g,filter:d(m,[-800,0,800],["brightness(0.6)","brightness(1)","brightness(0.6)"])},whileHover:{scale:1.02},transition:{duration:.2},children:(0,t.jsx)("div",{className:"w-full h-full relative",children:(0,t.jsx)(v.default,{src:e.image,alt:e.alt||"Gallery image",fill:!0,className:"object-cover"})})})})}e.s(["default",()=>w],381333)},50509,e=>{e.n(e.i(381333))}]);
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.