PageSourceSearch

https://invoicegenerator.com/build/assets/Settings-BVdqM6bA.js

js invoicegenerator.com collected 2026-10-02 15:53:43 UTC 31,586 bytes, 8 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProPaywall-DCoqzO1F.js","assets/vue-core-DbgIM4iY.js","assets/inertia-CQFx9ArN.js","assets/vendor-Dgn6rPIM.js","assets/app-C0EE6Ess.js","assets/vuetify-FGdINCAx.js","assets/vuetify-sv8H1vZs.css","assets/app-C-zecB0W.css","assets/TrustpilotWidget-P2FE6sQv.js","assets/ProPaywall-Bd_Sjphs.css"])))=>i.map(i=>d[i]);
2import{_ as qe,j as We,k as Je,h as Xe}from"./app-C0EE6Ess.js";import{r as ae,o as xe,b as p,a3 as d,j as t,a8 as l,k as a,u as r,X as n,n as ne,a2 as i,F as z,P as v,a9 as x,a4 as U,_ as Qe,ab as we,J as ke,ad as Ze,e as b,ac as et}from"./vue-core-DbgIM4iY.js";import{c as tt,_ as lt,a as st,b as at,d as nt,e as ot,f as it}from"./AddressAutocomplete-BJbIoYRr.js";import{a as oe,h as rt,l as E,u as dt,r as ut}from"./inertia-CQFx9ArN.js";import{I as mt,k as I,g as f,A as $,B as C,b as pt,c as H,d as K,q as B,r as L,f as c,s as ft,t as A,i as ie,E as re,F as he,e as N,G as de,H as ue,J as ct,u as gt,K as yt,x as vt,h as bt}from"./vuetify-FGdINCAx.js";import"./vendor-Dgn6rPIM.js";const xt={class:"w-100 flex-center px-md-4 px-sm-4 px-2 mb-10",style:{"padding-top":"40px"}},wt={class:"hidden-md-and-up mb-4"},kt={key:0},ht={class:"text-medium-emphasis mt-4"},Ct={class:"d-flex align-start flex-column mb-4"},Vt={class:"d-flex align-center mb-2"},St={key:0,class:"d-flex justify-center py-10"},zt={key:1,class:"pa-6"},Ut={key:2,class:"d-flex flex-column align-center py-12 text-medium-emphasis"},At={key:3,style:{"min-width":"780px"}},Pt={style:{display:"flex","align-items":"center",gap:"12px",padding:`16px
3																	24px`}},Ft={style:{width:"36px",height:"36px","border-radius":"8px",background:"#f0fdf4",display:"flex","align-items":"center","justify-content":"center","flex-shrink":"0"}},Dt={style:{display:"grid","grid-template-columns":"180px 110px 110px 140px",gap:"0 16px"}},Et={style:{"font-size":"13px","font-weight":"500","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},Lt={style:{"font-size":"13px","font-weight":"500","white-space":"nowrap"}},Tt={style:{"font-size":"13px","font-weight":"500","white-space":"nowrap"}},Rt={style:{"font-size":"13px","font-weight":"500","white-space":"nowrap","text-transform":"uppercase"}},It=["href"],$t={key:1},Mt={key:0,class:"mb-2 position-relative py-4 px-2 mt-4",style:{"max-width":"220px"}},jt=["src"],Bt={class:"d-flex justify-end mt-2"},Nt={key:2},Ot={class:"d-flex align-start justify-space-between flex-wrap"},Yt={class:"d-flex align-md-center align-start justify-start w-100 mt-4 flex-md-row flex-column"},_t=["src","alt"],Gt={class:"d-flex flex-column",style:{"min-width":"0",flex:"1 1 auto"}},Ht=["onClick"],Kt=["onClick"],qt={class:"d-flex justify-end align-center mt-4"},Wt={key:3},Jt={__name:"Settings",setup(Xt){const Ce=et(()=>Xe(()=>import("./ProPaywall-DCoqzO1F.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),w=We(),u=ae({name:w.user.name||"",address:w.user.address||"",email:w.user.email||"",phone:w.user.phone||"",website:w.user.website||"",logoUrl:w.user.logoUrl||"",currency:w.user.currency||"USD ($)"}),Ve=tt,S=dt(),me=b(()=>new URL(S.url,window.location.origin).pathname),V=b(()=>S.props?.section?S.props.section:me.value.startsWith("/settings/defaults")?"defaults":me.value.startsWith("/settings/integrations")?"integrations":"account");function q(o){ut.get(o)}function pe(){const o=document.createElement("form");o.method="POST",o.action="/billing/portal";const e=document.querySelector('meta[name="csrf-token"]')?.getAttribute("content");if(e){const s=document.createElement("input");s.type="hidden",s.name="_token",s.value=e,o.appendChild(s)}document.body.appendChild(o),o.submit()}const D=b(()=>S.props?.auth?.user||null),fe=b(()=>!!D.value),T=b(()=>!!S.props?.subscriptions?.isPro),Se=b(()=>!!S.props?.subscriptions?.isCanceled),ce=b(()=>S.props?.subscriptions?.endsAt||null);function W(o){return{name:o.name||"",address:o.address||"",email:o.email||"",phone:o.phone||"",website:o.website||"",logoUrl:o.logoUrl||"",currency:o.currency||"USD ($)"}}const M=p(!1),j=p([]),J=p(!1),O=p(null);xe(M,async o=>{if(o){J.value=!0,O.value=null,j.value=[];try{const e=await fetch("/api/v1/billing/invoices");if(!e.ok)throw new Error("Failed to load invoices.");const s=await e.json();j.value=s.invoices??[]}catch(e){O.value=e.message||"Something went wrong."}finally{J.value=!1}}});function ze(o){return new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}const X=p(W(w.user));function Ue(o){["Backspace","Delete","Tab","ArrowLeft","ArrowRight","Home","End"].includes(o.key)||/^[\d+\-\s().#*]$/.test(o.key)||o.preventDefault()}xe(V,o=>{if(o==="defaults"){const e=W(w.user);Object.assign(u,e),X.value={...e}}});const Ae=b(()=>{const o=S.props?.integrations?.stripe?.connected;return typeof o=="boolean"?o:!!D.value?.stripe_account_id}),ge=p(!1),ye=p(!1);function Pe(){if(!T.value){Y.value=!0;return}ge.value=!0,window.location.assign("/integrations/stripe/connect")}function Fe(){ye.value=!0;const o=document.createElement("form");o.method="POST",o.action="/integrations/stripe/disconnect";
3const e=document.querySelector('meta[name="csrf-token"]')?.getAttribute("content");if(e){const s=document.createElement("input");s.type="hidden",s.name="_token",s.value=e,o.appendChild(s)}document.body.appendChild(o),o.submit()}const Q=p(!1),Z=p(!1),ee=["creditCards","ach"],De={cashapp:"cashtag",paypal:"username",venmo:"username",zelle:"email or phone",wise:"email",other:"other"},Ee=[{key:"creditCards",label:"Credit Cards",icon:new URL("/build/assets/credit-card-CYRi-IiE.png",import.meta.url).href},{key:"ach",label:"ACH",icon:new URL("/build/assets/ach-CpJ3oOg6.jpg",import.meta.url).href},{key:"cashapp",label:"Cash App",icon:new URL("/build/assets/cash-app-CsEzNPq5.jpg",import.meta.url).href},{key:"paypal",label:"PayPal",icon:new URL("/build/assets/paypal-B7lKf08E.jpg",import.meta.url).href},{key:"venmo",label:"Venmo",icon:new URL("/build/assets/venmo-BcGbCSGR.jpg",import.meta.url).href},{key:"zelle",label:"Zelle",icon:new URL("/build/assets/zelle-1-hduClQ.jpg",import.meta.url).href},{key:"wise",label:"Wise",icon:new URL("/build/assets/wise-BSBKhxu6.jpg",import.meta.url).href},{key:"other",label:"Other",icon:null,mdi:"mdi-square-edit-outline"}],g=S.props?.auth?.user||{},y=ae({creditCards:!!g.creditCards,ach:!!g.ach,cashapp:!!g.cashapp,paypal:!!g.paypal,venmo:!!g.venmo,zelle:!!g.zelle,wise:!!g.wise,other:!!g.other}),k=ae({cashapp:g.cashapp||"",paypal:g.paypal||"",venmo:g.venmo||"",zelle:g.zelle||"",wise:g.wise||"",other:g.other||""}),Le=["cashapp","paypal","venmo","zelle","wise","other"],Te=b(()=>Le.some(o=>y[o]&&!k[o]?.trim())),P=p(null),te=p(!1),Y=p(!1),_=p(!1),ve=p("");function Re(o,e){y[o.key]=e,e?P.value=o.key:P.value===o.key&&(P.value=null)}const le=p(!1);async function Ie(){if(Te.value){ve.value="Please enter a handle or turn off the toggle for any enabled payment method.",_.value=!0;return}le.value=!0;const o={cashapp:y.cashapp&&k.cashapp||null,paypal:y.paypal&&k.paypal||null,venmo:y.venmo&&k.venmo||null,zelle:y.zelle&&k.zelle||null,wise:y.wise&&k.wise||null,other:y.other&&k.other||null};try{if(!(await fetch("/api/v1/payment-methods",{method:"PUT",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")??""},body:JSON.stringify(o)})).ok)throw new Error("Failed to save.");te.value=!0,setTimeout(()=>te.value=!1,2200)}catch(e){console.error(e)}finally{le.value=!1}}const $e=b(()=>{const o=X.value;return["name","address","email","phone","website","logoUrl","currency"].every(e=>(o[e]||"")===(u[e]||""))}),se=b(()=>{const o=u.email;return o?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o):!0});async function Me(){Q.value=!0,w.updateUser({...u}),Q.value=!1,X.value=W(w.user),Z.value=!0,setTimeout(()=>Z.value=!1,2200)}const je=p(null);function Be(o){return new Promise((e,s)=>{const m=new FileReader;m.onload=()=>e((m.result??"").toString()),m.onerror=s,m.readAsDataURL(o)})}async function Ne(o){let e=o;o?.target?.files&&(e=Array.from(o.target.files));const s=Array.isArray(e)?e[0]:e?.[0];if(!s)return;const m=await Be(s);u.logoUrl=m,je.value=null}function Oe(){u.logoUrl=""}const F=oe({name:D.value?.name||""}),Ye=b(()=>(D.value?.name||"")===(F.name||""));function _e(){F.put("/settings/account/name",{preserveScroll:!0,onSuccess:()=>{}})}const G=p(!1),h=oe({new_email:""}),be=p(!1);function Ge(){h.post("/settings/account/email/request",{preserveScroll:!0,onSuccess:()=>{be.value=!0}})}const R=oe({confirm:""}),He=b(()=>!D.value||R.confirm.trim()!==(D.value?.email||""));function Ke(){confirm("Are you sure you want to delete your account? This action cannot be undone.")&&R.post("/settings/account/delete",{preserveScroll:!0})}return(o,e)=>(i(),d(z,null,[t(r(rt),null,{default:l(()=>[...e[26]||(e[26]=[a("title",null,"Settings - Personalize Your Invoice Generator",-1),a("meta",{name:"description",content:"Manage your account, defaults, billing, and integrations."},null,-1),a("meta",{name:"robots",content:"noindex,nofollow"},null,-1)])]),_:1}),a("div",xt,[t(bt,{class:"px-md-6 px-4",style:{"max-width":"1375px"}},{default:l(()=>[e[102]||(e[102]=a("div",{class:"d-flex align-center justify-space-between mb-md-3 mb-2"},[a("h1",{class:"font-weight-bold mb-0",style:{"font-size":"26px"}}," Settings ")],-1)),a("div",wt,[t(mt,{direction:"vertical"},{default:l(()=>[t(I,{"base-color":"#16976c",class:"mr-2 mb-2",variant:V.value==="account"?"elevated":"outlined",onClick:e[0]||(e[0]=s=>q("/settings/account"))},{default:l(()=>[t(f,{class:"mr-2",size:"16"},{default:l(()=>[...e[27]||(e[27]=[n("mdi-account-outline",-1)])]),_:1}),e[28]||(e[28]=n(" Account Details ",-1))]),_:1},8,["variant"]),t(I,{"base-color":"#16976c",class:"mr-2 mb-2",variant:V.value==="defaults"?"elevated":"outlined",onClick:e[1]||(e[1]=s=>q("/settings/defaults"))},{default:l(()=>[t(f,{class:"mr-2",size:"16"},{default:l(()=>[...e[29]||(e[29]=[n("mdi-form-select",-1)])]),_:1}),e[30]||(e[30]=n(" Invoice Defaults ",-1))]),_:1},8,["variant"]),t(I,{"base-color":"#16976c",class:"mr-2 mb-2",variant:"outlined",onClick:e[2]||(e[2]=s=>pe())},{default:l(()=>[t(f,{class:"mr-2",size:"16"},{default:l(()=>[...e[31]||(e[31]=[n("mdi-credit-card-outline",-1)])]),_:1}),e[33]||(e[33]=n(" Manage Subscription ",-1)),t(f,{class:"ml-1",size:"14"},{default:l(()=>[...e[32]||(e[32]=[n("mdi-open-in-new",-1)])]),_:1})]),_:1}),t(I,{"base-color":"#16976c",class:"mr-2 mb-2",variant:V.value==="integrations"?"elevated":"outlined",onClick:e[3]||(e[3]=s=>q("/settings/integrations"))},{default:l(()=>[t(f,{class:"mr-2",size:"16"},{default:l(()=>[...e[34]||(e[34]=[n("mdi-puzzle-outline",-1)])]),_:1}),e[35]||(e[35]=n(" Integrations ",-1))]),_:1},8,["variant"])]),_:1})]),t($,null,{default:l(()=>[t(C,{cols:"12",md:"3",class:"hidden-sm-and-down pr-md-6"},{default:l(()=>[t(pt,{nav:"",class:"pa-0 inv-box"},{default:l(()=>[t(r(E),{href:"/settings/account",class:"text-decoration-none text-high-emphasis 
3settings-item"},{default:l(()=>[t(H,{class:ne(["px-4",{"active-link":V.value==="account"}]),rounded:"0"},{prepend:l(()=>[t(f,{size:"18"},{default:l(()=>[...e[36]||(e[36]=[n(" mdi-account-outline ",-1)])]),_:1})]),default:l(()=>[t(K,null,{default:l(()=>[...e[37]||(e[37]=[n(" Account Details ",-1)])]),_:1})]),_:1},8,["class"])]),_:1}),t(r(E),{href:"/settings/defaults",class:"text-decoration-none text-high-emphasis settings-item"},{default:l(()=>[t(H,{class:ne(["px-4",{"active-link":V.value==="defaults"}]),rounded:"0"},{prepend:l(()=>[t(f,{size:"18"},{default:l(()=>[...e[38]||(e[38]=[n(" mdi-form-select ",-1)])]),_:1})]),default:l(()=>[t(K,null,{default:l(()=>[...e[39]||(e[39]=[n(" Invoice Defaults ",-1)])]),_:1})]),_:1},8,["class"])]),_:1}),t(H,{rounded:"0",class:"px-4 text-high-emphasis mb-0",onClick:pe},{prepend:l(()=>[t(f,{size:"18"},{default:l(()=>[...e[40]||(e[40]=[n(" mdi-credit-card-outline ",-1)])]),_:1})]),default:l(()=>[t(K,{class:"d-flex align-center"},{default:l(()=>[e[42]||(e[42]=n(" Manage Subscription ",-1)),t(f,{size:"16",class:"ml-2"},{default:l(()=>[...e[41]||(e[41]=[n(" mdi-open-in-new ",-1)])]),_:1})]),_:1})]),_:1}),t(r(E),{href:"/settings/integrations",class:"text-decoration-none text-high-emphasis settings-item"},{default:l(()=>[t(H,{class:ne(["px-4",{"active-link":V.value==="integrations"}]),rounded:"0"},{prepend:l(()=>[t(f,{size:"18"},{default:l(()=>[...e[43]||(e[43]=[n(" mdi-puzzle-outline ",-1)])]),_:1})]),default:l(()=>[t(K,null,{default:l(()=>[...e[44]||(e[44]=[n(" Payment Integrations ",-1)])]),_:1})]),_:1},8,["class"])]),_:1})]),_:1})]),_:1}),t(C,{cols:"12",md:"9"},{default:l(()=>[t(B,{class:"inv-box pa-6"},{default:l(()=>[V.value==="account"?(i(),d("div",kt,[e[78]||(e[78]=a("h2",{class:"mb-1"},"My Account",-1)),e[79]||(e[79]=a("p",{class:"text-medium-emphasis mb-4"}," Manage your profile, email, and account status. ",-1)),fe.value?(i(),d(z,{key:1},[a("div",Ct,[a("span",Vt,[e[51]||(e[51]=n(" Selected plan:   ",-1)),t(I,{color:T.value?"#16976c":"","text-color":T.value?"white":"",class:"mr-3",size:"small"},{default:l(()=>[n(v(T.value?"PRO":"FREE"),1)]),_:1},8,["color","text-color"])]),T.value?U("",!0):(i(),x(r(E),{key:0,href:"/upgrade ",class:"inv-green-text",style:{"margin-bottom":"10px"}},{default:l(()=>[...e[52]||(e[52]=[a("img",{src:Je,alt:"PRO",class:"mr-1",style:{height:"14px",width:"auto"}},null,-1),n(" Upgrade to unlock premium features. ",-1)])]),_:1})),t(c,{variant:"outlined",size:"small",class:"normal-spacing mt-1",style:{"border-color":"#11111160",height:"30px"},"prepend-icon":"mdi-receipt-text-outline",onClick:e[4]||(e[4]=s=>M.value=!0)},{default:l(()=>[...e[53]||(e[53]=[n(" View Receipts ",-1)])]),_:1}),T.value&&Se.value&&ce.value?(i(),x(L,{key:1,type:"warning",variant:"tonal",density:"compact",class:"mt-3",style:{"max-width":"480px","font-size":"12px"}},{default:l(()=>[e[54]||(e[54]=n(" Your PRO plan is active until ",-1)),a("strong",null,v(new Date(ce.value).toLocaleDateString("en-US")),1),e[55]||(e[55]=n(". After that, you'll be downgraded to the free plan. ",-1))]),_:1})):U("",!0)]),t(ft,{onSubmit:Qe(_e,["prevent"])},{default:l(()=>[t($,null,{default:l(()=>[t(C,{cols:"12",md:"8"},{default:l(()=>[t(A,{modelValue:r(F).name,"onUpdate:modelValue":e[5]||(e[5]=s=>r(F).name=s),label:"Display Name",flat:"",variant:"solo","hide-details":"","bg-color":"#F9FAFB",class:"inv-box no-border",density:"comfortable",maxlength:"120",counter:"120",rules:[s=>!s||s.length<=120||"Max 120 characters"],disabled:r(F).processing,"error-messages":r(F).errors?.name},null,8,["modelValue","rules","disabled","error-messages"])]),_:1}),t(C,{cols:"12",md:"4",class:"d-flex align-end pl-md-1 pt-1"},{default:l(()=>[t(c,{color:"#16976c",loading:r(F).processing,disabled:Ye.value||r(F).processing,type:"submit",class:"normal-spacing"},{default:l(()=>[...e[56]||(e[56]=[n(" Save ",-1)])]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1}),t(ie,{class:"my-8"}),e[74]||(e[74]=a("h3",null,"Email",-1)),e[75]||(e[75]=a("p",{class:"text-medium-emphasis text-caption mb-3"}," We use passwordless login. Email is your identity and isn't directly editable. To change it, confirm via your current email. ",-1)),t($,{class:"align-center"},{default:l(()=>[t(C,{cols:"12",md:"8"},{default:l(()=>[t(A,{"model-value":D.value.email,label:"Current Email",variant:"solo","hide-details":"",flat:"","bg-color":"#F9FAFB",density:"comfortable",class:"inv-box n
3o-border",disabled:"",maxlength:"120"},null,8,["model-value"])]),_:1}),t(C,{cols:"12",md:"4",class:"d-flex align-end pl-md-1 pb-0 pt-1"},{default:l(()=>[t(c,{variant:"outlined",class:"normal-spacing",style:{"border-color":"#11111160"},onClick:e[6]||(e[6]=s=>G.value=!0)},{default:l(()=>[...e[57]||(e[57]=[n(" Request Email Change ",-1)])]),_:1})]),_:1})]),_:1}),t(re,{modelValue:G.value,"onUpdate:modelValue":e[9]||(e[9]=s=>G.value=s),"max-width":"500"},{default:l(()=>[t(B,null,{default:l(()=>[t(he,null,{default:l(()=>[...e[58]||(e[58]=[n(" Change Email ",-1)])]),_:1}),t(N),t(de,null,{default:l(()=>[e[59]||(e[59]=a("p",{class:"text-medium-emphasis mb-4"}," Enter the new email. We'll send a verification link to your current email. ",-1)),t(A,{modelValue:r(h).new_email,"onUpdate:modelValue":e[7]||(e[7]=s=>r(h).new_email=s),type:"email",flat:"",label:"New Email","hide-details":"",variant:"solo","bg-color":"#F9FAFB",density:"comfortable",class:"inv-box no-border",maxlength:"120",rules:[s=>!s||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)||"Invalid email"],"error-messages":r(h).errors?.new_email&&!r(h).processing},null,8,["modelValue","rules","error-messages"]),r(h).errors?.new_email&&!r(h).processing?(i(),x(L,{key:0,variant:"tonal",color:"error",density:"compact",class:"mt-4"},{default:l(()=>[n(v(r(h).errors.new_email),1)]),_:1})):U("",!0)]),_:1}),t(N),t(ue,{class:"d-flex justify-end"},{default:l(()=>[t(c,{variant:"text",class:"mr-2 normal-spacing",onClick:e[8]||(e[8]=s=>G.value=!1)},{default:l(()=>[...e[60]||(e[60]=[n(" Cancel ",-1)])]),_:1}),t(c,{color:"#16976c",class:"normal-spacing",loading:r(h).processing,disabled:!r(h).new_email||r(h).processing,onClick:Ge},{default:l(()=>[...e[61]||(e[61]=[n(" Send Confirmation ",-1)])]),_:1},8,["loading","disabled"])]),_:1}),be.value?(i(),x(L,{key:0,type:"success",variant:"tonal"},{default:l(()=>[...e[62]||(e[62]=[n(" Confirmation sent to your current email. Follow the link to finish changing your login email. ",-1)])]),_:1})):U("",!0)]),_:1})]),_:1},8,["modelValue"]),t(re,{modelValue:M.value,"onUpdate:modelValue":e[11]||(e[11]=s=>M.value=s),"max-width":o.$vuetify.display.smAndDown?"100%":800},{default:l(()=>[t(B,{class:"d-flex flex-column",style:{"border-radius":"12px","max-height":"90vh"}},{default:l(()=>[t(he,{class:"px-6 pt-5 pb-4",style:{"font-size":"17px","font-weight":"600","letter-spacing":"-0.01em"}},{default:l(()=>[...e[63]||(e[63]=[n(" Receipts ",-1)])]),_:1}),t(N),t(de,{class:"pa-0 flex-grow-1 billing-dialog-content"},{default:l(()=>[J.value?(i(),d("div",St,[t(ct,{indeterminate:"",color:"#16976c",size:"28"})])):O.value?(i(),d("div",zt,[t(L,{type:"error",variant:"tonal",density:"compact"},{default:l(()=>[n(v(O.value),1)]),_:1})])):j.value.length===0?(i(),d("div",Ut,[t(f,{size:"36",class:"mb-3",style:{opacity:"0.35"}},{default:l(()=>[...e[64]||(e[64]=[n("mdi-receipt-text-outline",-1)])]),_:1}),e[65]||(e[65]=a("span",{style:{"font-size":"14px"}},"No receipts found.",-1))])):(i(),d("div",At,[(i(!0),d(z,null,we(j.value,(s,m)=>(i(),d("div",{key:m,class:"billing-row",style:ke(m<j.value.length-1?"border-bottom: 1px solid rgba(0,0,0,0.06)":"")},[a("div",Pt,[a("div",Ft,[t(f,{size:"17",color:"#16976c"},{default:l(()=>[...e[66]||(e[66]=[n("mdi-receipt-text-outline",-1)])]),_:1})]),a("div",Dt,[a("div",null,[e[67]||(e[67]=a("div",{class:"text-medium-emphasis",style:{"font-size":"11px","margin-bottom":"2px"}}," E-Mail ",-1)),a("div",Et,v(s.email||"—"),1)]),a("div",null,[e[68]||(e[68]=a("div",{class:"text-medium-emphasis",style:{"font-size":"11px","margin-bottom":"2px"}}," Paid Date ",-1)),a("div",Lt,v(ze(s.date)),1)]),a("div",null,[e[69]||(e[69]=a("div",{class:"text-medium-emphasis",style:{"font-size":"11px","margin-bottom":"2px"}}," Payment amount ",-1)),a("div",Tt,v(s.total),1)]),a("div",null,[e[70]||
3(e[70]=a("div",{class:"text-medium-emphasis",style:{"font-size":"11px","margin-bottom":"2px"}}," Payment method ",-1)),a("div",Rt,v(s.paymentMethod||"—"),1)])]),s.pdfUrl?(i(),d("a",{key:0,href:s.pdfUrl,target:"_blank",class:"pdf-link",style:{"flex-shrink":"0","margin-left":"10px"}},[...e[71]||(e[71]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[a("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),a("polyline",{points:"7 10 12 15 17 10"}),a("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1),n(" PDF ",-1)])],8,It)):U("",!0)])],4))),128))]))]),_:1}),t(N),t(ue,{class:"d-flex justify-end px-5 py-3"},{default:l(()=>[t(c,{variant:"text",class:"normal-spacing",style:{"font-size":"13px"},onClick:e[10]||(e[10]=s=>M.value=!1)},{default:l(()=>[...e[72]||(e[72]=[n(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","max-width"]),t(ie,{class:"my-10"}),e[76]||(e[76]=a("h3",{class:"text-error"},"Delete Account",-1)),e[77]||(e[77]=a("p",{class:"text-caption text-medium-emphasis mb-4"}," Deleting your account is permanent. It will cancel your subscription (if active) and delete all invoices, clients, and items. ",-1)),t($,{class:"mb-1"},{default:l(()=>[t(C,{cols:"12",md:"8"},{default:l(()=>[t(A,{modelValue:r(R).confirm,"onUpdate:modelValue":e[12]||(e[12]=s=>r(R).confirm=s),label:"Type your current email to confirm action.",variant:"solo","hide-details":"",flat:"",auto:"",class:"red-box","bg-color":"#FFF5F5",density:"comfortable",maxlength:"120","error-messages":r(R).errors?.confirm},null,8,["modelValue","error-messages"])]),_:1}),t(C,{cols:"12",md:"4",class:"d-flex align-end pl-md-1 pt-1"},{default:l(()=>[t(c,{class:"normal-spacing",color:"error",variant:"flat",loading:r(R).processing,disabled:He.value,onClick:Ke},{default:l(()=>[...e[73]||(e[73]=[n(" Delete Account ",-1)])]),_:1},8,["loading","disabled"])]),_:1})]),_:1})],64)):(i(),d(z,{key:0},[t(L,{type:"info",variant:"tonal",class:"mb-4"},{default:l(()=>[...e[45]||(e[45]=[a("div",{class:"d-flex align-start"},[a("div",{class:"flex-1 mr-4"},[a("div",{class:"font-weight-bold mb-1"}," No account? No problem. "),a("p",{class:"mb-2"}," You can use InvoiceGenerator without creating an account. We'll keep your invoices locally in your browser, but they can be cleared if you change devices or wipe browser storage. "),a("p",{class:"mb-0"}," Create a free account to sync your data securely across devices. ")])],-1)])]),_:1}),t(r(E),{href:"/login"},{default:l(()=>[t(c,{color:"#16976c",class:"normal-spacing",variant:"flat"},{default:l(()=>[...e[46]||(e[46]=[n(" Log in / Sign up ",-1)])]),_:1})]),_:1}),a("div",ht,[e[48]||(e[48]=n(" Need more features? Unlock ",-1)),e[49]||(e[49]=a("strong",null,"PRO",-1)),e[50]||(e[50]=n(" for recurring invoices, email sending, and more. ",-1)),t(r(E),{href:"/upgrade",class:"ml-1 inv-green-text"},{default:l(()=>[...e[47]||(e[47]=[n(" See PRO offer. ",-1)])]),_:1})])],64))])):V.value==="defaults"?(i(),d("div",$t,[e[85]||(e[85]=a("h2",{class:"mb-1"},"Invoice Defaults",-1)),e[86]||(e[86]=a("p",{class:"text-medium-emphasis mb-3"}," These values prefill your invoices. You can still change them per-invoice. ",-1)),Z.value?(i(),x(L,{key:0,type:"success",variant:"tonal",class:"mb-3"},{default:l(()=>[...e[80]||(e[80]=[n(" Defaults saved. ",-1)])]),_:1})):U("",!0),t($,null,{default:l(()=>[t(C,{cols:"12",md:"6"},{default:l(()=>[t(A,{modelValue:u.name,"onUpdate:modelValue":e[13]||(e[13]=s=>u.name=s),clearable:"",placeholder:"Your / Company Name *","bg-color":"#F9FAFB",density:"compact",flat:"",variant:"solo",class:"inv-box no-border w-100 mt-1 mb-3","hide-details":"",outlined:"",maxlength:"120"},null,8,["modelValue"]),t(A,{modelValue:u.email,"onUpdate:modelValue":e[14]||(e[14]=s=>u.email=s),clearable:"",placeholder:"[email protected]",type:"email","hide-details":se.value,"error-messages":se.value?[]:["Invalid email"],"bg-color":"#F9FAFB",density:"compact",flat:"",variant:"solo",class:"inv-box no-border w-100 mt-1 mb-3",outlined:"",maxlength:"120",rules:[s=>!s||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)||"Invalid email"]},null,8,["modelValue","hide-details","error-messages","rules"]),t(A,{modelValue:u.phone,"onUpdate:modelValue":e[15]||(e[15]=s=>u.phone=s),clearable:"",placeholder:"+1 234 567 890",type:"text","bg-color":"#F9FAFB",density:"compact",flat:"",variant:"solo",class:"inv-box n
3o-border w-100 mt-1 mb-3","hide-details":"",outlined:"",maxlength:"60",onKeydown:Ue},null,8,["modelValue"]),t(A,{modelValue:u.website,"onUpdate:modelValue":e[16]||(e[16]=s=>u.website=s),clearable:"",placeholder:"https://example.com",type:"url","bg-color":"#F9FAFB",density:"compact",flat:"",variant:"solo",class:"inv-box no-border w-100 mt-1 mb-3","hide-details":"",outlined:"",maxlength:"120"},null,8,["modelValue"]),t(gt,{modelValue:u.currency,"onUpdate:modelValue":e[17]||(e[17]=s=>u.currency=s),items:r(Ve),"bg-color":"#F9FAFB",density:"compact",flat:"",variant:"solo",class:"inv-box no-border w-100 mt-1 mb-3","hide-details":"",outlined:"",placeholder:"Currency"},null,8,["modelValue","items"])]),_:1}),t(C,{cols:"12",md:"6"},{default:l(()=>[t(lt,{modelValue:u.address,"onUpdate:modelValue":e[18]||(e[18]=s=>u.address=s),placeholder:"Your / Company Address",label:"Your / Company Address"},null,8,["modelValue"]),u.logoUrl?(i(),d("div",Mt,[a("img",{src:u.logoUrl,alt:"Logo",style:{"max-height":"80px","object-fit":"contain",width:"100%"}},null,8,jt),t(c,{icon:"",variant:"text",size:"x-small",color:"error",style:{position:"absolute",top:"-10px",right:"-26px"},onClick:Oe,title:"Remove logo"},{default:l(()=>[t(f,{size:"16"},{default:l(()=>[...e[81]||(e[81]=[n("mdi-close",-1)])]),_:1})]),_:1})])):(i(),d("div",{key:1,class:"inv-box no-border w-100 logo-drop",style:{border:"1px dashed #16976c80 !important",position:"relative",cursor:"pointer",display:"flex","align-items":"center","min-height":"56px","background-color":"#f9fafb","border-radius":"4px","font-size":"28px"},onClick:e[19]||(e[19]=s=>o.$refs.defaultsLogoInput.click())},[t(f,{color:"rgba(0,0,0,0.38)",class:"ml-5 mr-3"},{default:l(()=>[...e[82]||(e[82]=[n("mdi-image",-1)])]),_:1}),e[83]||(e[83]=a("span",{style:{color:"rgba(0, 0, 0, 0.6)","font-size":"16px","letter-spacing":"0.009375em"}}," Upload Logo ",-1)),a("input",{ref:"defaultsLogoInput",type:"file",accept:"image/*",style:{display:"none"},onChange:Ne},null,544)]))]),_:1})]),_:1}),a("div",Bt,[t(c,{color:"#16976c",class:"normal-spacing",disabled:$e.value||!se.value,loading:Q.value,onClick:Me},{default:l(()=>[...e[84]||(e[84]=[n(" Save Defaults ",-1)])]),_:1},8,["disabled","loading"])])])):V.value==="integrations"?(i(),d("div",Nt,[e[98]||(e[98]=a("h2",{class:"mb-3"},"Payment Integrations",-1)),t(B,{class:"pa-5 elevate-1 inv-box",style:{position:"relative"}},{default:l(()=>[a("div",Ot,[e[89]||(e[89]=a("div",{class:"flex-1 mr-4"},[a("h2",{class:"font-weight-medium text-left mb-1"}
3," Accept card & bank payments "),a("p",{class:"text-medium-emphasis mb-0",style:{"font-size":"13px","max-width":"480px"}}," Connect your own Stripe account to accept credit card and ACH payments. Funds settle directly to you. ")],-1)),t(I,{size:"small",variant:"outlined",color:"#16976c",class:"stripe-pro-chip"},{default:l(()=>[t(f,{size:"14",class:"mr-1",style:{color:"#16976c"}},{default:l(()=>[...e[87]||(e[87]=[n("mdi-lightning-bolt",-1)])]),_:1}),e[88]||(e[88]=n(" Pro ",-1))]),_:1})]),a("div",Yt,[fe.value?(i(),d(z,{key:1},[Ae.value?(i(),x(c,{key:1,variant:"outlined",class:"normal-spacing",loading:ye.value,style:{"border-color":"#11111160"},onClick:Fe},{default:l(()=>[...e[92]||(e[92]=[n(" Disconnect ",-1)])]),_:1},8,["loading"])):(i(),x(c,{key:0,color:"#16976c",class:"normal-spacing mr-2",loading:ge.value,onClick:Pe},{default:l(()=>[...e[91]||(e[91]=[n(" Setup now ",-1)])]),_:1},8,["loading"]))],64)):(i(),x(r(E),{key:0,href:"/login?redirect_to=/settings/integrations"},{default:l(()=>[t(c,{color:"#16976c",class:"normal-spacing"},{default:l(()=>[...e[90]||(e[90]=[n(" Setup now ",-1)])]),_:1})]),_:1})),e[93]||(e[93]=a("div",{class:"flex-center ml-md-4 mt-md-0 mt-3",style:{gap:"10px"}},[a("img",{src:st,alt:"VISA",style:{height:"26px",width:"auto"}}),a("img",{src:at,alt:"MasterCard",style:{height:"26px",width:"auto"}}),a("img",{src:nt,alt:"Discover",style:{height:"26px",width:"auto"}}),a("img",{src:ot,alt:"AmEx",style:{height:"26px",width:"auto"}}),a("img",{src:it,alt:"Apple Pay",style:{height:"26px",width:"auto"}})],-1))])]),_:1}),e[99]||(e[99]=a("div",{class:"d-flex align-center mb-3 mt-6 pr-5"},[a("h3",{class:"mb-0"},"Payment Links")],-1)),e[100]||(e[100]=a("p",{class:"text-medium-emphasis mb-3",style:{"font-size":"13px"}}," Add the handles you already use. They auto-fill on every new invoice as clickable, amount-filled links. ",-1)),t($,{dense:"",class:"ma-0"},{default:l(()=>[(i(!0),d(z,null,we(Ee.filter(s=>s.key!=="creditCards"&&s.key!=="ach"),s=>(i(),x(C,{key:s.key,cols:"6",class:"pa-1"},{default:l(()=>[a("div",{class:"d-flex align-center",style:ke({border:y[s.key]?"1px solid rgba(22, 151, 108, 0.4)":"1px solid rgba(17, 17, 17, 0.1)",borderRadius:"8px",gap:"10px",background:"#fff",paddingLeft:"12px",paddingTop:"6px",paddingBottom:"6px"})},[t(yt,{modelValue:y[s.key],"onUpdate:modelValue":[m=>y[s.key]=m,m=>Re(s,m)],color:"#16976c","hide-details":"",density:"compact",style:{flex:"0 0 auto"},"aria-label":`Accept payments via ${s.label}`},null,8,["modelValue","onUpdate:modelValue","aria-label"]),s.icon?(i(),d("img",{key:0,src:s.icon,alt:s.label,style:{width:"22px",height:"22px","object-fit":"contain",flex:"0 0 auto","margin-left":"5px"}},null,8,_t)):s.mdi?(i(),x(f,{key:1,size:"22",style:{flex:"0 0 auto","margin-left":"5px"}},{default:l(()=>[n(v(s.mdi),1)]),_:2},1024)):U("",!0),a("div",Gt,[!ee.includes(s.key)&&y[s.key]&&P.value===s.key?(i(),x(A,{key:0,modelValue:k[s.key],"onUpdate:modelValue":m=>k[s.key]=m,prefix:s.key==="cashapp"?"$":"",placeholder:De[s.key],autofocus:"","hide-details":"",density:"compact",variant:"solo",flat:"",class:"settings-payment-input",onKeyup:e[20]||(e[20]=Ze(m=>P.value=null,["enter"])),onBlur:e[21]||(e[21]=m=>P.value=null)},null,8,["modelValue","onUpdate:modelValue","prefix","placeholder"])):(i(),d(z,{key:1},[a("span",{style:{"font-size":"14px","font-weight":"500"},onClick:m=>!ee.includes(s.key)&&y[s.key]&&(P.value=s.key)},v(s.label),9,Ht),ee.includes(s.key)?U("",!0):(i(),d("span",{key:0,style:{"font-size":"12px",color:`rgba(
4															17,
5															17,
6															17,
7															0.5
8														)`},class:"text-truncate",onClick:m=>y[s.key]&&(P.value=s.key)},[k[s.key]?(i(),d(z,{key:0},[n(v(s.key==="cashapp"?"$":"")+v(k[s.key]),1)],64)):(i(),d(z,{key:1},[n("Add handle")],64))],8,Kt))],64))])],4)]),_:2},1024))),128))]),_:1}),a("div",qt,[te.value?(i(),x(L,{key:0,type:"success",variant:"tonal",density:"compact",class:"mr-3",style:{padding:"6px 14px","font-size":"13px"}},{default:l(()=>[...e[94]||(e[94]=[n(" Saved. ",-1)])]),_:1})):U("",!0),t(c,{color:"#16976c",class:"normal-spacing",loading:le.value,onClick:Ie},{default:l(()=>[...e[95]||(e[95]=[n(" Save Defaults ",-1)])]),_:1},8,["loading"])]),t(re,{modelValue:Y.value,"onUpdate:modelValue":e[23]||(e[23]=s=>Y.value=s),"max-width":"800"},{default:l(()=>[t(B,null,{default:l(()=>[t(de,{class:"pt-6"},{default:l(()=>[t(r(Ce),{"special-offer":null,headline:"Get paid the moment your invoice is opened",subheadline:"Avoid late payments and awkward follow-ups. Let your customers pay instantly by credit or debit card."})]),_:1}),t(N),t(ue,{class:"pa-0 mt-0"},{default:l(()=>[t(ie),t(c,{text:"",class:"normal-spacing",onClick:e[22]||(e[22]=s=>
8Y.value=!1)},{default:l(()=>[...e[96]||(e[96]=[n(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(vt,{modelValue:_.value,"onUpdate:modelValue":e[25]||(e[25]=s=>_.value=s),color:"error",timeout:"3500",location:"bottom",style:{"margin-bottom":"20px"}},{actions:l(()=>[t(c,{variant:"text",onClick:e[24]||(e[24]=s=>_.value=!1)},{default:l(()=>[...e[97]||(e[97]=[n(" Close ",-1)])]),_:1})]),default:l(()=>[n(v(ve.value)+" ",1)]),_:1},8,["modelValue"])])):(i(),d("div",Wt,[...e[101]||(e[101]=[a("h2",{class:"mb-2"},"Settings",-1),a("p",{class:"text-medium-emphasis mb-0"}," Select a section from the left. ",-1)])]))]),_:1})]),_:1})]),_:1})]),_:1})])],64))}},al=qe(Jt,[["__scopeId","data-v-609831b3"]]);export{al as default};

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.