1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4611],{8121:function(e,n,t){"use strict";t.d(n,{J:function(){return d}});var r="https://js.stripe.com/v3",u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",s=null,a=function(e){return null!==s||(s=new Promise((function(n,t){if("undefined"!==typeof window)if(window.Stripe&&e&&console.warn(i),window.Stripe)n(window.Stripe);else try{var s=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),n=0;n<e.length;n++){var t=e[n];if(u.test(t.src))return t}return null}();s&&e?console.warn(i):s||(s=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",t=document.createElement("script");t.src="".concat(r).concat(n);var u=document.head||document.body;if(!u)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return u.appendChild(t),t}(e)),s.addEventListener("load",(function(){window.Stripe?n(window.Stripe):t(new Error("Stripe.js not available"))})),s.addEventListener("error",(function(){t(new Error("Failed to load Stripe.js"))}))}catch(a){return void t(a)}else n(null)}))),s},o=function(e,n,t){if(null===e)return null;var r=e.apply(void 0,n);return function(e,n){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.29.0",startTime:n})}(r,t),r},c=Promise.resolve().then((function(){return a(null)})),l=!1;c.catch((function(e){l||console.warn(e)}));var d=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];l=!0;var r=Date.now();return c.then((function(e){return o(e,n,r)}))}},95996:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/case/[caseid]/pay",function(){return t(90710)}])},18186:function(e,n,t){"use strict";t.d(n,{Q:function(){return s}});var r=t(2784),u=t(5632),i=t(13200),s=function(){var e=(0,i.useAuth)(),n=(0,u.useRouter)();return(0,r.useEffect)((function(){null===e.user&&n.push("/")}),[e,n]),e}},90710:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return _}});var r=t(98788),u=t(5163),i=t(52322),s=t(2784),a=t(5632),o=t(18186),c=t(99549),l=t(37469),d=t(5567),f=t(55557),p=t(44931),h=t(65114),v=t(59292),w=t(32937);function _(){var e,n,t,_=(0,a.useRouter)(),y=(0,o.Q)(),S=(0,w.Z)(),b=_.query.offer||p.r1.SMALL,g=_.query.caseid||null,E=_.query.purchase_source,m=(null===(e=y.user)||void 0===e?void 0:e.subscription_type)||c.Q.NONE,P=_.query.state,C=(0,s.useState)(P||f.LI),k=C[0],L=C[1],T=(0,s.useState)(null),A=T[0],N=T[1];function j(e){return I.apply(this,arguments)}function I(){return I=(0,r.Z)((function(e){var n,t,r=arguments;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:n=r.length>1&&void 0!==r[1]?r[1]:null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,S.checkout(y.user.email,g,e,n,null,E,w.e.PRICING_PAGE,k)];case 2:return u.sent(),[3,4];case 3:return t=u.sent(),N({type:"error",message:t.type===d.e.DUPLICATE_PURCHASE?"Product already purchased":t.message}),[3,4];case 4:return[2]}}
1))})),I.apply(this,arguments)}(0,s.useEffect)((function(){h.d.track(l.P.PRICING_PAGE_STATE_SELECT,{state:k})}),[k]);var q=function(){var e=(0,r.Z)((function(e){return(0,u.__generator)(this,(function(n){switch(n.label){case 0:return[4,_.push(e)];case 1:return n.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),x=function(){var e=(0,r.Z)((function(e){return(0,u.__generator)(this,(function(n){switch(n.label){case 0:return[4,_.push({pathname:"/wait-list",query:{state:k,product:e}})];case 1:return n.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),Z=function(){var e=(0,r.Z)((function(e){var n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return n=(0,p.xT)(e),y&&y.user?[4,j(e,n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),R=function(){var e=(0,r.Z)((function(e){var n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return n=(0,p.xT)(e),y&&y.user?[4,j(e,n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}();return(0,i.jsx)(v.Z,{onClickPurchase:Z,onClickJoinWaitList:x,onClickRedirect:q,onClickPurchaseWithLinkedSubscription:R,config:b,isLoggedIn:y&&null!==y.user&&void 0!==(null===(n=y.user)||void 0===n?void 0:n.email),loggedInPage:!0,userSubscriptionType:m,onSelectState:function(e){L(e)},state:k,toast:A,subscriptionType:null===y||void 0===y||null===(t=y.user)||void 0===t?void 0:t.subscription_type})}}},function(e){e.O(0,[4636,1055,7192,5857,3243,5430,8256,6800,5641,2906,2752,6577,391,5837,1239,3642,5247,544,2831,3200,288,4632,8764,9292,9774,2888,179],(function(){return n=95996,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.