PageSourceSearch

https://belgium-bike-tours.com/_next/static/chunks/0_vsn2p6qx87..js

js belgium-bike-tours.com collected 2026-10-06 06:36:13 UTC 26,512 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,150409,e=>{"use strict";var t=e.i(401851),s=e.i(677241),a=e.i(55545),i=e.i(455024),r=e.i(99151),l=e.i(845110),n=e.i(281092);function o(e,t){let s=(0,n.toDate)(e)-(0,n.toDate)(t);return s<0?-1:s>0?1:s}var d=e.i(234662),c=e.i(520062),m=e.i(39978),u=e.i(890453),h=e.i(499132),x=e.i(912809),g=e.i(395830),f=e.i(892467),p=e.i(400062),v=e.i(328607),w=e.i(564211),j=e.i(727504),b=e.i(240165),N=e.i(908046),y=e.i(942956),D=e.i(17727),S=e.i(633625),M=e.i(116550),O=e.i(638256),k=e.i(306495),T=e.i(859343),E=e.i(637275),C=e.i(82953),_=e.i(767639),z=e.i(809513),U=e.i(519613),$=e.i(807847),L=e.i(528470),F=e.i(22892),I=e.i(183811),R=e.i(865054),A=e.i(985073);let P={ar:u.ar,bg:h.bg,cs:x.cs,da:g.da,de:f.de,el:p.el,en:v.enUS,en_us:v.enUS,es:w.es,fi:j.fi,fr:b.fr,hu:N.hu,id:y.id,it:D.it,ja:S.ja,ko:M.ko,lt:O.lt,lv:k.lv,nb:T.nb,nl:E.nl,pl:C.pl,pt:_.pt,ro:z.ro,ru:U.ru,sk:$.sk,sl:L.sl,sv:F.sv,tr:I.tr,uk:R.uk,zh:A.zhCN};e.s(["formatDate",0,(e,s,a="en")=>{if(isNaN(e.getTime()))return console.error("Invalid date:",e),"";let i=P[a]||v.enUS;try{let a=(0,t.format)(e,s,{locale:i});return a.charAt(0).toUpperCase()+a.slice(1)}catch(e){return console.error("Error formatting date:",e),""}},"formatDateWithWeekday",0,(e,s="en")=>{if(isNaN(e.getTime()))return console.error("Invalid date:",e),"";let a=P[s]||v.enUS;try{let s=(0,t.format)(e,"EEEE, MMMM d, yyyy",{locale:a});return s.charAt(0).toUpperCase()+s.slice(1)}catch(e){return console.error("Error formatting date:",e),""}},"formatTimeElapsed",0,(e,t="en")=>{var u;let h=new Date(e);return(new Date().getTime()-h.getTime())/2630016e3>=10.9?"":(u={addSuffix:!0,locale:P[t]||v.enUS},function(e,t,s){var u;let h,x=(0,i.getDefaultOptions)(),g=s?.locale??x.locale??a.defaultLocale,f=o(e,t);if(isNaN(f))throw RangeError("Invalid time value");let p=Object.assign({},s,{addSuffix:s?.addSuffix,comparison:f}),[v,w]=(0,l.normalizeDates)(s?.in,...f>0?[t,e]:[e,t]),j=(u=void 0,e=>{let t=(u?Math[u]:Math.trunc)(e);return 0===t?0:t})(((0,n.toDate)(w)-(0,n.toDate)(v))/1e3),b=Math.round((j-((0,r.getTimezoneOffsetInMilliseconds)(w)-(0,r.getTimezoneOffsetInMilliseconds)(v))/1e3)/60);if(b<2)if(s?.includeSeconds)if(j<5)return g.formatDistance("lessThanXSeconds",5,p);else if(j<10)return g.formatDistance("lessThanXSeconds",10,p);else if(j<20)return g.formatDistance("lessThanXSeconds",20,p);else if(j<40)return g.formatDistance("halfAMinute",0,p);else if(j<60)return g.formatDistance("lessThanXMinutes",1,p);else return g.formatDistance("xMinutes",1,p);else if(0===b)return g.formatDistance("lessThanXMinutes",1,p);else return g.formatDistance("xMinutes",b,p);if(b<45)return g.formatDistance("xMinutes",b,p);if(b<90)return g.formatDistance("aboutXHours",1,p);if(b<d.minutesInDay){let e=Math.round(b/60);return g.formatDistance("aboutXHours",e,p)}if(b<2520)return g.formatDistance("xDays",1,p);else if(b<d.minutesInMonth){let e=Math.round(b/d.minutesInDay);return g.formatDistance("xDays",e,p)}else if(b<2*d.minutesInMonth)return h=Math.round(b/d.minutesInMonth),g.formatDistance("aboutXMonths",h,p);if((h=function(e,t){var s;let a,i,[r,d,u]=(0,l.normalizeDates)(void 0,e,e,t),h=o(d,u),x=Math.abs((0,c.differenceInCalendarMonths)(d,u));if(x<1)return 0;1===d.getMonth()&&d.getDate()>27&&d.setDate(30),d.setMonth(d.getMonth()-h*x);let g=o(d,u)===-h;+(a=(0,n.toDate)(r,void 0),s=void 0,(i=(0,n.toDate)(a,s?.in)).setHours(23,59,59,999),i)==+(0,m.endOfMonth)(a,void 0)&&1===x&&1===o(r,u)&&(g=!1);let f=h*(x-g);return 0===f?0:f}(w,v))<12){let e=Math.round(b/d.minutesInMonth);return g.formatDistance("xMonths",e,p)}{let e=h%12,t=Math.trunc(h/12);return e<3?g.formatDistance("aboutXYears",t,p):e<9?g.formatDistance("overXYears",t,p):g.formatDistance("almostXYears",t+1,p)}}(h,(0,s.constructFrom)(h,Date.now()),u))},"getPaymentDeadlineDate",0,e=>{let t=new Date(e);return t.setMonth(t.getMonth()-2),t}],150409)},428738,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(522171),i=e.i(657688),r=e.i(88653),l=e.i(846932),n=e.i(63209);let o=(e,t,s)=>{let a=t-e;return((s-e)%a+a)%a+e},d={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},c={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]}
1,m="mousemove",u="mouseup";function h(e,t){if(0===t)return e;let s=Math.PI/180*t;return[e[0]*Math.cos(s)+e[1]*Math.sin(s),e[1]*Math.cos(s)-e[0]*Math.sin(s)]}var x=e.i(174080);let g={enter:e=>({x:e>0?1e3:-1e3,opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:e=>({zIndex:0,x:e<0?1e3:-1e3,opacity:0})};e.s(["default",0,({selectedImageUrl:e,allImages:f,onClose:p})=>{let[[v,w],j]=(0,s.useState)(()=>[f.findIndex(t=>t.url===e),0]),[b,N]=(0,s.useState)(!1),y=o(0,f.length,v),D=e=>{j([v+e,e])},S=function(e){var t,a,i;let r,{trackMouse:l}=e,n=s.useRef(Object.assign({},c)),o=s.useRef(Object.assign({},d)),x=s.useRef(Object.assign({},o.current));for(r in x.current=Object.assign({},o.current),o.current=Object.assign(Object.assign({},d),e),d)void 0===o.current[r]&&(o.current[r]=d[r]);let[g,f]=s.useMemo(()=>{var e,t;let s,a,i,r,x,g;return e=e=>n.current=e(n.current,o.current),t={trackMouse:l},s=t=>{let s="touches"in t;s&&t.touches.length>1||e((e,i)=>{i.trackMouse&&!s&&(document.addEventListener(m,a),document.addEventListener(u,r));let{clientX:l,clientY:n}=s?t.touches[0]:t,o=h([l,n],i.rotationAngle);return i.onTouchStartOrOnMouseDown&&i.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),c),{initial:o.slice(),xy:o,start:t.timeStamp||0})})},a=t=>{e((e,s)=>{var a,i,r,l;let n="touches"in t;if(n&&t.touches.length>1)return e;if(t.timeStamp-e.start>s.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:o,clientY:c}=n?t.touches[0]:t,[m,u]=h([o,c],s.rotationAngle),x=m-e.xy[0],g=u-e.xy[1],f=Math.abs(x),p=Math.abs(g),v=(t.timeStamp||0)-e.start,w=Math.sqrt(f*f+p*p)/(v||1),j=[x/(v||1),g/(v||1)],b=(a=f,i=p,r=x,l=g,a>i?r>0?"Right":"Left":l>0?"Down":"Up"),N="number"==typeof s.delta?s.delta:s.delta[b.toLowerCase()]||d.delta;if(f<N&&p<N&&!e.swiping)return e;let y={absX:f,absY:p,deltaX:x,deltaY:g,dir:b,event:t,first:e.first,initial:e.initial,velocity:w,vxvy:j};y.first&&s.onSwipeStart&&s.onSwipeStart(y),s.onSwiping&&s.onSwiping(y);let D=!1;return(s.onSwiping||s.onSwiped||s[`onSwiped${b}`])&&(D=!0),D&&s.preventScrollOnSwipe&&s.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:y,swiping:!0})})},i=t=>{e((e,s)=>{let a;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<s.swipeDuration){a=Object.assign(Object.assign({},e.eventData),{event:t}),s.onSwiped&&s.onSwiped(a);let i=s[`onSwiped${a.dir}`];i&&i(a)}}else s.onTap&&s.onTap({event:t});return s.onTouchEndOrOnMouseUp&&s.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),c),{eventData:a})})},r=e=>{document.removeEventListener(m,a),document.removeEventListener(u,r),i(e)},x=(e,t)=>{let r=()=>{};if(e&&e.addEventListener){let l=Object.assign(Object.assign({},d.touchEventOptions),t.touchEventOptions),n=[["touchstart",s,l],["touchmove",a,Object.assign(Object.assign({},l),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",i,l]];n.forEach(([t,s,a])=>e.addEventListener(t,s,a)),r=()=>n.forEach(([t,s])=>e.removeEventListener(t,s))}return r},g={ref:t=>{null!==t&&e((e,s)=>{if(e.el===t)return e;let a={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),a.cleanUpTouch=void 0),s.trackTouch&&t&&(a.cleanUpTouch=x(t,s)),Object.assign(Object.assign(Object.assign({},e),{el:t}),a)})}},t.trackMouse&&(g.onMouseDown=s),[g,x]},[l]);return t=n.current,a=o.current,i=x.current,n.current=a.trackTouch&&t.el?t.cleanUpTouch?a.preventScrollOnSwipe!==i.preventScrollOnSwipe||a.touchEventOptions.passive!==i.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:f(t.el,a)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:f(t.el,a)}):(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0})),g}({onSwipedLeft:()=>D(1),onSwipedRight:()=>D(-1),trackMouse:!0});(0,s.useEffect)(()=>{let e=e=>{if(f.length<=1){"Escape"===e.key&&p();return}switch(e.key){case"Escape":p();break;case"ArrowLeft":D(-1);break;case"ArrowRight":D(1)}};return window.addEventListener("keydown",e),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow="unset"}},[p,D,f.length]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&p()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}
1,[p]),(0,s.useEffect)(()=>{let e=document.getElementById("dots-container-popout"),t=e?.children[y];e&&t&&setTimeout(()=>{let s=e.offsetWidth,a=t.offsetWidth,i=t.offsetLeft,r=e.scrollWidth-s,l=Math.max(0,Math.min(i-s/2+a/2,r));e.scrollTo({left:l,behavior:"smooth"})},b?300:100)},[y,b]);let M=(0,s.useCallback)(e=>{e.target===e.currentTarget&&p()},[p]),O=(0,t.jsxs)("div",{className:"fixed inset-0 bg-black/90 !z-[9999] flex items-center justify-center",onClick:M,children:[b&&(0,t.jsx)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{visibility:"hidden"},children:[y-1,y+1].map(e=>{let s=o(0,f.length,e),a=f[s];return s!==y&&a?.url&&(0,t.jsx)(i.default,{src:a.url,alt:a.alt||"",fill:!0,sizes:"100vw"},a.url)})}),(0,t.jsx)(n.MotionConfig,{transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},children:(0,t.jsxs)("div",{className:"relative max-w-4xl lg:max-w-6xl w-full h-auto lg:h-[80vh] overflow-visible",...S,children:[f.length>1&&(0,t.jsx)("div",{className:"fixed top-5 left-4 !z-[9999] xl:left-[calc(50%-620px)]",children:(0,t.jsxs)("span",{className:"text-white text-lg !z-[9999] font-medium",children:[y+1,"/",f.length]})}),(0,t.jsx)("button",{className:"fixed top-0 right-3 text-white z-10 bg-transparent p-2 xl:right-[calc(50%-630px)]",onClick:p,children:(0,t.jsx)("span",{className:"text-4xl font-bold",children:"×"})}),f.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.PrevButton,{className:"hidden md:flex fixed items-center justify-center bg-white/70 hover:bg-gray-100/50 p-2 w-10 h-10 rounded-lg shadow-md text-gray-700 z-20 top-1/2 left-4 -translate-y-1/2 transition-colors",onClick:()=>D(-1),iconSize:20}),(0,t.jsx)(a.NextButton,{className:"hidden md:flex fixed items-center justify-center bg-white/70 hover:bg-gray-100/50 p-2 w-10 h-10 rounded-lg shadow-md text-gray-700 z-20 top-1/2 right-4 -translate-y-1/2 transition-colors",onClick:()=>D(1),iconSize:20})]}),(0,t.jsx)("div",{className:"relative w-full max-w-4xl lg:max-w-6xl mx-auto h-auto ",children:(0,t.jsx)("div",{className:"relative aspect-[3/2] w-full lg:h-full overflow-hidden",children:(0,t.jsx)(r.AnimatePresence,{initial:!1,custom:w,children:(0,t.jsx)(l.motion.div,{custom:w,variants:g,initial:"enter",animate:"center",exit:"exit",className:"absolute inset-0 cursor-grab active:cursor-grabbing",drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(e,{offset:t,velocity:s})=>{let a=Math.abs(t.x)*s.x;a<-1e4?D(1):a>1e4&&D(-1)},children:(0,t.jsx)("div",{className:"relative w-full h-full pointer-events-none lg:max-h-[85vh]",children:(0,t.jsx)(i.default,{src:f[y]?.url||"",fill:!0,alt:f[y]?.alt||"",className:"lg:object-contain object-cover md:rounded-lg",draggable:!1,sizes:"100vw",onLoad:()=>N(!0)})})},v)})})}),f.length>1&&(0,t.jsx)("div",{className:"absolute bottom-[-25px] left-1/2 transform -translate-x-1/2 md:hidden",children:(0,t.jsx)("div",{id:"dots-container-popout",className:"flex space-x-2 max-w-[170px] overflow-x-auto scrollbar-hide",children:f.map((e,s)=>(0,t.jsx)("button",{onClick:()=>{j([s,s>y?1:-1]),setTimeout(()=>{let e=document.getElementById("dots-container-popout"),t=e?.children[s];if(e&&t){let s=e.offsetWidth,a=t.offsetWidth,i=t.offsetLeft,r=e.scrollWidth-s,l=Math.max(0,Math.min(i-s/2+a/2,r));e.scrollTo({left:l,behavior:"smooth"})}},300)},className:`w-2 h-2 rounded-full transition-all duration-200 flex-shrink-0 ${s===y?"bg-white":"bg-white/50 hover:bg-white/70"}`,"aria-label":`Go to image ${s+1}`},s))})})]})})]});return(0,x.createPortal)(O,document.body)}],428738)},966439,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(335889),i=e.i(522016),r=e.i(657688),l=e.i(184344),n=e.i(428738),o=e.i(683993),d=e.i(150409),c=e.i(948148),m=e.i(861745);let u={google:o.Google,tripadvisor:o.TripAdvisor,getyourguide:l.default},h=({review:e})=>{let[l,h]=(0,s.useState)(!1),[x,g]=(0,s.useState)(!1),[f,p]=(0,s.useState)(""),[v,w]=(0,s.useState)(!1),j=(0,s.useRef)(null),b=(0,c.useTranslations)(),N=(0,m.useLocale)(),y=(0,s.useMemo)(()=>e.date?(0,d.formatTimeElapsed)(e.date,N):"",[e.date,N]);(0,s.useEffect)(()=>{let t=setTimeout(()=>{if(j.current){let t=e.text?.split(" ").length||0,s=!l&&j.current.scrollHeight>j.current.clientHeight;w(t>60&&s)}},10);return()=>clearTimeout(t)},[e.text,l]);let D=()=>{h(!l)},S=e.platform?.toLowerCase()||"",M=u[S];return(0,t.jsxs)("div",{className:"w-full shadow-none gap-4 border-1 p-4 rounded-lg border-[#
1E0E0E0] flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:"justify-between z-0 gap-2 items-start flex flex-row",children:[(0,t.jsx)("div",{className:"relative md:w-[64px] md:h-[64px] w-12 h-12 min-w-12 min-h-[64px]  flex items-center justify-center md:min-h-[64px] md:min-w-[64px]",children:e.user_profile_photo?(0,t.jsx)(r.default,{src:e.user_profile_photo.url,alt:"",className:"rounded-full object-cover w-12 h-12 md:w-full md:h-full",height:200,width:200}):(0,t.jsx)(r.default,{src:"/reviews/Portrait_Placeholder.png",alt:"",className:"rounded-full object-cover w-12 h-12 md:w-full md:h-full",height:200,width:200})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[4px] items-start justify-center",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("h4",{className:"text-base leading-[140%] font-medium text-[#313131] whitespace-nowrap overflow-hidden text-ellipsis flex flex-row",children:e.user_name}),(0,t.jsxs)("div",{className:"flex flex-row justify-start items-baseline gap-[0.5px] !ml-[-3px]",children:[(0,t.jsx)(o.StarCheckmark,{className:"min-h-5 min-w-5 w-5 h-5 align-baseline stroke-white fill-[#3897F0]"}),(0,t.jsxs)("span",{className:"place-self-center leading-[140%] tracking-normal text-[#828282] text-[12px]",children:[b("verified_customer"),y&&` \xb7 ${y}`]})]})]}),"tripadvisor"!==S?(0,t.jsxs)("div",{className:"flex flex-row gap-[2px] justify-start",children:[(0,t.jsx)(o.StarRatingSharp,{size:18,color:"#FDCC0D",fill:"#FDCC0D"}),(0,t.jsx)(o.StarRatingSharp,{size:18,color:"#FDCC0D",fill:"#FDCC0D"}),(0,t.jsx)(o.StarRatingSharp,{size:18,color:"#FDCC0D",fill:"#FDCC0D"}),(0,t.jsx)(o.StarRatingSharp,{size:18,color:"#FDCC0D",fill:"#FDCC0D"}),(0,t.jsx)(o.StarRatingSharp,{size:18,color:"#FDCC0D",fill:"#FDCC0D"})]}):(0,t.jsx)("div",{className:"flex flex-row gap-[2px] justify-start",children:Array.from({length:e.rating},(e,s)=>(0,t.jsx)("div",{className:"w-4 h-4 bg-tripadvisor rounded-full"},`tripadvisor-star-${s}`))})]})]}),(0,t.jsx)("div",{className:"bg-transparent text-foreground border-default-200 hover:opacity-50 hover:cursor-pointer",children:M&&(e.url?(0,t.jsx)(i.default,{href:e.url,target:"_blank",className:`block ${"google"===S?"sm:w-8 sm:h-8 w-7 h-7":"sm:w-10 sm:h-10 w-9 h-9"}`,children:(0,t.jsx)(M,{})}):(0,t.jsx)("div",{className:`block ${"google"===S?"sm:w-8 sm:h-8 w-7 h-7":"sm:w-10 sm:h-10 w-9 h-9"}`,children:(0,t.jsx)(M,{})}))})]}),(0,t.jsxs)("div",{className:"text-base font-normal leading-[140%] text-[#222222] flex-initial",children:[(0,t.jsx)("p",{ref:j,className:l?"":"line-clamp-5",children:e.text}),v&&(0,t.jsx)("div",{className:"flex flex-row w-full",children:(0,t.jsx)(a.Button,{disableAnimation:!0,variant:"light",onPress:D,className:"text-[rgb(136,136,136)] pl-0 h-7 hover:text-primary transition-colors hover:bg-transparent data-[hover=true]:bg-transparent",children:l?b("read_less"):b("read_more")})}),!v&&l&&(0,t.jsx)("div",{className:"flex flex-row w-full",children:(0,t.jsx)(a.Button,{disableAnimation:!0,variant:"light",onPress:D,className:"text-[rgb(136,136,136)] pl-0 h-7 hover:text-primary transition-colors hover:bg-transparent data-[hover=true]:bg-transparent",children:b("read_less")})})]}),(0,t.jsx)("div",{className:"gap-2 flex-col",children:e.images&&e.images.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-2 w-full h-[105px] sm:h-[146px]",children:e.images.slice(0,3).map((s,a)=>(1===a&&e.images.length>2||2===a&&e.images.length,(0,t.jsxs)("div",{className:`group relative w-full h-[105px] sm:h-[146px] cursor-pointer ${2===a?"hidden lg:block":""}`,onClick:()=>{p(s.url),g(!0)},children:[(0,t.jsx)(r.default,{src:s.url,alt:s.alt||"",loading:"lazy",width:200,height:105,sizes:"(max-width: 435px) 25vw, (max-width: 768px) 25vw, 200px",quality:75,className:"object-cover rounded-lg group-hover:scale-105 transition-transform duration-300 w-full h-full"}),1===a&&e.images.length>2&&(0,t.jsxs)("div",{className:"absolute bottom-2 right-2 bg-white p-1 rounded shadow-md flex lg:hidden",children:[(0,t.jsx)("div",{className:"w-[18px] mr-[6px]",children:(0,t.jsx)(o.DotGrid,{})}),(0,t.jsxs)("div",{className:"text-[#313131] pr-1 font-normal tracking-normal text-nowrap text-[12px]",children:[b("show_all")," ",e.images.length," ",b("photos")]})]}),2===a&&e.images.length>3&&(0,t.jsxs)("div",{className:"absolute bottom-2 right-2 bg-[#FFFFFFE
15] p-1 rounded shadow-md hidden lg:flex",children:[(0,t.jsx)("div",{className:"w-[18px] mr-[6px]",children:(0,t.jsx)(o.DotGrid,{})}),(0,t.jsxs)("div",{className:"text-[#313131] font-normal pr-1 tracking-normal text-nowrap text-[12px]",children:[b("show_all")," ",e.images.length," ",b("photos")]})]})]},`review-image-${s.url}-${a}`)))})}),x&&(0,t.jsx)(n.default,{selectedImageUrl:f,allImages:e.images.map((e,t)=>({url:e.url,alt:e.alt,media_id:t})),onClose:()=>g(!1)})]})};var x=e.i(664659),g=e.i(95187);let f=(0,g.createServerReference)("70c134ed0a240b83008ee50868d28475c98f583a98",g.callServer,void 0,g.findSourceMapURL,"fetchMoreReviews");function p({cardsOnly:e=!1}){return(0,t.jsxs)("section",{className:"flex flex-col w-full mb-12 gap-8 lg:mb-section",children:[!e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-8 w-64 bg-gray-200 animate-pulse rounded"}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-2 items-start sm:items-center",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-6 sm:gap-4 items-center",children:[(0,t.jsx)("div",{className:"w-[136px] h-[100px] bg-gray-200 animate-pulse rounded"}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsx)("div",{className:"h-6 w-40 bg-gray-200 animate-pulse rounded"})})]}),(0,t.jsxs)("div",{className:"flex flex-row gap-6 items-center",children:[(0,t.jsx)("div",{className:"flex flex-row justify-start items-center gap-2",children:(0,t.jsxs)("div",{className:"flex -space-x-[14px]",children:[[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"relative w-12 h-12 min-w-12 min-h-12 bg-gray-200 animate-pulse rounded-full border-2 border-white"},e)),(0,t.jsx)("div",{className:"relative w-12 h-12 min-w-12 min-h-12 bg-gray-300 animate-pulse rounded-full border-2 border-white flex items-center justify-center",children:(0,t.jsx)("div",{className:"h-3 w-6 bg-gray-400 rounded"})})]})}),(0,t.jsx)("div",{className:"w-[56px] h-[60px] bg-gray-200 animate-pulse rounded-full"})]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-8",children:[(0,t.jsx)("div",{className:"md:hidden space-y-8",children:[1,2].map(e=>(0,t.jsxs)("div",{className:"p-6 bg-white border border-gray-200 rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4 mb-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-gray-200 animate-pulse rounded-full"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"h-4 w-32 bg-gray-200 animate-pulse rounded mb-2"}),(0,t.jsx)("div",{className:"h-3 w-24 bg-gray-200 animate-pulse rounded mb-2"}),(0,t.jsx)("div",{className:"flex gap-1",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"w-4 h-4 bg-gray-200 animate-pulse rounded"},e))})]}),(0,t.jsx)("div",{className:"w-6 h-6 bg-gray-200 animate-pulse rounded"})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 animate-pulse rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 animate-pulse rounded"}),(0,t.jsx)("div",{className:"h-3 w-3/4 bg-gray-200 animate-pulse rounded"})]}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"h-24 bg-gray-200 animate-pulse rounded-lg"},e))})]},`mobile-${e}`))}),(0,t.jsx)("div",{className:"hidden md:block space-y-8",children:[1,2].map(e=>(0,t.jsxs)("div",{className:"p-6 bg-white border border-gray-200 rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4 mb-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-gray-200 animate-pulse rounded-full"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"h-4 w-32 bg-gray-200 animate-pulse rounded mb-2"}),(0,t.jsx)("div",{className:"h-3 w-24 bg-gray-200 animate-pulse rounded mb-2"}),(0,t.jsx)("div",{className:"flex gap-1",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"w-4 h-4 bg-gray-200 animate-pulse rounded"},e))})]}),(0,t.jsx)("div",{className:"w-6 h-6 bg-gray-200 animate-pulse rounded"})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 animate-pulse rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 animate-pulse rounded"}),(0,t.jsx)("div",{className:"h-3 w-3/4 bg-gray-200 animate-pulse rounded"})]}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"h-24 bg-gray-200 animate-pulse rounded-lg"},e))})]},`left-${e}`))}),(0,t.jsx)("div",{className:"hidden md:block space-y-8",children:[1,2].map(e=>(0,t.jsxs)("div",{className:"p-6 bg-white border border-gray-200 rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4 mb-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-gray-200 animate-pulse rounded-full"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"h-4 w-32 bg-gray-200 animate-pulse rounded mb-2"}),(0,t.jsx)("div",{className:"h-3 w-24 bg-gray-200 animate-pulse rounded mb-2"}),(0,t.jsx)("div",{className:"flex gap-1",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"w-4 h-4 bg-gray-200 animate-pulse rounded"},e))})]}),(0,t.jsx)("div",{className:"w-6 h-6 bg-gray-200 animate-pulse rounded"})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 animate-pulse rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 animate-pulse rounded"}),(0,t.jsx)("div",{className:"h-3 w-3/4 bg-gray-200 animate-pulse rounded"})]}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"h-24 bg-gray-200 animate-pulse rounded-lg"},e))})]},`right-${e}`))})]})]})}e.s(["default",0,function({reviews:e,displayAllReviews:a,customTitle:i,totalReviews:l,pagination:n,locale:o,review_ids:d}
1){let[m,u]=(0,s.useState)(e),[g,v]=(0,s.useState)(n?.current_page??1),[w,j]=(0,s.useState)(n?.has_next_page??!1),[b,N]=(0,s.useState)(!1),y=(0,s.useRef)(!1),D=l??m.length,S=(0,c.useTranslations)(),M=(0,s.useCallback)(async()=>{if(!y.current&&w&&!b){y.current=!0,N(!0);try{let e=await f(g+1,o,d);e?.data&&(u(t=>[...t,...e.data]),v(e.review_pagination.current_page),j(e.review_pagination.has_next_page))}catch(e){console.error("Error loading reviews:",e),j(!1)}finally{N(!1),y.current=!1}}},[w,g,b,o,d]);return(0,s.useEffect)(()=>{a&&w&&!y.current&&!b&&m.length<54&&M()},[a,w,g,M,b,m.length]),(0,t.jsxs)("section",{className:"flex flex-col mb-18 md:mb-section gap-4 md:gap-8",children:[(0,t.jsx)("h2",{className:"text-[#313131] leading-[30px] text-[26px]",children:i||S("ratings_and_reviews")}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-2",children:[(0,t.jsx)("div",{className:"flex flex-row gap-6 sm:gap-4",children:(0,t.jsx)(r.default,{src:"/reviews/google_reviews.png",alt:`Google ${S("reviews_title")}`,width:136,height:100,className:"w-[100px] h-auto md:w-[136px]"})}),(0,t.jsxs)("div",{className:"flex flex-row gap-6 ",children:[(0,t.jsx)("div",{className:"flex flex-row justify-start items-center gap-2",children:(0,t.jsxs)("div",{className:"flex -space-x-[10px] md:-space-x-[14px]",children:[m.slice(0,5).map((e,s)=>(0,t.jsx)("div",{className:"relative w-9 h-9 min-w-9 min-h-9 md:w-12 md:h-12 md:min-w-12 md:min-h-12",children:(0,t.jsx)(r.default,{src:e.user_profile_photo?.url||"/reviews/Portrait_Placeholder.png",alt:"",width:48,height:48,className:"rounded-full border-2 w-9 h-9 min-w-9 min-h-9 md:w-12 md:h-12 md:min-w-12 md:min-h-12 border-white"})},`avatar-${e.id}-${s}`)),D>5&&(0,t.jsx)("div",{className:"relative w-9 h-9 md:w-12 md:h-12",children:(0,t.jsx)("div",{className:"absolute w-9 h-9 md:w-[48px] md:h-[48px] rounded-full border-2 border-white bg-[#5C5C5C] flex items-center justify-center",children:(0,t.jsxs)("span",{className:"text-white font-medium text-[12px] md:text-[14px] leading-[100%] tracking-normal",children:["+",D-5]})})})]})}),"				"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-6 md:gap-8",children:[(0,t.jsx)("div",{className:"md:hidden space-y-6",children:m.map((e,s)=>(0,t.jsx)("div",{children:(0,t.jsx)(h,{review:e})},`review-mobile-${e.id}-${s}`))}),(0,t.jsx)("div",{className:"hidden md:block space-y-8",children:m.filter((e,t)=>t%2==0).map((e,s)=>(0,t.jsx)("div",{children:(0,t.jsx)(h,{review:e})},`review-left-${e.id}-${s}`))}),(0,t.jsx)("div",{className:"hidden md:block space-y-8",children:m.filter((e,t)=>t%2==1).map((e,s)=>(0,t.jsx)("div",{children:(0,t.jsx)(h,{review:e})},`review-right-${e.id}-${s}`))})]}),b&&(0,t.jsx)(p,{cardsOnly:!0}),w&&(!a||m.length>=54)&&!b&&(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("button",{onClick:M,className:"py-4 text-lg bg-white font-bold leading-[140%] hover:text-white w-[352px] text-primary border-2 border-primary rounded-lg hover:bg-primary/90 transition-colors cursor-pointer",children:(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[S("show_more_reviews"),(0,t.jsx)(x.ChevronDown,{size:22})]})})})]})}],966439)}]);

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.