@10yun/open-sdk 0.3.110 → 0.3.111
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.
- package/dist/{404-i7fCvC_i.js → 404-D3m-7V6A.js} +1 -1
- package/dist/{404-CHPEN8FG.cjs → 404-Du-sB1sX.cjs} +1 -1
- package/dist/{alone_run-DC90STG3.cjs → alone_run-B-Ux5WKw.cjs} +1 -1
- package/dist/{alone_run-BFMJreRv.js → alone_run-B9jzvPuv.js} +1 -1
- package/dist/{index-srr6e88-.cjs → index-DadX5uLm.cjs} +9 -9
- package/dist/{index-DXcmZVOZ.js → index-DxXLQtbQ.js} +262 -262
- package/dist/{login-DMRtVOgN.cjs → login-DSWqh8jn.cjs} +1 -1
- package/dist/{login-DnsIq7fh.js → login-DnIWZuJH.js} +1 -1
- package/dist/{none-Bmg76Ugj.js → none-6wano-wM.js} +1 -1
- package/dist/{none-Do9DI4lH.cjs → none-DhQI6eOr.cjs} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./index-srr6e88-.cjs");require("pinia");const s=require("vue");function K(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var V={exports:{}},J=V.exports,H;function X(){return H||(H=1,function(r,l){var p;(function(v,u){r.exports=u()})(J,function(){function v(e){this.mode=f.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,o=this.data.length;t<o;t++){var i=[],n=this.data.charCodeAt(t);n>65536?(i[0]=240|(n&1835008)>>>18,i[1]=128|(n&258048)>>>12,i[2]=128|(n&4032)>>>6,i[3]=128|n&63):n>2048?(i[0]=224|(n&61440)>>>12,i[1]=128|(n&4032)>>>6,i[2]=128|n&63):n>128?(i[0]=192|(n&1984)>>>6,i[1]=128|n&63):i[0]=n,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}v.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,o=this.parsedData.length;t<o;t++)e.put(this.parsedData[t],8)}};function u(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}u.prototype={addData:function(e){var t=new v(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[o][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=o&&o<=6&&(i==0||i==6)||0<=i&&i<=6&&(o==0||o==6)||2<=o&&o<=4&&2<=i&&i<=4?this.modules[e+o][t+i]=!0:this.modules[e+o][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,o=0;o<8;o++){this.makeImpl(!0,o);var i=w.getLostPoint(this);(o==0||e>i)&&(e=i,t=o)}return t},createMovieClip:function(e,t,o){var i=e.createEmptyMovieClip(t,o),n=1;this.make();for(var c=0;c<this.modules.length;c++)for(var h=c*n,a=0;a<this.modules[c].length;a++){var d=a*n,m=this.modules[c][a];m&&(i.beginFill(0,100),i.moveTo(d,h),i.lineTo(d+n,h),i.lineTo(d+n,h+n),i.lineTo(d,h+n),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=w.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var o=0;o<e.length;o++){var i=e[t],n=e[o];if(this.modules[i][n]==null)for(var c=-2;c<=2;c++)for(var h=-2;h<=2;h++)c==-2||c==2||h==-2||h==2||c==0&&h==0?this.modules[i+c][n+h]=!0:this.modules[i+c][n+h]=!1}},setupTypeNumber:function(e){for(var t=w.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=i}for(var o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=i}},setupTypeInfo:function(e,t){for(var o=this.errorCorrectLevel<<3|t,i=w.getBCHTypeInfo(o),n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<6?this.modules[n][8]=c:n<8?this.modules[n+1][8]=c:this.modules[this.moduleCount-15+n][8]=c}for(var n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=c:n<9?this.modules[8][15-n-1+1]=c:this.modules[8][15-n-1]=c}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var o=-1,i=this.moduleCount-1,n=7,c=0,h=this.moduleCount-1;h>0;h-=2)for(h==6&&h--;;){for(var a=0;a<2;a++)if(this.modules[i][h-a]==null){var d=!1;c<e.length&&(d=(e[c]>>>n&1)==1);var m=w.getMask(t,i,h-a);m&&(d=!d),this.modules[i][h-a]=d,n--,n==-1&&(c++,n=7)}if(i+=o,i<0||this.moduleCount<=i){i-=o,o=-o;break}}}},u.PAD0=236,u.PAD1=17,u.createData=function(e,t,o){for(var i=T.getRSBlocks(e,t),n=new _,c=0;c<o.length;c++){var h=o[c];n.put(h.mode,4),n.put(h.getLength(),w.getLengthInBits(h.mode,e)),h.write(n)}for(var a=0,c=0;c<i.length;c++)a+=i[c].dataCount;if(n.getLengthInBits()>a*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+a*8+")");for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(u.PAD0,8),n.getLengthInBits()>=a*8));)n.put(u.PAD1,8);return u.createBytes(n,i)},u.createBytes=function(e,t){for(var o=0,i=0,n=0,c=new Array(t.length),h=new Array(t.length),a=0;a<t.length;a++){var d=t[a].dataCount,m=t[a].totalCount-d;i=Math.max(i,d),n=Math.max(n,m),c[a]=new Array(d);for(var g=0;g<c[a].length;g++)c[a][g]=255&e.buffer[g+o];o+=d;var S=w.getErrorCorrectPolynomial(m),k=new D(c[a],S.getLength()-1),A=k.mod(S);h[a]=new Array(S.getLength()-1);for(var g=0;g<h[a].length;g++){var y=g+A.getLength()-h[a].length;h[a][g]=y>=0?A.get(y):0}}for(var B=0,g=0;g<t.length;g++)B+=t[g].totalCount;for(var P=new Array(B),M=0,g=0;g<i;g++)for(var a=0;a<t.length;a++)g<c[a].length&&(P[M++]=c[a][g]);for(var g=0;g<n;g++)for(var a=0;a<t.length;a++)g<h[a].length&&(P[M++]=h[a][g]);return P};for(var f={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},L={L:1,M:0,Q:3,H:2},b={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},w={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;w.getBCHDigit(t)-w.getBCHDigit(w.G15)>=0;)t^=w.G15<<w.getBCHDigit(t)-w.getBCHDigit(w.G15);return(e<<10|t)^w.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;w.getBCHDigit(t)-w.getBCHDigit(w.G18)>=0;)t^=w.G18<<w.getBCHDigit(t)-w.getBCHDigit(w.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return w.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case b.PATTERN000:return(t+o)%2==0;case b.PATTERN001:return t%2==0;case b.PATTERN010:return o%3==0;case b.PATTERN011:return(t+o)%3==0;case b.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case b.PATTERN101:return t*o%2+t*o%3==0;case b.PATTERN110:return(t*o%2+t*o%3)%2==0;case b.PATTERN111:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new D([1],0),o=0;o<e;o++)t=t.multiply(new D([1,C.gexp(o)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:return 8;case f.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),o=0,i=0;i<t;i++)for(var n=0;n<t;n++){for(var c=0,h=e.isDark(i,n),a=-1;a<=1;a++)if(!(i+a<0||t<=i+a))for(var d=-1;d<=1;d++)n+d<0||t<=n+d||a==0&&d==0||h==e.isDark(i+a,n+d)&&c++;c>5&&(o+=3+c-5)}for(var i=0;i<t-1;i++)for(var n=0;n<t-1;n++){var m=0;e.isDark(i,n)&&m++,e.isDark(i+1,n)&&m++,e.isDark(i,n+1)&&m++,e.isDark(i+1,n+1)&&m++,(m==0||m==4)&&(o+=3)}for(var i=0;i<t;i++)for(var n=0;n<t-6;n++)e.isDark(i,n)&&!e.isDark(i,n+1)&&e.isDark(i,n+2)&&e.isDark(i,n+3)&&e.isDark(i,n+4)&&!e.isDark(i,n+5)&&e.isDark(i,n+6)&&(o+=40);for(var n=0;n<t;n++)for(var i=0;i<t-6;i++)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(o+=40);for(var g=0,n=0;n<t;n++)for(var i=0;i<t;i++)e.isDark(i,n)&&g++;var S=Math.abs(100*g/t/t-50)/5;return o+=S*10,o}},C={glog:function(e){if(e<1)throw new Error("glog("+e+")");return C.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return C.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},E=0;E<8;E++)C.EXP_TABLE[E]=1<<E;for(var E=8;E<256;E++)C.EXP_TABLE[E]=C.EXP_TABLE[E-4]^C.EXP_TABLE[E-5]^C.EXP_TABLE[E-6]^C.EXP_TABLE[E-8];for(var E=0;E<255;E++)C.LOG_TABLE[C.EXP_TABLE[E]]=E;function D(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var o=0;o<e.length&&e[o]==0;)o++;this.num=new Array(e.length-o+t);for(var i=0;i<e.length-o;i++)this.num[i]=e[i+o]}D.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),o=0;o<this.getLength();o++)for(var i=0;i<e.getLength();i++)t[o+i]^=C.gexp(C.glog(this.get(o))+C.glog(e.get(i)));return new D(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=C.glog(this.get(0))-C.glog(e.get(0)),o=new Array(this.getLength()),i=0;i<this.getLength();i++)o[i]=this.get(i);for(var i=0;i<e.getLength();i++)o[i]^=C.gexp(C.glog(e.get(i))+t);return new D(o,0).mod(e)}};function T(e,t){this.totalCount=e,this.dataCount=t}T.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T.getRSBlocks=function(e,t){var o=T.getRsBlockTable(e,t);if(o==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=o.length/3,n=[],c=0;c<i;c++)for(var h=o[c*3+0],a=o[c*3+1],d=o[c*3+2],m=0;m<h;m++)n.push(new T(a,d));return n},T.getRsBlockTable=function(e,t){switch(t){case L.L:return T.RS_BLOCK_TABLE[(e-1)*4+0];case L.M:return T.RS_BLOCK_TABLE[(e-1)*4+1];case L.Q:return T.RS_BLOCK_TABLE[(e-1)*4+2];case L.H:return T.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function _(){this.buffer=[],this.length=0}_.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var o=0;o<t;o++)this.putBit((e>>>t-o-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var I=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function q(){return typeof CanvasRenderingContext2D<"u"}function x(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var o=t.toString().match(/android ([0-9]\.[0-9])/i);o&&o[1]&&(e=parseFloat(o[1]))}return e}var U=function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){var o=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(o.width/n),Math.floor(o.height/n),this.clear();function c(g,S){var k=document.createElementNS("http://www.w3.org/2000/svg",g);for(var A in S)S.hasOwnProperty(A)&&k.setAttribute(A,S[A]);return k}var h=c("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:o.colorLight});h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(h),h.appendChild(c("rect",{fill:o.colorLight,width:"100%",height:"100%"})),h.appendChild(c("rect",{fill:o.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<n;a++)for(var d=0;d<n;d++)if(t.isDark(a,d)){var m=c("use",{x:String(d),y:String(a)});m.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),h.appendChild(m)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),Q=document.documentElement.tagName.toLowerCase()==="svg",R=Q?U:q()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(c,h,a,d,m,g,S,k,A){if("nodeName"in c&&/img/i.test(c.nodeName))for(var y=arguments.length-1;y>=1;y--)arguments[y]=arguments[y]*t;else typeof k>"u"&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);o.apply(this,arguments)}}function i(c,h){var a=this;if(a._fFail=h,a._fSuccess=c,a._bSupportDataURI===null){var d=document.createElement("img"),m=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)},g=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)};d.onabort=m,d.onerror=m,d.onload=g,d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else a._bSupportDataURI===!0&&a._fSuccess?a._fSuccess.call(a):a._bSupportDataURI===!1&&a._fFail&&a._fFail.call(a)}var n=function(c,h){this._bIsPainted=!1,this._android=x(),this._htOption=h,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=h.width,this._elCanvas.height=h.height,c.appendChild(this._elCanvas),this._el=c,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return n.prototype.draw=function(c){var h=this._elImage,a=this._oContext,d=this._htOption,m=c.getModuleCount(),g=d.width/m,S=d.height/m,k=Math.round(g),A=Math.round(S);h.style.display="none",this.clear();for(var y=0;y<m;y++)for(var B=0;B<m;B++){var P=c.isDark(y,B),M=B*g,O=y*S;a.strokeStyle=P?d.colorDark:d.colorLight,a.lineWidth=1,a.fillStyle=P?d.colorDark:d.colorLight,a.fillRect(M,O,g,S),a.strokeRect(Math.floor(M)+.5,Math.floor(O)+.5,k,A),a.strokeRect(Math.ceil(M)-.5,Math.ceil(O)-.5,k,A)}this._bIsPainted=!0},n.prototype.makeImage=function(){this._bIsPainted&&i.call(this,e)},n.prototype.isPainted=function(){return this._bIsPainted},n.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},n.prototype.round=function(c){return c&&Math.floor(c*1e3)/1e3},n}():function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){for(var o=this._htOption,i=this._el,n=t.getModuleCount(),c=Math.floor(o.width/n),h=Math.floor(o.height/n),a=['<table style="border:0;border-collapse:collapse;">'],d=0;d<n;d++){a.push("<tr>");for(var m=0;m<n;m++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+h+"px;background-color:"+(t.isDark(d,m)?o.colorDark:o.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),i.innerHTML=a.join("");var g=i.childNodes[0],S=(o.width-g.offsetWidth)/2,k=(o.height-g.offsetHeight)/2;S>0&&k>0&&(g.style.margin=k+"px "+S+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();function $(e,t){for(var o=1,i=G(e),n=0,c=I.length;n<=c;n++){var h=0;switch(t){case L.L:h=I[n][0];break;case L.M:h=I[n][1];break;case L.Q:h=I[n][2];break;case L.H:h=I[n][3];break}if(i<=h)break;o++}if(o>I.length)throw new Error("Too long data");return o}function G(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}return p=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:L.H},typeof t=="string"&&(t={text:t}),t)for(var o in t)this._htOption[o]=t[o];typeof e=="string"&&(e=document.getElementById(e)),this._htOption.useSVG&&(R=U),this._android=x(),this._el=e,this._oQRCode=null,this._oDrawing=new R(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},p.prototype.makeCode=function(e){this._oQRCode=new u($(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},p.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},p.prototype.clear=function(){this._oDrawing.clear()},p.CorrectLevel=L,p})}(V)),V.exports}var z=X();const F=K(z),Y={components:{SwitchBusiness:N.SwitchBusiness},data(){return{loadOngoing:!1,loginMode:"access",loginJump:!1,cache_remember:"off",cache_privacy:"off",account_mobile:"",account_password:"",account_password2:"",captcha_code:"",sms_code:"",account_business_id:0,reg_invite:"",regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",chainShowFlag:!1,chainAccountList:[],chainTempToken:"",qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:""}},watch:{$route({query:r}){r.type=="reg"&&this.$nextTick(()=>{this.loginMode="reg"})},account_mobile(r){this.$nextTick(()=>{let l=this.$refs.account_mobile.$el.querySelector("input");const v=getComputedStyle(l).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);v&&v[0]==="rgb(232, 240, 254)"&&this.onBlur()})},loginMode(r){r=="reg"&&(this.regInviteNeed=!!this.systemConfig.reg_invite_need)}},computed:{currentLanguage(){return this.languageList[this.languageName]||"Language"}},created(){this.cache_remember=localStorage.getItem("cacheLoginRemember")||"off",this.cache_privacy=localStorage.getItem("cacheLoginPrivacy")||"off",this.account_mobile=localStorage.getItem("cacheLoginMobile")||""},async mounted(){this.loginMode=this.$route.query.type==="reg"?"reg":"access",this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll")),N.useSdkSystemStore().$subscribe((r,l)=>{r.events.key=="useSSOLogin"&&l.useSSOLogin==!0&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password="",this.account_password2="",this.captcha_code="",this.reg_invite=""},methods:{handleRemember(r){r=="on"?localStorage.setItem("cacheLoginRemember",r):localStorage.removeItem("cacheLoginRemember")},handleRrivacy(r){r=="on"?(localStorage.setItem("cacheLoginPrivacy",r),this.chackServerUrl().catch(l=>{})):localStorage.removeItem("cacheLoginPrivacy"),this.cache_privacy=r},handleForgot(){this.$message.warning("请联系管理员!")},chackServerUrl(r){return new Promise((l,p)=>{l()})},switchLoginMode(r){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),r==="qrcode"?(this.loginMode="qrcode",this.scanQrcodeRefresh()):r==="access"?this.loginMode="access":r==="smsLogin"?(this.loginMode="smsLogin",this.refreshCode()):this.loginMode=r})},refreshCode(){this.captcha_code="",!(this.codeLoad>0)&&(setTimeout(r=>{this.codeLoad++},600),this.$request.flagGet("BASE_PASSPORT_CODE_DATA",{account_mobile:this.account_mobile}).then(({data:r})=>{var l;this.codeKey=r.key,this.codeUrl=r.img,(l=this.$refs.captcha_code)==null||l.focus()}).catch(r=>{this.codeUrl="error"}).finally(r=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet("BASE_PASSPORT_CODE_NEED",{account_mobile:this.account_mobile}).then(r=>{this.loadOngoing=!1,r.data=="need"?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(r=>{this.loadOngoing=!1}).finally(r=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:"warning",message:"正在登录中,请勿重新确认~"}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!="on"){this.$message.warning("请同意协议");return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning("请输入正确的手机号码"),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning("请输入密码"),this.$refs.account_password.focus();return}if(this.loginMode=="reg"&&this.account_password!=this.account_password2){this.$message.warning("确认密码输入不一致"),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning("请输入验证码"),this.$refs.captcha_code.focus();return}this.passportHandle2(null,"MobilePwdLogin")})},loginBusinessCheck(r){this.account_mobile=r.account_mobile_show,this.account_business_id=r.business_id,r.acc_rules_type=="sy-org-admin"?this.passportHandle2(null,"OrgAdminPwdLogin"):r.acc_rules_type=="sy-org-staff"&&this.passportHandle2(null,"OrgStaffPwdLogin")},passportHandle2(r,l){let p=this.$message({iconClass:"ElIconLoading",message:"正在登录...",duration:0});this.loadOngoing=!0,localStorage.setItem("cacheLoginMobile",this.account_mobile);try{let v={};this.loginMode=="access"?(v={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey},(l=="OrgAdminPwdLogin"||l=="OrgStaffPwdLogin")&&(v.temp_token=this.chainTempToken)):this.loginMode=="reg"&&(v={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.$request.setOptions({timeout:1e4}).flagPost("BASE_PASSPORT_PASSPORT",{handleType:l,...v}).then(u=>{p.close(),this.loadOngoing=!1,u.status==200?this.adminLoginSucc(u):u.status==400130?(this.$message.error("验证码有误!"),this.refreshCode(),this.codeNeed=!0):(this.$message.error(u.msg),this.refreshCode())}).catch(u=>{this.loadOngoing=!1,this.chainShowFlag=!1,p.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error("登录异常"),p.close(),this.loadOngoing=!1,this.refreshCode()}},async adminLoginSucc(r){let l=r.data||{};if(l.result_type=="chain")this.chainAccountList=l.result_data||[],this.chainShowFlag=!0,this.chainTempToken=l.result_token||"";else{const p=l.result_data||{};await N.useSdkAccountStore().SA_ACCOUNT_SIGNIN(p),this.codeNeed=!1,this.$message({type:"success",message:"登录成功...",duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(r){new F(this.$refs.qrCodeUrl,{text:r,width:180,height:180,margin:2,colorDark:"#000000",colorLight:"#ffffff",correctLevel:F.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!="qrcode"||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById("qrcode").innerHTML="",clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE",{name:"app",fun:"scanQrcode"}).then(r=>{var l;r.status==200?(this.scanCreate((l=r==null?void 0:r.data)==null?void 0:l.checkLogin),this.qrcodeTimer=window.setInterval(()=>{var p;this.scanCheckFunc((p=r==null?void 0:r.data)==null?void 0:p.scanCode)},3e3)):result.status==404}).catch(r=>{}).finally(r=>{this.qrcodeLoad=!1})})},scanCheckFunc(r){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK",{name:"app",fun:"scanCheck",scanCode:r||""}).then(l=>{var v,u;if(l.status==200){var p=l.msg&&((v=l==null?void 0:l.data)==null?void 0:v.scanCVal)||"";p!=""&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(r,(u=l==null?void 0:l.data)==null?void 0:u.scanCVal))}else l.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(r,l){this.$message({type:"success",message:"扫码成功,请稍后...",duration:1500}),this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN",{name:"app",fun:"scanLogin",scanCode:r,scanCVal:l}).then(p=>{if(p.status==200){let v=this.$message({iconClass:"ElIconLoading",message:"正在安全登录中,请稍后...",duration:0});setTimeout(()=>{v.close(),this.$message({message:p.msg,type:p.status==200?"success":"error"})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let r=cvUtils.urlQueryToObj(this.$route.query);const l=decodeURIComponent(r.from||"");l?N.StorageObj.idbSetItem("clearCache","login").then(p=>{window.location.replace(l)}):this.$router.push({path:"/"})},setTheme(r){N.useSdkThemesStore().SA_THEMES_SET(r)},setLanguage(r){N.useSdkLanguageStore().SA_LANGUAGE_SET(r)},inputServerUrl(){},inputServerChack(r){return new Promise((l,p)=>{let v=r;/\/api\/$/.test(v)||(v=v+(cvUtils.strRightExists(v,"/")?"api/":"/api/")),/^https*:\/\//i.test(v)||(v=`https://${v}`),N.HttpObj.setOptions({checkNetwork:!1}).flagGet("SYS_SETT_ALL",{}).then(async({data:u})=>{typeof u.server_version>"u"&&typeof u.all_group_mute>"u"?p(`服务器(${cvUtils.urlGetDomain(r)})版本过低`):(v!=this.cacheServerUrl&&(await N.StorageObj.idbSetItem("cacheServerUrl",v),window.location.reload()),l())}).catch(({ret:u,msg:f})=>{if(u===-1001){if(!/^https*:\/\//i.test(r)){this.inputServerChack(`http://${r}`).then(l).catch(p);return}f="服务器地址无效"}p(f)})})}}},W={class:"cloud-login-wrap"},j={key:0,class:"cloud-login-main"},Z={class:"cloud-login-logo no-dark-content can-click"},ee=["src"],te={key:0,class:"cloud-login-box"},oe={class:"login-title"},ie={class:"login-subtitle"},ne={class:"cloud-login-mode-access"},se={class:"login-switch"},re={key:1,class:"cloud-login-box"},ae={class:"login-mode-switch"},le={class:"login-mode-switch-box"},ce={class:"login-title"},he={class:"login-subtitle"},ue={class:"cloud-login-mode-access"},de={key:0,class:"code-load"},ge={key:1,class:"code-error"},fe=["src"],me={class:"cloud-login-other"},pe={class:"cloud-login-other"},_e={key:0,class:"login-switch"},ve={key:1,class:"page-login-oauth"},we={key:2,class:"cloud-login-box"},Ce={class:"login-mode-switch"},Ee={class:"login-mode-switch-box"},Se={class:"login-title"},Le={class:"login-subtitle"},Te={id:"qrcode",ref:"qrCodeUrl"},ke={key:3,class:"cloud-login-box"},ye={class:"login-title"},be={class:"login-subtitle"},Ae={class:"cloud-login-mode-access"},Ne={class:"page-login-oauth"};function De(r,l,p,v,u,f){const L=s.resolveComponent("el-input"),b=s.resolveComponent("el-button"),w=s.resolveComponent("cv-icons"),C=s.resolveComponent("el-tooltip"),E=s.resolveComponent("ElIconLoading"),D=s.resolveComponent("el-checkbox"),T=s.resolveComponent("SwitchBusiness");return s.openBlock(),s.createElementBlock("div",W,[u.chainShowFlag?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",j,[s.createElementVNode("div",Z,[s.createElementVNode("img",{src:r.openCaseInfo.LAST_IP_LOGO,alt:""},null,8,ee)]),u.loginMode=="reg"?(s.openBlock(),s.createElementBlock("div",te,[s.createElementVNode("div",oe,s.toDisplayString(r.openCaseInfo.LAST_IP_TITLE),1),s.createElementVNode("div",ie,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",ne,[s.createElementVNode("form",null,[s.createVNode(L,{modelValue:u.account_password2,"onUpdate:modelValue":l[0]||(l[0]=_=>u.account_password2=_),ref:"account_password2","prefix-icon":"ElIconLock",placeholder:r.$t("输入确认密码"),type:"password",size:"large",clearable:""},null,8,["modelValue","placeholder"]),u.regInviteNeed?(s.openBlock(),s.createBlock(L,{key:0,modelValue:u.reg_invite,"onUpdate:modelValue":l[1]||(l[1]=_=>u.reg_invite=_),ref:"reg_invite",class:"login-code",placeholder:r.$t("请输入注册邀请码"),type:"text",size:"large",clearable:""},{prepend:s.withCtx(()=>[s.createTextVNode(" "+s.toDisplayString(r.$t("邀请码"))+" ",1)]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,null,{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.loginJump?"注册成功":"注册"),1)]),_:1}),s.createElementVNode("div",se,[s.createTextVNode(s.toDisplayString(r.$t("已经有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[2]||(l[2]=_=>f.switchLoginMode("access"))},s.toDisplayString(r.$t("登录帐号")),1)])])])):s.createCommentVNode("",!0),u.loginMode=="access"?(s.openBlock(),s.createElementBlock("div",re,[s.createElementVNode("div",ae,[s.createElementVNode("div",le,[s.createVNode(C,{content:"扫码登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[3]||(l[3]=_=>f.switchLoginMode("qrcode"))},[s.createVNode(w,{type:"cvSvgBaseQrcode",size:"45"})])]),_:1})])]),s.createElementVNode("div",ce,s.toDisplayString(r.openCaseInfo.LAST_IP_TITLE),1),s.createElementVNode("div",he,s.toDisplayString(r.$t("输入您的凭证以访问您的帐户。")),1),s.createElementVNode("div",ue,[s.createElementVNode("form",null,[s.createVNode(L,{modelValue:u.account_mobile,"onUpdate:modelValue":l[4]||(l[4]=_=>u.account_mobile=_),ref:"account_mobile","prefix-icon":"ElIconUser",placeholder:r.$t("输入您的手机账号"),type:"text",size:"large",maxlength:"11",onBlur:f.onBlur,clearable:""},null,8,["modelValue","placeholder","onBlur"]),s.createVNode(L,{modelValue:u.account_password,"onUpdate:modelValue":l[5]||(l[5]=_=>u.account_password=_),ref:"account_password","prefix-icon":"ElIconLock",placeholder:r.$t("输入您的密码"),type:"password",size:"large",clearable:"",onKeydown:s.withKeys(f.accessLoginFunc,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),u.codeNeed?(s.openBlock(),s.createBlock(L,{key:0,modelValue:u.captcha_code,"onUpdate:modelValue":l[7]||(l[7]=_=>u.captcha_code=_),ref:"captcha_code",class:"login-code",placeholder:r.$t("输入图形验证码"),type:"text",size:"large",clearable:""},{prefix:s.withCtx(()=>[s.createVNode(w,{type:"cvSvgCircleCheck"})]),append:s.withCtx(()=>[s.createElementVNode("div",{class:"login-code-end",onClick:l[6]||(l[6]=(..._)=>f.refreshCode&&f.refreshCode(..._))},[u.codeLoad>0?(s.openBlock(),s.createElementBlock("div",de,[s.createVNode(E)])):u.codeUrl==="error"?(s.openBlock(),s.createElementBlock("span",ge,s.toDisplayString(r.$t("加载失败")),1)):(s.openBlock(),s.createElementBlock("img",{key:2,src:u.codeUrl},null,8,fe))])]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,{type:"primary",loading:u.loadOngoing||u.loginJump,size:"large",style:{width:"100%","margin-bottom":"15px"},onClick:f.accessLoginFunc},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.loginJump?"登录成功":"登录"),1)]),_:1},8,["loading","onClick"]),s.createElementVNode("div",me,[s.createVNode(D,{modelValue:u.cache_privacy,"onUpdate:modelValue":l[9]||(l[9]=_=>u.cache_privacy=_),"true-value":"on","false-value":"off",onChange:f.handleRrivacy},{default:s.withCtx(()=>[l[17]||(l[17]=s.createTextVNode(" 同意 ",-1)),s.createElementVNode("a",{onClick:l[8]||(l[8]=_=>r.jumpsXieyi("privacy")),target:"_blank"},"《隐私条款》")]),_:1},8,["modelValue","onChange"]),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[10]||(l[10]=(..._)=>f.handleForgot&&f.handleForgot(..._))},s.toDisplayString(r.$t("忘记密码了?")),1)]),s.createElementVNode("div",pe,[r.systemConfig.open_business_reg=="on"?(s.openBlock(),s.createElementBlock("div",_e,[s.createTextVNode(s.toDisplayString(r.$t("还没有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[11]||(l[11]=_=>f.switchLoginMode("reg"))},s.toDisplayString(r.$t("注册帐号")),1)])):s.createCommentVNode("",!0),r.systemConfig.open_business_oauth2=="on"?(s.openBlock(),s.createElementBlock("div",ve,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[12]||(l[12]=_=>f.switchLoginMode("oauth2"))},s.toDisplayString(r.$t("OAuth2授权登陆")),1)])):s.createCommentVNode("",!0)])])])):s.createCommentVNode("",!0),u.loginMode=="qrcode"?(s.openBlock(),s.createElementBlock("div",we,[s.createElementVNode("div",Ce,[s.createElementVNode("div",Ee,[s.createVNode(C,{content:"帐号登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[13]||(l[13]=_=>f.switchLoginMode("access"))},[s.createVNode(w,{type:"cvSvgBasePc",size:"45"})])]),_:1})])]),s.createElementVNode("div",Se,s.toDisplayString(r.$t("扫码登录")),1),s.createElementVNode("div",Le,[s.createVNode(w,{type:"cvSvgActionScan",size:"20",style:{"margin-right":"10px"}}),s.createTextVNode(" "+s.toDisplayString(r.$t(`请使用【${r.openCaseInfo.LAST_IP_BRAND}】移动端扫描二维码`)),1)]),s.createElementVNode("div",{class:"login-qrcode",onClick:l[14]||(l[14]=(..._)=>f.scanQrcodeRefresh&&f.scanQrcodeRefresh(..._))},[s.createElementVNode("div",Te,null,512)])])):s.createCommentVNode("",!0),u.loginMode=="oauth2"?(s.openBlock(),s.createElementBlock("div",ke,[s.createElementVNode("div",ye,s.toDisplayString(r.openCaseInfo.LAST_IP_TITLE),1),s.createElementVNode("div",be,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",Ae,[s.createElementVNode("div",Ne,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[15]||(l[15]=_=>f.switchLoginMode("access"))},s.toDisplayString(r.$t("帐号登录")),1)])])])):s.createCommentVNode("",!0)])),u.chainShowFlag?(s.openBlock(),s.createBlock(T,{key:1,modelValue:u.chainAccountList,"onUpdate:modelValue":l[16]||(l[16]=_=>u.chainAccountList=_),reselectTitle:"重新登录",onReselectFunc:f.chainReselection,onSelectFunc:f.loginBusinessCheck},null,8,["modelValue","onReselectFunc","onSelectFunc"])):s.createCommentVNode("",!0)])}const Be=N._export_sfc(Y,[["render",De]]);exports.default=Be;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./index-DadX5uLm.cjs");require("pinia");const s=require("vue");function K(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var V={exports:{}},J=V.exports,H;function X(){return H||(H=1,function(r,l){var p;(function(v,u){r.exports=u()})(J,function(){function v(e){this.mode=f.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,o=this.data.length;t<o;t++){var i=[],n=this.data.charCodeAt(t);n>65536?(i[0]=240|(n&1835008)>>>18,i[1]=128|(n&258048)>>>12,i[2]=128|(n&4032)>>>6,i[3]=128|n&63):n>2048?(i[0]=224|(n&61440)>>>12,i[1]=128|(n&4032)>>>6,i[2]=128|n&63):n>128?(i[0]=192|(n&1984)>>>6,i[1]=128|n&63):i[0]=n,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}v.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,o=this.parsedData.length;t<o;t++)e.put(this.parsedData[t],8)}};function u(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}u.prototype={addData:function(e){var t=new v(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[o][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=o&&o<=6&&(i==0||i==6)||0<=i&&i<=6&&(o==0||o==6)||2<=o&&o<=4&&2<=i&&i<=4?this.modules[e+o][t+i]=!0:this.modules[e+o][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,o=0;o<8;o++){this.makeImpl(!0,o);var i=w.getLostPoint(this);(o==0||e>i)&&(e=i,t=o)}return t},createMovieClip:function(e,t,o){var i=e.createEmptyMovieClip(t,o),n=1;this.make();for(var c=0;c<this.modules.length;c++)for(var h=c*n,a=0;a<this.modules[c].length;a++){var d=a*n,m=this.modules[c][a];m&&(i.beginFill(0,100),i.moveTo(d,h),i.lineTo(d+n,h),i.lineTo(d+n,h+n),i.lineTo(d,h+n),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=w.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var o=0;o<e.length;o++){var i=e[t],n=e[o];if(this.modules[i][n]==null)for(var c=-2;c<=2;c++)for(var h=-2;h<=2;h++)c==-2||c==2||h==-2||h==2||c==0&&h==0?this.modules[i+c][n+h]=!0:this.modules[i+c][n+h]=!1}},setupTypeNumber:function(e){for(var t=w.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=i}for(var o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=i}},setupTypeInfo:function(e,t){for(var o=this.errorCorrectLevel<<3|t,i=w.getBCHTypeInfo(o),n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<6?this.modules[n][8]=c:n<8?this.modules[n+1][8]=c:this.modules[this.moduleCount-15+n][8]=c}for(var n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=c:n<9?this.modules[8][15-n-1+1]=c:this.modules[8][15-n-1]=c}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var o=-1,i=this.moduleCount-1,n=7,c=0,h=this.moduleCount-1;h>0;h-=2)for(h==6&&h--;;){for(var a=0;a<2;a++)if(this.modules[i][h-a]==null){var d=!1;c<e.length&&(d=(e[c]>>>n&1)==1);var m=w.getMask(t,i,h-a);m&&(d=!d),this.modules[i][h-a]=d,n--,n==-1&&(c++,n=7)}if(i+=o,i<0||this.moduleCount<=i){i-=o,o=-o;break}}}},u.PAD0=236,u.PAD1=17,u.createData=function(e,t,o){for(var i=T.getRSBlocks(e,t),n=new _,c=0;c<o.length;c++){var h=o[c];n.put(h.mode,4),n.put(h.getLength(),w.getLengthInBits(h.mode,e)),h.write(n)}for(var a=0,c=0;c<i.length;c++)a+=i[c].dataCount;if(n.getLengthInBits()>a*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+a*8+")");for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(u.PAD0,8),n.getLengthInBits()>=a*8));)n.put(u.PAD1,8);return u.createBytes(n,i)},u.createBytes=function(e,t){for(var o=0,i=0,n=0,c=new Array(t.length),h=new Array(t.length),a=0;a<t.length;a++){var d=t[a].dataCount,m=t[a].totalCount-d;i=Math.max(i,d),n=Math.max(n,m),c[a]=new Array(d);for(var g=0;g<c[a].length;g++)c[a][g]=255&e.buffer[g+o];o+=d;var S=w.getErrorCorrectPolynomial(m),k=new D(c[a],S.getLength()-1),A=k.mod(S);h[a]=new Array(S.getLength()-1);for(var g=0;g<h[a].length;g++){var y=g+A.getLength()-h[a].length;h[a][g]=y>=0?A.get(y):0}}for(var B=0,g=0;g<t.length;g++)B+=t[g].totalCount;for(var P=new Array(B),M=0,g=0;g<i;g++)for(var a=0;a<t.length;a++)g<c[a].length&&(P[M++]=c[a][g]);for(var g=0;g<n;g++)for(var a=0;a<t.length;a++)g<h[a].length&&(P[M++]=h[a][g]);return P};for(var f={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},L={L:1,M:0,Q:3,H:2},b={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},w={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;w.getBCHDigit(t)-w.getBCHDigit(w.G15)>=0;)t^=w.G15<<w.getBCHDigit(t)-w.getBCHDigit(w.G15);return(e<<10|t)^w.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;w.getBCHDigit(t)-w.getBCHDigit(w.G18)>=0;)t^=w.G18<<w.getBCHDigit(t)-w.getBCHDigit(w.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return w.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case b.PATTERN000:return(t+o)%2==0;case b.PATTERN001:return t%2==0;case b.PATTERN010:return o%3==0;case b.PATTERN011:return(t+o)%3==0;case b.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case b.PATTERN101:return t*o%2+t*o%3==0;case b.PATTERN110:return(t*o%2+t*o%3)%2==0;case b.PATTERN111:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new D([1],0),o=0;o<e;o++)t=t.multiply(new D([1,C.gexp(o)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:return 8;case f.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),o=0,i=0;i<t;i++)for(var n=0;n<t;n++){for(var c=0,h=e.isDark(i,n),a=-1;a<=1;a++)if(!(i+a<0||t<=i+a))for(var d=-1;d<=1;d++)n+d<0||t<=n+d||a==0&&d==0||h==e.isDark(i+a,n+d)&&c++;c>5&&(o+=3+c-5)}for(var i=0;i<t-1;i++)for(var n=0;n<t-1;n++){var m=0;e.isDark(i,n)&&m++,e.isDark(i+1,n)&&m++,e.isDark(i,n+1)&&m++,e.isDark(i+1,n+1)&&m++,(m==0||m==4)&&(o+=3)}for(var i=0;i<t;i++)for(var n=0;n<t-6;n++)e.isDark(i,n)&&!e.isDark(i,n+1)&&e.isDark(i,n+2)&&e.isDark(i,n+3)&&e.isDark(i,n+4)&&!e.isDark(i,n+5)&&e.isDark(i,n+6)&&(o+=40);for(var n=0;n<t;n++)for(var i=0;i<t-6;i++)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(o+=40);for(var g=0,n=0;n<t;n++)for(var i=0;i<t;i++)e.isDark(i,n)&&g++;var S=Math.abs(100*g/t/t-50)/5;return o+=S*10,o}},C={glog:function(e){if(e<1)throw new Error("glog("+e+")");return C.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return C.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},E=0;E<8;E++)C.EXP_TABLE[E]=1<<E;for(var E=8;E<256;E++)C.EXP_TABLE[E]=C.EXP_TABLE[E-4]^C.EXP_TABLE[E-5]^C.EXP_TABLE[E-6]^C.EXP_TABLE[E-8];for(var E=0;E<255;E++)C.LOG_TABLE[C.EXP_TABLE[E]]=E;function D(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var o=0;o<e.length&&e[o]==0;)o++;this.num=new Array(e.length-o+t);for(var i=0;i<e.length-o;i++)this.num[i]=e[i+o]}D.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),o=0;o<this.getLength();o++)for(var i=0;i<e.getLength();i++)t[o+i]^=C.gexp(C.glog(this.get(o))+C.glog(e.get(i)));return new D(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=C.glog(this.get(0))-C.glog(e.get(0)),o=new Array(this.getLength()),i=0;i<this.getLength();i++)o[i]=this.get(i);for(var i=0;i<e.getLength();i++)o[i]^=C.gexp(C.glog(e.get(i))+t);return new D(o,0).mod(e)}};function T(e,t){this.totalCount=e,this.dataCount=t}T.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T.getRSBlocks=function(e,t){var o=T.getRsBlockTable(e,t);if(o==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=o.length/3,n=[],c=0;c<i;c++)for(var h=o[c*3+0],a=o[c*3+1],d=o[c*3+2],m=0;m<h;m++)n.push(new T(a,d));return n},T.getRsBlockTable=function(e,t){switch(t){case L.L:return T.RS_BLOCK_TABLE[(e-1)*4+0];case L.M:return T.RS_BLOCK_TABLE[(e-1)*4+1];case L.Q:return T.RS_BLOCK_TABLE[(e-1)*4+2];case L.H:return T.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function _(){this.buffer=[],this.length=0}_.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var o=0;o<t;o++)this.putBit((e>>>t-o-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var I=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function q(){return typeof CanvasRenderingContext2D<"u"}function x(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var o=t.toString().match(/android ([0-9]\.[0-9])/i);o&&o[1]&&(e=parseFloat(o[1]))}return e}var U=function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){var o=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(o.width/n),Math.floor(o.height/n),this.clear();function c(g,S){var k=document.createElementNS("http://www.w3.org/2000/svg",g);for(var A in S)S.hasOwnProperty(A)&&k.setAttribute(A,S[A]);return k}var h=c("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:o.colorLight});h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(h),h.appendChild(c("rect",{fill:o.colorLight,width:"100%",height:"100%"})),h.appendChild(c("rect",{fill:o.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<n;a++)for(var d=0;d<n;d++)if(t.isDark(a,d)){var m=c("use",{x:String(d),y:String(a)});m.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),h.appendChild(m)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),Q=document.documentElement.tagName.toLowerCase()==="svg",R=Q?U:q()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(c,h,a,d,m,g,S,k,A){if("nodeName"in c&&/img/i.test(c.nodeName))for(var y=arguments.length-1;y>=1;y--)arguments[y]=arguments[y]*t;else typeof k>"u"&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);o.apply(this,arguments)}}function i(c,h){var a=this;if(a._fFail=h,a._fSuccess=c,a._bSupportDataURI===null){var d=document.createElement("img"),m=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)},g=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)};d.onabort=m,d.onerror=m,d.onload=g,d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else a._bSupportDataURI===!0&&a._fSuccess?a._fSuccess.call(a):a._bSupportDataURI===!1&&a._fFail&&a._fFail.call(a)}var n=function(c,h){this._bIsPainted=!1,this._android=x(),this._htOption=h,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=h.width,this._elCanvas.height=h.height,c.appendChild(this._elCanvas),this._el=c,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return n.prototype.draw=function(c){var h=this._elImage,a=this._oContext,d=this._htOption,m=c.getModuleCount(),g=d.width/m,S=d.height/m,k=Math.round(g),A=Math.round(S);h.style.display="none",this.clear();for(var y=0;y<m;y++)for(var B=0;B<m;B++){var P=c.isDark(y,B),M=B*g,O=y*S;a.strokeStyle=P?d.colorDark:d.colorLight,a.lineWidth=1,a.fillStyle=P?d.colorDark:d.colorLight,a.fillRect(M,O,g,S),a.strokeRect(Math.floor(M)+.5,Math.floor(O)+.5,k,A),a.strokeRect(Math.ceil(M)-.5,Math.ceil(O)-.5,k,A)}this._bIsPainted=!0},n.prototype.makeImage=function(){this._bIsPainted&&i.call(this,e)},n.prototype.isPainted=function(){return this._bIsPainted},n.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},n.prototype.round=function(c){return c&&Math.floor(c*1e3)/1e3},n}():function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){for(var o=this._htOption,i=this._el,n=t.getModuleCount(),c=Math.floor(o.width/n),h=Math.floor(o.height/n),a=['<table style="border:0;border-collapse:collapse;">'],d=0;d<n;d++){a.push("<tr>");for(var m=0;m<n;m++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+h+"px;background-color:"+(t.isDark(d,m)?o.colorDark:o.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),i.innerHTML=a.join("");var g=i.childNodes[0],S=(o.width-g.offsetWidth)/2,k=(o.height-g.offsetHeight)/2;S>0&&k>0&&(g.style.margin=k+"px "+S+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();function $(e,t){for(var o=1,i=G(e),n=0,c=I.length;n<=c;n++){var h=0;switch(t){case L.L:h=I[n][0];break;case L.M:h=I[n][1];break;case L.Q:h=I[n][2];break;case L.H:h=I[n][3];break}if(i<=h)break;o++}if(o>I.length)throw new Error("Too long data");return o}function G(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}return p=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:L.H},typeof t=="string"&&(t={text:t}),t)for(var o in t)this._htOption[o]=t[o];typeof e=="string"&&(e=document.getElementById(e)),this._htOption.useSVG&&(R=U),this._android=x(),this._el=e,this._oQRCode=null,this._oDrawing=new R(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},p.prototype.makeCode=function(e){this._oQRCode=new u($(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},p.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},p.prototype.clear=function(){this._oDrawing.clear()},p.CorrectLevel=L,p})}(V)),V.exports}var z=X();const F=K(z),Y={components:{SwitchBusiness:N.SwitchBusiness},data(){return{loadOngoing:!1,loginMode:"access",loginJump:!1,cache_remember:"off",cache_privacy:"off",account_mobile:"",account_password:"",account_password2:"",captcha_code:"",sms_code:"",account_business_id:0,reg_invite:"",regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",chainShowFlag:!1,chainAccountList:[],chainTempToken:"",qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:""}},watch:{$route({query:r}){r.type=="reg"&&this.$nextTick(()=>{this.loginMode="reg"})},account_mobile(r){this.$nextTick(()=>{let l=this.$refs.account_mobile.$el.querySelector("input");const v=getComputedStyle(l).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);v&&v[0]==="rgb(232, 240, 254)"&&this.onBlur()})},loginMode(r){r=="reg"&&(this.regInviteNeed=!!this.systemConfig.reg_invite_need)}},computed:{currentLanguage(){return this.languageList[this.languageName]||"Language"}},created(){this.cache_remember=localStorage.getItem("cacheLoginRemember")||"off",this.cache_privacy=localStorage.getItem("cacheLoginPrivacy")||"off",this.account_mobile=localStorage.getItem("cacheLoginMobile")||""},async mounted(){this.loginMode=this.$route.query.type==="reg"?"reg":"access",this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll")),N.useSdkSystemStore().$subscribe((r,l)=>{r.events.key=="useSSOLogin"&&l.useSSOLogin==!0&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password="",this.account_password2="",this.captcha_code="",this.reg_invite=""},methods:{handleRemember(r){r=="on"?localStorage.setItem("cacheLoginRemember",r):localStorage.removeItem("cacheLoginRemember")},handleRrivacy(r){r=="on"?(localStorage.setItem("cacheLoginPrivacy",r),this.chackServerUrl().catch(l=>{})):localStorage.removeItem("cacheLoginPrivacy"),this.cache_privacy=r},handleForgot(){this.$message.warning("请联系管理员!")},chackServerUrl(r){return new Promise((l,p)=>{l()})},switchLoginMode(r){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),r==="qrcode"?(this.loginMode="qrcode",this.scanQrcodeRefresh()):r==="access"?this.loginMode="access":r==="smsLogin"?(this.loginMode="smsLogin",this.refreshCode()):this.loginMode=r})},refreshCode(){this.captcha_code="",!(this.codeLoad>0)&&(setTimeout(r=>{this.codeLoad++},600),this.$request.flagGet("BASE_PASSPORT_CODE_DATA",{account_mobile:this.account_mobile}).then(({data:r})=>{var l;this.codeKey=r.key,this.codeUrl=r.img,(l=this.$refs.captcha_code)==null||l.focus()}).catch(r=>{this.codeUrl="error"}).finally(r=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet("BASE_PASSPORT_CODE_NEED",{account_mobile:this.account_mobile}).then(r=>{this.loadOngoing=!1,r.data=="need"?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(r=>{this.loadOngoing=!1}).finally(r=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:"warning",message:"正在登录中,请勿重新确认~"}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!="on"){this.$message.warning("请同意协议");return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning("请输入正确的手机号码"),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning("请输入密码"),this.$refs.account_password.focus();return}if(this.loginMode=="reg"&&this.account_password!=this.account_password2){this.$message.warning("确认密码输入不一致"),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning("请输入验证码"),this.$refs.captcha_code.focus();return}this.passportHandle2(null,"MobilePwdLogin")})},loginBusinessCheck(r){this.account_mobile=r.account_mobile_show,this.account_business_id=r.business_id,r.acc_rules_type=="sy-org-admin"?this.passportHandle2(null,"OrgAdminPwdLogin"):r.acc_rules_type=="sy-org-staff"&&this.passportHandle2(null,"OrgStaffPwdLogin")},passportHandle2(r,l){let p=this.$message({iconClass:"ElIconLoading",message:"正在登录...",duration:0});this.loadOngoing=!0,localStorage.setItem("cacheLoginMobile",this.account_mobile);try{let v={};this.loginMode=="access"?(v={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey},(l=="OrgAdminPwdLogin"||l=="OrgStaffPwdLogin")&&(v.temp_token=this.chainTempToken)):this.loginMode=="reg"&&(v={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.$request.setOptions({timeout:1e4}).flagPost("BASE_PASSPORT_PASSPORT",{handleType:l,...v}).then(u=>{p.close(),this.loadOngoing=!1,u.status==200?this.adminLoginSucc(u):u.status==400130?(this.$message.error("验证码有误!"),this.refreshCode(),this.codeNeed=!0):(this.$message.error(u.msg),this.refreshCode())}).catch(u=>{this.loadOngoing=!1,this.chainShowFlag=!1,p.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error("登录异常"),p.close(),this.loadOngoing=!1,this.refreshCode()}},async adminLoginSucc(r){let l=r.data||{};if(l.result_type=="chain")this.chainAccountList=l.result_data||[],this.chainShowFlag=!0,this.chainTempToken=l.result_token||"";else{const p=l.result_data||{};await N.useSdkAccountStore().SA_ACCOUNT_SIGNIN(p),this.codeNeed=!1,this.$message({type:"success",message:"登录成功...",duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(r){new F(this.$refs.qrCodeUrl,{text:r,width:180,height:180,margin:2,colorDark:"#000000",colorLight:"#ffffff",correctLevel:F.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!="qrcode"||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById("qrcode").innerHTML="",clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE",{name:"app",fun:"scanQrcode"}).then(r=>{var l;r.status==200?(this.scanCreate((l=r==null?void 0:r.data)==null?void 0:l.checkLogin),this.qrcodeTimer=window.setInterval(()=>{var p;this.scanCheckFunc((p=r==null?void 0:r.data)==null?void 0:p.scanCode)},3e3)):result.status==404}).catch(r=>{}).finally(r=>{this.qrcodeLoad=!1})})},scanCheckFunc(r){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK",{name:"app",fun:"scanCheck",scanCode:r||""}).then(l=>{var v,u;if(l.status==200){var p=l.msg&&((v=l==null?void 0:l.data)==null?void 0:v.scanCVal)||"";p!=""&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(r,(u=l==null?void 0:l.data)==null?void 0:u.scanCVal))}else l.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(r,l){this.$message({type:"success",message:"扫码成功,请稍后...",duration:1500}),this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN",{name:"app",fun:"scanLogin",scanCode:r,scanCVal:l}).then(p=>{if(p.status==200){let v=this.$message({iconClass:"ElIconLoading",message:"正在安全登录中,请稍后...",duration:0});setTimeout(()=>{v.close(),this.$message({message:p.msg,type:p.status==200?"success":"error"})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let r=cvUtils.urlQueryToObj(this.$route.query);const l=decodeURIComponent(r.from||"");l?N.StorageObj.idbSetItem("clearCache","login").then(p=>{window.location.replace(l)}):this.$router.push({path:"/"})},setTheme(r){N.useSdkThemesStore().SA_THEMES_SET(r)},setLanguage(r){N.useSdkLanguageStore().SA_LANGUAGE_SET(r)},inputServerUrl(){},inputServerChack(r){return new Promise((l,p)=>{let v=r;/\/api\/$/.test(v)||(v=v+(cvUtils.strRightExists(v,"/")?"api/":"/api/")),/^https*:\/\//i.test(v)||(v=`https://${v}`),N.HttpObj.setOptions({checkNetwork:!1}).flagGet("SYS_SETT_ALL",{}).then(async({data:u})=>{typeof u.server_version>"u"&&typeof u.all_group_mute>"u"?p(`服务器(${cvUtils.urlGetDomain(r)})版本过低`):(v!=this.cacheServerUrl&&(await N.StorageObj.idbSetItem("cacheServerUrl",v),window.location.reload()),l())}).catch(({ret:u,msg:f})=>{if(u===-1001){if(!/^https*:\/\//i.test(r)){this.inputServerChack(`http://${r}`).then(l).catch(p);return}f="服务器地址无效"}p(f)})})}}},W={class:"cloud-login-wrap"},j={key:0,class:"cloud-login-main"},Z={class:"cloud-login-logo no-dark-content can-click"},ee=["src"],te={key:0,class:"cloud-login-box"},oe={class:"login-title"},ie={class:"login-subtitle"},ne={class:"cloud-login-mode-access"},se={class:"login-switch"},re={key:1,class:"cloud-login-box"},ae={class:"login-mode-switch"},le={class:"login-mode-switch-box"},ce={class:"login-title"},he={class:"login-subtitle"},ue={class:"cloud-login-mode-access"},de={key:0,class:"code-load"},ge={key:1,class:"code-error"},fe=["src"],me={class:"cloud-login-other"},pe={class:"cloud-login-other"},_e={key:0,class:"login-switch"},ve={key:1,class:"page-login-oauth"},we={key:2,class:"cloud-login-box"},Ce={class:"login-mode-switch"},Ee={class:"login-mode-switch-box"},Se={class:"login-title"},Le={class:"login-subtitle"},Te={id:"qrcode",ref:"qrCodeUrl"},ke={key:3,class:"cloud-login-box"},ye={class:"login-title"},be={class:"login-subtitle"},Ae={class:"cloud-login-mode-access"},Ne={class:"page-login-oauth"};function De(r,l,p,v,u,f){const L=s.resolveComponent("el-input"),b=s.resolveComponent("el-button"),w=s.resolveComponent("cv-icons"),C=s.resolveComponent("el-tooltip"),E=s.resolveComponent("ElIconLoading"),D=s.resolveComponent("el-checkbox"),T=s.resolveComponent("SwitchBusiness");return s.openBlock(),s.createElementBlock("div",W,[u.chainShowFlag?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",j,[s.createElementVNode("div",Z,[s.createElementVNode("img",{src:r.openCaseInfo.LAST_IP_LOGO,alt:""},null,8,ee)]),u.loginMode=="reg"?(s.openBlock(),s.createElementBlock("div",te,[s.createElementVNode("div",oe,s.toDisplayString(r.openCaseInfo.LAST_IP_TITLE),1),s.createElementVNode("div",ie,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",ne,[s.createElementVNode("form",null,[s.createVNode(L,{modelValue:u.account_password2,"onUpdate:modelValue":l[0]||(l[0]=_=>u.account_password2=_),ref:"account_password2","prefix-icon":"ElIconLock",placeholder:r.$t("输入确认密码"),type:"password",size:"large",clearable:""},null,8,["modelValue","placeholder"]),u.regInviteNeed?(s.openBlock(),s.createBlock(L,{key:0,modelValue:u.reg_invite,"onUpdate:modelValue":l[1]||(l[1]=_=>u.reg_invite=_),ref:"reg_invite",class:"login-code",placeholder:r.$t("请输入注册邀请码"),type:"text",size:"large",clearable:""},{prepend:s.withCtx(()=>[s.createTextVNode(" "+s.toDisplayString(r.$t("邀请码"))+" ",1)]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,null,{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.loginJump?"注册成功":"注册"),1)]),_:1}),s.createElementVNode("div",se,[s.createTextVNode(s.toDisplayString(r.$t("已经有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[2]||(l[2]=_=>f.switchLoginMode("access"))},s.toDisplayString(r.$t("登录帐号")),1)])])])):s.createCommentVNode("",!0),u.loginMode=="access"?(s.openBlock(),s.createElementBlock("div",re,[s.createElementVNode("div",ae,[s.createElementVNode("div",le,[s.createVNode(C,{content:"扫码登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[3]||(l[3]=_=>f.switchLoginMode("qrcode"))},[s.createVNode(w,{type:"cvSvgBaseQrcode",size:"45"})])]),_:1})])]),s.createElementVNode("div",ce,s.toDisplayString(r.openCaseInfo.LAST_IP_TITLE),1),s.createElementVNode("div",he,s.toDisplayString(r.$t("输入您的凭证以访问您的帐户。")),1),s.createElementVNode("div",ue,[s.createElementVNode("form",null,[s.createVNode(L,{modelValue:u.account_mobile,"onUpdate:modelValue":l[4]||(l[4]=_=>u.account_mobile=_),ref:"account_mobile","prefix-icon":"ElIconUser",placeholder:r.$t("输入您的手机账号"),type:"text",size:"large",maxlength:"11",onBlur:f.onBlur,clearable:""},null,8,["modelValue","placeholder","onBlur"]),s.createVNode(L,{modelValue:u.account_password,"onUpdate:modelValue":l[5]||(l[5]=_=>u.account_password=_),ref:"account_password","prefix-icon":"ElIconLock",placeholder:r.$t("输入您的密码"),type:"password",size:"large",clearable:"",onKeydown:s.withKeys(f.accessLoginFunc,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),u.codeNeed?(s.openBlock(),s.createBlock(L,{key:0,modelValue:u.captcha_code,"onUpdate:modelValue":l[7]||(l[7]=_=>u.captcha_code=_),ref:"captcha_code",class:"login-code",placeholder:r.$t("输入图形验证码"),type:"text",size:"large",clearable:""},{prefix:s.withCtx(()=>[s.createVNode(w,{type:"cvSvgCircleCheck"})]),append:s.withCtx(()=>[s.createElementVNode("div",{class:"login-code-end",onClick:l[6]||(l[6]=(..._)=>f.refreshCode&&f.refreshCode(..._))},[u.codeLoad>0?(s.openBlock(),s.createElementBlock("div",de,[s.createVNode(E)])):u.codeUrl==="error"?(s.openBlock(),s.createElementBlock("span",ge,s.toDisplayString(r.$t("加载失败")),1)):(s.openBlock(),s.createElementBlock("img",{key:2,src:u.codeUrl},null,8,fe))])]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,{type:"primary",loading:u.loadOngoing||u.loginJump,size:"large",style:{width:"100%","margin-bottom":"15px"},onClick:f.accessLoginFunc},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.loginJump?"登录成功":"登录"),1)]),_:1},8,["loading","onClick"]),s.createElementVNode("div",me,[s.createVNode(D,{modelValue:u.cache_privacy,"onUpdate:modelValue":l[9]||(l[9]=_=>u.cache_privacy=_),"true-value":"on","false-value":"off",onChange:f.handleRrivacy},{default:s.withCtx(()=>[l[17]||(l[17]=s.createTextVNode(" 同意 ",-1)),s.createElementVNode("a",{onClick:l[8]||(l[8]=_=>r.jumpsXieyi("privacy")),target:"_blank"},"《隐私条款》")]),_:1},8,["modelValue","onChange"]),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[10]||(l[10]=(..._)=>f.handleForgot&&f.handleForgot(..._))},s.toDisplayString(r.$t("忘记密码了?")),1)]),s.createElementVNode("div",pe,[r.systemConfig.open_business_reg=="on"?(s.openBlock(),s.createElementBlock("div",_e,[s.createTextVNode(s.toDisplayString(r.$t("还没有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[11]||(l[11]=_=>f.switchLoginMode("reg"))},s.toDisplayString(r.$t("注册帐号")),1)])):s.createCommentVNode("",!0),r.systemConfig.open_business_oauth2=="on"?(s.openBlock(),s.createElementBlock("div",ve,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[12]||(l[12]=_=>f.switchLoginMode("oauth2"))},s.toDisplayString(r.$t("OAuth2授权登陆")),1)])):s.createCommentVNode("",!0)])])])):s.createCommentVNode("",!0),u.loginMode=="qrcode"?(s.openBlock(),s.createElementBlock("div",we,[s.createElementVNode("div",Ce,[s.createElementVNode("div",Ee,[s.createVNode(C,{content:"帐号登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[13]||(l[13]=_=>f.switchLoginMode("access"))},[s.createVNode(w,{type:"cvSvgBasePc",size:"45"})])]),_:1})])]),s.createElementVNode("div",Se,s.toDisplayString(r.$t("扫码登录")),1),s.createElementVNode("div",Le,[s.createVNode(w,{type:"cvSvgActionScan",size:"20",style:{"margin-right":"10px"}}),s.createTextVNode(" "+s.toDisplayString(r.$t(`请使用【${r.openCaseInfo.LAST_IP_BRAND}】移动端扫描二维码`)),1)]),s.createElementVNode("div",{class:"login-qrcode",onClick:l[14]||(l[14]=(..._)=>f.scanQrcodeRefresh&&f.scanQrcodeRefresh(..._))},[s.createElementVNode("div",Te,null,512)])])):s.createCommentVNode("",!0),u.loginMode=="oauth2"?(s.openBlock(),s.createElementBlock("div",ke,[s.createElementVNode("div",ye,s.toDisplayString(r.openCaseInfo.LAST_IP_TITLE),1),s.createElementVNode("div",be,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",Ae,[s.createElementVNode("div",Ne,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[15]||(l[15]=_=>f.switchLoginMode("access"))},s.toDisplayString(r.$t("帐号登录")),1)])])])):s.createCommentVNode("",!0)])),u.chainShowFlag?(s.openBlock(),s.createBlock(T,{key:1,modelValue:u.chainAccountList,"onUpdate:modelValue":l[16]||(l[16]=_=>u.chainAccountList=_),reselectTitle:"重新登录",onReselectFunc:f.chainReselection,onSelectFunc:f.loginBusinessCheck},null,8,["modelValue","onReselectFunc","onSelectFunc"])):s.createCommentVNode("",!0)])}const Be=N._export_sfc(Y,[["render",De]]);exports.default=Be;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as te, S as ie, H as se, a as X, u as oe, b as ne, c as re, d as ae } from "./index-
|
|
1
|
+
import { _ as te, S as ie, H as se, a as X, u as oe, b as ne, c as re, d as ae } from "./index-DxXLQtbQ.js";
|
|
2
2
|
import "pinia";
|
|
3
3
|
import { resolveComponent as U, createElementBlock as P, openBlock as b, createCommentVNode as B, createBlock as G, createElementVNode as f, toDisplayString as T, createVNode as E, withCtx as N, createTextVNode as R, withKeys as le } from "vue";
|
|
4
4
|
function he(n) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as n, openBlock as s, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as c } from "./index-
|
|
2
|
+
import { _ as c } from "./index-DxXLQtbQ.js";
|
|
3
3
|
const r = {}, t = {
|
|
4
4
|
class: "cloud-none-wrap",
|
|
5
5
|
style: { "background-color": "none" }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DadX5uLm.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function s(d,o){return e.openBlock(),e.createElementBlock("div",t,[...o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"没有权限"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Permission")],-1)])])}const r=n._export_sfc(c,[["render",s]]);exports.default=r;
|
package/dist/open-sdk.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DadX5uLm.cjs");exports.HttpObj=e.HttpObj;exports.SameFrame=e.console;exports.SameRouteView=e.SameRouteView;exports.SameWatermark=e.SameWatermark;exports.StorageObj=e.StorageObj;exports.SwitchBusiness=e.SwitchBusiness;exports.createHttp=e.createHttp;exports.dialogChoiceGoods=e.dialogGoods;exports.dialogChoiceImage=e.dialogImage;exports.dialogChoiceStaff=e.dialogStaff;exports.qiankunWindow=e.qiankunWindow;exports.sdkBootstrap=e.sdkBootstrap;exports.sdkConfigGet=e.sdkConfigGet;exports.sdkConfigSet=e.sdkConfigSet;exports.sdkStartBefore=e.sdkStartBefore;exports.sdkStarup=e.sdkStarup;exports.useSdkAccountStore=e.useSdkAccountStore;exports.useSdkLanguageStore=e.useSdkLanguageStore;exports.useSdkPermissionStore=e.useSdkPermissionStore;exports.useSdkProductStore=e.useSdkProductStore;exports.useSdkQiankunStore=e.useSdkQiankunStore;exports.useSdkSystemStore=e.useSdkSystemStore;exports.useSdkThemesStore=e.useSdkThemesStore;exports.useSdkWindowStore=e.useSdkWindowStore;
|
package/dist/open-sdk.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as e, f as o, g as t, h as S, a as r, S as d, p as i, i as k, k as u, j as n, q as m, v as g, e as c, s as f, r as h, t as p, c as C, u as l, o as w, n as b, l as j, d as B, b as H, m as W } from "./index-
|
|
1
|
+
import { H as e, f as o, g as t, h as S, a as r, S as d, p as i, i as k, k as u, j as n, q as m, v as g, e as c, s as f, r as h, t as p, c as C, u as l, o as w, n as b, l as j, d as B, b as H, m as W } from "./index-DxXLQtbQ.js";
|
|
2
2
|
export {
|
|
3
3
|
e as HttpObj,
|
|
4
4
|
o as SameFrame,
|