mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
2 lines
372 KiB
JavaScript
2 lines
372 KiB
JavaScript
|
|
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[3183],{13183:(e,s,t)=>{t.d(s,{default:()=>F});var n=t(85471),i=t(81222),a=t(53334),o=t(90231),l=t(74095),r=t(94219),m=t(11275),d=t(6695),g=t(31133);const c=new Set,u=(0,n.pM)({__name:"FilesViewFileDropEmptyContent",props:{foldername:null},setup(e){const s=(0,i.C)("files_sharing","disclaimer",""),t=(0,i.C)("files_sharing","label",""),u=(0,i.C)("files_sharing","note",""),f=t||(0,a.Tl)("files_sharing","File drop"),p=(0,n.KR)(!1),h=(0,o.g)().destination;return(0,o.g)().addNotifier(e=>{e.status===o.S.FINISHED&&e.file.name&&c.add(e.file.name)}),{__sfc:!0,uploads:c,disclaimer:s,shareLabel:t,shareNote:u,name:f,showDialog:p,uploadDestination:h,getSortedUploads:function(){return[...c].sort((e,s)=>e.localeCompare(s))},svgCloudUpload:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-cloud-upload-outline" viewBox="0 0 24 24"><path d="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13Q12.18 20 11.59 19.41 11 18.83 11 18V12.85L9.4 14.4L8 13L12 9L16 13L14.6 14.4L13 12.85V18H18.5Q19.55 18 20.27 17.27 21 16.55 21 15.5 21 14.45 20.27 13.73 19.55 13 18.5 13H17V11Q17 8.93 15.54 7.46 14.08 6 12 6 9.93 6 8.46 7.46 7 8.93 7 11H6.5Q5.05 11 4.03 12.03 3 13.05 3 14.5 3 15.95 4.03 17 5.05 18 6.5 18H9V20M12 13Z" /></svg>',t:a.Tl,UploadPicker:o.j,NcButton:l.A,NcDialog:r.A,NcEmptyContent:m.A,NcIconSvgWrapper:d.A,NcNoteCard:g.A}}});var f=t(85072),p=t.n(f),h=t(97825),w=t.n(h),k=t(77659),v=t.n(k),b=t(55056),T=t.n(b),x=t(10540),y=t.n(x),U=t(41113),C=t.n(U),S=t(18465),L={};L.styleTagTransform=C(),L.setAttributes=T(),L.insert=v().bind(null,"head"),L.domAPI=w(),L.insertStyleElement=y(),p()(S.A,L),S.A&&S.A.locals&&S.A.locals;const F=(0,t(14486).A)(u,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.name},scopedSlots:e._u([{key:"icon",fn:function(){return[s(t.NcIconSvgWrapper,{attrs:{svg:t.svgCloudUpload}})]},proxy:!0},{key:"description",fn:function(){return[s("p",[e._v("\n\t\t\t"+e._s(t.shareNote||t.t("files_sharing","Upload files to {foldername}.",{foldername:e.foldername}))+"\n\t\t")]),e._v(" "),t.disclaimer?s("p",[e._v("\n\t\t\t"+e._s(t.t("files_sharing","By uploading files, you agree to the terms of service."))+"\n\t\t")]):e._e(),e._v(" "),t.getSortedUploads().length?s(t.NcNoteCard,{staticClass:"file-drop-empty-content__note-card",attrs:{type:"success"}},[s("h2",{attrs:{id:"file-drop-empty-content__heading"}},[e._v("\n\t\t\t\t"+e._s(t.t("files_sharing","Successfully uploaded files"))+"\n\t\t\t")]),e._v(" "),s("ul",{staticClass:"file-drop-empty-content__list",attrs:{"aria-labelledby":"file-drop-empty-content__heading"}},e._l(t.getSortedUploads(),function(t){return s("li",{key:t},[e._v("\n\t\t\t\t\t"+e._s(t)+"\n\t\t\t\t")])}),0)]):e._e()]},proxy:!0},{key:"action",fn:function(){return[t.disclaimer?[s(t.NcButton,{attrs:{variant:"primary"},on:{click:function(e){t.showDialog=!0}}},[e._v("\n\t\t\t\t"+e._s(t.t("files_sharing","View terms of service"))+"\n\t\t\t")]),e._v(" "),s(t.NcDialog,{attrs:{"close-on-click-outside":"","content-classes":"terms-of-service-dialog",open:t.showDialog,name:t.t("files_sharing","Terms of service"),message:t.disclaimer},on:{"update:open":function(e){t.showDialog=e}}})]:e._e(),e._v(" "),s(t.UploadPicker,{attrs:{"allow-folders":"",content:()=>[],"no-menu":"",destination:t.uploadDestination,multiple:""}})]},proxy:!0}])})},[],!1,null,"994fb45e",null).exports},18465:(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,".file-drop-empty-content[data-v-994fb45e]{margin:auto;max-width:max(50vw,300px)}.file-drop-empty-content .file-drop-empty-content__note-card[data-v-994fb45e]{width:fit-content;margin-inline:auto}.file-drop-empty-content #file-drop-empty-content__heading[data-v-994fb45e]{margin-block:0 10px;font-weight:bold;font-size
|
||
|
|
//# sourceMappingURL=3183-3183.js.map?v=44036fe095ac03fca37f
|