PageSourceSearch

https://www.hauptstadt.be/_next/static/chunks/pages/profile/subscription/deactivated-af4665a2718a5144.js

js hauptstadt.be collected 2026-10-02 11:37:51 UTC 4,183 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="08223613-26f8-482f-9af8-c09acc45128c",e._sentryDebugIdIdentifier="sentry-dbid-08223613-26f8-482f-9af8-c09acc45128c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[694],{6708:(e,t,r)=>{"use strict";r.d(t,{z:()=>l});var n=r(2860),s=r(31709),i=r(22207),a=r(22626),c=r(89441),o=r(78004),u=r(55729);function l({filter:e,subscribeUrl:t="/mitmachen",className:r}){let[l,p]=(0,u.useState)(),[f,b]=(0,u.useState)(),{SubscriptionList:h}=(0,c.K8)(),{data:g,loading:y,error:S}=(0,a.eLu)(),w=(0,a.QjV)(),[m]=d(),[v]=(0,a.sge)({onCompleted(e){e.extendUserSubscription?.intentSecret?("stripe"===e.extendUserSubscription.paymentMethod.paymentProviderID&&p(e.extendUserSubscription.intentSecret),e.extendUserSubscription.intentSecret.startsWith("http")&&(window.location.href=e.extendUserSubscription.intentSecret)):w.refetch()}}),_=(0,u.useMemo)(()=>(0,o.jM)(g,t=>{e&&t?.userSubscriptions&&(t.userSubscriptions=e(t.userSubscriptions))}),[g,e]);return(0,n.FD)(n.FK,{children:[l&&(0,n.Y)(s.O,{clientSecret:l,children:(0,n.Y)(i.G,{onClose:async e=>{f&&(window.location.href=e?f.successPage?.url??"":f.failPage?.url??"")}})}),(0,n.Y)(h,{data:_,loading:y,error:S,invoices:w,subscribeUrl:t,className:r,onCancel:async e=>{await m({variables:{subscriptionId:e}})},onExtend:async e=>{let t=_?.userSubscriptions?.find(t=>t.id===e)?.memberPlan;b(t),await v({variables:{subscriptionId:e,failureURL:t?.failPage?.url,successURL:t?.successPage?.url}})}})]})}let d=(...e)=>(0,a.Exq)({...e[0],update:(e,{data:t},r)=>{let n=t?.cancelUserSubscription;n&&e.updateQuery({query:a.yeQ},e=>({userInvoices:e?.userInvoices.map(e=>e.subscriptionID!==n.id||e.paidAt||e.canceledAt?e:{...e,subscription:n,canceledAt:new Date().toISOString()})??[]}))}})},7972:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(62454),s=r(57067);let i=async e=>{try{let t=await (0,s.getCookie)(n.K8,{req:e.req});return{sessionToken:t?JSON.parse(t.toString()):null}}catch(t){return console.error(t),(0,s.deleteCookie)(n.K8,{req:e.req}),{sessionToken:null}}}},28073:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/subscription/deactivated",function(){return r(70743)}])},30190:(e,t,r)=>{"use strict";r.d(t,{R:()=>c});var n=r(62454),s=r(22626),i=r(57067),a=r(5441);async function c(e,t,r){if(!e.query.jwt)return!1;try{let{data:a,errors:c}=await t.mutate({mutation:s.u3t,variables:{jwt:e.query.jwt},errorPolicy:"all"});if(c?.length||!a?.createSessionWithJWT){if(c?.some(e=>e.message?.includes("TOTP_REQUIRED")))return!1;return o(e),!1}(0,i.setCookie)(n.K8,JSON.stringify(a.createSessionWithJWT),{req:e.req,res:e.res,expires:new Date(a.createSessionWithJWT.expiresAt),sameSite:"strict",secure:!0,httpOnly:!!r})}catch{return o(e),!1}return!0}function o(e){e.res&&!e.res.headersSent&&(e.res.writeHead(302,{Location:`/login?error=${encodeURIComponent(a.a)}`}),e.res.end())}},35880:(e,t,r)=>{"use strict";r.d(t,{g:()=>d});var n=r(2860),s=r(62454),i=r(18132),a=r(57067),c=r(49897),o=r(81278),u=r(55729);let l=({children:e})=>{let t=(0,o.useRouter)(),{hasUser:r}=(0,s.Jd)();return(r||((0,a.setCookie)(i.V,t.asPath,{expires:(0,c.W)(new Date,{seconds:i.q})}),t.push("/login")),r)?(0,n.Y)(n.FK,{children:e}):(0,n.Y)(u.Fragment,{})},d=e=>function(t){return(0,n.Y)(l,{children:(0,u.createElement)(e,t)})}},70743:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(2860),s=r(25527),i=r(35880);r(42273),r(7972),r(30190);var a=r(6708),c=r(85611);r(22626);var o=r(29733),u=r(89441);r(52384);let l=(0,s.A)(c.HD,{target:"et6ry6f0"})("display:grid;gap:",({theme:e})=>e.spacing(2),";grid-template-columns:minmax(max-content,500px);justify-content:center;"),d=(0,i.g)(function(){let{t:e}=(0,o.Bd)();return(0,n.FD)(l,{children:[(0,n.Y)("h1",{children:e("user.cancelledSubscriptions")}),(0,n.Y)(a.z,{filter:e=>e.filter(e=>e.deactivation)}),(0,n.Y)(u.N_,{href:"/profile",children:e("navbar.backToProfile")})]})});d.getInitialProps=async e=>({});let p=d}},e=>{e.O(0,[636,593,792],()=>e(e.s=28073)),_N_E=e.O()}]);

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.