(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3701],{55065:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r,a=((r={}).HOME_PAGE="HOMEPAGE",r.LANDING="LANDING",r.SEARCH="SEARCH",r.PRODUCT="PRODUCT",r.ACCOUNT="ACCOUNT",r.BASKET="BASKET",r.PRODUCT_LIST="PRODUCT_LIST",r.STORE_LOCATOR="STORE_LOCATOR",r.PERSONALISE="PERSONALISE_YOUR_BOX",r)},22182:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r,a,i,o=n(82269),s=n(8529),c=n(7328),u=n(95235),p=n(2784),f=n(5632),g=n(1761),d=n(11006),l=n(48840),m=n(81292),h=n(57209),w=n(67971),v=n(93421),y=n(55065),O=n(73153),E=n(63601),C=n(96412),b=n(13089),T=n(80304),_=n(29017),S=n(48200),P=n(70314),R=n.n(P),N=n(96965),k=n(52322),A=(0,N.Z)().captureExceptionComponentLevel,D=function(e){(0,T.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,S.Z)(r);return e=t?Reflect.construct(n,arguments,(0,S.Z)(this).constructor):n.apply(this,arguments),(0,_.Z)(this,e)});function r(e){var t;return(0,C.Z)(this,r),(t=n.call(this,e)).state={error:null},t}return(0,b.Z)(r,[{key:"componentDidCatch",value:function(e,t){var n=R()().publicRuntimeConfig,r=this.context,a=r.logger,i=r.brand,o=r.subsite;n.IS_PRODUCTION&&A(e,i,o),a.error(e.message,{stack:t.componentStack}),this.setState({error:e})}},{key:"render",value:function(){return this.state.error?(0,k.jsx)("h1",{"data-testid":"error-message",children:"An error occured"}):this.props.children}}]),r}(p.Component);(0,u.Z)(D,"contextType",v.L);var Z=["responsiveMargin","enableMaxWidth","children"];function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t0&&(null===(e=window.performance.getEntriesByType("navigation")[0])||void 0===e?void 0:e.loadEventStart)!==0?d(!0):window.addEventListener("load",t),function(){window.removeEventListener("load",t)}},[]),p.useEffect(function(){var i=n.requestConfig.enableBrowserPageVisits&&e.sendPageVisit;!(window.performance.getEntriesByName("pageChangeStart").length>0)&&u&&!l.current&&i&&null!==m&&(n.updateHistory(),t({type:"page_visit",payload:r({basket:a,requestData:{start_timestamp:window.performance.timeOrigin,url:window.location.href,duration_ms:window.performance.getEntriesByType("navigation")[0].duration},eventData:{type:n.pageType&&j[n.pageType]?j[n.pageType]:"page_visit"}})}),l.current=!0)},[u,e.sendPageVisit,n.requestConfig.enableBrowserPageVisits,m]);var C=e.responsiveMargin,b=e.enableMaxWidth,T=e.children,_=(0,o.Z)(e,Z);return(0,k.jsx)(D,{children:(0,k.jsx)(L,x(x({},_),{},{responsiveMargin:void 0!==C&&C,className:e.className,enableMaxWidth:void 0===b||b,children:T}))})}},78554:function(e,t,n){"use strict";n.r(t);var r=n(68552);t.default=r.F4},89559:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/basket",function(){return n(78554)}])}},function(e){e.O(0,[2670,6461,1215,6268,576,3232,5152,9385,9320,3587,5370,9103,8377,8552,6796,9774,2888,179],function(){return e(e.s=89559)}),_N_E=e.O()}]); //# sourceMappingURL=basket-ca023ee220a32301.js.map