Files
WGDashboard/src/static/dist/WGDashboardAdmin/assets/peerList-BaMU8N0V.js
Donald Zou 9b60acf3db Build
2025-08-20 01:26:43 +08:00

3 lines
97 KiB
JavaScript

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