PageSourceSearch

https://www.smartkidzclub.app/_next/static/chunks/pages/account-c337cb71b7c6396e.js

js smartkidzclub.app collected 2026-10-02 15:51:44 UTC 7,028 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[966],{116:function(e,n,t){"use strict";t.d(n,{T:function(){return s}});var r=t(9521),i=t(2753),o=t(5893);n.Z=r.ZP.div.withConfig({displayName:"overlay",componentId:"sc-344dz1-0"})(["position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#808080f2;user-select:none;display:flex;align-items:center;justify-content:center;z-index:",";color:",";"],i.Z.zIndex.overlay,i.Z.color.white);var c=r.ZP.span.withConfig({displayName:"overlay__Rotate",componentId:"sc-344dz1-1"})(["margin-left:10px;animation:spin 4s linear infinite;@keyframes spin{100%{transform:rotate(360deg);}}"]),s=function(){return(0,o.jsx)(c,{children:"\u231b"})}},5006:function(e,n,t){"use strict";t.d(n,{IU:function(){return d},S_:function(){return p},Y6:function(){return l},ep:function(){return a},pi:function(){return u}});var r=t(9499),i=t(1575);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var s=function(){return i.Ir&&window.Rewardful};function a(e){if(e)try{window.rewardful("convert",{email:e})}catch(n){console.error("error while converting",n)}}function l(){var e,n;return null===(e=s())||void 0===e||null===(n=e.affiliate)||void 0===n?void 0:n.token}function u(){var e=function(){var e;return(null===(e=s())||void 0===e?void 0:e.referral)||"checkout_"+(new Date).getTime()}();return{clientReferenceId:e,client_reference_id:e}}function p(){var e=(d()||{}).id;return{couponId:e||null,coupon_id:e||null}}function d(){var e=function(){var e;return null===(e=s())||void 0===e?void 0:e.coupon}();if(e){var n=e.percent_off?e.percent_off+"%":"$"+e.amount_off;return c(c({},e),{},{formatted:{amount:n}})}}},8419:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return k},default:function(){return E}});var r=t(9499),i=t(29),o=t(7794),c=t.n(o),s=t(5294),a=t(116),l=t(3251),u=t(7478),p=t(5006),d=t(2984),f=t(9008),h=t.n(f),x=t(1163),m=t.n(x),g=t(7294),j=t(5592),b=t(9521),v=t(9011),y=t(2753),w=(0,b.ZP)(j.Z).withConfig({displayName:"account",componentId:"sc-18zel5u-0"})(["margin-top:",";font-size:",";gap:",";","{margin-top:",";}"],y.Z.size.px10,y.Z.size.px14,y.Z.size.px20,v.ZP.min.m,y.Z.size.px20),_=(0,b.ZP)(j.r).withConfig({displayName:"account__Welcome",componentId:"sc-18zel5u-1"})(["display:flex;gap:10px;flex-direction:column;align-items:center;justify-content:space-between;h1{font-weight:bolder;font-size:",";}","{flex-direction:row;justify-content:space-between;}"],y.Z.size.px20,v.ZP.min.m),O=(0,b.ZP)(j.r).withConfig({displayName:"account__Paying",componentId:"sc-18zel5u-2"})(["text-align:center;padding:"," 0;"],y.Z.size.px20),P=(0,b.ZP)(j.r).withConfig({displayName:"account__SplitSection",componentId:"sc-18zel5u-3"})(["display:flex;flex-direction:column;align-items:center;box-shadow:0 0 5px grey;border-radius:5px;gap:10px;padding:",";margin:0 ",";background:",";color:",";div{text-align:center;gap:5px;display:flex;flex-direction:column;}","{flex-direction:row;justify-content:space-between;padding:",";margin:0;div{gap:10px;align-items:flex-end;flex-direction:column;}}"],y.Z.size.px10,y.Z.size.px20,y.Z.color.blue,y.Z.color.white,v.ZP.min.m,y.Z.size.px20),Z=t(5893);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEac
1h((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=!0,E=(0,d.withAuthUser)()((function(){var e=(0,d.useAuthUser)(),n=(0,l.Z)(),t=n.user,r=n.subscription,o=(0,g.useState)(!0),f=o[0],x=o[1];function j(){return(j=(0,i.Z)(c().mark((function e(){var n,t,r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x(!0),e.prev=1,n=u.l2.functions("us-central1"),t=n.httpsCallable("ext-firestore-stripe-subscriptions-createPortalLink"),e.next=6,t(S(S({returnUrl:location.origin+"/account"},(0,p.S_)()),(0,p.pi)()));case 6:r=e.sent,i=r.data,m().push(i.url),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),x(!1);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})))).apply(this,arguments)}return(0,g.useEffect)((function(){(0,p.ep)(null===e||void 0===e?void 0:e.email)}),[e]),(0,g.useEffect)((function(){t&&r&&x(!1)}),[t,r]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(h(),{children:(0,Z.jsx)("title",{children:"My Account | SmartKidzClub Premium App"})}),f&&(0,Z.jsxs)(a.Z,{children:["Please wait...",(0,Z.jsx)(a.T,{})]}),t&&r&&(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)(w,{areas:{xs:["welcome/4","paying/4","status/4","trial/4","subs/4"],m:["./2 welcome/4 ./2","./2 paying/4 ./2","./2 status/4 ./2","./2 trial/4 ./2","./2 subs/4 ./2"],xl:["./3 welcome/3 ./3","./3 paying/3 ./3","./3 status/3 ./3","./3 trial/3 ./3","./3 subs/3 ./3"]},children:[(0,Z.jsxs)(_,{area:"welcome",children:[(0,Z.jsx)("h1",{children:null===e||void 0===e?void 0:e.email}),(0,Z.jsx)(s.Z,{onClick:function(){return j.apply(this,arguments)},children:"My Subscription"})]}),(0,Z.jsxs)(O,{area:"paying",children:["You have an active plan of"," ",(0,Z.jsxs)("b",{children:[r.price.formatted.price,"/",r.price.interval]})]}),(0,Z.jsxs)(P,{area:"status",children:[(0,Z.jsx)("b",{children:"Status"}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)("span",{children:r.formatted.status}),(0,Z.jsxs)("span",{children:["Created on: ",r.formatted.created]})]})]}),(0,Z.jsxs)(P,{area:"trial",children:[(0,Z.jsx)("b",{children:"Trial Period"}),(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("span",{children:[r.price.trial_period_days," Days"]}),(0,Z.jsxs)("span",{children:["Start: ",r.formatted.trial_start]}),(0,Z.jsxs)("span",{children:["End: ",r.formatted.trial_end]})]})]}),(0,Z.jsxs)(P,{area:"subs",children:[(0,Z.jsx)("b",{children:"Subscription Period"}),(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("span",{children:[r.price.interval_count," ",r.price.interval," (",r.price.type,")"]}),(0,Z.jsxs)("span",{children:["Start: ",r.formatted.current_period_start]}),(0,Z.jsxs)("span",{children:["End: ",r.formatted.current_period_end]})]})]})]})})]})}))},682:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return t(8419)}])}},function(e){e.O(0,[774,888,179],(function(){return n=682,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.