System.register(["./index-legacy.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./public-legacy.js?v=1764233927359","./mail-legacy.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359"],function(l,e){"use strict";var a,t,s,n,i,c,u,p,o,r,d,_,v,x,f,m,b,y,g,h,M,j,C,$;return{setters:[l=>{a=l.a},l=>{t=l._},l=>{s=l.d},l=>{n=l.a},l=>{i=l.a9,c=l.aa,u=l.ab},l=>{p=l.dR,o=l.av,r=l.dV,d=l.au,_=l.aC},l=>{v=l.k,x=l.P,f=l.e,m=l.r,b=l.R,y=l.V,g=l.S,h=l.W,M=l.a3,j=l.a4,C=l.U,$=l.j},null,null],execute:function(){const e={class:"px-20px pt-24px pb-8px"},w={class:"mb-20px"},k={class:"mb-20px text-desc"},P={class:"mb-6px"},z={class:"leading-18px"},D={class:"w-260px"};l("default",v({__name:"unsubscribe",emits:["close"],setup(l,{expose:v,emit:U}){const B=U,{t:R}=x(),S=f({http:"https://",url:""}),V=m(""),H=m([{label:"http://",value:"http://"},{label:"https://",value:"https://"}]),O=l=>{const{clipboardData:e}=l;if(e){const l=e.getData("text");if(l)if(-1===l.indexOf("://"))console.log(1),S.url=l;else{const e=l.split("://")[0]+"://";S.http=e,S.url=l.replace(e,"")}}l.preventDefault()},W=async()=>{n({title:R("Mail.Mass.index_59"),content:R("Mail.Mass.index_60"),onConfirm:async()=>{await i(),q()}})},q=async()=>{const{message:l}=await c();if(s(l)){if(V.value=l.panel_url,V.value){const l=V.value.split("://")[0]+"://";S.http=l}if(l.url){const e=l.url.split("://")[0]+"://";S.http=e,S.url=l.url.replace(e,"")}}},A=()=>{B("close")},E=async()=>{await u({url:S.http+S.url}),B("close")};return q(),v({onConfirm:E}),(l,s)=>{const n=r,i=d,c=o,u=p,v=t,x=_,f=a;return y(),b("div",null,[g("div",e,[h(v,{model:C(S),"label-width":"auto"},{default:M(()=>[g("div",w,j(l.$t("Mail.Mass.index_55"))+j(C(V)||"--"),1),g("div",k,[g("div",P,j(l.$t("Mail.Mass.index_56")),1),g("div",z,j(l.$t("Mail.Mass.index_57")),1)]),h(u,{label:l.$t("Mail.Mass.index_58"),path:"url"},{default:M(()=>[g("div",D,[h(c,null,{default:M(()=>[h(n,{value:C(S).http,"onUpdate:value":s[0]||(s[0]=l=>C(S).http=l),style:{width:"90px"},options:C(H)},null,8,["value","options"]),h(i,{value:C(S).url,"onUpdate:value":s[1]||(s[1]=l=>C(S).url=l),class:"flex-1",placeholder:"",onPaste:O},null,8,["value"])]),_:1})])]),_:1},8,["label"])]),_:1},8,["model"])]),h(f,null,{default:M(()=>[h(x,{size:"small",onClick:W},{default:M(()=>[$(j(l.$t("Mail.Mass.index_59")),1)]),_:1}),h(x,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:A},{default:M(()=>[$(j(l.$t("Public.Btn.Cancel")),1)]),_:1}),h(x,{type:"primary",size:"small",onClick:E},{default:M(()=>[$(j(l.$t("Public.Btn.Confirm")),1)]),_:1})]),_:1})])}}}))}}});
