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.

accessibility-accessibility.js.map 25KB

1
  1. {"version":3,"file":"accessibility-accessibility.js?v=463f394631a54d1e800e","mappings":";uBAAIA,oECgBJ,MChBwL,EDgBxL,CACA,mBACA,OACA,SACA,YACA,aAEA,UACA,YACA,eAGA,UACA,SACA,MACA,wCAEA,OACA,6DEhBA,SAXgB,OACd,GCRW,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAACC,SAAS,IAAO,CAACH,EAAG,MAAM,CAACI,YAAY,gBAAgBC,MAAM,CAAEC,gBAAiB,OAASV,EAAIO,QAAQI,IAAM,OAAQX,EAAIY,GAAG,KAAKR,EAAG,MAAM,CAACI,YAAY,uBAAuB,CAACJ,EAAG,KAAK,CAACJ,EAAIY,GAAGZ,EAAIa,GAAGb,EAAIO,QAAQO,UAAUd,EAAIY,GAAG,KAAKR,EAAG,IAAI,CAACJ,EAAIY,GAAGZ,EAAIa,GAAGb,EAAIO,QAAQQ,SAASf,EAAIY,GAAG,KAAKR,EAAG,QAAQ,CAACY,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOnB,EAAW,QAAEoB,WAAW,YAAYZ,YAAY,WAAWa,MAAM,CAAC,GAAK,iBAAmBrB,EAAIO,QAAQe,GAAG,KAAO,YAAYC,SAAS,CAAC,QAAUC,MAAMC,QAAQzB,EAAI0B,SAAS1B,EAAI2B,GAAG3B,EAAI0B,QAAQ,OAAO,EAAG1B,EAAW,SAAG4B,GAAG,CAAC,OAAS,SAASC,GAAQ,IAAIC,EAAI9B,EAAI0B,QAAQK,EAAKF,EAAOG,OAAOC,IAAIF,EAAKL,QAAuB,GAAGF,MAAMC,QAAQK,GAAK,CAAC,IAAaI,EAAIlC,EAAI2B,GAAGG,EAAhB,MAA4BC,EAAKL,QAASQ,EAA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B,sBAAIA,KAA4B,uBAAK,GAC1FD,EAAmBE,QAAQR,EAAqBS,KAAK,KAAM,IAC3DH,EAAmBI,KAAOV,EAAqBS,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,QC/CvF,IAAIK,EAAsBlE,EAAoBa,OAAEV,EAAW,CAAC,MAAM,IAAOH,EAAoB,SAC7FkE,EAAsBlE,EAAoBa,EAAEqD","sources":["webpack://nextcloud/webpack/runtime/chunk loaded","webpack://nextcloud/apps/accessibility/src/components/ItemPreview.vue","webpack://nextcloud/./apps/accessibility/src/components/ItemPreview.vue?d2ba","webpack://nextcloud/./apps/accessibility/src/components/ItemPreview.vue","webpack://nextcloud/./apps/accessibility/src/components/ItemPreview.vue?6a76","webpack://nextcloud/apps/accessibility/src/Accessibility.vue","webpack://nextcloud/./apps/accessibility/src/Accessibility.vue?3377","webpack://nextcloud/./apps/accessibility/src/Accessibility.vue","webpack://nextcloud/./apps/accessibility/src/Accessibility.vue?cd8b","webpack://nextcloud/./apps/accessibility/src/main.js","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/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (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((key) => (__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};","<template>\n\t<div :class=\"{preview: true}\">\n\t\t<div class=\"preview-image\" :style=\"{backgroundImage: 'url(' + preview.img + ')'}\" />\n\t\t<div class=\"preview-description\">\n\t\t\t<h3>{{ preview.title }}</h3>\n\t\t\t<p>{{ preview.text }}</p>\n\t\t\t<input :id=\"'accessibility-' + preview.id\"\n\t\t\t\tv-model=\"checked\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\tclass=\"checkbox\">\n\t\t\t<label :for=\"'accessibility-' + preview.id\">{{ preview.enableLabel }}</label>\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tname: 'ItemPreview',\n\tprops: {\n\t\tpreview: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t\tselected: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\tcomputed: {\n\t\tchecked: {\n\t\t\tget() {\n\t\t\t\treturn this.selected === this.preview.id\n\t\t\t},\n\t\t\tset(checked) {\n\t\t\t\tthis.$emit('select', checked ? this.preview.id : '')\n\t\t\t},\n\t\t},\n\t},\n}\n</script>\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemPreview.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!./ItemPreview.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ItemPreview.vue?vue&type=template&id=216c63db&\"\nimport script from \"./ItemPreview.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemPreview.vue?vue&type=script&lang=js&\"\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 () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{preview: true}},[_c('div',{staticClass:\"preview-image\",style:({backgroundImage: 'url(' + _vm.preview.img + ')'})}),_vm._v(\" \"),_c('div',{staticClass:\"preview-description\"},[_c('h3',[_vm._v(_vm._s(_vm.preview.title))]),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(_vm.preview.text))]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.checked),expression:\"checked\"}],staticClass:\"checkbox\",attrs:{\"id\":'accessibility-' + _vm.preview.id,\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.checked)?_vm._i(_vm.checked,null)>-1:(_vm.checked)},on:{\"change\":function($event){var $$a=_vm.checked,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.checked=$$a.concat([$$v]))}else{$$i>-1&&(_vm.checked=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.checked=$$c}}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":'accessibility-' + _vm.preview.id}},[_vm._v(_vm._s(_vm.preview.enableLabel))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\t<div id=\"accessibility\" class=\"section\">\n\t\t<h2>{{ t('accessibility', 'Accessibility') }}</h2>\n\t\t<p v-html=\"description\" />\n\t\t<p v-html=\"descriptionDetail\" />\n\n\t\t<div class=\"preview-list\">\n\t\t\t<ItemPreview :key=\"highcontrast.id\"\n\t\t\t\t:preview=\"highcontrast\"\n\t\t\t\t:selected=\"selected.highcontrast\"\n\t\t\t\t@select=\"selectHighContrast\" />\n\t\t\t<ItemPreview v-for=\"preview in themes\"\n\t\t\t\t:key=\"preview.id\"\n\t\t\t\t:preview=\"preview\"\n\t\t\t\t:selected=\"selected.theme\"\n\t\t\t\t@select=\"selectTheme\" />\n\t\t\t<ItemPreview v-for=\"preview in fonts\"\n\t\t\t\t:key=\"preview.id\"\n\t\t\t\t:preview=\"preview\"\n\t\t\t\t:selected=\"selected.font\"\n\t\t\t\t@select=\"selectFont\" />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { generateUrl, generateOcsUrl } from '@nextcloud/router'\nimport { loadState } from '@nextcloud/initial-state'\nimport axios from '@nextcloud/axios'\nimport ItemPreview from './components/ItemPreview'\n\nconst availableConfig = loadState('accessibility', 'available-config')\nconst userConfig = loadState('accessibility', 'user-config')\n\nexport default {\n\tname: 'Accessibility',\n\tcomponents: {\n\t\tItemPreview,\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tavailableConfig,\n\t\t\tuserConfig,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tthemes() {\n\t\t\treturn this.availableConfig.themes\n\t\t},\n\t\thighcontrast() {\n\t\t\treturn this.availableConfig.highcontrast\n\t\t},\n\t\tfonts() {\n\t\t\treturn this.availableConfig.fonts\n\t\t},\n\t\tselected() {\n\t\t\treturn {\n\t\t\t\ttheme: this.userConfig.theme,\n\t\t\t\thighcontrast: this.userConfig.highcontrast,\n\t\t\t\tfont: this.userConfig.font,\n\t\t\t}\n\t\t},\n\t\tdescription() {\n\t\t\t// using the `t` replace method escape html, we have to do it manually :/\n\t\t\treturn t(\n\t\t\t\t'accessibility',\n\t\t\t\t'Universal access is very important to us. We follow web standards and check to make everything usable also without mouse, and assistive software such as screenreaders. We aim to be compliant with the {guidelines}Web Content Accessibility Guidelines{linkend} 2.1 on AA level, with the high contrast theme even on AAA level.'\n\t\t\t)\n\t\t\t\t.replace('{guidelines}', this.guidelinesLink)\n\t\t\t\t.replace('{linkend}', '</a>')\n\t\t},\n\t\tguidelinesLink() {\n\t\t\treturn '<a target=\"_blank\" href=\"https://www.w3.org/WAI/standards-guidelines/wcag/\" rel=\"noreferrer nofollow\">'\n\t\t},\n\t\tdescriptionDetail() {\n\t\t\treturn t(\n\t\t\t\t'accessibility',\n\t\t\t\t'If you find any issues, don’t hesitate to report them on {issuetracker}our issue tracker{linkend}. And if you want to get involved, come join {designteam}our design team{linkend}!'\n\t\t\t)\n\t\t\t\t.replace('{issuetracker}', this.issuetrackerLink)\n\t\t\t\t.replace('{designteam}', this.designteamLink)\n\t\t\t\t.replace(/\\{linkend\\}/g, '</a>')\n\t\t},\n\t\tissuetrackerLink() {\n\t\t\treturn '<a target=\"_blank\" href=\"https://github.com/nextcloud/server/issues/\" rel=\"noreferrer nofollow\">'\n\t\t},\n\t\tdesignteamLink() {\n\t\t\treturn '<a target=\"_blank\" href=\"https://nextcloud.com/design\" rel=\"noreferrer nofollow\">'\n\t\t},\n\t},\n\tmethods: {\n\t\t// SELECT handlers\n\t\tselectHighContrast(id) {\n\t\t\tthis.selectItem('highcontrast', id)\n\t\t\tdocument.body.classList.toggle('theme--highcontrast')\n\t\t},\n\t\tselectTheme(id) {\n\t\t\tconst previous = this.selected.theme\n\t\t\tif (previous) {\n\t\t\t\tdocument.body.classList.remove(`theme--${previous}`)\n\t\t\t}\n\t\t\tif (id) {\n\t\t\t\tdocument.body.classList.remove('theme--light')\n\t\t\t\tdocument.body.classList.add(`theme--${id}`)\n\t\t\t} else {\n\t\t\t\tdocument.body.classList.add('theme--light')\n\t\t\t}\n\n\t\t\tthis.selectItem('theme', id)\n\t\t},\n\t\tselectFont(id) {\n\t\t\tthis.selectItem('font', id)\n\t\t},\n\n\t\t/**\n\t\t * Commit a change and force reload css\n\t\t * Fetching the file again will trigger the server update\n\t\t *\n\t\t * @param {string} type type of the change (font, highcontrast or theme)\n\t\t * @param {string} id the data of the change\n\t\t */\n\t\tasync selectItem(type, id) {\n\t\t\ttry {\n\t\t\t\tconst isDelete = id === ''\n\t\t\t\tawait axios({\n\t\t\t\t\turl: generateOcsUrl('apps/accessibility/api/v1/config/{type}', { type }),\n\t\t\t\t\tmethod: isDelete ? 'DELETE' : 'PUT',\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tvalue: id,\n\t\t\t\t\t},\n\t\t\t\t})\n\n\t\t\t\tthis.userConfig[type] = id\n\n\t\t\t\t// Remove old link\n\t\t\t\tconst link = document.querySelector('link[rel=stylesheet][href*=accessibility][href*=user-]')\n\t\t\t\tif (!link) {\n\t\t\t\t\t// insert new css\n\t\t\t\t\tconst link = document.createElement('link')\n\t\t\t\t\tlink.rel = 'stylesheet'\n\t\t\t\t\tlink.href = generateUrl('/apps/accessibility/css/user-style.css') + '?v=' + new Date().getTime()\n\t\t\t\t\tdocument.head.appendChild(link)\n\t\t\t\t} else {\n\t\t\t\t\t// compare arrays\n\t\t\t\t\tif (\n\t\t\t\t\t\tJSON.stringify(Object.values(this.selected))\n\t\t\t\t\t\t=== JSON.stringify([false, false])\n\t\t\t\t\t) {\n\t\t\t\t\t\t// if nothing is selected, blindly remove the css\n\t\t\t\t\t\tlink.remove()\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// force update\n\t\t\t\t\t\tlink.href\n\t\t\t\t\t\t\t= link.href.split('?')[0]\n\t\t\t\t\t\t\t+ '?v='\n\t\t\t\t\t\t\t+ new Date().getTime()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error(err, err.response)\n\t\t\t\tOC.Notification.showTemporary(t('accessibility', err.response.data.ocs.meta.message + '. Unable to apply the setting.'))\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Accessibility.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!./Accessibility.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Accessibility.vue?vue&type=template&id=290dfbfb&\"\nimport script from \"./Accessibility.vue?vue&type=script&lang=js&\"\nexport * from \"./Accessibility.vue?vue&type=script&lang=js&\"\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 () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section\",attrs:{\"id\":\"accessibility\"}},[_c('h2',[_vm._v(_vm._s(_vm.t('accessibility', 'Accessibility')))]),_vm._v(\" \"),_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.description)}}),_vm._v(\" \"),_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.descriptionDetail)}}),_vm._v(\" \"),_c('div',{staticClass:\"preview-list\"},[_c('ItemPreview',{key:_vm.highcontrast.id,attrs:{\"preview\":_vm.highcontrast,\"selected\":_vm.selected.highcontrast},on:{\"select\":_vm.selectHighContrast}}),_vm._v(\" \"),_vm._l((_vm.themes),function(preview){return _c('ItemPreview',{key:preview.id,attrs:{\"preview\":preview,\"selected\":_vm.selected.theme},on:{\"select\":_vm.selectTheme}})}),_vm._v(\" \"),_vm._l((_vm.fonts),function(preview){return _c('ItemPreview',{key:preview.id,attrs:{\"preview\":preview,\"selected\":_vm.selected.font},on:{\"select\":_vm.selectFont}})})],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\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 */\n\nimport Vue from 'vue'\nimport App from './Accessibility.vue'\n\n// bind to window\nVue.prototype.OC = OC\nVue.prototype.t = t\n\nconst View = Vue.extend(App)\nconst accessibility = new View()\naccessibility.$mount('#accessibility')\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 = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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 = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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 = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 189;","// no baseURI\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\t189: 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 = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (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((id) => (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[chunkIds[i]] = 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));","// 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, [820], () => (__webpack_require__(26795)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","_vm","this","_h","$createElement","_c","_self","class","preview","staticClass","style","backgroundImage","img","_v","_s","title","text","directives","name","rawName","value","expression","attrs","id","domProps","Array","isArray","checked","_i","on","$event","$$a","$$el","target","$$c","$$i","concat","slice","enableLabel","availableConfig","userConfig","t","description","descriptionDetail","key","highcontrast","selected","selectHighContrast","_l","theme","selectTheme","font","selectFont","Vue","OC","App","$mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","loaded","__webpack_modules__","call","m","amdD","Error","amdO","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}