PageSourceSearch

https://bygoodiebox.com/_next/static/chunks/pages/[market]/[locale]/vitasignup/payment-82f04f72031096149b08.js

js bygoodiebox.com collected 2026-09-24 10:29:09 UTC 7,426 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8999],{33650:function(e,t,r){"use strict";r.d(t,{S:function(){return s}});r(67294);var n=r(18117),o=r(85893),i=n.ZP.div.withConfig({displayName:"PageLoading__SpinnerBlock",componentId:"sc-1sonbyz-0"})(["display:flex;align-items:center;justify-content:center;height:200px;"]),a=n.ZP.svg.withConfig({displayName:"PageLoading__StyledSpinner",componentId:"sc-1sonbyz-1"})(["animation:rotate 2s linear infinite;margin:-25px 0 0 -25px;width:50px;height:50px;& .path{stroke:#aaaaaa;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;}@keyframes rotate{100%{transform:rotate(360deg);}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"]),s=function(){return(0,o.jsx)(i,{children:(0,o.jsx)(a,{viewBox:"0 0 50 50",children:(0,o.jsx)("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"})})})}},54828:function(e,t,r){"use strict";var n=r(92809),o=r(30266),i=r(79056),a=r(809),s=r.n(a),c=r(67294),u=(r(27689),r(15503)),l=r(11369),f=r(93273),d=r(38388),p=r(33650),g=r(2804),m=r(35474),y=r(68415),b=r(78716),h=r(36897),v=r(87444),k=r(59634),x=r(85893);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.Z=function(e){var t=e.isSignIn,r=e.memberCurrentUrl,n=e.isVitaSignup,a=(0,d.ph)(),w=(0,g.Zl)(m.Vn),O=(0,g.Zl)(m.rk),S=(0,c.useState)(!0),_=S[0],P=S[1],N=(0,c.useState)(null),E=N[0],Z=N[1],C=(0,c.useRef)(),I=(0,h.PN)(),D=(0,(0,i.Z)(I,1)[0])(),F=(0,v.P)(),R=(0,(0,i.Z)(F,1)[0])(),V=(0,f.mr)(),K=(0,f.cn)().pages.new_signup.emailStep;if(!V)throw Error("Expected market and locale.");var L=function(e){return(0,o.Z)(s().mark((function o(){var i,c,u,f,d,p,g,m,b;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(C.current){o.next=2;break}return o.abrupt("return");case 2:return C.current.useDeviceLanguage(),o.next=5,(0,l.rh)(C.current,e);case 5:if(i=o.sent){o.next=8;break}return o.abrupt("return");case 8:if(c=null,c="google.com"===i.providerId?l.hJ.credentialFromResult(i):"facebook.com"===i.providerId?l._O.credentialFromResult(i):l.O4.credentialFromResult(i),u=i.user,f=u.displayName,d=u.email,p=u.uid,g=u.phoneNumber,f&&d&&c){o.next=13;break}return o.abrupt("return");case 13:if(m=f.split(" "),b={firstName:m[0],lastName:m.slice(1).join(" "),consent:!0,email:d,id:p,telephone:null!==g&&void 0!==g?g:"",country:null===V||void 0===V?void 0:V.market,locale:null===V||void 0===V?void 0:V.locale},w((function(e){return j(j({},e),b)})),E){o.next=19;break}return o.next=19,a.register(j(j({},b),{},{password:"",termsAndConditions:!0,consent:!0}),{displayName:f,id:p,email:d},R,D,r,"summer_22");case 19:!t&&(0,y.i7)(p,1,c.signInMethod),O((function(e){return e+1})),(0,k.VF)(V,t?"/account/subscription":n?"/vitasignup/payment":"/signup/payment");case 22:case"end":return o.stop()}}),o)})))};return(0,c.useEffect)((function(){(function(){var e=(0,o.Z)(s().mark((function e(){var t,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.fetchMember();case 3:(t=e.sent)&&Z(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:r=(0,u.ZF)(b.q),C.current=(0,l.v0)(r),P(!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}})()()}),[]),(0,x.jsx)("div",{className:"w-full pb-20 flex flex-col gap-4",children:_?(0,x.jsx)(p.S,{}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("button",{className:"bg-blue-facebook text-17 text-white font-bold rounded-3xl py-4 max-h-11 w-full flex flex-row items-center justify-center gap-4",onClick:L(new l._O),children:[(0,x.jsx)("img",{src:"/images/icons/facebook-white.svg",alt:"Sign in with facebook"}),(0,x.jsx)("p",{children:t?K.facebookSignin:K.facebookSignup})]}),(0,x.jsxs)("button",{className:"bg-white border-grey-300 border text-17 text-grey-400 font-bold rounded-3xl py-4 max-h-11 w-full flex flex-row items-center justify-center gap-4",onClick:L(new l.hJ),children:[(0,x.jsx)("img",{src:"/images/icons/google.svg",alt:"Sign in with Google"}),(0,x.jsx)("p",{children:t?K.googleSignin:K.googleSignup})]})]})})}},26532:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return u}});var n=r(92809),o=r(58501),i=r(81045),a=r(85893);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=!0;t.default=function(e){return(0,a.jsx)(o.Z,c(c({},e),{},{children:(0,a.jsx)(i.Z,{isVitaSignup:!0})}))}},35474:function(e,t,r){"use strict";r.d(t,{Vn:function(){return o},aO:function(){return i},rk:function(){return a},iV:function(){return s},Fg:function(){return c},dl:function(){return u}});var n=r(2804),o=(0,n.cn)({key:"signupStateKey",default:{id:"",email:"",firstName:"",lastName:"",houseNumber:"",streetSuffix:"",addressLine2:"",postcode:"",city:"",street:"",phone:"",password:"",consent:!1,giftcard:void 0,countryCode:"",businessName:void 0,floor:""}}),i=((0,n.cn)({key:"profileAddressChanged",default:!1}),(0,n.cn)({key:"addressComposite",default:{houseNumber:"",addressLine2:"",streetSuffix:"",postcode:"",city:"",street:"",floor:""}}),(0,n.cn)({key:"discountCodeState",default:void 0})),a=(0,n.cn)({key:"breadcrumbStateKey",default:0}),s=((0,n.cn)({key:"trustpilotStateKey",default:[{content:"",name:"",rating:5,url:""}]}),(0,n.cn)({key:"showEditEmailStateKey",default:!1})),c=(0,n.cn)({key:"subscriptionId",default:""}),u=(0,n.cn)({key:"cartStateKey",default:!1});(0,n.cn)({key:"validAddress",default:!0}),(0,n.cn)({key:"strapi_products_data_key",default:void 0})},87444:function(e,t,r){"use strict";r.d(t,{P:function(){return c}});var n=r(71610),o=r(11163),i=r(36897),a="subscription_type",s="subscriptionType",c=function(){var e=(0,o.useRouter)(),t=function(e){n.SubscriptionType.guard(e)?(0,i.od)()&&localStorage.setItem(a,e):(0,i.od)()&&localStorage.removeItem(a)};return[function(){var r,o=e.query.memberboxsplit&&!e.query[s]?"Regular":null!==(r=e.query[s])&&void 0!==r?r:(0,i.od)()&&localStorage.getItem(a);return n.SubscriptionType.guard(o)?(t(o),o):((0,i.od)()&&localStorage.removeItem(a),"Regular")},t]}},65697:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[market]/[locale]/vitasignup/payment",function(){return r(26532)}])}},function(e){e.O(0,[9774,1121,2008,7678,1732,230,717,9060,9491,9265,671,1045,8501,2888,179],(function(){return t=65697,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.