(()=>{"use strict";vart,e={43474:(t,e,n)=>{vari=n(21777),o=n(53334),a=n(85471),r=n(35947);consts=null===(l=(0,i.HW)())?(0,r.YK)().setApp("core").build():(0,r.YK)().setApp("core").setUid(l.uid).build();varl,c=n(65043),p=n(63814),d=n(32981);letu;functionh(t,e,n){!function(t,e){if(e.has(t))thrownewTypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}functionm(t,e,n){returnfunction(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)thrownewTypeError("attempted to set read only private field");e.value=n}}(t,A(t,e,"set"),n),n}functionv(t,e){returnfunction(t,e){returne.get?e.get.call(t):e.value}(t,A(t,e,"get"))}functionA(t,e,n){if(!e.has(t))thrownewTypeError("attempted to "+n+" private field on non-instance");returne.get(t)}functionf(t,e,n){vari;return(e="symbol"==typeof(i=function(t,e){if("object"!=typeoft||!t)returnt;varn=t[Symbol.toPrimitive];if(void0!==n){vari=n.call(t,"string");if("object"!=typeofi)returni;thrownewTypeError("@@toPrimitive must return a primitive value.")}returnString(t)}(e))?i:String(i))int?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}classg{constructor(t){f(this,"value",void0),f(this,"next",void0),this.value=t}}varb=newWeakMap,C=newWeakMap,y=newWeakMap;u=Symbol.iterator;classw{constructor(){h(this,b,{writable:!0,value:void0}),h(this,C,{writable:!0,value:void0}),h(this,y,{writable:!0,value:void0}),this.clear()}enqueue(t){vare;constn=newg(t);v(this,b)?(v(this,C).next=n,m(this,C,n)):(m(this,b,n),m(this,C,n)),m(this,y,(e=v(this,y),++e))}dequeue(){vart;conste=v(this,b);if(e)returnm(this,b,v(this,b).next),m(this,y,(t=v(this,y),--t)),e.value}clear(){m(this,b,void0),m(this,C,void0),m(this,y,0)}getsize(){returnv(this,y)}*[u](){lett=v(this,b);for(;t;)yieldt.value,t=t.next}}functionx(t){if(!Number.isInteger(t)&&t!==Number.POSITIVE_INFINITY||!(t>0))thrownewTypeError("Expected `concurrency` to be a number from 1 and up");conste=neww;letn=0;consti=async(t,i,o)=>{n++;consta=(async()=>t(...o))();i(a);try{awaita}catch{}n--,e.size>0&&e.dequeue()()},o=function(o){for(vara=arguments.length,r=newArray(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];returnnewPromise((a=>{((o,a,r)=>{e.enqueue(i.bind(void0,o,a,r)),(async()=>{awaitPromise.resolve(),n<t&&e.size>0&&e.dequeue()()})()})(o,a,r)}))};returnObject.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o}var_=n(18740);constk={calendar:{description:(0,o.Tl)("core","Schedule work & meetings, synced with all your devices."),icon:(0,p.d0)("core","places/calendar.svg")},contacts:{description:(0,o.Tl)("core","Keep your colleagues and friends in one place without leaking their private info."),icon:(0,p.d0)("core","places/contacts.svg")},mail:{description:(0,o.Tl)("core","Simple email app nicely integrated with Files, Contacts and Calendar."),icon:(0,p.d0)("core","actions/mail.svg")},spreed:{description:(0,o.Tl)("core","Chatting, video calls, screensharing, online meetings and web conferencing – in your browser and with mobile apps."),icon:(0,p.d0)("core","apps/spreed.svg")},richdocuments:{name:"Nextcloud Office",description:(0,o.Tl)("core","Collaborative documents, spreadsheets and presentations, built on Collabora Online."),icon:(0,p.d0)("core","apps/richdocuments.svg")},notes:{description:(0,o.Tl)("core","Distraction free note taking app."),icon:(0,p.d0)("core","apps/notes.svg")},richdocumentscode:{hidden:!0}},I=Object.keys(k),T={name:"RecommendedApps",components:{NcButton:_.A},data:()=>({showInstallButton:!1,installingApps:!1,loadingApps:!0,loadingAppsError:!1,apps:[],defaultPageUrl:(0,d.C)("core","defaultPageUrl")}),computed:{recommendedApps(){returnthis.apps.filter((t=>I.includes(t.id)))}},asyncmounted(){try{const{data:t}=awaitc.Ay.get((0,p.Jv)("settings/apps/list"));s.info("".concat(t.apps.length," apps fetched")),this.apps=t.apps.map((t=>Object.assign(t,{loading:!1,installationError:!1}))),s.debug("".concat(this.recommendedApps.length," recommended apps found"),