PageSourceSearch

https://static-cos.mureka.ai/cos-prod/mureka/static/js/removeWatermarkDialog-DyIvnNU0.js

js mureka.ai collected 2026-09-24 09:25:03 UTC 3,488 bytes, 1 lines download raw bytes

1import{_ as e,u as a,au as l,C as t,b as o,m as i}from"./index-DIXwfVMT.js";import{r,c as s,w as m,J as d,y as v,K as n,B as c,O as u,U as p,u as _,a2 as g,g as k}from"./vendor-core-DockhpYX.js";import"./i18n-misc-CJ8HFqLU.js";import"./axios-C-1G2k3o.js";import"./element-plus-CADUlNlv.js";import"./@ffmpeg-CcTuH-sP.js";import"./@paypal-DitgUCQS.js";const b={class:"remove-watermark-dialog__panel",role:"dialog","aria-modal":"true","aria-labelledby":"remove-watermark-dialog-title"},w={class:"remove-watermark-dialog__copy"},f={id:"remove-watermark-dialog-title",class:"remove-watermark-dialog__title"},y={class:"remove-watermark-dialog__description"},x={class:"remove-watermark-dialog__option"},S={class:"remove-watermark-dialog__option-label"},h={class:"remove-watermark-dialog__actions"},V=e({__name:"removeWatermarkDialog",props:{visible:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},saving:{type:Boolean,default:!1},title:{type:String,default:""},description:{type:String,default:""},optionLabel:{type:String,default:""},cancelText:{type:String,default:""},saveText:{type:String,default:""}},emits:["update:visible","update:modelValue","cancel","save"],setup(e,{emit:V}){var W,j;const B=e,C=V,E=r(B.modelValue),T=r(!1),L=a(),{$$t:$}=(null==(j=null==(W=k())?void 0:W.appContext.config.globalProperties)?void 0:j.$i18n)??{},D=s(()=>B.title||$("common.remove_watermark_title")),I=s(()=>B.description||$("common.remove_watermark_description")),U=s(()=>B.optionLabel||$("common.remove_watermark_option")),q=s(()=>B.cancelText||$("common.cancel")),z=s(()=>B.saveText||$("common.remove_watermark_save")),J=s(()=>B.saving||L.watermarkSettingLoading||T.value);m(()=>B.visible,e=>{e&&(E.value=L.removeExplicitWatermark)},{immediate:!0}),m(()=>[L.watermarkSettingInitialized,L.removeExplicitWatermark],([e,a])=>{B.visible&&e&&(E.value=a,C("update:modelValue",a))});const K=()=>{J.value||(E.value=L.removeExplicitWatermark,C("cancel"),C("update:visible",!1))},O=async()=>{if(J.value)return;const e=Boolean(E.value);T.value=!0;try{const l=await L.saveWatermarkSetting(e);E.value=l,C("update:modelValue",a=l),C("save",a),C("update:visible",!1)}catch(l){E.value=L.removeExplicitWatermark,i.error({position:"top",content:(null==l?void 0:l.message)||$("common.remove_watermark_save_failed")}),await L.queryWatermarkSetting({force:!0}).catch(()=>{}),E.value=L.removeExplicitWatermark}finally{T.value=!1}var a};return(e,a)=>(v(),d(o,{visible:B.visible,width:"488.5px","custom-class":"remove-watermark-dialog","hide-close-btn":!0,"disable-close":J.value,"mobile-render-type":"drawerDialog",onClose:K},{default:n(()=>[c("section",b,[c("div",w,[c("h2",f,u(D.value),1),c("p",y,u(I.value),1)]),c("div",x,[c("span",S,u(U.value),1),p(_(l),{modelValue:E.value,"onUpdate:modelValue":a[0]||(a[0]=e=>E.value=e),class:"remove-watermark-dialog__switch","checked-value":!0,"unchecked-value":!1,disabled:J.value,"aria-label":U.value},null,8,["modelValue","disabled","aria-label"])]),c("div",h,[p(_(t),{class:"remove-watermark-dialog__button remove-watermark-dialog__button--cancel",type:"secondary",appearance:"inverse",disabled:J.value,onClick:K},{default:n(()=>[g(u(q.value),1)]),_:1},8,["disabled"]),p(_(t),{class:"remove-watermark-dialog__button remove-watermark-dialog__button--save",disabled:J.value,loading:J.value,onClick:O},{default:n(()=>[g(u(z.value),1)]),_:1},8,["disabled","loading"])])])]),_:1},8,["visible","disable-close"]))}},[["__scopeId","data-v-fc03b257"]]);export{V as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.