1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return o},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return s}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});function i(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,l(e));else t.set(r,l(a));return t}function o(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,a=e.protocol||"",n=e.pathname||"",s=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(i.urlQueryToSearchParams(o)));let d=e.search||o&&`?${o}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||l.test(a))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),d&&"?"!==d[0]&&(d="?"+d),n=n.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${a}${c}${n}${d}${s}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let a=e.r(71645);function n(e,t){let r=(0,a.useRef)(null),n=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=i(e,a)),t&&(n.current=i(t,a))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return h},ST:function(){return x},WEB_VITALS:function(){return i},execOnce:function(){return l},getDisplayName:function(){return u},getLocationOrigin:function(){return c},getURL:function(){return d},isAbsoluteUrl:function(){return o},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function d(){let{href:e}=window.location,t=c();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&f(r))return a;if(!a)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a}let h="u">typeof performance,x=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let a=e.r(18967),n=e.r(52817);function i(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return g},useLinkStatus:function(){return b}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(90809),l=e.r(43476),s=i._(e.r(71645)),o=e.r(95057),c=e.r(8372),d=e.r(18581),u=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),m=e.r(73668),h=e.r(9396);function x(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}function g(t){var r;let a,n,i,[o,g]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,s.useRef)(null),{href:v,as:j,children:w,prefetch:N=null,passHref:k,replace:P,shallow:_,scroll:C,onClick:O,onMouseEnter:E,onTouchStart:S,legacyBehavior:R=!1,onNavigate:T,ref:A,unstable_dynamicOnHover:I,...L}=t;a=w,R&&("string"==typeof a||"number"==typeof a)&&(a=(0,l.jsx)("a",{children:a}));let M=s.default.useContext(c.AppRouterContext),$=!1!==N,U=!1!==N?null===(r=N)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:z,as:F}=s.default.useMemo(()=>{let e=x(v);return{href:e,as:j?x(j):e}},[v,j]);if(R){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=s.default.Children.only(a)}let V=R?n&&"object"==typeof n&&n.ref:A,B=s.default.useCallback(e=>(null!==M&&(b.current=(0,p.mountLinkInstance)(e,z,M,U,$,g)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[$,z,M,U,g]),D={ref:(0,d.useMergedRef)(B,V),onClick(t){R||"function"!=typeof O||O(t),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!M||t.defaultPrevented||function(t,r,a,n,i,l,o){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(99781);s.default.startTransition(()=>{u(a||r,i?"replace":"push",l??!0,n.current)})}}(t,z,F,b,P,C,T)},onMouseEnter(e){R||"function"!=typeof E||E(e),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){R||"function"!=typeof S||S(e),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,u.isAbsoluteUrl)(F)?D.href=F:R&&!k&&("a"!==n.type||"href"in n.props)||(D.href=(0,f.addBasePath)(F)),i=R?s.default.cloneElement(n,D):(0,l.jsx)("a",{...L,...D,children:a}),(0,l.jsx)(y.Provider,{value:o,children:i})}e.r(84508);let y=(0,s.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},67881,71689,e=>{"use strict";let t,r,a,n,i;var l=e.i(43476),s=e.i(71645);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var c=Symbol.for("react.lazy"),d=s[" use ".trim().toString()];function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var f=((i=s.forwardRef((e,t)=>{let{children:r,...a}=e;if(u(r)&&"function"==typeof d&&(r=d(r._payload)),s.isValidElement(r)){var n;let e,i,l=(n=r,(i=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(i=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),c=function(e,t){let r={...t};for(let a in t){let n=e[a],i=t[a];/^on[A-Z]/.test(a)?n&&i?r[a]=(...e)=>{let t=i(...e);return n(...e),t}:n&&(r[a]=n):"style"===a?r[a]={...n,...i}:"className"===a&&(r[a]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==s.Fragment&&(c.ref=t?function(...e){return t=>{let r=!1,a=e.map(e=>{let a=o(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():o(e[t],null)}}}}(t,l):l),s.cloneElement(r,c)}return s.Children.count(r)>1?s.Children.only(null):null})).displayName="Slot.SlotClone",t=i,(r=s.forwardRef((e,r)=>{let{children:a,...n}=e;u(a)&&"function"==typeof d&&(a=d(a._payload));let i=s.Children.toArray(a),o=i.find(m);if(o){let e=o.props.children,a=i.map(t=>t!==o?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...n,ref:r,children:s.isValidElement(e)?s.cloneElement(e,void 0,a):null})}return(0,l.jsx)(t,{...n,ref:r,children:a})})).displayName="Slot.Slot",r),p=Symbol("radix.slottable");function m(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}var h=e.i(7670);let x=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,g=h.clsx;var y=e.i(47163);let b=(a="inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",n={variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",pill:"bg-primary text-primary-foreground shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-300 rounded-full"},size:{default:"h-11 px-8 py-2",sm:"h-9 rounded-full px-6 text-xs",lg:"h-12 rounded-full px-10 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if((null==n?void 0:n.variants)==null)return g(a,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:r,defaultVariants:i}=n,l=Object.keys(r).map(t=>{let a=null==e?void 0:e[t],n=null==i?void 0:i[t];if(null===a)return null;let l=x(a)||x(n);return r[t][l]}),s=e&&Object.entries(e).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return g(a,l,null==n||null==(t=n.compoundVariants)?void 0:t.reduce((e,t)=>{let{class:r,className:a,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):({...i,...s})[t]===r})?[...e,r,a]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),v=s.forwardRef(({className:e,variant:t,size:r,asChild:a=!1,...n},i)=>(0,l.jsx)(a?f:"button",{className:(0,y.cn)(b({variant:t,size:r,className:e})),ref:i,...n}));v.displayName="Button",e.s(["Button",()=>v],67881);let j=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>j],71689)},95010,e=>{"use strict";var t=e.i(43476),r=e.i(46932),a=e.i(47163);e.s(["default",0,({className:e,children:n})=>(0,t.jsx)(r.motion.main,{className:(0,a.cn)(e),initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.16,1,.3,1]},children:n})])},70065,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(47163);let n=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,a.cn)("rounded-3xl border bg-card text-card-foreground shadow-sm",e),...r}));n.displayName="Card",r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",e),...r})).displayName="CardHeader",r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("h3",{ref:n,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",e),...r})).displayName="CardTitle",r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("p",{ref:n,className:(0,a.cn)("text-sm text-muted-foreground",e),...r})).displayName="CardDescription",r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,a.cn)("p-6 pt-0",e),...r})).displayName="CardContent",r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,a.cn)("flex items-center p-6 pt-0",e),...r})).displayName="CardFooter",e.s(["Card",()=>n])},61911,e=>{"use strict";let t=(0,e.i(75254).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",()=>t],61911)},81418,e=>{"use strict";let t=(0,e.i(75254).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",()=>t],81418)},43138,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(63780),n=e.i(76841),i=e.i(95010),l=e.i(70065),s=e.i(71689),o=e.i(61911),c=e.i(75254);let d=(0,c.default)("wind",[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]]);var u=e.i(81418),f=e.i(63059),p=e.i(22016),m=e.i(57688),h=e.i(50661),x=e.i(46932),g=e.i(88653),y=e.i(37727),b=e.i(73375);let v=(0,c.default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);var j=e.i(47163);function w({isOpen:e,onClose:a,images:n,vehicleName:i,categoryName:l}){let[s,o]=(0,r.useState)(0),[c,d]=(0,r.useState)(0);return((0,r.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),e)?(0,t.jsx)(g.AnimatePresence,{children:e&&(0,t.jsxs)(x.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/95 backdrop-blur-xl",children:[(0,t.jsx)("button",{onClick:a,className:"absolute top-4 right-4 md:top-8 md:right-8 z-[110] p-3 md:p-4 text-white hover:text-primary transition-all bg-black/40 hover:bg-black/60 rounded-full",children:(0,t.jsx)(y.X,{className:"w-6 h-6 md:w-8 md:h-8"})}),(0,t.jsxs)("div",{className:"absolute top-4 left-4 md:top-8 md:left-8 z-[110] flex flex-col gap-1 md:gap-2 pr-20",children:[(0,t.jsxs)("h3",{className:"text-sm md:text-2xl font-black uppercase tracking-[0.1em] md:tracking-[0.3em] text-white leading-tight",children:[(0,t.jsx)("span",{className:"md:hidden block",children:l}),(0,t.jsx)("span",{className:"hidden md:block",children:i})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-4 text-primary text-[8px] md:text-[10px] font-black tracking-widest uppercase",children:[(0,t.jsx)(v,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,t.jsxs)("span",{children:[s+1," / ",n.length," Kép"]})]})]}),(0,t.jsxs)("div",{className:"relative w-full h-[50vh] md:h-[65vh] max-w-7xl px-4 md:px-12 flex items-center justify-center",children:[(0,t.jsx)(g.AnimatePresence,{initial:!1,custom:c,children:n.length>0&&(0,t.jsx)(x.motion.div,{custom:c,variants:{enter:e=>({x:e>0?1e3:-1e3,opacity:0,scale:.9}),center:{zIndex:1,x:0,opacity:1,scale:1},exit:e=>({zIndex:0,x:e<0?1e3:-1e3,opacity:0,scale:.9})},initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.3},scale:{duration:.4}},className:"absolute inset-0 flex items-center justify-center p-2 md:p-8",children:(0,t.jsxs)("div",{className:"relative w-full h-full shadow-2xl shadow-primary/10 rounded-[1.5rem] md:rounded-[2rem] overflow-hidden border border-white/10 bg-black/20",children:[(0,t.jsx)(m.default,{src:n[s],alt:`${i} view ${s+1}`,fill:!0,className:"object-contain",priority:!0,quality:100}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent pointer-events-none"})]})},s)}),(0,t.jsx)("button",{onClick:()=>{d(-1),o(e=>(e-1+n.length)%n.length)},className:"absolute left-2 md:left-8 z-[110] w-12 h-12 md:w-16 md:h-16 rounded-full border border-white/10 bg-black/40 backdrop-blur-md flex items-center justify-center text-white hover:bg-primary hover:border-primary transition-all group active:scale-95",children:(0,t.jsx)(b.ChevronLeft,{className:"w-6 h-6 md:w-8 md:h-8 group-hover:-translate-x-1 transition-transform"})}),(0,t.jsx)("button",{onClick:()=>{d(1),o(e=>(e+1)%n.length)},className:"absolute right-2 md:right-8 z-[110] w-12 h-12 md:w-16 md:h-16 rounded-full border border-white/10 bg-black/40 backdrop-blur-md flex items-center justify-center text-white hover:bg-primary hover:border-primary transition-all group active:scale-95",children:(0,t.jsx)(f.ChevronRight,{className:"w-6 h-6 md:w-8 md:h-8 group-hover:translate-x-1 transition-transform"})})]}),(0,t.jsx)("div",{className:"absolute bottom-4 md:bottom-8 left-0 right-0 z-[110] flex justify-center gap-2 md:gap-4 px-4 md:px-8 overflow-x-auto pb-4 scrollbar-hide",children:n.map((e,r)=>(0,t.jsx)("button",{onClick:()=>{d(r>s?1:-1),o(r)},className:(0,j.cn)("relative w-20 h-14 md:w-32 md:h-20 rounded-lg md:rounded-xl overflow-hidden border-2 transition-all flex-shrink-0 active:scale-95",s===r?"border-primary scale-105 md:scale-110 shadow-lg shadow-primary/20":"border-white/10 opacity-40 hover:opacity-100"),children:(0,t.jsx)(m.default,{src:e,alt:"Thumbnail",fill:!0,className:"object-cover"})},r))}),(0,t.jsx)("div",{className:"fixed inset-0 pointer-events-none opacity-[0.03] bg-[url('/images/noise.png')] mix-blend-overlay"})]})}):null}function N(){let{t:e}=(0,h.useLanguage)(),[c,g]=(0,r.useState)({}),[y,b]=(0,r.useState)(!1),[v,j]=(0,r.useState)([]),[N,k]=(0,r.useState)(""),[P,_]=(0,r.useState)("");(0,r.useEffect)(()=>{fetch("/gallery.json").then(e=>e.json()).then(e=>g(e)).catch(e=>console.error("Error fetching gallery:",e))},[]);let C=[{id:"vclass",categoryId:"vip",data:e.fleetPage.vehicles.vclass,image:"/images/fleet/Flotta_VIP_kezdő.png",large:!0,icon:o.Users},{id:"superb",categoryId:"personal",data:e.fleetPage.vehicles.superb,image:"/images/fleet/3_skoda_repter.png",large:!0,icon:d},{id:"transit",categoryId:"minibus",data:e.fleetPage.vehicles.transit,image:"/images/fleet/Tourneo_hatter_hegy.png",large:!0,icon:o.Users}],O={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.8}}};return(0,t.jsxs)(i.default,{className:"relative min-h-screen bg-[#fafaf9] text-slate-800 overflow-hidden",children:[(0,t.jsx)(a.default,{darkMode:!1}),(0,t.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full overflow-hidden pointer-events-none -z-10",children:[(0,t.jsx)("div",{className:"absolute top-[-5%] left-[-5%] w-[50%] h-[50%] bg-primary/5 rounded-full blur-[140px] opacity-60"}),(0,t.jsx)("div",{className:"absolute top-[20%] right-[-10%] w-[40%] h-[40%] bg-blue-500/5 rounded-full blur-[120px] opacity-40"})]}),(0,t.jsx)("section",{className:"relative pt-32 pb-20 px-6",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,t.jsx)(x.motion.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6},children:(0,t.jsxs)(p.default,{href:"/",className:"inline-flex items-center text-slate-400 hover:text-primary mb-10 transition-colors group",children:[(0,t.jsx)(s.ArrowLeft,{className:"w-4 h-4 mr-2 group-hover:-translate-x-1 transition-transform"}),(0,t.jsx)("span",{className:"text-[10px] font-black uppercase tracking-[0.3em]",children:e.fleetPage.back})]})}),(0,t.jsx)("div",{className:"max-w-4xl",children:(0,t.jsxs)(x.motion.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"space-y-8",children:[(0,t.jsxs)("h1",{className:"text-4xl md:text-9xl font-black uppercase tracking-tighter leading-[0.85] text-slate-900",children:[e.fleetPage.title," ",(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-primary italic",children:e.fleetPage.titleAccent})]}),(0,t.jsx)("p",{className:"text-xl md:text-2xl text-slate-500 max-w-2xl leading-relaxed font-medium",children:e.fleetPage.description})]})})]})}),(0,t.jsx)("section",{className:"pb-32 px-6",children:(0,t.jsx)(x.motion.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},initial:"hidden",whileInView:"visible",viewport:{once:!0},className:"max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-10",children:C.map((r,a)=>(0,t.jsx)(x.motion.div,{variants:O,className:r.large?"md:col-span-2":"md:col-span-1",children:(0,t.jsxs)(l.Card,{className:"group relative overflow-hidden rounded-[2.5rem] md:rounded-[3.5rem] border-none bg-white shadow-[0_32px_64px_-16px_rgba(0,0,0,0.08)] transition-all duration-700 hover:shadow-[0_48px_80px_-20px_rgba(0,0,0,0.12)] flex flex-col md:block md:h-[700px]",children:[(0,t.jsxs)("div",{className:"relative h-[280px] md:absolute md:inset-0 md:h-full overflow-hidden",children:[(0,t.jsx)(m.default,{src:r.image,alt:r.data.name,fill:!0,className:"object-cover transition-transform duration-[1.5s] ease-out md:group-hover:scale-110"}),(0,t.jsx)("div",{className:"hidden md:block absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-80"})]}),(0,t.jsx)("div",{className:"relative md:absolute md:inset-0 p-8 md:p-16 flex flex-col justify-end bg-white md:bg-transparent",children:(0,t.jsxs)("div",{className:"space-y-6 transform transition-all duration-700 md:group-hover:-translate-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsx)("span",{className:"px-5 py-2 rounded-full bg-primary text-white text-[9px] font-black uppercase tracking-[0.2em] shadow-xl",children:r.data.category})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-full bg-green-500 animate-pulse"}),(0,t.jsx)("span",{className:"text-[9px] font-black text-slate-400 md:text-white/60 uppercase tracking-[0.3em]",children:e.fleetPage.availabilityLabel})]})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h3",{className:"text-3xl md:text-7xl font-black uppercase tracking-tighter text-slate-900 md:text-white leading-tight",children:r.data.name}),(0,t.jsx)("p",{className:"text-slate-500 md:text-white/70 max-w-2xl text-base md:text-lg font-medium leading-relaxed",children:r.data.description})]}),r.data.features&&r.data.features.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-x-8 gap-y-4 pt-4",children:r.data.features.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center gap-3 text-slate-500 md:text-white/80",children:[(0,t.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),(0,t.jsx)("span",{className:"text-[10px] md:text-xs font-black uppercase tracking-widest",children:e})]},r))}),(0,t.jsxs)("div",{className:"pt-8 border-t border-slate-100 md:border-white/10 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-6 items-center",children:(0,t.jsxs)("button",{onClick:()=>{var t,a,n;let i;return t=r.categoryId,a=r.data.name,n=e.fleetPage.categories[r.categoryId],void((i=c[t]||[]).length>0&&(j(i),k(a),_(n),b(!0)))},className:"inline-flex items-center gap-4 text-primary font-black uppercase tracking-[0.2em] text-[10px] hover:gap-6 transition-all cursor-pointer group/btn",children:[e.common.moreImages,(0,t.jsx)(f.ChevronRight,{className:"w-4 h-4 group-hover/btn:translate-x-1 transition-transform"})]})}),(0,t.jsx)("div",{className:"hidden md:flex gap-4",children:(0,t.jsx)("div",{className:"w-12 h-12 rounded-2xl bg-white/10 backdrop-blur-md flex items-center justify-center text-white border border-white/10 group-hover:bg-primary/20 group-hover:border-primary/30 transition-all",children:(0,t.jsx)(r.icon,{className:"w-6 h-6"})})})]})]})})]})},r.id))})}),(0,t.jsx)("section",{className:"py-32 px-6 bg-white relative",children:(0,t.jsxs)("div",{className:"max-w-5xl mx-auto text-center space-y-16",children:[(0,t.jsx)(x.motion.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},className:"bg-primary/10 w-24 h-24 rounded-[2rem] flex items-center justify-center mx-auto mb-8 rotate-6 hover:rotate-0 transition-transform duration-700",children:(0,t.jsx)(u.ShieldCheck,{className:"w-12 h-12 text-primary"})}),(0,t.jsx)("h2",{className:"text-4xl md:text-6xl font-black uppercase tracking-tighter leading-tight text-slate-900",children:e.servicesPage.whyUs.items[1]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-16 md:gap-8",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-6xl font-black text-primary transition-transform hover:scale-110 duration-300",children:e.fleetPage.stats.ageValue}),(0,t.jsx)("p",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-slate-400",children:e.fleetPage.stats.ageLabel})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-6xl font-black text-primary transition-transform hover:scale-110 duration-300",children:e.fleetPage.stats.cleanlinessValue}),(0,t.jsx)("p",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-slate-400",children:e.fleetPage.stats.cleanlinessLabel})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-6xl font-black text-primary transition-transform hover:scale-110 duration-300",children:e.fleetPage.stats.maintenanceValue}),(0,t.jsx)("p",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-slate-400",children:e.fleetPage.stats.maintenanceLabel})]})]})]})}),(0,t.jsx)(w,{isOpen:y,onClose:()=>b(!1),images:v,vehicleName:N,categoryName:P}),(0,t.jsx)(n.default,{})]})}e.s(["default",()=>N],43138)}]); |