2025-01-26 02:46:20 +00:00
|
|
|
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[9087],{14496:(e,s,t)=>{t.d(s,{A:()=>l});var n=t(71354),i=t.n(n),a=t(76314),o=t.n(a)()(i());o.push([e.id,"\n[data-v-5e7d8fe0] .terms-of-service-dialog {\n\tmin-height: min(100px, 20vh);\n}\n/* TODO fix in library */\n.file-drop-empty-content[data-v-5e7d8fe0] .empty-content__action {\n\tdisplay: flex;\n\tgap: var(--default-grid-baseline);\n}\n","",{version:3,sources:["webpack://./apps/files_sharing/src/views/FilesViewFileDropEmptyContent.vue"],names:[],mappings:";AA0DA;CACA,4BAAA;AACA;AACA,wBAAA;AACA;CACA,aAAA;CACA,iCAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n<template>\n\t<NcEmptyContent class=\"file-drop-empty-content\"\n\t\tdata-cy-files-sharing-file-drop\n\t\t:name=\"t('files_sharing', 'File drop')\">\n\t\t<template #icon>\n\t\t\t<NcIconSvgWrapper :svg=\"svgCloudUpload\" />\n\t\t</template>\n\t\t<template #description>\n\t\t\t{{ t('files_sharing', 'Upload files to {foldername}.', { foldername }) }}\n\t\t\t{{ disclaimer === '' ? '' : t('files_sharing', 'By uploading files, you agree to the terms of service.') }}\n\t\t</template>\n\t\t<template #action>\n\t\t\t<template v-if=\"disclaimer\">\n\t\t\t\t\x3c!-- Terms of service if enabled --\x3e\n\t\t\t\t<NcButton type=\"primary\" @click=\"showDialog = true\">\n\t\t\t\t\t{{ t('files_sharing', 'View terms of service') }}\n\t\t\t\t</NcButton>\n\t\t\t\t<NcDialog close-on-click-outside\n\t\t\t\t\tcontent-classes=\"terms-of-service-dialog\"\n\t\t\t\t\t:open.sync=\"showDialog\"\n\t\t\t\t\t:name=\"t('files_sharing', 'Terms of service')\"\n\t\t\t\t\t:message=\"disclaimer\" />\n\t\t\t</template>\n\t\t\t<UploadPicker allow-folders\n\t\t\t\t:content=\"() => []\"\n\t\t\t\tno-menu\n\t\t\t\t:destination=\"uploadDestination\"\n\t\t\t\tmultiple />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script setup lang=\"ts\">\nimport { loadState } from '@nextcloud/initial-state'\nimport { translate as t } from '@nextcloud/l10n'\nimport { getUploader, UploadPicker } from '@nextcloud/upload'\nimport { ref } from 'vue'\n\nimport NcButton from '@nextcloud/vue/dist/Components/NcButton.js'\nimport NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js'\nimport NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'\nimport NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'\nimport svgCloudUpload from '@mdi/svg/svg/cloud-upload.svg?raw'\n\ndefineProps<{\n\tfoldername: string\n}>()\n\nconst disclaimer = loadState<string>('files_sharing', 'disclaimer', '')\nconst showDialog = ref(false)\nconst uploadDestination = getUploader().destination\n<\/script>\n\n<style scoped>\n:deep(.terms-of-service-dialog) {\n\tmin-height: min(100px, 20vh);\n}\n/* TODO fix in library */\n.file-drop-empty-content :deep(.empty-content__action) {\n\tdisplay: flex;\n\tgap: var(--default-grid-baseline);\n}\n</style>\n"],sourceRoot:""}]);const l=o},99087:(e,s,t)=>{t.d(s,{default:()=>S});var n=t(85471),i=t(32981),a=t(53334),o=t(96111),l=t(70995),r=t(94219),m=t(28326),d=t(6695),g=t(50352);const c=(0,n.pM)({__name:"FilesViewFileDropEmptyContent",props:{foldername:null},setup:e=>({__sfc:!0,disclaimer:(0,i.C)("files_sharing","disclaimer",""),showDialog:(0,n.KR)(!1),uploadDestination:(0,o.g)().destination,t:a.Tl,UploadPicker:o.U,NcButton:l.A,NcDialog:r.A,NcEmptyContent:m.A,NcIconSvgWrapper:d.A,svgCloudUpload:g})});var u=t(85072),f=t.n(u),p=t(97825),h=t.n(p),w=t(77659),v=t.n(w),k=t(55056),T=t.n(k),x=t(10540),b=t.n(x),y=t(41113),C=t.n(y),U=t(14496),L={};L.styleTagTransform=C(),L.setAttributes=T(),L.insert=v().bind(null,"head"),L.domAPI=h(),L.insertStyleElement=b(),f()(U.A,L),U.A&&U.A.locals&&U.A.locals;const S=(0,t(14486).A)(c,(function(){var e=this,s=e._self._c,t=e._self._setupProxy;return s(t.NcEmptyContent,{staticClass:"file-drop-empty-content",attrs:{"data-cy-files-sharing-file-drop":"",name:t.t("files_sharing","File drop")},scopedSlots:e._u([{key:"icon",fn:function(){return[s(t.NcIconSv
|