PageSourceSearch

https://www.yorkrufc.co.uk/_next/static/chunks/3770-201cb15e07a0d8e8.js

js yorkrufc.co.uk collected 2026-09-26 18:57:42 UTC 13,248 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bba57c35-f60d-5176-bce2-3f60d6794edb")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3770],{12543:(e,t,r)=>{r.d(t,{A:()=>p});var a=r(14232),n=r(27416),l=r(12461),o=r(20008),i=r(74055),s=r(45939),c=r(65565),m=r(15822);let d=({forceView:e})=>{let{imagePreset:t,breakpoint:r}=(0,m.H)(e);return a.createElement(n.A,null,a.createElement(l.A,{radius:"rounded",style:{overflow:"hidden"}},a.createElement(o.A,{flexDirection:"row-reverse",alignItems:"center",responsive:[{minWidth:r,props:{flexDirection:"column",alignItems:"initial"}}]},a.createElement(i.A,{component:"div",right:"small",responsive:[{minWidth:r,props:{right:"0"}}]},a.createElement(s.A,{preset:t,hasLoaded:!1,loadingAspectRatio:1})),a.createElement(o.A,{flexDirection:"column",style:{flex:"1"},component:"div"},a.createElement(i.A,{top:"medium",horizontal:"medium",bottom:"large",style:{flex:"1"},component:"div"},a.createElement(c.A,{preset:"subtitle--large"})),a.createElement(i.A,{bottom:"medium",horizontal:"medium",component:"div"},a.createElement(c.A,{preset:"subtitle--small"}))))))};d.defaultProps={forceView:null};let p=d},15822:(e,t,r)=>{r.d(t,{H:()=>a});let a=e=>{switch(e){case"portrait":return{imagePreset:"productCard--portrait",breakpoint:"0"};case"landscape":return{imagePreset:"productCard--landscape",breakpoint:null};default:return{imagePreset:"productCard",breakpoint:"tab"}}}},45671:(e,t,r)=>{r.d(t,{A:()=>A});var a=r(27416),n=r(12461),l=r(74055),o=r(30842),i=r(20008),s=r(35027),c=r(14232),m=r(2171),d=r(66101),p=r(34917),u=r(2910),g=r(73371),h=r(43665),y=r(89015);let E=({categories:e,selectedCategory:t,isApp:r})=>{if(r&&e.length<2)return null;let m=(0,d.A)();if(m){let r=["all",...e].map(e=>({name:e,route:"all"===e?"shop":"shop.category",params:{category:e},transKey:`shop:${e}`}));return c.createElement(h.A,{name:"shop",nameTransKey:"shop:lading_page_title",activeSection:t,activeSectionTransKey:`shop:${t}`,items:r})}let u=["all",...e].map(e=>({name:e,route:"all"===e?"shop":"shop.category",params:{category:e},transKey:`shop:${e}`}));return m?c.createElement(h.A,{name:"shop",nameTransKey:"shop:lading_page_title",activeSection:t,activeSectionTransKey:`shop:${t}`,items:u}):c.createElement(a.A,null,c.createElement(n.A,{fill:"white"},c.createElement(l.A,{component:"div",vertical:"medium"},!r&&c.createElement(l.A,{horizontal:"small",component:"div",responsive:[{minWidth:"tab",props:{horizontal:"large"}}]},c.createElement(o.A,{component:"div",maxWidth:1366,center:!0},c.createElement(i.A,{alignItems:"center"},c.createElement(l.A,{right:"xlarge"},c.createElement(s.A,{component:"div",preset:"title",color:"black",responsive:[{maxWidth:"tab",props:{align:"center"}}]},c.createElement(p.x6,{i18nKey:"common:payments"},"Shop"))),c.createElement(y.A,{links:u,activeSection:t})))))))};E.defaultProps={selectedCategory:null};let A=(0,m.Ng)(e=>({categories:(0,g.TC)(e),isApp:(0,u.o)(e)}))(E)},58048:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(14232),n=r(91459);let l=()=>a.createElement(n.A.Consumer,null,({clear:e})=>{e()})},62983:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(14232),n=r(47104),l=r(98946),o=r(12543);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}let s=({isLoading:e,products:t})=>e?a.createElement(n.A,{preset:"productGrid"},a.createElement(o.A,null),a.createElement(o.A,null),a.createElement(o.A,null),a.createElement(o.A,null)):t.length?a.createElement("div",{className:"product-list"},a.createElement(n.A,{preset:"productGrid"},t.map(e=>a.createElement(l.A,i({key:e.id},e))))):null},72551:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(14232);let n=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(!0)},[]),e}},73371:(e,t,r)=>{r.d(t,{EI:()=>s,FS:()=>i,Gq:()=>p,JJ:()=>w,Ne:()=>c,O2:()=>_,Sz:()=>b,TC:()=>o,Tx:()=>A,X6:()=>h,Zk:()=>m,dM:()=>x,f8:()=>d,f9:()=>u,jE:()=>E,kc:()=>v,mt:()=>g,xq:()=>f,zi:()=>y});var a=r(82851),n=r(79722);let l=e=>(0,a.orderBy)((0,a.get)(e,"shop.assignments",[]),"created","desc"),o=e=>(0,a.get)((0,n.qU)(e),"shopCategories",[]),i=e=>(0,a.get)(e,"shop.isLoadingLandingPage",!1),s=e=>(0,a.get)(e,"shop.hasLoadingLandingPage",!1),c=e=>{if(s(e)){let t=(0,a.get)(e,"shop.featuredProducts",[]),r=l(e);return t.map(e=>{let{products:t,...n}=e;return{...n,products:t.map(e=>({...e,assignment:(0,a.find)(r,{productId:e.id})}))}})}return o(e).map(e=>({name:e,products:[]}))},m=e=>(0,a.get)(e,"shop.overdueProducts",[]).map(({assignments:e,...t})=>({...t,assignment:(0,a.find)((0,a.orderBy)(e,"created","desc"),{productId:t.id})})),d=e=>(0,a.get)(e,"shop.landingPageLoadingError",{}),p=(e,t,r)=>(0,a.includes)((0,a.get)(e,"shop.currentlyLoadingCategoryPages",[]),`${t}-${r}`),u=(e,t,r)=>(0,a.includes)((0,a.get)(e,"shop.loadedCategoryPages",[]),`${t}-${r}`),g=(e,t,r)=>(0,a.find)((0,a.get)(e,"shop.categoryLoadingErrors",[]),{category:t,page:r}),h=(e,t)=>(0,a.get)(e,`shop.categoryPagination[${t}]`),y=(e,t,r)=>{let n=(0,a.get)(e,`shop.paginatedProductLists[${t}-${r}]`,[]),o=l(e);return n.map(e=>({...e,assignment:(0,a.find)(o,{productId:e.id})}))},E=(e,t)=>(0,a.find)((0,a.get)(e,"shop.productLoadingErrors",[]),{productId:t}),A=(e,t)=>
3{let r=(0,a.get)(e,`shop.productPages[${t}]`,{}),n=l(e);return{...r,assignment:(0,a.find)(n,{productId:t})}},v=(e,t)=>(0,a.includes)((0,a.get)(e,"shop.loadedProductPages",[]),t),f=(e,t)=>(0,a.includes)((0,a.get)(e,"shop.currentlyLoadingProducts",[]),t),_=e=>(0,a.get)(e,"shop.hasLoadedAssignments",!1),w=e=>(0,a.get)(e,"shop.isLoadingAssignments",!1),b=(e,t)=>{let{category:r}=A(e,t),{products:n=[]}=(0,a.find)(c(e),{name:r})||{};return(0,a.reject)(n,{id:t})},x=e=>(0,a.get)(e,"shop.bannerClosed",!1)},76186:(e,t,r)=>{r.d(t,{Be:()=>m,Jp:()=>d,TG:()=>c,dV:()=>p,yr:()=>s});var a=r(5130),n=r(18368),l=r(50022),o=r(53948),i=r(59777);let s=(e,t)=>async r=>{try{r({type:o.PK});let a=new l.A(e,"shop"),i=await n.A.getPageData(a,t);return r({type:o.xd,payload:{...i.data}}),r({type:o.oh,payload:a.toString()}),{}}catch(a){let t=500;return a&&(t=a.errorStatusCode||t),r({type:o.Sm,payload:{clubId:e,statusCode:t,error:a}}),{error:a}}},c=(e,t,r,a)=>async i=>{try{i({type:o.Iy,payload:{category:t,page:r}});let s=new l.A(e,"shop_category",{category:t,page:r}),c=await n.A.getPageData(s,a);return i({type:o.K9,payload:{category:t,page:r,...c.data}}),i({type:o.oh,payload:s.toString()}),{}}catch(n){let a=500;return n&&(a=n.errorStatusCode||a),i({type:o.xC,payload:{clubId:e,category:t,page:r,statusCode:a,error:n}}),{error:n}}},m=(e,t,r)=>async a=>{try{a({type:o.DS,payload:{productId:t}});let i=new l.A(e,"product",{id:t}),s=await n.A.getPageData(i,r);return a({type:o.zE,payload:{productId:t,...s.data}}),a({type:o.oh,payload:i.toString()}),{}}catch(n){let r=500;return n&&(r=n.errorStatusCode||r),a({type:o.Yb,payload:{clubId:e,productId:t,statusCode:r,error:n}}),{error:n}}},d=e=>t=>{let r=new a.A;e?r.set("SHOP_BANNER_CLOSED",!0,{maxAge:31536e6}):r.remove("SHOP_BANNER_CLOSED"),t({type:o._v,payload:e})},p=e=>async t=>{try{t({type:o.EM,payload:{clubId:e}});let{makeIsomorphicApiRequest:a}=await Promise.all([r.e(8513),r.e(4471),r.e(981)]).then(r.bind(r,83362)),n=await a(`/v2/club-website/${e}/shop-assignments`,{method:"GET"});if(200!==n.status)(401===n.status||403===n.status)&&t({type:o.d1}),t({type:o.vN,payload:{clubId:e,error:new i.A("Error retrieving assignments",n.status)}});else{let r=await n.json();t({type:o.Mc,payload:{clubId:e,data:r}}),r.length&&d(!1)(t)}}catch(r){t({type:o.vN,payload:{clubId:e,error:r}})}}},76912:(e,t,r)=>{r.d(t,{A:()=>m});var a=r(14232),n=r(2171),l=r(27013),o=r(76186),i=r(73371);class s extends a.Component{componentDidMount(){let{hasPreviouslyLoaded:e}=this.props;e||this.loadIfRequired()}componentDidUpdate(e){let{isLoggedIn:t}=this.props,{isLoggedIn:r}=e;!r&&t&&this.loadIfRequired()}loadIfRequired=()=>{let{clubId:e,isLoading:t,loadAssignments:r,isLoggedIn:a}=this.props;a&&!t&&r(e)};render(){return null}}let c={loadAssignments:o.dV},m=(0,n.Ng)(e=>({isLoading:(0,i.JJ)(e),hasPreviouslyLoaded:(0,i.O2)(e),isLoggedIn:(0,l.M3)(e)}),c)(s)},81883:(e,t,r)=>{r.d(t,{A:()=>w});var a=r(14232),n=r(34560),l=r(77328),o=r.n(l),i=r(38596);let s=({clubId:e,messageTranslationKey:t,onAuthorise:r})=>a.createElement(a.Fragment,null,a.createElement(o(),null,a.createElement("title",null,"Access Denied")),a.createElement(i.A,{clubId:e,onAuthorise:r,messageTranslationKey:t}));s.defaultProps={messageTranslationKey:"common:access_denied"};var c=r(74055),m=r(12461),d=r(35027),p=r(93052),u=r(55112),g=r(4439),h=r(11164),y=r(34917),E=r(72551),A=r(58048);let v=({reload:e,t})=>{let r=(0,E.A)()&&!(0,h.default)()&&window&&window.navigator&&!1===window.navigator.onLine?"common:data_load_error_title_offline":"common:data_load_error_title",n=e?"common:data_load_error_instruction_reload":"common:data_load_error_instruction";return a.createElement(a.Fragment,null,a.createElement(o(),null,a.createElement("title",null,t(r))),a.createElement(A.A,null),a.createElement(c.A,{horizontal:"xlarge",vertical:"xxxlarge"},a.createElement(m.A,{fill:"white"},a.createElement(d.A,{component:"div",align:"center"},a.createElement(d.A,{preset:"errorCode",component:"div",align:"center",color:"silver"},a.createElement(g.A,{name:"warning-circle",size:120})),a.createElement(p.A,{bottom:"large"},a.createElement(d.A,{preset:"subtitle--large",color:"black",component:"div"},a.createElement(y.x6,{i18nKey:r},"Error loading page"))),a.createElement(p.A,{bottom:"large"},a.createElement(d.A,{preset:"body--large",color:"dustygrey",component:"div"},a.createElement(y.x6,{i18nKey:n},"Please check your internet connection and refresh the page."))),e&&a.createElement(u.A,{theme:"primary",onClick:e},a.createElement(y.x6,{i18nKey:"common:data_load_error_reload_cta"},"Try again"))))))};v.defaultProps={reload:null};let f=(0,y.CI)(["common"])(v),_=({accessDeniedTranslationKey:e,clubId:t,onAuthorise:r,reload:l,statusCode:o})=>404===o?a.createElement(n.A,null):403===o?a.createElement(s,{clubId:t,onAuthorise:r,messageTranslationKey:e}):a.createElement(f,{clubId:t,reload:l});
3_.defaultProps={accessDeniedTranslationKey:"common:access_denied",error:null,onAuthorise:()=>{},reload:null,statusCode:null};let w=_},98946:(e,t,r)=>{r.d(t,{A:()=>f});var a=r(14232),n=r(27416),l=r(12461),o=r(47104),i=r(20008),s=r(74055),c=r(6223),m=r(35027),d=r(34917),p=r(61799),u=r(63376),g=r(15822),h=r(55112),y=r(93052);let E=({outOfStock:e})=>e?null:a.createElement(h.A,{theme:"primaryContrast",compact:!0,style:{width:"90px"}},a.createElement(d.x6,{i18nKey:"common:buy"},"Buy")),A=({assignment:e,outOfStock:t})=>e?a.createElement(l.A,{fill:"primary"},a.createElement(s.A,{all:"small"},a.createElement(i.A,{flexDirection:"row",alignItems:"center"},a.createElement(s.A,{horizontal:"small",component:"div",style:{flex:1,width:"100%"}},a.createElement(y.A,{bottom:"xxsmall"},a.createElement(m.A,{color:"primaryContrast",preset:"tag--large",component:"div"},e.requester)),a.createElement(m.A,{color:"primaryContrast",preset:"tag--small",component:"div"},a.createElement(d.x6,{i18nKey:"shop:asked_you_to_buy_this"},"Asked you to buy this"))),a.createElement(E,{outOfStock:t})))):null;A.defaultProps={assignment:null,outOfStock:!1};let v=({id:e,name:t,image:r,amountSummary:h,variantCount:y,outOfStock:E,forceView:v,assignment:f})=>{let{imagePreset:_,breakpoint:w}=(0,g.H)(v),b=()=>a.createElement(n.A,null,a.createElement(l.A,{radius:"rounded",fill:"white",style:{overflow:"hidden",height:"100%"}},a.createElement(o.A,{rows:"100fr auto"},a.createElement(i.A,{flexDirection:"row-reverse",alignItems:"center",style:{height:"100%",width:"100%"},responsive:[{minWidth:w,props:{flexDirection:"column"}}]},a.createElement(s.A,{component:"div",right:"small",responsive:[{minWidth:w,props:{right:"0"}}]},a.createElement(l.A,{radius:"rounded",responsive:[{minWidth:w,props:{radius:"roundedTop"}}],component:"div",style:{overflow:"hidden",lineHeight:0}},a.createElement(c.A,{src:r,alt:t,shimmerOnLoad:!0,preset:_}))),a.createElement(i.A,{flexDirection:"column",style:{flex:1,width:"100%"}},a.createElement(s.A,{top:"medium",left:"medium",right:"small",style:{flex:"1",whiteSpace:"pre-line"},component:"div"},a.createElement(m.A,{color:"black",preset:"subtitle--large",component:"div"},t)),a.createElement(s.A,{vertical:"medium",horizontal:"medium",style:{whiteSpace:"pre-line"}},!1===E?a.createElement(m.A,{color:"primary",preset:"subtitle--small",component:"div"},1===y?h:a.createElement(d.x6,{i18nKey:"shop:options_available",values:{variantCount:y}})):a.createElement(m.A,{color:"primary",preset:"subtitle--small",component:"div"},a.createElement(d.x6,{i18nKey:"common:out_of_stock"},"Out of stock"))))),a.createElement(A,{assignment:f,outOfStock:E}))));return E?b():a.createElement(p.A,{route:"shop.product",params:{id:e,_name:t}},a.createElement(u.A,{className:"product-card"},b()))};v.defaultProps={amountSummary:null,forceView:null,outOfStock:!1,assignment:null};let f=v}}]);
4//# debugId=bba57c35-f60d-5176-bce2-3f60d6794edb

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.