You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/dist/settings-main.js

2 lines
5.9 KiB

(()=>{"use strict";var t,n={2162(t,n,e){var i=e(21777),o=e(85471),a=e(81222),s=e(53334),r=e(42530),c=e(65258),l=e(27345),p=e(63814),g=e(52439);const d=(0,o.pM)({__name:"SettingsNavigationItem",props:{section:null,type:null},setup(t){const n=t,e=(0,o.EW)(()=>(0,p.Jv)("/settings/{type}/{section}",{type:"personal"===n.type?"user":"admin",section:n.section.id}));return{__sfc:!0,props:n,href:e,NcAppNavigationItem:g.A}}});var v=e(85072),u=e.n(v),m=e(97825),f=e.n(m),A=e(77659),_=e.n(A),h=e(55056),N=e.n(h),y=e(10540),b=e.n(y),C=e(41113),S=e.n(C),I=e(20944),x={};x.styleTagTransform=S(),x.setAttributes=N(),x.insert=_().bind(null,"head"),x.domAPI=f(),x.insertStyleElement=b(),u()(I.A,x);const k=I.A&&I.A.locals?I.A.locals:void 0;var O=e(14486);const P=(0,O.A)(d,function(){var t=this,n=t._self._c,e=t._self._setupProxy;return n(e.NcAppNavigationItem,{attrs:{name:t.section.name,active:t.section.active,href:e.href},scopedSlots:t._u([t.section.icon?{key:"icon",fn:function(){return[n("img",{class:t.$style.settingsNavigationItem__icon,attrs:{src:t.section.icon,alt:""}})]},proxy:!0}:null],null,!0)})},[],!1,function(t){this.$style=k.locals||k},null,null).exports,j=(0,o.pM)({__name:"SettingsNavigation",setup(t){const{personal:n,admin:e}=(0,a.C)("settings","sections");return{__sfc:!0,personalSections:n,adminSections:e,hasAdminSections:e.length>0,t:s.t,NcAppNavigation:r.A,NcAppNavigationCaption:c.N,NcAppNavigationList:l.A,SettingsNavigationItem:P}}}),w=(0,O.A)(j,function(){var t=this,n=t._self._c,e=t._self._setupProxy;return n(e.NcAppNavigation,[n(e.NcAppNavigationCaption,{attrs:{"heading-id":"settings-personal_section_heading","is-heading":"",name:e.t("settings","Personal")}}),t._v(" "),n(e.NcAppNavigationList,{attrs:{"aria-labelledby":"settings-personal_section_heading"}},t._l(e.personalSections,function(t){return n(e.SettingsNavigationItem,{key:"personal-section--"+t.id,attrs:{section:t,type:"personal"}})}),1),t._v(" "),e.hasAdminSections?[n(e.NcAppNavigationCaption,{attrs:{"heading-id":"settings-admin_section_heading","is-heading":"",name:e.t("settings","Administration")}}),t._v(" "),n(e.NcAppNavigationList,{attrs:{"aria-labelledby":"settings-admin_section_heading"}},t._l(e.adminSections,function(t){return n(e.SettingsNavigationItem,{key:"admin-section--"+t.id,attrs:{section:t,type:"admin"}})}),1)]:t._e()],2)},[],!1,null,null,null).exports;e.nc=(0,i.aV)(),new o.Ay(w).$mount("#app-navigation")},20944(t,n,e){e.d(n,{A:()=>r});var i=e(71354),o=e.n(i),a=e(76314),s=e.n(a)()(o());s.push([t.id,"\n._settingsNavigationItem__icon__Cm2F {\n\twidth: var(--default-font-size);\n\theight: var(--default-font-size);\n\tobject-fit: contain;\n\tfilter: var(--background-invert-if-dark);\n}\n.active ._settingsNavigationItem__icon__Cm2F {\n\tfilter: var(--primary-invert-if-dark);\n}\n","",{version:3,sources:["webpack://./apps/settings/src/components/SettingsNavigationItem.vue"],names:[],mappings:";AA2CA;CACA,+BAAA;CACA,gCAAA;CACA,mBAAA;CACA,wCAAA;AACA;AAEA;CACA,qCAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n<script setup lang=\"ts\">\nimport { generateUrl } from '@nextcloud/router'\nimport { computed } from 'vue'\nimport NcAppNavigationItem from '@nextcloud/vue/components/NcAppNavigationItem'\n\nexport interface ISettingsSection {\n\tid: string\n\tname: string\n\ticon?: string\n\tactive: boolean\n}\n\nconst props = defineProps<{\n\tsection: ISettingsSection\n\ttype: 'admin' | 'personal'\n}>()\n\nconst href = computed(() => generateUrl('/settings/{type}/{section}', {\n\ttype: props.type === 'personal' ? 'user' : 'admin',\n\tsection: props.section.id,\n}))\n<\/script>\n\n<template>\n\t<NcAppNavigationItem\n\t\t:name=\"section.name\"\n\t\t:active=\"section.active\"\n\t\t:href=\"href\">\n\t\t<template v-if=\"section.icon\" #icon>\n\t\t\t<img\n\t\t\t\t:class=\"$style.settingsNavigationItem__icon\"\n\t\t\t\t:src=\"section.icon\"\n\t\t\t\talt=\"\">\n\t\t</template>\n\t</NcAppNavigationItem>\n</template>\n\n<style module>\n.settingsNavigationItem__icon {\n\twidth: var(--default-font-size);\n\theight: var(--default-font-size);\n\tobject-fit: contain;\n\tfilter: var(--background-invert-if-dark);\n}\n\n:global(.active) .settingsNavigationItem__icon {\n\tfilter: var(--primary-invert-if-dark);\n}\n</style>\n"],sourceRoot:""}]),s.locals={settingsNavigationItem__icon:"_settingsNavigationItem__icon__Cm2F"};const r=s}},e={};function i(t){var o=e[t];if(void 0!==o)return o.exports;var a=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}i.m=n,t=[],i.O=(n,e,o,a)=>{if(!e){var s=1/0;for(p=0;p<t.length;p++){for(var[e,o,a]=t[p],r=!0,c=0;c<e.length;c++)(!1&a||s>=a)&&Object.keys(i.O).every(t=>i.O[t](e[c]))?e.splice(c--,1):(r=!1,a<s&&(s=a));if(r){t.splice(p--,1);var l=o();void 0!==l&&(n=l)}}return n}a=a||0;for(var p=t.length;p>0&&t[p-1][2]>a;p--)t[p]=t[p-1];t[p]=[e,o,a]},i.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return i.d(n,{a:n}),n},i.d=(t,n)=>{for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.e=()=>Promise.resolve(),i.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),i.j=2314,(()=>{i.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={2314:0};i.O.j=n=>0===t[n];var n=(n,e)=>{var o,a,[s,r,c]=e,l=0;if(s.some(n=>0!==t[n])){for(o in r)i.o(r,o)&&(i.m[o]=r[o]);if(c)var p=c(i)}for(n&&n(e);l<s.length;l++)a=s[l],i.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return i.O(p)},e=globalThis.webpackChunknextcloud_ui_legacy=globalThis.webpackChunknextcloud_ui_legacy||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))})(),i.nc=void 0;var o=i.O(void 0,[4208],()=>i(2162));o=i.O(o)})();
//# sourceMappingURL=settings-main.js.map?v=2d424d93190929d5e289