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,CAAC,EAEf,EAAQnD,kBAAoB,IAC5B,EAAQC,cAAgB,IAElB,EAAQC,OAAS,SAAc,KAAM,QAE3C,EAAQC,OAAS,IACjB,EAAQC,mBAAqB,IAEhB,IAAI,IAAS,GAKJ,KAAW,IAAQC,QAAS,IAAQA,OCP1D,SAXgB,OACd,GRTW,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAGE,EAAOJ,EAAIG,MAAME,YAAY,OAAOH,EAAGE,EAAOwC,SAAS,CAACE,MAAM,CAAC,kBAAkB,uBAAuB,QAAU1C,EAAOe,cAAc,KAAOf,EAAOiB,EAAE,qBAAsB,gCAAkC,CAAES,IAAK1B,EAAOoB,QAASd,QAASN,EAAOsB,aAAc,KAAO1B,EAAIY,WAA4BD,IAApBP,EAAOhD,SAAuB,KAAO,UAAU2F,GAAG,CAAC,cAAc,SAASC,GAAQ,OAAOhD,EAAIiD,MAAM,cAAeD,EAAO,IAAI,CAAC9C,EAAGE,EAAOyC,SAAS,CAACvC,YAAY,6BAA6BwC,MAAM,CAAC,SAAW1C,EAAOhD,SAAS,oBAAoB,MAAM,EAC1kB,GACsB,IQUpB,EACA,KACA,WACA,MAI8B,O","sources":["webpack:///nextcloud/apps/updatenotification/src/components/AppChangelogDialog.vue?vue&type=style&index=0&id=2e374087&prod&scoped=true&lang=scss","webpack:///nextcloud/apps/updatenotification/src/components/Markdown.vue?vue&type=style&index=0&id=c31cd53a&prod&scoped=true&lang=scss","webpack:///nextcloud/apps/updatenotification/src/components/AppChangelogDialog.vue","webpack:///nextcloud/apps/updatenotification/src/composables/useMarkdown.ts","webpack:///nextcloud/apps/updatenotification/src/components/Markdown.vue?vue&type=script&setup=true&lang=ts","webpack:///nextcloud/apps/updatenotification/src/components/Markdown.vue","webpack://nextcloud/./apps/updatenotification/src/components/Markdown.vue?c070","webpack://nextcloud/./apps/updatenotification/src/components/Markdown.vue?8d8c","webpack:///nextcloud/apps/updatenotification/src/components/AppChangelogDialog.vue?vue&type=script&setup=true&lang=ts","webpack://nextcloud/./apps/updatenotification/src/components/AppChangelogDialog.vue?8458","webpack://nextcloud/./apps/updatenotification/src/components/AppChangelogDialog.vue?c992"],"sourcesContent":["// 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, `[data-v-2e374087] .app-changelog-dialog{min-height:50vh !important}.app-changelog-dialog__text[data-v-2e374087]{padding-inline:14px}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/updatenotification/src/components/AppChangelogDialog.vue\"],\"names\":[],\"mappings\":\"AACA,wCACC,0BAAA,CAGD,6CACC,mBAAA\",\"sourcesContent\":[\"\\n:deep(.app-changelog-dialog) {\\n\\tmin-height: 50vh !important;\\n}\\n\\n.app-changelog-dialog__text {\\n\\tpadding-inline: 14px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\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, `.markdown[data-v-c31cd53a] ul{list-style:disc;padding-inline-start:20px}.markdown[data-v-c31cd53a] h3,.markdown[data-v-c31cd53a] h4,.markdown[data-v-c31cd53a] h5,.markdown[data-v-c31cd53a] h6{font-weight:600;line-height:1.5;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}.markdown[data-v-c31cd53a] h3{font-size:20px}.markdown[data-v-c31cd53a] h4{font-size:18px}.markdown[data-v-c31cd53a] h5{font-size:17px}.markdown[data-v-c31cd53a] h6{font-size:var(--default-font-size)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/updatenotification/src/components/Markdown.vue\"],\"names\":[],\"mappings\":\"AAGE,8BACC,eAAA,CACA,yBAAA,CAGD,wHACC,eAAA,CACA,eAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,8BACC,cAAA,CAGD,8BACC,cAAA,CAGD,8BACC,cAAA,CAGD,8BACC,kCAAA\",\"sourcesContent\":[\"\\n.markdown {\\n\\t:deep {\\n\\t\\tul {\\n\\t\\t\\tlist-style: disc;\\n\\t\\t\\tpadding-inline-start: 20px;\\n\\t\\t}\\n\\n\\t\\th3, h4, h5, h6 {\\n\\t\\t\\tfont-weight: 600;\\n\\t\\t\\tline-height: 1.5;\\n\\t\\t\\tmargin-top: 24px;\\n\\t\\t\\tmargin-bottom: 12px;\\n\\t\\t\\tcolor: var(--color-main-text);\\n\\t\\t}\\n\\n\\t\\th3 {\\n\\t\\t\\tfont-size: 20px;\\n\\t\\t}\\n\\n\\t\\th4 {\\n\\t\\t\\tfont-size: 18px;\\n\\t\\t}\\n\\n\\t\\th5 {\\n\\t\\t\\tfont-size: 17px;\\n\\t\\t}\\n\\n\\t\\th6 {\\n\\t\\t\\tfont-size: var(--default-font-size);\\n\\t\\t}\\n\\t}\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_setup.NcDialog,{attrs:{\"content-classes\":\"app-changelog-dialog\",\"buttons\":_setup.dialogButtons,\"name\":_setup.t('updatenotification', 'What\\'s new in {app} {version}', { app: _setup.appName, version: _setup.appVersion }),\"open\":_vm.open && _setup.markdown !== undefined,\"size\":\"normal\"},on:{\"update:open\":function($event){return _vm.$emit('update:open', $event)}}},[_c(_setup.Markdown,{staticClass:\"app-changelog-dialog__text\",attrs:{\"markdown\":_setup.markdown,\"min-heading-level\":3}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { marked } from 'marked';\nimport { computed } from 'vue';\nimport dompurify from 'dompurify';\nexport const useMarkdown = (text, minHeadingLevel) => {\n const minHeading = computed(() => Math.min(Math.max(minHeadingLevel.value ?? 1, 1), 6));\n const renderer = new marked.Renderer();\n renderer.link = function (href, title, text) {\n let out = `<a href=\"${href}\" rel=\"noreferrer noopener\" target=\"_blank\"`;\n if (title) {\n out += ' title=\"' + title + '\"';\n }\n out += '>' + text + '</a>';\n return out;\n };\n renderer.image = function (href, title, text) {\n if (text) {\n return text;\n }\n return title ?? '';\n };\n renderer.heading = (text, level) => {\n const headingLevel = Math.max(minHeading.value, level);\n return `<h${headingLevel}>${text}</h${headingLevel}>`;\n };\n const html = computed(() => dompurify.sanitize(marked((text.value ?? '').trim(), {\n renderer,\n gfm: false,\n breaks: false,\n pedantic: false,\n }), {\n SAFE_FOR_JQUERY: true,\n ALLOWED_TAGS: [\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'strong',\n 'p',\n 'a',\n 'ul',\n 'ol',\n 'li',\n 'em',\n 'del',\n 'blockquote',\n ],\n }));\n return { html };\n};\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Markdown.vue?vue&type=script&setup=true&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Markdown.vue?vue&type=script&setup=true&lang=ts\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"markdown\",domProps:{\"innerHTML\":_vm._s(_setup.html)}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Markdown.vue?vue&type=style&index=0&id=c31cd53a&prod&scoped=true&lang=scss\";\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/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Markdown.vue?vue&type=style&index=0&id=c31cd53a&prod&scoped=true&lang=scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./Markdown.vue?vue&type=template&id=c31cd53a&scoped=true\"\nimport script from \"./Markdown.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Markdown.vue?vue&type=script&setup=true&lang=ts\"\nimport style0 from \"./Markdown.vue?vue&type=style&index=0&id=c31cd53a&prod&scoped=true&lang=scss\"\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 \"c31cd53a\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppChangelogDialog.vue?vue&type=script&setup=true&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppChangelogDialog.vue?vue&type=script&setup=true&lang=ts\"","\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/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppChangelogDialog.vue?vue&type=style&index=0&id=2e374087&prod&scoped=true&lang=scss\";\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/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppChangelogDialog.vue?vue&type=style&index=0&id=2e374087&prod&scoped=true&lang=scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./AppChangelogDialog.vue?vue&type=template&id=2e374087&scoped=true\"\nimport script from \"./AppChangelogDialog.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AppChangelogDialog.vue?vue&type=script&setup=true&lang=ts\"\nimport style0 from \"./AppChangelogDialog.vue?vue&type=style&index=0&id=2e374087&prod&scoped=true&lang=scss\"\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 \"2e374087\",\n null\n \n)\n\nexport default component.exports"],"names":["___CSS_LOADER_EXPORT___","push","module","id","_defineComponent","__name","props","markdown","minHeadingLevel","default","setup","__props","html","useMarkdown","text","minHeading","computed","_minHeadingLevel$valu","Math","min","max","value","renderer","marked","Renderer","link","href","title","out","concat","image","heading","level","headingLevel","_text$value","dompurify","trim","gfm","breaks","pedantic","SAFE_FOR_JQUERY","ALLOWED_TAGS","toRef","__sfc","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","_vm","this","_c","_self","_setup","_setupProxy","staticClass","domProps","_s","appId","version","undefined","open","type","Boolean","emits","_ref","_props$version","emit","dialogButtons","label","t","callback","window","appName","ref","appVersion","watchEffect","url","generateOcsUrl","app","axios","get","then","_ref2","data","ocs","content","catch","error","_error$response","response","status","console","NcDialog","Markdown","attrs","on","$event","$emit"],"sourceRoot":""}