PageSourceSearch

https://bants.manus.space/assets/DigitalTicket-BGWZ5Q_M.js

js bants.manus.space collected 2026-10-03 05:00:17 UTC 22,240 bytes, 19 lines download raw bytes

1import{c as Y,h as x,d as ht,t as ut,j as E,w as dt,l as ft,k as gt}from"./index-C6jjXqoV.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const mt=Y("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const pt=Y("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);var Et=Object.defineProperty,L=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,G=(h,l,r)=>l in h?Et(h,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):h[l]=r,z=(h,l)=>{for(var r in l||(l={}))V.call(l,r)&&G(h,r,l[r]);if(L)for(var r of L(l))X.call(l,r)&&G(h,r,l[r]);return h},B=(h,l)=>{var r={};for(var c in h)V.call(h,c)&&l.indexOf(c)<0&&(r[c]=h[c]);if(h!=null&&L)for(var c of L(h))l.indexOf(c)<0&&X.call(h,c)&&(r[c]=h[c]);return r};/**
12 * @license QR Code generator library (TypeScript)
13 * Copyright (c) Project Nayuki.
14 * SPDX-License-Identifier: MIT
15 */var T;(h=>{const l=class p{constructor(t,s,e,i){if(this.version=t,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],t<p.MIN_VERSION||t>p.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let n=[];for(let a=0;a<this.size;a++)n.push(!1);for(let a=0;a<this.size;a++)this.modules.push(n.slice()),this.isFunction.push(n.slice());this.drawFunctionPatterns();const o=this.addEccAndInterleave(e);if(this.drawCodewords(o),i==-1){let a=1e9;for(let m=0;m<8;m++){this.applyMask(m),this.drawFormatBits(m);const f=this.getPenaltyScore();f<a&&(i=m,a=f),this.applyMask(m)}}d(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(t,s){const e=h.QrSegment.makeSegments(t);return p.encodeSegments(e,s)}static encodeBinary(t,s){const e=h.QrSegment.makeBytes(t);return p.encodeSegments([e],s)}static encodeSegments(t,s,e=1,i=40,n=-1,o=!0){if(!(p.MIN_VERSION<=e&&e<=i&&i<=p.MAX_VERSION)||n<-1||n>7)throw new RangeError("Invalid value");let a,m;for(a=e;;a++){const g=p.getNumDataCodewords(a,s)*8,M=N.getTotalBits(t,a);if(M<=g){m=M;break}if(a>=i)throw new RangeError("Data too long")}for(const g of[p.Ecc.MEDIUM,p.Ecc.QUARTILE,p.Ecc.HIGH])o&&m<=p.getNumDataCodewords(a,g)*8&&(s=g);let f=[];for(const g of t){r(g.mode.modeBits,4,f),r(g.numChars,g.mode.numCharCountBits(a),f);for(const M of g.getData())f.push(M)}d(f.length==m);const R=p.getNumDataCodewords(a,s)*8;d(f.length<=R),r(0,Math.min(4,R-f.length),f),r(0,(8-f.length%8)%8,f),d(f.length%8==0);for(let g=236;f.length<R;g^=253)r(g,8,f);let y=[];for(;y.length*8<f.length;)y.push(0);return f.forEach((g,M)=>y[M>>>3]|=g<<7-(M&7)),new p(a,s,y,n)}getModule(t,s){return 0<=t&&t<this.size&&0<=s&&s<this.size&&this.modules[s][t]}getModules(){return this.modules}drawFunctionPatterns(){for(let 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);const t=this.getAlignmentPatternPositions(),s=t.length;for(let e=0;e<s;e++)for(let i=0;i<s;i++)e==0&&i==0||e==0&&i==s-1||e==s-1&&i==0||this.drawAlignmentPattern(t[e],t[i]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){const s=this.errorCorrectionLevel.formatBits<<3|t;let e=s;for(let n=0;n<10;n++)e=e<<1^(e>>>9)*1335;const i=(s<<10|e)^21522;d(i>>>15==0);for(let n=0;n<=5;n++)this.setFunctionModule(8,n,c(i,n));
vendor: 4,597 bytes, line 15
15this.setFunctionModule(8,7,c(i,6)),this.setFunctionModule(8,8,c(i,7)),this.setFunctionModule(7,8,c(i,8));for(let n=9;n<15;n++)this.setFunctionModule(14-n,8,c(i,n));for(let n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,c(i,n));for(let n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,c(i,n));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;const s=this.version<<12|t;d(s>>>18==0);for(let e=0;e<18;e++){const i=c(s,e),n=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(n,o,i),this.setFunctionModule(o,n,i)}}drawFinderPattern(t,s){for(let e=-4;e<=4;e++)for(let i=-4;i<=4;i++){const n=Math.max(Math.abs(i),Math.abs(e)),o=t+i,a=s+e;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,n!=2&&n!=4)}}drawAlignmentPattern(t,s){for(let e=-2;e<=2;e++)for(let i=-2;i<=2;i++)this.setFunctionModule(t+i,s+e,Math.max(Math.abs(i),Math.abs(e))!=1)}setFunctionModule(t,s,e){this.modules[s][t]=e,this.isFunction[s][t]=!0}addEccAndInterleave(t){const s=this.version,e=this.errorCorrectionLevel;if(t.length!=p.getNumDataCodewords(s,e))throw new RangeError("Invalid argument");const i=p.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][s],n=p.ECC_CODEWORDS_PER_BLOCK[e.ordinal][s],o=Math.floor(p.getNumRawDataModules(s)/8),a=i-o%i,m=Math.floor(o/i);let f=[];const R=p.reedSolomonComputeDivisor(n);for(let g=0,M=0;g<i;g++){let v=t.slice(M,M+m-n+(g<a?0:1));M+=v.length;const b=p.reedSolomonComputeRemainder(v,R);g<a&&v.push(0),f.push(v.concat(b))}let y=[];for(let g=0;g<f[0].length;g++)f.forEach((M,v)=>{(g!=m-n||v>=a)&&y.push(M[g])});return d(y.length==o),y}drawCodewords(t){if(t.length!=Math.floor(p.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let i=0;i<this.size;i++)for(let n=0;n<2;n++){const o=e-n,m=(e+1&2)==0?this.size-1-i:i;!this.isFunction[m][o]&&s<t.length*8&&(this.modules[m][o]=c(t[s>>>3],7-(s&7)),s++)}}d(s==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++)for(let e=0;e<this.size;e++){let i;switch(t){case 0:i=(e+s)%2==0;break;case 1:i=s%2==0;break;case 2:i=e%3==0;break;case 3:i=(e+s)%3==0;break;case 4:i=(Math.floor(e/3)+Math.floor(s/2))%2==0;break;case 5:i=e*s%2+e*s%3==0;break;case 6:i=(e*s%2+e*s%3)%2==0;break;case 7:i=((e+s)%2+e*s%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[s][e]&&i&&(this.modules[s][e]=!this.modules[s][e])}}getPenaltyScore(){let t=0;for(let n=0;n<this.size;n++){let o=!1,a=0,m=[0,0,0,0,0,0,0];for(let f=0;f<this.size;f++)this.modules[n][f]==o?(a++,a==5?t+=p.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,m),o||(t+=this.finderPenaltyCountPatterns(m)*p.PENALTY_N3),o=this.modules[n][f],a=1);t+=this.finderPenaltyTerminateAndCount(o,a,m)*p.PENALTY_N3}for(let n=0;n<this.size;n++){let o=!1,a=0,m=[0,0,0,0,0,0,0];for(let f=0;f<this.size;f++)this.modules[f][n]==o?(a++,a==5?t+=p.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,m),o||(t+=this.finderPenaltyCountPatterns(m)*p.PENALTY_N3),o=this.modules[f][n],a=1);t+=this.finderPenaltyTerminateAndCount(o,a,m)*p.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let o=0;o<this.size-1;o++){const a=this.modules[n][o];a==this.modules[n][o+1]&&a==this.modules[n+1][o]&&a==this.modules[n+1][o+1]&&(t+=p.PENALTY_N2)}let s=0;for(const n of this.modules)s=n.reduce((o,a)=>o+(a?1:0),s);const e=this.size*this.size,i=Math.ceil(Math.abs(s*20-e*10)/e)-1;return d(0<=i&&i<=9),t+=i*p.PENALTY_N4,d(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{const t=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(t*2-2))*2;let e=[6];for(let i=this.size-7;e.length<t;i-=s)e.splice(1,0,i);return e}}static getNumRawDataModules(t){if(t<p.MIN_VERSION||t>p.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;s-=(25*e-10)*e-55,t>=7&&(s-=36)}return d(208<=s&&s<=29648),s}static getNumDataCodewords(t,s){return Math.floor(p.getNumRawDataModules(t)/8)-p.ECC_CODEWORDS_PER_BLOCK[s.ordinal][t]*p.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let s=[];for(let i=0;i<t-1;i++)s.push(0);s.push(1);let e=1;for(let i=0;i<t;i++){for(let n=0;n<s.length;n++)s[n]=p.reedSolomonMultiply(s[n],e),n+1<s.length&&(s[n]^=s[n+1]);e=p.reedSolomonMultiply(e,2)}return s}static reedSolomonComputeRemainder(t,s){let e=s.map(i=>0);for(const i of t){const n=i^e.shift();
15e.push(0),s.forEach((o,a)=>e[a]^=p.reedSolomonMultiply(o,n))}return e}static reedSolomonMultiply(t,s){if(t>>>8||s>>>8)throw new RangeError("Byte out of range");let e=0;for(let i=7;i>=0;i--)e=e<<1^(e>>>7)*285,e^=(s>>>i&1)*t;return d(e>>>8==0),e}finderPenaltyCountPatterns(t){const s=t[1];d(s<=this.size*3);const e=s>0&&t[2]==s&&t[3]==s*3&&t[4]==s&&t[5]==s;return(e&&t[0]>=s*4&&t[6]>=s?1:0)+(e&&t[6]>=s*4&&t[0]>=s?1:0)}finderPenaltyTerminateAndCount(t,s,e){return t&&(this.finderPenaltyAddHistory(s,e),s=0),s+=this.size,this.finderPenaltyAddHistory(s,e),this.finderPenaltyCountPatterns(e)}finderPenaltyAddHistory(t,s){s[0]==0&&(t+=this.size),s.pop(),s.unshift(t)}};l.MIN_VERSION=1,l.MAX_VERSION=40,l.PENALTY_N1=3,l.PENALTY_N2=3,l.PENALTY_N3=40,l.PENALTY_N4=10,l.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]],l.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]],h.QrCode=l;function r(C,t,s){if(t<0||t>31||C>>>t)throw new RangeError("Value out of range");for(let e=t-1;e>=0;e--)s.push(C>>>e&1)}function c(C,t){return(C>>>t&1)!=0}function d(C){if(!C)throw new Error("Assertion error")}const u=class w{constructor(t,s,e){if(this.mode=t,this.numChars=s,this.bitData=e,s<0)throw new RangeError("Invalid argument");this.bitData=e.slice()}static makeBytes(t){let s=[];for(const e of t)r(e,8,s);return new w(w.Mode.BYTE,t.length,s)}static makeNumeric(t){if(!w.isNumeric(t))throw new RangeError("String contains non-numeric characters");let s=[];for(let e=0;e<t.length;){const i=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+i),10),i*3+1,s),e+=i}return new w(w.Mode.NUMERIC,t.length,s)}static makeAlphanumeric(t){if(!w.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let s=[],e;for(e=0;e+2<=t.length;e+=2){let i=w.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e))*45;i+=w.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1)),r(i,11,s)}return e<t.length&&r(w.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,s),new w(w.Mode.ALPHANUMERIC,t.length,s)}static makeSegments(t){return t==""?[]:w.isNumeric(t)?[w.makeNumeric(t)]:w.isAlphanumeric(t)?[w.makeAlphanumeric(t)]:[w.makeBytes(w.toUtf8ByteArray(t))]}static makeEci(t){let s=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)r(t,8,s);else if(t<16384)r(2,2,s),r(t,14,s);else if(t<1e6)r(6,3,s),r(t,21,s);else throw new RangeError("ECI assignment value out of range");return new w(w.Mode.ECI,0,s)}static isNumeric(t){return w.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return w.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(t,s){let e=0;for(const i of t){const n=i.mode.numCharCountBits(s);if(i.numChars>=1<<n)return 1/0;e+=4+n+i.bitData.length}return e}static toUtf8ByteArray(t){t=encodeURI(t);let s=[];for(let e=0;e<t.length;e++)t.charAt(e)!="%"?s.push(t.charCodeAt(e)):(s.push(parseInt(t.substring(e+1,e+3),16)),e+=2);return s}};u.NUMERIC_REGEX=/^[0-9]*$/,u.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,u.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let N=u;h.QrSegment=u})(T||(T={}));(h=>{(l=>{const r=class{constructor(d,u){this.ordinal=d,this.formatBits=u}};r.LOW=new r(0,1),r.MEDIUM=new r(1,0),r.QUARTILE=new r(2,3),r.HIGH=new r(3,2),l.Ecc=r})(h.QrCode||(h.QrCode={}))})(T||(T={}));(h=>{(l=>{const r=class{constructor(d,u){this.modeBits=d,this.numBitsCharCount=u}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};r.NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),l.Mode=r})(h.QrSegment||(h.QrSegment={}))})(T||(T={}));var I=T;/**
16 * @license qrcode.react
17 * Copyright (c) Paul O'Shannessy
18 * SPDX-License-Identifier: ISC
19 */var Ct={L:I.QrCode.Ecc.LOW,M:I.QrCode.Ecc.MEDIUM,Q:I.QrCode.Ecc.QUARTILE,H:I.QrCode.Ecc.HIGH},K=128,W="L",Z="#FFFFFF",J="#000000",q=!1,tt=1,wt=4,Mt=0,xt=.1;function et(h,l=0){const r=[];return h.forEach(function(c,d){let u=null;
19c.forEach(function(N,C){if(!N&&u!==null){r.push(`M${u+l} ${d+l}h${C-u}v1H${u+l}z`),u=null;return}if(C===c.length-1){if(!N)return;u===null?r.push(`M${C+l},${d+l} h1v1H${C+l}z`):r.push(`M${u+l},${d+l} h${C+1-u}v1H${u+l}z`);return}N&&u===null&&(u=C)})}),r.join("")}function st(h,l){return h.slice().map((r,c)=>c<l.y||c>=l.y+l.h?r:r.map((d,u)=>u<l.x||u>=l.x+l.w?d:!1))}function yt(h,l,r,c){if(c==null)return null;const d=h.length+r*2,u=Math.floor(l*xt),N=d/l,C=(c.width||u)*N,t=(c.height||u)*N,s=c.x==null?h.length/2-C/2:c.x*N,e=c.y==null?h.length/2-t/2:c.y*N,i=c.opacity==null?1:c.opacity;let n=null;if(c.excavate){let a=Math.floor(s),m=Math.floor(e),f=Math.ceil(C+s-a),R=Math.ceil(t+e-m);n={x:a,y:m,w:f,h:R}}const o=c.crossOrigin;return{x:s,y:e,h:t,w:C,excavation:n,opacity:i,crossOrigin:o}}function Nt(h,l){return l!=null?Math.max(Math.floor(l),0):h?wt:Mt}function it({value:h,level:l,minVersion:r,includeMargin:c,marginSize:d,imageSettings:u,size:N,boostLevel:C}){let t=x.useMemo(()=>{const a=(Array.isArray(h)?h:[h]).reduce((m,f)=>(m.push(...I.QrSegment.makeSegments(f)),m),[]);return I.QrCode.encodeSegments(a,Ct[l],r,void 0,void 0,C)},[h,l,r,C]);const{cells:s,margin:e,numCells:i,calculatedImageSettings:n}=x.useMemo(()=>{let o=t.getModules();const a=Nt(c,d),m=o.length+a*2,f=yt(o,N,a,u);return{cells:o,margin:a,numCells:m,calculatedImageSettings:f}},[t,N,u,c,d]);return{qrcode:t,margin:e,cells:s,numCells:i,calculatedImageSettings:n}}var Rt=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),vt=x.forwardRef(function(l,r){const c=l,{value:d,size:u=K,level:N=W,bgColor:C=Z,fgColor:t=J,includeMargin:s=q,minVersion:e=tt,boostLevel:i,marginSize:n,imageSettings:o}=c,m=B(c,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:f}=m,R=B(m,["style"]),y=o?.src,g=x.useRef(null),M=x.useRef(null),v=x.useCallback(P=>{g.current=P,typeof r=="function"?r(P):r&&(r.current=P)},[r]),[b,j]=x.useState(!1),{margin:D,cells:O,numCells:F,calculatedImageSettings:A}=it({value:d,level:N,minVersion:e,boostLevel:i,includeMargin:s,marginSize:n,imageSettings:o,size:u});x.useEffect(()=>{if(g.current!=null){const P=g.current,k=P.getContext("2d");if(!k)return;let Q=O;const S=M.current,_=A!=null&&S!==null&&S.complete&&S.naturalHeight!==0&&S.naturalWidth!==0;_&&A.excavation!=null&&(Q=st(O,A.excavation));const H=window.devicePixelRatio||1;P.height=P.width=u*H;const $=u/F*H;k.scale($,$),k.fillStyle=C,k.fillRect(0,0,F,F),k.fillStyle=t,Rt?k.fill(new Path2D(et(Q,D))):O.forEach(function(at,lt){at.forEach(function(ot,ct){ot&&k.fillRect(ct+D,lt+D,1,1)})}),A&&(k.globalAlpha=A.opacity),_&&k.drawImage(S,A.x+D,A.y+D,A.w,A.h)}}),x.useEffect(()=>{j(!1)},[y]);const rt=z({height:u,width:u},f);let U=null;return y!=null&&(U=x.createElement("img",{src:y,key:y,style:{display:"none"},onLoad:()=>{j(!0)},ref:M,crossOrigin:A?.crossOrigin})),x.createElement(x.Fragment,null,x.createElement("canvas",z({style:rt,height:u,width:u,ref:v,role:"img"},R)),U)});vt.displayName="QRCodeCanvas";var nt=x.forwardRef(function(l,r){const c=l,{value:d,size:u=K,level:N=W,bgColor:C=Z,fgColor:t=J,includeMargin:s=q,minVersion:e=tt,boostLevel:i,title:n,marginSize:o,imageSettings:a}=c,m=B(c,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:f,cells:R,numCells:y,calculatedImageSettings:g}=it({value:d,level:N,minVersion:e,boostLevel:i,includeMargin:s,marginSize:o,imageSettings:a,size:u});let M=R,v=null;a!=null&&g!=null&&(g.excavation!=null&&(M=st(R,g.excavation)),v=x.createElement("image",{href:a.src,height:g.h,width:g.w,x:g.x+f,y:g.y+f,preserveAspectRatio:"none",opacity:g.opacity,crossOrigin:g.crossOrigin}));const b=et(M,f);return x.createElement("svg",z({height:u,width:u,viewBox:`0 0 ${y} ${y}`,ref:r,role:"img"},m),!!n&&x.createElement("title",null,n),x.createElement("path",{fill:C,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),x.createElement("path",{fill:t,d:b,shapeRendering:"crispEdges"}),v)});nt.displayName="QRCodeSVG";function Tt({params:h}){const{language:l}=ht(),{data:r,isLoading:c}=ut.ticketing.ticket.useQuery({ticketCode:h.ticketCode}),d=l==="zh-Hant",u=typeof window<"u"?window.location.href:`https://hktradingcardshow.com/ticket/${h.ticketCode}`;return c?E.jsx("section",{"data-loc":"client/src/pages/DigitalTicket.tsx:13",className:"page-hero min-h-[70vh]"}):r?E.jsx("section",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"ticket-page",children:E.jsxs("div",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"container py-16 sm:py-24",children:[E.jsxs("article",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"ticket-pass",children:[E.jsxs("div",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"ticket-pass-copy",children:[E.jsx("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"eyebrow text-cyan-200",children:"Hong Kong Trading Card Show"}),E.jsx("h1",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-5 font-display text-6xl leading-[0.9] text-white",children:r.ticketType==="adult"?"Adult":"Child U15"}),E.jsx("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-4 text-sm text-slate-400",children:d?"數碼入場門票":"Digital admission pass"}),E.jsxs("div",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-9 space-y-4 text-sm text-slate-200",children:[E.jsxs("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"flex items-center gap-3",children:[E.jsx(dt,{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"h-4 w-4 text-cyan-200"}),"26–27 Sep 2026"]}
19),E.jsxs("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"flex items-center gap-3",children:[E.jsx(ft,{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"h-4 w-4 text-cyan-200"}),"AsiaWorld-Expo"]}),E.jsxs("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"flex items-center gap-3",children:[E.jsx(gt,{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"h-4 w-4 text-cyan-200"}),d?"狀態":"Status",": ",r.status]}),E.jsxs("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"flex items-start gap-3",children:[E.jsx(mt,{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-0.5 h-4 w-4 shrink-0 text-cyan-200"}),d?"如幸運抽獎獲正式確認,此門票編號將作為參加識別;資格以主辦方公布規則為準。":"If the lucky draw is formally confirmed, this ticket code will serve as the entry reference; eligibility follows the organiser’s published rules."]})]}),E.jsxs("div",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-10",children:[E.jsx("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"eyebrow text-slate-500",children:d?"訂單編號":"Order reference"}),E.jsx("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-2 text-sm font-bold text-white",children:r.orderReference}),E.jsx("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-1 break-all text-xs text-slate-500",children:r.ticketCode})]})]}),E.jsxs("div",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"ticket-qr",children:[E.jsx(nt,{"data-loc":"client/src/pages/DigitalTicket.tsx:16",value:u,size:220,level:"H",marginSize:2,title:`${r.ticketType==="adult"?"Adult":"Child U15"} ticket ${r.ticketCode}`,bgColor:"#ffffff",fgColor:"#071321"}),E.jsx("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"mt-4 max-w-[230px] text-center text-xs leading-5 text-slate-500",children:d?"入場時出示此 QR 碼。QR 只包含安全的門票連結,不含個人資料。":"Show this QR code at entry. It contains only a secure ticket link, not personal information."})]})]}),E.jsxs("button",{"data-loc":"client/src/pages/DigitalTicket.tsx:16",type:"button",onClick:()=>window.print(),className:"secondary-cta mt-6 inline-flex print:hidden",children:[E.jsx(pt,{"data-loc":"client/src/pages/DigitalTicket.tsx:16",className:"h-4 w-4"}),d?"列印或儲存":"Print or save"]})]})}):E.jsx("section",{"data-loc":"client/src/pages/DigitalTicket.tsx:14",className:"page-hero min-h-[70vh]",children:E.jsxs("div",{"data-loc":"client/src/pages/DigitalTicket.tsx:14",className:"container py-24",children:[E.jsx("h1",{"data-loc":"client/src/pages/DigitalTicket.tsx:14",className:"font-display text-6xl text-white",children:d?"找不到門票":"Ticket not found"}),E.jsx("p",{"data-loc":"client/src/pages/DigitalTicket.tsx:14",className:"mt-4 text-slate-400",children:d?"請檢查門票連結或聯絡主辦方。":"Check the ticket link or contact the organisers."})]})})}export{Tt 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.