wotokol-edm 1.2.14 → 1.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,7 +87,7 @@ var ao={};ao.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.
87
87
  * @since jsrsasign 2.1
88
88
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
89
89
  */
90
- var so={};"undefined"!=typeof so.asn1&&so.asn1||(so.asn1={}),so.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),i=n.length;i%2==1?i+=1:t.match(/^[0-7]/)||(i+=2);for(var r="",o=0;o<i;o++)r+="f";var a=new Er(r,16),s=a.xor(e).add(Er.ONE);t=s.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=so,n=t.asn1,i=n.DERBoolean,r=n.DERInteger,o=n.DERBitString,a=n.DEROctetString,s=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,u=n.DERUTF8String,d=n.DERNumericString,h=n.DERPrintableString,p=n.DERTeletexString,f=n.DERIA5String,m=n.DERUTCTime,g=n.DERGeneralizedTime,v=n.DERSequence,y=n.DERSet,b=n.DERTaggedObject,w=n.ASN1Util.newObject,_=Object.keys(e);if(1!=_.length)throw"key of param shall be only one.";var C=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+C+":"))throw"undefined key: "+C;if("bool"==C)return new i(e[C]);if("int"==C)return new r(e[C]);if("bitstr"==C)return new o(e[C]);if("octstr"==C)return new a(e[C]);if("null"==C)return new s(e[C]);if("oid"==C)return new l(e[C]);if("enum"==C)return new c(e[C]);if("utf8str"==C)return new u(e[C]);if("numstr"==C)return new d(e[C]);if("prnstr"==C)return new h(e[C]);if("telstr"==C)return new p(e[C]);if("ia5str"==C)return new f(e[C]);if("utctime"==C)return new m(e[C]);if("gentime"==C)return new g(e[C]);if("seq"==C){for(var x=e[C],S=[],k=0;k<x.length;k++){var E=w(x[k]);S.push(E)}return new v({array:S})}if("set"==C){for(x=e[C],S=[],k=0;k<x.length;k++){E=w(x[k]);S.push(E)}return new y({array:S})}if("tag"==C){var D=e[C];if("[object Array]"===Object.prototype.toString.call(D)&&3==D.length){var A=w(D[2]);return new b({tag:D[0],explicit:D[1],obj:A})}var O={};if(void 0!==D.explicit&&(O.explicit=D.explicit),void 0!==D.tag&&(O.tag=D.tag),void 0===D.obj)throw"obj shall be specified for 'tag'.";return O.obj=w(D.obj),new b(O)}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},so.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),i=Math.floor(n/40),r=n%40,o=(t=i+"."+r,""),a=2;a<e.length;a+=2){var s=parseInt(e.substr(a,2),16),l=("00000000"+s.toString(2)).slice(-8);if(o+=l.substr(1,7),"0"==l.substr(0,1)){var c=new Er(o,2);t=t+"."+c.toString(10),o=""}}return t},so.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",i=new Er(e,10),r=i.toString(2),o=7-r.length%7;7==o&&(o=0);for(var a="",s=0;s<o;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var l=r.substr(s,7);s!=r.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",r=e.split("."),o=40*parseInt(r[0])+parseInt(r[1]);i+=t(o),r.splice(0,2);for(var a=0;a<r.length;a++)i+=n(r[a]);return i},so.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var r=128+i;return r.toString(16)+n},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},so.asn1.DERAbstractString=function(e){so.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e["str"]?this.setString(e["str"]):"undefined"!=typeof e["hex"]&&this.setStringHex(e["hex"]))},ao.lang.extend(so.asn1.DERAbstractString,so.asn1.ASN1Object),so.asn1.DERAbstractTime=function(e){so.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){utc=e.getTime()+6e4*e.getTimezoneOffset();var t=new Date(utc);return t},this.formatDate=function(e,t,n){var i=this.zeroPadding,r=this.localDateToUTC(e),o=String(r.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=i(String(r.getMonth()+1),2),s=i(String(r.getDate()),2),l=i(String(r.getHours()),2),c=i(String(r.getMinutes()),2),u=i(String(r.getSeconds()),2),d=o+a+s+l+c+u;if(!0===n){var h=r.getMilliseconds();if(0!=h){var p=i(String(h),3);p=p.replace(/[0]+$/,""),d=d+"."+p}}return d+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,i,r,o){var a=new Date(Date.UTC(e,t-1,n,i,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},ao.lang.extend(so.asn1.DERAbstractTime,so.asn1.ASN1Object),so.asn1.DERAbstractStructured=function(e){so.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e["array"]&&(this.asn1Array=e["array"])},ao.lang.extend(so.asn1.DERAbstractStructured,so.asn1.ASN1Object),so.asn1.DERBoolean=function(){so.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ao.lang.extend(so.asn1.DERBoolean,so.asn1.ASN1Object),so.asn1.DERInteger=function(e){so.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=so.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new Er(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["bigint"]?this.setByBigInteger(e["bigint"]):"undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},ao.lang.extend(so.asn1.DERInteger,so.asn1.ASN1Object),so.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=so.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}so.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var t=8-e.length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var i="";for(n=0;n<e.length-1;n+=8){var r=e.substr(n,8),o=parseInt(r,2).toString(16);1==o.length&&(o="0"+o),i+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+i},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e["hex"]?this.setHexValueIncludingUnusedBits(e["hex"]):"undefined"!=typeof e["bin"]?this.setByBinaryString(e["bin"]):"undefined"!=typeof e["array"]&&this.setByBooleanArray(e["array"]))},ao.lang.extend(so.asn1.DERBitString,so.asn1.ASN1Object),so.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=so.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}so.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},ao.lang.extend(so.asn1.DEROctetString,so.asn1.DERAbstractString),so.asn1.DERNull=function(){so.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ao.lang.extend(so.asn1.DERNull,so.asn1.ASN1Object),so.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",i=new Er(e,10),r=i.toString(2),o=7-r.length%7;7==o&&(o=0);for(var a="",s=0;s<o;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var l=r.substr(s,7);s!=r.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};so.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",r=e.split("."),o=40*parseInt(r[0])+parseInt(r[1]);i+=t(o),r.splice(0,2);for(var a=0;a<r.length;a++)i+=n(r[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(e){var t=so.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"===typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},ao.lang.extend(so.asn1.DERObjectIdentifier,so.asn1.ASN1Object),so.asn1.DEREnumerated=function(e){so.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=so.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new Er(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},ao.lang.extend(so.asn1.DEREnumerated,so.asn1.ASN1Object),so.asn1.DERUTF8String=function(e){so.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},ao.lang.extend(so.asn1.DERUTF8String,so.asn1.DERAbstractString),so.asn1.DERNumericString=function(e){so.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},ao.lang.extend(so.asn1.DERNumericString,so.asn1.DERAbstractString),so.asn1.DERPrintableString=function(e){so.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},ao.lang.extend(so.asn1.DERPrintableString,so.asn1.DERAbstractString),so.asn1.DERTeletexString=function(e){so.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},ao.lang.extend(so.asn1.DERTeletexString,so.asn1.DERAbstractString),so.asn1.DERIA5String=function(e){so.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},ao.lang.extend(so.asn1.DERIA5String,so.asn1.DERAbstractString),so.asn1.DERUTCTime=function(e){so.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},ao.lang.extend(so.asn1.DERUTCTime,so.asn1.DERAbstractTime),so.asn1.DERGeneralizedTime=function(e){so.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},ao.lang.extend(so.asn1.DERGeneralizedTime,so.asn1.DERAbstractTime),so.asn1.DERSequence=function(e){so.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.getEncodedHex()}return this.hV=e,this.hV}},ao.lang.extend(so.asn1.DERSequence,so.asn1.DERAbstractStructured),so.asn1.DERSet=function(e){so.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},"undefined"!=typeof e&&"undefined"!=typeof e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},ao.lang.extend(so.asn1.DERSet,so.asn1.DERAbstractStructured),so.asn1.DERTaggedObject=function(e){so.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["tag"]&&(this.hT=e["tag"]),"undefined"!=typeof e["explicit"]&&(this.isExplicit=e["explicit"]),"undefined"!=typeof e["obj"]&&(this.asn1Object=e["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ao.lang.extend(so.asn1.DERTaggedObject,so.asn1.ASN1Object);var lo,co,uo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ho=function(e){function t(n){var i=e.call(this)||this;return n&&("string"===typeof n?i.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return uo(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,r=i.test(e)?ur.decode(e):dr.unarmor(e),o=wr.decode(r);if(3===o.sub.length&&(o=o.sub[2].sub[0]),9===o.sub.length){t=o.sub[1].getHexStringValue(),this.n=Pr(t,16),n=o.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=o.sub[3].getHexStringValue();this.d=Pr(a,16);var s=o.sub[4].getHexStringValue();this.p=Pr(s,16);var l=o.sub[5].getHexStringValue();this.q=Pr(l,16);var c=o.sub[6].getHexStringValue();this.dmp1=Pr(c,16);var u=o.sub[7].getHexStringValue();this.dmq1=Pr(u,16);var d=o.sub[8].getHexStringValue();this.coeff=Pr(d,16)}else{if(2!==o.sub.length)return!1;if(o.sub[0].sub){var h=o.sub[1],p=h.sub[0];t=p.sub[0].getHexStringValue(),this.n=Pr(t,16),n=p.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else t=o.sub[0].getHexStringValue(),this.n=Pr(t,16),n=o.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(f$){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new so.asn1.DERInteger({int:0}),new so.asn1.DERInteger({bigint:this.n}),new so.asn1.DERInteger({int:this.e}),new so.asn1.DERInteger({bigint:this.d}),new so.asn1.DERInteger({bigint:this.p}),new so.asn1.DERInteger({bigint:this.q}),new so.asn1.DERInteger({bigint:this.dmp1}),new so.asn1.DERInteger({bigint:this.dmq1}),new so.asn1.DERInteger({bigint:this.coeff})]},t=new so.asn1.DERSequence(e);return t.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return sr(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new so.asn1.DERSequence({array:[new so.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new so.asn1.DERNull]}),t=new so.asn1.DERSequence({array:[new so.asn1.DERInteger({bigint:this.n}),new so.asn1.DERInteger({int:this.e})]}),n=new so.asn1.DERBitString({hex:"00"+t.getEncodedHex()}),i=new so.asn1.DERSequence({array:[e,n]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return sr(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(t=t||64,!e)return e;var n="(.{1,"+t+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(to),po="undefined"!==typeof process?null===(lo={NODE_ENV:"production",BASE_URL:"/"})||void 0===lo?void 0:lo.npm_package_version:void 0,fo=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ho(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(lr(e))}catch(f$){return!1}},e.prototype.encrypt=function(e){try{return sr(this.getKey().encrypt(e))}catch(f$){return!1}},e.prototype.sign=function(e,t,n){try{return sr(this.getKey().sign(e,t,n))}catch(f$){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,lr(t),n)}catch(f$){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new ho,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=po,e}(),mo=new Uint8Array(16);function go(){if(!co&&(co="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!co))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return co(mo)}var vo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yo(e){return"string"===typeof e&&vo.test(e)}for(var bo=yo,wo=[],_o=0;_o<256;++_o)wo.push((_o+256).toString(16).substr(1));function Co(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(wo[e[t+0]]+wo[e[t+1]]+wo[e[t+2]]+wo[e[t+3]]+"-"+wo[e[t+4]]+wo[e[t+5]]+"-"+wo[e[t+6]]+wo[e[t+7]]+"-"+wo[e[t+8]]+wo[e[t+9]]+"-"+wo[e[t+10]]+wo[e[t+11]]+wo[e[t+12]]+wo[e[t+13]]+wo[e[t+14]]+wo[e[t+15]]).toLowerCase();if(!bo(n))throw TypeError("Stringified UUID is invalid");return n}var xo,So,ko=Co,Eo=0,Do=0;function Ao(e,t,n){var i=t&&n||0,r=t||new Array(16);e=e||{};var o=e.node||xo,a=void 0!==e.clockseq?e.clockseq:So;if(null==o||null==a){var s=e.random||(e.rng||go)();null==o&&(o=xo=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=So=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:Do+1,u=l-Eo+(c-Do)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||l>Eo)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Eo=l,Do=c,So=a,l+=122192928e5;var d=(1e4*(268435455&l)+c)%4294967296;r[i++]=d>>>24&255,r[i++]=d>>>16&255,r[i++]=d>>>8&255,r[i++]=255&d;var h=l/4294967296*1e4&268435455;r[i++]=h>>>8&255,r[i++]=255&h,r[i++]=h>>>24&15|16,r[i++]=h>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a;for(var p=0;p<6;++p)r[i+p]=o[p];return t||ko(r)}var Oo=Ao;function To(e){if(!bo(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}var Io=To;function Po(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var Fo="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Mo="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Bo(e,t,n){function i(e,i,r,o){if("string"===typeof e&&(e=Po(e)),"string"===typeof i&&(i=Io(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(i),a.set(e,i.length),a=n(a),a[6]=15&a[6]|t,a[8]=63&a[8]|128,r){o=o||0;for(var s=0;s<16;++s)r[o+s]=a[s];return r}return ko(a)}try{i.name=e}catch(r){}return i.DNS=Fo,i.URL=Mo,i}function No(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return $o(jo(Lo(e),8*e.length))}function $o(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}function Ro(e){return 14+(e+64>>>9<<4)+1}function jo(e,t){e[t>>5]|=128<<t%32,e[Ro(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,l=i,c=r,u=o;n=Uo(n,i,r,o,e[a],7,-680876936),o=Uo(o,n,i,r,e[a+1],12,-389564586),r=Uo(r,o,n,i,e[a+2],17,606105819),i=Uo(i,r,o,n,e[a+3],22,-1044525330),n=Uo(n,i,r,o,e[a+4],7,-176418897),o=Uo(o,n,i,r,e[a+5],12,1200080426),r=Uo(r,o,n,i,e[a+6],17,-1473231341),i=Uo(i,r,o,n,e[a+7],22,-45705983),n=Uo(n,i,r,o,e[a+8],7,1770035416),o=Uo(o,n,i,r,e[a+9],12,-1958414417),r=Uo(r,o,n,i,e[a+10],17,-42063),i=Uo(i,r,o,n,e[a+11],22,-1990404162),n=Uo(n,i,r,o,e[a+12],7,1804603682),o=Uo(o,n,i,r,e[a+13],12,-40341101),r=Uo(r,o,n,i,e[a+14],17,-1502002290),i=Uo(i,r,o,n,e[a+15],22,1236535329),n=Wo(n,i,r,o,e[a+1],5,-165796510),o=Wo(o,n,i,r,e[a+6],9,-1069501632),r=Wo(r,o,n,i,e[a+11],14,643717713),i=Wo(i,r,o,n,e[a],20,-373897302),n=Wo(n,i,r,o,e[a+5],5,-701558691),o=Wo(o,n,i,r,e[a+10],9,38016083),r=Wo(r,o,n,i,e[a+15],14,-660478335),i=Wo(i,r,o,n,e[a+4],20,-405537848),n=Wo(n,i,r,o,e[a+9],5,568446438),o=Wo(o,n,i,r,e[a+14],9,-1019803690),r=Wo(r,o,n,i,e[a+3],14,-187363961),i=Wo(i,r,o,n,e[a+8],20,1163531501),n=Wo(n,i,r,o,e[a+13],5,-1444681467),o=Wo(o,n,i,r,e[a+2],9,-51403784),r=Wo(r,o,n,i,e[a+7],14,1735328473),i=Wo(i,r,o,n,e[a+12],20,-1926607734),n=qo(n,i,r,o,e[a+5],4,-378558),o=qo(o,n,i,r,e[a+8],11,-2022574463),r=qo(r,o,n,i,e[a+11],16,1839030562),i=qo(i,r,o,n,e[a+14],23,-35309556),n=qo(n,i,r,o,e[a+1],4,-1530992060),o=qo(o,n,i,r,e[a+4],11,1272893353),r=qo(r,o,n,i,e[a+7],16,-155497632),i=qo(i,r,o,n,e[a+10],23,-1094730640),n=qo(n,i,r,o,e[a+13],4,681279174),o=qo(o,n,i,r,e[a],11,-358537222),r=qo(r,o,n,i,e[a+3],16,-722521979),i=qo(i,r,o,n,e[a+6],23,76029189),n=qo(n,i,r,o,e[a+9],4,-640364487),o=qo(o,n,i,r,e[a+12],11,-421815835),r=qo(r,o,n,i,e[a+15],16,530742520),i=qo(i,r,o,n,e[a+2],23,-995338651),n=Yo(n,i,r,o,e[a],6,-198630844),o=Yo(o,n,i,r,e[a+7],10,1126891415),r=Yo(r,o,n,i,e[a+14],15,-1416354905),i=Yo(i,r,o,n,e[a+5],21,-57434055),n=Yo(n,i,r,o,e[a+12],6,1700485571),o=Yo(o,n,i,r,e[a+3],10,-1894986606),r=Yo(r,o,n,i,e[a+10],15,-1051523),i=Yo(i,r,o,n,e[a+1],21,-2054922799),n=Yo(n,i,r,o,e[a+8],6,1873313359),o=Yo(o,n,i,r,e[a+15],10,-30611744),r=Yo(r,o,n,i,e[a+6],15,-1560198380),i=Yo(i,r,o,n,e[a+13],21,1309151649),n=Yo(n,i,r,o,e[a+4],6,-145523070),o=Yo(o,n,i,r,e[a+11],10,-1120210379),r=Yo(r,o,n,i,e[a+2],15,718787259),i=Yo(i,r,o,n,e[a+9],21,-343485551),n=zo(n,s),i=zo(i,l),r=zo(r,c),o=zo(o,u)}return[n,i,r,o]}function Lo(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Ro(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}function zo(e,t){var n=(65535&e)+(65535&t),i=(e>>16)+(t>>16)+(n>>16);return i<<16|65535&n}function Vo(e,t){return e<<t|e>>>32-t}function Ho(e,t,n,i,r,o){return zo(Vo(zo(zo(t,e),zo(i,o)),r),n)}function Uo(e,t,n,i,r,o,a){return Ho(t&n|~t&i,e,t,r,o,a)}function Wo(e,t,n,i,r,o,a){return Ho(t&i|n&~i,e,t,r,o,a)}function qo(e,t,n,i,r,o,a){return Ho(t^n^i,e,t,r,o,a)}function Yo(e,t,n,i,r,o,a){return Ho(n^(t|~i),e,t,r,o,a)}var Go=No,Ko=Bo("v3",48,Go),Xo=Ko;function Zo(e,t,n){e=e||{};var i=e.random||(e.rng||go)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return ko(i)}var Jo=Zo;function Qo(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function ea(e,t){return e<<t|e>>>32-t}function ta(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),l=0;l<a;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];s[l]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[d][p];for(var f=16;f<80;++f)h[f]=ea(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var _=Math.floor(w/20),C=ea(m,5)+Qo(_,g,v,y)+b+t[_]+h[w]>>>0;b=y,y=v,v=ea(g,30)>>>0,g=m,m=C}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}var na=ta,ia=Bo("v5",80,na),ra=ia,oa={v1:Oo,v3:Xo,v4:Jo,v5:ra};function aa(e){let t=new fo;t.setPublicKey(sa("4ADS20wxtyAw"));let n=t.encrypt(e);return n}function sa(e){return!!Object.prototype.toString.call(e)&&la("M1Fw3wD5QYJKoZIhvcNAQEBBQADSwAwSAJBAPWZswFK/6")}function la(e){if(Object.prototype.toString.call(e)){let t=e.replace(new RegExp("1","g"),""),n=t.replace(new RegExp("3","g"),""),i=n.replace(new RegExp("5","g"),"");return ca("AJB5APWZ"+i)}return!1}function ca(e){if(Object.prototype.toString.call(e)){let t="++m2Kx72j8q73mLKCxi72MZG6knk7vQAz9Ed4SgbJ67juHT7Km",n=t.split("").reverse().join(""),i=n.split("").reverse().join(""),r=i.replace(new RegExp("3m","g"),""),o=r.replace(new RegExp("6k","g"),""),a=o.replace(new RegExp("gb","g"),"");return ua(e.slice(8)+a)}return!1}function ua(e){if(Object.prototype.toString.call(e)){let t="7kdTklfaAsccYCeQbhDr7Cd8mWFleQtVKM6mM90CAwEAAQ==",n=t.replace(new RegExp("cc","g"),""),i=n.replace(new RegExp("8m","g"),""),r="hDr7Cd98mWF"+i.replace(new RegExp("90","g"),"");return e.split("").reverse().join("").split("").reverse().join("")+r.slice(11)}return!1}function da(e,t=!1){const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener noreferrer",t&&(n.download="file"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}let ha="",pa="";function fa(e){if(null!==e){if(Array.isArray(e))for(let t=0;t<e.length;t++)null===e[t]?e[t]=void 0:"object"===typeof e[t]&&fa(e[t]);else if("object"===typeof e)for(const t in e)e.hasOwnProperty(t)&&(null===e[t]?e[t]=void 0:"object"===typeof e[t]&&fa(e[t]));return e}}function ma(e){pa=e,localStorage.setItem("EDMDefaultEnv",e),"dev"===e||"development"===e||"test"===e||"pre"===e?ha="https://apipre.wotohub.com":"prod"!==e&&"production"!==e||(ha="https://api.wotohub.com/")}const ga=xn.create({baseURL:"",timeout:25e4});ga.interceptors.request.use((function(e){const t=(new Date).getTime(),n=In()+t;let i=oa.v4();const r=e.params||e.data;fa(r);let o={},a="";r?(o=Rn(e.url,n,t,r,i,e.method),a=o.hmacBytes):(o=Rn(e.url,n,t,null,i,e.method),a=o.hmacBytes),e.baseURL=pa?ha:"https://apipre.wotohub.com",e.headers["appkey"]=aa(i),e.headers["timestamp"]=t,e.headers["nonce"]=n,e.headers["cookieid"]=a,e.headers["sign"]=Ln(r).hmacBytes,e.headers["token"]=localStorage.getItem("token"),e.headers["Content-Type"]="application/json",e.config&&e.config.contentType&&"formData"===e.config.contentType&&(e.headers["Content-Type"]="multipart/form-data");let s=localStorage.getItem("sourceApp");return s&&(e.headers["sourceApp"]=localStorage.getItem("sourceApp")),localStorage.getItem("token")&&(e.headers["token"]=localStorage.getItem("token")),localStorage.getItem("Authorization")&&(e.headers["Authorization"]=localStorage.getItem("Authorization")),localStorage.getItem("dss_token")&&(e.headers["dss-token"]=localStorage.getItem("dss_token")),e}),(function(e){return Promise.reject(e)})),ga.interceptors.response.use((function(e){503===e.status&&alert("服务器不可用,请联系管理员"),200!==e.status&&0!==e.status||("1006"===e.data.code||"用户未登录"===e.data.message)&&(localStorage.removeItem("user_info"),localStorage.removeItem("user_equity"),localStorage.removeItem("token"),localStorage.removeItem("dss_token"),localStorage.removeItem("referrer"),localStorage.removeItem("isRemindUnlock"),localStorage.removeItem("inboxPage"),localStorage.removeItem("outboxPage"),localStorage.removeItem("omaToken"),localStorage.removeItem("oma_token"),["www.wotohub.com","pre-hub.kuku.info"].includes(window.location.host)&&(window.location.href="/login"));try{if("object"===typeof e.data&&e.data.hasOwnProperty("code")&&0!=e.data.code){const t=JSON.parse(localStorage.getItem("user_info")||"{}"),n=t.user_id?t.user_id+"_":"";throw new Error(n+e.request.responseURL+e.request.responseText||e.data.code)}}catch(Ml){console.error("An error occurred:",Ml),Sa(Ml)}return e.data}),(function(e){return Promise.reject(e)}));const va=(e,t)=>new Promise(((n,i)=>{ga.get(e,{params:t}).then((e=>{n(e)})).catch((e=>{i(e)}))})),ya=(e,t)=>new Promise(((n,i)=>{ga.delete(e,{params:t}).then((e=>{n(e)})).catch((e=>{i(e)}))})),ba=(e,t)=>new Promise(((n,i)=>{ga.delete(e,{data:t}).then((e=>{n(e)})).catch((e=>{i(e)}))})),wa=(e,t,n)=>new Promise(((i,r)=>{ga.post(e,t,{responseType:n?"blob":"json"}).then((e=>{i(e)})).catch((e=>{r(e)}))})),_a=(e,t)=>new Promise(((n,i)=>{ga.put(e,t).then((e=>{n(e)})).catch((e=>{i(e)}))})),Ca=(e,t,n)=>ga({method:"post",url:e,data:t,onUploadProgress:n,config:{contentType:"formData"},headers:{"Content-Type":"multipart/form-data"}}),xa=localStorage.getItem("EDMDefaultEnv");function Sa(e){"dev"!==xa&&Ki.reportFrameErrors({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],traceTimeInterval:6e4,vue:qn()},e)}"dev"!==xa&&Ki.register({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],vue:qn()});const ka=xn.create({baseURL:"https://dss-apis.kuku.info"});ka.interceptors.request.use((e=>{if(e.data)for(const t in e.data)Da(e.data[t])&&delete e.data[t];if(e.params)for(const t in e.params)Da(e.params[t])&&delete e.params[t];return zi.getters.token&&(e.headers["Authorization"]="Bearer "+Yi()),e}),(e=>Promise.reject(e))),ka.interceptors.response.use((e=>{const t=e.data;try{if("object"===typeof e.data&&e.data.hasOwnProperty("code")&&0!=e.data.code){const t=JSON.parse(localStorage.getItem("user_info")||"{}"),n=t.user_id?t.user_id+"_":"";throw new Error(n+e.request.responseURL+e.request.responseText||e.data.code)}}catch(Ml){console.error("An error occurred:",Ml),Sa(Ml)}return Promise.resolve(t)}),(e=>(100003===e.response.data.code?(0,Un.Message)({message:e.response.data.message,type:"error",duration:5e3}):(0,Un.Message)({message:e.response.data.message?e.response.data.message:"网络错误,请稍后再试~",type:"error",duration:5e3}),Promise.reject(e))));var Ea=ka;function Da(e){return"undefined"===typeof e||null===e||""===e}async function Aa(e){let t=await wa("/user/userSystem/loginWithPassword",e);return t.data}function Oa(e){return Ea({url:"https://dss-apis.kuku.info/user/account/password",method:"POST",data:e})}async function Ta(e){let t=await Hn("https://api.kuku.info/koc/task/search",e);return t.data}async function Ia(){let e=await Hn("http://192.168.4.10:9528/writeEmail",{});return e.data}async function Pa(e){let t={sourceApp:"hub",bloggerName:"",subject:"",taskName:"",type:"",currentPage:1,pageSize:10},n=await Hn("http://192.168.4.10:8080/edm/mail/selOutbox",t);return n.data}var Fa={name:"edm-button",created(){},methods:{test(){let e='<html>\n <head>\n <meta http-equiv="Content-Type" content="text/html; charset=gb2312">\n <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>\n </head>\n <body dir="ltr">\n <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">\n This is a great project. I like it very much. Can you tell me the specific way of cooperation?\n </div>\n <div id="appendonsend"></div>\n <hr style="display:inline-block;width:98%" tabindex="-1">\n <div id="divRplyFwdMsg" dir="ltr">\n <font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com &lt;e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com&gt; 代表 marywrogers@viralpromotors.com &lt;marywrogers@viralpromotors.com&gt;<br><b>发送时间:</b> 2024年6月27日 9:23<br><b>收件人:</b> lectmaha &lt;lectmaha@hotmail.com&gt;<br><b>主题:</b> Business inquiry-Hisense wants collaboration-allhostaria</font>\n <div>\n &nbsp;\n </div>\n </div>\n <div>\n <p style="text-align:left"><span style="font-size:14px">Hi allhostaria,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Hope this email finds you well.</span></p>\n <p style="text-align:left"><span style="font-size:14px">This is Anna from Wotokol, a famous influencer marketing company that connects international influencers and world-famous brands from China.</span></p>\n <p style="text-align:left"><span style="font-size:14px">You do really great content on your channel and here\'s a campaign that I\'d like to invite you to join.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Here is the info about this activity:</span></p>\n <p style="text-align:left"><span style="font-size:14px">Brand: Hisense &nbsp;</span><a href="https://sctrack.sendcloud.net/track/click2/eNolj8FuwyAQRP8FpTeC2TWsza39jipCeE1qK8RUAZ-q_ntwoj2sZuZpR_uNoyU7SCGkgAGcsWB6bONB9w7JO2cJ_ThoqwqfQXvnjfZA5rxuU963WZ9S5HoPS_hccttrUpzvQmopllp_y0f_1XU_KU8hqWUtcSvxALoXcQ2pxFZtBjWOClGBoSbrYz_cI2AmRDMb5wA0BeoBeQIOzMhXMm-qcH0Evql2feaU91ltsQr59y_fXzTo8gRda0GI.html" target="_blank"><span style="color:rgb(120,6,80); font-size:14px">https://global.hisense.com/</span></a></p>\n <p style="text-align:left"><span style="font-size:14px">Product models for different countries:</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>US:</u></span><span style="font-size:14px"> Hisense 100" Class U76 4K Google TV 100U76N Hisense (hisense-usa.com), Hisense 100" L9 Series TriChroma Laser TV (100L9H-DLT100C) (hisense-usa.com)</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>UK:</u></span><span style="font-size:14px"> Mini-LED Smart TV - 100U7KQTUK - Hisense, 4K Smart Laser TV - 120L9HTUKA - Hisense</span></p>\n <p style="text-align:left"><span style="font-size:14px">Deliverables: one 5-8 mins dedicated YTB video + video commercial usage rights for 3 months</span></p>\n <p style="text-align:left"><span style="font-size:14px">Post time: July 7-July 14, 2024</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">One of the products will be given to you, please let me know your rate for this collab if you\'re interested.</span></p>\n <p style="text-align:left"><span style="font-size:14px">Please feel free to contact me if you have any questions, hope to hear from you soon.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Best Regards,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Anna Chen</span></p>\n <div style="display:flex; overflow-x:auto"></div>\n <div>\n <br><img width="1px" height="1px" src="https://pixel.xin/collect.gif?trace_id=pixel_667cbf27e4b0b64ffa8b634c">\n </div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tbody>\n <tr>\n <td align="center" style="overflow:hidden; font-size:0; padding:0; margin:0; line-height:0"><img alt="" style="width:0; height:0" src="https://sctrack.sendcloud.net/track/open2/eNolTs0KwyAYexfZ0YpaP39ue48xxH46WuYUqj2NvfssJYeQEJI8pAUNhhJCiTDCKRBqlgNe8NlJ7Z0DLb01HFjDSXDvvOJeaDVtZalHifyWE_ZPWMN9rYO3zLB-COUD5BVyS6NaGWYtk5IJpYfs-3G65-aCBpzEqCAugo9RjDw6GCckaAxXqmHfA75ZSyVirkdkJXVCvz96vRyh5x_lOzaT.gif"></td>\n </tr>\n </tbody>\n </table>\n <center>\n <table width="100%" align="center" style="max-width:900px; margin:0 auto; width:100%">\n <tbody>\n <tr align="center">\n </tr>\n <tr align="center">\n <td width="560" style="border-top:1px #e5e5e5 solid; padding-top:15px; padding-bottom:15px">\n <table border="0" cellspacing="0" cellpadding="0" align="center">\n <tbody>\n <tr>\n <td style="background-color:#ddd; border:1px #ddd solid; border-radius:4px; padding:3px 15px; text-align:center"><a href="https://sctrack.sendcloud.net/track/unsubscribe2.do?p=eNptTssKAjEM_JfisVua9H3zP0RKt63sYt3CPk7ivxv1KjOQZMhMckFvrHGcMc7AQdAGtEJCBKkC2hiCsRi9k0ZseQAZQ9QygtXDvIz9WIo8tZr3R5rSeepU5yZyfzAuCeyW2lYpWjvhvUAUoC2N-3qQOsD37H87UwZzwVB1Skp7byEZGEsoNVGj8JNK3PK-pnwXW11Kbv0oYqk7488X__1PS9c3Zbc_0g%3D%3D" target="_blank" rel="noopener" style="color:#a6a6a6; background:#ddd; font-size:12px; text-decoration:none">点击这里取消订阅<br>\n click to unsubscribe</a></td>\n </tr>\n </tbody>\n </table></td>\n </tr>\n </tbody>\n </table>\n </center>\n </div>\n </body>\n</html>';e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<[^>]+>/g,""),e=e.replace(new RegExp("&nbsp;","g")," "),console.log(e)},getData(){login()},change(){Pa();let e={id:"theme-hub"};l(e)},handleTest1(){},change1(){let e={id:"theme-dss"};l(e)},handleLoginHub(){localStorage.setItem("sourceApp","hub"),Aa({mobileOrEmail:"13262005357",password:"123123123"}).then((e=>{e&&(alert("登陆成功"),e.token&&(localStorage.setItem("token",e.token),Gi(e.token)))}))},handleLoginDSS(){localStorage.setItem("sourceApp","dss"),Oa({login_account:"tankangkang0147",password:"123123123"}).then((e=>{0===e.code&&(localStorage.setItem("Authorization","Bearer "+e.data.token),Gi(e.token))}))},handleGetlist(){Ta({page:1,aa:"1"}).then((e=>{}))},getCros(){alert(1),Ia()}}},Ma=Fa;function Ba(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var Na=Ba(Ma,o,a,!1,null,"1f33a3d5",null),$a=Na.exports,Ra=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inbox-container"},[t("div",{staticClass:"search-box"},[t("el-row",{attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.bloggerName")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.title")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.subject,callback:function(t){e.$set(e.searchForm,"subject",t)},expression:"searchForm.subject"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.target")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.popularizePlanName,callback:function(t){e.$set(e.searchForm,"popularizePlanName",t)},expression:"searchForm.popularizePlanName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.tagName")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},on:{change:e.handleTagChange},model:{value:e.searchForm.selectTag,callback:function(t){e.$set(e.searchForm,"selectTag",t)},expression:"searchForm.selectTag"}},e._l(e.tags,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)])],1),t("el-row",{staticClass:"second-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isStar")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.all")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.starred")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isRead")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isRead,callback:function(t){e.$set(e.searchForm,"isRead",t)},expression:"searchForm.isRead"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.unRead")}}),t("el-option",{attrs:{value:2,label:e.$t("inboxMail.search.read")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isReply")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isReply,callback:function(t){e.$set(e.searchForm,"isReply",t)},expression:"searchForm.isReply"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.replyTrue")}}),t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.replyFalse")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.replayTime")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.timeRange,callback:function(t){e.$set(e.searchForm,"timeRange",t)},expression:"searchForm.timeRange"}},[t("el-option",{attrs:{value:"1",label:e.$t("inboxMail.search.time1")}}),t("el-option",{attrs:{value:"2",label:e.$t("inboxMail.search.time2")}}),t("el-option",{attrs:{value:"3",label:e.$t("inboxMail.search.time3")}})],1)],1)])],1),t("el-row",{staticClass:"second-row last-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-btn"},[t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:function(t){e.searchForm.currentPage=1,e.init()}}},[e._v(e._s(e.$t("inboxMail.searchButton.search")))]),t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{click:e.reset}},[e._v(e._s(e.$t("inboxMail.search.reset")))])],1)])],1)],1),t("div",{staticClass:"mail-wrap legacy relative"},[t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.init()}}},[t("el-tooltip",{staticClass:"item1",attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v1"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.del()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v2"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.setUnRead()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-unread mail-unread mail-status"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.setHasRead()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setHasRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative"},[e._v("")])])],1),t("div",{staticClass:"tool-item",on:{click:e.multiReply}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.batchReply"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-plhf"})])],1)])]),t("div",{ref:"mail",staticClass:"mail-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",style:{"min-height":`${e.tableHeight}px`},attrs:{data:e.tableData,"header-cell-class-name":e.headCellClass,"cell-class-name":e.cellClass,"row-class-name":e.rowClass,"row-key":e.getRowKeys},on:{"selection-change":e.switchMail,"row-contextmenu":e.rightClick,"row-click":e.skipDetail}},[t("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",align:"center",width:"48"}}),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("span",{on:{click:function(t){return t.stopPropagation(),e.isFavorites(n)}}},[t("i",{class:0===n.isStar?"start-icon pm-iconfont icon-star0":"start-icon pm-iconfont icon-star1 starcolor"})])]}}])}),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return["1"===n.mailStatus?t("span",[t("i",{staticClass:"dss-iconfont icon-contact2",style:{color:e.primary}})]):e._e(),"2"===n.mailStatus?t("span",{on:{click:function(t){return t.stopPropagation(),e.changeRead(n)}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-read-2 mail-read"})])],1):e._e()]}}])}),t("el-table-column",{attrs:{width:"70"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[1===n.isReply?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.replyTrue"))+" ")]):t("span")]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("el-tooltip",{attrs:{disabled:!(n.bloggerHover&&n.bloggerHover.bloggerId),"popper-class":"wt-tooltip-edm-blogger",placement:"top"}},[t("div",{staticClass:"blogger-card",attrs:{slot:"content"},slot:"content"},[t("div",{staticClass:"card-top"},[t("div",{staticClass:"top-left"},[t("el-image",{staticClass:"blogger-img",attrs:{src:n.bloggerHover.avatar}}),t("img",{staticClass:"platform-img",attrs:{src:i(2183)(`./${n.bloggerHover.platform||"youtube"}.png`)}})],1),t("div",{staticClass:"top-right"},[t("div",{staticClass:"blogger-name"},[t("div",{staticClass:"name"},[e._v(e._s(n.bloggerHover.nickname))]),t("img",{staticClass:"flage",attrs:{src:n.bloggerHover.regionFlag,alt:""}}),t("div",{staticClass:"country"},[e._v(" "+e._s(n.bloggerHover.regionNameZh)+" ")])]),t("div",{staticClass:"blogger-data"},[t("div",{staticClass:"data-item"},[t("div",{staticClass:"item-label"},[e._v("粉丝数")]),t("div",{staticClass:"item-value"},[e._v(" "+e._s(e._f("numFormat")(n.bloggerHover.fansCount))+" ")])]),t("div",{staticClass:"data-item"},[t("div",{staticClass:"item-label"},[e._v("平均观看量")]),t("div",{staticClass:"item-value"},[e._v(" "+e._s(e._f("numFormat")(n.bloggerHover.viewVolumeAvg60d))+" ")])])])])]),t("div",{staticClass:"card-bottom"},[t("div",{staticClass:"bottom-item channel-item"},[t("div",{staticClass:"label"},[e._v("频道ID")]),t("div",{staticClass:"value"},[t("span",{staticClass:"text"},[e._v(e._s(n.bloggerHover.username))]),t("i",{staticClass:"dss-iconfont",on:{click:function(t){return e.copyText(n.bloggerHover.username)}}},[e._v("")])])]),t("div",{staticClass:"bottom-item tag-item"},[t("div",{staticClass:"label"},[e._v("标签")]),n.bloggerHover.tags&&n.bloggerHover.tags.length>0?t("div",{staticClass:"value"},e._l(n.bloggerHover.tags.slice(0,3),(function(n){return t("div",{key:n,staticClass:"tag"},[e._v(" "+e._s(n)+" ")])})),0):t("div",{staticClass:"value"},[e._v("-")])]),t("div",{staticClass:"bottom-item"},[t("div",{staticClass:"label"},[e._v("报价")]),t("div",{staticClass:"value"},[2==n.bloggerHover.quoteType&&n.bloggerHover.amount?t("span",{staticClass:"text"},[e._v(e._s(n.bloggerHover.amount)+e._s(n.bloggerHover.currencyName))]):1==n.bloggerHover.quoteType?t("span",[e._v("免费置换")]):t("span",{staticClass:"text"},[e._v("-")])])]),t("div",{staticClass:"bottom-item plan-item"},[t("div",{staticClass:"label"},[e._v("推广计划")]),n.bloggerHover.planCoopList&&n.bloggerHover.planCoopList.length>0?t("div",{staticClass:"value"},e._l(n.bloggerHover.planCoopList,(function(n){return t("div",{key:n.planId,staticClass:"plan-list"},[t("span",{staticClass:"text"},[e._v(e._s(n.planName))]),t("div",{staticClass:"other"},[n.coopModifyTime?t("span",{staticClass:"sub-text"},[e._v(e._s(e.formatDate(n.coopModifyTime)))]):e._e(),t("span",{staticClass:"sub-text"},[e._v(e._s(n.coopStatusStr))])])])})),0):t("div",{staticClass:"value"},[e._v("-")])])])]),t("div",{staticClass:"blogger-col",on:{click:function(t){return t.stopPropagation(),e.toBloggerDetail(n)}}},[n.bloggerHover.avatar?t("el-image",{staticClass:"blogger-img",attrs:{fit:"cover",src:n.bloggerHover.avatar}}):e._e(),t("p",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold .text-gray-700":""},[e._v(" "+e._s(n.bloggerName)+" ")])],1)])]}}])}),t("el-table-column",{attrs:{width:"140"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[""!==n.popularizePlanName&&null!==n.popularizePlanName?[t("i",{staticClass:"dss-iconfont icon-task",staticStyle:{"font-size":"22px"},style:{color:2===n.isRead?"#999999":"#FF5277"},on:{click:function(t){return t.stopPropagation(),e.skipPlan(n)}}}),t("span",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold text-gray-700":"",attrs:{title:n.popularizePlanName},on:{click:function(t){return t.stopPropagation(),e.skipPlan(n)}}},[e._v(e._s(n.popularizePlanName))])]:t("span",[e._v(e._s(e.$t("inboxMail.search.noTask")))])],2)]}}])}),t("el-table-column",{ref:"a1",scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-main"},[1===n.isAttachment?t("i",{staticClass:"dss-iconfont icon-file-3",staticStyle:{"margin-right":"2px"}}):e._e(),t("span",{staticClass:"mail-subject beyond_eip mr8",class:1===n.isRead?"font-bold text-gray-700":""},[e._v(e._s(n.subject))]),t("span",{staticClass:"mail-content beyond_eip ml6 mr16",staticStyle:{color:"#999999"},domProps:{innerHTML:e._s(e.filterHtmlTag(n.content))}}),t("div",{ref:"mailTagList",staticClass:"mail-tag"},e._l(n.tagList,(function(i,r){return t("div",{key:r,staticClass:"mail-tag-item inbox-item",style:{color:"#fff",background:i.tagColor},attrs:{title:i.tagName},on:{click:function(t){return t.stopPropagation(),e.handleBindTag(n,i)}}},[e._v(" "+e._s(i.tagName.length>6?i.tagName.slice(0,6)+" ...":i.tagName)+" "),t("i",{staticClass:"el-icon-close inbox-icon-close"})])})),0),t("div",{staticClass:"add-block"}),t("div",{staticClass:"tag-add"},[t("span",{staticClass:"tag-btn",staticStyle:{"font-size":"12px"},on:{click:function(t){return t.stopPropagation(),e.addMailTag(n)}}},[t("span",[e._v("+")]),e._v(" "+e._s(e.$t("inboxTable.addTag")))])])])]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticStyle:{color:"#666666"}},[e._v(" "+e._s(n.createTime)+" ")])]}}])})],1)],1),t("div",{staticClass:"mail-foot mb16"},[e.tableTotal>0?t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"update:currentPage":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:current-page":function(t){return e.$set(e.searchForm,"currentPage",t)},"current-change":e.changePage,"size-change":e.changeSize}}):e._e()],1)]),e.isShowSettag?t("AddTagsDialog",{attrs:{isShowDialog:e.isShowSettag,defaultTag:e.selectedTags},on:{updateTag:e.updateTag,closeAddTagsDialog:function(t){e.isShowSettag=!1}}}):e._e(),t("el-dialog",{attrs:{title:e.$t("inboxTable.tip"),visible:e.dialogVisible,width:"420px","show-close":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"delete-shield",staticStyle:{display:"flex"}},[t("i",{staticClass:"delete-shield-icon el-icon-warning"}),t("div",{staticStyle:{display:"flex","flex-direction":"column"}},[t("span",[e._v(e._s(e.$t("inboxTable.delMail"))+"?")]),t("span",[e._v(e._s(e.$t("inboxTable.deleteTip")))])])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("inboxTable.cancel")))]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleConfirmDel}},[e._v(e._s(e.$t("inboxTable.confirm")))]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleDelShield}},[e._v(e._s(e.$t("inboxTable.delShieldBtn")))])],1)])],1)},ja=[];i(8111),i(2489),i(7588),i(1701);async function La(e){let t=await wa("/edm/inbox/selInbox",e);return"0"===t.code?t.data:null}async function za(e){let t=await wa("/edm/inbox/setBatchAsUnread",e);return t}async function Va(e){let t=await wa("/edm/inbox/setBatchAsRead",e);return t}async function Ha(){let e=await va("/edm/inbox/mailRemind");return e?e.data:null}async function Ua(e){let t=await _a("/edm/inbox/signRead",e);return!!t.success||null}async function Wa(e){let t=await ba("/edm/inbox/delInbox",e);return t.success}async function qa(e){let t=await ba("/edm/inbox/delInboxAndShield",e);return t.success}async function Ya(e){let t=await _a("/edm/inbox/starInbox",e);return t.success}async function Ga(e){let t=await va(`/edm/inbox/inboxDetail/${e}`);return t.success?t.data:null}async function Ka(e){let t=await va(`/edm/inbox/inboxDialogue/${e}`);return t.success?t.data:(Un.Message.error(t.message),null)}async function Xa(e){let t=await ba("/edm/inbox/delOneMail",e);return t||null}async function Za(e){let t=await _a("/edm/tag/bindTag",e);return"0"===t.code||null}async function Ja(){let e=await va("/edm/tag/tags"),t=[{id:10464,tag:"很有希望",tagColor:"#1F81FF",tagType:2},{id:10465,tag:"系统标签1",tagColor:"#1F81FF",tagType:1},{id:10466,tag:"自定义标签3",tagColor:"#1F81FF",tagType:1},{id:10467,tag:"自定义标签2",tagColor:"#1F81FF",tagType:2},{id:10468,tag:"自定义标签1",tagColor:"#1F81FF",tagType:2}];return"0"===e.code?e.data:t}async function Qa(e){let t=await wa("/edm/mail/preUpload",e);return t||null}async function es(e){let t=await wa("/edm/mail/preAbroadUpload",e);return t||null}async function ts(e,t,n){return await Ca(e,t,n)}async function ns(e){let t=await wa("/edm/outboxV2/multiReply",e);return t}function is(e){return wa("/woto-crm/plan/planListToAdd",e)}function rs(e){return va(`/edm/inbox/inboxCrmData/${e}`)}function os(e){return wa("/woto-crm/planBlog/updatePlanBlogStatus",e)}function as(){return va("/user/equity/userAiPoint")}function ss(e){return va(`/edm/inbox/emailSummary/${e}`)}function ls(e){return va(`/edm/inbox/emailSummary/generate/${e}`)}function cs(e){return va(`/edm/inbox/smartReply/${e}`)}function us(e){return va(`/edm/inbox/keyInformation/${e}`)}function ds(e){return va(`/edm/inbox/keyInformation/extract/${e}`)}function hs(e){return wa("/edm/outbox/aiReply2Write/save",e)}function ps(e){return wa("/user/info/addBlogInfo",e)}function fs(e){return wa("/edm/inbox/aiUserFeedBack/save",e)}function ms(e){return va(`/edm/inbox/aiUserFeedBack/${e}`)}function gs(e){return wa("/woto-crm/planBlog/batchMovePlanBlog",e)}function vs(e){return wa("/edm/inbox/refreshInboxCrm",e)}function ys(e){return va(`/edm/inbox/aiReplyStrategy/generate/${e}`)}function bs(){return va("/edm/ai/aiEmailStrategy/get")}function ws(e){return va(`/edm/inbox/emailStrategy/${e}`)}function _s(){return va("/edm/dictionary/languages/get")}function Cs(){return va("/edm/dictionary/tones/get")}function xs(e){return wa("/edm/inbox/smartReply/generate",e)}function Ss(e){return va("/edm/qiye/mailOwnerCheck",e)}function ks(e){return wa("/woto-crm/planBlog/addPlanBlog",e)}function Es(e){return va("/edm/tag/searchTags",e)}function Ds(e){return ya(`/edm/tag/delTag/${e}`)}function As(e){return wa("/edm/tag/addSign",e)}function Os(e){return va("/user/hubUser/sonFather",e)}function Ts(e){return va("/edm/template/templates",e)}function Is(e){return va("/edm/inbox/selBloggerHover",e)}var Ps=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},["inbox"===e.searchType?t("div",{staticClass:"search"},[e._l(e.inbox,(function(n,i){return t("div",{key:i,staticClass:"search-item"},[t("span",[e._v(e._s(e.$t(n.key)))]),t("div",[t("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.query[n.key],callback:function(t){e.$set(e.query,n.key,t)},expression:"query[item.key]"}})],1)])})),t("div",{staticClass:"search-item"},[t("el-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$i18n.t("searchButton.search")))]),t("el-button",{staticClass:"search-btn",on:{click:e.handleReset}},[e._v(e._s(e.$i18n.t("searchButton.reset")))])],1)],2):e._e(),"outbox"===e.searchType?t("div",{staticClass:"search"},[e._l(e.outbox,(function(n,i){return t("div",{key:i,staticClass:"search-item"},[t("span",{key:i},[e._v(e._s(n.txt))]),t("div",[t("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.query[n.key],callback:function(t){e.$set(e.query,n.key,t)},expression:"query[item.key]"}})],1)])})),t("div",{staticClass:"search-item"},[t("el-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")]),t("el-button",{staticClass:"search-btn",attrs:{type:"primary","&#x26;#x3C;el-button":""},on:{click:e.handleReset}},[e._v(e._s(e.$t("edm5.v44")))])],1)],2):e._e()])},Fs=[],Ms={name:"edm-search",props:{searchType:{default:"inbox",type:String}},data(){return{query:{},test:[{name:"search.name"}],aa:this.$i18n.t("search.name"),outbox:[{id:oa.v1(),key:"name",txt:"红人名称:",type:"input"},{id:oa.v1(),key:"title",txt:"标题正文:",type:"input"},{id:oa.v1(),key:"target",txt:"任务名称:",type:"input"},{id:oa.v1(),kety:"mail",txt:"邮件类型:",type:"select"}],inbox:[{id:oa.v1(),key:"search.name",txt:"红人名称",type:"input"},{id:oa.v1(),key:"search.title",txt:"正文标题:",type:"input"},{id:oa.v1(),key:"search.target",txt:"任务名称:",type:"input"},{id:oa.v1(),key:"search.tag",txt:"标签名称:",type:"select"},{id:oa.v1(),key:"search.isRead",txt:"已读状态:",type:"select"}]}},created(){},methods:{handleSearch(){let e=Object.entries(this.query),t=Object.fromEntries(e);this.$emit("handleSearch",t)},handleReset(){let e=Object.entries(this.query);Object.fromEntries(e);this.query["search.name"]&&(this.query["search.name"]=""),this.query["search.title"]&&(this.query["search.title"]=""),this.query["search.target"]&&(this.query["search.target"]=""),this.$emit("handleReset")}}},Bs=Ms,Ns=Ba(Bs,Ps,Fs,!1,null,"4d651f22",null),$s=Ns.exports;i(116);function Rs(e,t){if(0===arguments.length||!e)return null;const n=t||"{y}-{m}-{d} {h}:{i}:{s}";let i;"object"===typeof e?i=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),i=new Date(e));const r={y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),a:i.getDay()},o=n.replace(/{([ymdhisa])+}/g,((e,t)=>{const n=r[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function js(e,t){return e.map((function(e,n){return e[t]}))}function Ls(e){const t=new Date,n=new Date(t-864e5*(e-1)),i=t.getFullYear(),r=t.getMonth()+1,o=t.getDate(),a=n.getFullYear(),s=n.getMonth()+1,l=n.getDate(),c=i+"-"+(r<10?"0"+r:r)+"-"+(o<10?"0"+o:o),u=a+"-"+(s<10?"0"+s:s)+"-"+(l<10?"0"+l:l);return[u,c]}function zs(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,i=e.getDate(),r=e.getHours(),o=e.getMinutes(),a=e.getSeconds();n>=1&&n<=9&&(n="0"+n),i>=0&&i<=9&&(i="0"+i),o>=0&&o<=9&&(o="0"+o),a>=0&&a<=9&&(a="0"+a);var s=t+n+i+r+o+a;return s}function Vs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Hs(e){const t=new Date((new Date).getTime()+6e4*(new Date).getTimezoneOffset()+288e5),n=new Date(e),i=(n-t)/1e3;return i<3600?"1小时内发送":i>=3600&&i<86400?Math.ceil(i/3600)+"小时后发送":i>=86400&&i<=2592e3?Math.ceil(i/86400)+"天后发送":e}function Us(e,t){Ws(e,(function(e){qs(e,t)}))}function Ws(e,t){let n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(){if(200!==n.status)return window.open(e,"_blank"),!1;t(n.response)},n.onerror=function(){return window.open(e,"_blank"),!1},n.send()}function qs(e,t){if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,t);else{let n=document.createElement("a");n.href=window.URL.createObjectURL(e),n.download=t,n.click(),window.URL.revokeObjectURL(n.href)}}function Ys(e){const t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return t-e}function Gs(e){const t={};return Object.keys(e).forEach((n=>{Array.isArray(e[n])&&0===e[n].length||""===e[n]||null===e[n]||void 0===e[n]||(t[n]=e[n])})),t}async function Ks(e=!1,t=0,n){try{let i=await as();return"0"===i.code?(e&&(0===i.data||i.data<t)?Un.Message.error("您的AI点数不足,请联系客服,充值后使用"):e&&i.data>=t&&n(i.data),i.data):0}catch(Ml){return 0}}function Xs(e){const t=[{label:"美元",value:0,code:"USD",symbol:"$"},{label:"欧元",value:1,code:"EUR",symbol:"€"},{label:"英镑",value:2,code:"GBP",symbol:"£"},{label:"日元",value:3,code:"JPY",symbol:"¥"},{label:"人民币",value:4,code:"CNY",symbol:"¥"},{label:"加拿大元",value:5,code:"CAD",symbol:"$"},{label:"澳大利亚元",value:6,code:"AUD",symbol:"$"},{label:"瑞士法郎",value:7,code:"CHF",symbol:"Fr"},{label:"新西兰元",value:8,code:"NZD",symbol:"$"},{label:"韩元",value:9,code:"KRW",symbol:"₩"},{label:"印度卢比",value:10,code:"INR",symbol:"₹"},{label:"巴西雷亚尔",value:11,code:"BRL",symbol:"R$"},{label:"南非兰特",value:12,code:"ZAR",symbol:"R"},{label:"西班牙比塞塔",value:13,code:"ESP",symbol:"₧"},{label:"泰国铢",value:14,code:"THB",symbol:"฿"},{label:"瑞典克朗",value:15,code:"SEK",symbol:"kr"},{label:"新加坡元",value:16,code:"SGD",symbol:"$"},{label:"阿联酋迪拉姆",value:17,code:"AED",symbol:"د.إ"},{label:"墨西哥比索",value:18,code:"MXN",symbol:"$"},{label:"俄罗斯卢布",value:19,code:"RUB",symbol:"₽"},{label:"沙特里亚尔",value:20,code:"SAR",symbol:"ر.س"},{label:"马来西亚林吉特",value:21,code:"MYR",symbol:"RM"},{label:"港元",value:22,code:"HKD",symbol:"HK$"},{label:"柬埔寨瑞尔",value:23,code:"KHR",symbol:"៛"},{label:"菲律宾比索",value:24,code:"PHP",symbol:"₱"},{label:"越南盾",value:25,code:"VND",symbol:"₫"},{label:"印尼盾",value:26,code:"IDR",symbol:"Rp"}];let n="";return t.forEach((t=>{t.value==e&&(n=t.symbol)})),n}var Zs=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShowDialog,title:e.$t("NP.np65"),"close-on-click-modal":!1,width:"600px","custom-class":"add-tags-dialog","append-to-body":e.appendBody},on:{"update:visible":function(t){e.isShowDialog=t},close:e.closeAddTagsDialog}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("div",{staticClass:"operate-box"},["search"===e.optType?t("div",{staticClass:"search-tag"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:e.$t("NP.np178"),clearable:""},on:{clear:e.getPublishTags},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getPublishTags.apply(null,arguments)}},model:{value:e.searchKeywords,callback:function(t){e.searchKeywords=t},expression:"searchKeywords"}},[t("i",{staticClass:"iconfont icon-a-sousuoxiao15x",attrs:{slot:"suffix"},on:{click:e.getPublishTags},slot:"suffix"})]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleAddTag}},[t("i",{staticClass:"el-icon-plus"}),e._v(e._s(e.$t("NP.np179")))])],1):t("div",{staticClass:"add-tag"},[t("el-input",{attrs:{placeholder:e.$t("inboxTagDialog.default")},model:{value:e.tagInputValue,callback:function(t){e.tagInputValue=t},expression:"tagInputValue"}},[t("div",{staticClass:"popup-colorPicker",attrs:{slot:"suffix"},slot:"suffix"},[t("div",{staticClass:"custom-picker-icon"},[t("i",{staticClass:"dss-iconfont icon-tianse",style:{color:e.iconColor}}),t("el-color-picker",{attrs:{predefine:e.predefineColors,size:"mini","color-format":"hex"},on:{change:e.pickerChange},model:{value:e.tagColor,callback:function(t){e.tagColor=t},expression:"tagColor"}})],1)])]),t("div",{staticClass:"add",on:{click:e.addPublishTag}},[t("i",{staticClass:"el-icon-check"})]),t("div",{staticClass:"cancel",on:{click:e.handleCancelAdd}},[t("i",{staticClass:"el-icon-close"})])],1)]),t("div",{staticClass:"all-tag"},e._l(e.allTagsArr,(function(n){return t("el-tag",{key:n.id,staticClass:"tag-item",style:{"background-color":n.tagColor},on:{click:function(t){return e.selectTag(n)}}},[e._v(e._s(n.tag)),2===n.tagType?t("i",{staticClass:"dss-iconfont icon-close",on:{click:function(t){return t.stopPropagation(),e.deletePublishTag(n.id)}}}):e._e()])})),1),t("div",{staticClass:"title"},[e._v(e._s(e.$t("inboxTagDialog.selectTag"))+":")]),t("div",{staticClass:"selected-tags"},e._l(e.selectedTagsArr,(function(n){return t("el-tag",{key:n.tag,staticClass:"tag-item",style:{"background-color":n.tagColor}},[e._v(e._s(n.tag)),t("i",{staticClass:"dss-iconfont icon-close",on:{click:function(t){return e.clearTag(n.tag)}}})])})),1)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.cancelAddTags}},[e._v(e._s(e.$t("common.cancle")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmAddTags}},[e._v(" "+e._s(e.$t("common.confirm"))+" ")])],1)])},Js=[],Qs={props:{isShowDialog:{type:Boolean,default:!1},defaultTag:{type:Array,default:()=>[]},appendBody:{type:Boolean,default:!1},isOnlyTagName:{type:Boolean,default:!1}},data(){return{loading:!1,searchKeywords:"",tagInputValue:"",tagColor:"#808080",iconColor:"#808080",predefineColors:["#FF5277","#FF9EC3","#BF9EFF","#4BB792","#FFAA36","#52BAFF","#5F52FF","#27C9B6"],allTagsArr:[],selectedTagsArr:[],optType:"search"}},async created(){await this.getPublishTags(),this.initDefaultTag()},methods:{initDefaultTag(){const e=[];this.defaultTag.forEach((t=>{const n=this.allTagsArr.find((e=>e.tag===t));n?e.push({...n}):e.push({tag:t,tagColor:"#808080",tagType:2})})),this.selectedTagsArr=e},closeAddTagsDialog(){this.$emit("closeAddTagsDialog")},cancelAddTags(){this.closeAddTagsDialog()},confirmAddTags(){const e=this.selectedTagsArr.map((e=>this.isOnlyTagName?e.tag:e));console.log(this.selectedTagsArr),this.$emit("updateTag",e),this.closeAddTagsDialog()},pickerChange(e){this.iconColor=e},handleAddTag(){this.optType="add",this.searchKeywords=""},handleCancelAdd(){this.optType="search"},async getPublishTags(){try{this.loading=!0;const e=await Es({tagValue:this.searchKeywords});"0"===e.code&&(this.allTagsArr=e.data||[])}catch(Ml){console.log(Ml)}finally{this.loading=!1}},async addPublishTag(){try{if(!this.validateTag())return!1;const e=await As({tag:this.tagInputValue,tagColor:this.tagColor});"0"===e.code?(this.selectedTagsArr.push({tag:this.tagInputValue,tagColor:this.tagColor}),this.tagInputValue="",this.getPublishTags()):this.$message.error(e.message)}catch(Ml){console.log(Ml)}},async deletePublishTag(e){try{const t=await Ds(e);"0"===t.code&&setTimeout((()=>{this.getPublishTags()}),500)}catch(Ml){console.log(Ml)}},validateTag(){const e=this.tagInputValue;return""===e?(this.$message({type:"warning",message:this.$t("inboxTagDialog.default")}),!1):!(e.length>30)||(this.$message({type:"warning",message:"标签最多30个字符!"}),!1)},selectTag(e){const t=this.selectedTagsArr.findIndex((t=>t.tag===e.tag));if(t>-1)return!1;this.selectedTagsArr.push(e)},clearTag(e){this.selectedTagsArr=this.selectedTagsArr.filter((t=>t.tag!==e))}}},el=Qs,tl=Ba(el,Zs,Js,!1,null,"5db4fac2",null),nl=tl.exports,il=i(4353),rl=i.n(il),ol={name:"edm-inbox",components:{Search:$s,AddTagsDialog:nl},props:{sourceApp:{type:String,default:""},taskDetailUrl:{type:String,default:"/taskDetail"},defaultTop:{type:Number,default:118}},data(){return{primary:"dss"===localStorage.getItem("sourceApp")?"#1990FF":"#FF5277",dialogVisible:!1,handleTime_inbox:null,handleTime_msg:null,tagOp:null,mailId:"",mailTags:[],isShowSettag:!1,tableHeight:0,page:1,value:"",searchForm:{timeRange:"1",selectTag:"",subject:"",popularizePlanName:"",tagName:[],isRead:"",isStar:"",isReply:"",currentPage:1,pageSize:20,bloggerName:"",sentMail:""},switchMailData:[],unReadIds:[],hasReadIds:[],loading:!1,tableData:[],tableTotal:0,selectData:[],tags:[],tagList:[],defaultTagList:[],bloggerArr:[],selectedReplyIds:[],selectedTags:[]}},computed:{routeParams(){return this.$route.query}},watch:{routeParams(e,t){e.nums&&this.init()}},mounted(){const{isdetail:e}=this.$route.query;e?(console.log("sss",JSON.parse(localStorage.getItem("searchFormInbox"))),this.searchForm=JSON.parse(localStorage.getItem("searchFormInbox"))):localStorage.removeItem("searchFormInbox"),this.$nextTick((()=>{this.init(),this.initTags(),this.tableHeight=window.innerHeight-this.$refs["table"].$el.getBoundingClientRect().top-66})),this.$bus.$on("mailTip",(()=>{this.init()}))},methods:{initTags(){this.tags=[],Ja().then((e=>{e&&e.map((e=>{this.tags.push({id:e.id,value:e.id.toString(),label:e.tag})}))}))},multiReply(){0!==this.selectedReplyIds.length?this.selectedReplyIds.length>50?this.$message.warning(this.$t("inboxMail.search.tip1")):(localStorage.setItem("multiReplyBlogInfo",JSON.stringify(this.bloggerArr)),localStorage.setItem("multiReplyIds",JSON.stringify(this.selectedReplyIds)),this.$emit("multiReply",this.bloggerArr.length!==this.selectedReplyIds.length)):this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},init(){this.loading=!0;let e=this.searchForm.isStar;0===e&&(this.searchForm.isStar="");const{isdetail:t}=this.$route.query;console.log("params",this.searchForm),localStorage.removeItem("hasInboxDetail"),La(this.searchForm).then((e=>{this.loading=!1;let t=[];e?(e.rows.forEach(((e,n)=>{let i={};i.id=e.id,i.chatId=e.chatId,e.isRead&&1===e.isRead?i.mailStatus="1":e.isRead&&2===e.isRead&&(i.mailStatus="2"),i.taskId=e.taskId,i.isRead=e.isRead,i.maxId=e.maxId,i.isReply=e.isReply,i.isStar=e.isStar,i.popularizePlanName=e.popularizePlanName,i.bloggerName=e.bloggerName,i.subject=e.subject,i.content=e.content,i.isAttachment=e.isAttachment,i.popularizePlanName=e.popularizePlanName,i.popularizePlanId=e.popularizePlanId,i.bloggerId=e.bloggerId,i.addresser=e.addresser,i.bloggerHover=e.bloggerHover,e.tag||(e.tag=""),e.tagColor||(e.tagColor="");let r=e.tag.split(","),o=e.tagColor.split(",");if(i.tagList=[],r.length!==o.length)i.tagName=this.$t("inboxTable.errorTag");else{let e=[];r.forEach(((t,n)=>{e.push({tagName:t,tagColor:o[n]})})),i.tagList=e}i.createTime=e.createTime,t.push(i)})),this.tableData=t,this.tableTotal=e.total):this.$message.warning(this.$t("inboxTable.requestError"))}))},handleBindTag(e,t){if(t&&!t.tagColor&&!t.tagName)return!1;this.$confirm(this.$t("inboxTable.delTag"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),customClass:"del-model",type:"warning"}).then((()=>{this.mailId=e.id+"";const n=e.tagList.filter((e=>!!e.tagName))||[];let i=[];n.length>1&&(i=n.filter((e=>e.tagName!==t.tagName)).map((e=>({tag:e.tagName,tagColor:e.tagColor})))),this.updateTag(i,!0)})).catch((()=>{}))},handleTagChange(e){if(e){let t=[];e.forEach((e=>{this.tags.forEach((n=>{e===n.id.toString()&&t.push(n.label)}))})),this.searchForm.tagName=t}else this.searchForm.tagName=[]},reset(){localStorage.removeItem("searchFormInbox"),localStorage.removeItem("hasInboxDetail"),this.searchForm.bloggerName="",this.searchForm.subject="",this.searchForm.popularizePlanName="",this.searchForm.selectTag=[],this.searchForm.tagName=[],this.searchForm.isStar="",this.searchForm.timeRange="1",this.searchForm.isRead="",this.searchForm.isReply="",this.searchForm.sentMail="",this.init()},changePage(e){this.searchForm.currentPage=e,this.init()},changeSize(e){this.searchForm.currentPage=1,this.searchForm.pageSize=e,this.init()},setUnRead(){if(0!==this.switchMailData.length)return 0===this.unReadIds.length?(this.$message.warning(this.$t("edm5.v3")),void this.$refs.table.clearSelection()):void za({ids:this.unReadIds}).then((e=>{e&&"0"===e.code?(this.$message({message:this.$t("inboxTable.unReadSuccess"),type:"success"}),this.unReadIds=[],this.switchMailData=[],this.$refs.table.clearSelection(),this.init()):this.$message.error(e.message)}));this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},async setHasRead(){if(0!==this.switchMailData.length){if(0===this.hasReadIds.length)return this.$message.warning(this.$t("edm5.v270")),void this.$refs.table.clearSelection();try{const e=await Va({ids:this.hasReadIds});"0"===e.code?(this.$message({message:this.$t("inboxTable.unReadSuccess"),type:"success"}),this.hasReadIds=[],this.switchMailData=[],this.$refs.table.clearSelection(),this.init()):this.$message.error(e.message)}catch(Ml){console.log(Ml)}}else this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},async changeRead(e){console.log(e);let t=await za({ids:[e.maxId]});t&&"0"===t.code?(this.$message({message:this.$t("inboxTable.unReadSuccess"),type:"success"}),this.init()):this.$message.error(t.message)},del(){0!==this.switchMailData.length?this.dialogVisible=!0:this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},handleConfirmDel(){const e={chatId:this.switchMailData};Wa(e).then((e=>{e&&(this.$message({message:this.$t("inboxTable.del"),type:"success",duration:1500}),this.dialogVisible=!1,this.switchMailData=[],this.init())}))},handleDelShield(){const e={chatId:this.switchMailData};qa(e).then((e=>{e&&(this.$message({message:this.$t("inboxTable.del"),type:"success",duration:1500}),this.dialogVisible=!1,this.switchMailData=[],this.init())}))},isFavorites(e){const t={mailId:e.id,isStar:0===e.isStar?1:0};Ya(t).then((t=>{t&&(0===e.isStar?this.$message({message:this.$t("inboxTable.collMail"),type:"success",duration:1500}):this.$message({message:this.$t("inboxTable.cancelMail"),type:"success",duration:1500})),this.init()}))},handleReset(e){this.searchForm.bloggerName="",this.searchForm.subject=""},addMailTag(e){this.mailId=e.id.toString(),console.log(e),this.selectedTags=e.tagList?e.tagList.filter((e=>!!e.tagName)).map((e=>e.tagName)):[],this.isShowSettag=!0},async updateTag(e=[],t=!1){try{const n=await Za({mailId:this.mailId,tags:e});n&&(t?this.$message({type:"success",message:this.$t("inboxTagDialog.delTagSuccess")}):this.$message({type:"success",message:this.$t("inboxTagDialog.bindSuccess")}),this.init(),this.initTags())}catch(Ml){}},skipDetail(e){localStorage.setItem("searchFormInbox",JSON.stringify(this.searchForm)),localStorage.setItem("hasInboxDetail",!0),localStorage.setItem("currentPath",this.$route.path),console.log("dd",JSON.stringify(this.searchForm)),this.$router.push({path:"/inboxDetail",query:{id:e.id,chatId:e.chatId,popularizePlanId:e.popularizePlanId,popularizePlanName:e.popularizePlanName,maxId:e.maxId}})},skipTask(e){const t=this.$router.resolve({path:this.taskDetailUrl,query:{id:e.taskId,name:e.popularizePlanName,is_share:1,is_operate:1}});window.open(t.href,"_blank")},skipPlan(e){console.log(e),this.$emit("inboxSkipPlan",e)},switchMode(){this.$emit("switchMode")},getRowKeys(e){return e.id},switchMail(e){console.log("select",e),this.bloggerArr=[],this.selectedReplyIds=[],this.bloggerArr=Array.from(new Map(e.map((e=>[e.bloggerName,{bloggerId:e.bloggerId,bloggerName:e.bloggerId?e.bloggerName:e.addresser}]))).values()),this.selectedReplyIds=js(e,"maxId"),this.switchMailData=[],this.unReadIds=[],this.hasReadIds=[],e.forEach((e=>{this.switchMailData.push(e.chatId),2===e.isRead&&this.unReadIds.push(e.maxId),1===e.isRead&&this.hasReadIds.push(e.maxId)}))},clearTableData(){this.$refs.table.clearSelection(),this.selectData=[]},filterHtmlTag(e){return e&&(e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<img[^>]*>/gi,""),e=e.replace(/<[^>]+>|&[^>]+;/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},headCellClass(){return"head"},rowClass(){return"row"},cellClass(){return"box-cell"},changeTagsHeight(e,t){if(e){let e=[],n=this.tagList.findIndex((e=>e.tag.trim()===t.trim()));this.tagList.forEach(((t,i)=>{i<=n&&e.push(t)})),this.tagList=e}else this.tagList=this.defaultTagList},rightClick(e,t,n){return n.preventDefault(),this.$contextmenu({items:[{label:"在新标签页中打开邮件",icon:"el-icon-plus",onClick:()=>{const t=this.$router.resolve({path:"/inboxDetail",query:{id:e.id,chatId:e.chatId,popularizePlanId:e.popularizePlanId,popularizePlanName:e.popularizePlanName,maxId:e.maxId}});window.open(t.href,"_blank")}},{label:"刷新列表数据",icon:"el-icon-refresh",onClick:()=>{this.init()}},{label:"复制邮件主题",icon:"el-icon-document-copy",disabled:!e.subject,onClick:()=>{this.copyText(e.subject)}},{label:"复制推广计划名",icon:"el-icon-document-copy",disabled:!e.popularizePlanName,onClick:()=>{this.copyText(e.popularizePlanName)}},{label:"添加标签",icon:"el-icon-edit-outline",onClick:()=>{this.addMailTag(e)}}],event:n,customClass:"contextmenu-container",zIndex:3,minWidth:230}),!1},copyText(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({type:"success",message:"已复制到剪贴板"})},formatDate(e){return rl()(e).format("YYYY-MM-DD")},toBloggerDetail(e){this.$emit("toBloggerDetail",e)}},destroyed(){}},al=ol,sl=Ba(al,Ra,ja,!1,null,"0d83c3cb",null),ll=sl.exports,cl=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.mailLoading,expression:"mailLoading"}],staticClass:"edm-inbox-detail"},[t("div",{staticClass:"wrap"},[t("div",{staticClass:"back",on:{click:e.goBack}},[t("i",{staticClass:"el-icon-arrow-left"})]),t("div",{staticClass:"tag-info"},[t("div",{staticClass:"tag"},[e._l(e.tagList,(function(n,i){return t("div",{key:i,staticClass:"tag-item mr12 mb8",style:{color:"#fff",background:n.tag_color}},[e._v(" "+e._s(n.tag)+" "),t("i",{staticClass:"dss-iconfont icon-close",staticStyle:{color:"#ffffff","padding-left":"5px",cursor:"pointer","z-index":"999"},on:{click:function(t){return e.delTag(n)}}})])})),t("div",{staticClass:"tag-btn cursor-pointer mr12 mb8",on:{click:e.addTagsStart}},[t("i",{staticClass:"dss-iconfont icon-add2"}),e._v(" "+e._s(e.$t("inboxDetail.addTag"))+" ")])],2),t("div",{staticClass:"turn-page"},[t("div",{staticClass:"send-email"},[e._v(" "+e._s(e.$t("edm5.v4"))+e._s(e.mailData.receiver)+" ")]),t("div",[t("el-button",{attrs:{type:"text",icon:"el-icon-arrow-left",disabled:0===e.checkEmailIndex},on:{click:e.handlePrevious}},[e._v(e._s(e.$t("inboxDetail.previousPage")))]),t("el-button",{attrs:{type:"text",disabled:e.checkEmailIndex===e.tableData.length-1},on:{click:e.handleNext}},[e._v(e._s(e.$t("inboxDetail.nextPage"))),t("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)])]),t("div",{staticClass:"blogger-part"},[t("div",{staticClass:"blogger-info"},[e.bloggerInfo.bloggerId?t("div",{staticClass:"inner-blogger"},[t("el-image",{staticClass:"blogger-avatar",attrs:{fit:"cover",src:e.bloggerInfo.bloggerAvatar},on:{click:function(t){return e.toBloggerDetail(e.bloggerInfo.bloggerId,e.bloggerInfo)}}}),t("div",{staticClass:"info-right"},[t("div",{staticClass:"info-top"},[t("div",{staticClass:"blogger-name",on:{click:function(t){return e.toBloggerDetail(e.bloggerInfo.bloggerId,e.bloggerInfo)}}},[e._v(" "+e._s(e.bloggerInfo.bloggerName)+" ")]),t("div",{staticClass:"blogger-id"},[e._v(" (频道ID:"+e._s(e.bloggerInfo.bloggerUserName)+") ")]),t("img",{staticClass:"flag",attrs:{src:e.bloggerInfoRest.regionFlag,alt:""}}),t("div",{staticClass:"country"},[e._v(e._s(e.bloggerInfoRest.regionNameZh))]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.bloggerInfoRest.tags&&e.bloggerInfoRest.tags.length>0,expression:"\n bloggerInfoRest.tags && bloggerInfoRest.tags.length > 0\n "}],staticClass:"tags"},[t("TagColumn",{attrs:{tags:e.bloggerInfoRest.tags}})],1)]),t("div",{staticClass:"info-bottom"},[t("div",{staticClass:"row-data"},[t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(" "+e._s(e._f("numFormat")(e.bloggerInfoRest.fansCount))+" ")]),t("div",{staticClass:"row-data_item-name"},[e._v("粉丝数")])]),t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(" "+e._s(e._f("numFormat")("instagram"===e.bloggerInfoRest.platform?e.bloggerInfoRest.likeVolumeAvg60d:e.bloggerInfoRest.viewVolumeAvg60d))+" ")]),t("div",{staticClass:"row-data_item-name"},[e._v(" "+e._s("instagram"===e.bloggerInfoRest.platform?"平均点赞量":"平均观看量")+" ")])]),t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(" "+e._s(e._f("rateFormat")(e.bloggerInfoRest.interactiveRate60d))+" ")]),t("div",{staticClass:"row-data_item-name"},[e._v("平均互动率")])]),e.bloggerInfoRest.gmv30d?t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(e._s(e._f("numFormat")(e.bloggerInfoRest.gmv30d)))]),t("div",{staticClass:"row-data_item-name"},[e._v("近30日新增GMV")])]):e._e()]),t("el-tooltip",{attrs:{"popper-class":"wt-tooltip",placement:"top"}},[t("div",{staticStyle:{color:"#333"},attrs:{slot:"content"},slot:"content"},[e._v("收藏")]),t("span",{staticClass:"btn",on:{click:e.handleAddFavorites}},[t("i",{class:{"icon-img":!0}})])]),t("button",{staticClass:"double-btn"},[t("el-tooltip",{attrs:{"popper-class":"btn-tooltip wt-tooltip",content:e.$t("inboxDetail.normalReply"),placement:"top"}},[t("div",{staticClass:"text",on:{click:function(t){return e.showReplyNew(!1,void 0)}}},[e._v(" "+e._s(e.$t("inboxDetail.reply2"))+" ")])]),t("el-divider",{staticClass:"search-divider",attrs:{direction:"vertical"}}),t("el-tooltip",{attrs:{"popper-class":"btn-tooltip wt-tooltip",content:e.$t("inboxDetail.simpleReply"),placement:"top"}},[t("div",{staticClass:"quick-reply",on:{click:e.simpleReplay}},[t("img",{staticClass:"img",attrs:{src:i(3074)}})])])],1)],1)])],1):t("div",{staticClass:"outer-blogger"},[t("div",{staticClass:"outer-name"},[e._v(e._s(e.$t("inboxDetail.outerBlogger")))]),t("div",{staticClass:"outer-email"},[e._v(" "+e._s(e.$t("inboxDetail.email"))+e._s(e.bloggerInfo.email)+" ")])])]),e.bloggerInfo.bloggerId&&"null"!==e.bloggerInfo.planId?t("div",{staticClass:"blogger-plan"},[t("div",{staticClass:"plan-top"},[t("span",{staticClass:"title"},[e._v(e._s(e.$t("inboxDetail.plan")))]),t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[t("i",{staticClass:"el-icon-more more_icon"}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"a"}},[e._v("关联推广计划")]),t("el-dropdown-item",{attrs:{command:"b"}},[e._v("修改合作状态")])],1)],1)],1),t("div",{staticClass:"plan-bottom"},[t("span",{staticClass:"plan_name"},[e._v(e._s("-1"==e.bloggerInfo.planId||"null"==e.bloggerInfo.planId?e.$t("inboxDetail.noPlan"):e.bloggerInfo.planName))]),e.bloggerInfo.bloggerId&&"null"!==e.bloggerInfo.planId?t("div",{staticClass:"coo_status"},[e._v(" "+e._s(e._f("coopStatusFilter")(e.bloggerInfo.coopStatus))+" ")]):e._e()])]):e._e()]),e.bloggerInfo.bloggerId&&"null"!==e.bloggerInfo.planId?t("div",{staticClass:"blogger-opt"},[e._l(e.optList,(function(n,i){return t("div",{key:i,staticClass:"opt-item",on:{click:function(t){return e.clickHandle(n.key,n.activeName)}}},[t("i",{class:["dss-iconfont",n.icon]}),t("span",{staticClass:"txt"},[e._v(e._s(n.name))])])})),t("el-dropdown",{staticClass:"email-drop",on:{command:e.clickHandle}},[t("i",{staticClass:"dss-iconfont icon-gengduo-changguizhuangtai"}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"report"}},[e._v(e._s(e.$t("inboxDetail.menu7")))]),t("el-dropdown-item",{attrs:{command:"blackList"}},[e._v(e._s(e.$t("inboxDetail.menu8")))]),t("el-dropdown-item",{attrs:{command:"detail"}},[e._v(e._s(e.$t("inboxDetail.menu9")))])],1)],1)],2):e._e(),t("div",{staticClass:"email-part"},[t("div",{staticClass:"email-list"},e._l(e.mailList,(function(n,r){return t("div",{key:n.id,class:{"list-row":!0,"list-row-blogger":2===n.type}},[e.isHasAi&&n.isShowSummary&&1===n.type?t("AiSummary",{attrs:{id:n.id,aiPoint:e.aiPoint,isRebuild:n.isRebuild},on:{getEmailIntention:function(t){return e.getEmailIntention(n)},handleShow:e.handleSummaryShow,refreshAiPoint:e.getAiPoint,showAiReply:t=>e.showAiReply(n,t)}}):e._e(),t("div",{staticClass:"item-main"},[t("div",{staticClass:"top"},[t("div",{staticClass:"person"},[t("el-image",{staticStyle:{width:"24px",height:"24px","border-radius":"50%",cursor:"pointer"},attrs:{src:n.bloggerAvatar},on:{click:function(t){t.stopPropagation(),n.bloggerId&&1===n.type&&e.skipBlogDetail(n.bloggerId,n)}}}),1===n.type?[t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticClass:"username"},[e._v(e._s(n.bloggerName))]),t("div",{staticClass:"nickname"},[e._v(" "+e._s(e.$t("inboxDetail.channelId"))+":"+e._s(n.bloggerUserName)+" ")])]),t("span",{staticClass:"nickname",staticStyle:{cursor:"pointer"},on:{click:function(t){t.stopPropagation(),n.bloggerId&&e.skipBlogDetail(n.bloggerId,n)}}},[e._v(" "+e._s(n.bloggerName)+" ")])])]:e._e(),2===n.type?[t("span",{staticClass:"nickname"},[e._v(" "+e._s(n.userName)+" ")])]:e._e()],2),t("div",{staticClass:"time"},[t("span",{directives:[{name:"show",rawName:"v-show",value:n.isExpand,expression:"mail.isExpand"}],staticClass:"show-full",on:{click:function(t){return e.toggleFullContent(n)}}},[e._v(e._s(n.isShowFull?"隐藏原始邮件":"查看原始邮件"))]),1==n.type?t("el-popover",{attrs:{placement:"top",width:"150",trigger:"click","popper-class":"emoji-popover input-popper",content:"邮件ID:"+n.id}},[t("span",{staticClass:"date",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(n.createTime))])]):t("span",{staticClass:"date"},[e._v(e._s(n.createTime))]),1===n.type&&e.isHasAi?t("span",{class:{keywords:!0,"summary-btn":!0,"not-allowed":n.isShowSummary},on:{click:function(t){return e.openAiSummary(n.id)}}},[t("img",{staticStyle:{width:"88px",height:"18px"},attrs:{src:i(7862),alt:""}})]):e._e(),2===n.type&&0===r?t("span",{class:{read:!0,"has-read":2==n.isRead}},[t("i",{class:["dss-iconfont",2==n.isRead?"icon-kejian":"icon-bukejian"]}),t("span",[e._v(e._s(2==n.isRead?e.$t("inboxDetail.read"):e.$t("inboxDetail.unRead")))])]):e._e()],1)]),n.attachment?.length>0&&n.isExpand?t("div",{staticClass:"item-files"},e._l(n.attachment,(function(n){return t("div",{key:n.uuid,staticClass:"file",on:{click:function(t){return e.downFile(n)}}},[t("i",{staticClass:"dss-iconfont icon-file-3"}),t("span",{staticClass:"name"},[e._v(e._s(n.name))]),t("i",{staticClass:"dss-iconfont icon-download"})])})),0):e._e(),t("div",{staticClass:"center"},[t("div",{staticClass:"ai-box2"},[t("div",{staticClass:"box-txt"},[n.isExpand?t("div",{staticClass:"txt-content"},[t("EmailBox",{attrs:{content:n.isShowFull?n.cleanContent:n.content}})],1):t("div",{staticClass:"txt-base",domProps:{innerHTML:e._s(e.delHtmlTag(n.content))}})]),t("div",{staticClass:"box-toggle",on:{click:function(t){return e.toggleEmailExpand(n)}}},[t("i",{staticClass:"dss-iconfont icon-arrow",class:{aiOpen:n.isExpand}}),t("span",[e._v(e._s(n.isExpand?e.$t("inboxDetail.close"):e.$t("inboxDetail.open")))])])])]),t("div",{staticClass:"bottom"})]),n.attachment?.length>0&&!n.isExpand?t("div",{staticClass:"item-files"},e._l(n.attachment,(function(n){return t("div",{key:n.uuid,staticClass:"file",on:{click:function(t){return e.downFile(n)}}},[t("i",{staticClass:"dss-iconfont icon-file-3"}),t("span",{staticClass:"name"},[e._v(e._s(n.name))]),t("i",{staticClass:"dss-iconfont icon-download"})])})),0):e._e()],1)})),0)])]),e.isShowSettag?t("AddTagsDialog",{attrs:{isShowDialog:e.isShowSettag,defaultTag:e.selectedTags},on:{updateTag:e.updateTag,closeAddTagsDialog:function(t){e.isShowSettag=!1}}}):e._e(),e.showSimpleReplay?t("SimpleReplay",{attrs:{maxId:e.maxId},on:{close:function(t){e.showSimpleReplay=!1},fullWrite:e.fullWrite,refresh:e.getMailGroup}}):e._e(),e.intentionVisible?t("EmailIntention",{attrs:{id:e.id,maxId:e.maxId,visible:e.intentionVisible,bloggerId:e.bloggerInfo.bloggerId,currentMail:e.currentMail},on:{"update:visible":function(t){e.intentionVisible=t},refreshPoint:e.getAiPoint}}):e._e(),e.planVisible?t("EmailPlan",{attrs:{visible:e.planVisible,bloggerId:e.bloggerInfo.bloggerId,upbEsId:e.bloggerInfo.upbEsId,platform:e.bloggerInfo.platform,planIdRel:e.bloggerInfo.planId,maxId:e.maxId,detailData:e.mailData},on:{"update:visible":function(t){e.planVisible=t},change:e.changeEmailPlan}}):e._e(),e.coopStatusVisible?t("CoopStatus",{attrs:{visible:e.coopStatusVisible,upbEsId:e.bloggerInfo.upbEsId,coopStatus:e.bloggerInfo.coopStatus,planId:e.bloggerInfo.planId},on:{"update:visible":function(t){e.coopStatusVisible=t},change:e.getCrmInfo}}):e._e(),e.emailRelyVisible?t("EmailRely",{attrs:{visible:e.emailRelyVisible,loading:e.aiReplayBtnLoading,content:e.replayInfo.replyContent},on:{"update:visible":function(t){e.emailRelyVisible=t},confirm:function(t){return e.handleAiReplay(e.replayInfo.replyContent,e.replayInfo.id)}}}):e._e(),e.aiRelyVisible?t("AiReply",{attrs:{visible:e.aiRelyVisible,summaryInfo:e.summaryInfo,aiPoint:e.aiPoint,maxId:e.maxId,currentMail:e.currentMail},on:{"update:visible":function(t){e.aiRelyVisible=t},refreshPoint:e.getAiPoint,finished:e.getMailGroup,fullWrite:e.fullWrite}}):e._e()],1)},ul=[];function dl(e){return wa("/edm/outboxV2/writeMultipleEmail",e)}async function hl(e){let t=await wa("/edm/mail/dayNumber",e);return t}async function pl(e){return wa("/edm/mail/getRepeatContactBlogger",e)}async function fl(e){let t=await wa("/edm/mail/checkMultiEmailVariables",e);return t}async function ml(e){let t=await wa("/edm/conf/bindGmail",e);return t}async function gl(e){let t=await va("/edm/conf/getGmail",e);return t}async function vl(e){let t=await wa("/edm/gmail/auth",e);return t}async function yl(e){let t=await wa(`/dataService/data/query/${e.code}`,e.data);return t}async function bl(e){let t=await wa("/edm/conf/sendType/bind",e);return t}function wl(e){return va("/edm/conf/sendType/get",e)}function _l(){return va("/edm/qiye/haveOtherMailProvider")}function Cl(e){return va("/edm/qiye/unbindCheck",e)}function xl(e){return va("/edm/qiye/oauth2Config",e)}function Sl(e){return va("/edm/qiye/saveToken",e)}function kl(e){return wa("/woto-crm/bloggerRisk/selectBloggerRiskByIds",e)}function El(e){return wa("/edm/mail/getCooperatedBlogger",e)}function Dl(e){return va(`/edm/template/template/${e}`)}function Al(e){return va(`/user/equity/getUnlockBloggerEmailNum/${e}`)}function Ol(e){return wa("/edm/gmail/alias_email/auth",e)}function Tl(e){return wa("/edm/gmail/alias_email/cancel_auth",e)}
90
+ var so={};"undefined"!=typeof so.asn1&&so.asn1||(so.asn1={}),so.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),i=n.length;i%2==1?i+=1:t.match(/^[0-7]/)||(i+=2);for(var r="",o=0;o<i;o++)r+="f";var a=new Er(r,16),s=a.xor(e).add(Er.ONE);t=s.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=so,n=t.asn1,i=n.DERBoolean,r=n.DERInteger,o=n.DERBitString,a=n.DEROctetString,s=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,u=n.DERUTF8String,d=n.DERNumericString,h=n.DERPrintableString,p=n.DERTeletexString,f=n.DERIA5String,m=n.DERUTCTime,g=n.DERGeneralizedTime,v=n.DERSequence,y=n.DERSet,b=n.DERTaggedObject,w=n.ASN1Util.newObject,_=Object.keys(e);if(1!=_.length)throw"key of param shall be only one.";var C=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+C+":"))throw"undefined key: "+C;if("bool"==C)return new i(e[C]);if("int"==C)return new r(e[C]);if("bitstr"==C)return new o(e[C]);if("octstr"==C)return new a(e[C]);if("null"==C)return new s(e[C]);if("oid"==C)return new l(e[C]);if("enum"==C)return new c(e[C]);if("utf8str"==C)return new u(e[C]);if("numstr"==C)return new d(e[C]);if("prnstr"==C)return new h(e[C]);if("telstr"==C)return new p(e[C]);if("ia5str"==C)return new f(e[C]);if("utctime"==C)return new m(e[C]);if("gentime"==C)return new g(e[C]);if("seq"==C){for(var x=e[C],S=[],k=0;k<x.length;k++){var E=w(x[k]);S.push(E)}return new v({array:S})}if("set"==C){for(x=e[C],S=[],k=0;k<x.length;k++){E=w(x[k]);S.push(E)}return new y({array:S})}if("tag"==C){var D=e[C];if("[object Array]"===Object.prototype.toString.call(D)&&3==D.length){var A=w(D[2]);return new b({tag:D[0],explicit:D[1],obj:A})}var O={};if(void 0!==D.explicit&&(O.explicit=D.explicit),void 0!==D.tag&&(O.tag=D.tag),void 0===D.obj)throw"obj shall be specified for 'tag'.";return O.obj=w(D.obj),new b(O)}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},so.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),i=Math.floor(n/40),r=n%40,o=(t=i+"."+r,""),a=2;a<e.length;a+=2){var s=parseInt(e.substr(a,2),16),l=("00000000"+s.toString(2)).slice(-8);if(o+=l.substr(1,7),"0"==l.substr(0,1)){var c=new Er(o,2);t=t+"."+c.toString(10),o=""}}return t},so.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",i=new Er(e,10),r=i.toString(2),o=7-r.length%7;7==o&&(o=0);for(var a="",s=0;s<o;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var l=r.substr(s,7);s!=r.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",r=e.split("."),o=40*parseInt(r[0])+parseInt(r[1]);i+=t(o),r.splice(0,2);for(var a=0;a<r.length;a++)i+=n(r[a]);return i},so.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var r=128+i;return r.toString(16)+n},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},so.asn1.DERAbstractString=function(e){so.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e["str"]?this.setString(e["str"]):"undefined"!=typeof e["hex"]&&this.setStringHex(e["hex"]))},ao.lang.extend(so.asn1.DERAbstractString,so.asn1.ASN1Object),so.asn1.DERAbstractTime=function(e){so.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){utc=e.getTime()+6e4*e.getTimezoneOffset();var t=new Date(utc);return t},this.formatDate=function(e,t,n){var i=this.zeroPadding,r=this.localDateToUTC(e),o=String(r.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=i(String(r.getMonth()+1),2),s=i(String(r.getDate()),2),l=i(String(r.getHours()),2),c=i(String(r.getMinutes()),2),u=i(String(r.getSeconds()),2),d=o+a+s+l+c+u;if(!0===n){var h=r.getMilliseconds();if(0!=h){var p=i(String(h),3);p=p.replace(/[0]+$/,""),d=d+"."+p}}return d+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,i,r,o){var a=new Date(Date.UTC(e,t-1,n,i,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},ao.lang.extend(so.asn1.DERAbstractTime,so.asn1.ASN1Object),so.asn1.DERAbstractStructured=function(e){so.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e["array"]&&(this.asn1Array=e["array"])},ao.lang.extend(so.asn1.DERAbstractStructured,so.asn1.ASN1Object),so.asn1.DERBoolean=function(){so.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ao.lang.extend(so.asn1.DERBoolean,so.asn1.ASN1Object),so.asn1.DERInteger=function(e){so.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=so.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new Er(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["bigint"]?this.setByBigInteger(e["bigint"]):"undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},ao.lang.extend(so.asn1.DERInteger,so.asn1.ASN1Object),so.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=so.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}so.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var t=8-e.length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var i="";for(n=0;n<e.length-1;n+=8){var r=e.substr(n,8),o=parseInt(r,2).toString(16);1==o.length&&(o="0"+o),i+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+i},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e["hex"]?this.setHexValueIncludingUnusedBits(e["hex"]):"undefined"!=typeof e["bin"]?this.setByBinaryString(e["bin"]):"undefined"!=typeof e["array"]&&this.setByBooleanArray(e["array"]))},ao.lang.extend(so.asn1.DERBitString,so.asn1.ASN1Object),so.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=so.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}so.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},ao.lang.extend(so.asn1.DEROctetString,so.asn1.DERAbstractString),so.asn1.DERNull=function(){so.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ao.lang.extend(so.asn1.DERNull,so.asn1.ASN1Object),so.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",i=new Er(e,10),r=i.toString(2),o=7-r.length%7;7==o&&(o=0);for(var a="",s=0;s<o;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var l=r.substr(s,7);s!=r.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};so.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",r=e.split("."),o=40*parseInt(r[0])+parseInt(r[1]);i+=t(o),r.splice(0,2);for(var a=0;a<r.length;a++)i+=n(r[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(e){var t=so.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"===typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},ao.lang.extend(so.asn1.DERObjectIdentifier,so.asn1.ASN1Object),so.asn1.DEREnumerated=function(e){so.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=so.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new Er(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},ao.lang.extend(so.asn1.DEREnumerated,so.asn1.ASN1Object),so.asn1.DERUTF8String=function(e){so.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},ao.lang.extend(so.asn1.DERUTF8String,so.asn1.DERAbstractString),so.asn1.DERNumericString=function(e){so.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},ao.lang.extend(so.asn1.DERNumericString,so.asn1.DERAbstractString),so.asn1.DERPrintableString=function(e){so.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},ao.lang.extend(so.asn1.DERPrintableString,so.asn1.DERAbstractString),so.asn1.DERTeletexString=function(e){so.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},ao.lang.extend(so.asn1.DERTeletexString,so.asn1.DERAbstractString),so.asn1.DERIA5String=function(e){so.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},ao.lang.extend(so.asn1.DERIA5String,so.asn1.DERAbstractString),so.asn1.DERUTCTime=function(e){so.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},ao.lang.extend(so.asn1.DERUTCTime,so.asn1.DERAbstractTime),so.asn1.DERGeneralizedTime=function(e){so.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},ao.lang.extend(so.asn1.DERGeneralizedTime,so.asn1.DERAbstractTime),so.asn1.DERSequence=function(e){so.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.getEncodedHex()}return this.hV=e,this.hV}},ao.lang.extend(so.asn1.DERSequence,so.asn1.DERAbstractStructured),so.asn1.DERSet=function(e){so.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},"undefined"!=typeof e&&"undefined"!=typeof e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},ao.lang.extend(so.asn1.DERSet,so.asn1.DERAbstractStructured),so.asn1.DERTaggedObject=function(e){so.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["tag"]&&(this.hT=e["tag"]),"undefined"!=typeof e["explicit"]&&(this.isExplicit=e["explicit"]),"undefined"!=typeof e["obj"]&&(this.asn1Object=e["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ao.lang.extend(so.asn1.DERTaggedObject,so.asn1.ASN1Object);var lo,co,uo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ho=function(e){function t(n){var i=e.call(this)||this;return n&&("string"===typeof n?i.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return uo(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,r=i.test(e)?ur.decode(e):dr.unarmor(e),o=wr.decode(r);if(3===o.sub.length&&(o=o.sub[2].sub[0]),9===o.sub.length){t=o.sub[1].getHexStringValue(),this.n=Pr(t,16),n=o.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=o.sub[3].getHexStringValue();this.d=Pr(a,16);var s=o.sub[4].getHexStringValue();this.p=Pr(s,16);var l=o.sub[5].getHexStringValue();this.q=Pr(l,16);var c=o.sub[6].getHexStringValue();this.dmp1=Pr(c,16);var u=o.sub[7].getHexStringValue();this.dmq1=Pr(u,16);var d=o.sub[8].getHexStringValue();this.coeff=Pr(d,16)}else{if(2!==o.sub.length)return!1;if(o.sub[0].sub){var h=o.sub[1],p=h.sub[0];t=p.sub[0].getHexStringValue(),this.n=Pr(t,16),n=p.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else t=o.sub[0].getHexStringValue(),this.n=Pr(t,16),n=o.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(f$){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new so.asn1.DERInteger({int:0}),new so.asn1.DERInteger({bigint:this.n}),new so.asn1.DERInteger({int:this.e}),new so.asn1.DERInteger({bigint:this.d}),new so.asn1.DERInteger({bigint:this.p}),new so.asn1.DERInteger({bigint:this.q}),new so.asn1.DERInteger({bigint:this.dmp1}),new so.asn1.DERInteger({bigint:this.dmq1}),new so.asn1.DERInteger({bigint:this.coeff})]},t=new so.asn1.DERSequence(e);return t.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return sr(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new so.asn1.DERSequence({array:[new so.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new so.asn1.DERNull]}),t=new so.asn1.DERSequence({array:[new so.asn1.DERInteger({bigint:this.n}),new so.asn1.DERInteger({int:this.e})]}),n=new so.asn1.DERBitString({hex:"00"+t.getEncodedHex()}),i=new so.asn1.DERSequence({array:[e,n]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return sr(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(t=t||64,!e)return e;var n="(.{1,"+t+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(to),po="undefined"!==typeof process?null===(lo={NODE_ENV:"production",BASE_URL:"/"})||void 0===lo?void 0:lo.npm_package_version:void 0,fo=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ho(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(lr(e))}catch(f$){return!1}},e.prototype.encrypt=function(e){try{return sr(this.getKey().encrypt(e))}catch(f$){return!1}},e.prototype.sign=function(e,t,n){try{return sr(this.getKey().sign(e,t,n))}catch(f$){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,lr(t),n)}catch(f$){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new ho,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=po,e}(),mo=new Uint8Array(16);function go(){if(!co&&(co="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!co))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return co(mo)}var vo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yo(e){return"string"===typeof e&&vo.test(e)}for(var bo=yo,wo=[],_o=0;_o<256;++_o)wo.push((_o+256).toString(16).substr(1));function Co(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(wo[e[t+0]]+wo[e[t+1]]+wo[e[t+2]]+wo[e[t+3]]+"-"+wo[e[t+4]]+wo[e[t+5]]+"-"+wo[e[t+6]]+wo[e[t+7]]+"-"+wo[e[t+8]]+wo[e[t+9]]+"-"+wo[e[t+10]]+wo[e[t+11]]+wo[e[t+12]]+wo[e[t+13]]+wo[e[t+14]]+wo[e[t+15]]).toLowerCase();if(!bo(n))throw TypeError("Stringified UUID is invalid");return n}var xo,So,ko=Co,Eo=0,Do=0;function Ao(e,t,n){var i=t&&n||0,r=t||new Array(16);e=e||{};var o=e.node||xo,a=void 0!==e.clockseq?e.clockseq:So;if(null==o||null==a){var s=e.random||(e.rng||go)();null==o&&(o=xo=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=So=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:Do+1,u=l-Eo+(c-Do)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||l>Eo)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Eo=l,Do=c,So=a,l+=122192928e5;var d=(1e4*(268435455&l)+c)%4294967296;r[i++]=d>>>24&255,r[i++]=d>>>16&255,r[i++]=d>>>8&255,r[i++]=255&d;var h=l/4294967296*1e4&268435455;r[i++]=h>>>8&255,r[i++]=255&h,r[i++]=h>>>24&15|16,r[i++]=h>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a;for(var p=0;p<6;++p)r[i+p]=o[p];return t||ko(r)}var Oo=Ao;function To(e){if(!bo(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}var Io=To;function Po(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var Fo="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Mo="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Bo(e,t,n){function i(e,i,r,o){if("string"===typeof e&&(e=Po(e)),"string"===typeof i&&(i=Io(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(i),a.set(e,i.length),a=n(a),a[6]=15&a[6]|t,a[8]=63&a[8]|128,r){o=o||0;for(var s=0;s<16;++s)r[o+s]=a[s];return r}return ko(a)}try{i.name=e}catch(r){}return i.DNS=Fo,i.URL=Mo,i}function No(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return $o(jo(Lo(e),8*e.length))}function $o(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}function Ro(e){return 14+(e+64>>>9<<4)+1}function jo(e,t){e[t>>5]|=128<<t%32,e[Ro(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,l=i,c=r,u=o;n=Uo(n,i,r,o,e[a],7,-680876936),o=Uo(o,n,i,r,e[a+1],12,-389564586),r=Uo(r,o,n,i,e[a+2],17,606105819),i=Uo(i,r,o,n,e[a+3],22,-1044525330),n=Uo(n,i,r,o,e[a+4],7,-176418897),o=Uo(o,n,i,r,e[a+5],12,1200080426),r=Uo(r,o,n,i,e[a+6],17,-1473231341),i=Uo(i,r,o,n,e[a+7],22,-45705983),n=Uo(n,i,r,o,e[a+8],7,1770035416),o=Uo(o,n,i,r,e[a+9],12,-1958414417),r=Uo(r,o,n,i,e[a+10],17,-42063),i=Uo(i,r,o,n,e[a+11],22,-1990404162),n=Uo(n,i,r,o,e[a+12],7,1804603682),o=Uo(o,n,i,r,e[a+13],12,-40341101),r=Uo(r,o,n,i,e[a+14],17,-1502002290),i=Uo(i,r,o,n,e[a+15],22,1236535329),n=Wo(n,i,r,o,e[a+1],5,-165796510),o=Wo(o,n,i,r,e[a+6],9,-1069501632),r=Wo(r,o,n,i,e[a+11],14,643717713),i=Wo(i,r,o,n,e[a],20,-373897302),n=Wo(n,i,r,o,e[a+5],5,-701558691),o=Wo(o,n,i,r,e[a+10],9,38016083),r=Wo(r,o,n,i,e[a+15],14,-660478335),i=Wo(i,r,o,n,e[a+4],20,-405537848),n=Wo(n,i,r,o,e[a+9],5,568446438),o=Wo(o,n,i,r,e[a+14],9,-1019803690),r=Wo(r,o,n,i,e[a+3],14,-187363961),i=Wo(i,r,o,n,e[a+8],20,1163531501),n=Wo(n,i,r,o,e[a+13],5,-1444681467),o=Wo(o,n,i,r,e[a+2],9,-51403784),r=Wo(r,o,n,i,e[a+7],14,1735328473),i=Wo(i,r,o,n,e[a+12],20,-1926607734),n=qo(n,i,r,o,e[a+5],4,-378558),o=qo(o,n,i,r,e[a+8],11,-2022574463),r=qo(r,o,n,i,e[a+11],16,1839030562),i=qo(i,r,o,n,e[a+14],23,-35309556),n=qo(n,i,r,o,e[a+1],4,-1530992060),o=qo(o,n,i,r,e[a+4],11,1272893353),r=qo(r,o,n,i,e[a+7],16,-155497632),i=qo(i,r,o,n,e[a+10],23,-1094730640),n=qo(n,i,r,o,e[a+13],4,681279174),o=qo(o,n,i,r,e[a],11,-358537222),r=qo(r,o,n,i,e[a+3],16,-722521979),i=qo(i,r,o,n,e[a+6],23,76029189),n=qo(n,i,r,o,e[a+9],4,-640364487),o=qo(o,n,i,r,e[a+12],11,-421815835),r=qo(r,o,n,i,e[a+15],16,530742520),i=qo(i,r,o,n,e[a+2],23,-995338651),n=Yo(n,i,r,o,e[a],6,-198630844),o=Yo(o,n,i,r,e[a+7],10,1126891415),r=Yo(r,o,n,i,e[a+14],15,-1416354905),i=Yo(i,r,o,n,e[a+5],21,-57434055),n=Yo(n,i,r,o,e[a+12],6,1700485571),o=Yo(o,n,i,r,e[a+3],10,-1894986606),r=Yo(r,o,n,i,e[a+10],15,-1051523),i=Yo(i,r,o,n,e[a+1],21,-2054922799),n=Yo(n,i,r,o,e[a+8],6,1873313359),o=Yo(o,n,i,r,e[a+15],10,-30611744),r=Yo(r,o,n,i,e[a+6],15,-1560198380),i=Yo(i,r,o,n,e[a+13],21,1309151649),n=Yo(n,i,r,o,e[a+4],6,-145523070),o=Yo(o,n,i,r,e[a+11],10,-1120210379),r=Yo(r,o,n,i,e[a+2],15,718787259),i=Yo(i,r,o,n,e[a+9],21,-343485551),n=zo(n,s),i=zo(i,l),r=zo(r,c),o=zo(o,u)}return[n,i,r,o]}function Lo(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Ro(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}function zo(e,t){var n=(65535&e)+(65535&t),i=(e>>16)+(t>>16)+(n>>16);return i<<16|65535&n}function Vo(e,t){return e<<t|e>>>32-t}function Ho(e,t,n,i,r,o){return zo(Vo(zo(zo(t,e),zo(i,o)),r),n)}function Uo(e,t,n,i,r,o,a){return Ho(t&n|~t&i,e,t,r,o,a)}function Wo(e,t,n,i,r,o,a){return Ho(t&i|n&~i,e,t,r,o,a)}function qo(e,t,n,i,r,o,a){return Ho(t^n^i,e,t,r,o,a)}function Yo(e,t,n,i,r,o,a){return Ho(n^(t|~i),e,t,r,o,a)}var Go=No,Ko=Bo("v3",48,Go),Xo=Ko;function Zo(e,t,n){e=e||{};var i=e.random||(e.rng||go)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return ko(i)}var Jo=Zo;function Qo(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function ea(e,t){return e<<t|e>>>32-t}function ta(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),l=0;l<a;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];s[l]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[d][p];for(var f=16;f<80;++f)h[f]=ea(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var _=Math.floor(w/20),C=ea(m,5)+Qo(_,g,v,y)+b+t[_]+h[w]>>>0;b=y,y=v,v=ea(g,30)>>>0,g=m,m=C}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}var na=ta,ia=Bo("v5",80,na),ra=ia,oa={v1:Oo,v3:Xo,v4:Jo,v5:ra};function aa(e){let t=new fo;t.setPublicKey(sa("4ADS20wxtyAw"));let n=t.encrypt(e);return n}function sa(e){return!!Object.prototype.toString.call(e)&&la("M1Fw3wD5QYJKoZIhvcNAQEBBQADSwAwSAJBAPWZswFK/6")}function la(e){if(Object.prototype.toString.call(e)){let t=e.replace(new RegExp("1","g"),""),n=t.replace(new RegExp("3","g"),""),i=n.replace(new RegExp("5","g"),"");return ca("AJB5APWZ"+i)}return!1}function ca(e){if(Object.prototype.toString.call(e)){let t="++m2Kx72j8q73mLKCxi72MZG6knk7vQAz9Ed4SgbJ67juHT7Km",n=t.split("").reverse().join(""),i=n.split("").reverse().join(""),r=i.replace(new RegExp("3m","g"),""),o=r.replace(new RegExp("6k","g"),""),a=o.replace(new RegExp("gb","g"),"");return ua(e.slice(8)+a)}return!1}function ua(e){if(Object.prototype.toString.call(e)){let t="7kdTklfaAsccYCeQbhDr7Cd8mWFleQtVKM6mM90CAwEAAQ==",n=t.replace(new RegExp("cc","g"),""),i=n.replace(new RegExp("8m","g"),""),r="hDr7Cd98mWF"+i.replace(new RegExp("90","g"),"");return e.split("").reverse().join("").split("").reverse().join("")+r.slice(11)}return!1}function da(e,t=!1){const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener noreferrer",t&&(n.download="file"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}let ha="",pa="";function fa(e){if(null!==e){if(Array.isArray(e))for(let t=0;t<e.length;t++)null===e[t]?e[t]=void 0:"object"===typeof e[t]&&fa(e[t]);else if("object"===typeof e)for(const t in e)e.hasOwnProperty(t)&&(null===e[t]?e[t]=void 0:"object"===typeof e[t]&&fa(e[t]));return e}}function ma(e){pa=e,localStorage.setItem("EDMDefaultEnv",e),"dev"===e||"development"===e||"test"===e||"pre"===e?ha="https://apipre.wotohub.com":"prod"!==e&&"production"!==e||(ha="https://api.wotohub.com/")}const ga=xn.create({baseURL:"",timeout:25e4});ga.interceptors.request.use((function(e){const t=(new Date).getTime(),n=In()+t;let i=oa.v4();const r=e.params||e.data;fa(r);let o={},a="";r?(o=Rn(e.url,n,t,r,i,e.method),a=o.hmacBytes):(o=Rn(e.url,n,t,null,i,e.method),a=o.hmacBytes),e.baseURL=pa?ha:"https://apipre.wotohub.com",e.headers["appkey"]=aa(i),e.headers["timestamp"]=t,e.headers["nonce"]=n,e.headers["cookieid"]=a,e.headers["sign"]=Ln(r).hmacBytes,e.headers["token"]=localStorage.getItem("token"),e.headers["Content-Type"]="application/json",e.config&&e.config.contentType&&"formData"===e.config.contentType&&(e.headers["Content-Type"]="multipart/form-data");let s=localStorage.getItem("sourceApp");return s&&(e.headers["sourceApp"]=localStorage.getItem("sourceApp")),localStorage.getItem("token")&&(e.headers["token"]=localStorage.getItem("token")),localStorage.getItem("Authorization")&&(e.headers["Authorization"]=localStorage.getItem("Authorization")),localStorage.getItem("dss_token")&&(e.headers["dss-token"]=localStorage.getItem("dss_token")),e}),(function(e){return Promise.reject(e)})),ga.interceptors.response.use((function(e){503===e.status&&alert("服务器不可用,请联系管理员"),200!==e.status&&0!==e.status||("1006"===e.data.code||"用户未登录"===e.data.message)&&(localStorage.removeItem("user_info"),localStorage.removeItem("user_equity"),localStorage.removeItem("token"),localStorage.removeItem("dss_token"),localStorage.removeItem("referrer"),localStorage.removeItem("isRemindUnlock"),localStorage.removeItem("inboxPage"),localStorage.removeItem("outboxPage"),localStorage.removeItem("omaToken"),localStorage.removeItem("oma_token"),["www.wotohub.com","pre-hub.kuku.info"].includes(window.location.host)&&(window.location.href="/login"));try{if("object"===typeof e.data&&e.data.hasOwnProperty("code")&&0!=e.data.code){const t=JSON.parse(localStorage.getItem("user_info")||"{}"),n=t.user_id?t.user_id+"_":"";throw new Error(n+e.request.responseURL+e.request.responseText||e.data.code)}}catch(Ml){console.error("An error occurred:",Ml),Sa(Ml)}return e.data}),(function(e){return Promise.reject(e)}));const va=(e,t)=>new Promise(((n,i)=>{ga.get(e,{params:t}).then((e=>{n(e)})).catch((e=>{i(e)}))})),ya=(e,t)=>new Promise(((n,i)=>{ga.delete(e,{params:t}).then((e=>{n(e)})).catch((e=>{i(e)}))})),ba=(e,t)=>new Promise(((n,i)=>{ga.delete(e,{data:t}).then((e=>{n(e)})).catch((e=>{i(e)}))})),wa=(e,t,n)=>new Promise(((i,r)=>{ga.post(e,t,{responseType:n?"blob":"json"}).then((e=>{i(e)})).catch((e=>{r(e)}))})),_a=(e,t)=>new Promise(((n,i)=>{ga.put(e,t).then((e=>{n(e)})).catch((e=>{i(e)}))})),Ca=(e,t,n)=>ga({method:"post",url:e,data:t,onUploadProgress:n,config:{contentType:"formData"},headers:{"Content-Type":"multipart/form-data"}}),xa=localStorage.getItem("EDMDefaultEnv");function Sa(e){"dev"!==xa&&Ki.reportFrameErrors({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],traceTimeInterval:6e4,vue:qn()},e)}"dev"!==xa&&Ki.register({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],vue:qn()});const ka=xn.create({baseURL:"https://dss-apis.kuku.info"});ka.interceptors.request.use((e=>{if(e.data)for(const t in e.data)Da(e.data[t])&&delete e.data[t];if(e.params)for(const t in e.params)Da(e.params[t])&&delete e.params[t];return zi.getters.token&&(e.headers["Authorization"]="Bearer "+Yi()),e}),(e=>Promise.reject(e))),ka.interceptors.response.use((e=>{const t=e.data;try{if("object"===typeof e.data&&e.data.hasOwnProperty("code")&&0!=e.data.code){const t=JSON.parse(localStorage.getItem("user_info")||"{}"),n=t.user_id?t.user_id+"_":"";throw new Error(n+e.request.responseURL+e.request.responseText||e.data.code)}}catch(Ml){console.error("An error occurred:",Ml),Sa(Ml)}return Promise.resolve(t)}),(e=>(100003===e.response.data.code?(0,Un.Message)({message:e.response.data.message,type:"error",duration:5e3}):(0,Un.Message)({message:e.response.data.message?e.response.data.message:"网络错误,请稍后再试~",type:"error",duration:5e3}),Promise.reject(e))));var Ea=ka;function Da(e){return"undefined"===typeof e||null===e||""===e}async function Aa(e){let t=await wa("/user/userSystem/loginWithPassword",e);return t.data}function Oa(e){return Ea({url:"https://dss-apis.kuku.info/user/account/password",method:"POST",data:e})}async function Ta(e){let t=await Hn("https://api.kuku.info/koc/task/search",e);return t.data}async function Ia(){let e=await Hn("http://192.168.4.10:9528/writeEmail",{});return e.data}async function Pa(e){let t={sourceApp:"hub",bloggerName:"",subject:"",taskName:"",type:"",currentPage:1,pageSize:10},n=await Hn("http://192.168.4.10:8080/edm/mail/selOutbox",t);return n.data}var Fa={name:"edm-button",created(){},methods:{test(){let e='<html>\n <head>\n <meta http-equiv="Content-Type" content="text/html; charset=gb2312">\n <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>\n </head>\n <body dir="ltr">\n <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">\n This is a great project. I like it very much. Can you tell me the specific way of cooperation?\n </div>\n <div id="appendonsend"></div>\n <hr style="display:inline-block;width:98%" tabindex="-1">\n <div id="divRplyFwdMsg" dir="ltr">\n <font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com &lt;e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com&gt; 代表 marywrogers@viralpromotors.com &lt;marywrogers@viralpromotors.com&gt;<br><b>发送时间:</b> 2024年6月27日 9:23<br><b>收件人:</b> lectmaha &lt;lectmaha@hotmail.com&gt;<br><b>主题:</b> Business inquiry-Hisense wants collaboration-allhostaria</font>\n <div>\n &nbsp;\n </div>\n </div>\n <div>\n <p style="text-align:left"><span style="font-size:14px">Hi allhostaria,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Hope this email finds you well.</span></p>\n <p style="text-align:left"><span style="font-size:14px">This is Anna from Wotokol, a famous influencer marketing company that connects international influencers and world-famous brands from China.</span></p>\n <p style="text-align:left"><span style="font-size:14px">You do really great content on your channel and here\'s a campaign that I\'d like to invite you to join.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Here is the info about this activity:</span></p>\n <p style="text-align:left"><span style="font-size:14px">Brand: Hisense &nbsp;</span><a href="https://sctrack.sendcloud.net/track/click2/eNolj8FuwyAQRP8FpTeC2TWsza39jipCeE1qK8RUAZ-q_ntwoj2sZuZpR_uNoyU7SCGkgAGcsWB6bONB9w7JO2cJ_ThoqwqfQXvnjfZA5rxuU963WZ9S5HoPS_hccttrUpzvQmopllp_y0f_1XU_KU8hqWUtcSvxALoXcQ2pxFZtBjWOClGBoSbrYz_cI2AmRDMb5wA0BeoBeQIOzMhXMm-qcH0Evql2feaU91ltsQr59y_fXzTo8gRda0GI.html" target="_blank"><span style="color:rgb(120,6,80); font-size:14px">https://global.hisense.com/</span></a></p>\n <p style="text-align:left"><span style="font-size:14px">Product models for different countries:</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>US:</u></span><span style="font-size:14px"> Hisense 100" Class U76 4K Google TV 100U76N Hisense (hisense-usa.com), Hisense 100" L9 Series TriChroma Laser TV (100L9H-DLT100C) (hisense-usa.com)</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>UK:</u></span><span style="font-size:14px"> Mini-LED Smart TV - 100U7KQTUK - Hisense, 4K Smart Laser TV - 120L9HTUKA - Hisense</span></p>\n <p style="text-align:left"><span style="font-size:14px">Deliverables: one 5-8 mins dedicated YTB video + video commercial usage rights for 3 months</span></p>\n <p style="text-align:left"><span style="font-size:14px">Post time: July 7-July 14, 2024</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">One of the products will be given to you, please let me know your rate for this collab if you\'re interested.</span></p>\n <p style="text-align:left"><span style="font-size:14px">Please feel free to contact me if you have any questions, hope to hear from you soon.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Best Regards,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Anna Chen</span></p>\n <div style="display:flex; overflow-x:auto"></div>\n <div>\n <br><img width="1px" height="1px" src="https://pixel.xin/collect.gif?trace_id=pixel_667cbf27e4b0b64ffa8b634c">\n </div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tbody>\n <tr>\n <td align="center" style="overflow:hidden; font-size:0; padding:0; margin:0; line-height:0"><img alt="" style="width:0; height:0" src="https://sctrack.sendcloud.net/track/open2/eNolTs0KwyAYexfZ0YpaP39ue48xxH46WuYUqj2NvfssJYeQEJI8pAUNhhJCiTDCKRBqlgNe8NlJ7Z0DLb01HFjDSXDvvOJeaDVtZalHifyWE_ZPWMN9rYO3zLB-COUD5BVyS6NaGWYtk5IJpYfs-3G65-aCBpzEqCAugo9RjDw6GCckaAxXqmHfA75ZSyVirkdkJXVCvz96vRyh5x_lOzaT.gif"></td>\n </tr>\n </tbody>\n </table>\n <center>\n <table width="100%" align="center" style="max-width:900px; margin:0 auto; width:100%">\n <tbody>\n <tr align="center">\n </tr>\n <tr align="center">\n <td width="560" style="border-top:1px #e5e5e5 solid; padding-top:15px; padding-bottom:15px">\n <table border="0" cellspacing="0" cellpadding="0" align="center">\n <tbody>\n <tr>\n <td style="background-color:#ddd; border:1px #ddd solid; border-radius:4px; padding:3px 15px; text-align:center"><a href="https://sctrack.sendcloud.net/track/unsubscribe2.do?p=eNptTssKAjEM_JfisVua9H3zP0RKt63sYt3CPk7ivxv1KjOQZMhMckFvrHGcMc7AQdAGtEJCBKkC2hiCsRi9k0ZseQAZQ9QygtXDvIz9WIo8tZr3R5rSeepU5yZyfzAuCeyW2lYpWjvhvUAUoC2N-3qQOsD37H87UwZzwVB1Skp7byEZGEsoNVGj8JNK3PK-pnwXW11Kbv0oYqk7488X__1PS9c3Zbc_0g%3D%3D" target="_blank" rel="noopener" style="color:#a6a6a6; background:#ddd; font-size:12px; text-decoration:none">点击这里取消订阅<br>\n click to unsubscribe</a></td>\n </tr>\n </tbody>\n </table></td>\n </tr>\n </tbody>\n </table>\n </center>\n </div>\n </body>\n</html>';e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<[^>]+>/g,""),e=e.replace(new RegExp("&nbsp;","g")," "),console.log(e)},getData(){login()},change(){Pa();let e={id:"theme-hub"};l(e)},handleTest1(){},change1(){let e={id:"theme-dss"};l(e)},handleLoginHub(){localStorage.setItem("sourceApp","hub"),Aa({mobileOrEmail:"13262005357",password:"123123123"}).then((e=>{e&&(alert("登陆成功"),e.token&&(localStorage.setItem("token",e.token),Gi(e.token)))}))},handleLoginDSS(){localStorage.setItem("sourceApp","dss"),Oa({login_account:"tankangkang0147",password:"123123123"}).then((e=>{0===e.code&&(localStorage.setItem("Authorization","Bearer "+e.data.token),Gi(e.token))}))},handleGetlist(){Ta({page:1,aa:"1"}).then((e=>{}))},getCros(){alert(1),Ia()}}},Ma=Fa;function Ba(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var Na=Ba(Ma,o,a,!1,null,"1f33a3d5",null),$a=Na.exports,Ra=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inbox-container"},[t("div",{staticClass:"search-box"},[t("el-row",{attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.bloggerName")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.title")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.subject,callback:function(t){e.$set(e.searchForm,"subject",t)},expression:"searchForm.subject"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.target")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.popularizePlanName,callback:function(t){e.$set(e.searchForm,"popularizePlanName",t)},expression:"searchForm.popularizePlanName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.tagName")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},on:{change:e.handleTagChange},model:{value:e.searchForm.selectTag,callback:function(t){e.$set(e.searchForm,"selectTag",t)},expression:"searchForm.selectTag"}},e._l(e.tags,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)])],1),t("el-row",{staticClass:"second-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isStar")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.all")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.starred")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isRead")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isRead,callback:function(t){e.$set(e.searchForm,"isRead",t)},expression:"searchForm.isRead"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.unRead")}}),t("el-option",{attrs:{value:2,label:e.$t("inboxMail.search.read")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isReply")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isReply,callback:function(t){e.$set(e.searchForm,"isReply",t)},expression:"searchForm.isReply"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.replyTrue")}}),t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.replyFalse")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.replayTime")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.timeRange,callback:function(t){e.$set(e.searchForm,"timeRange",t)},expression:"searchForm.timeRange"}},[t("el-option",{attrs:{value:"1",label:e.$t("inboxMail.search.time1")}}),t("el-option",{attrs:{value:"2",label:e.$t("inboxMail.search.time2")}}),t("el-option",{attrs:{value:"3",label:e.$t("inboxMail.search.time3")}})],1)],1)])],1),t("el-row",{staticClass:"second-row last-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-btn"},[t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:function(t){e.searchForm.currentPage=1,e.init()}}},[e._v(e._s(e.$t("inboxMail.searchButton.search")))]),t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{click:e.reset}},[e._v(e._s(e.$t("inboxMail.search.reset")))])],1)])],1)],1),t("div",{staticClass:"mail-wrap legacy relative"},[t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.init()}}},[t("el-tooltip",{staticClass:"item1",attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v1"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.del()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v2"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.setUnRead()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-unread mail-unread mail-status"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.setHasRead()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setHasRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative"},[e._v("")])])],1),t("div",{staticClass:"tool-item",on:{click:e.multiReply}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.batchReply"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-plhf"})])],1)])]),t("div",{ref:"mail",staticClass:"mail-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",style:{"min-height":`${e.tableHeight}px`},attrs:{data:e.tableData,"header-cell-class-name":e.headCellClass,"cell-class-name":e.cellClass,"row-class-name":e.rowClass,"row-key":e.getRowKeys},on:{"selection-change":e.switchMail,"row-contextmenu":e.rightClick,"row-click":e.skipDetail}},[t("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",align:"center",width:"48"}}),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("span",{on:{click:function(t){return t.stopPropagation(),e.isFavorites(n)}}},[t("i",{class:0===n.isStar?"start-icon pm-iconfont icon-star0":"start-icon pm-iconfont icon-star1 starcolor"})])]}}])}),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return["1"===n.mailStatus?t("span",[t("i",{staticClass:"dss-iconfont icon-contact2",style:{color:e.primary}})]):e._e(),"2"===n.mailStatus?t("span",{on:{click:function(t){return t.stopPropagation(),e.changeRead(n)}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-read-2 mail-read"})])],1):e._e()]}}])}),t("el-table-column",{attrs:{width:"70"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[1===n.isReply?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.replyTrue"))+" ")]):t("span")]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("el-tooltip",{attrs:{disabled:!(n.bloggerHover&&n.bloggerHover.bloggerId),"popper-class":"wt-tooltip-edm-blogger",placement:"top"}},[t("div",{staticClass:"blogger-card",attrs:{slot:"content"},slot:"content"},[t("div",{staticClass:"card-top"},[t("div",{staticClass:"top-left"},[t("el-image",{staticClass:"blogger-img",attrs:{src:n.bloggerHover.avatar}}),t("img",{staticClass:"platform-img",attrs:{src:i(2183)(`./${n.bloggerHover.platform||"youtube"}.png`)}})],1),t("div",{staticClass:"top-right"},[t("div",{staticClass:"blogger-name"},[t("div",{staticClass:"name"},[e._v(e._s(n.bloggerHover.nickname))]),t("img",{staticClass:"flage",attrs:{src:n.bloggerHover.regionFlag,alt:""}}),t("div",{staticClass:"country"},[e._v(" "+e._s(n.bloggerHover.regionNameZh)+" ")])]),t("div",{staticClass:"blogger-data"},[t("div",{staticClass:"data-item"},[t("div",{staticClass:"item-label"},[e._v("粉丝数")]),t("div",{staticClass:"item-value"},[e._v(" "+e._s(e._f("numFormat")(n.bloggerHover.fansCount))+" ")])]),t("div",{staticClass:"data-item"},[t("div",{staticClass:"item-label"},[e._v("平均观看量")]),t("div",{staticClass:"item-value"},[e._v(" "+e._s(e._f("numFormat")(n.bloggerHover.viewVolumeAvg60d))+" ")])])])])]),t("div",{staticClass:"card-bottom"},[t("div",{staticClass:"bottom-item channel-item"},[t("div",{staticClass:"label"},[e._v("频道ID")]),t("div",{staticClass:"value"},[t("span",{staticClass:"text"},[e._v(e._s(n.bloggerHover.username))]),t("i",{staticClass:"dss-iconfont",on:{click:function(t){return e.copyText(n.bloggerHover.username)}}},[e._v("")])])]),t("div",{staticClass:"bottom-item tag-item"},[t("div",{staticClass:"label"},[e._v("标签")]),n.bloggerHover.tags&&n.bloggerHover.tags.length>0?t("div",{staticClass:"value"},e._l(n.bloggerHover.tags.slice(0,3),(function(n){return t("div",{key:n,staticClass:"tag"},[e._v(" "+e._s(n)+" ")])})),0):t("div",{staticClass:"value"},[e._v("-")])]),t("div",{staticClass:"bottom-item"},[t("div",{staticClass:"label"},[e._v("报价")]),t("div",{staticClass:"value"},[2==n.bloggerHover.quoteType&&n.bloggerHover.amount?t("span",{staticClass:"text"},[e._v(e._s(n.bloggerHover.amount)+e._s(n.bloggerHover.currencyName))]):1==n.bloggerHover.quoteType?t("span",[e._v("免费置换")]):t("span",{staticClass:"text"},[e._v("-")])])]),t("div",{staticClass:"bottom-item plan-item"},[t("div",{staticClass:"label"},[e._v("推广计划")]),n.bloggerHover.planCoopList&&n.bloggerHover.planCoopList.length>0?t("div",{staticClass:"value"},e._l(n.bloggerHover.planCoopList,(function(n){return t("div",{key:n.planId,staticClass:"plan-list"},[t("span",{staticClass:"text"},[e._v(e._s(n.planName))]),t("div",{staticClass:"other"},[n.coopModifyTime?t("span",{staticClass:"sub-text"},[e._v(e._s(e.formatDate(n.coopModifyTime)))]):e._e(),t("span",{staticClass:"sub-text"},[e._v(e._s(n.coopStatusStr))])])])})),0):t("div",{staticClass:"value"},[e._v("-")])])])]),t("div",{staticClass:"blogger-col",on:{click:function(t){return t.stopPropagation(),e.toBloggerDetail(n)}}},[n.bloggerHover.avatar?t("el-image",{staticClass:"blogger-img",attrs:{fit:"cover",src:n.bloggerHover.avatar}}):e._e(),t("p",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold .text-gray-700":""},[e._v(" "+e._s(n.bloggerName)+" ")])],1)])]}}])}),t("el-table-column",{attrs:{width:"140"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[""!==n.popularizePlanName&&null!==n.popularizePlanName?[t("i",{staticClass:"dss-iconfont icon-task",staticStyle:{"font-size":"22px"},style:{color:2===n.isRead?"#999999":"#FF5277"},on:{click:function(t){return t.stopPropagation(),e.skipPlan(n)}}}),t("span",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold text-gray-700":"",attrs:{title:n.popularizePlanName},on:{click:function(t){return t.stopPropagation(),e.skipPlan(n)}}},[e._v(e._s(n.popularizePlanName))])]:t("span",[e._v(e._s(e.$t("inboxMail.search.noTask")))])],2)]}}])}),t("el-table-column",{ref:"a1",scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-main"},[1===n.isAttachment?t("i",{staticClass:"dss-iconfont icon-file-3",staticStyle:{"margin-right":"2px"}}):e._e(),t("span",{staticClass:"mail-subject beyond_eip mr8",class:1===n.isRead?"font-bold text-gray-700":""},[e._v(e._s(n.subject))]),t("span",{staticClass:"mail-content beyond_eip ml6 mr16",staticStyle:{color:"#999999"},domProps:{innerHTML:e._s(e.filterHtmlTag(n.content))}}),t("div",{ref:"mailTagList",staticClass:"mail-tag"},e._l(n.tagList,(function(i,r){return t("div",{key:r,staticClass:"mail-tag-item inbox-item",style:{color:"#fff",background:i.tagColor},attrs:{title:i.tagName},on:{click:function(t){return t.stopPropagation(),e.handleBindTag(n,i)}}},[e._v(" "+e._s(i.tagName.length>6?i.tagName.slice(0,6)+" ...":i.tagName)+" "),t("i",{staticClass:"el-icon-close inbox-icon-close"})])})),0),t("div",{staticClass:"add-block"}),t("div",{staticClass:"tag-add"},[t("span",{staticClass:"tag-btn",staticStyle:{"font-size":"12px"},on:{click:function(t){return t.stopPropagation(),e.addMailTag(n)}}},[t("span",[e._v("+")]),e._v(" "+e._s(e.$t("inboxTable.addTag")))])])])]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticStyle:{color:"#666666"}},[e._v(" "+e._s(n.createTime)+" ")])]}}])})],1)],1),t("div",{staticClass:"mail-foot mb16"},[e.tableTotal>0?t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"update:currentPage":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:current-page":function(t){return e.$set(e.searchForm,"currentPage",t)},"current-change":e.changePage,"size-change":e.changeSize}}):e._e()],1)]),e.isShowSettag?t("AddTagsDialog",{attrs:{isShowDialog:e.isShowSettag,defaultTag:e.selectedTags},on:{updateTag:e.updateTag,closeAddTagsDialog:function(t){e.isShowSettag=!1}}}):e._e(),t("el-dialog",{attrs:{title:e.$t("inboxTable.tip"),visible:e.dialogVisible,width:"420px","show-close":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"delete-shield",staticStyle:{display:"flex"}},[t("i",{staticClass:"delete-shield-icon el-icon-warning"}),t("div",{staticStyle:{display:"flex","flex-direction":"column"}},[t("span",[e._v(e._s(e.$t("inboxTable.delMail"))+"?")]),t("span",[e._v(e._s(e.$t("inboxTable.deleteTip")))])])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("inboxTable.cancel")))]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleConfirmDel}},[e._v(e._s(e.$t("inboxTable.confirm")))]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleDelShield}},[e._v(e._s(e.$t("inboxTable.delShieldBtn")))])],1)])],1)},ja=[];i(8111),i(2489),i(7588),i(1701);async function La(e){let t=await wa("/edm/inbox/selInbox",e);return"0"===t.code?t.data:null}async function za(e){let t=await wa("/edm/inbox/setBatchAsUnread",e);return t}async function Va(e){let t=await wa("/edm/inbox/setBatchAsRead",e);return t}async function Ha(){let e=await va("/edm/inbox/mailRemind");return e?e.data:null}async function Ua(e){let t=await _a("/edm/inbox/signRead",e);return!!t.success||null}async function Wa(e){let t=await ba("/edm/inbox/delInbox",e);return t.success}async function qa(e){let t=await ba("/edm/inbox/delInboxAndShield",e);return t.success}async function Ya(e){let t=await _a("/edm/inbox/starInbox",e);return t.success}async function Ga(e){let t=await va(`/edm/inbox/inboxDetail/${e}`);return t.success?t.data:null}async function Ka(e){let t=await va(`/edm/inbox/inboxDialogue/${e}`);return t.success?t.data:(Un.Message.error(t.message),null)}async function Xa(e){let t=await ba("/edm/inbox/delOneMail",e);return t||null}async function Za(e){let t=await _a("/edm/tag/bindTag",e);return"0"===t.code||null}async function Ja(){let e=await va("/edm/tag/tags"),t=[{id:10464,tag:"很有希望",tagColor:"#1F81FF",tagType:2},{id:10465,tag:"系统标签1",tagColor:"#1F81FF",tagType:1},{id:10466,tag:"自定义标签3",tagColor:"#1F81FF",tagType:1},{id:10467,tag:"自定义标签2",tagColor:"#1F81FF",tagType:2},{id:10468,tag:"自定义标签1",tagColor:"#1F81FF",tagType:2}];return"0"===e.code?e.data:t}async function Qa(e){let t=await wa("/edm/mail/preUpload",e);return t||null}async function es(e){let t=await wa("/edm/mail/preAbroadUpload",e);return t||null}async function ts(e,t,n){return await Ca(e,t,n)}async function ns(e){let t=await wa("/edm/outboxV2/multiReply",e);return t}function is(e){return wa("/woto-crm/plan/planListToAdd",e)}function rs(e){return va(`/edm/inbox/inboxCrmData/${e}`)}function os(e){return wa("/woto-crm/planBlog/updatePlanBlogStatus",e)}function as(){return va("/user/equity/userAiPoint")}function ss(e){return va(`/edm/inbox/emailSummary/${e}`)}function ls(e){return va(`/edm/inbox/emailSummary/generate/${e}`)}function cs(e){return va(`/edm/inbox/smartReply/${e}`)}function us(e){return va(`/edm/inbox/keyInformation/${e}`)}function ds(e){return va(`/edm/inbox/keyInformation/extract/${e}`)}function hs(e){return wa("/edm/outbox/aiReply2Write/save",e)}function ps(e){return wa("/user/info/addBlogInfo",e)}function fs(e){return wa("/edm/inbox/aiUserFeedBack/save",e)}function ms(e){return va(`/edm/inbox/aiUserFeedBack/${e}`)}function gs(e){return wa("/woto-crm/planBlog/batchMovePlanBlog",e)}function vs(e){return wa("/edm/inbox/refreshInboxCrm",e)}function ys(e){return va(`/edm/inbox/aiReplyStrategy/generate/${e}`)}function bs(){return va("/edm/ai/aiEmailStrategy/get")}function ws(e){return va(`/edm/inbox/emailStrategy/${e}`)}function _s(){return va("/edm/dictionary/languages/get")}function Cs(){return va("/edm/dictionary/tones/get")}function xs(e){return wa("/edm/inbox/smartReply/generate",e)}function Ss(e){return va("/edm/qiye/mailOwnerCheck",e)}function ks(e){return wa("/woto-crm/planBlog/addPlanBlog",e)}function Es(e){return va("/edm/tag/searchTags",e)}function Ds(e){return ya(`/edm/tag/delTag/${e}`)}function As(e){return wa("/edm/tag/addSign",e)}function Os(e){return va("/user/hubUser/sonFather",e)}function Ts(e){return va("/edm/template/templates",e)}function Is(e){return va("/edm/inbox/selBloggerHover",e)}var Ps=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},["inbox"===e.searchType?t("div",{staticClass:"search"},[e._l(e.inbox,(function(n,i){return t("div",{key:i,staticClass:"search-item"},[t("span",[e._v(e._s(e.$t(n.key)))]),t("div",[t("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.query[n.key],callback:function(t){e.$set(e.query,n.key,t)},expression:"query[item.key]"}})],1)])})),t("div",{staticClass:"search-item"},[t("el-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$i18n.t("searchButton.search")))]),t("el-button",{staticClass:"search-btn",on:{click:e.handleReset}},[e._v(e._s(e.$i18n.t("searchButton.reset")))])],1)],2):e._e(),"outbox"===e.searchType?t("div",{staticClass:"search"},[e._l(e.outbox,(function(n,i){return t("div",{key:i,staticClass:"search-item"},[t("span",{key:i},[e._v(e._s(n.txt))]),t("div",[t("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.query[n.key],callback:function(t){e.$set(e.query,n.key,t)},expression:"query[item.key]"}})],1)])})),t("div",{staticClass:"search-item"},[t("el-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")]),t("el-button",{staticClass:"search-btn",attrs:{type:"primary","&#x26;#x3C;el-button":""},on:{click:e.handleReset}},[e._v(e._s(e.$t("edm5.v44")))])],1)],2):e._e()])},Fs=[],Ms={name:"edm-search",props:{searchType:{default:"inbox",type:String}},data(){return{query:{},test:[{name:"search.name"}],aa:this.$i18n.t("search.name"),outbox:[{id:oa.v1(),key:"name",txt:"红人名称:",type:"input"},{id:oa.v1(),key:"title",txt:"标题正文:",type:"input"},{id:oa.v1(),key:"target",txt:"任务名称:",type:"input"},{id:oa.v1(),kety:"mail",txt:"邮件类型:",type:"select"}],inbox:[{id:oa.v1(),key:"search.name",txt:"红人名称",type:"input"},{id:oa.v1(),key:"search.title",txt:"正文标题:",type:"input"},{id:oa.v1(),key:"search.target",txt:"任务名称:",type:"input"},{id:oa.v1(),key:"search.tag",txt:"标签名称:",type:"select"},{id:oa.v1(),key:"search.isRead",txt:"已读状态:",type:"select"}]}},created(){},methods:{handleSearch(){let e=Object.entries(this.query),t=Object.fromEntries(e);this.$emit("handleSearch",t)},handleReset(){let e=Object.entries(this.query);Object.fromEntries(e);this.query["search.name"]&&(this.query["search.name"]=""),this.query["search.title"]&&(this.query["search.title"]=""),this.query["search.target"]&&(this.query["search.target"]=""),this.$emit("handleReset")}}},Bs=Ms,Ns=Ba(Bs,Ps,Fs,!1,null,"4d651f22",null),$s=Ns.exports;i(116);function Rs(e,t){if(0===arguments.length||!e)return null;const n=t||"{y}-{m}-{d} {h}:{i}:{s}";let i;"object"===typeof e?i=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),i=new Date(e));const r={y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),a:i.getDay()},o=n.replace(/{([ymdhisa])+}/g,((e,t)=>{const n=r[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function js(e,t){return e.map((function(e,n){return e[t]}))}function Ls(e){const t=new Date,n=new Date(t-864e5*(e-1)),i=t.getFullYear(),r=t.getMonth()+1,o=t.getDate(),a=n.getFullYear(),s=n.getMonth()+1,l=n.getDate(),c=i+"-"+(r<10?"0"+r:r)+"-"+(o<10?"0"+o:o),u=a+"-"+(s<10?"0"+s:s)+"-"+(l<10?"0"+l:l);return[u,c]}function zs(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,i=e.getDate(),r=e.getHours(),o=e.getMinutes(),a=e.getSeconds();n>=1&&n<=9&&(n="0"+n),i>=0&&i<=9&&(i="0"+i),o>=0&&o<=9&&(o="0"+o),a>=0&&a<=9&&(a="0"+a);var s=t+n+i+r+o+a;return s}function Vs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Hs(e){const t=new Date((new Date).getTime()+6e4*(new Date).getTimezoneOffset()+288e5),n=new Date(e),i=(n-t)/1e3;return i<3600?"1小时内发送":i>=3600&&i<86400?Math.ceil(i/3600)+"小时后发送":i>=86400&&i<=2592e3?Math.ceil(i/86400)+"天后发送":e}function Us(e,t){Ws(e,(function(e){qs(e,t)}))}function Ws(e,t){let n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(){if(200!==n.status)return window.open(e,"_blank"),!1;t(n.response)},n.onerror=function(){return window.open(e,"_blank"),!1},n.send()}function qs(e,t){if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,t);else{let n=document.createElement("a");n.href=window.URL.createObjectURL(e),n.download=t,n.click(),window.URL.revokeObjectURL(n.href)}}function Ys(e){const t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return t-e}function Gs(e){const t={};return Object.keys(e).forEach((n=>{Array.isArray(e[n])&&0===e[n].length||""===e[n]||null===e[n]||void 0===e[n]||(t[n]=e[n])})),t}async function Ks(e=!1,t=0,n){try{let i=await as();return"0"===i.code?(e&&(0===i.data||i.data<t)?Un.Message.error("您的AI点数不足,请联系客服,充值后使用"):e&&i.data>=t&&n(i.data),i.data):0}catch(Ml){return 0}}function Xs(e){const t=[{label:"美元",value:0,code:"USD",symbol:"$"},{label:"欧元",value:1,code:"EUR",symbol:"€"},{label:"英镑",value:2,code:"GBP",symbol:"£"},{label:"日元",value:3,code:"JPY",symbol:"¥"},{label:"人民币",value:4,code:"CNY",symbol:"¥"},{label:"加拿大元",value:5,code:"CAD",symbol:"$"},{label:"澳大利亚元",value:6,code:"AUD",symbol:"$"},{label:"瑞士法郎",value:7,code:"CHF",symbol:"Fr"},{label:"新西兰元",value:8,code:"NZD",symbol:"$"},{label:"韩元",value:9,code:"KRW",symbol:"₩"},{label:"印度卢比",value:10,code:"INR",symbol:"₹"},{label:"巴西雷亚尔",value:11,code:"BRL",symbol:"R$"},{label:"南非兰特",value:12,code:"ZAR",symbol:"R"},{label:"西班牙比塞塔",value:13,code:"ESP",symbol:"₧"},{label:"泰国铢",value:14,code:"THB",symbol:"฿"},{label:"瑞典克朗",value:15,code:"SEK",symbol:"kr"},{label:"新加坡元",value:16,code:"SGD",symbol:"$"},{label:"阿联酋迪拉姆",value:17,code:"AED",symbol:"د.إ"},{label:"墨西哥比索",value:18,code:"MXN",symbol:"$"},{label:"俄罗斯卢布",value:19,code:"RUB",symbol:"₽"},{label:"沙特里亚尔",value:20,code:"SAR",symbol:"ر.س"},{label:"马来西亚林吉特",value:21,code:"MYR",symbol:"RM"},{label:"港元",value:22,code:"HKD",symbol:"HK$"},{label:"柬埔寨瑞尔",value:23,code:"KHR",symbol:"៛"},{label:"菲律宾比索",value:24,code:"PHP",symbol:"₱"},{label:"越南盾",value:25,code:"VND",symbol:"₫"},{label:"印尼盾",value:26,code:"IDR",symbol:"Rp"}];let n="";return t.forEach((t=>{t.value==e&&(n=t.symbol)})),n}var Zs=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShowDialog,title:e.$t("NP.np65"),"close-on-click-modal":!1,width:"600px","custom-class":"add-tags-dialog","append-to-body":e.appendBody},on:{"update:visible":function(t){e.isShowDialog=t},close:e.closeAddTagsDialog}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("div",{staticClass:"operate-box"},["search"===e.optType?t("div",{staticClass:"search-tag"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:e.$t("NP.np178"),clearable:""},on:{clear:e.getPublishTags},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getPublishTags.apply(null,arguments)}},model:{value:e.searchKeywords,callback:function(t){e.searchKeywords=t},expression:"searchKeywords"}},[t("i",{staticClass:"iconfont icon-a-sousuoxiao15x",attrs:{slot:"suffix"},on:{click:e.getPublishTags},slot:"suffix"})]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleAddTag}},[t("i",{staticClass:"el-icon-plus"}),e._v(e._s(e.$t("NP.np179")))])],1):t("div",{staticClass:"add-tag"},[t("el-input",{attrs:{placeholder:e.$t("inboxTagDialog.default")},model:{value:e.tagInputValue,callback:function(t){e.tagInputValue=t},expression:"tagInputValue"}},[t("div",{staticClass:"popup-colorPicker",attrs:{slot:"suffix"},slot:"suffix"},[t("div",{staticClass:"custom-picker-icon"},[t("i",{staticClass:"dss-iconfont icon-tianse",style:{color:e.iconColor}}),t("el-color-picker",{attrs:{predefine:e.predefineColors,size:"mini","color-format":"hex"},on:{change:e.pickerChange},model:{value:e.tagColor,callback:function(t){e.tagColor=t},expression:"tagColor"}})],1)])]),t("div",{staticClass:"add",on:{click:e.addPublishTag}},[t("i",{staticClass:"el-icon-check"})]),t("div",{staticClass:"cancel",on:{click:e.handleCancelAdd}},[t("i",{staticClass:"el-icon-close"})])],1)]),t("div",{staticClass:"all-tag"},e._l(e.allTagsArr,(function(n){return t("el-tag",{key:n.id,staticClass:"tag-item",style:{"background-color":n.tagColor},on:{click:function(t){return e.selectTag(n)}}},[e._v(e._s(n.tag)),2===n.tagType?t("i",{staticClass:"dss-iconfont icon-close",on:{click:function(t){return t.stopPropagation(),e.deletePublishTag(n.id)}}}):e._e()])})),1),t("div",{staticClass:"title"},[e._v(e._s(e.$t("inboxTagDialog.selectTag"))+":")]),t("div",{staticClass:"selected-tags"},e._l(e.selectedTagsArr,(function(n){return t("el-tag",{key:n.tag,staticClass:"tag-item",style:{"background-color":n.tagColor}},[e._v(e._s(n.tag)),t("i",{staticClass:"dss-iconfont icon-close",on:{click:function(t){return e.clearTag(n.tag)}}})])})),1)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.cancelAddTags}},[e._v(e._s(e.$t("common.cancle")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmAddTags}},[e._v(" "+e._s(e.$t("common.confirm"))+" ")])],1)])},Js=[],Qs={props:{isShowDialog:{type:Boolean,default:!1},defaultTag:{type:Array,default:()=>[]},appendBody:{type:Boolean,default:!1},isOnlyTagName:{type:Boolean,default:!1}},data(){return{loading:!1,searchKeywords:"",tagInputValue:"",tagColor:"#808080",iconColor:"#808080",predefineColors:["#FF5277","#FF9EC3","#BF9EFF","#4BB792","#FFAA36","#52BAFF","#5F52FF","#27C9B6"],allTagsArr:[],selectedTagsArr:[],optType:"search"}},async created(){await this.getPublishTags(),this.initDefaultTag()},methods:{initDefaultTag(){const e=[];this.defaultTag.forEach((t=>{const n=this.allTagsArr.find((e=>e.tag===t));n?e.push({...n}):e.push({tag:t,tagColor:"#808080",tagType:2})})),this.selectedTagsArr=e},closeAddTagsDialog(){this.$emit("closeAddTagsDialog")},cancelAddTags(){this.closeAddTagsDialog()},confirmAddTags(){const e=this.selectedTagsArr.map((e=>this.isOnlyTagName?e.tag:e));console.log(this.selectedTagsArr),this.$emit("updateTag",e),this.closeAddTagsDialog()},pickerChange(e){this.iconColor=e},handleAddTag(){this.optType="add",this.searchKeywords=""},handleCancelAdd(){this.optType="search"},async getPublishTags(){try{this.loading=!0;const e=await Es({tagValue:this.searchKeywords});"0"===e.code&&(this.allTagsArr=e.data||[])}catch(Ml){console.log(Ml)}finally{this.loading=!1}},async addPublishTag(){try{if(!this.validateTag())return!1;const e=await As({tag:this.tagInputValue,tagColor:this.tagColor});"0"===e.code?(this.selectedTagsArr.push({tag:this.tagInputValue,tagColor:this.tagColor}),this.tagInputValue="",this.getPublishTags()):this.$message.error(e.message)}catch(Ml){console.log(Ml)}},async deletePublishTag(e){try{const t=await Ds(e);"0"===t.code&&setTimeout((()=>{this.getPublishTags()}),500)}catch(Ml){console.log(Ml)}},validateTag(){const e=this.tagInputValue;return""===e?(this.$message({type:"warning",message:this.$t("inboxTagDialog.default")}),!1):!(e.length>30)||(this.$message({type:"warning",message:"标签最多30个字符!"}),!1)},selectTag(e){const t=this.selectedTagsArr.findIndex((t=>t.tag===e.tag));if(t>-1)return!1;this.selectedTagsArr.push(e)},clearTag(e){this.selectedTagsArr=this.selectedTagsArr.filter((t=>t.tag!==e))}}},el=Qs,tl=Ba(el,Zs,Js,!1,null,"5db4fac2",null),nl=tl.exports,il=i(4353),rl=i.n(il),ol={name:"edm-inbox",components:{Search:$s,AddTagsDialog:nl},props:{sourceApp:{type:String,default:""},taskDetailUrl:{type:String,default:"/taskDetail"},defaultTop:{type:Number,default:118}},data(){return{primary:"dss"===localStorage.getItem("sourceApp")?"#1990FF":"#FF5277",dialogVisible:!1,handleTime_inbox:null,handleTime_msg:null,tagOp:null,mailId:"",mailTags:[],isShowSettag:!1,tableHeight:0,page:1,value:"",searchForm:{timeRange:"1",selectTag:"",subject:"",popularizePlanName:"",tagName:[],isRead:"",isStar:"",isReply:"",currentPage:1,pageSize:20,bloggerName:"",sentMail:""},switchMailData:[],unReadIds:[],hasReadIds:[],loading:!1,tableData:[],tableTotal:0,selectData:[],tags:[],tagList:[],defaultTagList:[],bloggerArr:[],selectedReplyIds:[],selectedTags:[]}},computed:{routeParams(){return this.$route.query}},watch:{routeParams(e,t){e.nums&&this.init()}},mounted(){const{isdetail:e}=this.$route.query;e?(console.log("sss",JSON.parse(localStorage.getItem("searchFormInbox"))),this.searchForm=JSON.parse(localStorage.getItem("searchFormInbox"))):localStorage.removeItem("searchFormInbox"),this.$nextTick((()=>{this.init(),this.initTags(),this.tableHeight=window.innerHeight-this.$refs["table"].$el.getBoundingClientRect().top-66})),this.$bus.$on("mailTip",(()=>{this.init()}))},methods:{initTags(){this.tags=[],Ja().then((e=>{e&&e.map((e=>{this.tags.push({id:e.id,value:e.id.toString(),label:e.tag})}))}))},multiReply(){0!==this.selectedReplyIds.length?this.selectedReplyIds.length>50?this.$message.warning(this.$t("inboxMail.search.tip1")):(localStorage.setItem("multiReplyBlogInfo",JSON.stringify(this.bloggerArr)),localStorage.setItem("multiReplyIds",JSON.stringify(this.selectedReplyIds)),this.$emit("multiReply",this.bloggerArr.length!==this.selectedReplyIds.length)):this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},init(){this.loading=!0;let e=this.searchForm.isStar;0===e&&(this.searchForm.isStar=""),console.log("params",this.searchForm),localStorage.removeItem("hasInboxDetail"),La(this.searchForm).then((e=>{this.loading=!1;let t=[];e?(e.rows.forEach(((e,n)=>{let i={};i.id=e.id,i.chatId=e.chatId,e.isRead&&1===e.isRead?i.mailStatus="1":e.isRead&&2===e.isRead&&(i.mailStatus="2"),i.taskId=e.taskId,i.isRead=e.isRead,i.maxId=e.maxId,i.isReply=e.isReply,i.isStar=e.isStar,i.popularizePlanName=e.popularizePlanName,i.bloggerName=e.bloggerName,i.subject=e.subject,i.content=e.content,i.isAttachment=e.isAttachment,i.popularizePlanName=e.popularizePlanName,i.popularizePlanId=e.popularizePlanId,i.bloggerId=e.bloggerId,i.addresser=e.addresser,i.bloggerHover=e.bloggerHover,i.upbEsId=e.upbEsId,e.tag||(e.tag=""),e.tagColor||(e.tagColor="");let r=e.tag.split(","),o=e.tagColor.split(",");if(i.tagList=[],r.length!==o.length)i.tagName=this.$t("inboxTable.errorTag");else{let e=[];r.forEach(((t,n)=>{e.push({tagName:t,tagColor:o[n]})})),i.tagList=e}i.createTime=e.createTime,t.push(i)})),this.tableData=t,this.tableTotal=e.total):this.$message.warning(this.$t("inboxTable.requestError"))}))},handleBindTag(e,t){if(t&&!t.tagColor&&!t.tagName)return!1;this.$confirm(this.$t("inboxTable.delTag"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),customClass:"del-model",type:"warning"}).then((()=>{this.mailId=e.id+"";const n=e.tagList.filter((e=>!!e.tagName))||[];let i=[];n.length>1&&(i=n.filter((e=>e.tagName!==t.tagName)).map((e=>({tag:e.tagName,tagColor:e.tagColor})))),this.updateTag(i,!0)})).catch((()=>{}))},handleTagChange(e){if(e){let t=[];e.forEach((e=>{this.tags.forEach((n=>{e===n.id.toString()&&t.push(n.label)}))})),this.searchForm.tagName=t}else this.searchForm.tagName=[]},reset(){localStorage.removeItem("searchFormInbox"),localStorage.removeItem("hasInboxDetail"),this.searchForm.bloggerName="",this.searchForm.subject="",this.searchForm.popularizePlanName="",this.searchForm.selectTag=[],this.searchForm.tagName=[],this.searchForm.isStar="",this.searchForm.timeRange="1",this.searchForm.isRead="",this.searchForm.isReply="",this.searchForm.sentMail="",this.init()},changePage(e){this.searchForm.currentPage=e,this.init()},changeSize(e){this.searchForm.currentPage=1,this.searchForm.pageSize=e,this.init()},setUnRead(){if(0!==this.switchMailData.length)return 0===this.unReadIds.length?(this.$message.warning(this.$t("edm5.v3")),void this.$refs.table.clearSelection()):void za({ids:this.unReadIds}).then((e=>{e&&"0"===e.code?(this.$message({message:this.$t("inboxTable.unReadSuccess"),type:"success"}),this.unReadIds=[],this.switchMailData=[],this.$refs.table.clearSelection(),this.init()):this.$message.error(e.message)}));this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},async setHasRead(){if(0!==this.switchMailData.length){if(0===this.hasReadIds.length)return this.$message.warning(this.$t("edm5.v270")),void this.$refs.table.clearSelection();try{const e=await Va({ids:this.hasReadIds});"0"===e.code?(this.$message({message:this.$t("inboxTable.unReadSuccess"),type:"success"}),this.hasReadIds=[],this.switchMailData=[],this.$refs.table.clearSelection(),this.init()):this.$message.error(e.message)}catch(Ml){console.log(Ml)}}else this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},async changeRead(e){console.log(e);let t=await za({ids:[e.maxId]});t&&"0"===t.code?(this.$message({message:this.$t("inboxTable.unReadSuccess"),type:"success"}),this.init()):this.$message.error(t.message)},del(){0!==this.switchMailData.length?this.dialogVisible=!0:this.$message({message:this.$t("inboxTable.delmailWarning"),type:"warning"})},handleConfirmDel(){const e={chatId:this.switchMailData};Wa(e).then((e=>{e&&(this.$message({message:this.$t("inboxTable.del"),type:"success",duration:1500}),this.dialogVisible=!1,this.switchMailData=[],this.init())}))},handleDelShield(){const e={chatId:this.switchMailData};qa(e).then((e=>{e&&(this.$message({message:this.$t("inboxTable.del"),type:"success",duration:1500}),this.dialogVisible=!1,this.switchMailData=[],this.init())}))},isFavorites(e){const t={mailId:e.id,isStar:0===e.isStar?1:0};Ya(t).then((t=>{t&&(0===e.isStar?this.$message({message:this.$t("inboxTable.collMail"),type:"success",duration:1500}):this.$message({message:this.$t("inboxTable.cancelMail"),type:"success",duration:1500})),this.init()}))},handleReset(e){this.searchForm.bloggerName="",this.searchForm.subject=""},addMailTag(e){this.mailId=e.id.toString(),console.log(e),this.selectedTags=e.tagList?e.tagList.filter((e=>!!e.tagName)).map((e=>e.tagName)):[],this.isShowSettag=!0},async updateTag(e=[],t=!1){try{const n=await Za({mailId:this.mailId,tags:e});n&&(t?this.$message({type:"success",message:this.$t("inboxTagDialog.delTagSuccess")}):this.$message({type:"success",message:this.$t("inboxTagDialog.bindSuccess")}),this.init(),this.initTags())}catch(Ml){}},skipDetail(e){localStorage.setItem("searchFormInbox",JSON.stringify(this.searchForm)),localStorage.setItem("hasInboxDetail",!0),localStorage.setItem("currentPath",this.$route.path),console.log("dd",JSON.stringify(this.searchForm)),this.$router.push({path:"/inboxDetail",query:{id:e.id,chatId:e.chatId,popularizePlanId:e.popularizePlanId,popularizePlanName:e.popularizePlanName,maxId:e.maxId}})},skipTask(e){const t=this.$router.resolve({path:this.taskDetailUrl,query:{id:e.taskId,name:e.popularizePlanName,is_share:1,is_operate:1}});window.open(t.href,"_blank")},skipPlan(e){console.log(e),this.$emit("inboxSkipPlan",e)},switchMode(){this.$emit("switchMode")},getRowKeys(e){return e.id},switchMail(e){console.log("select",e),this.bloggerArr=[],this.selectedReplyIds=[],this.bloggerArr=Array.from(new Map(e.map((e=>[e.bloggerName,{bloggerId:e.bloggerId,bloggerName:e.bloggerId?e.bloggerName:e.addresser}]))).values()),this.selectedReplyIds=js(e,"maxId"),this.switchMailData=[],this.unReadIds=[],this.hasReadIds=[],e.forEach((e=>{this.switchMailData.push(e.chatId),2===e.isRead&&this.unReadIds.push(e.maxId),1===e.isRead&&this.hasReadIds.push(e.maxId)}))},clearTableData(){this.$refs.table.clearSelection(),this.selectData=[]},filterHtmlTag(e){return e&&(e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<img[^>]*>/gi,""),e=e.replace(/<[^>]+>|&[^>]+;/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},headCellClass(){return"head"},rowClass(){return"row"},cellClass(){return"box-cell"},changeTagsHeight(e,t){if(e){let e=[],n=this.tagList.findIndex((e=>e.tag.trim()===t.trim()));this.tagList.forEach(((t,i)=>{i<=n&&e.push(t)})),this.tagList=e}else this.tagList=this.defaultTagList},rightClick(e,t,n){return n.preventDefault(),this.$contextmenu({items:[{label:"在新标签页中打开邮件",icon:"el-icon-plus",onClick:()=>{const t=this.$router.resolve({path:"/inboxDetail",query:{id:e.id,chatId:e.chatId,popularizePlanId:e.popularizePlanId,popularizePlanName:e.popularizePlanName,maxId:e.maxId}});window.open(t.href,"_blank")}},{label:"刷新列表数据",icon:"el-icon-refresh",onClick:()=>{this.init()}},{label:"复制邮件主题",icon:"el-icon-document-copy",disabled:!e.subject,onClick:()=>{this.copyText(e.subject)}},{label:"复制推广计划名",icon:"el-icon-document-copy",disabled:!e.popularizePlanName,onClick:()=>{this.copyText(e.popularizePlanName)}},{label:"添加标签",icon:"el-icon-edit-outline",onClick:()=>{this.addMailTag(e)}}],event:n,customClass:"contextmenu-container",zIndex:3,minWidth:230}),!1},copyText(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({type:"success",message:"已复制到剪贴板"})},formatDate(e){return rl()(e).format("YYYY-MM-DD")},toBloggerDetail(e){this.$emit("toBloggerDetail",e)}},destroyed(){}},al=ol,sl=Ba(al,Ra,ja,!1,null,"8ebdaa72",null),ll=sl.exports,cl=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.mailLoading,expression:"mailLoading"}],staticClass:"edm-inbox-detail"},[t("div",{staticClass:"wrap"},[t("div",{staticClass:"back",on:{click:e.goBack}},[t("i",{staticClass:"el-icon-arrow-left"})]),t("div",{staticClass:"tag-info"},[t("div",{staticClass:"tag"},[e._l(e.tagList,(function(n,i){return t("div",{key:i,staticClass:"tag-item mr12 mb8",style:{color:"#fff",background:n.tag_color}},[e._v(" "+e._s(n.tag)+" "),t("i",{staticClass:"dss-iconfont icon-close",staticStyle:{color:"#ffffff","padding-left":"5px",cursor:"pointer","z-index":"999"},on:{click:function(t){return e.delTag(n)}}})])})),t("div",{staticClass:"tag-btn cursor-pointer mr12 mb8",on:{click:e.addTagsStart}},[t("i",{staticClass:"dss-iconfont icon-add2"}),e._v(" "+e._s(e.$t("inboxDetail.addTag"))+" ")])],2),t("div",{staticClass:"turn-page"},[t("div",{staticClass:"send-email"},[e._v(" "+e._s(e.$t("edm5.v4"))+e._s(e.mailData.receiver)+" ")]),t("div",[t("el-button",{attrs:{type:"text",icon:"el-icon-arrow-left",disabled:0===e.checkEmailIndex},on:{click:e.handlePrevious}},[e._v(e._s(e.$t("inboxDetail.previousPage")))]),t("el-button",{attrs:{type:"text",disabled:e.checkEmailIndex===e.tableData.length-1},on:{click:e.handleNext}},[e._v(e._s(e.$t("inboxDetail.nextPage"))),t("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)])]),t("div",{staticClass:"blogger-part"},[t("div",{staticClass:"blogger-info"},[e.bloggerInfo.bloggerId?t("div",{staticClass:"inner-blogger"},[t("el-image",{staticClass:"blogger-avatar",attrs:{fit:"cover",src:e.bloggerInfo.bloggerAvatar},on:{click:function(t){return e.toBloggerDetail(e.bloggerInfo.bloggerId,e.bloggerInfo)}}}),t("div",{staticClass:"info-right"},[t("div",{staticClass:"info-top"},[t("div",{staticClass:"blogger-name",on:{click:function(t){return e.toBloggerDetail(e.bloggerInfo.bloggerId,e.bloggerInfo)}}},[e._v(" "+e._s(e.bloggerInfo.bloggerName)+" ")]),t("div",{staticClass:"blogger-id"},[e._v(" (频道ID:"+e._s(e.bloggerInfo.bloggerUserName)+") ")]),t("img",{staticClass:"flag",attrs:{src:e.bloggerInfoRest.regionFlag,alt:""}}),t("div",{staticClass:"country"},[e._v(e._s(e.bloggerInfoRest.regionNameZh))]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.bloggerInfoRest.tags&&e.bloggerInfoRest.tags.length>0,expression:"\n bloggerInfoRest.tags && bloggerInfoRest.tags.length > 0\n "}],staticClass:"tags"},[t("TagColumn",{attrs:{tags:e.bloggerInfoRest.tags}})],1)]),t("div",{staticClass:"info-bottom"},[t("div",{staticClass:"row-data"},[t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(" "+e._s(e._f("numFormat")(e.bloggerInfoRest.fansCount))+" ")]),t("div",{staticClass:"row-data_item-name"},[e._v("粉丝数")])]),t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(" "+e._s(e._f("numFormat")("instagram"===e.bloggerInfoRest.platform?e.bloggerInfoRest.likeVolumeAvg60d:e.bloggerInfoRest.viewVolumeAvg60d))+" ")]),t("div",{staticClass:"row-data_item-name"},[e._v(" "+e._s("instagram"===e.bloggerInfoRest.platform?"平均点赞量":"平均观看量")+" ")])]),t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(" "+e._s(e._f("rateFormat")(e.bloggerInfoRest.interactiveRate60d))+" ")]),t("div",{staticClass:"row-data_item-name"},[e._v("平均互动率")])]),e.bloggerInfoRest.gmv30d?t("div",{staticClass:"row-data_item"},[t("div",{staticClass:"row-data_item-num"},[e._v(e._s(e._f("numFormat")(e.bloggerInfoRest.gmv30d)))]),t("div",{staticClass:"row-data_item-name"},[e._v("近30日新增GMV")])]):e._e()]),t("el-tooltip",{attrs:{"popper-class":"wt-tooltip",placement:"top"}},[t("div",{staticStyle:{color:"#333"},attrs:{slot:"content"},slot:"content"},[e._v("收藏")]),t("span",{staticClass:"btn",on:{click:e.handleAddFavorites}},[t("i",{class:{"icon-img":!0}})])]),t("button",{staticClass:"double-btn"},[t("el-tooltip",{attrs:{"popper-class":"btn-tooltip wt-tooltip",content:e.$t("inboxDetail.normalReply"),placement:"top"}},[t("div",{staticClass:"text",on:{click:function(t){return e.showReplyNew(!1,void 0)}}},[e._v(" "+e._s(e.$t("inboxDetail.reply2"))+" ")])]),t("el-divider",{staticClass:"search-divider",attrs:{direction:"vertical"}}),t("el-tooltip",{attrs:{"popper-class":"btn-tooltip wt-tooltip",content:e.$t("inboxDetail.simpleReply"),placement:"top"}},[t("div",{staticClass:"quick-reply",on:{click:e.simpleReplay}},[t("img",{staticClass:"img",attrs:{src:i(3074)}})])])],1)],1)])],1):t("div",{staticClass:"outer-blogger"},[t("div",{staticClass:"outer-name"},[e._v(e._s(e.$t("inboxDetail.outerBlogger")))]),t("div",{staticClass:"outer-email"},[e._v(" "+e._s(e.$t("inboxDetail.email"))+e._s(e.bloggerInfo.email)+" ")])])]),e.bloggerInfo.bloggerId&&"null"!==e.bloggerInfo.planId?t("div",{staticClass:"blogger-plan"},[t("div",{staticClass:"plan-top"},[t("span",{staticClass:"title"},[e._v(e._s(e.$t("inboxDetail.plan")))]),t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[t("i",{staticClass:"el-icon-more more_icon"}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"a"}},[e._v("关联推广计划")]),t("el-dropdown-item",{attrs:{command:"b"}},[e._v("修改合作状态")])],1)],1)],1),t("div",{staticClass:"plan-bottom"},[t("span",{staticClass:"plan_name"},[e._v(e._s("-1"==e.bloggerInfo.planId||"null"==e.bloggerInfo.planId?e.$t("inboxDetail.noPlan"):e.bloggerInfo.planName))]),e.bloggerInfo.bloggerId&&"null"!==e.bloggerInfo.planId?t("div",{staticClass:"coo_status"},[e._v(" "+e._s(e._f("coopStatusFilter")(e.bloggerInfo.coopStatus))+" ")]):e._e()])]):e._e()]),e.bloggerInfo.bloggerId&&"null"!==e.bloggerInfo.planId?t("div",{staticClass:"blogger-opt"},[e._l(e.optList,(function(n,i){return t("div",{key:i,staticClass:"opt-item",on:{click:function(t){return e.clickHandle(n.key,n.activeName)}}},[t("i",{class:["dss-iconfont",n.icon]}),t("span",{staticClass:"txt"},[e._v(e._s(n.name))])])})),t("el-dropdown",{staticClass:"email-drop",on:{command:e.clickHandle}},[t("i",{staticClass:"dss-iconfont icon-gengduo-changguizhuangtai"}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"report"}},[e._v(e._s(e.$t("inboxDetail.menu7")))]),t("el-dropdown-item",{attrs:{command:"blackList"}},[e._v(e._s(e.$t("inboxDetail.menu8")))]),t("el-dropdown-item",{attrs:{command:"detail"}},[e._v(e._s(e.$t("inboxDetail.menu9")))])],1)],1)],2):e._e(),t("div",{staticClass:"email-part"},[t("div",{staticClass:"email-list"},e._l(e.mailList,(function(n,r){return t("div",{key:n.id,class:{"list-row":!0,"list-row-blogger":2===n.type}},[e.isHasAi&&n.isShowSummary&&1===n.type?t("AiSummary",{attrs:{id:n.id,aiPoint:e.aiPoint,isRebuild:n.isRebuild},on:{getEmailIntention:function(t){return e.getEmailIntention(n)},handleShow:e.handleSummaryShow,refreshAiPoint:e.getAiPoint,showAiReply:t=>e.showAiReply(n,t)}}):e._e(),t("div",{staticClass:"item-main"},[t("div",{staticClass:"top"},[t("div",{staticClass:"person"},[t("el-image",{staticStyle:{width:"24px",height:"24px","border-radius":"50%",cursor:"pointer"},attrs:{src:n.bloggerAvatar},on:{click:function(t){t.stopPropagation(),n.bloggerId&&1===n.type&&e.skipBlogDetail(n.bloggerId,n)}}}),1===n.type?[t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticClass:"username"},[e._v(e._s(n.bloggerName))]),t("div",{staticClass:"nickname"},[e._v(" "+e._s(e.$t("inboxDetail.channelId"))+":"+e._s(n.bloggerUserName)+" ")])]),t("span",{staticClass:"nickname",staticStyle:{cursor:"pointer"},on:{click:function(t){t.stopPropagation(),n.bloggerId&&e.skipBlogDetail(n.bloggerId,n)}}},[e._v(" "+e._s(n.bloggerName)+" ")])])]:e._e(),2===n.type?[t("span",{staticClass:"nickname"},[e._v(" "+e._s(n.userName)+" ")])]:e._e()],2),t("div",{staticClass:"time"},[t("span",{directives:[{name:"show",rawName:"v-show",value:n.isExpand,expression:"mail.isExpand"}],staticClass:"show-full",on:{click:function(t){return e.toggleFullContent(n)}}},[e._v(e._s(n.isShowFull?"隐藏原始邮件":"查看原始邮件"))]),1==n.type?t("el-popover",{attrs:{placement:"top",width:"150",trigger:"click","popper-class":"emoji-popover input-popper",content:"邮件ID:"+n.id}},[t("span",{staticClass:"date",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(n.createTime))])]):t("span",{staticClass:"date"},[e._v(e._s(n.createTime))]),1===n.type&&e.isHasAi?t("span",{class:{keywords:!0,"summary-btn":!0,"not-allowed":n.isShowSummary},on:{click:function(t){return e.openAiSummary(n.id)}}},[t("img",{staticStyle:{width:"88px",height:"18px"},attrs:{src:i(7862),alt:""}})]):e._e(),2===n.type&&0===r?t("span",{class:{read:!0,"has-read":2==n.isRead}},[t("i",{class:["dss-iconfont",2==n.isRead?"icon-kejian":"icon-bukejian"]}),t("span",[e._v(e._s(2==n.isRead?e.$t("inboxDetail.read"):e.$t("inboxDetail.unRead")))])]):e._e()],1)]),n.attachment?.length>0&&n.isExpand?t("div",{staticClass:"item-files"},e._l(n.attachment,(function(n){return t("div",{key:n.uuid,staticClass:"file",on:{click:function(t){return e.downFile(n)}}},[t("i",{staticClass:"dss-iconfont icon-file-3"}),t("span",{staticClass:"name"},[e._v(e._s(n.name))]),t("i",{staticClass:"dss-iconfont icon-download"})])})),0):e._e(),t("div",{staticClass:"center"},[t("div",{staticClass:"ai-box2"},[t("div",{staticClass:"box-txt"},[n.isExpand?t("div",{staticClass:"txt-content"},[t("EmailBox",{attrs:{content:n.isShowFull?n.cleanContent:n.content}})],1):t("div",{staticClass:"txt-base",domProps:{innerHTML:e._s(e.delHtmlTag(n.content))}})]),t("div",{staticClass:"box-toggle",on:{click:function(t){return e.toggleEmailExpand(n)}}},[t("i",{staticClass:"dss-iconfont icon-arrow",class:{aiOpen:n.isExpand}}),t("span",[e._v(e._s(n.isExpand?e.$t("inboxDetail.close"):e.$t("inboxDetail.open")))])])])]),t("div",{staticClass:"bottom"})]),n.attachment?.length>0&&!n.isExpand?t("div",{staticClass:"item-files"},e._l(n.attachment,(function(n){return t("div",{key:n.uuid,staticClass:"file",on:{click:function(t){return e.downFile(n)}}},[t("i",{staticClass:"dss-iconfont icon-file-3"}),t("span",{staticClass:"name"},[e._v(e._s(n.name))]),t("i",{staticClass:"dss-iconfont icon-download"})])})),0):e._e()],1)})),0)])]),e.isShowSettag?t("AddTagsDialog",{attrs:{isShowDialog:e.isShowSettag,defaultTag:e.selectedTags},on:{updateTag:e.updateTag,closeAddTagsDialog:function(t){e.isShowSettag=!1}}}):e._e(),e.showSimpleReplay?t("SimpleReplay",{attrs:{maxId:e.maxId},on:{close:function(t){e.showSimpleReplay=!1},fullWrite:e.fullWrite,refresh:e.getMailGroup}}):e._e(),e.intentionVisible?t("EmailIntention",{attrs:{id:e.id,maxId:e.maxId,visible:e.intentionVisible,bloggerId:e.bloggerInfo.bloggerId,currentMail:e.currentMail},on:{"update:visible":function(t){e.intentionVisible=t},refreshPoint:e.getAiPoint}}):e._e(),e.planVisible?t("EmailPlan",{attrs:{visible:e.planVisible,bloggerId:e.bloggerInfo.bloggerId,upbEsId:e.bloggerInfo.upbEsId,platform:e.bloggerInfo.platform,planIdRel:e.bloggerInfo.planId,maxId:e.maxId,detailData:e.mailData},on:{"update:visible":function(t){e.planVisible=t},change:e.changeEmailPlan}}):e._e(),e.coopStatusVisible?t("CoopStatus",{attrs:{visible:e.coopStatusVisible,upbEsId:e.bloggerInfo.upbEsId,coopStatus:e.bloggerInfo.coopStatus,planId:e.bloggerInfo.planId},on:{"update:visible":function(t){e.coopStatusVisible=t},change:e.getCrmInfo}}):e._e(),e.emailRelyVisible?t("EmailRely",{attrs:{visible:e.emailRelyVisible,loading:e.aiReplayBtnLoading,content:e.replayInfo.replyContent},on:{"update:visible":function(t){e.emailRelyVisible=t},confirm:function(t){return e.handleAiReplay(e.replayInfo.replyContent,e.replayInfo.id)}}}):e._e(),e.aiRelyVisible?t("AiReply",{attrs:{visible:e.aiRelyVisible,summaryInfo:e.summaryInfo,aiPoint:e.aiPoint,maxId:e.maxId,currentMail:e.currentMail},on:{"update:visible":function(t){e.aiRelyVisible=t},refreshPoint:e.getAiPoint,finished:e.getMailGroup,fullWrite:e.fullWrite}}):e._e()],1)},ul=[];function dl(e){return wa("/edm/outboxV2/writeMultipleEmail",e)}async function hl(e){let t=await wa("/edm/mail/dayNumber",e);return t}async function pl(e){return wa("/edm/mail/getRepeatContactBlogger",e)}async function fl(e){let t=await wa("/edm/mail/checkMultiEmailVariables",e);return t}async function ml(e){let t=await wa("/edm/conf/bindGmail",e);return t}async function gl(e){let t=await va("/edm/conf/getGmail",e);return t}async function vl(e){let t=await wa("/edm/gmail/auth",e);return t}async function yl(e){let t=await wa(`/dataService/data/query/${e.code}`,e.data);return t}async function bl(e){let t=await wa("/edm/conf/sendType/bind",e);return t}function wl(e){return va("/edm/conf/sendType/get",e)}function _l(){return va("/edm/qiye/haveOtherMailProvider")}function Cl(e){return va("/edm/qiye/unbindCheck",e)}function xl(e){return va("/edm/qiye/oauth2Config",e)}function Sl(e){return va("/edm/qiye/saveToken",e)}function kl(e){return wa("/woto-crm/bloggerRisk/selectBloggerRiskByIds",e)}function El(e){return wa("/edm/mail/getCooperatedBlogger",e)}function Dl(e){return va(`/edm/template/template/${e}`)}function Al(e){return va(`/user/equity/getUnlockBloggerEmailNum/${e}`)}function Ol(e){return wa("/edm/gmail/alias_email/auth",e)}function Tl(e){return wa("/edm/gmail/alias_email/cancel_auth",e)}
91
91
  /*!
92
92
  * vue-i18n v8.28.2
93
93
  * (c) 2022 kazuya kawaguchi
Binary file