"use strict";(globalThis["webpackChunkaurora_corporate_mobile_ui"]||=[]).push([[3685],{83685(e,a,l){l.r(a),l.d(a,{default:()=>D});var t=l(61758),i=l(58790);const o={class:"text-bold"};function s(e,a,l,s,n,c){const r=(0,t.g2)("q-item"),g=(0,t.g2)("ButtonDialog"),u=(0,t.g2)("AppDialog");return(0,t.uX)(),(0,t.Wv)(u,{"data-test-id":"files-share-leave-dialog",modelValue:e.openDialog,"onUpdate:modelValue":a[0]||(a[0]=a=>e.openDialog=a),close:c.cancelDialog},{content:(0,t.k6)(()=>[(0,t.bF)(r,{class:"dialog__header-text"},{default:(0,t.k6)(()=>[(0,t.Lk)("p",null,[a[1]||(a[1]=(0,t.eW)("Leave share of the ",-1)),(0,t.Lk)("span",o,(0,i.v_)(e.currentFile.name),1),a[2]||(a[2]=(0,t.eW)(" file?",-1))])]),_:1})]),actions:(0,t.k6)(()=>[(0,t.bF)(g,{"data-test-id":"files-share-leave-confirm",saving:e.saving,action:c.leaveShare,label:e.$t("SHAREDFILES.ACTION_LEAVE_SHARE")},null,8,["saving","action","label"])]),_:1},8,["modelValue","close"])}var n=l(15679),c=l(65210),r=l(35625),g=l(9090);const u={name:"ShareLeaveDialog",components:{AppDialog:r.A,ButtonDialog:g.A},computed:{...(0,n.L8)(c.useFilesStore,["currentFile","selectedFiles"])},data:()=>({openDialog:!1,saving:!1}),methods:{...(0,n.i0)(c.useFilesStore,["asyncLeaveShare","selectFile"]),async leaveShare(){this.saving=!0;try{const e=await this.asyncLeaveShare();e&&(this.selectFile(null),this.$emit("closeDialog"))}finally{this.saving=!1}},cancelDialog(){this.$emit("closeDialog")}}};var d=l(12807),h=l(75329),v=l(98582),p=l.n(v);const m=(0,d.A)(u,[["render",s]]),D=m;p()(u,"components",{QItem:h.A})}}]);