PageSourceSearch

https://www.gap.at/_next/static/chunks/4907.7244ed9a40bc54af.js

js gap.at collected 2026-10-06 13:19:40 UTC 5,988 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4907],{621:(e,t,r)=>{"use strict";r.d(t,{Y:()=>c});let c=(e,t=!1,r=null,c,s)=>{if(!e)return"";let l=new Date(e),a="";return l&&(a=l.toLocaleDateString(c,{timeZone:s})),l&&t&&(a+=`${r||" "}${l.toLocaleTimeString(c,{hour:"2-digit",minute:"2-digit",timeZone:s})}`),a}},16074:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n,h:()=>i});var c,s=r(26514),l=r(75406),a=r(26843),u=r.n(a),n=((c={}).Alpha="alpha",c.Beta="beta",c.Gamma="gamma",c.None="none",c);let i=({heading:e=1,variant:t="alpha",weight:r,children:c,className:a,...n})=>{let i=e?`h${e}`:"div";return(0,s.jsx)(i,{className:(0,l.cn)({[u()[t]]:u()[t],[`!font-${r}`]:r,[`${a}`]:a}),...n,children:c})}},26843:e=>{e.exports={alpha:"Title_alpha__RS3in",beta:"Title_beta__DjMos",gamma:"Title_gamma__KEwR8"}},51973:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var c=r(26514),s=r(81586),l=r(52661),a=r(96456),u=r.n(a),n=r(46225),i=r(75834),o=r(71557);let d="prefetched",h="timeout",m="clicked",f=(e,t)=>{switch(t.type){case d:return{...e,prefetched:t.value};case h:return{...e,timeout:t.value};case m:return{...e,clicked:t.value}}},g=({testId:e,href:t,type:r="customLink",children:a,className:g="",prefetch:p=!0,onMouseEnter:b,onClick:x,target:v="_self",shallow:_=!1,as:j,preventRouterNavigation:V=!1,scroll:y=!0,replace:N=!1,...k})=>{let{ui:A}=(0,s.Pj)(),$=(0,n.useRouter)(),[C,w]=(0,i.useReducer)(f,{prefetched:!1,timeout:null,clicked:!1});switch(r){case"customLink":return(0,c.jsx)("a",{"data-testid":e,onClick:e=>{if(!e.ctrlKey&&!e.metaKey&&(w({type:m,value:!0}),e.preventDefault(),x&&x instanceof Function&&x(e),!V)){if(N)return void $.replace(t,j,{shallow:_,scroll:y});$.push(t,j,{shallow:_,scroll:y})}},onMouseEnter:e=>{b&&b instanceof Function&&(0,l.h5)(()=>{A.isDesktop&&b(e)}),!p||C.prefetched||t.startsWith("http")||w({type:h,value:setTimeout(()=>{!C.clicked&&t&&$.prefetch(t),w({type:d,value:!0})},500)})},onMouseLeave:()=>{p&&C.timeout&&clearTimeout(C.timeout)},href:(0,o.o)(t),className:g,target:v,...k,children:a});case"nextLink":return(0,c.jsx)(u(),{href:(0,o.o)(t),prefetch:p,target:v,className:g,scroll:y,replace:N,...k,children:a});case"nextLinkWithoutA":return(0,c.jsx)(u(),{href:(0,o.o)(t),prefetch:p,scroll:y,replace:N,...k,children:a});case"standardHtml":return(0,c.jsx)("a",{"data-testid":e,target:v,href:(0,o.o)(t),className:g,...k,onClick:x,children:a})}}},53625:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Vouchers:()=>x});var c=r(26514),s=r(16074),l=r(51973),a=r(55047),u=r(81586),n=r(75834),i=r(49421),o=r(80254),d=r(23469),h=r.n(d),m=r(59429),f=r(75406),g=r(621);let p=(0,m.PA)(({clubVoucher:e,className:t,...r})=>{let{t:s}=(0,a.Bd)("common"),{settings:l}=(0,u.Pj)(),n=`voucher-${e.ean}`;return(0,c.jsxs)("article",{className:(0,f.cn)({"py-5 grid gap-1 lg:gap-4 lg:grid-cols-4 lg:py-4 lg:items-center min-h-28 text-lg":!0,[`${t}`]:t}),"aria-labelledby":n,"data-testid":o.Q.AccountVouchersArticle,...r,children:[(0,c.jsxs)("div",{id:n,"data-testid":o.Q.AccountVouchersClubVoucherRowNumberDiv,children:[s("vouchers__number")," ",e.ean]}),(0,c.jsx)("time",{dateTime:e.createdAt,className:"text-gray-700 mb-1 lg:mb-0 lg:text-center","data-testid":o.Q.AccountVouchersClubVoucherRowDateTime,children:(0,g.Y)(e.createdAt)}),(0,c.jsxs)("div",{"data-testid":o.Q.AccountVouchersClubVoucherRowPrice,className:"mb-1 lg:mb-0 font-semibold lg:text-center",children:[e.price.toLocaleString()," ",l.defaultCurrency]}),(0,c.jsx)("div",{"data-testid":o.Q.AccountVouchersClubVoucherRowValidity,className:"lg:justify-self-end",children:e.hasDetail?(0,c.jsxs)("div",{className:"lg:text-right",children:[s("vouchers__valid-until")," ",(0,g.Y)(e.validTill)]}):e.isUsed?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"text-green-500 lg:text-right",children:[s("vouchers__used-at")," ",(0,g.Y)(e.usedAt)]}),(0,c.jsx)("div",{className:"lg:text-right",children:e.isEshop?s("vouchers__eshop"):`${s("vouchers__store")} ${e.storeName}`})]}):(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"text-red-500 lg:text-right",children:[s("vouchers__validity-ended")," ",(0,g.Y)(e.validTill)]})})})]})}),b=h()(()=>r.e(3401).then(r.bind(r,13401)).then(e=>e.GenerateVoucher),{loadableGenerated:{webpack:()=>[13401]},ssr:!1}),x=(0,m.PA)(()=>{let{t:e}=(0,a.Bd)("common"),{user:t,settings:r}
1=(0,u.Pj)(),[d,h]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t.fetchVoucherClubPoints(),t.fetchClubVouchers()},[]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.a,{isActive:d}),(0,c.jsx)(s.h,{heading:1,className:"!m-0",children:e("vouchers__hero__title")}),(0,c.jsx)("p",{className:"pt-1 pb-5 lg:pb-7 text-base",children:e("vouchers__hero__description")}),(0,c.jsx)(b,{setLoading:h}),t?.clubVouchers&&t?.clubVouchers.length>0&&(0,c.jsx)("section",{"data-testid":o.Q.AccountVoucherSection,children:t?.clubVouchers&&t.clubVouchers.map((e,t)=>(0,c.jsx)("div",{className:"border-b border-b-gray-500 first:border-t first:border-t-gray-500",children:e.hasDetail&&r.routes.userVouchers?(0,c.jsx)(l.A,{href:`${r.routes.userVouchers}/${e.ean}/${e.code}`,"data-testid":o.Q.AccountVouchersClubVoucherRowDetailLink,className:"block hover:bg-gray-300",children:(0,c.jsx)(p,{clubVoucher:e})}):(0,c.jsx)(p,{clubVoucher:e})},`${e.ean}-${t}`))})]})})},74595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return s}});let c=r(75834);function s(e,t){let r=(0,c.useRef)(null),s=(0,c.useRef)(null);return(0,c.useCallback)(c=>{if(null===c){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=l(e,c)),t&&(s.current=l(t,c))},[e,t])}function l(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)}}]);

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.