icve-sso-vue3 0.0.5 → 0.0.6

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.
@@ -9189,638 +9189,6 @@ $({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {
9189
9189
  });
9190
9190
 
9191
9191
 
9192
- /***/ },
9193
-
9194
- /***/ 9118
9195
- (module) {
9196
-
9197
- /**
9198
- * @fileoverview
9199
- * - Using the 'QRCode for Javascript library'
9200
- * - Fixed dataset of 'QRCode for Javascript library' for support full-spec.
9201
- * - this library has no dependencies.
9202
- *
9203
- * @author davidshimjs
9204
- * @see <a href="http://www.d-project.com/" target="_blank">http://www.d-project.com/</a>
9205
- * @see <a href="http://jeromeetienne.github.com/jquery-qrcode/" target="_blank">http://jeromeetienne.github.com/jquery-qrcode/</a>
9206
- */
9207
- var QRCode;
9208
-
9209
- (function (root, factory) {
9210
-
9211
- /* CommonJS */
9212
- if (true) module.exports = factory()
9213
-
9214
- /* AMD module */
9215
- else // removed by dead control flow
9216
- {}
9217
-
9218
- }(this, function () { //---------------------------------------------------------------------
9219
- // QRCode for JavaScript
9220
- //
9221
- // Copyright (c) 2009 Kazuhiko Arase
9222
- //
9223
- // URL: http://www.d-project.com/
9224
- //
9225
- // Licensed under the MIT license:
9226
- // http://www.opensource.org/licenses/mit-license.php
9227
- //
9228
- // The word "QR Code" is registered trademark of
9229
- // DENSO WAVE INCORPORATED
9230
- // http://www.denso-wave.com/qrcode/faqpatent-e.html
9231
- //
9232
- //---------------------------------------------------------------------
9233
- function QR8bitByte(data) {
9234
- this.mode = QRMode.MODE_8BIT_BYTE;
9235
- this.data = data;
9236
- this.parsedData = [];
9237
-
9238
- // Added to support UTF-8 Characters
9239
- for (var i = 0, l = this.data.length; i < l; i++) {
9240
- var byteArray = [];
9241
- var code = this.data.charCodeAt(i);
9242
-
9243
- if (code > 0x10000) {
9244
- byteArray[0] = 0xF0 | ((code & 0x1C0000) >>> 18);
9245
- byteArray[1] = 0x80 | ((code & 0x3F000) >>> 12);
9246
- byteArray[2] = 0x80 | ((code & 0xFC0) >>> 6);
9247
- byteArray[3] = 0x80 | (code & 0x3F);
9248
- } else if (code > 0x800) {
9249
- byteArray[0] = 0xE0 | ((code & 0xF000) >>> 12);
9250
- byteArray[1] = 0x80 | ((code & 0xFC0) >>> 6);
9251
- byteArray[2] = 0x80 | (code & 0x3F);
9252
- } else if (code > 0x80) {
9253
- byteArray[0] = 0xC0 | ((code & 0x7C0) >>> 6);
9254
- byteArray[1] = 0x80 | (code & 0x3F);
9255
- } else {
9256
- byteArray[0] = code;
9257
- }
9258
-
9259
- this.parsedData.push(byteArray);
9260
- }
9261
-
9262
- this.parsedData = Array.prototype.concat.apply([], this.parsedData);
9263
-
9264
- if (this.parsedData.length != this.data.length) {
9265
- this.parsedData.unshift(191);
9266
- this.parsedData.unshift(187);
9267
- this.parsedData.unshift(239);
9268
- }
9269
- }
9270
-
9271
- QR8bitByte.prototype = {
9272
- getLength: function (buffer) {
9273
- return this.parsedData.length;
9274
- },
9275
- write: function (buffer) {
9276
- for (var i = 0, l = this.parsedData.length; i < l; i++) {
9277
- buffer.put(this.parsedData[i], 8);
9278
- }
9279
- }
9280
- };
9281
-
9282
- function QRCodeModel(typeNumber, errorCorrectLevel) {
9283
- this.typeNumber = typeNumber;
9284
- this.errorCorrectLevel = errorCorrectLevel;
9285
- this.modules = null;
9286
- this.moduleCount = 0;
9287
- this.dataCache = null;
9288
- this.dataList = [];
9289
- }
9290
-
9291
- QRCodeModel.prototype={addData:function(data){var newData=new QR8bitByte(data);this.dataList.push(newData);this.dataCache=null;},isDark:function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col){throw new Error(row+","+col);}
9292
- return this.modules[row][col];},getModuleCount:function(){return this.moduleCount;},make:function(){this.makeImpl(false,this.getBestMaskPattern());},makeImpl:function(test,maskPattern){this.moduleCount=this.typeNumber*4+17;this.modules=new Array(this.moduleCount);for(var row=0;row<this.moduleCount;row++){this.modules[row]=new Array(this.moduleCount);for(var col=0;col<this.moduleCount;col++){this.modules[row][col]=null;}}
9293
- this.setupPositionProbePattern(0,0);this.setupPositionProbePattern(this.moduleCount-7,0);this.setupPositionProbePattern(0,this.moduleCount-7);this.setupPositionAdjustPattern();this.setupTimingPattern();this.setupTypeInfo(test,maskPattern);if(this.typeNumber>=7){this.setupTypeNumber(test);}
9294
- if(this.dataCache==null){this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList);}
9295
- this.mapData(this.dataCache,maskPattern);},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i;}}
9296
- return pattern;},createMovieClip:function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);var cs=1;this.make();for(var row=0;row<this.modules.length;row++){var y=row*cs;for(var col=0;col<this.modules[row].length;col++){var x=col*cs;var dark=this.modules[row][col];if(dark){qr_mc.beginFill(0,100);qr_mc.moveTo(x,y);qr_mc.lineTo(x+cs,y);qr_mc.lineTo(x+cs,y+cs);qr_mc.lineTo(x,y+cs);qr_mc.endFill();}}}
9297
- return qr_mc;},setupTimingPattern:function(){for(var r=8;r<this.moduleCount-8;r++){if(this.modules[r][6]!=null){continue;}
9298
- this.modules[r][6]=(r%2==0);}
9299
- for(var c=8;c<this.moduleCount-8;c++){if(this.modules[6][c]!=null){continue;}
9300
- this.modules[6][c]=(c%2==0);}},setupPositionAdjustPattern:function(){var pos=QRUtil.getPatternPosition(this.typeNumber);for(var i=0;i<pos.length;i++){for(var j=0;j<pos.length;j++){var row=pos[i];var col=pos[j];if(this.modules[row][col]!=null){continue;}
9301
- for(var r=-2;r<=2;r++){for(var c=-2;c<=2;c++){if(r==-2||r==2||c==-2||c==2||(r==0&&c==0)){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}}}},setupTypeNumber:function(test){var bits=QRUtil.getBCHTypeNumber(this.typeNumber);for(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod;}
9302
- for(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod;}},setupTypeInfo:function(test,maskPattern){var data=(this.errorCorrectLevel<<3)|maskPattern;var bits=QRUtil.getBCHTypeInfo(data);for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<6){this.modules[i][8]=mod;}else if(i<8){this.modules[i+1][8]=mod;}else{this.modules[this.moduleCount-15+i][8]=mod;}}
9303
- for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<8){this.modules[8][this.moduleCount-i-1]=mod;}else if(i<9){this.modules[8][15-i-1+1]=mod;}else{this.modules[8][15-i-1]=mod;}}
9304
- this.modules[this.moduleCount-8][8]=(!test);},mapData:function(data,maskPattern){var inc=-1;var row=this.moduleCount-1;var bitIndex=7;var byteIndex=0;for(var col=this.moduleCount-1;col>0;col-=2){if(col==6)col--;while(true){for(var c=0;c<2;c++){if(this.modules[row][col-c]==null){var dark=false;if(byteIndex<data.length){dark=(((data[byteIndex]>>>bitIndex)&1)==1);}
9305
- var mask=QRUtil.getMask(maskPattern,row,col-c);if(mask){dark=!dark;}
9306
- this.modules[row][col-c]=dark;bitIndex--;if(bitIndex==-1){byteIndex++;bitIndex=7;}}}
9307
- row+=inc;if(row<0||this.moduleCount<=row){row-=inc;inc=-inc;break;}}}}};QRCodeModel.PAD0=0xEC;QRCodeModel.PAD1=0x11;QRCodeModel.createData=function(typeNumber,errorCorrectLevel,dataList){var rsBlocks=QRRSBlock.getRSBlocks(typeNumber,errorCorrectLevel);var buffer=new QRBitBuffer();for(var i=0;i<dataList.length;i++){var data=dataList[i];buffer.put(data.mode,4);buffer.put(data.getLength(),QRUtil.getLengthInBits(data.mode,typeNumber));data.write(buffer);}
9308
- var totalDataCount=0;for(var i=0;i<rsBlocks.length;i++){totalDataCount+=rsBlocks[i].dataCount;}
9309
- if(buffer.getLengthInBits()>totalDataCount*8){throw new Error("code length overflow. ("
9310
- +buffer.getLengthInBits()
9311
- +">"
9312
- +totalDataCount*8
9313
- +")");}
9314
- if(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4);}
9315
- while(buffer.getLengthInBits()%8!=0){buffer.putBit(false);}
9316
- while(true){if(buffer.getLengthInBits()>=totalDataCount*8){break;}
9317
- buffer.put(QRCodeModel.PAD0,8);if(buffer.getLengthInBits()>=totalDataCount*8){break;}
9318
- buffer.put(QRCodeModel.PAD1,8);}
9319
- return QRCodeModel.createBytes(buffer,rsBlocks);};QRCodeModel.createBytes=function(buffer,rsBlocks){var offset=0;var maxDcCount=0;var maxEcCount=0;var dcdata=new Array(rsBlocks.length);var ecdata=new Array(rsBlocks.length);for(var r=0;r<rsBlocks.length;r++){var dcCount=rsBlocks[r].dataCount;var ecCount=rsBlocks[r].totalCount-dcCount;maxDcCount=Math.max(maxDcCount,dcCount);maxEcCount=Math.max(maxEcCount,ecCount);dcdata[r]=new Array(dcCount);for(var i=0;i<dcdata[r].length;i++){dcdata[r][i]=0xff&buffer.buffer[i+offset];}
9320
- offset+=dcCount;var rsPoly=QRUtil.getErrorCorrectPolynomial(ecCount);var rawPoly=new QRPolynomial(dcdata[r],rsPoly.getLength()-1);var modPoly=rawPoly.mod(rsPoly);ecdata[r]=new Array(rsPoly.getLength()-1);for(var i=0;i<ecdata[r].length;i++){var modIndex=i+modPoly.getLength()-ecdata[r].length;ecdata[r][i]=(modIndex>=0)?modPoly.get(modIndex):0;}}
9321
- var totalCodeCount=0;for(var i=0;i<rsBlocks.length;i++){totalCodeCount+=rsBlocks[i].totalCount;}
9322
- var data=new Array(totalCodeCount);var index=0;for(var i=0;i<maxDcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<dcdata[r].length){data[index++]=dcdata[r][i];}}}
9323
- for(var i=0;i<maxEcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<ecdata[r].length){data[index++]=ecdata[r][i];}}}
9324
- return data;};var QRMode={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3};var QRErrorCorrectLevel={L:1,M:0,Q:3,H:2};var QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var QRUtil={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:(1<<10)|(1<<8)|(1<<5)|(1<<4)|(1<<2)|(1<<1)|(1<<0),G18:(1<<12)|(1<<11)|(1<<10)|(1<<9)|(1<<8)|(1<<5)|(1<<2)|(1<<0),G15_MASK:(1<<14)|(1<<12)|(1<<10)|(1<<4)|(1<<1),getBCHTypeInfo:function(data){var d=data<<10;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)>=0){d^=(QRUtil.G15<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)));}
9325
- return((data<<10)|d)^QRUtil.G15_MASK;},getBCHTypeNumber:function(data){var d=data<<12;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0){d^=(QRUtil.G18<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)));}
9326
- return(data<<12)|d;},getBCHDigit:function(data){var digit=0;while(data!=0){digit++;data>>>=1;}
9327
- return digit;},getPatternPosition:function(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1];},getMask:function(maskPattern,i,j){switch(maskPattern){case QRMaskPattern.PATTERN000:return(i+j)%2==0;case QRMaskPattern.PATTERN001:return i%2==0;case QRMaskPattern.PATTERN010:return j%3==0;case QRMaskPattern.PATTERN011:return(i+j)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern.PATTERN101:return(i*j)%2+(i*j)%3==0;case QRMaskPattern.PATTERN110:return((i*j)%2+(i*j)%3)%2==0;case QRMaskPattern.PATTERN111:return((i*j)%3+(i+j)%2)%2==0;default:throw new Error("bad maskPattern:"+maskPattern);}},getErrorCorrectPolynomial:function(errorCorrectLength){var a=new QRPolynomial([1],0);for(var i=0;i<errorCorrectLength;i++){a=a.multiply(new QRPolynomial([1,QRMath.gexp(i)],0));}
9328
- return a;},getLengthInBits:function(mode,type){if(1<=type&&type<10){switch(mode){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+mode);}}else if(type<27){switch(mode){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+mode);}}else if(type<41){switch(mode){case QRMode.MODE_NUMBER:return 14;case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+mode);}}else{throw new Error("type:"+type);}},getLostPoint:function(qrCode){var moduleCount=qrCode.getModuleCount();var lostPoint=0;for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount;col++){var sameCount=0;var dark=qrCode.isDark(row,col);for(var r=-1;r<=1;r++){if(row+r<0||moduleCount<=row+r){continue;}
9329
- for(var c=-1;c<=1;c++){if(col+c<0||moduleCount<=col+c){continue;}
9330
- if(r==0&&c==0){continue;}
9331
- if(dark==qrCode.isDark(row+r,col+c)){sameCount++;}}}
9332
- if(sameCount>5){lostPoint+=(3+sameCount-5);}}}
9333
- for(var row=0;row<moduleCount-1;row++){for(var col=0;col<moduleCount-1;col++){var count=0;if(qrCode.isDark(row,col))count++;if(qrCode.isDark(row+1,col))count++;if(qrCode.isDark(row,col+1))count++;if(qrCode.isDark(row+1,col+1))count++;if(count==0||count==4){lostPoint+=3;}}}
9334
- for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount-6;col++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row,col+1)&&qrCode.isDark(row,col+2)&&qrCode.isDark(row,col+3)&&qrCode.isDark(row,col+4)&&!qrCode.isDark(row,col+5)&&qrCode.isDark(row,col+6)){lostPoint+=40;}}}
9335
- for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount-6;row++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row+1,col)&&qrCode.isDark(row+2,col)&&qrCode.isDark(row+3,col)&&qrCode.isDark(row+4,col)&&!qrCode.isDark(row+5,col)&&qrCode.isDark(row+6,col)){lostPoint+=40;}}}
9336
- var darkCount=0;for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount;row++){if(qrCode.isDark(row,col)){darkCount++;}}}
9337
- var ratio=Math.abs(100*darkCount/moduleCount/moduleCount-50)/5;lostPoint+=ratio*10;return lostPoint;}};var QRMath={glog:function(n){if(n<1){throw new Error("glog("+n+")");}
9338
- return QRMath.LOG_TABLE[n];},gexp:function(n){while(n<0){n+=255;}
9339
- while(n>=256){n-=255;}
9340
- return QRMath.EXP_TABLE[n];},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++){QRMath.EXP_TABLE[i]=1<<i;}
9341
- for(var i=8;i<256;i++){QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];}
9342
- for(var i=0;i<255;i++){QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;}
9343
- function QRPolynomial(num,shift){if(num.length==undefined){throw new Error(num.length+"/"+shift);}
9344
- var offset=0;while(offset<num.length&&num[offset]==0){offset++;}
9345
- this.num=new Array(num.length-offset+shift);for(var i=0;i<num.length-offset;i++){this.num[i]=num[i+offset];}}
9346
- QRPolynomial.prototype={get:function(index){return this.num[index];},getLength:function(){return this.num.length;},multiply:function(e){var num=new Array(this.getLength()+e.getLength()-1);for(var i=0;i<this.getLength();i++){for(var j=0;j<e.getLength();j++){num[i+j]^=QRMath.gexp(QRMath.glog(this.get(i))+QRMath.glog(e.get(j)));}}
9347
- return new QRPolynomial(num,0);},mod:function(e){if(this.getLength()-e.getLength()<0){return this;}
9348
- var ratio=QRMath.glog(this.get(0))-QRMath.glog(e.get(0));var num=new Array(this.getLength());for(var i=0;i<this.getLength();i++){num[i]=this.get(i);}
9349
- for(var i=0;i<e.getLength();i++){num[i]^=QRMath.gexp(QRMath.glog(e.get(i))+ratio);}
9350
- return new QRPolynomial(num,0).mod(e);}};function QRRSBlock(totalCount,dataCount){this.totalCount=totalCount;this.dataCount=dataCount;}
9351
- QRRSBlock.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]];QRRSBlock.getRSBlocks=function(typeNumber,errorCorrectLevel){var rsBlock=QRRSBlock.getRsBlockTable(typeNumber,errorCorrectLevel);if(rsBlock==undefined){throw new Error("bad rs block @ typeNumber:"+typeNumber+"/errorCorrectLevel:"+errorCorrectLevel);}
9352
- var length=rsBlock.length/3;var list=[];for(var i=0;i<length;i++){var count=rsBlock[i*3+0];var totalCount=rsBlock[i*3+1];var dataCount=rsBlock[i*3+2];for(var j=0;j<count;j++){list.push(new QRRSBlock(totalCount,dataCount));}}
9353
- return list;};QRRSBlock.getRsBlockTable=function(typeNumber,errorCorrectLevel){switch(errorCorrectLevel){case QRErrorCorrectLevel.L:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+0];case QRErrorCorrectLevel.M:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+1];case QRErrorCorrectLevel.Q:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+2];case QRErrorCorrectLevel.H:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+3];default:return undefined;}};function QRBitBuffer(){this.buffer=[];this.length=0;}
9354
- QRBitBuffer.prototype={get:function(index){var bufIndex=Math.floor(index/8);return((this.buffer[bufIndex]>>>(7-index%8))&1)==1;},put:function(num,length){for(var i=0;i<length;i++){this.putBit(((num>>>(length-i-1))&1)==1);}},getLengthInBits:function(){return this.length;},putBit:function(bit){var bufIndex=Math.floor(this.length/8);if(this.buffer.length<=bufIndex){this.buffer.push(0);}
9355
- if(bit){this.buffer[bufIndex]|=(0x80>>>(this.length%8));}
9356
- this.length++;}};var QRCodeLimitLength=[[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]];
9357
-
9358
- function _isSupportCanvas() {
9359
- return typeof CanvasRenderingContext2D != "undefined";
9360
- }
9361
-
9362
- // android 2.x doesn't support Data-URI spec
9363
- function _getAndroid() {
9364
- var android = false;
9365
- var sAgent = navigator.userAgent;
9366
-
9367
- if (/android/i.test(sAgent)) { // android
9368
- android = true;
9369
- var aMat = sAgent.toString().match(/android ([0-9]\.[0-9])/i);
9370
-
9371
- if (aMat && aMat[1]) {
9372
- android = parseFloat(aMat[1]);
9373
- }
9374
- }
9375
-
9376
- return android;
9377
- }
9378
-
9379
- var svgDrawer = (function() {
9380
-
9381
- var Drawing = function (el, htOption) {
9382
- this._el = el;
9383
- this._htOption = htOption;
9384
- };
9385
-
9386
- Drawing.prototype.draw = function (oQRCode) {
9387
- var _htOption = this._htOption;
9388
- var _el = this._el;
9389
- var nCount = oQRCode.getModuleCount();
9390
- var nWidth = Math.floor(_htOption.width / nCount);
9391
- var nHeight = Math.floor(_htOption.height / nCount);
9392
-
9393
- this.clear();
9394
-
9395
- function makeSVG(tag, attrs) {
9396
- var el = document.createElementNS('http://www.w3.org/2000/svg', tag);
9397
- for (var k in attrs)
9398
- if (attrs.hasOwnProperty(k)) el.setAttribute(k, attrs[k]);
9399
- return el;
9400
- }
9401
-
9402
- var svg = makeSVG("svg" , {'viewBox': '0 0 ' + String(nCount) + " " + String(nCount), 'width': '100%', 'height': '100%', 'fill': _htOption.colorLight});
9403
- svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink");
9404
- _el.appendChild(svg);
9405
-
9406
- svg.appendChild(makeSVG("rect", {"fill": _htOption.colorLight, "width": "100%", "height": "100%"}));
9407
- svg.appendChild(makeSVG("rect", {"fill": _htOption.colorDark, "width": "1", "height": "1", "id": "template"}));
9408
-
9409
- for (var row = 0; row < nCount; row++) {
9410
- for (var col = 0; col < nCount; col++) {
9411
- if (oQRCode.isDark(row, col)) {
9412
- var child = makeSVG("use", {"x": String(col), "y": String(row)});
9413
- child.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template")
9414
- svg.appendChild(child);
9415
- }
9416
- }
9417
- }
9418
- };
9419
- Drawing.prototype.clear = function () {
9420
- while (this._el.hasChildNodes())
9421
- this._el.removeChild(this._el.lastChild);
9422
- };
9423
- return Drawing;
9424
- })();
9425
-
9426
- var useSVG = document.documentElement.tagName.toLowerCase() === "svg";
9427
-
9428
- // Drawing in DOM by using Table tag
9429
- var Drawing = useSVG ? svgDrawer : !_isSupportCanvas() ? (function () {
9430
- var Drawing = function (el, htOption) {
9431
- this._el = el;
9432
- this._htOption = htOption;
9433
- };
9434
-
9435
- /**
9436
- * Draw the QRCode
9437
- *
9438
- * @param {QRCode} oQRCode
9439
- */
9440
- Drawing.prototype.draw = function (oQRCode) {
9441
- var _htOption = this._htOption;
9442
- var _el = this._el;
9443
- var nCount = oQRCode.getModuleCount();
9444
- var nWidth = Math.floor(_htOption.width / nCount);
9445
- var nHeight = Math.floor(_htOption.height / nCount);
9446
- var aHTML = ['<table style="border:0;border-collapse:collapse;">'];
9447
-
9448
- for (var row = 0; row < nCount; row++) {
9449
- aHTML.push('<tr>');
9450
-
9451
- for (var col = 0; col < nCount; col++) {
9452
- aHTML.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + nWidth + 'px;height:' + nHeight + 'px;background-color:' + (oQRCode.isDark(row, col) ? _htOption.colorDark : _htOption.colorLight) + ';"></td>');
9453
- }
9454
-
9455
- aHTML.push('</tr>');
9456
- }
9457
-
9458
- aHTML.push('</table>');
9459
- _el.innerHTML = aHTML.join('');
9460
-
9461
- // Fix the margin values as real size.
9462
- var elTable = _el.childNodes[0];
9463
- var nLeftMarginTable = (_htOption.width - elTable.offsetWidth) / 2;
9464
- var nTopMarginTable = (_htOption.height - elTable.offsetHeight) / 2;
9465
-
9466
- if (nLeftMarginTable > 0 && nTopMarginTable > 0) {
9467
- elTable.style.margin = nTopMarginTable + "px " + nLeftMarginTable + "px";
9468
- }
9469
- };
9470
-
9471
- /**
9472
- * Clear the QRCode
9473
- */
9474
- Drawing.prototype.clear = function () {
9475
- this._el.innerHTML = '';
9476
- };
9477
-
9478
- return Drawing;
9479
- })() : (function () { // Drawing in Canvas
9480
- function _onMakeImage() {
9481
- this._elImage.src = this._elCanvas.toDataURL("image/png");
9482
- this._elImage.style.display = "block";
9483
- this._elCanvas.style.display = "none";
9484
- }
9485
-
9486
- // Android 2.1 bug workaround
9487
- // http://code.google.com/p/android/issues/detail?id=5141
9488
- if (this._android && this._android <= 2.1) {
9489
- var factor = 1 / window.devicePixelRatio;
9490
- var drawImage = CanvasRenderingContext2D.prototype.drawImage;
9491
- CanvasRenderingContext2D.prototype.drawImage = function (image, sx, sy, sw, sh, dx, dy, dw, dh) {
9492
- if (("nodeName" in image) && /img/i.test(image.nodeName)) {
9493
- for (var i = arguments.length - 1; i >= 1; i--) {
9494
- arguments[i] = arguments[i] * factor;
9495
- }
9496
- } else if (typeof dw == "undefined") {
9497
- arguments[1] *= factor;
9498
- arguments[2] *= factor;
9499
- arguments[3] *= factor;
9500
- arguments[4] *= factor;
9501
- }
9502
-
9503
- drawImage.apply(this, arguments);
9504
- };
9505
- }
9506
-
9507
- /**
9508
- * Check whether the user's browser supports Data URI or not
9509
- *
9510
- * @private
9511
- * @param {Function} fSuccess Occurs if it supports Data URI
9512
- * @param {Function} fFail Occurs if it doesn't support Data URI
9513
- */
9514
- function _safeSetDataURI(fSuccess, fFail) {
9515
- var self = this;
9516
- self._fFail = fFail;
9517
- self._fSuccess = fSuccess;
9518
-
9519
- // Check it just once
9520
- if (self._bSupportDataURI === null) {
9521
- var el = document.createElement("img");
9522
- var fOnError = function() {
9523
- self._bSupportDataURI = false;
9524
-
9525
- if (self._fFail) {
9526
- self._fFail.call(self);
9527
- }
9528
- };
9529
- var fOnSuccess = function() {
9530
- self._bSupportDataURI = true;
9531
-
9532
- if (self._fSuccess) {
9533
- self._fSuccess.call(self);
9534
- }
9535
- };
9536
-
9537
- el.onabort = fOnError;
9538
- el.onerror = fOnError;
9539
- el.onload = fOnSuccess;
9540
- el.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="; // the Image contains 1px data.
9541
- return;
9542
- } else if (self._bSupportDataURI === true && self._fSuccess) {
9543
- self._fSuccess.call(self);
9544
- } else if (self._bSupportDataURI === false && self._fFail) {
9545
- self._fFail.call(self);
9546
- }
9547
- };
9548
-
9549
- /**
9550
- * Drawing QRCode by using canvas
9551
- *
9552
- * @constructor
9553
- * @param {HTMLElement} el
9554
- * @param {Object} htOption QRCode Options
9555
- */
9556
- var Drawing = function (el, htOption) {
9557
- this._bIsPainted = false;
9558
- this._android = _getAndroid();
9559
-
9560
- this._htOption = htOption;
9561
- this._elCanvas = document.createElement("canvas");
9562
- this._elCanvas.width = htOption.width;
9563
- this._elCanvas.height = htOption.height;
9564
- el.appendChild(this._elCanvas);
9565
- this._el = el;
9566
- this._oContext = this._elCanvas.getContext("2d");
9567
- this._bIsPainted = false;
9568
- this._elImage = document.createElement("img");
9569
- this._elImage.alt = "Scan me!";
9570
- this._elImage.style.display = "none";
9571
- this._el.appendChild(this._elImage);
9572
- this._bSupportDataURI = null;
9573
- };
9574
-
9575
- /**
9576
- * Draw the QRCode
9577
- *
9578
- * @param {QRCode} oQRCode
9579
- */
9580
- Drawing.prototype.draw = function (oQRCode) {
9581
- var _elImage = this._elImage;
9582
- var _oContext = this._oContext;
9583
- var _htOption = this._htOption;
9584
-
9585
- var nCount = oQRCode.getModuleCount();
9586
- var nWidth = _htOption.width / nCount;
9587
- var nHeight = _htOption.height / nCount;
9588
- var nRoundedWidth = Math.round(nWidth);
9589
- var nRoundedHeight = Math.round(nHeight);
9590
-
9591
- _elImage.style.display = "none";
9592
- this.clear();
9593
-
9594
- for (var row = 0; row < nCount; row++) {
9595
- for (var col = 0; col < nCount; col++) {
9596
- var bIsDark = oQRCode.isDark(row, col);
9597
- var nLeft = col * nWidth;
9598
- var nTop = row * nHeight;
9599
- _oContext.strokeStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;
9600
- _oContext.lineWidth = 1;
9601
- _oContext.fillStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;
9602
- _oContext.fillRect(nLeft, nTop, nWidth, nHeight);
9603
-
9604
- // 안티 앨리어싱 방지 처리
9605
- _oContext.strokeRect(
9606
- Math.floor(nLeft) + 0.5,
9607
- Math.floor(nTop) + 0.5,
9608
- nRoundedWidth,
9609
- nRoundedHeight
9610
- );
9611
-
9612
- _oContext.strokeRect(
9613
- Math.ceil(nLeft) - 0.5,
9614
- Math.ceil(nTop) - 0.5,
9615
- nRoundedWidth,
9616
- nRoundedHeight
9617
- );
9618
- }
9619
- }
9620
-
9621
- this._bIsPainted = true;
9622
- };
9623
-
9624
- /**
9625
- * Make the image from Canvas if the browser supports Data URI.
9626
- */
9627
- Drawing.prototype.makeImage = function () {
9628
- if (this._bIsPainted) {
9629
- _safeSetDataURI.call(this, _onMakeImage);
9630
- }
9631
- };
9632
-
9633
- /**
9634
- * Return whether the QRCode is painted or not
9635
- *
9636
- * @return {Boolean}
9637
- */
9638
- Drawing.prototype.isPainted = function () {
9639
- return this._bIsPainted;
9640
- };
9641
-
9642
- /**
9643
- * Clear the QRCode
9644
- */
9645
- Drawing.prototype.clear = function () {
9646
- this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height);
9647
- this._bIsPainted = false;
9648
- };
9649
-
9650
- /**
9651
- * @private
9652
- * @param {Number} nNumber
9653
- */
9654
- Drawing.prototype.round = function (nNumber) {
9655
- if (!nNumber) {
9656
- return nNumber;
9657
- }
9658
-
9659
- return Math.floor(nNumber * 1000) / 1000;
9660
- };
9661
-
9662
- return Drawing;
9663
- })();
9664
-
9665
- /**
9666
- * Get the type by string length
9667
- *
9668
- * @private
9669
- * @param {String} sText
9670
- * @param {Number} nCorrectLevel
9671
- * @return {Number} type
9672
- */
9673
- function _getTypeNumber(sText, nCorrectLevel) {
9674
- var nType = 1;
9675
- var length = _getUTF8Length(sText);
9676
-
9677
- for (var i = 0, len = QRCodeLimitLength.length; i <= len; i++) {
9678
- var nLimit = 0;
9679
-
9680
- switch (nCorrectLevel) {
9681
- case QRErrorCorrectLevel.L :
9682
- nLimit = QRCodeLimitLength[i][0];
9683
- break;
9684
- case QRErrorCorrectLevel.M :
9685
- nLimit = QRCodeLimitLength[i][1];
9686
- break;
9687
- case QRErrorCorrectLevel.Q :
9688
- nLimit = QRCodeLimitLength[i][2];
9689
- break;
9690
- case QRErrorCorrectLevel.H :
9691
- nLimit = QRCodeLimitLength[i][3];
9692
- break;
9693
- }
9694
-
9695
- if (length <= nLimit) {
9696
- break;
9697
- } else {
9698
- nType++;
9699
- }
9700
- }
9701
-
9702
- if (nType > QRCodeLimitLength.length) {
9703
- throw new Error("Too long data");
9704
- }
9705
-
9706
- return nType;
9707
- }
9708
-
9709
- function _getUTF8Length(sText) {
9710
- var replacedText = encodeURI(sText).toString().replace(/\%[0-9a-fA-F]{2}/g, 'a');
9711
- return replacedText.length + (replacedText.length != sText ? 3 : 0);
9712
- }
9713
-
9714
- /**
9715
- * @class QRCode
9716
- * @constructor
9717
- * @example
9718
- * new QRCode(document.getElementById("test"), "http://jindo.dev.naver.com/collie");
9719
- *
9720
- * @example
9721
- * var oQRCode = new QRCode("test", {
9722
- * text : "http://naver.com",
9723
- * width : 128,
9724
- * height : 128
9725
- * });
9726
- *
9727
- * oQRCode.clear(); // Clear the QRCode.
9728
- * oQRCode.makeCode("http://map.naver.com"); // Re-create the QRCode.
9729
- *
9730
- * @param {HTMLElement|String} el target element or 'id' attribute of element.
9731
- * @param {Object|String} vOption
9732
- * @param {String} vOption.text QRCode link data
9733
- * @param {Number} [vOption.width=256]
9734
- * @param {Number} [vOption.height=256]
9735
- * @param {String} [vOption.colorDark="#000000"]
9736
- * @param {String} [vOption.colorLight="#ffffff"]
9737
- * @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H]
9738
- */
9739
- QRCode = function (el, vOption) {
9740
- this._htOption = {
9741
- width : 256,
9742
- height : 256,
9743
- typeNumber : 4,
9744
- colorDark : "#000000",
9745
- colorLight : "#ffffff",
9746
- correctLevel : QRErrorCorrectLevel.H
9747
- };
9748
-
9749
- if (typeof vOption === 'string') {
9750
- vOption = {
9751
- text : vOption
9752
- };
9753
- }
9754
-
9755
- // Overwrites options
9756
- if (vOption) {
9757
- for (var i in vOption) {
9758
- this._htOption[i] = vOption[i];
9759
- }
9760
- }
9761
-
9762
- if (typeof el == "string") {
9763
- el = document.getElementById(el);
9764
- }
9765
-
9766
- if (this._htOption.useSVG) {
9767
- Drawing = svgDrawer;
9768
- }
9769
-
9770
- this._android = _getAndroid();
9771
- this._el = el;
9772
- this._oQRCode = null;
9773
- this._oDrawing = new Drawing(this._el, this._htOption);
9774
-
9775
- if (this._htOption.text) {
9776
- this.makeCode(this._htOption.text);
9777
- }
9778
- };
9779
-
9780
- /**
9781
- * Make the QRCode
9782
- *
9783
- * @param {String} sText link data
9784
- */
9785
- QRCode.prototype.makeCode = function (sText) {
9786
- this._oQRCode = new QRCodeModel(_getTypeNumber(sText, this._htOption.correctLevel), this._htOption.correctLevel);
9787
- this._oQRCode.addData(sText);
9788
- this._oQRCode.make();
9789
- this._el.title = sText;
9790
- this._oDrawing.draw(this._oQRCode);
9791
- this.makeImage();
9792
- };
9793
-
9794
- /**
9795
- * Make the Image from Canvas element
9796
- * - It occurs automatically
9797
- * - Android below 3 doesn't support Data-URI spec.
9798
- *
9799
- * @private
9800
- */
9801
- QRCode.prototype.makeImage = function () {
9802
- if (typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3)) {
9803
- this._oDrawing.makeImage();
9804
- }
9805
- };
9806
-
9807
- /**
9808
- * Clear the QRCode
9809
- */
9810
- QRCode.prototype.clear = function () {
9811
- this._oDrawing.clear();
9812
- };
9813
-
9814
- /**
9815
- * @name QRCode.CorrectLevel
9816
- */
9817
- QRCode.CorrectLevel = QRErrorCorrectLevel;
9818
-
9819
- return QRCode;
9820
-
9821
- }));
9822
-
9823
-
9824
9192
  /***/ },
9825
9193
 
9826
9194
  /***/ 9137
@@ -11155,6 +10523,9 @@ $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
11155
10523
  /******/ return module.exports;
11156
10524
  /******/ }
11157
10525
  /******/
10526
+ /******/ // expose the modules object (__webpack_modules__)
10527
+ /******/ __webpack_require__.m = __webpack_modules__;
10528
+ /******/
11158
10529
  /************************************************************************/
11159
10530
  /******/ /* webpack/runtime/compat get default export */
11160
10531
  /******/ (() => {
@@ -11168,6 +10539,36 @@ $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
11168
10539
  /******/ };
11169
10540
  /******/ })();
11170
10541
  /******/
10542
+ /******/ /* webpack/runtime/create fake namespace object */
10543
+ /******/ (() => {
10544
+ /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
10545
+ /******/ var leafPrototypes;
10546
+ /******/ // create a fake namespace object
10547
+ /******/ // mode & 1: value is a module id, require it
10548
+ /******/ // mode & 2: merge all properties of value into the ns
10549
+ /******/ // mode & 4: return value when already ns object
10550
+ /******/ // mode & 16: return value when it's Promise-like
10551
+ /******/ // mode & 8|1: behave like require
10552
+ /******/ __webpack_require__.t = function(value, mode) {
10553
+ /******/ if(mode & 1) value = this(value);
10554
+ /******/ if(mode & 8) return value;
10555
+ /******/ if(typeof value === 'object' && value) {
10556
+ /******/ if((mode & 4) && value.__esModule) return value;
10557
+ /******/ if((mode & 16) && typeof value.then === 'function') return value;
10558
+ /******/ }
10559
+ /******/ var ns = Object.create(null);
10560
+ /******/ __webpack_require__.r(ns);
10561
+ /******/ var def = {};
10562
+ /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
10563
+ /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
10564
+ /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
10565
+ /******/ }
10566
+ /******/ def['default'] = () => (value);
10567
+ /******/ __webpack_require__.d(ns, def);
10568
+ /******/ return ns;
10569
+ /******/ };
10570
+ /******/ })();
10571
+ /******/
11171
10572
  /******/ /* webpack/runtime/define property getters */
11172
10573
  /******/ (() => {
11173
10574
  /******/ // define getter functions for harmony exports
@@ -11180,6 +10581,37 @@ $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
11180
10581
  /******/ };
11181
10582
  /******/ })();
11182
10583
  /******/
10584
+ /******/ /* webpack/runtime/ensure chunk */
10585
+ /******/ (() => {
10586
+ /******/ __webpack_require__.f = {};
10587
+ /******/ // This file contains only the entry chunk.
10588
+ /******/ // The chunk loading function for additional chunks
10589
+ /******/ __webpack_require__.e = (chunkId) => {
10590
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
10591
+ /******/ __webpack_require__.f[key](chunkId, promises);
10592
+ /******/ return promises;
10593
+ /******/ }, []));
10594
+ /******/ };
10595
+ /******/ })();
10596
+ /******/
10597
+ /******/ /* webpack/runtime/get javascript chunk filename */
10598
+ /******/ (() => {
10599
+ /******/ // This function allow to reference async chunks
10600
+ /******/ __webpack_require__.u = (chunkId) => {
10601
+ /******/ // return url for filenames based on template
10602
+ /******/ return "icve-sso-vue3.umd." + chunkId + ".js";
10603
+ /******/ };
10604
+ /******/ })();
10605
+ /******/
10606
+ /******/ /* webpack/runtime/get mini-css chunk filename */
10607
+ /******/ (() => {
10608
+ /******/ // This function allow to reference async chunks
10609
+ /******/ __webpack_require__.miniCssF = (chunkId) => {
10610
+ /******/ // return url for filenames based on template
10611
+ /******/ return undefined;
10612
+ /******/ };
10613
+ /******/ })();
10614
+ /******/
11183
10615
  /******/ /* webpack/runtime/global */
11184
10616
  /******/ (() => {
11185
10617
  /******/ __webpack_require__.g = (function() {
@@ -11197,6 +10629,51 @@ $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
11197
10629
  /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
11198
10630
  /******/ })();
11199
10631
  /******/
10632
+ /******/ /* webpack/runtime/load script */
10633
+ /******/ (() => {
10634
+ /******/ var inProgress = {};
10635
+ /******/ var dataWebpackPrefix = "icve-sso-vue3:";
10636
+ /******/ // loadScript function to load a script via script tag
10637
+ /******/ __webpack_require__.l = (url, done, key, chunkId) => {
10638
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
10639
+ /******/ var script, needAttach;
10640
+ /******/ if(key !== undefined) {
10641
+ /******/ var scripts = document.getElementsByTagName("script");
10642
+ /******/ for(var i = 0; i < scripts.length; i++) {
10643
+ /******/ var s = scripts[i];
10644
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
10645
+ /******/ }
10646
+ /******/ }
10647
+ /******/ if(!script) {
10648
+ /******/ needAttach = true;
10649
+ /******/ script = document.createElement('script');
10650
+ /******/
10651
+ /******/ script.charset = 'utf-8';
10652
+ /******/ if (__webpack_require__.nc) {
10653
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
10654
+ /******/ }
10655
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
10656
+ /******/
10657
+ /******/ script.src = url;
10658
+ /******/ }
10659
+ /******/ inProgress[url] = [done];
10660
+ /******/ var onScriptComplete = (prev, event) => {
10661
+ /******/ // avoid mem leaks in IE.
10662
+ /******/ script.onerror = script.onload = null;
10663
+ /******/ clearTimeout(timeout);
10664
+ /******/ var doneFns = inProgress[url];
10665
+ /******/ delete inProgress[url];
10666
+ /******/ script.parentNode && script.parentNode.removeChild(script);
10667
+ /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
10668
+ /******/ if(prev) return prev(event);
10669
+ /******/ }
10670
+ /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
10671
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
10672
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
10673
+ /******/ needAttach && document.head.appendChild(script);
10674
+ /******/ };
10675
+ /******/ })();
10676
+ /******/
11200
10677
  /******/ /* webpack/runtime/make namespace object */
11201
10678
  /******/ (() => {
11202
10679
  /******/ // define __esModule on exports
@@ -11213,6 +10690,96 @@ $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
11213
10690
  /******/ __webpack_require__.p = "";
11214
10691
  /******/ })();
11215
10692
  /******/
10693
+ /******/ /* webpack/runtime/jsonp chunk loading */
10694
+ /******/ (() => {
10695
+ /******/ // no baseURI
10696
+ /******/
10697
+ /******/ // object to store loaded and loading chunks
10698
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
10699
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
10700
+ /******/ var installedChunks = {
10701
+ /******/ 212: 0
10702
+ /******/ };
10703
+ /******/
10704
+ /******/ __webpack_require__.f.j = (chunkId, promises) => {
10705
+ /******/ // JSONP chunk loading for javascript
10706
+ /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
10707
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
10708
+ /******/
10709
+ /******/ // a Promise means "currently loading".
10710
+ /******/ if(installedChunkData) {
10711
+ /******/ promises.push(installedChunkData[2]);
10712
+ /******/ } else {
10713
+ /******/ if(true) { // all chunks have JS
10714
+ /******/ // setup Promise in chunk cache
10715
+ /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
10716
+ /******/ promises.push(installedChunkData[2] = promise);
10717
+ /******/
10718
+ /******/ // start chunk loading
10719
+ /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
10720
+ /******/ // create error before stack unwound to get useful stacktrace later
10721
+ /******/ var error = new Error();
10722
+ /******/ var loadingEnded = (event) => {
10723
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
10724
+ /******/ installedChunkData = installedChunks[chunkId];
10725
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
10726
+ /******/ if(installedChunkData) {
10727
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
10728
+ /******/ var realSrc = event && event.target && event.target.src;
10729
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
10730
+ /******/ error.name = 'ChunkLoadError';
10731
+ /******/ error.type = errorType;
10732
+ /******/ error.request = realSrc;
10733
+ /******/ installedChunkData[1](error);
10734
+ /******/ }
10735
+ /******/ }
10736
+ /******/ };
10737
+ /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
10738
+ /******/ }
10739
+ /******/ }
10740
+ /******/ }
10741
+ /******/ };
10742
+ /******/
10743
+ /******/ // no prefetching
10744
+ /******/
10745
+ /******/ // no preloaded
10746
+ /******/
10747
+ /******/ // no HMR
10748
+ /******/
10749
+ /******/ // no HMR manifest
10750
+ /******/
10751
+ /******/ // no on chunks loaded
10752
+ /******/
10753
+ /******/ // install a JSONP callback for chunk loading
10754
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
10755
+ /******/ var [chunkIds, moreModules, runtime] = data;
10756
+ /******/ // add "moreModules" to the modules object,
10757
+ /******/ // then flag all "chunkIds" as loaded and fire callback
10758
+ /******/ var moduleId, chunkId, i = 0;
10759
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
10760
+ /******/ for(moduleId in moreModules) {
10761
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
10762
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
10763
+ /******/ }
10764
+ /******/ }
10765
+ /******/ if(runtime) var result = runtime(__webpack_require__);
10766
+ /******/ }
10767
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
10768
+ /******/ for(;i < chunkIds.length; i++) {
10769
+ /******/ chunkId = chunkIds[i];
10770
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
10771
+ /******/ installedChunks[chunkId][0]();
10772
+ /******/ }
10773
+ /******/ installedChunks[chunkId] = 0;
10774
+ /******/ }
10775
+ /******/
10776
+ /******/ }
10777
+ /******/
10778
+ /******/ var chunkLoadingGlobal = (typeof self !== 'undefined' ? self : this)["webpackChunkicve_sso_vue3"] = (typeof self !== 'undefined' ? self : this)["webpackChunkicve_sso_vue3"] || [];
10779
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
10780
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
10781
+ /******/ })();
10782
+ /******/
11216
10783
  /************************************************************************/
11217
10784
  var __webpack_exports__ = {};
11218
10785
  // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
@@ -11253,7 +10820,7 @@ var es_array_concat = __webpack_require__(8706);
11253
10820
  var es_function_name = __webpack_require__(2010);
11254
10821
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
11255
10822
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
11256
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/userCenterCompleteInformation.vue?vue&type=template&id=075f8ed0&scoped=true
10823
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/userCenterCompleteInformation.vue?vue&type=template&id=9ec3e7ae&scoped=true
11257
10824
 
11258
10825
 
11259
10826
 
@@ -11541,7 +11108,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
11541
11108
  })
11542
11109
  }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.defaultLang ? '提交' : 'Submit'), 1)])])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true);
11543
11110
  }
11544
- ;// ./src/components/userCenterCompleteInformation.vue?vue&type=template&id=075f8ed0&scoped=true
11111
+ ;// ./src/components/userCenterCompleteInformation.vue?vue&type=template&id=9ec3e7ae&scoped=true
11545
11112
 
11546
11113
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
11547
11114
  var es_array_includes = __webpack_require__(4423);
@@ -30432,7 +29999,7 @@ request_request.interceptors.request.use(function (config) {
30432
29999
  // if (getToken()) {
30433
30000
  // config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
30434
30001
  // }
30435
- if (sessionStorage.getItem('environment') === 'test') {
30002
+ if (typeof sessionStorage !== 'undefined' && sessionStorage.getItem('environment') === 'test') {
30436
30003
  // config.url = 'http://192.168.130.128:9101' + config.url
30437
30004
  config.url = 'https://testssov2.icve.com.cn/prod-api' + config.url;
30438
30005
  } else {
@@ -30762,12 +30329,18 @@ var api = init(defaultConverter, { path: '/' });
30762
30329
  //获取用户信息
30763
30330
  this.getUserInfo();
30764
30331
  this.getNationList();
30765
- // 添加键盘事件监听
30766
- document.addEventListener('keydown', this.handleKeyDown);
30767
30332
  },
30768
- beforeDestroy: function beforeDestroy() {
30769
- // 移除键盘事件监听
30770
- document.removeEventListener('keydown', this.handleKeyDown);
30333
+ mounted: function mounted() {
30334
+ // 添加键盘事件监听(确保在浏览器环境中)
30335
+ if (typeof document !== 'undefined') {
30336
+ document.addEventListener('keydown', this.handleKeyDown);
30337
+ }
30338
+ },
30339
+ beforeUnmount: function beforeUnmount() {
30340
+ // 移除键盘事件监听(确保在浏览器环境中)
30341
+ if (typeof document !== 'undefined') {
30342
+ document.removeEventListener('keydown', this.handleKeyDown);
30343
+ }
30771
30344
  },
30772
30345
  computed: {
30773
30346
  // 用户类型选项,支持自定义传递
@@ -30783,7 +30356,10 @@ var api = init(defaultConverter, { path: '/' });
30783
30356
  return this.language === 'cn';
30784
30357
  }
30785
30358
 
30786
- // 获取浏览器语言
30359
+ // 获取浏览器语言(确保在浏览器环境中)
30360
+ if (typeof navigator === 'undefined') {
30361
+ return true; // 默认返回中文
30362
+ }
30787
30363
  var browserLang = navigator.language || navigator.userLanguage || navigator.browserLanguage;
30788
30364
 
30789
30365
  // 检查是否为中文语言
@@ -30906,10 +30482,10 @@ var api = init(defaultConverter, { path: '/' });
30906
30482
  });
30907
30483
  ;// ./src/components/userCenterCompleteInformation.vue?vue&type=script&lang=js
30908
30484
 
30909
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/userCenterCompleteInformation.vue?vue&type=style&index=0&id=075f8ed0&lang=scss&scoped=true
30485
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/userCenterCompleteInformation.vue?vue&type=style&index=0&id=9ec3e7ae&lang=scss&scoped=true
30910
30486
  // extracted by mini-css-extract-plugin
30911
30487
 
30912
- ;// ./src/components/userCenterCompleteInformation.vue?vue&type=style&index=0&id=075f8ed0&lang=scss&scoped=true
30488
+ ;// ./src/components/userCenterCompleteInformation.vue?vue&type=style&index=0&id=9ec3e7ae&lang=scss&scoped=true
30913
30489
 
30914
30490
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
30915
30491
  var exportHelper = __webpack_require__(6262);
@@ -30921,7 +30497,7 @@ var exportHelper = __webpack_require__(6262);
30921
30497
  ;
30922
30498
 
30923
30499
 
30924
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(userCenterCompleteInformationvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-075f8ed0"]])
30500
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(userCenterCompleteInformationvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-9ec3e7ae"]])
30925
30501
 
30926
30502
  /* harmony default export */ const userCenterCompleteInformation = (__exports__);
30927
30503
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.is-array.js
@@ -32046,7 +31622,7 @@ var messages = {
32046
31622
 
32047
31623
  // 创建一个响应式的状态对象
32048
31624
  var state = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
32049
- locale: localStorage.getItem('language') || 'cn'
31625
+ locale: typeof localStorage !== 'undefined' && localStorage.getItem('language') || 'cn'
32050
31626
  });
32051
31627
 
32052
31628
  // 简单的国际化工具类
@@ -32069,7 +31645,9 @@ var SimpleI18n = /*#__PURE__*/function () {
32069
31645
  set: function set(val) {
32070
31646
  if (this.messages[val]) {
32071
31647
  this.state.locale = val;
32072
- localStorage.setItem('language', val);
31648
+ if (typeof localStorage !== 'undefined') {
31649
+ localStorage.setItem('language', val);
31650
+ }
32073
31651
  } else {
32074
31652
  console.warn("Locale ".concat(val, " not found"));
32075
31653
  }
@@ -33119,70 +32697,67 @@ const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)
33119
32697
  const verifyComponents_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(verifyComponentsvue_type_script_lang_js, [['render',verifyComponentsvue_type_template_id_7d804fae_render]])
33120
32698
 
33121
32699
  /* harmony default export */ const verifyComponents = (verifyComponents_exports_);
33122
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=template&id=6badd114&scoped=true
32700
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=template&id=1469993e&scoped=true
33123
32701
 
33124
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_1 = {
32702
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_1 = {
33125
32703
  "class": "qr-code-wrapper"
33126
32704
  };
33127
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_2 = ["id"];
33128
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_3 = {
32705
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_2 = ["id"];
32706
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_3 = {
33129
32707
  key: 0,
33130
32708
  "class": "qr-login-overlay"
33131
32709
  };
33132
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_4 = {
32710
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_4 = {
33133
32711
  key: 0,
33134
32712
  "class": "overlay-content"
33135
32713
  };
33136
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_5 = {
32714
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_5 = {
33137
32715
  "class": "overlay-text"
33138
32716
  };
33139
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_6 = {
32717
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_6 = {
33140
32718
  "class": "overlay-tip"
33141
32719
  };
33142
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_7 = {
32720
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_7 = {
33143
32721
  key: 1,
33144
32722
  "class": "overlay-content"
33145
32723
  };
33146
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_8 = {
32724
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_8 = {
33147
32725
  "class": "overlay-text",
33148
32726
  style: {
33149
32727
  "color": "red"
33150
32728
  }
33151
32729
  };
33152
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_9 = {
32730
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_9 = {
33153
32731
  "class": "overlay-tip"
33154
32732
  };
33155
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_10 = {
32733
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_10 = {
33156
32734
  "class": "qr-tip"
33157
32735
  };
33158
- var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_11 = {
32736
+ var QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_11 = {
33159
32737
  key: 0,
33160
32738
  "class": "bind-tip"
33161
32739
  };
33162
- function QRCodeLoginvue_type_template_id_6badd114_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
32740
+ function QRCodeLoginvue_type_template_id_1469993e_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
33163
32741
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
33164
32742
  "class": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["qr-login-container", {
33165
32743
  'qr-login-container1': $props.bdwxShow
33166
32744
  }])
33167
- }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
32745
+ }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
33168
32746
  id: "qrcode-container-".concat($data.uniqueId)
33169
- }, null, 8, QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_2), $data.loginStatus == 1 || $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_3, [$data.loginStatus == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_5, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('已扫码')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('请在手机上确认')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
32747
+ }, null, 8, QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_2), $data.loginStatus == 1 || $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_3, [$data.loginStatus == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_5, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('已扫码')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('请在手机上确认')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
33170
32748
  "class": "rescan-btn",
33171
32749
  onClick: _cache[0] || (_cache[0] = function () {
33172
32750
  return $options.handleRescanQrCode && $options.handleRescanQrCode.apply($options, arguments);
33173
32751
  })
33174
- }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新扫码')), 1)])) : $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_8, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('二维码已过期')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_9, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('请点击下方按钮刷新')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
32752
+ }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新扫码')), 1)])) : $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_8, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('二维码已过期')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_9, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('请点击下方按钮刷新')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
33175
32753
  "class": "rescan-btn",
33176
32754
  onClick: _cache[1] || (_cache[1] = function () {
33177
32755
  return $options.handleRescanQrCode && $options.handleRescanQrCode.apply($options, arguments);
33178
32756
  })
33179
- }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新生成')), 1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.bdwxShow ? _ctx.i18n('微信扫码进行账号绑定') : _ctx.i18n('微信或App扫码均可登录')), 1), $data.wxRandom ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_11, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~')), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
32757
+ }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新生成')), 1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.bdwxShow ? _ctx.i18n('微信扫码进行账号绑定') : _ctx.i18n('微信或App扫码均可登录')), 1), $data.wxRandom ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_1469993e_scoped_true_hoisted_11, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~')), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
33180
32758
  }
33181
- ;// ./src/components/QRCodeLogin.vue?vue&type=template&id=6badd114&scoped=true
32759
+ ;// ./src/components/QRCodeLogin.vue?vue&type=template&id=1469993e&scoped=true
33182
32760
 
33183
- // EXTERNAL MODULE: ./node_modules/qrcodejs2/qrcode.js
33184
- var qrcode = __webpack_require__(9118);
33185
- var qrcode_default = /*#__PURE__*/__webpack_require__.n(qrcode);
33186
32761
  ;// ./src/utils/auth.js
33187
32762
 
33188
32763
  var TokenKey = 'token';
@@ -33206,6 +32781,11 @@ function removeToken() {
33206
32781
 
33207
32782
 
33208
32783
 
32784
+
32785
+
32786
+
32787
+
32788
+
33209
32789
  /* harmony default export */ const QRCodeLoginvue_type_script_lang_js = ({
33210
32790
  mixins: [i18nMixin],
33211
32791
  props: {
@@ -33227,7 +32807,9 @@ function removeToken() {
33227
32807
  loginStatus: 0,
33228
32808
  // 0-未扫码, 1-已扫码待确认, 2-登录成功, 3-过期
33229
32809
  wxRandom: '',
33230
- uniqueId: '' // Vue 3 兼容的唯一ID
32810
+ uniqueId: '',
32811
+ // Vue 3 兼容的唯一ID
32812
+ QRCode: null // 动态加载的 QRCode 库
33231
32813
  };
33232
32814
  },
33233
32815
  mounted: function mounted() {
@@ -33238,64 +32820,135 @@ function removeToken() {
33238
32820
  this.clearTimers();
33239
32821
  },
33240
32822
  methods: {
32823
+ // 动态加载 QRCode 库
32824
+ loadQRCode: function loadQRCode() {
32825
+ var _this = this;
32826
+ return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
32827
+ var qrcodeModule;
32828
+ return _regenerator().w(function (_context) {
32829
+ while (1) switch (_context.n) {
32830
+ case 0:
32831
+ if (_this.QRCode) {
32832
+ _context.n = 2;
32833
+ break;
32834
+ }
32835
+ _context.n = 1;
32836
+ return __webpack_require__.e(/* import() */ 118).then(__webpack_require__.t.bind(__webpack_require__, 9118, 23));
32837
+ case 1:
32838
+ qrcodeModule = _context.v;
32839
+ _this.QRCode = qrcodeModule["default"] || qrcodeModule;
32840
+ case 2:
32841
+ return _context.a(2, _this.QRCode);
32842
+ }
32843
+ }, _callee);
32844
+ }))();
32845
+ },
33241
32846
  // 生成二维码
33242
32847
  generateQrCode: function generateQrCode() {
33243
- var _this = this;
33244
- this.loading = true;
33245
- this.error = '';
33246
- login_generateQrCode().then(function (_ref) {
33247
- var data = _ref.data;
33248
- _this.loading = false;
33249
- // this.qrCodeUrl = data.data.qrCodeUrl;
33250
- _this.generateQRCode(data.data.qrUrl);
33251
- _this.sceneId = data.data.sceneId;
33252
- _this.expireTime = data.data.expireTime;
33253
- // 启动轮询检查登录状态
33254
- _this.startPolling();
33255
- // 启动过期倒计时
33256
- _this.startCountdown();
33257
- })["catch"](function (err) {
33258
- _this.loading = false;
33259
- _this.error = '生成二维码失败,请重试';
33260
- console.error(err);
33261
- });
32848
+ var _this2 = this;
32849
+ return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
32850
+ return _regenerator().w(function (_context3) {
32851
+ while (1) switch (_context3.n) {
32852
+ case 0:
32853
+ _this2.loading = true;
32854
+ _this2.error = '';
32855
+ login_generateQrCode().then(/*#__PURE__*/function () {
32856
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
32857
+ var data;
32858
+ return _regenerator().w(function (_context2) {
32859
+ while (1) switch (_context2.n) {
32860
+ case 0:
32861
+ data = _ref.data;
32862
+ _this2.loading = false;
32863
+ // this.qrCodeUrl = data.data.qrCodeUrl;
32864
+ _context2.n = 1;
32865
+ return _this2.generateQRCode(data.data.qrUrl);
32866
+ case 1:
32867
+ _this2.sceneId = data.data.sceneId;
32868
+ _this2.expireTime = data.data.expireTime;
32869
+ // 启动轮询检查登录状态
32870
+ _this2.startPolling();
32871
+ // 启动过期倒计时
32872
+ _this2.startCountdown();
32873
+ case 2:
32874
+ return _context2.a(2);
32875
+ }
32876
+ }, _callee2);
32877
+ }));
32878
+ return function (_x) {
32879
+ return _ref2.apply(this, arguments);
32880
+ };
32881
+ }())["catch"](function (err) {
32882
+ _this2.loading = false;
32883
+ _this2.error = '生成二维码失败,请重试';
32884
+ console.error(err);
32885
+ });
32886
+ case 1:
32887
+ return _context3.a(2);
32888
+ }
32889
+ }, _callee3);
32890
+ }))();
33262
32891
  },
33263
32892
  generateQRCode: function generateQRCode(url) {
33264
- var containerId = "qrcode-container-".concat(this.uniqueId);
33265
- document.getElementById(containerId).innerHTML = '';
33266
- // 创建新的二维码实例
33267
- new (qrcode_default())(document.getElementById(containerId), {
33268
- text: url,
33269
- // 二维码内容(链接)
33270
- width: 240,
33271
- // 宽度
33272
- height: 240,
33273
- // 高度
33274
- colorDark: '#000000',
33275
- // 前景色
33276
- colorLight: '#ffffff',
33277
- // 背景色
33278
- correctLevel: (qrcode_default()).CorrectLevel.H // 容错级别
33279
- });
32893
+ var _this3 = this;
32894
+ return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
32895
+ var containerId, container, QRCode;
32896
+ return _regenerator().w(function (_context4) {
32897
+ while (1) switch (_context4.n) {
32898
+ case 0:
32899
+ containerId = "qrcode-container-".concat(_this3.uniqueId);
32900
+ container = document.getElementById(containerId);
32901
+ if (container) {
32902
+ _context4.n = 1;
32903
+ break;
32904
+ }
32905
+ return _context4.a(2);
32906
+ case 1:
32907
+ container.innerHTML = '';
32908
+
32909
+ // 动态加载 QRCode 库
32910
+ _context4.n = 2;
32911
+ return _this3.loadQRCode();
32912
+ case 2:
32913
+ QRCode = _context4.v;
32914
+ // 创建新的二维码实例
32915
+ new QRCode(container, {
32916
+ text: url,
32917
+ // 二维码内容(链接)
32918
+ width: 240,
32919
+ // 宽度
32920
+ height: 240,
32921
+ // 高度
32922
+ colorDark: '#000000',
32923
+ // 前景色
32924
+ colorLight: '#ffffff',
32925
+ // 背景色
32926
+ correctLevel: QRCode.CorrectLevel.H // 容错级别
32927
+ });
32928
+ case 3:
32929
+ return _context4.a(2);
32930
+ }
32931
+ }, _callee4);
32932
+ }))();
33280
32933
  },
33281
32934
  // 轮询检查登录状态
33282
32935
  startPolling: function startPolling() {
33283
- var _this2 = this;
32936
+ var _this4 = this;
33284
32937
  this.pollTimer = setInterval(function () {
33285
- checkCodeStatus(_this2.sceneId).then(function (res) {
32938
+ checkCodeStatus(_this4.sceneId).then(function (res) {
33286
32939
  var status = res.data.data.status;
33287
32940
  if (status === 1) {
33288
32941
  // 登录中,更新状态为已扫码
33289
- _this2.loginStatus = status;
32942
+ _this4.loginStatus = status;
33290
32943
  } else if (status === 2) {
33291
32944
  // 登录成功,存储token并跳转
33292
- _this2.$emit('loginSuccess', res.data.data);
33293
- _this2.wxRandom = res.data.data.wxRandom;
33294
- _this2.clearTimers();
32945
+ _this4.$emit('loginSuccess', res.data.data);
32946
+ _this4.wxRandom = res.data.data.wxRandom;
32947
+ _this4.clearTimers();
33295
32948
  } else if (status === 3) {
33296
32949
  // 二维码过期,停止轮询并显示提示
33297
- _this2.loginStatus = 3;
33298
- _this2.clearTimers();
32950
+ _this4.loginStatus = 3;
32951
+ _this4.clearTimers();
33299
32952
  }
33300
32953
  // 其他状态(扫描未确认)不处理
33301
32954
  })["catch"](function (err) {
@@ -33305,12 +32958,12 @@ function removeToken() {
33305
32958
  },
33306
32959
  // 倒计时
33307
32960
  startCountdown: function startCountdown() {
33308
- var _this3 = this;
32961
+ var _this5 = this;
33309
32962
  this.statusTimer = setInterval(function () {
33310
- _this3.expireTime--;
33311
- if (_this3.expireTime <= 0) {
33312
- _this3.loginStatus = 3; // 设置为过期状态
33313
- _this3.clearTimers();
32963
+ _this5.expireTime--;
32964
+ if (_this5.expireTime <= 0) {
32965
+ _this5.loginStatus = 3; // 设置为过期状态
32966
+ _this5.clearTimers();
33314
32967
  }
33315
32968
  }, 1000);
33316
32969
  },
@@ -33328,10 +32981,10 @@ function removeToken() {
33328
32981
  });
33329
32982
  ;// ./src/components/QRCodeLogin.vue?vue&type=script&lang=js
33330
32983
 
33331
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=6badd114&lang=scss&scoped=true
32984
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=1469993e&lang=scss&scoped=true
33332
32985
  // extracted by mini-css-extract-plugin
33333
32986
 
33334
- ;// ./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=6badd114&lang=scss&scoped=true
32987
+ ;// ./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=1469993e&lang=scss&scoped=true
33335
32988
 
33336
32989
  ;// ./src/components/QRCodeLogin.vue
33337
32990
 
@@ -33341,7 +32994,7 @@ function removeToken() {
33341
32994
  ;
33342
32995
 
33343
32996
 
33344
- const QRCodeLogin_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(QRCodeLoginvue_type_script_lang_js, [['render',QRCodeLoginvue_type_template_id_6badd114_scoped_true_render],['__scopeId',"data-v-6badd114"]])
32997
+ const QRCodeLogin_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(QRCodeLoginvue_type_script_lang_js, [['render',QRCodeLoginvue_type_template_id_1469993e_scoped_true_render],['__scopeId',"data-v-1469993e"]])
33345
32998
 
33346
32999
  /* harmony default export */ const QRCodeLogin = (QRCodeLogin_exports_);
33347
33000
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/mobileBinding.vue?vue&type=template&id=3371c604&scoped=true