1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4428],{12249:(e,n,t)=>{"use strict";function r(e){return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-")}t.d(n,{n:()=>r})},12660:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var r=t(37876);function s(e){let{name:n,className:t,size:s,...l}=e,i={maxWidth:"36px"},a="material-symbols-outlined inline-block overflow-hidden no-underline";return t&&(a+=" "+t),s&&"small"===s?(a+="max-w-[16px] max-h-[16px] pr-1",i.fontSize="18px"):a+="max-w-[36px]",(0,r.jsx)("span",{className:a,...l,style:i,children:n})}t(14232)},18529:(e,n,t)=>{"use strict";t.d(n,{AC:()=>g,Cy:()=>p,Gr:()=>w,H1:()=>o,H2:()=>d,H3:()=>u,HR:()=>A,LI:()=>f,OL:()=>v,Oc:()=>x,P:()=>j,R2:()=>E,UL:()=>y,UT:()=>N,lW:()=>k,my:()=>I,pd:()=>b,vu:()=>m,y1:()=>h});var r=t(37876),s=t(14232),l=t(29573),i=t(92228),a=t(42667);function c(e,n,t){return function(r){let i=n,{className:a,...c}=r;return r.className&&(i=(0,l.QP)(i,a)),s.createElement(e,{className:i,...t,...c})}}let o=c("h1","mb-8 text-3xl font-bold"),d=c("h2","mb-4 text-2xl font-bold"),u=c("h3","mb-4 text-xl font-bold");c("h4","mb-4 text-lg font-bold");let x=c("p","text-xs"),b=c("input","border border-gray-600 p-0 m-1 ml-0 bg-gray-100 text-black");c("mark","inline-block bg-yellow-100 p-1");let m=c("span","inline-block px-2 bg-gray-200 border border-gray-400 rounded"),h=c("span","inline-block px-2 bg-green-50 border border-green-500 rounded"),p=c("code","inline-block px-1 bg-gray-200 border border-gray-600 text-black font-mono text-sm"),g=c("code","inline-block px-1 bg-gray-100 border border-gray-400 text-black font-mono text-sm overflow-y"),j=c("p","pb-4"),y=c("ul","mt-0 mb-12 ml-4 list-disc"),v=c("ol","mt-0 mb-12 ml-4 list-decimal"),f=c("li","m-4"),A=c("hr","my-4 border-green-800"),k=c("a","inline-block px-4 py-2 border-gray-600 bg-green-700 hover:bg-green-600 text-white no-underline");c("div","border border-blue-600 p-2 px-2 m-2 bg-blue-100"),c("div","border border-red-600 p-1 px-2 m-2 bg-red-100");let w=c("a","",{target:"_blank",rel:"noreferrer"}),E=c("div","my-2 font-semibold text-gray-500 text-sm");function N(e){let{className:n,...t}=e,s="bg-green-800";return n&&(s+=" "+n),(0,r.jsx)(a.A,{color:"primary",variant:"contained",className:s,...t})}function I(e){return(0,r.jsx)(i.A,{component:"a",color:"primary",variant:"contained",className:"bg-green-800 inline-block",...e})}},22700:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/bsa/sidebar/userAccount",function(){return t(77948)}])},31236:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var r=t(37876);function s(e){let n,{children:t,onSubmit:s,...l}=e;return(0,r.jsx)("form",{onSubmit:e=>(function(e,n,t){e.preventDefault();let r=Array.from(new FormData(n).entries()).reduce(function(e,n){return e[n[0]]=n[1],e},{});return void 0!==t&&t(e,r),!1})(e,n,s),ref:e=>n=e,...l,children:t})}t(14232)},35321:(e,n,t)=>{"use strict";t.d(n,{jb:()=>s,Ms:()=>i}),t(71216),t(78955),t(65364);let r={live:{basic:"prod_Trc95Iy8jkmG5o",pro:"prod_TrcB9L4YwrTgQt",biz:"prod_TrcCe5OHvuB8ua"},test:{basic:"prod_TrcJdSD8iUE91k",pro:"prod_TrcKr9YYGa9Iky",biz:"prod_TrcKGjBYfPwjgI"}},s={INACTIVE:{code:0,label:"Inactive"},ACTIVE:{code:1,label:"Active"},CANCELLED:{code:2,label:"Cancelled"},EXPIRED:{code:3,label:"Expired"},DELETED:{code:86,label:"Deleted"}},l=[{variantId:"437786",stripeProductId:r.live.basic,name:"Basic",slug:"basic",accountsLimit:5,investmentsAccess:!1},{variantId:"31404",stripeProductId:r.live.pro,name:"Pro",slug:"pro",accountsLimit:30,investmentsAccess:!0},{variantId:"437787",stripeProductId:r.live.biz,name:"Business",slug:"biz",accountsLimit:100,investmentsAccess:!0},{variantId:"670801",stripeProductId:r.test.basic,name:"Basic",slug:"basic",accountsLimit:5,investmentsAccess:!1},{variantId:"36188",stripeProductId:r.test.pro,name:"Pro",slug:"pro",accountsLimit:30,investmentsAccess:!0},{variantId:"670828",stripeProductId:r.test.biz,name:"Business",slug:"biz",accountsLimit:100,investmentsAccess:!0}];function i(e){var n;return!!e&&(null===(n=l.find(n=>n.slug===e))||void 0===n?void 0:n.investmentsAccess)===!0}},42634:()=>{},45578:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var r=t(37876);t(14232);var s=t(85532),l=t(80587);function i(e){let{children:n,errors:t}=e;return t&&0!==t.length?(0,r.jsx)(l.A,{sx:{width:"100%"},spacing:1,children:t.map((e,n)=>(0,r.jsx)(s.A,{severity:"error",children:e},"alert-".concat(n)))}):n}},50717:(e,n,t)=>{"use strict";let r;t.d(n,{HG:()=>i,j_:()=>s});let s=(0,t(77712).A)(()=>({toastMessage:null})),{setState:l}=s;function i(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;r&&clearTimeout(r),l({...s.getState(),toastMessage:e}),e&&n&&(r=setTimeout(()=>{l({...s.getState(),toastMessage:null})},n))}},63183:(e,n,t)=>{"use strict";t.d(n,{o:()=>s});var r=t(89099);function s(){let e=(0,r.useRouter)();return{reloadServerData:()=>{e.replace(e.asPath)},reloadWindow:()=>{window.location.reload()}}}},65813:(e,n,t)=>{"use strict";t.d(n,{A:()=>g});var r=t(37876),s=t(14232),l=t(77328),i=t.n(l),a=t(45578),c=t(43062);function o(e){let{children:n}=e;return(0,r.jsx)(c.ErrorBoundary,{FallbackComponent:d,children:n})}function d(e){let{error:n}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{children:"An Error Has Occurred"}),(0,r.jsxs)("details",{children:[n.message,(0,r.jsx)("br",{}),n&&n.toString()]})]})}var u=t(50717),x=t(85532),b=t(82777),m=t(12660),h=t(89099);function p(e){var n,t;let s=(0,h.useRouter)(),l=s.pathname.includes("bsa/sidebar/")&&!1!==e.backUrl;return(0,r.jsxs)("div",{className:"h-14 flex justify-start items-center bg-green-900 px-2 py-2 text-white",children:[l&&(n=s,t=e.backUrl,(0,r.jsx)("a",{className:"block pt-1 mr-2 cursor-pointer flex-none",onClick:e=>{e.preventDefault(),"string"==typeof t?n.push(t):n.back()},children:(0,r.jsx)(m.A,{name:"arrow_back"})})),(0,r.jsx)(b.A,{color:"inherit",component:"span",className:"flex-1",children:e.title})]})}function g(e){let{backUrl:n,children:t,title:l}=e;s.useEffect(()=>{window.addEventListener("message",e=>{var n;e.origin===window.location.origin&&(null==(n=e.data)?void 0:n.event)==="bsa_reload"&&((0,u.HG)("Reloading..."),window.location.reload())})},[]);let a="".concat(l," | BudgetSheet Add-on");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:a}),(0,r.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,r.jsx)(p,{backUrl:n,title:l}),(0,r.jsxs)("main",{children:["sandbox"===e.env?(0,r.jsx)(x.A,{severity:"warning",children:"Sandbox mode enabled"}):null,(0,r.jsx)(o,{children:t})]})]})}g.Errors=a.A},77948:(e,n,t)=>{"use strict";t.r(n),t.d(n,{__N_SSP:()=>A,default:()=>k});var r=t(37876),s=t(14232),l=t(18529),i=t(31236),a=t(647),c=t(63183),o=t(12249),d=t(78955),u=t(65813),x=t(85532),b=t(92228),m=t(96726),h=t(57798),p=t(82097),g=t(51804),j=t(77025),y=t(3291),v=t(91349),f=t(35321),A=!0;function k(e){var n,t,i,a,c,v;
1let{errors:A,plan:k,...N}=e;if(A&&A.length)return(0,r.jsx)(u.A.Errors,{errors:A});let{user:I,token:_}=N,S=I.isPaid,[T,P]=s.useState(!1),C=S?k?k.accountLimit:d.Rl:d.hz,L=S&&null!=e.licenseKey?e.licenseKey.userAccountLimit:C,D=S&&null!=e.licenseKey&&L!==C;return(0,r.jsxs)(u.A,{...N,title:"Your Account",backUrl:"/bsa/sidebar?token=".concat(_),children:[(0,r.jsx)(m.A,{children:(0,r.jsx)(h.A,{children:(0,r.jsxs)(g.A,{children:[(0,r.jsx)(j.Ay,{children:(0,r.jsxs)(y.A,{children:["Email: ",(0,r.jsx)("strong",{children:I.email})]})}),(0,r.jsx)(p.A,{component:"li"}),(0,r.jsx)(j.Ay,{children:(0,r.jsxs)(y.A,{children:["Plan: ",(0,r.jsx)("strong",{children:S?k?k.planName:"Pro":"Free Trial"})]})}),(0,r.jsx)(j.Ay,{children:(0,r.jsxs)(y.A,{children:["Account Limit: ",(0,r.jsx)("strong",{children:L}),D&&(0,r.jsxs)("span",{className:"text-sm text-gray-600",children:[" ","(your limit; plan default: ",C,")"]})]})}),S?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Ay,{children:(0,r.jsxs)(y.A,{children:["Status:"," ",(0,r.jsxs)("strong",{children:[(null==(n=e.licenseKey)?void 0:n.statusText)?null==(t=e.licenseKey)?void 0:t.statusText:"Active",(null==(i=e.licenseKey)?void 0:i.dtExpires)?(0,r.jsxs)("span",{className:"text-sm text-gray-600",children:[(0,r.jsx)("br",{}),"Expires: ",(0,o.n)(new Date(null==(a=e.licenseKey)?void 0:a.dtExpires))]}):""]})]})}),(0,r.jsx)(p.A,{component:"li"}),(0,r.jsx)(j.Ay,{children:(0,r.jsx)(w,{licenseKey:null==(c=e.licenseKey)?void 0:c.licenseKey,token:_})},"manage_sub")]}):[(0,r.jsx)(j.Ay,{children:(0,r.jsxs)(x.A,{severity:"warning",children:["Upgrade to use BudgetSheet longer than ",I.trialDays||d.dc," ","days, link all your accounts, enable Autofetch, and more."]})},"usernag"),(0,r.jsx)(j.Ay,{children:(0,r.jsx)(l.my,{className:"flex",fullWidth:!0,href:"/bsa/sidebar/checkout/stripe?token=".concat(_),children:"Upgrade to Pro"})},"upgrade")]]})})}),S?(0,r.jsx)(m.A,{className:"mt-4",children:(0,r.jsx)(h.A,{children:(0,r.jsxs)(g.A,{children:[(0,r.jsx)(j.Ay,{children:(0,r.jsxs)(y.A,{children:["Sheet ID:",(0,r.jsx)("br",{}),(0,r.jsx)(l.Cy,{children:I.spreadsheetId})]})}),(0,r.jsx)(p.A,{component:"li"}),(0,r.jsx)(j.Ay,{children:(0,r.jsxs)(y.A,{children:["License Key:",(0,r.jsx)("br",{}),(0,r.jsx)(l.Cy,{children:I.licenseKey?I.licenseKey:"n/a"}),(0,r.jsx)("br",{}),(0,r.jsx)("a",{className:"text-sm cursor-pointer float-right p-2",onClick:()=>P(!T),children:"Re-enter License Key"})]})}),(0,r.jsx)(j.Ay,{children:(0,r.jsx)(y.A,{})})]})})}):null,!S||T?(0,r.jsx)(E,{token:_}):null,S&&(null==(v=e.licenseKey)?void 0:v.statusCode)!==f.jb.EXPIRED.code?(0,r.jsx)(m.A,{className:"mt-4",children:(0,r.jsx)(h.A,{children:(0,r.jsx)(b.A,{component:"a",href:"/bsa/sidebar/cancelSubscription?token=".concat(_),color:"error",variant:"contained",fullWidth:!0,children:"Cancel Subscription"})})}):null]})}function w(e){let{licenseKey:n,token:t}=e,[i,c]=s.useState(!1),[o,d]=s.useState(null),u=async()=>{if(!n)return void d("No license key found");c(!0),d(null);try{let e=await a.FH.stripe.createPortalSession(t,n,"".concat(window.location.origin,"/"));if(e.data.url){window.open(e.data.url,"_blank"),c(!1);return}}catch(t){var e;let n=null==t||null==(e=t.data)?void 0:e.billingUrl;if(n){window.open(n,"_blank"),c(!1);return}d(t.message),c(!1)}};return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(l.UT,{className:"flex",fullWidth:!0,onClick:u,loading:i,children:"Manage Subscription"}),o&&(0,r.jsx)(x.A,{severity:"error",className:"mt-2",children:o})]})}function E(e){let{token:n}=e,[t,o]=s.useState(""),[d,u]=s.useState(""),[b,p]=s.useState(!1),g=(0,c.o)(),j=s.useCallback(async(e,t)=>{p(!0),o(""),u("");try{(await a.FH.users.upgradeToPro(n,t.licenseKey)).meta.success&&(u("Thanks for supporting BudgetSheet! Pro features have been unlocked for this sheet."),setTimeout(()=>{g.reloadServerData()},2e3))}catch(e){o(e.message)}finally{p(!1)}},[]);return(0,r.jsx)(m.A,{className:"mt-4",children:(0,r.jsxs)(h.A,{children:[(0,r.jsx)(l.H3,{children:"Enter License Key"}),(0,r.jsx)(l.P,{children:"If you have a licence key, copy & paste the license key here:"}),(0,r.jsxs)(i.Z,{onSubmit:j,children:[(0,r.jsx)(v.A,{className:"mb-2",name:"licenseKey",defaultValue:"",size:"small",required:!0,fullWidth:!0}),(0,r.jsx)(l.UT,{type:"submit",loading:b,fullWidth:!0,children:"Check
1License"})]}),t?(0,r.jsx)(x.A,{severity:"error",children:t}):null,d?(0,r.jsx)(x.A,{severity:"success",children:d}):null]})})}},78955:(e,n,t)=>{"use strict";t.d(n,{Gf:()=>c,ON:()=>s,Rl:()=>u,XJ:()=>l,Yi:()=>x,dc:()=>o,hz:()=>d,sk:()=>i,tw:()=>a});var r=t(65364);let s={INACTIVE:{code:0,label:"Inactive",syncable:!1},ACTIVE:{code:1,label:"Active",syncable:!0},DELETED:{code:86,label:"Deleted",syncable:!1},PENDING_RECONNECT:{code:98,label:"Reconnect Soon",syncable:!0},ITEM_LOGIN_REQUIRED:{code:99,label:"Login Required",syncable:!1}},l=!!parseInt("0",10);parseInt("0",10);let i="https://workspace.google.com/marketplace/app/budgetsheet_budget_bank_imports/922376225939",a=!0,c=864e5,o=15,d=1,u=30,x=730;null==r||r.env}},e=>{e.O(0,[9573,8507,2228,5225,3384,8069,3292,8871,5781,565,766,1349,4002,1788,4138,636,6593,8792],()=>e(e.s=22700)),_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.