vendor: 4,996 bytes, lines 1-6
1import{f as Q,ab as y,r as W,Y as le,ac as ue,F as Y,y as z,o as _,c as M,a as p,b as G,L as X,d as $,t as O,j as S,V as j,s as K,B as ee}from"./entry.DqH9lcij.js";import{_ as de}from"./Svg.vue.DnOVevja.js";import{_ as ce}from"./Image.vue.s3KU2NLQ.js";import"./index.CS7R4WcE.js";/*! 2 * qrcode.vue v3.8.0 3 * A Vue.js component to generate QRCode. Both support Vue 2 and Vue 3 4 * © 2017-PRESENT @scopewu(https://github.com/scopewu) 5 * MIT License. 6 */var A=function(){return A=Object.assign||function(f){for(var u,l=1,d=arguments.length;l<d;l++){u=arguments[l];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(f[c]=u[c])}return f},A.apply(this,arguments)};var k;(function(i){var f=function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var s=0;s<this.size;s++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var h=this.addEccAndInterleave(r);if(this.drawCodewords(h),n==-1)for(var g=1e9,s=0;s<8;s++){this.applyMask(s),this.drawFormatBits(s);var E=this.getPenaltyScore();E<g&&(n=s,g=E),this.applyMask(s)}d(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=i.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=i.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,o,s){if(r===void 0&&(r=1),n===void 0&&(n=40),o===void 0&&(o=-1),s===void 0&&(s=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");var h,g;for(h=r;;h++){var E=a.getNumDataCodewords(h,t)*8,w=c.getTotalBits(e,h);if(w<=E){g=w;break}if(h>=n)throw new RangeError("Data too long")}for(var m=0,R=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];m<R.length;m++){var C=R[m];s&&g<=a.getNumDataCodewords(h,C)*8&&(t=C)}for(var v=[],P=0,b=e;P<b.length;P++){var N=b[P];u(N.mode.modeBits,4,v),u(N.numChars,N.mode.numCharCountBits(h),v);for(var I=0,D=N.getData();I<D.length;I++){var V=D[I];v.push(V)}}d(v.length==g);var F=a.getNumDataCodewords(h,t)*8;d(v.length<=F),u(0,Math.min(4,F-v.length),v),u(0,(8-v.length%8)%8,v),d(v.length%8==0);for(var L=236;v.length<F;L^=253)u(L,8,v);for(var B=[];B.length*8<v.length;)B.push(0);return v.forEach(function(T,x){return B[x>>>3]|=T<<7-(x&7)}),new a(h,t,B,o)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var o=(t<<10|r)^21522;d(o>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,l(o,n));this.setFunctionModule(8,7,l(o,6)),this.setFunctionModule(8,8,l(o,7)),this.setFunctionModule(7,8,l(o,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,l(o,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,l(o,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,l(o,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;d(r>>>18==0);for(var t=0;t<18;t++){var n=l(r,t),o=this.size-11+t%3,s=Math.floor(t/3);this.setFunctionModule(o,s,n),this.setFunctionModule(s,o,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var o=Math.max(Math.abs(n),Math.abs(r)),s=e+n,h=t+r;0<=s&&s<this.size&&0<=h&&h<this.size&&this.setFunctionModule(s,h,o!=2&&o!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],o=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],s=Math.floor(a.getNumRawDataModules(t)/8),h=n-s%n,g=Math.floor(s/n),E=[],w=a.reedSolomonComputeDivisor(o),m=0,R=0;m<n;m++){var C=e.slice(R,R+g-o+(m<h?0:1));R+=C.length;var v=a.reedSolomonComputeRemainder(C,w);m<h&&C.push(0),E.push(C.concat(v))}
6for(var P=[],b=function(N){E.forEach(function(I,D){(N!=g-o||D>=h)&&P.push(I[N])})},m=0;m<E[0].length;m++)b(m);return d(P.length==s),P},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var o=0;o<2;o++){var s=r-o,h=(r+1&2)==0,g=h?this.size-1-n:n;!this.isFunction[g][s]&&t<e.length*8&&(this.modules[g][s]=l(e[t>>>3],7-(t&7)),t++)}}d(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[t][s]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,o),r||(e+=this.finderPenaltyCountPatterns(o)*a.PENALTY_N3),r=this.modules[t][s],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,o)*a.PENALTY_N3}for(var s=0;s<this.size;s++){for(var r=!1,h=0,o=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][s]==r?(h++,h==5?e+=a.PENALTY_N1:h>5&&e++):(this.finderPenaltyAddHistory(h,o),r||(e+=this.finderPenaltyCountPatterns(o)*a.PENALTY_N3),r=this.modules[t][s],h=1);e+=this.finderPenaltyTerminateAndCount(r,h,o)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var s=0;s<this.size-1;s++){var g=this.modules[t][s];g==this.modules[t][s+1]&&g==this.modules[t+1][s]&&g==this.modules[t+1][s+1]&&(e+=a.PENALTY_N2)}for(var E=0,w=0,m=this.modules;w<m.length;w++){var R=m[w];E=R.reduce(function(P,b){return P+(b?1:0)},E)}var C=this.size*this.size,v=Math.ceil(Math.abs(E*20-C*10)/C)-1;return d(0<=v&&v<=9),e+=v*a.PENALTY_N4,d(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return d(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var o=0;o<t.length;o++)t[o]=a.reedSolomonMultiply(t[o],n),o+1<t.length&&(t[o]^=t[o+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(g){return 0}),n=function(g){var E=g^r.shift();r.push(0),t.forEach(function(w,m){return r[m]^=a.reedSolomonMultiply(w,E)})},o=0,s=e;o<s.length;o++){var h=s[o];n(h)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return d(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];d(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a}();i.QrCode=f;function u(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function l(a,e){return(a>>>e&1)!=0}function d(a){if(!a)throw new Error("Assertion error")}var c=function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var o=n[r];u(o,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains
vendor: 7,145 bytes, line 6
6non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);u(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),u(n,11,t)}return r<e.length&&u(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)u(e,8,t);else if(e<16384)u(2,2,t),u(e,14,t);else if(e<1e6)u(6,3,t),u(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,o=e;n<o.length;n++){var s=o[n],h=s.mode.numCharCountBits(t);if(s.numChars>=1<<h)return 1/0;r+=4+h+s.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a}();i.QrSegment=c})(k||(k={}));(function(i){(function(f){var u=function(){function l(d,c){this.ordinal=d,this.formatBits=c}return l.LOW=new l(0,1),l.MEDIUM=new l(1,0),l.QUARTILE=new l(2,3),l.HIGH=new l(3,2),l}();f.Ecc=u})(i.QrCode||(i.QrCode={}))})(k||(k={}));(function(i){(function(f){var u=function(){function l(d,c){this.modeBits=d,this.numBitsCharCount=c}return l.prototype.numCharCountBits=function(d){return this.numBitsCharCount[Math.floor((d+7)/17)]},l.NUMERIC=new l(1,[10,12,14]),l.ALPHANUMERIC=new l(2,[9,11,13]),l.BYTE=new l(4,[8,16,16]),l.KANJI=new l(8,[8,10,12]),l.ECI=new l(7,[0,0,0]),l}();f.Mode=u})(i.QrSegment||(i.QrSegment={}))})(k||(k={}));var U=k,te="L",fe=100,re=0,ve=.1,he=2,ae={L:U.QrCode.Ecc.LOW,M:U.QrCode.Ecc.MEDIUM,Q:U.QrCode.Ecc.QUARTILE,H:U.QrCode.Ecc.HIGH},ge=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function ne(i){return i in ae}function ie(i,f){f===void 0&&(f=0);var u="";return i.forEach(function(l,d){var c=null;l.forEach(function(a,e){if(!a&&c!==null){u+="M".concat(c+f," ").concat(d+f,"h").concat(e-c,"v1H").concat(c+f,"z"),c=null;return}if(e===l.length-1){if(!a)return;c===null?u+="M".concat(e+f,",").concat(d+f," h1v1H").concat(e+f,"z"):u+="M".concat(c+f,",").concat(d+f," h").concat(e+1-c,"v1H").concat(c+f,"z");return}a&&c===null&&(c=e)})}),u}function me(i,f,u,l){var d=l.width,c=l.height,a=l.x,e=l.y,t=i.length+u*2,r=Math.floor(f*ve),n=t/f,o=(d||r)*n,s=(c||r)*n,h=a==null?i.length/2-o/2:a*n,g=e==null?i.length/2-s/2:e*n,E=(l.borderRadius||0)*n,w=null;if(l.excavate){var m=Math.floor(h),R=Math.floor(g),C=Math.ceil(o+h-m),v=Math.ceil(s+g-R);w={x:m,y:R,w:C,h:v}}return{x:h,y:g,h:s,w:o,borderRadius:E,excavation:w}}function oe(i){var f=z(function(){var e;return((e=i.margin)!==null&&e!==void 0?e:re)>>>0}),u=z(function(){var e=ne(i.level)?i.level:te;return U.QrCode.encodeText(i.value,ae[e]).getModules()}),l=z(function(){return u.value.length+f.value*2}),d=z(function(){return ie(u.value,f.value)}),c=z(function(){if(!i.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=me(u.value,i.size,f.value,i.imageSettings);return{x:e.x+f.value,y:e.y+f.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=z(function(){if(!i.imageSettings.excavate||!i.imageSettings.src)return null;var e=he/(i.size/l.value);return{x:c.value.x-e,y:c.value.y-e,width:c.value.width+e*2,height:c.value.height+e*2,borderRadius:c.value.borderRadius}});return{margin:f,numCells:l,cells:u,fgPath:d,imageProps:c,imageBorderProps:a}}var Z={value:{type:String,required:!0,default:""},size:{type:Number,default:fe},level:{type:String,default:te,validator:function(i){return ne(i)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:re},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(i){return["linear","radial"].indexOf(i)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},pe=A(A({},Z),{renderAs:{type:String,required:!1,default:"canvas",validator:function(i){return["canvas","svg"].indexOf(i)>-1}}}),Ee=Q({name:"QRCodeSvg",props:Z,setup:function(i){var f=oe(i),u=f.numCells,l=f.fgPath,d=f.imageProps,c=f.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!i.gradient)return null;var n=i.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return y(i.gradientType==="linear"?"linearGradient":"radialGradient",A({id:a},n),[y("stop",{offset:"0%",style:{stopColor:i.gradientStartColor}}),y("stop",{offset:"100%",style:{stopColor:i.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=d.value.borderRadius;return!i.imageSettings.src||n<=0?null:y("clipPath",{id:t},[y("rect",{x:d.value.x,y:d.value.y,width:d.value.width,height:d.value.height,rx:n,ry:n})])};return function(){return y("svg",{width:i.size,height:i.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(u.value," ").concat(u.value)},[y("defs",{},[e(),r()]),y("rect",{width:"100%",height:"100%",fill:i.background}),y("path",{fill:i.gradient?"url(#".concat(a,")"):i.foreground,d:l.value}),c.value&&y("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,fill:i.background,rx:c.value.borderRadius,ry:c.value.borderRadius}),i.imageSettings.src&&y("image",A(A({href:i.imageSettings.src},d.value),d.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),Ce=Q({name:"QRCodeCanvas",props:Z,setup:function(i,f){var u=oe(i),l=u.margin,d=u.cells,c=u.numCells,a=u.imageProps,e=u.imageBorderProps,t=W(null),r=W(null),n=function(){var s=i.size,h=i.background,g=i.foreground,E=i.gradient,w=i.gradientType,m=i.gradientStartColor,R=i.gradientEndColor,C=t.value;if(C){var v=C.getContext("2d");if(v){var P=d.value,b=r.value,N=typeof window<"u"&&window.devicePixelRatio||1,I=s/c.value*N;if(C.height=C.width=s*N,v.scale(I,I),v.fillStyle=h,v.fillRect(0,0,c.value,c.value),E){var D=void 0;w==="linear"?D=v.createLinearGradient(0,0,c.value,c.value):D=v.createRadialGradient(c.value/2,c.value/2,0,c.value/2,c.value/2,c.value/2),D.addColorStop(0,m),D.addColorStop(1,R),v.fillStyle=D}else v.fillStyle=g;ge?v.fill(new Path2D(ie(P,l.value))):P.forEach(function(T,x){T.forEach(function(H,q){H&&v.fillRect(q+l.value,x+l.value,1,1)})});
6var V=i.imageSettings.src&&b&&b.naturalWidth!==0&&b.naturalHeight!==0;if(V){var F=function(T,x,H,q,J,se){T.beginPath(),T.roundRect?T.roundRect(x,H,q,J,se):T.rect(x,H,q,J)};if(e.value){var L=e.value;v.fillStyle=i.background,F(v,L.x,L.y,L.width,L.height,L.borderRadius),v.fill()}var B=a.value.borderRadius;B>0?(v.save(),F(v,a.value.x,a.value.y,a.value.width,a.value.height,B),v.clip(),v.drawImage(b,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(b,a.value.x,a.value.y,a.value.width,a.value.height)}}}};le(n),ue(n);var o=f.attrs.style;return function(){return y(Y,[y("canvas",A(A({},f.attrs),{ref:t,style:A(A({},o),{width:"".concat(i.size,"px"),height:"".concat(i.size,"px")})})),i.imageSettings.src&&y("img",{ref:r,src:i.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),we=Q({name:"Qrcode",render:function(){var i=this.$props,f=i.renderAs,u=i.value,l=i.size,d=i.margin,c=i.level,a=i.background,e=i.foreground,t=i.imageSettings,r=i.gradient,n=i.gradientType,o=i.gradientStartColor,s=i.gradientEndColor;return y(f==="svg"?Ee:Ce,{value:u,size:l,margin:d,level:c,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:o,gradientEndColor:s})},props:pe});const ye={class:"border p-5 sm:p-7 border-[var(--label-color)] mb-7"},_e={class:"flex flex-col items-center space-y-4"},Me={key:0,class:"bg-white p-2"},Re={class:"text-custom-red text-center"},Pe={class:"whitespace-nowrap"},be={class:"sm:text-2xl text-xl font-semibold"},Se={key:1},Ae={key:0,class:"font-semibold sm:text-lg text-base text-center"},Ne={key:1,class:"space-y-4"},De={class:"font-semibold sm:text-lg text-base text-center"},ze={class:"sm:text-2xl text-lg font-semibold"},Ie=p("p",{class:"text-left sm:text-center"},"åå弿ãã¼ã¹ã§QRã³ã¼ãããæç¤ºãã ãã",-1),Le=p("p",{class:"text-xs sm:text-sm"},[$(" â» QRã³ã¼ãã¯ã¹ã¯ãªã¼ã³ã·ã§ããä¿åãæ¨å¥¨ãããã¾ã"),p("br"),$(" â» QRã³ã¼ãã¯ç¬¬ä¸è
ã«è»¢éã»å
±æããªãã§ãã ãã ")],-1),Te={key:2,class:"font-semibold sm:text-lg text-base"},Be=Q({__name:"DeliveryQrInfo",props:{isExpired:{type:Boolean},deliveryData:{},deliveryPrizes:{}},setup(i){return(f,u)=>(_(),M("div",ye,[p("div",_e,[f.isExpired?X("",!0):(_(),M("div",Me,[G(we,{value:f.deliveryData.qrValue,size:200},null,8,["value"])])),p("p",Re,[$(" 弿æé㯠"),p("span",Pe,[p("span",be,O(("formatDate"in f?f.formatDate:S(j))(f.deliveryData.eventLottery.deliveryEndDate,"YYYY/MM/DD hh:mm")),1),$(" ã§ã ")])]),f.isExpired?(_(),M("p",Te,"弿æéå¤ã§ã")):(_(),M("div",Se,[f.deliveryPrizes.length===0?(_(),M("p",Ae," æªå¼æã®ååã¯ããã¾ãã ")):(_(),M("div",Ne,[p("p",De,[p("span",ze,O(f.deliveryData.undeliveredPrizesCount)+"ç¹ ",1),$(" ã®åå ")]),Ie])),Le]))])]))}}),xe={class:"text-lg sm:text-2xl"},Oe={class:"text-sm sm:text-base"},ke={class:"overflow-hidden"},Fe={class:"space-y-2 mt-4"},Qe={class:"size-20 sm:size-[120px] shrink-0 overflow-hidden bg-imageGray rounded-lg"},Ue={class:"space-y-1 py-2"},$e={class:"text-[13px] sm:text-[15px]"},Ye={key:0,class:"text-[11px] sm:text-xs"},Ge={key:1,class:"text-[11px] sm:text-xs"},He=Q({__name:"DeliveryPrizeAccordion",props:{isDelivered:{type:Boolean},defaultOpen:{type:Boolean},deliveredPrize:{}},setup(i){const f=i,u=W(f.defaultOpen??!0),l=d=>{f.deliveredPrize.id===d&&(u.value=!u.value)};return(d,c)=>{const a=de,e=ce;return _(),M(Y,null,[p("div",{class:"flex items-center justify-between w-full pb-2 text-left cursor-pointer",onClick:c[0]||(c[0]=t=>l(d.deliveredPrize.id))},[p("p",{class:K(["font-semibold transition-colors duration-300 space-x-2",S(u)?"text-[var(--label-color)]":""])}
6,[p("span",xe,O(d.deliveredPrize.prizeLabel),1),p("span",Oe,"ç²å¾æ°ï¼"+O(d.deliveredPrize.count),1)],2),G(a,{icon:"down",width:"sm:w-5 w-4",height:"sm:h-5 h-4",class:K(["shrink-0 transition-transform duration-300 rotate-0 mr-3",{"!rotate-[180deg] text-[var(--label-color)]":S(u)}])},null,8,["class"])]),p("hr",{class:K(["transition-colors duration-300",S(u)?"border-[var(--label-color)]":"border-[var(--text-color)]"])},null,2),p("div",{class:K(["grid transition-[grid-template-rows] duration-300 ease-in-out",S(u)?"grid-rows-[1fr]":"grid-rows-[0fr]"])},[p("div",ke,[p("div",Fe,[(_(!0),M(Y,null,ee(d.deliveredPrize.eventPrizeItems,t=>(_(),M("div",{key:t.id,class:"flex gap-3"},[p("div",Qe,[G(e,{image:t.thumbnail,class:"size-full object-contain mx-auto"},null,8,["image"])]),p("div",Ue,[p("p",$e,O(t.title),1),d.isDelivered&&"deliveryDate"in t?(_(),M("p",Ye," å¼ææ¥æ: "+O(("formatDate"in d?d.formatDate:S(j))(t.deliveryDate,"YYYY.MM.DD hh:mm:ss")),1)):!d.isDelivered&&"count"in t?(_(),M("p",Ge," ç²å¾æ°: "+O(t.count),1)):X("",!0)])]))),128))])])],2)],64)}}}),qe={key:0},Ze=Q({__name:"undelivered",props:{deliveryData:{}},setup(i){const f=i,u=z(()=>f.deliveryData),l=z(()=>Date.now()>u.value.eventLottery.deliveryEndDate),d=z(()=>u.value.undeliveredPrizes);return(c,a)=>{const e=Be,t=He;return _(),M(Y,null,[G(e,{isExpired:S(l),deliveryData:S(u),deliveryPrizes:S(d)},null,8,["isExpired","deliveryData","deliveryPrizes"]),S(d).length>0?(_(),M("div",qe,[(_(!0),M(Y,null,ee(S(d),r=>(_(),M("div",{key:r.id,class:"mb-7"},[G(t,{isDelivered:!1,deliveredPrize:r,defaultOpen:!0},null,8,["deliveredPrize"])]))),128))])):X("",!0)],64)}}});export{Ze as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.