Files
WGDashboard/src/static/dist/WGDashboardAdmin/assets/peerList-BdwviaQq.js
2025-09-17 15:23:09 +08:00

3 lines
117 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/peerAssignModal-Cxin5Fa0.js","assets/localeText-C3GiyveB.js","assets/index-BQYwwrw6.js","assets/index-DQmUtZqH.css","assets/DashboardClientAssignmentStore-C6unIiM-.js","assets/peerAssignModal--_bmFbmn.css","assets/peerShareLinkModal-CFhcidUQ.js","assets/dayjs.min-CzHDLgWx.js","assets/vue-datepicker-g3vsoQR2.js","assets/peerShareLinkModal-GoWqB_pD.css","assets/peerJobs-CarCVF4P.js","assets/schedulePeerJob-Bx58TbYr.js","assets/schedulePeerJob-B9Bl6Gky.css","assets/peerJobs-D_dDl936.css","assets/peerQRCode-Be0lrPbm.js","assets/browser-BmbEXfbp.js","assets/galois-field-I2lBzzs-.js","assets/peerQRCode-BmkCjxyX.css","assets/peerConfigurationFile-CJe8w8t9.js","assets/peerConfigurationFile-Z9ms5mIx.css","assets/peerSettings-CNGRHhIV.js","assets/peerSettings-CSjO_Okh.css","assets/peerSearchBar-BlQP4FSd.js","assets/peerSearchBar-Dtpovmxo.css","assets/peerJobsAllModal-DKtxos7t.js","assets/peerJobsLogsModal-3HdFqqoi.js","assets/editConfiguration-CPThHBO9.js","assets/editConfiguration-CP79G5OS.css","assets/selectPeers-kt193GSv.js","assets/selectPeers-ChWyERy7.css","assets/peerAddModal-BfNIzuLd.js","assets/peerAddModal-B4gIHs91.css"])))=>i.map(i=>d[i]);
import{r as q,L as Oe,D as ie,o as ce,H as te,x as ue,q as R,G as H,c as p,a as o,b as e,d as r,u as T,e as M,t as O,g as le,B as W,W as ne,m as fe,n as B,s as he,y as _e,F as z,i as G,_ as Z,J as Me,v as qe,w as Q,j as I,T as be,k as re,A as Qe,z as ee,h as se,M as Ke,N as Ze,O as oe,f as F,P as V,Q as J,R as Ie,I as Xe,S as et}from"./index-BQYwwrw6.js";import{_ as tt}from"./protocolBadge-8muiyqcZ.js";import{L as P}from"./localeText-C3GiyveB.js";import{C as Te,L as je,B as Ae,a as Be,b as Le,c as Re,p as Ee,d as Ne,e as Fe,f as ze,P as He,i as Ye,h as lt,g as ve}from"./index-BuxJ900A.js";import{d as K}from"./dayjs.min-CzHDLgWx.js";import{M as st,V as ot,k as we,T as it,O as at,n as nt,F as Pe,P as rt,o as dt,p as ct,C as ut,q as ft,r as pt,s as mt}from"./Vector-zgNB5xDX.js";import{p as gt}from"./index-Bno8fcdN.js";const ht={class:"row gx-2 gy-2 mb-3"},bt={class:"col-12"},vt={class:"card rounded-3 bg-transparent",style:{height:"270px"}},kt={class:"card-header bg-transparent border-0"},wt={class:"text-muted"},yt={class:"card-body pt-1"},xt={class:"col-sm col-lg-6"},$t={class:"card rounded-3 bg-transparent",style:{height:"270px"}},_t={class:"card-header bg-transparent border-0 d-flex align-items-center"},Pt={class:"text-muted"},St={key:0,class:"text-primary fw-bold ms-auto"},Ct={class:"card-body pt-1"},Dt={class:"col-sm col-lg-6"},Ot={class:"card rounded-3 bg-transparent",style:{height:"270px"}},Mt={class:"card-header bg-transparent border-0 d-flex align-items-center"},qt={class:"text-muted"},It={key:0,class:"text-success fw-bold ms-auto"},Tt={class:"card-body pt-1"},jt={__name:"peerDataUsageCharts",props:{configurationPeers:Array,configurationInfo:Object},setup(l){Te.register(je,Ae,Be,Le,Re,Ee,Ne,Fe,ze,He,Ye);const t=l,i=q({timestamp:[],data:[]}),s=q({timestamp:[],data:[]}),g=Oe(),d=ie(),c=q(void 0),b=async()=>{await le("/api/getWireguardConfigurationRealtimeTraffic",{configurationName:g.params.id},D=>{let y=K().format("hh:mm:ss A");(D.data.sent!==0&&D.data.recv!==0||i.value.data.length>0&&s.value.data.length>0)&&(i.value.timestamp.push(y),i.value.data.push(D.data.sent),s.value.timestamp.push(y),s.value.data.push(D.data.recv))})},f=()=>{clearInterval(c.value),c.value=void 0,t.configurationInfo.Status&&(c.value=setInterval(()=>{b()},parseInt(d.Configuration.Server.dashboard_refresh_interval)))};ce(()=>{f()}),te(()=>t.configurationInfo.Status,()=>{f()}),te(()=>d.Configuration.Server.dashboard_refresh_interval,()=>{f()}),ue(()=>{clearInterval(c.value),c.value=void 0});const n=R(()=>{let D=t.configurationPeers.filter(y=>y.cumu_data+y.total_data>0);return{labels:D.map(y=>y.name?y.name:`Untitled Peer - ${y.id}`),datasets:[{label:"Total Data Usage",data:D.map(y=>y.cumu_data+y.total_data),backgroundColor:D.map(y=>"#ffc107"),tooltip:{callbacks:{label:y=>`${y.formattedValue} GB`}}}]}}),m=R(()=>({labels:[...i.value.timestamp],datasets:[{label:H("Data Sent"),data:[...i.value.data],fill:"start",borderColor:"#198754",backgroundColor:"#19875490",tension:0,pointRadius:2,borderWidth:1}]})),k=R(()=>({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}]})),w=R(()=>({responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(D,y)=>`${Math.round((D+Number.EPSILON)*1e3)/1e3} GB`},grid:{display:!1}}}})),$=R(()=>({responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:D=>`${D.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!0}},y:{ticks:{callback:(D,y)=>`${Math.round((D+Number.EPSILON)*1e3)/1e3} MB/s`},grid:{display:!0}}}}));return(D,y)=>(o(),p("div",ht,[e("div",bt,[e("div",vt,[e("div",kt,[e("small",wt,[r(P,{t:"Peers Data Usage"})])]),e("div",yt,[r(T(lt),{data:n.value,options:w.value,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["data","options"])])])]),e("div",xt,[e("div",$t,[e("div",_t,[e("small",Pt,[r(P,{t:"Real Time Received Data Usage"})]),s.value.data.length>0?(o(),p("small",St,O(s.value.data[s.value.data.length-1])+" MB/s ",1)):M("",!0)]),e("div",Ct,[r(T(ve),{options:$.value,data:k.value,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])]),e("div",Dt,[e("div",Ot,[e("div",Mt,[e("small",qt,[r(P,{t:"Real Time Sent Data Usage"})]),i.value.data.length>0?(o(),p("small",It,O(i.value.data[i.value.data.length-1])+" MB/s ",1)):M("",!0)]),e("div",Tt,[r(T(ve),{options:$.value,data:m.value,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])])]))}},At=61698,Bt=61705,Lt=61707,Rt=61709,Et=61777,Nt=61778,Ft=61780,zt=61781,Ht=61785,Yt=61817,Gt=61824,Vt=61826,Jt=61828,Wt=61832,Ut=61834,Qt=61835,Kt=61836,Zt=61837,Xt=61839,el=61844,tl=61858,ll=61860,sl=61861,ol=61864,il=61876,al=61896,nl=61897,rl=61898,dl=61900,cl=61910,ul=61912,fl=61914,pl=61916,ml=61917,gl=61918,hl=61920,bl=61942,vl=61964,kl=61972,wl=61976,yl=61984,xl=61985,$l=61987,_l=62018,Pl=62019,Sl=62020,Cl=62021,Dl=62023,Ol=62024,Ml=62056,ql=62062,Il=62066,Tl=62090,jl=62096,Al=62099,Bl=62145,Ll=62147,Rl=62149,El=62152,Nl=62156,Fl=62158,zl=62159,Hl=62161,Yl=62163,Gl=62164,Vl=62166,Jl=62173,Wl=62176,Ul=62179,Ql=62186,Kl=62193,Zl=62207,Xl=62208,es=62210,ts=62217,ls=62218,ss=62221,os=62222,is=62224,as=62227,ns=62229,rs=62255,ds=62257,cs=62268,us=62269,fs=62273,ps=62274,ms=62275,gs=62276,hs=62400,bs=62402,vs=62403,ks=62410,ws=62412,ys=62413,xs=62414,$s=62415,_s=62423,Ps=62425,Ss=62426,Cs=62428,Ds=62429,Os=62431,Ms=62433,qs=62437,Is=62438,Ts=62442,js=62444,As=62445,Bs=62446,Ls=62447,Rs=62448,Es=62460,Ns=62463,Fs=62473,zs=62474,Hs=62482,Ys=62483,Gs=62484,Vs=62487,Js=62490,Ws=62493,Us=62497,Qs=62501,Ks=62502,Zs=62503,Xs=62506,eo=62507,to=62509,lo=62511,so=62516,oo=62519,io=62520,ao=62534,no=62535,ro=62536,co=62539,uo=62541,fo=62543,po=62545,mo=62546,go=62548,ho=62550,bo=62555,vo=62571,ko=62575,wo=62577,yo=62578,xo=62585,$o=62587,_o=62588,Po=62589,So=62591,Co=62593,Do=62594,Oo=62596,Mo=62608,qo=62610,Io=62611,To=62615,jo=62617,Ao=62619,Bo=62621,Lo=62627,Ro=62633,Eo=62636,No=62637,Fo=62638,zo=62641,Ho=62642,Yo=62643,Go=62644,Vo=62660,Jo=62662,Wo=62664,Uo=62667,Qo=62670,Ko=62672,Zo=62673,Xo=62689,ei=62695,ti=62701,li=62703,si=62709,oi=62711,ii=62718,ai=62719,ni=62721,ri=62723,di=62732,ci=62733,ui=62735,fi=62746,pi=62748,mi=62752,gi=62754,hi=62755,bi=62757,vi=62759,ki=62760,wi=62761,yi=62762,xi=62764,$i=62766,_i=62783,Pi=62785,Si=62787,Ci=62788,Di=62794,Oi=62796,Mi=62821,qi=62826,Ii=62827,Ti=62828,ji=62829,Ai=62830,Bi=62831,Li=62844,Ri=62846,Ei=62847,Ni=62848,Fi=62849,zi=62852,Hi=62853,Yi=62856,Gi=62857,Vi=62859,Ji=62861,Wi=62867,Ui=62869,Qi=62871,Ki=62872,Zi=62882,Xi=62883,ea=62885,ta=62887,la=62890,sa=62894,oa=62896,ia=62898,aa=62899,na=62913,ra=62915,da=62924,ca=62930,ua=62937,fa=62938,pa=62939,ma=62940,ga=62942,ha=62944,ba=62946,va=62949,ka=62951,wa=62954,ya=62955,xa=62957,$a=62958,_a=62959,Pa=62967,Sa=62973,Ca=62974,Da=62976,Oa=62978,Ma=62979,qa=62984,Ia=62985,Ta=62994,ja=62996,Aa=62997,Ba=62998,La=62999,Ra=63e3,Ea=63004,Na=63005,Fa=63008,za=63009,Ha=63018,Ya=63019,Ga=63022,Va=63023,Ja=63028,Wa=63047,Ua=63048,Qa=63055,Ka=63056,Za=63059,Xa=63062,en=63064,tn=63066,ln=63067,sn=63069,on=63070,an=63068,nn=63071,rn=63072,dn=63073,cn=63074,un=63075,fn=63076,pn=63077,mn=63078,gn=63080,hn=63081,bn=63082,vn=63083,kn=63085,wn=63087,yn=63088,xn=63089,$n=63092,_n=63093,Pn=63099,Sn=63101,Cn=63105,Dn=63106,On=63108,Mn=63109,qn=63111,In=63113,Tn=63132,jn=63133,An=63134,Bn=63137,Ln=63144,Rn=63145,En=63148,Nn=63151,Fn=63152,zn=63153,Hn=63168,Yn=63169,Gn=63179,Vn=63180,Jn=63188,Wn=63189,Un=63191,Qn=63198,Kn=63201,Zn=63203,Xn=63205,er=63207,tr=63212,lr=63216,sr=63230,or=63241,ir=63245,ar=63283,nr=63345,rr=63346,dr=63348,cr=63351,ur=63353,fr=63357,pr=63361,mr=63365,gr=63369,hr=63371,br=63372,vr=63373,kr=63437,wr=63438,yr=63439,xr=63440,$r=63441,_r=63455,Pr=63459,Sr=63469,Cr=63478,Dr=63486,Or=63488,Mr=63497,qr=63498,Ir=63499,Tr=63507,jr=63513,Ar=63522,Br=63523,Lr=63524,Rr=63527,Er=63528,Nr=63529,Fr=63530,zr=63558,Hr=63559,Yr=63560,Gr=63561,Vr=63562,Jr=63565,Wr=63613,Ur=63659,Qr=63662,Kr=63684,Zr=63686,Xr=63687,ed=63692,td=63114,ld=63117,sd=63138,od=63158,id=63170,ad=63200,nd=63213,rd=63214,dd=63321,cd=63337,ud=63380,fd=63423,pd=63428,md=63448,gd=63460,hd=63461,bd=63480,vd=63500,kd=63501,wd=63695,yd=63702,xd=63703,$d=63705,_d=63706,Pd=63712,Sd=63714,Cd=63716,Dd=63718,Od=63719,Md=63723,qd=63724,Id=63726,Td=63728,jd=63733,Ad=63740,Bd=63744,Ld=63746,Rd=63747,Ed=63481,Nd=63748,Fd=63750,zd=63754,Hd=63756,Yd=63760,Gd=63762,Vd=63764,Jd=63765,Wd=63766,Ud=63767,Qd=63768,Kd=63769,$e={123:63103,"alarm-fill":61697,alarm:At,"align-bottom":61699,"align-center":61700,"align-end":61701,"align-middle":61702,"align-start":61703,"align-top":61704,alt:Bt,"app-indicator":61706,app:Lt,"archive-fill":61708,archive:Rt,"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:Et,at:Nt,"award-fill":61779,award:Ft,back:zt,"backspace-fill":61782,"backspace-reverse-fill":61783,"backspace-reverse":61784,backspace:Ht,"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:Yt,"bar-chart-fill":61818,"bar-chart-line-fill":61819,"bar-chart-line":61820,"bar-chart-steps":61821,"bar-chart":61822,"basket-fill":61823,basket:Gt,"basket2-fill":61825,basket2:Vt,"basket3-fill":61827,basket3:Jt,"battery-charging":61829,"battery-full":61830,"battery-half":61831,battery:Wt,"bell-fill":61833,bell:Ut,bezier:Qt,bezier2:Kt,bicycle:Zt,"binoculars-fill":61838,binoculars:Xt,"blockquote-left":61840,"blockquote-right":61841,"book-fill":61842,"book-half":61843,book:el,"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:tl,"bookmarks-fill":61859,bookmarks:ll,bookshelf:sl,"bootstrap-fill":61862,"bootstrap-reboot":61863,bootstrap:ol,"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:il,"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:al,braces:nl,bricks:rl,"briefcase-fill":61899,briefcase:dl,"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:cl,"brush-fill":61911,brush:ul,"bucket-fill":61913,bucket:fl,"bug-fill":61915,bug:pl,building:ml,bullseye:gl,"calculator-fill":61919,calculator:hl,"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:bl,"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:vl,"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:kl,"calendar4-event":61973,"calendar4-range":61974,"calendar4-week":61975,calendar4:wl,"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:yl,camera2:xl,"capslock-fill":61986,capslock:$l,"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:_l,cart2:Pl,cart3:Sl,cart4:Cl,"cash-stack":62022,cash:Dl,cast:Ol,"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:Ml,"check-all":62057,"check-circle-fill":62058,"check-circle":62059,"check-square-fill":62060,"check-square":62061,check:ql,"check2-all":62063,"check2-circle":62064,"check2-square":62065,check2:Il,"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:Tl,"clipboard-check":62091,"clipboard-data":62092,"clipboard-minus":62093,"clipboard-plus":62094,"clipboard-x":62095,clipboard:jl,"clock-fill":62097,"clock-history":62098,clock:Al,"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:Bl,"clouds-fill":62146,clouds:Ll,"cloudy-fill":62148,cloudy:Rl,"code-slash":62150,"code-square":62151,code:El,"collection-fill":62153,"collection-play-fill":62154,"collection-play":62155,collection:Nl,"columns-gap":62157,columns:Fl,command:zl,"compass-fill":62160,compass:Hl,"cone-striped":62162,cone:Yl,controller:Gl,"cpu-fill":62165,cpu:Vl,"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:Jl,"cup-fill":62174,"cup-straw":62175,cup:Wl,"cursor-fill":62177,"cursor-text":62178,cursor:Ul,"dash-circle-dotted":62180,"dash-circle-fill":62181,"dash-circle":62182,"dash-square-dotted":62183,"dash-square-fill":62184,"dash-square":62185,dash:Ql,"diagram-2-fill":62187,"diagram-2":62188,"diagram-3-fill":62189,"diagram-3":62190,"diamond-fill":62191,"diamond-half":62192,diamond:Kl,"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:Zl,discord:Xl,"display-fill":62209,display:es,"distribute-horizontal":62211,"distribute-vertical":62212,"door-closed-fill":62213,"door-closed":62214,"door-open-fill":62215,"door-open":62216,dot:ts,download:ls,"droplet-fill":62219,"droplet-half":62220,droplet:ss,earbuds:os,"easel-fill":62223,easel:is,"egg-fill":62225,"egg-fried":62226,egg:as,"eject-fill":62228,eject:ns,"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:rs,"eraser-fill":62256,eraser:ds,"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:cs,exclude:us,"eye-fill":62270,"eye-slash-fill":62271,"eye-slash":62272,eye:fs,eyedropper:ps,eyeglasses:ms,facebook:gs,"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:hs,"files-alt":62401,files:bs,film:vs,"filter-circle-fill":62404,"filter-circle":62405,"filter-left":62406,"filter-right":62407,"filter-square-fill":62408,"filter-square":62409,filter:ks,"flag-fill":62411,flag:ws,flower1:ys,flower2:xs,flower3:$s,"folder-check":62416,"folder-fill":62417,"folder-minus":62418,"folder-plus":62419,"folder-symlink-fill":62420,"folder-symlink":62421,"folder-x":62422,folder:_s,"folder2-open":62424,folder2:Ps,fonts:Ss,"forward-fill":62427,forward:Cs,front:Ds,"fullscreen-exit":62430,fullscreen:Os,"funnel-fill":62432,funnel:Ms,"gear-fill":62434,"gear-wide-connected":62435,"gear-wide":62436,gear:qs,gem:Is,"geo-alt-fill":62439,"geo-alt":62440,"geo-fill":62441,geo:Ts,"gift-fill":62443,gift:js,github:As,globe:Bs,globe2:Ls,google:Rs,"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:Es,"grip-horizontal":62461,"grip-vertical":62462,hammer:Ns,"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:Fs,hash:zs,"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:Hs,headphones:Ys,headset:Gs,"heart-fill":62485,"heart-half":62486,heart:Vs,"heptagon-fill":62488,"heptagon-half":62489,heptagon:Js,"hexagon-fill":62491,"hexagon-half":62492,hexagon:Ws,"hourglass-bottom":62494,"hourglass-split":62495,"hourglass-top":62496,hourglass:Us,"house-door-fill":62498,"house-door":62499,"house-fill":62500,house:Qs,hr:Ks,hurricane:Zs,"image-alt":62504,"image-fill":62505,image:Xs,images:eo,"inbox-fill":62508,inbox:to,"inboxes-fill":62510,inboxes:lo,"info-circle-fill":62512,"info-circle":62513,"info-square-fill":62514,"info-square":62515,info:so,"input-cursor-text":62517,"input-cursor":62518,instagram:oo,intersect:io,"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:ao,journals:no,joystick:ro,"justify-left":62537,"justify-right":62538,justify:co,"kanban-fill":62540,kanban:uo,"key-fill":62542,key:fo,"keyboard-fill":62544,keyboard:po,ladder:mo,"lamp-fill":62547,lamp:go,"laptop-fill":62549,laptop:ho,"layer-backward":62551,"layer-forward":62552,"layers-fill":62553,"layers-half":62554,layers:bo,"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:vo,"lightning-charge-fill":62572,"lightning-charge":62573,"lightning-fill":62574,lightning:ko,"link-45deg":62576,link:wo,linkedin:yo,"list-check":62579,"list-nested":62580,"list-ol":62581,"list-stars":62582,"list-task":62583,"list-ul":62584,list:xo,"lock-fill":62586,lock:$o,mailbox:_o,mailbox2:Po,"map-fill":62590,map:So,"markdown-fill":62592,markdown:Co,mask:Do,"megaphone-fill":62595,megaphone:Oo,"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:Mo,"minecart-loaded":62609,minecart:qo,moisture:Io,"moon-fill":62612,"moon-stars-fill":62613,"moon-stars":62614,moon:To,"mouse-fill":62616,mouse:jo,"mouse2-fill":62618,mouse2:Ao,"mouse3-fill":62620,mouse3:Bo,"music-note-beamed":62622,"music-note-list":62623,"music-note":62624,"music-player-fill":62625,"music-player":62626,newspaper:Lo,"node-minus-fill":62628,"node-minus":62629,"node-plus-fill":62630,"node-plus":62631,"nut-fill":62632,nut:Ro,"octagon-fill":62634,"octagon-half":62635,octagon:Eo,option:No,outlet:Fo,"paint-bucket":62639,"palette-fill":62640,palette:zo,palette2:Ho,paperclip:Yo,paragraph:Go,"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:Vo,"peace-fill":62661,peace:Jo,"pen-fill":62663,pen:Wo,"pencil-fill":62665,"pencil-square":62666,pencil:Uo,"pentagon-fill":62668,"pentagon-half":62669,pentagon:Qo,"people-fill":62671,people:Ko,percent:Zo,"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:Xo,"phone-fill":62690,"phone-landscape-fill":62691,"phone-landscape":62692,"phone-vibrate-fill":62693,"phone-vibrate":62694,phone:ei,"pie-chart-fill":62696,"pie-chart":62697,"pin-angle-fill":62698,"pin-angle":62699,"pin-fill":62700,pin:ti,"pip-fill":62702,pip:li,"play-btn-fill":62704,"play-btn":62705,"play-circle-fill":62706,"play-circle":62707,"play-fill":62708,play:si,"plug-fill":62710,plug:oi,"plus-circle-dotted":62712,"plus-circle-fill":62713,"plus-circle":62714,"plus-square-dotted":62715,"plus-square-fill":62716,"plus-square":62717,plus:ii,power:ai,"printer-fill":62720,printer:ni,"puzzle-fill":62722,puzzle:ri,"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:di,rainbow:ci,"receipt-cutoff":62734,receipt:ui,"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:fi,"record2-fill":62747,record2:pi,"reply-all-fill":62749,"reply-all":62750,"reply-fill":62751,reply:mi,"rss-fill":62753,rss:gi,rulers:hi,"save-fill":62756,save:bi,"save2-fill":62758,save2:vi,scissors:ki,screwdriver:wi,search:yi,"segmented-nav":62763,server:xi,"share-fill":62765,share:$i,"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:_i,"shift-fill":62784,shift:Pi,"shop-window":62786,shop:Si,shuffle:Ci,"signpost-2-fill":62789,"signpost-2":62790,"signpost-fill":62791,"signpost-split-fill":62792,"signpost-split":62793,signpost:Di,"sim-fill":62795,sim:Oi,"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:Mi,"slash-circle-fill":62822,"slash-circle":62823,"slash-square-fill":62824,"slash-square":62825,slash:qi,sliders:Ii,smartwatch:Ti,snow:ji,snow2:Ai,snow3:Bi,"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:Li,"speaker-fill":62845,speaker:Ri,speedometer:Ei,speedometer2:Ni,spellcheck:Fi,"square-fill":62850,"square-half":62851,square:zi,stack:Hi,"star-fill":62854,"star-half":62855,star:Yi,stars:Gi,"stickies-fill":62858,stickies:Vi,"sticky-fill":62860,sticky:Ji,"stop-btn-fill":62862,"stop-btn":62863,"stop-circle-fill":62864,"stop-circle":62865,"stop-fill":62866,stop:Wi,"stoplights-fill":62868,stoplights:Ui,"stopwatch-fill":62870,stopwatch:Qi,subtract:Ki,"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:Zi,sunglasses:Xi,"sunrise-fill":62884,sunrise:ea,"sunset-fill":62886,sunset:ta,"symmetry-horizontal":62888,"symmetry-vertical":62889,table:la,"tablet-fill":62891,"tablet-landscape-fill":62892,"tablet-landscape":62893,tablet:sa,"tag-fill":62895,tag:oa,"tags-fill":62897,tags:ia,telegram:aa,"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:na,"terminal-fill":62914,terminal:ra,"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:da,"thermometer-half":62925,"thermometer-high":62926,"thermometer-low":62927,"thermometer-snow":62928,"thermometer-sun":62929,thermometer:ca,"three-dots-vertical":62931,"three-dots":62932,"toggle-off":62933,"toggle-on":62934,"toggle2-off":62935,"toggle2-on":62936,toggles:ua,toggles2:fa,tools:pa,tornado:ma,"trash-fill":62941,trash:ga,"trash2-fill":62943,trash2:ha,"tree-fill":62945,tree:ba,"triangle-fill":62947,"triangle-half":62948,triangle:va,"trophy-fill":62950,trophy:ka,"tropical-storm":62952,"truck-flatbed":62953,truck:wa,tsunami:ya,"tv-fill":62956,tv:xa,twitch:$a,twitter:_a,"type-bold":62960,"type-h1":62961,"type-h2":62962,"type-h3":62963,"type-italic":62964,"type-strikethrough":62965,"type-underline":62966,type:Pa,"ui-checks-grid":62968,"ui-checks":62969,"ui-radios-grid":62970,"ui-radios":62971,"umbrella-fill":62972,umbrella:Sa,union:Ca,"unlock-fill":62975,unlock:Da,"upc-scan":62977,upc:Oa,upload:Ma,"vector-pen":62980,"view-list":62981,"view-stacked":62982,"vinyl-fill":62983,vinyl:qa,voicemail:Ia,"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:Ta,"wallet-fill":62995,wallet:ja,wallet2:Aa,watch:Ba,water:La,whatsapp:Ra,"wifi-1":63001,"wifi-2":63002,"wifi-off":63003,wifi:Ea,wind:Na,"window-dock":63006,"window-sidebar":63007,window:Fa,wrench:za,"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:Ha,youtube:Ya,"zoom-in":63020,"zoom-out":63021,bank:Ga,bank2:Va,"bell-slash-fill":63024,"bell-slash":63025,"cash-coin":63026,"check-lg":63027,coin:Ja,"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:Wa,messenger:Ua,"piggy-bank-fill":63049,"piggy-bank":63050,"pin-map-fill":63051,"pin-map":63052,"plus-lg":63053,"question-lg":63054,recycle:Qa,reddit:Ka,"safe-fill":63057,"safe2-fill":63058,safe2:Za,"sd-card-fill":63060,"sd-card":63061,skype:Xa,"slash-lg":63063,translate:en,"x-lg":63065,safe:tn,apple:ln,microsoft:sn,windows:on,behance:an,dribbble:nn,line:rn,medium:dn,paypal:cn,pinterest:un,signal:fn,snapchat:pn,spotify:mn,"stack-overflow":63079,strava:gn,wordpress:hn,vimeo:bn,activity:vn,"easel2-fill":63084,easel2:kn,"easel3-fill":63086,easel3:wn,fan:yn,fingerprint:xn,"graph-down-arrow":63090,"graph-up-arrow":63091,hypnotize:$n,magic:_n,"person-rolodex":63094,"person-video":63095,"person-video2":63096,"person-video3":63097,"person-workspace":63098,radioactive:Pn,"webcam-fill":63100,webcam:Sn,"yin-yang":63102,"bandaid-fill":63104,bandaid:Cn,bluetooth:Dn,"body-text":63107,boombox:On,boxes:Mn,"dpad-fill":63110,dpad:qn,"ear-fill":63112,ear:In,"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:Tn,git:jn,infinity:An,"list-columns-reverse":63135,"list-columns":63136,meta:Bn,"nintendo-switch":63140,"pc-display-horizontal":63141,"pc-display":63142,"pc-horizontal":63143,pc:Ln,playstation:Rn,"plus-slash-minus":63146,"projector-fill":63147,projector:En,"qr-code-scan":63149,"qr-code":63150,quora:Nn,quote:Fn,robot:zn,"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:Hn,steam:Yn,"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:Gn,tiktok:Vn,"window-dash":63181,"window-desktop":63182,"window-fullscreen":63183,"window-plus":63184,"window-split":63185,"window-stack":63186,"window-x":63187,xbox:Jn,ethernet:Wn,"hdmi-fill":63190,hdmi:Un,"usb-c-fill":63192,"usb-c":63193,"usb-fill":63194,"usb-plug-fill":63195,"usb-plug":63196,"usb-symbol":63197,usb:Qn,"boombox-fill":63199,displayport:Kn,"gpu-card":63202,memory:Zn,"modem-fill":63204,modem:Xn,"motherboard-fill":63206,motherboard:er,"optical-audio-fill":63208,"optical-audio":63209,"pci-card":63210,"router-fill":63211,router:tr,"thunderbolt-fill":63215,thunderbolt:lr,"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:sr,"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:or,"box2-fill":63242,"box2-heart-fill":63243,"box2-heart":63244,box2:ir,"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:ar,"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:nr,hearts:rr,"hospital-fill":63347,hospital:dr,"house-heart-fill":63349,"house-heart":63350,incognito:cr,"magnet-fill":63352,magnet:ur,"person-heart":63354,"person-hearts":63355,"phone-flip":63356,plugin:fr,"postage-fill":63358,"postage-heart-fill":63359,"postage-heart":63360,postage:pr,"postcard-fill":63362,"postcard-heart-fill":63363,"postcard-heart":63364,postcard:mr,"search-heart-fill":63366,"search-heart":63367,"sliders2-vertical":63368,sliders2:gr,"trash3-fill":63370,trash3:hr,valentine:br,valentine2:vr,"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:kr,alexa:wr,alipay:yr,android:xr,android2:$r,"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:_r,"car-front-fill":63456,"car-front":63457,"cassette-fill":63458,cassette:Pr,"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:Sr,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:Cr,"google-play":63479,"h-circle-fill":63482,"h-circle":63483,"h-square-fill":63484,"h-square":63485,indent:Dr,"lungs-fill":63487,lungs:Or,"microsoft-teams":63489,"p-circle-fill":63492,"p-circle":63493,"p-square-fill":63494,"p-square":63495,"pass-fill":63496,pass:Mr,prescription:qr,prescription2:Ir,"r-circle-fill":63502,"r-circle":63503,"r-square-fill":63504,"r-square":63505,"repeat-1":63506,repeat:Tr,"rewind-btn-fill":63508,"rewind-btn":63509,"rewind-circle-fill":63510,"rewind-circle":63511,"rewind-fill":63512,rewind:jr,"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:Ar,unindent:Br,unity:Lr,"universal-access-circle":63525,"universal-access":63526,virus:Rr,virus2:Er,wechat:Nr,yelp:Fr,"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:zr,stripe:Hr,subscript:Yr,superscript:Gr,trello:Vr,"envelope-at-fill":63563,"envelope-at":63564,regex:Jr,"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:Wr,"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:Ur,"taxi-front-fill":63660,"taxi-front":63661,amd:Qr,"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:Kr,"houses-fill":63685,houses:Zr,nvidia:Xr,"person-vcard-fill":63688,"person-vcard":63689,"sina-weibo":63690,"tencent-qq":63691,wikipedia:ed,"alphabet-uppercase":62117,alphabet:td,amazon:ld,"arrows-collapse-vertical":63120,"arrows-expand-vertical":63125,"arrows-vertical":63128,arrows:sd,"ban-fill":63139,ban:od,bing:id,cake:ad,cake2:nd,cookie:rd,copy:dd,crosshair:cd,crosshair2:ud,"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:fd,feather2:pd,"floppy-fill":63429,floppy:md,"floppy2-fill":63449,floppy2:gd,gitlab:hd,highlighter:bd,"marker-tip":63490,"nvme-fill":63491,nvme:vd,opencollective:kd,"pci-card-network":63693,"pci-card-sound":63694,radar:wd,"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:yd,substack:xd,"threads-fill":63704,threads:$d,transparency:_d,"twitter-x":63707,"type-h4":63708,"type-h5":63709,"type-h6":63710,"backpack-fill":63711,backpack:Pd,"backpack2-fill":63713,backpack2:Sd,"backpack3-fill":63715,backpack3:Cd,"backpack4-fill":63717,backpack4:Dd,brilliance:Od,"cake-fill":63720,"cake2-fill":63721,"duffle-fill":63722,duffle:Md,exposure:qd,"gender-neuter":63725,highlights:Id,"luggage-fill":63727,luggage:Td,"mailbox-flag":63729,"mailbox2-flag":63730,"noise-reduction":63731,"passport-fill":63732,passport:jd,"person-arms-up":63734,"person-raised-hand":63735,"person-standing-dress":63736,"person-standing":63737,"person-walking":63738,"person-wheelchair":63739,shadows:Ad,"suitcase-fill":63741,"suitcase-lg-fill":63742,"suitcase-lg":63743,suitcase:Bd,"suitcase2-fill":63745,suitcase2:Ld,vignette:Rd,bluesky:Ed,tux:Nd,"beaker-fill":63749,beaker:Fd,"flask-fill":63751,"flask-florence-fill":63752,"flask-florence":63753,flask:zd,"leaf-fill":63755,leaf:Hd,"measuring-cup-fill":63757,"measuring-cup":63758,"unlock2-fill":63759,unlock2:Yd,"battery-low":63761,anthropic:Gd,"apple-music":63763,claude:Vd,openai:Jd,perplexity:Wd,css:Ud,javascript:Qd,typescript:Kd,"fork-knife":63770,"globe-americas-fill":63771,"globe-asia-australia-fill":63772,"globe-central-south-asia-fill":63773,"globe-europe-africa-fill":63774},Zd={class:"border rounded-3 p-2"},Xd={class:"align-items-center overflow-scroll d-flex gap-2 position-relative"},ec=["aria-label"],tc={key:1,style:{"white-space":"nowrap"}},lc=["disabled","placeholder"],sc=W({__name:"peerTagSetting",props:["group","edit","groupId"],emits:["delete","iconPickerOpen","colorPickerOpen","toggle"],setup(l,{emit:t}){const i=ne(),s=l,g=t,d=q(s.group.GroupName),c=()=>{i.Filter.HiddenTags.includes(s.groupId)?i.Filter.HiddenTags=i.Filter.HiddenTags.filter(b=>b!==s.groupId):i.Filter.HiddenTags.push(s.groupId)};return(b,f)=>(o(),p("div",Zd,[e("div",Xd,[e("button",{onClick:f[0]||(f[0]=n=>g("iconPickerOpen")),"aria-label":"Pick icon button",class:B([{disabled:!l.edit},"d-flex align-items-center p-2 btn btn-sm border rounded-2"])},[l.group.Icon?(o(),p("i",{key:0,class:B(["bi","bi-"+l.group.Icon]),"aria-label":l.group.Icon},null,10,ec)):(o(),p("span",tc,[r(P,{t:"No Icon"})]))],2),e("button",{class:B([{disabled:!l.edit},"d-flex align-items-center p-2 btn btn-sm border rounded-2"]),"aria-label":"Pick color button",onClick:f[1]||(f[1]=n=>g("colorPickerOpen")),style:he({"background-color":l.group.BackgroundColor,color:T(i).colorText(l.group.BackgroundColor)})},[...f[6]||(f[6]=[e("i",{class:"bi bi-eyedropper"},null,-1)])],6),fe(e("input",{disabled:!l.edit,"onUpdate:modelValue":f[2]||(f[2]=n=>d.value=n),onChange:f[3]||(f[3]=n=>l.group.GroupName=d.value),placeholder:T(H)("Tag Name"),class:"form-control form-control-sm p-2 rounded-2 w-100"},null,40,lc),[[_e,d.value]]),l.edit?(o(),p("button",{key:0,"aria-label":"Delete Tag Button",onClick:f[4]||(f[4]=n=>g("delete")),class:"rounded-2 border p-2 btn btn-sm btn-outline-danger"},[...f[7]||(f[7]=[e("i",{class:"bi bi-trash-fill"},null,-1)])])):(o(),p("button",{key:1,"aria-label":"Show / Hide Button",style:{"white-space":"nowrap"},class:B([{active:!T(i).Filter.HiddenTags.includes(l.groupId)},"rounded-2 p-2 btn btn-sm btn-outline-primary"]),onClick:f[5]||(f[5]=n=>c())},[e("i",{class:B(["bi",[T(i).Filter.HiddenTags.includes(l.groupId)?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)],2))])]))}}),oc={class:"w-100 bg-body top-0 border rounded-2"},ic={class:"p-2 d-flex align-items-center gap-2 border-bottom"},ac=["placeholder"],nc={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"}},rc=["onClick"],dc={class:"p-2 border-top d-flex gap-2"},cc=W({__name:"peerTagIconPicker",props:["group"],emits:["close","select"],setup(l,{emit:t}){const i=t;ce(()=>{let d=document.querySelector(".icon-grid div.active");d&&(d.parentElement.scrollTop=document.querySelector(".icon-grid div.active").offsetTop-60)});const s=q(""),g=R(()=>s.value?[...Object.keys($e).filter(d=>d.includes(s.value.toLowerCase()))]:Object.keys($e));return(d,c)=>(o(),p("div",oc,[e("div",ic,[c[3]||(c[3]=e("label",null,[e("i",{class:"bi bi-search"})],-1)),fe(e("input",{"onUpdate:modelValue":c[0]||(c[0]=b=>s.value=b),placeholder:T(H)("Search Icon"),class:"form-control form-control-sm rounded-2"},null,8,ac),[[_e,s.value]])]),e("div",nc,[(o(!0),p(z,null,G(g.value,b=>(o(),p("div",{class:B(["rounded-1 border icon d-flex",{"text-bg-success active":l.group.Icon===b}]),style:{cursor:"pointer"},key:b,onClick:f=>l.group.Icon=b},[e("i",{class:B(["bi m-auto","bi-"+b])},null,2)],10,rc))),128))]),e("div",dc,[e("button",{onClick:c[1]||(c[1]=b=>l.group.Icon=""),class:"btn btn-sm btn-secondary rounded-2 ms-auto"},[r(P,{t:"Remove Icon"})]),e("button",{class:"btn btn-sm btn-success rounded-2",onClick:c[2]||(c[2]=b=>i("close"))},[r(P,{t:"Done"})])])]))}}),uc=Z(cc,[["__scopeId","data-v-3c48f50e"]]),fc={class:"w-100 bg-body top-0 border rounded-2"},pc={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"}},mc=["aria-label","onClick"],gc={class:"p-2 border-top d-flex gap-2"},hc=W({__name:"peerTagColorPicker",props:["colors","group"],emits:["close","select",""],setup(l,{emit:t}){const i=t;q("");const s=ne();return ce(()=>{let g=document.querySelector(".icon-grid div.active");g&&(g.parentElement.scrollTop=document.querySelector(".icon-grid div.active").offsetTop-60)}),(g,d)=>(o(),p("div",fc,[e("div",pc,[(o(!0),p(z,null,G(l.colors,(c,b)=>(o(),p("div",{class:B(["rounded-1 border icon d-flex",{active:l.group.BackgroundColor===c}]),style:he([{cursor:"pointer"},{"background-color":c}]),"aria-label":b,key:c,onClick:f=>l.group.BackgroundColor=c},[l.group.BackgroundColor===c?(o(),p("i",{key:0,style:he({color:T(s).colorText(c)}),class:"bi bi-check-circle m-auto"},null,4)):M("",!0)],14,mc))),128))]),e("div",gc,[e("button",{class:"btn btn-sm btn-success rounded-2 ms-auto",onClick:d[0]||(d[0]=c=>i("close"))},[r(P,{t:"Done"})])])]))}}),bc=Z(hc,[["__scopeId","data-v-accdf15e"]]),vc={class:"card shadow rounded-3",id:"peerTag"},kc={class:"card-header"},wc={class:"form-check form-switch"},yc={class:"form-check-label",for:"showAllPeers"},xc={class:"card-body p-2"},$c={key:0},_c={key:0,class:"text-center text-muted"},Pc={key:1,class:"d-flex flex-column gap-2"},Sc={class:"card-footer p-2 d-flex gap-2"},Cc=W({__name:"peerTag",props:["configuration"],emits:["close","update"],setup(l,{emit:t}){const i={"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(),g=l,d=Me({...g.configuration.Info.PeerGroups}),c=()=>{d[Qe().toString()]={GroupName:"",Description:"",BackgroundColor:b(),Icon:f(),Peers:[]}},b=()=>{const D=Object.keys(i),y=Math.floor(Math.random()*D.length)+1;return i[D[y]]},f=()=>{const D=Object.keys($e),y=Math.floor(Math.random()*D.length)+1;return D[y]},n=q(!1),m=q(!1),k=q(""),w=t;te(()=>d,D=>{ee("/api/updateWireguardConfigurationInfo",{Name:g.configuration.Name,Key:"PeerGroups",Value:D},y=>{y.status&&w("update",d)})},{deep:!0});const $=q(!1);return(D,y)=>(o(),p("div",vc,[e("div",kc,[e("div",wc,[fe(e("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"showAllPeers","onUpdate:modelValue":y[0]||(y[0]=u=>T(s).Filter.ShowAllPeersWhenHiddenTags=u)},null,512),[[qe,T(s).Filter.ShowAllPeersWhenHiddenTags]]),e("label",yc,[e("small",null,[r(P,{t:"Show All Peers"})])])])]),e("div",xc,[r(re,{name:"zoom",mode:"out-in"},{default:Q(()=>[!n.value&&!m.value?(o(),p("div",$c,[Object.keys(d).length===0?(o(),p("div",_c,[e("small",null,[r(P,{t:"No tag"})])])):(o(),p("div",Pc,[r(be,{name:"slide-fade"},{default:Q(()=>[(o(!0),p(z,null,G(d,(u,h)=>(o(),I(sc,{groupId:h,onDelete:C=>{delete d[h],T(s).Filter.HiddenTags=T(s).Filter.HiddenTags.filter(N=>N!==h)},onColorPickerOpen:C=>{m.value=!0,k.value=h},onIconPickerOpen:C=>{n.value=!0,k.value=h},key:h,edit:$.value,group:u},null,8,["groupId","onDelete","onColorPickerOpen","onIconPickerOpen","edit","group"]))),128))]),_:1})]))])):n.value?(o(),I(uc,{key:1,onClose:y[1]||(y[1]=u=>n.value=!1),group:d[k.value]},null,8,["group"])):m.value?(o(),I(bc,{key:2,colors:i,onClose:y[2]||(y[2]=u=>m.value=!1),group:d[k.value]},null,8,["group"])):M("",!0)]),_:1})]),e("div",Sc,[$.value?(o(),p(z,{key:1},[e("button",{onClick:c,class:"btn btn-sm bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3"},[e("small",null,[y[7]||(y[7]=e("i",{class:"bi bi-plus-lg me-2"},null,-1)),r(P,{t:"Tag"})])]),e("button",{onClick:y[5]||(y[5]=u=>$.value=!1),class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3 ms-auto"},[e("small",null,[r(P,{t:"Done"})])])],64)):(o(),p(z,{key:0},[e("button",{onClick:y[3]||(y[3]=u=>w("close")),class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3"},[e("small",null,[r(P,{t:"Close"})])]),e("button",{onClick:y[4]||(y[4]=u=>$.value=!0),class:"btn btn-sm bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3 ms-auto"},[e("small",null,[y[6]||(y[6]=e("i",{class:"bi bi-pen me-2"},null,-1)),r(P,{t:"Edit"})])])],64))])]))}}),Dc=Z(Cc,[["__scopeId","data-v-ab3e5c4e"]]),Oc={name:"peerSearch",components:{PeerTag:Dc,LocaleText:P},setup(){const l=ie(),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){ee("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_sort",value:l},t=>{t.status&&this.store.getConfiguration()})},updateRefreshInterval(l){ee("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:l},t=>{t.status&&this.store.getConfiguration()})},updateDisplay(l){ee("/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"},qc={class:"d-flex gap-2 peerSearchContainer"},Ic={class:"dropdown"},Tc={"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"},jc={class:"badge text-bg-primary ms-2"},Ac={class:"dropdown-menu rounded-3"},Bc=["onClick"],Lc={class:"ms-auto"},Rc={key:0,class:"bi bi-check-circle-fill"},Ec={class:"dropdown"},Nc={"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"},Fc={class:"badge text-bg-primary ms-2"},zc={class:"dropdown-menu rounded-3"},Hc=["onClick"],Yc={class:"ms-auto"},Gc={key:0,class:"bi bi-check-circle-fill"},Vc={class:"dropdown"},Jc={"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"},Wc={class:"badge text-bg-primary ms-2"},Uc={class:"dropdown-menu rounded-3"},Qc=["onClick"],Kc={class:"ms-auto"},Zc={key:0,class:"bi bi-check-circle-fill"},Xc={class:"position-relative"};function e6(l,t,i,s,g,d){const c=se("LocaleText"),b=se("PeerTag");return o(),p("div",Mc,[e("div",qc,[e("div",Ic,[e("button",Tc,[t[7]||(t[7]=e("i",{class:"bi bi-sort-up me-2"},null,-1)),r(c,{t:"Sort By"}),e("span",jc,O(this.sort[s.store.Configuration.Server.dashboard_sort]),1)]),e("ul",Ac,[(o(!0),p(z,null,G(this.sort,(f,n)=>(o(),p("li",null,[e("button",{class:"dropdown-item d-flex align-items-center",onClick:m=>this.updateSort(n)},[e("small",null,O(f),1),e("small",Lc,[s.store.Configuration.Server.dashboard_sort===n?(o(),p("i",Rc)):M("",!0)])],8,Bc)]))),256))])]),e("div",Ec,[e("button",Nc,[t[8]||(t[8]=e("i",{class:"bi bi-arrow-repeat me-2"},null,-1)),r(c,{t:"Refresh Interval"}),e("span",Fc,O(this.interval[s.store.Configuration.Server.dashboard_refresh_interval]),1)]),e("ul",zc,[(o(!0),p(z,null,G(this.interval,(f,n)=>(o(),p("li",null,[e("button",{class:"dropdown-item d-flex align-items-center",onClick:m=>this.updateRefreshInterval(n)},[e("small",null,O(f),1),e("small",Yc,[s.store.Configuration.Server.dashboard_refresh_interval===n?(o(),p("i",Gc)):M("",!0)])],8,Hc)]))),256))])]),e("div",Vc,[e("button",Jc,[e("i",{class:B(["bi me-2","bi-"+s.store.Configuration.Server.dashboard_peer_list_display])},null,2),r(c,{t:"Display"}),e("span",Wc,O(this.display[s.store.Configuration.Server.dashboard_peer_list_display]),1)]),e("ul",Uc,[(o(!0),p(z,null,G(this.display,(f,n)=>(o(),p("li",null,[e("button",{class:"dropdown-item d-flex align-items-center",onClick:m=>this.updateDisplay(n)},[e("small",null,O(f),1),e("small",Kc,[s.store.Configuration.Server.dashboard_peer_list_display===n?(o(),p("i",Zc)):M("",!0)])],8,Qc)]))),256))])]),e("div",Xc,[e("button",{onClick:t[0]||(t[0]=f=>g.tagManager=!g.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)),r(c,{t:"Tags"})]),r(re,{name:"slide-fade"},{default:Q(()=>[this.tagManager?(o(),I(b,{key:0,onUpdate:t[1]||(t[1]=f=>i.configuration.Info.PeerGroups=f),onClose:t[2]||(t[2]=f=>this.tagManager=!1),configuration:i.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]=f=>this.$emit("search"))},[t[10]||(t[10]=e("i",{class:"bi bi-search me-2"},null,-1)),r(c,{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]=f=>this.downloadAllPeer())},[t[11]||(t[11]=e("i",{class:"bi bi-download me-2 me-lg-0 me-xl-2"},null,-1)),r(c,{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]=f=>this.$emit("selectPeers"))},[t[12]||(t[12]=e("i",{class:"bi bi-check2-all me-2 me-lg-0 me-xl-2"},null,-1)),r(c,{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]=f=>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)),r(c,{t:"Active Jobs",class:"d-sm-block d-lg-none d-xl-block"})])])])}const t6=Z(Oc,[["render",e6],["__scopeId","data-v-71502547"]]);function l6(l){return Ke()?(Ze(l),!0):!1}const Ge=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const s6=Object.prototype.toString,o6=l=>s6.call(l)==="[object Object]",ae=()=>{},i6=a6();function a6(){var l,t;return Ge&&((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 ye(l){return Array.isArray(l)?l:[l]}function n6(l,t,i){return te(l,t,{...i,immediate:!0})}const Ve=Ge?window:void 0;function de(l){var t;const i=oe(l);return(t=i?.$el)!=null?t:i}function xe(...l){const t=[],i=()=>{t.forEach(b=>b()),t.length=0},s=(b,f,n,m)=>(b.addEventListener(f,n,m),()=>b.removeEventListener(f,n,m)),g=R(()=>{const b=ye(oe(l[0])).filter(f=>f!=null);return b.every(f=>typeof f!="string")?b:void 0}),d=n6(()=>{var b,f;return[(f=(b=g.value)==null?void 0:b.map(n=>de(n)))!=null?f:[Ve].filter(n=>n!=null),ye(oe(g.value?l[1]:l[0])),ye(T(g.value?l[2]:l[1])),oe(g.value?l[3]:l[2])]},([b,f,n,m])=>{if(i(),!b?.length||!f?.length||!n?.length)return;const k=o6(m)?{...m}:m;t.push(...b.flatMap(w=>f.flatMap($=>n.map(D=>s(w,$,D,k)))))},{flush:"post"}),c=()=>{d(),i()};return l6(i),c}let Se=!1;function r6(l,t,i={}){const{window:s=Ve,ignore:g=[],capture:d=!0,detectIframe:c=!1,controls:b=!1}=i;if(!s)return b?{stop:ae,cancel:ae,trigger:ae}:ae;if(i6&&!Se){Se=!0;const u={passive:!0};Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",ae,u)),s.document.documentElement.addEventListener("click",ae,u)}let f=!0;const n=u=>oe(g).some(h=>{if(typeof h=="string")return Array.from(s.document.querySelectorAll(h)).some(C=>C===u.target||u.composedPath().includes(C));{const C=de(h);return C&&(u.target===C||u.composedPath().includes(C))}});function m(u){const h=oe(u);return h&&h.$.subTree.shapeFlag===16}function k(u,h){const C=oe(u),N=C.$.subTree&&C.$.subTree.children;return N==null||!Array.isArray(N)?!1:N.some(U=>U.el===h.target||h.composedPath().includes(U.el))}const w=u=>{const h=de(l);if(u.target!=null&&!(!(h instanceof Element)&&m(l)&&k(l,u))&&!(!h||h===u.target||u.composedPath().includes(h))){if("detail"in u&&u.detail===0&&(f=!n(u)),!f){f=!0;return}t(u)}};let $=!1;const D=[xe(s,"click",u=>{$||($=!0,setTimeout(()=>{$=!1},0),w(u))},{passive:!0,capture:d}),xe(s,"pointerdown",u=>{const h=de(l);f=!n(u)&&!!(h&&!u.composedPath().includes(h))},{passive:!0}),c&&xe(s,"blur",u=>{setTimeout(()=>{var h;const C=de(l);((h=s.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!C?.contains(s.document.activeElement)&&t(u)},0)},{passive:!0})].filter(Boolean),y=()=>D.forEach(u=>u());return b?{stop:y,cancel:()=>{f=!1},trigger:u=>{f=!0,w(u),f=!1}}:y}const d6={key:0,class:"position-absolute d-block p-1 px-2 bg-body text-body rounded-3 border shadow"},c6={__name:"peerSettingsDropdownTool",props:{icon:String,title:String},emits:["click"],setup(l,{emit:t}){const i=t,s=q(!1);return(g,d)=>(o(),p("a",{class:"dropdown-item text-center px-0 rounded-3 position-relative",role:"button",onMouseenter:d[0]||(d[0]=c=>s.value=!0),onMouseleave:d[1]||(d[1]=c=>s.value=!1),onClick:d[2]||(d[2]=c=>i("click"))},[e("i",{class:B(["me-auto bi",l.icon])},null,2),r(re,{name:"zoomReversed"},{default:Q(()=>[s.value?(o(),p("span",d6,[e("small",null,[r(P,{t:l.title},null,8,["t"])])])):M("",!0)]),_:1})],32))}},u6=Z(c6,[["__scopeId","data-v-d4e41a56"]]),f6={class:"mb-0"},Je=W({__name:"peerTagBadge",props:["BackgroundColor","GroupName","Icon"],setup(l){const t=ne();return(i,s)=>(o(),p("h6",f6,[e("span",{class:"badge rounded-3 shadow",style:he({"background-color":l.BackgroundColor,color:T(t).colorText(l.BackgroundColor)})},[l.Icon?(o(),p("i",{key:0,class:B(["bi",[l.Icon,l.GroupName?"me-2":""]])},null,2)):M("",!0),F(O(l.GroupName),1)],4)]))}}),p6={class:"dropdown-menu"},m6=["onClick"],g6={key:0,class:"bi bi-check-circle-fill"},h6={key:1,class:"bi bi-circle"},b6=W({__name:"peerTagSelectDropdown",props:["Peer","ConfigurationInfo"],emits:["update"],setup(l,{emit:t}){const i=l,s=Me({...i.ConfigurationInfo.Info.PeerGroups}),g=t;te(()=>s,c=>{ee("/api/updateWireguardConfigurationInfo",{Name:i.ConfigurationInfo.Name,Key:"PeerGroups",Value:c},b=>{b.status&&g("update",s)})},{deep:!0});const d=(c,b)=>{s[c].Peers.includes(b)?s[c].Peers=s[c].Peers.filter(f=>f!==b):s[c].Peers.push(b)};return(c,b)=>(o(),p("ul",p6,[(o(!0),p(z,null,G(s,(f,n)=>(o(),p("li",null,[e("a",{role:"button",onClick:m=>d(n,l.Peer.id),class:"dropdown-item d-flex align-items-center"},[f.Peers.includes(l.Peer.id)?(o(),p("i",g6)):(o(),p("i",h6)),r(Je,{class:"ms-auto",BackgroundColor:f.BackgroundColor,GroupName:f.GroupName,Icon:"bi-"+f.Icon},null,8,["BackgroundColor","GroupName","Icon"])],8,m6)]))),256))]))}}),v6={name:"peerSettingsDropdown",components:{PeerTagSelectDropdown:b6,PeerSettingsDropdownTool:u6,LocaleText:P},setup(){return{dashboardStore:ie()}},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"}),i=URL.createObjectURL(t),s=`${l.data.fileName}.conf`,g=document.createElement("a");g.href=i,g.download=s,g.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,ee(`/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,ee(`/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,ee(`/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})}}},k6={style:{"font-size":"0.8rem","padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},w6={class:"text-body d-flex"},y6={class:"ms-auto"},x6={key:1},$6={class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},_6={key:2},P6={class:"d-flex",style:{"padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},S6={class:"dropdown dropstart"},C6={class:"dropdown-item d-flex",role:"button","data-bs-auto-close":"outside","data-bs-toggle":"dropdown"},D6={key:1,class:"confirmDelete"},O6={style:{"white-space":"break-spaces"},class:"mb-2 d-block fw-bold"},M6={class:"d-flex w-100 gap-2"},q6=["disabled"],I6=["disabled"],T6={key:1};function j6(l,t,i,s,g,d){const c=se("LocaleText"),b=se("PeerSettingsDropdownTool"),f=se("PeerTagSelectDropdown");return o(),p("ul",{class:B([{dropup:i.dropup},"dropdown-menu mt-2 shadow-lg d-block rounded-3"]),id:"peerDropdown",style:{"max-width":"200px"}},[this.Peer.restricted?(o(),p("li",T6,[e("a",{class:B(["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?(o(),I(c,{key:1,t:"Allowing Access..."})):(o(),I(c,{key:0,t:"Allow Access"}))],2)])):(o(),p(z,{key:0},[this.confirmDelete?(o(),p("li",D6,[e("p",O6,[r(c,{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"},[r(c,{t:"Yes"})],8,q6),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"},[r(c,{t:"No"})],8,I6)])])):(o(),p(z,{key:0},[this.Peer.status==="running"?(o(),p(z,{key:0},[e("li",k6,[e("span",w6,[t[13]||(t[13]=e("i",{class:"bi bi-box-arrow-in-right"},null,-1)),e("span",y6,O(this.Peer.endpoint),1)])]),t[14]||(t[14]=e("li",null,[e("hr",{class:"dropdown-divider"})],-1))],64)):M("",!0),this.Peer.private_key?(o(),p("li",_6,[t[15]||(t[15]=e("div",{class:"text-center text-muted"},null,-1)),e("div",P6,[r(b,{icon:"bi-download",title:"Download",onClick:t[0]||(t[0]=n=>this.downloadPeer())}),r(b,{icon:"bi-qr-code",title:"QR Code",onClick:t[1]||(t[1]=n=>this.$emit("qrcode"))}),r(b,{icon:"bi-body-text",title:"Configuration File",onClick:t[2]||(t[2]=n=>this.$emit("configurationFile"))}),r(b,{icon:"bi-share",title:"Share Peer",onClick:t[3]||(t[3]=n=>this.$emit("share"))})])])):(o(),p("li",x6,[e("small",$6,[r(c,{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()),r(c,{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()),r(c,{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()),r(c,{t:"Assign Peer"})])]),e("li",S6,[e("a",C6,[t[22]||(t[22]=e("i",{class:"me-auto bi bi-tag"},null,-1)),t[23]||(t[23]=F()),r(c,{t:"Tag Peer"})]),r(f,{onUpdate:t[7]||(t[7]=n=>this.$emit("refresh")),Peer:i.Peer,ConfigurationInfo:i.ConfigurationInfo},null,8,["Peer","ConfigurationInfo"])]),t[27]||(t[27]=e("li",null,[e("hr",{class:"dropdown-divider"})],-1)),e("li",null,[e("a",{class:B(["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?(o(),I(c,{key:1,t:"Restricting..."})):(o(),I(c,{key:0,t:"Restrict Access"}))],2)]),e("li",null,[e("a",{class:B(["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?(o(),I(c,{key:1,t:"Deleting..."})):(o(),I(c,{key:0,t:"Delete"}))],2)])],64))],64))],2)}const A6=Z(v6,[["render",j6],["__scopeId","data-v-18549c26"]]),B6={name:"peer",methods:{GetLocale:H},components:{PeerTagBadge:Je,LocaleText:P,PeerSettingsDropdown:A6},props:{Peer:Object,ConfigurationInfo:Object,order:Number,searchPeersLength:Number},setup(){const l=q(null),t=q(!1),i=ie();return r6(l,s=>{t.value=!1}),{target:l,subMenuOpened:t,dashboardStore:i}},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}}},L6=["id"],R6={key:0,class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},E6={key:0,style:{"font-size":"0.8rem",color:"#28a745"},class:"d-flex align-items-center"},N6={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},F6={class:"text-primary"},z6={class:"text-success"},H6={key:0,class:"text-secondary"},Y6={key:1,class:"border-0 card-header bg-transparent text-warning fw-bold",style:{"font-size":"0.8rem"}},G6={class:"card-body pt-1",style:{"font-size":"0.9rem"}},V6={class:"text-muted"},J6={class:"d-block"},W6={class:"text-muted"},U6={class:"d-block"},Q6={class:"d-flex align-items-center"};function K6(l,t,i,s,g,d){const c=se("LocaleText"),b=se("PeerTagBadge"),f=se("PeerSettingsDropdown");return o(),p("div",{class:B(["card shadow-sm rounded-3 peerCard",{"border-warning":i.Peer.restricted}]),id:"peer_"+i.Peer.id},[e("div",null,[i.Peer.restricted?(o(),p("div",Y6,[t[15]||(t[15]=e("i",{class:"bi-lock-fill me-2"},null,-1)),r(c,{t:"Access Restricted"})])):(o(),p("div",R6,[e("div",{class:B(["dot ms-0",{active:i.Peer.status==="running"}])},null,2),s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"&&i.Peer.status==="running"?(o(),p("div",E6,[t[9]||(t[9]=e("i",{class:"bi bi-box-arrow-in-right me-2"},null,-1)),e("span",null,O(i.Peer.endpoint),1)])):M("",!0),e("div",N6,[e("span",F6,[t[10]||(t[10]=e("i",{class:"bi bi-arrow-down"},null,-1)),e("strong",null,O((i.Peer.cumu_receive+i.Peer.total_receive).toFixed(4)),1),t[11]||(t[11]=F(" GB ",-1))]),e("span",z6,[t[12]||(t[12]=e("i",{class:"bi bi-arrow-up"},null,-1)),e("strong",null,O((i.Peer.cumu_sent+i.Peer.total_sent).toFixed(4)),1),t[13]||(t[13]=F(" GB ",-1))]),i.Peer.latest_handshake!=="No Handshake"?(o(),p("span",H6,[t[14]||(t[14]=e("i",{class:"bi bi-arrows-angle-contract"},null,-1)),F(" "+O(d.getLatestHandshake)+" ago ",1)])):M("",!0)])]))]),e("div",G6,[e("h6",null,O(i.Peer.name?i.Peer.name:d.GetLocale("Untitled Peer")),1),e("div",{class:B(["d-flex",[s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="grid"?"gap-1 flex-column":"flex-row gap-3"]])},[e("div",{class:B({"d-flex gap-2 align-items-center":s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"})},[e("small",V6,[r(c,{t:"Public Key"})]),e("small",J6,[e("samp",null,O(i.Peer.id),1)])],2),e("div",{class:B({"d-flex gap-2 align-items-center":s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"})},[e("small",W6,[r(c,{t:"Allowed IPs"})]),e("small",U6,[e("samp",null,O(i.Peer.allowed_ip),1)])],2),e("div",{class:B(["d-flex align-items-center gap-1",{"ms-auto":s.dashboardStore.Configuration.Server.dashboard_peer_list_display==="list"}])},[(o(!0),p(z,null,G(Object.values(i.ConfigurationInfo.Info.PeerGroups).filter(n=>n.Peers.includes(i.Peer.id)),n=>(o(),I(b,{BackgroundColor:n.BackgroundColor,GroupName:n.GroupName,Icon:"bi-"+n.Icon},null,8,["BackgroundColor","GroupName","Icon"]))),256)),e("div",{class:B(["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)])]),r(re,{name:"slide-fade"},{default:Q(()=>[this.subMenuOpened?(o(),I(f,{key:0,dropup:d.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:i.Peer,ConfigurationInfo:i.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",Q6,[r(c,{t:"Details"}),t[17]||(t[17]=e("i",{class:"bi bi-chevron-right ms-auto"},null,-1))])])],10,L6)}const Z6=Z(B6,[["render",K6],["__scopeId","data-v-06609b08"]]),X6={__name:"peerListModals",props:{configurationModals:Object,configurationModalSelectedPeer:Object},emits:["refresh"],setup(l,{emit:t}){const i=t,s=V(()=>J(()=>import("./peerAssignModal-Cxin5Fa0.js"),__vite__mapDeps([0,1,2,3,4,5]))),g=V(()=>J(()=>import("./peerShareLinkModal-CFhcidUQ.js"),__vite__mapDeps([6,2,3,7,8,1,9]))),d=V(()=>J(()=>import("./peerJobs-CarCVF4P.js"),__vite__mapDeps([10,11,2,3,8,7,1,12,13]))),c=V(()=>J(()=>import("./peerQRCode-Be0lrPbm.js"),__vite__mapDeps([14,15,2,3,16,1,17]))),b=V(()=>J(()=>import("./peerConfigurationFile-CJe8w8t9.js"),__vite__mapDeps([18,2,3,1,15,16,19]))),f=V(()=>J(()=>import("./peerSettings-CNGRHhIV.js"),__vite__mapDeps([20,2,3,1,21])));return(n,m)=>(o(),I(be,{name:"zoom"},{default:Q(()=>[l.configurationModals.peerSetting.modalOpen?(o(),I(T(f),{key:"PeerSettingsModal",selectedPeer:l.configurationModalSelectedPeer,onRefresh:m[0]||(m[0]=k=>i("refresh")),onClose:m[1]||(m[1]=k=>l.configurationModals.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerQRCode.modalOpen?(o(),I(T(c),{key:"PeerQRCodeModal",selectedPeer:l.configurationModalSelectedPeer,onClose:m[2]||(m[2]=k=>l.configurationModals.peerQRCode.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerScheduleJobs.modalOpen?(o(),I(T(d),{key:"PeerJobsModal",onRefresh:m[3]||(m[3]=k=>i("refresh")),selectedPeer:l.configurationModalSelectedPeer,onClose:m[4]||(m[4]=k=>l.configurationModals.peerScheduleJobs.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerShare.modalOpen?(o(),I(T(g),{key:"PeerShareLinkModal",onClose:m[5]||(m[5]=k=>{l.configurationModals.peerShare.modalOpen=!1}),selectedPeer:l.configurationModalSelectedPeer},null,8,["selectedPeer"])):M("",!0),l.configurationModals.peerConfigurationFile.modalOpen?(o(),I(T(b),{key:"PeerConfigurationFileModal",onClose:m[6]||(m[6]=k=>l.configurationModals.peerConfigurationFile.modalOpen=!1),selectedPeer:l.configurationModalSelectedPeer},null,8,["selectedPeer"])):M("",!0),l.configurationModals.assignPeer.modalOpen?(o(),I(T(s),{key:"PeerAssignModal",selectedPeer:l.configurationModalSelectedPeer,onClose:m[7]||(m[7]=k=>l.configurationModals.assignPeer.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0)]),_:1}))}},eu={style:{"margin-bottom":"20px",height:"1px"},id:"loadMore"},tu={__name:"peerIntersectionObserver",props:["peerListLength","showPeersCount"],emits:["loadMore"],setup(l,{emit:t}){const i=q(void 0),s=t;return ce(()=>{i.value=new IntersectionObserver(g=>{g.forEach(d=>{d.isIntersecting&&s("loadMore")})},{rootMargin:"20px",threshold:1}),i.value.observe(document.querySelector("#loadMore"))}),ue(()=>{i.value.disconnect()}),(g,d)=>(o(),p("div",eu))}},lu={class:"d-flex gap-1 flex-column"},su=W({__name:"configurationDescription",props:["configuration"],setup(l){const t=l,i=q(t.configuration.Info.Description),s=q(!1),g=q(!1),d=async()=>{await ee("/api/updateWireguardConfigurationInfo",{Name:t.configuration.Name,Key:"Description",Value:i.value},b=>{g.value=b.status,c()})},c=()=>{s.value=!0,setTimeout(()=>{s.value=!1},3e3)};return(b,f)=>(o(),p("div",lu,[f[2]||(f[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)),fe(e("input",{type:"text",class:B([[s.value?[g.value?"is-valid":"is-invalid"]:void 0],"form-control rounded-3 bg-transparent form-control-sm"]),id:"configurationDescription","onUpdate:modelValue":f[0]||(f[0]=n=>i.value=n),onChange:f[1]||(f[1]=n=>d())},null,34),[[_e,i.value]])]))}});var me={exports:{}},ou=me.exports,Ce;function iu(){return Ce||(Ce=1,(function(l,t){(function(i,s){l.exports=s()})(ou,(function(){return function(i,s){s.prototype.isSameOrBefore=function(g,d){return this.isSame(g,d)||this.isBefore(g,d)}}}))})(me)),me.exports}var au=iu();const We=Ie(au);var ge={exports:{}},nu=ge.exports,De;function ru(){return De||(De=1,(function(l,t){(function(i,s){l.exports=s()})(nu,(function(){var i,s,g=1e3,d=6e4,c=36e5,b=864e5,f=/\[([^\]]+)]|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,m=2628e6,k=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,w={years:n,months:m,days:b,hours:c,minutes:d,seconds:g,milliseconds:1,weeks:6048e5},$=function(j){return j instanceof U},D=function(j,S,x){return new U(j,x,S.$l)},y=function(j){return s.p(j)+"s"},u=function(j){return j<0},h=function(j){return u(j)?Math.ceil(j):Math.floor(j)},C=function(j){return Math.abs(j)},N=function(j,S){return j?u(j)?{negative:!0,format:""+C(j)+S}:{negative:!1,format:""+j+S}:{negative:!1,format:""}},U=(function(){function j(x,A,E){var L=this;if(this.$d={},this.$l=E,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),A)return D(x*w[y(A)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach((function(v){L.$d[y(v)]=x[v]})),this.calMilliseconds(),this;if(typeof x=="string"){var _=x.match(k);if(_){var a=_.slice(2).map((function(v){return v!=null?Number(v):0}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var S=j.prototype;return S.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce((function(A,E){return A+(x.$d[E]||0)*w[E]}),0)},S.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=h(x/n),x%=n,this.$d.months=h(x/m),x%=m,this.$d.days=h(x/b),x%=b,this.$d.hours=h(x/c),x%=c,this.$d.minutes=h(x/d),x%=d,this.$d.seconds=h(x/g),x%=g,this.$d.milliseconds=x},S.toISOString=function(){var x=N(this.$d.years,"Y"),A=N(this.$d.months,"M"),E=+this.$d.days||0;this.$d.weeks&&(E+=7*this.$d.weeks);var L=N(E,"D"),_=N(this.$d.hours,"H"),a=N(this.$d.minutes,"M"),v=this.$d.seconds||0;this.$d.milliseconds&&(v+=this.$d.milliseconds/1e3,v=Math.round(1e3*v)/1e3);var Y=N(v,"S"),X=x.negative||A.negative||L.negative||_.negative||a.negative||Y.negative,Ue=_.format||a.format||Y.format?"T":"",ke=(X?"-":"")+"P"+x.format+A.format+L.format+Ue+_.format+a.format+Y.format;return ke==="P"||ke==="-P"?"P0D":ke},S.toJSON=function(){return this.toISOString()},S.format=function(x){var A=x||"YYYY-MM-DDTHH:mm:ss",E={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 A.replace(f,(function(L,_){return _||String(E[L])}))},S.as=function(x){return this.$ms/w[y(x)]},S.get=function(x){var A=this.$ms,E=y(x);return E==="milliseconds"?A%=1e3:A=E==="weeks"?h(A/w[E]):this.$d[E],A||0},S.add=function(x,A,E){var L;return L=A?x*w[y(A)]:$(x)?x.$ms:D(x,this).$ms,D(this.$ms+L*(E?-1:1),this)},S.subtract=function(x,A){return this.add(x,A,!0)},S.locale=function(x){var A=this.clone();return A.$l=x,A},S.clone=function(){return D(this.$ms,this)},S.humanize=function(x){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},j})(),pe=function(j,S,x){return j.add(S.years()*x,"y").add(S.months()*x,"M").add(S.days()*x,"d").add(S.hours()*x,"h").add(S.minutes()*x,"m").add(S.seconds()*x,"s").add(S.milliseconds()*x,"ms")};return function(j,S,x){i=x,s=x().$utils(),x.duration=function(L,_){var a=x.locale();return D(L,{$l:a},_)},x.isDuration=$;var A=S.prototype.add,E=S.prototype.subtract;S.prototype.add=function(L,_){return $(L)?pe(this,L,1):A.bind(this)(L,_)},S.prototype.subtract=function(L,_){return $(L)?pe(this,L,-1):E.bind(this)(L,_)}}}))})(ge)),ge.exports}var du=ru();const cu=Ie(du),uu={key:0,class:"sessions-label"},fu={class:"d-flex flex-wrap gap-1 session-dot"},pu={class:"bg-warning",style:{height:"5px",width:"5px","border-radius":"100%","vertical-align":"top"}},mu={class:"p-1 badge text-bg-warning text-start session-badge-list"},gu={class:"mt-1"},hu=W({__name:"peerSessionCalendarDay",props:["sessions","day"],emits:["openDetails"],setup(l){const t=l;K.extend(We),K.extend(cu);const i=R(()=>{let s=t.sessions.map(d=>K(d)).filter(d=>d.isSame(t.day,"D")).reverse(),g=[];if(s.length>1){let d=[s[0]];for(let c of s.slice(1))c.isSameOrBefore(d[d.length-1].add(3,"minute"))?d.push(c):(g.push({timestamps:d,duration:K.duration(d[d.length-1].diff(d[0]))}),d=[c]);g.push({timestamps:d,duration:K.duration(d[d.length-1].diff(d[0]))})}return g});return(s,g)=>(o(),p("div",{class:"d-flex gap-1 flex-column session-list",onClick:g[0]||(g[0]=d=>s.$emit("openDetails",i.value))},[i.value.length>0?(o(),p("small",uu,[r(P,{t:i.value.length+" Session"+(i.value.length>1?"s":"")},null,8,["t"])])):M("",!0),e("div",fu,[(o(!0),p(z,null,G(i.value.length,d=>(o(),p("div",pu))),256))]),(o(!0),p(z,null,G(i.value,d=>(o(),p("div",mu,[e("div",null,[g[1]||(g[1]=e("i",{class:"bi bi-stopwatch me-1"},null,-1)),F(O(d.timestamps[0].format("HH:mm:ss")),1),g[2]||(g[2]=e("i",{class:"bi bi-arrow-right mx-1"},null,-1)),F(O(d.timestamps[d.timestamps.length-1].format("HH:mm:ss")),1)]),e("div",gu,[r(P,{t:"Duration:"}),F(" "+O(d.duration.format("HH:mm:ss")),1)])]))),256))]))}}),bu=Z(hu,[["__scopeId","data-v-5178a57b"]]),vu={class:"card rounded-3 bg-transparent"},ku={class:"card-header d-flex align-items-center"},wu={class:"mx-auto mb-0 text-center"},yu={class:"text-muted",style:{"font-size":"0.9rem"}},xu={class:"card-body p-0 position-relative"},$u={class:"calendar-grid"},_u=["onClick"],Pu={class:"d-flex day-label"},Su={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"}},Du={class:"d-flex mb-3"},Ou={class:"mb-0"},Mu={class:"d-flex flex-column gap-2"},qu={class:"p-1 badge text-bg-warning text-start session-list d-flex align-items-center"},Iu={class:"ms-auto"},Tu=W({__name:"peerSessions",props:["selectedPeer","selectedDate"],emits:["selectDate"],setup(l,{emit:t}){const i=l;ie();const s=q([]);K.extend(We);const g=q(void 0),d=q(0),c=q(K()),b=R(()=>K().add(d.value,"month")),f=R(()=>b.value.startOf("month")),n=R(()=>b.value.endOf("month")),m=R(()=>f.value.startOf("week")),k=R(()=>n.value.endOf("week")),w=R(()=>{let u=[],h=m.value;for(;h.isSameOrBefore(k.value,"day");)u.push(h),h=h.add(1,"day");if(u.length<42){let C=42-u.length;for(let N=0;N<C;N++)console.log("push"),u.push(h),h=h.add(1,"day")}return u}),$=async()=>{await le("/api/getPeerSessions",{configurationName:i.selectedPeer.configuration.Name,id:i.selectedPeer.id,startDate:m.value.format("YYYY-MM-DD"),endDate:k.value.format("YYYY-MM-DD")},u=>{s.value=u.data.reverse()})};$(),g.value=setInterval(async()=>{await $()},6e4),ue(()=>{clearInterval(g.value)}),te(()=>b.value,()=>$());const D=q(!1),y=q(void 0);return(u,h)=>(o(),p("div",null,[e("div",vu,[e("div",ku,[e("button",{class:"btn btn-sm rounded-3",onClick:h[0]||(h[0]=C=>d.value-=1)},[...h[5]||(h[5]=[e("i",{class:"bi bi-chevron-left"},null,-1)])]),d.value!==0?(o(),p("button",{key:0,class:"btn btn-sm rounded-3",onClick:h[1]||(h[1]=C=>{d.value=0,u.$emit("selectDate",u.day)})},[r(P,{t:"Today"})])):M("",!0),e("h5",wu,[e("small",yu,[r(P,{t:"Peer Historical Sessions"})]),h[6]||(h[6]=e("br",null,null,-1)),F(" "+O(b.value.format("YYYY / MM")),1)]),d.value!==0?(o(),p("button",{key:1,class:"btn btn-sm rounded-3",onClick:h[2]||(h[2]=C=>{d.value=0,u.$emit("selectDate",u.day)})},[r(P,{t:"Today"})])):M("",!0),e("button",{class:"btn btn-sm rounded-3",onClick:h[3]||(h[3]=C=>d.value+=1)},[...h[7]||(h[7]=[e("i",{class:"bi bi-chevron-right"},null,-1)])])]),e("div",xu,[e("div",$u,[(o(!0),p(z,null,G(w.value,(C,N)=>(o(),p("div",{class:B(["calendar-day p-2 d-flex flex-column",{"bg-body-secondary":C.isSame(c.value,"D"),"border-end":C.day()<6,"border-bottom":N<w.value.length-7,"extra-day":!C.isSame(b.value,"month")}]),key:C,onClick:U=>u.$emit("selectDate",C),style:{cursor:"pointer"}},[e("h6",Pu,[F(O(C.format("D"))+" ",1),l.selectedDate&&l.selectedDate.isSame(C,"D")?(o(),p("i",Su)):M("",!0)]),(o(),I(bu,{class:"flex-grow-1",onOpenDetails:U=>{y.value={day:C,details:U},D.value=!0},sessions:s.value,day:C,key:C},null,8,["onOpenDetails","sessions","day"]))],10,_u))),128))]),r(re,{name:"zoom"},{default:Q(()=>[D.value?(o(),p("div",Cu,[e("div",Du,[e("h5",Ou,O(y.value.day.format("YYYY-MM-DD")),1),e("a",{role:"button",class:"ms-auto text-white",onClick:h[4]||(h[4]=C=>D.value=!1)},[...h[8]||(h[8]=[e("h5",{class:"mb-0"},[e("i",{class:"bi bi-x-lg"})],-1)])])]),e("div",Mu,[(o(!0),p(z,null,G(y.value.details,C=>(o(),p("div",qu,[e("div",null,[h[9]||(h[9]=e("i",{class:"bi bi-stopwatch me-1"},null,-1)),F(O(C.timestamps[0].format("HH:mm:ss")),1),h[10]||(h[10]=e("i",{class:"bi bi-arrow-right mx-1"},null,-1)),F(O(C.timestamps[C.timestamps.length-1].format("HH:mm:ss")),1)]),e("div",Iu,[r(P,{t:"Duration:"}),F(" "+O(C.duration.format("HH:mm:ss")),1)])]))),256))])])):M("",!0)]),_:1})])])]))}}),ju=Z(Tu,[["__scopeId","data-v-3b03c7a5"]]),Au={class:"card rounded-3 bg-transparent"},Bu={class:"card-body"},Lu={class:"text-muted"},Ru={class:"d-flex flex-column gap-3"},Eu=W({__name:"peerTraffics",props:["selectedDate","selectedPeer"],setup(l){const t=l;ie();const i=R(()=>t.selectedDate?t.selectedDate:K()),s=q([]),g=async()=>{await le("/api/getPeerTraffics",{configurationName:t.selectedPeer.configuration.Name,id:t.selectedPeer.id,startDate:i.value.format("YYYY-MM-DD"),endDate:i.value.format("YYYY-MM-DD")},k=>{s.value=k.data})},d=q(void 0);g(),d.value=setInterval(async()=>{await g()},6e4),ue(()=>{clearInterval(d.value)}),te(()=>i.value,()=>{g()});const c=R(()=>({responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:k=>`${k.formattedValue} MB`}}},scales:{x:{ticks:{display:!1},grid:{display:!0}},y:{ticks:{callback:k=>`${k.toFixed(4)} MB`},grid:{display:!0}}}})),b=R(()=>{let k=s.value.map($=>$.cumu_sent+$.total_sent),w=[0];if(k.length>1)for(let $=1;$<k.length;$++)k[$]>=k[$-1]?w.push((k[$]-k[$-1])*1024):w.push(k[$]*1024);return w}),f=R(()=>{let k=s.value.map($=>$.cumu_receive+$.total_receive),w=[0];if(k.length>1)for(let $=1;$<k.length;$++)k[$]>=k[$-1]?w.push((k[$]-k[$-1])*1024):w.push(k[$]*1024);return w}),n=R(()=>({labels:s.value.map(k=>k.time),datasets:[{label:H("Data Sent"),data:b.value,fill:"start",borderColor:"#198754",backgroundColor:"#19875490",tension:0,pointRadius:2,borderWidth:1}]})),m=R(()=>({labels:s.value.map(k=>k.time),datasets:[{label:H("Data Received"),data:f.value,fill:"start",borderColor:"#0d6efd",backgroundColor:"#0d6efd90",tension:.3,pointRadius:2,borderWidth:1}]}));return(k,w)=>(o(),p("div",Au,[e("div",Bu,[e("h6",Lu,[r(P,{t:"Peer Historical Data Usage of "+i.value.format("YYYY-MM-DD")},null,8,["t"])]),e("div",Ru,[e("div",null,[e("p",null,[r(P,{t:"Data Received"})]),r(T(ve),{options:c.value,data:m.value,style:{width:"100%",height:"300px","max-height":"300px"}},null,8,["options","data"])]),e("div",null,[e("p",null,[r(P,{t:"Data Sent"})]),r(T(ve),{options:c.value,data:n.value,style:{width:"100%",height:"300px","max-height":"300px"}},null,8,["options","data"])])])])]))}}),Nu={class:"card rounded-3 bg-transparent"},Fu={class:"card-header text-muted"},zu={class:"card-body"},Hu={class:"bg-body-tertiary p-3 d-flex rounded-3"},Yu={key:0,class:"m-auto"},Gu={key:1,class:"m-auto"},Vu={key:2,class:"w-100 d-flex flex-column gap-3"},Ju={class:"bg-body d-flex w-100 rounded-3",style:{height:"500px"},id:"map"},Wu={key:0,class:"m-auto"},Uu={key:0},Qu={key:1,class:"text-muted"},Ku={class:"table table-hover"},Zu={key:0},Xu=["onClick"],e2={key:0},t2=W({__name:"peerEndpoints",props:["selectedPeer"],setup(l){const t=l,i=q(!1),s=q(void 0),g=q(void 0),d=q(void 0),c=async()=>{await le("/api/getPeerHistoricalEndpoints",{id:t.selectedPeer.id,configurationName:t.selectedPeer.configuration.Name},async n=>{if(n.status&&(s.value=n.data),i.value=!0,s.value.geolocation)try{if(await fetch("https://tile.openstreetmap.org/",{signal:AbortSignal.timeout(1500)}),g.value=!0,d.value=new st({target:"map",layers:[new it({source:new at})],view:new ot({center:we([17.64,16.35]),zoom:0})}),s.value.geolocation){const m=new nt;s.value.geolocation.filter(w=>w.lat&&w.lon).forEach(w=>{m.addFeature(new Pe({geometry:new rt(we([w.lon,w.lat]))}))}),m.addFeature(new Pe({})),d.value.addLayer(new dt({source:m,style:()=>new ct({image:new ut({radius:10,fill:new pt({color:"#0d6efd"}),stroke:new ft({color:"white",width:5})})})}))}}catch(m){console.log(m),g.value=!1}})};ce(()=>c());const b=n=>{if(s.value.geolocation){let m=s.value.geolocation.find(k=>k.query===n);if(m){let k=[m.city,m.country];return k.filter(w=>w!==void 0).length===0&&k.push("Private Address"),k.filter(w=>w!==void 0).join(", ")}}},f=n=>{if(s.value.geolocation){let m=s.value.geolocation.find(k=>k.query===n);m&&m.lon&&m.lat&&d.value.getView().animate({zoom:4},{center:we([m.lon,m.lat])},{easing:mt})}};return(n,m)=>(o(),p("div",Nu,[e("div",Fu,[r(P,{t:"Peer Historical Endpoints"})]),e("div",zu,[e("div",Hu,[i.value?i.value&&s.value.endpoints.length===0?(o(),p("div",Gu,[r(P,{t:"No Historical Endpoints"})])):i.value&&s.value.endpoints.length>0?(o(),p("div",Vu,[e("div",Ju,[g.value?M("",!0):(o(),p("div",Wu,[g.value===void 0?(o(),p("div",Uu,[m[1]||(m[1]=e("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),r(P,{t:"Loading Map..."})])):M("",!0),g.value===!1?(o(),p("div",Qu,[r(P,{t:"Map is not available"})])):M("",!0)]))]),e("table",Ku,[e("thead",null,[e("tr",null,[e("th",null,[r(P,{t:"Endpoint"})]),s.value.geolocation?(o(),p("th",Zu,[r(P,{t:"Geolocation"})])):M("",!0)])]),e("tbody",null,[(o(!0),p(z,null,G(s.value.endpoints,k=>(o(),p("tr",{onClick:w=>f(k.endpoint),style:{cursor:"pointer"}},[e("td",null,O(k.endpoint),1),s.value.geolocation?(o(),p("td",e2,O(b(k.endpoint)),1)):M("",!0)],8,Xu))),256))])])])):M("",!0):(o(),p("div",Yu,[m[0]||(m[0]=e("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),r(P,{t:"Loading..."})]))])])]))}}),l2={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},s2={class:"d-flex h-100 w-100 pb-2"},o2={class:"m-auto w-100 p-2"},i2={class:"card rounded-3 shadow h-100"},a2={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},n2={class:"mb-0 fw-normal"},r2={class:"card-body px-4"},d2={class:"mb-0 text-muted"},c2={class:"row mt-3 gy-2 gx-2 mb-2"},u2={class:"col-12 col-lg-3"},f2={class:"card rounded-3 bg-transparent h-100"},p2={class:"card-body py-2 d-flex flex-column justify-content-center"},m2={class:"mb-0 text-muted"},g2={class:"d-flex align-items-center"},h2={class:"col-12 col-lg-3"},b2={class:"card rounded-3 bg-transparent h-100"},v2={class:"card-body py-2 d-flex flex-column justify-content-center"},k2={class:"mb-0 text-muted"},w2={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},y2={class:"card rounded-3 bg-transparent h-100"},x2={class:"card-body py-2 d-flex flex-column justify-content-center"},$2={class:"mb-0 text-muted"},_2={class:"col-12 col-lg-3"},P2={class:"card rounded-3 bg-transparent h-100"},S2={class:"card-body d-flex"},C2={class:"mb-0 text-muted"},D2={class:"h4"},O2={class:"col-12 col-lg-3"},M2={class:"card rounded-3 bg-transparent h-100"},q2={class:"card-body d-flex"},I2={class:"mb-0 text-muted"},T2={class:"h4 text-warning"},j2={class:"col-12 col-lg-3"},A2={class:"card rounded-3 bg-transparent h-100"},B2={class:"card-body d-flex"},L2={class:"mb-0 text-muted"},R2={class:"h4 text-primary"},E2={class:"col-12 col-lg-3"},N2={class:"card rounded-3 bg-transparent h-100"},F2={class:"card-body d-flex"},z2={class:"mb-0 text-muted"},H2={class:"h4 text-success"},Y2={class:"col-12"},G2={class:"col-12"},V2={class:"col-12"},J2=W({__name:"peerDetailsModal",props:["selectedPeer"],emits:["close"],setup(l){Te.register(je,Ae,Be,Le,Re,Ee,Ne,Fe,ze,He,Ye);const t=q(void 0);return(i,s)=>(o(),p("div",l2,[e("div",s2,[e("div",o2,[e("div",i2,[e("div",a2,[e("h4",n2,[r(P,{t:"Peer Details"})]),e("button",{type:"button",class:"btn-close ms-auto",onClick:s[0]||(s[0]=g=>i.$emit("close"))})]),e("div",r2,[e("div",null,[e("p",d2,[e("small",null,[r(P,{t:"Peer"})])]),e("h2",null,O(l.selectedPeer.name),1)]),e("div",c2,[e("div",u2,[e("div",f2,[e("div",p2,[e("p",m2,[e("small",null,[r(P,{t:"Status"})])]),e("div",g2,[e("span",{class:B(["dot ms-0 me-2",{active:l.selectedPeer.status==="running"}])},null,2),l.selectedPeer.status==="running"?(o(),I(P,{key:0,t:"Connected"})):(o(),I(P,{key:1,t:"Disconnected"}))])])])]),e("div",h2,[e("div",b2,[e("div",v2,[e("p",k2,[e("small",null,[r(P,{t:"Allowed IPs"})])]),F(" "+O(l.selectedPeer.allowed_ip),1)])])]),e("div",w2,[e("div",y2,[e("div",x2,[e("p",$2,[e("small",null,[r(P,{t:"Public Key"})])]),e("samp",null,O(l.selectedPeer.id),1)])])]),e("div",_2,[e("div",P2,[e("div",S2,[e("div",null,[e("p",C2,[e("small",null,[r(P,{t:"Latest Handshake Time"})])]),e("strong",D2,[r(P,{t:l.selectedPeer.latest_handshake!=="No Handshake"?l.selectedPeer.latest_handshake+" ago":"No Handshake"},null,8,["t"])])]),s[2]||(s[2]=e("i",{class:"bi bi-person-raised-hand ms-auto h2 text-muted"},null,-1))])])]),e("div",O2,[e("div",M2,[e("div",q2,[e("div",null,[e("p",I2,[e("small",null,[r(P,{t:"Total Usage"})])]),e("strong",T2,O((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",j2,[e("div",A2,[e("div",B2,[e("div",null,[e("p",L2,[e("small",null,[r(P,{t:"Total Received"})])]),e("strong",R2,O((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",E2,[e("div",N2,[e("div",F2,[e("div",null,[e("p",z2,[e("small",null,[r(P,{t:"Total Sent"})])]),e("strong",H2,O((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",Y2,[r(Eu,{selectedDate:t.value,selectedPeer:l.selectedPeer},null,8,["selectedDate","selectedPeer"])]),e("div",G2,[r(ju,{selectedDate:t.value,onSelectDate:s[1]||(s[1]=g=>t.value=g),selectedPeer:l.selectedPeer},null,8,["selectedDate","selectedPeer"])]),e("div",V2,[r(t2,{selectedPeer:l.selectedPeer},null,8,["selectedPeer"])])])])])])])]))}}),W2={class:"container-fluid"},U2={class:"d-flex align-items-sm-start flex-column flex-sm-row gap-3"},Q2={class:"text-muted d-flex align-items-center gap-2"},K2={class:"mb-0"},Z2={class:"d-flex align-items-center gap-3"},X2={class:"mb-0 display-4"},ef={class:"ms-sm-auto d-flex gap-2 flex-column"},tf={class:"card rounded-3 bg-transparent"},lf={class:"card-body py-2 d-flex align-items-center"},sf={class:"text-muted"},of={class:"form-check form-switch mb-0 ms-auto pe-0 me-0"},af=["for"],nf={key:2,class:"spinner-border spinner-border-sm ms-2","aria-hidden":"true"},rf=["disabled","id"],df={class:"d-flex gap-2"},cf={class:"row mt-3 gy-2 gx-2 mb-2"},uf={class:"col-12 col-lg-3"},ff={class:"card rounded-3 bg-transparent h-100"},pf={class:"card-body py-2 d-flex flex-column justify-content-center"},mf={class:"mb-0 text-muted"},gf={class:"col-12 col-lg-3"},hf={class:"card rounded-3 bg-transparent h-100"},bf={class:"card-body py-2 d-flex flex-column justify-content-center"},vf={class:"mb-0 text-muted"},kf={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},wf={class:"card rounded-3 bg-transparent h-100"},yf={class:"card-body py-2 d-flex flex-column justify-content-center"},xf={class:"mb-0 text-muted"},$f={class:"row gx-2 gy-2 mb-2"},_f={class:"col-12 col-lg-3"},Pf={class:"card rounded-3 bg-transparent h-100"},Sf={class:"card-body d-flex"},Cf={class:"mb-0 text-muted"},Df={class:"h4"},Of={class:"col-12 col-lg-3"},Mf={class:"card rounded-3 bg-transparent h-100"},qf={class:"card-body d-flex"},If={class:"mb-0 text-muted"},Tf={class:"h4"},jf={class:"col-12 col-lg-3"},Af={class:"card rounded-3 bg-transparent h-100"},Bf={class:"card-body d-flex"},Lf={class:"mb-0 text-muted"},Rf={class:"h4 text-primary"},Ef={class:"col-12 col-lg-3"},Nf={class:"card rounded-3 bg-transparent h-100"},Ff={class:"card-body d-flex"},zf={class:"mb-0 text-muted"},Hf={class:"h4 text-success"},Yf={style:{"margin-bottom":"10rem"}},Gf=20,Vf={__name:"peerList",async setup(l){let t,i;const s=V(()=>J(()=>import("./peerSearchBar-BlQP4FSd.js"),__vite__mapDeps([22,2,3,23]))),g=V(()=>J(()=>import("./peerJobsAllModal-DKtxos7t.js"),__vite__mapDeps([24,11,2,3,8,7,1,12]))),d=V(()=>J(()=>import("./peerJobsLogsModal-3HdFqqoi.js"),__vite__mapDeps([25,7,2,3,1]))),c=V(()=>J(()=>import("./editConfiguration-CPThHBO9.js"),__vite__mapDeps([26,2,3,1,7,27]))),b=V(()=>J(()=>import("./selectPeers-kt193GSv.js"),__vite__mapDeps([28,2,3,1,29]))),f=V(()=>J(()=>import("./peerAddModal-BfNIzuLd.js"),__vite__mapDeps([30,2,3,1,31]))),n=ie(),m=ne(),k=Oe(),w=q({}),$=q([]),D=q(!1),y=q({}),u=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}}),h=q(!1),C=async()=>{await le("/api/getWireguardConfigurationInfo",{configurationName:k.params.id},_=>{_.status&&(w.value=_.data.configurationInfo,$.value=_.data.configurationPeers,$.value.forEach(a=>{a.restricted=!1}),_.data.configurationRestrictedPeers.forEach(a=>{a.restricted=!0,$.value.push(a)}))})};[t,i]=Xe(()=>C()),await t,i();const N=q(void 0),U=()=>{clearInterval(N.value),N.value=setInterval(async()=>{await C()},parseInt(n.Configuration.Server.dashboard_refresh_interval))};U(),ue(()=>{clearInterval(N.value),N.value=void 0,m.Filter.HiddenTags=[]}),te(()=>n.Configuration.Server.dashboard_refresh_interval,()=>{U()});const pe=async()=>{D.value=!0,await le("/api/toggleWireguardConfiguration",{configurationName:w.value.Name},_=>{_.status?n.newMessage("Server",`${w.value.Name} ${_.data?"is on":"is off"}`,"success"):n.newMessage("Server",_.message,"danger"),m.Configurations.find(a=>a.Name===w.value.Name).Status=_.data,w.value.Status=_.data,D.value=!1})},j=R(()=>({connectedPeers:$.value.filter(_=>_.status==="running").length,totalUsage:$.value.length>0?$.value.filter(_=>!_.restricted).map(_=>_.total_data+_.cumu_data).reduce((_,a)=>_+a,0).toFixed(4):0,totalReceive:$.value.length>0?$.value.filter(_=>!_.restricted).map(_=>_.total_receive+_.cumu_receive).reduce((_,a)=>_+a,0).toFixed(4):0,totalSent:$.value.length>0?$.value.filter(_=>!_.restricted).map(_=>_.total_sent+_.cumu_sent).reduce((_,a)=>_+a,0).toFixed(4):0})),S=q(10),x=R(()=>m.Filter.HiddenTags.map(_=>w.value.Info.PeerGroups[_].Peers).flat()),A=R(()=>Object.values(w.value.Info.PeerGroups).map(_=>_.Peers).flat()),E=_=>{try{return gt(_.replace(" ","").split(",")[0]).start}catch{return 0}},L=R(()=>{const _=m.searchString?$.value.filter(v=>(v.name.includes(m.searchString)||v.id.includes(m.searchString)||v.allowed_ip.includes(m.searchString))&&!x.value.includes(v.id)&&(m.Filter.ShowAllPeersWhenHiddenTags||!m.Filter.ShowAllPeersWhenHiddenTags&&A.value.includes(v.id))):$.value.filter(v=>!x.value.includes(v.id)&&(m.Filter.ShowAllPeersWhenHiddenTags||!m.Filter.ShowAllPeersWhenHiddenTags&&A.value.includes(v.id)));if(n.Configuration.Server.dashboard_sort==="restricted")return _.sort((v,Y)=>v[n.Configuration.Server.dashboard_sort]<Y[n.Configuration.Server.dashboard_sort]?1:v[n.Configuration.Server.dashboard_sort]>Y[n.Configuration.Server.dashboard_sort]?-1:0).slice(0,S.value);let a=[];return n.Configuration.Server.dashboard_sort==="allowed_ip"?a=_.sort((v,Y)=>E(v[n.Configuration.Server.dashboard_sort])<E(Y[n.Configuration.Server.dashboard_sort])?-1:E(v[n.Configuration.Server.dashboard_sort])>E(Y[n.Configuration.Server.dashboard_sort])?1:0).slice(0,S.value):a=_.sort((v,Y)=>v[n.Configuration.Server.dashboard_sort]<Y[n.Configuration.Server.dashboard_sort]?-1:v[n.Configuration.Server.dashboard_sort]>Y[n.Configuration.Server.dashboard_sort]?1:0).slice(0,S.value),a});return te(()=>k.query.id,_=>{_?m.searchString=_:m.searchString=void 0},{immediate:!0}),(_,a)=>(o(),p("div",W2,[e("div",U2,[e("div",null,[e("div",Q2,[e("h5",K2,[r(tt,{protocol:w.value.Protocol},null,8,["protocol"])])]),e("div",Z2,[e("h1",X2,[e("samp",null,O(w.value.Name),1)])])]),e("div",ef,[e("div",tf,[e("div",lf,[e("small",sf,[r(P,{t:"Status"})]),e("div",{class:B(["dot ms-2",{active:w.value.Status}])},null,2),e("div",of,[e("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+w.value.id},[w.value.Status&&!D.value?(o(),I(P,{key:0,t:"On"})):!w.value.Status&&!D.value?(o(),I(P,{key:1,t:"Off"})):M("",!0),D.value?(o(),p("span",nf)):M("",!0)],8,af),fe(e("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:D.value,type:"checkbox",role:"switch",id:"switch"+w.value.id,onChange:a[0]||(a[0]=v=>pe()),"onUpdate:modelValue":a[1]||(a[1]=v=>w.value.Status=v)},null,40,rf),[[qe,w.value.Status]])])])]),e("div",df,[e("a",{role:"button",onClick:a[2]||(a[2]=v=>u.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"},[a[30]||(a[30]=e("i",{class:"bi bi-plus-circle me-2"},null,-1)),r(P,{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:a[3]||(a[3]=v=>u.value.editConfiguration.modalOpen=!0),type:"button","aria-expanded":"false"},[a[31]||(a[31]=e("i",{class:"bi bi-gear-fill me-2"},null,-1)),r(P,{t:"Configuration Settings"})])])])]),a[36]||(a[36]=e("hr",null,null,-1)),r(su,{configuration:w.value},null,8,["configuration"]),e("div",cf,[e("div",uf,[e("div",ff,[e("div",pf,[e("p",mf,[e("small",null,[r(P,{t:"Address"})])]),F(" "+O(w.value.Address),1)])])]),e("div",gf,[e("div",hf,[e("div",bf,[e("p",vf,[e("small",null,[r(P,{t:"Listen Port"})])]),F(" "+O(w.value.ListenPort),1)])])]),e("div",kf,[e("div",wf,[e("div",yf,[e("p",xf,[e("small",null,[r(P,{t:"Public Key"})])]),e("samp",null,O(w.value.PublicKey),1)])])])]),e("div",$f,[e("div",_f,[e("div",Pf,[e("div",Sf,[e("div",null,[e("p",Cf,[e("small",null,[r(P,{t:"Connected Peers"})])]),e("strong",Df,O(j.value.connectedPeers)+" / "+O($.value.length),1)]),a[32]||(a[32]=e("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1))])])]),e("div",Of,[e("div",Mf,[e("div",qf,[e("div",null,[e("p",If,[e("small",null,[r(P,{t:"Total Usage"})])]),e("strong",Tf,O(j.value.totalUsage)+" GB",1)]),a[33]||(a[33]=e("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1))])])]),e("div",jf,[e("div",Af,[e("div",Bf,[e("div",null,[e("p",Lf,[e("small",null,[r(P,{t:"Total Received"})])]),e("strong",Rf,O(j.value.totalReceive)+" GB",1)]),a[34]||(a[34]=e("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1))])])]),e("div",Ef,[e("div",Nf,[e("div",Ff,[e("div",null,[e("p",zf,[e("small",null,[r(P,{t:"Total Sent"})])]),e("strong",Hf,O(j.value.totalSent)+" GB",1)]),a[35]||(a[35]=e("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1))])])])]),r(jt,{configurationPeers:$.value,configurationInfo:w.value},null,8,["configurationPeers","configurationInfo"]),a[37]||(a[37]=e("hr",null,null,-1)),e("div",Yf,[$.value.length>0?(o(),I(t6,{key:0,onSearch:a[4]||(a[4]=v=>h.value=!h.value),onJobsAll:a[5]||(a[5]=v=>u.value.peerScheduleJobsAll.modalOpen=!0),onJobLogs:a[6]||(a[6]=v=>u.value.peerScheduleJobsLogs.modalOpen=!0),onEditConfiguration:a[7]||(a[7]=v=>u.value.editConfiguration.modalOpen=!0),onSelectPeers:a[8]||(a[8]=v=>u.value.selectPeers.modalOpen=!0),onBackupRestore:a[9]||(a[9]=v=>u.value.backupRestore.modalOpen=!0),onDeleteConfiguration:a[10]||(a[10]=v=>u.value.deleteConfiguration.modalOpen=!0),configuration:w.value},null,8,["configuration"])):M("",!0),r(be,{name:"peerList",tag:"div",class:"row gx-2 gy-2 z-0 position-relative"},{default:Q(()=>[(o(!0),p(z,null,G(L.value,(v,Y)=>(o(),p("div",{class:B(["col-12",{"col-lg-6 col-xl-4":T(n).Configuration.Server.dashboard_peer_list_display==="grid"}]),key:v.id},[r(Z6,{Peer:v,searchPeersLength:L.value.length,order:Y,ConfigurationInfo:w.value,onDetails:X=>{u.value.peerDetails.modalOpen=!0,y.value=v},onShare:X=>{u.value.peerShare.modalOpen=!0,y.value=v},onRefresh:a[11]||(a[11]=X=>C()),onJobs:X=>{u.value.peerScheduleJobs.modalOpen=!0,y.value=v},onSetting:X=>{u.value.peerSetting.modalOpen=!0,y.value=v},onQrcode:X=>{y.value=v,u.value.peerQRCode.modalOpen=!0},onConfigurationFile:X=>{y.value=v,u.value.peerConfigurationFile.modalOpen=!0},onAssign:X=>{y.value=v,u.value.assignPeer.modalOpen=!0}},null,8,["Peer","searchPeersLength","order","ConfigurationInfo","onDetails","onShare","onJobs","onSetting","onQrcode","onConfigurationFile","onAssign"])],2))),128))]),_:1})]),r(re,{name:"slide-fade"},{default:Q(()=>[h.value?(o(),I(T(s),{key:0,ConfigurationInfo:w.value,onClose:a[12]||(a[12]=v=>h.value=!1)},null,8,["ConfigurationInfo"])):M("",!0)]),_:1}),r(X6,{configurationModals:u.value,configurationModalSelectedPeer:y.value,onRefresh:a[13]||(a[13]=v=>C())},null,8,["configurationModals","configurationModalSelectedPeer"]),r(be,{name:"zoom"},{default:Q(()=>[(o(),I(et,{key:"PeerAddModal"},{default:Q(()=>[u.value.peerNew.modalOpen?(o(),I(T(f),{key:0,onClose:a[14]||(a[14]=v=>u.value.peerNew.modalOpen=!1),onAddedPeers:a[15]||(a[15]=v=>{u.value.peerNew.modalOpen=!1,C()})})):M("",!0)]),_:1})),u.value.peerScheduleJobsAll.modalOpen?(o(),I(T(g),{key:"PeerJobsAllModal",onRefresh:a[16]||(a[16]=v=>C()),onAllLogs:a[17]||(a[17]=v=>u.value.peerScheduleJobsLogs.modalOpen=!0),onClose:a[18]||(a[18]=v=>u.value.peerScheduleJobsAll.modalOpen=!1),configurationPeers:$.value},null,8,["configurationPeers"])):M("",!0),u.value.peerScheduleJobsLogs.modalOpen?(o(),I(T(d),{key:"PeerJobsLogsModal",onClose:a[19]||(a[19]=v=>u.value.peerScheduleJobsLogs.modalOpen=!1),configurationInfo:w.value},null,8,["configurationInfo"])):M("",!0),u.value.editConfiguration.modalOpen?(o(),I(T(c),{key:"EditConfigurationModal",onEditRaw:a[20]||(a[20]=v=>u.value.editRawConfigurationFile.modalOpen=!0),onClose:a[21]||(a[21]=v=>u.value.editConfiguration.modalOpen=!1),onDataChanged:a[22]||(a[22]=v=>w.value=v),onRefresh:a[23]||(a[23]=v=>C()),onBackupRestore:a[24]||(a[24]=v=>u.value.backupRestore.modalOpen=!0),onDeleteConfiguration:a[25]||(a[25]=v=>u.value.deleteConfiguration.modalOpen=!0),configurationInfo:w.value},null,8,["configurationInfo"])):M("",!0),u.value.selectPeers.modalOpen?(o(),I(T(b),{key:3,onRefresh:a[26]||(a[26]=v=>C()),configurationPeers:$.value,onClose:a[27]||(a[27]=v=>u.value.selectPeers.modalOpen=!1)},null,8,["configurationPeers"])):M("",!0),u.value.peerDetails.modalOpen?(o(),I(J2,{key:"PeerDetailsModal",selectedPeer:L.value.find(v=>v.id===y.value.id),onClose:a[28]||(a[28]=v=>u.value.peerDetails.modalOpen=!1)},null,8,["selectedPeer"])):M("",!0)]),_:1}),r(tu,{showPeersCount:S.value,peerListLength:L.value.length,onLoadMore:a[29]||(a[29]=v=>S.value+=Gf)},null,8,["showPeersCount","peerListLength"])]))}},e3=Z(Vf,[["__scopeId","data-v-b4fba9bc"]]);export{e3 as default};