← Back
Editing: app-temp.js
;(() => { const stylesheetSelector = "link[rel=stylesheet]" const loaded = new Set(Array.from(document.querySelectorAll(stylesheetSelector)).map(link => link.href)) const version = "1795169270504" const findLoadedLink = href => Array.from(document.querySelectorAll(stylesheetSelector)).find(link => link.href === href) const removeAfterLoad = (freshLink, staleLink) => { const remove = () => staleLink.remove() if (freshLink.sheet) { requestAnimationFrame(remove) return } freshLink.addEventListener("load", remove, { once: true }) } for (const link of Array.from(document.querySelectorAll(stylesheetSelector))) { const url = new URL(link.href, location.href) if (url.origin !== location.origin || url.searchParams.get("v") === version) continue url.searchParams.set("v", version) if (loaded.has(url.href)) { const freshLink = findLoadedLink(url.href) if (freshLink && freshLink !== link) removeAfterLoad(freshLink, link) continue } const freshLink = document.createElement("link") freshLink.rel = "stylesheet" freshLink.href = url.href link.parentNode?.insertBefore(freshLink, link.nextSibling) loaded.add(url.href) removeAfterLoad(freshLink, link) } })(); const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/feature-Pay.js?v=1795169270504","js/rolldown-runtime.js?v=1795169270504","js/vendor-utils.js?v=1795169270504","js/vendor-vue.js?v=1795169270504","js/vendor-naive.js?v=1795169270504","js/vendor.js?v=1795169270504","css/vendor.css?v=1795169270504","js/app.js?v=1795169270504","js/vendor-pdf.js?v=1795169270504","js/vendor-polyfills.js?v=1795169270504","js/app-icons.js?v=1795169270504","css/app.css?v=1795169270504","js/app-components.js?v=1795169270504","js/app-base.js?v=1795169270504","js/vendor-code-highlight.js?v=1795169270504","css/vendor-code-highlight.css?v=1795169270504","css/app-base.css?v=1795169270504","js/vendor-pay.js?v=1795169270504","css/app-components.css?v=1795169270504","js/app-shared.js?v=1795169270504","js/app-modal-ui.js?v=1795169270504","js/vendor-crypto.js?v=1795169270504","css/app-shared.css?v=1795169270504","js/domain-config.js?v=1795169270504","js/app-form.js?v=1795169270504","css/app-form.css?v=1795169270504","css/domain-config.css?v=1795169270504","css/feature-Pay.css?v=1795169270504"])))=>i.map(i=>d[i]); import{$n as e,$r as t,An as n,Bn as r,Br as i,Cn as a,En as o,Gn as s,Jn as c,Ln as l,Mn as u,Mr as d,Sn as f,Sr as p,Tn as m,Zn as h,_n as g,c as _,er as v,fr as y,gr as b,ii as x,jn as S,kn as C,lr as w,sr as T,ti as E,tr as D,wn as O,wr as k,xt as A,y as j,zn as M}from"./vendor-utils.js?v=1795169270504";import{a as ee,l as N,o as te,p as P}from"./vendor-vue.js?v=1795169270504";import{Mt as F,R as I,V as L,_t as R,b as z,ht as ne,it as re,jt as B,kt as V,nt as ie}from"./vendor-naive.js?v=1795169270504";import{$f as ae,Cs as oe,Ep as se,Es as H,Hf as ce,Jf as U,Op as W,Pa as G,Tp as le,Vf as ue,i as K,kn as de,n as fe,o as q,qf as pe,tp as me,vn as J,ws as he}from"./app.js?v=1795169270504";import{Fi as ge,Wi as _e,ya as Y}from"./app-components.js?v=1795169270504";import{Fu as ve,Gu as ye}from"./app-shared.js?v=1795169270504";import{a as be,i as xe}from"./vendor-pdf.js?v=1795169270504";l(),b(),i();var Se=u({__name:`index`,props:{padding:{type:[String,Number],default:`16px`}},setup(e){return(t,n)=>(h(),o(`div`,{style:E({padding:d(F)(e.padding)})},[v(t.$slots,`default`)],4))}});l(),b();function X(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!M(e)}var Ce=u({__name:`time`,props:{endtime:{default:0}},emits:[`finish`],setup(e,{emit:t}){let r=e,i=t,a=f(()=>{let e=Date.now(),t=r.endtime*1e3;return Math.max(0,t-e)}),o=e=>e.toString().padStart(2,`0`),s=({hours:e,minutes:t,seconds:r})=>{let i,a,s,c,l=Math.floor(e/24);return e%=24,n(`div`,{class:`inline-flex items-center`},[l>0?n(V,{type:`error`,size:`small`,class:`px-2px h-20px`,bordered:!1},X(i=o(l))?i:{default:()=>[i]}):``,l>0?n(`span`,{class:`mx-4px`},[C(`:`)]):``,n(V,{type:`error`,size:`small`,class:`px-2px h-20px`,bordered:!1},X(a=o(e))?a:{default:()=>[a]}),n(`span`,{class:`mx-4px`},[C(`:`)]),n(V,{type:`error`,size:`small`,class:`px-2px h-20px`,bordered:!1},X(s=o(t))?s:{default:()=>[s]}),n(`span`,{class:`mx-4px`},[C(`:`)]),n(V,{type:`error`,size:`small`,class:`px-2px h-20px`,bordered:!1},X(c=o(r))?c:{default:()=>[c]})])},c=()=>{r.endtime>0&&i(`finish`)};return(e,t)=>{let n=re;return h(),O(n,{duration:d(a),render:s,"on-finish":c},null,8,[`duration`])}}});l(),b(),i(),be();var we={class:`text-pro`},Te={key:0,class:`font-bold`},Ee={key:1,class:`flex items-center`},De={class:`mr-6px`},Z=U(u({__name:`index`,props:{arrowPlacement:{type:String,default:`right`}},setup(e){let r=oe(),{showCoupon:i,receiveCoupon:s}=P(r),{width:c}=j(),l=k([]),u=f(()=>l.value.length),g=f(()=>u.value===0?0:l.value[u.value-1].deduct_amount),_=p({quota:0,total:0,received:0}),v=()=>{s.value.status===1?ce({width:400,bgColor:`transparent`,data:{obtainId:s.value.obtain_id,endTime:s.value.end_time,couponQuota:_,couponList:l.value,onReceive:()=>{q({source:176})}},component:S(()=>xe(()=>import(`./feature-Pay.js?v=1795169270504`).then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])))}):s.value.total>0&&q({source:176})};return(async()=>{let e=await r.getReceiveCoupon();W(e)&&(A(e.coupons,`deduct_amount`),l.value=e.coupons,e.package_quota&&(_.quota=e.package_quota.quota,_.total=e.package_quota.total,_.received=e.package_quota.total-e.package_quota.quota))})(),(r,l)=>d(i)?(h(),o(`div`,{key:0,class:t([`coupon-box`,e.arrowPlacement]),onClick:v},[l[0]||(l[0]=a(`div`,{class:`coupon-logo`},null,-1)),a(`div`,we,[d(s).status===1?(h(),o(`div`,Te,x(d(c)>1500?r.$t(`Component.Coupon.index_11`,[d(g)]):r.$t(`Component.Coupon.index_12`,[d(u)])),1)):d(s).total>0?(h(),o(`div`,Ee,[a(`span`,De,x(r.$t(`Component.Coupon.index_4`)),1),n(Ce,{endtime:d(s).end_time},null,8,[`endtime`])])):m(``,!0)])],2)):m(``,!0)}}),[[`__scopeId`,`data-v-f507497a`]]);l(),b();var Oe=u({__name:`index`,props:r({multiple:{type:Boolean,default:!0}},{value:{},valueModifiers:{}}),emits:[`update:value`],setup(e){let{t}=N(),{loading:r,setLoading:i}=G(),a=T(e,`value`),o=k([]),s=k([{name:`mail`,title:t(`Config.Alarm.index_3`),ps:t(`Config.Alarm.index_36`),help:`https://www.bt.cn/bbs/thread-66183-1-1.html`,list:[]},{name:`dingding`,title:t(`Config.Alarm.index_5`),ps:t(`Config.Alarm.index_37`),help:`https://www.bt.cn/bbs/thread-108081-1-1.html`,list:[]},{name:`weixin`,title:t(`Config.Alarm.index_6`),ps:t(`Config.Alarm.index_38`),help:`https://www.bt.cn/bbs/thread-108116-1-1.html`,list:[]},{name:`feishu`,title:t(`Config.Alarm.index_4`),ps:t(`Config.Alarm.index_39`),help:`https://www.aapanel.com/forum/d/16942-aapanel-how-does-set-lark-or-feishu-notification`,list:[]},{name:`tg`,title:`Telegram`,ps:`Use Telegram to send and receive panel notifications`,help:`https://www.aapanel.com/docs/Function/Tutorial/telegram-alarm.html`,list:[]},{name:`discord`,title:`Discord`,ps:`Use Discord to send and receive panel notifications`,help:`https://www.aapanel.com/docs/Function/Tutorial/discord-alarm.html`,list:[]},{name:`webhook`,title:`Webhook`,ps:`Use Webhook to send and receive panel notifications`,help:`https://www.aapanel.com/docs/Function/Tutorial/webhook-alarm.html`,list:[]}]),c=async()=>{try{i(!0);let{message:e}=await ve({refresh:0});o.value=[],le(e)&&(s.value.forEach(t=>{t.list=e.filter(e=>e.sender_type===t.name)}),s.value.forEach(r=>{let i=e.filter(e=>e.used&&e.sender_type===r.name);i.length>0?i.forEach(e=>{o.value.push({label:`${e.data.title} (${r.title})`,value:e.id})}):o.value.push({label:()=>n(g,null,[r.title,C(`[`),n(`a`,{class:`bt-link`,onClick:()=>{ye({row:r,onRefresh:c})}},[t(`Public.Btn.Conf`)]),C(`]`)]),value:r.name,disabled:!0})}))}finally{i(!1)}};return c(),(t,n)=>{let i=ie;return h(),O(i,{value:a.value,"onUpdate:value":n[0]||(n[0]=e=>a.value=e),loading:d(r),options:d(o),multiple:e.multiple,"max-tag-count":`responsive`,placeholder:t.$t(`Config.Alarm.index_86`)},null,8,[`value`,`loading`,`options`,`multiple`,`placeholder`])}}});l(),b(),i();var Q=U(u({__name:`index`,props:{source:{type:Number,default:27}},setup(e){let{isPro:n}=P(K()),r=()=>{q({source:e.source})};return(e,i)=>(h(),o(`div`,{class:t([`pro-badge`,{pro:d(n)}]),onClick:r},[...i[0]||(i[0]=[a(`i`,{class:`i-common:pro text-14px color-white`},null,-1),a(`span`,{class:`text`},`PRO`,-1)])],2))}}),[[`__scopeId`,`data-v-2e4cedc1`]]);l(),b(),i();var ke={class:`flex items-center gap-10px`},Ae={class:`text-default`},je={key:0},Me={key:0},Ne={class:`mr-4px`},Pe={class:`text-[#fc6d26] font-bold`},Fe=u({__name:`index`,setup(e){let t=K(),{isFree:r,isPro:i,authExpired:s,versionType:c}=P(t),l=window.panelVersion,u=()=>{q({source:80})},f=()=>{q({source:81})};return(e,t)=>{let p=R,_=J;return h(),o(`div`,ke,[d(r)?(h(),o(g,{key:0},[n(Q,{source:80}),a(`div`,Ae,x(e.$t(`Component.Auth.index_1`)),1),d(!0)?(h(),o(`span`,je,x(d(l))+` `+x(d(c)),1)):m(``,!0),n(p,{class:`h-24px px-8px`,type:`primary`,onClick:u},{default:y(()=>[C(x(e.$t(`Component.Auth.index_5`)),1)]),_:1})],64)):m(``,!0),d(i)?(h(),o(g,{key:1},[n(Q,{source:81}),d(!0)?(h(),o(`span`,Me,x(d(l))+` `+x(d(c)),1)):m(``,!0),a(`div`,null,[a(`span`,Ne,x(e.$t(`Component.Auth.index_4`)),1),a(`span`,Pe,x(d(s)),1)]),n(_,{class:`font-bold`,onClick:f},{default:y(()=>[C(x(e.$t(`Component.Auth.index_2`)),1)]),_:1})],64)):m(``,!0)])}}});l(),b(),i();var Ie={class:`p-16px`},Le=[`onClick`],Re={class:`flex items-center gap-12px pr-16px`},ze=U(u({__name:`index`,props:{noRouter:{type:Boolean,default:!1}},emits:[`change`],setup(r,{emit:i}){let c=r,l=i,u=ee(),p=te(),b=K(),S=he(),{userInfo:C,authExpired:T}=P(b),E=w(`menuListRef`),A=w(`menuContainerRef`),{width:j}=_(E),{width:M}=_(A),N=f(()=>M.value-j.value>460),F=f(()=>u.meta.hideNav!==!0),I=k([]),L=()=>{let e=u.meta.install,t=u.meta.activeMenu,n=+!!e;for(let e=0;e<H.length;e++){let{children:i}=H[e];if(!i)return;if(i[0].name===t){let{path:t}=H[e];if(i&&i.length>0){var r;I.value=((r=i[n].children)==null?void 0:r.map(e=>{var n;return{path:`${t}/${e.path}`,name:String(e.name),title:`${((n=e.meta)==null?void 0:n.title)||``}`,hidden:e.meta&&se(e.meta.hidden)?e.meta.hidden:!1}}))||[]}break}}},R=e=>{fe(`panel_fun_menu`,e.name),c.noRouter||(z(e),p.push(e.path)),l(`change`,e)},z=e=>{let t=u.matched[0].name,n=ae(`page-menu-new`,JSON.stringify({})),r=JSON.parse(n);t&&(r[String(t)]=e.name),me(`page-menu-new`,JSON.stringify(r))};return L(),s(()=>{S.generateRoutes()}),(r,i)=>{let s=Fe,c=ne,l=D(`router-view`);return h(),o(`div`,Ie,[d(F)?(h(),O(c,{key:0,class:`mb-12px rounded-10px`},{default:y(()=>[a(`div`,{ref_key:`menuContainerRef`,ref:A,class:`flex items-center justify-between min-h-48px`},[a(`div`,{ref_key:`menuListRef`,ref:E,class:`menu-list`},[(h(!0),o(g,null,e(d(I),e=>(h(),o(g,{key:e.name},[e.hidden===!0?m(``,!0):(h(),o(`div`,{key:0,class:t([`menu-item`,{active:e.name===r.$route.name}]),onClick:t=>R(e)},x(e.title),11,Le))],64))),128))],512),a(`div`,Re,[r.$slots.suffix?v(r.$slots,`suffix`,{},void 0,!0,0):d(N)?(h(),o(g,{key:1},[d(C).status&&d(T)!==`Lifetime`?(h(),O(Z,{key:0})):m(``,!0),n(s)],64)):m(``,!0)])],512)]),_:3})):m(``,!0),v(r.$slots,`public-exam`,{},void 0,!0),n(l)])}}}),[[`__scopeId`,`data-v-727dbd4b`]]);l(),b(),i();var Be={key:0,class:`i-material-symbols:network-node color-primary text-16px`},Ve={class:`m-2px`},$=U(u({__name:`index`,props:{softName:{default:``},openSoft:{default:``},isWebSite:{type:Boolean,default:!1}},setup(e){let r=e,{t:i}=N(),{multiService:s}=P(K()),c=k({status:!0,s_status:!0,msg:``,version:`0`,name:``,title:``,admin:!1,s_version:``}),l=f(()=>Y(c.value.name)+` `+c.value.version),{loading:u,setLoading:p}=G(),_=async()=>{try{p(!0);let{message:e}=await ge({name:r.softName});W(e)&&(c.value=e)}finally{p(!1)}},v=(e,t)=>{let n=`${t} ${l.value}`,r=i(`Component.SoftState.index_1`,[t.toLowerCase(),Y(c.value.name)]);ue({title:n,content:r,onConfirm:async()=>{await _e({name:c.value.s_version,type:e}),_()}})},b=()=>{de({name:r.openSoft?r.openSoft:r.softName,title:Y(c.value.name),admin:!0})};return _(),(r,f)=>{let p=z,_=pe,S=R,w=J,T=L,E=I,D=B;return h(),O(D,{trigger:`hover`},{trigger:y(()=>[d(u)?(h(),O(p,{key:0,width:120,height:32,sharp:!1})):(h(),O(S,{key:1,class:`min-w-120px soft-btn`,type:d(c).s_status?`default`:`error`,onClick:b},{default:y(()=>[e.isWebSite&&d(s)?(h(),o(`i`,Be)):(h(),O(_,{key:1,name:`soft-${e.softName}`,size:`20`},null,8,[`name`])),a(`span`,Ve,x(d(l)),1),a(`span`,{class:t([`text-14px`,`${d(c).s_status?`i-mage:play-fill text-primary`:`i-mage:pause-fill text-error`}`])},null,2)]),_:1},8,[`type`]))]),default:y(()=>[n(E,{class:`items-center`,size:8},{default:y(()=>[n(w,{onClick:f[0]||(f[0]=e=>v(d(c).s_status?`stop`:`start`,d(c).s_status?r.$t(`Public.Status.Stop`):r.$t(`Public.Status.Start`)))},{default:y(()=>[C(x(d(c).s_status?r.$t(`Public.Status.Stop`):r.$t(`Public.Status.Start`)),1)]),_:1}),n(T,{class:`mx-0!`,vertical:``}),n(w,{onClick:f[1]||(f[1]=e=>v(`restart`,d(i)(`Public.Status.Restart`)))},{default:y(()=>[C(x(r.$t(`Public.Status.Restart`)),1)]),_:1}),n(T,{class:`mx-0!`,vertical:``}),n(w,{onClick:f[2]||(f[2]=e=>v(`reload`,d(i)(`Public.Status.Reload`)))},{default:y(()=>[C(x(r.$t(`Public.Status.Reload`)),1)]),_:1}),e.softName===`pgsql`?m(``,!0):(h(),o(g,{key:0},[n(T,{class:`mx-0!`,vertical:``}),n(w,{onClick:b},{default:y(()=>[C(x(r.$t(`Database.Mysql.index_26`)),1)]),_:1})],64))]),_:1})]),_:1})}}}),[[`__scopeId`,`data-v-5600598b`]]);l();var He={class:`relative h-full`},Ue={key:0,class:`install-box`},We={class:`install-desc`},Ge=U(u({__name:`index`,props:{active:{type:Boolean,default:!0}},setup(e){return(t,n)=>(h(),o(`div`,He,[v(t.$slots,`default`,{},void 0,!0),e.active?m(``,!0):(h(),o(`div`,Ue,[a(`div`,We,[v(t.$slots,`desc`,{},void 0,!0)])]))]))}}),[[`__scopeId`,`data-v-3fa52c5e`]]);l(),b(),i();var Ke=[`src`],qe=U(u({__name:`index`,props:{path:{default:``}},setup(e){let t=k(`/`+e.path),n=k(null),r=k(996),i=()=>{r.value=998,s()},a=()=>{r.value=998},s=()=>{var e;let t=(e=n.value)==null?void 0:e.contentWindow;t&&t.postMessage(`init`,`*`)},l=()=>{window.addEventListener(`message`,e=>{e.data===`showMainView`&&(r.value=996)})};return c(()=>{l()}),(e,s)=>(h(),o(`iframe`,{ref_key:`frameRef`,ref:n,class:`iframePage`,src:d(t),style:E({zIndex:d(r)}),onLoad:i,onMouseenter:a},null,44,Ke))}}),[[`__scopeId`,`data-v-dd081d53`]]);l();var Je={};function Ye(e,t){let n=V;return h(),O(n,{size:`small`,bordered:!1},{default:y(()=>[v(e.$slots,`default`,{},void 0,!0)]),_:3})}var Xe=U(Je,[[`render`,Ye],[`__scopeId`,`data-v-c6193199`]]);export{ze as a,Z as c,$ as i,Se as l,qe as n,Q as o,Ge as r,Oe as s,Xe as t};
Save File
Cancel