1import{z as de,b6 as N,a9 as he,j as d}from"./index-sg1QXStc.js";import{M as ue}from"./MemberLayout-DpY6Pilu.js";import{Q as me}from"./qr-code-CvoFKSL4.js";import{C as fe}from"./circle-check-BeIm8uUu.js";import"./index-BqgxQn0Z.js";import"./check-CO-duti4.js";import"./message-square-UWTlzToj.js";import"./ban-nk1SAz-i.js";import"./layout-dashboard-DseMIJLG.js";import"./handshake-v5ElPvcb.js";import"./formatDistanceToNow-5vrp8xtd.js";import"./member-gates-BjpDN-W9.js";import"./calendar-days-B_lteXP-.js";import"./ticket-CkWwPDSl.js";const pe=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],ge=de("receipt",pe);var xe=Object.defineProperty,O=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,G=(a,o,r)=>o in a?xe(a,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[o]=r,T=(a,o)=>{for(var r in o||(o={}))V.call(o,r)&&G(a,r,o[r]);if(O)for(var r of O(o))K.call(o,r)&&G(a,r,o[r]);return a},D=(a,o)=>{var r={};for(var c in a)V.call(a,c)&&o.indexOf(c)<0&&(r[c]=a[c]);if(a!=null&&O)for(var c of O(a))o.indexOf(c)<0&&K.call(a,c)&&(r[c]=a[c]);return r};var P;(a=>{const o=class g{constructor(e,s,t,n){if(this.version=e,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],e<g.MIN_VERSION||e>g.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;let i=[];for(let l=0;l<this.size;l++)i.push(!1);for(let l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const h=this.addEccAndInterleave(t);if(this.drawCodewords(h),n==-1){let l=1e9;for(let p=0;p<8;p++){this.applyMask(p),this.drawFormatBits(p);const u=this.getPenaltyScore();u<l&&(n=p,l=u),this.applyMask(p)}}x(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}static encodeText(e,s){const t=a.QrSegment.makeSegments(e);return g.encodeSegments(t,s)}static encodeBinary(e,s){const t=a.QrSegment.makeBytes(e);return g.encodeSegments([t],s)}static encodeSegments(e,s,t=1,n=40,i=-1,h=!0){if(!(g.MIN_VERSION<=t&&t<=n&&n<=g.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");let l,p;for(l=t;;l++){const f=g.getNumDataCodewords(l,s)*8,w=v.getTotalBits(e,l);if(w<=f){p=w;break}if(l>=n)throw new RangeError("Data too long")}for(const f of[g.Ecc.MEDIUM,g.Ecc.QUARTILE,g.Ecc.HIGH])h&&p<=g.getNumDataCodewords(l,f)*8&&(s=f);let u=[];for(const f of e){r(f.mode.modeBits,4,u),r(f.numChars,f.mode.numCharCountBits(l),u);for(const w of f.getData())u.push(w)}x(u.length==p);const b=g.getNumDataCodewords(l,s)*8;x(u.length<=b),r(0,Math.min(4,b-u.length),u),r(0,(8-u.length%8)%8,u),x(u.length%8==0);for(let f=236;u.length<b;f^=253)r(f,8,u);let M=[];for(;M.length*8<u.length;)M.push(0);return u.forEach((f,w)=>M[w>>>3]|=f<<7-(w&7)),new g(l,s,M,i)}getModule(e,s){return 0<=e&&e<this.size&&0<=s&&s<this.size&&this.modules[s][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),s=e.length;for(let t=0;t<s;t++)for(let n=0;n<s;n++)t==0&&n==0||t==0&&n==s-1||t==s-1&&n==0||this.drawAlignmentPattern(e[t],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const s=this.errorCorrectionLevel.formatBits<<3|e;let t=s;for(let i=0;i<10;i++)t=t<<1^(t>>>9)*1335;const n=(s<<10|t)^21522;x(n>>>15==0);for(let i=0;i<=5;i++)this.setFunctionModule(8,i,c(n,i));this.setFunctionModule(8,7,c(n,6)),this.setFunctionModule(8,8,c(n,7)),this.setFunctionModule(7,8,c(n,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,c(n,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,c(n,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,c(n,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;const s=this.version<<12|e;x(s>>>18==0);for(let t=0;t<18;t++){const n=c(s,t),i=this.size-11+t%3,h=Math.floor(t/3);this.setFunctionModule(i,h,n),this.setFunctionModule(h,i,n)}}
1drawFinderPattern(e,s){for(let t=-4;t<=4;t++)for(let n=-4;n<=4;n++){const i=Math.max(Math.abs(n),Math.abs(t)),h=e+n,l=s+t;0<=h&&h<this.size&&0<=l&&l<this.size&&this.setFunctionModule(h,l,i!=2&&i!=4)}}drawAlignmentPattern(e,s){for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,s+t,Math.max(Math.abs(n),Math.abs(t))!=1)}setFunctionModule(e,s,t){this.modules[s][e]=t,this.isFunction[s][e]=!0}addEccAndInterleave(e){const s=this.version,t=this.errorCorrectionLevel;if(e.length!=g.getNumDataCodewords(s,t))throw new RangeError("Invalid argument");const n=g.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][s],i=g.ECC_CODEWORDS_PER_BLOCK[t.ordinal][s],h=Math.floor(g.getNumRawDataModules(s)/8),l=n-h%n,p=Math.floor(h/n);let u=[];const b=g.reedSolomonComputeDivisor(i);for(let f=0,w=0;f<n;f++){let A=e.slice(w,w+p-i+(f<l?0:1));w+=A.length;const L=g.reedSolomonComputeRemainder(A,b);f<l&&A.push(0),u.push(A.concat(L))}let M=[];for(let f=0;f<u[0].length;f++)u.forEach((w,A)=>{(f!=p-i||A>=l)&&M.push(w[f])});return x(M.length==h),M}drawCodewords(e){if(e.length!=Math.floor(g.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let n=0;n<this.size;n++)for(let i=0;i<2;i++){const h=t-i,p=(t+1&2)==0?this.size-1-n:n;!this.isFunction[p][h]&&s<e.length*8&&(this.modules[p][h]=c(e[s>>>3],7-(s&7)),s++)}}x(s==e.length*8)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++)for(let t=0;t<this.size;t++){let n;switch(e){case 0:n=(t+s)%2==0;break;case 1:n=s%2==0;break;case 2:n=t%3==0;break;case 3:n=(t+s)%3==0;break;case 4:n=(Math.floor(t/3)+Math.floor(s/2))%2==0;break;case 5:n=t*s%2+t*s%3==0;break;case 6:n=(t*s%2+t*s%3)%2==0;break;case 7:n=((t+s)%2+t*s%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[s][t]&&n&&(this.modules[s][t]=!this.modules[s][t])}}getPenaltyScore(){let e=0;for(let i=0;i<this.size;i++){let h=!1,l=0,p=[0,0,0,0,0,0,0];for(let u=0;u<this.size;u++)this.modules[i][u]==h?(l++,l==5?e+=g.PENALTY_N1:l>5&&e++):(this.finderPenaltyAddHistory(l,p),h||(e+=this.finderPenaltyCountPatterns(p)*g.PENALTY_N3),h=this.modules[i][u],l=1);e+=this.finderPenaltyTerminateAndCount(h,l,p)*g.PENALTY_N3}for(let i=0;i<this.size;i++){let h=!1,l=0,p=[0,0,0,0,0,0,0];for(let u=0;u<this.size;u++)this.modules[u][i]==h?(l++,l==5?e+=g.PENALTY_N1:l>5&&e++):(this.finderPenaltyAddHistory(l,p),h||(e+=this.finderPenaltyCountPatterns(p)*g.PENALTY_N3),h=this.modules[u][i],l=1);e+=this.finderPenaltyTerminateAndCount(h,l,p)*g.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let h=0;h<this.size-1;h++){const l=this.modules[i][h];l==this.modules[i][h+1]&&l==this.modules[i+1][h]&&l==this.modules[i+1][h+1]&&(e+=g.PENALTY_N2)}let s=0;for(const i of this.modules)s=i.reduce((h,l)=>h+(l?1:0),s);const t=this.size*this.size,n=Math.ceil(Math.abs(s*20-t*10)/t)-1;return x(0<=n&&n<=9),e+=n*g.PENALTY_N4,x(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{const e=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2;let t=[6];for(let n=this.size-7;t.length<e;n-=s)t.splice(1,0,n);return t}}static getNumRawDataModules(e){if(e<g.MIN_VERSION||e>g.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;s-=(25*t-10)*t-55,e>=7&&(s-=36)}return x(208<=s&&s<=29648),s}static getNumDataCodewords(e,s){return Math.floor(g.getNumRawDataModules(e)/8)-g.ECC_CODEWORDS_PER_BLOCK[s.ordinal][e]*g.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let s=[];for(let n=0;n<e-1;n++)s.push(0);s.push(1);let t=1;for(let n=0;n<e;n++){for(let i=0;i<s.length;i++)s[i]=g.reedSolomonMultiply(s[i],t),i+1<s.length&&(s[i]^=s[i+1]);t=g.reedSolomonMultiply(t,2)}return s}static reedSolomonComputeRemainder(e,s){let t=s.map(n=>0);for(const n of e){const i=n^t.shift();t.push(0),s.forEach((h,l)=>t[l]^=g.reedSolomonMultiply(h,i))}return t}static reedSolomonMultiply(e,s){if(e>>>8||s>>>8)throw new RangeError("Byte out of range");let t=0;for(let n=7;n>=0;n--)t=t<<1^(t>>>7)*285,t^=(s>>>n&1)*e;return x(t>>>8==0),t}finderPenaltyCountPatterns(e){const s=e[1];x(s<=this.size*3);const t=s>0&&e[2]==s&&e[3]==s*3&&e[4]==s&&e[5]==s;return(t&&e[0]>=s*4&&e[6]>=s?1:0)+(t&&e[6]>=s*4&&e[0]>=s?1:0)}finderPenaltyTerminateAndCount(e,s,t){return e&&(this.finderPenaltyAddHistory(s,t),s=0),s+=this.size,this.finderPenaltyAddHistory(s,t),this.finderPenaltyCountPatterns(t)}finderPenaltyAddHistory(e,s){s[0]==0&&(e+=this.size),s.pop(),s.unshift(e)}};o.MIN_VERSION=1,o.MAX_VERSION=40,o.PENALTY_N1=3,o.PENALTY_N2=3,o.PENALTY_N3=40,o.PENALTY_N4=10,o.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]],o.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.QrC
1ode=o;function r(E,e,s){if(e<0||e>31||E>>>e)throw new RangeError("Value out of range");for(let t=e-1;t>=0;t--)s.push(E>>>t&1)}function c(E,e){return(E>>>e&1)!=0}function x(E){if(!E)throw new Error("Assertion error")}const m=class C{constructor(e,s,t){if(this.mode=e,this.numChars=s,this.bitData=t,s<0)throw new RangeError("Invalid argument");this.bitData=t.slice()}static makeBytes(e){let s=[];for(const t of e)r(t,8,s);return new C(C.Mode.BYTE,e.length,s)}static makeNumeric(e){if(!C.isNumeric(e))throw new RangeError("String contains non-numeric characters");let s=[];for(let t=0;t<e.length;){const n=Math.min(e.length-t,3);r(parseInt(e.substring(t,t+n),10),n*3+1,s),t+=n}return new C(C.Mode.NUMERIC,e.length,s)}static makeAlphanumeric(e){if(!C.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let s=[],t;for(t=0;t+2<=e.length;t+=2){let n=C.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t))*45;n+=C.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(n,11,s)}return t<e.length&&r(C.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,s),new C(C.Mode.ALPHANUMERIC,e.length,s)}static makeSegments(e){return e==""?[]:C.isNumeric(e)?[C.makeNumeric(e)]:C.isAlphanumeric(e)?[C.makeAlphanumeric(e)]:[C.makeBytes(C.toUtf8ByteArray(e))]}static makeEci(e){let s=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,s);else if(e<16384)r(2,2,s),r(e,14,s);else if(e<1e6)r(6,3,s),r(e,21,s);else throw new RangeError("ECI assignment value out of range");return new C(C.Mode.ECI,0,s)}static isNumeric(e){return C.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return C.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,s){let t=0;for(const n of e){const i=n.mode.numCharCountBits(s);if(n.numChars>=1<<i)return 1/0;t+=4+i+n.bitData.length}return t}static toUtf8ByteArray(e){e=encodeURI(e);let s=[];for(let t=0;t<e.length;t++)e.charAt(t)!="%"?s.push(e.charCodeAt(t)):(s.push(parseInt(e.substring(t+1,t+3),16)),t+=2);return s}};m.NUMERIC_REGEX=/^[0-9]*$/,m.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,m.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let v=m;a.QrSegment=m})(P||(P={}));(a=>{(o=>{const r=class{constructor(x,m){this.ordinal=x,this.formatBits=m}};r.LOW=new r(0,1),r.MEDIUM=new r(1,0),r.QUARTILE=new r(2,3),r.HIGH=new r(3,2),o.Ecc=r})(a.QrCode||(a.QrCode={}))})(P||(P={}));(a=>{(o=>{const r=class{constructor(x,m){this.modeBits=x,this.numBitsCharCount=m}numCharCountBits(x){return this.numBitsCharCount[Math.floor((x+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]),o.Mode=r})(a.QrSegment||(a.QrSegment={}))})(P||(P={}));var F=P;var Ee={L:F.QrCode.Ecc.LOW,M:F.QrCode.Ecc.MEDIUM,Q:F.QrCode.Ecc.QUARTILE,H:F.QrCode.Ecc.HIGH},W=128,X="L",Z="#FFFFFF",J="#000000",q=!1,ee=1,Ce=4,we=0,Ne=.1;function te(a,o=0){const r=[];return a.forEach(function(c,x){let m=null;c.forEach(function(v,E){if(!v&&m!==null){r.push(`M${m+o} ${x+o}h${E-m}v1H${m+o}z`),m=null;return}if(E===c.length-1){if(!v)return;m===null?r.push(`M${E+o},${x+o} h1v1H${E+o}z`):r.push(`M${m+o},${x+o} h${E+1-m}v1H${m+o}z`);return}v&&m===null&&(m=E)})}),r.join("")}function se(a,o){return a.slice().map((r,c)=>c<o.y||c>=o.y+o.h?r:r.map((x,m)=>m<o.x||m>=o.x+o.w?x:!1))}function Me(a,o,r,c){if(c==null)return null;const x=a.length+r*2,m=Math.floor(o*Ne),v=x/o,E=(c.width||m)*v,e=(c.height||m)*v,s=c.x==null?a.length/2-E/2:c.x*v,t=c.y==null?a.length/2-e/2:c.y*v,n=c.opacity==null?1:c.opacity;let i=null;if(c.excavate){let l=Math.floor(s),p=Math.floor(t),u=Math.ceil(E+s-l),b=Math.ceil(e+t-p);i={x:l,y:p,w:u,h:b}}const h=c.crossOrigin;return{x:s,y:t,h:e,w:E,excavation:i,opacity:n,crossOrigin:h}}function ve(a,o){return o!=null?Math.max(Math.floor(o),0):a?Ce:we}function re({value:a,level:o,minVersion:r,includeMargin:c,marginSize:x,imageSettings:m,size:v,boostLevel:E}){let e=N.useMemo(()=>{const l=(Array.isArray(a)?a:[a]).reduce((p,u)=>(p.push(...F.QrSegment.makeSegments(u)),p),[]);return F.QrCode.encodeSegments(l,Ee[o],r,void 0,void 0,E)},[a,o,r,E]);const{cells:s,margin:t,numCells:n,calculatedImageSettings:i}=N.useMemo(()=>{let h=e.getModules();const l=ve(c,x),p=h.length+l*2,u=Me(h,v,l,m);return{cells:h,margin:l,numCells:p,calculatedImageSettings:u}},[e,v,m,c,x]);return{qrcode:e,margin:t,cells:s,numCells:n,calculatedImageSettings:i}}var be=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Ae=N.forwardRef(function(o,r){const c=o,{value:x,size:m=W,level:v=X,bgColor:E=Z,fgColor:e=J,includeMargin:s=q,minVersion:t=ee,boostLevel:n,marginSize:i,imageSettings:h}=c,p=D(c,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:u}=p,b=D(p,["style"]),M=h?.src,f=N.useRef(null),w=N.useRef(null),A=N.useCallback(I=>{f.current=I,typeof r=="function"?r(I):r&&(r.current=I)},[r]),[L,z]=N.useState(!1),{margin:S,cells:B,numCells:k,calculatedImageSettings:R}=re({value:x,level:v,minVersion:t,boostLevel:n,includeMargin:s,marginSize:i,imageSettings:h,size:m});N.useEffect(()=>{if(f.current!=null){const I=f.current,y=I.getContext("2d");if(!y)return;let _=B;const j=w.current,Q=R!=null&&j!==null&&j.complete&&j.naturalHeight!==0&&j.naturalWi
1dth!==0;Q&&R.excavation!=null&&(_=se(B,R.excavation));const H=window.devicePixelRatio||1;I.height=I.width=m*H;const $=m/k*H;y.scale($,$),y.fillStyle=E,y.fillRect(0,0,k,k),y.fillStyle=e,be?y.fill(new Path2D(te(_,S))):B.forEach(function(oe,le){oe.forEach(function(ae,ce){ae&&y.fillRect(ce+S,le+S,1,1)})}),R&&(y.globalAlpha=R.opacity),Q&&y.drawImage(j,R.x+S,R.y+S,R.w,R.h)}}),N.useEffect(()=>{z(!1)},[M]);const ie=T({height:m,width:m},u);let U=null;return M!=null&&(U=N.createElement("img",{src:M,key:M,style:{display:"none"},onLoad:()=>{z(!0)},ref:w,crossOrigin:R?.crossOrigin})),N.createElement(N.Fragment,null,N.createElement("canvas",T({style:ie,height:m,width:m,ref:A,role:"img"},b)),U)});Ae.displayName="QRCodeCanvas";var ne=N.forwardRef(function(o,r){const c=o,{value:x,size:m=W,level:v=X,bgColor:E=Z,fgColor:e=J,includeMargin:s=q,minVersion:t=ee,boostLevel:n,title:i,marginSize:h,imageSettings:l}=c,p=D(c,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:u,cells:b,numCells:M,calculatedImageSettings:f}=re({value:x,level:v,minVersion:t,boostLevel:n,includeMargin:s,marginSize:h,imageSettings:l,size:m});let w=b,A=null;l!=null&&f!=null&&(f.excavation!=null&&(w=se(b,f.excavation)),A=N.createElement("image",{href:l.src,height:f.h,width:f.w,x:f.x+u,y:f.y+u,preserveAspectRatio:"none",opacity:f.opacity,crossOrigin:f.crossOrigin}));const L=te(w,u);return N.createElement("svg",T({height:m,width:m,viewBox:`0 0 ${M} ${M}`,ref:r,role:"img"},p),!!i&&N.createElement("title",null,i),N.createElement("path",{fill:E,d:`M0,0 h${M}v${M}H0z`,shapeRendering:"crispEdges"}),N.createElement("path",{fill:e,d:L,shapeRendering:"crispEdges"}),A)});ne.displayName="QRCodeSVG";function Y(a){const o=a?.gross??a?.base_price??null;if(!o)return null;const r=o.major_value??null,c=o.currency??"";return r==null?null:`${r} ${c}`.trim()}function Qe(){const{data:a,isLoading:o}=he({queryKey:["/api/me/ticket"],queryFn:async()=>{const r=await fetch("/api/me/ticket",{credentials:"include"});if(!r.ok)throw new Error("Failed to load ticket");return r.json()}});return d.jsx(ue,{title:"My ticket",children:o||!a?d.jsx("div",{className:"text-[#5B7186]",children:"Loadingâ¦"}):d.jsxs("div",{className:"ma-fade grid lg:grid-cols-[1.2fr_1fr] gap-4 items-start",children:[d.jsx("div",{className:"space-y-4 min-w-0",children:a.attendees.map(r=>{const c=d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"ma-mono font-semibold text-[10.5px] tracking-[0.12em] text-[#8FA3B8]",children:"REGISTRATION ID"}),d.jsx("div",{className:"ma-mono font-semibold text-[13px] tracking-[0.03em] mt-[5px] break-all",children:r.barcode||r.registrationId})]});return d.jsxs("div",{className:"ma-dark rounded-[20px] text-white overflow-hidden relative",children:[d.jsx("div",{className:"absolute -right-[60px] -bottom-20 w-[300px] h-[300px] rounded-full border border-[#16C784]/20"}),d.jsxs("div",{className:"px-6 md:px-[34px] py-[30px]",children:[d.jsxs("div",{className:"ma-grotesk font-bold text-base sm:text-lg md:text-xl",children:["İstanbul Fintech Week 2026"," ",d.jsx("span",{className:"sm:block sm:mt-1",children:"powered by BEX Digital Wallet"})]}),d.jsxs("div",{className:"flex items-center gap-3.5 mt-3 flex-wrap",children:[r.ticketClassName&&d.jsx("span",{className:"bg-[#16C784] text-[#07131F] ma-grotesk font-bold text-xs tracking-[0.04em] px-3.5 py-[7px] rounded-full uppercase",children:r.ticketClassName}),d.jsxs("div",{className:"ma-mono font-semibold text-[11px] tracking-[0.12em] text-[#8FA3B8] leading-[1.6]",children:[d.jsx("div",{children:"5â7 OCTOBER 2026"}),d.jsx("div",{children:"HILTON İSTANBUL MASLAK"})]})]})]}),d.jsx("div",{className:"border-t-[1.5px] border-dashed border-white/[.18] mx-6 md:mx-[34px]"}),d.jsxs("div",{className:"px-6 md:px-[34px] pt-[26px] pb-[30px] flex flex-col items-center text-center gap-5 sm:flex-row sm:flex-wrap sm:items-center sm:text-left sm:gap-7",children:[d.jsxs("div",{className:"order-1 w-full min-w-0 sm:w-auto sm:flex-1 sm:min-w-[200px]",children:[d.jsx("div",{className:"ma-mono font-semibold text-[10.5px] tracking-[0.12em] text-[#8FA3B8]",children:"ATTENDEE"}),d.jsx("div",{className:"ma-grotesk font-semibold text-[19px] mt-[5px]",children:r.fullName||"â"}),r.jobTitle&&d.jsx("div",{className:"text-[13px] text-[#9FB2C4] mt-[3px]",children:r.jobTitle}),r.company&&d.jsx("div",{className:"text-[13px] text-[#9FB2C4] mt-[2px]",children:r.company}),d.jsx("div",{className:"hidden sm:block mt-[18px]",children:c})]}),d.jsx("div",{className:"order-2 w-[120px] h-[120px] bg-white rounded-xl grid place-items-center text-[#0A1B2E] flex-shrink-0 p-2.5",children:r.barcode||r.registrationId?d.jsx(ne,{value:r.barcode||r.registrationId,size:100,level:"M",bgColor:"#ffffff",fgColor:"#0A1B2E",title:`Registration ${r.barcode||r.registrationId}`}):d.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[d.jsx(me,{className:"w-12 h-12",strokeWidth:1.5}),d.jsx("span",{className:"ma-mono font-semibold text-[10px]",children:"FAST CHECK-IN"})]})}),d.jsx("div",{className:"order-3 w-full sm:hidden",children:c})]})]},r.registrationId)})}),d.jsxs("div",{className:"space-y-4 min-w-0",children:[d.jsxs("div",{className:"ma-card overflow-hidden",children:[d.jsx("div",{className:"px-5 sm:px-6 py-5 border-b border-[#
1EDF1F5] bg-[#F4F7F9] ma-grotesk font-semibold text-base",children:"Ticket status"}),d.jsx("div",{className:"px-5 sm:px-6 py-2",children:a.attendees.map(r=>d.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-[#EDF1F5] last:border-b-0",children:[d.jsx("span",{className:`w-[22px] h-[22px] rounded-full grid place-items-center flex-shrink-0 mt-0.5 ${r.checkedIn?"bg-[#16C784]/[.12] text-[#0E9F68]":"bg-[#F0A13A]/[.12] text-[#B8860B]"}`,children:d.jsx(fe,{className:"w-3.5 h-3.5",strokeWidth:2.5})}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsx("div",{className:"text-sm font-medium break-words",children:r.fullName||r.email||"Attendee"}),d.jsxs("div",{className:"flex items-center gap-2 flex-wrap mt-1.5",children:[d.jsx("span",{className:`ma-mono font-semibold text-[10px] tracking-[0.06em] px-2 py-[3px] rounded-full ${r.checkedIn?"text-[#0E9F68] bg-[#16C784]/10":"text-[#B8860B] bg-[#B8860B]/10"}`,children:r.checkedIn?"CHECKED IN":"NOT CHECKED IN"}),r.status&&d.jsx("span",{className:"text-xs text-[#8296A8]",children:r.status})]})]})]},r.registrationId))})]}),a.orders.length>0&&d.jsxs("div",{className:"ma-card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-2 px-6 py-5 border-b border-[#EDF1F5] bg-[#F4F7F9] ma-grotesk font-semibold text-base",children:[d.jsx(ge,{className:"w-[18px] h-[18px]",strokeWidth:1.8})," Orders"]}),d.jsx("div",{className:"px-6 py-2",children:a.orders.map(r=>d.jsxs("div",{className:"py-3 border-b border-[#EDF1F5] last:border-b-0 flex items-center justify-between gap-3",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsxs("p",{className:"ma-mono font-semibold text-[13px] text-[#0A1B2E]",children:["#",r.orderId]}),d.jsx("p",{className:"text-xs text-[#8296A8] mt-0.5",children:[r.name,r.status,r.createdAt?new Date(r.createdAt).toLocaleDateString():null].filter(Boolean).join(" · ")})]}),Y(r.costs)&&d.jsx("span",{className:"text-sm font-semibold text-[#0A1B2E] flex-shrink-0",children:Y(r.costs)})]},r.orderId))})]})]})]})})}export{Qe 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.