PageSourceSearch

https://www.g-star.com/_next/static/chunks/3610-3ba2b6b66eefe73a.js

js g-star.com collected 2026-10-01 12:04:30 UTC 9,594 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3610],{3354:(e,t,n)=>{n.d(t,{W:()=>d});var a=n(14232),r=n(91692),o=n(43561),i=n(55141),l=n(22224),c=n(86981);let d=()=>{let{configuration:{algoliaAppId:e,algoliaInsightsApiKey:t,algoliaProductPrimaryIndexName:n}}=(0,o.Z)(),{userToken:d,authenticatedUserToken:s}=(0,c.J)(),{hasAnalyticsConsent:u,hasFullConsent:p,shouldReportAnalytics:g}=(0,l.b)();(0,a.useEffect)(()=>{n&&(0,i.VS)("localStorage")&&localStorage.setItem("algoliaIndexName",n)},[n]);let h=()=>({index:(0,i.VS)("localStorage")?localStorage.getItem("algoliaIndexName"):"",queryID:(0,i.VS)("localStorage")?localStorage.getItem("algoliaQueryID"):""}),m=(0,a.useCallback)(()=>{g&&e&&t&&(0,r.Ay)("init",{authenticatedUserToken:s,appId:e,apiKey:t,userToken:d,useCookie:p,userHasOptedOut:!u})},[p,u,t,e,d,s,g]),_=(0,a.useCallback)(function(e,t,a,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},{index:l,queryID:c}=h(),s=!!(a&&t&&(l||n));if(!(g&&s))return;let u={userToken:d,index:null!=l?l:n,eventName:t,objectIDs:[a],...o&&c?{queryID:c}:{},...i};(0,r.Ay)("getUserToken")||m(),setTimeout(()=>{(0,r.Ay)(e,u)})},[n,g,d,m]),x=(0,a.useCallback)((e,t,a)=>{let{index:o,queryID:i}=h(),l=!!(a&&t&&(a.index||o||n)),c=a.queryID||i;if(!(g&&l))return;let s={userToken:d,index:null!=o?o:n,eventName:t,...a};c&&(s.queryID=c),(0,r.Ay)("getUserToken")||m(),setTimeout(()=>{(0,r.Ay)(e,s)})},[n,d,g,m]);return{pushToAlgolia:_,initialize:m,pushToAlgoliaWithQueryId:x,getAlgoliaDataCart:(0,a.useCallback)(e=>{let t=!!e;if(!g&&t)return null;let{index:a,queryID:r}=h();return{userToken:d,index:null!=a?a:n,authenticatedUserToken:s,...Object.entries(e).reduce((e,t)=>{let[n,a]=t;return(null==a?void 0:a.queryID)!==void 0?e[n]={...a,queryID:r}:e[n]=a,e},{})}},[s,n,d,g])}}},14237:(e,t,n)=>{n.d(t,{B:()=>r});var a=n(38248);let r=(e,t)=>{var n,r,o,i,l,c,d,s,u,p,g,h,m;let _,x,f,y=Math.round(Date.now()/1e3),{oneSize:b,isGiftCard:w,baseProduct:A,code:I}=e;return b||w?(_=A?I:"".concat(I,"-PC"),x="PC",f=(null==(h=e.sizeInformation)||null==(g=h.sizes)||null==(p=g.at(0))?void 0:p.ean)||e.ean||void 0):(_=A?I:"",x=null==(m=e.code.split("-")[3])?void 0:m.toUpperCase(),f=e.ean||void 0),{product_id:(A||I).toLowerCase(),variant_id:_.toLowerCase(),variant_name:e.nameEN,categories_path:null==(n=e.staticCategoryPath)?void 0:n.replace("/"," > "),category_id:e.staticCategoryPathIds,categories_ids:[null==(r=e.staticCategoryPathIds)?void 0:r.split("/").pop()],from_price_local_currency:Number((null==(o=e.fromPrice)?void 0:o.value)||(null==(i=e.price)?void 0:i.value)),base_price_local_currency:Number(null==(l=e.price)?void 0:l.value),local_currency:t,domain:window.location.hostname,timestamp:y,style_family_en:e.styleFamilyEN,main_color_en:null==(c=e.mainColor)?void 0:c.descriptionEN,ean:f,size:x,fit_en:e.fitEN,availability_en:e.stockNotificationMessageEN||e.baseProductStockNotificationMessageEN,sub_target_audience:e.subTargetAudience,sale_discount_percentage:Math.abs(Math.round(-((Number(null==(d=e.price)?void 0:d.value)-Number(null==(s=e.fromPrice)?void 0:s.value))/Number(null==(u=e.fromPrice)?void 0:u.value)*100))),material_group:e.materialGroup,parent_id:e.code.split("-").slice(0,2).join("-").toLowerCase(),event_uid:"web_view_item_".concat((0,a.getCookie)("_rsu"),"_").concat(y)}}},23292:(e,t,n)=>{n.d(t,{o:()=>l});var a=n(37876),r=n(87856),o=n(84748);let i={Text:r.Ay.p.withConfig({componentId:"sc-857e21b9-0"})(["",";text-align:",";color:",";text-decoration:",";"],e=>{let{$variant:t}=e;return t&&o.Il[t]},e=>{let{$alignment:t}=e;return t},e=>{let{$color:t}=e;return t},e=>{let{$decoration:t}=e;return t})},l=e=>{let{alignment:t="left",children:n,component:r="p",variant:o="body",color:l="",decoration:c="none",className:d="",testId:s,onClick:u,...p}=e;return(0,a.jsx)(i.Text,{$alignment:t,as:r,$variant:o,$color:l,$decoration:c,className:d,"data-testid":s,onClick:u,...p,children:n})}},70089:(e,t,n)=>{n.d(t,{q:()=>o});var a=n(94852),r=n(14232);let o=()=>(0,r.useContext)((0,a.l)())},83558:(e,t,n)=>{n.d(t,{Tt:()=>s,a6:()=>u,bL:()=>p,h$:()=>g,j0:()=>d,yj:()=>c});var a=n(52035),r=n(31306),o=n(14646);let i=n(99742).env.NEXT_PHASE===a.PHASE_PRODUCTION_BUILD;
1class l extends Error{constructor(e){super(e),this.name=this.constructor.name}}let c=async e=>{let{siteType:t,code:n,locale:a,refetch:r,apolloClient:c}=e;try{if(!c)throw new l("Apollo Client is not defined");let{data:e,errors:d}=await c.query({query:o.xqd,fetchPolicy:!i&&r?"network-only":"cache-first",variables:{siteType:t,code:n,locale:a}});return{...e,errors:d}}catch(e){throw new l("Product - ".concat(e))}},d=async e=>{let{siteType:t,locale:n,codes:a,apolloClient:r}=e;try{if(!r)throw new l("Apollo Client is not defined");let{data:e}=await r.query({query:o.sZ7,variables:{input:{siteType:t,codes:a,locale:n}}});return e}catch(e){throw new l("Products - ".concat(e))}},s=async e=>{let{siteType:t,locale:n,apolloClient:a}=e;try{if(!a)throw new l("Apollo Client is not defined");let{data:e}=await a.query({query:o.mlx,variables:{siteType:t,locale:n}});return e}catch(e){throw new l("Cart Data - ".concat(e))}},u=async e=>{let{siteType:t,locale:n,apolloClient:a}=e;try{if(!a)throw new l("Apollo Client is not defined");let{data:e}=await a.query({query:o.DGu,variables:{siteType:t,locale:n},fetchPolicy:"no-cache"});return e}catch(e){throw new l("Wishlist Data - ".concat(e))}},p=async e=>{let{siteType:t,locale:n,navigationType:a,refetch:c,apolloClient:d}=e;try{if(!d)throw new l("Apollo Client is not defined");let{data:e}=await d.query({query:o.UwN,fetchPolicy:!i&&c?"network-only":"cache-first",variables:{siteType:t,navigationType:a,locale:n}});return e}catch(e){return r.A.error("[Storefront] Error in ".concat(a," navigation data fetch => ").concat(e)),{}}},g=async e=>{let{siteType:t,code:n,isocode:a,locale:r,apolloClient:i}=e;try{if(!i)throw new l("Apollo Client is not defined");let{data:e}=await i.query({query:o.E3d,variables:{siteType:t,code:n,isocode:a,locale:r},fetchPolicy:"no-cache"});return e.localStoreStock}catch(e){throw new l("Find Store - ".concat(e))}}},86981:(e,t,n)=>{n.d(t,{J:()=>i});var a=n(22224),r=n(67234),o=n(43561);let i=()=>{let{configuration:{enforceCHEForAlgoliaUserToken:e}}=(0,o.Z)(),{hasAnalyticsConsent:t}=(0,a.b)(),{rsu:n,che:i,imanrut:l}=(0,r.L)(),c=!l&&t;return{userToken:c?e&&null!=i?i:n:void 0,authenticatedUserToken:c&&!e?i:void 0}}},87859:(e,t,n)=>{n.d(t,{$5:()=>l,$L:()=>c,_J:()=>i,wm:()=>d});var a=n(87856),r=n(84748);let o=(0,a.i7)(["from{transform:translateX(-100%);}to{transform:translateX(100%);}"]),i=(0,a.AH)(["overflow:hidden;&::after{user-select:none;pointer-events:none;width:100%;height:100%;display:block;background-image:linear-gradient( 90deg,rgba(255 255 255 / 0%) 0,rgba(255 255 255 / 40%) 40%,rgba(255 255 255 / 90%) 60%,rgba(255 255 255 / 0%) );@media ","{content:'","';will-change:transform;animation:"," 2s infinite;}}"],e=>{let{theme:t}=e;return(0,r.$_)(t).noMotionPreference},"\\00A0",o),l=(0,a.AH)(["border:0;clip:rect(0 0 0 0);height:auto;margin:0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;"]),c=(0,a.AH)(["-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),d={large:{fontSize:"14px",width:"68px",height:"68px",marginRight:"4px",marginBottom:"4px",direction:"column",disabledBackgroundMobile:"repeating-linear-gradient(45deg,\n      transparent,transparent 46.5px,\n      ".concat(r.Tj.DISABLED_GREY," 47.5px,").concat(r.Tj.DISABLED_GREY," 23.5px)"),disabledBackground:"repeating-linear-gradient(45deg,\n        transparent,transparent 46.5px,\n        ".concat(r.Tj.BALI_HAI_GREY," 47.5px,").concat(r.Tj.BALI_HAI_GREY," 23.5px)")},medium:{fontSize:"14px",width:"58px",height:"58px",marginRight:"4px",marginBottom:"4px",direction:"column",disabledBackgroundMobile:"repeating-linear-gradient(45deg,\n      transparent,transparent 38.5px,\n      ".concat(r.Tj.DISABLED_GREY," 39.5px,").concat(r.Tj.DISABLED_GREY," 23.5px)"),disabledBackground:"repeating-linear-gradient(45deg,\n      transparent,transparent 38.5px,\n      ".concat(r.Tj.BALI_HAI_GREY," 39.5px,").concat(r.Tj.BALI_HAI_GREY," 23.5px)")},fourA:{fontSize:"13px",width:"58px",height:"58px",marginRight:"4px",marginBottom:"4px",direction:"row",disabledBackgroundMobile:"repeating-linear-gradient(45deg,\n      transparent,transparent 39.5px,\n      ".concat(r.Tj.DISABLED_GREY," 40.5px,").concat(r.Tj.DISABLED_GREY," 23.5px)"),disabledBackgroun
1d:"repeating-linear-gradient(45deg,\n      transparent,transparent 39.5px,\n      ".concat(r.Tj.BALI_HAI_GREY," 40.5px,").concat(r.Tj.BALI_HAI_GREY," 23.5px)")},normal:{fontSize:"13px",width:"40px",height:"40px",marginRight:"4px",marginBottom:"4px",direction:"column",disabledBackgroundMobile:"repeating-linear-gradient(45deg,\n      transparent,transparent 25.5px,\n      ".concat(r.Tj.DISABLED_GREY," 26.5px,").concat(r.Tj.DISABLED_GREY," 26.5px)"),disabledBackground:"repeating-linear-gradient(45deg,\n      transparent,transparent 25.5px,\n      ".concat(r.Tj.BALI_HAI_GREY," 26.5px,").concat(r.Tj.BALI_HAI_GREY," 26.5px)")},sizeRange:{fontSize:"13px",width:"fit-content",height:"40px",marginRight:"4px",marginBottom:"4px",paddingRight:"11px",paddingLeft:"11px",direction:"column",disabledBackground:"linear-gradient(to bottom left, transparent 49%, ".concat(r.Tj.BALI_HAI_GREY," 50%, ").concat(r.Tj.BALI_HAI_GREY," 50%, transparent 51%)"),disabledBackgroundMobile:"linear-gradient(to bottom left, transparent 49%, ".concat(r.Tj.DISABLED_GREY," 50%, ").concat(r.Tj.DISABLED_GREY," 50%, transparent 51%)")}}}}]);
2//# sourceMappingURL=3610-3ba2b6b66eefe73a.js.map

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.