airdcpp-webui 2.11.3 → 2.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (self.webpackChunkairdcpp_webui=self.webpackChunkairdcpp_webui||[]).push([[571],{39803:(e,t,s)=>{"use strict";s.d(t,{n4:()=>i});const i=(e,t)=>{const s=o(e),i=o(t),n=s.pop(),a=i.pop(),r=c(s,i);return 0!==r?r:n&&a?c(n.split("."),a.split(".")):n||a?n?-1:1:0},n=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,o=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(n);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},a=e=>"*"===e||"x"===e||"X"===e,r=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},l=(e,t)=>{if(a(e)||a(t))return 0;const[s,i]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(r(e),r(t));return s>i?1:s<i?-1:0},c=(e,t)=>{for(let s=0;s<Math.max(e.length,t.length);s++){const i=l(e[s]||"0",t[s]||"0");if(0!==i)return i}return 0};Object.keys({">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]})},47549:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,'/*!\n * # Fomantic-UI 2.9.0 - Item\n * http://github.com/fomantic/Fomantic-UI/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */.ui.items>.item{display:-webkit-box;display:-ms-flexbox;display:flex;margin:1em 0;width:100%;min-height:0;background:0 0;padding:0;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:-webkit-box-shadow .1s ease;transition:-webkit-box-shadow .1s ease;transition:box-shadow .1s ease;transition:box-shadow .1s ease,-webkit-box-shadow .1s ease;z-index:\'\'}.ui.items>.item a{cursor:pointer}.ui.items{margin:1.5em 0}.ui.items:first-child{margin-top:0!important}.ui.items:last-child{margin-bottom:0!important}.ui.items>.item::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item:first-child{margin-top:0}.ui.items>.item:last-child{margin-bottom:0}.ui.items>.item>.image{position:relative;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;display:block;float:none;margin:0;padding:0;max-height:\'\';-ms-flex-item-align:start;align-self:start}.ui.items>.item>.image>img{display:block;width:100%;height:auto;border-radius:.125rem;border:none}.ui.items>.item>.image:only-child>img{border-radius:0}.ui.items>.item>.content{display:block;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;background:0 0;color:rgba(0,0,0,.87);margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;font-size:1em;border:none;border-radius:0}.ui.items>.item>.content::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image+.content{min-width:0;width:auto;display:block;margin-left:0;-ms-flex-item-align:start;align-self:start;padding-left:1.5em}.ui.items>.item>.content>.header{display:inline-block;margin:-.21425em 0 0;font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-weight:700;color:rgba(0,0,0,.85)}.ui.items>.item>.content>.header:not(.ui){font-size:1.28571429em}.ui.items>.item [class*="left floated"]{float:left}.ui.items>.item [class*="right floated"]{float:right}.ui.items>.item .content img{-ms-flex-item-align:center;align-self:center;width:\'\'}.ui.items>.item .avatar img,.ui.items>.item img.avatar{width:\'\';height:\'\';border-radius:500rem}.ui.items>.item>.content>.description{margin-top:.6em;max-width:auto;font-size:1em;line-height:1.4285em;color:rgba(0,0,0,.87)}.ui.items>.item>.content p{margin:0 0 .5em}.ui.items>.item>.content p:last-child{margin-bottom:0}.ui.items>.item .meta{margin:.5em 0 .5em;font-size:1em;line-height:1em;color:rgba(0,0,0,.6)}.ui.items>.item .meta *{margin-right:.3em}.ui.items>.item .meta :last-child{margin-right:0}.ui.items>.item .meta [class*="right floated"]{margin-right:0;margin-left:.3em}.ui.items>.item>.content a:not(.ui){color:\'\';-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content a:not(.ui):hover{color:\'\'}.ui.items>.item>.content>a.header{color:rgba(0,0,0,.85)}.ui.items>.item>.content>a.header:hover{color:#1e70bf}.ui.items>.item .meta>a:not(.ui){color:rgba(0,0,0,.4)}.ui.items>.item .meta>a:not(.ui):hover{color:rgba(0,0,0,.87)}.ui.items>.item>.content .favorite.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .favorite.icon:hover{opacity:1;color:#ffb70a}.ui.items>.item>.content .active.favorite.icon{color:#ffe623}.ui.items>.item>.content .like.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .like.icon:hover{opacity:1;color:#ff2733}.ui.items>.item>.content .active.like.icon{color:#ff2733}.ui.items>.item .extra{display:block;position:relative;background:0 0;margin:.5rem 0 0;width:100%;padding:0 0 0;top:0;left:0;color:rgba(0,0,0,.4);-webkit-box-shadow:none;box-shadow:none;-webkit-transition:color .1s ease;transition:color .1s ease;border-top:none}.ui.items>.item .extra>*{margin:.25rem .5rem .25rem 0}.ui.items>.item .extra>[class*="right floated"]{margin:.25rem 0 .25rem .5rem}.ui.items>.item .extra::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image:not(.ui){width:175px}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.items>.item{margin:1em 0}.ui.items>.item>.image:not(.ui){width:150px}.ui.items>.item>.image+.content{display:block;padding:0 0 0 1em}}@media only screen and (max-width:767.98px){.ui.items:not(.unstackable)>.item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:2em 0}.ui.items:not(.unstackable)>.item>.image{display:block;margin-left:auto;margin-right:auto}.ui.items:not(.unstackable)>.item>.image,.ui.items:not(.unstackable)>.item>.image>img{max-width:100%!important;width:auto!important;max-height:250px!important}.ui.items:not(.unstackable)>.item>.image+.content{display:block;padding:1.5em 0 0}}.ui.items>.item>.image+[class*="top aligned"].content{-ms-flex-item-align:start;align-self:flex-start}.ui.items>.item>.image+[class*="middle aligned"].content{-ms-flex-item-align:center;align-self:center}.ui.items>.item>.image+[class*="bottom aligned"].content{-ms-flex-item-align:end;align-self:flex-end}.ui.relaxed.items>.item{margin:1.5em 0}.ui[class*="very relaxed"].items>.item{margin:2em 0}.ui.divided.items>.item{border-top:1px solid rgba(34,36,38,.15);margin:0;padding:1em 0}.ui.divided.items>.item:first-child{border-top:none;margin-top:0!important;padding-top:0!important}.ui.divided.items>.item:last-child{margin-bottom:0!important;padding-bottom:0!important}.ui.relaxed.divided.items>.item{margin:0;padding:1.5em 0}.ui[class*="very relaxed"].divided.items>.item{margin:0;padding:2em 0}.ui.items a.item:hover,.ui.link.items>.item:hover{cursor:pointer}.ui.items a.item:hover .content .header,.ui.link.items>.item:hover .content .header{color:#1e70bf}.ui.items>.item{font-size:1em}.ui.mini.items>.item{font-size:.78571429em}.ui.tiny.items>.item{font-size:.85714286em}.ui.small.items>.item{font-size:.92857143em}.ui.large.items>.item{font-size:1.14285714em}.ui.big.items>.item{font-size:1.28571429em}.ui.huge.items>.item{font-size:1.42857143em}.ui.massive.items>.item{font-size:1.71428571em}@media only screen and (max-width:767.98px){.ui.unstackable.items>.item>.image,.ui.unstackable.items>.item>.image>img{width:125px!important}}.ui.inverted.items>.item{background:0 0}.ui.inverted.items>.item>.content{background:0 0;color:rgba(255,255,255,.9)}.ui.inverted.items>.item .extra{background:0 0}.ui.inverted.items>.item>.content>.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>.description{color:rgba(255,255,255,.9)}.ui.inverted.items>.item .meta{color:rgba(255,255,255,.8)}.ui.inverted.items>.item>.content a:not(.ui){color:#57a4ef}.ui.inverted.items>.item>.content a:not(.ui):hover{color:#4183c4}.ui.inverted.items>.item>.content>a.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>a.header:hover{color:#fff}.ui.inverted.items>.item .meta>a:not(.ui){color:rgba(255,255,255,.7)}.ui.inverted.items>.item .meta>a:not(.ui):hover{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content .favorite.icon:hover{color:#ffc63d}.ui.inverted.items>.item>.content .active.favorite.icon{color:#ffec56}.ui.inverted.items>.item>.content .like.icon:hover{color:#ff5a63}.ui.inverted.items>.item>.content .active.like.icon{color:#ff5a63}.ui.inverted.items>.item .extra{color:rgba(255,255,255,.7)}.ui.inverted.items a.item:hover .content .header,.ui.inverted.link.items>.item:hover .content .header{color:#fff}.ui.inverted.divided.items>.item{border-top:1px solid rgba(255,255,255,.1)}.ui.inverted.divided.items>.item:first-child{border-top:none}',"",{version:3,sources:["webpack://./node_modules/fomantic-ui-css/components/item.min.css"],names:[],mappings:"AAAA;;;;;;;;EAQE,CAAC,gBAAgB,mBAAmB,CAAC,mBAAmB,CAAC,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,uBAAuB,CAAC,eAAe,CAAC,8CAA8C,CAAC,sCAAsC,CAAC,8BAA8B,CAAC,0DAA0D,CAAC,UAAU,CAAC,kBAAkB,cAAc,CAAC,UAAU,cAAc,CAAC,sBAAsB,sBAAsB,CAAC,qBAAqB,yBAAyB,CAAC,uBAAuB,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,4BAA4B,YAAY,CAAC,2BAA2B,eAAe,CAAC,uBAAuB,iBAAiB,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,aAAa,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,2BAA2B,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,WAAW,CAAC,sCAAsC,eAAe,CAAC,yBAAyB,aAAa,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,aAAa,CAAC,cAAc,CAAC,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,uBAAuB,CAAC,eAAe,CAAC,aAAa,CAAC,WAAW,CAAC,eAAe,CAAC,gCAAgC,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,gCAAgC,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,iCAAiC,oBAAoB,CAAC,oBAAoB,CAAC,4NAA4N,CAAC,eAAe,CAAC,qBAAqB,CAAC,0CAA0C,sBAAsB,CAAC,wCAAwC,UAAU,CAAC,yCAAyC,WAAW,CAAC,6BAA6B,0BAA0B,CAAC,iBAAiB,CAAC,QAAQ,CAAC,uDAAuD,QAAQ,CAAC,SAAS,CAAC,oBAAoB,CAAC,sCAAsC,eAAe,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,2BAA2B,eAAe,CAAC,sCAAsC,eAAe,CAAC,sBAAsB,kBAAkB,CAAC,aAAa,CAAC,eAAe,CAAC,oBAAoB,CAAC,wBAAwB,iBAAiB,CAAC,kCAAkC,cAAc,CAAC,+CAA+C,cAAc,CAAC,gBAAgB,CAAC,oCAAoC,QAAQ,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,0CAA0C,QAAQ,CAAC,kCAAkC,qBAAqB,CAAC,wCAAwC,aAAa,CAAC,iCAAiC,oBAAoB,CAAC,uCAAuC,qBAAqB,CAAC,wCAAwC,cAAc,CAAC,WAAW,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,8CAA8C,SAAS,CAAC,aAAa,CAAC,+CAA+C,aAAa,CAAC,oCAAoC,cAAc,CAAC,WAAW,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,0CAA0C,SAAS,CAAC,aAAa,CAAC,2CAA2C,aAAa,CAAC,uBAAuB,aAAa,CAAC,iBAAiB,CAAC,cAAc,CAAC,gBAAgB,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,eAAe,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,eAAe,CAAC,yBAAyB,4BAA4B,CAAC,gDAAgD,4BAA4B,CAAC,8BAA8B,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,gCAAgC,WAAW,CAAC,kEAAkE,gBAAgB,YAAY,CAAC,gCAAgC,WAAW,CAAC,gCAAgC,aAAa,CAAC,iBAAiB,CAAC,CAAC,4CAA4C,kCAAkC,2BAA2B,CAAC,4BAA4B,CAAC,yBAAyB,CAAC,qBAAqB,CAAC,YAAY,CAAC,yCAAyC,aAAa,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,sFAAsF,wBAAwB,CAAC,oBAAoB,CAAC,0BAA0B,CAAC,kDAAkD,aAAa,CAAC,iBAAiB,CAAC,CAAC,sDAAsD,yBAAyB,CAAC,qBAAqB,CAAC,yDAAyD,0BAA0B,CAAC,iBAAiB,CAAC,yDAAyD,uBAAuB,CAAC,mBAAmB,CAAC,wBAAwB,cAAc,CAAC,uCAAuC,YAAY,CAAC,wBAAwB,uCAAuC,CAAC,QAAQ,CAAC,aAAa,CAAC,oCAAoC,eAAe,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,mCAAmC,yBAAyB,CAAC,0BAA0B,CAAC,gCAAgC,QAAQ,CAAC,eAAe,CAAC,+CAA+C,QAAQ,CAAC,aAAa,CAAC,kDAAkD,cAAc,CAAC,oFAAoF,aAAa,CAAC,gBAAgB,aAAa,CAAC,qBAAqB,qBAAqB,CAAC,qBAAqB,qBAAqB,CAAC,sBAAsB,qBAAqB,CAAC,sBAAsB,sBAAsB,CAAC,oBAAoB,sBAAsB,CAAC,qBAAqB,sBAAsB,CAAC,wBAAwB,sBAAsB,CAAC,4CAA4C,0EAA0E,qBAAqB,CAAC,CAAC,yBAAyB,cAAc,CAAC,kCAAkC,cAAc,CAAC,0BAA0B,CAAC,gCAAgC,cAAc,CAAC,0CAA0C,0BAA0B,CAAC,+CAA+C,0BAA0B,CAAC,+BAA+B,0BAA0B,CAAC,6CAA6C,aAAa,CAAC,mDAAmD,aAAa,CAAC,2CAA2C,0BAA0B,CAAC,iDAAiD,UAAU,CAAC,0CAA0C,0BAA0B,CAAC,gDAAgD,0BAA0B,CAAC,uDAAuD,aAAa,CAAC,wDAAwD,aAAa,CAAC,mDAAmD,aAAa,CAAC,oDAAoD,aAAa,CAAC,gCAAgC,0BAA0B,CAAC,sGAAsG,UAAU,CAAC,iCAAiC,yCAAyC,CAAC,6CAA6C,eAAe",sourcesContent:['/*!\n * # Fomantic-UI 2.9.0 - Item\n * http://github.com/fomantic/Fomantic-UI/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */.ui.items>.item{display:-webkit-box;display:-ms-flexbox;display:flex;margin:1em 0;width:100%;min-height:0;background:0 0;padding:0;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:-webkit-box-shadow .1s ease;transition:-webkit-box-shadow .1s ease;transition:box-shadow .1s ease;transition:box-shadow .1s ease,-webkit-box-shadow .1s ease;z-index:\'\'}.ui.items>.item a{cursor:pointer}.ui.items{margin:1.5em 0}.ui.items:first-child{margin-top:0!important}.ui.items:last-child{margin-bottom:0!important}.ui.items>.item::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item:first-child{margin-top:0}.ui.items>.item:last-child{margin-bottom:0}.ui.items>.item>.image{position:relative;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;display:block;float:none;margin:0;padding:0;max-height:\'\';-ms-flex-item-align:start;align-self:start}.ui.items>.item>.image>img{display:block;width:100%;height:auto;border-radius:.125rem;border:none}.ui.items>.item>.image:only-child>img{border-radius:0}.ui.items>.item>.content{display:block;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;background:0 0;color:rgba(0,0,0,.87);margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;font-size:1em;border:none;border-radius:0}.ui.items>.item>.content::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image+.content{min-width:0;width:auto;display:block;margin-left:0;-ms-flex-item-align:start;align-self:start;padding-left:1.5em}.ui.items>.item>.content>.header{display:inline-block;margin:-.21425em 0 0;font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-weight:700;color:rgba(0,0,0,.85)}.ui.items>.item>.content>.header:not(.ui){font-size:1.28571429em}.ui.items>.item [class*="left floated"]{float:left}.ui.items>.item [class*="right floated"]{float:right}.ui.items>.item .content img{-ms-flex-item-align:center;align-self:center;width:\'\'}.ui.items>.item .avatar img,.ui.items>.item img.avatar{width:\'\';height:\'\';border-radius:500rem}.ui.items>.item>.content>.description{margin-top:.6em;max-width:auto;font-size:1em;line-height:1.4285em;color:rgba(0,0,0,.87)}.ui.items>.item>.content p{margin:0 0 .5em}.ui.items>.item>.content p:last-child{margin-bottom:0}.ui.items>.item .meta{margin:.5em 0 .5em;font-size:1em;line-height:1em;color:rgba(0,0,0,.6)}.ui.items>.item .meta *{margin-right:.3em}.ui.items>.item .meta :last-child{margin-right:0}.ui.items>.item .meta [class*="right floated"]{margin-right:0;margin-left:.3em}.ui.items>.item>.content a:not(.ui){color:\'\';-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content a:not(.ui):hover{color:\'\'}.ui.items>.item>.content>a.header{color:rgba(0,0,0,.85)}.ui.items>.item>.content>a.header:hover{color:#1e70bf}.ui.items>.item .meta>a:not(.ui){color:rgba(0,0,0,.4)}.ui.items>.item .meta>a:not(.ui):hover{color:rgba(0,0,0,.87)}.ui.items>.item>.content .favorite.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .favorite.icon:hover{opacity:1;color:#ffb70a}.ui.items>.item>.content .active.favorite.icon{color:#ffe623}.ui.items>.item>.content .like.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .like.icon:hover{opacity:1;color:#ff2733}.ui.items>.item>.content .active.like.icon{color:#ff2733}.ui.items>.item .extra{display:block;position:relative;background:0 0;margin:.5rem 0 0;width:100%;padding:0 0 0;top:0;left:0;color:rgba(0,0,0,.4);-webkit-box-shadow:none;box-shadow:none;-webkit-transition:color .1s ease;transition:color .1s ease;border-top:none}.ui.items>.item .extra>*{margin:.25rem .5rem .25rem 0}.ui.items>.item .extra>[class*="right floated"]{margin:.25rem 0 .25rem .5rem}.ui.items>.item .extra::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image:not(.ui){width:175px}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.items>.item{margin:1em 0}.ui.items>.item>.image:not(.ui){width:150px}.ui.items>.item>.image+.content{display:block;padding:0 0 0 1em}}@media only screen and (max-width:767.98px){.ui.items:not(.unstackable)>.item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:2em 0}.ui.items:not(.unstackable)>.item>.image{display:block;margin-left:auto;margin-right:auto}.ui.items:not(.unstackable)>.item>.image,.ui.items:not(.unstackable)>.item>.image>img{max-width:100%!important;width:auto!important;max-height:250px!important}.ui.items:not(.unstackable)>.item>.image+.content{display:block;padding:1.5em 0 0}}.ui.items>.item>.image+[class*="top aligned"].content{-ms-flex-item-align:start;align-self:flex-start}.ui.items>.item>.image+[class*="middle aligned"].content{-ms-flex-item-align:center;align-self:center}.ui.items>.item>.image+[class*="bottom aligned"].content{-ms-flex-item-align:end;align-self:flex-end}.ui.relaxed.items>.item{margin:1.5em 0}.ui[class*="very relaxed"].items>.item{margin:2em 0}.ui.divided.items>.item{border-top:1px solid rgba(34,36,38,.15);margin:0;padding:1em 0}.ui.divided.items>.item:first-child{border-top:none;margin-top:0!important;padding-top:0!important}.ui.divided.items>.item:last-child{margin-bottom:0!important;padding-bottom:0!important}.ui.relaxed.divided.items>.item{margin:0;padding:1.5em 0}.ui[class*="very relaxed"].divided.items>.item{margin:0;padding:2em 0}.ui.items a.item:hover,.ui.link.items>.item:hover{cursor:pointer}.ui.items a.item:hover .content .header,.ui.link.items>.item:hover .content .header{color:#1e70bf}.ui.items>.item{font-size:1em}.ui.mini.items>.item{font-size:.78571429em}.ui.tiny.items>.item{font-size:.85714286em}.ui.small.items>.item{font-size:.92857143em}.ui.large.items>.item{font-size:1.14285714em}.ui.big.items>.item{font-size:1.28571429em}.ui.huge.items>.item{font-size:1.42857143em}.ui.massive.items>.item{font-size:1.71428571em}@media only screen and (max-width:767.98px){.ui.unstackable.items>.item>.image,.ui.unstackable.items>.item>.image>img{width:125px!important}}.ui.inverted.items>.item{background:0 0}.ui.inverted.items>.item>.content{background:0 0;color:rgba(255,255,255,.9)}.ui.inverted.items>.item .extra{background:0 0}.ui.inverted.items>.item>.content>.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>.description{color:rgba(255,255,255,.9)}.ui.inverted.items>.item .meta{color:rgba(255,255,255,.8)}.ui.inverted.items>.item>.content a:not(.ui){color:#57a4ef}.ui.inverted.items>.item>.content a:not(.ui):hover{color:#4183c4}.ui.inverted.items>.item>.content>a.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>a.header:hover{color:#fff}.ui.inverted.items>.item .meta>a:not(.ui){color:rgba(255,255,255,.7)}.ui.inverted.items>.item .meta>a:not(.ui):hover{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content .favorite.icon:hover{color:#ffc63d}.ui.inverted.items>.item>.content .active.favorite.icon{color:#ffec56}.ui.inverted.items>.item>.content .like.icon:hover{color:#ff5a63}.ui.inverted.items>.item>.content .active.like.icon{color:#ff5a63}.ui.inverted.items>.item .extra{color:rgba(255,255,255,.7)}.ui.inverted.items a.item:hover .content .header,.ui.inverted.link.items>.item:hover .content .header{color:#fff}.ui.inverted.divided.items>.item{border-top:1px solid rgba(255,255,255,.1)}.ui.inverted.divided.items>.item:first-child{border-top:none}'],sourceRoot:""}]);const r=a},64275:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .detect-panel {\n margin-top: 30px;\n}\n\n.settings-layout .detect-panel .header.column > div {\n overflow: hidden;\n line-height: inherit !important;\n}\n\n.settings-layout .detect-panel .header.column {\n max-width: 200px;\n}\n\n.settings-layout .detect-panel .detect-button {\n margin-top: 20px;\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/Connectivity/style.css"],names:[],mappings:"AAAA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,+BAA+B;AACjC;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".settings-layout .detect-panel {\n margin-top: 30px;\n}\n\n.settings-layout .detect-panel .header.column > div {\n overflow: hidden;\n line-height: inherit !important;\n}\n\n.settings-layout .detect-panel .header.column {\n max-width: 200px;\n}\n\n.settings-layout .detect-panel .detect-button {\n margin-top: 20px;\n}"],sourceRoot:""}]);const r=a},85951:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .profile.miscellaneous .field-nmdc_encoding li {\r\n margin-bottom: 5px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/Profile/style.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB",sourcesContent:[".settings-layout .profile.miscellaneous .field-nmdc_encoding li {\r\n margin-bottom: 5px;\r\n}"],sourceRoot:""}]);const r=a},40548:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .hash-database.grid {\r\n padding: 10px 0px 15px 0px;\r\n}\r\n\r\n.settings-layout .hash-database.grid .row {\r\n padding: 5px 0px;\r\n}\r\n\r\n.settings-layout .sharing.excludes .add.button {\r\n margin-top: 20px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/Sharing/style.css"],names:[],mappings:"AAAA;EACE,0BAA0B;AAC5B;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".settings-layout .hash-database.grid {\r\n padding: 10px 0px 15px 0px;\r\n}\r\n\r\n.settings-layout .hash-database.grid .row {\r\n padding: 5px 0px;\r\n}\r\n\r\n.settings-layout .sharing.excludes .add.button {\r\n margin-top: 20px;\r\n}"],sourceRoot:""}]);const r=a},17834:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".web-user.modal .ui.checkbox {\r\n width: 100%;\r\n margin-top: 5px;\r\n}\r\n\r\n.web-user.modal .ui.checkbox.admin {\r\n margin-bottom: 10px;\r\n font-weight: bold;\r\n}\r\n\r\n.settings-layout .system.logging .log-section.active {\r\n background-color: whitesmoke;\r\n}\r\n\r\n.settings-layout .system.logging .sections {\r\n margin-top: 25px !important;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/System/style.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,eAAe;AACjB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;AACnB;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,2BAA2B;AAC7B",sourcesContent:[".web-user.modal .ui.checkbox {\r\n width: 100%;\r\n margin-top: 5px;\r\n}\r\n\r\n.web-user.modal .ui.checkbox.admin {\r\n margin-bottom: 10px;\r\n font-weight: bold;\r\n}\r\n\r\n.settings-layout .system.logging .log-section.active {\r\n background-color: whitesmoke;\r\n}\r\n\r\n.settings-layout .system.logging .sections {\r\n margin-top: 25px !important;\r\n}"],sourceRoot:""}]);const r=a},80001:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .view.notifications .field-notify_events_info {\r\n margin-top: 25px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/View/style.css"],names:[],mappings:"AAAA;EACE,gBAAgB;AAClB",sourcesContent:[".settings-layout .view.notifications .field-notify_events_info {\r\n margin-top: 25px;\r\n}"],sourceRoot:""}]);const r=a},20464:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout {\r\n padding-bottom: 30px;\r\n max-height: 100% !important;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.settings-layout .menu-column .menu {\r\n max-width: 100%;\r\n}\r\n\r\n.settings-layout .layout.header {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout .setting-form {\r\n margin-top: 30px;\r\n}\r\n\r\n.settings-layout .setting-form:first-child {\r\n margin-top: 0px;\r\n}\r\n\r\n.settings-layout h3 {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout h4 {\r\n margin-top: 15px;\r\n}\r\n\r\n.settings-layout > div,\r\n.settings-layout .mobile .section-content {\r\n display: flex;\r\n flex-direction: column;\r\n overflow-y: auto;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.settings-layout .main.grid {\r\n overflow-y: auto;\r\n padding: 0px;\r\n}\r\n\r\n.settings-layout .mobile .section-content {\r\n padding-bottom: 5px;\r\n /* For possible scrollbar */\r\n padding-right: 5px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about {\r\n margin-top: 10px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about .options {\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .full .section-content {\r\n height: 100%;\r\n padding-bottom: 2px;\r\n}\r\n\r\n.settings-layout .top-menu {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .top-menu > .ui.dropdown,\r\n.settings-layout .top-menu > .ui.dropdown > .caption {\r\n display: flex;\r\n}\r\n\r\n.settings-layout .top-menu > i {\r\n margin: 0px 5px;\r\n}\r\n\r\n.settings-layout .full .top-menu i {\r\n display: none;\r\n}\r\n\r\n.settings-layout .mobile .save.button {\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .options {\r\n min-height: 80px;\r\n}\r\n\r\n.settings-layout .options > .ui.grid {\r\n margin: 0px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/style.css"],names:[],mappings:"AAAA;EACE,oBAAoB;EACpB,2BAA2B;EAC3B,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;EAEE,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,YAAY;AACd;;AAEA;EACE,mBAAmB;EACnB,2BAA2B;EAC3B,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,cAAc;AAChB;;AAEA;;EAEE,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,mBAAmB;EACnB,cAAc;AAChB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;AACb",sourcesContent:[".settings-layout {\r\n padding-bottom: 30px;\r\n max-height: 100% !important;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.settings-layout .menu-column .menu {\r\n max-width: 100%;\r\n}\r\n\r\n.settings-layout .layout.header {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout .setting-form {\r\n margin-top: 30px;\r\n}\r\n\r\n.settings-layout .setting-form:first-child {\r\n margin-top: 0px;\r\n}\r\n\r\n.settings-layout h3 {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout h4 {\r\n margin-top: 15px;\r\n}\r\n\r\n.settings-layout > div,\r\n.settings-layout .mobile .section-content {\r\n display: flex;\r\n flex-direction: column;\r\n overflow-y: auto;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.settings-layout .main.grid {\r\n overflow-y: auto;\r\n padding: 0px;\r\n}\r\n\r\n.settings-layout .mobile .section-content {\r\n padding-bottom: 5px;\r\n /* For possible scrollbar */\r\n padding-right: 5px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about {\r\n margin-top: 10px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about .options {\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .full .section-content {\r\n height: 100%;\r\n padding-bottom: 2px;\r\n}\r\n\r\n.settings-layout .top-menu {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .top-menu > .ui.dropdown,\r\n.settings-layout .top-menu > .ui.dropdown > .caption {\r\n display: flex;\r\n}\r\n\r\n.settings-layout .top-menu > i {\r\n margin: 0px 5px;\r\n}\r\n\r\n.settings-layout .full .top-menu i {\r\n display: none;\r\n}\r\n\r\n.settings-layout .mobile .save.button {\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .options {\r\n min-height: 80px;\r\n}\r\n\r\n.settings-layout .options > .ui.grid {\r\n margin: 0px;\r\n}"],sourceRoot:""}]);const r=a},53597:(e,t,s)=>{"use strict";var i=s(93379),n=s.n(i),o=s(7795),a=s.n(o),r=s(90569),l=s.n(r),c=s(3565),d=s.n(c),m=s(19216),u=s.n(m),A=s(44589),p=s.n(A),h=s(47549),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},56183:(e,t,s)=>{"use strict";var i=s(93379),n=s.n(i),o=s(7795),a=s.n(o),r=s(90569),l=s.n(r),c=s(3565),d=s.n(c),m=s(19216),u=s.n(m),A=s(44589),p=s.n(A),h=s(40548),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},95788:(e,t,s)=>{"use strict";var i=s(93379),n=s.n(i),o=s(7795),a=s.n(o),r=s(90569),l=s.n(r),c=s(3565),d=s.n(c),m=s(19216),u=s.n(m),A=s(44589),p=s.n(A),h=s(17834),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},23776:(e,t,s)=>{"use strict";s.d(t,{Z:()=>x});var i=s(518),n=s(34698),o=s(70838),a=s(20097),r=s(48117),l=s(76249),c=s(32347);const d=e=>e.managed,m=e=>e.running,u=(e,t,s)=>i.Z.post(o.Z.DOWNLOAD_URL,{install_id:t||e,url:e,shasum:s}),A=e=>{return t=void 0,s=void 0,a=function*(){var{data:t}=e;!function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}}(e,["data"]);const s=yield(0,n.b)(o.Z.NPM_PACKAGE_URL+t.name+"/latest",!0),{tarball:i,shasum:a}=s.dist;return u(i,t.name,a)},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{l(a.next(e))}catch(e){n(e)}}function r(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(e){e(s)}))).then(o,r)}l((a=a.apply(t,s||[])).next())}));var t,s,i,a},p={installUrl:{displayName:"Install from URL",icon:r.Z.CREATE,access:l.PS.ADMIN,input:{approveCaption:"Install",content:"Enter download URL",inputProps:{placeholder:"Enter URL",type:"url",required:!0}},handler:({data:e},t)=>u(t)}},h={installNpm:{displayName:"Install",icon:r.Z.CREATE,access:l.PS.ADMIN,handler:A},updateNpm:{displayName:"Update",icon:r.Z.REFRESH_COLORED,access:l.PS.ADMIN,handler:A}},g={start:{displayName:"Start",icon:r.Z.PLAY,filter:e=>d(e)&&!m(e),access:l.PS.ADMIN,handler:({data:e})=>i.Z.post(`${o.Z.EXTENSIONS_URL}/${e.name}/start`)},stop:{displayName:"Stop",icon:r.Z.STOP,filter:e=>d(e)&&m(e),access:l.PS.ADMIN,handler:({data:e})=>i.Z.post(`${o.Z.EXTENSIONS_URL}/${e.name}/stop`)},configure:{displayName:"Configure",icon:r.Z.EDIT,filter:e=>e.has_settings,access:l.PS.SETTINGS_EDIT,handler:({data:e,location:t})=>{a.Z.push(`${t.pathname}/extensions/${e.id}`)}},divider:null,remove:{displayName:"Uninstall",icon:r.Z.REMOVE,filter:d,access:l.PS.ADMIN,confirmation:{content:"Are you sure that you want to remove the extension {{item.name}}? This will also remove possible extension-specific settings.",approveCaption:"Remove extension",rejectCaption:"Don't remove"},handler:({data:e})=>i.Z.delete(o.Z.EXTENSIONS_URL+"/"+e.name)}},x={install:{moduleId:c.jv.EXTENSIONS,actions:p},npm:{moduleId:c.jv.EXTENSIONS,actions:h},manage:{moduleId:c.jv.EXTENSIONS,actions:g}}},29416:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(518),n=s(4047),o=s(48117),a=s(76249),r=s(32347);const l={refresh:{displayName:"Refresh all",access:a.PS.SETTINGS_EDIT,icon:o.Z.REFRESH_COLORED,handler:()=>i.Z.post(n.Z.REFRESH_URL)}},c={moduleId:r.jv.SHARE,actions:l}},10223:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(83767),n=s(518),o=s(48117),a=s(76249),r=s(32347);const l={restartWeb:{displayName:"Restart web server",access:a.PS.ADMIN,icon:o.Z.REFRESH_COLORED,confirmation:{content:"When changing the binding options, it's recommended to restart the web server only \n when you are able to access the server for troubleshooting. If the web server won't come back online, you should start the application \n manually to see if there are any error messages. The configuration file is located in your user directory by default (inside .airdc++ directory) in case you need to edit it manually.",approveCaption:"Continue and restart",rejectCaption:"Don't restart"},handler:()=>n.Z.post(i.Z.MODULE_URL+"/restart_web")},shutdown:{displayName:"Shut down application",access:a.PS.ADMIN,icon:o.Z.POWER,confirmation:{content:"Are you sure that you wish to shut down the application?",approveCaption:"Continue and shut down",rejectCaption:"Cancel"},handler:()=>n.Z.post(i.Z.MODULE_URL+"/shutdown")}},c={moduleId:r.jv.COMMON,subId:"system",actions:l}},80713:(e,t,s)=>{"use strict";s.d(t,{Z:()=>h});var i=s(85893),n=s(67294),o=s(27695),a=s(84807),r=s(48117),l=s(33612),c=s(92408),d=s(96818),m=s(85948),u=s(32347),A=s(8717),p=s(26793);const h=({alwaysShow:e})=>{const t=(0,c.o)(d.Z),s=(0,n.useContext)(m.S),{t:h}=(0,p.$)();return s?!e&&t[l.Qp.NO_INSTALL_PROMPT]?null:(0,i.jsx)(o.Z,{title:(0,A.Iu)("Install as local application",h,u.jv.COMMON),description:(0,i.jsxs)("div",Object.assign({className:"install-prompt"},{children:[(0,i.jsx)("p",{children:h((0,A.zS)("pwaInstallDesc",u.jv.COMMON),"This web application can be installed locally, providing a better user experience")}),(0,i.jsx)(a.Z,{className:"primary",caption:(0,A.Iu)("Install",h,u.jv.COMMON),onClick:()=>s(),icon:r.Z.CREATE}),!e&&(0,i.jsx)(a.Z,{caption:(0,A.Iu)("Don't install",h,u.jv.COMMON),onClick:()=>d.Z.setValue(l.Qp.NO_INSTALL_PROMPT,!0)})]}))}):null}},24101:(e,t,s)=>{"use strict";s.d(t,{X2:()=>d,h4:()=>m,rj:()=>u});var i=s(85893),n=(s(67294),s(94184)),o=s.n(n),a=s(89116),r=s(8717),l=s(32347);const c=e=>e||(0,i.jsx)(a.c,Object.assign({i18nKey:(0,r.zS)("na",l.jv.COMMON)},{children:"N/A"})),d=({title:e,text:t,className:s,titleWidth:n="four",noText:a})=>(0,i.jsxs)("div",Object.assign({className:o()("ui row",s)},{children:[(0,i.jsx)("div",Object.assign({className:o()(a?"sixteen":n,"wide column title")},{children:(0,i.jsx)("div",Object.assign({className:"ui tiny header",style:{overflow:"hidden"}},{children:e}))})),!a&&(0,i.jsx)("div",Object.assign({className:"column value"},{children:c(t)}))]})),m=({title:e})=>(0,i.jsx)("div",Object.assign({className:"ui row"},{children:(0,i.jsx)("div",Object.assign({className:"sixteen wide column"},{children:(0,i.jsx)("div",Object.assign({className:"ui blue section header"},{children:e}))}))})),u=e=>{var{className:t,children:s,columns:n,stackable:a}=e,r=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["className","children","columns","stackable"]);return(0,i.jsx)("div",Object.assign({className:o()("ui grid",{[`${n} column`]:!!n},{stackable:a},t)},r,{children:s}))}},70838:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});const i="extensions",n="https://registry.npmjs.org/",o={MODULE_URL:i,EXTENSIONS_URL:i,DOWNLOAD_URL:i+"/download",ENGINES_URL:i+"/engines",ENGINES_STATUS_URL:i+"/engines/status",DEFAULT_ENGINE:"node",STARTED:"extension_started",STOPPED:"extension_stopped",ADDED:"extension_added",REMOVED:"extension_removed",UPDATED:"extension_updated",INSTALLATION_STARTED:"extension_installation_started",INSTALLATION_SUCCEEDED:"extension_installation_succeeded",INSTALLATION_FAILED:"extension_installation_failed",NPM_PACKAGES_URL:n+"-/v1/search?text=keywords:airdcpp-extensions-public&size=100",NPM_PACKAGE_URL:n,NPM_HOMEPAGE_URL:"https://www.npmjs.com/package/"}},1251:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const i="favorite_directories",n={MODULE_URL:i,GROUPED_DIRECTORIES_URL:i+"/grouped_paths",DIRECTORIES_URL:i,DIRECTORIES_UPDATED:"favorite_directories_updated"}},82633:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const i="share_profiles",n={MODULE_URL:i,PROFILES_URL:i,PROFILE_ADDED:"share_profile_added",PROFILE_UPDATED:"share_profile_updated",PROFILE_REMOVED:"share_profile_removed",HIDDEN_PROFILE_ID:1}},75426:(e,t,s)=>{"use strict";s.d(t,{D:()=>r,Z:()=>l});var i=s(96486),n=s(82633),o=s(42090),a=s(2445);const r=e=>({id:e.id,name:e.str}),l=function(e,t,s,r=!0){return(0,o.Z)(e,(0,i.merge)(s,{urls:{profiles:n.Z.PROFILES_URL},dataConverters:{profiles:(e,{t:s})=>{const i=e.filter((e=>t||e.id!==n.Z.HIDDEN_PROFILE_ID)).map((e=>((e,t)=>{let s=e.str;return r&&e.id!==n.Z.HIDDEN_PROFILE_ID&&(s+=` (${(0,a.BU)(e.size,t)})`),Object.assign(Object.assign({},e),{str:s})})(e,s)));return i}},onSocketConnected:(e,{refetchData:t})=>{e(n.Z.MODULE_URL,n.Z.PROFILE_ADDED,(()=>t())),e(n.Z.MODULE_URL,n.Z.PROFILE_UPDATED,(()=>t())),e(n.Z.MODULE_URL,n.Z.PROFILE_REMOVED,(()=>t()))}}))}},17666:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var i=s(85893),n=s(67294),o=s(518),a=s(27695),r=s(69222),l=s(8717),c=s(32347);const d=function(e,t,s,d=0){class m extends n.Component{constructor(){super(...arguments),this.state={stats:null},this.fetchStats=()=>{o.Z.get(t).then(this.onStatsReceived).catch((e=>console.error("Failed to fetch stats",e.message))),d>0&&(this.fetchTimeout=window.setTimeout(this.fetchStats,1e3*d))},this.onStatsReceived=e=>{this.setState({stats:e})}}componentDidMount(){this.fetchStats()}componentWillUnmount(){window.clearTimeout(this.fetchTimeout)}render(){const{stats:t}=this.state;return null===t?null:(this.props.stats&&Object.assign(t,this.props.stats),void 0===t?(0,i.jsx)(r.W,{children:e=>(0,i.jsx)(a.Z,{title:(0,l.Iu)("Statistics not available",e,c.jv.COMMON),description:s?s(e,this.props):void 0})}):(0,i.jsx)(e,Object.assign({},this.props,{stats:t})))}}return m}},86216:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var i=s(85893),n=s(67294),o=s(96818),a=s(43496),r=s(67161),l=s(18603);class c extends n.Component{constructor(e){super(e),this.onSave=(e,t)=>(o.Z.setValues(e),this.setState({settings:o.Z.getValues()}),Promise.resolve()),this.onFieldChanged=(e,t,s)=>{const{saveContext:i,onFieldChanged:n}=this.props;if(i.onFieldChanged(e,t,s),n)return n(e,t,s)},this.definitions=(0,l.rv)(o.Z.getDefinitions(e.keys),e.moduleT),this.state={settings:o.Z.getValues()}}render(){const{settings:e}=this.state,t=this.props,{saveContext:s,keys:n}=t,o=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(t,["saveContext","keys"]);return(0,i.jsx)("div",Object.assign({className:"local setting-form"},{children:(0,i.jsx)(a.Z,Object.assign({},o,{ref:e=>s.addFormRef(n,e),onSave:this.onSave,fieldDefinitions:this.definitions,sourceValue:e,onFieldChanged:this.onFieldChanged}))}))}}const d=(0,r.nB)(c)},25721:(e,t,s)=>{"use strict";s.d(t,{h7:()=>u,kf:()=>m,mB:()=>d,nO:()=>A,tD:()=>p});var i=s(85893),n=s(6596),o=s(66883),a=s(16550),r=s(32347),l=s(8717),c=s(96486);const d=(e,t)=>"object"==typeof t?`/settings/${t.url}/${e.url}`:`/settings/${e.url}`,m=(e,t)=>t.translate(e,[r.W9.NAVIGATION]),u=(e,t,s,a)=>{if(e.debugOnly)return null;if(e.access&&!o.Z.hasAccess(e.access))return null;let r=d(e,t);return e.menuItems&&0!==a.pathname.indexOf(r)&&(r=d(e.menuItems[0],e)),(0,i.jsx)(n.Z,Object.assign({url:r,icon:e.icon?`green ${e.icon}`:null},{children:m(e.title,s)}),r)},A=(e,t,s,n,o)=>t?t.map((r=>(0,i.jsx)(a.AW,{path:d(r,o),render:o=>(0,i.jsx)(r.component,Object.assign({},o,{menuItems:e.menuItems,advancedMenuItems:e.advancedMenuItems,parent:e,parentMenuItems:t,settingsT:s,moduleT:(0,l.o9)(n||s,(0,c.camelCase)(r.url))}))},r.url))):null,p=(e,t,s)=>e?e.find((e=>((e,t,s)=>0===s.pathname.indexOf(d(e,t)))(e,t,s))):null},67977:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=s(67294),o=s(33612),a=s(42090),r=s(518),l=s(43496),c=s(76249),d=s(67161);class m extends n.Component{constructor(){super(...arguments),this.onSave=e=>0===Object.keys(e).length?Promise.resolve():r.Z.post(o.ZP.ITEMS_SET_URL,e).then(this.refetchValues),this.refetchValues=()=>{this.props.refetchData(["settings"])},this.onFieldChanged=(e,t,s)=>{const{saveContext:i,onFieldChanged:n}=this.props;if(i.onFieldChanged(e,t,s),n)return n(e,t,s)}}render(){const e=this.props,{settings:t,fieldDefinitions:s,saveContext:n,keys:o}=e,a=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["settings","fieldDefinitions","saveContext","keys"]);return(0,i.jsx)("div",Object.assign({className:"remote setting-form"},{children:(0,i.jsx)(l.Z,Object.assign({},a,{ref:e=>n.addFormRef(o,e),onSave:this.onSave,fieldDefinitions:s,sourceValue:t,onFieldChanged:this.onFieldChanged}))}))}}const u=(0,a.Z)((0,d.nB)(m),{urls:{fieldDefinitions:({keys:e})=>r.Z.post(o.ZP.ITEMS_DEFINITIONS_URL,{keys:e}),settings:({keys:e,onSettingValuesReceived:t,valueMode:s=c.Hi.CURRENT})=>{return i=void 0,n=void 0,l=function*(){const i=yield r.Z.post(o.ZP.ITEMS_GET_URL,{keys:e,value_mode:s});return t&&t(i),i},new((a=void 0)||(a=Promise))((function(e,t){function s(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(s,o)}r((l=l.apply(i,n||[])).next())}));var i,n,a,l}}})},45998:(e,t,s)=>{"use strict";s.d(t,{Z:()=>j});var i=s(85893),n=s(67294),o=s(94184),a=s.n(o),r=s(12630),l=s(10606),c=s(91462),d=s(25721),m=s(35936);const u=({menuItems:e,advancedMenuItems:t,settingsT:s})=>(0,i.jsx)("div",Object.assign({className:"three wide column menu-column"},{children:(0,i.jsxs)("div",Object.assign({className:"ui vertical secondary menu"},{children:[e,!!t&&(0,i.jsxs)("div",{children:[(0,i.jsx)("div",Object.assign({className:"item header"},{children:s.translate("Advanced")})),(0,i.jsx)("div",Object.assign({className:"menu"},{children:t}))]})]}))})),A=({parentMenuItems:e})=>(0,i.jsx)("div",Object.assign({className:"ui secondary pointing menu settings top-menu"},{children:e})),p=({contentClassname:e,currentMenuItem:t,parent:s,saveButton:n,children:o,message:r,settingsT:l})=>(0,i.jsx)("div",Object.assign({className:a()("thirteen wide column",e)},{children:(0,i.jsxs)("div",Object.assign({className:"ui segment"},{children:[(0,i.jsx)(c.Z,{title:(0,d.kf)(t.title,l),icon:(0,i.jsx)(m.Z,{color:"green",icon:s.icon}),rightComponent:n}),(0,i.jsxs)("div",Object.assign({className:"options"},{children:[r,o]}))]}))})),h=e=>{var{children:t}=e,s=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["children"]);return(0,i.jsxs)("div",Object.assign({className:"full"},{children:[(0,i.jsx)(A,Object.assign({},s)),(0,i.jsxs)("div",Object.assign({id:"setting-scroll-context",className:"ui segment grid main"},{children:[(0,i.jsx)(u,Object.assign({},s)),(0,i.jsx)(p,Object.assign({},s,{children:t}))]}))]}))};var g=s(68662),x=s(1059),C=s(99005);const v=({menuItems:e,advancedMenuItems:t,currentMenuItem:s,parentMenuItems:n,parent:o,settingsT:a})=>(0,i.jsxs)("div",Object.assign({className:"ui top-menu"},{children:[(0,i.jsx)(g.Z,Object.assign({selection:!0,caption:(0,d.kf)(o.title,a),captionIcon:`green ${o.icon}`},{children:n})),(0,i.jsx)(m.Z,{icon:"caret right",size:"large"}),(0,i.jsxs)(x.Z,Object.assign({selection:!0,caption:(0,d.kf)(s.title,a)},{children:[(0,i.jsx)(C.Z,{children:e}),(0,i.jsx)(C.Z,Object.assign({caption:a.translate("Advanced")},{children:t}))]}))]})),b=e=>{var{saveButton:t,children:s,contentClassname:o,message:a}=e,r=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["saveButton","children","contentClassname","message"]);return(0,i.jsxs)("div",Object.assign({className:"mobile"},{children:[(0,i.jsx)(v,Object.assign({},r)),(0,i.jsxs)("div",Object.assign({id:"setting-scroll-context",className:o},{children:[!!t&&n.cloneElement(t,{className:"fluid"}),(0,i.jsxs)("div",Object.assign({className:"options"},{children:[a,s]}))]}))]}))};var f=s(67161);const j=(0,r.Z)((0,f.ZP)((e=>{const t=(0,l.wd)()||window.innerWidth<1e3?b:h,{moduleT:s,settingsT:n,parentMenuItems:o,menuItems:r,advancedMenuItems:c,location:m}=e,u=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["moduleT","settingsT","parentMenuItems","menuItems","advancedMenuItems","location"]),{parent:A,currentMenuItem:p}=e,g=a()("section-content",`${A.url} ${p.url}`);return(0,i.jsx)(t,Object.assign({},u,{settingsT:n,moduleT:s,location:m,contentClassname:g,parentMenuItems:e.parentMenuItems.map((e=>(0,d.h7)(e,void 0,n,m))),menuItems:e.menuItems?e.menuItems.map((e=>(0,d.h7)(e,A,n,m))):[],advancedMenuItems:c?c.map((e=>(0,d.h7)(e,A,n,m))):void 0}))})))},67161:(e,t,s)=>{"use strict";s.d(t,{ZP:()=>y,nB:()=>f});var i=s(85893),n=s(67294),o=s(16550),a=s(41143),r=s.n(a),l=s(27695),c=s(45697),d=s.n(c),m=s(84807),u=s(66883),A=s(94184),p=s.n(A),h=s(76249);class g extends n.Component{constructor(){super(...arguments),this.state={saving:!1},this.toggleSaveState=()=>{this.setState({saving:!this.state.saving})},this.onClick=()=>{this.toggleSaveState(),this.props.saveHandler().then(this.toggleSaveState).catch(this.toggleSaveState)}}render(){const{local:e,hasChanges:t,className:s,settingsT:n}=this.props,o=e||u.Z.hasAccess(h.PS.SETTINGS_EDIT);let a;return a=o?n.translate(t?"Save changes":"No unsaved changes"):n.translate("No save permission"),(0,i.jsx)(m.Z,{className:p()("save",s),caption:a,icon:o&&t?"green checkmark":null,loading:this.state.saving,disabled:!t||!o,onClick:this.onClick})}}g.propTypes={hasChanges:d().bool.isRequired,saveHandler:d().func.isRequired,local:d().bool};const x=g;var C=s(57136),v=s(48117);const b=n.createContext(void 0);function f(e){return function(t){return(0,i.jsx)(b.Consumer,{children:s=>(0,i.jsx)(e,Object.assign({},t,{saveContext:s}))})}}const j=e=>e.join("_");function y(e){class t extends n.Component{constructor(){super(...arguments),this.forms={},this.changedProperties=new Set,this.onSettingsChanged=(e,t,s)=>{s?this.changedProperties.add(e):this.changedProperties.delete(e),this.forceUpdate()},this.onSettingsSaved=()=>{const{translate:e}=this.props.settingsT;C.Z.success({title:e("Saving completed"),message:e("Settings were saved successfully")}),this.forceUpdate()},this.handleSave=()=>{r()(Object.keys(this.forms).length>0,"No forms exist in SaveDecorator");const e=Object.values(this.forms).map((e=>e.save()));return this.changedProperties.clear(),Promise.all(e).then(this.onSettingsSaved)},this.hasChanges=()=>this.changedProperties.size>0,this.promptSave=e=>{const{currentMenuItem:t,settingsT:s}=this.props;return!!t.noSave||(-1!==this.props.location.pathname.indexOf(e.pathname)||-1!==e.pathname.indexOf(this.props.location.pathname)||(!(this.hasChanges()&&u.Z.hasAccess(h.PS.SETTINGS_EDIT))||s.t("unsavedChangesPrompt","You have unsaved changes. Are you sure you want to leave?")))},this.addFormRef=(e,t)=>{t?(r()(t.hasOwnProperty("save"),"Invalid setting form component supplied for SaveDecorator (save property missing)"),this.forms[j(e)]=t):this.forms={}},this.getFormRef=e=>this.forms[j(e)],this.saveContext={onFieldChanged:this.onSettingsChanged,addFormRef:this.addFormRef,getFormRef:this.getFormRef}}componentDidUpdate(e){e.currentMenuItem.url!==this.props.currentMenuItem.url&&this.changedProperties.clear()}render(){const{currentMenuItem:t,children:s,settingsT:n}=this.props,a=t.local&&(0,i.jsx)(l.Z,{description:n.t("browserSpecificNote","Settings listed on this page are browser-specific"),icon:v.Z.INFO}),r=!t.noSave&&(0,i.jsx)(x,{saveHandler:this.handleSave,hasChanges:this.hasChanges(),local:t.local,settingsT:n});return(0,i.jsx)(e,Object.assign({},this.props,{saveButton:r,message:a},{children:(0,i.jsxs)(b.Provider,Object.assign({value:this.saveContext},{children:[(0,i.jsx)(o.NL,{message:this.promptSave}),s]}))}))}}return t.displayName="SaveDecorator",t}},12630:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=s(45697),o=s.n(n),a=s(67294),r=s(16550),l=s(25721);function c(e){class t extends a.Component{render(){const{location:t,match:s,parent:n,menuItems:o,advancedMenuItems:a,settingsT:c,moduleT:d}=this.props;if((t.pathname===s.url||n&&t.pathname===(0,l.mB)(n))&&o&&o.length)return(0,i.jsx)(r.l_,{to:(0,l.mB)(o[0],n)});const m=(0,l.tD)(o,n,t)||(0,l.tD)(a,n,t);return m?(0,i.jsxs)(e,Object.assign({},this.props,{currentMenuItem:m},{children:[(0,l.nO)(m,o,c,d,n),(0,l.nO)(m,a,c,d,n)]})):null}}return t.propTypes={parent:o().object,menuItems:o().array.isRequired,advancedMenuItems:o().array,location:o().object.isRequired,match:o().object.isRequired},t}},7630:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>Z});var i=s(85893),n=s(67294),o=s(91768),a=s(12630),r=s(8717),l=s(32347),c=s(93379),d=s.n(c),m=s(7795),u=s.n(m),A=s(90569),p=s.n(A),h=s(3565),g=s.n(h),x=s(19216),C=s.n(x),v=s(44589),b=s.n(v),f=s(20464),j={};j.styleTagTransform=b(),j.setAttributes=g(),j.insert=p().bind(null,"head"),j.domAPI=u(),j.insertStyleElement=C(),d()(f.Z,j),f.Z&&f.Z.locals&&f.Z.locals;const y=[s(98458),s(76855),s(29205),s(96946),s(21253),s(14327),s(58275),s(81245),s(83997)],_=(0,a.Z)((({children:e})=>(0,i.jsx)("div",Object.assign({className:"ui segment settings-layout"},{children:e}))));class E extends n.Component{constructor(){super(...arguments),this.settingsT=(0,r.HY)(this.props.t,l.jv.SETTINGS)}render(){return(0,i.jsx)(_,Object.assign({},this.props,{menuItems:y,settingsT:this.settingsT}))}}const Z=(0,o.Z)()(E)},31905:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=(s(67294),s(24101)),o=s(66883),a=s(17666),r=s(83767),l=s(2445),c=s(80713),d=s(90334),m=s(78110);const u=(0,a.Z)((({stats:e,moduleT:t})=>{const{translate:s}=t,a=o.Z.systemInfo,r=(0,l.o0)(1670006083.033);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(n.X2,{title:s("Application version"),text:a.client_version}),(0,i.jsx)(n.X2,{title:s("Web UI version"),text:"2.11.3"}),(0,i.jsx)(n.X2,{title:s("Web UI build date"),text:r}),(0,i.jsx)(n.X2,{title:s("API version"),text:a.api_version}),(0,i.jsx)(n.X2,{title:s("API feature level"),text:a.api_feature_level}),(0,i.jsx)(n.X2,{title:s("Started"),text:(0,l.SY)(a.client_started)}),(0,i.jsx)(n.X2,{title:s("Active sessions"),text:e.active_sessions}),(0,i.jsx)(n.X2,{title:s("Server threads"),text:e.server_threads}),(0,i.jsx)(n.h4,{title:s("Resources")}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.HOME_PAGE_URL},{children:s("Home page")})),noText:!0}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.HELP_URL},{children:s("Documentation")})),noText:!0}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.ISSUE_TRACKER_URL},{children:s("Feature request/bug tracker")})),noText:!0}),(0,i.jsx)(n.h4,{title:s("Third-party credits")}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.DBIP_URL},{children:"IP Geolocation by DB-IP"})),noText:!0})]})),(0,i.jsx)(c.Z,{alwaysShow:!0})]})}),r.Z.STATS_URL,null,5)},18495:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(2445)),o=s(21222),a=s(17666),r=s(24101);const l=(0,a.Z)((({stats:e,moduleT:t})=>{const{translate:s}=t;return(0,i.jsxs)(r.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(r.X2,{title:s("Total users"),text:e.total_users}),(0,i.jsx)(r.X2,{title:s("Unique users"),text:`${e.unique_users} (${(0,n.rl)(e.unique_users,e.total_users)})`}),(0,i.jsx)(r.X2,{title:s("Active users"),text:`${e.active_users} (${(0,n.rl)(e.active_users,e.unique_users)})`}),(0,i.jsx)(r.X2,{title:s("Total share"),text:(0,n.BU)(e.total_share,t.plainT)}),(0,i.jsx)(r.X2,{title:s("Average share per user"),text:(0,n.BU)((0,n.Te)(e.total_share,e.unique_users),t.plainT)}),(0,i.jsx)(r.X2,{title:s("Average ADC download speed"),text:(0,n.Nh)(e.adc_down_per_user,t.plainT)}),(0,i.jsx)(r.X2,{title:s("Average ADC upload speed"),text:(0,n.Nh)(e.adc_up_per_user,t.plainT)}),(0,i.jsx)(r.h4,{title:s("Clients")}),e.clients.map((t=>{return s=e.unique_users,o=t,(0,i.jsx)(r.X2,{title:o.name,text:`${o.count} (${(0,n.rl)(o.count,s)})`},o.name);var s,o}))]}))}),o.Z.STATS_URL,((e,t)=>t.moduleT.translate("No hubs online")),10)},18741:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(2445)),o=s(4047),a=s(17666),r=s(24101);const l=(0,a.Z)((({stats:e,moduleT:t})=>{const{translate:s,t:o}=t;return(0,i.jsxs)(r.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(r.X2,{title:s("Total share size"),text:(0,n.BU)(e.total_size,t.plainT)}),(0,i.jsx)(r.X2,{title:s("Total files"),text:o("totalFilesValue",{defaultValue:"{{totalCount}} ({{uniqueCount}} unique)",replace:{totalCount:e.total_file_count,uniqueCount:(0,n.rl)(e.unique_file_count,e.total_file_count)}})}),(0,i.jsx)(r.X2,{title:s("Total directories"),text:e.total_directory_count}),(0,i.jsx)(r.X2,{title:s("Average file age"),text:(0,n.ZC)(e.average_file_age)}),(0,i.jsx)(r.X2,{title:s("Average files per directory"),text:(0,n.Te)(e.total_file_count,e.total_directory_count)}),(0,i.jsx)(r.h4,{title:s("Incoming searches")}),(0,i.jsx)(r.X2,{title:s("Total searches"),text:o("searchesTotalValue",{defaultValue:"{{totalCount}} ({{perSecondCount}} per second)",replace:{totalCount:e.total_searches,perSecondCount:e.total_searches_per_second.toFixed(1)}})}),(0,i.jsx)(r.X2,{title:s("TTH searches"),text:(0,n.rl)(e.tth_searches,e.total_searches)}),(0,i.jsx)(r.X2,{title:s("Text searches"),text:o("searchesPerSecondValue",{defaultValue:"{{totalCount}} ({{matchedCount}} matched per second)",replace:{totalCount:e.recursive_searches,matchedCount:e.unfiltered_recursive_searches_per_second.toFixed(2)}})}),(0,i.jsx)(r.X2,{title:s("Filtered text searches"),text:o("searchesFilteredValue",{defaultValue:"{{filteredPercentage}} ({{resultPercentage}} of the matched ones returned results)",replace:{filteredPercentage:(0,n.rl)(e.filtered_searches,e.recursive_searches),resultPercentage:(0,n.rl)(e.recursive_searches_responded,e.recursive_searches-e.filtered_searches)}})}),(0,i.jsx)(r.X2,{title:s("Average text search tokens (non-filtered)"),text:o("searchesAverageTokensValue",{defaultValue:"{{tokenCount}} ({{tokenLength}} bytes per token)",replace:{tokenCount:e.average_search_token_count.toFixed(1),tokenLength:e.average_search_token_length.toFixed(1)}})}),(0,i.jsx)(r.X2,{title:s("Average matching time per text search"),text:o("searchesAverageMatchTimeValue",{defaultValue:"{{matchTime}} ms",replace:{matchTime:e.average_match_ms}})})]}))}),o.Z.STATS_URL,((e,t)=>t.moduleT.translate("No files shared")),60)},43476:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(2445)),o=s(24101),a=s(23406);const r=(0,s(17666).Z)((({stats:e,moduleT:t})=>{const{translate:s,plainT:a}=t,r=e.session_uploaded+e.start_total_uploaded,l=e.session_downloaded+e.start_total_downloaded;return(0,i.jsxs)(o.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(o.X2,{title:s("Total downloaded"),text:(0,n.BU)(l,a)}),(0,i.jsx)(o.X2,{title:s("Total uploaded"),text:(0,n.BU)(r,a)}),(0,i.jsx)(o.h4,{title:s("Session")}),(0,i.jsx)(o.X2,{title:s("Session downloaded"),text:(0,n.BU)(e.session_downloaded,a)}),(0,i.jsx)(o.X2,{title:s("Session uploaded"),text:(0,n.BU)(e.session_uploaded,a)})]}))}),a.Z.TRANSFERRED_BYTES_URL,null,5)},58275:(e,t,s)=>{const i=s(94897).Z;e.exports={url:"about",title:"About",icon:"info",component:s(45998).Z,menuItems:[{title:"Application",noSave:!0,url:"application",component:s(31905).Z},{title:"Transfer statistics",noSave:!0,url:"transfers",access:i.TRANSFERS,component:s(43476).Z},{title:"Share statistics",noSave:!0,url:"share",component:s(18741).Z},{title:"Hub statistics",noSave:!0,url:"hubs",access:i.HUBS_VIEW,component:s(18495).Z}]}},54191:(e,t,s)=>{"use strict";s.d(t,{Z:()=>D});var i=s(85893),n=(s(67294),s(45807)),o=s(42090),a=s(518),r=s(94897);const l="connectivity",c={MODULE_URL:l,DETECT_URL:l+"/detect",STATUS_URL:l+"/status",CONNECTIVITY_MESSAGE:"connectivity_detection_message",CONNECTIVITY_STARTED:"connectivity_detection_started",CONNECTIVITY_FINISHED:"connectivity_detection_finished"};var d=s(32347),m=s(48117);const u={detect:{displayName:"Detect now",access:r.Z.SETTINGS_EDIT,icon:m.Z.CONFIGURE,handler:()=>a.Z.post(c.DETECT_URL)}},A={moduleId:d.jv.SETTINGS,actions:u};var p=s(24101),h=s(93379),g=s.n(h),x=s(7795),C=s.n(x),v=s(90569),b=s.n(v),f=s(3565),j=s.n(f),y=s(19216),_=s.n(y),E=s(44589),Z=s.n(E),O=s(64275),S={};S.styleTagTransform=Z(),S.setAttributes=j(),S.insert=b().bind(null,"head"),S.domAPI=C(),S.insertStyleElement=_(),g()(O.Z,S),O.Z&&O.Z.locals&&O.Z.locals;const T=(e,t,s)=>{const{translate:i,t:n}=s;if(t)return i("Detecting...");const o=e.auto_detect;return n(o?"autoDetected":"manualConfiguration",{defaultValue:o?"{{status}} (auto detected)":"{{status}} (manual configuration)",replace:{status:e.text}})},I=(0,o.Z)((({status:e,runningV4:t,runningV6:s,moduleT:o})=>(0,i.jsxs)("div",Object.assign({className:"ui segment detect-panel"},{children:[(0,i.jsx)("h3",Object.assign({className:"header"},{children:o.translate("Current auto detection status")})),(0,i.jsxs)(p.rj,Object.assign({columns:"two"},{children:[(0,i.jsx)(p.X2,{title:o.translate("IPv4 connectivity"),text:T(e.status_v4,t,o)}),(0,i.jsx)(p.X2,{title:o.translate("IPv6 connectivity"),text:T(e.status_v6,s,o)})]})),(0,i.jsx)(n.Z,{className:"detect-button",actions:A,actionId:"detect",disabled:!e.status_v4.auto_detect&&!e.status_v6.auto_detect,loading:s||t})]}))),{urls:{status:c.STATUS_URL},onSocketConnected:(e,{refetchData:t,mergeData:s})=>{const i=(e,t)=>{s({["running"+(e?"V6":"V4")]:t})};e(c.MODULE_URL,c.CONNECTIVITY_STARTED,(e=>{i(e.v6,!0)})),e(c.MODULE_URL,c.CONNECTIVITY_FINISHED,(e=>{i(e.v6,!1),t()}))}});var N=s(78110),w=s(90334),B=s(27695),k=s(89116);const D=e=>{const{toI18nKey:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(I,{moduleT:e.moduleT}),(0,i.jsx)(B.Z,{description:(0,i.jsxs)(k.c,Object.assign({i18nKey:t("connectivityDetectionNote")},{children:["In case of file transfer connectivity issues, please confirm that your TCP ports are really open by using ",(0,i.jsx)(N.Z,Object.assign({url:w.Z.PORTCHECK_URL},{children:"an online port checker"})),". Note that validity of the UDP port (search) can't be checked online. For more information about different connectivity modes, please visit"," ",(0,i.jsx)(N.Z,Object.assign({url:w.Z.CONNECTIVITY_HELP_URL},{children:"DC++'s connectivity FAQ"})),"."]})),icon:m.Z.INFO})]})}},36761:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["always_ccpm","tls_mode","tls_allow_untrusted_clients","tls_allow_untrusted_hubs"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},59340:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(12609));const o=["connection_auto_v4","connection_bind_v4","connection_mode_v4","connection_ip_v4","connection_update_ip_v4","connection_ip_override_v4"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o,protocol:"v4"}))})},9605:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(12609));const o=["connection_auto_v6","connection_bind_v6","connection_mode_v6","connection_ip_v6","connection_update_ip_v6","connection_ip_override_v6"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o,protocol:"v6"}))})},92962:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(67977)),o=s(18603),a=s(76249),r=s(32347),l=s(27695),c=s(48117);const d=["tcp_port","udp_port","tls_port","preferred_port_mapper"],m=e=>{return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.Z,{description:e.moduleT.t("portsAutoValuesNote","Port numbers listed on this page can be overridden by port mappers (if enabled)"),icon:c.Z.INFO}),(0,i.jsx)(n.Z,Object.assign({},e,{keys:d,onFieldSetting:(t=e.moduleT,(e,s,i)=>{const n=s=>t.t((0,o.B3)(r.qm.HELP,e,void 0),s);"tcp_port"===e?s.help=n("TCP port is used for unencrypted transfers"):"tls_port"===e?s.help=n("TLS port (TCP) is used for encrypted transfers"):"udp_port"===e&&(s.help=n("UDP port is used for searching"))}),valueMode:a.Hi.FORCE_MANUAL}))]});var t}},12609:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=s(67294),o=s(67977),a=s(27695),r=s(48117),l=s(33612),c=s(76249);class d extends n.Component{constructor(){super(...arguments),this.state={autoDetectEnabled:!1},this.convertValue=e=>`${e}_${this.props.protocol}`,this.onFieldSetting=(e,t,s)=>{const i=s[this.convertValue("connection_mode")]!==l.Ui.INCOMING_DISABLED,n=s[this.convertValue("connection_auto")];i&&!n||0!==e.indexOf("connection_ip")&&0!==e.indexOf("connection_bind")&&0!==e.indexOf("connection_update_ip")&&0!==e.indexOf("connection_ip_override")||(t.disabled=!0),n&&0===e.indexOf("connection_mode")&&i&&(t.disabled=!0),i||0!==e.indexOf("connection_auto")||(t.disabled=!0)},this.onSettingValuesReceived=e=>{this.setState({autoDetectEnabled:e[this.convertValue("connection_auto")]})}}render(){return(0,i.jsxs)("div",{children:[this.state.autoDetectEnabled&&(0,i.jsx)(a.Z,{description:this.props.moduleT.t("protocolAutoValuesNote","Connectivity auto detection is currently enabled; setting values listed on this page are not being used"),icon:r.Z.INFO}),(0,i.jsx)(o.Z,Object.assign({},this.props,{onFieldSetting:this.onFieldSetting,onSettingValuesReceived:this.onSettingValuesReceived,valueMode:c.Hi.FORCE_MANUAL}))]})}}const m=d},50090:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(67977)),o=s(33612);const a=["outgoing_mode","socks_server","socks_port","socks_resolve","socks_user","socks_password","http_proxy"],r=(e,t,s)=>{s.outgoing_mode===o.XJ.OUTGOING_SOCKS||0!==e.indexOf("socks_")||(t.disabled=!0)},l=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:a,onFieldSetting:r}))})},76855:(e,t,s)=>{e.exports={url:"connectivity",title:"Connectivity",icon:"signal",component:s(45998).Z,menuItems:[{title:"Auto detection",url:"detection",noSave:!0,component:s(54191).Z}],advancedMenuItems:[{title:"IPv4 connectivity (manual)",url:"v4",component:s(59340).Z},{title:"IPv6 connectivity (manual)",url:"v6",component:s(9605).Z},{title:"Ports (manual)",url:"ports",component:s(92962).Z},{title:"Proxies",url:"proxies",component:s(50090).Z},{title:"Encryption",url:"encryption",component:s(36761).Z}]}},12851:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=(s(67294),s(67977));const o=["allow_slow_overlap","finished_remove_exit","use_partial_sharing"],a=["segmented_downloads","min_segment_size"],r=["socket_read_buffer","socket_write_buffer","buffer_size"],l=["compress_transfers","max_compression"],c=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({},e,{keys:a,title:t("Segments")})),(0,i.jsx)(n.Z,Object.assign({},e,{keys:l,title:t("Compression")})),(0,i.jsx)(n.Z,Object.assign({},e,{keys:r,title:t("Buffers")}))]})}},88325:(e,t,s)=>{"use strict";s.d(t,{Z:()=>P});var i=s(85893),n=s(67294),o=s(78110),a=s(90334),r=s(27695),l=s(67977),c=s(518),d=s(20097),m=s(1251),u=s(48117),A=s(76249),p=s(32347);const h={create:{displayName:"Add directory",access:A.PS.SETTINGS_EDIT,icon:u.Z.CREATE,handler:({location:e})=>{d.Z.push(`${e.pathname}/directories`)}}},g={edit:{displayName:"Edit directory",access:A.PS.SETTINGS_EDIT,icon:u.Z.EDIT,handler:({data:e,location:t})=>{d.Z.push(`${t.pathname}/directories/${e.id}`)}},remove:{displayName:"Remove directory",access:A.PS.SETTINGS_EDIT,icon:u.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the favorite directory {{item.name}}?",approveCaption:"Remove directory",rejectCaption:"Don't remove"},handler:({data:e})=>c.Z.delete(`${m.Z.DIRECTORIES_URL}/${e.id}`)}},x={create:{moduleId:p.jv.SETTINGS,subId:"favoriteDirectory",actions:h},edit:{moduleId:p.jv.SETTINGS,subId:"favoriteDirectory",actions:g}};var C=s(45807),v=s(42090),b=s(47021),f=s(28427),j=s(92245),y=s(18758),_=s(9781),E=s(43496),Z=s(61692),O=s(91894),S=s(18603);const T=[{key:"path",title:"Path",type:A.Y2.DIRECTORY_PATH},{key:"name",title:"Name",type:A.Y2.STRING}];class I extends n.Component{constructor(){super(...arguments),this.fieldDefinitions=(0,S.rv)(T,this.props.moduleT),this.isNew=()=>!this.props.directoryEntry,this.onFieldChanged=(e,t,s)=>-1!==e.indexOf("path")?Promise.resolve({name:t.path?(0,_.HD)(t.path):void 0}):null,this.save=()=>this.form.save(),this.onSave=e=>this.isNew()?c.Z.post(m.Z.DIRECTORIES_URL,e):c.Z.patch(`${m.Z.DIRECTORIES_URL}/${this.props.directoryEntry.id}`,e),this.onFieldSetting=(e,t,s)=>{"path"===e?(t.disabled=!this.isNew(),t.config=Object.assign(t.config||{},{historyId:O.Z.LOCATION_DOWNLOAD})):"name"===e&&(t.factory=y.ZP.form.Textbox,t.template=Z.Lt,t.config={suggestionGetter:()=>this.props.virtualNames})}}render(){const{moduleT:e,directoryEntry:t}=this.props,s=e.translate(this.isNew()?"Add favorite directory":"Edit favorite directory");return(0,i.jsx)(f.Z,Object.assign({className:"favorite-directory",title:s,onApprove:this.save,closable:!1,icon:u.Z.FOLDER},this.props,{children:(0,i.jsx)(E.Z,{ref:e=>this.form=e,fieldDefinitions:this.fieldDefinitions,onFieldChanged:this.onFieldChanged,onFieldSetting:this.onFieldSetting,onSave:this.onSave,sourceValue:t,location:this.props.location})}))}}I.displayName="FavoriteDirectoryDialog";const N=(0,j.ZP)((0,v.Z)(I,{urls:{virtualNames:m.Z.GROUPED_DIRECTORIES_URL,directoryEntry:({match:e},t)=>e.params.directoryId?t.get(`${m.Z.DIRECTORIES_URL}/${e.params.directoryId}`):Promise.resolve(void 0)},dataConverters:{virtualNames:e=>e.map((e=>e.name),[])}}),"directories/:directoryId([0-9A-Z]{39})?"),w=({directory:e})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(b.PC,{caption:(0,i.jsx)("strong",{children:e.name}),actions:x.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"path"},{children:e.path}))]}),B=e=>(0,i.jsx)(w,{directory:e},e.path),k=(0,v.Z)((({directories:e,moduleT:t})=>(0,i.jsxs)("div",Object.assign({id:"directory-table"},{children:[(0,i.jsx)(C.Z,{actions:x.create,actionId:"create"}),0===e.length?null:(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:t.translate("Name")}),(0,i.jsx)("th",{children:t.translate("Path")})]})}),(0,i.jsx)("tbody",{children:e.map(B)})]})),(0,i.jsx)(N,{moduleT:t})]}))),{urls:{directories:m.Z.DIRECTORIES_URL},onSocketConnected:(e,{refetchData:t})=>{e(m.Z.MODULE_URL,m.Z.DIRECTORIES_UPDATED,(()=>t()))}});var D=s(91462);const R=["download_directory"],P=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(l.Z,Object.assign({},e,{keys:R})),(0,i.jsx)(r.Z,{description:(0,i.jsx)(o.Z,Object.assign({url:a.Z.VARIABLE_HELP_URL},{children:e.moduleT.translate("Available path variables")})),icon:u.Z.INFO}),(0,i.jsxs)("div",Object.assign({className:"ui segment setting-form"},{children:[(0,i.jsx)(D.Z,{title:e.moduleT.translate("Favorite download directories"),icon:u.Z.FOLDER,size:"normal"}),(0,i.jsx)(k,{moduleT:e.moduleT})]}))]})},16897:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(67977));const o=["prio_highest_size","prio_high_size","prio_normal_size","prio_auto_default"],a=["prio_high_files_to_highest","prio_high_files","prio_high_files_regex"],r=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({title:t("File priorities")},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:t("High priority files")},e,{keys:a}))]})}},95302:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["auto_add_sources","alt_search_auto","alt_search_max_sources","max_sources_match_queue","allow_match_full_list"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},58845:(e,t,s)=>{"use strict";s.d(t,{Z:()=>O});var i=s(85893),n=s(67294),o=s(45807),a=s(42090),r=s(47021),l=s(518),c=s(20097),d=s(48117),m=s(76249),u=s(32347),A=s(38423);const p={create:{displayName:"Add type",access:m.PS.SETTINGS_EDIT,icon:d.Z.CREATE,handler:({location:e})=>{c.Z.push(`${e.pathname}/types`)}}},h={edit:{displayName:"Edit type",access:m.PS.SETTINGS_EDIT,icon:d.Z.EDIT,handler:({data:e,location:t})=>{c.Z.push(`${t.pathname}/types/${e.id}`)}},remove:{displayName:"Remove type",access:m.PS.SETTINGS_EDIT,icon:d.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the search type {{item.name}}?",approveCaption:"Remove type",rejectCaption:"Don't remove"},filter:e=>!e.default_type,handler:({data:e})=>l.Z.delete(`${A.Z.SEARCH_TYPES_URL}/${e.id}`)}},g={create:{moduleId:u.jv.SETTINGS,subId:"searchType",actions:p},edit:{moduleId:u.jv.SETTINGS,subId:"searchType",actions:h}};var x=s(28427),C=s(92245),v=s(43496),b=s(18603);const f=[{key:"name",title:"Name",type:m.Y2.STRING},{key:"extensions",title:"File extensions",type:m.Y2.LIST,item_type:m.Y2.STRING}];class j extends n.Component{constructor(){super(...arguments),this.fieldDefinitions=(0,b.rv)(f,this.props.moduleT),this.isNew=()=>!this.props.searchTypeEntry,this.save=()=>this.form.save(),this.onSave=e=>this.isNew()?l.Z.post(A.Z.SEARCH_TYPES_URL,e):l.Z.patch(`${A.Z.SEARCH_TYPES_URL}/${this.props.searchTypeEntry.id}`,e),this.onFieldSetting=(e,t,s)=>{if("name"===e){const{searchTypeEntry:e}=this.props;t.disabled=!!e&&e.default_type}}}render(){const{moduleT:e,searchTypeEntry:t}=this.props,s=e.translate(this.isNew()?"Add search type":"Edit search type");return(0,i.jsx)(x.Z,Object.assign({className:"search-type",title:s,onApprove:this.save,closable:!1,icon:d.Z.FOLDER},this.props,{children:(0,i.jsx)(v.Z,{ref:e=>this.form=e,fieldDefinitions:this.fieldDefinitions,onFieldSetting:this.onFieldSetting,onSave:this.onSave,sourceValue:t,location:this.props.location})}))}}j.displayName="SearchTypeDialog";const y=(0,C.ZP)((0,a.Z)(j,{urls:{searchTypeEntry:({match:e},t)=>e.params.searchTypeId?t.get(`${A.Z.SEARCH_TYPES_URL}/${e.params.searchTypeId}`):Promise.resolve(void 0)}}),"types/:searchTypeId?");var _=s(2445),E=s(27695);const Z=({type:e,moduleT:t})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(r.PC,{caption:(0,i.jsx)("strong",{children:e.str}),actions:g.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"extensions"},{children:e.extensions.join(", ")})),(0,i.jsx)("td",Object.assign({className:"default"},{children:(0,_.eb)(e.default_type,t.plainT)}))]}),O=(0,a.Z)((({searchTypes:e,moduleT:t})=>(0,i.jsxs)("div",Object.assign({id:"directory-table"},{children:[(0,i.jsx)(o.Z,{actions:g.create,actionId:"create"}),0===e.length?null:(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:t.translate("Name")}),(0,i.jsx)("th",{children:t.translate("File extensions")}),(0,i.jsx)("th",{children:t.translate("Default")})]})}),(0,i.jsx)("tbody",{children:e.map((e=>((e,t)=>(0,i.jsx)(Z,{type:e,moduleT:t},e.id))(e,t)))})]})),(0,i.jsx)(E.Z,{icon:d.Z.NOTE,description:t.t("searchTypesNote","Note; Custom search types will only be applied to ADC hubs! On NMDC hubs, using a predefined search type will only search for a set of predefined, unconfigurable extensions; using a custom type will default to searching for any extension.")}),(0,i.jsx)(y,{moduleT:t})]}))),{urls:{searchTypes:A.Z.SEARCH_TYPES_URL},onSocketConnected:(e,{refetchData:t})=>{e(A.Z.MODULE_URL,A.Z.SEARCH_TYPES_UPDATED,(()=>t()))}})},40934:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(67977));const o=["dont_download_shared","dont_download_queued","download_dupe_min_size"],a=["download_skiplist","download_skiplist_regex"],r=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:e.moduleT.translate("Skiplist")},e,{keys:a}))]})},96946:(e,t,s)=>{e.exports={url:"downloads",title:"Downloads",icon:"download",component:s(45998).Z,menuItems:[{title:"Locations",url:"locations",component:s(88325).Z}],advancedMenuItems:[{title:"Skipping options",url:"skipping-options",component:s(40934).Z},{title:"Search matching",url:"search-matching",component:s(95302).Z},{title:"Download options",url:"download-options",component:s(12851).Z},{title:"Priorities",url:"priorities",component:s(16897).Z},{title:"Search types",url:"search-types",component:s(58845).Z}]}},24795:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(70838)),o=s(90334),a=s(42090),r=s(78110),l=s(27695),c=s(89116),d=s(48117);const m=(0,a.Z)((({enginesStatus:e,moduleT:t})=>e[n.Z.DEFAULT_ENGINE]?null:(0,i.jsx)(l.Z,{description:(0,i.jsxs)(c.c,Object.assign({i18nKey:t.toI18nKey("defaultExtensionEngineMissing")},{children:["The default extension engine ",(0,i.jsx)("b",{children:n.Z.DEFAULT_ENGINE})," is not installed on your system. Please visit ",(0,i.jsx)(r.Z,Object.assign({url:o.Z.DEFAULT_ENGINE_URL},{children:"engine's home page"}))," for installation instructions."]})),icon:d.Z.WARNING})),{urls:{enginesStatus:n.Z.ENGINES_STATUS_URL},loaderText:null})},40733:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["extension_engines"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},94533:(e,t,s)=>{"use strict";s.d(t,{Z:()=>A});var i=s(85893),n=(s(67294),s(23776)),o=s(45807),a=s(24795),r=s(34657),l=s(70838),c=s(42090),d=(s(53597),s(34698));const m=(0,c.Z)((({packageCatalog:e,moduleT:t,installedPackages:s})=>(0,i.jsxs)("div",Object.assign({className:"extension-layout"},{children:[(0,i.jsx)("div",{className:"ui divider"}),e.length>0&&(0,i.jsx)("div",Object.assign({className:"ui divided items"},{children:e.map((e=>((e,t,s)=>{const n=s.find((t=>t.name===e.name));return(0,i.jsx)(r.Z,{npmPackage:e,installedPackage:n,moduleT:t},e.name)})(e.package,t,s)))}))]}))),{urls:{installedPackages:l.Z.EXTENSIONS_URL,packageCatalog:()=>(0,d.b)(l.Z.NPM_PACKAGES_URL,!0)},dataConverters:{packageCatalog:({objects:e})=>e},onSocketConnected:(e,{refetchData:t})=>{const s=()=>t(["installedPackages"]);e(l.Z.MODULE_URL,l.Z.ADDED,s),e(l.Z.MODULE_URL,l.Z.REMOVED,s),e(l.Z.MODULE_URL,l.Z.UPDATED,s)}});var u=s(77848);const A=({moduleT:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.Z,{moduleT:e}),(0,i.jsx)("div",Object.assign({className:"table-actions"},{children:(0,i.jsx)(o.Z,{actions:n.Z.install,actionId:"installUrl",className:"add"})})),(0,i.jsx)(m,{moduleT:e}),(0,i.jsx)(u.Z,{})]})},77848:(e,t,s)=>{"use strict";s.d(t,{Z:()=>p});var i=s(85893),n=s(67294),o=s(28427),a=s(43496),r=s(92245),l=s(42090),c=s(518),d=s(70838),m=s(48117);const u=e=>`${d.Z.EXTENSIONS_URL}/${e}/settings`;class A extends n.Component{constructor(){super(...arguments),this.save=()=>this.form.save(),this.onSave=e=>c.Z.patch(u(this.props.extension.id),e)}render(){const e=this.props,{extension:t,settings:s,fieldDefinitions:n}=e,r=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["extension","settings","fieldDefinitions"]);return(0,i.jsx)(o.Z,Object.assign({},r,{className:"extensions configure",title:t.name,onApprove:this.save,closable:!1,icon:m.Z.EDIT,dynamicHeight:!0},{children:(0,i.jsx)(a.Z,{ref:e=>this.form=e,onSave:this.onSave,fieldDefinitions:n,sourceValue:s,location:this.props.location})}))}}A.displayName="ExtensionsConfigureDialog";const p=(0,r.ZP)((0,l.Z)(A,{urls:{fieldDefinitions:({match:e})=>c.Z.get(`${u(e.params.extensionId)}/definitions`),settings:({match:e})=>c.Z.get(u(e.params.extensionId)),extension:({match:e},t)=>t.get(`${d.Z.EXTENSIONS_URL}/${e.params.extensionId}`)}}),"extensions/:extensionId")},32623:(e,t,s)=>{"use strict";s.d(t,{Z:()=>g});var i=s(85893),n=(s(67294),s(42090)),o=s(70838),a=s(24795),r=s(77848),l=s(73727),c=s(27695),d=s(34657),m=s(34698);const u=({name:e,description:t,version:s,_npmUser:i})=>({id:e,name:e,description:t,version:s,publisher:{username:i.name},date:""}),A=(0,n.Z)((({installedPackage:e,npmPackage:t,dataError:s,moduleT:n})=>(0,i.jsx)(d.Z,{installedPackage:e,npmPackage:t?u(t):void 0,npmError:s,moduleT:n},e.name)),{urls:{npmPackage:({installedPackage:e})=>e.private||!e.managed?Promise.resolve(void 0):(0,m.b)(`${o.Z.NPM_PACKAGE_URL}${e.name}/latest`,!0)},renderOnError:!0});var p=s(89116),h=s(48117);const g=(0,n.Z)((({installedPackages:e,moduleT:t})=>0===e.length?(0,i.jsx)(c.Z,{description:(0,i.jsxs)(p.c,Object.assign({i18nKey:t.toI18nKey("noInstalledExtensions")},{children:["No installed extensions were found. New extensions can be installed from the ",(0,i.jsx)(l.rU,Object.assign({to:"/settings/extensions/packages"},{children:"Extension catalog"}))," page."]})),icon:h.Z.INFO}):(0,i.jsxs)("div",Object.assign({className:"extension-layout"},{children:[(0,i.jsx)(a.Z,{moduleT:t}),(0,i.jsx)("div",{className:"ui divider"}),(0,i.jsx)("div",Object.assign({className:"ui divided items"},{children:e.map((e=>((e,t)=>(0,i.jsx)(A,{installedPackage:e,moduleT:t},e.name))(e,t)))})),(0,i.jsx)(r.Z,{})]}))),{urls:{installedPackages:o.Z.EXTENSIONS_URL},onSocketConnected:(e,{refetchData:t})=>{e(o.Z.MODULE_URL,o.Z.ADDED,(()=>t())),e(o.Z.MODULE_URL,o.Z.REMOVED,(()=>t())),e(o.Z.MODULE_URL,o.Z.UPDATED,(()=>t()))}})},44941:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["extensions_debug_mode","extensions_auto_update","extensions_init_timeout"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},34657:(e,t,s)=>{"use strict";s.d(t,{Z:()=>E});var i=s(85893),n=s(67294),o=s(30381),a=s.n(o),r=s(70838),l=s(20450),c=s(23776),d=s(45807),m=s(78110),u=s(47021),A=s(4333),p=s(48117),h=s(35936);const g=({npmPackage:e,installedPackage:t,hasUpdate:s,installing:n})=>t&&!s?null:(0,i.jsx)(d.Z,{actions:c.Z.npm,actionId:s?"updateNpm":"installNpm",className:"right floated primary",itemData:e,loading:n}),x=({npmPackage:e,installedPackage:t,hasUpdate:s,installing:n,moduleT:o})=>(0,i.jsxs)("div",Object.assign({className:"extra buttons"},{children:[e&&(0,i.jsx)(g,{npmPackage:e,installedPackage:t,hasUpdate:s,installing:n}),t&&(0,i.jsx)(u.PC,{actions:c.Z.manage,ids:["configure","divider","remove"],remoteMenuId:A.Z.EXTENSION,itemData:t,className:"right floated",caption:o.translate("Manage..."),button:!0,contextElement:"#setting-scroll-context",menuElementClassName:"left floated"}),e&&(0,i.jsxs)(m.Z,Object.assign({className:"ui right floated button",url:r.Z.NPM_HOMEPAGE_URL+e.name},{children:[(0,i.jsx)(h.Z,{icon:p.Z.OPEN}),o.translate("Read more")]})),t&&(0,i.jsx)(d.Z,{actions:c.Z.manage,actionId:t.running?"stop":"start",className:"right floated",itemData:t})]}));var C=s(39803),v=(s(53597),s(11485)),b=s(55019);const f=({title:e,packageInfo:t,className:s,moduleT:n})=>{if(!t)return null;const o=t.date?n.t("datePublished",{defaultValue:"{{version}} (published {{date}})",replace:{version:t.version,date:a()(t.date).from(a()())}}):t.version;return(0,i.jsxs)("div",Object.assign({className:s},{children:[`${e}: `,(0,i.jsx)("span",{children:o})]}))},j=(e,t,s)=>{let i;return s&&s.author&&(i=s.author),t&&(i=t.publisher.username),i?e.t("byAuthor",{defaultValue:"by {{author}}",replace:{author:i}}):null},y=(e,t,s)=>t&&!t.managed?e.translate("Unmanaged extension"):s?e.t("extensionDirectoryFetchError",{defaultValue:"Failed to fetch information from the extension directory: {{error}}",replace:{error:(0,b.Y3)(s)}}):e.translate("Non-listed extension");class _ extends n.PureComponent{constructor(){super(...arguments),this.state={installing:!1},this.onInstallationStarted=e=>{e.install_id===this.props.npmPackage.name&&this.setState({installing:!0})},this.onInstallationCompleted=e=>{e.install_id===this.props.npmPackage.name&&this.setState({installing:!1})}}componentDidMount(){const{addSocketListener:e,npmPackage:t}=this.props;t&&(e(r.Z.MODULE_URL,r.Z.INSTALLATION_STARTED,this.onInstallationStarted),e(r.Z.MODULE_URL,r.Z.INSTALLATION_SUCCEEDED,this.onInstallationCompleted),e(r.Z.MODULE_URL,r.Z.INSTALLATION_FAILED,this.onInstallationCompleted))}render(){const{npmPackage:e,installedPackage:t,npmError:s,moduleT:n}=this.props,{installing:o}=this.state,{translate:a}=n,r=!!t&&!!e&&(0,C.n4)(t.version,e.version)<0;return(0,i.jsxs)("div",Object.assign({className:"item extension"},{children:[(0,i.jsx)(l.Z,{installedPackage:t,hasUpdate:r}),(0,i.jsxs)("div",Object.assign({className:"content"},{children:[(0,i.jsx)("a",Object.assign({className:"header"},{children:e?e.name:t.name})),(0,i.jsx)("div",Object.assign({className:"meta author"},{children:j(n,e,t)})),(0,i.jsx)("div",Object.assign({className:"description"},{children:(0,i.jsx)("span",{children:e?e.description:t.description})})),(0,i.jsxs)("div",Object.assign({className:"extra version"},{children:[(0,i.jsx)(f,{className:"npm",title:a("Latest version"),packageInfo:e,moduleT:n}),(0,i.jsx)("div",{children:!e&&y(n,t,s)}),(0,i.jsx)(f,{className:e?r?"outdated":"latest":void 0,title:a("Installed version"),packageInfo:t,moduleT:n})]})),(0,i.jsx)(x,{installedPackage:t,npmPackage:e,installing:o,hasUpdate:r,moduleT:n})]}))]}))}}const E=(0,v.i)(_)},20450:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(35936)),o=s(48117);const a=(e,t)=>e?t?"yellow warning circle":e.managed?"green check circle":"blue external square":null,r=({installedPackage:e,hasUpdate:t,size:s="huge"})=>(0,i.jsx)("div",Object.assign({className:"ui image"},{children:(0,i.jsx)(n.Z,{icon:o.Z.EXTENSION,size:s,cornerIcon:a(e,t)})}))},81245:(e,t,s)=>{e.exports={url:"extensions",title:"Extensions",icon:"puzzle",component:s(45998).Z,menuItems:[{title:"Manage installed",url:"manage",noSave:!0,component:s(32623).Z},{title:"Extension catalog",url:"packages",noSave:!0,component:s(94533).Z}],advancedMenuItems:[{title:"Extension options",url:"extension-options",component:s(44941).Z},{title:"Extension engines",url:"extension-engines",component:s(40733).Z}]}},27359:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["away_message","away_no_bots","away_idle_time"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},71763:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(27745)),o=s(42090),a=s(27695),r=s(47021),l=s(4333);const c=({ignoreInfo:e})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"user dropdown"},{children:(0,i.jsx)(r.Ie,{ids:["unignore"],userIcon:"simple",user:e.user,contextElement:"#setting-scroll-context",remoteMenuId:l.Z.USER})})),(0,i.jsx)("td",Object.assign({className:"count"},{children:e.ignored_messages}))]}),d=e=>(0,i.jsx)(c,{ignoreInfo:e},e.user.cid),m=(0,o.Z)((({ignores:e,moduleT:t})=>{const{translate:s}=t;return 0===e.length?(0,i.jsx)(a.Z,{title:s("No ignored users")}):(0,i.jsx)("div",{children:(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:s("User")}),(0,i.jsx)("th",{children:s("Messages ignored")})]})}),(0,i.jsx)("tbody",{children:e.map(d)})]}))})}),{urls:{ignores:n.Z.IGNORES_URL},onSocketConnected:(e,{refetchData:t})=>{e(n.Z.MODULE_URL,n.Z.IGNORE_ADDED,(()=>t())),e(n.Z.MODULE_URL,n.Z.IGNORE_REMOVED,(()=>t()))}})},51033:(e,t,s)=>{"use strict";s.d(t,{Z:()=>E});var i=s(85893),n=(s(67294),s(67977)),o=s(66883),a=s(76249),r=s(32347),l=s(93379),c=s.n(l),d=s(7795),m=s.n(d),u=s(90569),A=s.n(u),p=s(3565),h=s.n(p),g=s(19216),x=s.n(g),C=s(44589),v=s.n(C),b=s(85951),f={};f.styleTagTransform=v(),f.setAttributes=h(),f.insert=A().bind(null,"head"),f.domAPI=m(),f.insertStyleElement=x(),c()(b.Z,f),b.Z&&b.Z.locals&&b.Z.locals;var j=s(89116),y=s(18603);const _=["auto_follow_redirects","disconnect_offline_users","disconnect_hubs_noreg","min_search_interval"],E=e=>{return o.Z.systemInfo.platform!==a.NN.WINDOWS&&_.push("nmdc_encoding"),(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:_,onFieldSetting:(t=e.moduleT,(e,s,n)=>{"nmdc_encoding"===e&&(s.help=(0,i.jsx)(j.c,Object.assign({i18nKey:t.toI18nKey((0,y.B3)(r.qm.HELP,e,void 0))},{children:(0,i.jsxs)("div",{children:["Encoding setting is only used in NMDC hubs. ADC hubs will always use UTF-8 encoding.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsxs)("div",{children:["Commonly used values:",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Central Europe: cp1250"}),(0,i.jsx)("li",{children:"Cyrillic: cp1251"}),(0,i.jsx)("li",{children:"Western Europe: cp1252"}),(0,i.jsx)("li",{children:"Greek: cp1253"}),(0,i.jsx)("li",{children:"Turkish: cp1254"}),(0,i.jsx)("li",{children:"Hebrew: cp1256"})]})]})]})})))})}))});var t}},12017:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=(s(67294),s(33612)),o=s(67977),a=s(32347),r=s(18603),l=s(78110),c=s(90334),d=s(89116);const m=["nick","description","email","setting_profile","language_file"],u=e=>{return(0,i.jsx)("div",{children:(0,i.jsx)(o.Z,Object.assign({},e,{keys:m,onFieldSetting:(t=e.moduleT,(e,s,o)=>{if("setting_profile"===e){let i;const l=o[e];switch(l){case n.A_.NORMAL:i="The client is used in normal private/public hubs for transferring files via internet. Use this profile if unsure.";break;case n.A_.RAR:i="The client is used for transferring files that are split in RAR archives (or in other small-sized formats)";break;case n.A_.LAN:i="The client is used for transferring files in local network (e.g. LAN parties) or in another closed network (e.g. university network)"}i&&(s.help=t.t((0,r.B3)(a.qm.HELP,e,l.toString()),i))}else"language_file"===e&&(s.help=(0,i.jsxs)(d.c,Object.assign({i18nKey:t.toI18nKey((0,r.B3)(a.qm.HELP,e,void 0))},{children:[(0,i.jsx)("p",{children:"The application must be restarted for the new language to take effect."}),(0,i.jsxs)("p",{children:["If you want to help with improving the existing translations or translate the application into a new language, please see the ",(0,i.jsx)(l.Z,Object.assign({url:c.Z.TRANSLATOR_HELP},{children:"instructions for translators"})),"."]})]})))})}))});var t}},98458:(e,t,s)=>{e.exports={url:"profile",title:"Profile",icon:"user",component:s(45998).Z,menuItems:[{title:"User",url:"user",component:s(12017).Z},{title:"Away mode",url:"away",component:s(27359).Z}],advancedMenuItems:[{title:"Ignored users",url:"ignored-users",noSave:!0,component:s(71763).Z},{title:"Miscellaneous",url:"miscellaneous",component:s(51033).Z}]}},47553:(e,t,s)=>{"use strict";s.d(t,{Z:()=>Z});var i=s(85893),n=s(67294),o=s(518),a=s(29416),r=s(4047),l=s(48117),c=s(20097),d=s(76249),m=s(32347);const u={add:{displayName:"Add path",access:d.PS.SETTINGS_EDIT,icon:l.Z.CREATE,handler:({location:e})=>{c.Z.push(`${e.pathname}/browse`)}}},A={remove:{displayName:"Remove path",access:d.PS.SETTINGS_EDIT,icon:l.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the excluded path {{item}}?",approveCaption:"Remove path",rejectCaption:"Don't remove"},handler:({data:e})=>o.Z.post(r.Z.EXCLUDES_REMOVE_URL,{path:e})}},p={create:{moduleId:m.jv.SETTINGS,subId:"shareExclude",actions:u},edit:{moduleId:m.jv.SETTINGS,subId:"shareExclude",actions:A}};var h=s(45807),g=s(47021),x=s(42090),C=s(72181),v=s(27695),b=s(91894),f=s(89519),j=s(89116);const y=({path:e})=>(0,i.jsx)("tr",{children:(0,i.jsx)("td",Object.assign({className:"path dropdown"},{children:(0,i.jsx)(g.PC,{caption:(0,i.jsx)("strong",{children:e}),actions:p.edit,itemData:e,contextElement:"#setting-scroll-context"})}))}),_=e=>(0,i.jsx)(y,{path:e},e);class E extends n.Component{render(){const{excludes:e,moduleT:t}=this.props,{translate:s,toI18nKey:n}=t;return(0,i.jsxs)("div",{children:[(0,i.jsx)(v.Z,{title:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)(j.c,Object.assign({i18nKey:n("shareRefreshNote")},{children:"Share must be refreshed for the changes to take effect"}))}),(0,i.jsx)("br",{}),(0,i.jsx)(h.Z,{actions:a.Z,actionId:"refresh"})]}),icon:l.Z.INFO}),(0,i.jsx)(h.Z,{actions:p.create,actionId:"add",className:"add"}),e.length>0&&(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:(0,i.jsx)("th",{children:s("Path")})})}),(0,i.jsx)("tbody",{children:e.map(_)})]})),(0,i.jsx)(C.$,{onConfirm:e=>(0,f.h9)((()=>o.Z.post(r.Z.EXCLUDES_ADD_URL,{path:e})),t.plainT),initialPath:"",historyId:b.Z.LOCATION_GENERIC,subHeader:s("Add excluded path"),selectMode:m.pC.DIRECTORY})]})}}E.displayName="ExcludePage";const Z=(0,x.Z)(E,{urls:{excludes:r.Z.EXCLUDES_URL},onSocketConnected:(e,{refetchData:t})=>{e(r.Z.MODULE_URL,r.Z.EXCLUDE_ADDED,(()=>t())),e(r.Z.MODULE_URL,r.Z.EXCLUDE_REMOVED,(()=>t()))}})},98124:(e,t,s)=>{"use strict";s.d(t,{Z:()=>y});var i=s(85893),n=s(67294),o=s(67977),a=s(518),r=s(42090),l=s(70516),c=s(84807),d=s(27695),m=s(98240),u=s(66883),A=s(2445),p=(s(56183),s(76249)),h=s(89116),g=s(89519),x=s(24101),C=s(48117);const v=({startHandler:e,running:t,moduleT:s})=>{const{toI18nKey:o,translate:a}=s,[r,m]=n.useState(!1);return(0,i.jsxs)("div",Object.assign({className:"optimize-layout"},{children:[(0,i.jsx)("h4",Object.assign({className:"header",style:{marginTop:"30px"}},{children:a("Maintenance")})),(0,i.jsx)(d.Z,{description:(0,i.jsx)(h.c,Object.assign({i18nKey:o("hashDBOptimizeNote")},{children:"This operation will delete all hash information for files that aren't currently in share. If you are sharing files from network disks or from a removable storage, make sure that the files are currently shown in share (otherwise they have to be rehashed)"})),icon:C.Z.NOTE}),(0,i.jsx)(l.Z,{caption:a("Verify integrity of hash data"),checked:r,disabled:t,onChange:m,floating:!0}),(0,i.jsx)(c.Z,{className:"optimize-button",caption:a("Optimize now"),icon:C.Z.CONFIGURE,loading:t,onClick:()=>e(r)})]}))};class b extends n.Component{constructor(){super(...arguments),this.handleOptimize=e=>{(0,g.h9)((()=>a.Z.post(m.Z.OPTIMIZE_DATABASE_URL,{verify:e})),this.props.moduleT.plainT)}}render(){const{status:e,moduleT:t}=this.props,{translate:s,plainT:n}=t;return(0,i.jsxs)("div",Object.assign({className:"ui segment hash-database"},{children:[(0,i.jsx)("h3",Object.assign({className:"header"},{children:s("Hash database")})),(0,i.jsxs)(x.rj,Object.assign({columns:"two"},{children:[(0,i.jsx)(x.X2,{title:s("File index size"),text:(0,A.BU)(e.file_index_size,n),titleWidth:"five"}),(0,i.jsx)(x.X2,{title:s("Hash store size"),text:(0,A.BU)(e.hash_store_size,n),titleWidth:"five"})]})),u.Z.hasAccess(p.PS.SETTINGS_EDIT)&&(0,i.jsx)(v,{running:e.maintenance_running,startHandler:this.handleOptimize,moduleT:t})]}))}}const f=(0,r.Z)(b,{urls:{status:m.Z.DATABASE_STATUS_URL},onSocketConnected:(e,{refetchData:t})=>{e(m.Z.MODULE_URL,m.Z.DATABASE_STATUS,(()=>t()))}}),j=["max_hash_speed","max_total_hashers","max_volume_hashers"],y=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,Object.assign({},e,{keys:j})),(0,i.jsx)(f,{moduleT:e.moduleT})]})},30669:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["refresh_time","refresh_time_incoming","refresh_startup","refresh_threading"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},79049:(e,t,s)=>{"use strict";s.d(t,{Z:()=>y});var i=s(85893),n=(s(67294),s(518)),o=s(45241),a=s(77744),r=s(82633),l=s(48117),c=s(76249),d=s(32347);const m=e=>!e.default,u={create:{displayName:"Add profile",access:c.PS.SETTINGS_EDIT,icon:l.Z.CREATE,input:{approveCaption:"Create",content:"Enter name for the profile",inputProps:{placeholder:"Enter name",required:!0}},handler:(e,t)=>n.Z.post(r.Z.PROFILES_URL,{name:t})}},A={browse:{displayName:"Browse files",access:c.PS.FILELISTS_VIEW,icon:l.Z.FILELIST,handler:({data:e,location:t})=>o.Z.ownList(t,e.id,a.Z)},divider:null,edit:{displayName:"Rename profile",access:c.PS.SETTINGS_EDIT,icon:l.Z.EDIT,input:e=>({approveCaption:"Rename",content:"Enter new name for the profile {{item.name}}",inputProps:{placeholder:"Enter name",defaultValue:e.name,required:!0}}),handler:({data:e},t)=>n.Z.patch(`${r.Z.PROFILES_URL}/${e.id}`,{name:t})},default:{displayName:"Set as default",access:c.PS.SETTINGS_EDIT,icon:l.Z.DEFAULT,filter:m,handler:({data:e})=>n.Z.post(`${r.Z.PROFILES_URL}/${e.id}/default`)},remove:{displayName:"Remove profile",access:c.PS.SETTINGS_EDIT,icon:l.Z.REMOVE,filter:m,confirmation:{content:"Are you sure that you want to remove the profile {{item.name}}?",approveCaption:"Remove profile",rejectCaption:"Don't remove"},handler:({data:e})=>n.Z.delete(r.Z.PROFILES_URL+"/"+e.id)}},p={create:{moduleId:d.jv.SETTINGS,subId:"profile",actions:u},edit:{moduleId:d.jv.SETTINGS,subId:"profile",actions:A}};var h=s(45807),g=s(47021),x=s(73727),C=s(27695),v=s(75426),b=s(2445),f=(s(56183),s(89116));const j=({profile:e,t})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(g.PC,{caption:(0,i.jsx)("strong",{children:e.str}),actions:p.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"size"},{children:(0,b.BU)(e.size,t)})),(0,i.jsx)("td",Object.assign({className:"files"},{children:e.files}))]}),y=(0,v.Z)((({moduleT:e,profiles:t})=>{const{translate:s,toI18nKey:n}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)(C.Z,{description:(0,i.jsx)("div",{children:(0,i.jsxs)(f.c,Object.assign({i18nKey:n("shareProfilesNote")},{children:[(0,i.jsx)("p",{children:"Queued files are shared via the partial file sharing feature in all hubs where the share has not been hidden, regardless of the configured share profiles."}),(0,i.jsxs)("p",{children:["Share profiles are assigned for individual directories from the ",(0,i.jsx)(x.rU,Object.assign({to:"/share"},{children:"Share"}))," page."]})]}))}),icon:l.Z.INFO}),(0,i.jsx)(h.Z,{actions:p.create,actionId:"create"}),(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:s("Name")}),(0,i.jsx)("th",{children:s("Total size")}),(0,i.jsx)("th",{children:s("Total files")})]})}),(0,i.jsx)("tbody",{children:t.map((t=>(0,i.jsx)(j,{profile:t,t:e.plainT},t.id)))})]}))]})}),!1,void 0,!1)},77849:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(67977));const o=["share_hidden","share_no_empty_dirs","share_no_zero_byte","share_follow_symlinks","share_max_size"],a=["share_skiplist","share_skiplist_regex"],r=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:e.moduleT.translate("Skiplist")},e,{keys:a}))]})},21253:(e,t,s)=>{e.exports={url:"sharing",title:"Sharing",icon:"tasks",component:s(45998).Z,menuItems:[{title:"Refresh options",url:"refresh-options",component:s(30669).Z},{title:"Share profiles",url:"profiles",noSave:!0,component:s(79049).Z}],advancedMenuItems:[{title:"Sharing options",url:"sharing-options",component:s(77849).Z},{title:"Hashing",url:"hashing",component:s(98124).Z},{title:"Excluded paths",url:"excludes",noSave:!0,component:s(47553).Z}]}},75870:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=s(45697),o=s.n(n),a=s(67294),r=s(67977),l=s(518),c=s(33612),d=s(76249);class m extends a.Component{constructor(){super(...arguments),this.getAutoKey=()=>`${this.props.type}_auto_limits`,this.onFieldChanged=(e,t,s)=>{const i=this.getAutoKey();return e===i&&t[i]?l.Z.post(c.ZP.ITEMS_GET_URL,{keys:this.props.keys.filter((e=>e!==i)),value_mode:d.Hi.FORCE_AUTO}):null},this.onFieldSetting=(e,t,s)=>{s[this.getAutoKey()]&&e!==this.getAutoKey()&&(t.disabled=!0)}}render(){return(0,i.jsx)("div",Object.assign({className:"ui segment"},{children:(0,i.jsx)(r.Z,Object.assign({},this.props,{onFieldChanged:this.onFieldChanged,onFieldSetting:this.onFieldSetting}))}))}}m.propTypes={keys:o().array.isRequired,type:o().string.isRequired};const u=m},73608:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(75870)),o=s(67977);const a=["download_auto_limits","download_slots","download_max_start_speed"],r=["download_highest_prio_slots"],l=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:a,type:"download"})),(0,i.jsx)(o.Z,Object.assign({},e,{title:t("Manually set"),keys:r}))]})}},23590:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["upload_limit_main","download_limit_main"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},6918:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=(s(67294),s(78110)),o=s(90334),a=s(67977),r=s(89116);const l=["download_speed","upload_speed"],c=e=>{const{toI18nKey:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",Object.assign({className:"ui message"},{children:(0,i.jsxs)(r.c,Object.assign({i18nKey:t("connectionSpeedNote")},{children:["Please be as accurate as possible and set the ACTUAL speed of your connection. You may use an online tester, such as ",(0,i.jsx)(n.Z,Object.assign({url:o.Z.SPEEDTEST_URL},{children:"Speedtest.net"})),", to test your speed."]}))})),(0,i.jsx)(a.Z,Object.assign({},e,{keys:l}))]})}},20310:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(67977)),o=s(75870);const a=["upload_auto_limits","upload_slots","upload_auto_grant_speed","upload_max_granted"],r=["upload_minislot_size","upload_minislot_ext"],l=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,Object.assign({},e,{keys:a,type:"upload"})),(0,i.jsx)(n.Z,Object.assign({},e,{title:t("Manually set"),keys:r}))]})}},95496:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(75870));const o=["mcn_auto_limits","mcn_down","mcn_up"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o,type:"mcn"}))})},29205:(e,t,s)=>{e.exports={url:"speed-limits",title:"Speed and limits",icon:"dashboard",component:s(45998).Z,menuItems:[{title:"Connection speed",url:"speed",component:s(6918).Z},{title:"Bandwidth limiting",url:"limiter",component:s(23590).Z}],advancedMenuItems:[{title:"Download limits",url:"download-limits",component:s(73608).Z},{title:"Upload limits",url:"upload-limits",component:s(20310).Z},{title:"Per-user limits",url:"user-limits",component:s(95496).Z}]}},96860:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=(s(67294),s(10223)),o=s(45807),a=s(67977);const r=["web_server_threads","default_idle_timeout","ping_interval","ping_timeout"],l=["share_file_validation_hook_timeout","share_directory_validation_hook_timeout","new_share_file_validation_hook_timeout","new_share_directory_validation_hook_timeout","outgoing_chat_message_hook_timeout","incoming_chat_message_hook_timeout","queue_add_bundle_hook_timeout","queue_add_bundle_file_hook_timeout","queue_add_source_hook_timeout","queue_bundle_finished_hook_timeout","queue_file_finished_hook_timeout","list_menuitems_hook_timeout"],c=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,{actions:n.Z,actionId:"restartWeb"}),(0,i.jsx)(a.Z,Object.assign({},e,{keys:r})),(0,i.jsx)("div",Object.assign({className:"ui header"},{children:t("Hook timeouts")})),(0,i.jsx)("div",Object.assign({className:"ui segment"},{children:(0,i.jsx)(a.Z,Object.assign({},e,{keys:l}))}))]})}},93516:(e,t,s)=>{"use strict";s.d(t,{Z:()=>b});var i=s(85893),n=s(67294),o=s(67977),a=s(78110),r=s(90334),l=s(27695),c=s(48117),d=s(35451),m=(s(95788),function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s});class u extends n.Component{constructor(){super(...arguments),this.state={enabled:!1},this.convertKey=e=>`log_${this.props.section}${e?`_${e}`:""}`,this.onSettingsReceived=e=>{this.setState({enabled:e[this.convertKey()]})},this.onEnableStateChanged=(e,t,s)=>{this.setState({enabled:t[e]})},this.onContentSetting=(e,t,s)=>{t.disabled=!this.state.enabled},this.getChildClass=e=>this.state.enabled?e+" active":e}render(){const e=[this.convertKey()],t=[this.convertKey("file"),this.convertKey("format")],s=this.props,{simple:n}=s,a=m(s,["simple"]);return(0,i.jsxs)("div",Object.assign({className:this.getChildClass("log-section")},{children:[(0,i.jsx)("div",Object.assign({className:this.getChildClass("title")},{children:(0,i.jsx)(o.Z,Object.assign({},a,{keys:e,onFieldChanged:this.onEnableStateChanged,onSettingValuesReceived:this.onSettingsReceived}))})),!n&&(0,i.jsx)("div",Object.assign({className:this.getChildClass("content")},{children:(0,i.jsx)(o.Z,Object.assign({},this.props,{keys:t,onFieldSetting:this.onContentSetting}))}))]}))}}const A=u;const p=e=>{const{title:t,sectionKeys:s,simpleKeys:o}=e,a=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["title","sectionKeys","simpleKeys"]);return(0,i.jsx)("div",{children:(0,i.jsxs)("div",Object.assign({className:"sections"},{children:[(0,i.jsx)("div",Object.assign({className:"ui header"},{children:t})),(0,i.jsx)(d.ZP,Object.assign({className:"styled",controlled:!0},{children:s.map((e=>(0,n.createElement)(A,Object.assign({},a,{key:e,section:e,simple:!!o&&-1!==o.indexOf(e)}))))}))]}))})};var h=s(89116);const g=["log_directory"],x=["main","pm","syslog","status"],C=["downloads","uploads","list_transfers"],v=["list_transfers"],b=e=>{const{translate:t,toI18nKey:s}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,Object.assign({},e,{keys:g})),(0,i.jsxs)("div",Object.assign({className:"sections"},{children:[(0,i.jsx)(l.Z,{icon:c.Z.INFO,description:(0,i.jsx)(a.Z,Object.assign({url:r.Z.VARIABLE_HELP_URL},{children:(0,i.jsx)(h.c,Object.assign({i18nKey:s("variableHelp")},{children:"Variable information for Filename and Format fields"}))}))}),(0,i.jsx)(p,Object.assign({},e,{sectionKeys:x,title:t("Messages")})),(0,i.jsx)(p,Object.assign({},e,{sectionKeys:C,title:t("Transfers"),simpleKeys:v}))]}))]})}},87684:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(67977)),o=s(45807),a=s(27695),r=s(10223),l=s(48117);const c=["web_plain_port","web_plain_bind_address"],d=["web_tls_port","web_tls_bind_address","web_tls_certificate_path","web_tls_certificate_key_path"],m=e=>{const{t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,{actions:r.Z,actionId:"restartWeb"}),(0,i.jsx)("div",Object.assign({className:"ui header"},{children:"HTTP"})),(0,i.jsx)("div",Object.assign({className:"ui segment"},{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:c}))})),(0,i.jsx)("div",Object.assign({className:"ui header"},{children:"HTTPS"})),(0,i.jsxs)("div",Object.assign({className:"ui segment"},{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:d})),(0,i.jsx)(a.Z,{description:t("defaultCertNote","The default client certificate is used if the certificate paths are empty"),icon:l.Z.INFO})]}))]})}},48764:(e,t,s)=>{"use strict";s.d(t,{Z:()=>R});var i=s(85893),n=s(67294);const o="web_users",a=o,r=o;var l=s(518),c=s(20097),d=s(48117),m=s(66883),u=s(32347);const A={create:{displayName:"Add user",icon:d.Z.CREATE,handler:({location:e})=>{c.Z.push(`${e.pathname}/users`)}}},p={edit:{displayName:"Edit user",icon:d.Z.EDIT,handler:({data:e,location:t})=>{c.Z.push(`${t.pathname}/users/${e.id}`)}},remove:{displayName:"Remove user",filter:e=>e.id!==m.Z.user.id,icon:d.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the user {{item.username}}?",approveCaption:"Remove user",rejectCaption:"Don't remove"},handler:({data:e})=>l.Z.delete(`${r}/${e.id}`)}},h={create:{moduleId:u.jv.SETTINGS,subId:"webUser",actions:A},edit:{moduleId:u.jv.SETTINGS,subId:"webUser",actions:p}};var g=s(45807),x=s(28427),C=s(92245),v=s(94897),b=s(18758),f=s(70516),j=s(27695),y=s(76249),_=s(18603);var E,Z=s(43496),O=(s(95788),s(42090)),S=s(8717);!function(e){e.EDIT="Edit",e.VIEW="View",e.SEND_MESSAGES="Send messages"}(E||(E={}));const T={ADMIN:"Administrator",SEARCH:"Search",DOWNLOAD:"Download",TRANSFERS:"Transfers",EVENTS_VIEW:{title:"Events",action:E.VIEW},EVENTS_EDIT:{title:"Events",action:E.EDIT},QUEUE_VIEW:{title:"Queue",action:E.VIEW},QUEUE_EDIT:{title:"Queue",action:E.EDIT},FAVORITE_HUBS_VIEW:{title:"Favorite hubs",action:E.VIEW},FAVORITE_HUBS_EDIT:{title:"Favorite hubs",action:E.EDIT},SETTINGS_VIEW:{title:"Settings",action:E.VIEW},SETTINGS_EDIT:{title:"Settings",action:E.EDIT},FILESYSTEM_VIEW:{title:"Local filesystem",action:E.VIEW},FILESYSTEM_EDIT:{title:"Local filesystem",action:E.EDIT},HUBS_VIEW:{title:"Hubs",action:E.VIEW},HUBS_EDIT:{title:"Hubs",action:E.EDIT},HUBS_SEND:{title:"Hubs",action:E.SEND_MESSAGES},PRIVATE_CHAT_VIEW:{title:"Private chat",action:E.VIEW},PRIVATE_CHAT_EDIT:{title:"Private chat",action:E.EDIT},PRIVATE_CHAT_SEND:{title:"Private chat",action:E.SEND_MESSAGES},FILELISTS_VIEW:{title:"Filelists",action:E.VIEW},FILELISTS_EDIT:{title:"Filelists",action:E.EDIT},VIEW_FILE_VIEW:{title:"Viewed files",action:E.VIEW},VIEW_FILE_EDIT:{title:"Viewed files",action:E.EDIT}};class I extends n.Component{constructor(e){var t;super(e),this.isNew=()=>!this.props.user,this.save=()=>this.form.save(),this.onSave=e=>this.isNew()?l.Z.post(r,e):l.Z.patch(`${r}/${this.props.user.id}`,e),this.onFieldSetting=(e,t,s)=>{if("permissions"===e){const{user:e,moduleT:s}=this.props;t.factory=b.ZP.form.Select,t.template=(e=>b.ZP.form.Form.templates.select.clone({renderSelect:t=>{const s=t.options.filter((({value:e})=>-1===t.value.indexOf(y.PS.ADMIN)||e===y.PS.ADMIN)).map((({value:e,text:s})=>(0,i.jsx)(f.Z,{className:e,checked:-1!==t.value.indexOf(e),onChange:s=>((e,s)=>{t.onChange((0,_.Nl)(t.value,e,s))})(e,s),caption:s},e)));return(0,i.jsxs)("div",Object.assign({className:"permission-select"},{children:[(0,i.jsx)(j.Z,{description:e.t("adminPermissionNote","Administrator permission is required in order to access the System section in settings"),className:"small"}),s]}))}}))(s),t.disabled=!this.isNew()&&e.username===m.Z.user.username}else"password"===e?t.type="password":"username"===e&&(t.disabled=!this.isNew())},this.entry=(0,_.rv)((t=this.isNew(),[{key:"username",title:"User name",type:y.Y2.STRING},{key:"password",type:y.Y2.STRING,title:t?"Password":"New password",optional:!t},{key:"permissions",title:"Permissions",type:y.Y2.LIST,item_type:y.Y2.STRING}]),e.moduleT);const s=(0,S.o9)(e.moduleT,"permissionSelector"),n=this.entry.find((e=>"permissions"===e.key));Object.assign(n,{options:Object.keys(v.Z).reduce(((e,t)=>((e,t,s)=>{const i=T[t];return"string"==typeof i?e.push({id:v.Z[t],name:s.translate(i)}):e.push({id:v.Z[t],name:`${s.translate(i.title)} (${s.translate(i.action)})`}),e})(e,t,s)),[])})}render(){const e=this.props,{user:t,moduleT:s}=e,n=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["user","moduleT"]),o=s.translate(this.isNew()?"Add web user":"Edit user");return(0,i.jsx)(x.Z,Object.assign({className:"web-user",title:o,onApprove:this.save,closable:!1,icon:d.Z.USER},n,{children:(0,i.jsx)(Z.Z,{ref:e=>this.form=e,fieldDefinitions:this.entry,onFieldSetting:this.onFieldSetting,onSave:this.onSave,sourceValue:this.props.user,location:this.props.location})}))}}I.displayName="WebUserDialog";const N=(0,C.ZP)((0,O.Z)(I,{urls:{user:({match:e},t)=>e.params.userId?t.get(`${r}/${e.params.userId}`):Promise.resolve(void 0)}}),"users/:userId?");var w=s(47021),B=s(2445);const k=({user:e,moduleT:t})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(w.PC,{caption:(0,i.jsx)("strong",{children:e.username}),actions:h.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"permissions"},{children:-1!==e.permissions.indexOf(y.PS.ADMIN)?t.translate("Administrator"):e.permissions.length})),(0,i.jsx)("td",Object.assign({className:"sessions"},{children:e.active_sessions})),(0,i.jsx)("td",Object.assign({className:"last-login"},{children:(0,B.SY)(e.last_login)}))]});class D extends n.Component{render(){const{users:e,moduleT:t}=this.props,{translate:s}=t;return(0,i.jsxs)("div",{children:[(0,i.jsx)(g.Z,{actions:h.create,actionId:"create"}),(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:s("Username")}),(0,i.jsx)("th",{children:s("Permissions")}),(0,i.jsx)("th",{children:s("Active sessions")}),(0,i.jsx)("th",{children:s("Last logged in")})]})}),(0,i.jsx)("tbody",{children:e.map((e=>(0,i.jsx)(k,{user:e,moduleT:t},e.username)))})]})),(0,i.jsx)(N,{moduleT:t})]})}}D.displayName="WebUsersPage";const R=(0,O.Z)(D,{urls:{users:r},onSocketConnected:(e,{refetchData:t})=>{e(a,"web_user_added",(()=>t())),e(a,"web_user_updated",(()=>t())),e(a,"web_user_removed",(()=>t()))}})},83997:(e,t,s)=>{const i=s(94897).Z;e.exports={url:"system",title:"System",icon:"settings",access:i.ADMIN,component:s(45998).Z,menuItems:[{title:"Users",url:"users",noSave:!0,component:s(48764).Z},{title:"Logging",url:"logging",component:s(93516).Z},{title:"Web server",url:"server-settings",component:s(87684).Z}],advancedMenuItems:[{title:"Advanced server settings",url:"advanced-server-settings",component:s(96860).Z}]}},30379:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["use_main_chat_notify","show_joins","format_release_names"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},28541:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["report_uploads","report_downloads","report_search_alternates","report_added_sources","report_blocked_share","report_hashed_files","report_scheduled_refreshes","report_filelist_dupes"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},90783:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(67977));const o=["history_search_max","history_download_max","history_chat_log_lines"],a=["history_hub_messages","history_pm_messages","history_log_messages"],r=["history_hub_sessions","history_pm_sessions","history_filelist_sessions"],l=e=>{const{t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:t("maxMessageHistory","Maximum number of messages to cache")},e,{keys:a})),(0,i.jsx)(n.Z,Object.assign({title:t("maxSessionHistory","Maximum number of previously opened sessions")},e,{keys:r}))]})}},18682:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(33612)),o=s(86216);const a=[n.Qp.UNREAD_LABEL_DELAY,n.Qp.BACKGROUND_IMAGE_URL,n.Qp.NO_INSTALL_PROMPT],r=e=>(0,i.jsx)("div",{children:(0,i.jsx)(o.Z,Object.assign({},e,{keys:a}))})},68066:(e,t,s)=>{"use strict";s.d(t,{Z:()=>f});var i=s(85893),n=(s(67294),s(33612)),o=s(86216),a=s(93379),r=s.n(a),l=s(7795),c=s.n(l),d=s(90569),m=s.n(d),u=s(3565),A=s.n(u),p=s(19216),h=s.n(p),g=s(44589),x=s.n(g),C=s(80001),v={};v.styleTagTransform=x(),v.setAttributes=A(),v.insert=m().bind(null,"head"),v.domAPI=c(),v.insertStyleElement=h(),r()(C.Z,v),C.Z&&C.Z.locals&&C.Z.locals;const b=[n.Qp.NOTIFY_MENTION,n.Qp.NOTIFY_PM_USER,n.Qp.NOTIFY_PM_BOT,n.Qp.NOTIFY_HUB_MESSAGE,n.Qp.NOTIFY_BUNDLE_STATUS,n.Qp.NOTIFY_EVENTS_INFO,n.Qp.NOTIFY_EVENTS_WARNING,n.Qp.NOTIFY_EVENTS_ERROR],f=e=>{const{translate:t}=e.moduleT;return(0,i.jsx)("div",{children:(0,i.jsx)(o.Z,Object.assign({title:t("Popup notifications")},e,{keys:b}))})}},14327:(e,t,s)=>{e.exports={url:"view",title:"View",icon:"browser",component:s(45998).Z,menuItems:[{title:"Notifications",url:"notifications",local:!0,component:s(68066).Z},{title:"Histories",url:"histories",component:s(90783).Z},{title:"Events",url:"events",component:s(28541).Z},{title:"Appearance",url:"appearance",component:s(30379).Z}],advancedMenuItems:[{title:"Miscellaneous",url:"miscellaneous",local:!0,component:s(18682).Z}]}},34698:(e,t,s)=>{"use strict";s.d(t,{S:()=>a,b:()=>r});var i=s(66883),n=s(37576),o=function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function r(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};const a=e=>o(void 0,void 0,void 0,(function*(){try{return(yield(0,n.r)(`${getBasePath()}temp`,{method:"POST",headers:{"X-Authorization":i.Z.authToken,Authorization:i.Z.authToken},body:e})).headers.get("Location")}catch(e){throw e}})),r=(e,t,s)=>o(void 0,void 0,void 0,(function*(){try{const o=yield(0,n.r)((e=>`${window.location.origin}${getBasePath()}proxy?url=${encodeURIComponent(e)}`)(e),Object.assign({headers:{"X-Authorization":i.Z.authToken,"Cache-Control":"no-store, must-revalidate, max-age=0"}},s));return(yield t)?o.json():o.text()}catch(t){throw console.error(`CORS HTTP request failed (${e})`,t),t}}))}}]);
2
- //# sourceMappingURL=settings.29ee94ab2fe50083c74e.chunk.js.map
1
+ (self.webpackChunkairdcpp_webui=self.webpackChunkairdcpp_webui||[]).push([[571],{39803:(e,t,s)=>{"use strict";s.d(t,{n4:()=>i});const i=(e,t)=>{const s=o(e),i=o(t),n=s.pop(),a=i.pop(),r=c(s,i);return 0!==r?r:n&&a?c(n.split("."),a.split(".")):n||a?n?-1:1:0},n=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,o=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(n);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},a=e=>"*"===e||"x"===e||"X"===e,r=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},l=(e,t)=>{if(a(e)||a(t))return 0;const[s,i]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(r(e),r(t));return s>i?1:s<i?-1:0},c=(e,t)=>{for(let s=0;s<Math.max(e.length,t.length);s++){const i=l(e[s]||"0",t[s]||"0");if(0!==i)return i}return 0};Object.keys({">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]})},47549:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,'/*!\n * # Fomantic-UI 2.9.0 - Item\n * http://github.com/fomantic/Fomantic-UI/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */.ui.items>.item{display:-webkit-box;display:-ms-flexbox;display:flex;margin:1em 0;width:100%;min-height:0;background:0 0;padding:0;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:-webkit-box-shadow .1s ease;transition:-webkit-box-shadow .1s ease;transition:box-shadow .1s ease;transition:box-shadow .1s ease,-webkit-box-shadow .1s ease;z-index:\'\'}.ui.items>.item a{cursor:pointer}.ui.items{margin:1.5em 0}.ui.items:first-child{margin-top:0!important}.ui.items:last-child{margin-bottom:0!important}.ui.items>.item::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item:first-child{margin-top:0}.ui.items>.item:last-child{margin-bottom:0}.ui.items>.item>.image{position:relative;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;display:block;float:none;margin:0;padding:0;max-height:\'\';-ms-flex-item-align:start;align-self:start}.ui.items>.item>.image>img{display:block;width:100%;height:auto;border-radius:.125rem;border:none}.ui.items>.item>.image:only-child>img{border-radius:0}.ui.items>.item>.content{display:block;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;background:0 0;color:rgba(0,0,0,.87);margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;font-size:1em;border:none;border-radius:0}.ui.items>.item>.content::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image+.content{min-width:0;width:auto;display:block;margin-left:0;-ms-flex-item-align:start;align-self:start;padding-left:1.5em}.ui.items>.item>.content>.header{display:inline-block;margin:-.21425em 0 0;font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-weight:700;color:rgba(0,0,0,.85)}.ui.items>.item>.content>.header:not(.ui){font-size:1.28571429em}.ui.items>.item [class*="left floated"]{float:left}.ui.items>.item [class*="right floated"]{float:right}.ui.items>.item .content img{-ms-flex-item-align:center;align-self:center;width:\'\'}.ui.items>.item .avatar img,.ui.items>.item img.avatar{width:\'\';height:\'\';border-radius:500rem}.ui.items>.item>.content>.description{margin-top:.6em;max-width:auto;font-size:1em;line-height:1.4285em;color:rgba(0,0,0,.87)}.ui.items>.item>.content p{margin:0 0 .5em}.ui.items>.item>.content p:last-child{margin-bottom:0}.ui.items>.item .meta{margin:.5em 0 .5em;font-size:1em;line-height:1em;color:rgba(0,0,0,.6)}.ui.items>.item .meta *{margin-right:.3em}.ui.items>.item .meta :last-child{margin-right:0}.ui.items>.item .meta [class*="right floated"]{margin-right:0;margin-left:.3em}.ui.items>.item>.content a:not(.ui){color:\'\';-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content a:not(.ui):hover{color:\'\'}.ui.items>.item>.content>a.header{color:rgba(0,0,0,.85)}.ui.items>.item>.content>a.header:hover{color:#1e70bf}.ui.items>.item .meta>a:not(.ui){color:rgba(0,0,0,.4)}.ui.items>.item .meta>a:not(.ui):hover{color:rgba(0,0,0,.87)}.ui.items>.item>.content .favorite.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .favorite.icon:hover{opacity:1;color:#ffb70a}.ui.items>.item>.content .active.favorite.icon{color:#ffe623}.ui.items>.item>.content .like.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .like.icon:hover{opacity:1;color:#ff2733}.ui.items>.item>.content .active.like.icon{color:#ff2733}.ui.items>.item .extra{display:block;position:relative;background:0 0;margin:.5rem 0 0;width:100%;padding:0 0 0;top:0;left:0;color:rgba(0,0,0,.4);-webkit-box-shadow:none;box-shadow:none;-webkit-transition:color .1s ease;transition:color .1s ease;border-top:none}.ui.items>.item .extra>*{margin:.25rem .5rem .25rem 0}.ui.items>.item .extra>[class*="right floated"]{margin:.25rem 0 .25rem .5rem}.ui.items>.item .extra::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image:not(.ui){width:175px}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.items>.item{margin:1em 0}.ui.items>.item>.image:not(.ui){width:150px}.ui.items>.item>.image+.content{display:block;padding:0 0 0 1em}}@media only screen and (max-width:767.98px){.ui.items:not(.unstackable)>.item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:2em 0}.ui.items:not(.unstackable)>.item>.image{display:block;margin-left:auto;margin-right:auto}.ui.items:not(.unstackable)>.item>.image,.ui.items:not(.unstackable)>.item>.image>img{max-width:100%!important;width:auto!important;max-height:250px!important}.ui.items:not(.unstackable)>.item>.image+.content{display:block;padding:1.5em 0 0}}.ui.items>.item>.image+[class*="top aligned"].content{-ms-flex-item-align:start;align-self:flex-start}.ui.items>.item>.image+[class*="middle aligned"].content{-ms-flex-item-align:center;align-self:center}.ui.items>.item>.image+[class*="bottom aligned"].content{-ms-flex-item-align:end;align-self:flex-end}.ui.relaxed.items>.item{margin:1.5em 0}.ui[class*="very relaxed"].items>.item{margin:2em 0}.ui.divided.items>.item{border-top:1px solid rgba(34,36,38,.15);margin:0;padding:1em 0}.ui.divided.items>.item:first-child{border-top:none;margin-top:0!important;padding-top:0!important}.ui.divided.items>.item:last-child{margin-bottom:0!important;padding-bottom:0!important}.ui.relaxed.divided.items>.item{margin:0;padding:1.5em 0}.ui[class*="very relaxed"].divided.items>.item{margin:0;padding:2em 0}.ui.items a.item:hover,.ui.link.items>.item:hover{cursor:pointer}.ui.items a.item:hover .content .header,.ui.link.items>.item:hover .content .header{color:#1e70bf}.ui.items>.item{font-size:1em}.ui.mini.items>.item{font-size:.78571429em}.ui.tiny.items>.item{font-size:.85714286em}.ui.small.items>.item{font-size:.92857143em}.ui.large.items>.item{font-size:1.14285714em}.ui.big.items>.item{font-size:1.28571429em}.ui.huge.items>.item{font-size:1.42857143em}.ui.massive.items>.item{font-size:1.71428571em}@media only screen and (max-width:767.98px){.ui.unstackable.items>.item>.image,.ui.unstackable.items>.item>.image>img{width:125px!important}}.ui.inverted.items>.item{background:0 0}.ui.inverted.items>.item>.content{background:0 0;color:rgba(255,255,255,.9)}.ui.inverted.items>.item .extra{background:0 0}.ui.inverted.items>.item>.content>.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>.description{color:rgba(255,255,255,.9)}.ui.inverted.items>.item .meta{color:rgba(255,255,255,.8)}.ui.inverted.items>.item>.content a:not(.ui){color:#57a4ef}.ui.inverted.items>.item>.content a:not(.ui):hover{color:#4183c4}.ui.inverted.items>.item>.content>a.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>a.header:hover{color:#fff}.ui.inverted.items>.item .meta>a:not(.ui){color:rgba(255,255,255,.7)}.ui.inverted.items>.item .meta>a:not(.ui):hover{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content .favorite.icon:hover{color:#ffc63d}.ui.inverted.items>.item>.content .active.favorite.icon{color:#ffec56}.ui.inverted.items>.item>.content .like.icon:hover{color:#ff5a63}.ui.inverted.items>.item>.content .active.like.icon{color:#ff5a63}.ui.inverted.items>.item .extra{color:rgba(255,255,255,.7)}.ui.inverted.items a.item:hover .content .header,.ui.inverted.link.items>.item:hover .content .header{color:#fff}.ui.inverted.divided.items>.item{border-top:1px solid rgba(255,255,255,.1)}.ui.inverted.divided.items>.item:first-child{border-top:none}',"",{version:3,sources:["webpack://./node_modules/fomantic-ui-css/components/item.min.css"],names:[],mappings:"AAAA;;;;;;;;EAQE,CAAC,gBAAgB,mBAAmB,CAAC,mBAAmB,CAAC,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,uBAAuB,CAAC,eAAe,CAAC,8CAA8C,CAAC,sCAAsC,CAAC,8BAA8B,CAAC,0DAA0D,CAAC,UAAU,CAAC,kBAAkB,cAAc,CAAC,UAAU,cAAc,CAAC,sBAAsB,sBAAsB,CAAC,qBAAqB,yBAAyB,CAAC,uBAAuB,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,4BAA4B,YAAY,CAAC,2BAA2B,eAAe,CAAC,uBAAuB,iBAAiB,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,aAAa,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,2BAA2B,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,WAAW,CAAC,sCAAsC,eAAe,CAAC,yBAAyB,aAAa,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,aAAa,CAAC,cAAc,CAAC,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,uBAAuB,CAAC,eAAe,CAAC,aAAa,CAAC,WAAW,CAAC,eAAe,CAAC,gCAAgC,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,gCAAgC,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,iCAAiC,oBAAoB,CAAC,oBAAoB,CAAC,4NAA4N,CAAC,eAAe,CAAC,qBAAqB,CAAC,0CAA0C,sBAAsB,CAAC,wCAAwC,UAAU,CAAC,yCAAyC,WAAW,CAAC,6BAA6B,0BAA0B,CAAC,iBAAiB,CAAC,QAAQ,CAAC,uDAAuD,QAAQ,CAAC,SAAS,CAAC,oBAAoB,CAAC,sCAAsC,eAAe,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,2BAA2B,eAAe,CAAC,sCAAsC,eAAe,CAAC,sBAAsB,kBAAkB,CAAC,aAAa,CAAC,eAAe,CAAC,oBAAoB,CAAC,wBAAwB,iBAAiB,CAAC,kCAAkC,cAAc,CAAC,+CAA+C,cAAc,CAAC,gBAAgB,CAAC,oCAAoC,QAAQ,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,0CAA0C,QAAQ,CAAC,kCAAkC,qBAAqB,CAAC,wCAAwC,aAAa,CAAC,iCAAiC,oBAAoB,CAAC,uCAAuC,qBAAqB,CAAC,wCAAwC,cAAc,CAAC,WAAW,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,8CAA8C,SAAS,CAAC,aAAa,CAAC,+CAA+C,aAAa,CAAC,oCAAoC,cAAc,CAAC,WAAW,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,0CAA0C,SAAS,CAAC,aAAa,CAAC,2CAA2C,aAAa,CAAC,uBAAuB,aAAa,CAAC,iBAAiB,CAAC,cAAc,CAAC,gBAAgB,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,eAAe,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,eAAe,CAAC,yBAAyB,4BAA4B,CAAC,gDAAgD,4BAA4B,CAAC,8BAA8B,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,gCAAgC,WAAW,CAAC,kEAAkE,gBAAgB,YAAY,CAAC,gCAAgC,WAAW,CAAC,gCAAgC,aAAa,CAAC,iBAAiB,CAAC,CAAC,4CAA4C,kCAAkC,2BAA2B,CAAC,4BAA4B,CAAC,yBAAyB,CAAC,qBAAqB,CAAC,YAAY,CAAC,yCAAyC,aAAa,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,sFAAsF,wBAAwB,CAAC,oBAAoB,CAAC,0BAA0B,CAAC,kDAAkD,aAAa,CAAC,iBAAiB,CAAC,CAAC,sDAAsD,yBAAyB,CAAC,qBAAqB,CAAC,yDAAyD,0BAA0B,CAAC,iBAAiB,CAAC,yDAAyD,uBAAuB,CAAC,mBAAmB,CAAC,wBAAwB,cAAc,CAAC,uCAAuC,YAAY,CAAC,wBAAwB,uCAAuC,CAAC,QAAQ,CAAC,aAAa,CAAC,oCAAoC,eAAe,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,mCAAmC,yBAAyB,CAAC,0BAA0B,CAAC,gCAAgC,QAAQ,CAAC,eAAe,CAAC,+CAA+C,QAAQ,CAAC,aAAa,CAAC,kDAAkD,cAAc,CAAC,oFAAoF,aAAa,CAAC,gBAAgB,aAAa,CAAC,qBAAqB,qBAAqB,CAAC,qBAAqB,qBAAqB,CAAC,sBAAsB,qBAAqB,CAAC,sBAAsB,sBAAsB,CAAC,oBAAoB,sBAAsB,CAAC,qBAAqB,sBAAsB,CAAC,wBAAwB,sBAAsB,CAAC,4CAA4C,0EAA0E,qBAAqB,CAAC,CAAC,yBAAyB,cAAc,CAAC,kCAAkC,cAAc,CAAC,0BAA0B,CAAC,gCAAgC,cAAc,CAAC,0CAA0C,0BAA0B,CAAC,+CAA+C,0BAA0B,CAAC,+BAA+B,0BAA0B,CAAC,6CAA6C,aAAa,CAAC,mDAAmD,aAAa,CAAC,2CAA2C,0BAA0B,CAAC,iDAAiD,UAAU,CAAC,0CAA0C,0BAA0B,CAAC,gDAAgD,0BAA0B,CAAC,uDAAuD,aAAa,CAAC,wDAAwD,aAAa,CAAC,mDAAmD,aAAa,CAAC,oDAAoD,aAAa,CAAC,gCAAgC,0BAA0B,CAAC,sGAAsG,UAAU,CAAC,iCAAiC,yCAAyC,CAAC,6CAA6C,eAAe",sourcesContent:['/*!\n * # Fomantic-UI 2.9.0 - Item\n * http://github.com/fomantic/Fomantic-UI/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */.ui.items>.item{display:-webkit-box;display:-ms-flexbox;display:flex;margin:1em 0;width:100%;min-height:0;background:0 0;padding:0;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:-webkit-box-shadow .1s ease;transition:-webkit-box-shadow .1s ease;transition:box-shadow .1s ease;transition:box-shadow .1s ease,-webkit-box-shadow .1s ease;z-index:\'\'}.ui.items>.item a{cursor:pointer}.ui.items{margin:1.5em 0}.ui.items:first-child{margin-top:0!important}.ui.items:last-child{margin-bottom:0!important}.ui.items>.item::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item:first-child{margin-top:0}.ui.items>.item:last-child{margin-bottom:0}.ui.items>.item>.image{position:relative;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;display:block;float:none;margin:0;padding:0;max-height:\'\';-ms-flex-item-align:start;align-self:start}.ui.items>.item>.image>img{display:block;width:100%;height:auto;border-radius:.125rem;border:none}.ui.items>.item>.image:only-child>img{border-radius:0}.ui.items>.item>.content{display:block;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;background:0 0;color:rgba(0,0,0,.87);margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;font-size:1em;border:none;border-radius:0}.ui.items>.item>.content::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image+.content{min-width:0;width:auto;display:block;margin-left:0;-ms-flex-item-align:start;align-self:start;padding-left:1.5em}.ui.items>.item>.content>.header{display:inline-block;margin:-.21425em 0 0;font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-weight:700;color:rgba(0,0,0,.85)}.ui.items>.item>.content>.header:not(.ui){font-size:1.28571429em}.ui.items>.item [class*="left floated"]{float:left}.ui.items>.item [class*="right floated"]{float:right}.ui.items>.item .content img{-ms-flex-item-align:center;align-self:center;width:\'\'}.ui.items>.item .avatar img,.ui.items>.item img.avatar{width:\'\';height:\'\';border-radius:500rem}.ui.items>.item>.content>.description{margin-top:.6em;max-width:auto;font-size:1em;line-height:1.4285em;color:rgba(0,0,0,.87)}.ui.items>.item>.content p{margin:0 0 .5em}.ui.items>.item>.content p:last-child{margin-bottom:0}.ui.items>.item .meta{margin:.5em 0 .5em;font-size:1em;line-height:1em;color:rgba(0,0,0,.6)}.ui.items>.item .meta *{margin-right:.3em}.ui.items>.item .meta :last-child{margin-right:0}.ui.items>.item .meta [class*="right floated"]{margin-right:0;margin-left:.3em}.ui.items>.item>.content a:not(.ui){color:\'\';-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content a:not(.ui):hover{color:\'\'}.ui.items>.item>.content>a.header{color:rgba(0,0,0,.85)}.ui.items>.item>.content>a.header:hover{color:#1e70bf}.ui.items>.item .meta>a:not(.ui){color:rgba(0,0,0,.4)}.ui.items>.item .meta>a:not(.ui):hover{color:rgba(0,0,0,.87)}.ui.items>.item>.content .favorite.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .favorite.icon:hover{opacity:1;color:#ffb70a}.ui.items>.item>.content .active.favorite.icon{color:#ffe623}.ui.items>.item>.content .like.icon{cursor:pointer;opacity:.75;-webkit-transition:color .1s ease;transition:color .1s ease}.ui.items>.item>.content .like.icon:hover{opacity:1;color:#ff2733}.ui.items>.item>.content .active.like.icon{color:#ff2733}.ui.items>.item .extra{display:block;position:relative;background:0 0;margin:.5rem 0 0;width:100%;padding:0 0 0;top:0;left:0;color:rgba(0,0,0,.4);-webkit-box-shadow:none;box-shadow:none;-webkit-transition:color .1s ease;transition:color .1s ease;border-top:none}.ui.items>.item .extra>*{margin:.25rem .5rem .25rem 0}.ui.items>.item .extra>[class*="right floated"]{margin:.25rem 0 .25rem .5rem}.ui.items>.item .extra::after{display:block;content:\' \';height:0;clear:both;overflow:hidden;visibility:hidden}.ui.items>.item>.image:not(.ui){width:175px}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.items>.item{margin:1em 0}.ui.items>.item>.image:not(.ui){width:150px}.ui.items>.item>.image+.content{display:block;padding:0 0 0 1em}}@media only screen and (max-width:767.98px){.ui.items:not(.unstackable)>.item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:2em 0}.ui.items:not(.unstackable)>.item>.image{display:block;margin-left:auto;margin-right:auto}.ui.items:not(.unstackable)>.item>.image,.ui.items:not(.unstackable)>.item>.image>img{max-width:100%!important;width:auto!important;max-height:250px!important}.ui.items:not(.unstackable)>.item>.image+.content{display:block;padding:1.5em 0 0}}.ui.items>.item>.image+[class*="top aligned"].content{-ms-flex-item-align:start;align-self:flex-start}.ui.items>.item>.image+[class*="middle aligned"].content{-ms-flex-item-align:center;align-self:center}.ui.items>.item>.image+[class*="bottom aligned"].content{-ms-flex-item-align:end;align-self:flex-end}.ui.relaxed.items>.item{margin:1.5em 0}.ui[class*="very relaxed"].items>.item{margin:2em 0}.ui.divided.items>.item{border-top:1px solid rgba(34,36,38,.15);margin:0;padding:1em 0}.ui.divided.items>.item:first-child{border-top:none;margin-top:0!important;padding-top:0!important}.ui.divided.items>.item:last-child{margin-bottom:0!important;padding-bottom:0!important}.ui.relaxed.divided.items>.item{margin:0;padding:1.5em 0}.ui[class*="very relaxed"].divided.items>.item{margin:0;padding:2em 0}.ui.items a.item:hover,.ui.link.items>.item:hover{cursor:pointer}.ui.items a.item:hover .content .header,.ui.link.items>.item:hover .content .header{color:#1e70bf}.ui.items>.item{font-size:1em}.ui.mini.items>.item{font-size:.78571429em}.ui.tiny.items>.item{font-size:.85714286em}.ui.small.items>.item{font-size:.92857143em}.ui.large.items>.item{font-size:1.14285714em}.ui.big.items>.item{font-size:1.28571429em}.ui.huge.items>.item{font-size:1.42857143em}.ui.massive.items>.item{font-size:1.71428571em}@media only screen and (max-width:767.98px){.ui.unstackable.items>.item>.image,.ui.unstackable.items>.item>.image>img{width:125px!important}}.ui.inverted.items>.item{background:0 0}.ui.inverted.items>.item>.content{background:0 0;color:rgba(255,255,255,.9)}.ui.inverted.items>.item .extra{background:0 0}.ui.inverted.items>.item>.content>.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>.description{color:rgba(255,255,255,.9)}.ui.inverted.items>.item .meta{color:rgba(255,255,255,.8)}.ui.inverted.items>.item>.content a:not(.ui){color:#57a4ef}.ui.inverted.items>.item>.content a:not(.ui):hover{color:#4183c4}.ui.inverted.items>.item>.content>a.header{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content>a.header:hover{color:#fff}.ui.inverted.items>.item .meta>a:not(.ui){color:rgba(255,255,255,.7)}.ui.inverted.items>.item .meta>a:not(.ui):hover{color:rgba(255,255,255,.9)}.ui.inverted.items>.item>.content .favorite.icon:hover{color:#ffc63d}.ui.inverted.items>.item>.content .active.favorite.icon{color:#ffec56}.ui.inverted.items>.item>.content .like.icon:hover{color:#ff5a63}.ui.inverted.items>.item>.content .active.like.icon{color:#ff5a63}.ui.inverted.items>.item .extra{color:rgba(255,255,255,.7)}.ui.inverted.items a.item:hover .content .header,.ui.inverted.link.items>.item:hover .content .header{color:#fff}.ui.inverted.divided.items>.item{border-top:1px solid rgba(255,255,255,.1)}.ui.inverted.divided.items>.item:first-child{border-top:none}'],sourceRoot:""}]);const r=a},64275:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .detect-panel {\n margin-top: 30px;\n}\n\n.settings-layout .detect-panel .header.column > div {\n overflow: hidden;\n line-height: inherit !important;\n}\n\n.settings-layout .detect-panel .header.column {\n max-width: 200px;\n}\n\n.settings-layout .detect-panel .detect-button {\n margin-top: 20px;\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/Connectivity/style.css"],names:[],mappings:"AAAA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,+BAA+B;AACjC;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".settings-layout .detect-panel {\n margin-top: 30px;\n}\n\n.settings-layout .detect-panel .header.column > div {\n overflow: hidden;\n line-height: inherit !important;\n}\n\n.settings-layout .detect-panel .header.column {\n max-width: 200px;\n}\n\n.settings-layout .detect-panel .detect-button {\n margin-top: 20px;\n}"],sourceRoot:""}]);const r=a},85951:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .profile.miscellaneous .field-nmdc_encoding li {\r\n margin-bottom: 5px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/Profile/style.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB",sourcesContent:[".settings-layout .profile.miscellaneous .field-nmdc_encoding li {\r\n margin-bottom: 5px;\r\n}"],sourceRoot:""}]);const r=a},40548:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .hash-database.grid {\r\n padding: 10px 0px 15px 0px;\r\n}\r\n\r\n.settings-layout .hash-database.grid .row {\r\n padding: 5px 0px;\r\n}\r\n\r\n.settings-layout .sharing.excludes .add.button {\r\n margin-top: 20px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/Sharing/style.css"],names:[],mappings:"AAAA;EACE,0BAA0B;AAC5B;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".settings-layout .hash-database.grid {\r\n padding: 10px 0px 15px 0px;\r\n}\r\n\r\n.settings-layout .hash-database.grid .row {\r\n padding: 5px 0px;\r\n}\r\n\r\n.settings-layout .sharing.excludes .add.button {\r\n margin-top: 20px;\r\n}"],sourceRoot:""}]);const r=a},17834:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".web-user.modal .ui.checkbox {\r\n width: 100%;\r\n margin-top: 5px;\r\n}\r\n\r\n.web-user.modal .ui.checkbox.admin {\r\n margin-bottom: 10px;\r\n font-weight: bold;\r\n}\r\n\r\n.settings-layout .system.logging .log-section.active {\r\n background-color: whitesmoke;\r\n}\r\n\r\n.settings-layout .system.logging .sections {\r\n margin-top: 25px !important;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/System/style.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,eAAe;AACjB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;AACnB;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,2BAA2B;AAC7B",sourcesContent:[".web-user.modal .ui.checkbox {\r\n width: 100%;\r\n margin-top: 5px;\r\n}\r\n\r\n.web-user.modal .ui.checkbox.admin {\r\n margin-bottom: 10px;\r\n font-weight: bold;\r\n}\r\n\r\n.settings-layout .system.logging .log-section.active {\r\n background-color: whitesmoke;\r\n}\r\n\r\n.settings-layout .system.logging .sections {\r\n margin-top: 25px !important;\r\n}"],sourceRoot:""}]);const r=a},80001:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout .view.notifications .field-notify_events_info {\r\n margin-top: 25px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/routes/View/style.css"],names:[],mappings:"AAAA;EACE,gBAAgB;AAClB",sourcesContent:[".settings-layout .view.notifications .field-notify_events_info {\r\n margin-top: 25px;\r\n}"],sourceRoot:""}]);const r=a},20464:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(87537),n=s.n(i),o=s(23645),a=s.n(o)()(n());a.push([e.id,".settings-layout {\r\n padding-bottom: 30px;\r\n max-height: 100% !important;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.settings-layout .menu-column .menu {\r\n max-width: 100%;\r\n}\r\n\r\n.settings-layout .layout.header {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout .setting-form {\r\n margin-top: 30px;\r\n}\r\n\r\n.settings-layout .setting-form:first-child {\r\n margin-top: 0px;\r\n}\r\n\r\n.settings-layout h3 {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout h4 {\r\n margin-top: 15px;\r\n}\r\n\r\n.settings-layout > div,\r\n.settings-layout .mobile .section-content {\r\n display: flex;\r\n flex-direction: column;\r\n overflow-y: auto;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.settings-layout .main.grid {\r\n overflow-y: auto;\r\n padding: 0px;\r\n}\r\n\r\n.settings-layout .mobile .section-content {\r\n padding-bottom: 5px;\r\n /* For possible scrollbar */\r\n padding-right: 5px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about {\r\n margin-top: 10px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about .options {\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .full .section-content {\r\n height: 100%;\r\n padding-bottom: 2px;\r\n}\r\n\r\n.settings-layout .top-menu {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .top-menu > .ui.dropdown,\r\n.settings-layout .top-menu > .ui.dropdown > .caption {\r\n display: flex;\r\n}\r\n\r\n.settings-layout .top-menu > i {\r\n margin: 0px 5px;\r\n}\r\n\r\n.settings-layout .full .top-menu i {\r\n display: none;\r\n}\r\n\r\n.settings-layout .mobile .save.button {\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .options {\r\n min-height: 80px;\r\n}\r\n\r\n.settings-layout .options > .ui.grid {\r\n margin: 0px;\r\n}","",{version:3,sources:["webpack://./src/routes/Settings/style.css"],names:[],mappings:"AAAA;EACE,oBAAoB;EACpB,2BAA2B;EAC3B,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;EAEE,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,YAAY;AACd;;AAEA;EACE,mBAAmB;EACnB,2BAA2B;EAC3B,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,cAAc;AAChB;;AAEA;;EAEE,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,mBAAmB;EACnB,cAAc;AAChB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;AACb",sourcesContent:[".settings-layout {\r\n padding-bottom: 30px;\r\n max-height: 100% !important;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.settings-layout .menu-column .menu {\r\n max-width: 100%;\r\n}\r\n\r\n.settings-layout .layout.header {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout .setting-form {\r\n margin-top: 30px;\r\n}\r\n\r\n.settings-layout .setting-form:first-child {\r\n margin-top: 0px;\r\n}\r\n\r\n.settings-layout h3 {\r\n margin-bottom: 20px;\r\n}\r\n\r\n.settings-layout h4 {\r\n margin-top: 15px;\r\n}\r\n\r\n.settings-layout > div,\r\n.settings-layout .mobile .section-content {\r\n display: flex;\r\n flex-direction: column;\r\n overflow-y: auto;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.settings-layout .main.grid {\r\n overflow-y: auto;\r\n padding: 0px;\r\n}\r\n\r\n.settings-layout .mobile .section-content {\r\n padding-bottom: 5px;\r\n /* For possible scrollbar */\r\n padding-right: 5px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about {\r\n margin-top: 10px;\r\n}\r\n\r\n.settings-layout .mobile .section-content.about .options {\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .full .section-content {\r\n height: 100%;\r\n padding-bottom: 2px;\r\n}\r\n\r\n.settings-layout .top-menu {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .top-menu > .ui.dropdown,\r\n.settings-layout .top-menu > .ui.dropdown > .caption {\r\n display: flex;\r\n}\r\n\r\n.settings-layout .top-menu > i {\r\n margin: 0px 5px;\r\n}\r\n\r\n.settings-layout .full .top-menu i {\r\n display: none;\r\n}\r\n\r\n.settings-layout .mobile .save.button {\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.settings-layout .options {\r\n min-height: 80px;\r\n}\r\n\r\n.settings-layout .options > .ui.grid {\r\n margin: 0px;\r\n}"],sourceRoot:""}]);const r=a},53597:(e,t,s)=>{"use strict";var i=s(93379),n=s.n(i),o=s(7795),a=s.n(o),r=s(90569),l=s.n(r),c=s(3565),d=s.n(c),m=s(19216),u=s.n(m),A=s(44589),p=s.n(A),h=s(47549),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},56183:(e,t,s)=>{"use strict";var i=s(93379),n=s.n(i),o=s(7795),a=s.n(o),r=s(90569),l=s.n(r),c=s(3565),d=s.n(c),m=s(19216),u=s.n(m),A=s(44589),p=s.n(A),h=s(40548),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},95788:(e,t,s)=>{"use strict";var i=s(93379),n=s.n(i),o=s(7795),a=s.n(o),r=s(90569),l=s.n(r),c=s(3565),d=s.n(c),m=s(19216),u=s.n(m),A=s(44589),p=s.n(A),h=s(17834),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},23776:(e,t,s)=>{"use strict";s.d(t,{Z:()=>x});var i=s(518),n=s(34698),o=s(70838),a=s(20097),r=s(48117),l=s(76249),c=s(32347);const d=e=>e.managed,m=e=>e.running,u=(e,t,s)=>i.Z.post(o.Z.DOWNLOAD_URL,{install_id:t||e,url:e,shasum:s}),A=e=>{return t=void 0,s=void 0,a=function*(){var{data:t}=e;!function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}}(e,["data"]);const s=yield(0,n.b)(o.Z.NPM_PACKAGE_URL+t.name+"/latest",!0),{tarball:i,shasum:a}=s.dist;return u(i,t.name,a)},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{l(a.next(e))}catch(e){n(e)}}function r(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(e){e(s)}))).then(o,r)}l((a=a.apply(t,s||[])).next())}));var t,s,i,a},p={installUrl:{displayName:"Install from URL",icon:r.Z.CREATE,access:l.PS.ADMIN,input:{approveCaption:"Install",content:"Enter download URL",inputProps:{placeholder:"Enter URL",type:"url",required:!0}},handler:({data:e},t)=>u(t)}},h={installNpm:{displayName:"Install",icon:r.Z.CREATE,access:l.PS.ADMIN,handler:A},updateNpm:{displayName:"Update",icon:r.Z.REFRESH_COLORED,access:l.PS.ADMIN,handler:A}},g={start:{displayName:"Start",icon:r.Z.PLAY,filter:e=>d(e)&&!m(e),access:l.PS.ADMIN,handler:({data:e})=>i.Z.post(`${o.Z.EXTENSIONS_URL}/${e.name}/start`)},stop:{displayName:"Stop",icon:r.Z.STOP,filter:e=>d(e)&&m(e),access:l.PS.ADMIN,handler:({data:e})=>i.Z.post(`${o.Z.EXTENSIONS_URL}/${e.name}/stop`)},configure:{displayName:"Configure",icon:r.Z.EDIT,filter:e=>e.has_settings,access:l.PS.SETTINGS_EDIT,handler:({data:e,location:t})=>{a.Z.push(`${t.pathname}/extensions/${e.id}`)}},divider:null,remove:{displayName:"Uninstall",icon:r.Z.REMOVE,filter:d,access:l.PS.ADMIN,confirmation:{content:"Are you sure that you want to remove the extension {{item.name}}? This will also remove possible extension-specific settings.",approveCaption:"Remove extension",rejectCaption:"Don't remove"},handler:({data:e})=>i.Z.delete(o.Z.EXTENSIONS_URL+"/"+e.name)}},x={install:{moduleId:c.jv.EXTENSIONS,actions:p},npm:{moduleId:c.jv.EXTENSIONS,actions:h},manage:{moduleId:c.jv.EXTENSIONS,actions:g}}},29416:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(518),n=s(4047),o=s(48117),a=s(76249),r=s(32347);const l={refresh:{displayName:"Refresh all",access:a.PS.SETTINGS_EDIT,icon:o.Z.REFRESH_COLORED,handler:()=>i.Z.post(n.Z.REFRESH_URL)}},c={moduleId:r.jv.SHARE,actions:l}},10223:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(83767),n=s(518),o=s(48117),a=s(76249),r=s(32347);const l={restartWeb:{displayName:"Restart web server",access:a.PS.ADMIN,icon:o.Z.REFRESH_COLORED,confirmation:{content:"When changing the binding options, it's recommended to restart the web server only \n when you are able to access the server for troubleshooting. If the web server won't come back online, you should start the application \n manually to see if there are any error messages. The configuration file is located in your user directory by default (inside .airdc++ directory) in case you need to edit it manually.",approveCaption:"Continue and restart",rejectCaption:"Don't restart"},handler:()=>n.Z.post(i.Z.MODULE_URL+"/restart_web")},shutdown:{displayName:"Shut down application",access:a.PS.ADMIN,icon:o.Z.POWER,confirmation:{content:"Are you sure that you wish to shut down the application?",approveCaption:"Continue and shut down",rejectCaption:"Cancel"},handler:()=>n.Z.post(i.Z.MODULE_URL+"/shutdown")}},c={moduleId:r.jv.COMMON,subId:"system",actions:l}},80713:(e,t,s)=>{"use strict";s.d(t,{Z:()=>h});var i=s(85893),n=s(67294),o=s(27695),a=s(84807),r=s(48117),l=s(33612),c=s(92408),d=s(96818),m=s(85948),u=s(32347),A=s(8717),p=s(26793);const h=({alwaysShow:e})=>{const t=(0,c.o)(d.Z),s=(0,n.useContext)(m.S),{t:h}=(0,p.$)();return s?!e&&t[l.Qp.NO_INSTALL_PROMPT]?null:(0,i.jsx)(o.Z,{title:(0,A.Iu)("Install as local application",h,u.jv.COMMON),description:(0,i.jsxs)("div",Object.assign({className:"install-prompt"},{children:[(0,i.jsx)("p",{children:h((0,A.zS)("pwaInstallDesc",u.jv.COMMON),"This web application can be installed locally, providing a better user experience")}),(0,i.jsx)(a.Z,{className:"primary",caption:(0,A.Iu)("Install",h,u.jv.COMMON),onClick:()=>s(),icon:r.Z.CREATE}),!e&&(0,i.jsx)(a.Z,{caption:(0,A.Iu)("Don't install",h,u.jv.COMMON),onClick:()=>d.Z.setValue(l.Qp.NO_INSTALL_PROMPT,!0)})]}))}):null}},24101:(e,t,s)=>{"use strict";s.d(t,{X2:()=>d,h4:()=>m,rj:()=>u});var i=s(85893),n=(s(67294),s(94184)),o=s.n(n),a=s(89116),r=s(8717),l=s(32347);const c=e=>e||(0,i.jsx)(a.c,Object.assign({i18nKey:(0,r.zS)("na",l.jv.COMMON)},{children:"N/A"})),d=({title:e,text:t,className:s,titleWidth:n="four",noText:a})=>(0,i.jsxs)("div",Object.assign({className:o()("ui row",s)},{children:[(0,i.jsx)("div",Object.assign({className:o()(a?"sixteen":n,"wide column title")},{children:(0,i.jsx)("div",Object.assign({className:"ui tiny header",style:{overflow:"hidden"}},{children:e}))})),!a&&(0,i.jsx)("div",Object.assign({className:"column value"},{children:c(t)}))]})),m=({title:e})=>(0,i.jsx)("div",Object.assign({className:"ui row"},{children:(0,i.jsx)("div",Object.assign({className:"sixteen wide column"},{children:(0,i.jsx)("div",Object.assign({className:"ui blue section header"},{children:e}))}))})),u=e=>{var{className:t,children:s,columns:n,stackable:a}=e,r=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["className","children","columns","stackable"]);return(0,i.jsx)("div",Object.assign({className:o()("ui grid",{[`${n} column`]:!!n},{stackable:a},t)},r,{children:s}))}},70838:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});const i="extensions",n="https://registry.npmjs.org/",o={MODULE_URL:i,EXTENSIONS_URL:i,DOWNLOAD_URL:i+"/download",ENGINES_URL:i+"/engines",ENGINES_STATUS_URL:i+"/engines/status",DEFAULT_ENGINE:"node",STARTED:"extension_started",STOPPED:"extension_stopped",ADDED:"extension_added",REMOVED:"extension_removed",UPDATED:"extension_updated",INSTALLATION_STARTED:"extension_installation_started",INSTALLATION_SUCCEEDED:"extension_installation_succeeded",INSTALLATION_FAILED:"extension_installation_failed",NPM_PACKAGES_URL:n+"-/v1/search?text=keywords:airdcpp-extensions-public&size=100",NPM_PACKAGE_URL:n,NPM_HOMEPAGE_URL:"https://www.npmjs.com/package/"}},1251:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const i="favorite_directories",n={MODULE_URL:i,GROUPED_DIRECTORIES_URL:i+"/grouped_paths",DIRECTORIES_URL:i,DIRECTORIES_UPDATED:"favorite_directories_updated"}},82633:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const i="share_profiles",n={MODULE_URL:i,PROFILES_URL:i,PROFILE_ADDED:"share_profile_added",PROFILE_UPDATED:"share_profile_updated",PROFILE_REMOVED:"share_profile_removed",HIDDEN_PROFILE_ID:1}},75426:(e,t,s)=>{"use strict";s.d(t,{D:()=>r,Z:()=>l});var i=s(96486),n=s(82633),o=s(42090),a=s(2445);const r=e=>({id:e.id,name:e.str}),l=function(e,t,s,r=!0){return(0,o.Z)(e,(0,i.merge)(s,{urls:{profiles:n.Z.PROFILES_URL},dataConverters:{profiles:(e,{t:s})=>{const i=e.filter((e=>t||e.id!==n.Z.HIDDEN_PROFILE_ID)).map((e=>((e,t)=>{let s=e.str;return r&&e.id!==n.Z.HIDDEN_PROFILE_ID&&(s+=` (${(0,a.BU)(e.size,t)})`),Object.assign(Object.assign({},e),{str:s})})(e,s)));return i}},onSocketConnected:(e,{refetchData:t})=>{e(n.Z.MODULE_URL,n.Z.PROFILE_ADDED,(()=>t())),e(n.Z.MODULE_URL,n.Z.PROFILE_UPDATED,(()=>t())),e(n.Z.MODULE_URL,n.Z.PROFILE_REMOVED,(()=>t()))}}))}},17666:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var i=s(85893),n=s(67294),o=s(518),a=s(27695),r=s(69222),l=s(8717),c=s(32347);const d=function(e,t,s,d=0){class m extends n.Component{constructor(){super(...arguments),this.state={stats:null},this.fetchStats=()=>{o.Z.get(t).then(this.onStatsReceived).catch((e=>console.error("Failed to fetch stats",e.message))),d>0&&(this.fetchTimeout=window.setTimeout(this.fetchStats,1e3*d))},this.onStatsReceived=e=>{this.setState({stats:e})}}componentDidMount(){this.fetchStats()}componentWillUnmount(){window.clearTimeout(this.fetchTimeout)}render(){const{stats:t}=this.state;return null===t?null:(this.props.stats&&Object.assign(t,this.props.stats),void 0===t?(0,i.jsx)(r.W,{children:e=>(0,i.jsx)(a.Z,{title:(0,l.Iu)("Statistics not available",e,c.jv.COMMON),description:s?s(e,this.props):void 0})}):(0,i.jsx)(e,Object.assign({},this.props,{stats:t})))}}return m}},86216:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var i=s(85893),n=s(67294),o=s(96818),a=s(43496),r=s(67161),l=s(18603);class c extends n.Component{constructor(e){super(e),this.onSave=(e,t)=>(o.Z.setValues(e),this.setState({settings:o.Z.getValues()}),Promise.resolve()),this.onFieldChanged=(e,t,s)=>{const{saveContext:i,onFieldChanged:n}=this.props;if(i.onFieldChanged(e,t,s),n)return n(e,t,s)},this.definitions=(0,l.rv)(o.Z.getDefinitions(e.keys),e.moduleT),this.state={settings:o.Z.getValues()}}render(){const{settings:e}=this.state,t=this.props,{saveContext:s,keys:n}=t,o=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(t,["saveContext","keys"]);return(0,i.jsx)("div",Object.assign({className:"local setting-form"},{children:(0,i.jsx)(a.Z,Object.assign({},o,{ref:e=>s.addFormRef(n,e),onSave:this.onSave,fieldDefinitions:this.definitions,sourceValue:e,onFieldChanged:this.onFieldChanged}))}))}}const d=(0,r.nB)(c)},25721:(e,t,s)=>{"use strict";s.d(t,{h7:()=>u,kf:()=>m,mB:()=>d,nO:()=>A,tD:()=>p});var i=s(85893),n=s(6596),o=s(66883),a=s(16550),r=s(32347),l=s(8717),c=s(96486);const d=(e,t)=>"object"==typeof t?`/settings/${t.url}/${e.url}`:`/settings/${e.url}`,m=(e,t)=>t.translate(e,[r.W9.NAVIGATION]),u=(e,t,s,a)=>{if(e.debugOnly)return null;if(e.access&&!o.Z.hasAccess(e.access))return null;let r=d(e,t);return e.menuItems&&0!==a.pathname.indexOf(r)&&(r=d(e.menuItems[0],e)),(0,i.jsx)(n.Z,Object.assign({url:r,icon:e.icon?`green ${e.icon}`:null},{children:m(e.title,s)}),r)},A=(e,t,s,n,o)=>t?t.map((r=>(0,i.jsx)(a.AW,{path:d(r,o),render:o=>(0,i.jsx)(r.component,Object.assign({},o,{menuItems:e.menuItems,advancedMenuItems:e.advancedMenuItems,parent:e,parentMenuItems:t,settingsT:s,moduleT:(0,l.o9)(n||s,(0,c.camelCase)(r.url))}))},r.url))):null,p=(e,t,s)=>e?e.find((e=>((e,t,s)=>0===s.pathname.indexOf(d(e,t)))(e,t,s))):null},67977:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=s(67294),o=s(33612),a=s(42090),r=s(518),l=s(43496),c=s(76249),d=s(67161);class m extends n.Component{constructor(){super(...arguments),this.onSave=e=>0===Object.keys(e).length?Promise.resolve():r.Z.post(o.ZP.ITEMS_SET_URL,e).then(this.refetchValues),this.refetchValues=()=>{this.props.refetchData(["settings"])},this.onFieldChanged=(e,t,s)=>{const{saveContext:i,onFieldChanged:n}=this.props;if(i.onFieldChanged(e,t,s),n)return n(e,t,s)}}render(){const e=this.props,{settings:t,fieldDefinitions:s,saveContext:n,keys:o}=e,a=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["settings","fieldDefinitions","saveContext","keys"]);return(0,i.jsx)("div",Object.assign({className:"remote setting-form"},{children:(0,i.jsx)(l.Z,Object.assign({},a,{ref:e=>n.addFormRef(o,e),onSave:this.onSave,fieldDefinitions:s,sourceValue:t,onFieldChanged:this.onFieldChanged}))}))}}const u=(0,a.Z)((0,d.nB)(m),{urls:{fieldDefinitions:({keys:e})=>r.Z.post(o.ZP.ITEMS_DEFINITIONS_URL,{keys:e}),settings:({keys:e,onSettingValuesReceived:t,valueMode:s=c.Hi.CURRENT})=>{return i=void 0,n=void 0,l=function*(){const i=yield r.Z.post(o.ZP.ITEMS_GET_URL,{keys:e,value_mode:s});return t&&t(i),i},new((a=void 0)||(a=Promise))((function(e,t){function s(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(s,o)}r((l=l.apply(i,n||[])).next())}));var i,n,a,l}}})},45998:(e,t,s)=>{"use strict";s.d(t,{Z:()=>j});var i=s(85893),n=s(67294),o=s(94184),a=s.n(o),r=s(12630),l=s(10606),c=s(91462),d=s(25721),m=s(35936);const u=({menuItems:e,advancedMenuItems:t,settingsT:s})=>(0,i.jsx)("div",Object.assign({className:"three wide column menu-column"},{children:(0,i.jsxs)("div",Object.assign({className:"ui vertical secondary menu"},{children:[e,!!t&&(0,i.jsxs)("div",{children:[(0,i.jsx)("div",Object.assign({className:"item header"},{children:s.translate("Advanced")})),(0,i.jsx)("div",Object.assign({className:"menu"},{children:t}))]})]}))})),A=({parentMenuItems:e})=>(0,i.jsx)("div",Object.assign({className:"ui secondary pointing menu settings top-menu"},{children:e})),p=({contentClassname:e,currentMenuItem:t,parent:s,saveButton:n,children:o,message:r,settingsT:l})=>(0,i.jsx)("div",Object.assign({className:a()("thirteen wide column",e)},{children:(0,i.jsxs)("div",Object.assign({className:"ui segment"},{children:[(0,i.jsx)(c.Z,{title:(0,d.kf)(t.title,l),icon:(0,i.jsx)(m.Z,{color:"green",icon:s.icon}),rightComponent:n}),(0,i.jsxs)("div",Object.assign({className:"options"},{children:[r,o]}))]}))})),h=e=>{var{children:t}=e,s=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["children"]);return(0,i.jsxs)("div",Object.assign({className:"full"},{children:[(0,i.jsx)(A,Object.assign({},s)),(0,i.jsxs)("div",Object.assign({id:"setting-scroll-context",className:"ui segment grid main"},{children:[(0,i.jsx)(u,Object.assign({},s)),(0,i.jsx)(p,Object.assign({},s,{children:t}))]}))]}))};var g=s(68662),x=s(1059),C=s(99005);const v=({menuItems:e,advancedMenuItems:t,currentMenuItem:s,parentMenuItems:n,parent:o,settingsT:a})=>(0,i.jsxs)("div",Object.assign({className:"ui top-menu"},{children:[(0,i.jsx)(g.Z,Object.assign({selection:!0,caption:(0,d.kf)(o.title,a),captionIcon:`green ${o.icon}`},{children:n})),(0,i.jsx)(m.Z,{icon:"caret right",size:"large"}),(0,i.jsxs)(x.Z,Object.assign({selection:!0,caption:(0,d.kf)(s.title,a)},{children:[(0,i.jsx)(C.Z,{children:e}),(0,i.jsx)(C.Z,Object.assign({caption:a.translate("Advanced")},{children:t}))]}))]})),b=e=>{var{saveButton:t,children:s,contentClassname:o,message:a}=e,r=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["saveButton","children","contentClassname","message"]);return(0,i.jsxs)("div",Object.assign({className:"mobile"},{children:[(0,i.jsx)(v,Object.assign({},r)),(0,i.jsxs)("div",Object.assign({id:"setting-scroll-context",className:o},{children:[!!t&&n.cloneElement(t,{className:"fluid"}),(0,i.jsxs)("div",Object.assign({className:"options"},{children:[a,s]}))]}))]}))};var f=s(67161);const j=(0,r.Z)((0,f.ZP)((e=>{const t=(0,l.wd)()||window.innerWidth<1e3?b:h,{moduleT:s,settingsT:n,parentMenuItems:o,menuItems:r,advancedMenuItems:c,location:m}=e,u=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["moduleT","settingsT","parentMenuItems","menuItems","advancedMenuItems","location"]),{parent:A,currentMenuItem:p}=e,g=a()("section-content",`${A.url} ${p.url}`);return(0,i.jsx)(t,Object.assign({},u,{settingsT:n,moduleT:s,location:m,contentClassname:g,parentMenuItems:e.parentMenuItems.map((e=>(0,d.h7)(e,void 0,n,m))),menuItems:e.menuItems?e.menuItems.map((e=>(0,d.h7)(e,A,n,m))):[],advancedMenuItems:c?c.map((e=>(0,d.h7)(e,A,n,m))):void 0}))})))},67161:(e,t,s)=>{"use strict";s.d(t,{ZP:()=>y,nB:()=>f});var i=s(85893),n=s(67294),o=s(16550),a=s(41143),r=s.n(a),l=s(27695),c=s(45697),d=s.n(c),m=s(84807),u=s(66883),A=s(94184),p=s.n(A),h=s(76249);class g extends n.Component{constructor(){super(...arguments),this.state={saving:!1},this.toggleSaveState=()=>{this.setState({saving:!this.state.saving})},this.onClick=()=>{this.toggleSaveState(),this.props.saveHandler().then(this.toggleSaveState).catch(this.toggleSaveState)}}render(){const{local:e,hasChanges:t,className:s,settingsT:n}=this.props,o=e||u.Z.hasAccess(h.PS.SETTINGS_EDIT);let a;return a=o?n.translate(t?"Save changes":"No unsaved changes"):n.translate("No save permission"),(0,i.jsx)(m.Z,{className:p()("save",s),caption:a,icon:o&&t?"green checkmark":null,loading:this.state.saving,disabled:!t||!o,onClick:this.onClick})}}g.propTypes={hasChanges:d().bool.isRequired,saveHandler:d().func.isRequired,local:d().bool};const x=g;var C=s(57136),v=s(48117);const b=n.createContext(void 0);function f(e){return function(t){return(0,i.jsx)(b.Consumer,{children:s=>(0,i.jsx)(e,Object.assign({},t,{saveContext:s}))})}}const j=e=>e.join("_");function y(e){class t extends n.Component{constructor(){super(...arguments),this.forms={},this.changedProperties=new Set,this.onSettingsChanged=(e,t,s)=>{s?this.changedProperties.add(e):this.changedProperties.delete(e),this.forceUpdate()},this.onSettingsSaved=()=>{const{translate:e}=this.props.settingsT;C.Z.success({title:e("Saving completed"),message:e("Settings were saved successfully")}),this.forceUpdate()},this.handleSave=()=>{r()(Object.keys(this.forms).length>0,"No forms exist in SaveDecorator");const e=Object.values(this.forms).map((e=>e.save()));return this.changedProperties.clear(),Promise.all(e).then(this.onSettingsSaved)},this.hasChanges=()=>this.changedProperties.size>0,this.promptSave=e=>{const{currentMenuItem:t,settingsT:s}=this.props;return!!t.noSave||(-1!==this.props.location.pathname.indexOf(e.pathname)||-1!==e.pathname.indexOf(this.props.location.pathname)||(!(this.hasChanges()&&u.Z.hasAccess(h.PS.SETTINGS_EDIT))||s.t("unsavedChangesPrompt","You have unsaved changes. Are you sure you want to leave?")))},this.addFormRef=(e,t)=>{t?(r()(t.hasOwnProperty("save"),"Invalid setting form component supplied for SaveDecorator (save property missing)"),this.forms[j(e)]=t):this.forms={}},this.getFormRef=e=>this.forms[j(e)],this.saveContext={onFieldChanged:this.onSettingsChanged,addFormRef:this.addFormRef,getFormRef:this.getFormRef}}componentDidUpdate(e){e.currentMenuItem.url!==this.props.currentMenuItem.url&&this.changedProperties.clear()}render(){const{currentMenuItem:t,children:s,settingsT:n}=this.props,a=t.local&&(0,i.jsx)(l.Z,{description:n.t("browserSpecificNote","Settings listed on this page are browser-specific"),icon:v.Z.INFO}),r=!t.noSave&&(0,i.jsx)(x,{saveHandler:this.handleSave,hasChanges:this.hasChanges(),local:t.local,settingsT:n});return(0,i.jsx)(e,Object.assign({},this.props,{saveButton:r,message:a},{children:(0,i.jsxs)(b.Provider,Object.assign({value:this.saveContext},{children:[(0,i.jsx)(o.NL,{message:this.promptSave}),s]}))}))}}return t.displayName="SaveDecorator",t}},12630:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=s(45697),o=s.n(n),a=s(67294),r=s(16550),l=s(25721);function c(e){class t extends a.Component{render(){const{location:t,match:s,parent:n,menuItems:o,advancedMenuItems:a,settingsT:c,moduleT:d}=this.props;if((t.pathname===s.url||n&&t.pathname===(0,l.mB)(n))&&o&&o.length)return(0,i.jsx)(r.l_,{to:(0,l.mB)(o[0],n)});const m=(0,l.tD)(o,n,t)||(0,l.tD)(a,n,t);return m?(0,i.jsxs)(e,Object.assign({},this.props,{currentMenuItem:m},{children:[(0,l.nO)(m,o,c,d,n),(0,l.nO)(m,a,c,d,n)]})):null}}return t.propTypes={parent:o().object,menuItems:o().array.isRequired,advancedMenuItems:o().array,location:o().object.isRequired,match:o().object.isRequired},t}},7630:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>Z});var i=s(85893),n=s(67294),o=s(91768),a=s(12630),r=s(8717),l=s(32347),c=s(93379),d=s.n(c),m=s(7795),u=s.n(m),A=s(90569),p=s.n(A),h=s(3565),g=s.n(h),x=s(19216),C=s.n(x),v=s(44589),b=s.n(v),f=s(20464),j={};j.styleTagTransform=b(),j.setAttributes=g(),j.insert=p().bind(null,"head"),j.domAPI=u(),j.insertStyleElement=C(),d()(f.Z,j),f.Z&&f.Z.locals&&f.Z.locals;const y=[s(98458),s(76855),s(29205),s(96946),s(21253),s(14327),s(58275),s(81245),s(83997)],_=(0,a.Z)((({children:e})=>(0,i.jsx)("div",Object.assign({className:"ui segment settings-layout"},{children:e}))));class E extends n.Component{constructor(){super(...arguments),this.settingsT=(0,r.HY)(this.props.t,l.jv.SETTINGS)}render(){return(0,i.jsx)(_,Object.assign({},this.props,{menuItems:y,settingsT:this.settingsT}))}}const Z=(0,o.Z)()(E)},31905:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=(s(67294),s(24101)),o=s(66883),a=s(17666),r=s(83767),l=s(2445),c=s(80713),d=s(90334),m=s(78110);const u=(0,a.Z)((({stats:e,moduleT:t})=>{const{translate:s}=t,a=o.Z.systemInfo,r=(0,l.o0)(1670008832.722);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(n.X2,{title:s("Application version"),text:a.client_version}),(0,i.jsx)(n.X2,{title:s("Web UI version"),text:"2.11.4"}),(0,i.jsx)(n.X2,{title:s("Web UI build date"),text:r}),(0,i.jsx)(n.X2,{title:s("API version"),text:a.api_version}),(0,i.jsx)(n.X2,{title:s("API feature level"),text:a.api_feature_level}),(0,i.jsx)(n.X2,{title:s("Started"),text:(0,l.SY)(a.client_started)}),(0,i.jsx)(n.X2,{title:s("Active sessions"),text:e.active_sessions}),(0,i.jsx)(n.X2,{title:s("Server threads"),text:e.server_threads}),(0,i.jsx)(n.h4,{title:s("Resources")}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.HOME_PAGE_URL},{children:s("Home page")})),noText:!0}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.HELP_URL},{children:s("Documentation")})),noText:!0}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.ISSUE_TRACKER_URL},{children:s("Feature request/bug tracker")})),noText:!0}),(0,i.jsx)(n.h4,{title:s("Third-party credits")}),(0,i.jsx)(n.X2,{title:(0,i.jsx)(m.Z,Object.assign({url:d.Z.DBIP_URL},{children:"IP Geolocation by DB-IP"})),noText:!0})]})),(0,i.jsx)(c.Z,{alwaysShow:!0})]})}),r.Z.STATS_URL,null,5)},18495:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(2445)),o=s(21222),a=s(17666),r=s(24101);const l=(0,a.Z)((({stats:e,moduleT:t})=>{const{translate:s}=t;return(0,i.jsxs)(r.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(r.X2,{title:s("Total users"),text:e.total_users}),(0,i.jsx)(r.X2,{title:s("Unique users"),text:`${e.unique_users} (${(0,n.rl)(e.unique_users,e.total_users)})`}),(0,i.jsx)(r.X2,{title:s("Active users"),text:`${e.active_users} (${(0,n.rl)(e.active_users,e.unique_users)})`}),(0,i.jsx)(r.X2,{title:s("Total share"),text:(0,n.BU)(e.total_share,t.plainT)}),(0,i.jsx)(r.X2,{title:s("Average share per user"),text:(0,n.BU)((0,n.Te)(e.total_share,e.unique_users),t.plainT)}),(0,i.jsx)(r.X2,{title:s("Average ADC download speed"),text:(0,n.Nh)(e.adc_down_per_user,t.plainT)}),(0,i.jsx)(r.X2,{title:s("Average ADC upload speed"),text:(0,n.Nh)(e.adc_up_per_user,t.plainT)}),(0,i.jsx)(r.h4,{title:s("Clients")}),e.clients.map((t=>{return s=e.unique_users,o=t,(0,i.jsx)(r.X2,{title:o.name,text:`${o.count} (${(0,n.rl)(o.count,s)})`},o.name);var s,o}))]}))}),o.Z.STATS_URL,((e,t)=>t.moduleT.translate("No hubs online")),10)},18741:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(2445)),o=s(4047),a=s(17666),r=s(24101);const l=(0,a.Z)((({stats:e,moduleT:t})=>{const{translate:s,t:o}=t;return(0,i.jsxs)(r.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(r.X2,{title:s("Total share size"),text:(0,n.BU)(e.total_size,t.plainT)}),(0,i.jsx)(r.X2,{title:s("Total files"),text:o("totalFilesValue",{defaultValue:"{{totalCount}} ({{uniqueCount}} unique)",replace:{totalCount:e.total_file_count,uniqueCount:(0,n.rl)(e.unique_file_count,e.total_file_count)}})}),(0,i.jsx)(r.X2,{title:s("Total directories"),text:e.total_directory_count}),(0,i.jsx)(r.X2,{title:s("Average file age"),text:(0,n.ZC)(e.average_file_age)}),(0,i.jsx)(r.X2,{title:s("Average files per directory"),text:(0,n.Te)(e.total_file_count,e.total_directory_count)}),(0,i.jsx)(r.h4,{title:s("Incoming searches")}),(0,i.jsx)(r.X2,{title:s("Total searches"),text:o("searchesTotalValue",{defaultValue:"{{totalCount}} ({{perSecondCount}} per second)",replace:{totalCount:e.total_searches,perSecondCount:e.total_searches_per_second.toFixed(1)}})}),(0,i.jsx)(r.X2,{title:s("TTH searches"),text:(0,n.rl)(e.tth_searches,e.total_searches)}),(0,i.jsx)(r.X2,{title:s("Text searches"),text:o("searchesPerSecondValue",{defaultValue:"{{totalCount}} ({{matchedCount}} matched per second)",replace:{totalCount:e.recursive_searches,matchedCount:e.unfiltered_recursive_searches_per_second.toFixed(2)}})}),(0,i.jsx)(r.X2,{title:s("Filtered text searches"),text:o("searchesFilteredValue",{defaultValue:"{{filteredPercentage}} ({{resultPercentage}} of the matched ones returned results)",replace:{filteredPercentage:(0,n.rl)(e.filtered_searches,e.recursive_searches),resultPercentage:(0,n.rl)(e.recursive_searches_responded,e.recursive_searches-e.filtered_searches)}})}),(0,i.jsx)(r.X2,{title:s("Average text search tokens (non-filtered)"),text:o("searchesAverageTokensValue",{defaultValue:"{{tokenCount}} ({{tokenLength}} bytes per token)",replace:{tokenCount:e.average_search_token_count.toFixed(1),tokenLength:e.average_search_token_length.toFixed(1)}})}),(0,i.jsx)(r.X2,{title:s("Average matching time per text search"),text:o("searchesAverageMatchTimeValue",{defaultValue:"{{matchTime}} ms",replace:{matchTime:e.average_match_ms}})})]}))}),o.Z.STATS_URL,((e,t)=>t.moduleT.translate("No files shared")),60)},43476:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(2445)),o=s(24101),a=s(23406);const r=(0,s(17666).Z)((({stats:e,moduleT:t})=>{const{translate:s,plainT:a}=t,r=e.session_uploaded+e.start_total_uploaded,l=e.session_downloaded+e.start_total_downloaded;return(0,i.jsxs)(o.rj,Object.assign({columns:"two",stackable:!0},{children:[(0,i.jsx)(o.X2,{title:s("Total downloaded"),text:(0,n.BU)(l,a)}),(0,i.jsx)(o.X2,{title:s("Total uploaded"),text:(0,n.BU)(r,a)}),(0,i.jsx)(o.h4,{title:s("Session")}),(0,i.jsx)(o.X2,{title:s("Session downloaded"),text:(0,n.BU)(e.session_downloaded,a)}),(0,i.jsx)(o.X2,{title:s("Session uploaded"),text:(0,n.BU)(e.session_uploaded,a)})]}))}),a.Z.TRANSFERRED_BYTES_URL,null,5)},58275:(e,t,s)=>{const i=s(94897).Z;e.exports={url:"about",title:"About",icon:"info",component:s(45998).Z,menuItems:[{title:"Application",noSave:!0,url:"application",component:s(31905).Z},{title:"Transfer statistics",noSave:!0,url:"transfers",access:i.TRANSFERS,component:s(43476).Z},{title:"Share statistics",noSave:!0,url:"share",component:s(18741).Z},{title:"Hub statistics",noSave:!0,url:"hubs",access:i.HUBS_VIEW,component:s(18495).Z}]}},54191:(e,t,s)=>{"use strict";s.d(t,{Z:()=>D});var i=s(85893),n=(s(67294),s(45807)),o=s(42090),a=s(518),r=s(94897);const l="connectivity",c={MODULE_URL:l,DETECT_URL:l+"/detect",STATUS_URL:l+"/status",CONNECTIVITY_MESSAGE:"connectivity_detection_message",CONNECTIVITY_STARTED:"connectivity_detection_started",CONNECTIVITY_FINISHED:"connectivity_detection_finished"};var d=s(32347),m=s(48117);const u={detect:{displayName:"Detect now",access:r.Z.SETTINGS_EDIT,icon:m.Z.CONFIGURE,handler:()=>a.Z.post(c.DETECT_URL)}},A={moduleId:d.jv.SETTINGS,actions:u};var p=s(24101),h=s(93379),g=s.n(h),x=s(7795),C=s.n(x),v=s(90569),b=s.n(v),f=s(3565),j=s.n(f),y=s(19216),_=s.n(y),E=s(44589),Z=s.n(E),O=s(64275),S={};S.styleTagTransform=Z(),S.setAttributes=j(),S.insert=b().bind(null,"head"),S.domAPI=C(),S.insertStyleElement=_(),g()(O.Z,S),O.Z&&O.Z.locals&&O.Z.locals;const T=(e,t,s)=>{const{translate:i,t:n}=s;if(t)return i("Detecting...");const o=e.auto_detect;return n(o?"autoDetected":"manualConfiguration",{defaultValue:o?"{{status}} (auto detected)":"{{status}} (manual configuration)",replace:{status:e.text}})},I=(0,o.Z)((({status:e,runningV4:t,runningV6:s,moduleT:o})=>(0,i.jsxs)("div",Object.assign({className:"ui segment detect-panel"},{children:[(0,i.jsx)("h3",Object.assign({className:"header"},{children:o.translate("Current auto detection status")})),(0,i.jsxs)(p.rj,Object.assign({columns:"two"},{children:[(0,i.jsx)(p.X2,{title:o.translate("IPv4 connectivity"),text:T(e.status_v4,t,o)}),(0,i.jsx)(p.X2,{title:o.translate("IPv6 connectivity"),text:T(e.status_v6,s,o)})]})),(0,i.jsx)(n.Z,{className:"detect-button",actions:A,actionId:"detect",disabled:!e.status_v4.auto_detect&&!e.status_v6.auto_detect,loading:s||t})]}))),{urls:{status:c.STATUS_URL},onSocketConnected:(e,{refetchData:t,mergeData:s})=>{const i=(e,t)=>{s({["running"+(e?"V6":"V4")]:t})};e(c.MODULE_URL,c.CONNECTIVITY_STARTED,(e=>{i(e.v6,!0)})),e(c.MODULE_URL,c.CONNECTIVITY_FINISHED,(e=>{i(e.v6,!1),t()}))}});var N=s(78110),w=s(90334),B=s(27695),k=s(89116);const D=e=>{const{toI18nKey:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(I,{moduleT:e.moduleT}),(0,i.jsx)(B.Z,{description:(0,i.jsxs)(k.c,Object.assign({i18nKey:t("connectivityDetectionNote")},{children:["In case of file transfer connectivity issues, please confirm that your TCP ports are really open by using ",(0,i.jsx)(N.Z,Object.assign({url:w.Z.PORTCHECK_URL},{children:"an online port checker"})),". Note that validity of the UDP port (search) can't be checked online. For more information about different connectivity modes, please visit"," ",(0,i.jsx)(N.Z,Object.assign({url:w.Z.CONNECTIVITY_HELP_URL},{children:"DC++'s connectivity FAQ"})),"."]})),icon:m.Z.INFO})]})}},36761:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["always_ccpm","tls_mode","tls_allow_untrusted_clients","tls_allow_untrusted_hubs"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},59340:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(12609));const o=["connection_auto_v4","connection_bind_v4","connection_mode_v4","connection_ip_v4","connection_update_ip_v4","connection_ip_override_v4"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o,protocol:"v4"}))})},9605:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(12609));const o=["connection_auto_v6","connection_bind_v6","connection_mode_v6","connection_ip_v6","connection_update_ip_v6","connection_ip_override_v6"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o,protocol:"v6"}))})},92962:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(67977)),o=s(18603),a=s(76249),r=s(32347),l=s(27695),c=s(48117);const d=["tcp_port","udp_port","tls_port","preferred_port_mapper"],m=e=>{return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.Z,{description:e.moduleT.t("portsAutoValuesNote","Port numbers listed on this page can be overridden by port mappers (if enabled)"),icon:c.Z.INFO}),(0,i.jsx)(n.Z,Object.assign({},e,{keys:d,onFieldSetting:(t=e.moduleT,(e,s,i)=>{const n=s=>t.t((0,o.B3)(r.qm.HELP,e,void 0),s);"tcp_port"===e?s.help=n("TCP port is used for unencrypted transfers"):"tls_port"===e?s.help=n("TLS port (TCP) is used for encrypted transfers"):"udp_port"===e&&(s.help=n("UDP port is used for searching"))}),valueMode:a.Hi.FORCE_MANUAL}))]});var t}},12609:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=s(67294),o=s(67977),a=s(27695),r=s(48117),l=s(33612),c=s(76249);class d extends n.Component{constructor(){super(...arguments),this.state={autoDetectEnabled:!1},this.convertValue=e=>`${e}_${this.props.protocol}`,this.onFieldSetting=(e,t,s)=>{const i=s[this.convertValue("connection_mode")]!==l.Ui.INCOMING_DISABLED,n=s[this.convertValue("connection_auto")];i&&!n||0!==e.indexOf("connection_ip")&&0!==e.indexOf("connection_bind")&&0!==e.indexOf("connection_update_ip")&&0!==e.indexOf("connection_ip_override")||(t.disabled=!0),n&&0===e.indexOf("connection_mode")&&i&&(t.disabled=!0),i||0!==e.indexOf("connection_auto")||(t.disabled=!0)},this.onSettingValuesReceived=e=>{this.setState({autoDetectEnabled:e[this.convertValue("connection_auto")]})}}render(){return(0,i.jsxs)("div",{children:[this.state.autoDetectEnabled&&(0,i.jsx)(a.Z,{description:this.props.moduleT.t("protocolAutoValuesNote","Connectivity auto detection is currently enabled; setting values listed on this page are not being used"),icon:r.Z.INFO}),(0,i.jsx)(o.Z,Object.assign({},this.props,{onFieldSetting:this.onFieldSetting,onSettingValuesReceived:this.onSettingValuesReceived,valueMode:c.Hi.FORCE_MANUAL}))]})}}const m=d},50090:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(67977)),o=s(33612);const a=["outgoing_mode","socks_server","socks_port","socks_resolve","socks_user","socks_password","http_proxy"],r=(e,t,s)=>{s.outgoing_mode===o.XJ.OUTGOING_SOCKS||0!==e.indexOf("socks_")||(t.disabled=!0)},l=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:a,onFieldSetting:r}))})},76855:(e,t,s)=>{e.exports={url:"connectivity",title:"Connectivity",icon:"signal",component:s(45998).Z,menuItems:[{title:"Auto detection",url:"detection",noSave:!0,component:s(54191).Z}],advancedMenuItems:[{title:"IPv4 connectivity (manual)",url:"v4",component:s(59340).Z},{title:"IPv6 connectivity (manual)",url:"v6",component:s(9605).Z},{title:"Ports (manual)",url:"ports",component:s(92962).Z},{title:"Proxies",url:"proxies",component:s(50090).Z},{title:"Encryption",url:"encryption",component:s(36761).Z}]}},12851:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=(s(67294),s(67977));const o=["allow_slow_overlap","finished_remove_exit","use_partial_sharing"],a=["segmented_downloads","min_segment_size"],r=["socket_read_buffer","socket_write_buffer","buffer_size"],l=["compress_transfers","max_compression"],c=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({},e,{keys:a,title:t("Segments")})),(0,i.jsx)(n.Z,Object.assign({},e,{keys:l,title:t("Compression")})),(0,i.jsx)(n.Z,Object.assign({},e,{keys:r,title:t("Buffers")}))]})}},88325:(e,t,s)=>{"use strict";s.d(t,{Z:()=>P});var i=s(85893),n=s(67294),o=s(78110),a=s(90334),r=s(27695),l=s(67977),c=s(518),d=s(20097),m=s(1251),u=s(48117),A=s(76249),p=s(32347);const h={create:{displayName:"Add directory",access:A.PS.SETTINGS_EDIT,icon:u.Z.CREATE,handler:({location:e})=>{d.Z.push(`${e.pathname}/directories`)}}},g={edit:{displayName:"Edit directory",access:A.PS.SETTINGS_EDIT,icon:u.Z.EDIT,handler:({data:e,location:t})=>{d.Z.push(`${t.pathname}/directories/${e.id}`)}},remove:{displayName:"Remove directory",access:A.PS.SETTINGS_EDIT,icon:u.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the favorite directory {{item.name}}?",approveCaption:"Remove directory",rejectCaption:"Don't remove"},handler:({data:e})=>c.Z.delete(`${m.Z.DIRECTORIES_URL}/${e.id}`)}},x={create:{moduleId:p.jv.SETTINGS,subId:"favoriteDirectory",actions:h},edit:{moduleId:p.jv.SETTINGS,subId:"favoriteDirectory",actions:g}};var C=s(45807),v=s(42090),b=s(47021),f=s(28427),j=s(92245),y=s(18758),_=s(9781),E=s(43496),Z=s(61692),O=s(91894),S=s(18603);const T=[{key:"path",title:"Path",type:A.Y2.DIRECTORY_PATH},{key:"name",title:"Name",type:A.Y2.STRING}];class I extends n.Component{constructor(){super(...arguments),this.fieldDefinitions=(0,S.rv)(T,this.props.moduleT),this.isNew=()=>!this.props.directoryEntry,this.onFieldChanged=(e,t,s)=>-1!==e.indexOf("path")?Promise.resolve({name:t.path?(0,_.HD)(t.path):void 0}):null,this.save=()=>this.form.save(),this.onSave=e=>this.isNew()?c.Z.post(m.Z.DIRECTORIES_URL,e):c.Z.patch(`${m.Z.DIRECTORIES_URL}/${this.props.directoryEntry.id}`,e),this.onFieldSetting=(e,t,s)=>{"path"===e?(t.disabled=!this.isNew(),t.config=Object.assign(t.config||{},{historyId:O.Z.LOCATION_DOWNLOAD})):"name"===e&&(t.factory=y.ZP.form.Textbox,t.template=Z.Lt,t.config={suggestionGetter:()=>this.props.virtualNames})}}render(){const{moduleT:e,directoryEntry:t}=this.props,s=e.translate(this.isNew()?"Add favorite directory":"Edit favorite directory");return(0,i.jsx)(f.Z,Object.assign({className:"favorite-directory",title:s,onApprove:this.save,closable:!1,icon:u.Z.FOLDER},this.props,{children:(0,i.jsx)(E.Z,{ref:e=>this.form=e,fieldDefinitions:this.fieldDefinitions,onFieldChanged:this.onFieldChanged,onFieldSetting:this.onFieldSetting,onSave:this.onSave,sourceValue:t,location:this.props.location})}))}}I.displayName="FavoriteDirectoryDialog";const N=(0,j.ZP)((0,v.Z)(I,{urls:{virtualNames:m.Z.GROUPED_DIRECTORIES_URL,directoryEntry:({match:e},t)=>e.params.directoryId?t.get(`${m.Z.DIRECTORIES_URL}/${e.params.directoryId}`):Promise.resolve(void 0)},dataConverters:{virtualNames:e=>e.map((e=>e.name),[])}}),"directories/:directoryId([0-9A-Z]{39})?"),w=({directory:e})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(b.PC,{caption:(0,i.jsx)("strong",{children:e.name}),actions:x.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"path"},{children:e.path}))]}),B=e=>(0,i.jsx)(w,{directory:e},e.path),k=(0,v.Z)((({directories:e,moduleT:t})=>(0,i.jsxs)("div",Object.assign({id:"directory-table"},{children:[(0,i.jsx)(C.Z,{actions:x.create,actionId:"create"}),0===e.length?null:(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:t.translate("Name")}),(0,i.jsx)("th",{children:t.translate("Path")})]})}),(0,i.jsx)("tbody",{children:e.map(B)})]})),(0,i.jsx)(N,{moduleT:t})]}))),{urls:{directories:m.Z.DIRECTORIES_URL},onSocketConnected:(e,{refetchData:t})=>{e(m.Z.MODULE_URL,m.Z.DIRECTORIES_UPDATED,(()=>t()))}});var D=s(91462);const R=["download_directory"],P=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(l.Z,Object.assign({},e,{keys:R})),(0,i.jsx)(r.Z,{description:(0,i.jsx)(o.Z,Object.assign({url:a.Z.VARIABLE_HELP_URL},{children:e.moduleT.translate("Available path variables")})),icon:u.Z.INFO}),(0,i.jsxs)("div",Object.assign({className:"ui segment setting-form"},{children:[(0,i.jsx)(D.Z,{title:e.moduleT.translate("Favorite download directories"),icon:u.Z.FOLDER,size:"normal"}),(0,i.jsx)(k,{moduleT:e.moduleT})]}))]})},16897:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(67977));const o=["prio_highest_size","prio_high_size","prio_normal_size","prio_auto_default"],a=["prio_high_files_to_highest","prio_high_files","prio_high_files_regex"],r=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({title:t("File priorities")},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:t("High priority files")},e,{keys:a}))]})}},95302:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["auto_add_sources","alt_search_auto","alt_search_max_sources","max_sources_match_queue","allow_match_full_list"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},58845:(e,t,s)=>{"use strict";s.d(t,{Z:()=>O});var i=s(85893),n=s(67294),o=s(45807),a=s(42090),r=s(47021),l=s(518),c=s(20097),d=s(48117),m=s(76249),u=s(32347),A=s(38423);const p={create:{displayName:"Add type",access:m.PS.SETTINGS_EDIT,icon:d.Z.CREATE,handler:({location:e})=>{c.Z.push(`${e.pathname}/types`)}}},h={edit:{displayName:"Edit type",access:m.PS.SETTINGS_EDIT,icon:d.Z.EDIT,handler:({data:e,location:t})=>{c.Z.push(`${t.pathname}/types/${e.id}`)}},remove:{displayName:"Remove type",access:m.PS.SETTINGS_EDIT,icon:d.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the search type {{item.name}}?",approveCaption:"Remove type",rejectCaption:"Don't remove"},filter:e=>!e.default_type,handler:({data:e})=>l.Z.delete(`${A.Z.SEARCH_TYPES_URL}/${e.id}`)}},g={create:{moduleId:u.jv.SETTINGS,subId:"searchType",actions:p},edit:{moduleId:u.jv.SETTINGS,subId:"searchType",actions:h}};var x=s(28427),C=s(92245),v=s(43496),b=s(18603);const f=[{key:"name",title:"Name",type:m.Y2.STRING},{key:"extensions",title:"File extensions",type:m.Y2.LIST,item_type:m.Y2.STRING}];class j extends n.Component{constructor(){super(...arguments),this.fieldDefinitions=(0,b.rv)(f,this.props.moduleT),this.isNew=()=>!this.props.searchTypeEntry,this.save=()=>this.form.save(),this.onSave=e=>this.isNew()?l.Z.post(A.Z.SEARCH_TYPES_URL,e):l.Z.patch(`${A.Z.SEARCH_TYPES_URL}/${this.props.searchTypeEntry.id}`,e),this.onFieldSetting=(e,t,s)=>{if("name"===e){const{searchTypeEntry:e}=this.props;t.disabled=!!e&&e.default_type}}}render(){const{moduleT:e,searchTypeEntry:t}=this.props,s=e.translate(this.isNew()?"Add search type":"Edit search type");return(0,i.jsx)(x.Z,Object.assign({className:"search-type",title:s,onApprove:this.save,closable:!1,icon:d.Z.FOLDER},this.props,{children:(0,i.jsx)(v.Z,{ref:e=>this.form=e,fieldDefinitions:this.fieldDefinitions,onFieldSetting:this.onFieldSetting,onSave:this.onSave,sourceValue:t,location:this.props.location})}))}}j.displayName="SearchTypeDialog";const y=(0,C.ZP)((0,a.Z)(j,{urls:{searchTypeEntry:({match:e},t)=>e.params.searchTypeId?t.get(`${A.Z.SEARCH_TYPES_URL}/${e.params.searchTypeId}`):Promise.resolve(void 0)}}),"types/:searchTypeId?");var _=s(2445),E=s(27695);const Z=({type:e,moduleT:t})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(r.PC,{caption:(0,i.jsx)("strong",{children:e.str}),actions:g.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"extensions"},{children:e.extensions.join(", ")})),(0,i.jsx)("td",Object.assign({className:"default"},{children:(0,_.eb)(e.default_type,t.plainT)}))]}),O=(0,a.Z)((({searchTypes:e,moduleT:t})=>(0,i.jsxs)("div",Object.assign({id:"directory-table"},{children:[(0,i.jsx)(o.Z,{actions:g.create,actionId:"create"}),0===e.length?null:(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:t.translate("Name")}),(0,i.jsx)("th",{children:t.translate("File extensions")}),(0,i.jsx)("th",{children:t.translate("Default")})]})}),(0,i.jsx)("tbody",{children:e.map((e=>((e,t)=>(0,i.jsx)(Z,{type:e,moduleT:t},e.id))(e,t)))})]})),(0,i.jsx)(E.Z,{icon:d.Z.NOTE,description:t.t("searchTypesNote","Note; Custom search types will only be applied to ADC hubs! On NMDC hubs, using a predefined search type will only search for a set of predefined, unconfigurable extensions; using a custom type will default to searching for any extension.")}),(0,i.jsx)(y,{moduleT:t})]}))),{urls:{searchTypes:A.Z.SEARCH_TYPES_URL},onSocketConnected:(e,{refetchData:t})=>{e(A.Z.MODULE_URL,A.Z.SEARCH_TYPES_UPDATED,(()=>t()))}})},40934:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(67977));const o=["dont_download_shared","dont_download_queued","download_dupe_min_size"],a=["download_skiplist","download_skiplist_regex"],r=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:e.moduleT.translate("Skiplist")},e,{keys:a}))]})},96946:(e,t,s)=>{e.exports={url:"downloads",title:"Downloads",icon:"download",component:s(45998).Z,menuItems:[{title:"Locations",url:"locations",component:s(88325).Z}],advancedMenuItems:[{title:"Skipping options",url:"skipping-options",component:s(40934).Z},{title:"Search matching",url:"search-matching",component:s(95302).Z},{title:"Download options",url:"download-options",component:s(12851).Z},{title:"Priorities",url:"priorities",component:s(16897).Z},{title:"Search types",url:"search-types",component:s(58845).Z}]}},24795:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(70838)),o=s(90334),a=s(42090),r=s(78110),l=s(27695),c=s(89116),d=s(48117);const m=(0,a.Z)((({enginesStatus:e,moduleT:t})=>e[n.Z.DEFAULT_ENGINE]?null:(0,i.jsx)(l.Z,{description:(0,i.jsxs)(c.c,Object.assign({i18nKey:t.toI18nKey("defaultExtensionEngineMissing")},{children:["The default extension engine ",(0,i.jsx)("b",{children:n.Z.DEFAULT_ENGINE})," is not installed on your system. Please visit ",(0,i.jsx)(r.Z,Object.assign({url:o.Z.DEFAULT_ENGINE_URL},{children:"engine's home page"}))," for installation instructions."]})),icon:d.Z.WARNING})),{urls:{enginesStatus:n.Z.ENGINES_STATUS_URL},loaderText:null})},40733:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["extension_engines"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},94533:(e,t,s)=>{"use strict";s.d(t,{Z:()=>A});var i=s(85893),n=(s(67294),s(23776)),o=s(45807),a=s(24795),r=s(34657),l=s(70838),c=s(42090),d=(s(53597),s(34698));const m=(0,c.Z)((({packageCatalog:e,moduleT:t,installedPackages:s})=>(0,i.jsxs)("div",Object.assign({className:"extension-layout"},{children:[(0,i.jsx)("div",{className:"ui divider"}),e.length>0&&(0,i.jsx)("div",Object.assign({className:"ui divided items"},{children:e.map((e=>((e,t,s)=>{const n=s.find((t=>t.name===e.name));return(0,i.jsx)(r.Z,{npmPackage:e,installedPackage:n,moduleT:t},e.name)})(e.package,t,s)))}))]}))),{urls:{installedPackages:l.Z.EXTENSIONS_URL,packageCatalog:()=>(0,d.b)(l.Z.NPM_PACKAGES_URL,!0)},dataConverters:{packageCatalog:({objects:e})=>e},onSocketConnected:(e,{refetchData:t})=>{const s=()=>t(["installedPackages"]);e(l.Z.MODULE_URL,l.Z.ADDED,s),e(l.Z.MODULE_URL,l.Z.REMOVED,s),e(l.Z.MODULE_URL,l.Z.UPDATED,s)}});var u=s(77848);const A=({moduleT:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.Z,{moduleT:e}),(0,i.jsx)("div",Object.assign({className:"table-actions"},{children:(0,i.jsx)(o.Z,{actions:n.Z.install,actionId:"installUrl",className:"add"})})),(0,i.jsx)(m,{moduleT:e}),(0,i.jsx)(u.Z,{})]})},77848:(e,t,s)=>{"use strict";s.d(t,{Z:()=>p});var i=s(85893),n=s(67294),o=s(28427),a=s(43496),r=s(92245),l=s(42090),c=s(518),d=s(70838),m=s(48117);const u=e=>`${d.Z.EXTENSIONS_URL}/${e}/settings`;class A extends n.Component{constructor(){super(...arguments),this.save=()=>this.form.save(),this.onSave=e=>c.Z.patch(u(this.props.extension.id),e)}render(){const e=this.props,{extension:t,settings:s,fieldDefinitions:n}=e,r=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["extension","settings","fieldDefinitions"]);return(0,i.jsx)(o.Z,Object.assign({},r,{className:"extensions configure",title:t.name,onApprove:this.save,closable:!1,icon:m.Z.EDIT,dynamicHeight:!0},{children:(0,i.jsx)(a.Z,{ref:e=>this.form=e,onSave:this.onSave,fieldDefinitions:n,sourceValue:s,location:this.props.location})}))}}A.displayName="ExtensionsConfigureDialog";const p=(0,r.ZP)((0,l.Z)(A,{urls:{fieldDefinitions:({match:e})=>c.Z.get(`${u(e.params.extensionId)}/definitions`),settings:({match:e})=>c.Z.get(u(e.params.extensionId)),extension:({match:e},t)=>t.get(`${d.Z.EXTENSIONS_URL}/${e.params.extensionId}`)}}),"extensions/:extensionId")},32623:(e,t,s)=>{"use strict";s.d(t,{Z:()=>g});var i=s(85893),n=(s(67294),s(42090)),o=s(70838),a=s(24795),r=s(77848),l=s(73727),c=s(27695),d=s(34657),m=s(34698);const u=({name:e,description:t,version:s,_npmUser:i})=>({id:e,name:e,description:t,version:s,publisher:{username:i.name},date:""}),A=(0,n.Z)((({installedPackage:e,npmPackage:t,dataError:s,moduleT:n})=>(0,i.jsx)(d.Z,{installedPackage:e,npmPackage:t?u(t):void 0,npmError:s,moduleT:n},e.name)),{urls:{npmPackage:({installedPackage:e})=>e.private||!e.managed?Promise.resolve(void 0):(0,m.b)(`${o.Z.NPM_PACKAGE_URL}${e.name}/latest`,!0)},renderOnError:!0});var p=s(89116),h=s(48117);const g=(0,n.Z)((({installedPackages:e,moduleT:t})=>0===e.length?(0,i.jsx)(c.Z,{description:(0,i.jsxs)(p.c,Object.assign({i18nKey:t.toI18nKey("noInstalledExtensions")},{children:["No installed extensions were found. New extensions can be installed from the ",(0,i.jsx)(l.rU,Object.assign({to:"/settings/extensions/packages"},{children:"Extension catalog"}))," page."]})),icon:h.Z.INFO}):(0,i.jsxs)("div",Object.assign({className:"extension-layout"},{children:[(0,i.jsx)(a.Z,{moduleT:t}),(0,i.jsx)("div",{className:"ui divider"}),(0,i.jsx)("div",Object.assign({className:"ui divided items"},{children:e.map((e=>((e,t)=>(0,i.jsx)(A,{installedPackage:e,moduleT:t},e.name))(e,t)))})),(0,i.jsx)(r.Z,{})]}))),{urls:{installedPackages:o.Z.EXTENSIONS_URL},onSocketConnected:(e,{refetchData:t})=>{e(o.Z.MODULE_URL,o.Z.ADDED,(()=>t())),e(o.Z.MODULE_URL,o.Z.REMOVED,(()=>t())),e(o.Z.MODULE_URL,o.Z.UPDATED,(()=>t()))}})},44941:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["extensions_debug_mode","extensions_auto_update","extensions_init_timeout"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},34657:(e,t,s)=>{"use strict";s.d(t,{Z:()=>E});var i=s(85893),n=s(67294),o=s(30381),a=s.n(o),r=s(70838),l=s(20450),c=s(23776),d=s(45807),m=s(78110),u=s(47021),A=s(4333),p=s(48117),h=s(35936);const g=({npmPackage:e,installedPackage:t,hasUpdate:s,installing:n})=>t&&!s?null:(0,i.jsx)(d.Z,{actions:c.Z.npm,actionId:s?"updateNpm":"installNpm",className:"right floated primary",itemData:e,loading:n}),x=({npmPackage:e,installedPackage:t,hasUpdate:s,installing:n,moduleT:o})=>(0,i.jsxs)("div",Object.assign({className:"extra buttons"},{children:[e&&(0,i.jsx)(g,{npmPackage:e,installedPackage:t,hasUpdate:s,installing:n}),t&&(0,i.jsx)(u.PC,{actions:c.Z.manage,ids:["configure","divider","remove"],remoteMenuId:A.Z.EXTENSION,itemData:t,className:"right floated",caption:o.translate("Manage..."),button:!0,contextElement:"#setting-scroll-context",menuElementClassName:"left floated"}),e&&(0,i.jsxs)(m.Z,Object.assign({className:"ui right floated button",url:r.Z.NPM_HOMEPAGE_URL+e.name},{children:[(0,i.jsx)(h.Z,{icon:p.Z.OPEN}),o.translate("Read more")]})),t&&(0,i.jsx)(d.Z,{actions:c.Z.manage,actionId:t.running?"stop":"start",className:"right floated",itemData:t})]}));var C=s(39803),v=(s(53597),s(11485)),b=s(55019);const f=({title:e,packageInfo:t,className:s,moduleT:n})=>{if(!t)return null;const o=t.date?n.t("datePublished",{defaultValue:"{{version}} (published {{date}})",replace:{version:t.version,date:a()(t.date).from(a()())}}):t.version;return(0,i.jsxs)("div",Object.assign({className:s},{children:[`${e}: `,(0,i.jsx)("span",{children:o})]}))},j=(e,t,s)=>{let i;return s&&s.author&&(i=s.author),t&&(i=t.publisher.username),i?e.t("byAuthor",{defaultValue:"by {{author}}",replace:{author:i}}):null},y=(e,t,s)=>t&&!t.managed?e.translate("Unmanaged extension"):s?e.t("extensionDirectoryFetchError",{defaultValue:"Failed to fetch information from the extension directory: {{error}}",replace:{error:(0,b.Y3)(s)}}):e.translate("Non-listed extension");class _ extends n.PureComponent{constructor(){super(...arguments),this.state={installing:!1},this.onInstallationStarted=e=>{e.install_id===this.props.npmPackage.name&&this.setState({installing:!0})},this.onInstallationCompleted=e=>{e.install_id===this.props.npmPackage.name&&this.setState({installing:!1})}}componentDidMount(){const{addSocketListener:e,npmPackage:t}=this.props;t&&(e(r.Z.MODULE_URL,r.Z.INSTALLATION_STARTED,this.onInstallationStarted),e(r.Z.MODULE_URL,r.Z.INSTALLATION_SUCCEEDED,this.onInstallationCompleted),e(r.Z.MODULE_URL,r.Z.INSTALLATION_FAILED,this.onInstallationCompleted))}render(){const{npmPackage:e,installedPackage:t,npmError:s,moduleT:n}=this.props,{installing:o}=this.state,{translate:a}=n,r=!!t&&!!e&&(0,C.n4)(t.version,e.version)<0;return(0,i.jsxs)("div",Object.assign({className:"item extension"},{children:[(0,i.jsx)(l.Z,{installedPackage:t,hasUpdate:r}),(0,i.jsxs)("div",Object.assign({className:"content"},{children:[(0,i.jsx)("a",Object.assign({className:"header"},{children:e?e.name:t.name})),(0,i.jsx)("div",Object.assign({className:"meta author"},{children:j(n,e,t)})),(0,i.jsx)("div",Object.assign({className:"description"},{children:(0,i.jsx)("span",{children:e?e.description:t.description})})),(0,i.jsxs)("div",Object.assign({className:"extra version"},{children:[(0,i.jsx)(f,{className:"npm",title:a("Latest version"),packageInfo:e,moduleT:n}),(0,i.jsx)("div",{children:!e&&y(n,t,s)}),(0,i.jsx)(f,{className:e?r?"outdated":"latest":void 0,title:a("Installed version"),packageInfo:t,moduleT:n})]})),(0,i.jsx)(x,{installedPackage:t,npmPackage:e,installing:o,hasUpdate:r,moduleT:n})]}))]}))}}const E=(0,v.i)(_)},20450:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(35936)),o=s(48117);const a=(e,t)=>e?t?"yellow warning circle":e.managed?"green check circle":"blue external square":null,r=({installedPackage:e,hasUpdate:t,size:s="huge"})=>(0,i.jsx)("div",Object.assign({className:"ui image"},{children:(0,i.jsx)(n.Z,{icon:o.Z.EXTENSION,size:s,cornerIcon:a(e,t)})}))},81245:(e,t,s)=>{e.exports={url:"extensions",title:"Extensions",icon:"puzzle",component:s(45998).Z,menuItems:[{title:"Manage installed",url:"manage",noSave:!0,component:s(32623).Z},{title:"Extension catalog",url:"packages",noSave:!0,component:s(94533).Z}],advancedMenuItems:[{title:"Extension options",url:"extension-options",component:s(44941).Z},{title:"Extension engines",url:"extension-engines",component:s(40733).Z}]}},27359:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["away_message","away_no_bots","away_idle_time"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},71763:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(27745)),o=s(42090),a=s(27695),r=s(47021),l=s(4333);const c=({ignoreInfo:e})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"user dropdown"},{children:(0,i.jsx)(r.Ie,{ids:["unignore"],userIcon:"simple",user:e.user,contextElement:"#setting-scroll-context",remoteMenuId:l.Z.USER})})),(0,i.jsx)("td",Object.assign({className:"count"},{children:e.ignored_messages}))]}),d=e=>(0,i.jsx)(c,{ignoreInfo:e},e.user.cid),m=(0,o.Z)((({ignores:e,moduleT:t})=>{const{translate:s}=t;return 0===e.length?(0,i.jsx)(a.Z,{title:s("No ignored users")}):(0,i.jsx)("div",{children:(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:s("User")}),(0,i.jsx)("th",{children:s("Messages ignored")})]})}),(0,i.jsx)("tbody",{children:e.map(d)})]}))})}),{urls:{ignores:n.Z.IGNORES_URL},onSocketConnected:(e,{refetchData:t})=>{e(n.Z.MODULE_URL,n.Z.IGNORE_ADDED,(()=>t())),e(n.Z.MODULE_URL,n.Z.IGNORE_REMOVED,(()=>t()))}})},51033:(e,t,s)=>{"use strict";s.d(t,{Z:()=>E});var i=s(85893),n=(s(67294),s(67977)),o=s(66883),a=s(76249),r=s(32347),l=s(93379),c=s.n(l),d=s(7795),m=s.n(d),u=s(90569),A=s.n(u),p=s(3565),h=s.n(p),g=s(19216),x=s.n(g),C=s(44589),v=s.n(C),b=s(85951),f={};f.styleTagTransform=v(),f.setAttributes=h(),f.insert=A().bind(null,"head"),f.domAPI=m(),f.insertStyleElement=x(),c()(b.Z,f),b.Z&&b.Z.locals&&b.Z.locals;var j=s(89116),y=s(18603);const _=["auto_follow_redirects","disconnect_offline_users","disconnect_hubs_noreg","min_search_interval"],E=e=>{return o.Z.systemInfo.platform!==a.NN.WINDOWS&&_.push("nmdc_encoding"),(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:_,onFieldSetting:(t=e.moduleT,(e,s,n)=>{"nmdc_encoding"===e&&(s.help=(0,i.jsx)(j.c,Object.assign({i18nKey:t.toI18nKey((0,y.B3)(r.qm.HELP,e,void 0))},{children:(0,i.jsxs)("div",{children:["Encoding setting is only used in NMDC hubs. ADC hubs will always use UTF-8 encoding.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsxs)("div",{children:["Commonly used values:",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Central Europe: cp1250"}),(0,i.jsx)("li",{children:"Cyrillic: cp1251"}),(0,i.jsx)("li",{children:"Western Europe: cp1252"}),(0,i.jsx)("li",{children:"Greek: cp1253"}),(0,i.jsx)("li",{children:"Turkish: cp1254"}),(0,i.jsx)("li",{children:"Hebrew: cp1256"})]})]})]})})))})}))});var t}},12017:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=(s(67294),s(33612)),o=s(67977),a=s(32347),r=s(18603),l=s(78110),c=s(90334),d=s(89116);const m=["nick","description","email","setting_profile","language_file"],u=e=>{return(0,i.jsx)("div",{children:(0,i.jsx)(o.Z,Object.assign({},e,{keys:m,onFieldSetting:(t=e.moduleT,(e,s,o)=>{if("setting_profile"===e){let i;const l=o[e];switch(l){case n.A_.NORMAL:i="The client is used in normal private/public hubs for transferring files via internet. Use this profile if unsure.";break;case n.A_.RAR:i="The client is used for transferring files that are split in RAR archives (or in other small-sized formats)";break;case n.A_.LAN:i="The client is used for transferring files in local network (e.g. LAN parties) or in another closed network (e.g. university network)"}i&&(s.help=t.t((0,r.B3)(a.qm.HELP,e,l.toString()),i))}else"language_file"===e&&(s.help=(0,i.jsxs)(d.c,Object.assign({i18nKey:t.toI18nKey((0,r.B3)(a.qm.HELP,e,void 0))},{children:[(0,i.jsx)("p",{children:"The application must be restarted for the new language to take effect."}),(0,i.jsxs)("p",{children:["If you want to help with improving the existing translations or translate the application into a new language, please see the ",(0,i.jsx)(l.Z,Object.assign({url:c.Z.TRANSLATOR_HELP},{children:"instructions for translators"})),"."]})]})))})}))});var t}},98458:(e,t,s)=>{e.exports={url:"profile",title:"Profile",icon:"user",component:s(45998).Z,menuItems:[{title:"User",url:"user",component:s(12017).Z},{title:"Away mode",url:"away",component:s(27359).Z}],advancedMenuItems:[{title:"Ignored users",url:"ignored-users",noSave:!0,component:s(71763).Z},{title:"Miscellaneous",url:"miscellaneous",component:s(51033).Z}]}},47553:(e,t,s)=>{"use strict";s.d(t,{Z:()=>Z});var i=s(85893),n=s(67294),o=s(518),a=s(29416),r=s(4047),l=s(48117),c=s(20097),d=s(76249),m=s(32347);const u={add:{displayName:"Add path",access:d.PS.SETTINGS_EDIT,icon:l.Z.CREATE,handler:({location:e})=>{c.Z.push(`${e.pathname}/browse`)}}},A={remove:{displayName:"Remove path",access:d.PS.SETTINGS_EDIT,icon:l.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the excluded path {{item}}?",approveCaption:"Remove path",rejectCaption:"Don't remove"},handler:({data:e})=>o.Z.post(r.Z.EXCLUDES_REMOVE_URL,{path:e})}},p={create:{moduleId:m.jv.SETTINGS,subId:"shareExclude",actions:u},edit:{moduleId:m.jv.SETTINGS,subId:"shareExclude",actions:A}};var h=s(45807),g=s(47021),x=s(42090),C=s(72181),v=s(27695),b=s(91894),f=s(89519),j=s(89116);const y=({path:e})=>(0,i.jsx)("tr",{children:(0,i.jsx)("td",Object.assign({className:"path dropdown"},{children:(0,i.jsx)(g.PC,{caption:(0,i.jsx)("strong",{children:e}),actions:p.edit,itemData:e,contextElement:"#setting-scroll-context"})}))}),_=e=>(0,i.jsx)(y,{path:e},e);class E extends n.Component{render(){const{excludes:e,moduleT:t}=this.props,{translate:s,toI18nKey:n}=t;return(0,i.jsxs)("div",{children:[(0,i.jsx)(v.Z,{title:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)(j.c,Object.assign({i18nKey:n("shareRefreshNote")},{children:"Share must be refreshed for the changes to take effect"}))}),(0,i.jsx)("br",{}),(0,i.jsx)(h.Z,{actions:a.Z,actionId:"refresh"})]}),icon:l.Z.INFO}),(0,i.jsx)(h.Z,{actions:p.create,actionId:"add",className:"add"}),e.length>0&&(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:(0,i.jsx)("th",{children:s("Path")})})}),(0,i.jsx)("tbody",{children:e.map(_)})]})),(0,i.jsx)(C.$,{onConfirm:e=>(0,f.h9)((()=>o.Z.post(r.Z.EXCLUDES_ADD_URL,{path:e})),t.plainT),initialPath:"",historyId:b.Z.LOCATION_GENERIC,subHeader:s("Add excluded path"),selectMode:m.pC.DIRECTORY})]})}}E.displayName="ExcludePage";const Z=(0,x.Z)(E,{urls:{excludes:r.Z.EXCLUDES_URL},onSocketConnected:(e,{refetchData:t})=>{e(r.Z.MODULE_URL,r.Z.EXCLUDE_ADDED,(()=>t())),e(r.Z.MODULE_URL,r.Z.EXCLUDE_REMOVED,(()=>t()))}})},98124:(e,t,s)=>{"use strict";s.d(t,{Z:()=>y});var i=s(85893),n=s(67294),o=s(67977),a=s(518),r=s(42090),l=s(70516),c=s(84807),d=s(27695),m=s(98240),u=s(66883),A=s(2445),p=(s(56183),s(76249)),h=s(89116),g=s(89519),x=s(24101),C=s(48117);const v=({startHandler:e,running:t,moduleT:s})=>{const{toI18nKey:o,translate:a}=s,[r,m]=n.useState(!1);return(0,i.jsxs)("div",Object.assign({className:"optimize-layout"},{children:[(0,i.jsx)("h4",Object.assign({className:"header",style:{marginTop:"30px"}},{children:a("Maintenance")})),(0,i.jsx)(d.Z,{description:(0,i.jsx)(h.c,Object.assign({i18nKey:o("hashDBOptimizeNote")},{children:"This operation will delete all hash information for files that aren't currently in share. If you are sharing files from network disks or from a removable storage, make sure that the files are currently shown in share (otherwise they have to be rehashed)"})),icon:C.Z.NOTE}),(0,i.jsx)(l.Z,{caption:a("Verify integrity of hash data"),checked:r,disabled:t,onChange:m,floating:!0}),(0,i.jsx)(c.Z,{className:"optimize-button",caption:a("Optimize now"),icon:C.Z.CONFIGURE,loading:t,onClick:()=>e(r)})]}))};class b extends n.Component{constructor(){super(...arguments),this.handleOptimize=e=>{(0,g.h9)((()=>a.Z.post(m.Z.OPTIMIZE_DATABASE_URL,{verify:e})),this.props.moduleT.plainT)}}render(){const{status:e,moduleT:t}=this.props,{translate:s,plainT:n}=t;return(0,i.jsxs)("div",Object.assign({className:"ui segment hash-database"},{children:[(0,i.jsx)("h3",Object.assign({className:"header"},{children:s("Hash database")})),(0,i.jsxs)(x.rj,Object.assign({columns:"two"},{children:[(0,i.jsx)(x.X2,{title:s("File index size"),text:(0,A.BU)(e.file_index_size,n),titleWidth:"five"}),(0,i.jsx)(x.X2,{title:s("Hash store size"),text:(0,A.BU)(e.hash_store_size,n),titleWidth:"five"})]})),u.Z.hasAccess(p.PS.SETTINGS_EDIT)&&(0,i.jsx)(v,{running:e.maintenance_running,startHandler:this.handleOptimize,moduleT:t})]}))}}const f=(0,r.Z)(b,{urls:{status:m.Z.DATABASE_STATUS_URL},onSocketConnected:(e,{refetchData:t})=>{e(m.Z.MODULE_URL,m.Z.DATABASE_STATUS,(()=>t()))}}),j=["max_hash_speed","max_total_hashers","max_volume_hashers"],y=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,Object.assign({},e,{keys:j})),(0,i.jsx)(f,{moduleT:e.moduleT})]})},30669:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["refresh_time","refresh_time_incoming","refresh_startup","refresh_threading"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},79049:(e,t,s)=>{"use strict";s.d(t,{Z:()=>y});var i=s(85893),n=(s(67294),s(518)),o=s(45241),a=s(77744),r=s(82633),l=s(48117),c=s(76249),d=s(32347);const m=e=>!e.default,u={create:{displayName:"Add profile",access:c.PS.SETTINGS_EDIT,icon:l.Z.CREATE,input:{approveCaption:"Create",content:"Enter name for the profile",inputProps:{placeholder:"Enter name",required:!0}},handler:(e,t)=>n.Z.post(r.Z.PROFILES_URL,{name:t})}},A={browse:{displayName:"Browse files",access:c.PS.FILELISTS_VIEW,icon:l.Z.FILELIST,handler:({data:e,location:t})=>o.Z.ownList(t,e.id,a.Z)},divider:null,edit:{displayName:"Rename profile",access:c.PS.SETTINGS_EDIT,icon:l.Z.EDIT,input:e=>({approveCaption:"Rename",content:"Enter new name for the profile {{item.name}}",inputProps:{placeholder:"Enter name",defaultValue:e.name,required:!0}}),handler:({data:e},t)=>n.Z.patch(`${r.Z.PROFILES_URL}/${e.id}`,{name:t})},default:{displayName:"Set as default",access:c.PS.SETTINGS_EDIT,icon:l.Z.DEFAULT,filter:m,handler:({data:e})=>n.Z.post(`${r.Z.PROFILES_URL}/${e.id}/default`)},remove:{displayName:"Remove profile",access:c.PS.SETTINGS_EDIT,icon:l.Z.REMOVE,filter:m,confirmation:{content:"Are you sure that you want to remove the profile {{item.name}}?",approveCaption:"Remove profile",rejectCaption:"Don't remove"},handler:({data:e})=>n.Z.delete(r.Z.PROFILES_URL+"/"+e.id)}},p={create:{moduleId:d.jv.SETTINGS,subId:"profile",actions:u},edit:{moduleId:d.jv.SETTINGS,subId:"profile",actions:A}};var h=s(45807),g=s(47021),x=s(73727),C=s(27695),v=s(75426),b=s(2445),f=(s(56183),s(89116));const j=({profile:e,t})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(g.PC,{caption:(0,i.jsx)("strong",{children:e.str}),actions:p.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"size"},{children:(0,b.BU)(e.size,t)})),(0,i.jsx)("td",Object.assign({className:"files"},{children:e.files}))]}),y=(0,v.Z)((({moduleT:e,profiles:t})=>{const{translate:s,toI18nKey:n}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)(C.Z,{description:(0,i.jsx)("div",{children:(0,i.jsxs)(f.c,Object.assign({i18nKey:n("shareProfilesNote")},{children:[(0,i.jsx)("p",{children:"Queued files are shared via the partial file sharing feature in all hubs where the share has not been hidden, regardless of the configured share profiles."}),(0,i.jsxs)("p",{children:["Share profiles are assigned for individual directories from the ",(0,i.jsx)(x.rU,Object.assign({to:"/share"},{children:"Share"}))," page."]})]}))}),icon:l.Z.INFO}),(0,i.jsx)(h.Z,{actions:p.create,actionId:"create"}),(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:s("Name")}),(0,i.jsx)("th",{children:s("Total size")}),(0,i.jsx)("th",{children:s("Total files")})]})}),(0,i.jsx)("tbody",{children:t.map((t=>(0,i.jsx)(j,{profile:t,t:e.plainT},t.id)))})]}))]})}),!1,void 0,!1)},77849:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(67977));const o=["share_hidden","share_no_empty_dirs","share_no_zero_byte","share_follow_symlinks","share_max_size"],a=["share_skiplist","share_skiplist_regex"],r=e=>(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:e.moduleT.translate("Skiplist")},e,{keys:a}))]})},21253:(e,t,s)=>{e.exports={url:"sharing",title:"Sharing",icon:"tasks",component:s(45998).Z,menuItems:[{title:"Refresh options",url:"refresh-options",component:s(30669).Z},{title:"Share profiles",url:"profiles",noSave:!0,component:s(79049).Z}],advancedMenuItems:[{title:"Sharing options",url:"sharing-options",component:s(77849).Z},{title:"Hashing",url:"hashing",component:s(98124).Z},{title:"Excluded paths",url:"excludes",noSave:!0,component:s(47553).Z}]}},75870:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var i=s(85893),n=s(45697),o=s.n(n),a=s(67294),r=s(67977),l=s(518),c=s(33612),d=s(76249);class m extends a.Component{constructor(){super(...arguments),this.getAutoKey=()=>`${this.props.type}_auto_limits`,this.onFieldChanged=(e,t,s)=>{const i=this.getAutoKey();return e===i&&t[i]?l.Z.post(c.ZP.ITEMS_GET_URL,{keys:this.props.keys.filter((e=>e!==i)),value_mode:d.Hi.FORCE_AUTO}):null},this.onFieldSetting=(e,t,s)=>{s[this.getAutoKey()]&&e!==this.getAutoKey()&&(t.disabled=!0)}}render(){return(0,i.jsx)("div",Object.assign({className:"ui segment"},{children:(0,i.jsx)(r.Z,Object.assign({},this.props,{onFieldChanged:this.onFieldChanged,onFieldSetting:this.onFieldSetting}))}))}}m.propTypes={keys:o().array.isRequired,type:o().string.isRequired};const u=m},73608:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(75870)),o=s(67977);const a=["download_auto_limits","download_slots","download_max_start_speed"],r=["download_highest_prio_slots"],l=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:a,type:"download"})),(0,i.jsx)(o.Z,Object.assign({},e,{title:t("Manually set"),keys:r}))]})}},23590:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["upload_limit_main","download_limit_main"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},6918:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=(s(67294),s(78110)),o=s(90334),a=s(67977),r=s(89116);const l=["download_speed","upload_speed"],c=e=>{const{toI18nKey:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",Object.assign({className:"ui message"},{children:(0,i.jsxs)(r.c,Object.assign({i18nKey:t("connectionSpeedNote")},{children:["Please be as accurate as possible and set the ACTUAL speed of your connection. You may use an online tester, such as ",(0,i.jsx)(n.Z,Object.assign({url:o.Z.SPEEDTEST_URL},{children:"Speedtest.net"})),", to test your speed."]}))})),(0,i.jsx)(a.Z,Object.assign({},e,{keys:l}))]})}},20310:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(67977)),o=s(75870);const a=["upload_auto_limits","upload_slots","upload_auto_grant_speed","upload_max_granted"],r=["upload_minislot_size","upload_minislot_ext"],l=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,Object.assign({},e,{keys:a,type:"upload"})),(0,i.jsx)(n.Z,Object.assign({},e,{title:t("Manually set"),keys:r}))]})}},95496:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(75870));const o=["mcn_auto_limits","mcn_down","mcn_up"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o,type:"mcn"}))})},29205:(e,t,s)=>{e.exports={url:"speed-limits",title:"Speed and limits",icon:"dashboard",component:s(45998).Z,menuItems:[{title:"Connection speed",url:"speed",component:s(6918).Z},{title:"Bandwidth limiting",url:"limiter",component:s(23590).Z}],advancedMenuItems:[{title:"Download limits",url:"download-limits",component:s(73608).Z},{title:"Upload limits",url:"upload-limits",component:s(20310).Z},{title:"Per-user limits",url:"user-limits",component:s(95496).Z}]}},96860:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var i=s(85893),n=(s(67294),s(10223)),o=s(45807),a=s(67977);const r=["web_server_threads","default_idle_timeout","ping_interval","ping_timeout"],l=["share_file_validation_hook_timeout","share_directory_validation_hook_timeout","new_share_file_validation_hook_timeout","new_share_directory_validation_hook_timeout","outgoing_chat_message_hook_timeout","incoming_chat_message_hook_timeout","queue_add_bundle_hook_timeout","queue_add_bundle_file_hook_timeout","queue_add_source_hook_timeout","queue_bundle_finished_hook_timeout","queue_file_finished_hook_timeout","list_menuitems_hook_timeout"],c=e=>{const{translate:t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,{actions:n.Z,actionId:"restartWeb"}),(0,i.jsx)(a.Z,Object.assign({},e,{keys:r})),(0,i.jsx)("div",Object.assign({className:"ui header"},{children:t("Hook timeouts")})),(0,i.jsx)("div",Object.assign({className:"ui segment"},{children:(0,i.jsx)(a.Z,Object.assign({},e,{keys:l}))}))]})}},93516:(e,t,s)=>{"use strict";s.d(t,{Z:()=>b});var i=s(85893),n=s(67294),o=s(67977),a=s(78110),r=s(90334),l=s(27695),c=s(48117),d=s(35451),m=(s(95788),function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s});class u extends n.Component{constructor(){super(...arguments),this.state={enabled:!1},this.convertKey=e=>`log_${this.props.section}${e?`_${e}`:""}`,this.onSettingsReceived=e=>{this.setState({enabled:e[this.convertKey()]})},this.onEnableStateChanged=(e,t,s)=>{this.setState({enabled:t[e]})},this.onContentSetting=(e,t,s)=>{t.disabled=!this.state.enabled},this.getChildClass=e=>this.state.enabled?e+" active":e}render(){const e=[this.convertKey()],t=[this.convertKey("file"),this.convertKey("format")],s=this.props,{simple:n}=s,a=m(s,["simple"]);return(0,i.jsxs)("div",Object.assign({className:this.getChildClass("log-section")},{children:[(0,i.jsx)("div",Object.assign({className:this.getChildClass("title")},{children:(0,i.jsx)(o.Z,Object.assign({},a,{keys:e,onFieldChanged:this.onEnableStateChanged,onSettingValuesReceived:this.onSettingsReceived}))})),!n&&(0,i.jsx)("div",Object.assign({className:this.getChildClass("content")},{children:(0,i.jsx)(o.Z,Object.assign({},this.props,{keys:t,onFieldSetting:this.onContentSetting}))}))]}))}}const A=u;const p=e=>{const{title:t,sectionKeys:s,simpleKeys:o}=e,a=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["title","sectionKeys","simpleKeys"]);return(0,i.jsx)("div",{children:(0,i.jsxs)("div",Object.assign({className:"sections"},{children:[(0,i.jsx)("div",Object.assign({className:"ui header"},{children:t})),(0,i.jsx)(d.ZP,Object.assign({className:"styled",controlled:!0},{children:s.map((e=>(0,n.createElement)(A,Object.assign({},a,{key:e,section:e,simple:!!o&&-1!==o.indexOf(e)}))))}))]}))})};var h=s(89116);const g=["log_directory"],x=["main","pm","syslog","status"],C=["downloads","uploads","list_transfers"],v=["list_transfers"],b=e=>{const{translate:t,toI18nKey:s}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,Object.assign({},e,{keys:g})),(0,i.jsxs)("div",Object.assign({className:"sections"},{children:[(0,i.jsx)(l.Z,{icon:c.Z.INFO,description:(0,i.jsx)(a.Z,Object.assign({url:r.Z.VARIABLE_HELP_URL},{children:(0,i.jsx)(h.c,Object.assign({i18nKey:s("variableHelp")},{children:"Variable information for Filename and Format fields"}))}))}),(0,i.jsx)(p,Object.assign({},e,{sectionKeys:x,title:t("Messages")})),(0,i.jsx)(p,Object.assign({},e,{sectionKeys:C,title:t("Transfers"),simpleKeys:v}))]}))]})}},87684:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(85893),n=(s(67294),s(67977)),o=s(45807),a=s(27695),r=s(10223),l=s(48117);const c=["web_plain_port","web_plain_bind_address"],d=["web_tls_port","web_tls_bind_address","web_tls_certificate_path","web_tls_certificate_key_path"],m=e=>{const{t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,{actions:r.Z,actionId:"restartWeb"}),(0,i.jsx)("div",Object.assign({className:"ui header"},{children:"HTTP"})),(0,i.jsx)("div",Object.assign({className:"ui segment"},{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:c}))})),(0,i.jsx)("div",Object.assign({className:"ui header"},{children:"HTTPS"})),(0,i.jsxs)("div",Object.assign({className:"ui segment"},{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:d})),(0,i.jsx)(a.Z,{description:t("defaultCertNote","The default client certificate is used if the certificate paths are empty"),icon:l.Z.INFO})]}))]})}},48764:(e,t,s)=>{"use strict";s.d(t,{Z:()=>R});var i=s(85893),n=s(67294);const o="web_users",a=o,r=o;var l=s(518),c=s(20097),d=s(48117),m=s(66883),u=s(32347);const A={create:{displayName:"Add user",icon:d.Z.CREATE,handler:({location:e})=>{c.Z.push(`${e.pathname}/users`)}}},p={edit:{displayName:"Edit user",icon:d.Z.EDIT,handler:({data:e,location:t})=>{c.Z.push(`${t.pathname}/users/${e.id}`)}},remove:{displayName:"Remove user",filter:e=>e.id!==m.Z.user.id,icon:d.Z.REMOVE,confirmation:{content:"Are you sure that you want to remove the user {{item.username}}?",approveCaption:"Remove user",rejectCaption:"Don't remove"},handler:({data:e})=>l.Z.delete(`${r}/${e.id}`)}},h={create:{moduleId:u.jv.SETTINGS,subId:"webUser",actions:A},edit:{moduleId:u.jv.SETTINGS,subId:"webUser",actions:p}};var g=s(45807),x=s(28427),C=s(92245),v=s(94897),b=s(18758),f=s(70516),j=s(27695),y=s(76249),_=s(18603);var E,Z=s(43496),O=(s(95788),s(42090)),S=s(8717);!function(e){e.EDIT="Edit",e.VIEW="View",e.SEND_MESSAGES="Send messages"}(E||(E={}));const T={ADMIN:"Administrator",SEARCH:"Search",DOWNLOAD:"Download",TRANSFERS:"Transfers",EVENTS_VIEW:{title:"Events",action:E.VIEW},EVENTS_EDIT:{title:"Events",action:E.EDIT},QUEUE_VIEW:{title:"Queue",action:E.VIEW},QUEUE_EDIT:{title:"Queue",action:E.EDIT},FAVORITE_HUBS_VIEW:{title:"Favorite hubs",action:E.VIEW},FAVORITE_HUBS_EDIT:{title:"Favorite hubs",action:E.EDIT},SETTINGS_VIEW:{title:"Settings",action:E.VIEW},SETTINGS_EDIT:{title:"Settings",action:E.EDIT},FILESYSTEM_VIEW:{title:"Local filesystem",action:E.VIEW},FILESYSTEM_EDIT:{title:"Local filesystem",action:E.EDIT},HUBS_VIEW:{title:"Hubs",action:E.VIEW},HUBS_EDIT:{title:"Hubs",action:E.EDIT},HUBS_SEND:{title:"Hubs",action:E.SEND_MESSAGES},PRIVATE_CHAT_VIEW:{title:"Private chat",action:E.VIEW},PRIVATE_CHAT_EDIT:{title:"Private chat",action:E.EDIT},PRIVATE_CHAT_SEND:{title:"Private chat",action:E.SEND_MESSAGES},FILELISTS_VIEW:{title:"Filelists",action:E.VIEW},FILELISTS_EDIT:{title:"Filelists",action:E.EDIT},VIEW_FILE_VIEW:{title:"Viewed files",action:E.VIEW},VIEW_FILE_EDIT:{title:"Viewed files",action:E.EDIT}};class I extends n.Component{constructor(e){var t;super(e),this.isNew=()=>!this.props.user,this.save=()=>this.form.save(),this.onSave=e=>this.isNew()?l.Z.post(r,e):l.Z.patch(`${r}/${this.props.user.id}`,e),this.onFieldSetting=(e,t,s)=>{if("permissions"===e){const{user:e,moduleT:s}=this.props;t.factory=b.ZP.form.Select,t.template=(e=>b.ZP.form.Form.templates.select.clone({renderSelect:t=>{const s=t.options.filter((({value:e})=>-1===t.value.indexOf(y.PS.ADMIN)||e===y.PS.ADMIN)).map((({value:e,text:s})=>(0,i.jsx)(f.Z,{className:e,checked:-1!==t.value.indexOf(e),onChange:s=>((e,s)=>{t.onChange((0,_.Nl)(t.value,e,s))})(e,s),caption:s},e)));return(0,i.jsxs)("div",Object.assign({className:"permission-select"},{children:[(0,i.jsx)(j.Z,{description:e.t("adminPermissionNote","Administrator permission is required in order to access the System section in settings"),className:"small"}),s]}))}}))(s),t.disabled=!this.isNew()&&e.username===m.Z.user.username}else"password"===e?t.type="password":"username"===e&&(t.disabled=!this.isNew())},this.entry=(0,_.rv)((t=this.isNew(),[{key:"username",title:"User name",type:y.Y2.STRING},{key:"password",type:y.Y2.STRING,title:t?"Password":"New password",optional:!t},{key:"permissions",title:"Permissions",type:y.Y2.LIST,item_type:y.Y2.STRING}]),e.moduleT);const s=(0,S.o9)(e.moduleT,"permissionSelector"),n=this.entry.find((e=>"permissions"===e.key));Object.assign(n,{options:Object.keys(v.Z).reduce(((e,t)=>((e,t,s)=>{const i=T[t];return"string"==typeof i?e.push({id:v.Z[t],name:s.translate(i)}):e.push({id:v.Z[t],name:`${s.translate(i.title)} (${s.translate(i.action)})`}),e})(e,t,s)),[])})}render(){const e=this.props,{user:t,moduleT:s}=e,n=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s}(e,["user","moduleT"]),o=s.translate(this.isNew()?"Add web user":"Edit user");return(0,i.jsx)(x.Z,Object.assign({className:"web-user",title:o,onApprove:this.save,closable:!1,icon:d.Z.USER},n,{children:(0,i.jsx)(Z.Z,{ref:e=>this.form=e,fieldDefinitions:this.entry,onFieldSetting:this.onFieldSetting,onSave:this.onSave,sourceValue:this.props.user,location:this.props.location})}))}}I.displayName="WebUserDialog";const N=(0,C.ZP)((0,O.Z)(I,{urls:{user:({match:e},t)=>e.params.userId?t.get(`${r}/${e.params.userId}`):Promise.resolve(void 0)}}),"users/:userId?");var w=s(47021),B=s(2445);const k=({user:e,moduleT:t})=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",Object.assign({className:"name dropdown"},{children:(0,i.jsx)(w.PC,{caption:(0,i.jsx)("strong",{children:e.username}),actions:h.edit,itemData:e,contextElement:"#setting-scroll-context"})})),(0,i.jsx)("td",Object.assign({className:"permissions"},{children:-1!==e.permissions.indexOf(y.PS.ADMIN)?t.translate("Administrator"):e.permissions.length})),(0,i.jsx)("td",Object.assign({className:"sessions"},{children:e.active_sessions})),(0,i.jsx)("td",Object.assign({className:"last-login"},{children:(0,B.SY)(e.last_login)}))]});class D extends n.Component{render(){const{users:e,moduleT:t}=this.props,{translate:s}=t;return(0,i.jsxs)("div",{children:[(0,i.jsx)(g.Z,{actions:h.create,actionId:"create"}),(0,i.jsxs)("table",Object.assign({className:"ui striped table"},{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:s("Username")}),(0,i.jsx)("th",{children:s("Permissions")}),(0,i.jsx)("th",{children:s("Active sessions")}),(0,i.jsx)("th",{children:s("Last logged in")})]})}),(0,i.jsx)("tbody",{children:e.map((e=>(0,i.jsx)(k,{user:e,moduleT:t},e.username)))})]})),(0,i.jsx)(N,{moduleT:t})]})}}D.displayName="WebUsersPage";const R=(0,O.Z)(D,{urls:{users:r},onSocketConnected:(e,{refetchData:t})=>{e(a,"web_user_added",(()=>t())),e(a,"web_user_updated",(()=>t())),e(a,"web_user_removed",(()=>t()))}})},83997:(e,t,s)=>{const i=s(94897).Z;e.exports={url:"system",title:"System",icon:"settings",access:i.ADMIN,component:s(45998).Z,menuItems:[{title:"Users",url:"users",noSave:!0,component:s(48764).Z},{title:"Logging",url:"logging",component:s(93516).Z},{title:"Web server",url:"server-settings",component:s(87684).Z}],advancedMenuItems:[{title:"Advanced server settings",url:"advanced-server-settings",component:s(96860).Z}]}},30379:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["use_main_chat_notify","show_joins","format_release_names"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},28541:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var i=s(85893),n=(s(67294),s(67977));const o=["report_uploads","report_downloads","report_search_alternates","report_added_sources","report_blocked_share","report_hashed_files","report_scheduled_refreshes","report_filelist_dupes"],a=e=>(0,i.jsx)("div",{children:(0,i.jsx)(n.Z,Object.assign({},e,{keys:o}))})},90783:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s(85893),n=(s(67294),s(67977));const o=["history_search_max","history_download_max","history_chat_log_lines"],a=["history_hub_messages","history_pm_messages","history_log_messages"],r=["history_hub_sessions","history_pm_sessions","history_filelist_sessions"],l=e=>{const{t}=e.moduleT;return(0,i.jsxs)("div",{children:[(0,i.jsx)(n.Z,Object.assign({},e,{keys:o})),(0,i.jsx)(n.Z,Object.assign({title:t("maxMessageHistory","Maximum number of messages to cache")},e,{keys:a})),(0,i.jsx)(n.Z,Object.assign({title:t("maxSessionHistory","Maximum number of previously opened sessions")},e,{keys:r}))]})}},18682:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(85893),n=(s(67294),s(33612)),o=s(86216);const a=[n.Qp.UNREAD_LABEL_DELAY,n.Qp.BACKGROUND_IMAGE_URL,n.Qp.NO_INSTALL_PROMPT],r=e=>(0,i.jsx)("div",{children:(0,i.jsx)(o.Z,Object.assign({},e,{keys:a}))})},68066:(e,t,s)=>{"use strict";s.d(t,{Z:()=>f});var i=s(85893),n=(s(67294),s(33612)),o=s(86216),a=s(93379),r=s.n(a),l=s(7795),c=s.n(l),d=s(90569),m=s.n(d),u=s(3565),A=s.n(u),p=s(19216),h=s.n(p),g=s(44589),x=s.n(g),C=s(80001),v={};v.styleTagTransform=x(),v.setAttributes=A(),v.insert=m().bind(null,"head"),v.domAPI=c(),v.insertStyleElement=h(),r()(C.Z,v),C.Z&&C.Z.locals&&C.Z.locals;const b=[n.Qp.NOTIFY_MENTION,n.Qp.NOTIFY_PM_USER,n.Qp.NOTIFY_PM_BOT,n.Qp.NOTIFY_HUB_MESSAGE,n.Qp.NOTIFY_BUNDLE_STATUS,n.Qp.NOTIFY_EVENTS_INFO,n.Qp.NOTIFY_EVENTS_WARNING,n.Qp.NOTIFY_EVENTS_ERROR],f=e=>{const{translate:t}=e.moduleT;return(0,i.jsx)("div",{children:(0,i.jsx)(o.Z,Object.assign({title:t("Popup notifications")},e,{keys:b}))})}},14327:(e,t,s)=>{e.exports={url:"view",title:"View",icon:"browser",component:s(45998).Z,menuItems:[{title:"Notifications",url:"notifications",local:!0,component:s(68066).Z},{title:"Histories",url:"histories",component:s(90783).Z},{title:"Events",url:"events",component:s(28541).Z},{title:"Appearance",url:"appearance",component:s(30379).Z}],advancedMenuItems:[{title:"Miscellaneous",url:"miscellaneous",local:!0,component:s(18682).Z}]}},34698:(e,t,s)=>{"use strict";s.d(t,{S:()=>a,b:()=>r});var i=s(66883),n=s(37576),o=function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function r(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(a,r)}l((i=i.apply(e,t||[])).next())}))};const a=e=>o(void 0,void 0,void 0,(function*(){try{return(yield(0,n.r)(`${getBasePath()}temp`,{method:"POST",headers:{"X-Authorization":i.Z.authToken,Authorization:i.Z.authToken},body:e})).headers.get("Location")}catch(e){throw e}})),r=(e,t,s)=>o(void 0,void 0,void 0,(function*(){try{const o=yield(0,n.r)((e=>`${window.location.origin}${getBasePath()}proxy?url=${encodeURIComponent(e)}`)(e),Object.assign({headers:{"X-Authorization":i.Z.authToken,"Cache-Control":"no-store, must-revalidate, max-age=0"}},s));return(yield t)?o.json():o.text()}catch(t){throw console.error(`CORS HTTP request failed (${e})`,t),t}}))}}]);
2
+ //# sourceMappingURL=settings.7aeffada3e24ba15d447.chunk.js.map