!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=1)}([function(module,exports){module.exports=vendors},function(module,exports,__webpack_require__){var angular=__webpack_require__(2),$=__webpack_require__(3),global=__webpack_require__(4),url2=__webpack_require__(5);__webpack_require__(6),__webpack_require__(7);var app=angular.module("login",[]);app.service("caRequireService",function($http,$rootScope){this.initCaConfig=function(){var init=function(){try{if(!$rootScope.initCaConfig)return TCA.config({license:"MIIHcAYJKoZIhvcNAQcCoIIHYTCCB10CAQExDjAMBggqgRzPVQGDEQUAMIICtQYJKoZIhvcNAQcBoIICpgSCAqJ7Iklzc3VlciI6IigoKC4qQz1DTi4qKXwoLipPPeWMl+S6rOS6kemHh+mAmuS/oeaBr+aKgOacr+aciemZkOWFrOWPuC4qKXwoLipPVT3miJDpg73ov5DokKXpg6guKil8KC4qQ0495YyX5Lqs5LqR6YeH6YCa5L+h5oGv5oqA5pyv5pyJ6ZmQ5YWs5Y+4Q0EuKikpezR9fCgoLipDTj3ljJfkuqzkupHph4fpgJrkv6Hmga/mioDmnK/mnInpmZDlhazlj7hDQS4qKXwoLipPVT3miJDpg73ov5DokKXpg6jvvIjkuKrkurrvvIkuKil8KC4qTz3ljJfkuqzkupHph4fpgJrkv6Hmga/mioDmnK/mnInpmZDlhazlj7guKikpezN9fCgoLipDTj3miJDpg73kupHph4fpgJrnp5HmioDm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M2QTVCMjI5MjlCNzVERjBERkJDMEQ3OTYwVwYDVR0uBFAwTjBMoEqgSIZGUG9ydC9Ub3BDQS9wdWJsaWMvaXRydXNjcmw/Q0E9NUE0N0VDRjEwNTgwNEE1QzZBNUIyMjkyOUI3NURGMERGQkMwRDc5NjBvBgNVHR8EaDBmMGSgYqBghl5odHRwOi8vWW91cl9TZXJ2ZXJfTmFtZTpQb3J0L1RvcENBL3B1YmxpYy9pdHJ1c2NybD9DQT01QTQ3RUNGMTA1ODA0QTVDNkE1QjIyOTI5Qjc1REYwREZCQzBENzk2MB8GA1UdIwQYMBaAFD2JxkfLcYWw2TvWSLCJ2ef+79rZMB0GA1UdDgQWBBRLO+1/h4KGh6ASkrEu5gAl2LURADAMBggqgRzPVQGDdQUAA0cAMEQCIL201xfMjR+Y7Gxuq+1y+SxLqSXfJfMfWpM/K4TuV2GCAiDoPocZ+ReODefsGqhvtQ27OpvcYiA/N1ZB55qbXTKEezGCAUUwggFBAgEBMG0wVTEmMCQGA1UEAwwd5aSp6K+a5a6J5L+h5rWL6K+VU00y55So5oi3Q0ExDjAMBgNVBAsMBVRPUENBMQ4wDAYDVQQKDAVUT1BDQTELMAkGA1UEBhMCQ04CFF8lnNrMgrt+8wWzAHuLjsm9+bXyMAwGCCqBHM9VAYMRBQCgaTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNTA1MDcxMDQzNTZaMC8GCSqGSIb3DQEJBDEiBCBsy4/R+UdsWWrlSCVyuZE5rlKadD5Z1nAId7o+AK5CDzAMBggqgRzPVQGCLQUABEYwRAIgQmKqwbgn5AKn/gHMzrtbG7Cxbn66OaeMHWPnrLsVetYCIMM3OYm2L8dqRE5Peq1sIVOo4pT+K8c0leNG+KReZIpa",exportKeyAble:!1,disableExeUrl:!0}),$rootScope.initCaConfig=!0,!0}catch(e){return e instanceof TCACErr?$rootScope.initCaConfigHelper=!0:message.message("配置错误,请刷新页面重试"),!1}};if("undefined"==typeof TCA){var oScript=document.createElement("script");oScript.src=global.static.url+"/asset/ca/topEsa.min.js",document.body.appendChild(oScript),oScript.onload=function(){init()}}else init()},this.getFromSubject=function(cert,name){try{for(var t=cert.subject().match(/(S(?!N)|L|O(?!U)|OU|SN|CN|E)=([^=]+)(?=, |$)/g),i=0;i0?($scope.cert=$scope.certList[0],$scope.certName=caRequireService.getFromSubject($scope.cert,"CN"),$scope.certNameO=caRequireService.getFromSubject($scope.cert,"O"),$scope.certId=$scope.cert.serialNumber()):$scope.certName=null}}catch(e){timeOut++,e instanceof TCACErr?console.log(e.toStr()):console.log("配置错误,请刷新页面重试")}}()},1e3)},"ca"===$scope.loginType&&$scope.getCaVerify(),$scope.$watch(function(){return $scope.certId},function(){$scope.caErrorSet.show=!1,$scope.certId&&($scope.caVariable.personListShow=!1,$http.get(global.app.api+"/auth/ca/tosign").then(function(caToken){$scope.caVariable.caToken=caToken}))}),$scope.closePersonList=function(){$scope.getCaVerify(),$scope.caVariable.personListShow=!1},$scope.getSignMessage=function(){$scope.caVariable.signed=$scope.cert.signMessage($scope.caVariable.caToken.tosign,!1),$http.get(global.app.api+"/auth/ca/person?key="+encodeURIComponent($scope.caVariable.caToken.key)+"&signed="+encodeURIComponent($scope.caVariable.signed)).then(function(personList){if($scope.caVariable.personList=personList,$scope.caVariable.personList&&$scope.caVariable.personList.length>0){if(1==$scope.caVariable.personList.length)return void $scope.loginInCa($scope.caVariable.personList[0].id);$scope.caVariable.personListShow=!0}},function(error){$scope.caError(error)})},$scope.loginInCa=function(id){$http.post(global.app.api+"/auth/ca?key="+encodeURIComponent($scope.caVariable.caToken.key)+"&signed="+encodeURIComponent($scope.caVariable.signed),id,{headers:{Accept:"text/plain"}}).then(function(accessToken){$scope.initCertListInterval&&$interval.cancel($scope.initCertListInterval),$scope.setTokenFun(accessToken)},function(error){$scope.caError(error)})}})},function(module,exports,__webpack_require__){module.exports=__webpack_require__(0)(2)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(0)(0)},function(module,exports){module.exports={www:{url:"http://www.yuncaitong.cn",api:"http://www.yuncaitong.cn/api"},app:{url:"http://app.yuncaitong.cn",api:"http://app.yuncaitong.cn/api"},sell:{url:"http://sell.yuncaitong.cn",api:"http://sell.yuncaitong.cn/api"},sellMall:{url:"http://sell.mall.yuncaitong.cn"},shop:{url:"http://shop.yuncaitong.cn",api:"http://shop.yuncaitong.cn/api"},school:{url:"//leao.scu.edu.cn/provider/"},file:{url:"http://file.yuncaitong.cn"},help:{url:"http://help.yuncaitong.cn"},api:{url:"http://api.yuncaitong.cn"},pay:{url:"http://pay.yuncaitong.cn"},cms:{api:"http://cms.yuncaitong.cn/sfw/"},mall:{url:"http://mall.yuncaitong.cn",api:"http://mall.yuncaitong.cn/api"},mallCm:{url:"http://cm.mall.yuncaitong.cn",api:"http://cm.mall.yuncaitong.cn/api"},mallEs:{url:"http://es.mall.yuncaitong.cn",api:"http://es.mall.yuncaitong.cn/api"},mallJd:{url:"http://jd.mall.yuncaitong.cn",api:"http://jd.mall.yuncaitong.cn/api"},weixin:{url:"http://weixin.yuncaitong.cn",api:"http://weixin.yuncaitong.cn/api"},supplier:{url:"http://supplier.yuncaitong.cn",api:"http://supplierapi.yuncaitong.cn"},static:{url:"http://static.yuncaitong.cn"},fileTypeMimes:{Attach:"*",Image:"image/gif,image/jpeg,image/bmp,image/png",Pdf:"application/pdf",Excel:"application/vnd.ms-excel",ImgPdf:"image/gif,image/jpeg,image/bmp,image/png,application/pdf"},fileTypeExts:{Image:"gif,jpg,jpeg,bmp,png",Attach:"*",Pdf:"pdf",Excel:"xla,xlc,xls,xlt,xlw,xlsx",ImgPdf:"gif,jpg,jpeg,bmp,png,pdf"},fileTypeDescs:{Image:"Image Files",Attach:"Attach Files",Pdf:"Pdf Files",Excel:"Excel Files",ImgPdf:"ImgPdf Files"},fileSizeLimits:{Image:"2MB",Attach:"10MB",Pdf:"10MB",Excel:"10MB",ImgPdf:"10MB"}}},function(module,exports){module.exports=function(url){return this._url=url,this._protocol,this._host,this._port,this._path,this._hash=null,this._params={},this.init=function(){if(null!=this._url){var s=this._url,index=s.indexOf("#");if(index>0&&(this._hash=s.substr(index+1),s=s.substring(0,index)),(index=s.indexOf("?"))>0){for(var parts=s.substring(index+1).split("&"),i=0;i0&&(this._path=s.substring(index),s=s.substring(0,index)),(index=s.indexOf(":"))>0?(this._host=s.substring(0,index),this._port=s.substring(index+1)):(this._host=s,this._port=80)}},this.init(),this.url=function(url){if(null==url){if(80==this._port)var s=this._protocol+"://"+this._host+this._path;else s=this._protocol+"://"+this._host+":"+this._port+this._path;null!=this._hash&&(s+="#"+this._hash);var arr=new Array;for(var k in this._params)if(this._params[k])for(var i=0;i0&&(s+="?"+arr.join("&")),s}this._url=url,this.init()},this.protocol=function(protocol){return null!=protocol&&(this._protocol=protocol),this._protocol},this.host=function(host){return null!=host&&(this._host=host),this._host},this.port=function(port){return null!=port&&(this._port=port),this._port},this.path=function(path){return null!=path&&(this._path=path),this._path},this.hash=function(hash){return null!=hash&&(this._hash=hash),this._hash},this.param=function(k,v){return null!=v&&(this._params[k]=[v]),null==this._params[k]||0==this._params[k].length?null:this._params[k].length>1?this._params[k]:this._params[k][0]},this}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(0)(17)},function(module,exports){}]);