1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4958],{7110:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(75038),o=t(46001),a=t.n(o);let i=({children:e,className:n,suffix:t})=>(0,r.jsxs)("div",{className:a()("mb-5 font-inter font-semibold text-gray-800 border-b border-gray-100 dark:border-gray-800 px-6 py-3 dark:text-gray-200",n),children:[e,t]})},14876:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(76430),o=t(25393),a=t(20142),i=new Map;i.set("bold",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 100 216 40 156 40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),r.createElement("line",{x1:"144",y1:"112",x2:"216",y2:"40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),r.createElement("path",{d:"M184,144v64a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8h64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))}),i.set("duotone",function(e){return r.createElement(r.Fragment,null,r.createElement("rect",{x:"40",y:"72",width:"144",height:"144",rx:"8",opacity:"0.2"}),r.createElement("polyline",{points:"216 100 216 40 156 40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),r.createElement("line",{x1:"144",y1:"112",x2:"216",y2:"40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),r.createElement("path",{d:"M184,144v64a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8h64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}),i.set("fill",function(){return r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,100a8,8,0,0,1-4.9,7.4,8.5,8.5,0,0,1-3.1.6,8.3,8.3,0,0,1-5.7-2.3L186,81.3l-36.4,36.4A8,8,0,0,1,144,120a8.3,8.3,0,0,1-5.7-2.3,8,8,0,0,1,0-11.3L174.7,70,150.3,45.7a8.4,8.4,0,0,1-1.7-8.8A8,8,0,0,1,156,32h60a8,8,0,0,1,8,8Zm-40,36a8,8,0,0,0-8,8v64H48V80h64a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V144A8,8,0,0,0,184,136Z"}))}),i.set("light",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 100 216 40 156 40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),r.createElement("line",{x1:"144",y1:"112",x2:"216",y2:"40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),r.createElement("path",{d:"M184,144v64a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8h64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))}),i.set("thin",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 100 216 40 156 40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),r.createElement("line",{x1:"144",y1:"112",x2:"216",y2:"40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),r.createElement("path",{d:"M184,144v64a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8h64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))}),i.set("regular",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 100 216 40 156 40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),r.createElement("line",{x1:"144",y1:"112",x2:"216",y2:"40",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),r.createElement("path",{d:"M184,144v64a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8h64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var s=function(e,n){return(0,o.$)(e,n,i)},l=(0,r.forwardRef)(function(e,n){return r.createElement(a.A,Object.assign({ref:n},e,{renderPath:s}))});l.displayName="ArrowSquareOut";let c=l},24958:(e,n,t)=>{t.r(n),t.d(n,{default:()=>d});var r=t(75038),o=t(34530),a=t(7110),i=t(1433),s=t(72651),l=t(14876),c=t(18070);let d=({isPro:e,isLifetime:n,activeSubscription:t,c_StripeSub:d,entitlements:u})=>{let m=n?(0,c.wf)(t):null,h=(u?.teams||[]).filter(e=>e.active),k=u?.personalPlan==="free"&&h.length>0,p=h.some(e=>"owner"===e.role);return(0,r.jsxs)("div",{children:[(0,r.jsx)(a.A,{className:"mb-2 bg-white dark:bg-gray-900/50",children:"Your subscription"}),(0,r.jsx)("div",{className:"px-6 mt-5",children:k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-sm",children:p?`You have Pika Pro through the team you own (${h.map(e=>e.name).join(", ")}), everywhere in Pika. You manage its seats and billing on the team page.`:`Your team (${h.map(e=>e.name).join(", ")}) gives you Pika Pro while you work in its projects: pick one with the switcher next to the logo. In Personal you're on the Free plan. The team's owner manages its billing.`}),(0,r.jsx)(o.$n,{className:"mt-6 inline-flex",variant:"secondary",as:"a",href:"/user/settings/team",children:"Go to your team"})]}):e?(0,r.jsxs)(r.Fragment,{children:[n?(0,r.jsxs)("p",{className:"text-sm",children:["You have Pika Pro for life, with no renewals.",m?` It includes every new feature released until ${m?.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}.`:""," ","Your receipt and invoice are on the Stripe portal."]}):(0,r.jsx)("p",{className:"text-sm",children:"Subscriptions are handled by Stripe. You can view, manage and cancel your subscription on Stripe portal"}),(0,r.jsxs)(o.$n,{className:"mt-6",variant:"secondary",onClick:async()=>{let e=d?.customer_uk||d?.customer;if(e)try{let n=await (0,s.SV)({url:"/api/stripe/create-customer-portal",body:{type:"redirectToPortal",customerId:e}});n?.url?window.open(n?.url,"_blank"):(0,i.oR)("Something went wrong, please try again")}catch(e){i.oR.error("Something went wrong, please contact support"),console.log("Something went wrong")}},children:[n?"View receipts":"Manage your subscription",(0,r.jsx)(l.A,{size:14,className:"opacity-60 relative top-[-2px] ml-1"})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:"You're not subscribed to Pika Pro"}),(0,r.jsx)(o.$n,{className:"mt-6",variant:"secondary",as:"a",href:"/pricing",target:"_blank",children:"Upgrade here"})]})})]})}}}]);
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.