12 |
- "use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[4529],{92973:(t,e,a)=>{a.d(e,{l:()=>n});var s=a(53334);const n=Object.freeze({discover:(0,s.Tl)("settings","Discover"),installed:(0,s.Tl)("settings","Your apps"),enabled:(0,s.Tl)("settings","Active apps"),disabled:(0,s.Tl)("settings","Disabled apps"),updates:(0,s.Tl)("settings","Updates"),"app-bundles":(0,s.Tl)("settings","App bundles"),featured:(0,s.Tl)("settings","Featured apps"),supported:(0,s.Tl)("settings","Supported apps")})},45834:(e,a,s)=>{s.d(a,{A:()=>l});var n=s(85168),i=s(65043),p=s(63814),o=s(61338);const r=()=>i.Ay.get((0,p.KT)("core/navigation",2)+"/apps?format=json").then((t=>{let{data:e}=t;200===e.ocs.meta.statuscode&&((0,o.Ic)("nextcloud:app-menu.refresh",{apps:e.ocs.data}),window.dispatchEvent(new Event("resize")))})),l={computed:{appGroups(){return this.app.groups.map((t=>({id:t,name:t})))},installing(){return this.app?.app_api?this.app&&!0===this?.appApiStore.getLoading("install"):this.$store.getters.loading("install")},isLoading(){return this.app?.app_api?this.app&&!0===this?.appApiStore.getLoading(this.app.id):this.app&&this.$store.getters.loading(this.app.id)},isInitializing(){return!!this.app?.app_api&&this.app&&("init"===this.app?.status?.action||"healthcheck"===this.app?.status?.action)},isDeploying(){return!!this.app?.app_api&&this.app&&"deploy"===this.app?.status?.action},isManualInstall(){return!!this.app?.app_api&&"manual-install"===this.app?.daemon?.accepts_deploy_id},updateButtonText(){return this.app?.app_api&&"manual-install"===this.app?.daemon?.accepts_deploy_id?t("settings","manual-install apps cannot be updated"):t("settings","Update to {version}",{version:this.app?.update})},enableButtonText(){return this.app?.app_api?this.app&&this.app?.status?.action&&"deploy"===this.app?.status?.action?t("settings","{progress}% Deploying …",{progress:this.app?.status?.deploy??0}):this.app&&this.app?.status?.action&&"init"===this.app?.status?.action?t("settings","{progress}% Initializing …",{progress:this.app?.status?.init??0}):this.app&&this.app?.status?.action&&"healthcheck"===this.app?.status?.action?t("settings","Health checking"):this.app.needsDownload?t("settings","Deploy and Enable"):t("settings","Enable"):this.app.needsDownload?t("settings","Download and enable"):t("settings","Enable")},disableButtonText(){if(this.app?.app_api){if(this.app&&this.app?.status?.action&&"deploy"===this.app?.status?.action)return t("settings","{progress}% Deploying …",{progress:this.app?.status?.deploy});if(this.app&&this.app?.status?.action&&"init"===this.app?.status?.action)return t("settings","{progress}% Initializing …",{progress:this.app?.status?.init});if(this.app&&this.app?.status?.action&&"healthcheck"===this.app?.status?.action)return t("settings","Health checking")}return t("settings","Disable")},forceEnableButtonText(){return this.app.needsDownload,t("settings","Allow untested app")},enableButtonTooltip(){return!this.app?.app_api&&this.app.needsDownload?t("settings","The app will be downloaded from the App Store"):null},forceEnableButtonTooltip(){const e=t("settings","This app is not marked as compatible with your Nextcloud version. If you continue you will still be able to install the app. Note that the app might not work as expected.");return this.app.needsDownload?e+" "+t("settings","The app will be downloaded from the App Store"):e},defaultDeployDaemonAccessible(){return!this.app?.app_api||!(!this.app?.daemon||"manual-install"!==this.app?.daemon?.accepts_deploy_id)||("docker-install"===this.app?.daemon?.accepts_deploy_id&&this.appApiStore.getDefaultDaemon?.name===this.app?.daemon?.name?!0===this?.appApiStore.getDaemonAccessible:this?.appApiStore.getDaemonAccessible)}},data:()=>({groupCheckedAppsData:!1}),mounted(){this.app&&this.app.groups&&this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},methods:{asyncFindGroup(t){return this.$store.dispatch("getGroups",{search:t,limit:5,offset:0})},isLimitedToGroups(t){return!this.app?.app_api&&(this.app.groups.length||this.groupCheckedAppsData)},setGroupLimit(){this.app?.app_api||this.groupCheckedAppsData||this.$store.dispatch("enableApp",{appId:this.app.id,groups:[]})},canLimitToGroups:t=>!(t.types&&t.types.includes("filesystem")||t.types.includes("prelogin")||t.types.includes("authentication")||t.types.includes("logging")||t.types.includes("prevent_group_restriction")||t?.app_api),addGroupLimitation(t){if(this.app?.app_api)return;const e=t.pop(),a=this.app.groups.concat([]).concat([e.id]);this.$store.dispatch("enableApp",{appId:this.app.id,groups:a})},removeGroupLimitation(t){if(this.app?.app_api)return;const e=this.app.groups.concat([]),a=e.indexOf(t.id);a>-1&&e.splice(a,1),this.$store.dispatch("enableApp",{appId:this.app.id,groups:e})},forceEnable(t){this.app?.app_api?this.appApiStore.forceEnableApp(t).then((()=>{r()})).catch((t=>{(0,n.Qg)(t)})):this.$store.dispatch("forceEnableApp",{appId:t,groups:[]}).then((t=>{r()})).catch((t=>{(0,n.Qg)(t)}))},enable(t){this.app?.app_api?this.appApiStore.enableApp(t).then((()=>{r()})).catch((t=>{(0,n.Qg)(t)})):this.$store.dispatch("enableApp",{appId:t,groups:[]}).then((t=>{r()})).catch((t=>{(0,n.Qg)(t)}))},disable(t){this.app?.app_api?this.appApiStore.disableApp(t).then((()=>{r()})).catch((t=>{(0,n.Qg)(t)})):this.$store.dispatch("disableApp",{appId:t}).then((t=>{r()})).catch((t=>{(0,n.Qg)(t)}))},async remove(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{this.app?.app_api?await this.appApiStore.uninstallApp(t,e):await this.$store.dispatch("uninstallApp",{appId:t,removeData:e}),await r()}catch(t){(0,n.Qg)(t)}},install(t){this.app?.app_api?this.appApiStore.enableApp(t).then((()=>{r()})).catch((t=>{(0,n.Qg)(t)})):this.$store.dispatch("enableApp",{appId:t}).then((t=>{r()})).catch((t=>{(0,n.Qg)(t)}))},update(t){this.app?.app_api?this.appApiStore.updateApp(t).then((()=>{r()})).catch((t=>{(0,n.Qg)(t)})):this.$store.dispatch("updateApp",{appId:t}).catch((t=>{(0,n.Qg)(t)})).then((()=>{r(),this.store.updateCount=Math.max(this.store.updateCount-1,0)}))}}}},86438:(t,e,a)=>{a.d(e,{A:()=>n});var s=a(9165);const n=Object.freeze({discover:s.tZc,installed:s.Gbn,enabled:s.Tfj,disabled:s.hyP,bundles:s.nSK,supported:s.Yk,featured:s.ZL5,updates:s.XCd,auth:s.EYN,customization:s.CZ3,dashboard:s.o7l,files:s.fEr,games:s.FeJ,integration:s.bur,monitoring:s.y48,multimedia:s.WI,office:s.Ku3,organization:s.TO3,search:s.U4M,security:s.JiW,social:s.Krx,tools:s.QKT,workflow:s.Dgm})},62938:(t,e,a)=>{a.d(e,{a:()=>u});var s=a(65043),n=a(56760),i=a(85168),p=a(32981),o=a(53334),r=a(63814),l=a(65899),c=a(6028),d=a(36620),A=a(85471);const u=(0,l.nY)("app-api-apps",{state:()=>({apps:[],updateCount:(0,p.C)("settings","appstoreExAppUpdateCount",0),loading:{},loadingList:!1,statusUpdater:null,daemonAccessible:(0,p.C)("settings","defaultDaemonConfigAccessible",!1),defaultDaemon:(0,p.C)("settings","defaultDaemonConfig",null)}),getters:{getLoading:t=>e=>t.loading[e]??!1,getAllApps:t=>t.apps,getUpdateCount:t=>t.updateCount,getDaemonAccessible:t=>t.daemonAccessible,getDefaultDaemon:t=>t.defaultDaemon,getAppStatus:t=>e=>t.apps.find((t=>t.id===e))?.status||null,getStatusUpdater:t=>t.statusUpdater,getInitializingOrDeployingApps:t=>t.apps.filter((t=>t?.status?.action&&("deploy"===t?.status?.action||"init"===t.status.action||"healthcheck"===t.status.action)&&""!==t.status.type))},actions:{appsApiFailure(t){(0,i.Qg)((0,o.Tl)("settings","An error occurred during the request. Unable to proceed.")+"<br>"+t.error.response.data.data.message,{isHTML:!0}),d.A.error(t)},setLoading(t,e){A.Ay.set(this.loading,t,e)},setError(t,e){(Array.isArray(t)?t:[t]).forEach((t=>{const a=this.apps.find((e=>e.id===t));a&&(a.error=e)}))},enableApp(t){return this.setLoading(t,!0),this.setLoading("install",!0),(0,n.C5)().then((()=>s.Ay.post((0,r.Jv)(`/apps/app_api/apps/enable/${t}`)).then((e=>{this.setLoading(t,!1),this.setLoading("install",!1);const a=this.apps.find((e=>e.id===t));return a&&(a.installed||(a.installed=!0,a.needsDownload=!1,a.daemon=this.defaultDaemon,a.status={type:"install",action:"deploy",init:0,deploy:0}),a.active=!0,a.canUnInstall=!1,a.removable=!0,a.error=""),this.updateAppsStatus(),s.Ay.get((0,r.Jv)("apps/files")).then((()=>{e.data.update_required&&((0,i.cf)((0,o.Tl)("settings","The app has been enabled but needs to be updated."),{onClick:()=>window.location.reload(),close:!1}),setTimeout((()=>{location.reload()}),5e3))})).catch((()=>{this.setError(t,(0,o.Tl)("settings","Error: This app cannot be enabled because it makes the server unstable"))}))})).catch((e=>{this.setLoading(t,!1),this.setLoading("install",!1),this.setError(t,e.response.data.data.message),this.appsApiFailure({appId:t,error:e})}))))},forceEnableApp(t){return this.setLoading(t,!0),this.setLoading("install",!0),(0,n.C5)().then((()=>c.A.post((0,r.Jv)("/apps/app_api/apps/force"),{appId:t}).then((()=>{location.reload()})).catch((e=>{this.setLoading(t,!1),this.setLoading("install",!1),this.setError(t,e.response.data.data.message),this.appsApiFailure({appId:t,error:e})}))))},disableApp(t){return this.setLoading(t,!0),(0,n.C5)().then((()=>c.A.get((0,r.Jv)(`apps/app_api/apps/disable/${t}`)).then((()=>{this.setLoading(t,!1);const e=this.apps.find((e=>e.id===t));return e&&(e.active=!1,e.removable&&(e.canUnInstall=!0)),!0})).catch((e=>{this.setLoading(t,!1),this.appsApiFailure({appId:t,error:e})}))))},uninstallApp(t,e){return this.setLoading(t,!0),(0,n.C5)().then((()=>c.A.get((0,r.Jv)(`/apps/app_api/apps/uninstall/${t}?removeData=${e}`)).then((()=>{this.setLoading(t,!1);const e=this.apps.find((e=>e.id===t));return e&&(e.active=!1,e.needsDownload=!0,e.installed=!1,e.canUnInstall=!1,e.canInstall=!0,e.daemon=null,e.status={},null!==e.update&&this.updateCount--,e.update=void 0),!0})).catch((e=>{this.setLoading(t,!1),this.appsApiFailure({appId:t,error:e})}))))},updateApp(t){return this.setLoading(t,!0),this.setLoading("install",!0),(0,n.C5)().then((()=>c.A.get((0,r.Jv)(`/apps/app_api/apps/update/${t}`)).then((()=>{this.setLoading(t,!1),this.setLoading("install",!1);const e=this.apps.find((e=>e.id===t));if(e){const t=e.update;e.update=void 0,e.version=t||e.version,e.status={type:"update",action:"deploy",init:0,deploy:0},e.error=""}return this.updateCount--,this.updateAppsStatus(),!0})).catch((e=>{this.setLoading(t,!1),this.setLoading("install",!1),this.appsApiFailure({appId:t,error:e})}))))},async fetchAllApps(){this.loadingList=!0;try{const t=await c.A.get((0,r.Jv)("/apps/app_api/apps/list"));return this.apps=t.data.apps,this.loadingList=!1,!0}catch(t){d.A.error(t),(0,i.Qg)((0,o.Tl)("settings","An error occurred during the request. Unable to proceed.")),this.loadingList=!1}},async fetchAppStatus(t){return c.A.get((0,r.Jv)(`/apps/app_api/apps/status/${t}`)).then((e=>{const a=this.apps.find((e=>e.id===t));a&&(a.status=e.data);const s=this.getInitializingOrDeployingApps;console.debug("initializingOrDeployingApps after setAppStatus",s),0===s.length&&(console.debug("clearing interval"),clearInterval(this.statusUpdater),this.statusUpdater=null),Object.hasOwn(e.data,"error")&&""!==e.data.error&&1===s.length&&(clearInterval(this.statusUpdater),this.statusUpdater=null)})).catch((e=>{this.appsApiFailure({appId:t,error:e}),this.apps=this.apps.filter((e=>e.id!==t)),this.updateAppsStatus()}))},updateAppsStatus(){clearInterval(this.statusUpdater),0!==this.getInitializingOrDeployingApps.length&&(this.statusUpdater=setInterval((()=>{const t=this.getInitializingOrDeployingApps;console.debug("initializingOrDeployingApps",t),t.forEach((t=>{this.fetchAppStatus(t.id)}))}),2e3))}}})},846:(t,e,a)=>{a.d(e,{T:()=>A});var s=a(85168),n=a(32981),i=a(53334),p=a(63814),o=a(65899),r=a(65043),l=a(36620),c=a(86438);const d=()=>(0,s.Qg)((0,i.Tl)("settings","An error occurred during the request. Unable to proceed.")),A=(0,o.nY)("settings-apps",{state:()=>({apps:[],categories:[],updateCount:(0,n.C)("settings","appstoreUpdateCount",0),loading:{apps:!1,categories:!1},loadingList:!1,gettingCategoriesPromise:null}),actions:{async loadCategories(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!(this.categories.length>0)||t)try{this.loading.categories=!0;const{data:t}=await r.Ay.get((0,p.Jv)("settings/apps/categories"));for(const e of t)e.icon=c.A[e.id]??"";this.$patch({categories:t})}catch(t){l.A.error(t),d()}finally{this.loading.categories=!1}},async loadApps(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!(this.apps.length>0)||t)try{this.loading.apps=!0;const{data:t}=await r.Ay.get((0,p.Jv)("settings/apps/list"));this.$patch({apps:t.apps})}catch(t){l.A.error(t),d()}finally{this.loading.apps=!1}},getCategoryById(t){return this.categories.find((e=>{let{id:a}=e;return a===t}))??null},getAppById(t){return this.apps.find((e=>{let{id:a}=e;return a===t}))??null}}})},48162:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".apps-list[data-v-15b8f118]{display:flex;flex-wrap:wrap;align-content:flex-start}.apps-list--move[data-v-15b8f118]{transition:transform 1s}.apps-list #app-list-update-all[data-v-15b8f118]{margin-inline-start:10px}.apps-list__toolbar[data-v-15b8f118]{height:60px;padding:8px;padding-inline-start:60px;width:100%;background-color:var(--color-main-background);position:sticky;top:0;z-index:1;display:flex;align-items:center}.apps-list--list-view[data-v-15b8f118]{margin-bottom:100px;position:relative}.apps-list__list-container[data-v-15b8f118]{width:100%}.apps-list__store-container[data-v-15b8f118]{display:flex;flex-wrap:wrap}.apps-list__bundle-heading[data-v-15b8f118]{display:flex;align-items:center;margin-block:20px;margin-inline:0 10px}.apps-list__bundle-header[data-v-15b8f118]{margin-block:0;margin-inline:50px 10px;font-weight:bold;font-size:20px;line-height:30px;color:var(--color-text-light)}#apps-list-search .app-item h2[data-v-15b8f118]{margin-bottom:0}","",{version:3,sources:["webpack://./apps/settings/src/components/AppList.vue"],names:[],mappings:"AAIA,4BACC,YAAA,CACA,cAAA,CACA,wBAAA,CAGA,kCACC,uBAAA,CAGD,iDACC,wBAAA,CAGD,qCACC,WAjBe,CAkBf,WAnBgB,CAqBhB,yBApBe,CAqBf,UAAA,CACA,6CAAA,CACA,eAAA,CACA,KAAA,CACA,SAAA,CACA,YAAA,CACA,kBAAA,CAGD,uCACC,mBAAA,CAEA,iBAAA,CAGD,4CACC,UAAA,CAGD,6CACC,YAAA,CACA,cAAA,CAGD,4CACC,YAAA,CACA,kBAAA,CACA,iBAAA,CACA,oBAAA,CAGD,2CACC,cAAA,CACA,uBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,6BAAA,CAMA,gDACC,eAAA",sourceRoot:""}]);const o=p},45520:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".app-daemon-badge[data-v-4e5b1dd0]{color:var(--color-text-maxcontrast);background-color:rgba(0,0,0,0);border:1px solid var(--color-text-maxcontrast);border-radius:var(--border-radius);display:flex;flex-direction:row;gap:6px;padding:3px 6px;width:fit-content}","",{version:3,sources:["webpack://./apps/settings/src/components/AppList/AppDaemonBadge.vue"],names:[],mappings:"AACA,mCACC,mCAAA,CACA,8BAAA,CACA,8CAAA,CACA,kCAAA,CAEA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,eAAA,CACA,iBAAA",sourceRoot:""}]);const o=p},44005:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,'/*!\n * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */.app-item[data-v-77df2b64]{position:relative}.app-item[data-v-77df2b64]:hover{background-color:var(--color-background-dark)}.app-item--list-view[data-v-77df2b64]{--app-item-padding: calc(var(--default-grid-baseline) * 2);--app-item-height: calc(var(--default-clickable-area) + var(--app-item-padding) * 2)}.app-item--list-view.app-item--selected[data-v-77df2b64]{background-color:var(--color-background-dark)}.app-item--list-view>*[data-v-77df2b64]{vertical-align:middle;border-bottom:1px solid var(--color-border);padding:var(--app-item-padding);height:var(--app-item-height)}.app-item--list-view .app-image[data-v-77df2b64]{width:var(--default-clickable-area);height:auto;text-align:end}.app-item--list-view .app-image-icon svg[data-v-77df2b64],.app-item--list-view .app-image-icon .icon-settings-dark[data-v-77df2b64]{margin-top:5px;width:20px;height:20px;opacity:.5;background-size:cover;display:inline-block}.app-item--list-view .app-name[data-v-77df2b64]{padding:0 var(--app-item-padding)}.app-item--list-view .app-name--link[data-v-77df2b64]{height:var(--app-item-height);display:flex;align-items:center}.app-item--list-view .app-name--link[data-v-77df2b64]::after{content:"";position:absolute;inset-inline:0;height:var(--app-item-height)}.app-item--list-view .app-actions[data-v-77df2b64]{display:flex;gap:var(--app-item-padding);flex-wrap:wrap;justify-content:end}.app-item--list-view .app-actions .icon-loading-small[data-v-77df2b64]{display:inline-block;top:4px;margin-inline-end:10px}@media only screen and (max-width: 900px){.app-item--list-view .app-version[data-v-77df2b64],.app-item--list-view .app-level[data-v-77df2b64]{display:none}}@media only screen and (max-width: 512px){.app-item--list-view .app-actions[data-v-77df2b64]{display:none}}.app-item--store-view[data-v-77df2b64]{padding:30px}.app-item--store-view .app-image-icon .icon-settings-dark[data-v-77df2b64]{width:100%;height:150px;background-size:45px;opacity:.5}.app-item--store-view .app-image-icon svg[data-v-77df2b64]{position:absolute;bottom:43px;width:64px;height:64px;opacity:.1}.app-item--store-view .app-name[data-v-77df2b64]{margin:5px 0}.app-item--store-view .app-name--link[data-v-77df2b64]::after{content:"";position:absolute;inset-block:0;inset-inline:0}.app-item--store-view .app-actions[data-v-77df2b64]{margin:10px 0}@media only screen and (min-width: 1601px){.app-item--store-view[data-v-77df2b64]{width:25%}.app-item--store-view.app-item--with-sidebar[data-v-77df2b64]{width:33%}}@media only screen and (max-width: 1600px){.app-item--store-view[data-v-77df2b64]{width:25%}.app-item--store-view.app-item--with-sidebar[data-v-77df2b64]{width:33%}}@media only screen and (max-width: 1400px){.app-item--store-view[data-v-77df2b64]{width:33%}.app-item--store-view.app-item--with-sidebar[data-v-77df2b64]{width:50%}}@media only screen and (max-width: 900px){.app-item--store-view[data-v-77df2b64]{width:50%}.app-item--store-view.app-item--with-sidebar[data-v-77df2b64]{width:100%}}@media only screen and (max-width: 1024px){.app-item--store-view[data-v-77df2b64]{width:50%}}@media only screen and (max-width: 480px){.app-item--store-view[data-v-77df2b64]{width:100%}}.app-icon[data-v-77df2b64]{filter:var(--background-invert-if-bright)}.app-image[data-v-77df2b64]{position:relative;height:150px;opacity:1;overflow:hidden}.app-image img[data-v-77df2b64]{width:100%}.app-version[data-v-77df2b64]{color:var(--color-text-maxcontrast)}',"",{version:3,sources:["webpack://./core/css/variables.scss","webpack://./apps/settings/src/components/AppList/AppItem.vue"],names:[],mappings:"AAEA;;;EAAA,CCEA,2BACC,iBAAA,CAEA,iCACC,6CAAA,CAGD,sCACC,0DAAA,CACA,oFAAA,CAEA,yDACC,6CAAA,CAGD,wCACC,qBAAA,CACA,2CAAA,CACA,+BAAA,CACA,6BAAA,CAGD,iDACC,mCAAA,CACA,WAAA,CACA,cAAA,CAGD,oIAEC,cAAA,CACA,UAAA,CACA,WAAA,CACA,UAAA,CACA,qBAAA,CACA,oBAAA,CAGD,gDACC,iCAAA,CAGD,sDACC,6BAAA,CACA,YAAA,CACA,kBAAA,CAMD,6DACC,UAAA,CACA,iBAAA,CACA,cAAA,CACA,6BAAA,CAGD,mDACC,YAAA,CACA,2BAAA,CACA,cAAA,CACA,mBAAA,CAEA,uEACC,oBAAA,CACA,OAAA,CACA,sBAAA,CAKF,0CACC,oGAEC,YAAA,CAAA,CAKF,0CACC,mDACC,YAAA,CAAA,CAKH,uCACC,YAAA,CAEA,2EACC,UAAA,CACA,YAAA,CACA,oBAAA,CACA,UAAA,CAGD,2DACC,iBAAA,CACA,WAAA,CAEA,UAAA,CACA,WAAA,CACA,UAAA,CAGD,iDACC,YAAA,CAGD,8DACC,UAAA,CACA,iBAAA,CACA,aAAA,CACA,cAAA,CAGD,oDACC,aAAA,CAGD,2CAlCD,uCAmCE,SAAA,CAEA,8DACC,SAAA,CAAA,CAIF,2CA1CD,uCA2CE,SAAA,CAEA,8DACC,SAAA,CAAA,CAIF,2CAlDD,uCAmDE,SAAA,CAEA,8DACC,SAAA,CAAA,CAIF,0CA1DD,uCA2DE,SAAA,CAEA,8DACC,UAAA,CAAA,CAIF,2CAlED,uCAmEE,SAAA,CAAA,CAGD,0CAtED,uCAuEE,UAAA,CAAA,CAKH,2BACC,yCAAA,CAGD,4BACC,iBAAA,CACA,YAAA,CACA,SAAA,CACA,eAAA,CAEA,gCACC,UAAA,CAIF,8BACC,mCAAA",sourceRoot:""}]);const o=p},13331:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".app-level-badge[data-v-5ee601b2]{color:var(--color-text-maxcontrast);background-color:rgba(0,0,0,0);border:1px solid var(--color-text-maxcontrast);border-radius:var(--border-radius);display:flex;flex-direction:row;gap:6px;padding:3px 6px;width:fit-content}.app-level-badge--supported[data-v-5ee601b2]{border-color:var(--color-success);color:var(--color-success)}","",{version:3,sources:["webpack://./apps/settings/src/components/AppList/AppLevelBadge.vue"],names:[],mappings:"AACA,kCACC,mCAAA,CACA,8BAAA,CACA,8CAAA,CACA,kCAAA,CAEA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,eAAA,CACA,iBAAA,CAEA,6CACC,iCAAA,CACA,0BAAA",sourceRoot:""}]);const o=p},63021:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".app-discover[data-v-bb597eea]{max-width:1008px;margin-inline:auto;padding-inline:54px;padding-block-end:var(--default-clickable-area, 44px);display:flex;flex-direction:column;gap:var(--default-clickable-area, 44px)}","",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreDiscover/AppStoreDiscoverSection.vue"],names:[],mappings:"AACA,+BACC,gBAAA,CACA,kBAAA,CACA,mBAAA,CAEA,qDAAA,CAEA,YAAA,CACA,qBAAA,CACA,uCAAA",sourceRoot:""}]);const o=p},17971:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".daemon[data-v-10be429c]{padding:20px}.daemon h4[data-v-10be429c]{font-weight:bold;margin:10px auto}","",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreSidebar/AppDeployDaemonTab.vue"],names:[],mappings:"AACA,yBACE,YAAA,CAEA,4BACE,gBAAA,CACA,gBAAA",sourceRoot:""}]);const o=p},3007:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".app-description[data-v-cf0a1ae6]{padding:12px}","",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreSidebar/AppDescriptionTab.vue"],names:[],mappings:"AACA,kCACC,YAAA",sourceRoot:""}]);const o=p},22965:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,'.app-details[data-v-0cb80a14]{padding:20px}.app-details__actions-manage[data-v-0cb80a14]{display:flex}.app-details__actions-manage input[data-v-0cb80a14]{flex:0 1 auto;min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.app-details__authors[data-v-0cb80a14]{color:var(--color-text-maxcontrast)}.app-details__section[data-v-0cb80a14]{margin-top:15px}.app-details__section h4[data-v-0cb80a14]{font-size:16px;font-weight:bold;margin-block-end:5px}.app-details__interact[data-v-0cb80a14]{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}.app-details__documentation a[data-v-0cb80a14]{text-decoration:underline}.app-details__documentation li[data-v-0cb80a14]{padding-inline-start:20px}.app-details__documentation li[data-v-0cb80a14]::before{width:5px;height:5px;border-radius:100%;background-color:var(--color-main-text);content:"";float:inline-start;margin-inline-start:-13px;position:relative;top:10px}.force[data-v-0cb80a14]{color:var(--color-error);border-color:var(--color-error);background:var(--color-main-background)}.force[data-v-0cb80a14]:hover,.force[data-v-0cb80a14]:active{color:var(--color-main-background);border-color:var(--color-error) !important;background:var(--color-error)}.missing-dependencies[data-v-0cb80a14]{list-style:initial;list-style-type:initial;list-style-position:inside}',"",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreSidebar/AppDetailsTab.vue"],names:[],mappings:"AACA,8BACC,YAAA,CAIC,8CAEC,YAAA,CACA,oDACC,aAAA,CACA,WAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CAIH,uCACC,mCAAA,CAGD,uCACC,eAAA,CAEA,0CACC,cAAA,CACA,gBAAA,CACA,oBAAA,CAIF,wCACC,YAAA,CACA,kBAAA,CACA,cAAA,CACA,QAAA,CAIA,+CACC,yBAAA,CAED,gDACC,yBAAA,CAEA,wDACC,SAAA,CACA,UAAA,CACA,kBAAA,CACA,uCAAA,CACA,UAAA,CACA,kBAAA,CACA,yBAAA,CACA,iBAAA,CACA,QAAA,CAMJ,wBACC,wBAAA,CACA,+BAAA,CACA,uCAAA,CAGD,6DAEC,kCAAA,CACA,0CAAA,CACA,6BAAA,CAGD,uCACC,kBAAA,CACA,uBAAA,CACA,0BAAA",sourceRoot:""}]);const o=p},37925:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".app-sidebar-tabs__release h2[data-v-9c32407e]{border-bottom:1px solid var(--color-border);font-size:24px}.app-sidebar-tabs__release-text[data-v-9c32407e] h3{font-size:20px}.app-sidebar-tabs__release-text[data-v-9c32407e] h4{font-size:17px}","",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreSidebar/AppReleasesTab.vue"],names:[],mappings:"AAEC,+CACC,2CAAA,CACA,cAAA,CAKA,oDACC,cAAA,CAED,oDACC,cAAA",sourceRoot:""}]);const o=p},39698:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,'.settings-markdown[data-v-35d8331c] a{text-decoration:underline}.settings-markdown[data-v-35d8331c] a::after{content:"↗";padding-inline:calc(var(--default-grid-baseline)/2)}.settings-markdown[data-v-35d8331c] pre{white-space:pre;overflow-x:auto;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}.settings-markdown[data-v-35d8331c] p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}.settings-markdown[data-v-35d8331c] li{position:relative}.settings-markdown[data-v-35d8331c] ul,.settings-markdown[data-v-35d8331c] ol{padding-inline-start:10px;margin-inline-start:10px}.settings-markdown[data-v-35d8331c] ul li{list-style-type:disc}.settings-markdown[data-v-35d8331c] ul>li>ul>li{list-style-type:circle}.settings-markdown[data-v-35d8331c] ul>li>ul>li ul li{list-style-type:square}.settings-markdown[data-v-35d8331c] blockquote{padding-inline-start:1em;border-inline-start:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-inline:0}',"",{version:3,sources:["webpack://./Markdown.vue","webpack://./apps/settings/src/components/Markdown.vue"],names:[],mappings:"AAAA,sCCEC,yBACC,CAAA,6CACA,WACC,CAAA,mDACA,CAAA,wCAIF,eACC,CAAA,eACA,CAAA,6CACA,CAAA,kCACA,CAAA,iBACA,CAAA,iBACA,CAAA,2CAGD,6CACC,CAAA,kCACA,CAAA,iBACA,CAAA,uCAGD,iBACC,CAAA,8EAGD,yBACC,CAAA,wBACA,CAAA,0CAGD,oBACC,CAAA,gDAGD,sBACC,CAAA,sDAGD,sBACC,CAAA,+CAGD,wBACC,CAAA,0DACA,CAAA,mCACA,CAAA,eACA",sourceRoot:""}]);const o=p},37205:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,".app-sidebar--with-screenshot[data-v-70317c96] .app-sidebar-header__figure{background-size:cover}.app-sidebar__fallback-icon[data-v-70317c96]{width:100%;height:100%}.app-sidebar__badges[data-v-70317c96]{display:flex;flex-direction:row;gap:12px}.app-sidebar__version[data-v-70317c96]{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./apps/settings/src/views/AppStoreSidebar.vue"],names:[],mappings:"AAIE,2EACC,qBAAA,CAIF,6CAEC,UAAA,CACA,WAAA,CAGD,sCACC,YAAA,CACA,kBAAA,CACA,QAAA,CAGD,uCACC,mCAAA",sourceRoot:""}]);const o=p},96285:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,"\n.app-score__wrapper[data-v-2193f4e0] {\n\tdisplay: inline-flex;\n\tcolor: var(--color-favorite, #a08b00);\n> *[data-v-2193f4e0] {\n\t\tvertical-align: text-bottom;\n}\n}\n","",{version:3,sources:["webpack://./apps/settings/src/components/AppList/AppScore.vue"],names:[],mappings:";AA+DA;CACA,oBAAA;CACA,qCAAA;AAEA;EACA,2BAAA;AACA;AACA",sourcesContent:['\x3c!--\n - SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n<template>\n\t<span role="img"\n\t\t:aria-label="title"\n\t\t:title="title"\n\t\tclass="app-score__wrapper">\n\t\t<NcIconSvgWrapper v-for="index in fullStars"\n\t\t\t:key="`full-star-${index}`"\n\t\t\t:path="mdiStar"\n\t\t\tinline />\n\t\t<NcIconSvgWrapper v-if="hasHalfStar" :path="mdiStarHalfFull" inline />\n\t\t<NcIconSvgWrapper v-for="index in emptyStars"\n\t\t\t:key="`empty-star-${index}`"\n\t\t\t:path="mdiStarOutline"\n\t\t\tinline />\n\t</span>\n</template>\n<script lang="ts">\nimport NcIconSvgWrapper from \'@nextcloud/vue/dist/Components/NcIconSvgWrapper.js\'\nimport { mdiStar, mdiStarHalfFull, mdiStarOutline } from \'@mdi/js\'\nimport { translate as t } from \'@nextcloud/l10n\'\nimport { defineComponent } from \'vue\'\n\nexport default defineComponent({\n\tname: \'AppScore\',\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\tprops: {\n\t\tscore: {\n\t\t\ttype: Number,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tsetup() {\n\t\treturn {\n\t\t\tmdiStar,\n\t\t\tmdiStarHalfFull,\n\t\t\tmdiStarOutline,\n\t\t}\n\t},\n\tcomputed: {\n\t\ttitle() {\n\t\t\tconst appScore = (this.score * 5).toFixed(1)\n\t\t\treturn t(\'settings\', \'Community rating: {score}/5\', { score: appScore })\n\t\t},\n\t\tfullStars() {\n\t\t\treturn Math.floor(this.score * 5 + 0.25)\n\t\t},\n\t\temptyStars() {\n\t\t\treturn Math.min(Math.floor((1 - this.score) * 5 + 0.25), 5 - this.fullStars)\n\t\t},\n\t\thasHalfStar() {\n\t\t\treturn (this.fullStars + this.emptyStars) < 5\n\t\t},\n\t},\n})\n<\/script>\n<style scoped>\n.app-score__wrapper {\n\tdisplay: inline-flex;\n\tcolor: var(--color-favorite, #a08b00);\n\n\t> * {\n\t\tvertical-align: text-bottom;\n\t}\n}\n</style>\n'],sourceRoot:""}]);const o=p},47321:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,"\n.empty-content__loading[data-v-6235de08] {\n\theight: 100%;\n}\n.app-settings-content__label[data-v-6235de08] {\n\tmargin-block-start: var(--app-navigation-padding);\n\tmargin-inline-start: calc(var(--default-clickable-area) + var(--app-navigation-padding) * 2);\n\tmin-height: var(--default-clickable-area);\n\tline-height: var(--default-clickable-area);\n\tvertical-align: center;\n}\n","",{version:3,sources:["webpack://./apps/settings/src/views/AppStore.vue"],names:[],mappings:";AA4EA;CACA,YAAA;AACA;AAEA;CACA,iDAAA;CACA,4FAAA;CACA,yCAAA;CACA,0CAAA;CACA,sBAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n<template>\n\t\x3c!-- Apps list --\x3e\n\t<NcAppContent class=\"app-settings-content\"\n\t\t:page-heading=\"appStoreLabel\">\n\t\t<h2 class=\"app-settings-content__label\" v-text=\"viewLabel\" />\n\n\t\t<AppStoreDiscoverSection v-if=\"currentCategory === 'discover'\" />\n\t\t<NcEmptyContent v-else-if=\"isLoading\"\n\t\t\tclass=\"empty-content__loading\"\n\t\t\t:name=\"t('settings', 'Loading app list')\">\n\t\t\t<template #icon>\n\t\t\t\t<NcLoadingIcon :size=\"64\" />\n\t\t\t</template>\n\t\t</NcEmptyContent>\n\t\t<AppList v-else :category=\"currentCategory\" />\n\t</NcAppContent>\n</template>\n\n<script setup lang=\"ts\">\nimport { translate as t } from '@nextcloud/l10n'\nimport { computed, getCurrentInstance, onBeforeMount, onBeforeUnmount, watchEffect } from 'vue'\nimport { useRoute } from 'vue-router/composables'\n\nimport { useAppsStore } from '../store/apps-store'\nimport { APPS_SECTION_ENUM } from '../constants/AppsConstants'\n\nimport NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent.js'\nimport NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'\nimport NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'\nimport AppList from '../components/AppList.vue'\nimport AppStoreDiscoverSection from '../components/AppStoreDiscover/AppStoreDiscoverSection.vue'\nimport { useAppApiStore } from '../store/app-api-store.ts'\n\nconst route = useRoute()\nconst store = useAppsStore()\nconst appApiStore = useAppApiStore()\n\n/**\n * ID of the current active category, default is `discover`\n */\nconst currentCategory = computed(() => route.params?.category ?? 'discover')\n\nconst appStoreLabel = t('settings', 'App Store')\nconst viewLabel = computed(() => APPS_SECTION_ENUM[currentCategory.value] ?? store.getCategoryById(currentCategory.value)?.displayName ?? appStoreLabel)\n\nwatchEffect(() => {\n\twindow.document.title = `${viewLabel.value} - ${appStoreLabel} - Nextcloud`\n})\n\n// TODO this part should be migrated to pinia\nconst instance = getCurrentInstance()\n/** Is the app list loading */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst isLoading = computed(() => (instance?.proxy as any).$store.getters.loading('list'))\nonBeforeMount(() => {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(instance?.proxy as any).$store.dispatch('getCategories', { shouldRefetchCategories: true });\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(instance?.proxy as any).$store.dispatch('getAllApps')\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tif ((instance?.proxy as any).$store.getters.isAppApiEnabled) {\n\t\tappApiStore.fetchAllApps()\n\t\tappApiStore.updateAppsStatus()\n\t}\n})\nonBeforeUnmount(() => {\n\tclearInterval(appApiStore.getStatusUpdater)\n})\n<\/script>\n\n<style scoped>\n.empty-content__loading {\n\theight: 100%;\n}\n\n.app-settings-content__label {\n\tmargin-block-start: var(--app-navigation-padding);\n\tmargin-inline-start: calc(var(--default-clickable-area) + var(--app-navigation-padding) * 2);\n\tmin-height: var(--default-clickable-area);\n\tline-height: var(--default-clickable-area);\n\tvertical-align: center;\n}\n</style>\n"],sourceRoot:""}]);const o=p},88956:(t,e,a)=>{a.d(e,{A:()=>o});var s=a(71354),n=a.n(s),i=a(76314),p=a.n(i)()(n());p.push([t.id,"\n/* The categories-loading indicator */\n.categories--loading[data-v-4b956a9f] {\n\tflex: 1;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n","",{version:3,sources:["webpack://./apps/settings/src/views/AppStoreNavigation.vue"],names:[],mappings:";AA0IA,qCAAA;AACA;CACA,OAAA;CACA,aAAA;CACA,mBAAA;CACA,uBAAA;AACA",sourcesContent:['\x3c!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n<template>\n\t\x3c!-- Categories & filters --\x3e\n\t<NcAppNavigation :aria-label="t(\'settings\', \'Apps\')">\n\t\t<template #list>\n\t\t\t<NcAppNavigationItem v-if="appstoreEnabled"\n\t\t\t\tid="app-category-discover"\n\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'discover\'} }"\n\t\t\t\t:name="APPS_SECTION_ENUM.discover">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.discover" />\n\t\t\t\t</template>\n\t\t\t</NcAppNavigationItem>\n\t\t\t<NcAppNavigationItem id="app-category-installed"\n\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'installed\'} }"\n\t\t\t\t:name="APPS_SECTION_ENUM.installed">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.installed" />\n\t\t\t\t</template>\n\t\t\t</NcAppNavigationItem>\n\t\t\t<NcAppNavigationItem id="app-category-enabled"\n\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'enabled\' } }"\n\t\t\t\t:name="APPS_SECTION_ENUM.enabled">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.enabled" />\n\t\t\t\t</template>\n\t\t\t</NcAppNavigationItem>\n\t\t\t<NcAppNavigationItem id="app-category-disabled"\n\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'disabled\' } }"\n\t\t\t\t:name="APPS_SECTION_ENUM.disabled">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.disabled" />\n\t\t\t\t</template>\n\t\t\t</NcAppNavigationItem>\n\t\t\t<NcAppNavigationItem v-if="store.updateCount > 0"\n\t\t\t\tid="app-category-updates"\n\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'updates\' } }"\n\t\t\t\t:name="APPS_SECTION_ENUM.updates">\n\t\t\t\t<template #counter>\n\t\t\t\t\t<NcCounterBubble>{{ store.updateCount }}</NcCounterBubble>\n\t\t\t\t</template>\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.updates" />\n\t\t\t\t</template>\n\t\t\t</NcAppNavigationItem>\n\t\t\t<NcAppNavigationItem id="app-category-your-bundles"\n\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'app-bundles\' } }"\n\t\t\t\t:name="APPS_SECTION_ENUM[\'app-bundles\']">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.bundles" />\n\t\t\t\t</template>\n\t\t\t</NcAppNavigationItem>\n\n\t\t\t<NcAppNavigationSpacer />\n\n\t\t\t\x3c!-- App store categories --\x3e\n\t\t\t<li v-if="appstoreEnabled && categoriesLoading" class="categories--loading">\n\t\t\t\t<NcLoadingIcon :size="20" :aria-label="t(\'settings\', \'Loading categories\')" />\n\t\t\t</li>\n\t\t\t<template v-else-if="appstoreEnabled && !categoriesLoading">\n\t\t\t\t<NcAppNavigationItem v-if="isSubscribed"\n\t\t\t\t\tid="app-category-supported"\n\t\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'supported\' } }"\n\t\t\t\t\t:name="APPS_SECTION_ENUM.supported">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.supported" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcAppNavigationItem>\n\t\t\t\t<NcAppNavigationItem id="app-category-featured"\n\t\t\t\t\t:to="{ name: \'apps-category\', params: { category: \'featured\' } }"\n\t\t\t\t\t:name="APPS_SECTION_ENUM.featured">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<NcIconSvgWrapper :path="APPSTORE_CATEGORY_ICONS.featured" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcAppNavigationItem>\n\n\t\t\t\t<NcAppNavigationItem v-for="category in categories"\n\t\t\t\t\t:id="`app-category-${category.id}`"\n\t\t\t\t\t:key="category.id"\n\t\t\t\t\t:name="category.displayName"\n\t\t\t\t\t:to="{\n\t\t\t\t\t\tname: \'apps-category\',\n\t\t\t\t\t\tparams: { category: category.id },\n\t\t\t\t\t}">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<NcIconSvgWrapper :path="category.icon" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcAppNavigationItem>\n\t\t\t</template>\n\n\t\t\t<NcAppNavigationItem id="app-developer-docs"\n\t\t\t\t:name="t(\'settings\', \'Developer documentation ↗\')"\n\t\t\t\t:href="developerDocsUrl" />\n\t\t</template>\n\t</NcAppNavigation>\n</template>\n\n<script setup lang="ts">\nimport { loadState } from \'@nextcloud/initial-state\'\nimport { translate as t } from \'@nextcloud/l10n\'\nimport { computed, onBeforeMount } from \'vue\'\nimport { APPS_SECTION_ENUM } from \'../constants/AppsConstants\'\nimport { useAppsStore } from \'../store/apps-store\'\n\nimport NcAppNavigation from \'@nextcloud/vue/dist/Components/NcAppNavigation.js\'\nimport NcAppNavigationItem from \'@nextcloud/vue/dist/Components/NcAppNavigationItem.js\'\nimport NcAppNavigationSpacer from \'@nextcloud/vue/dist/Components/NcAppNavigationSpacer.js\'\nimport NcCounterBubble from \'@nextcloud/vue/dist/Components/NcCounterBubble.js\'\nimport NcIconSvgWrapper from \'@nextcloud/vue/dist/Components/NcIconSvgWrapper.js\'\nimport NcLoadingIcon from \'@nextcloud/vue/dist/Components/NcLoadingIcon.js\'\n\nimport APPSTORE_CATEGORY_ICONS from \'../constants/AppstoreCategoryIcons.ts\'\n\nconst appstoreEnabled = loadState<boolean>(\'settings\', \'appstoreEnabled\', true)\nconst developerDocsUrl = loadState<string>(\'settings\', \'appstoreDeveloperDocs\', \'\')\n\nconst store = useAppsStore()\nconst categories = computed(() => store.categories)\nconst categoriesLoading = computed(() => store.loading.categories)\n\n/**\n * Check if the current instance has a support subscription from the Nextcloud GmbH\n *\n * For customers of the Nextcloud GmbH the app level will be set to `300` for apps that are supported in their subscription\n */\nconst isSubscribed = computed(() => store.apps.find(({ level }) => level === 300) !== undefined)\n\n// load categories when component is mounted\nonBeforeMount(() => {\n\tstore.loadCategories()\n\tstore.loadApps()\n})\n<\/script>\n\n<style scoped>\n/* The categories-loading indicator */\n.categories--loading {\n\tflex: 1;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n</style>\n'],sourceRoot:""}]);const o=p},89046:(t,e,a)=>{a.d(e,{A:()=>T});var s=a(846),n=a(18881),i=a(11516),p=a(45834);const o={name:"SvgFilterMixin",data:()=>({filterId:""}),computed:{filterUrl(){return`url(#${this.filterId})`}},mounted(){this.filterId="invertIconApps-"+Math.random().toString(36).substring(2)}};var r=a(14486);const l=(0,r.A)(o,void 0,void 0,!1,null,null,null).exports;var c=a(70995),d=a(6695),A=a(9165),u=a(62938);const g={name:"AppItem",components:{AppLevelBadge:i.A,AppScore:n.A,NcButton:c.A,NcIconSvgWrapper:d.A},mixins:[p.A,l],props:{app:{type:Object,required:!0},category:{type:String,required:!0},listView:{type:Boolean,default:!0},useBundleView:{type:Boolean,default:!1},headers:{type:String,default:null},inline:{type:Boolean,default:!1}},setup:()=>({store:(0,s.T)(),appApiStore:(0,u.a)(),mdiCogOutline:A.ED}),data:()=>({isSelected:!1,scrolled:!1,screenshotLoaded:!1}),computed:{hasRating(){return this.app.appstoreData&&this.app.appstoreData.ratingNumOverall>5},dataItemTag(){return this.listView?"td":"div"},withSidebar(){return!!this.$route.params.id},shouldDisplayDefaultIcon(){return this.listView&&!this.app.preview||!this.listView&&!this.screenshotLoaded}},watch:{"$route.params.id"(t){this.isSelected=this.app.id===t}},mounted(){if(this.isSelected=this.app.id===this.$route.params.id,this.app.releases&&this.app.screenshot){const t=new Image;t.onload=()=>{this.screenshotLoaded=!0},t.src=this.app.screenshot}},watchers:{},methods:{prefix:(t,e)=>t+"_"+e,getDataItemHeaders(t){return this.useBundleView?[this.headers,t].join(" "):null}}};var h=a(85072),v=a.n(h),m=a(97825),C=a.n(m),b=a(77659),_=a.n(b),f=a(55056),y=a.n(f),S=a(10540),x=a.n(S),w=a(41113),N=a.n(w),I=a(44005),D={};D.styleTagTransform=N(),D.setAttributes=y(),D.insert=_().bind(null,"head"),D.domAPI=C(),D.insertStyleElement=x(),v()(I.A,D),I.A&&I.A.locals&&I.A.locals;const T=(0,r.A)(g,(function(){var t=this,e=t._self._c;return e(t.listView?"tr":t.inline?"article":"li",{tag:"component",staticClass:"app-item",class:{"app-item--list-view":t.listView,"app-item--store-view":!t.listView,"app-item--selected":t.isSelected,"app-item--with-sidebar":t.withSidebar}},[e(t.dataItemTag,{tag:"component",staticClass:"app-image app-image-icon",attrs:{headers:t.getDataItemHeaders("app-table-col-icon")}},[!t.app?.app_api&&t.shouldDisplayDefaultIcon?e("div",{staticClass:"icon-settings-dark"}):t.app.app_api&&t.shouldDisplayDefaultIcon?e("NcIconSvgWrapper",{staticStyle:{"min-width":"auto","min-height":"auto",height:"100%"},attrs:{path:t.mdiCogOutline,size:t.listView?24:48}}):t.listView&&t.app.preview&&!t.app.app_api?e("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32"}},[e("image",{staticClass:"app-icon",attrs:{x:"0",y:"0",width:"32",height:"32",preserveAspectRatio:"xMinYMin meet","xlink:href":t.app.preview}})]):t._e(),t._v(" "),!t.listView&&t.app.screenshot&&t.screenshotLoaded?e("img",{attrs:{src:t.app.screenshot,alt:""}}):t._e()],1),t._v(" "),e(t.dataItemTag,{tag:"component",staticClass:"app-name",attrs:{headers:t.getDataItemHeaders("app-table-col-name")}},[e("router-link",{staticClass:"app-name--link",attrs:{to:{name:"apps-details",params:{category:t.category,id:t.app.id}},"aria-label":t.t("settings","Show details for {appName} app",{appName:t.app.name})}},[t._v("\n\t\t\t"+t._s(t.app.name)+"\n\t\t")])],1),t._v(" "),t.listView?t._e():e(t.dataItemTag,{tag:"component",staticClass:"app-summary",attrs:{headers:t.getDataItemHeaders("app-version")}},[t._v("\n\t\t"+t._s(t.app.summary)+"\n\t")]),t._v(" "),t.listView?e(t.dataItemTag,{tag:"component",staticClass:"app-version",attrs:{headers:t.getDataItemHeaders("app-table-col-version")}},[t.app.version?e("span",[t._v(t._s(t.app.version))]):t.app.appstoreData.releases[0].version?e("span",[t._v(t._s(t.app.appstoreData.releases[0].version))]):t._e()]):t._e(),t._v(" "),e(t.dataItemTag,{tag:"component",staticClass:"app-level",attrs:{headers:t.getDataItemHeaders("app-table-col-level")}},[e("AppLevelBadge",{attrs:{level:t.app.level}}),t._v(" "),t.hasRating&&!t.listView?e("AppScore",{attrs:{score:t.app.score}}):t._e()],1),t._v(" "),t.inline?t._e():e(t.dataItemTag,{tag:"component",staticClass:"app-actions",attrs:{headers:t.getDataItemHeaders("app-table-col-actions")}},[t.app.error?e("div",{staticClass:"warning"},[t._v("\n\t\t\t"+t._s(t.app.error)+"\n\t\t")]):t._e(),t._v(" "),t.isLoading||t.isInitializing?e("div",{staticClass:"icon icon-loading-small"}):t._e(),t._v(" "),t.app.update?e("NcButton",{attrs:{type:"primary",disabled:t.installing||t.isLoading||!t.defaultDeployDaemonAccessible||t.isManualInstall,title:t.updateButtonText},on:{click:function(e){return e.stopPropagation(),t.update(t.app.id)}}},[t._v("\n\t\t\t"+t._s(t.t("settings","Update to {update}",{update:t.app.update}))+"\n\t\t")]):t._e(),t._v(" "),t.app.canUnInstall?e("NcButton",{staticClass:"uninstall",attrs:{type:"tertiary",disabled:t.installing||t.isLoading},on:{click:function(e){return e.stopPropagation(),t.remove(t.app.id)}}},[t._v("\n\t\t\t"+t._s(t.t("settings","Remove"))+"\n\t\t")]):t._e(),t._v(" "),t.app.active?e("NcButton",{attrs:{disabled:t.installing||t.isLoading||t.isInitializing||t.isDeploying},on:{click:function(e){return e.stopPropagation(),t.disable(t.app.id)}}},[t._v("\n\t\t\t"+t._s(t.disableButtonText)+"\n\t\t")]):t._e(),t._v(" "),t.app.active||!t.app.canInstall&&!t.app.isCompatible?t.app.active?t._e():e("NcButton",{attrs:{title:t.forceEnableButtonTooltip,"aria-label":t.forceEnableButtonTooltip,type:"secondary",disabled:t.installing||t.isLoading||!t.defaultDeployDaemonAccessible},on:{click:function(e){return e.stopPropagation(),t.forceEnable(t.app.id)}}},[t._v("\n\t\t\t"+t._s(t.forceEnableButtonText)+"\n\t\t")]):e("NcButton",{attrs:{title:t.enableButtonTooltip,"aria-label":t.enableButtonTooltip,type:"primary",disabled:!t.app.canInstall||t.installing||t.isLoading||!t.defaultDeployDaemonAccessible||t.isInitializing||t.isDeploying},on:{click:function(e){return e.stopPropagation(),t.enable(t.app.id)}}},[t._v("\n\t\t\t"+t._s(t.enableButtonText)+"\n\t\t")])],1)],1)}),[],!1,null,"77df2b64",null).exports},11516:(t,e,a)=>{a.d(e,{A:()=>y});var s=a(85471),n=a(6695),i=a(9165),p=a(53334);const o=(0,s.pM)({__name:"AppLevelBadge",props:{level:null},setup(t){const e=t,a=(0,s.EW)((()=>300===e.level)),o=(0,s.EW)((()=>200===e.level)),r=(0,s.EW)((()=>a.value?i.Yk:i.Tfj)),l=(0,s.EW)((()=>a.value?(0,p.Tl)("settings","Supported"):(0,p.Tl)("settings","Featured"))),c=(0,s.EW)((()=>a.value?(0,p.Tl)("settings","This app is supported via your current Nextcloud subscription."):(0,p.Tl)("settings","Featured apps are developed by and within the community. They offer central functionality and are ready for production use.")));return{__sfc:!0,props:e,isSupported:a,isFeatured:o,badgeIcon:r,badgeText:l,badgeTitle:c,NcIconSvgWrapper:n.A}}});var r=a(85072),l=a.n(r),c=a(97825),d=a.n(c),A=a(77659),u=a.n(A),g=a(55056),h=a.n(g),v=a(10540),m=a.n(v),C=a(41113),b=a.n(C),_=a(13331),f={};f.styleTagTransform=b(),f.setAttributes=h(),f.insert=u().bind(null,"head"),f.domAPI=d(),f.insertStyleElement=m(),l()(_.A,f),_.A&&_.A.locals&&_.A.locals;const y=(0,a(14486).A)(o,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return a.isSupported||a.isFeatured?e("span",{staticClass:"app-level-badge",class:{"app-level-badge--supported":a.isSupported},attrs:{title:a.badgeTitle}},[e(a.NcIconSvgWrapper,{attrs:{path:a.badgeIcon,size:20,inline:""}}),t._v("\n\t"+t._s(a.badgeText)+"\n")],1):t._e()}),[],!1,null,"5ee601b2",null).exports},18881:(t,e,a)=>{a.d(e,{A:()=>f});var s=a(6695),n=a(9165),i=a(53334);const p=(0,a(85471).pM)({name:"AppScore",components:{NcIconSvgWrapper:s.A},props:{score:{type:Number,required:!0}},setup:()=>({mdiStar:n.ZL5,mdiStarHalfFull:n.tdF,mdiStarOutline:n.dF}),computed:{title(){const t=(5*this.score).toFixed(1);return(0,i.Tl)("settings","Community rating: {score}/5",{score:t})},fullStars(){return Math.floor(5*this.score+.25)},emptyStars(){return Math.min(Math.floor(5*(1-this.score)+.25),5-this.fullStars)},hasHalfStar(){return this.fullStars+this.emptyStars<5}}});var o=a(85072),r=a.n(o),l=a(97825),c=a.n(l),d=a(77659),A=a.n(d),u=a(55056),g=a.n(u),h=a(10540),v=a.n(h),m=a(41113),C=a.n(m),b=a(96285),_={};_.styleTagTransform=C(),_.setAttributes=g(),_.insert=A().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=v(),r()(b.A,_),b.A&&b.A.locals&&b.A.locals;const f=(0,a(14486).A)(p,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("span",{staticClass:"app-score__wrapper",attrs:{role:"img","aria-label":t.title,title:t.title}},[t._l(t.fullStars,(function(a){return e("NcIconSvgWrapper",{key:`full-star-${a}`,attrs:{path:t.mdiStar,inline:""}})})),t._v(" "),t.hasHalfStar?e("NcIconSvgWrapper",{attrs:{path:t.mdiStarHalfFull,inline:""}}):t._e(),t._v(" "),t._l(t.emptyStars,(function(a){return e("NcIconSvgWrapper",{key:`empty-star-${a}`,attrs:{path:t.mdiStarOutline,inline:""}})}))],2)}),[],!1,null,"2193f4e0",null).exports},33984:(e,a,s)=>{s.r(a),s.d(a,{default:()=>ot});var n=s(85471),i=s(53334),p=s(24387),o=s(846),r=s(92973),l=s(18195),c=s(28326),d=s(59892),A=s(61338);function u(t,e,a){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,a)}function g(t,e,a){return t.set(v(t,e),a),a}function h(t,e){return t.get(v(t,e))}function v(t,e,a){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:a;throw new TypeError("Private element is not present on this object")}function m(t,e,a){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var a=e.call(t,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}class C{constructor(t){m(this,"value",void 0),m(this,"next",void 0),this.value=t}}var b=new WeakMap,_=new WeakMap,f=new WeakMap;class y{constructor(){u(this,b,void 0),u(this,_,void 0),u(this,f,void 0),this.clear()}enqueue(t){var e;const a=new C(t);h(b,this)?(h(_,this).next=a,g(_,this,a)):(g(b,this,a),g(_,this,a)),g(f,this,(e=h(f,this),++e))}dequeue(){var t;const e=h(b,this);if(e)return g(b,this,h(b,this).next),g(f,this,(t=h(f,this),--t)),e.value}peek(){if(h(b,this))return h(b,this).value}clear(){g(b,this,void 0),g(_,this,void 0),g(f,this,0)}get size(){return h(f,this)}*[Symbol.iterator](){let t=h(b,this);for(;t;)yield t.value,t=t.next}}function S(t){x(t);const e=new y;let a=0;const s=()=>{a<t&&e.size>0&&(e.dequeue()(),a++)},n=async(t,e,n)=>{const i=(async()=>t(...n))();e(i);try{await i}catch{}a--,s()},i=function(i){for(var p=arguments.length,o=new Array(p>1?p-1:0),r=1;r<p;r++)o[r-1]=arguments[r];return new Promise((p=>{((i,p,o)=>{new Promise((t=>{e.enqueue(t)})).then(n.bind(void 0,i,p,o)),(async()=>{await Promise.resolve(),a<t&&s()})()})(i,p,o)}))};return Object.defineProperties(i,{activeCount:{get:()=>a},pendingCount:{get:()=>e.size},clearQueue:{value(){e.clear()}},concurrency:{get:()=>t,set(n){x(n),t=n,queueMicrotask((()=>{for(;a<t&&e.size>0;)s()}))}}}),i}function x(t){if(!Number.isInteger(t)&&t!==Number.POSITIVE_INFINITY||!(t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}var w=s(70995),N=s(89046),I=s(45834),D=s(62938);const T={name:"AppList",components:{AppItem:N.A,NcButton:w.A},mixins:[I.A],props:{category:{type:String,required:!0}},setup:()=>({appApiStore:(0,D.a)(),store:(0,o.T)()}),data:()=>({search:""}),computed:{counter(){return this.apps.filter((t=>t.update)).length},loading(){return this.$store.getters["appApiApps/isAppApiEnabled"]?this.$store.getters.loading("list")||this.appApiStore.getLoading("list"):this.$store.getters.loading("list")},hasPendingUpdate(){return this.apps.filter((t=>t.update)).length>0},showUpdateAll(){return this.hasPendingUpdate&&this.useListView},apps(){const t=this.$store.getters.isAppApiEnabled?this.appApiStore.getAllApps:[],e=[...this.$store.getters.getAllApps,...t].filter((t=>-1!==t.name.toLowerCase().search(this.search.toLowerCase()))).sort((function(t,e){const a=""+(t.active?0:1)+(t.update?0:1)+t.name,s=""+(e.active?0:1)+(e.update?0:1)+e.name;return OC.Util.naturalSortCompare(a,s)}));return"installed"===this.category?e.filter((t=>t.installed)):"enabled"===this.category?e.filter((t=>t.active&&t.installed)):"disabled"===this.category?e.filter((t=>!t.active&&t.installed)):"app-bundles"===this.category?e.filter((t=>t.bundles)):"updates"===this.category?e.filter((t=>t.update)):"supported"===this.category?e.filter((t=>300===t.level)):"featured"===this.category?e.filter((t=>200===t.level)):e.filter((t=>t.appstore&&void 0!==t.category&&(t.category===this.category||t.category.indexOf(this.category)>-1)))},bundles(){return this.$store.getters.getAppBundles.filter((t=>this.bundleApps(t.id).length>0))},bundleApps:()=>function(t){return this.$store.getters.getAllApps.filter((e=>void 0!==e.bundleIds&&e.bundleIds.includes(t)))},searchApps(){return""===this.search?[]:this.$store.getters.getAllApps.filter((t=>-1!==t.name.toLowerCase().search(this.search.toLowerCase())&&!this.apps.find((e=>e.id===t.id))))},useAppStoreView(){return!this.useListView&&!this.useBundleView},useListView(){return"installed"===this.category||"enabled"===this.category||"disabled"===this.category||"updates"===this.category||"featured"===this.category||"supported"===this.category},useBundleView(){return"app-bundles"===this.category},allBundlesEnabled(){return t=>0===this.bundleApps(t).filter((t=>!t.active)).length},bundleToggleText(){return e=>this.allBundlesEnabled(e)?t("settings","Disable all"):t("settings","Download and enable all")}},beforeDestroy(){(0,A.al)("nextcloud:unified-search.search",this.setSearch),(0,A.al)("nextcloud:unified-search.reset",this.resetSearch)},mounted(){(0,A.B1)("nextcloud:unified-search.search",this.setSearch),(0,A.B1)("nextcloud:unified-search.reset",this.resetSearch)},methods:{setSearch(t){let{query:e}=t;this.search=e},resetSearch(){this.search=""},toggleBundle(t){return this.allBundlesEnabled(t)?this.disableBundle(t):this.enableBundle(t)},enableBundle(t){const e=this.bundleApps(t).map((t=>t.id));this.$store.dispatch("enableApp",{appId:e,groups:[]}).catch((t=>{console.error(t),OC.Notification.show(t)}))},disableBundle(t){const e=this.bundleApps(t).map((t=>t.id));this.$store.dispatch("disableApp",{appId:e,groups:[]}).catch((t=>{OC.Notification.show(t)}))},updateAll(){const t=S(1);this.apps.filter((t=>t.update)).map((e=>t((()=>{this.update(e.id)}))))}}};var E=s(85072),k=s.n(E),B=s(97825),L=s.n(B),P=s(77659),O=s.n(P),R=s(55056),U=s.n(R),W=s(10540),G=s.n(W),M=s(41113),$=s.n(M),F=s(48162),Y={};Y.styleTagTransform=$(),Y.setAttributes=U(),Y.insert=O().bind(null,"head"),Y.domAPI=L(),Y.insertStyleElement=G(),k()(F.A,Y),F.A&&F.A.locals&&F.A.locals;var z=s(14486);const V=(0,z.A)(T,(function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app-content-inner"}},[e("div",{staticClass:"apps-list",class:{"apps-list--list-view":t.useBundleView||t.useListView,"apps-list--store-view":t.useAppStoreView},attrs:{id:"apps-list"}},[t.useListView?[t.showUpdateAll?e("div",{staticClass:"apps-list__toolbar"},[t._v("\n\t\t\t\t"+t._s(t.n("settings","%n app has an update available","%n apps have an update available",t.counter))+"\n\t\t\t\t"),t.showUpdateAll?e("NcButton",{attrs:{id:"app-list-update-all",type:"primary"},on:{click:t.updateAll}},[t._v("\n\t\t\t\t\t"+t._s(t.n("settings","Update","Update all",t.counter))+"\n\t\t\t\t")]):t._e()],1):t._e(),t._v(" "),t.showUpdateAll?t._e():e("div",{staticClass:"apps-list__toolbar"},[t._v("\n\t\t\t\t"+t._s(t.t("settings","All apps are up-to-date."))+"\n\t\t\t")]),t._v(" "),e("TransitionGroup",{staticClass:"apps-list__list-container",attrs:{name:"apps-list",tag:"table"}},[e("tr",{key:"app-list-view-header"},[e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Icon")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Name")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Version")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Level")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Actions")))])])]),t._v(" "),t._l(t.apps,(function(a){return e("AppItem",{key:a.id,attrs:{app:a,category:t.category}})}))],2)]:t._e(),t._v(" "),t.useBundleView?e("table",{staticClass:"apps-list__list-container"},[e("tr",{key:"app-list-view-header"},[e("th",{attrs:{id:"app-table-col-icon"}},[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Icon")))])]),t._v(" "),e("th",{attrs:{id:"app-table-col-name"}},[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Name")))])]),t._v(" "),e("th",{attrs:{id:"app-table-col-version"}},[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Version")))])]),t._v(" "),e("th",{attrs:{id:"app-table-col-level"}},[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Level")))])]),t._v(" "),e("th",{attrs:{id:"app-table-col-actions"}},[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Actions")))])])]),t._v(" "),t._l(t.bundles,(function(a){return[e("tr",{key:a.id},[e("th",{attrs:{id:`app-table-rowgroup-${a.id}`,colspan:"5",scope:"rowgroup"}},[e("div",{staticClass:"apps-list__bundle-heading"},[e("span",{staticClass:"apps-list__bundle-header"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(a.name)+"\n\t\t\t\t\t\t\t")]),t._v(" "),e("NcButton",{attrs:{type:"secondary"},on:{click:function(e){return t.toggleBundle(a.id)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.t("settings",t.bundleToggleText(a.id)))+"\n\t\t\t\t\t\t\t")])],1)])]),t._v(" "),t._l(t.bundleApps(a.id),(function(s){return e("AppItem",{key:a.id+s.id,attrs:{"use-bundle-view":!0,headers:`app-table-rowgroup-${a.id}`,app:s,category:t.category}})}))]}))],2):t._e(),t._v(" "),t.useAppStoreView?e("ul",{staticClass:"apps-list__store-container"},t._l(t.apps,(function(a){return e("AppItem",{key:a.id,attrs:{app:a,category:t.category,"list-view":!1}})})),1):t._e()],2),t._v(" "),e("div",{staticClass:"apps-list apps-list--list-view",attrs:{id:"apps-list-search"}},[e("div",{staticClass:"apps-list__list-container"},[""!==t.search&&t.searchApps.length>0?e("table",{staticClass:"apps-list__list-container"},[e("caption",{staticClass:"apps-list__bundle-header"},[t._v("\n\t\t\t\t\t"+t._s(t.t("settings","Results from other categories"))+"\n\t\t\t\t")]),t._v(" "),e("tr",{key:"app-list-view-header"},[e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Icon")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Name")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Version")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Level")))])]),t._v(" "),e("th",[e("span",{staticClass:"hidden-visually"},[t._v(t._s(t.t("settings","Actions")))])])]),t._v(" "),t._l(t.searchApps,(function(a){return e("AppItem",{key:a.id,attrs:{app:a,category:t.category}})}))],2):t._e()])]),t._v(" "),""===t.search||t.loading||0!==t.searchApps.length||0!==t.apps.length?t._e():e("div",{staticClass:"emptycontent emptycontent-search",attrs:{id:"apps-list-empty"}},[e("div",{staticClass:"icon-settings-dark",attrs:{id:"app-list-empty-icon"}}),t._v(" "),e("h2",[t._v(t._s(t.t("settings","No apps found for your version")))])])])}),[],!1,null,"15b8f118",null).exports;var q=s(9165),j=s(85168),H=s(63814),Q=s(65043),K=s(6695),J=s(36620);const X=t=>{const e={...t};if(e.date&&(e.date=Date.parse(e.date)),e.expiryDate&&(e.expiryDate=Date.parse(e.expiryDate)),"post"===e.type)return e;if("showcase"===e.type)return e;if("carousel"===e.type)return e;throw new Error(`Invalid argument, app discover element with type ${t.type??"unknown"} is unknown`)},Z=t=>{const e=Date.now();return!(t.date&&t.date>e||t.expiryDate&&t.expiryDate<e)},tt=(0,n.pM)({__name:"AppStoreDiscoverSection",setup(t){const e=(0,n.$V)((()=>s.e(3303).then(s.bind(s,63303)))),a=(0,n.$V)((()=>s.e(9972).then(s.bind(s,79972)))),p=(0,n.$V)((()=>s.e(8737).then(s.bind(s,98737)))),o=(0,n.KR)(!1),r=(0,n.KR)([]),l=t=>{for(let e=t.length-1;e>0;e--){const a=Math.floor(Math.random()*(e+1));[t[e],t[a]]=[t[a],t[e]]}return t};return(0,n.KC)((async()=>{try{const{data:t}=await Q.Ay.get((0,H.Jv)("/settings/api/apps/discover"));if(0===t.length)return J.A.info("No app discover elements available (empty response)"),void(o.value=!0);const e=t.map(X).filter(Z),a=l(e);a.sort(((t,e)=>(t.order??1/0)<(e.order??1/0)?-1:1)),r.value=a}catch(t){o.value=!0,J.A.error(t),(0,j.Qg)((0,i.Tl)("settings","Could not load app discover section"))}})),{__sfc:!0,PostType:e,CarouselType:a,ShowcaseType:p,hasError:o,elements:r,shuffleArray:l,getComponent:t=>"post"===t?e:"carousel"===t?a:"showcase"===t?p:(0,n.pM)({mounted:()=>J.A.error("Unknown component requested ",t),render:t=>t("div",(0,i.Tl)("settings","Could not render element"))}),mdiEyeOff:q.Bk0,t:i.Tl,NcEmptyContent:c.A,NcIconSvgWrapper:K.A,NcLoadingIcon:d.A}}});var et=s(63021),at={};at.styleTagTransform=$(),at.setAttributes=U(),at.insert=O().bind(null,"head"),at.domAPI=L(),at.insertStyleElement=G(),k()(et.A,at),et.A&&et.A.locals&&et.A.locals;const st=(0,z.A)(tt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"app-discover"},[a.hasError?e(a.NcEmptyContent,{attrs:{name:a.t("settings","Nothing to show"),description:a.t("settings","Could not load section content from app store.")},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.mdiEyeOff,size:64}})]},proxy:!0}],null,!1,638098482)}):0===a.elements.length?e(a.NcEmptyContent,{attrs:{name:a.t("settings","Loading"),description:a.t("settings","Fetching the latest news…")},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcLoadingIcon,{attrs:{size:64}})]},proxy:!0}])}):t._l(a.elements,(function(s,n){return e(a.getComponent(s.type),t._b({key:s.id??n,tag:"component"},"component",s,!1))}))],2)}),[],!1,null,"bb597eea",null).exports,nt=(0,n.pM)({__name:"AppStore",setup(t){const e=(0,p.lq)(),a=(0,o.T)(),s=(0,D.a)(),A=(0,n.EW)((()=>e.params?.category??"discover")),u=(0,i.Tl)("settings","App Store"),g=(0,n.EW)((()=>r.l[A.value]??a.getCategoryById(A.value)?.displayName??u));(0,n.nT)((()=>{window.document.title=`${g.value} - ${u} - Nextcloud`}));const h=(0,n.nI)(),v=(0,n.EW)((()=>(h?.proxy).$store.getters.loading("list")));return(0,n.KC)((()=>{(h?.proxy).$store.dispatch("getCategories",{shouldRefetchCategories:!0}),(h?.proxy).$store.dispatch("getAllApps"),(h?.proxy).$store.getters.isAppApiEnabled&&(s.fetchAllApps(),s.updateAppsStatus())})),(0,n.xo)((()=>{clearInterval(s.getStatusUpdater)})),{__sfc:!0,route:e,store:a,appApiStore:s,currentCategory:A,appStoreLabel:u,viewLabel:g,instance:h,isLoading:v,t:i.Tl,NcAppContent:l.A,NcEmptyContent:c.A,NcLoadingIcon:d.A,AppList:V,AppStoreDiscoverSection:st}}});var it=s(47321),pt={};pt.styleTagTransform=$(),pt.setAttributes=U(),pt.insert=O().bind(null,"head"),pt.domAPI=L(),pt.insertStyleElement=G(),k()(it.A,pt),it.A&&it.A.locals&&it.A.locals;const ot=(0,z.A)(nt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.NcAppContent,{staticClass:"app-settings-content",attrs:{"page-heading":a.appStoreLabel}},[e("h2",{staticClass:"app-settings-content__label",domProps:{textContent:t._s(a.viewLabel)}}),t._v(" "),"discover"===a.currentCategory?e(a.AppStoreDiscoverSection):a.isLoading?e(a.NcEmptyContent,{staticClass:"empty-content__loading",attrs:{name:a.t("settings","Loading app list")},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcLoadingIcon,{attrs:{size:64}})]},proxy:!0}])}):e(a.AppList,{attrs:{category:a.currentCategory}})],1)}),[],!1,null,"6235de08",null).exports},28372:(t,e,a)=>{a.r(e),a.d(e,{default:()=>E});var s=a(85471),n=a(32981),i=a(53334),p=a(92973),o=a(846),r=a(42530),l=a(52439),c=a(542),d=a(85947),A=a(6695),u=a(59892),g=a(86438);const h=(0,s.pM)({__name:"AppStoreNavigation",setup(t){const e=(0,n.C)("settings","appstoreEnabled",!0),a=(0,n.C)("settings","appstoreDeveloperDocs",""),h=(0,o.T)(),v=(0,s.EW)((()=>h.categories)),m=(0,s.EW)((()=>h.loading.categories)),C=(0,s.EW)((()=>void 0!==h.apps.find((t=>{let{level:e}=t;return 300===e}))));return(0,s.KC)((()=>{h.loadCategories(),h.loadApps()})),{__sfc:!0,appstoreEnabled:e,developerDocsUrl:a,store:h,categories:v,categoriesLoading:m,isSubscribed:C,t:i.Tl,APPS_SECTION_ENUM:p.l,NcAppNavigation:r.A,NcAppNavigationItem:l.A,NcAppNavigationSpacer:c.A,NcCounterBubble:d.A,NcIconSvgWrapper:A.A,NcLoadingIcon:u.A,APPSTORE_CATEGORY_ICONS:g.A}}});var v=a(85072),m=a.n(v),C=a(97825),b=a.n(C),_=a(77659),f=a.n(_),y=a(55056),S=a.n(y),x=a(10540),w=a.n(x),N=a(41113),I=a.n(N),D=a(88956),T={};T.styleTagTransform=I(),T.setAttributes=S(),T.insert=f().bind(null,"head"),T.domAPI=b(),T.insertStyleElement=w(),m()(D.A,T),D.A&&D.A.locals&&D.A.locals;const E=(0,a(14486).A)(h,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.NcAppNavigation,{attrs:{"aria-label":a.t("settings","Apps")},scopedSlots:t._u([{key:"list",fn:function(){return[a.appstoreEnabled?e(a.NcAppNavigationItem,{attrs:{id:"app-category-discover",to:{name:"apps-category",params:{category:"discover"}},name:a.APPS_SECTION_ENUM.discover},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.discover}})]},proxy:!0}],null,!1,1397544286)}):t._e(),t._v(" "),e(a.NcAppNavigationItem,{attrs:{id:"app-category-installed",to:{name:"apps-category",params:{category:"installed"}},name:a.APPS_SECTION_ENUM.installed},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.installed}})]},proxy:!0}])}),t._v(" "),e(a.NcAppNavigationItem,{attrs:{id:"app-category-enabled",to:{name:"apps-category",params:{category:"enabled"}},name:a.APPS_SECTION_ENUM.enabled},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.enabled}})]},proxy:!0}])}),t._v(" "),e(a.NcAppNavigationItem,{attrs:{id:"app-category-disabled",to:{name:"apps-category",params:{category:"disabled"}},name:a.APPS_SECTION_ENUM.disabled},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.disabled}})]},proxy:!0}])}),t._v(" "),a.store.updateCount>0?e(a.NcAppNavigationItem,{attrs:{id:"app-category-updates",to:{name:"apps-category",params:{category:"updates"}},name:a.APPS_SECTION_ENUM.updates},scopedSlots:t._u([{key:"counter",fn:function(){return[e(a.NcCounterBubble,[t._v(t._s(a.store.updateCount))])]},proxy:!0},{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.updates}})]},proxy:!0}],null,!1,3001044337)}):t._e(),t._v(" "),e(a.NcAppNavigationItem,{attrs:{id:"app-category-your-bundles",to:{name:"apps-category",params:{category:"app-bundles"}},name:a.APPS_SECTION_ENUM["app-bundles"]},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.bundles}})]},proxy:!0}])}),t._v(" "),e(a.NcAppNavigationSpacer),t._v(" "),a.appstoreEnabled&&a.categoriesLoading?e("li",{staticClass:"categories--loading"},[e(a.NcLoadingIcon,{attrs:{size:20,"aria-label":a.t("settings","Loading categories")}})],1):a.appstoreEnabled&&!a.categoriesLoading?[a.isSubscribed?e(a.NcAppNavigationItem,{attrs:{id:"app-category-supported",to:{name:"apps-category",params:{category:"supported"}},name:a.APPS_SECTION_ENUM.supported},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.supported}})]},proxy:!0}],null,!1,613663011)}):t._e(),t._v(" "),e(a.NcAppNavigationItem,{attrs:{id:"app-category-featured",to:{name:"apps-category",params:{category:"featured"}},name:a.APPS_SECTION_ENUM.featured},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.featured}})]},proxy:!0}])}),t._v(" "),t._l(a.categories,(function(s){return e(a.NcAppNavigationItem,{key:s.id,attrs:{id:`app-category-${s.id}`,name:s.displayName,to:{name:"apps-category",params:{category:s.id}}},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:s.icon}})]},proxy:!0}],null,!0)})}))]:t._e(),t._v(" "),e(a.NcAppNavigationItem,{attrs:{id:"app-developer-docs",name:a.t("settings","Developer documentation ↗"),href:a.developerDocsUrl}})]},proxy:!0}])})}),[],!1,null,"4b956a9f",null).exports},96143:(e,a,s)=>{s.r(a),s.d(a,{default:()=>At});var n=s(85471),i=s(53334),p=s(24387),o=s(846),r=s(54859),l=s(6695),c=s(18881),d=s(9165),A=s(18608),u=s(60023),g=s(42838),h=s.n(g);const v={name:"Markdown",props:{text:{type:String,default:""},minHeading:{type:Number,default:1}},computed:{renderMarkdown(){const t=new u.xI.Renderer;return t.link=function(t){let e,{href:a,title:s,text:n}=t;try{e=decodeURIComponent(unescape(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return""}if(0!==e.indexOf("http:")&&0!==e.indexOf("https:"))return"";let i='<a href="'+a+'" rel="noreferrer noopener"';return s&&(i+=' title="'+s+'"'),i+=">"+n+"</a>",i},t.heading=t=>{let{text:e,depth:a}=t;return a=Math.min(6,a+(this.minHeading-1)),`<h${a}>${e}</h${a}>`},t.image=t=>{let{title:e,text:a}=t;return a||e},t.blockquote=t=>{let{text:e}=t;return`<blockquote>${e}</blockquote>`},h().sanitize((0,u.xI)(this.text.trim(),{renderer:t,gfm:!1,highlight:!1,tables:!1,breaks:!1,pedantic:!1,sanitize:!0,smartLists:!0,smartypants:!1}),{SAFE_FOR_JQUERY:!0,ALLOWED_TAGS:["h1","h2","h3","h4","h5","h6","strong","p","a","ul","ol","li","em","del","blockquote"]})}}};var m=s(85072),C=s.n(m),b=s(97825),_=s.n(b),f=s(77659),y=s.n(f),S=s(55056),x=s.n(S),w=s(10540),N=s.n(w),I=s(41113),D=s.n(I),T=s(39698),E={};E.styleTagTransform=D(),E.setAttributes=x(),E.insert=y().bind(null,"head"),E.domAPI=_(),E.insertStyleElement=N(),C()(T.A,E),T.A&&T.A.locals&&T.A.locals;var k=s(14486);const B=(0,k.A)(v,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"settings-markdown",domProps:{innerHTML:t._s(t.renderMarkdown)}})}),[],!1,null,"35d8331c",null).exports,L=(0,n.pM)({__name:"AppDescriptionTab",props:{app:null},setup:t=>({__sfc:!0,mdiTextShort:d.azb,t:i.Tl,NcAppSidebarTab:A.A,NcIconSvgWrapper:l.A,Markdown:B})});var P=s(3007),O={};O.styleTagTransform=D(),O.setAttributes=x(),O.insert=y().bind(null,"head"),O.domAPI=_(),O.insertStyleElement=N(),C()(P.A,O),P.A&&P.A.locals&&P.A.locals;const R=(0,k.A)(L,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.NcAppSidebarTab,{attrs:{id:"desc",name:a.t("settings","Description"),order:0},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.mdiTextShort}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"app-description"},[e(a.Markdown,{attrs:{text:t.app.description,"min-heading":4}})],1)])}),[],!1,null,"cf0a1ae6",null).exports;var U=s(70995),W=s(4604),G=s(67607),M=s(32073),$=s(45834),F=s(62938);const Y={name:"AppDetailsTab",components:{NcAppSidebarTab:A.A,NcButton:U.A,NcDateTime:W.A,NcIconSvgWrapper:l.A,NcSelect:G.A,NcCheckboxRadioSwitch:M.A},mixins:[$.A],props:{app:{type:Object,required:!0}},setup:()=>({store:(0,o.T)(),appApiStore:(0,F.a)(),mdiBug:d.xhV,mdiFeatureSearch:d.NZe,mdiStar:d.ZL5,mdiTextBox:d.n1r,mdiTooltipQuestion:d.iNF}),data:()=>({groupCheckedAppsData:!1,removeData:!1}),computed:{lastModified(){return(this.app.appstoreData?.releases??[]).map((t=>{let{lastModified:e}=t;return Date.parse(e)})).sort().at(0)??null},appAuthors(){if(console.warn(this.app),!this.app)return"";const t=t=>t["@value"]?t["@value"]:t;return(Array.isArray(this.app.author)?this.app.author.map(t):[t(this.app.author)]).sort(((t,e)=>t.split(" ").at(-1).localeCompare(e.split(" ").at(-1)))).join(", ")},appstoreUrl(){return`https://apps.nextcloud.com/apps/${this.app.id}`},externalResources(){const e=[];return this.app.internal||e.push({id:"appstore",href:this.appstoreUrl,label:t("settings","View in store")}),this.app.website&&e.push({id:"website",href:this.app.website,label:t("settings","Visit website")}),this.app.documentation&&(this.app.documentation.user&&e.push({id:"doc-user",href:this.app.documentation.user,label:t("settings","Usage documentation")}),this.app.documentation.admin&&e.push({id:"doc-admin",href:this.app.documentation.admin,label:t("settings","Admin documentation")}),this.app.documentation.developer&&e.push({id:"doc-developer",href:this.app.documentation.developer,label:t("settings","Developer documentation")})),e},appCategories(){return[this.app.category].flat().map((t=>this.store.getCategoryById(t)?.displayName??t)).join(", ")},rateAppUrl(){return`${this.appstoreUrl}#comments`},appGroups(){return this.app.groups.map((t=>({id:t,name:t})))},groups(){return this.$store.getters.getGroups.filter((t=>"disabled"!==t.id)).sort(((t,e)=>t.name.localeCompare(e.name)))}},watch:{"app.id"(){this.removeData=!1}},mounted(){this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},methods:{toggleRemoveData(){this.removeData=!this.removeData}}};var z=s(22965),V={};V.styleTagTransform=D(),V.setAttributes=x(),V.insert=y().bind(null,"head"),V.domAPI=_(),V.insertStyleElement=N(),C()(z.A,V),z.A&&z.A.locals&&z.A.locals;const q=(0,k.A)(Y,(function(){var t=this,e=t._self._c;return e("NcAppSidebarTab",{attrs:{id:"details",name:t.t("settings","Details"),order:1},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.mdiTextBox}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-details__actions"},[t.app.active&&t.canLimitToGroups(t.app)?e("div",{staticClass:"app-details__actions-groups"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.groupCheckedAppsData,expression:"groupCheckedAppsData"}],staticClass:"groups-enable__checkbox checkbox",attrs:{id:`groups_enable_${t.app.id}`,type:"checkbox"},domProps:{value:t.app.id,checked:Array.isArray(t.groupCheckedAppsData)?t._i(t.groupCheckedAppsData,t.app.id)>-1:t.groupCheckedAppsData},on:{change:[function(e){var a=t.groupCheckedAppsData,s=e.target,n=!!s.checked;if(Array.isArray(a)){var i=t.app.id,p=t._i(a,i);s.checked?p<0&&(t.groupCheckedAppsData=a.concat([i])):p>-1&&(t.groupCheckedAppsData=a.slice(0,p).concat(a.slice(p+1)))}else t.groupCheckedAppsData=n},t.setGroupLimit]}}),t._v(" "),e("label",{attrs:{for:`groups_enable_${t.app.id}`}},[t._v(t._s(t.t("settings","Limit to groups")))]),t._v(" "),e("input",{staticClass:"group_select",attrs:{type:"hidden",title:t.t("settings","All"),value:""}}),t._v(" "),e("br"),t._v(" "),e("label",{attrs:{for:"limitToGroups"}},[e("span",[t._v(t._s(t.t("settings","Limit app usage to groups")))])]),t._v(" "),t.isLimitedToGroups(t.app)?e("NcSelect",{attrs:{"input-id":"limitToGroups",options:t.groups,value:t.appGroups,limit:5,label:"name",multiple:!0,"close-on-select":!1},on:{"option:selected":t.addGroupLimitation,"option:deselected":t.removeGroupLimitation,search:t.asyncFindGroup}},[e("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])]):t._e()],1):t._e(),t._v(" "),e("div",{staticClass:"app-details__actions-manage"},[t.app.update?e("input",{staticClass:"update primary",attrs:{type:"button",value:t.t("settings","Update to {version}",{version:t.app.update}),disabled:t.installing||t.isLoading||t.isManualInstall},on:{click:function(e){return t.update(t.app.id)}}}):t._e(),t._v(" "),t.app.canUnInstall?e("input",{staticClass:"uninstall",attrs:{type:"button",value:t.t("settings","Remove"),disabled:t.installing||t.isLoading},on:{click:function(e){return t.remove(t.app.id,t.removeData)}}}):t._e(),t._v(" "),t.app.active?e("input",{staticClass:"enable",attrs:{type:"button",value:t.disableButtonText,disabled:t.installing||t.isLoading||t.isInitializing||t.isDeploying},on:{click:function(e){return t.disable(t.app.id)}}}):t._e(),t._v(" "),t.app.active||!t.app.canInstall&&!t.app.isCompatible?t.app.active||t.app.canInstall?t._e():e("input",{staticClass:"enable force",attrs:{title:t.forceEnableButtonTooltip,"aria-label":t.forceEnableButtonTooltip,type:"button",value:t.forceEnableButtonText,disabled:t.installing||t.isLoading},on:{click:function(e){return t.forceEnable(t.app.id)}}}):e("input",{staticClass:"enable primary",attrs:{title:t.enableButtonTooltip,"aria-label":t.enableButtonTooltip,type:"button",value:t.enableButtonText,disabled:!t.app.canInstall||t.installing||t.isLoading||!t.defaultDeployDaemonAccessible||t.isInitializing||t.isDeploying},on:{click:function(e){return t.enable(t.app.id)}}})]),t._v(" "),t.defaultDeployDaemonAccessible?t._e():e("p",{staticClass:"warning"},[t._v("\n\t\t\t\t"+t._s(t.t("settings","Default Deploy daemon is not accessible"))+"\n\t\t\t")]),t._v(" "),t.app.canUnInstall?e("NcCheckboxRadioSwitch",{attrs:{checked:t.removeData,disabled:t.installing||t.isLoading||!t.defaultDeployDaemonAccessible},on:{"update:checked":t.toggleRemoveData}},[t._v("\n\t\t\t\t"+t._s(t.t("settings","Delete data on remove"))+"\n\t\t\t")]):t._e()],1),t._v(" "),e("ul",{staticClass:"app-details__dependencies"},[t.app.missingMinOwnCloudVersion?e("li",[t._v("\n\t\t\t\t"+t._s(t.t("settings","This app has no minimum Nextcloud version assigned. This will be an error in the future."))+"\n\t\t\t")]):t._e(),t._v(" "),t.app.missingMaxOwnCloudVersion?e("li",[t._v("\n\t\t\t\t"+t._s(t.t("settings","This app has no maximum Nextcloud version assigned. This will be an error in the future."))+"\n\t\t\t")]):t._e(),t._v(" "),t.app.canInstall?t._e():e("li",[t._v("\n\t\t\t\t"+t._s(t.t("settings","This app cannot be installed because the following dependencies are not fulfilled:"))+"\n\t\t\t\t"),e("ul",{staticClass:"missing-dependencies"},t._l(t.app.missingDependencies,(function(a,s){return e("li",{key:s},[t._v("\n\t\t\t\t\t\t"+t._s(a)+"\n\t\t\t\t\t")])})),0)])]),t._v(" "),t.lastModified&&!t.app.shipped?e("div",{staticClass:"app-details__section"},[e("h4",[t._v("\n\t\t\t\t"+t._s(t.t("settings","Latest updated"))+"\n\t\t\t")]),t._v(" "),e("NcDateTime",{attrs:{timestamp:t.lastModified}})],1):t._e(),t._v(" "),e("div",{staticClass:"app-details__section"},[e("h4",[t._v("\n\t\t\t\t"+t._s(t.t("settings","Author"))+"\n\t\t\t")]),t._v(" "),e("p",{staticClass:"app-details__authors"},[t._v("\n\t\t\t\t"+t._s(t.appAuthors)+"\n\t\t\t")])]),t._v(" "),e("div",{staticClass:"app-details__section"},[e("h4",[t._v("\n\t\t\t\t"+t._s(t.t("settings","Categories"))+"\n\t\t\t")]),t._v(" "),e("p",[t._v("\n\t\t\t\t"+t._s(t.appCategories)+"\n\t\t\t")])]),t._v(" "),t.externalResources.length>0?e("div",{staticClass:"app-details__section"},[e("h4",[t._v(t._s(t.t("settings","Resources")))]),t._v(" "),e("ul",{staticClass:"app-details__documentation",attrs:{"aria-label":t.t("settings","Documentation")}},t._l(t.externalResources,(function(a){return e("li",{key:a.id},[e("a",{staticClass:"appslink",attrs:{href:a.href,target:"_blank",rel:"noreferrer noopener"}},[t._v("\n\t\t\t\t\t\t"+t._s(a.label)+" ↗\n\t\t\t\t\t")])])})),0)]):t._e(),t._v(" "),e("div",{staticClass:"app-details__section"},[e("h4",[t._v(t._s(t.t("settings","Interact")))]),t._v(" "),e("div",{staticClass:"app-details__interact"},[e("NcButton",{attrs:{disabled:!t.app.bugs,href:t.app.bugs??"#","aria-label":t.t("settings","Report a bug"),title:t.t("settings","Report a bug")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.mdiBug}})]},proxy:!0}])}),t._v(" "),e("NcButton",{attrs:{disabled:!t.app.bugs,href:t.app.bugs??"#","aria-label":t.t("settings","Request feature"),title:t.t("settings","Request feature")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.mdiFeatureSearch}})]},proxy:!0}])}),t._v(" "),t.app.appstoreData?.discussion?e("NcButton",{attrs:{href:t.app.appstoreData.discussion,"aria-label":t.t("settings","Ask questions or discuss"),title:t.t("settings","Ask questions or discuss")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.mdiTooltipQuestion}})]},proxy:!0}],null,!1,1288192462)}):t._e(),t._v(" "),t.app.internal?t._e():e("NcButton",{attrs:{href:t.rateAppUrl,"aria-label":t.t("settings","Rate the app"),title:t.t("settings","Rate")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.mdiStar}})]},proxy:!0}],null,!1,422450625)})],1)])])])}),[],!1,null,"0cb80a14",null).exports,j=(0,n.pM)({__name:"AppReleasesTab",props:{app:null},setup(t){const e=t,a=(0,n.EW)((()=>Object.values(e.app.releases?.[0]?.translations??{}).some((t=>{let{changelog:e}=t;return!!e}))));return{__sfc:!0,props:e,hasChangelog:a,createChangelogFromRelease:t=>t.translations?.[(0,i.Z0)()]?.changelog??t.translations?.en?.changelog??"",mdiClockFast:d.NWU,t:i.Tl,NcAppSidebarTab:A.A,NcIconSvgWrapper:l.A,Markdown:B}}});var H=s(37925),Q={};Q.styleTagTransform=D(),Q.setAttributes=x(),Q.insert=y().bind(null,"head"),Q.domAPI=_(),Q.insertStyleElement=N(),C()(H.A,Q),H.A&&H.A.locals&&H.A.locals;const K=(0,k.A)(j,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return a.hasChangelog?e(a.NcAppSidebarTab,{attrs:{id:"changelog",name:a.t("settings","Changelog"),order:2},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.mdiClockFast,size:24}})]},proxy:!0}],null,!1,1849836872)},[t._v(" "),t._l(t.app.releases,(function(s){return e("div",{key:s.version,staticClass:"app-sidebar-tabs__release"},[e("h2",[t._v(t._s(s.version))]),t._v(" "),e(a.Markdown,{staticClass:"app-sidebar-tabs__release-text",attrs:{text:a.createChangelogFromRelease(s)}})],1)}))],2):t._e()}),[],!1,null,"9c32407e",null).exports,J=(0,n.pM)({__name:"AppDeployDaemonTab",props:{app:null},setup(t){const e=t;return{__sfc:!0,props:e,gpuSupport:(0,n.KR)("cpu"!==e.app?.daemon?.deploy_config?.computeDevice?.id||!1),NcAppSidebarTab:A.A,NcIconSvgWrapper:l.A,mdiFileChart:d.pTY}}});var X=s(17971),Z={};Z.styleTagTransform=D(),Z.setAttributes=x(),Z.insert=y().bind(null,"head"),Z.domAPI=_(),Z.insertStyleElement=N(),C()(X.A,Z),X.A&&X.A.locals&&X.A.locals;const tt=(0,k.A)(J,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return t.app?.daemon?e(a.NcAppSidebarTab,{attrs:{id:"daemon",name:t.t("settings","Daemon"),order:3},scopedSlots:t._u([{key:"icon",fn:function(){return[e(a.NcIconSvgWrapper,{attrs:{path:a.mdiFileChart,size:24}})]},proxy:!0}],null,!1,1746493066)},[t._v(" "),e("div",{staticClass:"daemon"},[e("h4",[t._v(t._s(t.t("settings","Deploy Daemon")))]),t._v(" "),e("p",[e("b",[t._v(t._s(t.t("settings","Type")))]),t._v(": "+t._s(t.app?.daemon.accepts_deploy_id))]),t._v(" "),e("p",[e("b",[t._v(t._s(t.t("settings","Name")))]),t._v(": "+t._s(t.app?.daemon.name))]),t._v(" "),e("p",[e("b",[t._v(t._s(t.t("settings","Display Name")))]),t._v(": "+t._s(t.app?.daemon.display_name))]),t._v(" "),e("p",[e("b",[t._v(t._s(t.t("settings","GPUs support")))]),t._v(": "+t._s(a.gpuSupport))]),t._v(" "),e("p",[e("b",[t._v(t._s(t.t("settings","Compute device")))]),t._v(": "+t._s(t.app?.daemon?.deploy_config?.computeDevice?.label))])])]):t._e()}),[],!1,null,"10be429c",null).exports;var et=s(11516);const at=(0,n.pM)({__name:"AppDaemonBadge",props:{daemon:null},setup:t=>({__sfc:!0,mdiFileChart:d.pTY,NcIconSvgWrapper:l.A})});var st=s(45520),nt={};nt.styleTagTransform=D(),nt.setAttributes=x(),nt.insert=y().bind(null,"head"),nt.domAPI=_(),nt.insertStyleElement=N(),C()(st.A,nt),st.A&&st.A.locals&&st.A.locals;const it=(0,k.A)(at,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return t.daemon?e("span",{staticClass:"app-daemon-badge",attrs:{title:t.daemon.name}},[e(a.NcIconSvgWrapper,{attrs:{path:a.mdiFileChart,size:20,inline:""}}),t._v("\n\t"+t._s(t.daemon.display_name)+"\n")],1):t._e()}),[],!1,null,"4e5b1dd0",null).exports;var pt=s(86438),ot=s(36620),rt=s(8265);const lt=(0,n.pM)({__name:"AppStoreSidebar",setup(t){const e=(0,p.lq)(),a=(0,p.rd)(),s=(0,o.T)(),A=(0,F.a)(),u=(0,rt.P)(),g=(0,n.EW)((()=>e.params.id??"")),h=(0,n.EW)((()=>{if(u.getters.isAppApiEnabled){const t=A.getAllApps.find((t=>t.id===g.value))??null;if(t)return t}return s.getAppById(g.value)})),v=(0,n.EW)((()=>h.value.appstoreData?.ratingNumOverall>5)),m=(0,n.EW)((()=>h.value.appstoreData?.ratingNumRecent>5?h.value.appstoreData.ratingRecent:h.value.appstoreData?.ratingOverall??.5)),C=(0,n.EW)((()=>null!==h.value)),{appIcon:b}=function(t){const e=(0,n.KR)(null),a=(0,n.EW)((()=>{let e;return e=t.value?.app_api?d.ED:[t.value?.category??[]].flat().map((t=>pt.A[t])).filter((t=>!!t)).at(0)??(t.value?.app_api?d.ED:d.CZ3),e?`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="${e}" /></svg>`:null}));return(0,n.nT)((async()=>{if(t.value?.preview){e.value=null;try{const a=await window.fetch(t.value.preview),s=await a.blob(),n=await s.text();e.value=n.replaceAll(/fill="#(fff|ffffff)([a-z0-9]{1,2})?"/gi,'fill="currentColor"')}catch(t){e.value=a.value,ot.A.error("Could not load app icon",{error:t})}}else e.value=a.value})),{appIcon:e}}(h),_=(0,n.EW)((()=>h.value?""!==h.value.license?(0,i.Tl)("settings","Version {version}, {license}-licensed",{version:h.value.version,license:h.value.licence.toString().toUpperCase()}):(0,i.Tl)("settings","Version {version}",{version:h.value.version}):"")),f=(0,n.KR)("details");(0,n.wB)([h],(()=>{f.value="details"}));const y=(0,n.KR)(!1),S=(0,n.EW)((()=>h.value?.screenshot&&y.value)),x=()=>{if(h.value?.releases&&h.value?.screenshot){const t=new Image;t.onload=()=>{y.value=!0},t.src=h.value.screenshot}};return(0,n.wB)([h],x),(0,n.sV)(x),{__sfc:!0,route:e,router:a,store:s,appApiStore:A,legacyStore:u,appId:g,app:h,hasRating:v,rating:m,showSidebar:C,appIcon:b,licenseText:_,activeTab:f,hideAppDetails:()=>{a.push({name:"apps-category",params:{category:e.params.category}})},screenshotLoaded:y,hasScreenshot:S,loadScreenshot:x,NcAppSidebar:r.N,NcIconSvgWrapper:l.A,AppScore:c.A,AppDescriptionTab:R,AppDetailsTab:q,AppReleasesTab:K,AppDeployDaemonTab:tt,AppLevelBadge:et.A,AppDaemonBadge:it}}});var ct=s(37205),dt={};dt.styleTagTransform=D(),dt.setAttributes=x(),dt.insert=y().bind(null,"head"),dt.domAPI=_(),dt.insertStyleElement=N(),C()(ct.A,dt),ct.A&&ct.A.locals&&ct.A.locals;const At=(0,k.A)(lt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return a.showSidebar?e(a.NcAppSidebar,{staticClass:"app-sidebar",class:{"app-sidebar--with-screenshot":a.hasScreenshot},attrs:{active:a.activeTab,background:a.hasScreenshot?a.app.screenshot:void 0,compact:!a.hasScreenshot,name:a.app.name,title:a.app.name,subname:a.licenseText,subtitle:a.licenseText},on:{"update:active":function(t){a.activeTab=t},close:a.hideAppDetails},scopedSlots:t._u([a.hasScreenshot?null:{key:"header",fn:function(){return[e(a.NcIconSvgWrapper,{staticClass:"app-sidebar__fallback-icon",attrs:{svg:a.appIcon??"",size:64}})]},proxy:!0},{key:"description",fn:function(){return[e("div",{staticClass:"app-sidebar__badges"},[e(a.AppLevelBadge,{attrs:{level:a.app.level}}),t._v(" "),a.app.app_api&&a.app.daemon?e(a.AppDaemonBadge,{attrs:{daemon:a.app.daemon}}):t._e(),t._v(" "),a.hasRating?e(a.AppScore,{attrs:{score:a.rating}}):t._e()],1)]},proxy:!0}],null,!0)},[t._v(" "),t._v(" "),e(a.AppDescriptionTab,{attrs:{app:a.app}}),t._v(" "),e(a.AppDetailsTab,{attrs:{app:a.app}}),t._v(" "),e(a.AppReleasesTab,{attrs:{app:a.app}}),t._v(" "),e(a.AppDeployDaemonTab,{attrs:{app:a.app}})],1):t._e()}),[],!1,null,"70317c96",null).exports}}]);
- //# sourceMappingURL=settings-apps-view-4529.js.map?v=5d754e6915f49f5c1398
|