PageSourceSearch

https://saturdays.com/_next/static/chunks/2600-b68dac9c5d45808acead.js

js saturdays.com collected 2026-09-26 06:20:59 UTC 32,549 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2600],{19351:function(e,n,t){t.r(n),t.d(n,{default:function(){return xe}});var i=t(92809),r=t(67294),a=t(93942),s=t(75931),o=t(70582),l=t(69427),c=t(50080),d=t(90723),u=t(59050),p=t(11163),v=t(72979),m=t(5152),h=t(31201),f=t(44093),g=t(58478),x=t(87396),y=t(20639),j=t(75778),b=t.n(j),w=t(10219),_=t(46066),N=t(30266),k=t(809),O=t.n(k),S=t(88767),P=t(74996);function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){if(!e)return null;var n=(Array.isArray(null===e||void 0===e?void 0:e.campaigns)?e.campaigns:null!==e&&void 0!==e&&e.campaign?[e.campaign]:[]).filter((function(e){return Array.isArray(null===e||void 0===e?void 0:e.desktop_banner)&&e.desktop_banner.length}));return E(E({},e),{},{baseUrl:(null===e||void 0===e?void 0:e.baseUrl)||(null===e||void 0===e?void 0:e.base_url)||"",campaigns:n})},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.enabled,t=void 0===n||n,i=(0,a.v9)((function(e){return e.user})),r=i.apiKey,s=i.authorization,o=(0,a.v9)((function(e){return e.location})),l=o.country_code,c=(0,S.useQuery)({queryKey:["campaign-landing",l],enabled:t,queryFn:function(){var e=(0,N.Z)(O().mark((function e(){var n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P.Z.callAPI("GET","/api/v1/campaign/active",null,r,s);case 2:return n=e.sent,e.abrupt("return",Z(null===n||void 0===n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),d=c.data,u=c.isLoading,p=c.error,v=c.refetch;return{data:d||null,isLoading:u,error:p,refetch:v}},R=t(85893),A=["totalSlides","children"];function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(e){var n=e.totalSlides,t=e.children,i=(0,w.Z)(e,A),r=Number(i["data-index"]),a=Number.isInteger(r)&&r>=0&&r<n;return(0,R.jsx)("div",I(I({},i),{},{"data-testid":a?"homepage-banner--slide-".concat(r+1,"--item"):void 0,children:t}))},L=function(e){var n=e.clevertapEvent,t=void 0===n?"Homepage - Banner - Click":n,i=e.clevertapImpressionEvent,a=void 0===i?"Homepage - Banner - Impression":i,s=e.additionalClassName,o=void 0===s?"":s,l=e.campaignData,c=void 0===l?null:l,d=(0,p.useRouter)(),u=(0,r.useRef)(new Set),v=(0,r.useState)(0),m=v[0],h=v[1],f=D({enabled:!c}).data,g=c||f,x=(0,r.useMemo)((function(){return Array.isArray(null===g||void 0===g?void 0:g.campaigns)?g.campaigns:[]}),[g]),y=(null===g||void 0===g?void 0:g.baseUrl)||(null===g||void 0===g?void 0:g.base_url)||"",j=(0,r.useCallback)((function(e,n){if(e&&a){var t="".concat((null===e||void 0===e?void 0:e.id)||n);u.current.has(t)||(u.current.add(t),b().event(a,{campaign_id:(null===e||void 0===e?void 0:e.id)||null,campaign_index:n+1,campaign_name:(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.campaign_name)||"",source:"homepage banner"}))}}),[a]);if((0,r.useEffect)((function(){u.current=new Set,x.length&&j(x[0],0)}),[x,j]),!x.length)return null;var w={dots:x.length>1,infinite:x.length>1,arrows:!1,slidesToShow:1,slidesToScroll:1,autoplay:x.length>1,speed:500,autoplaySpeed:4e3,afterChange:function(e){h(e),j(x[e],e)},appendDots:function(e){return(0,R.jsx)("ul",{"data-testid":"homepage-banner--indicators--list",children:e})},customPaging:function(e){return(0,R.jsx)("button",{"data-testid":"homepage-banner--indicator-".concat(e+1,"--button")})}};return(0,R.jsx)("div",{"data-testid":"homepage-banner--carousel","data-active-index":m+1,children:(0,R.jsx)(_.Z,I(I({},w),{},{children:x.map((function(e,n){var i=function(e){var n,t=null===e||void 0===e||null===(n=e.desktop_banner)||void 0===n?void 0:n[0],i=(null===t||void 0===t?void 0:t.fileName)||(null===t||void 0===t?void 0:t.file_name),r=(null===t||void 0===t?void 0:t.mimeType)||(null===t||void 0===t?void 0:t.mime_type)||"";return i?{mimeType:r,mediaUrl:"".concat(y).concat(i)}:null}(e);return i?(0,R.jsx)(H,{totalSlides:x.length,className:"cursor-pointer ".concat(o).trim(),onClick:function(){return function(e,n){if(e){var i=null!==e&&void 0!==e&&e.is_use_catalogue?"/campaign/".concat(null===e||void 0===e?void 0:e.id):null===e||void 0===e?void 0:e.direct_url_web;b().event(t,{campaign_id:(null===e||void 0===e?void 0:e.id)||null,campaign_index:n+1,campaign_name:(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.campaign_name)||"",destination:i||"",source:"homepage banner"}),i&&(/^https?:\/\//i.test(i)?window.location.href=i:d.push(i))}}(e,n)},children:(0,R.jsx)("div",{style:{position:"relative",width:"100%",height:"70vh",minHeight:"70vh"},children:null!==i&&void 0!==i&&i.mimeType.includes("video")?(0,R.jsx)("video",{src:i.mediaUrl,className:"w-100 h-100",autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,style:{objectFit:"cover"}}):(0,R.jsx)("div",{"aria-label":"banner image ".concat(n+1),role:"img",style:{width:"100%",height:"70vh",minHeight:"70vh",backgroundImage:'url("'.concat(i.mediaUrl,'")'),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}})})},"homepage-campaign-".concat((null===e||void 0===e?void 0:e.id)||n)):(0,R.jsx)(H,{totalSlides:x.length},"homepage-campaign-".concat((null===e||void 0===e?void 0:e.id)||n))}))}))})},T=t(37442),B=function(){var e=(0,p.useRouter)();return(0,R.jsxs)("div",{className:"text-center p-4",style:{backgroundColor:"#F3F5F6"},children:[(0,R.jsx)("p",{className:"font-montserrat fw-700",children:"Free shipping & 30-day return guaranteed"}),(0,R.jsx)("p",{className:"fw-700 cursor-pointer",onClick:function(){b().event("Homepage - USP ribbon - click"),e.push("/terms-and-conditions?tab=tncs&section=returnandexchange")},children:(0,R.jsx)("u",{children:"LEARN MORE"})})]})},M=t(65988),W=function(e){var n=e.title,t=e.onViewMoreClick,i=e.isTopPick;return(0,R.jsxs)("div",{className:"d-flex w-100 justify-content-between",children:[(0,R.jsx)("div",{children:i?(0,R.jsx)("h4",{className:"font-montserrat fw-700",children:n}):(0,R.jsx)("h4",{className:"font-montserrat fw-700 text-uppercase",style:{letterSpacing:"3px"},children:n})}),(0,R.jsx)("div",{onClick:t,className:"cursor-pointer",children:(0,R.jsx)("img",{src:"/images/chevron-right.svg",style:{fontSize:"18px"}})})]})},F=t(54343),U=t(94184),K=t.n(U),Y=t(72421),J=t(956),V=t(12726),X=t(43918),G=t(34155),q=function(){var e=(0,p.useRouter)(),n=(0,a.v9)((function(e){return e.search})).newArrivals,t=function(e){var n,t,i,a,s,o,l,c,u,v,m,h,f,g,x,y,j,b,w,_,N,k,O=e.frame,S=e.customStyle,P=(0,r.useState)(0),C=P[0],E=P[1],Z=(0,r.useState)(!1),D=Z[0],A=Z[1],z=(0,p.useRouter)();if(!O)return null;var I=null===O||void 0===O||null===(n=O.variants)||void 0===n?void 0:n[C],H=(0,X.P)({source:"homepage-new-arrival",frame:O,variant:I});return(0,R.jsxs)("div",{"data-testid":"".concat(H,"--card"),style:S||void 0,onMouseEnter:function(){return A(!0)},onMouseLeave:function(){return A(!1)},children:[(0,R.jsx)("div",{style:{width:"120%",overflow:"hidden"},children:(0,R.jsx)("img",{className:"cursor-pointer","data-testid":"".concat(H,"--image-link"),style:{width:"120%",height:"auto",objectFit:"cover",objectPosition:"center right",marginLeft:"-25%"},src:(null===O||void 0===O?void 0:O.base_url)+(null===O||void 0===O||null===(t=O.variants[C])||void 0===t?void 0:t.frame_default_image_key),onClick:function(){var e,n;return z.push("/product/".concat(1===(null===O||void 0===O||null===(e=O.variants[C])||void 0===e?void 0:e.product_category)?"eyeglasses":"sunglasses","/").concat((0,Y.d)(null===O||void 0===O?void 0:O.frame_name),"/").concat((0,Y.d)(null===O||void 0===O||null===(n=O.variants[C])||void 0===n?void 0:n.variant_name)))}})}),(0,R.jsxs)("div",{id:"frame-meta",className:"d-flex justify-content-between align-items-center",children:[(0,R.jsxs)("div",{className:"px-4",children:[D&&(0,R.jsx)("div",{id:"frame-new-arrival",className:"d-flex justify-content-between align-items-center pe-5",children:(0,R.jsxs)("div",{id:"frame-variant",className:"d-flex gap-2 justify-content-start mt-2",children:[null===O||void 0===O?void 0:O.variants.slice(0,5).map((function(e,n){var t=null===O||void 0===O?void 0:O.base_url,i=e.icon_image_key;return(0,R.jsx)("div",{style:{marginLeft:n?"5px":0},children:(0,R.jsx)("div",{className:K()("saturdays__product_carousel-color",{"selected-color-border":n===C}),children:(0,R.jsx)("img",{src:t+i,role:"button","data-testid":"homepage-new-arrival--variant-".concat((0,X._)((null===e||void 0===e?void 0:e.sku_code)||i),"-color--button"),className:"button-round saturdays__product_carousel-select-color-button selected-color",onClick:function(){return E(n)},alt:""})})},i)})),(null===O||void 0===O?void 0:O.variants.length)>5&&(0,R.jsxs)("div",{children:["+ ",null===O||void 0===O||null===(i=O.variants)||void 0===i?void 0:i.slice(5).length]})]})}),(0,R.jsxs)("div",{className:"mt-3",children:[(0,R.jsx)("p",{className:"m-0 text-uppercase cursor-pointer","data-testid":"".concat(H,"--name"),style:{fontWeight:700,fontFamily:"Gotham",letterSpacing:"3px"},children:null===O||void 0===O?void 0:O.frame_name}),(0,R.jsxs)("p",{className:"","data-testid":"".concat(H,"--price"),children:[(0,R.jsx)("span",{className:"new-arrivals-currency",children:d.Z.formatPrice(null===O||void 0===O||null===(a=O.variants[C])||void 0===a?void 0:a.country_code,null===O||void 0===O||null===(s=O.variants[C])||void 0===s?void 0:s.retail_price).substring(0,2)}),d.Z.formatPrice(null===O||void 0===O||null===(o=O.variants[C])||void 0===o?void 0:o.country_code,null===O||void 0===O||null===(l=O.variants[C])||void 0===l?void 0:l.retail_price).substring(2)]})]}),(0,R.jsx)("div",{children:(0,R.jsxs)("p",{className:"font-montserrat",style:{fontSize:"14px",color:"#4A4A4A"},children:["Available in ",null===O||void 0===O||null===(c=O.variants)||void 0===c?void 0:c.length," colors &"," ",(null===O||void 0===O||null===(u=O.variants[C])||void 0===u||null===(v=u.sizeVariants)||void 0===v?void 0:v.length)<2?"".concat(null===O||void 0===O||null===(m=O.variants[C])||void 0===m||null===(h=m.sizeVariants[0])||void 0===h?void 0:h.size_label," Size"):"".concat(null===O||void 0===O||null===(f=O.variants[C])||void 0===f||null===(g=f.sizeVariants)||void 0===g?void 0:g.length," Sizes")]})})]}),(0,R.jsx)("div",{className:"pe-5",children:Boolean(null===O||void 0===O||null===(x=O.variants[C])||void 0===x?void 0:x.is_vto)&&(0,R.jsx)(J.Z,{skuCode:null===O||void 0===O||null===(y=O.variants[C])||void 0===y?void 0:y.sku_code,category:1===(null===O||void 0===O||null===(j=O.variants[C])||void 0===j?void 0:j.product_category)?"eyeglasses":"sunglasses",clevertapEvent:"Homepage - ".concat(G&&G.env&&G.env.NEXT_VTO_NAME||"GlamAR"," - new arrival SKU - clicked"),clevertapPayload:{sku_code:(null===O||void 0===O||null===(b=O.variants[0])||void 0===b?void 0:b.sku_code)||"",collection_name:(0,V.m)(null===O||void 0===O?void 0:O.collection.collection_code).toUpperCase()||"",frame_code:(null===O||void 0===O?void 0:O.frame_code)||"",frame_name:(null===O||void 0===O?void 0:O.frame_name)||"",glasses_type:1===(null===O||void 0===O||null===(w=O.variants[0])||void 0===w?void 0:w.product_category)?"eyeglasses":"sunglasses",variant_name:(null===O||void 0===O||null===(_=O.variants[0])||void 0===_?void 0:_.variant_name)||"",frame_size:(null===O||void 0===O||null===(N=O.variants[0])||void 0===N||null===(k=N.size_detail)||void 0===k?void 0:k.size_label)||""}})})]})]})};return(0,R.jsxs)("section",{style:{marginTop:"50px"},className:"jsx-3670793072 mt-4 new-arrivals-section",children:[(0,R.jsx)("div",{className:"jsx-3670793072 px-5",children:(0,R.jsx)(W,{title:"NEW ARRIVALS",onViewMoreClick:function(){e.push("/eyeglasses/sort_by/new_arrival")}})}),(0,R.jsxs)("div",{className:"jsx-3670793072 row",children:[(0,R.jsx)("div",{className:"jsx-3670793072 col-8",children:(0,R.jsx)(t,{frame:n[0],className:"jsx-3670793072"})}),(0,R.jsxs)("div",{className:"jsx-3670793072 col-4 d-flex flex-column justify-content-between",children:[(0,R.jsx)(F.Z,{frame:n[1],source:"homepage-new-arrival"}),(0,R.jsx)(F.Z,{frame:n[2],source:"homepage-new-arrival"})]})]}),(0,R.jsx)(M.default,{id:"3670793072",children:[".new-arrivals-section.jsx-3670793072{height:800px;}","@media screen and (min-width:1920px){.new-arrivals-section.jsx-3670793072{height:920px;}}"]}
1)]})},$=t(66910),Q=function(e){var n=e.open,t=e.image,i=e.onClose,r=e.onPrev,a=e.onNext,s=e.country_code;if(!n)return null;var o="MY"===s?"saturdays.my":"saturdayslifestyle";return(0,R.jsx)($.Z,{show:n,onHide:i,centered:!0,contentClassName:"bg-transparent",dialogClassName:"modal-no-border",style:{backgroundColor:"transparent"},children:(0,R.jsxs)($.Z.Body,{className:"p-0",children:[(0,R.jsxs)("div",{className:"position-relative text-center",children:[(0,R.jsx)("img",{src:t,alt:"influencer image",style:{width:"400px",maxWidth:"100%"}}),(0,R.jsx)("div",{type:"button",className:"chevron-left position-absolute",style:{top:"50%",left:"10px",transform:"translateY(-50%)",zIndex:1,cursor:"pointer"},onClick:r,children:(0,R.jsx)("i",{className:"bi bi-chevron-left",style:{color:"white",fontSize:"28px"}})}),(0,R.jsx)("div",{type:"button",className:"chevron-right position-absolute",style:{top:"50%",right:"10px",transform:"translateY(-50%)",zIndex:1,cursor:"pointer"},onClick:a,children:(0,R.jsx)("i",{className:"bi bi-chevron-right",style:{color:"white",fontSize:"28px"}})})]}),(0,R.jsx)("div",{type:"button",className:"d-flex justify-content-center text-center",onClick:i,children:(0,R.jsx)("img",{src:"/images/icons/close-image.svg",alt:"close"})}),(0,R.jsx)("div",{className:"p-4",children:(0,R.jsxs)("div",{id:"should-to-ig",className:"p-3 mb-4",style:{borderRadius:"10px",border:"0.5px solid rgba(255, 255, 255, 1)",background:"rgba(42, 47, 50, 0.8)",color:"white",textAlign:"center",cursor:"pointer"},onClick:function(){b().event("Homepage - influencer - insta - click"),window.open("https://www.instagram.com/".concat(o),"_blank")},children:[(0,R.jsx)("img",{src:"/images/icons/IG.svg",alt:"Instagram icon",className:"w-8 h-8 rounded-full mx-2 inline-block"}),(0,R.jsxs)("span",{className:"text-gray-600 font-montserrat",children:["more on @",o]})]})})]})})},ee=function(e){var n=e.state,t=e.country_code,i=(0,r.useState)(!1),a=i[0],s=i[1],o=(0,r.useState)(""),l=o[0],c=o[1],d=(0,r.useState)(0),u=d[0],p=d[1],v="ID"!==t;return(0,R.jsxs)("section",{style:{marginTop:"120px"},children:[(0,R.jsx)("div",{className:"p-4",style:{backgroundColor:"rgba(246, 247, 248, 1)"},children:(0,R.jsx)("p",{style:{fontWeight:800,fontSize:"28px",letterSpacing:"3px"},children:"STYLE POWERED BY YOU"})}),(0,R.jsx)("div",{className:v?"d-flex flex-nowrap overflow-auto":"row",children:null===n||void 0===n?void 0:n.influencers.map((function(e,n){return(0,R.jsxs)("div",{className:v?"p-0 position-relative flex-shrink-0":"col-3 p-0 position-relative",style:v?{width:"25%",minWidth:"300px"}:void 0,onClick:function(){b().event("Homepage - influencer - click"),c("".concat(e.base_url).concat(e.image_key)),s(!0),p(n)},children:[(0,R.jsx)("img",{className:"h-100",src:"".concat(e.base_url).concat(e.image_key),style:{objectFit:"cover"}}),(0,R.jsx)("div",{style:{position:"absolute",bottom:"30px",left:30,right:0,color:"white"},children:(0,R.jsxs)("p",{className:"fw-700",onClick:function(n){n.stopPropagation(),function(e){var n="https://www.instagram.com/".concat(e);window.open(n,"_blank")}(e.social_media_handle)},style:{cursor:"pointer"},children:["@",e.social_media_handle]})})]},n)}))}),(0,R.jsx)(Q,{open:a,image:l,onPrev:function(){var e=0===u?n.influencers.length-1:u-1;p(e),c("".concat(n.influencers[e].base_url).concat(n.influencers[e].image_key))},onNext:function(){var e=u===n.influencers.length-1?0:u+1;p(e),c("".concat(n.influencers[e].base_url).concat(n.influencers[e].image_key))},onClose:function(){return s(!1)},country_code:t})]})},ne=t(29260),te=function(){var e=(0,p.useRouter)();return(0,R.jsxs)("div",{className:"mt-5",style:{position:"relative",color:"black"},children:[(0,R.jsx)("div",{style:{position:"absolute",top:"5%",left:"50px",color:"white"},children:(0,R.jsx)("p",{className:"fw-600 text-uppercase",style:{letterSpacing:"3px",fontSize:"18px"},children:"style guide"})}),(0,R.jsx)("div",{style:{position:"relative",width:"100%",height:"auto"},children:(0,R.jsx)(ne.default,{src:"/images/home/style-guide.webp",alt:"style guide",className:"w-100",layout:"responsive",width:1920,height:900,style:{display:"block"}})}),(0,R.jsxs)("div",{style:{position:"absolute",bottom:"5%",left:"50px",color:"white"},children:[(0,R.jsx)("p",{className:"font-montserrat text-uppercase",style:{letterSpacing:"3px",fontSize:"32px",fontWeight:800},children:"find the best frame for your face shape"}),(0,R.jsx)("p",{className:"mt-3 cursor-pointer",onClick:function(){b().event("Homepage - frame guide - click"),e.push("/style-guide")},children:(0,R.jsx)("u",{style:{fontWeight:700},children:"CHECK NOW"})})]})]})},ie=function(){var e=(0,p.useRouter)();return(0,R.jsxs)("div",{className:"row font-montserrat",children:[(0,R.jsx)("div",{className:"col-6 p-0",children:(0,R.jsx)(ne.default,{src:"/images/home/material-1.webp",alt:"Material Detail",className:"w-100",layout:"responsive",width:960,height:1080})}),(0,R.jsx)("div",{className:"col-6 p-0",children:(0,R.jsxs)("div",{className:"container d-flex flex-column justify-content-center",style:{height:"100%",padding:"80px"},children:[(0,R.jsx)("p",{className:"text-uppercase",style:{letterSpacing:"3px",fontWeight:800,fontSize:"28px"},children:"details matter"}),(0,R.jsx)("p",{className:"my-3",children:"SATURDAYS designs and produces custom eyewear in-house using premium materials like cellulose acetate and strong polycarbonate lenses."}),(0,R.jsx)("p",{className:"fw-700 text-uppercase",onClick:function(){b().event("Homepage - material - click"),e.push("/material-details")},children:(0,R.jsx)("u",{className:"cursor-pointer",children:"learn more about our material"})})]})})]})},re=function(){var e=(0,p.useRouter)();return(0,R.jsxs)("div",{className:"mt-5",children:[(0,R.jsxs)("div",{className:"container d-flex flex-column justify-content-center align-items-center",children:[(0,R.jsx)("p",{className:"text-uppercase fw-600",style:{letterSpacing:"3px"},children:"CASHLESS TRANSACTION SUPPORTED BY"}),(0,R.jsx)("img",{className:"my-3",src:"/images/home/cashless-transaction.svg "})]}),(0,R.jsxs)("p",{className:"fw-700 text-center",children:["and 20+ more!"," ",(0,R.jsx)("u",{className:"cursor-pointer",onClick:function(){b().event("Homepage - corporate partnership - click"),e.push("/corporate-partnership")},children:"Check now"})]})]})},ae=t(10682),se=t(34051),oe=t(31555),le=t(49607),ce=function(){var e=(0,p.useRouter)(),n=(0,a.v9)((function(e){return e.catalog})).collab;if(null===n||void 0===n||!n.length)return null;var t=n[0],i=n.slice(1,3),r=function(){var n;b().event("Homepage - latest collab - click"),e.push(null===(n=t.summary)||void 0===n?void 0:n.web_link)},s=function(n){var t;b().event("Homepage - latest collab - click"),e.push(null===(t=n.summary)||void 0===t?void 0:t.web_link)},o=t||{},l=o.base_url,c=l+o.banner_desktop;return(0,R.jsxs)("section",{id:"latest-collabs",children:[(0,R.jsxs)("div",{className:"d-flex justify-content-between align-items-center px-4 py-5",children:[(0,R.jsx)(le.XJ,{children:"LATEST COLLABS"}),(0,R.jsxs)("div",{className:"d-flex align-items-center gap-2 cursor-pointer",onClick:function(){b().event("Homepage - all collabs - click"),e.push("/collabs")},children:[(0,R.jsx)(le.AF,{className:"m-0",children:"EXPLORE ALL COLLABS"}),(0,R.jsx)("p",{className:"bi bi-chevron-right m-0"})]})]}),(0,R.jsxs)(ae.Z,{fluid:!0,className:"px-0",children:[(0,R.jsxs)("div",{style:{position:"relative"},children:[(0,R.jsx)("div",{onClick:r,style:{cursor:"pointer"},children:(0,R.jsx)("img",{src:c,className:"w-100"})}),(0,R.jsxs)("div",{style:{position:"absolute",bottom:"20px",left:"20px",zIndex:10,padding:"10px",borderRadius:"8px"},children:[(0,R.jsx)("img",{src:"".concat(l).concat(t.collaboration_logo_monochrome),alt:"Main Collaboration Logo",style:{marginBottom:"20px",maxHeight:"40px"}}),(0,R.jsx)("p",{style:{color:"white",margin:"0",fontSize:"16px",letterSpacing:"1px",fontWeight:700,cursor:"pointer"},onClick:r,children:(0,R.jsx)("u",{children:"EXPLORE MORE"})})]})]}),i.length>
10&&(0,R.jsx)(se.Z,{className:"g-0",children:i.map((function(e,n){var t=e||{},i=t.base_url,r=(t.summary,i+t.banner);return(0,R.jsx)(oe.Z,{xs:12,md:6,children:(0,R.jsxs)("div",{style:{position:"relative"},children:[(0,R.jsx)("div",{onClick:function(){return s(e)},style:{cursor:"pointer"},children:(0,R.jsx)("img",{src:r,className:"w-100"})}),(0,R.jsxs)("div",{style:{position:"absolute",bottom:"20px",left:"20px",zIndex:10,padding:"8px",borderRadius:"6px"},children:[(0,R.jsx)("img",{src:"".concat(i).concat(e.collaboration_logo_monochrome),alt:"Collaboration Logo ".concat(n+2),style:{marginBottom:"15px",maxHeight:"30px"}}),(0,R.jsx)("p",{style:{color:"white",margin:"0",fontSize:"16px",letterSpacing:"1px",fontWeight:700,cursor:"pointer"},onClick:function(){return s(e)},children:(0,R.jsx)("u",{children:"EXPLORE MORE"})})]})]})},n)}))})]})]})},de=function(){(0,a.v9)((function(e){return e.search})).newestDrop;var e=(0,p.useRouter)();return(0,R.jsx)("section",{onClick:function(){return e.push("/product/gift/895fa867-7c2c-46f1-a0e8-3907a7e37080")},children:(0,R.jsx)(ne.default,{className:"w-100",src:"/images/home/giftcard.webp",alt:"newest drop",width:1920,height:900,layout:"responsive",loading:"lazy"})})},ue=t(97929),pe=(t(67060),function(){var e=(0,a.v9)((function(e){return e.search})).newestDrop,n=(0,p.useRouter)();return null!==e&&void 0!==e&&e.desktop_image?(0,R.jsx)("section",{onClick:function(){return n.push(null===e||void 0===e?void 0:e.web_link)},children:(0,R.jsx)(ne.default,{className:"w-100",src:(null===e||void 0===e?void 0:e.base_url)+(null===e||void 0===e?void 0:e.desktop_image),alt:null===e||void 0===e?void 0:e.name,width:1920,height:900,layout:"responsive",loading:"lazy"})}):null}),ve=t(74334),me=t(27613);function he(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?he(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):he(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ge=(0,m.default)((function(){return t.e(2512).then(t.bind(t,12512))}),{loading:function(){return(0,R.jsx)(v.Z,{})},loadableGenerated:{webpack:function(){return[12512]},modules:["landingPage/index.js -> ../../src/components/landingPage/topPicks"]}}),xe=function(){var e,n=(0,r.useState)({influencers:[],bestSellerEyeglasses:[],bestSellerSunglasses:[],newArrivals:[],collections:{},newestDrop:{},collaboration:{}}),t=n[0],v=n[1],m=(0,r.useState)(!1),j=m[0],w=m[1],_=(0,a.v9)((function(e){return e.user})),N=_.apiKey,k=_.authorization,O=((0,a.v9)((function(e){return e.app})).homeBanners,(0,r.useState)("eyeglasses")),S=O[0],P=O[1],C=(0,a.I0)(),E=(0,p.useRouter)(),Z=(0,g.b)().currentLocale,A=x.l[Z],z=(0,a.v9)((function(e){return e.location})).country_code,I=(0,T.Z)({collection_code:null}),H=I.newArrival,M=I.eyeglasses,W=I.sunglasses,F=I.collab,U=D().data,K=(Array.isArray(null===U||void 0===U?void 0:U.campaigns)?U.campaigns:[]).length>0;(0,r.useEffect)((function(){C((0,h.KX)({apiKey:N,authorization:k}))}),[N,k,z]),(0,r.useEffect)((function(){if(E.isReady&&N){var e={apiKey:N,authorization:k,frameCode:""};C((0,s.$x)(e)).unwrap().then((function(e){var n=e.status,t=e.data,i=e.message;n?v((function(e){return fe(fe({},e),{},{influencers:t})})):o.ZP.error(i.en)})).catch((function(){o.ZP.error(l.Z.somethingWentWrong)})),C((0,h.tY)({apiKey:N,authorization:k}))}}),[E.isReady,k,z]);var Y=function(e,n,t){var r=[],a="";"eyeglasses"===e?(r=JSON.parse(JSON.stringify(M)),a="bestSellerEyeglasses"):"sunglasses"===e?(r=JSON.parse(JSON.stringify(W)),a="bestSellerSunglasses"):(r=JSON.parse(JSON.stringify(H)),a="newArrivals");var s=u.ZP.findIndex(r,(function(e){return e.frame_code===n}));if(-1!==s){var o=u.ZP.find(r[s].variants,(function(e){return e.sku_code===t}));o&&(o.is_wishlisted=!o.is_wishlisted,v((function(e){return fe(fe({},e),{},(0,i.Z)({},a,r))})))}};"en"===Z?f.Z:y.Z;return(0,r.useEffect)((function(){b().event("Homepage - Opened")}),[]),(0,r.useEffect)((function(){var e;E.isReady&&("true"===(null===E||void 0===E||null===(e=E.query)||void 0===e?void 0:e.is_vto)&&E.push("/vto"))}),[null===E||void 0===E?void 0:E.isReady,null===E||void 0===E||null===(e=E.query)||void 0===e?void 0:e.is_vto]),(0,r.useEffect)((function(){C((0,c.JU)({apiKey:N,authorization:k}))}),[z,C]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(me.Z,{title:"SATURDAYS",description:"For fashion-conscious, progressive generations who have a vision to shape the world.",image:"/images/thumbnail/v2/general.png"}),K?(0,R.jsx)(L,{additionalClassName:"homepage-image",clevertapEvent:"Homepage - Banner - Click",clevertapImpressionEvent:"Homepage - Banner - Impression",campaignData:U}):(0,R.jsx)("img",{src:"/images/home/homepage-banner-fallback-desktop.webp",alt:"Homepage Banner",style:{width:"100%",display:"block"}}),Boolean("ID"===z)&&(0,R.jsx)(B,{}),Boolean("ID"!==z)&&(0,R.jsx)("div",{style:{marginTop:"80px"}}),(0,R.jsx)(ue.Z,{}),(0,R.jsx)(ge,{state:t,selectedKey:S,setKey:P,handleWishlistIconClick:function(e,n,t){if(k){var i=t.is_wishlisted,r=t.product_category,a=t.turboly_id,s=t.sku_code,u={product_id:a,apiKey:N,authorization:k,is_wishlisted:i};i?u.product_id=[{sku_code:s,product_category:r}]:(u.product_category=r,u.sku_code=s),C((0,c.ok)(u)).unwrap().then((function(t){var i=t.status,r=t.message;i?Y(e,n,s):o.ZP.error(r.en)})).catch((function(){o.ZP.error(l.Z.somethingWentWrong)}))}else d.Z.initLoginFlow()}}),(0,R.jsx)("div",{className:"my-5"}),(0,R.jsx)(pe,{}),Boolean("ID"===z)&&(0,R.jsx)(ce,{data:F}),Boolean("ID"===z)&&(0,R.jsx)(de,{}),(0,R.jsx)(q,{t:A}),(0,R.jsx)(te,{}),(0,R.jsx)(ie,{}),Boolean("ID"===z)&&(0,R.jsx)(re,{}),(0,R.jsx)("div",{className:"mt-5"}),(0,R.jsx)(ee,{state:t,country_code:z}),(0,R.jsx)(ve.Z,{show:j,onHide:function(){w(!1)}})]})}},27613:function(e,n,t){var i=t(9008),r=t(85893);n.Z=function(e){var n=e.title,t=e.description,a=e.image;return(0,r.jsxs)(i.default,{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("meta",{name:"robots",content:"index,follow"}),(0,r.jsx)("meta",{property:"og:title",content:n}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{property:"og:image",content:a}),(0,r.jsx)("meta",{property:"og:image:alt",content:n}),(0,r.jsx)("meta",{property:"og:image:width",content:"800"}),(0,r.jsx)("meta",{property:"og:image:height",content:"600"})," ",(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:n}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),(0,r.jsx)("meta",{name:"twitter:image",content:a})]})}},97929:function(e,n,t){var i=t(83789),r=t(67294),a=t(93942),s=t(10682),o=t(34051),l=t(31555),c=t(11163),d=t(85893);n.Z=function(){var e=(0,c.useRouter)(),n=(0,a.v9)((function(e){return e.app})).payday,t=(0,r.useState)({days:0,hours:0,minutes:0,seconds:0}),u=t[0],p=t[1];if((0,r.useEffect)((function(){if(null!==n&&void 0!==n&&n.length){var e=function(){var e=(new Date).getTime(),t=new Date(n[0].expire_at).getTime()-e;if(t>0){var i=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),a=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3);p({days:i,hours:r,minutes:a,seconds:s})}else p({days:0,hours:0,minutes:0,seconds:0})};e();var t=setInterval(e,1e3);return function(){return clearInterval(t)}}}),[n]),null===n||void 0===n||!n.length)return null;var v=Math.max.apply(Math,(0,i.Z)(null===n||void 0===n?void 0:n.map((function(e){return e.voucher_percentage}
1)))),m=null===n||void 0===n?void 0:n.find((function(e){return e.voucher_percentage===v})),h={background:"rgba(253, 236, 234, 1)",color:"rgba(215, 83, 63, 1)",borderRadius:"3px",padding:"0 4px",minWidth:"28px",display:"inline-block"},f={marginLeft:"8px",color:"rgba(215, 83, 63, 1)",fontWeight:500,letterSpacing:"0.5px"},g={color:"rgba(215, 83, 63, 1)",fontWeight:"bold",display:"flex",alignItems:"flex-start",height:"24px",paddingTop:"2px"},x=function(e,n,t){return"Days"===n&&e>0||"Hrs"===n&&(u.days>0||e>0)||"Mins"===n&&(u.days>0||u.hours>0||e>0)||"Secs"===n&&(u.days>0||u.hours>0||u.minutes>0||e>0)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"fw-bold",style:h,children:String(e).padStart("Days"===n?1:2,"0")}),(0,d.jsx)("small",{style:f,children:t})]}),("Days"===n&&(u.hours>0||u.minutes>0||u.seconds>0)||"Hrs"===n&&(u.minutes>0||u.seconds>0)||"Mins"===n&&u.seconds>0)&&(0,d.jsx)("div",{style:g,children:":"})]}):null};return(0,d.jsx)(s.Z,{fluid:!0,className:"py-2 px-3 shadow-sm cursor-pointer",style:{backgroundColor:"#FBE0DC"},onClick:function(){return e.push(m.web_link)},children:(0,d.jsxs)(o.Z,{className:"align-items-center p-2",children:[(0,d.jsx)(l.Z,{xs:"auto",children:(0,d.jsxs)("p",{className:"fst-italic m-0",style:{fontSize:"24px",fontFamily:"Bookmania-Black",fontWeight:900,color:"rgba(215, 83, 63, 1)"},children:["Up to ",null===m||void 0===m?void 0:m.voucher_percentage,(0,d.jsx)("span",{className:"",style:{fontFamily:"sans-serif"},children:"%"})," ","OFF",(0,d.jsx)("span",{className:"",style:{fontFamily:"sans-serif"},children:"!"})]})}),(0,d.jsx)(l.Z,{className:"d-flex justify-content-end align-items-start",children:(0,d.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"14px"},children:[x(u.days,"Days","Days"),x(u.hours,"Hrs","Hrs"),x(u.minutes,"Mins","Mins"),x(u.seconds,"Secs","Secs")]})})]})})}},72979:function(e,n,t){t(67294);var i=t(85893);n.Z=function(){return(0,i.jsx)("div",{className:"row",children:(0,i.jsxs)("div",{className:"col-6 col-lg-3 mb-3",children:[(0,i.jsx)("div",{className:"skeleton-loader mb-2",style:{height:"200px",width:"100%"}}),(0,i.jsx)("div",{className:"skeleton-loader mb-2",style:{height:"25px",width:"50%"}}),(0,i.jsx)("div",{className:"skeleton-loader mb-2",style:{height:"25px",width:"40%"}})]})})}},74892:function(e,n,t){var i=t(92809),r=t(10219),a=t(85893),s=["className","children"];function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){e.className;var n=e.children,t=(0,r.Z)(e,s);return(0,a.jsx)("h1",l(l({style:{fontWeight:900,color:t.color||"black",letterSpacing:"2.5px"},className:"font-montserrat"},t),{},{children:n}))}},10682:function(e,n,t){var i=t(94184),r=t.n(i),a=t(67294),s=t(76792),o=t(85893);const l=a.forwardRef((({bsPrefix:e,fluid:n=!1,as:t="div",className:i,...a},l)=>{const c=(0,s.vE)(e,"container"),d="string"===typeof n?`-${n}`:"-fluid";return(0,o.jsx)(t,{ref:l,...a,className:r()(i,n?`${c}${d}`:c)})}));l.displayName="Container",n.Z=l}}]);

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.