PageSourceSearch

https://storybookrpg.com/_next/static/chunks/8252-34b2f84c8eb321c8.js

js storybookrpg.com collected 2026-10-09 22:59:58 UTC 4,742 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8252],{23174:(e,t,a)=>{a.d(t,{N:()=>c,P:()=>l});var n=a(12870),i=a(59708);let r=/failed to fetch|networkerror|load failed|network request failed/i,s=e=>"number"==typeof e&&Number.isInteger(e)&&e>=100&&e<=999?e:null,o=e=>"string"==typeof e&&e.trim()?e.trim().slice(0,80):null;function c(e){var t,a,i,c,l;let u=e&&"object"==typeof e?e:{},h=null==(t=u.response)?void 0:t.data,d=o(h&&"object"==typeof h?h.code:void 0),p=null!=(c=null!=(i=s(null==(a=u.response)?void 0:a.status))?i:s(u.status))?c:0;if(d)return{code:d,status:p};if(n.A.isAxiosError(e))return{code:p?"http_".concat(p):null!=(l=o(u.code))?l:"network",status:p};let g=o(u.code);return g?{code:g,status:p}:p?{code:"http_".concat(p),status:p}:e instanceof TypeError&&r.test(String(u.message))?{code:"network",status:0}:{code:"unknown",status:0}}function l(e,t){(0,i.o7)("message_send_failed",{surface:e,...c(t)})}},44800:(e,t,a)=>{a.d(t,{Dw:()=>c,KE:()=>h,SW:()=>s,YL:()=>o});var n=a(59708),i=a(23174);let r=["subscription","token_pack","image_pack"];class s extends Error{constructor(){super("No checkout URL received"),this.code="no_checkout_url",this.name="MissingCheckoutUrl"}}function o(e,t){let a=new URL(e,window.location.origin);return a.searchParams.set("checkout","canceled"),a.searchParams.set("kind",t),a.toString()}function c(){let e=new URL(window.location.href);if("canceled"!==e.searchParams.get("checkout"))return;let t=e.searchParams.get("kind");e.searchParams.delete("checkout"),e.searchParams.delete("kind"),window.history.replaceState(window.history.state,"","".concat(e.pathname).concat(e.search).concat(e.hash)),t&&r.includes(t)&&(0,n.o7)("checkout_canceled",{kind:t})}let l={CHECKOUT_SESSION_ALREADY_OPEN:"A checkout for a different plan is still open. Finish it, or try again once it expires.",BILLING_PROVIDER_CONFLICT:"Your plan is billed through the App Store or Google Play. Change or cancel it there first.",BILLING_PROVIDER_RESERVATION_CONFLICT:"A purchase from the mobile app is still being confirmed. Try again in a few minutes.",BILLING_PROVIDER_REMEDIATION_REQUIRED:"Your billing needs a fix on our side before you can buy. Contact support and we will sort it out.",SUBSCRIPTION_PLAN_CHANGE_CONFLICT:"Your plan changed while this page was open. Refresh the page and try again.",CHECKOUT_INTENT_CONFLICT:"Your plan changed while this page was open. Refresh the page and try again.",BILLING_ADMISSION_QUIESCED:"Purchases are paused for a few minutes while billing is updated. Please try again shortly.",BILLING_PRICE_UNCONFIGURED:"This option cannot be bought right now. Please try again later."},u=new Set(["network","ERR_NETWORK","ECONNABORTED","ETIMEDOUT"]);function h(e,t){let{code:a,status:r}=(0,i.N)(t);return((0,n.o7)("checkout_failed",{kind:e,code:a,status:r}),l[a])?l[a]:401===r?"Your sign-in has expired. Sign in again, then try once more.":u.has(a)?"We couldn’t reach checkout. Check your connection and try again.":"We couldn’t start checkout, and nothing was charged. Please try again."}},86509:(e,t,a)=>{a.d(t,{k:()=>c});var n=a(62114),i=a(95704);let r="/legacy-billing";function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.env;if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.env;return"true"===e.NEXT_PUBLIC_PREVIEW_MODE}(e))throw window.location.assign(r),Error("Billing requires the legacy sign-in handoff at ".concat(r))}async function o(e,t){return s(),(await n.api.request({url:e,method:"POST",data:t})).data}let c={createCheckoutSession:async e=>o("/stripe/create-checkout-session",e),createBillingPortalSession:async e=>(await o("/stripe/create-portal-session",e)).data,verifyCheckoutSession:async e=>(await o("/stripe/verify-checkout-session",{sessionId:e})).data,async getTokenPacks(){var e;return null!=(e=(await n.api.request({url:"/stripe/token-packs"})).data.packs)?e:[]},createTokenCheckoutSession:async e=>o("/stripe/create-token-checkout-session",e),async getImagePacks(){var e;return null!=(e=(await n.api.request({url:"/stripe/image-packs"})).data.packs)?e:[]},createImagePackCheckoutSession:async e=>o("/stripe/create-image-pack-checkout-session",e),verifyImagePackCheckoutSession:async e=>(await o("/stripe/verify-image-pack-checkout-session",{sessionId:e})).data,verifyTokenCheckoutSession:async e=>(await o("/stripe/verify-token-checkout-session",{sessionId:e})).data,async cancelSubscription(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return o("/stripe/cancel-subscription",{cancelImmediately:e})},reactivateSubscription:async()=>o("/stripe/reactivate-subscription",{}),getBillingSummary:async()=>(s(),(await n.api.request({url:"/stripe/billing-summary"})).data)}}}]);

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.