From f2ac944c312e46c364b6117cbba158a9d66443ae Mon Sep 17 00:00:00 2001 From: harniy <67821416+harniy@users.noreply.github.com> Date: Thu, 8 Feb 2024 18:53:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mfactory?= =?UTF-8?q?-lab/albus-defi@77cd9bbeea54445db58addea0f5bb84370a22213=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 4 +- ...ddd6a.js => AppDescriptionTop-3532d1df.js} | 2 +- ...e_type_script_setup_true_lang-4ea4b58c.js} | 2 +- ...e_type_script_setup_true_lang-49a84e94.js} | 2 +- ...e_type_script_setup_true_lang-b1ed04a3.js} | 2 +- ...e_type_script_setup_true_lang-df9fccc4.js} | 2 +- assets/TransportWebHID-5818439c.js | 1 + assets/TransportWebHID-5bbcbde3.js | 1 - ....all_-55976119.js => _...all_-98c9e73a.js} | 2 +- .../{about-9da857e1.js => about-1f9c962e.js} | 2 +- ....js => associatedTokenAccount-3098bd26.js} | 2 +- assets/converter-f970b5f4.js | 1 + ...ol-0d7befa9.js => create-pool-5db58cdc.js} | 2 +- assets/{home-3dd6ef06.js => home-802a2292.js} | 2 +- ...{index-db8f06b6.css => index-83214ffe.css} | 2 +- .../{index-954888cd.js => index-8f1552b3.js} | 4 +- .../{index-85d8bc03.js => index-9120c505.js} | 2 +- .../{index-7b88edbf.js => index-af989444.js} | 2 +- assets/index-c3d36580.js | 387 ----------------- assets/index-d32ec668.js | 394 ++++++++++++++++++ ...ernal-1651c888.js => internal-077727fa.js} | 2 +- ...dity-6eee4bfc.js => liquidity-7e83b83a.js} | 2 +- ...5aa94d.js => liquidity-single-9143e46f.js} | 2 +- .../{pools-cde72db2.js => pools-37aa0462.js} | 2 +- ...upport-d0827158.js => support-1ddc0f64.js} | 2 +- assets/swap-17bc4701.js | 1 + assets/swap-2b6f1930.js | 1 + assets/swap-6fd8fa15.js | 7 - assets/swap-d698b376.js | 1 - ...nsfer-b91ddc01.js => transfer-e86a4f12.js} | 2 +- assets/unrecognized-token-3289de57.svg | 8 + assets/{v4-52899dc3.js => v4-6d5fee0e.js} | 2 +- index.html | 4 +- 33 files changed, 432 insertions(+), 422 deletions(-) rename assets/{AppDescriptionTop-d90ddd6a.js => AppDescriptionTop-3532d1df.js} (92%) rename assets/{PolicyCard.vue_vue_type_script_setup_true_lang-bb3bfccf.js => PolicyCard.vue_vue_type_script_setup_true_lang-4ea4b58c.js} (55%) rename assets/{PoolsListItem.vue_vue_type_script_setup_true_lang-8fe66b65.js => PoolsListItem.vue_vue_type_script_setup_true_lang-49a84e94.js} (76%) rename assets/{SelectPool.vue_vue_type_script_setup_true_lang-8bd906d9.js => SelectPool.vue_vue_type_script_setup_true_lang-b1ed04a3.js} (72%) rename assets/{SelectToken.vue_vue_type_script_setup_true_lang-b4c9b972.js => SelectToken.vue_vue_type_script_setup_true_lang-df9fccc4.js} (74%) create mode 100644 assets/TransportWebHID-5818439c.js delete mode 100644 assets/TransportWebHID-5bbcbde3.js rename assets/{_...all_-55976119.js => _...all_-98c9e73a.js} (70%) rename assets/{about-9da857e1.js => about-1f9c962e.js} (51%) rename assets/{associatedTokenAccount-13e1bd2b.js => associatedTokenAccount-3098bd26.js} (88%) create mode 100644 assets/converter-f970b5f4.js rename assets/{create-pool-0d7befa9.js => create-pool-5db58cdc.js} (96%) rename assets/{home-3dd6ef06.js => home-802a2292.js} (71%) rename assets/{index-db8f06b6.css => index-83214ffe.css} (95%) rename assets/{index-954888cd.js => index-8f1552b3.js} (93%) rename assets/{index-85d8bc03.js => index-9120c505.js} (99%) rename assets/{index-7b88edbf.js => index-af989444.js} (99%) delete mode 100644 assets/index-c3d36580.js create mode 100644 assets/index-d32ec668.js rename assets/{internal-1651c888.js => internal-077727fa.js} (77%) rename assets/{liquidity-6eee4bfc.js => liquidity-7e83b83a.js} (97%) rename assets/{liquidity-single-b95aa94d.js => liquidity-single-9143e46f.js} (92%) rename assets/{pools-cde72db2.js => pools-37aa0462.js} (95%) rename assets/{support-d0827158.js => support-1ddc0f64.js} (52%) create mode 100644 assets/swap-17bc4701.js create mode 100644 assets/swap-2b6f1930.js delete mode 100644 assets/swap-6fd8fa15.js delete mode 100644 assets/swap-d698b376.js rename assets/{transfer-b91ddc01.js => transfer-e86a4f12.js} (83%) create mode 100644 assets/unrecognized-token-3289de57.svg rename assets/{v4-52899dc3.js => v4-6d5fee0e.js} (98%) diff --git a/404.html b/404.html index 7a59cd8..d4ebcdc 100644 --- a/404.html +++ b/404.html @@ -3,8 +3,8 @@
- - + + diff --git a/assets/AppDescriptionTop-d90ddd6a.js b/assets/AppDescriptionTop-3532d1df.js similarity index 92% rename from assets/AppDescriptionTop-d90ddd6a.js rename to assets/AppDescriptionTop-3532d1df.js index f8d80d9..59076fc 100644 --- a/assets/AppDescriptionTop-d90ddd6a.js +++ b/assets/AppDescriptionTop-3532d1df.js @@ -1 +1 @@ -import{_ as s,o as i,i as t,a2 as e,a0 as a}from"./index-c3d36580.js";const c={},r={class:"warning-disclaimer"},_=e("div",{class:"warning-disclaimer__bar"},null,-1),d=e("div",{class:"warning-disclaimer__text"},` Albus DeFi's services and its associated features, including smart contracts, are provided "as is". The smart contracts have not undergone external audits. By using Albus DeFi, you acknowledge and understand that the utilization of the website, software, smart contracts, and all associated services is wholly at your discretion and risk. `,-1),l=[_,d];function p(n,o){return i(),t("div",r,l)}const k=s(c,[["render",p]]),u={},f={class:"app-description"},h=e("div",{class:"app-description__title"}," DeFi with built-in verification ",-1),v=e("div",{class:"app-description__details"},[a(" Conduct quick and efficient transactions while benefitting from built-in verification. Albus DeFi is powered by Albus Protocol, which performs verification based on pre-defined requirements and relies on Zero-Knowledge Proofs to keep your personal information private throughout the verification process. For details, please visit "),e("a",{class:"app-description__link",href:"https://albus.finance/",target:"_blanc"},"Albus Protocol's landing page"),a(". ")],-1),b=[h,v];function m(n,o){return i(),t("div",f,b)}const F=s(u,[["render",m]]),g={},w={class:"app-description"},$=e("div",{class:"app-description__details"}," All services provided by Albus DeFi are subject to verification. To become eligible for a service, pass secure and privacy-preserving verification with Albus Protocol and obtain a Compliance Certificate. ",-1),x=[$];function y(n,o){return i(),t("div",w,x)}const D=s(g,[["render",y]]);export{D as _,F as a,k as b}; +import{_ as s,o as i,i as t,a2 as e,a0 as a}from"./index-d32ec668.js";const c={},r={class:"warning-disclaimer"},_=e("div",{class:"warning-disclaimer__bar"},null,-1),d=e("div",{class:"warning-disclaimer__text"},` Albus DeFi's services and its associated features, including smart contracts, are provided "as is". The smart contracts have not undergone external audits. By using Albus DeFi, you acknowledge and understand that the utilization of the website, software, smart contracts, and all associated services is wholly at your discretion and risk. `,-1),l=[_,d];function p(n,o){return i(),t("div",r,l)}const k=s(c,[["render",p]]),u={},f={class:"app-description"},h=e("div",{class:"app-description__title"}," DeFi with built-in verification ",-1),v=e("div",{class:"app-description__details"},[a(" Conduct quick and efficient transactions while benefitting from built-in verification. Albus DeFi is powered by Albus Protocol, which performs verification based on pre-defined requirements and relies on Zero-Knowledge Proofs to keep your personal information private throughout the verification process. For details, please visit "),e("a",{class:"app-description__link",href:"https://albus.finance/",target:"_blanc"},"Albus Protocol's landing page"),a(". ")],-1),b=[h,v];function m(n,o){return i(),t("div",f,b)}const F=s(u,[["render",m]]),g={},w={class:"app-description"},$=e("div",{class:"app-description__details"}," All services provided by Albus DeFi are subject to verification. To become eligible for a service, pass secure and privacy-preserving verification with Albus Protocol and obtain a Compliance Certificate. ",-1),x=[$];function y(n,o){return i(),t("div",w,x)}const D=s(g,[["render",y]]);export{D as _,F as a,k as b}; diff --git a/assets/PolicyCard.vue_vue_type_script_setup_true_lang-bb3bfccf.js b/assets/PolicyCard.vue_vue_type_script_setup_true_lang-4ea4b58c.js similarity index 55% rename from assets/PolicyCard.vue_vue_type_script_setup_true_lang-bb3bfccf.js rename to assets/PolicyCard.vue_vue_type_script_setup_true_lang-4ea4b58c.js index aeba1fe..66c9ddd 100644 --- a/assets/PolicyCard.vue_vue_type_script_setup_true_lang-bb3bfccf.js +++ b/assets/PolicyCard.vue_vue_type_script_setup_true_lang-4ea4b58c.js @@ -1 +1 @@ -import{V as w,w as P,v as _,G as $,y as S,a_ as N,o as t,Y as b,Z as h,j as s,a9 as B,a3 as e,i as o,a2 as i,a0 as j,az as z,aK as Q,a4 as k,aW as R,a5 as g,$ as U,a$ as W,b0 as E,b1 as G,b2 as I,b3 as K}from"./index-c3d36580.js";const M={key:0,class:"certificate-card__info__title q-mt-sm text-center"},O={key:1,class:"row nowrap full-height"},T={class:"certificate-card__info row"},Y={class:"policy-info q-mr-sm"},Z={class:"certificate-card__info__status column row justify-between"},A=i("div",{class:"certificate-card__info__title"}," Required certificate ",-1),F={key:0,class:"row"},H={class:"certificate-card__policy-name full-height"},J={key:0,class:"certificate-card__end"},X={key:0,class:"certificate-card__action"},ee=["href"],te=w({__name:"PolicyCardView",props:{requiredPolicy:String,requiredPolicyData:Object},setup(a){const d=a,c=P(),f=_(()=>c.serviceData),n=_(()=>c.serviceLoading),l=_(()=>c.state?.certificateLoading),r=$(!1),{connected:u}=S(),{certificate:m,certificateLink:v,certificateValid:y}=N(d.requiredPolicy);function C(){return u.value?y.value?"certificate-card__info__status-line--positive":m.value?.data?.status===W.Proved?"certificate-card__info__status-line--warning":"certificate-card__info__status-line--negative":"certificate-card__info__status-line--gray"}return(ie,p)=>{const D=E,V=G,x=I,L=K;return t(),b(U,{flat:"",class:"certificate-card"},{default:h(()=>[s(B,{showing:e(n)||e(u)&&e(l),"label-class":"text-teal","label-style":"font-size: 1.1em"},null,8,["showing"]),!e(n)&&!a.requiredPolicy?(t(),o("div",M," No certificate required ")):(t(),o("div",O,[i("div",T,[i("div",Y,[j(" i "),s(z,{modelValue:e(r),"onUpdate:modelValue":p[1]||(p[1]=q=>Q(r)?r.value=q:null),offset:[0,20],"transition-duration":"100","transition-show":"fade","transition-hide":"fade"},{default:h(()=>[s(D,{"required-policy-data":a.requiredPolicyData,certificate:e(m),"certificate-valid":!!e(y),"certificate-loading":e(l),"certificate-link":e(v),onCloseDialog:p[0]||(p[0]=q=>r.value=!1)},null,8,["required-policy-data","certificate","certificate-valid","certificate-loading","certificate-link"])]),_:1},8,["modelValue"])]),i("div",Z,[A,e(u)&&!e(n)&&!e(l)?(t(),o("div",F,[s(V,{certificate:e(m),"certificate-valid":!!e(y)},null,8,["certificate","certificate-valid"])])):k("",!0)]),i("div",H,[i("span",{class:R(["certificate-card__info__status-line",C()])},null,2),i("span",null,g(e(f)?.name)+g(e(f)?.name&&a.requiredPolicyData?.name&&",")+" "+g(a.requiredPolicyData?.name),1)])]),e(u)&&!e(n)&&!e(l)?(t(),o("div",J,[e(y)?(t(),o("a",{key:1,href:e(v),class:"certificate-card__certificate certificate",target:"_blank"},[s(L)],8,ee)):(t(),o("div",X,[s(x,{certificate:e(m),"certificate-link":e(v)},null,8,["certificate","certificate-link"])]))])):k("",!0)]))]),_:1})}}}),ce=w({__name:"PolicyCard",setup(a){const d=P(),c=_(()=>d.requiredPolicy),f=_(()=>d.requiredPolicyData);return(n,l)=>{const r=te;return t(),b(r,{key:e(c),"required-policy":e(c),"required-policy-data":e(f)},null,8,["required-policy","required-policy-data"])}}});export{ce as _}; +import{V as w,w as P,v as _,G as S,y as $,bx as B,o as t,Y as b,Z as h,j as s,a9 as N,a3 as e,i as o,a2 as i,a0 as z,az as j,aK as Q,a4 as k,aW as R,a5 as g,$ as U,by as W,bz as A,bA as E,bB as G,bC as I}from"./index-d32ec668.js";const K={key:0,class:"certificate-card__info__title q-mt-sm text-center"},M={key:1,class:"row nowrap full-height"},O={class:"certificate-card__info row"},T={class:"policy-info q-mr-sm"},Y={class:"certificate-card__info__status column row justify-between"},Z=i("div",{class:"certificate-card__info__title"}," Required certificate ",-1),F={key:0,class:"row"},H={class:"certificate-card__policy-name full-height"},J={key:0,class:"certificate-card__end"},X={key:0,class:"certificate-card__action"},ee=["href"],te=w({__name:"PolicyCardView",props:{requiredPolicy:String,requiredPolicyData:Object},setup(a){const d=a,c=P(),f=_(()=>c.serviceData),n=_(()=>c.serviceLoading),l=_(()=>c.state?.certificateLoading),r=S(!1),{connected:u}=$(),{certificate:y,certificateLink:v,certificateValid:m}=B(d.requiredPolicy);function C(){return u.value?m.value?"certificate-card__info__status-line--positive":y.value?.data?.status===W.Proved?"certificate-card__info__status-line--warning":"certificate-card__info__status-line--negative":"certificate-card__info__status-line--gray"}return(ie,p)=>{const D=A,V=E,x=G,L=I;return t(),b(U,{flat:"",class:"certificate-card"},{default:h(()=>[s(N,{showing:e(n)||e(u)&&e(l),"label-class":"text-teal","label-style":"font-size: 1.1em"},null,8,["showing"]),!e(n)&&!a.requiredPolicy?(t(),o("div",K," No certificate required ")):(t(),o("div",M,[i("div",O,[i("div",T,[z(" i "),s(j,{modelValue:e(r),"onUpdate:modelValue":p[1]||(p[1]=q=>Q(r)?r.value=q:null),offset:[0,20],"transition-duration":"100","transition-show":"fade","transition-hide":"fade"},{default:h(()=>[s(D,{"required-policy-data":a.requiredPolicyData,certificate:e(y),"certificate-valid":!!e(m),"certificate-loading":e(l),"certificate-link":e(v),onCloseDialog:p[0]||(p[0]=q=>r.value=!1)},null,8,["required-policy-data","certificate","certificate-valid","certificate-loading","certificate-link"])]),_:1},8,["modelValue"])]),i("div",Y,[Z,e(u)&&!e(n)&&!e(l)?(t(),o("div",F,[s(V,{certificate:e(y),"certificate-valid":!!e(m)},null,8,["certificate","certificate-valid"])])):k("",!0)]),i("div",H,[i("span",{class:R(["certificate-card__info__status-line",C()])},null,2),i("span",null,g(e(f)?.name)+g(e(f)?.name&&a.requiredPolicyData?.name&&",")+" "+g(a.requiredPolicyData?.name),1)])]),e(u)&&!e(n)&&!e(l)?(t(),o("div",J,[e(m)?(t(),o("a",{key:1,href:e(v),class:"certificate-card__certificate certificate",target:"_blank"},[s(L)],8,ee)):(t(),o("div",X,[s(x,{certificate:e(y),"certificate-link":e(v)},null,8,["certificate","certificate-link"])]))])):k("",!0)]))]),_:1})}}}),ce=w({__name:"PolicyCard",setup(a){const d=P(),c=_(()=>d.requiredPolicy),f=_(()=>d.requiredPolicyData);return(n,l)=>{const r=te;return t(),b(r,{key:e(c),"required-policy":e(c),"required-policy-data":e(f)},null,8,["required-policy","required-policy-data"])}}});export{ce as _}; diff --git a/assets/PoolsListItem.vue_vue_type_script_setup_true_lang-8fe66b65.js b/assets/PoolsListItem.vue_vue_type_script_setup_true_lang-49a84e94.js similarity index 76% rename from assets/PoolsListItem.vue_vue_type_script_setup_true_lang-8fe66b65.js rename to assets/PoolsListItem.vue_vue_type_script_setup_true_lang-49a84e94.js index bf42f87..545be12 100644 --- a/assets/PoolsListItem.vue_vue_type_script_setup_true_lang-8fe66b65.js +++ b/assets/PoolsListItem.vue_vue_type_script_setup_true_lang-49a84e94.js @@ -1 +1 @@ -import{V as N,t as A,v as m,b5 as M,G as P,a3 as s,o as _,Y as V,Z as p,j as a,a1 as C,a2 as t,i as v,a4 as r,a5 as e,a0 as D,az as Q,aK as L,$ as T,aD as k,b6 as y,aJ as w,b7 as E,a8 as g,b8 as I}from"./index-c3d36580.js";import{u as F}from"./swap-6fd8fa15.js";const H={class:"row"},O={class:"pool-card__icons row justify-center q-mr-md q-ml-sm"},R=["src","alt"],U=["src","alt"],W={class:"pool-card__subtitle row justify-center items-center"},G={class:"policy-info q-ml-auto"},Y={class:"pool-info__fees row items-center"},z=t("div",{class:"pool-card__label"}," Swap fee ",-1),J={key:0,class:"pool-card__amount"},K=t("div",{class:"pool-info__delimiter"},null,-1),Z=t("div",{class:"pool-card__label"}," Withdraw fee ",-1),X={key:0,class:"pool-card__amount"},tt={class:"pool-info__addresses"},ot={class:"column justify-center items-between q-mt-md"},st=t("div",{class:"pool-card__label"}," Pool address ",-1),et={class:"row justify-between items-center"},at={class:"pool-card__pubkey monoscaped"},lt={class:"column justify-center items-between"},nt=t("div",{class:"pool-card__label"}," Token A mint ",-1),it={class:"row justify-between items-center"},ct={class:"pool-card__pubkey monoscaped"},dt={class:"column justify-center items-between"},_t=t("div",{class:"pool-card__label"}," Token B mint ",-1),rt={class:"row justify-between items-center"},ut={class:"pool-card__pubkey monoscaped"},mt={class:"column justify-center items-between"},pt=t("div",{class:"pool-card__label"}," LP token mint ",-1),vt={class:"row justify-between items-center"},bt={class:"pool-card__pubkey monoscaped"},ht={class:"pool-card__income q-mt-md"},ft=t("div",{class:"pool-card__apr-label"}," APR 24H ",-1),kt={class:"pool-card__apr-amount"},yt={class:"pool-card__income__user row q-ml-auto"},wt=t("div",{class:"pool-card__label"}," My Liquidity ",-1),St={class:"pool-card__amount"},Bt={class:"q-ml-md"},qt=t("div",{class:"pool-card__label"}," My Share ",-1),xt={class:"pool-card__amount"},Tt={class:"pool-card__stats q-mt-sm q-mb-auto q-pt-xs"},gt={class:"pool-card__stats__item q-mt-xs text-center"},$t=t("div",{class:"pool-card__label"}," Volume 24H ",-1),jt={class:"pool-card__amount"},Nt=t("div",{class:"pool-card__stats__delimiter"},null,-1),At={class:"pool-card__stats__item q-mt-xs text-center"},Mt=t("div",{class:"pool-card__label"}," Liquidity ",-1),Pt={class:"pool-card__amount"},Vt=t("div",{class:"pool-card__stats__delimiter"},null,-1),Ct={class:"pool-card__stats__item q-mt-xs text-center"},Dt=t("div",{class:"pool-card__label"}," Fees 24H ",-1),Qt={class:"pool-card__amount"},Lt={key:0,class:"row q-mt-md"},Et={class:"col"},Ht=N({__name:"PoolsListItem",props:{pubkey:Object,data:Object,poolStats:Object,userTokens:Number,useEmit:Boolean},emits:["selectPool"],setup(o){const l=o,$=A(),B=m(()=>$.tokens),i=m(()=>B.value.find(d=>d.mint===l.data?.tokenAMint.toBase58())),c=m(()=>B.value.find(d=>d.mint===l.data?.tokenBMint.toBase58())),b=F(),j=M();async function q(d=!1){i.value&&c.value&&l.pubkey&&l.data&&(b.state.from=i.value,b.state.to=c.value,await j.push(d?"liquidity":"/swap"),b.setTokenSwap({pubkey:l.pubkey,data:l.data}),console.log("[swap] swapAction: ",l.pubkey.toBase58()))}const u=m(()=>l.data&&b.getPoolFee(l.data)),x=m(()=>u.value&&u.value.ownerTrade+u.value.trade),S=P(!1);return(d,n)=>{const h=I;return o.pubkey&&o.data&&s(i)&&s(c)?(_(),V(T,{key:0,class:"pool-card",onClick:n[3]||(n[3]=f=>o.useEmit?d.$emit("selectPool"):void 0)},{default:p(()=>[a(C,{class:"pool-card__body full-height"},{default:p(()=>[t("div",H,[t("div",O,[s(i)?.image?(_(),v("img",{key:0,src:s(i)?.image,alt:s(i)?.symbol},null,8,R)):r("",!0),s(c)?.image?(_(),v("img",{key:1,src:s(c)?.image,alt:s(c)?.symbol},null,8,U)):r("",!0)]),t("div",W,[t("span",null,e(s(i)?.symbol)+"/"+e(s(c)?.symbol),1)]),t("span",G,[D(" i "),a(Q,{modelValue:s(S),"onUpdate:modelValue":n[0]||(n[0]=f=>L(S)?S.value=f:null),"transition-duration":"100","transition-show":"fade","transition-hide":"fade"},{default:p(()=>[a(T,{class:"pool-info q-pa-md"},{default:p(()=>[t("div",Y,[t("div",null,[z,s(x)?(_(),v("div",J,e(s(k).format(s(x))),1)):r("",!0)]),K,t("div",null,[Z,s(u)?(_(),v("div",X,e(s(k).format(s(u).ownerWithdraw)),1)):r("",!0)])]),t("div",tt,[t("div",ot,[st,t("div",et,[t("span",at,e(s(y)(o.pubkey.toBase58(),14)),1),a(h,{text:o.pubkey.toBase58()},null,8,["text"])])]),t("div",lt,[nt,t("div",it,[t("span",ct,e(s(y)(o.data.tokenAMint.toBase58(),14)),1),a(h,{text:o.data.tokenAMint.toBase58()},null,8,["text"])])]),t("div",dt,[_t,t("div",rt,[t("span",ut,e(s(y)(o.data.tokenBMint.toBase58(),14)),1),a(h,{text:o.data.tokenBMint.toBase58()},null,8,["text"])])]),t("div",mt,[pt,t("div",vt,[t("span",bt,e(s(y)(o.data.poolMint.toBase58(),14)),1),a(h,{text:o.data.poolMint.toBase58()},null,8,["text"])])])])]),_:1})]),_:1},8,["modelValue"])])]),t("div",ht,[t("div",null,[ft,t("div",kt,e(o.poolStats&&!Number.isNaN(o.poolStats.apr24)?`${s(k).format(o.poolStats.apr24)}`:"---"),1)]),t("div",yt,[t("div",null,[wt,t("div",St,e(o.poolStats&&!Number.isNaN(o.poolStats.poolTokenSupply)&&o.userTokens?`$${s(w).format(o.userTokens/o.poolStats.poolTokenSupply*o.poolStats.tvl)}`:"---"),1)]),t("div",Bt,[qt,t("div",xt,e(o.poolStats&&!Number.isNaN(o.poolStats.poolTokenSupply)&&o.userTokens?`${s(k).format(o.userTokens/o.poolStats.poolTokenSupply)}`:"---"),1)])])]),t("div",Tt,[t("div",gt,[$t,t("div",jt,e(o.poolStats?`$${s(w).format(o.poolStats.volume24)}`:"---"),1)]),Nt,t("div",At,[Mt,t("div",Pt,e(o.poolStats?`$${s(w).format(o.poolStats.tvl)}`:"---"),1)]),Vt,t("div",Ct,[Dt,t("div",Qt,e(o.poolStats?`$${s(w).format(o.poolStats.fees24)}`:"---"),1)])]),o.useEmit?r("",!0):(_(),v("div",Lt,[t("div",Et,[a(E,{spread:"",unelevated:"",square:"",class:"pool-card__actions"},{default:p(()=>[a(g,{label:"ADD LIQUIDITY",color:"primary","text-color":"white",target:"_blank",class:"q-mr-md",onClick:n[1]||(n[1]=f=>q(!0))}),a(g,{label:"SWAP",color:"warning","text-color":"black",target:"_blank",onClick:n[2]||(n[2]=f=>q(!1))})]),_:1})])]))]),_:1})]),_:1})):r("",!0)}}});export{Ht as _}; +import{V as N,t as A,v as m,a$ as M,G as P,a3 as s,o as _,Y as V,Z as p,j as a,a1 as C,a2 as t,i as v,a4 as r,a5 as e,a0 as D,az as Q,aK as L,$ as T,aD as k,b0 as y,aJ as w,b1 as E,a8 as $,b2 as I}from"./index-d32ec668.js";import{u as F}from"./swap-17bc4701.js";const H={class:"row"},O={class:"pool-card__icons row justify-center q-mr-md q-ml-sm"},R=["src","alt"],U=["src","alt"],W={class:"pool-card__subtitle row justify-center items-center"},G={class:"policy-info q-ml-auto"},Y={class:"pool-info__fees row items-center"},z=t("div",{class:"pool-card__label"}," Swap fee ",-1),J={key:0,class:"pool-card__amount"},K=t("div",{class:"pool-info__delimiter"},null,-1),Z=t("div",{class:"pool-card__label"}," Withdraw fee ",-1),X={key:0,class:"pool-card__amount"},tt={class:"pool-info__addresses"},ot={class:"column justify-center items-between q-mt-md"},st=t("div",{class:"pool-card__label"}," Pool address ",-1),et={class:"row justify-between items-center"},at={class:"pool-card__pubkey monoscaped"},lt={class:"column justify-center items-between"},nt=t("div",{class:"pool-card__label"}," Token A mint ",-1),it={class:"row justify-between items-center"},ct={class:"pool-card__pubkey monoscaped"},dt={class:"column justify-center items-between"},_t=t("div",{class:"pool-card__label"}," Token B mint ",-1),rt={class:"row justify-between items-center"},ut={class:"pool-card__pubkey monoscaped"},mt={class:"column justify-center items-between"},pt=t("div",{class:"pool-card__label"}," LP token mint ",-1),vt={class:"row justify-between items-center"},ht={class:"pool-card__pubkey monoscaped"},bt={class:"pool-card__income q-mt-md"},ft=t("div",{class:"pool-card__apr-label"}," APR 24H ",-1),kt={class:"pool-card__apr-amount"},yt={class:"pool-card__income__user row q-ml-auto"},wt=t("div",{class:"pool-card__label"}," My Liquidity ",-1),St={class:"pool-card__amount"},Bt={class:"q-ml-md"},qt=t("div",{class:"pool-card__label"}," My Share ",-1),xt={class:"pool-card__amount"},Tt={class:"pool-card__stats q-mt-sm q-mb-auto q-pt-xs"},$t={class:"pool-card__stats__item q-mt-xs text-center"},gt=t("div",{class:"pool-card__label"}," Volume 24H ",-1),jt={class:"pool-card__amount"},Nt=t("div",{class:"pool-card__stats__delimiter"},null,-1),At={class:"pool-card__stats__item q-mt-xs text-center"},Mt=t("div",{class:"pool-card__label"}," Liquidity ",-1),Pt={class:"pool-card__amount"},Vt=t("div",{class:"pool-card__stats__delimiter"},null,-1),Ct={class:"pool-card__stats__item q-mt-xs text-center"},Dt=t("div",{class:"pool-card__label"}," Fees 24H ",-1),Qt={class:"pool-card__amount"},Lt={key:0,class:"row q-mt-md"},Et={class:"col"},Ht=N({__name:"PoolsListItem",props:{pubkey:Object,data:Object,poolStats:Object,userTokens:Number,useEmit:Boolean},emits:["selectPool"],setup(o){const l=o,g=A(),B=m(()=>g.tokens),i=m(()=>B.value.find(d=>d.mint===l.data?.tokenAMint.toBase58())),c=m(()=>B.value.find(d=>d.mint===l.data?.tokenBMint.toBase58())),h=F(),j=M();async function q(d=!1){i.value&&c.value&&l.pubkey&&l.data&&(h.state.from=i.value,h.state.to=c.value,await j.push(d?"liquidity":"/swap"),h.setTokenSwap({pubkey:l.pubkey,data:l.data}),console.log("[swap] swapAction: ",l.pubkey.toBase58()))}const u=m(()=>l.data&&h.getPoolFee(l.data)),x=m(()=>u.value&&u.value.ownerTrade+u.value.trade),S=P(!1);return(d,n)=>{const b=I;return o.pubkey&&o.data&&s(i)&&s(c)?(_(),V(T,{key:0,class:"pool-card",onClick:n[3]||(n[3]=f=>o.useEmit?d.$emit("selectPool"):void 0)},{default:p(()=>[a(C,{class:"pool-card__body full-height"},{default:p(()=>[t("div",H,[t("div",O,[s(i)?.image?(_(),v("img",{key:0,src:s(i)?.image,alt:s(i)?.symbol},null,8,R)):r("",!0),s(c)?.image?(_(),v("img",{key:1,src:s(c)?.image,alt:s(c)?.symbol},null,8,U)):r("",!0)]),t("div",W,[t("span",null,e(s(i)?.symbol)+"/"+e(s(c)?.symbol),1)]),t("span",G,[D(" i "),a(Q,{modelValue:s(S),"onUpdate:modelValue":n[0]||(n[0]=f=>L(S)?S.value=f:null),"transition-duration":"100","transition-show":"fade","transition-hide":"fade"},{default:p(()=>[a(T,{class:"pool-info q-pa-md"},{default:p(()=>[t("div",Y,[t("div",null,[z,s(x)?(_(),v("div",J,e(s(k).format(s(x))),1)):r("",!0)]),K,t("div",null,[Z,s(u)?(_(),v("div",X,e(s(k).format(s(u).ownerWithdraw)),1)):r("",!0)])]),t("div",tt,[t("div",ot,[st,t("div",et,[t("span",at,e(s(y)(o.pubkey.toBase58(),14)),1),a(b,{text:o.pubkey.toBase58()},null,8,["text"])])]),t("div",lt,[nt,t("div",it,[t("span",ct,e(s(y)(o.data.tokenAMint.toBase58(),14)),1),a(b,{text:o.data.tokenAMint.toBase58()},null,8,["text"])])]),t("div",dt,[_t,t("div",rt,[t("span",ut,e(s(y)(o.data.tokenBMint.toBase58(),14)),1),a(b,{text:o.data.tokenBMint.toBase58()},null,8,["text"])])]),t("div",mt,[pt,t("div",vt,[t("span",ht,e(s(y)(o.data.poolMint.toBase58(),14)),1),a(b,{text:o.data.poolMint.toBase58()},null,8,["text"])])])])]),_:1})]),_:1},8,["modelValue"])])]),t("div",bt,[t("div",null,[ft,t("div",kt,e(o.poolStats&&!Number.isNaN(o.poolStats.apr24)?`${s(k).format(o.poolStats.apr24)}`:"---"),1)]),t("div",yt,[t("div",null,[wt,t("div",St,e(o.poolStats&&!Number.isNaN(o.poolStats.poolTokenSupply)&&o.userTokens?`$${s(w).format(o.userTokens/o.poolStats.poolTokenSupply*o.poolStats.tvl)}`:"---"),1)]),t("div",Bt,[qt,t("div",xt,e(o.poolStats&&!Number.isNaN(o.poolStats.poolTokenSupply)&&o.userTokens?`${s(k).format(o.userTokens/o.poolStats.poolTokenSupply)}`:"---"),1)])])]),t("div",Tt,[t("div",$t,[gt,t("div",jt,e(o.poolStats?`$${s(w).format(o.poolStats.volume24)}`:"---"),1)]),Nt,t("div",At,[Mt,t("div",Pt,e(o.poolStats?`$${s(w).format(o.poolStats.tvl)}`:"---"),1)]),Vt,t("div",Ct,[Dt,t("div",Qt,e(o.poolStats?`$${s(w).format(o.poolStats.fees24)}`:"---"),1)])]),o.useEmit?r("",!0):(_(),v("div",Lt,[t("div",Et,[a(E,{spread:"",unelevated:"",square:"",class:"pool-card__actions"},{default:p(()=>[a($,{label:"ADD LIQUIDITY",color:"primary","text-color":"white",target:"_blank",class:"q-mr-md",onClick:n[1]||(n[1]=f=>q(!0))}),a($,{label:"SWAP",color:"warning","text-color":"black",target:"_blank",onClick:n[2]||(n[2]=f=>q(!1))})]),_:1})])]))]),_:1})]),_:1})):r("",!0)}}});export{Ht as _}; diff --git a/assets/SelectPool.vue_vue_type_script_setup_true_lang-8bd906d9.js b/assets/SelectPool.vue_vue_type_script_setup_true_lang-b1ed04a3.js similarity index 72% rename from assets/SelectPool.vue_vue_type_script_setup_true_lang-8bd906d9.js rename to assets/SelectPool.vue_vue_type_script_setup_true_lang-b1ed04a3.js index f3368e5..5826756 100644 --- a/assets/SelectPool.vue_vue_type_script_setup_true_lang-8bd906d9.js +++ b/assets/SelectPool.vue_vue_type_script_setup_true_lang-b1ed04a3.js @@ -1 +1 @@ -import{_ as g}from"./PoolsListItem.vue_vue_type_script_setup_true_lang-8fe66b65.js";import{V as k,v as w,G as S,a3 as t,o as r,i,j as s,a9 as v,a2 as u,a5 as h,Z as d,a0 as y,a8 as V,$ as b,ad as x,aM as C,aW as B,aK as N,b4 as P,a4 as Q}from"./index-c3d36580.js";import{u as $}from"./swap-6fd8fa15.js";const q={key:0},z={class:"row items-center"},D={class:"text-weight-medium fs-13"},G=k({__name:"SelectPool",setup(F){const n=$(),l=w(()=>n.tokenSwaps),{state:m}=n,a=S(!1);function p(c){n.setTokenSwap(c),a.value=!1}return(c,o)=>{const _=g;return t(l).length>1?(r(),i("div",q,[s(v,{showing:t(m)?.loading,class:"swap-loading",color:"grey"},null,8,["showing"]),u("div",z,[u("div",D," Found "+h(t(l).length)+" pools for this token pair ",1),s(V,{"text-color":"primary",class:"q-ml-auto swap-card__select-pool-btn",size:"sm",onClick:o[0]||(o[0]=e=>a.value=!0)},{default:d(()=>[y(" Select ")]),_:1})]),s(P,{modelValue:t(a),"onUpdate:modelValue":o[1]||(o[1]=e=>N(a)?a.value=e:null),"transition-duration":"100","transition-show":"fade","transition-hide":"fade"},{default:d(()=>[s(b,{class:"q-pa-md"},{default:d(()=>[(r(!0),i(x,null,C(t(l),(e,f)=>(r(),i("div",{key:e.pubkey.toBase58(),class:"cursor-pointer"},[s(_,{pubkey:e.pubkey,data:e.data,"use-emit":"",class:B({"q-mt-md":f}),onSelectPool:L=>p(e)},null,8,["pubkey","data","class","onSelectPool"])]))),128))]),_:1})]),_:1},8,["modelValue"])])):Q("",!0)}}});export{G as _}; +import{_ as g}from"./PoolsListItem.vue_vue_type_script_setup_true_lang-49a84e94.js";import{V as k,v as w,G as S,a3 as t,o as r,i,j as s,a9 as v,a2 as u,a5 as h,Z as d,a0 as y,a8 as V,$ as x,ad as C,aM as b,aW as B,aK as N,a_ as P,a4 as Q}from"./index-d32ec668.js";import{u as $}from"./swap-17bc4701.js";const q={key:0},z={class:"row items-center"},D={class:"text-weight-medium fs-13"},G=k({__name:"SelectPool",setup(F){const n=$(),l=w(()=>n.tokenSwaps),{state:m}=n,a=S(!1);function p(c){n.setTokenSwap(c),a.value=!1}return(c,o)=>{const _=g;return t(l).length>1?(r(),i("div",q,[s(v,{showing:t(m)?.loading,class:"swap-loading",color:"grey"},null,8,["showing"]),u("div",z,[u("div",D," Found "+h(t(l).length)+" pools for this token pair ",1),s(V,{"text-color":"primary",class:"q-ml-auto swap-card__select-pool-btn",size:"sm",onClick:o[0]||(o[0]=e=>a.value=!0)},{default:d(()=>[y(" Select ")]),_:1})]),s(P,{modelValue:t(a),"onUpdate:modelValue":o[1]||(o[1]=e=>N(a)?a.value=e:null),"transition-duration":"100","transition-show":"fade","transition-hide":"fade"},{default:d(()=>[s(x,{class:"q-pa-md"},{default:d(()=>[(r(!0),i(C,null,b(t(l),(e,f)=>(r(),i("div",{key:e.pubkey.toBase58(),class:"cursor-pointer"},[s(_,{pubkey:e.pubkey,data:e.data,"use-emit":"",class:B({"q-mt-md":f}),onSelectPool:L=>p(e)},null,8,["pubkey","data","class","onSelectPool"])]))),128))]),_:1})]),_:1},8,["modelValue"])])):Q("",!0)}}});export{G as _}; diff --git a/assets/SelectToken.vue_vue_type_script_setup_true_lang-b4c9b972.js b/assets/SelectToken.vue_vue_type_script_setup_true_lang-df9fccc4.js similarity index 74% rename from assets/SelectToken.vue_vue_type_script_setup_true_lang-b4c9b972.js rename to assets/SelectToken.vue_vue_type_script_setup_true_lang-df9fccc4.js index 07187b4..fa41634 100644 --- a/assets/SelectToken.vue_vue_type_script_setup_true_lang-b4c9b972.js +++ b/assets/SelectToken.vue_vue_type_script_setup_true_lang-df9fccc4.js @@ -1 +1 @@ -import{bn as m,bo as J,V as q,G as g,C as x,v as F,o as k,i as K,j as t,Z as r,aN as v,a2 as C,a3 as d,a7 as h,aK as p,Y as X,aB as R,bp as A,a4 as ee,aP as S,aQ as ue,bq as b,aR as ae,a0 as y,a5 as ne,aS as oe,aW as re}from"./index-c3d36580.js";function ou(e){const u=e.keyCode?e.keyCode:e.which;(u<48||u>57)&&u!==46&&e.preventDefault(),u===46&&String(e.target.value).includes(".")&&e.preventDefault()}function te(e,u){for(var a=-1,n=e==null?0:e.length,o=Array(n);++a${I.code}
`},"size-1":{cmd:"fontSize",param:"1",icon:F.size1||F.size,tip:I.size1,htmlTip:`${I.size1}`},"size-2":{cmd:"fontSize",param:"2",icon:F.size2||F.size,tip:I.size2,htmlTip:`${I.size2}`},"size-3":{cmd:"fontSize",param:"3",icon:F.size3||F.size,tip:I.size3,htmlTip:`${I.size3}`},"size-4":{cmd:"fontSize",param:"4",icon:F.size4||F.size,tip:I.size4,htmlTip:`${I.size4}`},"size-5":{cmd:"fontSize",param:"5",icon:F.size5||F.size,tip:I.size5,htmlTip:`${I.size5}`},"size-6":{cmd:"fontSize",param:"6",icon:F.size6||F.size,tip:I.size6,htmlTip:`${I.size6}`},"size-7":{cmd:"fontSize",param:"7",icon:F.size7||F.size,tip:I.size7,htmlTip:`${I.size7}`}}}),R=te(()=>{const I=e.definitions||{},F=e.definitions||e.fonts?jV(!0,{},H.value,I,V0e(y,a.lang.editor.defaultFont,a.iconSet.editor.font,e.fonts)):H.value;return e.toolbar.map(T=>T.map(L=>{if(L.options)return{type:"dropdown",icon:L.icon,label:L.label,size:"sm",dense:!0,fixedLabel:L.fixedLabel,fixedIcon:L.fixedIcon,highlight:L.highlight,list:L.list,options:L.options.map(re=>F[re])};const q=F[L];return q?q.type==="no-state"||I[L]&&(q.cmd===void 0||H.value[q.cmd]&&H.value[q.cmd].type==="no-state")?q:Object.assign({type:"toggle"},q):{type:"slot",slot:L}}))}),b={$q:a,props:e,slots:t,emit:n,inFullscreen:u,toggleFullscreen:l,runCmd:ie,isViewingSource:g,editLinkUrl:h,toolbarBackgroundClass:k,buttonProps:D,contentRef:f,buttons:R,setContent:Z};tt(()=>e.modelValue,I=>{E!==I&&(E=I,Z(I,!0))}),tt(h,I=>{n(`link${I?"Show":"Hide"}`)});const w=te(()=>e.toolbar&&e.toolbar.length!==0),G=te(()=>{const I={},F=T=>{T.key&&(I[T.key]={cmd:T.cmd,param:T.param})};return R.value.forEach(T=>{T.forEach(L=>{L.options?L.options.forEach(F):F(L)})}),I}),Y=te(()=>u.value?e.contentStyle:[{minHeight:e.minHeight,height:e.height,maxHeight:e.maxHeight},e.contentStyle]),K=te(()=>`q-editor q-editor--${g.value===!0?"source":"default"}`+(e.disable===!0?" disabled":"")+(u.value===!0?" fullscreen column":"")+(e.square===!0?" q-editor--square no-border-radius":"")+(e.flat===!0?" q-editor--flat":"")+(e.dense===!0?" q-editor--dense":"")+(s.value===!0?" q-editor--dark q-dark":"")),C=te(()=>[e.contentClass,"q-editor__content",{col:u.value,"overflow-auto":u.value||e.maxHeight}]),v=te(()=>e.disable===!0?{"aria-disabled":"true"}:e.readonly===!0?{"aria-readonly":"true"}:{});function p(){if(f.value!==null){const I=`inner${g.value===!0?"Text":"HTML"}`,F=f.value[I];F!==e.modelValue&&(E=F,n("update:modelValue",F))}}function A(I){if(n("keydown",I),I.ctrlKey!==!0||hh(I)===!0){Q();return}const F=I.keyCode,T=G.value[F];if(T!==void 0){const{cmd:L,param:q}=T;nn(I),ie(L,q,!1)}}function B(I){Q(),n("click",I)}function O(I){if(f.value!==null){const{scrollTop:F,scrollHeight:T}=f.value;S=T-F}b.caret.save(),n("blur",I)}function j(I){rn(()=>{f.value!==null&&S!==void 0&&(f.value.scrollTop=f.value.scrollHeight-S)}),n("focus",I)}function U(I){const F=d.value;if(F!==null&&F.contains(I.target)===!0&&(I.relatedTarget===null||F.contains(I.relatedTarget)!==!0)){const T=`inner${g.value===!0?"Text":"HTML"}`;b.caret.restorePosition(f.value[T].length),Q()}}function N(I){const F=d.value;F!==null&&F.contains(I.target)===!0&&(I.relatedTarget===null||F.contains(I.relatedTarget)!==!0)&&(b.caret.savePosition(),Q())}function P(){S=void 0}function x(I){b.caret.save()}function Z(I,F){if(f.value!==null){F===!0&&b.caret.savePosition();const T=`inner${g.value===!0?"Text":"HTML"}`;f.value[T]=I,F===!0&&(b.caret.restorePosition(f.value[T].length),Q())}}function ie(I,F,T=!0){M(),b.caret.restore(),b.caret.apply(I,F,()=>{M(),b.caret.save(),T&&Q()})}function Q(){setTimeout(()=>{h.value=null,i.$forceUpdate()},1)}function M(){Wg(()=>{f.value!==null&&f.value.focus({preventScroll:!0})})}function z(){return f.value}return Fr(()=>{b.caret=i.caret=new q0e(f.value,b),Z(e.modelValue),Q(),document.addEventListener("selectionchange",x)}),an(()=>{document.removeEventListener("selectionchange",x)}),Object.assign(i,{runCmd:ie,refreshToolbar:Q,focus:M,getContentEl:z}),()=>{let I;if(w.value){const F=[W("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+k.value},J0e(b))];h.value!==null&&F.push(W("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+k.value},W0e(b))),I=W("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},F)}return W("div",{ref:d,class:K.value,style:{height:u.value===!0?"100%":null},...v.value,onFocusin:U,onFocusout:N},[I,W("div",{ref:f,style:Y.value,class:C.value,contenteditable:m.value,placeholder:e.placeholder,...c.listeners.value,onInput:p,onKeydown:A,onClick:B,onBlur:O,onFocus:j,onMousedown:P,onTouchstartPassive:P})])}}});var JE=ct({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=te(()=>parseInt(e.lines,10)),r=te(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),i=te(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>W("div",{style:i.value,class:r.value},Dt(t.default))}}),gN=ct({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:n}){let r=!1,i,o,a=null,s=null,u,l;function c(){i&&i(),i=null,r=!1,a!==null&&(clearTimeout(a),a=null),s!==null&&(clearTimeout(s),s=null),o!==void 0&&o.removeEventListener("transitionend",u),u=null}function d(m,y,S){y!==void 0&&(m.style.height=`${y}px`),m.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,r=!0,i=S}function f(m,y){m.style.overflowY=null,m.style.height=null,m.style.transition=null,c(),y!==l&&n(y)}function h(m,y){let S=0;o=m,r===!0?(c(),S=m.offsetHeight===m.scrollHeight?0:void 0):(l="hide",m.style.overflowY="hidden"),d(m,S,y),a=setTimeout(()=>{a=null,m.style.height=`${m.scrollHeight}px`,u=E=>{s=null,(Object(E)!==E||E.target===m)&&f(m,"show")},m.addEventListener("transitionend",u),s=setTimeout(u,e.duration*1.1)},100)}function g(m,y){let S;o=m,r===!0?c():(l="show",m.style.overflowY="hidden",S=m.scrollHeight),d(m,S,y),a=setTimeout(()=>{a=null,m.style.height=0,u=E=>{s=null,(Object(E)!==E||E.target===m)&&f(m,"hide")},m.addEventListener("transitionend",u),s=setTimeout(u,e.duration*1.1)},100)}return an(()=>{r===!0&&c()}),()=>W(ai,{css:!1,appear:e.appear,onEnter:h,onLeave:g},t.default)}});const _0e={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},oC={xs:2,sm:4,md:8,lg:16,xl:24};var Js=ct({name:"QSeparator",props:{...On,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=bt(),n=Fn(e,t.proxy.$q),r=te(()=>e.vertical===!0?"vertical":"horizontal"),i=te(()=>` q-separator--${r.value}`),o=te(()=>e.inset!==!1?`${i.value}-${_0e[e.inset]}`:""),a=te(()=>`q-separator${i.value}${o.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=te(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const l=e.spaced===!0?`${oC.md}px`:e.spaced in oC?`${oC[e.spaced]}px`:e.spaced,c=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${c[0]}`]=u[`margin${c[1]}`]=l}return u});return()=>W("hr",{class:a.value,style:s.value,"aria-orientation":r.value})}});const Rd=Sx({}),$0e=Object.keys(qg);var Kst=ct({name:"QExpansionItem",props:{...qg,...Yg,...On,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...Jg,"click","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:{$q:r}}=bt(),i=Fn(e,r),o=Te(e.modelValue!==null?e.modelValue:e.defaultOpened),a=Te(null),s=Ff(),{show:u,hide:l,toggle:c}=Vg({showing:o});let d,f;const h=te(()=>`q-expansion-item q-item-type q-expansion-item--${o.value===!0?"expanded":"collapsed"} q-expansion-item--${e.popup===!0?"popup":"standard"}`),g=te(()=>e.contentInsetLevel===void 0?null:{["padding"+(r.lang.rtl===!0?"Right":"Left")]:e.contentInsetLevel*56+"px"}),m=te(()=>e.disable!==!0&&(e.href!==void 0||e.to!==void 0&&e.to!==null&&e.to!=="")),y=te(()=>{const O={};return $0e.forEach(j=>{O[j]=e[j]}),O}),S=te(()=>m.value===!0||e.expandIconToggle!==!0),E=te(()=>e.expandedIcon!==void 0&&o.value===!0?e.expandedIcon:e.expandIcon||r.iconSet.expansionItem[e.denseToggle===!0?"denseIcon":"icon"]),k=te(()=>e.disable!==!0&&(m.value===!0||e.expandIconToggle===!0)),D=te(()=>({expanded:o.value===!0,detailsId:e.targetUid,toggle:c,show:u,hide:l})),H=te(()=>{const O=e.toggleAriaLabel!==void 0?e.toggleAriaLabel:r.lang.label[o.value===!0?"collapse":"expand"](e.label);return{role:"button","aria-expanded":o.value===!0?"true":"false","aria-controls":s,"aria-label":O}});tt(()=>e.group,O=>{f!==void 0&&f(),O!==void 0&&K()});function R(O){m.value!==!0&&c(O),n("click",O)}function b(O){O.keyCode===13&&w(O,!0)}function w(O,j){j!==!0&&a.value!==null&&a.value.focus(),c(O),nn(O)}function G(){n("afterShow")}function Y(){n("afterHide")}function K(){d===void 0&&(d=Ff()),o.value===!0&&(Rd[e.group]=d);const O=tt(o,U=>{U===!0?Rd[e.group]=d:Rd[e.group]===d&&delete Rd[e.group]}),j=tt(()=>Rd[e.group],(U,N)=>{N===d&&U!==void 0&&U!==d&&l()});f=()=>{O(),j(),Rd[e.group]===d&&delete Rd[e.group],f=void 0}}function C(){const O={class:[`q-focusable relative-position cursor-pointer${e.denseToggle===!0&&e.switchToggleSide===!0?" items-end":""}`,e.expandIconClass],side:e.switchToggleSide!==!0,avatar:e.switchToggleSide},j=[W(gn,{class:"q-expansion-item__toggle-icon"+(e.expandedIcon===void 0&&o.value===!0?" q-expansion-item__toggle-icon--rotated":""),name:E.value})];return k.value===!0&&(Object.assign(O,{tabindex:0,...H.value,onClick:w,onKeyup:b}),j.unshift(W("div",{ref:a,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),W(is,O,()=>j)}function v(){let O;return t.header!==void 0?O=[].concat(t.header(D.value)):(O=[W(is,()=>[W(JE,{lines:e.labelLines},()=>e.label||""),e.caption?W(JE,{lines:e.captionLines,caption:!0},()=>e.caption):null])],e.icon&&O[e.switchToggleSide===!0?"push":"unshift"](W(is,{side:e.switchToggleSide===!0,avatar:e.switchToggleSide!==!0},()=>W(gn,{name:e.icon})))),e.disable!==!0&&e.hideExpandIcon!==!0&&O[e.switchToggleSide===!0?"unshift":"push"](C()),O}function p(){const O={ref:"item",style:e.headerStyle,class:e.headerClass,dark:i.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return S.value===!0&&(O.clickable=!0,O.onClick=R,Object.assign(O,m.value===!0?y.value:H.value)),W(nd,O,v)}function A(){return Zs(W("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:g.value,id:s},Dt(t.default)),[[aJ,o.value]])}function B(){const O=[p(),W(gN,{duration:e.duration,onShow:G,onHide:Y},A)];return e.expandSeparator===!0&&O.push(W(Js,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:i.value}),W(Js,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:i.value})),O}return e.group!==void 0&&K(),an(()=>{f!==void 0&&f()}),()=>W("div",{class:h.value},[W("div",{class:"q-expansion-item__container relative-position"},B())])}});const ege=["top","right","bottom","left"],GV={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>ege.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function HV(e,t){return{formClass:te(()=>`q-fab--form-${e.square===!0?"square":"rounded"}`),stacked:te(()=>e.externalLabel===!1&&["top","bottom"].includes(e.labelPosition)),labelProps:te(()=>{if(e.externalLabel===!0){const n=e.hideLabel===null?t.value===!1:e.hideLabel;return{action:"push",data:{class:[e.labelClass,`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${e.labelPosition}`+(n===!0?" q-fab__label--external-hidden":"")],style:e.labelStyle}}}return{action:["left","top"].includes(e.labelPosition)?"unshift":"push",data:{class:[e.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${e.labelPosition}`+(e.hideLabel===!0?" q-fab__label--internal-hidden":"")],style:e.labelStyle}}})}}const tge=["up","right","down","left"],nge=["left","center","right"];ct({name:"QFab",props:{...GV,...Yg,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:e=>tge.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>nge.includes(e)}},emits:Jg,setup(e,{slots:t}){const n=Te(null),r=Te(e.modelValue===!0),i=Ff(),{proxy:{$q:o}}=bt(),{formClass:a,labelProps:s}=HV(e,r),u=te(()=>e.persistent!==!0),{hide:l,toggle:c}=Vg({showing:r,hideOnRouteChange:u}),d=te(()=>({opened:r.value})),f=te(()=>`q-fab z-fab row inline justify-center q-fab--align-${e.verticalActionsAlign} ${a.value}`+(r.value===!0?" q-fab--opened":" q-fab--closed")),h=te(()=>`q-fab__actions flex no-wrap inline q-fab__actions--${e.direction} q-fab__actions--${r.value===!0?"opened":"closed"}`),g=te(()=>{const E={id:i,role:"menu"};return r.value!==!0&&(E["aria-hidden"]="true"),E}),m=te(()=>`q-fab__icon-holder q-fab__icon-holder--${r.value===!0?"opened":"closed"}`);function y(E,k){const D=t[E],H=`q-fab__${E} absolute-full`;return D===void 0?W(gn,{class:H,name:e[k]||o.iconSet.fab[k]}):W("div",{class:H},D(d.value))}function S(){const E=[];return e.hideIcon!==!0&&E.push(W("div",{class:m.value},[y("icon","icon"),y("active-icon","activeIcon")])),(e.label!==""||t.label!==void 0)&&E[s.value.action](W("div",s.value.data,t.label!==void 0?t.label(d.value):[e.label])),Jr(t.tooltip,E)}return ns(kJ,{showing:r,onChildClick(E){l(E),n.value!==null&&n.value.$el.focus()}}),()=>W("div",{class:f.value},[W(Xt,{ref:n,class:a.value,...e,noWrap:!0,stack:e.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":i,onClick:c},S),W("div",{class:h.value,...g.value},Dt(t.default))])}});const KV={start:"self-end",center:"self-center",end:"self-start"},rge=Object.keys(KV);ct({name:"QFabAction",props:{...GV,icon:{type:String,default:""},anchor:{type:String,validator:e=>rge.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const r=Mr(kJ,()=>({showing:{value:!0},onChildClick:ei})),{formClass:i,labelProps:o}=HV(e,r.showing),a=te(()=>{const d=KV[e.anchor];return i.value+(d!==void 0?` ${d}`:"")}),s=te(()=>e.disable===!0||r.showing.value!==!0);function u(d){r.onChildClick(d),n("click",d)}function l(){const d=[];return t.icon!==void 0?d.push(t.icon()):e.icon!==""&&d.push(W(gn,{name:e.icon})),(e.label!==""||t.label!==void 0)&&d[o.value.action](W("div",o.value.data,t.label!==void 0?t.label():[e.label])),Jr(t.default,d)}const c=bt();return Object.assign(c.proxy,{click:u}),()=>W(Xt,{class:a.value,...e,noWrap:!0,stack:e.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:u},l)}});function ige({validate:e,resetValidation:t,requiresQForm:n}){const r=Mr(BJ,!1);if(r!==!1){const{props:i,proxy:o}=bt();Object.assign(o,{validate:e,resetValidation:t}),tt(()=>i.disable,a=>{a===!0?(typeof t=="function"&&t(),r.unbindComponent(o)):r.bindComponent(o)}),Fr(()=>{i.disable!==!0&&r.bindComponent(o)}),an(()=>{i.disable!==!0&&r.unbindComponent(o)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const oge=[!0,!1,"ondemand"],age={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>oge.includes(e)}};function sge(e,t){const{props:n,proxy:r}=bt(),i=Te(!1),o=Te(null),a=Te(null);ige({validate:g,resetValidation:h});let s=0,u;const l=te(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),c=te(()=>n.disable!==!0&&l.value===!0),d=te(()=>n.error===!0||i.value===!0),f=te(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:o.value);tt(()=>n.modelValue,()=>{m()}),tt(()=>n.reactiveRules,S=>{S===!0?u===void 0&&(u=tt(()=>n.rules,()=>{m(!0)})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),tt(e,S=>{S===!0?a.value===null&&(a.value=!1):a.value===!1&&(a.value=!0,c.value===!0&&n.lazyRules!=="ondemand"&&t.value===!1&&y())});function h(){s++,t.value=!1,a.value=null,i.value=!1,o.value=null,y.cancel()}function g(S=n.modelValue){if(c.value!==!0)return!0;const E=++s,k=t.value!==!0?()=>{a.value=!0}:()=>{},D=(R,b)=>{R===!0&&k(),i.value=R,o.value=b||null,t.value=!1},H=[];for(let R=0;R