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