1import{d as ee,o as T,c as k,a as S,t as U,u as M,b as O,e as te,g as Bt,F as Q,r as G,f as Et,h as _t,i as bt,j,w as dt,k as Le,l as vt,m as Rt,n as se,p as xe,q as Ue,s as At,v as It,x as Z,_ as St,y as Nt,z as qe,A as Pt,B as Mt,C as Tt,T as kt,D as Lt}from"./Buf1FTkf.js";import{_ as xt}from"./DycaMJrJ.js";const Ut={class:"flex h-full flex-col items-center justify-center p-6 text-center text-black"},qt={class:"text-[22px] font-bold leading-tight"},Dt={key:0,class:"mt-3 whitespace-pre-line text-base"},Ft={key:1,class:"mt-3 text-base font-semibold uppercase"},zt=ee({name:"BadgeFront",__name:"BadgeFront",props:{person:{}},setup(r){const o=r,i=te(()=>[o.person.firstName,o.person.lastName].filter(Boolean).join(" "));return(n,e)=>(T(),k("div",Ut,[S("p",qt,U(M(i)),1),r.person.summaryText?(T(),k("div",Dt,U(r.person.summaryText),1)):O("",!0),r.person.address?.country?(T(),k("p",Ft,U(r.person.address.country),1)):O("",!0)]))}}),$t=Object.assign(zt,{__name:"BusinessEventBadgeFront"});var J={},ae,De;function jt(){return De||(De=1,ae=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ae}var ue={},z={},Fe;function V(){if(Fe)return z;Fe=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return z.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},z.getSymbolTotalCodewords=function(n){return o[n]},z.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n},z.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');r=n},z.isKanjiModeEnabled=function(){return typeof r<"u"},z.toSJIS=function(n){return r(n)},z}var le={},ze;function Pe(){return ze||(ze=1,(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+i)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,e){if(r.isValid(n))return n;try{return o(n)}catch{return e}}})(le)),le}var ce,$e;function Vt(){if($e)return ce;$e=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let n=0;n<i;n++)this.putBit((o>>>i-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},ce=r,ce}var fe,je;function Ht(){if(je)return fe;je=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,i,n,e){const t=o*this.size+i;this.data[t]=n,e&&(this.reservedBit[t]=!0)},r.prototype.get=function(o,i){return this.data[o*this.size+i]},r.prototype.xor=function(o,i,n){this.data[o*this.size+i]^=n},r.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},fe=r,fe}var de={},Ve;function Kt(){return Ve||(Ve=1,(function(r){const o=V().getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const e=Math.floor(n/7)+2,t=o(n),s=t===145?26:Math.ceil((t-13)/(2*e-2))*2,a=[t-7];for(let u=1;u<e-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},r.getPositions=function(n){const e=[],t=r.getRowColCoords(n),s=t.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||e.push([t[a],t[u]]);return e}})(de)),de}var he={},He;function Jt(){if(He)return he;He=1;const r=V().getSymbolSize,o=7;return he.getPositions=function(n){const e=r(n);return[[0,0],[e-o,0],[0,e-o]]},he}var ge={},Ke;function Ot(){return Ke||(Ke=1,(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},r.from=function(e){return r.isValid(e)?parseInt(e,10):void 0},r.getPenaltyN1=function(e){const t=e.size;let s=0,a=0,u=0,d=null,g=null;for(let m=0;m<t;m++){a=u=0,d=g=null;for(let h=0;h<t;h++){let c=e.get(m,h);c===d?a++:(a>
1=5&&(s+=o.N1+(a-5)),d=c,a=1),c=e.get(h,m),c===g?u++:(u>=5&&(s+=o.N1+(u-5)),g=c,u=1)}a>=5&&(s+=o.N1+(a-5)),u>=5&&(s+=o.N1+(u-5))}return s},r.getPenaltyN2=function(e){const t=e.size;let s=0;for(let a=0;a<t-1;a++)for(let u=0;u<t-1;u++){const d=e.get(a,u)+e.get(a,u+1)+e.get(a+1,u)+e.get(a+1,u+1);(d===4||d===0)&&s++}return s*o.N2},r.getPenaltyN3=function(e){const t=e.size;let s=0,a=0,u=0;for(let d=0;d<t;d++){a=u=0;for(let g=0;g<t;g++)a=a<<1&2047|e.get(d,g),g>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|e.get(g,d),g>=10&&(u===1488||u===93)&&s++}return s*o.N3},r.getPenaltyN4=function(e){let t=0;const s=e.data.length;for(let u=0;u<s;u++)t+=e.data[u];return Math.abs(Math.ceil(t*100/s/5)-10)*o.N4};function i(n,e,t){switch(n){case r.Patterns.PATTERN000:return(e+t)%2===0;case r.Patterns.PATTERN001:return e%2===0;case r.Patterns.PATTERN010:return t%3===0;case r.Patterns.PATTERN011:return(e+t)%3===0;case r.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case r.Patterns.PATTERN101:return e*t%2+e*t%3===0;case r.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case r.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(e,t){const s=t.size;
1for(let a=0;a<s;a++)for(let u=0;u<s;u++)t.isReserved(u,a)||t.xor(u,a,i(e,u,a))},r.getBestMask=function(e,t){const s=Object.keys(r.Patterns).length;let a=0,u=1/0;for(let d=0;d<s;d++){t(d),r.applyMask(d,e);const g=r.getPenaltyN1(e)+r.getPenaltyN2(e)+r.getPenaltyN3(e)+r.getPenaltyN4(e);r.applyMask(d,e),g<u&&(u=g,a=d)}return a}})(ge)),ge}var X={},Je;function ht(){if(Je)return X;Je=1;const r=Pe(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return X.getBlocksCount=function(e,t){switch(t){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}},X.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[(e-1)*4+0];case r.M:return i[(e-1)*4+1];case r.Q:return i[(e-1)*4+2];case r.H:return i[(e-1)*4+3];default:return}},X}var me={},Y={},Oe;function Yt(){if(Oe)return Y;Oe=1;const r=new Uint8Array(512),o=new Uint8Array(256);return(function(){let n=1;for(let e=0;e<255;e++)r[e]=n,o[n]=e,n<<=1,n&256&&(n^=285);for(let e=255;e<512;e++)r[e]=r[e-255]})(),Y.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},Y.exp=function(n){return r[n]},Y.mul=function(n,e){return n===0||e===0?0:r[o[n]+o[e]]},Y}var Ye;function Qt(){return Ye||(Ye=1,(function(r){const o=Yt();r.mul=function(n,e){const t=new Uint8Array(n.length+e.length-1);for(let s=0;s<n.length;s++)for(let a=0;a<e.length;a++)t[s+a]^=o.mul(n[s],e[a]);return t},r.mod=function(n,e){let t=new Uint8Array(n);for(;t.length-e.length>=0;){const s=t[0];for(let u=0;u<e.length;u++)t[u]^=o.mul(e[u],s);let a=0;for(;a<t.length&&t[a]===0;)a++;t=t.slice(a)}return t},r.generateECPolynomial=function(n){let e=new Uint8Array([1]);for(let t=0;t<n;t++)e=r.mul(e,new Uint8Array([1,o.exp(t)]));return e}})(me)),me}var we,Qe;function Gt(){if(Qe)return we;Qe=1;const r=Qt();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(n.length+this.degree);e.set(n);const t=r.mod(e,this.genPoly),s=this.degree-t.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(t,s),a}return t},we=o,we}var pe={},ye={},Ce={},Ge;function gt(){return Ge||(Ge=1,Ce.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),Ce}var q={},We;function mt(){if(We)return q;We=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r 2]))+`;q.KANJI=new RegExp(i,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(n,"g"),q.NUMERIC=new RegExp(r,"g"),q.ALPHANUMERIC=new RegExp(o,"g");const e=new RegExp("^"+i+"$"),t=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return q.testKanji=function(u){return e.test(u)},q.testNumeric=function(u){return t.test(u)},q.testAlphanumeric=function(u){return s.test(u)},q}var Ze;function H(){return Ze||(Ze=1,(function(r){const o=gt(),i=mt();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(t,s){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!o.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?t.ccBits[0]:s<27?t.ccBits[1]:t.ccBits[2]}
2,r.getBestModeForData=function(t){return i.testNumeric(t)?r.NUMERIC:i.testAlphanumeric(t)?r.ALPHANUMERIC:i.testKanji(t)?r.KANJI:r.BYTE},r.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},r.isValid=function(t){return t&&t.bit&&t.ccBits};function n(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+e)}}r.from=function(t,s){if(r.isValid(t))return t;try{return n(t)}catch{return s}}})(ye)),ye}var Xe;function Wt(){return Xe||(Xe=1,(function(r){const o=V(),i=ht(),n=Pe(),e=H(),t=gt(),s=7973,a=o.getBCHDigit(s);function u(h,c,R){for(let I=1;I<=40;I++)if(c<=r.getCapacity(I,R,h))return I}function d(h,c){return e.getCharCountIndicator(h,c)+4}function g(h,c){let R=0;return h.forEach(function(I){const x=d(I.mode,c);R+=x+I.getBitsLength()}),R}function m(h,c){for(let R=1;R<=40;R++)if(g(h,R)<=r.getCapacity(R,c,e.MIXED))return R}r.from=function(c,R){return t.isValid(c)?parseInt(c,10):R},r.getCapacity=function(c,R,I){if(!t.isValid(c))throw new Error("Invalid QR Code version");typeof I>"u"&&(I=e.BYTE);const x=o.getSymbolTotalCodewords(c),v=i.getTotalCodewordsCount(c,R),N=(x-v)*8;if(I===e.MIXED)return N;const _=N-d(I,c);switch(I){case e.NUMERIC:return Math.floor(_/10*3);case e.ALPHANUMERIC:return Math.floor(_/11*2);case e.KANJI:return Math.floor(_/13);case e.BYTE:default:return Math.floor(_/8)}},r.getBestVersionForData=function(c,R){let I;const x=n.from(R,n.M);if(Array.isArray(c)){if(c.length>1)return m(c,x);if(c.length===0)return 1;I=c[0]}else I=c;return u(I.mode,I.getLength(),x)},r.getEncodedBits=function(c){if(!t.isValid(c)||c<7)throw new Error("Invalid QR Code version");let R=c<<12;for(;o.getBCHDigit(R)-a>=0;)R^=s<<o.getBCHDigit(R)-a;return c<<12|R}})(pe)),pe}var Be={},et;function Zt(){if(et)return Be;et=1;const r=V(),o=1335,i=21522,n=r.getBCHDigit(o);return Be.getEncodedBits=function(t,s){const a=t.bit<<3|s;let u=a<<10;for(;r.getBCHDigit(u)-n>=0;)u^=o<<r.getBCHDigit(u)-n;return(a<<10|u)^i},Be}var Ee={},_e,tt;function Xt(){if(tt)return _e;tt=1;const r=H();function o(i){this.mode=r.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(n){let e,t,s;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),s=parseInt(t,10),n.put(s,10);const a=this.data.length-e;a>0&&(t=this.data.substr(e),s=parseInt(t,10),n.put(s,a*3+1))},_e=o,_e}var be,nt;function en(){if(nt)return be;nt=1;const r=H(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(n){this.mode=r.ALPHANUMERIC,this.data=n}return i.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let s=o.indexOf(this.data[t])*45;s+=o.indexOf(this.data[t+1]),e.put(s,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},be=i,be}var ve,rt;function tn(){if(rt)return ve;rt=1;const r=H();function o(i){this.mode=r.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return o.getBitsLength=function(n){return n*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(i){for(let n=0,e=this.data.length;n<e;n++)i.put(this.data[n],8)},ve=o,ve}var Re,ot;function nn(){if(ot)return Re;ot=1;const r=H(),o=V();function i(n){this.mode=r.KANJI,this.data=n}return i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(n){let e;for(e=0;e<this.data.length;
2e++){let t=o.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` 3Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),n.put(t,13)}},Re=i,Re}var Ae={exports:{}},it;function rn(){return it||(it=1,(function(r){var o={single_source_shortest_paths:function(i,n,e){var t={},s={};s[n]=0;var a=o.PriorityQueue.make();a.push(n,0);for(var u,d,g,m,h,c,R,I,x;!a.empty();){u=a.pop(),d=u.value,m=u.cost,h=i[d]||{};for(g in h)h.hasOwnProperty(g)&&(c=h[g],R=m+c,I=s[g],x=typeof s[g]>"u",(x||I>R)&&(s[g]=R,a.push(g,R),t[g]=d))}if(typeof e<"u"&&typeof s[e]>"u"){var v=["Could not find a path from ",n," to ",e,"."].join("");throw new Error(v)}return t},extract_shortest_path_from_predecessor_list:function(i,n){for(var e=[],t=n;t;)e.push(t),i[t],t=i[t];return e.reverse(),e},find_path:function(i,n,e){var t=o.single_source_shortest_paths(i,n,e);return o.extract_shortest_path_from_predecessor_list(t,e)},PriorityQueue:{make:function(i){var n=o.PriorityQueue,e={},t;i=i||{};for(t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e.queue=[],e.sorter=i.sorter||n.default_sorter,e},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var e={value:i,cost:n};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=o})(Ae)),Ae.exports}var st;function on(){return st||(st=1,(function(r){const o=H(),i=Xt(),n=en(),e=tn(),t=nn(),s=mt(),a=V(),u=rn();function d(v){return unescape(encodeURIComponent(v)).length}function g(v,N,_){const b=[];let L;for(;(L=v.exec(_))!==null;)b.push({data:L[0],index:L.index,mode:N,length:L[0].length});return b}function m(v){const N=g(s.NUMERIC,o.NUMERIC,v),_=g(s.ALPHANUMERIC,o.ALPHANUMERIC,v);let b,L;return a.isKanjiModeEnabled()?(b=g(s.BYTE,o.BYTE,v),L=g(s.KANJI,o.KANJI,v)):(b=g(s.BYTE_KANJI,o.BYTE,v),L=[]),N.concat(_,b,L).sort(function(C,f){return C.index-f.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function h(v,N){switch(N){case o.NUMERIC:return i.getBitsLength(v);case o.ALPHANUMERIC:return n.getBitsLength(v);case o.KANJI:return t.getBitsLength(v);case o.BYTE:return e.getBitsLength(v)}}function c(v){return v.reduce(function(N,_){const b=N.length-1>=0?N[N.length-1]:null;return b&&b.mode===_.mode?(N[N.length-1].data+=_.data,N):(N.push(_),N)},[])}function R(v){const N=[];for(let _=0;_<v.length;_++){const b=v[_];switch(b.mode){case o.NUMERIC:N.push([b,{data:b.data,mode:o.ALPHANUMERIC,length:b.length},{data:b.data,mode:o.BYTE,length:b.length}]);break;case o.ALPHANUMERIC:N.push([b,{data:b.data,mode:o.BYTE,length:b.length}]);break;case o.KANJI:N.push([b,{data:b.data,mode:o.BYTE,length:d(b.data)}]);break;case o.BYTE:N.push([{data:b.data,mode:o.BYTE,length:d(b.data)}])}}return N}function I(v,N){const _={},b={start:{}};let L=["start"];for(let w=0;w<v.length;w++){const C=v[w],f=[];for(let l=0;l<C.length;l++){const B=C[l],p=""+w+l;f.push(p),_[p]={node:B,lastCount:0},b[p]={};for(let E=0;E<L.length;E++){const y=L[E];_[y]&&_[y].node.mode===B.mode?(b[y][p]=h(_[y].lastCount+B.length,B.mode)-h(_[y].lastCount,B.mode),_[y].lastCount+=B.length):(_[y]&&(_[y].lastCount=B.length),b[y][p]=h(B.length,B.mode)+4+o.getCharCountIndicator(B.mode,N))}}L=f}for(let w=0;w<L.length;w++)b[L[w]].end=0;return{map:b,table:_}}function x(v,N){let _;const b=o.getBestModeForData(v);if(_=o.from(N,b),_!==o.BYTE&&_.bit<b.bit)throw new Error('"'+v+'" cannot be encoded with mode '+o.toString(_)+`. 4 Suggested mode is: `+o.toString(b));switch(_===o.KANJI&&!a.isKanjiModeEnabled()&&(_=o.BYTE),_){case o.NUMERIC:return new i(v);case o.ALPHANUMERIC:return new n(v);case o.KANJI:return new t(v);case o.BYTE:return new e(v)}}r.fromArray=function(N){return N.reduce(function(_,b){return typeof b=="string"?_.push(x(b,null)):b.data&&_.push(x(b.data,b.mode)),_},[])},r.fromString=function(N,_){const b=m(N,a.isKanjiModeEnabled()),L=R(b),w=I(L,_),C=u.find_path(w.map,"start","end"),f=[];for(let l=1;l<C.length-1;l++)f.push(w.table[C[l]].node);return r.fromArray(c(f))},r.rawSplit=function(N){return r.fromArray(m(N,a.isKanjiModeEnabled()))}})(Ee)),Ee}var at;function sn(){if(at)return ue;at=1;const r=V(),o=Pe(),i=Vt(),n=Ht(),e=Kt(),t=Jt(),s=Ot(),a=ht(),u=Gt(),d=Wt(),g=Zt(),m=H(),h=on();function c(w,C){const f=w.size,l=t.getPositions(C);for(let B=0;B<l.length;B++){const p=l[B][0],E=l[B][1];for(let y=-1;y<=7;y++)if(!(p+y<=-1||f<=p+y))for(let A=-1;A<=7;A++)E+A<=-1||f<=E+A||(y>=0&&y<=6&&(A===0||A===6)||A>=0&&A<=6&&(y===0||y===6)||y>=2&&y<=4&&A>=2&&A<=4?w.set(p+y,E+A,!0,!0):w.set(p+y,E+A,!1,!0))}}function R(w){const C=w.size;
4for(let f=8;f<C-8;f++){const l=f%2===0;w.set(f,6,l,!0),w.set(6,f,l,!0)}}function I(w,C){const f=e.getPositions(C);for(let l=0;l<f.length;l++){const B=f[l][0],p=f[l][1];for(let E=-2;E<=2;E++)for(let y=-2;y<=2;y++)E===-2||E===2||y===-2||y===2||E===0&&y===0?w.set(B+E,p+y,!0,!0):w.set(B+E,p+y,!1,!0)}}function x(w,C){const f=w.size,l=d.getEncodedBits(C);let B,p,E;for(let y=0;y<18;y++)B=Math.floor(y/3),p=y%3+f-8-3,E=(l>>y&1)===1,w.set(B,p,E,!0),w.set(p,B,E,!0)}function v(w,C,f){const l=w.size,B=g.getEncodedBits(C,f);let p,E;for(p=0;p<15;p++)E=(B>>p&1)===1,p<6?w.set(p,8,E,!0):p<8?w.set(p+1,8,E,!0):w.set(l-15+p,8,E,!0),p<8?w.set(8,l-p-1,E,!0):p<9?w.set(8,15-p-1+1,E,!0):w.set(8,15-p-1,E,!0);w.set(l-8,8,1,!0)}function N(w,C){const f=w.size;let l=-1,B=f-1,p=7,E=0;for(let y=f-1;y>0;y-=2)for(y===6&&y--;;){for(let A=0;A<2;A++)if(!w.isReserved(B,y-A)){let P=!1;E<C.length&&(P=(C[E]>>>p&1)===1),w.set(B,y-A,P),p--,p===-1&&(E++,p=7)}if(B+=l,B<0||f<=B){B-=l,l=-l;break}}}function _(w,C,f){const l=new i;f.forEach(function(A){l.put(A.mode.bit,4),l.put(A.getLength(),m.getCharCountIndicator(A.mode,w)),A.write(l)});const B=r.getSymbolTotalCodewords(w),p=a.getTotalCodewordsCount(w,C),E=(B-p)*8;for(l.getLengthInBits()+4<=E&&l.put(0,4);l.getLengthInBits()%8!==0;)l.putBit(0);const y=(E-l.getLengthInBits())/8;for(let A=0;A<y;A++)l.put(A%2?17:236,8);return b(l,w,C)}function b(w,C,f){const l=r.getSymbolTotalCodewords(C),B=a.getTotalCodewordsCount(C,f),p=l-B,E=a.getBlocksCount(C,f),y=l%E,A=E-y,P=Math.floor(l/E),$=Math.floor(p/E),pt=$+1,Me=P-$,yt=new u(Me);let ne=0;const W=new Array(E),Te=new Array(E);let re=0;const Ct=new Uint8Array(w.buffer);for(let K=0;K<E;K++){const ie=K<A?$:pt;W[K]=Ct.slice(ne,ne+ie),Te[K]=yt.encode(W[K]),ne+=ie,re=Math.max(re,ie)}const oe=new Uint8Array(l);let ke=0,D,F;for(D=0;D<re;D++)for(F=0;F<E;F++)D<W[F].length&&(oe[ke++]=W[F][D]);for(D=0;D<Me;D++)for(F=0;F<E;F++)oe[ke++]=Te[F][D];return oe}function L(w,C,f,l){let B;if(Array.isArray(w))B=h.fromArray(w);else if(typeof w=="string"){let P=C;if(!P){const $=h.rawSplit(w);P=d.getBestVersionForData($,f)}B=h.fromString(w,P||40)}else throw new Error("Invalid data");const p=d.getBestVersionForData(B,f);if(!p)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=p;else if(C<p)throw new Error(` 5The chosen QR Code version cannot contain this amount of data. 6Minimum version required to store current data is: `+p+`. 7`);const E=_(C,f,B),y=r.getSymbolSize(C),A=new n(y);return c(A,C),R(A),I(A,C),v(A,f,0),C>=7&&x(A,C),N(A,E),isNaN(l)&&(l=s.getBestMask(A,v.bind(null,A,f))),s.applyMask(l,A),v(A,f,l),{modules:A,version:C,errorCorrectionLevel:f,maskPattern:l,segments:B}}return ue.create=function(C,f){if(typeof C>"u"||C==="")throw new Error("No input text");let l=o.M,B,p;return typeof f<"u"&&(l=o.from(f.errorCorrectionLevel,o.M),B=d.from(f.version),p=s.from(f.maskPattern),f.toSJISFunc&&r.setToSJISFunction(f.toSJISFunc)),L(C,B,l,p)},ue}var Ie={},Se={},ut;function wt(){return ut||(ut=1,(function(r){function o(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let n=i.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+i);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(t){return[t,t]}))),n.length===6&&n.push("F","F");const e=parseInt(n.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+n.slice(0,6).join("")}}r.getOptions=function(n){n||(n={}),n.color||(n.color={});const e=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,t=n.width&&n.width>=21?n.width:void 0,s=n.scale||4;
7return{width:t,scale:t?4:s,margin:e,color:{dark:o(n.color.dark||"#000000ff"),light:o(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},r.getScale=function(n,e){return e.width&&e.width>=n+e.margin*2?e.width/(n+e.margin*2):e.scale},r.getImageWidth=function(n,e){const t=r.getScale(n,e);return Math.floor((n+e.margin*2)*t)},r.qrToImageData=function(n,e,t){const s=e.modules.size,a=e.modules.data,u=r.getScale(s,t),d=Math.floor((s+t.margin*2)*u),g=t.margin*u,m=[t.color.light,t.color.dark];for(let h=0;h<d;h++)for(let c=0;c<d;c++){let R=(h*d+c)*4,I=t.color.light;if(h>=g&&c>=g&&h<d-g&&c<d-g){const x=Math.floor((h-g)/u),v=Math.floor((c-g)/u);I=m[a[x*s+v]?1:0]}n[R++]=I.r,n[R++]=I.g,n[R++]=I.b,n[R]=I.a}}})(Se)),Se}var lt;function an(){return lt||(lt=1,(function(r){const o=wt();function i(e,t,s){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=s,t.width=s,t.style.height=s+"px",t.style.width=s+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(t,s,a){let u=a,d=s;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(d=n()),u=o.getOptions(u);const g=o.getImageWidth(t.modules.size,u),m=d.getContext("2d"),h=m.createImageData(g,g);return o.qrToImageData(h.data,t,u),i(m,d,g),m.putImageData(h,0,0),d},r.renderToDataURL=function(t,s,a){let u=a;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const d=r.render(t,s,u),g=u.type||"image/png",m=u.rendererOpts||{};return d.toDataURL(g,m.quality)}})(Ie)),Ie}var Ne={},ct;function un(){if(ct)return Ne;ct=1;const r=wt();function o(e,t){const s=e.a/255,a=t+'="'+e.hex+'"';return s<1?a+" "+t+'-opacity="'+s.toFixed(2).slice(1)+'"':a}function i(e,t,s){let a=e+t;return typeof s<"u"&&(a+=" "+s),a}function n(e,t,s){let a="",u=0,d=!1,g=0;for(let m=0;m<e.length;m++){const h=Math.floor(m%t),c=Math.floor(m/t);!h&&!d&&(d=!0),e[m]?(g++,m>0&&h>0&&e[m-1]||(a+=d?i("M",h+s,.5+c+s):i("m",u,0),u=0,d=!1),h+1<t&&e[m+1]||(a+=i("h",g),g=0)):u++}return a}return Ne.render=function(t,s,a){const u=r.getOptions(s),d=t.modules.size,g=t.modules.data,m=d+u.margin*2,h=u.color.light.a?"<path "+o(u.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",c="<path "+o(u.color.dark,"stroke")+' d="'+n(g,d,u.margin)+'"/>',R='viewBox="0 0 '+m+" "+m+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+R+' shape-rendering="crispEdges">'+h+c+`</svg> 8`;return typeof a=="function"&&a(null,x),x},Ne}var ft;function ln(){if(ft)return J;ft=1;const r=jt(),o=sn(),i=an(),n=un();function e(t,s,a,u,d){const g=[].slice.call(arguments,1),m=g.length,h=typeof g[m-1]=="function";if(!h&&!r())throw new Error("Callback required as last argument");if(h){if(m<2)throw new Error("Too few arguments provided");m===2?(d=a,a=s,s=u=void 0):m===3&&(s.getContext&&typeof d>"u"?(d=u,u=void 0):(d=u,u=a,a=s,s=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(a=s,s=u=void 0):m===2&&!s.getContext&&(u=a,a=s,s=void 0),new Promise(function(c,R){try{const I=o.create(a,u);c(t(I,s,u))}catch(I){R(I)}})}try{const c=o.create(a,u);d(null,t(c,s,u))}catch(c){d(c)}}return J.create=o.create,J.toCanvas=e.bind(null,i.render),J.toDataURL=e.bind(null,i.renderToDataURL),J.toString=e.bind(null,function(t,s,a){return n.render(t,a)}),J}var cn=ln();const fn=Bt(cn),dn=["viewBox"],hn=["x","y","stroke"],gn=["x","y","fill"],mn=["cx","cy","fill"],wn=["x","y","width","height"],pn={class:"flex h-full w-full items-center justify-center"},yn=ee({name:"QrCode",__name:"QrCode",props:{value:{},color:{default:"black"},hollowCenter:{type:Boolean,default:!1},hollowSize:{default:.3},errorCorrection:{default:"H"}},setup(r){const o=r;function i(e,t,s){return e<=6&&t<=6||e>=s-7&&t<=6||e<=6&&t>=s-7}const n=te(()=>{const e=fn.create(o.value,{errorCorrectionLevel:o.errorCorrection}),t=e.modules.size,s=e.modules.data,a=o.hollowCenter?Math.floor((t-Math.floor(t*o.hollowSize))/2):-1,u=o.hollowCenter?Math.ceil((t+Math.floor(t*o.hollowSize))/2):-1,d=[];for(let m=0;m<t;m++)for(let h=0;h<t;h++)s[m*t+h]&&(i(h,m,t)||o.hollowCenter&&h>=a&&h<u&&m>=a&&m<u||d.push({x:h,y:m}));const g=[{x:0,y:0},{x:t-7,y:0},{x:0,y:t-7}];return{dots:d,finders:g,size:t}});return(e,t)=>(T(),k("svg",{viewBox:`-1 -1 ${M(n).size+2} ${M(n).size+2}`,xmlns:"http://www.w3.org/2000/svg"},[(T(!0),k(Q,null,G(M(n).finders,(s,a)=>(T(),k("g",{key:`fp-${a}`},[S("rect",{x:s.x,y:s.y,width:"7",height:"7",rx:"1.4",ry:"1.4",fill:"none",stroke:r.color,"stroke-width":"1"},null,8,hn),S("rect",{x:s.x+2,y:s.y+2,width:"3",height:"3",rx:"0.6",ry:"0.6",fill:r.color},null,8,gn)]))),128)),(T(!0),k(Q,null,G(M(n).dots,(s,a)=>(T(),k("circle",{key:`d-${a}`,cx:s.x+.5,cy:s.y+.5,r:"0.45",fill:r.color},null,8,mn))),128)),r.hollowCenter&&e.$slots.default?(T(),k("foreignObject",{key:0,x:M(n).size/2-M(n).size*r.hollowSize/2,y:M(n).size/2-M(n).size*r.hollowSize/2,width:M(n).size*r.hollowSize,height:M(n).size*r.hollowSize},[S("div",pn,[Et(e.$slots,"default")])],8,wn)):O("",!0)],8,dn))}}),Cn=Object.assign(yn,{__name:"QrCode"}),Bn={class:"flex h-full items-center justify-center p-[12%]"},En=["src"],_n=ee({name:"BadgeBack",__name:"BadgeBack",props:{person:{},eventLogoUrl:{}},setup(r){const o=r,i=_t(),n=bt(),e=te(()=>{const t=i({name:"community_person",params:{personId:o.person.id}});return`${n.origin}${t}`});return(t,s)=>{const a=Cn;return T(),k("div",Bn,[j(a,{value:M(e),"hollow-center":"","hollow-size":.3,"error-correction":"M",class:"h-auto w-11/12"},{default:dt(()=>[r.eventLogoUrl?(T(),k("img",{key:0,src:r.eventLogoUrl,alt:"",class:"max-h-full max-w-full bg-white object-contain p-px"},null,8,En)):O("",!0)]),_:1},8,["value"])])}}}),bn=Object.assign(_n,{__name:"BusinessEventBadgeBack"}),vn={class:"print:hidden flex h-dvh"},Rn={class:"w-1/2 overflow-y-auto border-r border-secondary p-6"},An={class:"mb-6 flex flex-wrap gap-2"},In={class:"divide-y divide-secondary"},Sn=["checked","onChange"],Nn={class:"h-12 w-12 shrink-0 overflow-hidden rounded-full bg-secondary"},Pn=["src","alt"],Mn={key:1,class:"grid h-full w-full place-items-center text-white"},Tn={class:"font-medium"},kn={class:"flex w-1/2 flex-col p-6"},Ln={class:"mb-4 flex items-center justify-between"},xn={class:"text-lg font-bold"},Un=["disabled"],qn={class:"flex-1 overflow-y-auto"},Dn={class:"flex items-center gap-3"},Fn={class:"h-10 w-10 shrink-0 overflow-hidden rounded-full bg-secondary"},zn=["src","alt"],$n={key:1,class:"grid h-full w-full place-items-center text-white"},jn={class:"font-medium"}
8,Vn=["onClick"],Hn={key:0,class:"py-8 text-center text-surface"},Kn={class:"w-80 rounded-lg bg-white p-6 shadow-xl"},Jn={class:"mb-4 text-lg font-bold"},On={class:"flex flex-col gap-3"},Yn={class:"hidden print:block"},Qn={class:"badge-grid"},Gn={class:"badge-cell"},Wn={class:"badge-cell"},er=ee({name:"PrintBadgesPage",__name:"print-badges",async setup(r){let o,i;Le({meta:[{name:"robots",content:"noindex, nofollow"}]});const{t:n}=vt(),t=Rt().query.token;if(!t)throw se({statusCode:400,message:"Missing token parameter"});const s=t.split(".")[1];if(!s)throw se({statusCode:400,message:"Invalid token"});const a=JSON.parse(atob(s.replace(/-/g,"+").replace(/_/g,"/"))),{eventId:u}=a;if(!u)throw se({statusCode:400,message:"Token missing eventId"});const{data:d}=([o,i]=xe(()=>Ue(`/community/events/${u}`,{transform:At})),o=await o,i(),o),{data:g,meta:m}=([o,i]=xe(()=>Ue(`/community/events/${u}/participants/people`,{transform:It,query:{limit:50}})),o=await o,i(),o),h=Z(g.value??[]),c=Z(new Set),R=te(()=>h.value.filter(f=>c.value.has(f.id)));function I(f){const l=new Set(c.value);l.has(f)?l.delete(f):l.add(f),c.value=l}function x(f){const l=new Set(c.value);l.delete(f),c.value=l}function v(){if(!h.value)return;const f=new Set(c.value);let l=0;for(const B of h.value){if(l>=50)break;f.has(B.id)||(f.add(B.id),l++)}c.value=f}function N(){c.value=new Set}const _=Z(!1),b=Z("A4");Le({style:[()=>`@media print { @page { size: ${b.value==="A4"?"A4":"letter"}; margin: 0; } }`]});function L(f){return[f.firstName,f.lastName].filter(Boolean).join(" ")}function w(){_.value=!0}function C(f){b.value=f,_.value=!1,Lt(()=>{window.print()})}return(f,l)=>{const B=St,p=Pt,E=xt,y=$t,A=bn;return T(),k("div",null,[S("div",vn,[S("div",Rn,[S("div",An,[S("button",{class:"rounded-md bg-primary px-4 py-2 text-sm font-medium text-white",onClick:N},U(M(n)("printBadges.deselectAll")),1),S("button",{class:"rounded-md bg-primary px-4 py-2 text-sm font-medium text-white",onClick:v},U(M(n)("printBadges.selectNext50")),1)]),j(p,{items:M(h),"onUpdate:items":l[0]||(l[0]=P=>qe(h)?h.value=P:null),meta:M(m),"onUpdate:meta":l[1]||(l[1]=P=>qe(m)?m.value=P:null),transform:"transformPersons"in f?f.transformPersons:M(Nt)},{default:dt(()=>[S("div",In,[(T(!0),k(Q,null,G(M(h),P=>(T(),k("label",{key:P.id,class:"flex cursor-pointer items-center gap-4 py-4 transition-colors hover:bg-secondary/10"},[S("input",{type:"checkbox",checked:M(c).has(P.id),class:"h-5 w-5 shrink-0 rounded-sm border-secondary text-primary",onChange:$=>I(P.id)},null,40,Sn),S("div",Nn,[P.profileImageURL?(T(),k("img",{key:0,src:P.profileImageURL,alt:L(P),class:"h-full w-full object-cover"},null,8,Pn)):(T(),k("div",Mn,[j(B,{class:"size-6"})]))]),S("span",Tn,U(L(P)),1)]))),128))])]),_:1},8,["items","meta","transform"])]),S("div",kn,[S("div",Ln,[S("h2",xn,U(M(n)("printBadges.selectedBadges",{count:M(c).size})),1),S("button",{disabled:M(c).size===0,class:"rounded-md bg-primary px-6 py-2 text-sm font-medium text-white disabled:opacity-50",onClick:w},U(M(n)("printBadges.print")),9,Un)]),S("div",qn,[(T(!0),k(Q,null,G(M(R),P=>(T(),k("div",{key:P.id,class:"flex items-center justify-between border-b border-secondary py-3"},[S("div",Dn,[S("div",Fn,[P.profileImageURL?(T(),k("img",{key:0,src:P.profileImageURL,alt:L(P),class:"h-full w-full object-cover"},null,8,zn)):(T(),k("div",$n,[j(B,{class:"size-5"})]))]),S("span",jn,U(L(P)),1)]),S("button",{class:"p-1 text-surface hover:text-primary",onClick:$=>x(P.id)},[j(E,{class:"h-5 w-5"})],8,Vn)]))),128)),M(c).size===0?(T(),k("p",Hn,U(M(n)("printBadges.noBadgeSelected")),1)):O("",!0)])])]),(T(),Mt(kt,{to:"body"},[M(_)?(T(),k("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 print:hidden",onClick:l[5]||(l[5]=Tt(P=>_.value=!1,["self"]))},[S("div",Kn,[S("h3",Jn,U(M(n)("printBadges.pageFormat")),1),S("div",On,[S("button",{class:"rounded-md border border-neutral-300 px-4 py-3 text-left transition-colors hover:bg-neutral-50",onClick:l[2]||(l[2]=P=>C("A4"))},[...l[6]||(l[6]=[S("span",{class:"font-medium"},"A4",-1),S("span",{class:"ml-2 text-sm text-neutral-500"},"210 Ã 297 mm",-1)])]),S("button",{class:"rounded-md border border-neutral-300 px-4 py-3 text-left transition-colors hover:bg-neutral-50",onClick:l[3]||(l[3]=P=>C("Letter"))},[...l[7]||(l[7]=[S("span",{class:"font-medium"},"US Letter",-1),S("span",{class:"ml-2 text-sm text-neutral-500"},"216 Ã 279 mm",-1)])])]),S("button",{class:"mt-4 w-full text-center text-sm text-neutral-500 hover:text-neutral-700",onClick:l[4]||(l[4]=P=>_.value=!1)},U(M(n)("printBadges.cancel")),1)])])):O("",!0)])),S("div",Yn,[(T(!0),k(Q,null,G(M(R),P=>(T(),k("div",{key:`badge-${P.id}`,class:"badge-page"},[S("div",Qn,[l[8]||(l[8]=S("div",{class:"badge-cell"},null,-1)),l[9]||(l[9]=S("div",{class:"badge-cell"},null,-1)),S("div",Gn,[j(y,{person:P},null,8,["person"])]),S("div",Wn,[j(A,{person:P,"event-logo-url":M(d)?.profileImageURL},null,8,["person","event-logo-url"])])])]))),128))])])}}});
8export{er 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.