"use strict";(globalThis["webpackChunkaurora_corporate_mobile_ui"]||=[]).push([[3308],{6057(e,o,t){t.r(o),t.d(o,{default:()=>g});var s=t(61758);function l(e,o,t,l,i,c){const r=(0,s.g2)("CopiedFooter"),n=(0,s.g2)("DefaultFooter");return c.isCopiedFiles?((0,s.uX)(),(0,s.Wv)(r,{key:0})):((0,s.uX)(),(0,s.Wv)(n,{key:1}))}var i=t(15679),c=t(65210),r=t(25927),n=t(58790);const a={class:"full-width flex no-wrap justify-between"};function p(e,o,t,l,i,c){const r=(0,s.g2)("AppButton"),p=(0,s.g2)("q-toolbar"),u=(0,s.g2)("q-footer");return(0,s.uX)(),(0,s.Wv)(u,{"data-test-id":"files-copymove-footer",elevated:"",class:"bg-white"},{default:(0,s.k6)(()=>[(0,s.bF)(p,{style:{height:"60px"},class:"full-width"},{default:(0,s.k6)(()=>[(0,s.Lk)("div",a,[(0,s.bF)(r,{"data-test-id":"files-copymove-cancel",size:"15px",flat:"",class:"q-px-md items-start",color:"black",label:"Cancel",onClick:c.cancel},null,8,["onClick"]),c.isCopyMoveAllowed?((0,s.uX)(),(0,s.Wv)(r,{key:0,"data-test-id":"files-copymove-copy",size:"15px",flat:"",class:(0,n.C4)(c.showMoveAction?"q-px-sm":"q-px-md items-end"),color:"black",label:"Copy",onClick:c.copy},null,8,["class","onClick"])):(0,s.Q3)("",!0),c.showMoveAction?((0,s.uX)(),(0,s.Wv)(r,{key:1,"data-test-id":"files-copymove-move",size:"15px",flat:"",class:"q-px-md items-end",color:"black",label:"Move",onClick:c.move},null,8,["onClick"])):(0,s.Q3)("",!0)])]),_:1})]),_:1})}var u=t(58983),d=t(484);const m={name:"CopiedFooter",components:{AppButton:u.A},computed:{...(0,i.L8)(c.useFilesStore,["currentStorage","copiedFiles"]),showMoveAction(){return this.currentStorage.Type!==d.Gq.SHARED&&this.currentStorage.Type!==d.Gq.FAVORITES&&this.currentStorage.Type!==d.Gq.TRASH&&this.copiedFiles[0].type!==d.Gq.SHARED},isCopyMoveAllowed(){return this.currentStorage.Type!==d.Gq.FAVORITES&&this.currentStorage.Type!==d.Gq.TRASH}},methods:{...(0,i.i0)(c.useFilesStore,["removeCopiedFiles","copyItems","moveItems"]),cancel(){this.removeCopiedFiles()},copy(){this.copyItems()},move(){this.moveItems()}}};var v=t(12807),y=t(48889),h=t(79351),F=t(98582),f=t.n(F);const A=(0,v.A)(m,[["render",p]]),C=A;f()(m,"components",{QFooter:y.A,QToolbar:h.A});const k={name:"FilesFooter",components:{DefaultFooter:r.A,CopiedFooter:C},computed:{...(0,i.L8)(c.useFilesStore,["copiedFiles"]),isCopiedFiles(){return!!this.copiedFiles.length}}},b=(0,v.A)(k,[["render",l]]),g=b}}]);