1import{_ as Me}from"./DRz2fOcG.js";import{_ as Pe}from"./KvcEDWQu.js";import{_ as $e}from"./5ITTfKDh.js";import{_ as Le}from"./VhDzAHBU.js";import{T as Be,_ as Qe}from"./CF9igDpr.js";import{a as je,_ as Fe}from"./4LG79d4I.js";import{_ as Ye}from"./D1aqih2S.js";import{bh as D,aY as ze,bj as Ve,aX as o,bd as qe,aP as d,aR as e,a_ as A,a$ as _,aT as C,ba as Q,aS as r,b4 as j,b0 as Ke,b3 as Ge,b1 as F,b2 as se,b6 as He,b5 as Xe,bk as Je,bi as Y,aQ as n}from"./C_rQLvuc.js";import{u as Ze}from"./DNqgtRfD.js";import{u as z}from"./CeDO9UOq.js";import{u as et}from"./cT8c6_XS.js";import{L as oe}from"./CV2CakK6.js";import{T as le}from"./BfRZdOjW.js";import{u as tt}from"./B9hK0Gty.js";import"./COfuDg8l.js";import"./BfXRU5JL.js";import"./65lab4TY.js";import"./ZBfxazMf.js";import"./HfAvc1RB.js";import"./0Mj6QXLg.js";import"./DvlAiE6w.js";import"./Ct9WDRuu.js";import"./DyP2UJtw.js";import"./Bp0EJkZI.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};g.SENTRY_RELEASE={id:"52f7e9413d73032766ae5610c0b4b947fcb8bdfc"}}catch{}})();try{(function(){var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new g.Error().stack;b&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[b]="b3c09436-1261-4899-a111-119192af8308",g._sentryDebugIdIdentifier="sentry-dbid-b3c09436-1261-4899-a111-119192af8308")})()}catch{}const at={class:"overflow-hidden relative h-full bg-linear-to-b from-shadow-dark via-dark/95 to-shadow-dark"},st={class:"relative z-10 px-4 pb-14 h-full md:px-6 text-epic-gold"},ot={class:"flex justify-between items-center py-8"},lt={class:"text-2xl font-black text-transparent bg-clip-text bg-linear-to-r xs:text-4xl from-epic-gold via-fire-orange to-epic-gold"},nt={class:"block md:hidden"},it={class:"relative group"},rt={key:1,class:"flex h-[70vh] items-center justify-center"},dt={class:"space-y-6 text-center"},ct={class:"space-y-2"},ut={class:"mx-auto max-w-md text-sm text-epic-gold/60"},pt={key:2,class:"flex justify-center w-full"},ft={class:"flex flex-col gap-8 w-full md:gap-12"},gt={class:"relative group"},vt={class:"overflow-hidden relative p-6 bg-linear-to-br rounded-3xl border backdrop-blur-sm transition-all duration-500 from-shadow-dark/95 to-dark/90 border-epic-gold/30 md:p-8 group-hover:border-epic-gold/50"},mt={class:"flex relative z-10 flex-col gap-8 items-center lg:flex-row lg:gap-12 lg:grid lg:grid-cols-3 lg:gap-8"},bt={class:"flex flex-col gap-4 items-center lg:items-start"},xt={class:"text-5xl font-black text-transparent bg-clip-text bg-linear-to-r md:text-6xl lg:text-7xl from-epic-gold via-fire-orange to-epic-gold"},yt={class:"relative bg-linear-to-br from-shadow-dark/60 to-dark/40 border border-fire-orange/20 rounded-2xl p-6 min-w-[280px] lg:justify-self-center"},ht={class:"flex flex-col gap-3 items-center text-center"},wt={class:"text-3xl font-black text-epic-gold"},_t={class:"mt-4"},kt={class:"block mt-1 text-lg font-bold text-fire-orange"},Et={class:"flex flex-col gap-4 min-w-[200px] lg:justify-self-end"},Tt={class:"hidden relative z-50 md:block"},Dt={class:"relative desktop-dropdown-container"},At={class:"py-3 text-sm font-bold rounded-xl text-fire-orange"},Ct=["onClick"],It={class:"flex gap-3 items-center"},St={class:"text-lg"},Nt={class:"grid gap-8 md:grid-cols-2"},Ut={class:"relative group"},Rt={class:"relative p-6 h-full bg-linear-to-br rounded-2xl border backdrop-blur-sm transition-all duration-500 from-shadow-dark/95 to-dark/90 border-fire-orange/30 group-hover:border-fire-orange/50"},Ot={class:"space-y-6"},Wt={class:"flex justify-between items-center pb-4 border-b border-fire-orange/20"},Mt={class:"text-sm font-bold text-fire-orange"},Pt={class:"flex justify-between items-center pb-4 border-b border-fire-orange/20"},$t={class:"text-sm font-bold text-fire-orange"},Lt={class:"flex justify-between items-center"},Bt={class:"text-sm font-bold text-fire-orange"},Qt={class:"relative group"},jt={class:"relative p-6 h-full bg-linear-to-br rounded-2xl border backdrop-blur-sm transition-all duration-500 from-shadow-dark/95 to-dark/90 border-epic-gold/30 group-hover:border-epic-gold/50"},Ft={class:"space-y-6"},Yt={class:"flex justify-between items-center pb-4 border-b border-epic-gold/20"},zt={class:"text-right"},Vt={class:"text-sm font-bold text-epic-gold"},qt={key:0,class:"text-xs text-fire-orange/70"},Kt={class:"flex justify-between items-center pb-4 border-b border-epic-gold/20"},Gt={class:"text-right"},Ht={class:"text-sm font-bold text-epic-gold"},Xt={key:0,class:"text-xs text-fire-orange/70"},Jt={class:"flex justify-between items-start"},Zt={class:"flex flex-wrap gap-2 max-w-[60%]"},ea={class:"text-xs font-bold text-epic-gold"},ta={key:0,class:"text-xs text-stone-grey/60"},aa={class:"relative group"},sa={class:"relative p-6 bg-linear-to-br rounded-2xl border backdrop-blur-sm transition-all duration-500 from-shadow-dark/95 to-dark/90 border-emerald-400/30 md:p-8 group-hover:border-emerald-400/50"},oa={key:0,class:"epic-chronicles-list"},la={class:"mb-6"},na={key:1,class:"flex flex-col justify-center items-center py-12 text-center"},ia={key:3,class:"flex h-[70vh] items-center justify-center"},Ra={__name:"[id]",setup(g){const b=qe(),{wallets:V,execute:ne}=tt({immediate:!1}),q=[{id:"edit",name:"âï¸ Enhance Quest",icon:"edit"},{id:"delete",name:"ð¡ï¸ Abandon Quest",icon:"delete",class:"text-red-500"}],K=a=>{switch(k.value=!1,a.id){case"edit":Ee();break;case"delete":Se();break}},ie=()=>{k.value=!k.value},re=D(()=>
1{if(!M.value||!k.value)return{top:"0px",left:"0px"};const a=M.value.getBoundingClientRect(),t=192,l=a.bottom+8,u=a.right-t;return{top:`${l}px`,left:`${Math.max(u,16)}px`}}),G=a=>{a.target.closest(".desktop-dropdown-container")||(k.value=!1)};ze(()=>{U(),document.addEventListener("click",G)}),Ve(()=>{document.removeEventListener("click",G)});const{formatDate:de,formatCurrency:ce}=et(),ue=Je(),H=D(()=>ue.params.id),s=o(null),p=o(null),h=o([]),X=o([]),O=o(!0),w=o(null),W=o(!1),I=o(!1),k=o(!1),M=o(null),pe=o(null),T=o(!1),J=o(""),Z=o("success"),S=o([]),x=o([]),ee=o(!1),N=o(!1),P=o(!1),fe=D(()=>s.value?{id:s.value.id,amount:s.value.amount,walletId:s.value.walletId,dueDate:s.value.dueDate,entityId:s.value.entityId,type:1,categoryId:s.value.category.id,entity:s.value.entity,transactionType:le.INCOME}:null),ge=D(()=>{if(!s.value)return{};let a=null;s.value.walletId&&x.value.length>0&&(a=x.value.find(l=>l.walletId===s.value.walletId),a||(a=x.value[0]));const t={...s.value,accountId:a?.id||"",account:a,due_date:s.value.dueDate,frequency:s.value.frequency};return b.debug("Enriched wage for edit:",{originalWage:s.value,enrichedWage:t,matchingAccount:a,allAccountsCount:x.value.length}),t}),ve=D(()=>$.value.map(a=>({id:a.id,transactionDate:a.transactionDate,amount:a.amount,transactionType:le.INCOME,description:`Wage payment from ${s.value?.entity?.alias||s.value?.entity?.name||"Unknown Employer"}`,entity:s.value?.entity||{alias:"Wage Payment"},category:h.value.length>0?h.value[0]:{alias:"salary"},categoryName:h.value.length>0?h.value[0].alias:"Salary",account:p.value||{alias:"Unknown Account"},accountId:p.value?.id||null}))),$=o([]),U=async()=>{try{O.value=!0,w.value=null;const a=await $fetch(`/api/wages/${H.value}`);if(!a?.wage)throw new Error("Wage not found");if(s.value=a.wage,s.value.entityId&&!s.value.entity){const t=await $fetch(`/api/entities/${s.value.entityId}`);t?.entity&&(s.value.entity=t.entity)}b.debug("Fetched wage:",s.value),await Promise.all([me(s.value.walletId),te(),be(s.value.categories.map(t=>t.id)||[]),ne(),ye()]),await xe()}catch(a){if(a.status===404)w.value=`Wage with ID ${H.value} not found. It may have been deleted or you may not have access to it.`;else if(a.data?.code==="DB_TOKEN_ERROR"){w.value="Database connection error. Please try again.";const{handleDatabaseTokenError:t}=Ze();if(await t(a))return U()}else w.value=a.data?.message||a.message||"Failed to fetch wage details"}finally{O.value=!1}},te=async()=>{try{if(!s.value?.id)return;const a=await $fetch("/api/transactions/links",{query:{linkId:s.value.id,linkType:1}});a?.transactions&&($.value=a.transactions)}catch{}},me=async a=>{try{if(!a)return;const t=await $fetch(`/api/wallets/${a}`);t?.wallet&&(p.value=t.wallet)}catch{}},be=async a=>{try{if(!a||!a.length)return;const t=await $fetch("/api/categories");if(b.debug("All categories:",t),t){S.value=t;const l=[],u=new Map,R=(f,m,y=null)=>{if(!f)return null;for(const i of f){if(i.id===m){const E={id:i.id,alias:i.alias||i.name,categoryType:i.categoryType,icon:i.icon||"paid",parentId:y};return y&&(u.has(y)||u.set(y,[]),u.get(y).push(i.id)),E}if(i.subcategories&&i.subcategories.length>0){const E=R(i.subcategories,m,i.id);if(E)return E}}return null};for(const f of a){if(!f)continue;const m=R(t,f);m&&l.push(m)}h.value=l.filter(f=>{if(u.has(f.id)){const m=u.get(f.id);return!l.some(i=>m.includes(i.id))}return!0})}}catch{}},xe=async()=>{try{const a=await $fetch("/api/accounts");if(a?.accounts&&(x.value=a.accounts,s.value?.walletId)){const t=a.accounts.filter(l=>l.walletId===s.value.walletId);t.length>0&&(x.value=[...t,...a.accounts.filter(l=>l.walletId!==s.value.walletId)]),b.debug("Accounts filtered for wage wallet:",{wageWalletId:s.value.walletId,matchingAccounts:t.length,totalAccounts:x.value.length})}}catch{}},ye=async()=>{try{const a=await $fetch("/api/entities");a?.entities&&(X.value=a.entities)}catch{}},ae=a=>ce(a,p.value?.currency||"USD"),L=a=>de(a),he=a=>{const t=[{val:0,text:"One Time"},{val:1,text:"Daily"},{val:2,text:"Weekly"},{val:3,text:"Bi-Weekly"},{val:4,text:"Monthly"},{val:5,text:"Quarterly"},{val:6,text:"Annually"},{val:7,text:"Bi-Annually"}];if(typeof a=="object"&&a!==null)return a.name||"Unknown";const l=t.find(u=>u.val===Number(a));return l?l.text:"Unknown"},we=a=>{if(!a)return"Unknown Wallet";if(typeof a=="object"&&a!==null)return a.name||a.alias||`Wallet #${a.id}`;if(p.value)return p.value.alias||p.value.name||`Wallet #${p.value.id}`;const t=V.value.find(l=>l.id===a);return t?t.alias||t.name||`Wallet #${t.id}`:`Wallet #${a}`},_e=a=>({0:"Private",1:"Business",2:"Child",3:"Shared"})[a]||"Unknown",ke=()=>{Y("/wages")},Ee=()=>{W.value=!0},B=()=>{W.value=!1},Te=()=>{N.value=!0},De=()=>{N.value=!1},Ae=async a=>{await Oe(),v(`ð QUEST COMPLETED! Your bounty reward of ${ae(a.amount)} has been successfully claimed! Legend grows! âï¸`),P.value=!0,setTimeout(()=>{P.value=!1},3e3),s.value&&(s.value.status="RECEIVED")},v=(a,t="success")=>{J.value=a,Z.value=t,T.value=!0},Ce=()=>
1{U(),v("âï¸ Quest enhanced successfully! Your bounty configuration has been updated."),B()},Ie=()=>{B(),Y("/wages")},Se=()=>{I.value=!0},Ne=()=>{I.value=!1},Ue=async()=>{if(s.value)try{ee.value=!0;const a=await $fetch("/api/wages/delete",{method:"POST",body:{id:s.value.id,walletId:s.value.walletId}});z().updateRunway(s.value.walletId),Y("/wages")}catch(a){w.value=a.data?.message||a.message||"Failed to delete wage",v("Failed to delete wage","error"),I.value=!1}finally{ee.value=!1}},Re=async()=>{if(s.value)try{v("Processing...");const a=await $fetch("/api/wages/update",{method:"POST",body:{...s.value,status:"SKIPPED"}});if(a?.success&&a?.wage)s.value={...s.value,...a.wage,status:2,entity:s.value.entity,category:s.value.category,categories:s.value.categories},z().updateRunway(s.value.walletId),T.value=!1,v("âï¸ Bounty forfeited. The quest has been marked as abandoned.","success");else throw new Error("Failed to update wage status")}catch(a){v(a.data?.message||a.message||"Failed to skip wage","error")}},Oe=async()=>{if(s.value)try{v("Processing...","loading");const a=await $fetch("/api/wages/update",{method:"POST",body:{...s.value,status:"RECEIVED"}});if(a?.success&&a?.wage)s.value={...s.value,...a.wage,status:1,entity:s.value.entity,category:s.value.category,categories:s.value.categories},z().updateRunway(s.value.walletId),T.value=!1,te(),v("ð Quest completed! Bounty reward has been claimed successfully!","success");else throw new Error("Failed to update wage status")}catch(a){v(a.data?.message||a.message||"Failed to mark wage as received","error")}};return(a,t)=>{const l=Me,u=Pe,R=$e,f=Le,m=Qe,y=je,i=Ye,E=Fe;return n(),d(F,null,[e("div",at,[t[30]||(t[30]=Q('<div class="absolute inset-0 bg-linear-to-b animate-pulse from-epic-gold/3 via-fire-orange/2 to-epic-gold/3"></div><div class="absolute inset-0 bg-[radial-gradient(ellipse_at_center,transparent_30%,rgba(20,15,20,0.8)_100%)]"></div><div class="overflow-hidden absolute inset-0 pointer-events-none"><div class="absolute left-10 top-20 w-2 h-2 rounded-full animate-bounce bg-epic-gold/30" style="animation-delay:0s;animation-duration:3s;"></div><div class="absolute right-16 top-40 w-3 h-3 rounded-full animate-bounce bg-fire-orange/20" style="animation-delay:1s;animation-duration:4s;"></div><div class="absolute left-20 bottom-32 w-1 h-1 rounded-full animate-bounce bg-epic-gold/40" style="animation-delay:2s;animation-duration:5s;"></div><div class="absolute right-8 bottom-60 w-2 h-2 rounded-full animate-bounce bg-fire-orange/25" style="animation-delay:0.5s;animation-duration:3.5s;"></div></div><div class="absolute top-0 left-0 w-full h-32 bg-linear-to-b to-transparent from-epic-gold/5"></div><div class="absolute bottom-0 left-0 w-full h-32 bg-linear-to-t to-transparent from-fire-orange/5"></div>',5)),e("div",st,[e("div",ot,[e("h1",lt,r(s.value?s.value.entity?.alias||"UNNAMED QUEST":"BOUNTY DETAILS"),1),e("div",nt,[e("div",it,[s.value?(n(),A(l,{key:0,items:q,"is-menu":"","onUpdate:modelValue":K})):_("",!0)])])]),O.value?(n(),A(u,{key:0,headline:j(oe).wageDetails.headline,subheadings:j(oe).wageDetails.subheadings},null,8,["headline","subheadings"])):w.value?(n(),d("div",rt,[e("div",dt,[t[4]||(t[4]=e("div",{class:"relative"},[e("div",{class:"text-6xl opacity-50 animate-pulse"},"â ï¸"),e("div",{class:"absolute inset-0 bg-linear-to-t to-transparent rounded-full blur-xl from-red-500/20"})],-1)),e("div",ct,[t[2]||(t[2]=e("h3",{class:"text-xl font-black text-red-500"},"QUEST UNAVAILABLE",-1)),e("div",ut,r(w.value),1)]),e("button",{class:"flex relative gap-3 justify-center items-center px-8 py-4 mx-auto font-black bg-linear-to-r rounded-2xl border transition-all duration-300 group from-fire-orange to-epic-gold border-fire-orange hover:from-epic-gold hover:to-fire-orange hover:border-epic-gold text-shadow-dark",onClick:U},[...t[3]||(t[3]=[e("i",{class:"text-lg material-symbols-rounded"},"refresh",-1),e("span",{class:"tracking-wider uppercase"},"RETRY QUEST ACCESS",-1)])])])])):s.value?(n(),d("div",pt,[e("div",ft,[e("div",gt,[t[13]||(t[13]=e("div",{class:"absolute inset-0 bg-linear-to-r roun
1ded-3xl blur-xl animate-pulse from-epic-gold/20 to-fire-orange/30"},null,-1)),e("div",vt,[t[12]||(t[12]=e("div",{class:"absolute inset-0 opacity-5"},[e("div",{class:"absolute inset-0 bg-[radial-gradient(circle_at_20%_20%,rgba(249,202,120,0.1)_0%,transparent_50%)]"}),e("div",{class:"absolute inset-0 bg-[radial-gradient(circle_at_80%_80%,rgba(255,107,53,0.1)_0%,transparent_50%)]"})],-1)),e("div",mt,[e("div",bt,[t[5]||(t[5]=e("div",{class:"flex gap-3 items-center"},[e("span",{class:"text-4xl"},"ð°"),e("div",null,[e("span",{class:"block text-sm font-bold tracking-wider uppercase text-fire-orange/80"},"BOUNTY REWARD"),e("span",{class:"block text-xs text-epic-gold/60"},"Expected treasure value")])],-1)),e("span",xt,r(ae(s.value.amount)),1),t[6]||(t[6]=e("div",{class:"flex gap-2 items-center"},[e("div",{class:"w-3 h-3 rounded-full animate-pulse bg-fire-orange"}),e("span",{class:"text-sm font-bold text-fire-orange"},"PENDING COLLECTION")],-1))]),e("div",yt,[e("div",ht,[t[8]||(t[8]=e("div",{class:"flex gap-2 items-center mb-2"},[e("span",{class:"text-2xl"},"ðï¸"),e("span",{class:"text-sm font-bold tracking-wider uppercase text-fire-orange/80"},"QUEST DEADLINE")],-1)),e("span",wt,r(L(s.value.dueDate)),1),e("div",_t,[t[7]||(t[7]=e("div",{class:"flex gap-2 items-center"},[e("span",{class:"text-xl"},"ð"),e("span",{class:"text-sm font-bold uppercase text-epic-gold/70"},"QUEST GIVER")],-1)),e("span",kt,r(s.value.entity?.alias||"UNKNOWN PATRON"),1)])])]),e("div",Et,[e("div",{class:"grid grid-cols-1 gap-3"},[e("button",{class:"flex overflow-hidden relative gap-3 justify-center items-center px-6 py-3 font-black text-white bg-linear-to-r rounded-2xl border transition-all duration-300 group from-red-600/80 to-red-500/80 border-red-400/50 hover:from-red-700 hover:to-red-600 hover:border-red-300",onClick:Re},[...t[9]||(t[9]=[e("div",{class:"absolute inset-0 bg-linear-to-r opacity-0 transition-opacity duration-300 from-red-400/20 to-red-300/20 group-hover:opacity-100"},null,-1),e("i",{class:"relative z-10 text-lg material-symbols-rounded"},"block",-1),e("span",{class:"relative z-10 text-sm tracking-wider uppercase"},"FORFEIT BOUNTY",-1)])]),e("button",{class:"flex overflow-hidden relative gap-3 justify-center items-center px-6 py-3 font-black text-white bg-linear-to-r from-emerald-600 to-emerald-500 rounded-2xl border border-emerald-400 transition-all duration-300 group hover:from-emerald-700 hover:to-emerald-600 hover:border-emerald-300",onClick:Te},[...t[10]||(t[10]=[e("div",{class:"absolute inset-0 bg-linear-to-r opacity-0 transition-opacity duration-300 from-emerald-400/20 to-emerald-300/20 group-hover:opacity-100"},null,-1),e("i",{class:"relative z-10 text-lg material-symbols-rounded"},"check_circle",-1),e("span",{class:"relative z-10 text-sm tracking-wider uppercase"},"CLAIM BOUNTY",-1)])])]),e("div",Tt,[e("div",Dt,[e("button",{ref_key:"dropdownButton",ref:M,class:"flex gap-2 justify-center items-center px-4 py-3 w-full font-bold bg-linear-to-r rounded-2xl border transition-all duration-300 from-fire-orange/30 to-epic-gold/30 border-fire-orange/40 text-fire-orange hover:border-fire-orange/60",onClick:ie},[...t[11]||(t[11]=[e("i",{class:"text-lg material-symbols-rounded"},"more_horiz",-1),e("span",{class:"text-sm uppercase"},"MORE ACTIONS",-1)])],512)])]),(n(),A(Xe,{to:"body"},[k.value?(n(),d("div",{key:0,ref_key:"dropdownMenu",ref:pe,class:"fixed w-48 bg-linear-to-b from-shadow-dark/95 to-dark/95 border-2 border-fire-orange/40 rounded-xl backdrop-blur-sm shadow-xl z-9999",style:Ge(re.value),onClick:t[0]||(t[0]=Ke(()=>{},["stop"]))},[e("ul",At,[(n(),d(F,null,se(q,(c,We)=>e("li",{key:We,class:He(["px-4 py-3 transition-all duration-200 cursor-pointer hover:bg-linear-to-r hover:from-epic-gold/20 hover:to-fire-orange/10 hover:border-l-2 hover:border-epic-gold hover:text-epic-gold",c.class]),onClick:ra=>K(c)},[e("div",It,[e("span",St,r(c.name.split(" ")[0]),1),e("span",null,r(c.name.split(" ").slice(1).join(" ")),1)])],10,Ct)),64))])],4)):_("",!0)]))])])])]),e("div",Nt,[e("div",Ut,[t[18]||(t[18]=e("div",{class:"absolute inset-0 bg-linear-to-b rounded-3xl opacity-50 blur-xl from-fire-orange/20 to-epic-gold/30"},null,-1)),e("div",Rt,[t[17]||(t[17]=e("div",{class:"flex gap-3 items-center mb-6"},[e("span",{class:"text-3xl"},"âï¸"),e("div",null,[e("h3",{class:"text-xl font-black text-fire-orange"}," QUEST DETAILS "),e("p",{class:"text-xs text-epic-gold/60"}," Bounty configuration & timeline ")])],-1)),e("div",Ot,[e("div",Wt,[t[14]||(t[14]=e("div",{class:"flex gap-2 items-center"},[e("span",{class:"text-lg"},"ð"),e("span",{class:"text-sm font-bold text-epic-gold/90"},"QUEST FREQUENCY")],-1)),e("span",Mt,r(he(s.value.frequency)),1)]),e("div",Pt,[t[15]||(t[15]=e("div",{class:"flex gap-2 items-center"},[e("span",{class:"text-lg"},"ð´"),e("span",{class:"text-sm font-bold text-epic-gold/90"},"QUEST INITIATED")],-1)),e("span",$t,r(L(s.value.createdAt)),1)]),e("div",Lt,[t[16]||(t[16]=e("div",{class:"flex gap-2 items-center"},[e("span",{class:"text-lg"},"ð"),e("span",{class:"text-sm font-bold text-epic-gold/90"},"LAST UPDATED")],-1)),e("span",Bt,r(L(s.value.updatedAt)),1)])])])]),e("div",Qt,[t[23]||(t[23]=e("div",{class:"absolute inset-0 bg-linear-to-b rounded-3xl opacity-50 blur-xl from-epic-gold/20 to-fire-orange/30"},null,-1)),e("div",jt,[t[22]||(t[22]=e("div",{class:"flex gap-3 items-center mb-6"},[e("span",{class:"text-3xl"},"ðï¸"),e("div",null,[e("h3",{class:"text-xl font-black text-epic-gold"}," QUEST RESOURCES "),e("p",{class:"text-xs text-fire-orange/60"}," Vault & patron information ")])],-1)),e("div",Ft,[e("div",Yt,[t[19]||(t[19]=e("div",{class:"flex gap-2 items-center"},[e("span",{class:"text-lg"},"ð¦"),e("span",{class:"text-sm font-bold text-fire-orange/90"},"TREASURE VAULT")],-1)),e("div",zt,[e("div",Vt,r(we(s.value.walletId)),1),p.value?(n(),d("div",qt,r(_e(p.value.walletType)),1)):_("",!0)])]),e("div",Kt,[t[20]||(t[20]=e("div",{class:"flex gap-2 items-center"},[e("span",{class:"text-lg"},"ð"),e("span",{class:"text-sm font-bold text-fire-orange/90"},"QUEST PATRON")],-1)),e("div",Gt,[e("div",Ht,r(s.value.entity?.alias||"UNKNOWN PATRON"),1),s.value.entity?(n(),d("div",Xt," VERIFIED GIVER ")):_("",!0)])]),e("div",Jt,[t[21]||(t[21]=e("div",{class:"flex gap-2 items-center"},[e("span",{class:"text-lg"},"ð¯"),e("span",{class:"text-sm font-bold text-fire-orange/90"},"QUEST TYPES")],-1)),e("div",Zt,[(n(!0),d(F,null,se(h.value,c=>(n(),d("div",{key:c.id,class:"flex gap-1 items-center px-2 py-1 rounded-lg border bg-epic-gold/20 border-epic-gold/30"},[C(R,{category:{alias:c.alias||c.name},type:"income",size:"small","all-categories":S.value},null,8,["category","all-categories"]),e("span",ea,r(c.alias||c.name||`TYPE #${c.id}`),1)]))),128)),h.value.length?_("",!0):(n(),d("span",ta,"No quest specializations assigned"))])])])])])]),e("div",aa,[t[27]||(t[27]=e("div",{class:"absolute inset-0 bg-linear-to-b rounded-3xl opacity-50 blur-xl from-emerald-400/20 to-epic-gold/30"},null,-1)),e("div",sa,[t[26]||(t[26]=e("div",{class:"flex gap-3 items-center mb-8"},[e("span",{class:"text-4xl"},"ð"),e("div",null,[e("h3",{class:"text-2xl font-black text-emerald-400"}," BOUNTY CHRONICLES "),e("p",{class:"text-sm text-epic-gold/60"}," Historical record of quest completions ")])],-1)),$.value.length?(n(),d("div",oa,[e("div",la,[t[24]||(t[24]=e("div",{class:"flex gap-2 items-center mb-4"},[e("span",{class:"text-lg"}
1,"ð"),e("span",{class:"text-sm font-bold tracking-wider uppercase text-emerald-400/80"},"COMPLETED QUESTS")],-1)),C(Be,{transactions:ve.value,categories:S.value,"hide-total-income-expense-section":!0,"hide-actions":!0,readonly:!0},null,8,["transactions","categories"])])])):(n(),d("div",na,[...t[25]||(t[25]=[Q('<div class="relative mb-6"><div class="text-6xl opacity-30 animate-pulse">ð</div><div class="absolute inset-0 bg-linear-to-t to-transparent rounded-full blur-xl from-emerald-400/20"></div></div><div class="space-y-2"><h4 class="text-xl font-black text-emerald-400"> NO CHRONICLES YET </h4><p class="max-w-md text-sm text-epic-gold/60"> Your bounty completion history will appear here once you start claiming rewards. Every quest completed adds to your legendary tale! </p></div><div class="flex gap-4 items-center mt-6 opacity-40"><span class="text-sm text-stone-grey">âï¸ Quest Tracking</span><span class="text-sm text-stone-grey">â¢</span><span class="text-sm text-stone-grey">ð Performance Analytics</span><span class="text-sm text-stone-grey">â¢</span><span class="text-sm text-stone-grey">ð Achievement Records</span></div>',3)])]))])])])])):(n(),d("div",ia,[e("div",{class:"space-y-6 text-center"},[t[29]||(t[29]=Q('<div class="relative"><div class="text-6xl opacity-50 animate-pulse">ðºï¸</div><div class="absolute inset-0 bg-linear-to-t to-transparent rounded-full blur-xl from-epic-gold/20"></div></div><div class="space-y-2"><h3 class="text-xl font-black text-epic-gold">QUEST NOT FOUND</h3><div class="mx-auto max-w-md text-sm text-fire-orange/60"> The ancient scrolls show no record of this bounty. </div></div>',2)),e("button",{class:"flex relative gap-3 justify-center items-center px-8 py-4 mx-auto font-black bg-linear-to-r rounded-2xl border transition-all duration-300 group from-fire-orange to-epic-gold border-fire-orange hover:from-epic-gold hover:to-fire-orange hover:border-epic-gold text-shadow-dark",onClick:ke},[...t[28]||(t[28]=[e("i",{class:"text-lg material-symbols-rounded"},"arrow_back",-1),e("span",{class:"tracking-wider uppercase"},"RETURN TO BOUNTY HALL",-1)])])])]))])]),W.value?(n(),A(f,{key:0,categories:S.value,wallets:j(V),accounts:x.value,entities:X.value,"wage-to-edit":ge.value,"is-editing":!0,onClose:B,onWageUpdated:Ce,onDeleteWage:Ie},null,8,["categories","wallets","accounts","entities","wage-to-edit"])):_("",!0),C(m,{visible:I.value,title:"ð¡ï¸ ABANDON QUEST",message:"Are you sure you want to abandon this bounty quest? This action cannot be undone and will remove all records from your chronicles.","cancel-button-text":"Keep Quest","confirm-button-text":"Abandon Quest",onCancel:Ne,onConfirm:Ue},null,8,["visible"]),N.value?(n(),A(y,{key:1,show:N.value,"payment-details":fe.value,onClose:De,onPaymentSubmitted:Ae},null,8,["show","payment-details"])):_("",!0),C(i,{show:T.value,type:Z.value,message:J.value,onClose:t[1]||(t[1]=c=>T.value=!1)},null,8,["show","type","message"]),C(E,{active:P.value,duration:2e3},null,8,["active"])],64)}}};export{Ra 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.