1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6889],{3862:function(e,t,i){i.d(t,{H:function(){return s}});var n=i(45008),r=i(57437),o=i(1899),a=i(3146);function l(){let e=(0,n._)(["0% { width: 0%; } 100% { width: 100%; }"]);return l=function(){return e},e}let s=e=>{let{active:t,pauseTimer:i,onClick:n}=e;return(0,r.jsx)(o.Z,{sx:{backgroundColor:e=>e.palette.grey[400],borderRadius:t?2:"50%",cursor:t?"default":"pointer",height:8,overflow:"hidden",width:t?40:8,transition:"width 0.2s, border-radius 0.2s"},onClick:()=>!t&&n(),children:(0,r.jsx)(o.Z,{sx:{...t&&{animation:"".concat((0,a.F4)(l())," 3.5s linear 1"),animationPlayState:i?"paused":"running",backgroundColor:e=>e.palette.primary.main,height:"100%"}}})})}},71923:function(e,t,i){i.d(t,{Z:function(){return g}});var n=i(57437),r=i(33145),o=i(79975),a=i(9467);let l={overflow:"hidden",position:"relative",borderRadius:{xs:"8px",sm:"12px",md:"16px"},aspectRatio:"16/9",maxHeight:"clamp(12.5rem, 30vw, 21.75rem)",width:"100%"},s={display:"flex",maxHeight:"clamp(11rem, 25vw, 20rem)",height:"100%",width:"100%",gap:{xs:1,md:1},justifyContent:{xs:"flex-start",md:"space-between"}},c={position:"relative",ml:{xs:0,sm:2},minWidth:0,zIndex:1100,flexGrow:1,"& > *":{minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","@media (max-width: 280px)":{fontSize:"0.5rem"},fontSize:{xs:"clamp(0.6rem, 1.8vw, 0.875rem)",sm:"clamp(0.875rem, 2.25vw, 1.125rem)",md:"clamp(1rem, 2.5vw, 1.25rem)"}}},d={position:"relative",width:"auto !important",height:"100% !important",zIndex:1e3,aspectRatio:"1/1 !important",overflow:"visible","& > span":{position:"static !important",height:"100% !important"},"& img":{position:"absolute !important",height:"100% !important",width:"auto !important",minWidth:{xs:"auto",sm:"200px"},objectFit:"contain",transformOrigin:"center right",filter:"drop-shadow(0 0 20px rgba(0,0,0,0.3))",transition:"transform 0.3s ease","&:hover":{transform:{lg:"scale(1.15)",xl:"scale(1.15)"}}}};var u=i(1899),m=i(19643),x=i(31691),p=i(3862),h=i(7748);let f=(0,o.Z)({stopOnMouseEnter:!0,stopOnInteraction:!1});var g=e=>{var t;let{items:i}=e,[o,g]=(0,a.Z)({loop:!0},[f]),{autoPlayInterrupted:v,selectedIndex:w,scrollSnaps:b,onDotButtonClick:y}=(0,h.Y)(g),j=null===(t=i[0])||void 0===t?void 0:t.backgroundImage;return(0,x.Z)(),(0,n.jsxs)(u.Z,{component:"section",border:3,borderColor:"transparent",sx:{...l,height:{xs:"100%",md:"348px"}},children:[(0,n.jsx)(u.Z,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:j,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",borderRadius:"inherit",height:{xs:"100%",md:"348px"}}}),(0,n.jsx)(u.Z,{overflow:"hidden",ref:o,sx:{height:{xs:"100%",md:"348px"},width:"100%"},children:(0,n.jsx)(m.Z,{direction:"row",sx:{height:{xs:"100%",md:"348px"},width:"100%"},children:i.map((e,t)=>{let{cover:i,children:o,onClick:a}=e;return i?(0,n.jsx)(u.Z,{flex:"0 0 100%",minWidth:0,sx:{clipPath:"inset(0)",height:{xs:"100%",md:"348px"},cursor:"pointer"},onClick:a,children:(0,n.jsx)(u.Z,{sx:{height:"100%",width:"100%",p:{xs:1,sm:2}},children:(0,n.jsxs)(m.Z,{alignItems:"center",direction:"row",sx:s,children:[(0,n.jsx)(m.Z,{direction:"column",gap:1,sx:c,children:o}),(0,n.jsx)(u.Z,{sx:d,children:(0,n.jsx)(r.default,{fill:!0,alt:"carousel image",src:i,style:{objectFit:"contain"},sizes:"(max-width: 400px) 100vw, 60vw",priority:!0})})]})})},t):null})})}),(0,n.jsx)(m.Z,{direction:"row",justifyContent:"center",gap:1,sx:{position:"absolute",bottom:{xs:"8px",md:"16px"},left:0,right:0,zIndex:1,p:{xs:1,md:2},pointerEvents:"auto",display:"flex"},children:b.map((e,t)=>(0,n.jsx)(p.H,{active:t===w,pauseTimer:v,onClick:()=>y(t)},t))})]})}},7748:function(e,t,i){i.d(t,{Y:function(){return r}});var n=i(2265);let r=e=>{let[t,i]=(0,n.useState)(!1),[r,o]=(0,n.useState)(0),[a,l]=(0,n.use
1State)([]),s=(0,n.useCallback)(t=>{e&&(e.scrollTo(t),e.plugins().autoplay.reset())},[e]),c=(0,n.useCallback)(e=>{l(e.scrollSnapList())},[]),d=(0,n.useCallback)(e=>{o(e.selectedScrollSnap())},[]),u=(0,n.useCallback)(()=>{i(!1)},[]),m=(0,n.useCallback)(()=>{i(!0)},[]);return(0,n.useEffect)(()=>{e&&(c(e),d(e),e.on("reInit",c).on("reInit",d).on("select",d).on("autoplay:play",u).on("autoplay:stop",m))},[e,u,m,c,d]),{autoPlayInterrupted:t,selectedIndex:r,scrollSnaps:a,onDotButtonClick:s}}},73535:function(e,t,i){i.d(t,{r:function(){return c}});var n=i(57437),r=i(43161),o=i(57099),a=i(1899),l=i(46387),s=i(44811);function c(e){let{title:t,subtitle:i,description:c,cta:d}=e,{getLink:u}=(0,r.m)();return(0,n.jsxs)(a.Z,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:{xs:"0.25rem",sm:"0.5rem",md:"1rem"},position:"relative",zIndex:2},children:[(0,n.jsx)(l.Z,{variant:"h3",sx:{display:"inline-block",whiteSpace:"pre-line",color:"#fff",fontWeight:700,lineHeight:1,mb:{xs:"0.25rem",lg:1},typography:{xs:"h3",lg:"h1"},"@media (max-width: 280px)":{fontSize:"0.30rem"},fontSize:{xs:"clamp(0.875rem, 3.5vw, 1.75rem)",lg:void 0}},children:t}),(0,n.jsx)(l.Z,{variant:"h4",sx:{display:"inline-block",whiteSpace:"pre-line",color:"#00C6FF",fontWeight:600,mb:{xs:"0.25rem",lg:3},typography:{xs:"h4",lg:"h2"},"@media (max-width: 280px)":{fontSize:"0.3rem"},fontSize:{xs:"clamp(0.75rem, 3vw, 1.5rem)",lg:void 0}},children:i}),(0,n.jsxs)(a.Z,{sx:{flex:1},children:[(0,n.jsx)(a.Z,{sx:{flex:1},children:(0,n.jsx)(l.Z,{variant:"body1",sx:{display:"inline-block",whiteSpace:"pre-line",color:"#fff",mb:{xs:"0.25rem",lg:1},opacity:.8,typography:{xs:"body1",lg:"h6"},"@media (max-width: 280px)":{fontSize:"0.3rem"},fontSize:{xs:"clamp(0.625rem, 2.5vw, 0.875rem)",lg:void 0}},children:c})}),d&&(0,n.jsx)(s.Z,{variant:"PRIMARY"===d.type?"contained":"outlinedPrimary",color:"PRIMARY"===d.type?"primary":"inherit",size:"large",sx:{height:{xs:"24px",sm:"48px"},minHeight:{xs:"24px",sm:"48px"},padding:{xs:"0.25rem 0.5rem",sm:void 0},"@media (max-width: 280px)":{height:"6px",minHeight:"6px"}},href:d.isExternal?d.href:u((0,o.zS)(d.href)),children:(0,n.jsx)(l.Z,{color:"white",variant:"button",sx:{typography:{xs:"h5",lg:"h4"},fontWeight:700,"@media (max-width: 280px)":{fontSize:"0.2rem"},fontSize:{xs:"clamp(0.75rem, 2.5vw, 1.25rem)",lg:void 0}},children:d.label})})]})]})}},50979:function(e,t,i){i.d(t,{_:function(){return l}});var n=i(16593),r=i(45345),o=i(49931),a=i(55447);let l=e=>{let{filter:t,populate:i,locale:l}=e,s=(0,o.Aj)(a.Hv.cms.getCarousel,{filter:t,populate:i,locale:l});return(0,n.a)({queryKey:["getCMSCarousel",s.toString()],queryFn:()=>(0,o.DQ)(s.toString(),"carousel-banners"),placeholderData:r.Wk,refetchOnMount:!1,refetchOnWindowFocus:!1})}},23521:function(e,t,i){i.d(t,{WI:function(){return a},eq:function(){return o},fC:function(){return l},t5:function(){return s}});var n=i(96909);let r="".concat("https://img.xyes.com/","assets/background/carousel_background.png");function o(e){return(0,n.OI)(e.attributes.image)}function a(e){let t=(0,n.OI)(e.attributes.backgroundImage);return t?"url(".concat(t,")"):"url(".concat(r,")")}function l(e){var t;return(null===(t=e.attributes.cta)||void 0===t?void 0:t.href)||"#"}function s(e){return(null==e?void 0:e.data.length)?e.data.filter(e=>!!o(e)):[]}},96909:function(e,t,i){function n(e){var t,i;let n=null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.url;return(null==n?void 0:n.trim())?n:void 0}function r(e,t){var i;return null!==(i=n(e))&&void 0!==i?i:t}i.d(t,{OI:function(){return n},TD:function(){return r}})}}]);
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.