%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/text-files.mjs.map |
{"version":3,"mappings":";;4OAUA,MAAMA,EAAqBC,EAAU,OAAQ,qBAAqB,EAC5DC,EAAmBD,EAAU,OAAQ,mBAAmB,EAE9D,SAAS,iBAAiB,mBAAoB,SAAY,OACzD,GAAI,OAAO,IAAI,OAAW,IAAa,CACtC,KAAM,CAAE,2BAAAE,CAA4B,EAAG,2DAAa,oCAAoB,EAAC,kCAAAA,CAAA,uEACzEC,EAAO,MAAM,6BAA6B,EAC1CD,EAA4B,CAC5B,CAED,GAAIH,GAAsB,OAAOK,EAAA,qBAAK,QAAL,MAAAA,EAAY,UAAU,CACtD,KAAM,CAAE,QAASC,CAAK,EAAG,MAAKC,EAAA,wBAAAD,CAAA,OAAQ,8CAAK,eAAC,eAAAA,CAAA,uBACtC,CAAE,QAASE,CAAe,EAAG,MAAMD,EAAA,wBAAAC,CAAA,eAAO,oCAA2B,EAAC,eAAAA,CAAA,iEACtE,CAAE,QAASC,CAAO,EAAG,MAAMF,EAAA,wBAAAE,CAAA,OAAO,oCAAkB,eAAC,eAAAA,CAAA,mDAE3DH,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,IAAM,OAAO,IAK3B,MAAMI,EAJK,IAAIJ,EAAI,CAClB,OAAQK,GAAKA,EAAEH,EAAe,EAAE,EAChC,MAAAC,CACH,CAAG,EACa,OAAM,EAAG,IACvB,IAAI,MAAM,SAAS,SAAS,IAAI,IAAI,MAAM,SAAS,QAAQ,OAAQ,CAClE,GAAI,IAAeC,CACtB,CAAG,CAAC,CACF,CACF,CAAC,EAED,IAAI,KAAO,CACV,qBAAsBR,CACvB","names":["workspaceAvailable","loadState","workspaceEnabled","registerFileActionFallback","logger","_a","Vue","__vitePreload","FilesSettings","store","el","h"],"ignoreList":[],"sources":["../src/files.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { loadState } from '@nextcloud/initial-state'\n\nimport { logger } from './helpers/logger.js'\n// eslint-disable-next-line import/no-unresolved, n/no-missing-import\nimport 'vite/modulepreload-polyfill'\n\nconst workspaceAvailable = loadState('text', 'workspace_available')\nconst workspaceEnabled = loadState('text', 'workspace_enabled')\n\ndocument.addEventListener('DOMContentLoaded', async () => {\n\tif (typeof OCA.Viewer === 'undefined') {\n\t\tconst { registerFileActionFallback } = await import('./helpers/files.js')\n\t\tlogger.error('Viewer app is not installed')\n\t\tregisterFileActionFallback()\n\t}\n\n\tif (workspaceAvailable && OCA && OCA?.Files?.Settings) {\n\t\tconst { default: Vue } = await import('vue')\n\t\tconst { default: FilesSettings } = await import('./views/FilesSettings.vue')\n\t\tconst { default: store } = await import('./store/index.js')\n\n\t\tVue.prototype.t = window.t\n\t\tVue.prototype.n = window.n\n\t\tVue.prototype.OCA = window.OCA\n\t\tconst vm = new Vue({\n\t\t\trender: h => h(FilesSettings, {}),\n\t\t\tstore,\n\t\t})\n\t\tconst el = vm.$mount().$el\n\t\tOCA.Files.Settings.register(new OCA.Files.Settings.Setting('text', {\n\t\t\tel: () => { return el },\n\t\t}))\n\t}\n})\n\nOCA.Text = {\n\tRichWorkspaceEnabled: workspaceEnabled,\n}\n"],"file":"js/text-files.mjs"}