PageSourceSearch

https://matchlyresume.com/_nuxt/CmnDkTWd.js

js matchlyresume.com collected 2026-10-02 01:35:58 UTC 20,623 bytes, 1 lines download raw bytes

1import{_ as le}from"./CZ1pGdT6.js";import{_ as j}from"./DYKc0zZs.js";import{_ as Q}from"./CIP2LX1N.js";import{_ as re,u as se}from"./CV08sxFP.js";import{_ as ce,a as de}from"./Cps1KQ9s.js";import{bi as ue,aS as q,aU as X,bj as ee,aY as v,b1 as _,b0 as e,bk as G,bl as me,aZ as a,a$ as c,b6 as L,bm as M,a_ as H,ba as D,bn as be,b9 as O,aX as u,bo as oe,b4 as pe,b5 as fe,bp as J}from"./oyLlPODV.js";import{u as ne}from"./cJpAkGjd.js";import{u as te}from"./DrNlCbRo.js";import{_ as ve}from"./BKTDu3n8.js";import{_ as he}from"./CVifaUg6.js";import{D as ge}from"./BBrrS-bD.js";import{F as _e}from"./D5T50rF4.js";import{D as ye}from"./CEh2sM2N.js";import"./rdDRo2wH.js";import"./CF8UYO0f.js";import"./CwPVrKDZ.js";const xe=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Pe=ue("save",xe),ae=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],ke=new Set(ae);function Se(s){return!!(s&&ke.has(s))}const Ce=[{code:"AL",name:"Alabama"},{code:"AK",name:"Alaska"},{code:"AZ",name:"Arizona"},{code:"AR",name:"Arkansas"},{code:"CA",name:"California"},{code:"CO",name:"Colorado"},{code:"CT",name:"Connecticut"},{code:"DE",name:"Delaware"},{code:"FL",name:"Florida"},{code:"GA",name:"Georgia"},{code:"HI",name:"Hawaii"},{code:"ID",name:"Idaho"},{code:"IL",name:"Illinois"},{code:"IN",name:"Indiana"},{code:"IA",name:"Iowa"},{code:"KS",name:"Kansas"},{code:"KY",name:"Kentucky"},{code:"LA",name:"Louisiana"},{code:"ME",name:"Maine"},{code:"MD",name:"Maryland"},{code:"MA",name:"Massachusetts"},{code:"MI",name:"Michigan"},{code:"MN",name:"Minnesota"},{code:"MS",name:"Mississippi"},{code:"MO",name:"Missouri"},{code:"MT",name:"Montana"},{code:"NE",name:"Nebraska"},{code:"NV",name:"Nevada"},{code:"NH",name:"New Hampshire"},{code:"NJ",name:"New Jersey"},{code:"NM",name:"New Mexico"},{code:"NY",name:"New York"},{code:"NC",name:"North Carolina"},{code:"ND",name:"North Dakota"},{code:"OH",name:"Ohio"},{code:"OK",name:"Oklahoma"},{code:"OR",name:"Oregon"},{code:"PA",name:"Pennsylvania"},{code:"RI",name:"Rhode Island"},{code:"SC",name:"South Carolina"},{code:"SD",name:"South Dakota"},{code:"TN",name:"Tennessee"},{code:"TX",name:"Texas"},{code:"UT",name:"Utah"},{code:"VT",name:"Vermont"},{code:"VA",name:"Virginia"},{code:"WA",name:"Washington"},{code:"WV",name:"West Virginia"},{code:"WI",name:"Wisconsin"},{code:"WY",name:"Wyoming"},{code:"DC",name:"District of Columbia"},{code:"AS",name:"American Samoa"},{code:"GU",name:"Guam"},{code:"MP",name:"Northern Mariana Islands"},{code:"PR",name:"Puerto Rico"},{code:"VI",name:"U.S. Virgin Islands"}],Ne=[{code:"AB",name:"Alberta"},{code:"BC",name:"British Columbia"},{code:"MB",name:"Manitoba"},{code:"NB",name:"New Brunswick"},{code:"NL",name:"Newfoundland and Labrador"},{code:"NS",name:"Nova Scotia"},{code:"NT",name:"Northwest Territories"},{code:"NU",name:"Nunavut"},{code:"ON",name:"Ontario"},{code:"PE",name:"Prince Edward Island"},{code:"QC",name:"Quebec"},{code:"SK",name:"Saskatchewan"},{code:"YT",name:"Yukon"}];function ie(s){return s==="US"?Ce:s==="CA"?Ne:[]}function Z(s){return s.trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase("en-US").replace(/[.\s-]+/g,"")}function Ie(s,m){if(!m)return null;const p=Z(m);return ie(s).find(o=>Z(o.code)===p||Z(o.name)===p)?.code??null}const Le=["en","tr","de","es","fr","it"],Me={id:"billing-invoice-profile",class:"panel relative z-10 scroll-mt-24 p-6"},Ae={class:"grid gap-4 sm:grid-cols-2"},Be={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]",for:"invoice-name"},we=["placeholder"],Te={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]"},Ee={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]",for:"invoice-address"},Ue=["placeholder"],Ve={class:"grid gap-4 sm:grid-cols-3"},$e={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]",for:"invoice-city"},De=["for"],Ge={class:"font-normal text-[var(--color-ink-400)]"},Oe={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]",for:"invoice-zip"},Re={class:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3"},Fe={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]"},He={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]",for:"invoice-tax-number"},Ke={class:"font-normal text-[var(--color-ink-400)]"},We=["placeholder"],Ye={class:"sm:col-span-2 lg:col-span-1"},ze={class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]",for:"invoice-notes"},Ze={class:"font-normal text-[var(--color-ink-400)]"},qe=["placeholder"],Je={class:"flex flex-wrap items-center justify-between gap-3 pt-1"},je={class:"min-w-0 flex-1 whitespace-normal text-xs leading-5 text-[var(--color-ink-400)]"},Qe=["disabled"],Xe=q({__name:"BillingInvoiceProfile",props:{profile:{},defaults:{},loading:{type:Boolean},loadError:{type:Boolean}},emits:["saved"],setup(s,{emit:m}){const p=s,A=m,{t:o,locale:x}=X(),B=ne(),w=te(),y=D(!1),n=be({name:"",address:"",city:"",state:"",zipCode:"",country:"",taxNumber:"",notes:"",locale:"en"}),T=O(()=>Le.map(t=>({value:t,label:o(`dashboard.settings.profile.languages.${t}.label`)}))),R=O(()=>{const t=x.value||"en",i=new Intl.DisplayNames([t],{type:"region"}),f=new Intl.Collator(t);return ae.map(g=>{const N=i.of(g)||g;return{value:g,label:`${N} (${g})`}}).sort((g,N)=>f.compare(g.label,N.label))});function E(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase(x.value||"en")}async function F(t){const i=E(t.trim());return i?R.value.filter(f=>E(`${f.label} ${f.value}`).includes(i)):R.value}async function k(t){return R.value.find(i=>i.value===t)?.label??null}
1const h=O(()=>n.country==="US"||n.country==="CA"),S=O(()=>ie(n.country).map(t=>({value:t.code,label:`${t.name} (${t.code})`})));async function U(t){const i=E(t.trim());return i?S.value.filter(f=>E(`${f.label} ${f.value}`).includes(i)):S.value}async function C(t){return S.value.find(i=>i.value===t)?.label??null}function W(t){n.country!==t&&(n.state=""),n.country=t}ee(()=>[p.profile,p.defaults],([t,i])=>{n.name=t?.name??i?.name??"",n.address=t?.address??"",n.city=t?.city??"",n.state=t?.country==="US"||t?.country==="CA"?Ie(t.country,t.state)??"":t?.state??"",n.zipCode=t?.zipCode??"",n.country=Se(t?.country)?t.country:"",n.taxNumber=t?.taxNumber??"",n.notes=t?.notes??"",n.locale=t?.locale??i?.locale??"en"},{immediate:!0});async function Y(){if(!y.value){y.value=!0;try{const t=await $fetch("/api/billing/invoice-profile",{method:"PUT",body:{name:n.name,address:n.address,city:n.city,state:n.state||null,zipCode:n.zipCode,country:n.country,taxNumber:n.taxNumber||null,notes:n.notes||null,locale:n.locale}});A("saved",t),w.success(o("dashboard.billing.invoiceProfile.saveSuccess"),{group:"billing-invoice-profile"})}catch(t){w.error(B(t,o("dashboard.billing.invoiceProfile.saveError")),{group:"billing-invoice-profile"})}finally{y.value=!1}}}return(t,i)=>{const f=j,g=Q,N=re,K=ce,z=de;return u(),v("section",Me,[_(f,{title:e(o)("dashboard.billing.invoiceProfile.title"),description:e(o)("dashboard.billing.invoiceProfile.description")},null,8,["title","description"]),s.loading&&!s.profile?(u(),G(g,{key:0,class:"mt-6",label:e(o)("dashboard.billing.invoiceProfile.loading")},null,8,["label"])):s.loadError&&!s.profile?(u(),G(N,{key:1,class:"mt-6",tone:"danger",title:e(o)("dashboard.billing.invoiceProfile.loadError")},null,8,["title"])):(u(),v("form",{key:2,class:"mt-6 grid gap-4",onSubmit:me(Y,["prevent"])},[a("div",Ae,[a("div",null,[a("label",Be,c(e(o)("dashboard.billing.invoiceProfile.nameLabel")),1),L(a("input",{id:"invoice-name","onUpdate:modelValue":i[0]||(i[0]=d=>e(n).name=d),class:"field",type:"text",autocomplete:"name",maxlength:"200",required:"",placeholder:e(o)("dashboard.billing.invoiceProfile.namePlaceholder")},null,8,we),[[M,e(n).name]])]),a("div",null,[a("label",Te,c(e(o)("dashboard.billing.invoiceProfile.countryLabel")),1),(u(),G(K,{key:`invoice-country-${e(x)}`,"model-value":e(n).country,placeholder:e(o)("dashboard.billing.invoiceProfile.countryPlaceholder"),"search-placeholder":e(o)("dashboard.billing.invoiceProfile.countrySearchPlaceholder"),"aria-label":e(o)("dashboard.billing.invoiceProfile.countryLabel"),"loading-text":e(o)("dashboard.shared.asyncSelect.loading"),"empty-text":e(o)("dashboard.billing.invoiceProfile.countryEmpty"),fetcher:F,"resolve-label":k,"onUpdate:modelValue":W},null,8,["model-value","placeholder","search-placeholder","aria-label","loading-text","empty-text"]))])]),a("div",null,[a("label",Ee,c(e(o)("dashboard.billing.invoiceProfile.addressLabel")),1),L(a("input",{id:"invoice-address","onUpdate:modelValue":i[1]||(i[1]=d=>e(n).address=d),class:"field",type:"text",autocomplete:"street-address",maxlength:"500",required:"",placeholder:e(o)("dashboard.billing.invoiceProfile.addressPlaceholder")},null,8,Ue),[[M,e(n).address]])]),a("div",Ve,[a("div",null,[a("label",$e,c(e(o)("dashboard.billing.invoiceProfile.cityLabel")),1),L(a("input",{id:"invoice-city","onUpdate:modelValue":i[2]||(i[2]=d=>e(n).city=d),class:"field",type:"text",autocomplete:"address-level2",maxlength:"100",required:""},null,512),[[M,e(n).city]])]),a("div",null,[a("label",{class:"mb-2 block text-sm font-medium text-[var(--color-ink-700)]",for:e(h)?void 0:"invoice-state"},[H(c(e(o)("dashboard.billing.invoiceProfile.stateLabel"))+" ",1),a("span",Ge,c(e(h)?e(o)("dashboard.billing.invoiceProfile.requiredHint"):e(o)("dashboard.billing.invoiceProfile.optionalHint")),1)],8,De),e(h)?(u(),G(K,{key:`invoice-state-${e(n).country}-${e(x)}`,modelValue:e(n).state,"onUpdate:modelValue":i[3]||(i[3]=d=>e(n).state=d),placeholder:e(o)("dashboard.billing.invoiceProfile.statePlaceholder"),"search-placeholder":e(o)("dashboard.billing.invoiceProfile.stateSearchPlaceholder"),"aria-label":e(o)("dashboard.billing.invoiceProfile.stateLabel"),"loading-text":e(o)("dashboard.shared.asyncSelect.loading"),"empty-text":e(o)("dashboard.billing.invoiceProfile.stateEmpty"),fetcher:U,"resolve-label":C},null,8,["modelValue","placeholder","search-placeholder","aria-label","loading-text","empty-text"])):L((u(),v("input",{key:1,id:"invoice-state","onUpdate:modelValue":i[4]||(i[4]=d=>e(n).state=d),class:"field",type:"text",autocomplete:"address-level1",maxlength:"100"},null,512)),[[M,e(n).state]])]),a("div",null,[a("label",Oe,c(e(o)("dashboard.billing.invoiceProfile.zipCodeLabel")),1),L(a("input",{id:"invoice-zip","onUpdate:modelValue":i[5]||(i[5]=d=>e(n).zipCode=d),class:"field",type:"text",autocomplete:"postal-code",maxlength:"32",required:""},null,512),[[M,e(n).zipCode]])])]),a("div",Re,[a("div",null,[a("label",Fe,c(e(o)("dashboard.billing.invoiceProfile.localeLabel")),1),_(z,{modelValue:e(n).locale,"onUpdate:modelValue":i[6]||(i[6]=d=>e(n).locale=d),options:e(T),"aria-label":e(o)("dashboard.billing.invoiceProfile.localeLabel")},null,8,["modelValue","options","aria-label"])]),a("div",null,[a("label",He,[H(c(e(o)("dashboard.billing.invoiceProfile.taxNumberLabel"))+" ",1),a("span",Ke,c(e(o)("dashboard.billing.invoiceProfile.optionalHint")),1)]),L(a("input",{id:"invoice-tax-number","onUpdate:modelValue":i[7]||(i[7]=d=>e(n).taxNumber=d),class:"field",type:"text",autocomplete:"off",maxlength:"64",placeholder:e(o)("dashboard.billing.invoiceProfile.taxNumberPlaceholder")},null,8,We),[[M,e(n).taxNumber]])]),a("div",Ye,[a("label",ze,[H(c(e(o)("dashboard.billing.invoiceProfile.notesLabel"))+" ",1),a("span",Ze,c(e(o)("dashboard.billing.invoiceProfile.optionalHint")),1)]),L(a("input",{id:"invoice-notes","onUpdate:modelValue":i[8]||(i[8]=d=>e(n).notes=d),class:"field",type:"text",maxlength:"1000",placeholder:e(o)("dashboard.billing.invoiceProfile.notesPlaceholder")},null,8,qe),[[M,e(n).notes]])])]),a("div",Je,[a("p",je," * "+c(e(o
1)("dashboard.billing.invoiceProfile.issuerHint")),1),a("button",{class:"button-primary gap-2 disabled:cursor-not-allowed disabled:opacity-60",type:"submit",disabled:e(y)||!e(n).country||e(h)&&!e(n).state},[_(e(Pe),{class:"h-4 w-4","stroke-width":2,"aria-hidden":"true"}),H(" "+c(e(y)?e(o)("dashboard.billing.invoiceProfile.saving"):e(o)("dashboard.billing.invoiceProfile.saveAction")),1)],8,Qe)])],32))])}}}),eo=Object.assign(Xe,{__name:"BillingInvoiceProfile"});function oo(s){return`MatchlyResume Credit Pack (${s.credits} credits)`}const no="MatchlyResume Subscription Plan",to={class:"panel p-6"},ao={class:"mt-6"},io={key:1,class:"flex flex-col items-center gap-3 rounded-2xl border border-[var(--color-ink-100)] bg-[var(--color-surface-700)] px-4 py-8 text-center"},lo={class:"text-sm text-[var(--color-ink-500)]"},ro=["disabled"],so={key:3,class:"grid min-w-0 divide-y divide-[var(--color-ink-100)] rounded-2xl border border-[var(--color-ink-100)] bg-[var(--color-surface-700)]"},co={class:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-[var(--color-ink-100)] text-[var(--color-ink-500)]","aria-hidden":"true"},uo={class:"min-w-0 flex-1"},mo={class:"truncate text-sm font-semibold text-[var(--color-ink-900)]"},bo={class:"truncate text-xs text-[var(--color-ink-500)]"},po=["disabled","onClick"],fo={key:4,class:"mt-4 flex justify-center"},vo=["disabled"],ho=q({__name:"BillingInvoices",props:{hasInvoiceProfile:{type:Boolean},profileLoading:{type:Boolean}},emits:["requestProfile"],setup(s,{emit:m}){const p=s,A=m,{t:o}=X(),{formatDateTime:x}=se(),B=ne(),w=te(),y=oo(ge),{data:n,pending:T,error:R,refresh:E}=oe("/api/billing/invoices",{key:"dashboard-billing-invoices",lazy:!0},"$G0tM6rB4Ny"),F=D([]),k=D(!1),h=D(null),S=D(2),U=D(!1);ee(n,l=>{l&&(F.value=[],S.value=2,U.value=l.hasMore)},{immediate:!0});const C=O(()=>{const l=new Map;for(const r of[...n.value?.items||[],...F.value])l.set(r.id,r);return Array.from(l.values()).sort((r,V)=>{const P=r.createdAt?Date.parse(r.createdAt):0;return(V.createdAt?Date.parse(V.createdAt):0)-P})}),W=O(()=>U.value);async function Y(){if(!(k.value||!U.value)){k.value=!0;try{const l=await $fetch("/api/billing/invoices",{query:{page:S.value}});F.value.push(...l.items),U.value=l.hasMore,S.value+=1}catch{}finally{k.value=!1}}}function t(l){switch((l||"").toLowerCase()){case"paid":return"paid";case"pending":return"pending";case"void":return"void";case"refunded":case"partial_refund":return"refunded";case"failed":return"failed";default:return"other"}}function i(l){switch(t(l)){case"paid":return o("dashboard.billing.invoices.statusPaid");case"pending":return o("dashboard.billing.invoices.statusPending");case"void":return o("dashboard.billing.invoices.statusVoid");case"refunded":return o("dashboard.billing.invoices.statusRefunded");case"failed":return o("dashboard.billing.invoices.statusFailed");default:return l||"—"}}function f(l){switch(t(l)){case"paid":return"success";case"pending":return"info";case"void":case"refunded":return"warning";case"failed":return"danger";default:return"neutral"}}function g(l){return l.totalFormatted?l.totalFormatted:l.total!==null&&l.currency?`$${(l.total/100).toFixed(2)} ${l.currency}`:"—"}function N(l){return l.label?l.label:l.reason==="purchase"?y:no}function K(l){const r=(l.status||"").toLowerCase();return r==="paid"||r==="refunded"||r==="partial_refund"}function z(l,r){const P=(l.headers.get("content-disposition")||"").match(/filename="([^"]+)"/i);return P?.[1]?P[1]:`invoice-${r.createdAt?.slice(0,10)||"document"}.pdf`}async function d(l){if(!(h.value||p.profileLoading)){if(!p.hasInvoiceProfile){A("requestProfile"),w.info(o("dashboard.billing.invoices.profileRequired"),{group:"billing-invoice-download"});return}h.value=l.id;try{const r=await fetch(`/api/billing/invoices/${encodeURIComponent(l.id)}/generate`,{method:"POST",headers:{Accept:"application/pdf"}});if(!r.ok)throw{data:await r.json().catch(()=>null)};if(!(r.headers.get("content-type")||"").toLowerCase().includes("application/pdf"))throw new Error("Unexpected invoice response.");const P=await r.blob(),$=URL.createObjectURL(P),I=document.createElement("a");I.href=$,I.download=z(r,l),document.body.appendChild(I),I.click(),I.remove(),window.setTimeout(()=>URL.revokeObjectURL($),1e3)}catch(r){w.error(B(r,o("dashboard.billing.invoices.generateError")),{group:"billing-invoice-download"})}finally{h.value=null}}}return(l,r)=>{const V=j,P=Q,$=ve,I=he;return u(),v("section",to,[_(V,{title:e(o)("dashboard.billing.invoices.title")},null,8,["title"]),a("div",ao,[e(T)&&!e(C).length?(u(),G(P,{key:0,label:e(o)("dashboard.billing.invoices.loadingLabel")},null,8,["label"])):e(R)&&!e(C).length?(u(),v("div",io,[a("p",lo,c(e(o)("dashboard.billing.invoices.fetchHint")),1),a("button",{type:"button",class:"inline-flex items-center gap-2 rounded-full border border-[var(--color-ink-200)] px-4 py-2 text-xs font-semibold text-[var(--color-ink-700)] transition hover:border-[var(--color-ink-400)] hover:text-[var(--color-ink-900)] disabled:cursor-not-allowed disabled:opacity-60",disabled:e(T),onClick:r[0]||(r[0]=b=>e(E)())},c(e(o)("dashboard.billing.invoices.retryAction")),9,ro)])):e(C).length?(u(),v("ul",so,[(u(!0),v(pe,null,fe(e(C),b=>(u(),v("li",{key:b.id,class:"flex min-w-0 items-center gap-3 px-4 py-3"},[a("span",co,[_(e(_e),{class:"h-4 w-4","stroke-width":1.8})]),a("div",uo,[a("p",mo,c(N(b)),1),a("p",bo,c(b.createdAt?e(x)(b.createdAt):"—")+" · "+c(g(b)),1)]),_(I,{label:i(b.status),tone:f(b.status)}
1,null,8,["label","tone"]),K(b)?(u(),v("button",{key:0,type:"button",class:"inline-flex items-center gap-1.5 rounded-full border border-[var(--color-ink-200)] bg-[var(--color-surface-700)] px-3 py-1.5 text-xs font-semibold text-[var(--color-ink-700)] transition hover:border-[var(--color-ink-400)] hover:text-[var(--color-ink-900)] disabled:cursor-not-allowed disabled:opacity-60",disabled:e(h)!==null||s.profileLoading,onClick:yo=>d(b)},[_(e(ye),{class:"h-3.5 w-3.5","stroke-width":2,"aria-hidden":"true"}),H(" "+c(e(h)===b.id?e(o)("dashboard.billing.invoices.generatingAction"):e(o)("dashboard.billing.invoices.downloadAction")),1)],8,po)):J("",!0)]))),128))])):(u(),G($,{key:2,title:e(o)("dashboard.billing.invoices.emptyTitle"),description:e(o)("dashboard.billing.invoices.emptyDescription")},null,8,["title","description"])),e(C).length&&e(W)?(u(),v("div",fo,[a("button",{type:"button",class:"inline-flex items-center gap-2 rounded-full border border-[var(--color-ink-200)] px-4 py-2 text-xs font-semibold text-[var(--color-ink-700)] transition hover:border-[var(--color-ink-400)] hover:text-[var(--color-ink-900)] disabled:cursor-not-allowed disabled:opacity-60",disabled:e(k),onClick:Y},c(e(k)?e(o)("dashboard.billing.invoices.loadingMore"):e(o)("dashboard.billing.invoices.loadMore")),9,vo)])):J("",!0)])])}}}),go=Object.assign(ho,{__name:"BillingInvoices"}),_o={class:"grid gap-6"},$o=q({__name:"invoices",setup(s){const{data:m,pending:p,error:A}=oe("/api/billing/invoice-profile",{key:"dashboard-billing-invoice-profile",lazy:!0},"$TOWNXZ-9Yo");function o(B){m.value&&(m.value={...m.value,profile:B})}function x(){document.getElementById("billing-invoice-profile")?.scrollIntoView({behavior:"smooth",block:"start"})}return(B,w)=>{const y=le,n=eo,T=go;return u(),v("div",_o,[_(y),_(n,{profile:e(m)?.profile,defaults:e(m)?.defaults,loading:e(p),"load-error":!!e(A),onSaved:o},null,8,["profile","defaults","loading","load-error"]),_(T,{"has-invoice-profile":!!e(m)?.profile,"profile-loading":e(p),onRequestProfile:x},null,8,["has-invoice-profile","profile-loading"])])}}});export{$o 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.