System.register(["./index-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./mail-legacy2.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(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.c},l=>{n=l.d},l=>{i=l.a9,c=l.aa,u=l.ab},l=>{p=l.cG,o=l.aq,r=l.av,d=l.cA,_=l.ay},l=>{v=l.k,x=l.P,f=l.e,m=l.r,b=l.U,y=l.V,g=l.W,h=l.Q,M=l.a2,j=l.a3,C=l.X,$=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:q}=x(),A=f({http:"https://",url:""}),G=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),A.url=l;else{const e=l.split("://")[0]+"://";A.http=e,A.url=l.replace(e,"")}}l.preventDefault()},Q=async()=>{n({title:q("Mail.Mass.index_59"),content:q("Mail.Mass.index_60"),onConfirm:async()=>{await i(),S()}})},S=async()=>{const{message:l}=await c();if(s(l)){if(G.value=l.panel_url,G.value){const l=G.value.split("://")[0]+"://";A.http=l}if(l.url){const e=l.url.split("://")[0]+"://";A.http=e,A.url=l.url.replace(e,"")}}},V=()=>{B("close")},W=async()=>{await u({url:A.http+A.url}),B("close")};return S(),v({onConfirm:W}),(l,s)=>{const n=p,i=o,c=r,u=d,v=t,x=_,f=a;return b(),y("div",null,[g("div",e,[h(v,{model:C(A),"label-width":"auto"},{default:M((()=>[g("div",w,j(l.$t("Mail.Mass.index_55"))+j(C(G)||"--"),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(A).http,"onUpdate:value":s[0]||(s[0]=l=>C(A).http=l),style:{width:"90px"},options:C(H)},null,8,["value","options"]),h(i,{value:C(A).url,"onUpdate:value":s[1]||(s[1]=l=>C(A).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:Q},{default:M((()=>[$(j(l.$t("Mail.Mass.index_59")),1)])),_:1}),h(x,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:V},{default:M((()=>[$(j(l.$t("Public.Btn.Cancel")),1)])),_:1}),h(x,{type:"primary",size:"small",onClick:W},{default:M((()=>[$(j(l.$t("Public.Btn.Confirm")),1)])),_:1})])),_:1})])}}}))}}}));
