PageSourceSearch

https://www.gap.at/_next/static/chunks/6400.f30b966e64bd701b.js

js gap.at collected 2026-10-06 13:19:57 UTC 6,937 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6400],{38701:(e,t,r)=>{r.d(t,{b:()=>a});var s,a=((s={}).CONTENTS="cartProducts",s.CONTACTS="contacts",s.SHIPPING="shipping",s.PAYMENT="payment",s)},45038:(e,t,r)=>{r.r(t),r.d(t,{LayoutMainCheckout:()=>C});var s=r(26514),a=r(41246),n=r(49421),l=r(81586),c=r(48935),i=r(59429),u=r(23469),o=r.n(u),d=r(75834);let p=o()(()=>Promise.all([r.e(1620),r.e(2053),r.e(8899),r.e(8245),r.e(3700),r.e(5852),r.e(20),r.e(3779)]).then(r.bind(r,92082)).then(e=>e.UpsellProductsResolver),{loadableGenerated:{webpack:()=>[92082]},ssr:!1}),m=(0,i.PA)(()=>{let{cart:e}=(0,l.Pj)(),t=(0,d.useMemo)(()=>e.orderItems.map(e=>e.id),[e.orderItems]);return 0===e.orderItems.length?null:(0,s.jsx)(p,{productIds:t})});var h=r(38701),f=r(55047),g=r(51973),x=r(75406);let b=({stepNumber:e,label:t,isHighlighted:r,isAvailable:a,href:n,onClick:l})=>{let c=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,x.cn)({"w-8 aspect-square shrink-0 text-white rounded-full flex items-center justify-center":!0,"bg-black":r,"bg-gray-600":!r}),children:e}),(0,s.jsx)("span",{className:(0,x.cn)({"text-xs md:font-bold text-wrap":!0,"text-black":r,"text-gray-600":!r}),children:t})]}),i=(0,x.cn)({"flex flex-col md:flex-row gap-2 md:gap-4 items-center":!0});return(0,s.jsx)(s.Fragment,{children:a?(0,s.jsx)(g.A,{className:i,href:n,onClick:l,children:c}):(0,s.jsx)("div",{className:i,children:c})})},j=e=>{e.preventDefault();let t=document.getElementById("form-contacts"),r=t?.querySelector('button[type="submit"]');r?.click()},v=(0,i.PA)(()=>{let{t:e}=(0,f.Bd)("common"),t=(()=>{let{cart:e,settings:t}=(0,l.Pj)(),r=(0,c.j)();return(0,d.useMemo)(()=>{let s=[];return s.push({name:h.b.CONTENTS,isActive:r.cart,isHighlighted:r.cart||r.contacts||r.shipping||r.payment,isAvailable:!0,href:t.routes.cartProducts||"#",stepperHref:t.routes.cartProducts||"#"}),s.push({name:h.b.CONTACTS,isActive:r.contacts,isHighlighted:r.contacts||r.shipping||r.payment,isAvailable:!0,href:t.routes.cartContact||"#",stepperHref:t.routes.cartContact||"#"}),s.push({name:h.b.SHIPPING,isActive:r.shipping,isHighlighted:r.shipping||r.payment,isAvailable:e.contact,href:e.contact&&!e.shipping?"#":t.routes.cartShipping||"#",stepperHref:e.contact&&e.shipping&&t.routes.cartPayment||"#",shouldSubmitContactForm:e.contact&&!e.shipping}),s},[e.contact,e.shipping,r,t.routes])})();return(0,s.jsx)("div",{className:"grid grid-flow-col auto-cols-max justify-between w-full my-5 lg:my-7.5 gap-2 sm:grid-flow-row sm:grid-cols-[auto_minmax(0,1fr)_auto_minmax(0,1fr)_auto] sm:items-center",children:t.map(({name:r,isAvailable:a,stepperHref:n,isHighlighted:l,shouldSubmitContactForm:c},i)=>(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)(b,{stepNumber:i+1,label:(t=>{switch(t){case h.b.CONTENTS:return e("cart__contents");case h.b.CONTACTS:return e("contacts");case h.b.SHIPPING:return e("cart__shipping__and__payment");default:return""}})(r),isHighlighted:l,isAvailable:a,href:n,onClick:c?j:void 0}),i<t.length-1&&(0,s.jsx)("div",{className:"hidden sm:block h-px bg-gray-400 w-4/5 mx-auto"})]},`stepper-${r}-${i}`))})});var y=r(99624);let N=o()(()=>Promise.all([r.e(1620),r.e(8245),r.e(5777),r.e(3160),r.e(3862),r.e(4558),r.e(8769)]).then(r.bind(r,39080)).then(e=>e.LoginPromo),{loadableGenerated:{webpack:()=>[39080]},ssr:!1}),k=o()(()=>Promise.all([r.e(8252),r.e(1620),r.e(8245),r.e(3700),r.e(5777),r.e(3862),r.e(4614),r.e(9955),r.e(7507)]).then(r.bind(r,96422)).then(e=>e.SummaryBar),{loadableGenerated:{webpack:()=>[96422]},ssr:!1}),P=(0,i.PA)(()=>{let{cart:e}=(0,l.Pj)();return(0,s.jsx)(n.a,{className:"fixed z-5000",isActive:e.isLoading})}),C=({children:e})=>{let t=(0,c.j)();return(0,s.jsxs)(y.C,{children:[(0,s.jsx)(P,{}),(0,s.jsx)(a.m,{maxW:"xl",children:(0,s.jsxs)("div",{className:"lg:grid grid-cols-[minmax(0,1fr)_375px] lg:gap-x-[139px] pb-32",children:[(0,s.jsxs)("div",{className:"lg:row-start-1 lg:col-start-1",children:[(0,s.jsx)(v,{}),(0,s.jsx)(N,{showBenefits:!!(t?.cart||t?.contacts)}),e]}),t.cart&&(0,s.jsx)(m,{}),(0,s.jsx)(k,{})]})})]})}},48935:(e,t,r)=>{r.d(t,{j:()=>a});var s=r(46225);let a=()=>{let e=(0,s.useRouter)(),t=e.query.slug&&e.query.slug[0];return{slug:t,cart:"cart"===t,contacts:"contacts"===t,shipping:"shipping"===t,payment:"payment"===t,summary:"summary"===t}}},51973:(e,t,r)=>{r.d(t,{A:()=>f});
1var s=r(26514),a=r(81586),n=r(52661),l=r(96456),c=r.n(l),i=r(46225),u=r(75834),o=r(71557);let d="prefetched",p="timeout",m="clicked",h=(e,t)=>{switch(t.type){case d:return{...e,prefetched:t.value};case p:return{...e,timeout:t.value};case m:return{...e,clicked:t.value}}},f=({testId:e,href:t,type:r="customLink",children:l,className:f="",prefetch:g=!0,onMouseEnter:x,onClick:b,target:j="_self",shallow:v=!1,as:y,preventRouterNavigation:N=!1,scroll:k=!0,replace:P=!1,...C})=>{let{ui:_}=(0,a.Pj)(),w=(0,i.useRouter)(),[A,S]=(0,u.useReducer)(h,{prefetched:!1,timeout:null,clicked:!1});switch(r){case"customLink":return(0,s.jsx)("a",{"data-testid":e,onClick:e=>{if(!e.ctrlKey&&!e.metaKey&&(S({type:m,value:!0}),e.preventDefault(),b&&b instanceof Function&&b(e),!N)){if(P)return void w.replace(t,y,{shallow:v,scroll:k});w.push(t,y,{shallow:v,scroll:k})}},onMouseEnter:e=>{x&&x instanceof Function&&(0,n.h5)(()=>{_.isDesktop&&x(e)}),!g||A.prefetched||t.startsWith("http")||S({type:p,value:setTimeout(()=>{!A.clicked&&t&&w.prefetch(t),S({type:d,value:!0})},500)})},onMouseLeave:()=>{g&&A.timeout&&clearTimeout(A.timeout)},href:(0,o.o)(t),className:f,target:j,...C,children:l});case"nextLink":return(0,s.jsx)(c(),{href:(0,o.o)(t),prefetch:g,target:j,className:f,scroll:k,replace:P,...C,children:l});case"nextLinkWithoutA":return(0,s.jsx)(c(),{href:(0,o.o)(t),prefetch:g,scroll:k,replace:P,...C,children:l});case"standardHtml":return(0,s.jsx)("a",{"data-testid":e,target:j,href:(0,o.o)(t),className:f,...C,onClick:b,children:l})}}},74595:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return a}});let s=r(75834);function a(e,t){let r=(0,s.useRef)(null),a=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=n(e,s)),t&&(a.current=n(t,s))},[e,t])}function n(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 t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99624:(e,t,r)=>{r.d(t,{C:()=>l,f:()=>c});var s=r(26514),a=r(75834);let n=(0,a.createContext)({submitContacts:null,setSubmitContacts:()=>void 0}),l=({children:e})=>{let[t,r]=(0,a.useState)(null),l=(0,a.useMemo)(()=>({submitContacts:t,setSubmitContacts:r}),[t]);return(0,s.jsx)(n.Provider,{value:l,children:e})},c=()=>(0,a.useContext)(n)}}]);

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.