-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Expand file tree
/
Copy pathsettings-main.js
More file actions
2 lines (2 loc) · 13 KB
/
settings-main.js
File metadata and controls
2 lines (2 loc) · 13 KB
1
2
(()=>{"use strict";var t,e,n,i={94699(t,e,n){var i=n(21777),s=n(85471),o=n(22378),a=n(24606),r=n(32806),c=n(61744),l=n(78928),p=n(31288),g=n(68432),d=n(64426),u=n(59915),N=n(29248),m=n(15502),v=n(71711),A=n(95452),f=n(78529),h=n(47611),_=n(10363),y=n(70676),b=n(64230),C=n(54048),S=n(58761),x=n(27345),w=n(47798),I=n(90923),P=n(54568),T=n(78280),k=n(542),L=n(29705),O=n(93651),E=n(15807),M=n(96669),j=n(50017),D=n(60258),X=n(67263),$=n(66865),F=n(17067),z=n(45379),G=n(52631),W=n(99070),B=n(61100),R=n(80411),U=n(90286),q=n(46173),H=n(27671),Q=n(64988),V=n(90429),J=n(65889),K=n(6537),Y=n(44025),Z=n(7225),tt=n(48198),et=n(76125),nt=n(56103),it=n(83194),st=n(49886),ot=n(42507),at=n(5428),rt=n(85646),ct=n(49806),lt=n(16911),pt=n(2338),gt=n(99925),dt=n(66768),ut=n(22028),Nt=n(72832),mt=n(51550),vt=n(91624),At=n(6670),ft=n(48191),ht=n(61029),_t=n(83564),yt=n(31826),bt=n(88289),Ct=n(83947),St=n(371),xt=n(97836),wt=n(71912),It=n(35290),Pt=n(1938),Tt=n(1357),kt=n(30147),Lt=n(26797),Ot=n(70345),Et=(n(19051),n(86401),n(52781),n(3168),n(10400)),Mt=n(77078),jt=n(63070),Dt=(n(61338),n(71639)),Xt=n(93697),$t=n(35986),Ft=n(27971),zt=n(25514),Gt=n(70925),Wt=n(59721),Bt=n(8256),Rt=n(72406),Ut=n(88684),qt=n(99835),Ht=n(23610),Qt=(n(55581),n(94205),n(95462),n(23020),n(53429),n(23739),n(71409),n(29928),n(64660),n(18547),n(42892)),Vt=n(69885),Jt=(n(59656),n(75105),n(92471),n(16406),n(2508));a.N,r.N,c.A,l.N,p.N,g.A,d.N,u.A,m.A,v.A,A.N,N.N,f.N,h.A,_.A,y.N,b.N,C.A,S.N,x.A,w.N,I.N,P.N,T.N,k.A,L.N,O.N,E.N,E.N,M.N,j.N,D.A,X.N,$.A,F.N,Ot.N,z.N,G.N,W.N,B.N,R.N,U.N,q.N,H.N,Q.N,V.N,J.N,K.N,Y.N,Z.default,tt.A,et.N,nt.N,it.A,st.N,ot.A,at.N,rt.N,ct.N,lt.N,pt.N,gt.N,dt.A,ut.N,Nt.N,mt.N,vt.N,At.N,ft.N,ht.N,_t.N,yt.N,bt.A,Lt.N,Ct.A,St.A,xt.N,wt.N,It.N,Pt.N,Tt.N,kt.N,Ot.a,Et.N,Dt.N,Mt.N,Xt.N,$t.N,Ft.N,zt.N,Gt.N,Wt.N,jt.N,Bt.N,Rt.N,Ut.N,qt.N,Ht.A,Symbol.toStringTag,Qt.A,Vt.A,Jt.yw,Symbol.toStringTag;const Kt=(0,s.pM)({__name:"SettingsContentWrapper",setup(t){const e=(0,s.KR)();return(0,s.sV)(()=>{const t=document.getElementById("original-settings-content");e.value.replaceChildren(...t.childNodes),t.parentNode.removeChild(t)}),{__sfc:!0,contentMain:e,NcAppContent:f.N}}});var Yt=n(14486);const Zt=(0,Yt.A)(Kt,function(){var t=this._self._c;return t(this._self._setupProxy.NcAppContent,[t("div",{ref:"contentMain"})])},[],!1,null,null,null).exports;var te=n(81222),ee=n(53334),ne=n(42530),ie=n(63814),se=n(52439);const oe=(0,s.pM)({__name:"SettingsNavigationItem",props:{section:null,type:null},setup(t){const e=t,n=(0,s.EW)(()=>(0,ie.Jv)("/settings/{type}/{section}",{type:"personal"===e.type?"user":"admin",section:e.section.id}));return{__sfc:!0,props:e,href:n,NcAppNavigationItem:se.A}}});var ae=n(85072),re=n.n(ae),ce=n(97825),le=n.n(ce),pe=n(77659),ge=n.n(pe),de=n(55056),ue=n.n(de),Ne=n(10540),me=n.n(Ne),ve=n(41113),Ae=n.n(ve),fe=n(20944),he={};he.styleTagTransform=Ae(),he.setAttributes=ue(),he.insert=ge().bind(null,"head"),he.domAPI=le(),he.insertStyleElement=me(),re()(fe.A,he);const _e=fe.A&&fe.A.locals?fe.A.locals:void 0,ye=(0,Yt.A)(oe,function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e(n.NcAppNavigationItem,{attrs:{name:t.section.name,active:t.section.active,href:n.href},scopedSlots:t._u([t.section.icon?{key:"icon",fn:function(){return[e("img",{class:t.$style.settingsNavigationItem__icon,attrs:{src:t.section.icon,alt:""}})]},proxy:!0}:null],null,!0)})},[],!1,function(t){this.$style=_e.locals||_e},null,null).exports,be=(0,s.pM)({__name:"SettingsNavigation",setup(t){const{personal:e,admin:n}=(0,te.C)("settings","sections");return{__sfc:!0,personalSections:e,adminSections:n,hasAdminSections:n.length>0,t:ee.t,NcAppNavigation:ne.A,NcAppNavigationCaption:b.N,NcAppNavigationList:x.A,SettingsNavigationItem:ye}}}),Ce=(0,Yt.A)(be,function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e(n.NcAppNavigation,[e(n.NcAppNavigationCaption,{attrs:{"heading-id":"settings-personal_section_heading","is-heading":"",name:n.t("settings","Personal")}}),t._v(" "),e(n.NcAppNavigationList,{attrs:{"aria-labelledby":"settings-personal_section_heading"}},t._l(n.personalSections,function(t){return e(n.SettingsNavigationItem,{key:"personal-section--"+t.id,attrs:{section:t,type:"personal"}})}),1),t._v(" "),n.hasAdminSections?[e(n.NcAppNavigationCaption,{attrs:{"heading-id":"settings-admin_section_heading","is-heading":"",name:n.t("settings","Administration")}}),t._v(" "),e(n.NcAppNavigationList,{attrs:{"aria-labelledby":"settings-admin_section_heading"}},t._l(n.adminSections,function(t){return e(n.SettingsNavigationItem,{key:"admin-section--"+t.id,attrs:{section:t,type:"admin"}})}),1)]:t._e()],2)},[],!1,null,null,null).exports,Se=(0,s.pM)({__name:"SettingsApp",setup:t=>({__sfc:!0,NcContent:o.A,SettingsContentWrapper:Zt,SettingsNavigation:Ce})});var xe=n(62840),we={};we.styleTagTransform=Ae(),we.setAttributes=ue(),we.insert=ge().bind(null,"head"),we.domAPI=le(),we.insertStyleElement=me(),re()(xe.A,we);const Ie=xe.A&&xe.A.locals?xe.A.locals:void 0,Pe=(0,Yt.A)(Se,function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e(n.NcContent,{class:t.$style.settingsApp,attrs:{appName:"settings"}},[e(n.SettingsNavigation),t._v(" "),e(n.SettingsContentWrapper)],1)},[],!1,function(t){this.$style=Ie.locals||Ie},null,null).exports;n.nc=(0,i.aV)(),new s.Ay(Pe).$mount("#settings-app")},20944(t,e,n){n.d(e,{A:()=>r});var i=n(71354),s=n.n(i),o=n(76314),a=n.n(o)()(s());a.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:""}]),a.locals={settingsNavigationItem__icon:"_settingsNavigationItem__icon__Cm2F"};const r=a},62840(t,e,n){n.d(e,{A:()=>r});var i=n(71354),s=n.n(i),o=n(76314),a=n.n(o)()(s());a.push([t.id,"\n#content:has(._settingsApp_vhsQ3) {\n\tmargin: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n","",{version:3,sources:["webpack://./apps/settings/src/views/SettingsApp.vue"],names:[],mappings:";AAmBA;CACA,SAAA;CACA,WAAA;CACA,YAAA;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<NcContent :class=\"$style.settingsApp\" appName=\"settings\">\n\t\t<SettingsNavigation />\n\t\t<SettingsContentWrapper />\n\t</NcContent>\n</template>\n\n<script setup lang=\"ts\">\nimport NcContent from '@nextcloud/vue/components/NcContent'\nimport SettingsContentWrapper from './SettingsContentWrapper.vue'\nimport SettingsNavigation from './SettingsNavigation.vue'\n<\/script>\n\n<style module>\n:global(#content):has(.settingsApp) {\n\tmargin: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n</style>\n"],sourceRoot:""}]),a.locals={settingsApp:"_settingsApp_vhsQ3"};const r=a},27518(t){t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M15.4%2016.6L10.8%2012l4.6-4.6L14%206l-6%206%206%206%201.4-1.4z%27/%3e%3c/svg%3e"},27514(t){t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M18.4%207.4L17%206l-6%206%206%206%201.4-1.4-4.6-4.6%204.6-4.6m-6%200L11%206l-6%206%206%206%201.4-1.4L7.8%2012l4.6-4.6z%27/%3e%3c/svg%3e"},79722(t){t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M5.6%207.4L7%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6m6%200L13%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6z%27/%3e%3c/svg%3e"},64505(t){t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M8.6%2016.6l4.6-4.6-4.6-4.6L10%206l6%206-6%206-1.4-1.4z%27/%3e%3c/svg%3e"}},s={};function o(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=i,t=[],o.O=(e,n,i,s)=>{if(!n){var a=1/0;for(p=0;p<t.length;p++){for(var[n,i,s]=t[p],r=!0,c=0;c<n.length;c++)(!1&s||a>=s)&&Object.keys(o.O).every(t=>o.O[t](n[c]))?n.splice(c--,1):(r=!1,s<a&&(a=s));if(r){t.splice(p--,1);var l=i();void 0!==l&&(e=l)}}return e}s=s||0;for(var p=t.length;p>0&&t[p-1][2]>s;p--)t[p]=t[p-1];t[p]=[n,i,s]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce((e,n)=>(o.f[n](t,e),e),[])),o.u=t=>t+"-"+t+".js?v="+{5862:"580b9c2e231a9169a12f",6798:"805f33941c6d0c16d356",7471:"b4ac70873a3ab192efd0"}[t],o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),e={},n="nextcloud-ui-legacy:",o.l=(t,i,s,a)=>{if(e[t])e[t].push(i);else{var r,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),p=0;p<l.length;p++){var g=l[p];if(g.getAttribute("src")==t||g.getAttribute("data-webpack")==n+s){r=g;break}}r||(c=!0,(r=document.createElement("script")).charset="utf-8",o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",n+s),r.src=t),e[t]=[i];var d=(n,i)=>{r.onerror=r.onload=null,clearTimeout(u);var s=e[t];if(delete e[t],r.parentNode&&r.parentNode.removeChild(r),s&&s.forEach(t=>t(i)),n)return n(i)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=d.bind(null,r.onerror),r.onload=d.bind(null,r.onload),c&&document.head.appendChild(r)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),o.j=2314,(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var e=globalThis.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{o.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={2314:0,7471:0};o.f.j=(e,n)=>{var i=o.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var s=new Promise((n,s)=>i=t[e]=[n,s]);n.push(i[2]=s);var a=o.p+o.u(e),r=new Error;o.l(a,n=>{if(o.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;r.message="Loading chunk "+e+" failed.\n("+s+": "+a+")",r.name="ChunkLoadError",r.type=s,r.request=a,i[1](r)}},"chunk-"+e,e)}},o.O.j=e=>0===t[e];var e=(e,n)=>{var i,s,[a,r,c]=n,l=0;if(a.some(e=>0!==t[e])){for(i in r)o.o(r,i)&&(o.m[i]=r[i]);if(c)var p=c(o)}for(e&&e(n);l<a.length;l++)s=a[l],o.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return o.O(p)},n=globalThis.webpackChunknextcloud_ui_legacy=globalThis.webpackChunknextcloud_ui_legacy||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),o.nc=void 0;var a=o.O(void 0,[4208],()=>o(94699));a=o.O(a)})();
//# sourceMappingURL=settings-main.js.map?v=403c96c013b25858964c