mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
3 lines
113 KiB
JavaScript
3 lines
113 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/peerAssignModal-DFmJjk1m.js","assets/localeText-Cf1ohw6E.js","assets/index-DNUMHgIY.js","assets/index-D9tU2fy-.css","assets/DashboardClientAssignmentStore-D2_uoTaE.js","assets/peerAssignModal--_bmFbmn.css","assets/peerShareLinkModal-BcKNS4zv.js","assets/dayjs.min-CL0AEZFK.js","assets/vue-datepicker-CSFZbfRs.js","assets/peerShareLinkModal-DgDHiTOw.css","assets/peerJobs-DWUjgMDu.js","assets/schedulePeerJob-Cdq32YgL.js","assets/schedulePeerJob-BGJSEouo.css","assets/peerJobs-D_dDl936.css","assets/peerQRCode-Ckrn5v7v.js","assets/browser-608JHo6E.js","assets/peerQRCode-CBHVhD4j.css","assets/peerConfigurationFile-DZnQC4c0.js","assets/peerConfigurationFile-Z9ms5mIx.css","assets/peerSettings-CihkEgCV.js","assets/peerSettings-CSjO_Okh.css","assets/peerSearchBar-DiXCpyAI.js","assets/peerSearchBar-Dtpovmxo.css","assets/peerJobsAllModal-Br9Kh2x7.js","assets/peerJobsLogsModal-DGiaCkA0.js","assets/editConfiguration-CowugxbT.js","assets/editConfiguration-CP79G5OS.css","assets/selectPeers-C-8NF1Is.js","assets/selectPeers-ChWyERy7.css","assets/peerAddModal-DfLbKzsW.js","assets/peerAddModal-B4gIHs91.css"])))=>i.map(i=>d[i]);
|
|
import{r as q,K as Ce,D as oe,o as be,I as ee,x as ce,q as E,G as H,c as m,f as i,a as e,b as f,u as B,d as M,t as D,g as le,B as Q,W as ne,m as ue,n as L,s as me,y as xe,F as z,i as Y,_ as Z,H as De,v as Oe,w as U,j as I,T as ge,k as re,A as Ue,z as X,h as te,M as Qe,N as Ke,O as se,e as F,P as W,Q as J,R as Me,L as $e,S as Ze}from"./index-DNUMHgIY.js";import{_ as Xe}from"./protocolBadge-DnzOWmq-.js";import{L as S}from"./localeText-Cf1ohw6E.js";import{C as qe,L as Ie,B as Te,a as je,b as Be,c as Ae,p as Re,d as Le,e as Ee,f as Ne,P as Fe,i as ze,h as et,g as he}from"./index-ZzdYBUCj.js";import{d as K}from"./dayjs.min-CL0AEZFK.js";const tt={class:"row gx-2 gy-2 mb-3"},lt={class:"col-12"},st={class:"card rounded-3 bg-transparent",style:{height:"270px"}},ot={class:"card-header bg-transparent border-0"},it={class:"text-muted"},at={class:"card-body pt-1"},nt={class:"col-sm col-lg-6"},rt={class:"card rounded-3 bg-transparent",style:{height:"270px"}},dt={class:"card-header bg-transparent border-0 d-flex align-items-center"},ct={class:"text-muted"},ut={key:0,class:"text-primary fw-bold ms-auto"},ft={class:"card-body pt-1"},pt={class:"col-sm col-lg-6"},mt={class:"card rounded-3 bg-transparent",style:{height:"270px"}},gt={class:"card-header bg-transparent border-0 d-flex align-items-center"},ht={class:"text-muted"},bt={key:0,class:"text-success fw-bold ms-auto"},vt={class:"card-body pt-1"},kt={__name:"peerDataUsageCharts",props:{configurationPeers:Array,configurationInfo:Object},setup(l){qe.register(Ie,Te,je,Be,Ae,Re,Le,Ee,Ne,Fe,ze);const t=l,a=q({timestamp:[],data:[]}),s=q({timestamp:[],data:[]}),h=Ce(),r=oe(),d=q(void 0),g=async()=>{await le("/api/getWireguardConfigurationRealtimeTraffic",{configurationName:h.params.id},x=>{let u=K().format("hh:mm:ss A");(x.data.sent!==0&&x.data.recv!==0||a.value.data.length>0&&s.value.data.length>0)&&(a.value.timestamp.push(u),a.value.data.push(x.data.sent),s.value.timestamp.push(u),s.value.data.push(x.data.recv))})},c=()=>{clearInterval(d.value),d.value=void 0,t.configurationInfo.Status&&(d.value=setInterval(()=>{g()},parseInt(r.Configuration.Server.dashboard_refresh_interval)))};be(()=>{c()}),ee(()=>t.configurationInfo.Status,()=>{c()}),ee(()=>r.Configuration.Server.dashboard_refresh_interval,()=>{c()}),ce(()=>{clearInterval(d.value),d.value=void 0});const n=E(()=>{let x=t.configurationPeers.filter(u=>u.cumu_data+u.total_data>0);return{labels:x.map(u=>u.name?u.name:`Untitled Peer - ${u.id}`),datasets:[{label:"Total Data Usage",data:x.map(u=>u.cumu_data+u.total_data),backgroundColor:x.map(u=>"#ffc107"),tooltip:{callbacks:{label:u=>`${u.formattedValue} GB`}}}]}}),y=E(()=>({labels:[...a.value.timestamp],datasets:[{label:H("Data Sent"),data:[...a.value.data],fill:"start",borderColor:"#198754",backgroundColor:"#19875490",tension:0,pointRadius:2,borderWidth:1}]})),A=E(()=>({labels:[...s.value.timestamp],datasets:[{label:H("Data Received"),data:[...s.value.data],fill:"start",borderColor:"#0d6efd",backgroundColor:"#0d6efd90",tension:0,pointRadius:2,borderWidth:1}]})),_=E(()=>({responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(x,u)=>`${Math.round((x+Number.EPSILON)*1e3)/1e3} GB`},grid:{display:!1}}}})),b=E(()=>({responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:x=>`${x.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!0}},y:{ticks:{callback:(x,u)=>`${Math.round((x+Number.EPSILON)*1e3)/1e3} MB/s`},grid:{display:!0}}}}));return(x,u)=>(i(),m("div",tt,[e("div",lt,[e("div",st,[e("div",ot,[e("small",it,[f(S,{t:"Peers Data Usage"})])]),e("div",at,[f(B(et),{data:n.value,options:_.value,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["data","options"])])])]),e("div",nt,[e("div",rt,[e("div",dt,[e("small",ct,[f(S,{t:"Real Time Received Data Usage"})]),s.value.data.length>0?(i(),m("small",ut,D(s.value.data[s.value.data.length-1])+" MB/s ",1)):M("",!0)]),e("div",ft,[f(B(he),{options:b.value,data:A.value,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])]),e("div",pt,[e("div",mt,[e("div",gt,[e("small",ht,[f(S,{t:"Real Time Sent Data Usage"})]),a.value.data.length>0?(i(),m("small",bt,D(a.value.data[a.value.data.length-1])+" MB/s ",1)):M("",!0)]),e("div",vt,[f(B(he),{options:b.value,data:y.value,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])])]))}},wt=61698,yt=61705,xt=61707,$t=61709,_t=61777,Pt=61778,St=61780,Ct=61781,Dt=61785,Ot=61817,Mt=61824,qt=61826,It=61828,Tt=61832,jt=61834,Bt=61835,At=61836,Rt=61837,Lt=61839,Et=61844,Nt=61858,Ft=61860,zt=61861,Ht=61864,Yt=61876,Gt=61896,Wt=61897,Jt=61898,Vt=61900,Ut=61910,Qt=61912,Kt=61914,Zt=61916,Xt=61917,el=61918,tl=61920,ll=61942,sl=61964,ol=61972,il=61976,al=61984,nl=61985,rl=61987,dl=62018,cl=62019,ul=62020,fl=62021,pl=62023,ml=62024,gl=62056,hl=62062,bl=62066,vl=62090,kl=62096,wl=62099,yl=62145,xl=62147,$l=62149,_l=62152,Pl=62156,Sl=62158,Cl=62159,Dl=62161,Ol=62163,Ml=62164,ql=62166,Il=62173,Tl=62176,jl=62179,Bl=62186,Al=62193,Rl=62207,Ll=62208,El=62210,Nl=62217,Fl=62218,zl=62221,Hl=62222,Yl=62224,Gl=62227,Wl=62229,Jl=62255,Vl=62257,Ul=62268,Ql=62269,Kl=62273,Zl=62274,Xl=62275,es=62276,ts=62400,ls=62402,ss=62403,os=62410,is=62412,as=62413,ns=62414,rs=62415,ds=62423,cs=62425,us=62426,fs=62428,ps=62429,ms=62431,gs=62433,hs=62437,bs=62438,vs=62442,ks=62444,ws=62445,ys=62446,xs=62447,$s=62448,_s=62460,Ps=62463,Ss=62473,Cs=62474,Ds=62482,Os=62483,Ms=62484,qs=62487,Is=62490,Ts=62493,js=62497,Bs=62501,As=62502,Rs=62503,Ls=62506,Es=62507,Ns=62509,Fs=62511,zs=62516,Hs=62519,Ys=62520,Gs=62534,Ws=62535,Js=62536,Vs=62539,Us=62541,Qs=62543,Ks=62545,Zs=62546,Xs=62548,eo=62550,to=62555,lo=62571,so=62575,oo=62577,io=62578,ao=62585,no=62587,ro=62588,co=62589,uo=62591,fo=62593,po=62594,mo=62596,go=62608,ho=62610,bo=62611,vo=62615,ko=62617,wo=62619,yo=62621,xo=62627,$o=62633,_o=62636,Po=62637,So=62638,Co=62641,Do=62642,Oo=62643,Mo=62644,qo=62660,Io=62662,To=62664,jo=62667,Bo=62670,Ao=62672,Ro=62673,Lo=62689,Eo=62695,No=62701,Fo=62703,zo=62709,Ho=62711,Yo=62718,Go=62719,Wo=62721,Jo=62723,Vo=62732,Uo=62733,Qo=62735,Ko=62746,Zo=62748,Xo=62752,ei=62754,ti=62755,li=62757,si=62759,oi=62760,ii=62761,ai=62762,ni=62764,ri=62766,di=62783,ci=62785,ui=62787,fi=62788,pi=62794,mi=62796,gi=62821,hi=62826,bi=62827,vi=62828,ki=62829,wi=62830,yi=62831,xi=62844,$i=62846,_i=62847,Pi=62848,Si=62849,Ci=62852,Di=62853,Oi=62856,Mi=62857,qi=62859,Ii=62861,Ti=62867,ji=62869,Bi=62871,Ai=62872,Ri=62882,Li=62883,Ei=62885,Ni=62887,Fi=62890,zi=62894,Hi=62896,Yi=62898,Gi=62899,Wi=62913,Ji=62915,Vi=62924,Ui=62930,Qi=62937,Ki=62938,Zi=62939,Xi=62940,ea=62942,ta=62944,la=62946,sa=62949,oa=62951,ia=62954,aa=62955,na=62957,ra=62958,da=62959,ca=62967,ua=62973,fa=62974,pa=62976,ma=62978,ga=62979,ha=62984,ba=62985,va=62994,ka=62996,wa=62997,ya=62998,xa=62999,$a=63e3,_a=63004,Pa=63005,Sa=63008,Ca=63009,Da=63018,Oa=63019,Ma=63022,qa=63023,Ia=63028,Ta=63047,ja=63048,Ba=63055,Aa=63056,Ra=63059,La=63062,Ea=63064,Na=63066,Fa=63067,za=63069,Ha=63070,Ya=63068,Ga=63071,Wa=63072,Ja=63073,Va=63074,Ua=63075,Qa=63076,Ka=63077,Za=63078,Xa=63080,en=63081,tn=63082,ln=63083,sn=63085,on=63087,an=63088,nn=63089,rn=63092,dn=63093,cn=63099,un=63101,fn=63105,pn=63106,mn=63108,gn=63109,hn=63111,bn=63113,vn=63132,kn=63133,wn=63134,yn=63137,xn=63144,$n=63145,_n=63148,Pn=63151,Sn=63152,Cn=63153,Dn=63168,On=63169,Mn=63179,qn=63180,In=63188,Tn=63189,jn=63191,Bn=63198,An=63201,Rn=63203,Ln=63205,En=63207,Nn=63212,Fn=63216,zn=63230,Hn=63241,Yn=63245,Gn=63283,Wn=63345,Jn=63346,Vn=63348,Un=63351,Qn=63353,Kn=63357,Zn=63361,Xn=63365,er=63369,tr=63371,lr=63372,sr=63373,or=63437,ir=63438,ar=63439,nr=63440,rr=63441,dr=63455,cr=63459,ur=63469,fr=63478,pr=63486,mr=63488,gr=63497,hr=63498,br=63499,vr=63507,kr=63513,wr=63522,yr=63523,xr=63524,$r=63527,_r=63528,Pr=63529,Sr=63530,Cr=63558,Dr=63559,Or=63560,Mr=63561,qr=63562,Ir=63565,Tr=63613,jr=63659,Br=63662,Ar=63684,Rr=63686,Lr=63687,Er=63692,Nr=63114,Fr=63117,zr=63138,Hr=63158,Yr=63170,Gr=63200,Wr=63213,Jr=63214,Vr=63321,Ur=63337,Qr=63380,Kr=63423,Zr=63428,Xr=63448,ed=63460,td=63461,ld=63480,sd=63500,od=63501,id=63695,ad=63702,nd=63703,rd=63705,dd=63706,cd=63712,ud=63714,fd=63716,pd=63718,md=63719,gd=63723,hd=63724,bd=63726,vd=63728,kd=63733,wd=63740,yd=63744,xd=63746,$d=63747,_d=63481,Pd=63748,Sd=63750,Cd=63754,Dd=63756,Od=63760,Md=63762,qd=63764,Id=63765,Td=63766,jd=63767,Bd=63768,Ad=63769,ye={123:63103,"alarm-fill":61697,alarm:wt,"align-bottom":61699,"align-center":61700,"align-end":61701,"align-middle":61702,"align-start":61703,"align-top":61704,alt:yt,"app-indicator":61706,app:xt,"archive-fill":61708,archive:$t,"arrow-90deg-down":61710,"arrow-90deg-left":61711,"arrow-90deg-right":61712,"arrow-90deg-up":61713,"arrow-bar-down":61714,"arrow-bar-left":61715,"arrow-bar-right":61716,"arrow-bar-up":61717,"arrow-clockwise":61718,"arrow-counterclockwise":61719,"arrow-down-circle-fill":61720,"arrow-down-circle":61721,"arrow-down-left-circle-fill":61722,"arrow-down-left-circle":61723,"arrow-down-left-square-fill":61724,"arrow-down-left-square":61725,"arrow-down-left":61726,"arrow-down-right-circle-fill":61727,"arrow-down-right-circle":61728,"arrow-down-right-square-fill":61729,"arrow-down-right-square":61730,"arrow-down-right":61731,"arrow-down-short":61732,"arrow-down-square-fill":61733,"arrow-down-square":61734,"arrow-down-up":61735,"arrow-down":61736,"arrow-left-circle-fill":61737,"arrow-left-circle":61738,"arrow-left-right":61739,"arrow-left-short":61740,"arrow-left-square-fill":61741,"arrow-left-square":61742,"arrow-left":61743,"arrow-repeat":61744,"arrow-return-left":61745,"arrow-return-right":61746,"arrow-right-circle-fill":61747,"arrow-right-circle":61748,"arrow-right-short":61749,"arrow-right-square-fill":61750,"arrow-right-square":61751,"arrow-right":61752,"arrow-up-circle-fill":61753,"arrow-up-circle":61754,"arrow-up-left-circle-fill":61755,"arrow-up-left-circle":61756,"arrow-up-left-square-fill":61757,"arrow-up-left-square":61758,"arrow-up-left":61759,"arrow-up-right-circle-fill":61760,"arrow-up-right-circle":61761,"arrow-up-right-square-fill":61762,"arrow-up-right-square":61763,"arrow-up-right":61764,"arrow-up-short":61765,"arrow-up-square-fill":61766,"arrow-up-square":61767,"arrow-up":61768,"arrows-angle-contract":61769,"arrows-angle-expand":61770,"arrows-collapse":61771,"arrows-expand":61772,"arrows-fullscreen":61773,"arrows-move":61774,"aspect-ratio-fill":61775,"aspect-ratio":61776,asterisk:_t,at:Pt,"award-fill":61779,award:St,back:Ct,"backspace-fill":61782,"backspace-reverse-fill":61783,"backspace-reverse":61784,backspace:Dt,"badge-3d-fill":61786,"badge-3d":61787,"badge-4k-fill":61788,"badge-4k":61789,"badge-8k-fill":61790,"badge-8k":61791,"badge-ad-fill":61792,"badge-ad":61793,"badge-ar-fill":61794,"badge-ar":61795,"badge-cc-fill":61796,"badge-cc":61797,"badge-hd-fill":61798,"badge-hd":61799,"badge-tm-fill":61800,"badge-tm":61801,"badge-vo-fill":61802,"badge-vo":61803,"badge-vr-fill":61804,"badge-vr":61805,"badge-wc-fill":61806,"badge-wc":61807,"bag-check-fill":61808,"bag-check":61809,"bag-dash-fill":61810,"bag-dash":61811,"bag-fill":61812,"bag-plus-fill":61813,"bag-plus":61814,"bag-x-fill":61815,"bag-x":61816,bag:Ot,"bar-chart-fill":61818,"bar-chart-line-fill":61819,"bar-chart-line":61820,"bar-chart-steps":61821,"bar-chart":61822,"basket-fill":61823,basket:Mt,"basket2-fill":61825,basket2:qt,"basket3-fill":61827,basket3:It,"battery-charging":61829,"battery-full":61830,"battery-half":61831,battery:Tt,"bell-fill":61833,bell:jt,bezier:Bt,bezier2:At,bicycle:Rt,"binoculars-fill":61838,binoculars:Lt,"blockquote-left":61840,"blockquote-right":61841,"book-fill":61842,"book-half":61843,book:Et,"bookmark-check-fill":61845,"bookmark-check":61846,"bookmark-dash-fill":61847,"bookmark-dash":61848,"bookmark-fill":61849,"bookmark-heart-fill":61850,"bookmark-heart":61851,"bookmark-plus-fill":61852,"bookmark-plus":61853,"bookmark-star-fill":61854,"bookmark-star":61855,"bookmark-x-fill":61856,"bookmark-x":61857,bookmark:Nt,"bookmarks-fill":61859,bookmarks:Ft,bookshelf:zt,"bootstrap-fill":61862,"bootstrap-reboot":61863,bootstrap:Ht,"border-all":61865,"border-bottom":61866,"border-center":61867,"border-inner":61868,"border-left":61869,"border-middle":61870,"border-outer":61871,"border-right":61872,"border-style":61873,"border-top":61874,"border-width":61875,border:Yt,"bounding-box-circles":61877,"bounding-box":61878,"box-arrow-down-left":61879,"box-arrow-down-right":61880,"box-arrow-down":61881,"box-arrow-in-down-left":61882,"box-arrow-in-down-right":61883,"box-arrow-in-down":61884,"box-arrow-in-left":61885,"box-arrow-in-right":61886,"box-arrow-in-up-left":61887,"box-arrow-in-up-right":61888,"box-arrow-in-up":61889,"box-arrow-left":61890,"box-arrow-right":61891,"box-arrow-up-left":61892,"box-arrow-up-right":61893,"box-arrow-up":61894,"box-seam":61895,box:Gt,braces:Wt,bricks:Jt,"briefcase-fill":61899,briefcase:Vt,"brightness-alt-high-fill":61901,"brightness-alt-high":61902,"brightness-alt-low-fill":61903,"brightness-alt-low":61904,"brightness-high-fill":61905,"brightness-high":61906,"brightness-low-fill":61907,"brightness-low":61908,"broadcast-pin":61909,broadcast:Ut,"brush-fill":61911,brush:Qt,"bucket-fill":61913,bucket:Kt,"bug-fill":61915,bug:Zt,building:Xt,bullseye:el,"calculator-fill":61919,calculator:tl,"calendar-check-fill":61921,"calendar-check":61922,"calendar-date-fill":61923,"calendar-date":61924,"calendar-day-fill":61925,"calendar-day":61926,"calendar-event-fill":61927,"calendar-event":61928,"calendar-fill":61929,"calendar-minus-fill":61930,"calendar-minus":61931,"calendar-month-fill":61932,"calendar-month":61933,"calendar-plus-fill":61934,"calendar-plus":61935,"calendar-range-fill":61936,"calendar-range":61937,"calendar-week-fill":61938,"calendar-week":61939,"calendar-x-fill":61940,"calendar-x":61941,calendar:ll,"calendar2-check-fill":61943,"calendar2-check":61944,"calendar2-date-fill":61945,"calendar2-date":61946,"calendar2-day-fill":61947,"calendar2-day":61948,"calendar2-event-fill":61949,"calendar2-event":61950,"calendar2-fill":61951,"calendar2-minus-fill":61952,"calendar2-minus":61953,"calendar2-month-fill":61954,"calendar2-month":61955,"calendar2-plus-fill":61956,"calendar2-plus":61957,"calendar2-range-fill":61958,"calendar2-range":61959,"calendar2-week-fill":61960,"calendar2-week":61961,"calendar2-x-fill":61962,"calendar2-x":61963,calendar2:sl,"calendar3-event-fill":61965,"calendar3-event":61966,"calendar3-fill":61967,"calendar3-range-fill":61968,"calendar3-range":61969,"calendar3-week-fill":61970,"calendar3-week":61971,calendar3:ol,"calendar4-event":61973,"calendar4-range":61974,"calendar4-week":61975,calendar4:il,"camera-fill":61977,"camera-reels-fill":61978,"camera-reels":61979,"camera-video-fill":61980,"camera-video-off-fill":61981,"camera-video-off":61982,"camera-video":61983,camera:al,camera2:nl,"capslock-fill":61986,capslock:rl,"card-checklist":61988,"card-heading":61989,"card-image":61990,"card-list":61991,"card-text":61992,"caret-down-fill":61993,"caret-down-square-fill":61994,"caret-down-square":61995,"caret-down":61996,"caret-left-fill":61997,"caret-left-square-fill":61998,"caret-left-square":61999,"caret-left":62e3,"caret-right-fill":62001,"caret-right-square-fill":62002,"caret-right-square":62003,"caret-right":62004,"caret-up-fill":62005,"caret-up-square-fill":62006,"caret-up-square":62007,"caret-up":62008,"cart-check-fill":62009,"cart-check":62010,"cart-dash-fill":62011,"cart-dash":62012,"cart-fill":62013,"cart-plus-fill":62014,"cart-plus":62015,"cart-x-fill":62016,"cart-x":62017,cart:dl,cart2:cl,cart3:ul,cart4:fl,"cash-stack":62022,cash:pl,cast:ml,"chat-dots-fill":62025,"chat-dots":62026,"chat-fill":62027,"chat-left-dots-fill":62028,"chat-left-dots":62029,"chat-left-fill":62030,"chat-left-quote-fill":62031,"chat-left-quote":62032,"chat-left-text-fill":62033,"chat-left-text":62034,"chat-left":62035,"chat-quote-fill":62036,"chat-quote":62037,"chat-right-dots-fill":62038,"chat-right-dots":62039,"chat-right-fill":62040,"chat-right-quote-fill":62041,"chat-right-quote":62042,"chat-right-text-fill":62043,"chat-right-text":62044,"chat-right":62045,"chat-square-dots-fill":62046,"chat-square-dots":62047,"chat-square-fill":62048,"chat-square-quote-fill":62049,"chat-square-quote":62050,"chat-square-text-fill":62051,"chat-square-text":62052,"chat-square":62053,"chat-text-fill":62054,"chat-text":62055,chat:gl,"check-all":62057,"check-circle-fill":62058,"check-circle":62059,"check-square-fill":62060,"check-square":62061,check:hl,"check2-all":62063,"check2-circle":62064,"check2-square":62065,check2:bl,"chevron-bar-contract":62067,"chevron-bar-down":62068,"chevron-bar-expand":62069,"chevron-bar-left":62070,"chevron-bar-right":62071,"chevron-bar-up":62072,"chevron-compact-down":62073,"chevron-compact-left":62074,"chevron-compact-right":62075,"chevron-compact-up":62076,"chevron-contract":62077,"chevron-double-down":62078,"chevron-double-left":62079,"chevron-double-right":62080,"chevron-double-up":62081,"chevron-down":62082,"chevron-expand":62083,"chevron-left":62084,"chevron-right":62085,"chevron-up":62086,"circle-fill":62087,"circle-half":62088,"circle-square":62089,circle:vl,"clipboard-check":62091,"clipboard-data":62092,"clipboard-minus":62093,"clipboard-plus":62094,"clipboard-x":62095,clipboard:kl,"clock-fill":62097,"clock-history":62098,clock:wl,"cloud-arrow-down-fill":62100,"cloud-arrow-down":62101,"cloud-arrow-up-fill":62102,"cloud-arrow-up":62103,"cloud-check-fill":62104,"cloud-check":62105,"cloud-download-fill":62106,"cloud-download":62107,"cloud-drizzle-fill":62108,"cloud-drizzle":62109,"cloud-fill":62110,"cloud-fog-fill":62111,"cloud-fog":62112,"cloud-fog2-fill":62113,"cloud-fog2":62114,"cloud-hail-fill":62115,"cloud-hail":62116,"cloud-haze-fill":62118,"cloud-haze":62119,"cloud-haze2-fill":62120,"cloud-lightning-fill":62121,"cloud-lightning-rain-fill":62122,"cloud-lightning-rain":62123,"cloud-lightning":62124,"cloud-minus-fill":62125,"cloud-minus":62126,"cloud-moon-fill":62127,"cloud-moon":62128,"cloud-plus-fill":62129,"cloud-plus":62130,"cloud-rain-fill":62131,"cloud-rain-heavy-fill":62132,"cloud-rain-heavy":62133,"cloud-rain":62134,"cloud-slash-fill":62135,"cloud-slash":62136,"cloud-sleet-fill":62137,"cloud-sleet":62138,"cloud-snow-fill":62139,"cloud-snow":62140,"cloud-sun-fill":62141,"cloud-sun":62142,"cloud-upload-fill":62143,"cloud-upload":62144,cloud:yl,"clouds-fill":62146,clouds:xl,"cloudy-fill":62148,cloudy:$l,"code-slash":62150,"code-square":62151,code:_l,"collection-fill":62153,"collection-play-fill":62154,"collection-play":62155,collection:Pl,"columns-gap":62157,columns:Sl,command:Cl,"compass-fill":62160,compass:Dl,"cone-striped":62162,cone:Ol,controller:Ml,"cpu-fill":62165,cpu:ql,"credit-card-2-back-fill":62167,"credit-card-2-back":62168,"credit-card-2-front-fill":62169,"credit-card-2-front":62170,"credit-card-fill":62171,"credit-card":62172,crop:Il,"cup-fill":62174,"cup-straw":62175,cup:Tl,"cursor-fill":62177,"cursor-text":62178,cursor:jl,"dash-circle-dotted":62180,"dash-circle-fill":62181,"dash-circle":62182,"dash-square-dotted":62183,"dash-square-fill":62184,"dash-square":62185,dash:Bl,"diagram-2-fill":62187,"diagram-2":62188,"diagram-3-fill":62189,"diagram-3":62190,"diamond-fill":62191,"diamond-half":62192,diamond:Al,"dice-1-fill":62194,"dice-1":62195,"dice-2-fill":62196,"dice-2":62197,"dice-3-fill":62198,"dice-3":62199,"dice-4-fill":62200,"dice-4":62201,"dice-5-fill":62202,"dice-5":62203,"dice-6-fill":62204,"dice-6":62205,"disc-fill":62206,disc:Rl,discord:Ll,"display-fill":62209,display:El,"distribute-horizontal":62211,"distribute-vertical":62212,"door-closed-fill":62213,"door-closed":62214,"door-open-fill":62215,"door-open":62216,dot:Nl,download:Fl,"droplet-fill":62219,"droplet-half":62220,droplet:zl,earbuds:Hl,"easel-fill":62223,easel:Yl,"egg-fill":62225,"egg-fried":62226,egg:Gl,"eject-fill":62228,eject:Wl,"emoji-angry-fill":62230,"emoji-angry":62231,"emoji-dizzy-fill":62232,"emoji-dizzy":62233,"emoji-expressionless-fill":62234,"emoji-expressionless":62235,"emoji-frown-fill":62236,"emoji-frown":62237,"emoji-heart-eyes-fill":62238,"emoji-heart-eyes":62239,"emoji-laughing-fill":62240,"emoji-laughing":62241,"emoji-neutral-fill":62242,"emoji-neutral":62243,"emoji-smile-fill":62244,"emoji-smile-upside-down-fill":62245,"emoji-smile-upside-down":62246,"emoji-smile":62247,"emoji-sunglasses-fill":62248,"emoji-sunglasses":62249,"emoji-wink-fill":62250,"emoji-wink":62251,"envelope-fill":62252,"envelope-open-fill":62253,"envelope-open":62254,envelope:Jl,"eraser-fill":62256,eraser:Vl,"exclamation-circle-fill":62258,"exclamation-circle":62259,"exclamation-diamond-fill":62260,"exclamation-diamond":62261,"exclamation-octagon-fill":62262,"exclamation-octagon":62263,"exclamation-square-fill":62264,"exclamation-square":62265,"exclamation-triangle-fill":62266,"exclamation-triangle":62267,exclamation:Ul,exclude:Ql,"eye-fill":62270,"eye-slash-fill":62271,"eye-slash":62272,eye:Kl,eyedropper:Zl,eyeglasses:Xl,facebook:es,"file-arrow-down-fill":62277,"file-arrow-down":62278,"file-arrow-up-fill":62279,"file-arrow-up":62280,"file-bar-graph-fill":62281,"file-bar-graph":62282,"file-binary-fill":62283,"file-binary":62284,"file-break-fill":62285,"file-break":62286,"file-check-fill":62287,"file-check":62288,"file-code-fill":62289,"file-code":62290,"file-diff-fill":62291,"file-diff":62292,"file-earmark-arrow-down-fill":62293,"file-earmark-arrow-down":62294,"file-earmark-arrow-up-fill":62295,"file-earmark-arrow-up":62296,"file-earmark-bar-graph-fill":62297,"file-earmark-bar-graph":62298,"file-earmark-binary-fill":62299,"file-earmark-binary":62300,"file-earmark-break-fill":62301,"file-earmark-break":62302,"file-earmark-check-fill":62303,"file-earmark-check":62304,"file-earmark-code-fill":62305,"file-earmark-code":62306,"file-earmark-diff-fill":62307,"file-earmark-diff":62308,"file-earmark-easel-fill":62309,"file-earmark-easel":62310,"file-earmark-excel-fill":62311,"file-earmark-excel":62312,"file-earmark-fill":62313,"file-earmark-font-fill":62314,"file-earmark-font":62315,"file-earmark-image-fill":62316,"file-earmark-image":62317,"file-earmark-lock-fill":62318,"file-earmark-lock":62319,"file-earmark-lock2-fill":62320,"file-earmark-lock2":62321,"file-earmark-medical-fill":62322,"file-earmark-medical":62323,"file-earmark-minus-fill":62324,"file-earmark-minus":62325,"file-earmark-music-fill":62326,"file-earmark-music":62327,"file-earmark-person-fill":62328,"file-earmark-person":62329,"file-earmark-play-fill":62330,"file-earmark-play":62331,"file-earmark-plus-fill":62332,"file-earmark-plus":62333,"file-earmark-post-fill":62334,"file-earmark-post":62335,"file-earmark-ppt-fill":62336,"file-earmark-ppt":62337,"file-earmark-richtext-fill":62338,"file-earmark-richtext":62339,"file-earmark-ruled-fill":62340,"file-earmark-ruled":62341,"file-earmark-slides-fill":62342,"file-earmark-slides":62343,"file-earmark-spreadsheet-fill":62344,"file-earmark-spreadsheet":62345,"file-earmark-text-fill":62346,"file-earmark-text":62347,"file-earmark-word-fill":62348,"file-earmark-word":62349,"file-earmark-x-fill":62350,"file-earmark-x":62351,"file-earmark-zip-fill":62352,"file-earmark-zip":62353,"file-earmark":62354,"file-easel-fill":62355,"file-easel":62356,"file-excel-fill":62357,"file-excel":62358,"file-fill":62359,"file-font-fill":62360,"file-font":62361,"file-image-fill":62362,"file-image":62363,"file-lock-fill":62364,"file-lock":62365,"file-lock2-fill":62366,"file-lock2":62367,"file-medical-fill":62368,"file-medical":62369,"file-minus-fill":62370,"file-minus":62371,"file-music-fill":62372,"file-music":62373,"file-person-fill":62374,"file-person":62375,"file-play-fill":62376,"file-play":62377,"file-plus-fill":62378,"file-plus":62379,"file-post-fill":62380,"file-post":62381,"file-ppt-fill":62382,"file-ppt":62383,"file-richtext-fill":62384,"file-richtext":62385,"file-ruled-fill":62386,"file-ruled":62387,"file-slides-fill":62388,"file-slides":62389,"file-spreadsheet-fill":62390,"file-spreadsheet":62391,"file-text-fill":62392,"file-text":62393,"file-word-fill":62394,"file-word":62395,"file-x-fill":62396,"file-x":62397,"file-zip-fill":62398,"file-zip":62399,file:ts,"files-alt":62401,files:ls,film:ss,"filter-circle-fill":62404,"filter-circle":62405,"filter-left":62406,"filter-right":62407,"filter-square-fill":62408,"filter-square":62409,filter:os,"flag-fill":62411,flag:is,flower1:as,flower2:ns,flower3:rs,"folder-check":62416,"folder-fill":62417,"folder-minus":62418,"folder-plus":62419,"folder-symlink-fill":62420,"folder-symlink":62421,"folder-x":62422,folder:ds,"folder2-open":62424,folder2:cs,fonts:us,"forward-fill":62427,forward:fs,front:ps,"fullscreen-exit":62430,fullscreen:ms,"funnel-fill":62432,funnel:gs,"gear-fill":62434,"gear-wide-connected":62435,"gear-wide":62436,gear:hs,gem:bs,"geo-alt-fill":62439,"geo-alt":62440,"geo-fill":62441,geo:vs,"gift-fill":62443,gift:ks,github:ws,globe:ys,globe2:xs,google:$s,"graph-down":62449,"graph-up":62450,"grid-1x2-fill":62451,"grid-1x2":62452,"grid-3x2-gap-fill":62453,"grid-3x2-gap":62454,"grid-3x2":62455,"grid-3x3-gap-fill":62456,"grid-3x3-gap":62457,"grid-3x3":62458,"grid-fill":62459,grid:_s,"grip-horizontal":62461,"grip-vertical":62462,hammer:Ps,"hand-index-fill":62464,"hand-index-thumb-fill":62465,"hand-index-thumb":62466,"hand-index":62467,"hand-thumbs-down-fill":62468,"hand-thumbs-down":62469,"hand-thumbs-up-fill":62470,"hand-thumbs-up":62471,"handbag-fill":62472,handbag:Ss,hash:Cs,"hdd-fill":62475,"hdd-network-fill":62476,"hdd-network":62477,"hdd-rack-fill":62478,"hdd-rack":62479,"hdd-stack-fill":62480,"hdd-stack":62481,hdd:Ds,headphones:Os,headset:Ms,"heart-fill":62485,"heart-half":62486,heart:qs,"heptagon-fill":62488,"heptagon-half":62489,heptagon:Is,"hexagon-fill":62491,"hexagon-half":62492,hexagon:Ts,"hourglass-bottom":62494,"hourglass-split":62495,"hourglass-top":62496,hourglass:js,"house-door-fill":62498,"house-door":62499,"house-fill":62500,house:Bs,hr:As,hurricane:Rs,"image-alt":62504,"image-fill":62505,image:Ls,images:Es,"inbox-fill":62508,inbox:Ns,"inboxes-fill":62510,inboxes:Fs,"info-circle-fill":62512,"info-circle":62513,"info-square-fill":62514,"info-square":62515,info:zs,"input-cursor-text":62517,"input-cursor":62518,instagram:Hs,intersect:Ys,"journal-album":62521,"journal-arrow-down":62522,"journal-arrow-up":62523,"journal-bookmark-fill":62524,"journal-bookmark":62525,"journal-check":62526,"journal-code":62527,"journal-medical":62528,"journal-minus":62529,"journal-plus":62530,"journal-richtext":62531,"journal-text":62532,"journal-x":62533,journal:Gs,journals:Ws,joystick:Js,"justify-left":62537,"justify-right":62538,justify:Vs,"kanban-fill":62540,kanban:Us,"key-fill":62542,key:Qs,"keyboard-fill":62544,keyboard:Ks,ladder:Zs,"lamp-fill":62547,lamp:Xs,"laptop-fill":62549,laptop:eo,"layer-backward":62551,"layer-forward":62552,"layers-fill":62553,"layers-half":62554,layers:to,"layout-sidebar-inset-reverse":62556,"layout-sidebar-inset":62557,"layout-sidebar-reverse":62558,"layout-sidebar":62559,"layout-split":62560,"layout-text-sidebar-reverse":62561,"layout-text-sidebar":62562,"layout-text-window-reverse":62563,"layout-text-window":62564,"layout-three-columns":62565,"layout-wtf":62566,"life-preserver":62567,"lightbulb-fill":62568,"lightbulb-off-fill":62569,"lightbulb-off":62570,lightbulb:lo,"lightning-charge-fill":62572,"lightning-charge":62573,"lightning-fill":62574,lightning:so,"link-45deg":62576,link:oo,linkedin:io,"list-check":62579,"list-nested":62580,"list-ol":62581,"list-stars":62582,"list-task":62583,"list-ul":62584,list:ao,"lock-fill":62586,lock:no,mailbox:ro,mailbox2:co,"map-fill":62590,map:uo,"markdown-fill":62592,markdown:fo,mask:po,"megaphone-fill":62595,megaphone:mo,"menu-app-fill":62597,"menu-app":62598,"menu-button-fill":62599,"menu-button-wide-fill":62600,"menu-button-wide":62601,"menu-button":62602,"menu-down":62603,"menu-up":62604,"mic-fill":62605,"mic-mute-fill":62606,"mic-mute":62607,mic:go,"minecart-loaded":62609,minecart:ho,moisture:bo,"moon-fill":62612,"moon-stars-fill":62613,"moon-stars":62614,moon:vo,"mouse-fill":62616,mouse:ko,"mouse2-fill":62618,mouse2:wo,"mouse3-fill":62620,mouse3:yo,"music-note-beamed":62622,"music-note-list":62623,"music-note":62624,"music-player-fill":62625,"music-player":62626,newspaper:xo,"node-minus-fill":62628,"node-minus":62629,"node-plus-fill":62630,"node-plus":62631,"nut-fill":62632,nut:$o,"octagon-fill":62634,"octagon-half":62635,octagon:_o,option:Po,outlet:So,"paint-bucket":62639,"palette-fill":62640,palette:Co,palette2:Do,paperclip:Oo,paragraph:Mo,"patch-check-fill":62645,"patch-check":62646,"patch-exclamation-fill":62647,"patch-exclamation":62648,"patch-minus-fill":62649,"patch-minus":62650,"patch-plus-fill":62651,"patch-plus":62652,"patch-question-fill":62653,"patch-question":62654,"pause-btn-fill":62655,"pause-btn":62656,"pause-circle-fill":62657,"pause-circle":62658,"pause-fill":62659,pause:qo,"peace-fill":62661,peace:Io,"pen-fill":62663,pen:To,"pencil-fill":62665,"pencil-square":62666,pencil:jo,"pentagon-fill":62668,"pentagon-half":62669,pentagon:Bo,"people-fill":62671,people:Ao,percent:Ro,"person-badge-fill":62674,"person-badge":62675,"person-bounding-box":62676,"person-check-fill":62677,"person-check":62678,"person-circle":62679,"person-dash-fill":62680,"person-dash":62681,"person-fill":62682,"person-lines-fill":62683,"person-plus-fill":62684,"person-plus":62685,"person-square":62686,"person-x-fill":62687,"person-x":62688,person:Lo,"phone-fill":62690,"phone-landscape-fill":62691,"phone-landscape":62692,"phone-vibrate-fill":62693,"phone-vibrate":62694,phone:Eo,"pie-chart-fill":62696,"pie-chart":62697,"pin-angle-fill":62698,"pin-angle":62699,"pin-fill":62700,pin:No,"pip-fill":62702,pip:Fo,"play-btn-fill":62704,"play-btn":62705,"play-circle-fill":62706,"play-circle":62707,"play-fill":62708,play:zo,"plug-fill":62710,plug:Ho,"plus-circle-dotted":62712,"plus-circle-fill":62713,"plus-circle":62714,"plus-square-dotted":62715,"plus-square-fill":62716,"plus-square":62717,plus:Yo,power:Go,"printer-fill":62720,printer:Wo,"puzzle-fill":62722,puzzle:Jo,"question-circle-fill":62724,"question-circle":62725,"question-diamond-fill":62726,"question-diamond":62727,"question-octagon-fill":62728,"question-octagon":62729,"question-square-fill":62730,"question-square":62731,question:Vo,rainbow:Uo,"receipt-cutoff":62734,receipt:Qo,"reception-0":62736,"reception-1":62737,"reception-2":62738,"reception-3":62739,"reception-4":62740,"record-btn-fill":62741,"record-btn":62742,"record-circle-fill":62743,"record-circle":62744,"record-fill":62745,record:Ko,"record2-fill":62747,record2:Zo,"reply-all-fill":62749,"reply-all":62750,"reply-fill":62751,reply:Xo,"rss-fill":62753,rss:ei,rulers:ti,"save-fill":62756,save:li,"save2-fill":62758,save2:si,scissors:oi,screwdriver:ii,search:ai,"segmented-nav":62763,server:ni,"share-fill":62765,share:ri,"shield-check":62767,"shield-exclamation":62768,"shield-fill-check":62769,"shield-fill-exclamation":62770,"shield-fill-minus":62771,"shield-fill-plus":62772,"shield-fill-x":62773,"shield-fill":62774,"shield-lock-fill":62775,"shield-lock":62776,"shield-minus":62777,"shield-plus":62778,"shield-shaded":62779,"shield-slash-fill":62780,"shield-slash":62781,"shield-x":62782,shield:di,"shift-fill":62784,shift:ci,"shop-window":62786,shop:ui,shuffle:fi,"signpost-2-fill":62789,"signpost-2":62790,"signpost-fill":62791,"signpost-split-fill":62792,"signpost-split":62793,signpost:pi,"sim-fill":62795,sim:mi,"skip-backward-btn-fill":62797,"skip-backward-btn":62798,"skip-backward-circle-fill":62799,"skip-backward-circle":62800,"skip-backward-fill":62801,"skip-backward":62802,"skip-end-btn-fill":62803,"skip-end-btn":62804,"skip-end-circle-fill":62805,"skip-end-circle":62806,"skip-end-fill":62807,"skip-end":62808,"skip-forward-btn-fill":62809,"skip-forward-btn":62810,"skip-forward-circle-fill":62811,"skip-forward-circle":62812,"skip-forward-fill":62813,"skip-forward":62814,"skip-start-btn-fill":62815,"skip-start-btn":62816,"skip-start-circle-fill":62817,"skip-start-circle":62818,"skip-start-fill":62819,"skip-start":62820,slack:gi,"slash-circle-fill":62822,"slash-circle":62823,"slash-square-fill":62824,"slash-square":62825,slash:hi,sliders:bi,smartwatch:vi,snow:ki,snow2:wi,snow3:yi,"sort-alpha-down-alt":62832,"sort-alpha-down":62833,"sort-alpha-up-alt":62834,"sort-alpha-up":62835,"sort-down-alt":62836,"sort-down":62837,"sort-numeric-down-alt":62838,"sort-numeric-down":62839,"sort-numeric-up-alt":62840,"sort-numeric-up":62841,"sort-up-alt":62842,"sort-up":62843,soundwave:xi,"speaker-fill":62845,speaker:$i,speedometer:_i,speedometer2:Pi,spellcheck:Si,"square-fill":62850,"square-half":62851,square:Ci,stack:Di,"star-fill":62854,"star-half":62855,star:Oi,stars:Mi,"stickies-fill":62858,stickies:qi,"sticky-fill":62860,sticky:Ii,"stop-btn-fill":62862,"stop-btn":62863,"stop-circle-fill":62864,"stop-circle":62865,"stop-fill":62866,stop:Ti,"stoplights-fill":62868,stoplights:ji,"stopwatch-fill":62870,stopwatch:Bi,subtract:Ai,"suit-club-fill":62873,"suit-club":62874,"suit-diamond-fill":62875,"suit-diamond":62876,"suit-heart-fill":62877,"suit-heart":62878,"suit-spade-fill":62879,"suit-spade":62880,"sun-fill":62881,sun:Ri,sunglasses:Li,"sunrise-fill":62884,sunrise:Ei,"sunset-fill":62886,sunset:Ni,"symmetry-horizontal":62888,"symmetry-vertical":62889,table:Fi,"tablet-fill":62891,"tablet-landscape-fill":62892,"tablet-landscape":62893,tablet:zi,"tag-fill":62895,tag:Hi,"tags-fill":62897,tags:Yi,telegram:Gi,"telephone-fill":62900,"telephone-forward-fill":62901,"telephone-forward":62902,"telephone-inbound-fill":62903,"telephone-inbound":62904,"telephone-minus-fill":62905,"telephone-minus":62906,"telephone-outbound-fill":62907,"telephone-outbound":62908,"telephone-plus-fill":62909,"telephone-plus":62910,"telephone-x-fill":62911,"telephone-x":62912,telephone:Wi,"terminal-fill":62914,terminal:Ji,"text-center":62916,"text-indent-left":62917,"text-indent-right":62918,"text-left":62919,"text-paragraph":62920,"text-right":62921,"textarea-resize":62922,"textarea-t":62923,textarea:Vi,"thermometer-half":62925,"thermometer-high":62926,"thermometer-low":62927,"thermometer-snow":62928,"thermometer-sun":62929,thermometer:Ui,"three-dots-vertical":62931,"three-dots":62932,"toggle-off":62933,"toggle-on":62934,"toggle2-off":62935,"toggle2-on":62936,toggles:Qi,toggles2:Ki,tools:Zi,tornado:Xi,"trash-fill":62941,trash:ea,"trash2-fill":62943,trash2:ta,"tree-fill":62945,tree:la,"triangle-fill":62947,"triangle-half":62948,triangle:sa,"trophy-fill":62950,trophy:oa,"tropical-storm":62952,"truck-flatbed":62953,truck:ia,tsunami:aa,"tv-fill":62956,tv:na,twitch:ra,twitter:da,"type-bold":62960,"type-h1":62961,"type-h2":62962,"type-h3":62963,"type-italic":62964,"type-strikethrough":62965,"type-underline":62966,type:ca,"ui-checks-grid":62968,"ui-checks":62969,"ui-radios-grid":62970,"ui-radios":62971,"umbrella-fill":62972,umbrella:ua,union:fa,"unlock-fill":62975,unlock:pa,"upc-scan":62977,upc:ma,upload:ga,"vector-pen":62980,"view-list":62981,"view-stacked":62982,"vinyl-fill":62983,vinyl:ha,voicemail:ba,"volume-down-fill":62986,"volume-down":62987,"volume-mute-fill":62988,"volume-mute":62989,"volume-off-fill":62990,"volume-off":62991,"volume-up-fill":62992,"volume-up":62993,vr:va,"wallet-fill":62995,wallet:ka,wallet2:wa,watch:ya,water:xa,whatsapp:$a,"wifi-1":63001,"wifi-2":63002,"wifi-off":63003,wifi:_a,wind:Pa,"window-dock":63006,"window-sidebar":63007,window:Sa,wrench:Ca,"x-circle-fill":63010,"x-circle":63011,"x-diamond-fill":63012,"x-diamond":63013,"x-octagon-fill":63014,"x-octagon":63015,"x-square-fill":63016,"x-square":63017,x:Da,youtube:Oa,"zoom-in":63020,"zoom-out":63021,bank:Ma,bank2:qa,"bell-slash-fill":63024,"bell-slash":63025,"cash-coin":63026,"check-lg":63027,coin:Ia,"currency-bitcoin":63029,"currency-dollar":63030,"currency-euro":63031,"currency-exchange":63032,"currency-pound":63033,"currency-yen":63034,"dash-lg":63035,"exclamation-lg":63036,"file-earmark-pdf-fill":63037,"file-earmark-pdf":63038,"file-pdf-fill":63039,"file-pdf":63040,"gender-ambiguous":63041,"gender-female":63042,"gender-male":63043,"gender-trans":63044,"headset-vr":63045,"info-lg":63046,mastodon:Ta,messenger:ja,"piggy-bank-fill":63049,"piggy-bank":63050,"pin-map-fill":63051,"pin-map":63052,"plus-lg":63053,"question-lg":63054,recycle:Ba,reddit:Aa,"safe-fill":63057,"safe2-fill":63058,safe2:Ra,"sd-card-fill":63060,"sd-card":63061,skype:La,"slash-lg":63063,translate:Ea,"x-lg":63065,safe:Na,apple:Fa,microsoft:za,windows:Ha,behance:Ya,dribbble:Ga,line:Wa,medium:Ja,paypal:Va,pinterest:Ua,signal:Qa,snapchat:Ka,spotify:Za,"stack-overflow":63079,strava:Xa,wordpress:en,vimeo:tn,activity:ln,"easel2-fill":63084,easel2:sn,"easel3-fill":63086,easel3:on,fan:an,fingerprint:nn,"graph-down-arrow":63090,"graph-up-arrow":63091,hypnotize:rn,magic:dn,"person-rolodex":63094,"person-video":63095,"person-video2":63096,"person-video3":63097,"person-workspace":63098,radioactive:cn,"webcam-fill":63100,webcam:un,"yin-yang":63102,"bandaid-fill":63104,bandaid:fn,bluetooth:pn,"body-text":63107,boombox:mn,boxes:gn,"dpad-fill":63110,dpad:hn,"ear-fill":63112,ear:bn,"envelope-check-fill":63115,"envelope-check":63116,"envelope-dash-fill":63118,"envelope-dash":63119,"envelope-exclamation-fill":63121,"envelope-exclamation":63122,"envelope-plus-fill":63123,"envelope-plus":63124,"envelope-slash-fill":63126,"envelope-slash":63127,"envelope-x-fill":63129,"envelope-x":63130,"explicit-fill":63131,explicit:vn,git:kn,infinity:wn,"list-columns-reverse":63135,"list-columns":63136,meta:yn,"nintendo-switch":63140,"pc-display-horizontal":63141,"pc-display":63142,"pc-horizontal":63143,pc:xn,playstation:$n,"plus-slash-minus":63146,"projector-fill":63147,projector:_n,"qr-code-scan":63149,"qr-code":63150,quora:Pn,quote:Sn,robot:Cn,"send-check-fill":63154,"send-check":63155,"send-dash-fill":63156,"send-dash":63157,"send-exclamation-fill":63159,"send-exclamation":63160,"send-fill":63161,"send-plus-fill":63162,"send-plus":63163,"send-slash-fill":63164,"send-slash":63165,"send-x-fill":63166,"send-x":63167,send:Dn,steam:On,"terminal-dash":63171,"terminal-plus":63172,"terminal-split":63173,"ticket-detailed-fill":63174,"ticket-detailed":63175,"ticket-fill":63176,"ticket-perforated-fill":63177,"ticket-perforated":63178,ticket:Mn,tiktok:qn,"window-dash":63181,"window-desktop":63182,"window-fullscreen":63183,"window-plus":63184,"window-split":63185,"window-stack":63186,"window-x":63187,xbox:In,ethernet:Tn,"hdmi-fill":63190,hdmi:jn,"usb-c-fill":63192,"usb-c":63193,"usb-fill":63194,"usb-plug-fill":63195,"usb-plug":63196,"usb-symbol":63197,usb:Bn,"boombox-fill":63199,displayport:An,"gpu-card":63202,memory:Rn,"modem-fill":63204,modem:Ln,"motherboard-fill":63206,motherboard:En,"optical-audio-fill":63208,"optical-audio":63209,"pci-card":63210,"router-fill":63211,router:Nn,"thunderbolt-fill":63215,thunderbolt:Fn,"usb-drive-fill":63217,"usb-drive":63218,"usb-micro-fill":63219,"usb-micro":63220,"usb-mini-fill":63221,"usb-mini":63222,"cloud-haze2":63223,"device-hdd-fill":63224,"device-hdd":63225,"device-ssd-fill":63226,"device-ssd":63227,"displayport-fill":63228,"mortarboard-fill":63229,mortarboard:zn,"terminal-x":63231,"arrow-through-heart-fill":63232,"arrow-through-heart":63233,"badge-sd-fill":63234,"badge-sd":63235,"bag-heart-fill":63236,"bag-heart":63237,"balloon-fill":63238,"balloon-heart-fill":63239,"balloon-heart":63240,balloon:Hn,"box2-fill":63242,"box2-heart-fill":63243,"box2-heart":63244,box2:Yn,"braces-asterisk":63246,"calendar-heart-fill":63247,"calendar-heart":63248,"calendar2-heart-fill":63249,"calendar2-heart":63250,"chat-heart-fill":63251,"chat-heart":63252,"chat-left-heart-fill":63253,"chat-left-heart":63254,"chat-right-heart-fill":63255,"chat-right-heart":63256,"chat-square-heart-fill":63257,"chat-square-heart":63258,"clipboard-check-fill":63259,"clipboard-data-fill":63260,"clipboard-fill":63261,"clipboard-heart-fill":63262,"clipboard-heart":63263,"clipboard-minus-fill":63264,"clipboard-plus-fill":63265,"clipboard-pulse":63266,"clipboard-x-fill":63267,"clipboard2-check-fill":63268,"clipboard2-check":63269,"clipboard2-data-fill":63270,"clipboard2-data":63271,"clipboard2-fill":63272,"clipboard2-heart-fill":63273,"clipboard2-heart":63274,"clipboard2-minus-fill":63275,"clipboard2-minus":63276,"clipboard2-plus-fill":63277,"clipboard2-plus":63278,"clipboard2-pulse-fill":63279,"clipboard2-pulse":63280,"clipboard2-x-fill":63281,"clipboard2-x":63282,clipboard2:Gn,"emoji-kiss-fill":63284,"emoji-kiss":63285,"envelope-heart-fill":63286,"envelope-heart":63287,"envelope-open-heart-fill":63288,"envelope-open-heart":63289,"envelope-paper-fill":63290,"envelope-paper-heart-fill":63291,"envelope-paper-heart":63292,"envelope-paper":63293,"filetype-aac":63294,"filetype-ai":63295,"filetype-bmp":63296,"filetype-cs":63297,"filetype-css":63298,"filetype-csv":63299,"filetype-doc":63300,"filetype-docx":63301,"filetype-exe":63302,"filetype-gif":63303,"filetype-heic":63304,"filetype-html":63305,"filetype-java":63306,"filetype-jpg":63307,"filetype-js":63308,"filetype-jsx":63309,"filetype-key":63310,"filetype-m4p":63311,"filetype-md":63312,"filetype-mdx":63313,"filetype-mov":63314,"filetype-mp3":63315,"filetype-mp4":63316,"filetype-otf":63317,"filetype-pdf":63318,"filetype-php":63319,"filetype-png":63320,"filetype-ppt":63322,"filetype-psd":63323,"filetype-py":63324,"filetype-raw":63325,"filetype-rb":63326,"filetype-sass":63327,"filetype-scss":63328,"filetype-sh":63329,"filetype-svg":63330,"filetype-tiff":63331,"filetype-tsx":63332,"filetype-ttf":63333,"filetype-txt":63334,"filetype-wav":63335,"filetype-woff":63336,"filetype-xls":63338,"filetype-xml":63339,"filetype-yml":63340,"heart-arrow":63341,"heart-pulse-fill":63342,"heart-pulse":63343,"heartbreak-fill":63344,heartbreak:Wn,hearts:Jn,"hospital-fill":63347,hospital:Vn,"house-heart-fill":63349,"house-heart":63350,incognito:Un,"magnet-fill":63352,magnet:Qn,"person-heart":63354,"person-hearts":63355,"phone-flip":63356,plugin:Kn,"postage-fill":63358,"postage-heart-fill":63359,"postage-heart":63360,postage:Zn,"postcard-fill":63362,"postcard-heart-fill":63363,"postcard-heart":63364,postcard:Xn,"search-heart-fill":63366,"search-heart":63367,"sliders2-vertical":63368,sliders2:er,"trash3-fill":63370,trash3:tr,valentine:lr,valentine2:sr,"wrench-adjustable-circle-fill":63374,"wrench-adjustable-circle":63375,"wrench-adjustable":63376,"filetype-json":63377,"filetype-pptx":63378,"filetype-xlsx":63379,"1-circle-fill":63382,"1-circle":63383,"1-square-fill":63384,"1-square":63385,"2-circle-fill":63388,"2-circle":63389,"2-square-fill":63390,"2-square":63391,"3-circle-fill":63394,"3-circle":63395,"3-square-fill":63396,"3-square":63397,"4-circle-fill":63400,"4-circle":63401,"4-square-fill":63402,"4-square":63403,"5-circle-fill":63406,"5-circle":63407,"5-square-fill":63408,"5-square":63409,"6-circle-fill":63412,"6-circle":63413,"6-square-fill":63414,"6-square":63415,"7-circle-fill":63418,"7-circle":63419,"7-square-fill":63420,"7-square":63421,"8-circle-fill":63424,"8-circle":63425,"8-square-fill":63426,"8-square":63427,"9-circle-fill":63430,"9-circle":63431,"9-square-fill":63432,"9-square":63433,"airplane-engines-fill":63434,"airplane-engines":63435,"airplane-fill":63436,airplane:or,alexa:ir,alipay:ar,android:nr,android2:rr,"box-fill":63442,"box-seam-fill":63443,"browser-chrome":63444,"browser-edge":63445,"browser-firefox":63446,"browser-safari":63447,"c-circle-fill":63450,"c-circle":63451,"c-square-fill":63452,"c-square":63453,"capsule-pill":63454,capsule:dr,"car-front-fill":63456,"car-front":63457,"cassette-fill":63458,cassette:cr,"cc-circle-fill":63462,"cc-circle":63463,"cc-square-fill":63464,"cc-square":63465,"cup-hot-fill":63466,"cup-hot":63467,"currency-rupee":63468,dropbox:ur,escape:63470,"fast-forward-btn-fill":63471,"fast-forward-btn":63472,"fast-forward-circle-fill":63473,"fast-forward-circle":63474,"fast-forward-fill":63475,"fast-forward":63476,"filetype-sql":63477,fire:fr,"google-play":63479,"h-circle-fill":63482,"h-circle":63483,"h-square-fill":63484,"h-square":63485,indent:pr,"lungs-fill":63487,lungs:mr,"microsoft-teams":63489,"p-circle-fill":63492,"p-circle":63493,"p-square-fill":63494,"p-square":63495,"pass-fill":63496,pass:gr,prescription:hr,prescription2:br,"r-circle-fill":63502,"r-circle":63503,"r-square-fill":63504,"r-square":63505,"repeat-1":63506,repeat:vr,"rewind-btn-fill":63508,"rewind-btn":63509,"rewind-circle-fill":63510,"rewind-circle":63511,"rewind-fill":63512,rewind:kr,"train-freight-front-fill":63514,"train-freight-front":63515,"train-front-fill":63516,"train-front":63517,"train-lightrail-front-fill":63518,"train-lightrail-front":63519,"truck-front-fill":63520,"truck-front":63521,ubuntu:wr,unindent:yr,unity:xr,"universal-access-circle":63525,"universal-access":63526,virus:$r,virus2:_r,wechat:Pr,yelp:Sr,"sign-stop-fill":63531,"sign-stop-lights-fill":63532,"sign-stop-lights":63533,"sign-stop":63534,"sign-turn-left-fill":63535,"sign-turn-left":63536,"sign-turn-right-fill":63537,"sign-turn-right":63538,"sign-turn-slight-left-fill":63539,"sign-turn-slight-left":63540,"sign-turn-slight-right-fill":63541,"sign-turn-slight-right":63542,"sign-yield-fill":63543,"sign-yield":63544,"ev-station-fill":63545,"ev-station":63546,"fuel-pump-diesel-fill":63547,"fuel-pump-diesel":63548,"fuel-pump-fill":63549,"fuel-pump":63550,"0-circle-fill":63551,"0-circle":63552,"0-square-fill":63553,"0-square":63554,"rocket-fill":63555,"rocket-takeoff-fill":63556,"rocket-takeoff":63557,rocket:Cr,stripe:Dr,subscript:Or,superscript:Mr,trello:qr,"envelope-at-fill":63563,"envelope-at":63564,regex:Ir,"text-wrap":63566,"sign-dead-end-fill":63567,"sign-dead-end":63568,"sign-do-not-enter-fill":63569,"sign-do-not-enter":63570,"sign-intersection-fill":63571,"sign-intersection-side-fill":63572,"sign-intersection-side":63573,"sign-intersection-t-fill":63574,"sign-intersection-t":63575,"sign-intersection-y-fill":63576,"sign-intersection-y":63577,"sign-intersection":63578,"sign-merge-left-fill":63579,"sign-merge-left":63580,"sign-merge-right-fill":63581,"sign-merge-right":63582,"sign-no-left-turn-fill":63583,"sign-no-left-turn":63584,"sign-no-parking-fill":63585,"sign-no-parking":63586,"sign-no-right-turn-fill":63587,"sign-no-right-turn":63588,"sign-railroad-fill":63589,"sign-railroad":63590,"building-add":63591,"building-check":63592,"building-dash":63593,"building-down":63594,"building-exclamation":63595,"building-fill-add":63596,"building-fill-check":63597,"building-fill-dash":63598,"building-fill-down":63599,"building-fill-exclamation":63600,"building-fill-gear":63601,"building-fill-lock":63602,"building-fill-slash":63603,"building-fill-up":63604,"building-fill-x":63605,"building-fill":63606,"building-gear":63607,"building-lock":63608,"building-slash":63609,"building-up":63610,"building-x":63611,"buildings-fill":63612,buildings:Tr,"bus-front-fill":63614,"bus-front":63615,"ev-front-fill":63616,"ev-front":63617,"globe-americas":63618,"globe-asia-australia":63619,"globe-central-south-asia":63620,"globe-europe-africa":63621,"house-add-fill":63622,"house-add":63623,"house-check-fill":63624,"house-check":63625,"house-dash-fill":63626,"house-dash":63627,"house-down-fill":63628,"house-down":63629,"house-exclamation-fill":63630,"house-exclamation":63631,"house-gear-fill":63632,"house-gear":63633,"house-lock-fill":63634,"house-lock":63635,"house-slash-fill":63636,"house-slash":63637,"house-up-fill":63638,"house-up":63639,"house-x-fill":63640,"house-x":63641,"person-add":63642,"person-down":63643,"person-exclamation":63644,"person-fill-add":63645,"person-fill-check":63646,"person-fill-dash":63647,"person-fill-down":63648,"person-fill-exclamation":63649,"person-fill-gear":63650,"person-fill-lock":63651,"person-fill-slash":63652,"person-fill-up":63653,"person-fill-x":63654,"person-gear":63655,"person-lock":63656,"person-slash":63657,"person-up":63658,scooter:jr,"taxi-front-fill":63660,"taxi-front":63661,amd:Br,"database-add":63663,"database-check":63664,"database-dash":63665,"database-down":63666,"database-exclamation":63667,"database-fill-add":63668,"database-fill-check":63669,"database-fill-dash":63670,"database-fill-down":63671,"database-fill-exclamation":63672,"database-fill-gear":63673,"database-fill-lock":63674,"database-fill-slash":63675,"database-fill-up":63676,"database-fill-x":63677,"database-fill":63678,"database-gear":63679,"database-lock":63680,"database-slash":63681,"database-up":63682,"database-x":63683,database:Ar,"houses-fill":63685,houses:Rr,nvidia:Lr,"person-vcard-fill":63688,"person-vcard":63689,"sina-weibo":63690,"tencent-qq":63691,wikipedia:Er,"alphabet-uppercase":62117,alphabet:Nr,amazon:Fr,"arrows-collapse-vertical":63120,"arrows-expand-vertical":63125,"arrows-vertical":63128,arrows:zr,"ban-fill":63139,ban:Hr,bing:Yr,cake:Gr,cake2:Wr,cookie:Jr,copy:Vr,crosshair:Ur,crosshair2:Qr,"emoji-astonished-fill":63381,"emoji-astonished":63386,"emoji-grimace-fill":63387,"emoji-grimace":63392,"emoji-grin-fill":63393,"emoji-grin":63398,"emoji-surprise-fill":63399,"emoji-surprise":63404,"emoji-tear-fill":63405,"emoji-tear":63410,"envelope-arrow-down-fill":63411,"envelope-arrow-down":63416,"envelope-arrow-up-fill":63417,"envelope-arrow-up":63422,feather:Kr,feather2:Zr,"floppy-fill":63429,floppy:Xr,"floppy2-fill":63449,floppy2:ed,gitlab:td,highlighter:ld,"marker-tip":63490,"nvme-fill":63491,nvme:sd,opencollective:od,"pci-card-network":63693,"pci-card-sound":63694,radar:id,"send-arrow-down-fill":63696,"send-arrow-down":63697,"send-arrow-up-fill":63698,"send-arrow-up":63699,"sim-slash-fill":63700,"sim-slash":63701,sourceforge:ad,substack:nd,"threads-fill":63704,threads:rd,transparency:dd,"twitter-x":63707,"type-h4":63708,"type-h5":63709,"type-h6":63710,"backpack-fill":63711,backpack:cd,"backpack2-fill":63713,backpack2:ud,"backpack3-fill":63715,backpack3:fd,"backpack4-fill":63717,backpack4:pd,brilliance:md,"cake-fill":63720,"cake2-fill":63721,"duffle-fill":63722,duffle:gd,exposure:hd,"gender-neuter":63725,highlights:bd,"luggage-fill":63727,luggage:vd,"mailbox-flag":63729,"mailbox2-flag":63730,"noise-reduction":63731,"passport-fill":63732,passport:kd,"person-arms-up":63734,"person-raised-hand":63735,"person-standing-dress":63736,"person-standing":63737,"person-walking":63738,"person-wheelchair":63739,shadows:wd,"suitcase-fill":63741,"suitcase-lg-fill":63742,"suitcase-lg":63743,suitcase:yd,"suitcase2-fill":63745,suitcase2:xd,vignette:$d,bluesky:_d,tux:Pd,"beaker-fill":63749,beaker:Sd,"flask-fill":63751,"flask-florence-fill":63752,"flask-florence":63753,flask:Cd,"leaf-fill":63755,leaf:Dd,"measuring-cup-fill":63757,"measuring-cup":63758,"unlock2-fill":63759,unlock2:Od,"battery-low":63761,anthropic:Md,"apple-music":63763,claude:qd,openai:Id,perplexity:Td,css:jd,javascript:Bd,typescript:Ad,"fork-knife":63770,"globe-americas-fill":63771,"globe-asia-australia-fill":63772,"globe-central-south-asia-fill":63773,"globe-europe-africa-fill":63774},Rd={class:"border rounded-3 p-2"},Ld={class:"align-items-center overflow-scroll d-flex gap-2 position-relative"},Ed=["aria-label"],Nd={key:1,style:{"white-space":"nowrap"}},Fd=["disabled"],zd=Q({__name:"peerTagSetting",props:["group","edit","groupId"],emits:["delete","iconPickerOpen","colorPickerOpen","toggle"],setup(l,{emit:t}){const a=ne(),s=l,h=t,r=q(s.group.GroupName),d=()=>{a.Filter.HiddenTags.includes(s.groupId)?a.Filter.HiddenTags=a.Filter.HiddenTags.filter(g=>g!==s.groupId):a.Filter.HiddenTags.push(s.groupId)};return(g,c)=>(i(),m("div",Rd,[e("div",Ld,[e("button",{onClick:c[0]||(c[0]=n=>h("iconPickerOpen")),"aria-label":"Pick icon button",class:L([{disabled:!l.edit},"d-flex align-items-center p-2 btn btn-sm border rounded-2"])},[l.group.Icon?(i(),m("i",{key:0,class:L(["bi","bi-"+l.group.Icon]),"aria-label":l.group.Icon},null,10,Ed)):(i(),m("span",Nd,[f(S,{t:"No Icon"})]))],2),e("button",{class:L([{disabled:!l.edit},"d-flex align-items-center p-2 btn btn-sm border rounded-2"]),"aria-label":"Pick color button",onClick:c[1]||(c[1]=n=>h("colorPickerOpen")),style:me({"background-color":l.group.BackgroundColor,color:B(a).colorText(l.group.BackgroundColor)})},c[6]||(c[6]=[e("i",{class:"bi bi-eyedropper"},null,-1)]),6),ue(e("input",{disabled:!l.edit,"onUpdate:modelValue":c[2]||(c[2]=n=>r.value=n),onChange:c[3]||(c[3]=n=>l.group.GroupName=r.value),placeholder:"Tag Name",class:"form-control form-control-sm p-2 rounded-2 w-100"},null,40,Fd),[[xe,r.value]]),l.edit?(i(),m("button",{key:0,"aria-label":"Delete Tag Button",onClick:c[4]||(c[4]=n=>h("delete")),class:"rounded-2 border p-2 btn btn-sm btn-outline-danger"},c[7]||(c[7]=[e("i",{class:"bi bi-trash-fill"},null,-1)]))):(i(),m("button",{key:1,"aria-label":"Show / Hide Button",style:{"white-space":"nowrap"},class:L([{active:!B(a).Filter.HiddenTags.includes(l.groupId)},"rounded-2 p-2 btn btn-sm btn-outline-primary"]),onClick:c[5]||(c[5]=n=>d())},[e("i",{class:L(["bi",[B(a).Filter.HiddenTags.includes(l.groupId)?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)],2))])]))}}),Hd={class:"w-100 bg-body top-0 border rounded-2"},Yd={class:"p-2 d-flex align-items-center gap-2 border-bottom"},Gd={class:"p-2 d-grid icon-grid",style:{"grid-template-columns":"repeat(auto-fit, minmax(30px, 30px))",gap:"3px","max-height":"300px","overflow-y":"scroll"}},Wd=["onClick"],Jd={class:"p-2 border-top d-flex gap-2"},Vd=Q({__name:"peerTagIconPicker",props:["group"],emits:["close","select"],setup(l,{emit:t}){const a=t;be(()=>{let r=document.querySelector(".icon-grid div.active");r&&(r.parentElement.scrollTop=document.querySelector(".icon-grid div.active").offsetTop-60)});const s=q(""),h=E(()=>s.value?[...Object.keys(ye).filter(r=>r.includes(s.value.toLowerCase()))]:Object.keys(ye));return(r,d)=>(i(),m("div",Hd,[e("div",Yd,[d[3]||(d[3]=e("label",null,[e("i",{class:"bi bi-search"})],-1)),ue(e("input",{"onUpdate:modelValue":d[0]||(d[0]=g=>s.value=g),placeholder:"Search Icon",class:"form-control form-control-sm rounded-2"},null,512),[[xe,s.value]])]),e("div",Gd,[(i(!0),m(z,null,Y(h.value,g=>(i(),m("div",{class:L(["rounded-1 border icon d-flex",{"text-bg-success active":l.group.Icon===g}]),style:{cursor:"pointer"},key:g,onClick:c=>l.group.Icon=g},[e("i",{class:L(["bi m-auto","bi-"+g])},null,2)],10,Wd))),128))]),e("div",Jd,[e("button",{onClick:d[1]||(d[1]=g=>l.group.Icon=""),class:"btn btn-sm btn-secondary rounded-2 ms-auto"}," Remove Icon "),e("button",{class:"btn btn-sm btn-success rounded-2",onClick:d[2]||(d[2]=g=>a("close"))}," Done ")])]))}}),Ud=Z(Vd,[["__scopeId","data-v-8d313844"]]),Qd={class:"w-100 bg-body top-0 border rounded-2"},Kd={class:"p-2 d-grid icon-grid",style:{"grid-template-columns":"repeat(auto-fit, minmax(30px, 30px))",gap:"3px","max-height":"300px","overflow-y":"scroll"}},Zd=["aria-label","onClick"],Xd={class:"p-2 border-top d-flex gap-2"},ec=Q({__name:"peerTagColorPicker",props:["colors","group"],emits:["close","select",""],setup(l,{emit:t}){const a=t;q("");const s=ne();return be(()=>{let h=document.querySelector(".icon-grid div.active");h&&(h.parentElement.scrollTop=document.querySelector(".icon-grid div.active").offsetTop-60)}),(h,r)=>(i(),m("div",Qd,[e("div",Kd,[(i(!0),m(z,null,Y(l.colors,(d,g)=>(i(),m("div",{class:L(["rounded-1 border icon d-flex",{active:l.group.BackgroundColor===d}]),style:me([{cursor:"pointer"},{"background-color":d}]),"aria-label":g,key:d,onClick:c=>l.group.BackgroundColor=d},[l.group.BackgroundColor===d?(i(),m("i",{key:0,style:me({color:B(s).colorText(d)}),class:"bi bi-check-circle m-auto"},null,4)):M("",!0)],14,Zd))),128))]),e("div",Xd,[e("button",{class:"btn btn-sm btn-success rounded-2 ms-auto",onClick:r[0]||(r[0]=d=>a("close"))}," Done ")])]))}}),tc=Z(ec,[["__scopeId","data-v-23f6ff04"]]),lc={class:"card shadow rounded-3",id:"peerTag"},sc={class:"card-header"},oc={class:"form-check form-switch"},ic={class:"form-check-label",for:"showAllPeers"},ac={class:"card-body p-2"},nc={key:0},rc={key:0,class:"text-center text-muted"},dc={key:1,class:"d-flex flex-column gap-2"},cc={class:"card-footer p-2 d-flex gap-2"},uc=Q({__name:"peerTag",props:["configuration"],emits:["close","update"],setup(l,{emit:t}){const a={"blue-100":"#cfe2ff","blue-200":"#9ec5fe","blue-300":"#6ea8fe","blue-400":"#3d8bfd","blue-500":"#0d6efd","blue-600":"#0a58ca","blue-700":"#084298","blue-800":"#052c65","blue-900":"#031633","indigo-100":"#e0cffc","indigo-200":"#c29ffa","indigo-300":"#a370f7","indigo-400":"#8540f5","indigo-500":"#6610f2","indigo-600":"#520dc2","indigo-700":"#3d0a91","indigo-800":"#290661","indigo-900":"#140330","purple-100":"#e2d9f3","purple-200":"#c5b3e6","purple-300":"#a98eda","purple-400":"#8c68cd","purple-500":"#6f42c1","purple-600":"#59359a","purple-700":"#432874","purple-800":"#2c1a4d","purple-900":"#160d27","pink-100":"#f7d6e6","pink-200":"#efadce","pink-300":"#e685b5","pink-400":"#de5c9d","pink-500":"#d63384","pink-600":"#ab296a","pink-700":"#801f4f","pink-800":"#561435","pink-900":"#2b0a1a","red-100":"#f8d7da","red-200":"#f1aeb5","red-300":"#ea868f","red-400":"#e35d6a","red-500":"#dc3545","red-600":"#b02a37","red-700":"#842029","red-800":"#58151c","red-900":"#2c0b0e","orange-100":"#ffe5d0","orange-200":"#fecba1","orange-300":"#feb272","orange-400":"#fd9843","orange-500":"#fd7e14","orange-600":"#ca6510","orange-700":"#984c0c","orange-800":"#653208","orange-900":"#331904","yellow-100":"#fff3cd","yellow-200":"#ffe69c","yellow-300":"#ffda6a","yellow-400":"#ffcd39","yellow-500":"#ffc107","yellow-600":"#cc9a06","yellow-700":"#997404","yellow-800":"#664d03","yellow-900":"#332701","green-100":"#d1e7dd","green-200":"#a3cfbb","green-300":"#75b798","green-400":"#479f76","green-500":"#198754","green-600":"#146c43","green-700":"#0f5132","green-800":"#0a3622","green-900":"#051b11","teal-100":"#d2f4ea","teal-200":"#a6e9d5","teal-300":"#79dfc1","teal-400":"#4dd4ac","teal-500":"#20c997","teal-600":"#1aa179","teal-700":"#13795b","teal-800":"#0d503c","teal-900":"#06281e","cyan-100":"#cff4fc","cyan-200":"#9eeaf9","cyan-300":"#6edff6","cyan-400":"#3dd5f3","cyan-500":"#0dcaf0","cyan-600":"#0aa2c0","cyan-700":"#087990","cyan-800":"#055160","cyan-900":"#032830","gray-100":"#f8f9fa","gray-200":"#e9ecef","gray-300":"#dee2e6","gray-400":"#ced4da","gray-500":"#adb5bd","gray-600":"#6c757d","gray-700":"#495057","gray-800":"#343a40","gray-900":"#212529",white:"#fff",black:"#000"},s=ne(),h=l,r=De({...h.configuration.Info.PeerGroups}),d=()=>{r[Ue().toString()]={GroupName:"",Description:"",BackgroundColor:g(),Icon:c(),Peers:[]}},g=()=>{const x=Object.keys(a),u=Math.floor(Math.random()*x.length)+1;return a[x[u]]},c=()=>{const x=Object.keys(ye),u=Math.floor(Math.random()*x.length)+1;return x[u]},n=q(!1),y=q(!1),A=q(""),_=t;ee(()=>r,x=>{X("/api/updateWireguardConfigurationInfo",{Name:h.configuration.Name,Key:"PeerGroups",Value:x},u=>{u.status&&_("update",r)})},{deep:!0});const b=q(!1);return(x,u)=>(i(),m("div",lc,[e("div",sc,[e("div",oc,[ue(e("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"showAllPeers","onUpdate:modelValue":u[0]||(u[0]=p=>B(s).Filter.ShowAllPeersWhenHiddenTags=p)},null,512),[[Oe,B(s).Filter.ShowAllPeersWhenHiddenTags]]),e("label",ic,[e("small",null,[f(S,{t:"Show All Peers"})])])])]),e("div",ac,[f(re,{name:"zoom",mode:"out-in"},{default:U(()=>[!n.value&&!y.value?(i(),m("div",nc,[Object.keys(r).length===0?(i(),m("div",rc,[e("small",null,[f(S,{t:"No tag"})])])):(i(),m("div",dc,[f(ge,{name:"slide-fade"},{default:U(()=>[(i(!0),m(z,null,Y(r,(p,P)=>(i(),I(zd,{groupId:P,onDelete:O=>{delete r[P],B(s).Filter.HiddenTags=B(s).Filter.HiddenTags.filter(C=>C!==P)},onColorPickerOpen:O=>{y.value=!0,A.value=P},onIconPickerOpen:O=>{n.value=!0,A.value=P},key:P,edit:b.value,group:p},null,8,["groupId","onDelete","onColorPickerOpen","onIconPickerOpen","edit","group"]))),128))]),_:1})]))])):n.value?(i(),I(Ud,{key:1,onClose:u[1]||(u[1]=p=>n.value=!1),group:r[A.value]},null,8,["group"])):y.value?(i(),I(tc,{key:2,colors:a,onClose:u[2]||(u[2]=p=>y.value=!1),group:r[A.value]},null,8,["group"])):M("",!0)]),_:1})]),e("div",cc,[b.value?(i(),m(z,{key:1},[e("button",{onClick:d,class:"btn btn-sm bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3"},[e("small",null,[u[7]||(u[7]=e("i",{class:"bi bi-plus-lg me-2"},null,-1)),f(S,{t:"Tag"})])]),e("button",{onClick:u[5]||(u[5]=p=>b.value=!1),class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3 ms-auto"},[e("small",null,[f(S,{t:"Done"})])])],64)):(i(),m(z,{key:0},[e("button",{onClick:u[3]||(u[3]=p=>_("close")),class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3"},[e("small",null,[f(S,{t:"Close"})])]),e("button",{onClick:u[4]||(u[4]=p=>b.value=!0),class:"btn btn-sm bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3 ms-auto"},[e("small",null,[u[6]||(u[6]=e("i",{class:"bi bi-pen me-2"},null,-1)),f(S,{t:"Edit"})])])],64))])]))}}),fc=Z(uc,[["__scopeId","data-v-ab3e5c4e"]]),pc={name:"peerSearch",components:{PeerTag:fc,LocaleText:S},setup(){const l=oe(),t=ne();return{store:l,wireguardConfigurationStore:t}},props:{configuration:Object,displayTags:Array},data(){return{sort:{status:H("Status"),name:H("Name"),allowed_ip:H("Allowed IPs"),restricted:H("Restricted")},interval:{5e3:H("5 Seconds"),1e4:H("10 Seconds"),3e4:H("30 Seconds"),6e4:H("1 Minutes")},display:{grid:H("Grid"),list:H("List")},searchString:"",searchStringTimeout:void 0,showDisplaySettings:!1,showMoreSettings:!1,tagManager:!1}},methods:{updateSort(l){X("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_sort",value:l},t=>{t.status&&this.store.getConfiguration()})},updateRefreshInterval(l){X("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:l},t=>{t.status&&this.store.getConfiguration()})},updateDisplay(l){X("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_peer_list_display",value:l},t=>{t.status&&this.store.getConfiguration()})},downloadAllPeer(){le(`/api/downloadAllPeers/${this.configuration.Name}`,{},l=>{l.data.forEach(t=>{t.fileName=t.fileName+".conf"}),window.wireguard.generateZipFiles(l,this.configuration.Name)})}}},mc={class:"d-flex flex-column gap-2 my-4"},gc={class:"d-flex gap-2 peerSearchContainer"},hc={class:"dropdown"},bc={"data-bs-toggle":"dropdown",class:"btn w-100 btn-sm text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle position-relative"},vc={class:"badge text-bg-primary ms-2"},kc={class:"dropdown-menu rounded-3"},wc=["onClick"],yc={class:"ms-auto"},xc={key:0,class:"bi bi-check-circle-fill"},$c={class:"dropdown"},_c={"data-bs-toggle":"dropdown",class:"btn btn-sm w-100 text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle position-relative"},Pc={class:"badge text-bg-primary ms-2"},Sc={class:"dropdown-menu rounded-3"},Cc=["onClick"],Dc={class:"ms-auto"},Oc={key:0,class:"bi bi-check-circle-fill"},Mc={class:"dropdown"},qc={"data-bs-toggle":"dropdown",class:"btn btn-sm w-100 text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle position-relative"},Ic={class:"badge text-bg-primary ms-2"},Tc={class:"dropdown-menu rounded-3"},jc=["onClick"],Bc={class:"ms-auto"},Ac={key:0,class:"bi bi-check-circle-fill"},Rc={class:"position-relative"};function Lc(l,t,a,s,h,r){const d=te("LocaleText"),g=te("PeerTag");return i(),m("div",mc,[e("div",gc,[e("div",hc,[e("button",bc,[t[7]||(t[7]=e("i",{class:"bi bi-sort-up me-2"},null,-1)),f(d,{t:"Sort By"}),e("span",vc,D(this.sort[s.store.Configuration.Server.dashboard_sort]),1)]),e("ul",kc,[(i(!0),m(z,null,Y(this.sort,(c,n)=>(i(),m("li",null,[e("button",{class:"dropdown-item d-flex align-items-center",onClick:y=>this.updateSort(n)},[e("small",null,D(c),1),e("small",yc,[s.store.Configuration.Server.dashboard_sort===n?(i(),m("i",xc)):M("",!0)])],8,wc)]))),256))])]),e("div",$c,[e("button",_c,[t[8]||(t[8]=e("i",{class:"bi bi-arrow-repeat me-2"},null,-1)),f(d,{t:"Refresh Interval"}),e("span",Pc,D(this.interval[s.store.Configuration.Server.dashboard_refresh_interval]),1)]),e("ul",Sc,[(i(!0),m(z,null,Y(this.interval,(c,n)=>(i(),m("li",null,[e("button",{class:"dropdown-item d-flex align-items-center",onClick:y=>this.updateRefreshInterval(n)},[e("small",null,D(c),1),e("small",Dc,[s.store.Configuration.Server.dashboard_refresh_interval===n?(i(),m("i",Oc)):M("",!0)])],8,Cc)]))),256))])]),e("div",Mc,[e("button",qc,[e("i",{class:L(["bi me-2","bi-"+s.store.Configuration.Server.dashboard_peer_list_display])},null,2),f(d,{t:"Display"}),e("span",Ic,D(this.display[s.store.Configuration.Server.dashboard_peer_list_display]),1)]),e("ul",Tc,[(i(!0),m(z,null,Y(this.display,(c,n)=>(i(),m("li",null,[e("button",{class:"dropdown-item d-flex align-items-center",onClick:y=>this.updateDisplay(n)},[e("small",null,D(c),1),e("small",Bc,[s.store.Configuration.Server.dashboard_peer_list_display===n?(i(),m("i",Ac)):M("",!0)])],8,jc)]))),256))])]),e("div",Rc,[e("button",{onClick:t[0]||(t[0]=c=>h.tagManager=!h.tagManager),class:"btn btn-sm w-100 text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle position-relative"},[t[9]||(t[9]=e("i",{class:"bi me-2 bi-tag"},null,-1)),f(d,{t:"Tags"})]),f(re,{name:"slide-fade"},{default:U(()=>[this.tagManager?(i(),I(g,{key:0,onUpdate:t[1]||(t[1]=c=>a.configuration.Info.PeerGroups=c),onClose:t[2]||(t[2]=c=>this.tagManager=!1),configuration:a.configuration},null,8,["configuration"])):M("",!0)]),_:1})]),e("button",{class:"btn btn-sm text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle ms-lg-auto",onClick:t[3]||(t[3]=c=>this.$emit("search"))},[t[10]||(t[10]=e("i",{class:"bi bi-search me-2"},null,-1)),f(d,{t:"Search"})]),e("button",{class:"btn btn-sm text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle",onClick:t[4]||(t[4]=c=>this.downloadAllPeer())},[t[11]||(t[11]=e("i",{class:"bi bi-download me-2 me-lg-0 me-xl-2"},null,-1)),f(d,{t:"Download All",class:"d-sm-block d-lg-none d-xl-block"})]),e("button",{class:"btn btn-sm text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle",onClick:t[5]||(t[5]=c=>this.$emit("selectPeers"))},[t[12]||(t[12]=e("i",{class:"bi bi-check2-all me-2 me-lg-0 me-xl-2"},null,-1)),f(d,{t:"Select Peers",class:"d-sm-block d-lg-none d-xl-block"})]),e("button",{class:"btn btn-sm text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle",onClick:t[6]||(t[6]=c=>this.$emit("jobsAll")),type:"button","aria-expanded":"false"},[t[13]||(t[13]=e("i",{class:"bi bi-person-walking me-2 me-lg-0 me-xl-2"},null,-1)),f(d,{t:"Active Jobs",class:"d-sm-block d-lg-none d-xl-block"})])])])}const Ec=Z(pc,[["render",Lc],["__scopeId","data-v-71502547"]]);function Nc(l){return Qe()?(Ke(l),!0):!1}const He=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fc=Object.prototype.toString,zc=l=>Fc.call(l)==="[object Object]",ae=()=>{},Hc=Yc();function Yc(){var l,t;return He&&((l=window?.navigator)==null?void 0:l.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ke(l){return Array.isArray(l)?l:[l]}function Gc(l,t,a){return ee(l,t,{...a,immediate:!0})}const Ye=He?window:void 0;function de(l){var t;const a=se(l);return(t=a?.$el)!=null?t:a}function we(...l){const t=[],a=()=>{t.forEach(g=>g()),t.length=0},s=(g,c,n,y)=>(g.addEventListener(c,n,y),()=>g.removeEventListener(c,n,y)),h=E(()=>{const g=ke(se(l[0])).filter(c=>c!=null);return g.every(c=>typeof c!="string")?g:void 0}),r=Gc(()=>{var g,c;return[(c=(g=h.value)==null?void 0:g.map(n=>de(n)))!=null?c:[Ye].filter(n=>n!=null),ke(se(h.value?l[1]:l[0])),ke(B(h.value?l[2]:l[1])),se(h.value?l[3]:l[2])]},([g,c,n,y])=>{if(a(),!g?.length||!c?.length||!n?.length)return;const A=zc(y)?{...y}:y;t.push(...g.flatMap(_=>c.flatMap(b=>n.map(x=>s(_,b,x,A)))))},{flush:"post"}),d=()=>{r(),a()};return Nc(a),d}let _e=!1;function Wc(l,t,a={}){const{window:s=Ye,ignore:h=[],capture:r=!0,detectIframe:d=!1,controls:g=!1}=a;if(!s)return g?{stop:ae,cancel:ae,trigger:ae}:ae;if(Hc&&!_e){_e=!0;const p={passive:!0};Array.from(s.document.body.children).forEach(P=>P.addEventListener("click",ae,p)),s.document.documentElement.addEventListener("click",ae,p)}let c=!0;const n=p=>se(h).some(P=>{if(typeof P=="string")return Array.from(s.document.querySelectorAll(P)).some(O=>O===p.target||p.composedPath().includes(O));{const O=de(P);return O&&(p.target===O||p.composedPath().includes(O))}});function y(p){const P=se(p);return P&&P.$.subTree.shapeFlag===16}function A(p,P){const O=se(p),C=O.$.subTree&&O.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(j=>j.el===P.target||P.composedPath().includes(j.el))}const _=p=>{const P=de(l);if(p.target!=null&&!(!(P instanceof Element)&&y(l)&&A(l,p))&&!(!P||P===p.target||p.composedPath().includes(P))){if("detail"in p&&p.detail===0&&(c=!n(p)),!c){c=!0;return}t(p)}};let b=!1;const x=[we(s,"click",p=>{b||(b=!0,setTimeout(()=>{b=!1},0),_(p))},{passive:!0,capture:r}),we(s,"pointerdown",p=>{const P=de(l);c=!n(p)&&!!(P&&!p.composedPath().includes(P))},{passive:!0}),d&&we(s,"blur",p=>{setTimeout(()=>{var P;const O=de(l);((P=s.document.activeElement)==null?void 0:P.tagName)==="IFRAME"&&!O?.contains(s.document.activeElement)&&t(p)},0)},{passive:!0})].filter(Boolean),u=()=>x.forEach(p=>p());return g?{stop:u,cancel:()=>{c=!1},trigger:p=>{c=!0,_(p),c=!1}}:u}const Jc={key:0,class:"position-absolute d-block p-1 px-2 bg-body text-body rounded-3 border shadow"},Vc={__name:"peerSettingsDropdownTool",props:{icon:String,title:String},emits:["click"],setup(l,{emit:t}){const a=t,s=q(!1);return(h,r)=>(i(),m("a",{class:"dropdown-item text-center px-0 rounded-3 position-relative",role:"button",onMouseenter:r[0]||(r[0]=d=>s.value=!0),onMouseleave:r[1]||(r[1]=d=>s.value=!1),onClick:r[2]||(r[2]=d=>a("click"))},[e("i",{class:L(["me-auto bi",l.icon])},null,2),f(re,{name:"zoomReversed"},{default:U(()=>[s.value?(i(),m("span",Jc,[e("small",null,[f(S,{t:l.title},null,8,["t"])])])):M("",!0)]),_:1})],32))}},Uc=Z(Vc,[["__scopeId","data-v-d4e41a56"]]),Qc={class:"mb-0"},Ge=Q({__name:"peerTagBadge",props:["BackgroundColor","GroupName","Icon"],setup(l){const t=ne();return(a,s)=>(i(),m("h6",Qc,[e("span",{class:"badge rounded-3 shadow",style:me({"background-color":l.BackgroundColor,color:B(t).colorText(l.BackgroundColor)})},[l.Icon?(i(),m("i",{key:0,class:L(["bi",[l.Icon,l.GroupName?"me-2":""]])},null,2)):M("",!0),F(D(l.GroupName),1)],4)]))}}),Kc={class:"dropdown-menu"},Zc=["onClick"],Xc={key:0,class:"bi bi-check-circle-fill"},e6={key:1,class:"bi bi-circle"},t6=Q({__name:"peerTagSelectDropdown",props:["Peer","ConfigurationInfo"],emits:["update"],setup(l,{emit:t}){const a=l,s=De({...a.ConfigurationInfo.Info.PeerGroups}),h=t;ee(()=>s,d=>{X("/api/updateWireguardConfigurationInfo",{Name:a.ConfigurationInfo.Name,Key:"PeerGroups",Value:d},g=>{g.status&&h("update",s)})},{deep:!0});const r=(d,g)=>{s[d].Peers.includes(g)?s[d].Peers=s[d].Peers.filter(c=>c!==g):s[d].Peers.push(g)};return(d,g)=>(i(),m("ul",Kc,[(i(!0),m(z,null,Y(s,(c,n)=>(i(),m("li",null,[e("a",{role:"button",onClick:y=>r(n,l.Peer.id),class:"dropdown-item d-flex align-items-center"},[c.Peers.includes(l.Peer.id)?(i(),m("i",Xc)):(i(),m("i",e6)),f(Ge,{class:"ms-auto",BackgroundColor:c.BackgroundColor,GroupName:c.GroupName,Icon:"bi-"+c.Icon},null,8,["BackgroundColor","GroupName","Icon"])],8,Zc)]))),256))]))}}),l6={name:"peerSettingsDropdown",components:{PeerTagSelectDropdown:t6,PeerSettingsDropdownTool:Uc,LocaleText:S},setup(){return{dashboardStore:oe()}},props:{Peer:Object,ConfigurationInfo:Object,dropup:Boolean},data(){return{deleteBtnDisabled:!1,restrictBtnDisabled:!1,allowAccessBtnDisabled:!1,confirmDelete:!1,height:0}},mounted(){this.height=document.querySelector("#peerDropdown").clientHeight},methods:{downloadPeer(){le("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},l=>{if(l.status){const t=new Blob([l.data.file],{type:"text/conf"}),a=URL.createObjectURL(t),s=`${l.data.fileName}.conf`,h=document.createElement("a");h.href=a,h.download=s,h.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",l.message,"danger")})},downloadQRCode(l){le("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},t=>{t.status?this.$emit(l,t.data.file):this.dashboardStore.newMessage("Server",t.message,"danger")})},deletePeer(){this.deleteBtnDisabled=!0,X(`/api/deletePeers/${this.$route.params.id}`,{peers:[this.Peer.id]},l=>{this.dashboardStore.newMessage("Server",l.message,l.status?"success":"danger"),this.$emit("refresh"),this.deleteBtnDisabled=!1})},restrictPeer(){this.restrictBtnDisabled=!0,X(`/api/restrictPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},l=>{this.dashboardStore.newMessage("Server",l.message,l.status?"success":"danger"),this.$emit("refresh"),this.restrictBtnDisabled=!1})},allowAccessPeer(){this.allowAccessBtnDisabled=!0,X(`/api/allowAccessPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},l=>{this.dashboardStore.newMessage("Server",l.message,l.status?"success":"danger"),this.$emit("refresh"),this.allowAccessBtnDisabled=!1})}}},s6={style:{"font-size":"0.8rem","padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},o6={class:"text-body d-flex"},i6={class:"ms-auto"},a6={key:1},n6={class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},r6={key:2},d6={class:"d-flex",style:{"padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},c6={class:"dropdown dropstart"},u6={class:"dropdown-item d-flex",role:"button","data-bs-auto-close":"outside","data-bs-toggle":"dropdown"},f6={key:1,class:"confirmDelete"},p6={style:{"white-space":"break-spaces"},class:"mb-2 d-block fw-bold"},m6={class:"d-flex w-100 gap-2"},g6=["disabled"],h6=["disabled"],b6={key:1};function v6(l,t,a,s,h,r){const d=te("LocaleText"),g=te("PeerSettingsDropdownTool"),c=te("PeerTagSelectDropdown");return i(),m("ul",{class:L([{dropup:a.dropup},"dropdown-menu mt-2 shadow-lg d-block rounded-3"]),id:"peerDropdown",style:{"max-width":"200px"}},[this.Peer.restricted?(i(),m("li",b6,[e("a",{class:L(["dropdown-item d-flex text-warning",{disabled:this.allowAccessBtnDisabled}]),onClick:t[12]||(t[12]=n=>this.allowAccessPeer()),role:"button"},[t[28]||(t[28]=e("i",{class:"me-auto bi bi-unlock"},null,-1)),this.allowAccessBtnDisabled?(i(),I(d,{key:1,t:"Allowing Access..."})):(i(),I(d,{key:0,t:"Allow Access"}))],2)])):(i(),m(z,{key:0},[this.confirmDelete?(i(),m("li",f6,[e("p",p6,[f(d,{t:"Are you sure to delete this peer?"})]),e("div",m6,[e("button",{onClick:t[10]||(t[10]=n=>this.deletePeer()),disabled:this.deleteBtnDisabled,class:"flex-grow-1 ms-auto btn btn-sm bg-danger"},[f(d,{t:"Yes"})],8,g6),e("button",{disabled:this.deleteBtnDisabled,onClick:t[11]||(t[11]=n=>this.confirmDelete=!1),class:"flex-grow-1 btn btn-sm bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle"},[f(d,{t:"No"})],8,h6)])])):(i(),m(z,{key:0},[this.Peer.status==="running"?(i(),m(z,{key:0},[e("li",s6,[e("span",o6,[t[13]||(t[13]=e("i",{class:"bi bi-box-arrow-in-right"},null,-1)),e("span",i6,D(this.Peer.endpoint),1)])]),t[14]||(t[14]=e("li",null,[e("hr",{class:"dropdown-divider"})],-1))],64)):M("",!0),this.Peer.private_key?(i(),m("li",r6,[t[15]||(t[15]=e("div",{class:"text-center text-muted"},null,-1)),e("div",d6,[f(g,{icon:"bi-download",title:"Download",onClick:t[0]||(t[0]=n=>this.downloadPeer())}),f(g,{icon:"bi-qr-code",title:"QR Code",onClick:t[1]||(t[1]=n=>this.$emit("qrcode"))}),f(g,{icon:"bi-body-text",title:"Configuration File",onClick:t[2]||(t[2]=n=>this.$emit("configurationFile"))}),f(g,{icon:"bi-share",title:"Share Peer",onClick:t[3]||(t[3]=n=>this.$emit("share"))})])])):(i(),m("li",a6,[e("small",n6,[f(d,{t:"Download & QR Code is not available due to no private key set for this peer"})])])),t[26]||(t[26]=e("li",null,[e("hr",{class:"dropdown-divider"})],-1)),e("li",null,[e("a",{class:"dropdown-item d-flex",role:"button",onClick:t[4]||(t[4]=n=>this.$emit("setting"))},[t[16]||(t[16]=e("i",{class:"me-auto bi bi-pen"},null,-1)),t[17]||(t[17]=F()),f(d,{t:"Peer Settings"})])]),e("li",null,[e("a",{class:"dropdown-item d-flex",role:"button",onClick:t[5]||(t[5]=n=>this.$emit("jobs"))},[t[18]||(t[18]=e("i",{class:"me-auto bi bi-app-indicator"},null,-1)),t[19]||(t[19]=F()),f(d,{t:"Schedule Jobs"})])]),e("li",null,[e("a",{class:"dropdown-item d-flex",role:"button",onClick:t[6]||(t[6]=n=>this.$emit("assign"))},[t[20]||(t[20]=e("i",{class:"me-auto bi bi-diagram-2"},null,-1)),t[21]||(t[21]=F()),f(d,{t:"Assign Peer"})])]),e("li",c6,[e("a",u6,[t[22]||(t[22]=e("i",{class:"me-auto bi bi-tag"},null,-1)),t[23]||(t[23]=F()),f(d,{t:"Tag Peer"})]),f(c,{onUpdate:t[7]||(t[7]=n=>this.$emit("refresh")),Peer:a.Peer,ConfigurationInfo:a.ConfigurationInfo},null,8,["Peer","ConfigurationInfo"])]),t[27]||(t[27]=e("li",null,[e("hr",{class:"dropdown-divider"})],-1)),e("li",null,[e("a",{class:L(["dropdown-item d-flex text-warning",{disabled:this.restrictBtnDisabled}]),onClick:t[8]||(t[8]=n=>this.restrictPeer()),role:"button"},[t[24]||(t[24]=e("i",{class:"me-auto bi bi-lock"},null,-1)),this.restrictBtnDisabled?(i(),I(d,{key:1,t:"Restricting..."})):(i(),I(d,{key:0,t:"Restrict Access"}))],2)]),e("li",null,[e("a",{class:L(["dropdown-item d-flex fw-bold text-danger",{disabled:this.deleteBtnDisabled}]),onClick:t[9]||(t[9]=n=>this.confirmDelete=!0),role:"button"},[t[25]||(t[25]=e("i",{class:"me-auto bi bi-trash"},null,-1)),this.deleteBtnDisabled?(i(),I(d,{key:1,t:"Deleting..."})):(i(),I(d,{key:0,t:"Delete"}))],2)])],64))],64))],2)}const k6=Z(l6,[["render",v6],["__scopeId","data-v-18549c26"]]),w6={name:"peer",methods:{GetLocale:H},components:{PeerTagBadge:Ge,LocaleText:S,PeerSettingsDropdown:k6},props:{Peer:Object,ConfigurationInfo:Object,order:Number,searchPeersLength:Number},setup(){const l=q(null),t=q(!1),a=oe();return Wc(l,s=>{t.value=!1}),{target:l,subMenuOpened:t,dashboardStore:a}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake},getDropup(){return this.searchPeersLength-this.order<=3}}},y6=["id"],x6={key:0,class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},$6={key:0,style:{"font-size":"0.8rem",color:"#28a745"},class:"d-flex align-items-center"},_6={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},P6={class:"text-primary"},S6={class:"text-success"},C6={key:0,class:"text-secondary"},D6={key:1,class:"border-0 card-header bg-transparent text-warning fw-bold",style:{"font-size":"0.8rem"}},O6={class:"card-body pt-1",style:{"font-size":"0.9rem"}},M6={class:"text-muted"},q6={class:"d-block"},I6={class:"text-muted"},T6={class:"d-block"},j6={class:"d-flex align-items-center"};function B6(l,t,a,s,h,r){const d=te("LocaleText"),g=te("PeerTagBadge"),c=te("PeerSettingsDropdown");return i(),m("div",{class:L(["card shadow-sm rounded-3 peerCard",{"border-warning":a.Peer.restricted}]),id:"peer_"+a.Peer.id},[e("div",null,[a.Peer.restricted?(i(),m("div",D6,[t[15]||(t[15]=e("i",{class:"bi-lock-fill me-2"},null,-1)),f(d,{t:"Access Restricted"})])):(i(),m("div",x6,[e("div",{class:L(["dot ms-0",{active:a.Peer.status==="running"}])},null,2),s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"&&a.Peer.status==="running"?(i(),m("div",$6,[t[9]||(t[9]=e("i",{class:"bi bi-box-arrow-in-right me-2"},null,-1)),e("span",null,D(a.Peer.endpoint),1)])):M("",!0),e("div",_6,[e("span",P6,[t[10]||(t[10]=e("i",{class:"bi bi-arrow-down"},null,-1)),e("strong",null,D((a.Peer.cumu_receive+a.Peer.total_receive).toFixed(4)),1),t[11]||(t[11]=F(" GB "))]),e("span",S6,[t[12]||(t[12]=e("i",{class:"bi bi-arrow-up"},null,-1)),e("strong",null,D((a.Peer.cumu_sent+a.Peer.total_sent).toFixed(4)),1),t[13]||(t[13]=F(" GB "))]),a.Peer.latest_handshake!=="No Handshake"?(i(),m("span",C6,[t[14]||(t[14]=e("i",{class:"bi bi-arrows-angle-contract"},null,-1)),F(" "+D(r.getLatestHandshake)+" ago ",1)])):M("",!0)])]))]),e("div",O6,[e("h6",null,D(a.Peer.name?a.Peer.name:r.GetLocale("Untitled Peer")),1),e("div",{class:L(["d-flex",[s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="grid"?"gap-1 flex-column":"flex-row gap-3"]])},[e("div",{class:L({"d-flex gap-2 align-items-center":s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"})},[e("small",M6,[f(d,{t:"Public Key"})]),e("small",q6,[e("samp",null,D(a.Peer.id),1)])],2),e("div",{class:L({"d-flex gap-2 align-items-center":s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"})},[e("small",I6,[f(d,{t:"Allowed IPs"})]),e("small",T6,[e("samp",null,D(a.Peer.allowed_ip),1)])],2),e("div",{class:L(["d-flex align-items-center gap-1",{"ms-auto":s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"}])},[(i(!0),m(z,null,Y(Object.values(a.ConfigurationInfo.Info.PeerGroups).filter(n=>n.Peers.includes(a.Peer.id)),n=>(i(),I(g,{BackgroundColor:n.BackgroundColor,GroupName:n.GroupName,Icon:"bi-"+n.Icon},null,8,["BackgroundColor","GroupName","Icon"]))),256)),e("div",{class:L(["ms-auto px-2 rounded-3 subMenuBtn position-relative",{active:this.subMenuOpened}])},[e("a",{role:"button",class:"text-body",onClick:t[0]||(t[0]=n=>this.subMenuOpened=!0)},t[16]||(t[16]=[e("h5",{class:"mb-0"},[e("i",{class:"bi bi-three-dots"})],-1)])),f(re,{name:"slide-fade"},{default:U(()=>[this.subMenuOpened?(i(),I(c,{key:0,dropup:r.getDropup,onQrcode:t[1]||(t[1]=n=>this.$emit("qrcode")),onConfigurationFile:t[2]||(t[2]=n=>this.$emit("configurationFile")),onSetting:t[3]||(t[3]=n=>this.$emit("setting")),onJobs:t[4]||(t[4]=n=>this.$emit("jobs")),onRefresh:t[5]||(t[5]=n=>this.$emit("refresh")),onShare:t[6]||(t[6]=n=>this.$emit("share")),onAssign:t[7]||(t[7]=n=>this.$emit("assign")),Peer:a.Peer,ConfigurationInfo:a.ConfigurationInfo,ref:"target"},null,8,["dropup","Peer","ConfigurationInfo"])):M("",!0)]),_:1})],2)],2)],2)]),e("div",{class:"card-footer",role:"button",onClick:t[8]||(t[8]=n=>l.$emit("details"))},[e("small",j6,[f(d,{t:"Details"}),t[17]||(t[17]=e("i",{class:"bi bi-chevron-right ms-auto"},null,-1))])])],10,y6)}const A6=Z(w6,[["render",B6],["__scopeId","data-v-06609b08"]]),R6={__name:"peerListModals",props:{configurationModals:Object,configurationModalSelectedPeer:Object},emits:["refresh"],setup(l,{emit:t}){const a=t,s=W(()=>J(()=>import("./peerAssignModal-DFmJjk1m.js"),__vite__mapDeps([0,1,2,3,4,5]))),h=W(()=>J(()=>import("./peerShareLinkModal-BcKNS4zv.js"),__vite__mapDeps([6,2,3,7,8,1,9]))),r=W(()=>J(()=>import("./peerJobs-DWUjgMDu.js"),__vite__mapDeps([10,11,2,3,8,7,1,12,13]))),d=W(()=>J(()=>import("./peerQRCode-Ckrn5v7v.js"),__vite__mapDeps([14,15,2,3,1,16]))),g=W(()=>J(()=>import("./peerConfigurationFile-DZnQC4c0.js"),__vite__mapDeps([17,2,3,1,15,18]))),c=W(()=>J(()=>import("./peerSettings-CihkEgCV.js"),__vite__mapDeps([19,2,3,1,20])));return(n,y)=>(i(),I(ge,{name:"zoom"},{default:U(()=>[l.configurationModals.peerSetting.modalOpen?(i(),I(B(c),{key:"PeerSettingsModal",selectedPeer:l.configurationModalSelectedPeer,onRefresh:y[0]||(y[0]=A=>a("refresh")),onClose:y[1]||(y[1]=A=>l.configurationModals.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerQRCode.modalOpen?(i(),I(B(d),{key:"PeerQRCodeModal",selectedPeer:l.configurationModalSelectedPeer,onClose:y[2]||(y[2]=A=>l.configurationModals.peerQRCode.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerScheduleJobs.modalOpen?(i(),I(B(r),{key:"PeerJobsModal",onRefresh:y[3]||(y[3]=A=>a("refresh")),selectedPeer:l.configurationModalSelectedPeer,onClose:y[4]||(y[4]=A=>l.configurationModals.peerScheduleJobs.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerShare.modalOpen?(i(),I(B(h),{key:"PeerShareLinkModal",onClose:y[5]||(y[5]=A=>{l.configurationModals.peerShare.modalOpen=!1}),selectedPeer:l.configurationModalSelectedPeer},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerConfigurationFile.modalOpen?(i(),I(B(g),{key:"PeerConfigurationFileModal",onClose:y[6]||(y[6]=A=>l.configurationModals.peerConfigurationFile.modalOpen=!1),selectedPeer:l.configurationModalSelectedPeer},null,8,["selectedPeer"])):M("",!0),l.configurationModals.assignPeer.modalOpen?(i(),I(B(s),{key:"PeerAssignModal",selectedPeer:l.configurationModalSelectedPeer,onClose:y[7]||(y[7]=A=>l.configurationModals.assignPeer.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0)]),_:1}))}},L6={style:{"margin-bottom":"20px",height:"1px"},id:"loadMore"},E6={__name:"peerIntersectionObserver",props:["peerListLength","showPeersCount"],emits:["loadMore"],setup(l,{emit:t}){const a=q(void 0),s=t;return be(()=>{a.value=new IntersectionObserver(h=>{h.forEach(r=>{r.isIntersecting&&s("loadMore")})},{rootMargin:"20px",threshold:1}),a.value.observe(document.querySelector("#loadMore"))}),ce(()=>{a.value.disconnect()}),(h,r)=>(i(),m("div",L6))}},N6={class:"d-flex gap-1 flex-column"},F6=Q({__name:"configurationDescription",props:["configuration"],setup(l){const t=l,a=q(t.configuration.Info.Description),s=q(!1),h=q(!1),r=async()=>{await X("/api/updateWireguardConfigurationInfo",{Name:t.configuration.Name,Key:"Description",Value:a.value},g=>{h.value=g.status,d()})},d=()=>{s.value=!0,setTimeout(()=>{s.value=!1},3e3)};return(g,c)=>(i(),m("div",N6,[c[2]||(c[2]=e("label",{for:"configurationDescription"},[e("small",{style:{"white-space":"nowrap"},class:"text-muted"},[e("i",{class:"bi bi-pencil-fill me-2"}),F("Notes ")])],-1)),ue(e("input",{type:"text",class:L([[s.value?[h.value?"is-valid":"is-invalid"]:void 0],"form-control rounded-3 bg-transparent form-control-sm"]),id:"configurationDescription","onUpdate:modelValue":c[0]||(c[0]=n=>a.value=n),onChange:c[1]||(c[1]=n=>r())},null,34),[[xe,a.value]])]))}});var fe={exports:{}},z6=fe.exports,Pe;function H6(){return Pe||(Pe=1,function(l,t){(function(a,s){l.exports=s()})(z6,function(){return function(a,s){s.prototype.isSameOrBefore=function(h,r){return this.isSame(h,r)||this.isBefore(h,r)}}})}(fe)),fe.exports}var Y6=H6();const We=Me(Y6);var pe={exports:{}},G6=pe.exports,Se;function W6(){return Se||(Se=1,function(l,t){(function(a,s){l.exports=s()})(G6,function(){var a,s,h=1e3,r=6e4,d=36e5,g=864e5,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,n=31536e6,y=2628e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:n,months:y,days:g,hours:d,minutes:r,seconds:h,milliseconds:1,weeks:6048e5},b=function(T){return T instanceof j},x=function(T,$,v){return new j(T,v,$.$l)},u=function(T){return s.p(T)+"s"},p=function(T){return T<0},P=function(T){return p(T)?Math.ceil(T):Math.floor(T)},O=function(T){return Math.abs(T)},C=function(T,$){return T?p(T)?{negative:!0,format:""+O(T)+$}:{negative:!1,format:""+T+$}:{negative:!1,format:""}},j=function(){function T(v,R,N){var k=this;if(this.$d={},this.$l=N,v===void 0&&(this.$ms=0,this.parseFromMilliseconds()),R)return x(v*_[u(R)],this);if(typeof v=="number")return this.$ms=v,this.parseFromMilliseconds(),this;if(typeof v=="object")return Object.keys(v).forEach(function(G){k.$d[u(G)]=v[G]}),this.calMilliseconds(),this;if(typeof v=="string"){var o=v.match(A);if(o){var w=o.slice(2).map(function(G){return G!=null?Number(G):0});return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var $=T.prototype;return $.calMilliseconds=function(){var v=this;this.$ms=Object.keys(this.$d).reduce(function(R,N){return R+(v.$d[N]||0)*_[N]},0)},$.parseFromMilliseconds=function(){var v=this.$ms;this.$d.years=P(v/n),v%=n,this.$d.months=P(v/y),v%=y,this.$d.days=P(v/g),v%=g,this.$d.hours=P(v/d),v%=d,this.$d.minutes=P(v/r),v%=r,this.$d.seconds=P(v/h),v%=h,this.$d.milliseconds=v},$.toISOString=function(){var v=C(this.$d.years,"Y"),R=C(this.$d.months,"M"),N=+this.$d.days||0;this.$d.weeks&&(N+=7*this.$d.weeks);var k=C(N,"D"),o=C(this.$d.hours,"H"),w=C(this.$d.minutes,"M"),G=this.$d.seconds||0;this.$d.milliseconds&&(G+=this.$d.milliseconds/1e3,G=Math.round(1e3*G)/1e3);var V=C(G,"S"),Je=v.negative||R.negative||k.negative||o.negative||w.negative||V.negative,Ve=o.format||w.format||V.format?"T":"",ve=(Je?"-":"")+"P"+v.format+R.format+k.format+Ve+o.format+w.format+V.format;return ve==="P"||ve==="-P"?"P0D":ve},$.toJSON=function(){return this.toISOString()},$.format=function(v){var R=v||"YYYY-MM-DDTHH:mm:ss",N={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return R.replace(c,function(k,o){return o||String(N[k])})},$.as=function(v){return this.$ms/_[u(v)]},$.get=function(v){var R=this.$ms,N=u(v);return N==="milliseconds"?R%=1e3:R=N==="weeks"?P(R/_[N]):this.$d[N],R||0},$.add=function(v,R,N){var k;return k=R?v*_[u(R)]:b(v)?v.$ms:x(v,this).$ms,x(this.$ms+k*(N?-1:1),this)},$.subtract=function(v,R){return this.add(v,R,!0)},$.locale=function(v){var R=this.clone();return R.$l=v,R},$.clone=function(){return x(this.$ms,this)},$.humanize=function(v){return a().add(this.$ms,"ms").locale(this.$l).fromNow(!v)},$.valueOf=function(){return this.asMilliseconds()},$.milliseconds=function(){return this.get("milliseconds")},$.asMilliseconds=function(){return this.as("milliseconds")},$.seconds=function(){return this.get("seconds")},$.asSeconds=function(){return this.as("seconds")},$.minutes=function(){return this.get("minutes")},$.asMinutes=function(){return this.as("minutes")},$.hours=function(){return this.get("hours")},$.asHours=function(){return this.as("hours")},$.days=function(){return this.get("days")},$.asDays=function(){return this.as("days")},$.weeks=function(){return this.get("weeks")},$.asWeeks=function(){return this.as("weeks")},$.months=function(){return this.get("months")},$.asMonths=function(){return this.as("months")},$.years=function(){return this.get("years")},$.asYears=function(){return this.as("years")},T}(),ie=function(T,$,v){return T.add($.years()*v,"y").add($.months()*v,"M").add($.days()*v,"d").add($.hours()*v,"h").add($.minutes()*v,"m").add($.seconds()*v,"s").add($.milliseconds()*v,"ms")};return function(T,$,v){a=v,s=v().$utils(),v.duration=function(k,o){var w=v.locale();return x(k,{$l:w},o)},v.isDuration=b;var R=$.prototype.add,N=$.prototype.subtract;$.prototype.add=function(k,o){return b(k)?ie(this,k,1):R.bind(this)(k,o)},$.prototype.subtract=function(k,o){return b(k)?ie(this,k,-1):N.bind(this)(k,o)}}})}(pe)),pe.exports}var J6=W6();const V6=Me(J6),U6={key:0,class:"sessions-label"},Q6={class:"d-flex flex-wrap gap-1 session-dot"},K6={class:"bg-warning",style:{height:"5px",width:"5px","border-radius":"100%","vertical-align":"top"}},Z6={class:"p-1 badge text-bg-warning text-start session-list"},X6={class:"mt-1"},eu=Q({__name:"peerSessionCalendarDay",props:["sessions","day"],emits:["openDetails"],setup(l){const t=l;K.extend(We),K.extend(V6);const a=E(()=>{let s=t.sessions.map(r=>K(r)).filter(r=>r.isSame(t.day,"D")).reverse(),h=[];if(s.length>1){let r=[s[0]];for(let d of s.slice(1))d.isSameOrBefore(r[r.length-1].add(3,"minute"))?r.push(d):(h.push({timestamps:r,duration:K.duration(r[r.length-1].diff(r[0]))}),r=[d]);h.push({timestamps:r,duration:K.duration(r[r.length-1].diff(r[0]))})}return h});return(s,h)=>(i(),m("div",{class:"d-flex gap-1 flex-column",onClick:h[0]||(h[0]=r=>s.$emit("openDetails",a.value))},[a.value.length>0?(i(),m("small",U6,[f(S,{t:a.value.length+" Session"+(a.value.length>1?"s":"")},null,8,["t"])])):M("",!0),e("div",Q6,[(i(!0),m(z,null,Y(a.value.length,r=>(i(),m("div",K6))),256))]),(i(!0),m(z,null,Y(a.value,r=>(i(),m("div",Z6,[e("div",null,[h[1]||(h[1]=e("i",{class:"bi bi-stopwatch me-1"},null,-1)),F(D(r.timestamps[0].format("HH:mm:ss")),1),h[2]||(h[2]=e("i",{class:"bi bi-arrow-right mx-1"},null,-1)),F(D(r.timestamps[r.timestamps.length-1].format("HH:mm:ss")),1)]),e("div",X6,[f(S,{t:"Duration:"}),F(" "+D(r.duration.format("HH:mm:ss")),1)])]))),256))]))}}),tu=Z(eu,[["__scopeId","data-v-58bcb5e8"]]),lu={class:"card rounded-3 bg-transparent"},su={class:"card-header d-flex align-items-center"},ou={class:"mx-auto mb-0"},iu={class:"card-body p-0 position-relative"},au={class:"calendar-grid"},nu=["onClick"],ru={class:"d-flex"},du={key:0,class:"bi bi-check-circle-fill ms-auto"},cu={key:0,class:"position-absolute rounded-bottom-3 dayDetail p-3",style:{bottom:"0",height:"100%",width:"100%","z-index":"9999",background:"#00000050","backdrop-filter":"blur(8px)",overflow:"scroll"}},uu={class:"d-flex mb-3"},fu={class:"mb-0"},pu={class:"d-flex flex-column gap-2"},mu={class:"p-1 badge text-bg-warning text-start session-list d-flex align-items-center"},gu={class:"ms-auto"},hu=Q({__name:"peerSessions",props:["selectedPeer","selectedDate"],emits:["selectDate"],async setup(l,{emit:t}){let a,s;const h=l;oe();const r=q([]);K.extend(We);const d=q(void 0),g=q(0),c=q(K()),n=E(()=>K().add(g.value,"month")),y=E(()=>n.value.startOf("month")),A=E(()=>n.value.endOf("month")),_=E(()=>y.value.startOf("week")),b=E(()=>A.value.endOf("week")),x=E(()=>{let O=[],C=_.value;for(;C.isSameOrBefore(b.value,"day");)O.push(C),C=C.add(1,"day");return O}),u=async()=>{await le("/api/getPeerSessions",{configurationName:h.selectedPeer.configuration.Name,id:h.selectedPeer.id,startDate:_.value.format("YYYY-MM-DD"),endDate:b.value.format("YYYY-MM-DD")},O=>{r.value=O.data.reverse()})};[a,s]=$e(()=>u()),await a,s(),d.value=setInterval(async()=>{await u()},6e4),ce(()=>{clearInterval(d.value)}),ee(()=>n.value,()=>u());const p=q(!1),P=q(void 0);return(O,C)=>(i(),m("div",null,[e("div",lu,[e("div",su,[e("button",{class:"btn btn-sm rounded-3",onClick:C[0]||(C[0]=j=>g.value-=1)},C[5]||(C[5]=[e("i",{class:"bi bi-chevron-left"},null,-1)])),g.value!==0?(i(),m("button",{key:0,class:"btn btn-sm rounded-3",onClick:C[1]||(C[1]=j=>{g.value=0,O.$emit("selectDate",O.day)})},[f(S,{t:"Today"})])):M("",!0),e("h5",ou,D(n.value.format("YYYY-MM")),1),g.value!==0?(i(),m("button",{key:1,class:"btn btn-sm rounded-3",onClick:C[2]||(C[2]=j=>{g.value=0,O.$emit("selectDate",O.day)})},[f(S,{t:"Today"})])):M("",!0),e("button",{class:"btn btn-sm rounded-3",onClick:C[3]||(C[3]=j=>g.value+=1)},C[6]||(C[6]=[e("i",{class:"bi bi-chevron-right"},null,-1)]))]),e("div",iu,[e("div",au,[(i(!0),m(z,null,Y(x.value,(j,ie)=>(i(),m("div",{class:L(["calendar-day p-2 d-flex flex-column",{"bg-body-secondary":j.isSame(c.value,"D"),"border-end":j.day()<6,"border-bottom":ie<x.value.length-7,"extra-day":!j.isSame(n.value,"month")}]),key:j,onClick:T=>O.$emit("selectDate",j),style:{cursor:"pointer"}},[e("h5",ru,[F(D(j.format("D"))+" ",1),l.selectedDate&&l.selectedDate.isSame(j,"D")?(i(),m("i",du)):M("",!0)]),(i(),I(tu,{class:"flex-grow-1",onOpenDetails:T=>{P.value={day:j,details:T},p.value=!0},sessions:r.value,day:j,key:j},null,8,["onOpenDetails","sessions","day"]))],10,nu))),128))]),f(re,{name:"zoom"},{default:U(()=>[p.value?(i(),m("div",cu,[e("div",uu,[e("h5",fu,D(P.value.day.format("YYYY-MM-DD")),1),e("a",{role:"button",class:"ms-auto text-white",onClick:C[4]||(C[4]=j=>p.value=!1)},C[7]||(C[7]=[e("h5",{class:"mb-0"},[e("i",{class:"bi bi-x-lg"})],-1)]))]),e("div",pu,[(i(!0),m(z,null,Y(P.value.details,j=>(i(),m("div",mu,[e("div",null,[C[8]||(C[8]=e("i",{class:"bi bi-stopwatch me-1"},null,-1)),F(D(j.timestamps[0].format("HH:mm:ss")),1),C[9]||(C[9]=e("i",{class:"bi bi-arrow-right mx-1"},null,-1)),F(D(j.timestamps[j.timestamps.length-1].format("HH:mm:ss")),1)]),e("div",gu,[f(S,{t:"Duration:"}),F(" "+D(j.duration.format("HH:mm:ss")),1)])]))),256))])])):M("",!0)]),_:1})])])]))}}),bu=Z(hu,[["__scopeId","data-v-cf63f8b9"]]),vu={class:"card rounded-3 bg-transparent"},ku={class:"card-body"},wu={class:"text-muted"},yu={class:"d-flex flex-column gap-3"},xu=Q({__name:"peerTraffics",props:["selectedDate","selectedPeer"],async setup(l){let t,a;const s=l;oe();const h=E(()=>s.selectedDate?s.selectedDate:K()),r=q([]),d=async()=>{await le("/api/getPeerTraffics",{configurationName:s.selectedPeer.configuration.Name,id:s.selectedPeer.id,startDate:h.value.format("YYYY-MM-DD"),endDate:h.value.format("YYYY-MM-DD")},b=>{r.value=b.data,console.log(r.value)})},g=q(void 0);[t,a]=$e(()=>d()),await t,a(),g.value=setInterval(async()=>{await d()},6e4),ce(()=>{clearInterval(g.value)}),ee(()=>h.value,()=>{d()});const c=E(()=>({responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:b=>`${b.formattedValue} MB`}}},scales:{x:{ticks:{display:!1},grid:{display:!0}},y:{ticks:{callback:b=>`${b.toFixed(4)} MB`},grid:{display:!0}}}})),n=E(()=>{let b=r.value.map(u=>u.cumu_sent+u.total_sent),x=[0];if(b.length>1)for(let u=1;u<b.length;u++)b[u]>=b[u-1]?x.push((b[u]-b[u-1])*1024):x.push(b[u]*1024);return x}),y=E(()=>{let b=r.value.map(u=>u.cumu_receive+u.total_receive),x=[0];if(b.length>1)for(let u=1;u<b.length;u++)b[u]>=b[u-1]?x.push((b[u]-b[u-1])*1024):x.push(b[u]*1024);return x}),A=E(()=>({labels:r.value.map(b=>b.time),datasets:[{label:H("Data Sent"),data:n.value,fill:"start",borderColor:"#198754",backgroundColor:"#19875490",tension:0,pointRadius:2,borderWidth:1}]})),_=E(()=>({labels:r.value.map(b=>b.time),datasets:[{label:H("Data Received"),data:y.value,fill:"start",borderColor:"#0d6efd",backgroundColor:"#0d6efd90",tension:.3,pointRadius:2,borderWidth:1}]}));return(b,x)=>(i(),m("div",vu,[e("div",ku,[e("h6",wu,[f(S,{t:"Peer Historical Data Usage of "+h.value.format("YYYY-MM-DD")},null,8,["t"])]),e("div",yu,[e("div",null,[e("p",null,[f(S,{t:"Data Received"})]),f(B(he),{options:c.value,data:_.value,style:{width:"100%",height:"300px","max-height":"300px"}},null,8,["options","data"])]),e("div",null,[e("p",null,[f(S,{t:"Data Sent"})]),f(B(he),{options:c.value,data:A.value,style:{width:"100%",height:"300px","max-height":"300px"}},null,8,["options","data"])])])])]))}}),$u={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},_u={class:"d-flex h-100 w-100"},Pu={class:"w-100 p-2"},Su={class:"card rounded-3 shadow",style:{width:"100%"}},Cu={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},Du={class:"mb-0 fw-normal"},Ou={class:"card-body px-4"},Mu={class:"mb-0 text-muted"},qu={class:"row mt-3 gy-2 gx-2 mb-2"},Iu={class:"col-12 col-lg-3"},Tu={class:"card rounded-3 bg-transparent h-100"},ju={class:"card-body py-2 d-flex flex-column justify-content-center"},Bu={class:"mb-0 text-muted"},Au={class:"d-flex align-items-center"},Ru={class:"col-12 col-lg-3"},Lu={class:"card rounded-3 bg-transparent h-100"},Eu={class:"card-body py-2 d-flex flex-column justify-content-center"},Nu={class:"mb-0 text-muted"},Fu={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},zu={class:"card rounded-3 bg-transparent h-100"},Hu={class:"card-body py-2 d-flex flex-column justify-content-center"},Yu={class:"mb-0 text-muted"},Gu={class:"col-12 col-lg-3"},Wu={class:"card rounded-3 bg-transparent h-100"},Ju={class:"card-body d-flex"},Vu={class:"mb-0 text-muted"},Uu={class:"h4"},Qu={class:"col-12 col-lg-3"},Ku={class:"card rounded-3 bg-transparent h-100"},Zu={class:"card-body d-flex"},Xu={class:"mb-0 text-muted"},e2={class:"h4 text-warning"},t2={class:"col-12 col-lg-3"},l2={class:"card rounded-3 bg-transparent h-100"},s2={class:"card-body d-flex"},o2={class:"mb-0 text-muted"},i2={class:"h4 text-primary"},a2={class:"col-12 col-lg-3"},n2={class:"card rounded-3 bg-transparent h-100"},r2={class:"card-body d-flex"},d2={class:"mb-0 text-muted"},c2={class:"h4 text-success"},u2={class:"col-12"},f2={class:"col-12"},p2=Q({__name:"peerDetailsModal",props:["selectedPeer"],emits:["close"],setup(l){qe.register(Ie,Te,je,Be,Ae,Re,Le,Ee,Ne,Fe,ze);const t=q(void 0);return(a,s)=>(i(),m("div",$u,[e("div",_u,[e("div",Pu,[e("div",Su,[e("div",Cu,[e("h4",Du,[f(S,{t:"Peer Details"})]),e("button",{type:"button",class:"btn-close ms-auto",onClick:s[0]||(s[0]=h=>a.$emit("close"))})]),e("div",Ou,[e("div",null,[e("p",Mu,[e("small",null,[f(S,{t:"Peer"})])]),e("h2",null,D(l.selectedPeer.name),1)]),e("div",qu,[e("div",Iu,[e("div",Tu,[e("div",ju,[e("p",Bu,[e("small",null,[f(S,{t:"Status"})])]),e("div",Au,[e("span",{class:L(["dot ms-0 me-2",{active:l.selectedPeer.status==="running"}])},null,2),l.selectedPeer.status==="running"?(i(),I(S,{key:0,t:"Connected"})):(i(),I(S,{key:1,t:"Disconnected"}))])])])]),e("div",Ru,[e("div",Lu,[e("div",Eu,[e("p",Nu,[e("small",null,[f(S,{t:"Allowed IPs"})])]),F(" "+D(l.selectedPeer.allowed_ip),1)])])]),e("div",Fu,[e("div",zu,[e("div",Hu,[e("p",Yu,[e("small",null,[f(S,{t:"Public Key"})])]),e("samp",null,D(l.selectedPeer.id),1)])])]),e("div",Gu,[e("div",Wu,[e("div",Ju,[e("div",null,[e("p",Vu,[e("small",null,[f(S,{t:"Latest Handshake Time"})])]),e("strong",Uu,[f(S,{t:l.selectedPeer.latest_handshake+" ago"},null,8,["t"])])]),s[2]||(s[2]=e("i",{class:"bi bi-person-raised-hand ms-auto h2 text-muted"},null,-1))])])]),e("div",Qu,[e("div",Ku,[e("div",Zu,[e("div",null,[e("p",Xu,[e("small",null,[f(S,{t:"Total Usage"})])]),e("strong",e2,D((l.selectedPeer.total_data+l.selectedPeer.cumu_data).toFixed(4))+" GB ",1)]),s[3]||(s[3]=e("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1))])])]),e("div",t2,[e("div",l2,[e("div",s2,[e("div",null,[e("p",o2,[e("small",null,[f(S,{t:"Total Received"})])]),e("strong",i2,D((l.selectedPeer.total_receive+l.selectedPeer.cumu_receive).toFixed(4))+" GB",1)]),s[4]||(s[4]=e("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1))])])]),e("div",a2,[e("div",n2,[e("div",r2,[e("div",null,[e("p",d2,[e("small",null,[f(S,{t:"Total Sent"})])]),e("strong",c2,D((l.selectedPeer.total_sent+l.selectedPeer.cumu_sent).toFixed(4))+" GB",1)]),s[5]||(s[5]=e("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1))])])]),e("div",u2,[f(bu,{selectedDate:t.value,onSelectDate:s[1]||(s[1]=h=>t.value=h),selectedPeer:l.selectedPeer},null,8,["selectedDate","selectedPeer"])]),e("div",f2,[f(xu,{selectedDate:t.value,selectedPeer:l.selectedPeer},null,8,["selectedDate","selectedPeer"])])])])])])])]))}}),m2={class:"container-fluid"},g2={class:"d-flex align-items-sm-start flex-column flex-sm-row gap-3"},h2={class:"text-muted d-flex align-items-center gap-2"},b2={class:"mb-0"},v2={class:"d-flex align-items-center gap-3"},k2={class:"mb-0 display-4"},w2={class:"ms-sm-auto d-flex gap-2 flex-column"},y2={class:"card rounded-3 bg-transparent"},x2={class:"card-body py-2 d-flex align-items-center"},$2={class:"text-muted"},_2={class:"form-check form-switch mb-0 ms-auto pe-0 me-0"},P2=["for"],S2={key:2,class:"spinner-border spinner-border-sm ms-2","aria-hidden":"true"},C2=["disabled","id"],D2={class:"d-flex gap-2"},O2={class:"row mt-3 gy-2 gx-2 mb-2"},M2={class:"col-12 col-lg-3"},q2={class:"card rounded-3 bg-transparent h-100"},I2={class:"card-body py-2 d-flex flex-column justify-content-center"},T2={class:"mb-0 text-muted"},j2={class:"col-12 col-lg-3"},B2={class:"card rounded-3 bg-transparent h-100"},A2={class:"card-body py-2 d-flex flex-column justify-content-center"},R2={class:"mb-0 text-muted"},L2={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},E2={class:"card rounded-3 bg-transparent h-100"},N2={class:"card-body py-2 d-flex flex-column justify-content-center"},F2={class:"mb-0 text-muted"},z2={class:"row gx-2 gy-2 mb-2"},H2={class:"col-12 col-lg-3"},Y2={class:"card rounded-3 bg-transparent h-100"},G2={class:"card-body d-flex"},W2={class:"mb-0 text-muted"},J2={class:"h4"},V2={class:"col-12 col-lg-3"},U2={class:"card rounded-3 bg-transparent h-100"},Q2={class:"card-body d-flex"},K2={class:"mb-0 text-muted"},Z2={class:"h4"},X2={class:"col-12 col-lg-3"},ef={class:"card rounded-3 bg-transparent h-100"},tf={class:"card-body d-flex"},lf={class:"mb-0 text-muted"},sf={class:"h4 text-primary"},of={class:"col-12 col-lg-3"},af={class:"card rounded-3 bg-transparent h-100"},nf={class:"card-body d-flex"},rf={class:"mb-0 text-muted"},df={class:"h4 text-success"},cf={style:{"margin-bottom":"10rem"}},uf=20,ff={__name:"peerList",async setup(l){let t,a;const s=W(()=>J(()=>import("./peerSearchBar-DiXCpyAI.js"),__vite__mapDeps([21,2,3,22]))),h=W(()=>J(()=>import("./peerJobsAllModal-Br9Kh2x7.js"),__vite__mapDeps([23,11,2,3,8,7,1,12]))),r=W(()=>J(()=>import("./peerJobsLogsModal-DGiaCkA0.js"),__vite__mapDeps([24,7,2,3,1]))),d=W(()=>J(()=>import("./editConfiguration-CowugxbT.js"),__vite__mapDeps([25,2,3,1,7,26]))),g=W(()=>J(()=>import("./selectPeers-C-8NF1Is.js"),__vite__mapDeps([27,2,3,1,28]))),c=W(()=>J(()=>import("./peerAddModal-DfLbKzsW.js"),__vite__mapDeps([29,2,3,1,30]))),n=oe(),y=ne(),A=Ce(),_=q({}),b=q([]),x=q(!1),u=q({}),p=q({peerNew:{modalOpen:!1},peerSetting:{modalOpen:!1},peerScheduleJobs:{modalOpen:!1},peerQRCode:{modalOpen:!1},peerConfigurationFile:{modalOpen:!1},peerCreate:{modalOpen:!1},peerScheduleJobsAll:{modalOpen:!1},peerScheduleJobsLogs:{modalOpen:!1},peerShare:{modalOpen:!1},editConfiguration:{modalOpen:!1},selectPeers:{modalOpen:!1},backupRestore:{modalOpen:!1},deleteConfiguration:{modalOpen:!1},editRawConfigurationFile:{modalOpen:!1},assignPeer:{modalOpen:!1},peerDetails:{modalOpen:!1}}),P=q(!1),O=async()=>{await le("/api/getWireguardConfigurationInfo",{configurationName:A.params.id},k=>{k.status&&(_.value=k.data.configurationInfo,b.value=k.data.configurationPeers,b.value.forEach(o=>{o.restricted=!1}),k.data.configurationRestrictedPeers.forEach(o=>{o.restricted=!0,b.value.push(o)}))})};[t,a]=$e(()=>O()),await t,a();const C=q(void 0),j=()=>{clearInterval(C.value),C.value=setInterval(async()=>{await O()},parseInt(n.Configuration.Server.dashboard_refresh_interval))};j(),ce(()=>{clearInterval(C.value),C.value=void 0,y.Filter.HiddenTags=[]}),ee(()=>n.Configuration.Server.dashboard_refresh_interval,()=>{j()});const ie=async()=>{x.value=!0,await le("/api/toggleWireguardConfiguration",{configurationName:_.value.Name},k=>{k.status?n.newMessage("Server",`${_.value.Name} ${k.data?"is on":"is off"}`,"success"):n.newMessage("Server",k.message,"danger"),y.Configurations.find(o=>o.Name===_.value.Name).Status=k.data,_.value.Status=k.data,x.value=!1})},T=E(()=>({connectedPeers:b.value.filter(k=>k.status==="running").length,totalUsage:b.value.length>0?b.value.filter(k=>!k.restricted).map(k=>k.total_data+k.cumu_data).reduce((k,o)=>k+o,0).toFixed(4):0,totalReceive:b.value.length>0?b.value.filter(k=>!k.restricted).map(k=>k.total_receive+k.cumu_receive).reduce((k,o)=>k+o,0).toFixed(4):0,totalSent:b.value.length>0?b.value.filter(k=>!k.restricted).map(k=>k.total_sent+k.cumu_sent).reduce((k,o)=>k+o,0).toFixed(4):0})),$=q(10),v=E(()=>y.Filter.HiddenTags.map(k=>_.value.Info.PeerGroups[k].Peers).flat()),R=E(()=>Object.values(_.value.Info.PeerGroups).map(k=>k.Peers).flat()),N=E(()=>{const k=y.searchString?b.value.filter(o=>(o.name.includes(y.searchString)||o.id.includes(y.searchString)||o.allowed_ip.includes(y.searchString))&&!v.value.includes(o.id)&&(y.Filter.ShowAllPeersWhenHiddenTags||!y.Filter.ShowAllPeersWhenHiddenTags&&R.value.includes(o.id))):b.value.filter(o=>!v.value.includes(o.id)&&(y.Filter.ShowAllPeersWhenHiddenTags||!y.Filter.ShowAllPeersWhenHiddenTags&&R.value.includes(o.id)));return n.Configuration.Server.dashboard_sort==="restricted"?k.sort((o,w)=>o[n.Configuration.Server.dashboard_sort]<w[n.Configuration.Server.dashboard_sort]?1:o[n.Configuration.Server.dashboard_sort]>w[n.Configuration.Server.dashboard_sort]?-1:0).slice(0,$.value):k.sort((o,w)=>o[n.Configuration.Server.dashboard_sort]<w[n.Configuration.Server.dashboard_sort]?-1:o[n.Configuration.Server.dashboard_sort]>w[n.Configuration.Server.dashboard_sort]?1:0).slice(0,$.value)});return ee(()=>A.query.id,k=>{k?y.searchString=k:y.searchString=void 0},{immediate:!0}),(k,o)=>(i(),m("div",m2,[e("div",g2,[e("div",null,[e("div",h2,[e("h5",b2,[f(Xe,{protocol:_.value.Protocol},null,8,["protocol"])])]),e("div",v2,[e("h1",k2,[e("samp",null,D(_.value.Name),1)])])]),e("div",w2,[e("div",y2,[e("div",x2,[e("small",$2,[f(S,{t:"Status"})]),e("div",{class:L(["dot ms-2",{active:_.value.Status}])},null,2),e("div",_2,[e("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+_.value.id},[_.value.Status&&!x.value?(i(),I(S,{key:0,t:"On"})):!_.value.Status&&!x.value?(i(),I(S,{key:1,t:"Off"})):M("",!0),x.value?(i(),m("span",S2)):M("",!0)],8,P2),ue(e("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:x.value,type:"checkbox",role:"switch",id:"switch"+_.value.id,onChange:o[0]||(o[0]=w=>ie()),"onUpdate:modelValue":o[1]||(o[1]=w=>_.value.Status=w)},null,40,C2),[[Oe,_.value.Status]])])])]),e("div",D2,[e("a",{role:"button",onClick:o[2]||(o[2]=w=>p.value.peerNew.modalOpen=!0),class:"titleBtn py-2 text-decoration-none btn text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle"},[o[30]||(o[30]=e("i",{class:"bi bi-plus-circle me-2"},null,-1)),f(S,{t:"Peer"})]),e("button",{class:"titleBtn py-2 text-decoration-none btn text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle",onClick:o[3]||(o[3]=w=>p.value.editConfiguration.modalOpen=!0),type:"button","aria-expanded":"false"},[o[31]||(o[31]=e("i",{class:"bi bi-gear-fill me-2"},null,-1)),f(S,{t:"Configuration Settings"})])])])]),o[36]||(o[36]=e("hr",null,null,-1)),f(F6,{configuration:_.value},null,8,["configuration"]),e("div",O2,[e("div",M2,[e("div",q2,[e("div",I2,[e("p",T2,[e("small",null,[f(S,{t:"Address"})])]),F(" "+D(_.value.Address),1)])])]),e("div",j2,[e("div",B2,[e("div",A2,[e("p",R2,[e("small",null,[f(S,{t:"Listen Port"})])]),F(" "+D(_.value.ListenPort),1)])])]),e("div",L2,[e("div",E2,[e("div",N2,[e("p",F2,[e("small",null,[f(S,{t:"Public Key"})])]),e("samp",null,D(_.value.PublicKey),1)])])])]),e("div",z2,[e("div",H2,[e("div",Y2,[e("div",G2,[e("div",null,[e("p",W2,[e("small",null,[f(S,{t:"Connected Peers"})])]),e("strong",J2,D(T.value.connectedPeers)+" / "+D(b.value.length),1)]),o[32]||(o[32]=e("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1))])])]),e("div",V2,[e("div",U2,[e("div",Q2,[e("div",null,[e("p",K2,[e("small",null,[f(S,{t:"Total Usage"})])]),e("strong",Z2,D(T.value.totalUsage)+" GB",1)]),o[33]||(o[33]=e("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1))])])]),e("div",X2,[e("div",ef,[e("div",tf,[e("div",null,[e("p",lf,[e("small",null,[f(S,{t:"Total Received"})])]),e("strong",sf,D(T.value.totalReceive)+" GB",1)]),o[34]||(o[34]=e("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1))])])]),e("div",of,[e("div",af,[e("div",nf,[e("div",null,[e("p",rf,[e("small",null,[f(S,{t:"Total Sent"})])]),e("strong",df,D(T.value.totalSent)+" GB",1)]),o[35]||(o[35]=e("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1))])])])]),f(kt,{configurationPeers:b.value,configurationInfo:_.value},null,8,["configurationPeers","configurationInfo"]),o[37]||(o[37]=e("hr",null,null,-1)),e("div",cf,[b.value.length>0?(i(),I(Ec,{key:0,onSearch:o[4]||(o[4]=w=>P.value=!P.value),onJobsAll:o[5]||(o[5]=w=>p.value.peerScheduleJobsAll.modalOpen=!0),onJobLogs:o[6]||(o[6]=w=>p.value.peerScheduleJobsLogs.modalOpen=!0),onEditConfiguration:o[7]||(o[7]=w=>p.value.editConfiguration.modalOpen=!0),onSelectPeers:o[8]||(o[8]=w=>p.value.selectPeers.modalOpen=!0),onBackupRestore:o[9]||(o[9]=w=>p.value.backupRestore.modalOpen=!0),onDeleteConfiguration:o[10]||(o[10]=w=>p.value.deleteConfiguration.modalOpen=!0),configuration:_.value},null,8,["configuration"])):M("",!0),f(ge,{name:"peerList",tag:"div",class:"row gx-2 gy-2 z-0 position-relative"},{default:U(()=>[(i(!0),m(z,null,Y(N.value,(w,G)=>(i(),m("div",{class:L(["col-12",{"col-lg-6 col-xl-4":B(n).Configuration.Server.dashboard_peer_list_display==="grid"}]),key:w.id},[f(A6,{Peer:w,searchPeersLength:N.value.length,order:G,ConfigurationInfo:_.value,onDetails:V=>{p.value.peerDetails.modalOpen=!0,u.value=w},onShare:V=>{p.value.peerShare.modalOpen=!0,u.value=w},onRefresh:o[11]||(o[11]=V=>O()),onJobs:V=>{p.value.peerScheduleJobs.modalOpen=!0,u.value=w},onSetting:V=>{p.value.peerSetting.modalOpen=!0,u.value=w},onQrcode:V=>{u.value=w,p.value.peerQRCode.modalOpen=!0},onConfigurationFile:V=>{u.value=w,p.value.peerConfigurationFile.modalOpen=!0},onAssign:V=>{u.value=w,p.value.assignPeer.modalOpen=!0}},null,8,["Peer","searchPeersLength","order","ConfigurationInfo","onDetails","onShare","onJobs","onSetting","onQrcode","onConfigurationFile","onAssign"])],2))),128))]),_:1})]),f(re,{name:"slide-fade"},{default:U(()=>[P.value?(i(),I(B(s),{key:0,ConfigurationInfo:_.value,onClose:o[12]||(o[12]=w=>P.value=!1)},null,8,["ConfigurationInfo"])):M("",!0)]),_:1}),f(R6,{configurationModals:p.value,configurationModalSelectedPeer:u.value,onRefresh:o[13]||(o[13]=w=>O())},null,8,["configurationModals","configurationModalSelectedPeer"]),f(ge,{name:"zoom"},{default:U(()=>[(i(),I(Ze,{key:"PeerAddModal"},{default:U(()=>[p.value.peerNew.modalOpen?(i(),I(B(c),{key:0,onClose:o[14]||(o[14]=w=>p.value.peerNew.modalOpen=!1),onAddedPeers:o[15]||(o[15]=w=>{p.value.peerNew.modalOpen=!1,O()})})):M("",!0)]),_:1})),p.value.peerScheduleJobsAll.modalOpen?(i(),I(B(h),{key:"PeerJobsAllModal",onRefresh:o[16]||(o[16]=w=>O()),onAllLogs:o[17]||(o[17]=w=>p.value.peerScheduleJobsLogs.modalOpen=!0),onClose:o[18]||(o[18]=w=>p.value.peerScheduleJobsAll.modalOpen=!1),configurationPeers:b.value},null,8,["configurationPeers"])):M("",!0),p.value.peerScheduleJobsLogs.modalOpen?(i(),I(B(r),{key:"PeerJobsLogsModal",onClose:o[19]||(o[19]=w=>p.value.peerScheduleJobsLogs.modalOpen=!1),configurationInfo:_.value},null,8,["configurationInfo"])):M("",!0),p.value.editConfiguration.modalOpen?(i(),I(B(d),{key:"EditConfigurationModal",onEditRaw:o[20]||(o[20]=w=>p.value.editRawConfigurationFile.modalOpen=!0),onClose:o[21]||(o[21]=w=>p.value.editConfiguration.modalOpen=!1),onDataChanged:o[22]||(o[22]=w=>_.value=w),onRefresh:o[23]||(o[23]=w=>O()),onBackupRestore:o[24]||(o[24]=w=>p.value.backupRestore.modalOpen=!0),onDeleteConfiguration:o[25]||(o[25]=w=>p.value.deleteConfiguration.modalOpen=!0),configurationInfo:_.value},null,8,["configurationInfo"])):M("",!0),p.value.selectPeers.modalOpen?(i(),I(B(g),{key:3,onRefresh:o[26]||(o[26]=w=>O()),configurationPeers:b.value,onClose:o[27]||(o[27]=w=>p.value.selectPeers.modalOpen=!1)},null,8,["configurationPeers"])):M("",!0),p.value.peerDetails.modalOpen?(i(),I(p2,{key:"PeerDetailsModal",selectedPeer:N.value.find(w=>w.id===u.value.id),onClose:o[28]||(o[28]=w=>p.value.peerDetails.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0)]),_:1}),f(E6,{showPeersCount:$.value,peerListLength:N.value.length,onLoadMore:o[29]||(o[29]=w=>$.value+=uf)},null,8,["showPeersCount","peerListLength"])]))}},vf=Z(ff,[["__scopeId","data-v-f01325c0"]]);export{vf as default};
|