nextcloud-server/dist/settings-vue-settings-perso...

1 line
25 KiB
Plaintext

{"version":3,"file":"settings-vue-settings-personal-password.js?v=5ba5fb724be7c0f80ea8","mappings":";6BAAIA,qICAwL,ECyD5L,CACAC,KAAAA,kBACAC,WAAAA,CACAC,kBAAAA,IACAC,SAAAA,IACAC,gBAAAA,KAEAC,KAAAA,WACA,OACAC,QAAAA,GACAC,QAAAA,GAEA,EACAC,QAAAA,CACAC,eAAAA,WAAA,WACAC,EAAAA,QAAAA,MAAAA,EAAAA,EAAAA,aAAAA,qCAAAA,CACAC,YAAAA,KAAAA,QACAC,YAAAA,KAAAA,UAEAC,MAAAA,SAAAA,GAAA,iBACAA,MAAAA,SAAAA,GACA,oBACA,+BACAC,EAAAA,EAAAA,IAAAA,EAAAA,KAAAA,WAEAC,EAAAA,EAAAA,IAAAA,EAAAA,KAAAA,QAEA,GACA,qIC1EIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKJ,KAAW,YAAiB,WALlD,ICbIM,GAAY,cACd,GCTW,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,oBAAoB,CAACE,MAAM,CAAC,MAAQJ,EAAIK,EAAE,WAAY,cAAc,CAACH,EAAG,OAAO,CAACE,MAAM,CAAC,GAAK,eAAe,OAAS,QAAQE,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBR,EAAId,eAAeuB,MAAM,KAAMC,UAAU,IAAI,CAACR,EAAG,kBAAkB,CAACE,MAAM,CAAC,GAAK,WAAW,MAAQJ,EAAIK,EAAE,WAAY,oBAAoB,iBAAgB,EAAK,KAAO,cAAc,MAAQL,EAAIjB,QAAQ,aAAe,mBAAmB,eAAiB,OAAO,YAAc,OAAOuB,GAAG,CA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D,EACZ9D,EAAoBiC,EAAE6B,EAAa7D,KACrCD,EAAoBQ,EAAEP,GAAY6D,EAAY7D,IAGhD,GAAG8D,EAAS,IAAIlD,EAASkD,EAAQ/D,EAClC,CAEA,IADG6D,GAA4BA,EAA2B5G,GACrDkE,EAAIL,EAAS/B,OAAQoC,IACzBwC,EAAU7C,EAASK,GAChBnB,EAAoBiC,EAAEyB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO3D,EAAoBY,EAAEC,EAC9B,EAEIoD,EAAqBV,KAA4B,sBAAIA,KAA4B,uBAAK,GAC1FU,EAAmBC,QAAQN,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBrE,KAAOgE,EAAqBO,KAAK,KAAMF,EAAmBrE,KAAKuE,KAAKF,OClDvFjE,EAAoBoE,QAAKjE,ECGzB,IAAIkE,EAAsBrE,EAAoBY,OAAET,EAAW,CAAC,OAAO,WAAa,OAAOH,EAAoB,KAAO,IAClHqE,EAAsBrE,EAAoBY,EAAEyD","sources":["webpack:///nextcloud/webpack/runtime/chunk loaded","webpack:///nextcloud/apps/settings/src/components/PasswordSection.vue?vue&type=script&lang=js&","webpack:///nextcloud/apps/settings/src/components/PasswordSection.vue","webpack://nextcloud/./apps/settings/src/components/PasswordSection.vue?8374","webpack://nextcloud/./apps/settings/src/components/PasswordSection.vue?c089","webpack://nextcloud/./apps/settings/src/components/PasswordSection.vue?dda9","webpack:///nextcloud/apps/settings/src/main-personal-password.js","webpack:///nextcloud/apps/settings/src/components/PasswordSection.vue?vue&type=style&index=0&id=18a645ce&prod&lang=css&","webpack:///nextcloud/webpack/bootstrap","webpack:///nextcloud/webpack/runtime/amd define","webpack:///nextcloud/webpack/runtime/amd options","webpack:///nextcloud/webpack/runtime/compat get default export","webpack:///nextcloud/webpack/runtime/define property getters","webpack:///nextcloud/webpack/runtime/global","webpack:///nextcloud/webpack/runtime/hasOwnProperty shorthand","webpack:///nextcloud/webpack/runtime/make namespace object","webpack:///nextcloud/webpack/runtime/node module decorator","webpack:///nextcloud/webpack/runtime/runtimeId","webpack:///nextcloud/webpack/runtime/jsonp chunk loading","webpack:///nextcloud/webpack/runtime/nonce","webpack:///nextcloud/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PasswordSection.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PasswordSection.vue?vue&type=script&lang=js&\"","<!--\n - @copyright 2022 Carl Schwan <carl@carlschwan.eu>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -->\n<template>\n\t<NcSettingsSection :title=\"t('settings', 'Password')\">\n\t\t<form id=\"passwordform\" method=\"POST\" @submit.prevent=\"changePassword\">\n\t\t\t<NcPasswordField id=\"old-pass\"\n\t\t\t\t:label=\"t('settings', 'Current password')\"\n\t\t\t\t:label-visible=\"true\"\n\t\t\t\tname=\"oldpassword\"\n\t\t\t\t:value.sync=\"oldPass\"\n\t\t\t\tautocomplete=\"current-password\"\n\t\t\t\tautocapitalize=\"none\"\n\t\t\t\tautocorrect=\"off\" />\n\n\t\t\t<NcPasswordField id=\"new-pass\"\n\t\t\t\t:label=\"t('settings', 'New password')\"\n\t\t\t\t:label-visible=\"true\"\n\t\t\t\t:value.sync=\"newPass\"\n\t\t\t\t:maxlength=\"469\"\n\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\tautocapitalize=\"none\"\n\t\t\t\tautocorrect=\"off\"\n\t\t\t\t:check-password-strength=\"true\" />\n\n\t\t\t<NcButton type=\"primary\"\n\t\t\t\tnative-type=\"submit\"\n\t\t\t\t:disabled=\"newPass.length === 0 || oldPass.length === 0\">\n\t\t\t\t{{ t('settings', 'Change password') }}\n\t\t\t</NcButton>\n\t\t</form>\n\t</NcSettingsSection>\n</template>\n\n<script>\nimport NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'\nimport NcButton from '@nextcloud/vue/dist/Components/NcButton.js'\nimport NcPasswordField from '@nextcloud/vue/dist/Components/NcPasswordField.js'\nimport axios from '@nextcloud/axios'\nimport { generateUrl } from '@nextcloud/router'\nimport { showSuccess, showError } from '@nextcloud/dialogs'\n\nexport default {\n\tname: 'PasswordSection',\n\tcomponents: {\n\t\tNcSettingsSection,\n\t\tNcButton,\n\t\tNcPasswordField,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\toldPass: '',\n\t\t\tnewPass: '',\n\t\t}\n\t},\n\tmethods: {\n\t\tchangePassword() {\n\t\t\taxios.post(generateUrl('/settings/personal/changepassword'), {\n\t\t\t\toldpassword: this.oldPass,\n\t\t\t\tnewpassword: this.newPass,\n\t\t\t})\n\t\t\t\t.then(res => res.data)\n\t\t\t\t.then(data => {\n\t\t\t\t\tif (data.status === 'error') {\n\t\t\t\t\t\tthis.errorMessage = data.data.message\n\t\t\t\t\t\tshowError(data.data.message)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowSuccess(data.data.message)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t},\n\t},\n}\n</script>\n\n<style>\n\t#passwordform {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 1rem;\n\t\tmax-width: 400px;\n\t}\n</style>\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PasswordSection.vue?vue&type=style&index=0&id=18a645ce&prod&lang=css&\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PasswordSection.vue?vue&type=style&index=0&id=18a645ce&prod&lang=css&\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./PasswordSection.vue?vue&type=template&id=18a645ce&\"\nimport script from \"./PasswordSection.vue?vue&type=script&lang=js&\"\nexport * from \"./PasswordSection.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PasswordSection.vue?vue&type=style&index=0&id=18a645ce&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('NcSettingsSection',{attrs:{\"title\":_vm.t('settings', 'Password')}},[_c('form',{attrs:{\"id\":\"passwordform\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.changePassword.apply(null, arguments)}}},[_c('NcPasswordField',{attrs:{\"id\":\"old-pass\",\"label\":_vm.t('settings', 'Current password'),\"label-visible\":true,\"name\":\"oldpassword\",\"value\":_vm.oldPass,\"autocomplete\":\"current-password\",\"autocapitalize\":\"none\",\"autocorrect\":\"off\"},on:{\"update:value\":function($event){_vm.oldPass=$event}}}),_vm._v(\" \"),_c('NcPasswordField',{attrs:{\"id\":\"new-pass\",\"label\":_vm.t('settings', 'New password'),\"label-visible\":true,\"value\":_vm.newPass,\"maxlength\":469,\"autocomplete\":\"new-password\",\"autocapitalize\":\"none\",\"autocorrect\":\"off\",\"check-password-strength\":true},on:{\"update:value\":function($event){_vm.newPass=$event}}}),_vm._v(\" \"),_c('NcButton',{attrs:{\"type\":\"primary\",\"native-type\":\"submit\",\"disabled\":_vm.newPass.length === 0 || _vm.oldPass.length === 0}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('settings', 'Change password'))+\"\\n\\t\\t\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * @copyright 2022 Carl Schwan <carl@carlschwan.eu>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport Vue from 'vue'\n\nimport PasswordSection from './components/PasswordSection.vue'\nimport { translate as t, translatePlural as n } from '@nextcloud/l10n'\n\n// eslint-disable-next-line camelcase\n__webpack_nonce__ = btoa(OC.requestToken)\n\nVue.prototype.t = t\nVue.prototype.n = n\n\nexport default new Vue({\n\tel: '#security-password',\n\tname: 'main-personal-password',\n\trender: h => h(PasswordSection),\n})\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"\\n#passwordform {\\n\\tdisplay: flex;\\n\\tflex-direction: column;\\n\\tgap: 1rem;\\n\\tmax-width: 400px;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./apps/settings/src/components/PasswordSection.vue\"],\"names\":[],\"mappings\":\";AAmGA;CACA,aAAA;CACA,sBAAA;CACA,SAAA;CACA,gBAAA;AACA\",\"sourcesContent\":[\"<!--\\n - @copyright 2022 Carl Schwan <carl@carlschwan.eu>\\n -\\n - @license GNU AGPL version 3 or any later version\\n -\\n - This program is free software: you can redistribute it and/or modify\\n - it under the terms of the GNU Affero General Public License as\\n - published by the Free Software Foundation, either version 3 of the\\n - License, or (at your option) any later version.\\n -\\n - This program is distributed in the hope that it will be useful,\\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n - GNU Affero General Public License for more details.\\n -\\n - You should have received a copy of the GNU Affero General Public License\\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\\n -->\\n<template>\\n\\t<NcSettingsSection :title=\\\"t('settings', 'Password')\\\">\\n\\t\\t<form id=\\\"passwordform\\\" method=\\\"POST\\\" @submit.prevent=\\\"changePassword\\\">\\n\\t\\t\\t<NcPasswordField id=\\\"old-pass\\\"\\n\\t\\t\\t\\t:label=\\\"t('settings', 'Current password')\\\"\\n\\t\\t\\t\\t:label-visible=\\\"true\\\"\\n\\t\\t\\t\\tname=\\\"oldpassword\\\"\\n\\t\\t\\t\\t:value.sync=\\\"oldPass\\\"\\n\\t\\t\\t\\tautocomplete=\\\"current-password\\\"\\n\\t\\t\\t\\tautocapitalize=\\\"none\\\"\\n\\t\\t\\t\\tautocorrect=\\\"off\\\" />\\n\\n\\t\\t\\t<NcPasswordField id=\\\"new-pass\\\"\\n\\t\\t\\t\\t:label=\\\"t('settings', 'New password')\\\"\\n\\t\\t\\t\\t:label-visible=\\\"true\\\"\\n\\t\\t\\t\\t:value.sync=\\\"newPass\\\"\\n\\t\\t\\t\\t:maxlength=\\\"469\\\"\\n\\t\\t\\t\\tautocomplete=\\\"new-password\\\"\\n\\t\\t\\t\\tautocapitalize=\\\"none\\\"\\n\\t\\t\\t\\tautocorrect=\\\"off\\\"\\n\\t\\t\\t\\t:check-password-strength=\\\"true\\\" />\\n\\n\\t\\t\\t<NcButton type=\\\"primary\\\"\\n\\t\\t\\t\\tnative-type=\\\"submit\\\"\\n\\t\\t\\t\\t:disabled=\\\"newPass.length === 0 || oldPass.length === 0\\\">\\n\\t\\t\\t\\t{{ t('settings', 'Change password') }}\\n\\t\\t\\t</NcButton>\\n\\t\\t</form>\\n\\t</NcSettingsSection>\\n</template>\\n\\n<script>\\nimport NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'\\nimport NcButton from '@nextcloud/vue/dist/Components/NcButton.js'\\nimport NcPasswordField from '@nextcloud/vue/dist/Components/NcPasswordField.js'\\nimport axios from '@nextcloud/axios'\\nimport { generateUrl } from '@nextcloud/router'\\nimport { showSuccess, showError } from '@nextcloud/dialogs'\\n\\nexport default {\\n\\tname: 'PasswordSection',\\n\\tcomponents: {\\n\\t\\tNcSettingsSection,\\n\\t\\tNcButton,\\n\\t\\tNcPasswordField,\\n\\t},\\n\\tdata() {\\n\\t\\treturn {\\n\\t\\t\\toldPass: '',\\n\\t\\t\\tnewPass: '',\\n\\t\\t}\\n\\t},\\n\\tmethods: {\\n\\t\\tchangePassword() {\\n\\t\\t\\taxios.post(generateUrl('/settings/personal/changepassword'), {\\n\\t\\t\\t\\toldpassword: this.oldPass,\\n\\t\\t\\t\\tnewpassword: this.newPass,\\n\\t\\t\\t})\\n\\t\\t\\t\\t.then(res => res.data)\\n\\t\\t\\t\\t.then(data => {\\n\\t\\t\\t\\t\\tif (data.status === 'error') {\\n\\t\\t\\t\\t\\t\\tthis.errorMessage = data.data.message\\n\\t\\t\\t\\t\\t\\tshowError(data.data.message)\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tshowSuccess(data.data.message)\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t})\\n\\t\\t},\\n\\t},\\n}\\n</script>\\n\\n<style>\\n\\t#passwordform {\\n\\t\\tdisplay: flex;\\n\\t\\tflex-direction: column;\\n\\t\\tgap: 1rem;\\n\\t\\tmax-width: 400px;\\n\\t}\\n</style>\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdD = function () {\n\tthrow new Error('define cannot be used indirect');\n};","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 3574;","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t3574: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknextcloud\"] = self[\"webpackChunknextcloud\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [7874], function() { return __webpack_require__(5738); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","name","components","NcSettingsSection","NcButton","NcPasswordField","data","oldPass","newPass","methods","changePassword","axios","oldpassword","newpassword","then","showError","showSuccess","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","component","_vm","this","_c","_self","attrs","t","on","$event","preventDefault","apply","arguments","_v","length","_s","__webpack_nonce__","btoa","OC","requestToken","Vue","n","el","render","h","PasswordSection","___CSS_LOADER_EXPORT___","push","module","id","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","loaded","__webpack_modules__","call","m","amdD","Error","amdO","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","value","nmd","paths","children","b","document","baseURI","self","location","href","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","forEach","bind","nc","__webpack_exports__"],"sourceRoot":""}