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ppStoreDiscover/PostType.vue","webpack:///nextcloud/apps/settings/src/components/AppStoreDiscover/AppLink.vue","webpack:///nextcloud/apps/settings/src/components/AppStoreDiscover/AppLink.vue?vue&type=script&lang=ts","webpack://nextcloud/./apps/settings/src/components/AppStoreDiscover/AppLink.vue?8487","webpack:///nextcloud/apps/settings/src/components/AppStoreDiscover/PostType.vue?vue&type=script&lang=ts","webpack://nextcloud/./apps/settings/src/components/AppStoreDiscover/PostType.vue?3591","webpack://nextcloud/./apps/settings/src/components/AppStoreDiscover/PostType.vue?bdb8","webpack:///nextcloud/apps/settings/src/components/AppStoreDiscover/PostType.vue?vue&type=style&index=0&id=050320e2&prod&scoped=true&lang=scss","webpack:///nextcloud/apps/settings/src/composables/useGetLocalizedValue.ts","webpack:///nextcloud/apps/settings/src/constants/AppDiscoverTypes.ts","webpack:///nextcloud/apps/settings/src/components/AppStoreDiscover/common.ts"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('article',{ref:\"container\",staticClass:\"app-discover-post\",class:{\n\t\t'app-discover-post--reverse': _vm.media && _vm.media.alignment === 'start',\n\t\t'app-discover-post--small': _vm.isSmallWidth\n\t},attrs:{\"id\":_vm.domId}},[(_vm.headline || _vm.text)?_c(_vm.link ? 'AppLink' : 'div',{tag:\"component\",staticClass:\"app-discover-post__text\",attrs:{\"href\":_vm.link}},[_c(_vm.inline ? 'h4' : 'h3',{tag:\"component\"},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.translatedHeadline)+\"\\n\\t\\t\")]),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(_vm.translatedText))])],1):_vm._e(),_vm._v(\" \"),(_vm.mediaSources)?_c(_vm.mediaLink ? 'AppLink' : 'div',{tag:\"component\",staticClass:\"app-discover-post__media\",class:{\n\t\t\t'app-discover-post__media--fullwidth': _vm.isFullWidth,\n\t\t\t'app-discover-post__media--start': _vm.media?.alignment === 'start',\n\t\t\t'app-discover-post__media--end': _vm.media?.alignment === 'end',\n\t\t},attrs:{\"href\":_vm.mediaLink}},[_c(_vm.isImage ? 'picture' : 'video',{ref:\"mediaElement\",tag:\"component\",staticClass:\"app-discover-post__media-element\",attrs:{\"muted\":!_vm.isImage,\"playsinline\":!_vm.isImage,\"preload\":!_vm.isImage && 'auto'},on:{\"ended\":function($event){_vm.hasPlaybackEnded = true}}},[_vm._l((_vm.mediaSources),function(source){return _c('source',{key:source.src,attrs:{\"src\":_vm.isImage ? undefined : _vm.generatePrivacyUrl(source.src),\"srcset\":_vm.isImage ? _vm.generatePrivacyUrl(source.src) : undefined,\"type\":source.mime}})}),_vm._v(\" \"),(_vm.isImage)?_c('img',{attrs:{\"src\":_vm.generatePrivacyUrl(_vm.mediaSources[0].src),\"alt\":_vm.mediaAlt}}):_vm._e()],2),_vm._v(\" \"),_c('div',{staticClass:\"app-discover-post__play-icon-wrapper\"},[(!_vm.isImage && _vm.showPlayVideo)?_c('NcIconSvgWrapper',{staticClass:\"app-discover-post__play-icon\",attrs:{\"path\":_vm.mdiPlayCircleOutline,\"size\":92}}):_vm._e()],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.linkProps)?_c('a',_vm._b({},'a',_vm.linkProps,false),[_vm._t(\"default\")],2):(_vm.routerProps)?_c('RouterLink',_vm._b({},'RouterLink',_vm.routerProps,false),[_vm._t(\"default\")],2):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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!./AppLink.vue?vue&type=script&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!./AppLink.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./AppLink.vue?vue&type=template&id=e6b87e98\"\nimport script from \"./AppLink.vue?vue&type=script&lang=ts\"\nexport * from \"./AppLink.vue?vue&type=script&lang=ts\"\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","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!./PostType.vue?vue&type=script&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!./PostType.vue?vue&type=script&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!./PostType.vue?vue&type=style&index=0&id=050320e2&prod&scoped=true&lang=scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\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!./PostType.vue?vue&type=style&index=0&id=050320e2&prod&scoped=true&lang=scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./PostType.vue?vue&type=template&id=050320e2&scoped=true\"\nimport script from \"./PostType.vue?vue&type=script&lang=ts\"\nexport * from \"./PostType.vue?vue&type=script&lang=ts\"\nimport style0 from \"./PostType.vue?vue&type=style&index=0&id=050320e2&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 \"050320e2\",\n null\n \n)\n\nexport default component.exports","// 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, `.app-discover-post[data-v-050320e2]{max-height:300px;width:100%;background-color:var(--color-primary-element-light);border-radius:var(--border-radius-rounded);display:flex;flex-direction:row;justify-content:start}.app-discover-post--reverse[data-v-050320e2]{flex-direction:row-reverse}.app-discover-post h3[data-v-050320e2],.app-discover-post h4[data-v-050320e2]{font-size:24px;font-weight:600;margin-block:0 1em}.app-discover-post__text[data-v-050320e2]{display:block;width:100%;padding:var(--border-radius-rounded);overflow-y:scroll}.app-discover-post:has(.app-discover-post__media) .app-discover-post__text[data-v-050320e2]{padding-block-end:0}.app-discover-post__media[data-v-050320e2]{display:block;overflow:hidden;max-width:450px;border-radius:var(--border-radius-rounded)}.app-discover-post__media--fullwidth[data-v-050320e2]{max-width:unset;max-height:unset}.app-discover-post__media--end[data-v-050320e2]{border-end-start-radius:0;border-start-start-radius:0}.app-discover-post__media--start[data-v-050320e2]{border-end-end-radius:0;border-start-end-radius:0}.app-discover-post__media img[data-v-050320e2],.app-discover-post__media-element[data-v-050320e2]{height:100%;width:100%;object-fit:cover;object-position:center}.app-discover-post__play-icon[data-v-050320e2]{position:absolute;top:-46px;right:-46px}.app-discover-post__play-icon-wrapper[data-v-050320e2]{position:relative;top:-50%;left:-50%}.app-discover-post--small.app-discover-post[data-v-050320e2]{flex-direction:column;max-height:500px}.app-discover-post--small.app-discover-post--reverse[data-v-050320e2]{flex-direction:column-reverse}.app-discover-post--small .app-discover-post__text[data-v-050320e2]{flex:1 1 50%}.app-discover-post--small .app-discover-post__media[data-v-050320e2]{min-width:100%}.app-discover-post--small .app-discover-post__media--end[data-v-050320e2]{border-radius:var(--border-radius-rounded);border-start-end-radius:0;border-start-start-radius:0}.app-discover-post--small .app-discover-post__media--start[data-v-050320e2]{border-radius:var(--border-radius-rounded);border-end-end-radius:0;border-end-start-radius:0}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/settings/src/components/AppStoreDiscover/PostType.vue\"],\"names\":[],\"mappings\":\"AACA,oCACC,gBAAA,CACA,UAAA,CACA,mDAAA,CACA,0CAAA,CAEA,YAAA,CACA,kBAAA,CACA,qBAAA,CAEA,6CACC,0BAAA,CAGD,8EACC,cAAA,CACA,eAAA,CACA,kBAAA,CAGD,0CACC,aAAA,CACA,UAAA,CACA,oCAAA,CACA,iBAAA,CAID,4FACC,mBAAA,CAGD,2CACC,aAAA,CACA,eAAA,CAEA,eAAA,CACA,0CAAA,CAEA,sDACC,eAAA,CACA,gBAAA,CAGD,gDACC,yBAAA,CACA,2BAAA,CAGD,kDACC,uBAAA,CACA,yBAAA,CAGD,kGACC,WAAA,CACA,UAAA,CACA,gBAAA,CACA,sBAAA,CAIF,+CAOC,iBAAA,CACA,SAAA,CACA,WAAA,CARA,uDACC,iBAAA,CACA,QAAA,CACA,SAAA,CAUF,6DACC,qBAAA,CACA,gBAAA,CAEA,sEACC,6BAAA,CAKD,oEACC,YAAA,CAGD,qEACC,cAAA,CAEA,0EACC,0CAAA,CACA,yBAAA,CACA,2BAAA,CAGD,4EACC,0CAAA,CACA,uBAAA,CACA,yBAAA\",\"sourcesContent\":[\"\\n.app-discover-post {\\n\\tmax-height: 300px;\\n\\twidth: 100%;\\n\\tbackground-color: var(--color-primary-element-light);\\n\\tborder-radius: var(--border-radius-rounded);\\n\\n\\tdisplay: flex;\\n\\tflex-direction: row;\\n\\tjustify-content: start;\\n\\n\\t&--reverse {\\n\\t\\tflex-direction: row-reverse;\\n\\t}\\n\\n\\th3, h4 {\\n\\t\\tfont-size: 24px;\\n\\t\\tfont-weight: 600;\\n\\t\\tmargin-block: 0 1em;\\n\\t}\\n\\n\\t&__text {\\n\\t\\tdisplay: block;\\n\\t\\twidth: 100%;\\n\\t\\tpadding: var(--border-radius-rounded);\\n\\t\\toverflow-y: scroll;\\n\\t}\\n\\n\\t// If there is media next to the text we do not want a padding on the bottom as this looks weird when scrolling\\n\\t&:has(&__media) &__text {\\n\\t\\tpadding-block-end: 0;\\n\\t}\\n\\n\\t&__media {\\n\\t\\tdisplay: block;\\n\\t\\toverflow: hidden;\\n\\n\\t\\tmax-width: 450px;\\n\\t\\tborder-radius: var(--border-radius-rounded);\\n\\n\\t\\t&--fullwidth {\\n\\t\\t\\tmax-width: unset;\\n\\t\\t\\tmax-height: unset;\\n\\t\\t}\\n\\n\\t\\t&--end {\\n\\t\\t\\tborder-end-start-radius: 0;\\n\\t\\t\\tborder-start-start-radius: 0;\\n\\t\\t}\\n\\n\\t\\t&--start {\\n\\t\\t\\tborder-end-end-radius: 0;\\n\\t\\t\\tborder-start-end-radius: 0;\\n\\t\\t}\\n\\n\\t\\timg, &-element {\\n\\t\\t\\theight: 100%;\\n\\t\\t\\twidth: 100%;\\n\\t\\t\\tobject-fit: cover;\\n\\t\\t\\tobject-position: center;\\n\\t\\t}\\n\\t}\\n\\n\\t&__play-icon {\\n\\t\\t&-wrapper {\\n\\t\\t\\tposition: relative;\\n\\t\\t\\ttop: -50%;\\n\\t\\t\\tleft: -50%;\\n\\t\\t}\\n\\n\\t\\tposition: absolute;\\n\\t\\ttop: -46px; // half of the icon height\\n\\t\\tright: -46px; // half of the icon width\\n\\t}\\n}\\n\\n.app-discover-post--small {\\n\\t&.app-discover-post {\\n\\t\\tflex-direction: column;\\n\\t\\tmax-height: 500px;\\n\\n\\t\\t&--reverse {\\n\\t\\t\\tflex-direction: column-reverse;\\n\\t\\t}\\n\\t}\\n\\n\\t.app-discover-post {\\n\\t\\t&__text {\\n\\t\\t\\tflex: 1 1 50%;\\n\\t\\t}\\n\\n\\t\\t&__media {\\n\\t\\t\\tmin-width: 100%;\\n\\n\\t\\t\\t&--end {\\n\\t\\t\\t\\tborder-radius: var(--border-radius-rounded);\\n\\t\\t\\t\\tborder-start-end-radius: 0;\\n\\t\\t\\t\\tborder-start-start-radius: 0;\\n\\t\\t\\t}\\n\\n\\t\\t\\t&--start {\\n\\t\\t\\t\\tborder-radius: var(--border-radius-rounded);\\n\\t\\t\\t\\tborder-end-end-radius: 0;\\n\\t\\t\\t\\tborder-end-start-radius: 0;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","/**\n * @copyright Copyright (c) 2024 Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @author Ferdinand Thiessen <opensource@fthiessen.de>\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 */\nimport { getLanguage } from '@nextcloud/l10n';\nimport { computed } from 'vue';\n/**\n * Helper to get the localized value for the current users language\n * @param dict The dictionary to get the value from\n * @param language The language to use\n */\nconst getLocalizedValue = (dict, language) => dict[language] ?? dict[language.split('_')[0]] ?? dict.en ?? null;\n/**\n * Get the localized value of the dictionary provided\n * @param dict Dictionary\n * @return String or null if invalid dictionary\n */\nexport const useLocalizedValue = (dict) => {\n /**\n * Language of the current user\n */\n const language = getLanguage();\n return computed(() => !dict?.value ? null : getLocalizedValue(dict.value, language));\n};\n","/**\n * @copyright Copyright (c) 2024 Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @author Ferdinand Thiessen <opensource@fthiessen.de>\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/**\n * Currently known types of app discover section elements\n */\nexport const APP_DISCOVER_KNOWN_TYPES = ['post', 'showcase', 'carousel'];\n","import { APP_DISCOVER_KNOWN_TYPES } from '../../constants/AppDiscoverTypes.ts';\n/**\n * Common Props for all app discover types\n */\nexport const commonAppDiscoverProps = {\n type: {\n type: String,\n required: true,\n validator: (v) => typeof v === 'string' && APP_DISCOVER_KNOWN_TYPES.includes(v),\n },\n id: {\n type: String,\n required: true,\n },\n date: {\n type: Number,\n required: false,\n default: undefined,\n },\n expiryDate: {\n type: Number,\n required: false,\n default: undefined,\n },\n headline: {\n type: Object,\n required: false,\n default: () => null,\n },\n link: {\n type: String,\n required: false,\n default: () => null,\n },\n};\n"],"names":["knownRoutes","Object","fromEntries","entries","loadState","map","_ref","k","v","app","href","defineComponent","name","components","RouterLink","props","type","String","required","data","routerProps","undefined","linkProps","watch","immediate","handler","match","target","rel","appId","generateUrl","to","params","category","$route","id","_vm","this","_c","_self","_setupProxy","_b","_t","_e","AppLink","NcIconSvgWrapper","commonAppDiscoverProps","text","default","media","inline","Boolean","domId","setup","translatedHeadline","useLocalizedValue","computed","headline","translatedText","localizedMedia","content","mediaSources","value","src","flat","mediaAlt","alt","isImage","mime","startsWith","isFullWidth","mediaLink","link","hasPlaybackEnded","ref","showPlayVideo","container","width","containerWidth","useElementSize","isSmallWidth","mediaElement","mediaIsVisible","useElementVisibility","threshold","watchEffect","video","muted","play","pause","ended","currentTime","mdiPlayCircleOutline","generatePrivacyUrl","url","fileName","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","staticClass","class","alignment","attrs","tag","_v","_s","on","$event","_l","source","key","___CSS_LOADER_EXPORT___","push","module","dict","language","getLanguage","getLocalizedValue","split","en","APP_DISCOVER_KNOWN_TYPES","validator","includes","date","Number","expiryDate"],"sourceRoot":""}
|