(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(5075)}])},8465:function(e,t,n){"use strict";var r=n(5893),o=n(7294),a=n(4931),i=n(4404);t.Z=function(e){var t,n,u,l=e.theme,s=e.children,c=e.showHeroImage,d=(0,o.useState)("0px"),f=d[0],h=d[1],v=(0,o.useState)(240),m=v[0],p=v[1],b=(0,o.useCallback)((function(e){p(l.header.height+e[0].borderBoxSize[0].blockSize)}),[l.header.height]);return(0,o.useEffect)((function(){if(window){var e=(0,i.iv)(),t=e.width,n=e.height;h(n>900&&t>800?"400px":t>600?"200px":t>400?"150px":"100px")}}),[]),(0,o.useEffect)((function(){var e=new ResizeObserver(b);return e.observe(document.getElementsByTagName("footer")[0]),function(){e.disconnect(),e=null}}),[b]),l?(0,r.jsxs)("div",{style:{height:"calc(100% - ".concat(m,"px)")},className:"bg-primary",children:[c&&(0,r.jsx)("div",{style:{height:f,backgroundImage:"url(".concat((null===l||void 0===l||null===(t=l.heroImage)||void 0===t?void 0:t.imageURL)&&(null===l||void 0===l||null===(n=l.heroImage)||void 0===n?void 0:n.imageURL.length)>0?null===l||void 0===l||null===(u=l.heroImage)||void 0===u?void 0:u.imageURL:"/images/stock/hero-image.svg",")"),backgroundSize:"cover",backgroundPosition:"center"},className:"flex justify-center z-10"}),(0,r.jsxs)("div",{style:{maxWidth:"540px"},className:"h-full flex mx-auto flex-col",children:[s,(0,r.jsx)(a.x7,{})]})]}):null}},638:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}t.default=function(e,t){var n=a.default,r={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};i=e,l=Promise,(null!=l&&"undefined"!==typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](i):i instanceof l)?r.loader=function(){return e}:"function"===typeof e?r.loader=e:"object"===typeof e&&(r=o({},r,e));var i,l;var s=r=o({},r,t);if(s.suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");if(s.suspense)return n(s);r.loadableGenerated&&delete(r=o({},r,r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,u(n,r);delete r.ssr}return n(r)};i(n(7294));var a=i(n(4302));function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}},6319:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var o=((r=n(7294))&&r.__esModule?r:{default:r}).default.createContext(null);t.LoadableContext=o},4302:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,u=(i=n(7294))&&i.__esModule?i:{default:i},l=n(7161),s=n(6319);var c=[],d=[],f=!1;function h(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var v=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}var t,n,o;return t=e,(n=[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;if(t.loading){if("number"===typeof n.delay)if(0===n.delay)this._state.pastDelay=!0;else{var r=this;this._delay=setTimeout((function(){r._update({pastDelay:!0})}),n.delay)}if("number"===typeof n.timeout){var o=this;this._timeout=setTimeout((function(){o._update({timedOut:!0})}),n.timeout)}}this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=a({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}])&&r(t.prototype,n),o&&r(t,o),e}();function m(e){return function(e,t){var n=function(){if(!o){var t=new v(e,r);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()},r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);r.suspense&&(r.lazy=u.default.lazy(r.loader));var o=null;if(!f&&!r.suspense){var i=r.webpack?r.webpack():r.modules;i&&d.push((function(e){var t=!0,r=!1,o=void 0;try{for(var a,u=i[Symbol.iterator]();!(t=(a=u.next()).done);t=!0){var l=a.value;if(-1!==e.indexOf(l))return n()}}catch(s){r=!0,o=s}finally{try{t||null==u.return||u.return()}finally{if(r)throw o}}}))}var c=r.suspense?function(e,t){return u.default.createElement(r.lazy,a({},e,{ref:t}))}:function(e,t){n();var a=u.default.useContext(s.LoadableContext),i=l.useSubscription(o);return u.default.useImperativeHandle(t,(function(){return{retry:o.retry}}),[]),a&&Array.isArray(r.modules)&&r.modules.forEach((function(e){a(e)})),u.default.useMemo((function(){return i.loading||i.error?u.default.createElement(r.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:o.retry}):i.loaded?u.default.createElement(function(e){return e&&e.__esModule?e.default:e}(i.loaded),e):null}),[e,i])};return c.preload=function(){return!r.suspense&&n()},c.displayName="LoadableComponent",u.default.forwardRef(c)}(h,e)}function p(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return p(e,t)}))}m.preloadAll=function(){return new Promise((function(e,t){p(c).then(e,t)}))},m.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return f=!0,t()};p(d,e).then(n,n)}))},window.__NEXT_PRELOADREADY=m.preloadReady;var b=m;t.default=b},5075:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(5893),o=n(1664),a=n(5152),i=n(1163),u=n(7294),l=n(8465),s=n(7243),c=n(4404),d=n(2757),f=(0,a.default)((function(){return n.e(461).then(n.bind(n,7461))}),{loadableGenerated:{webpack:function(){return[7461]}},ssr:!1});function h(e){var t,n,a=e.theme,h=e.advancedConfig,v=(0,u.useState)(""),m=v[0],p=v[1],b=(0,i.useRouter)().locale,y=(0,d.Z)(b,null===h||void 0===h?void 0:h.languages).text;return(0,u.useEffect)((function(){var e,t,n,r;window&&((0,c.iv)().width>500?p(null===a||void 0===a||null===(e=a.header)||void 0===e||null===(t=e.logo)||void 0===t?void 0:t.desktop):p(null===a||void 0===a||null===(n=a.header)||void 0===n||null===(r=n.logo)||void 0===r?void 0:r.mobile));setTimeout((function(){i.default.push("/returns")}),2e3)}),[a]),(0,r.jsxs)("div",{className:"h-screen",children:[(0,r.jsx)(f,{theme:a,logo:m,advancedConfig:h}),(0,r.jsx)(l.Z,{theme:a,showHeroImage:!1,children:(0,r.jsxs)("div",{className:"h-[500px] flex flex-col justify-center items-center",children:[(0,r.jsx)("div",{className:"text-2xl text-center p-4",children:null!==(n=null===a||void 0===a||null===(t=a.meta)||void 0===t?void 0:t.title)&&void 0!==n?n:"Returns Page"}),(0,r.jsxs)("div",{className:"",children:["Redirecting to",(0,r.jsx)(o.default,{href:"/returns",children:(0,r.jsx)("a",{className:"text-xl font-semibold underline ml-2 text-blue",children:"Returns Page"})})]})]})}),(0,r.jsx)(s.Z,{theme:a,labels:y})]})}},5152:function(e,t,n){e.exports=n(638)}},function(e){e.O(0,[774,414,888,179],(function(){return t=5301,e(e.s=t);var t}));var t=e.O();_N_E=t}]);