1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="09340631-ba48-4850-950a-93d81bfffcb6",e._sentryDebugIdIdentifier="sentry-dbid-09340631-ba48-4850-950a-93d81bfffcb6")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var a=1;a<arguments.length;a++){var s=arguments[a];if(null!=s)for(var i in s)s.hasOwnProperty(i)&&(e[i]=s[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:blockfrost-frontend":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6768],{8492:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>$});var i=s(37876),t=s(72604),r=s.n(t),o=s(90481);s(14232);var n=s(41314),d=s(89099),c=s(10553),l=s(81129),u=s(31600),p=s(14400),f=s(91232),x=s(39486),m=s(15460),R=s(96010),b=s(79084),y=s(62745),h=s(72210),g=s(55981);let I=()=>{let{enhancedSubscription:e}=(0,n.Q2)(),{stats:a}=(0,p.c)(),{addons:s}=(0,h.o)(),t=!!s?.find(e=>"REQUESTS_BOOST_1M"===e.type||"REQUESTS_BOOST_300K"===e.type),d=!a?.ppu.active&&!!e&&g.dZ.find(a=>a.availableFor.includes(e.currentPlan.name));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.Zp,{title:"Quota Usage",description:"Breakdown of resources allotted and used for all your projects across workspaces.",children:[!a&&(0,i.jsx)(R.A,{count:1,width:"100%",height:38}),a&&(0,i.jsxs)("div",{className:r().dynamic([["3428750fbd5550d7",[f.SL.SM]]])+" quota-items",children:[(0,i.jsx)(x.A,{resource:{name:"request"},used:a.ppu.active?void 0:a.used.requests,quota:a.quota.requestLimit,"data-testid":"usage-bar-request-limit",boosted:t}),(0,i.jsx)(x.A,{resource:{name:"MB of IPFS",uncountable:!0},used:a.used.storage,quota:a.quota.storageLimit,"data-testid":"usage-bar-ipfs-limit",formatter:m.IG}),(0,i.jsx)(x.A,{resource:{name:"MB of Filecoin",uncountable:!0},used:a.used.storageFilecoin,quota:a.quota.storageLimitFilecoin,"data-testid":"usage-bar-filecoin-limit",formatter:m.IG}),(0,i.jsx)(x.A,{resource:{name:"project"},used:a.used.projectCount,quota:a.quota.projectCount,"data-testid":"usage-bar-project-count"}),(0,i.jsx)(x.A,{resource:{name:"webhook"},used:a.used.webhookCount,quota:a.quota.webhookCount,"data-testid":"usage-bar-webhook-count"})]}),d&&(0,i.jsx)(y.A,{boost:d.type,style:{margin:"16px 0px"},successCallbackPath:b.J.dashboardSubscription,cancelCallbackPath:b.J.dashboardSubscription})]}),(0,i.jsx)(r(),{id:"3428750fbd5550d7",dynamic:[f.SL.SM],children:`.quota-items.__jsx-style-dynamic-selector{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:16px 48px}@media screen and (max-width:${f.SL.SM}px){.quota-items.__jsx-style-dynamic-selector{grid-template-columns:1fr 1fr}}`})]})};var _=s(48230),j=s.n(_),A=s(65106),P=s(91040),M=s(37596),T=s(37033);let $=()=>{let{bypassRequiredAction:e}=(0,d.useRouter)().query,{enhancedSubscription:a}=(0,n.Q2)(),{balance:s}=(()=>{let{data:e}=(0,c.useSession)(),a="/api/ppu/balance",{data:s,error:i}=(0,M.Ay)(e?a:null,()=>P.A.get(a),{});return{balance:s?.data,isBalanceLoading:!i&&!s,isBalanceError:i}})(),{addons:t}=(0,h.o)(),{data:p}=(0,c.useSession)(),f=p?.user?.email,{customer:x}=(0,u.c)();return e||a?.currentPlan.name==="STARTER"||a?.currentPlan.isTrial!==!1||!x||x.address?(0,i.jsxs)(o.NI,{title:"Subscription",breadcrumbs:[{href:"#",label:"Subscription",active:!0}],actions:s?.active?(0,i.jsx)(j(),{href:b.J.ppuOrderHistory,children:(0,i.jsx)(o.$n,{type:"submit",size:"xs",variant:"outline-secondary",uppercase:!0,children:"Order History"})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j(),{href:b.J.ppuOrderHistory,children:(0,i.jsx)(o.$n,{type:"submit",size:"xs",variant:"outline-secondary",uppercase:!0,children:"Order History"})}),(0,i.jsx)(j(),{href:b.J.billingPortal,style:{marginLeft:"8px"},children:(0,i.jsx)(o.$n,{type:"submit",size:"xs",variant:"outline-secondary",uppercase:!0,icon:(0,i.jsx)(A.EQc,{size:10}),children:"Manage Billing"})})]}),children:[(0,i.jsx)("div",{className:"jsx-ec6182e5680abdc7 section",children:(0,i.jsx)(T.A,{subscription:a,addons:t,ppu:s,billingInfo:f?{email:f}:void 0})}),(0,i.jsx)("div",{className:"jsx-ec6182e5680abdc7 section",children:(0,i.jsx)(I,{})}),(0,i.jsx)(r(),{id:"ec6182e5680abdc7",children:".section.jsx-ec6182e5680abdc7{display:flex;flex-direction:column;margin-bottom:24px}"})]}):(0,i.jsx)(o.Od,{title:"Action Required",children:(0,i.jsx)(l.A,{})})}},14400:(e,a,s)=>{"use strict";s.d(a,{c:()=>o});var i=s(91040),t=s(10553),r=s(37596);let o=()=>{let{data:e}=(0,t.useSession)(),{data:a,error:s}=(0,r.Ay)(e?"/api/customer/subscription-usage":null,i.A.get,{refreshInterval:15e3});return{stats:a?.data,isStatsLoading:!s&&!a,isStatsError:s}}},35907:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/subscription",function(){return s(8492)}])},81129:(e,a,s)=>{"use strict";s.d(a,{A:()=>u});var i=s(37876),t=s(72604),r=s.n(t);s(14232);var o=s(48230),n=s.n(o),d=s(90481),c=s(91232),l=s(79084);let u=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r(),{id:"1fde4a59c5795732",dynamic:[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY],children:`.require-billing-info.__jsx-style-dynamic-selector{display:flex;flex-direction:column;align-items:center;background:${c.o$.BG_WHITE};border-radius:${c.ax.PRIMARY};padding:36px;color:${c.o$.TEXT_PRIMARY};align-self:baseline;box-shadow:rgb(26 108 225/10%)0px 0px 25px;max-width:480px}.title.__jsx-style-dynamic-selector{color:${c.o$.PRIMARY};font-weight:500;margin-bottom:20px}.wrapper.__jsx-style-dynamic-selector{display:flex;justify-content:center}.description.__jsx-style-dynamic-selector{max-width:360px;margin-bottom:3rem}`}),(0,i.jsx)(d.mc,{content:!0,expand:!0,children:(0,i.jsx)("div",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]])+" wrapper",children:(0,i.jsxs)("div",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]])+" require-billing-info",children:[(0,i.jsx)("h3",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]])+" title",children:"Complete your billing information"}),(0,i.jsxs)("div",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]])+" description",children:[(0,i.jsx)("p",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]]),children:(0,i.jsx)("span",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]]),children:"According to our system, you currently don't have a required billing information filled in your account. Please provide a full billing address in our Billing Portal."})}),(0,i.jsxs)("p",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]]),children:[(0,i.jsx)("span",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]]),children:'After completing the action click on "Return to Blockfrost.io". You will be redirected back to the Dashboard. If you experience issues please\xa0'}),(0,i.jsx)("a",{style:{cursor:"pointer"},onClick:()=>{window.$zopim.livechat.window.show()},className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]]),children:"contact our support"}),(0,i.jsx)("span",{className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]]),children:"."})]})]}),(0,i.jsx)(n(),{href:l.J.billingPortal,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)("a",{style:{paddingTop:"0.25rem"},className:r().dynamic([["1fde4a59c5795732",[c.o$.BG_WHITE,c.ax.PRIMARY,c.o$.TEXT_PRIMARY,c.o$.PRIMARY]]]),children:(0,i.jsx)(d.$n,{type:"submit",children:"Proceed to Billing Portal"})})})]})})})]})}},e=>{e.O(0,[114,956,3371,4188,4176,6212,5637,6980,6695,6453,9810,1766,481,9432,9374,636,6593,8792],()=>e(e.s=35907)),_N_E=e.O()}]); 2//# sourceMappingURL=subscription-162338af711404b6.js.map
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.