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