jingrow/apps/jingrow/frontend/dist/assets/InstallProgressModal-1ec0a6fc.js

2 lines
1.2 KiB
JavaScript

import{d as h,r as w,M as i,D as v,w as t,j as s,l as V,f as p,g as o,t as n,h as r,p as c,n as I,az as N,s as y,af as B}from"./index-7b482730.js";import{_ as C}from"./_plugin-vue_export-helper-c27b6911.js";const M={class:"progress-content"},x=h({__name:"InstallProgressModal",props:{modelValue:{type:Boolean},progress:{},message:{},status:{},installing:{type:Boolean},title:{}},emits:["update:modelValue"],setup(u,{emit:g}){const l=u,_=g,a=w(l.modelValue);i(()=>l.modelValue,e=>{a.value=e}),i(a,e=>{_("update:modelValue",e)});function f(){l.installing||(a.value=!1)}return(e,d)=>(V(),v(s(B),{show:a.value,"onUpdate:show":d[0]||(d[0]=m=>a.value=m),preset:"card",style:{width:"500px"}},{header:t(()=>[p("h3",null,o(e.title||s(n)("Installing App")),1)]),action:t(()=>[r(s(I),{onClick:f,disabled:e.installing},{default:t(()=>[c(o(e.installing?s(n)("Installing..."):s(n)("Close")),1)]),_:1},8,["disabled"])]),default:t(()=>[p("div",M,[r(s(N),{percentage:e.progress,"show-indicator":!0,color:"#10b981"},null,8,["percentage"]),r(s(y),{class:"progress-text"},{default:t(()=>[c(o(e.message),1)]),_:1})])]),_:1},8,["show"]))}});const k=C(x,[["__scopeId","data-v-fee9acec"]]);export{k as I};