PageSourceSearch

https://app.useavaila.com/_next/static/chunks/pages/index-7514de286275c33f.js

js useavaila.com collected 2026-10-02 01:47:45 UTC 8,479 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5728:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(9009)}])},2296:function(e,n,i){"use strict";let r;i.d(n,{Ap:function(){return u},I8:function(){return h},co:function(){return c},db:function(){return d}});var t=i(3977),o=i(1259),s=i(9828),l=i(7004),a=i(8887);(0,t.C6)().length<1&&(r=(0,t.ZF)({apiKey:"AIzaSyCPH8b8wnurwPHZAb0eyufqXfyaenl7xY4",authDomain:"availa-388217.firebaseapp.com",projectId:"availa-388217",storageBucket:"availa-388217.appspot.com",messagingSenderId:"100258821001",appId:"1:100258821001:web:5f187142d930e1db0f2758",measurementId:"G-1GKLFVCRYW"}));let c=(0,a.IH)(r),d=(0,s.ad)(r),h=(0,o.v0)(r),u=new o.hJ;(0,l.$C)(r)},9009:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return R}});var r=i(5893),t=i(7294),o=i(4465),s=i(1163),l=i(2296),a=i(1259),c=i(9828),d=i(7754),h=i(295),u=i(9222),x=i(3100),g=i(634),b=i(4418),j=i(8911),p=i(3143),f=i(4804),m=i(5197),y=i(156),k=i(7335),v=i(204),w=i(4151),C=i(5291),S=i(4983),_=i(191),z=i(3438),A=i(6880),N=i(7386),W=i(3838),E=i(6154),I=i(9583),O=i(3299);let L=(0,o.J)("pk_live_51NIiQoLbN8y363NRLO4UE9ApT1TGA0Fkh9Ww6rAp3UP0qkjWrHkvkLnvLJtcmiyR8RmO0CYPFAq0i6nEw58vFKiW00UGTY257T");function R(){let[e,n]=(0,t.useState)(!1),[i,o]=(0,t.useState)(""),[y,k]=(0,t.useState)(!1),[v,w]=(0,t.useState)(null),[C,S]=(0,t.useState)(null),[_,z]=(0,t.useState)(!0),A=(0,s.useRouter)();(0,t.useEffect)(()=>{var e=()=>{},n=()=>{};return e=(0,a.Aj)(l.I8,function(e){if(e){if(!e.displayName)return A.push("/account");n=(0,c.cf)((0,c.JU)(l.db,"users",e.displayName),e=>{if(e.exists()){var n;o(e.data().email),k(null!==(n=e.data().subscribed)&&void 0!==n&&n),S(e.data().token),w(e.data().stripeSubscription),z(!1)}})}else A.push("/signup")}),()=>{e(),n()}},[A.query]);let N=async()=>{n(!0);try{let e=await L,n=await E.Z.post("/api/checkout_sessions",{price_id:"price_1OhNOeLbN8y363NRirxz7OdZ",email:i}),r=await e.redirectToCheckout({sessionId:n.data.id});r.error&&alert(r.error.message)}catch(e){A.push("?cancelled=true"),console.error(e)}n(!1)},W=()=>{(0,a.w7)(l.I8).then(function(){(0,O.signOut)({redirect:!1}).then(()=>{})})};return _?(0,r.jsx)("div",{className:"bg-gray-900 min-h-screen",children:(0,r.jsx)(d.M,{height:"84vh",children:(0,r.jsx)(h.$,{color:"white",size:"xl"})})}):y?(0,r.jsxs)("div",{className:"bg-gray-900 min-h-screen",children:[(0,r.jsx)(u.z,{onClick:W,right:10,top:10,position:"absolute",children:"Logout"}),(0,r.jsx)(P,{token:C,stripeSubscription:v,email:i})]}):(0,r.jsxs)("div",{className:"bg-gray-900 min-h-screen",children:[(0,r.jsx)(u.z,{onClick:W,right:10,top:10,position:"absolute",children:"Logout"}),(0,r.jsxs)(x.xu,{py:24,background:"#131826",children:[(0,r.jsxs)(g.g,{spacing:2,textAlign:"center",children:[(0,r.jsx)(b.X,{as:"h1",fontSize:"4xl",color:"white",children:"Finding time shouldn't feel annoying"}),(0,r.jsx)(j.x,{fontSize:"lg",color:"gray.400",children:"Instantly find and paste your availability without ever leaving your inbox using the Availa extension."})]}),(0,r.jsx)(p.K,{direction:{base:"column",md:"row"},textAlign:"center",justify:"center",spacing:{base:4,lg:10},py:10,children:(0,r.jsxs)(F,{children:[(0,r.jsxs)(x.xu,{py:4,px:12,children:[(0,r.jsx)(j.x,{fontWeight:"500",fontSize:"2xl",children:"Availa Chrome Extension"}),(0,r.jsxs)(f.U,{justifyContent:"center",children:[(0,r.jsx)(j.x,{fontSize:"3xl",fontWeight:"600",children:"USD $"}),(0,r.jsx)(j.x,{fontSize:"5xl",fontWeight:"900",children:"2.99"}),(0,r.jsx)(j.x,{fontSize:"3xl",color:"gray.500",children:"/month"})]})]}),(0,r.jsxs)(g.g,{bg:"gray.900",py:4,borderBottomRadius:"xl",children:[(0,r.jsxs)(m.aV,{spacing:3,textAlign:"start",px:12,children:[(0,r.jsxs)(m.HC,{children:[(0,r.jsx)(m.DE,{as:I.FJM,color:"green.500"}),"Instantly find and paste availability without ever leaving your inbox"]}),(0,r.jsxs)(m.HC,{children:[(0,r.jsx)(m.DE,{as:I.FJM,color:"green.500"}),"Seamlessly integrate with your Google Calendar accounts"]}),(0,r.jsxs)(m.HC,{children:[(0,r.jsx)(m.DE,{as:I.FJM,color:"green.500"}),"Ensure new meetings do not clash with existing events in your calendar"]})]}),(0,r.jsx)(x.xu,{w:"80%",pt:7,children:(0,r.jsx)(u.z,{isLoading:e,w:"full",onClick:N,backgroundColor:"blue.400",color:"white",_hover:{bg:"blue.500"},children:"Purchase"})})]})]})})]})]})}function F(e){let{children:n}=e;return(0,r.jsx)(x.xu,{mb:4,shadow:"base",borderWidth:"1px",alignSelf:{base:"center",lg:"flex-start"},borderColor:"gray.200",borderRadius:"xl",bg:"gray.800",maxW:"500px",mx:{base:10,lg:0},children:n})}let P=e=>{let{token:n,stripeSubscription:i,email:o}=e,{hasCopied:l,onCopy:a}=(0,y.V)(n),{isOpen:c,onOpen:g,onClose:b}=(0,k.q)(),{isOpen:f,onOpen:m,onClose:I}=(0,k.q)(),O=(0,s.useRouter)(),[L,R]=(0,t.useState)(!1),[F,P]=(0,t.useState)(!0),[T,D]=(0,t.useState)([]);(0,t.useEffect)(()=>{U()},[]);let H=async()=>
1{if(i){R(!0);try{await E.Z.delete("/api/checkout_sessions",{data:{sub_id:i}}),O.reload()}catch(e){alert("An error occurred. Please try again."),console.error(e)}R(!1)}},U=async()=>{if(i){P(!0);try{let e=await E.Z.get("/api/invoices",{data:{email:o}});D(e.data.invoices)}catch(e){alert("An error occurred. Please try again."),console.error(e)}P(!1)}};return(0,r.jsxs)(v.k,{minH:"100vh",align:"center",justify:"center",color:"black",bg:"#131826",children:[(0,r.jsxs)(p.K,{spacing:4,w:"full",maxW:"md",bg:"gray.200",rounded:"xl",boxShadow:"lg",p:6,my:12,children:[(0,r.jsx)(j.x,{fontSize:"xl",fontWeight:"bold",mb:4,children:"Download Chrome Extension"}),(0,r.jsxs)(x.xu,{mb:4,children:[(0,r.jsx)(j.x,{fontSize:"lg",fontWeight:"bold",mb:2,children:"Step 1: Go to Chrome Web Store"}),(0,r.jsxs)(j.x,{children:["Visit"," ",(0,r.jsx)("a",{target:"_blank",className:"text-blue-500 cursor-pointer hover:underline",href:"https://chrome.google.com/webstore/detail/availa/mdmblieapebcmhglnabljnilhiepgndh",children:"this link"})," ","to find the Availa extension in the Chrome Web Store."]})]}),(0,r.jsxs)(x.xu,{mb:4,children:[(0,r.jsx)(j.x,{fontSize:"lg",fontWeight:"bold",mb:2,children:"Step 2: Add to Chrome"}),(0,r.jsx)(j.x,{children:'Click on the "Add to Chrome" button on the extension\'s page in the Chrome Web Store.'})]}),(0,r.jsxs)(x.xu,{mb:4,children:[(0,r.jsx)(j.x,{fontSize:"lg",fontWeight:"bold",mb:2,children:"Step 3: Authenticate with Token"}),(0,r.jsx)(j.x,{children:"Open the installed extension, and use the following token to authenticate yourself:"}),(0,r.jsxs)(x.xu,{bg:"gray.300",p:2,py:4,borderRadius:"md",mt:4,position:"relative",children:[(0,r.jsx)(j.x,{fontWeight:"bold",children:n}),(0,r.jsx)(u.z,{size:"sm",onClick:a,position:"absolute",top:"50%",right:"2",transform:"translateY(-50%)",children:l?"Copied":"Copy"})]})]}),i&&(0,r.jsxs)("div",{className:"flex flex-col w-full gap-4",children:[(0,r.jsx)(u.z,{onClick:m,color:"white",background:"blue.400",_hover:{background:"blue.500"},size:"sm",children:"Receipts"}),(0,r.jsx)(u.z,{onClick:g,color:"white",background:"red.400",_hover:{background:"red"},size:"sm",children:"Cancel Subscription"})]})]}),(0,r.jsxs)(w.u_,{isOpen:c,onClose:b,children:[(0,r.jsx)(C.Z,{}),(0,r.jsxs)(S.h,{color:"black",children:[(0,r.jsx)(_.x,{children:"Are you certain?"}),(0,r.jsx)(z.o,{}),(0,r.jsxs)(A.f,{children:[(0,r.jsx)(j.x,{fontSize:"larger",fontWeight:"bold"}),(0,r.jsx)(j.x,{children:"Are you sure you want to cancel your Availa subscription? Your token will no longer be valid and any extensions using it will no longer work."})]}),(0,r.jsxs)(N.m,{children:[(0,r.jsx)(u.z,{colorScheme:"blue",mr:3,onClick:b,children:"Close"}),(0,r.jsx)(u.z,{isLoading:L,onClick:H,color:"white",background:"red.400",_hover:{background:"red"},children:"Cancel my subscription"})]})]})]}),(0,r.jsxs)(w.u_,{isOpen:f,onClose:I,children:[(0,r.jsx)(C.Z,{}),(0,r.jsxs)(S.h,{color:"black",children:[(0,r.jsx)(_.x,{children:"Invoices"}),(0,r.jsx)(z.o,{}),(0,r.jsx)(A.f,{children:F?(0,r.jsx)(d.M,{height:"20vh",children:(0,r.jsx)(h.$,{color:"black",size:"xl"})}):(0,r.jsx)("div",{className:"flex flex-col gap-2",children:T.map(e=>{var n=new Date(0);return n.setUTCSeconds(e.created),(0,r.jsx)(W.r,{color:"blue",href:null==e?void 0:e.hosted_invoice_url,target:"_blank",children:n.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})},e.id)})})}),(0,r.jsx)(N.m,{children:(0,r.jsx)(u.z,{colorScheme:"blue",mr:3,onClick:I,children:"Close"})})]})]})]})}}},function(e){e.O(0,[16,551,445,968,4,774,888,179],function(){return e(e.s=5728)}),_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.