@passly-nl/data 1.0.0-rc.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +39 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/adapter/EventAdapter.ts +1 -0
- package/src/adapter/PublicShopAdapter.ts +1 -0
- package/src/adapter/ServiceAdapter.ts +13 -0
- package/src/adapter/index.ts +1 -0
- package/src/dto/event/ShopDto.ts +12 -2
- package/src/dto/index.ts +1 -0
- package/src/dto/publicShop/PublicShopDto.ts +12 -2
- package/src/dto/service/ServiceInfoDto.ts +38 -0
- package/src/dto/service/index.ts +1 -0
- package/src/service/MerchantShopService.ts +35 -0
- package/src/service/MerchantShopsService.ts +17 -0
- package/src/service/PublicShopService.ts +22 -2
- package/src/service/ServicesService.ts +10 -0
- package/src/service/index.ts +2 -0
- package/src/types/event.ts +5 -0
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{BaseService as e,QueryString as t,adapter as n,dto as r}from"@basmilius/http-client";import{DateTime as i}from"luxon";function a(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let o=class{get id(){return this.#e}set id(e){this.#e=e}get label(){return this.#t}set label(e){this.#t=e}get street(){return this.#n}set street(e){this.#n=e}get number(){return this.#r}set number(e){this.#r=e}get postalCode(){return this.#i}set postalCode(e){this.#i=e}get city(){return this.#a}set city(e){this.#a=e}get country(){return this.#o}set country(e){this.#o=e}get formatted(){return this.#s}set formatted(e){this.#s=e}#e;#t;#n;#r;#i;#a;#o;#s;constructor(e,t,n,r,i,a,o,s){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s}};o=a([r],o);let s=class{get enabled(){return this.#e}set enabled(e){this.#e=e}get secret(){return this.#t}set secret(e){this.#t=e}get qr(){return this.#n}set qr(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};s=a([r],s);let c=class{get id(){return this.#e}set id(e){this.#e=e}get email(){return this.#t}set email(e){this.#t=e}get firstName(){return this.#n}set firstName(e){this.#n=e}get lastName(){return this.#r}set lastName(e){this.#r=e}get fullName(){return this.#i}set fullName(e){this.#i=e}get initials(){return this.#a}set initials(e){this.#a=e}get phoneNumber(){return this.#o}set phoneNumber(e){this.#o=e}get isOnline(){return this.#s}set isOnline(e){this.#s=e}get picture(){return this.#c}set picture(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};c=a([r],c);let l=class{get token(){return this.#e}set token(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get browser(){return this.#n}set browser(e){this.#n=e}get operatingSystem(){return this.#r}set operatingSystem(e){this.#r=e}get createdOn(){return this.#i}set createdOn(e){this.#i=e}get expiresOn(){return this.#a}set expiresOn(e){this.#a=e}get realtimeChannel(){return this.#o}set realtimeChannel(e){this.#o=e}get user(){return this.#s}set user(e){this.#s=e}#e;#t;#n;#r;#i;#a;#o;#s;constructor(e,t,n,r,i,a,o,s){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s}};l=a([r],l);let u=class{get message(){return this.#e}set message(e){this.#e=e}get status(){return this.#t}set status(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};u=a([r],u);let d=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get secret(){return this.#n}set secret(e){this.#n=e}get checkinCount(){return this.#r}set checkinCount(e){this.#r=e}get checkoutCount(){return this.#i}set checkoutCount(e){this.#i=e}get creator(){return this.#a}set creator(e){this.#a=e}get event(){return this.#o}set event(e){this.#o=e}get merchant(){return this.#s}set merchant(e){this.#s=e}#e;#t;#n;#r;#i;#a;#o;#s;constructor(e,t,n,r,i,a,o,s){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s}};d=a([r],d);let f=class{get hasProducts(){return this.#e}set hasProducts(e){this.#e=e}get hasShops(){return this.#t}set hasShops(e){this.#t=e}get hasShopsWithProducts(){return this.#n}set hasShopsWithProducts(e){this.#n=e}get isPublishable(){return this.#r}set isPublishable(e){this.#r=e}get isPublished(){return this.#i}set isPublished(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};f=a([r],f);let p=class{get guests(){return this.#e}set guests(e){this.#e=e}get orders(){return this.#t}set orders(e){this.#t=e}get tickets(){return this.#n}set tickets(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};p=a([r],p);let m=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get startsOn(){return this.#r}set startsOn(e){this.#r=e}get endsOn(){return this.#i}set endsOn(e){this.#i=e}get minimumAge(){return this.#a}set minimumAge(e){this.#a=e}get status(){return this.#o}set status(e){this.#o=e}get address(){return this.#s}set address(e){this.#s=e}get headerFile(){return this.#c}set headerFile(e){this.#c=e}get createdOn(){return this.#l}set createdOn(e){this.#l=e}get updatedOn(){return this.#u}set updatedOn(e){this.#u=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;constructor(e,t,n,r,i,a,o,s,c,l,u){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u}};m=a([r],m);let ee=class{get attended(){return this.#e}set attended(e){this.#e=e}get expected(){return this.#t}set expected(e){this.#t=e}get rate(){return this.#n}set rate(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};ee=a([r],ee);let te=class{get acquired(){return this.#e}set acquired(e){this.#e=e}get averageTickets(){return this.#t}set averageTickets(e){this.#t=e}get doubting(){return this.#n}set doubting(e){this.#n=e}get returning(){return this.#r}set returning(e){this.#r=e}get total(){return this.#i}set total(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};te=a([r],te);let ne=class{get platformCost(){return this.#e}set platformCost(e){this.#e=e}get revenue(){return this.#t}set revenue(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};ne=a([r],ne);let re=class{get chart(){return this.#e}set chart(e){this.#e=e}get totals(){return this.#t}set totals(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};re=a([r],re);let ie=class{get fulfilled(){return this.#e}set fulfilled(e){this.#e=e}get interrupted(){return this.#t}set interrupted(e){this.#t=e}get pending(){return this.#n}set pending(e){this.#n=e}get total(){return this.#r}set total(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ie=a([r],ie);let ae=class{get appTeams(){return this.#e}set appTeams(e){this.#e=e}get chart(){return this.#t}set chart(e){this.#t=e}get totals(){return this.#n}set totals(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};ae=a([r],ae);let oe=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get scans(){return this.#n}set scans(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};oe=a([r],oe);let se=class{get total(){return this.#e}set total(e){this.#e=e}get checkins(){return this.#t}set checkins(e){this.#t=e}get checkouts(){return this.#n}set checkouts(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};se=a([r],se);let ce=class{get swaps(){return this.#e}set swaps(e){this.#e=e}get tickets(){return this.#t}set tickets(e){this.#t=e}get rate(){return this.#n}set rate(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};ce=a([r],ce);let le=class{get backgroundColor(){return this.#e}set backgroundColor(e){this.#e=e}get foregroundColor(){return this.#t}set foregroundColor(e){this.#t=e}get primaryColor(){return this.#n}set primaryColor(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};le=a([r],le);let ue=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get isPublished(){return this.#n}set isPublished(e){this.#n=e}get password(){return this.#r}set password(e){this.#r=e}get startsOn(){return this.#i}set startsOn(e){this.#i=e}get endsOn(){return this.#a}set endsOn(e){this.#a=e}get fieldAddress(){return this.#o}set fieldAddress(e){this.#o=e}get fieldBirthdate(){return this.#s}set fieldBirthdate(e){this.#s=e}get fieldGender(){return this.#c}set fieldGender(e){this.#c=e}get fieldPhoneNumber(){return this.#l}set fieldPhoneNumber(e){this.#l=e}get status(){return this.#u}set status(e){this.#u=e}get design(){return this.#d}set design(e){this.#d=e}get event(){return this.#f}set event(e){this.#f=e}get merchant(){return this.#p}set merchant(e){this.#p=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f,this.#p=p}};ue=a([r],ue);var h=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};let de=class extends h{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}get url(){return this.#n}set url(e){this.#n=e}#e;#t;#n;constructor(e,t,n,r){super(e,`button`),this.#e=t,this.#t=n,this.#n=r}};de=a([r],de);let fe=class extends h{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`divider`),this.#e=t,this.#t=n}};fe=a([r],fe);let pe=class extends h{get headingLevel(){return this.#e}set headingLevel(e){this.#e=e}get title(){return this.#t}set title(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`heading`),this.#e=t,this.#t=n}};pe=a([r],pe);let me=class extends h{get icon(){return this.#e}set icon(e){this.#e=e}get noticeType(){return this.#t}set noticeType(e){this.#t=e}get title(){return this.#n}set title(e){this.#n=e}get text(){return this.#r}set text(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r,i){super(e,`notice`),this.#e=t,this.#t=n,this.#n=r,this.#r=i}};me=a([r],me);let he=class extends h{get product(){return this.#e}set product(e){this.#e=e}#e;constructor(e,t){super(e,`product`),this.#e=t}};he=a([r],he);let g=class extends h{get text(){return this.#e}set text(e){this.#e=e}#e;constructor(e,t){super(e,`text`),this.#e=t}};g=a([r],g);let ge=class{get total(){return this.#e}set total(e){this.#e=e}get sold(){return this.#t}set sold(e){this.#t=e}get remaining(){return this.#n}set remaining(e){this.#n=e}get items(){return this.#r}set items(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ge=a([r],ge);let _e=class{get pool(){return this.#e}set pool(e){this.#e=e}get product(){return this.#t}set product(e){this.#t=e}get remaining(){return this.#n}set remaining(e){this.#n=e}get sold(){return this.#r}set sold(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};_e=a([r],_e);let ve=class{get id(){return this.#e}set id(e){this.#e=e}get eventId(){return this.#t}set eventId(e){this.#t=e}get merchantId(){return this.#n}set merchantId(e){this.#n=e}get name(){return this.#r}set name(e){this.#r=e}get remainingStock(){return this.#i}set remainingStock(e){this.#i=e}get stock(){return this.#a}set stock(e){this.#a=e}get isShared(){return this.#o}set isShared(e){this.#o=e}get productNames(){return this.#s}set productNames(e){this.#s=e}get createdOn(){return this.#c}set createdOn(e){this.#c=e}get updatedOn(){return this.#l}set updatedOn(e){this.#l=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;constructor(e,t,n,r,i,a,o,s,c,l){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l}};ve=a([r],ve);let ye=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get product(){return this.#n}set product(e){this.#n=e}get productId(){return this.#r}set productId(e){this.#r=e}get variant(){return this.#i}set variant(e){this.#i=e}get visual(){return this.#a}set visual(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};ye=a([r],ye);let be=class{get id(){return this.#e}set id(e){this.#e=e}get url(){return this.#t}set url(e){this.#t=e}get variants(){return this.#n}set variants(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};be=a([r],be);let xe=class{get estimatedPaymentCost(){return this.#e}set estimatedPaymentCost(e){this.#e=e}get orders(){return this.#t}set orders(e){this.#t=e}get platformCost(){return this.#n}set platformCost(e){this.#n=e}get revenue(){return this.#r}set revenue(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};xe=a([r],xe);let Se=class{get id(){return this.#e}set id(e){this.#e=e}get number(){return this.#t}set number(e){this.#t=e}get sequence(){return this.#n}set sequence(e){this.#n=e}get status(){return this.#r}set status(e){this.#r=e}get year(){return this.#i}set year(e){this.#i=e}get total(){return this.#a}set total(e){this.#a=e}get lines(){return this.#o}set lines(e){this.#o=e}get createdOn(){return this.#s}set createdOn(e){this.#s=e}get updatedOn(){return this.#c}set updatedOn(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};Se=a([r],Se);let Ce=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get cost(){return this.#n}set cost(e){this.#n=e}get createdOn(){return this.#r}set createdOn(e){this.#r=e}get updatedOn(){return this.#i}set updatedOn(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};Ce=a([r],Ce);let we=class{get id(){return this.#e}set id(e){this.#e=e}get startsOn(){return this.#t}set startsOn(e){this.#t=e}get endsOn(){return this.#n}set endsOn(e){this.#n=e}get fee(){return this.#r}set fee(e){this.#r=e}get remark(){return this.#i}set remark(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};we=a([r],we);let Te=class{get id(){return this.#e}set id(e){this.#e=e}get merchantId(){return this.#t}set merchantId(e){this.#t=e}get userId(){return this.#n}set userId(e){this.#n=e}get claims(){return this.#r}set claims(e){this.#r=e}get isNewUser(){return this.#i}set isNewUser(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}get updatedOn(){return this.#o}set updatedOn(e){this.#o=e}get merchant(){return this.#s}set merchant(e){this.#s=e}get user(){return this.#c}set user(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};Te=a([r],Te);let Ee=class{get revenue(){return this.#e}set revenue(e){this.#e=e}get tickets(){return this.#t}set tickets(e){this.#t=e}get events(){return this.#n}set events(e){this.#n=e}get tasks(){return this.#r}set tasks(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};Ee=a([r],Ee);let De=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get headerFile(){return this.#r}set headerFile(e){this.#r=e}get status(){return this.#i}set status(e){this.#i=e}get startsOn(){return this.#a}set startsOn(e){this.#a=e}get ticketsSold(){return this.#o}set ticketsSold(e){this.#o=e}get ticketsTotal(){return this.#s}set ticketsTotal(e){this.#s=e}get sellThroughRate(){return this.#c}set sellThroughRate(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};De=a([r],De);let Oe=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get email(){return this.#n}set email(e){this.#n=e}get phoneNumber(){return this.#r}set phoneNumber(e){this.#r=e}get url(){return this.#i}set url(e){this.#i=e}get chamberOfCommerceNumber(){return this.#a}set chamberOfCommerceNumber(e){this.#a=e}get vatNumber(){return this.#o}set vatNumber(e){this.#o=e}get currency(){return this.#s}set currency(e){this.#s=e}get address(){return this.#c}set address(e){this.#c=e}get currentContract(){return this.#l}set currentContract(e){this.#l=e}get logo(){return this.#u}set logo(e){this.#u=e}get createdOn(){return this.#d}set createdOn(e){this.#d=e}get updatedOn(){return this.#f}set updatedOn(e){this.#f=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f}};Oe=a([r],Oe);let ke=class{get isManager(){return this.#e}set isManager(e){this.#e=e}get createdOn(){return this.#t}set createdOn(e){this.#t=e}get updatedOn(){return this.#n}set updatedOn(e){this.#n=e}get user(){return this.#r}set user(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ke=a([r],ke);let _=class{get id(){return this.#e}set id(e){this.#e=e}get vatNumber(){return this.#t}set vatNumber(e){this.#t=e}get name(){return this.#n}set name(e){this.#n=e}get address(){return this.#r}set address(e){this.#r=e}get countryCode(){return this.#i}set countryCode(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}get updatedOn(){return this.#o}set updatedOn(e){this.#o=e}#e;#t;#n;#r;#i;#a;#o;constructor(e,t,n,r,i,a,o){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o}};_=a([r],_);let v=class{get id(){return this.#e}set id(e){this.#e=e}get firstName(){return this.#t}set firstName(e){this.#t=e}get lastName(){return this.#n}set lastName(e){this.#n=e}get email(){return this.#r}set email(e){this.#r=e}get phoneNumber(){return this.#i}set phoneNumber(e){this.#i=e}get dateOfBirth(){return this.#a}set dateOfBirth(e){this.#a=e}get gender(){return this.#o}set gender(e){this.#o=e}get orderCount(){return this.#s}set orderCount(e){this.#s=e}get fullName(){return this.#c}set fullName(e){this.#c=e}get address(){return this.#l}set address(e){this.#l=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;constructor(e,t,n,r,i,a,o,s,c,l){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l}};v=a([r],v);let y=class{get id(){return this.#e}set id(e){this.#e=e}get code(){return this.#t}set code(e){this.#t=e}get origin(){return this.#n}set origin(e){this.#n=e}get type(){return this.#r}set type(e){this.#r=e}get createdOn(){return this.#i}set createdOn(e){this.#i=e}get paymentProvider(){return this.#a}set paymentProvider(e){this.#a=e}get platformCost(){return this.#o}set platformCost(e){this.#o=e}get subTotal(){return this.#s}set subTotal(e){this.#s=e}get total(){return this.#c}set total(e){this.#c=e}get url(){return this.#l}set url(e){this.#l=e}get buyer(){return this.#u}set buyer(e){this.#u=e}get event(){return this.#d}set event(e){this.#d=e}get lines(){return this.#f}set lines(e){this.#f=e}get shop(){return this.#p}set shop(e){this.#p=e}get transaction(){return this.#m}set transaction(e){this.#m=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f,this.#p=p,this.#m=m}};y=a([r],y);let b=class{get id(){return this.#e}set id(e){this.#e=e}get price(){return this.#t}set price(e){this.#t=e}get quantity(){return this.#n}set quantity(e){this.#n=e}get product(){return this.#r}set product(e){this.#r=e}get subTotal(){return this.#i}set subTotal(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}get updatedOn(){return this.#o}set updatedOn(e){this.#o=e}#e;#t;#n;#r;#i;#a;#o;constructor(e,t,n,r,i,a,o){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o}};b=a([r],b);let Ae=class{get name(){return this.#e}set name(e){this.#e=e}get url(){return this.#t}set url(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};Ae=a([r],Ae);let x=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get image(){return this.#r}set image(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};x=a([r],x);let S=class{get currencyCode(){return this.#e}set currencyCode(e){this.#e=e}get currencyDecimals(){return this.#t}set currencyDecimals(e){this.#t=e}get currencySign(){return this.#n}set currencySign(e){this.#n=e}get decimal(){return this.#r}set decimal(e){this.#r=e}get formatted(){return this.#i}set formatted(e){this.#i=e}get cents(){return this.#a}set cents(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};S=a([r],S);let C=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get image(){return this.#n}set image(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};C=a([r],C);let je=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get methods(){return this.#n}set methods(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};je=a([r],je);let Me=class{get id(){return this.#e}set id(e){this.#e=e}get description(){return this.#t}set description(e){this.#t=e}get status(){return this.#n}set status(e){this.#n=e}get cost(){return this.#r}set cost(e){this.#r=e}get metadata(){return this.#i}set metadata(e){this.#i=e}get externalCheckoutUrl(){return this.#a}set externalCheckoutUrl(e){this.#a=e}get externalDetails(){return this.#o}set externalDetails(e){this.#o=e}get order(){return this.#s}set order(e){this.#s=e}get paymentMethod(){return this.#c}set paymentMethod(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};Me=a([r],Me);let Ne=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get name(){return this.#n}set name(e){this.#n=e}get description(){return this.#r}set description(e){this.#r=e}get price(){return this.#i}set price(e){this.#i=e}get maxQuantity(){return this.#a}set maxQuantity(e){this.#a=e}get isActive(){return this.#o}set isActive(e){this.#o=e}get isSwappable(){return this.#s}set isSwappable(e){this.#s=e}get remainingStock(){return this.#c}set remainingStock(e){this.#c=e}get stock(){return this.#l}set stock(e){this.#l=e}get image(){return this.#u}set image(e){this.#u=e}get images(){return this.#d}set images(e){this.#d=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d}};Ne=a([r],Ne);let Pe=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get image(){return this.#n}set image(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};Pe=a([r],Pe);let Fe=class{get productId(){return this.#e}set productId(e){this.#e=e}get quantity(){return this.#t}set quantity(e){this.#t=e}get timeSlotId(){return this.#n}set timeSlotId(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};Fe=a([r],Fe);let Ie=class{get backgroundColor(){return this.#e}set backgroundColor(e){this.#e=e}get foregroundColor(){return this.#t}set foregroundColor(e){this.#t=e}get primaryColor(){return this.#n}set primaryColor(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};Ie=a([r],Ie);let Le=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get startsOn(){return this.#n}set startsOn(e){this.#n=e}get endsOn(){return this.#r}set endsOn(e){this.#r=e}get fieldAddress(){return this.#i}set fieldAddress(e){this.#i=e}get fieldBirthdate(){return this.#a}set fieldBirthdate(e){this.#a=e}get fieldGender(){return this.#o}set fieldGender(e){this.#o=e}get fieldPhoneNumber(){return this.#s}set fieldPhoneNumber(e){this.#s=e}get design(){return this.#c}set design(e){this.#c=e}get elements(){return this.#l}set elements(e){this.#l=e}get event(){return this.#u}set event(e){this.#u=e}get merchant(){return this.#d}set merchant(e){this.#d=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d}};Le=a([r],Le);var w=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};let Re=class extends w{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}get url(){return this.#n}set url(e){this.#n=e}#e;#t;#n;constructor(e,t,n,r){super(e,`button`),this.#e=t,this.#t=n,this.#n=r}};Re=a([r],Re);let ze=class extends w{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`divider`),this.#e=t,this.#t=n}};ze=a([r],ze);let Be=class extends w{get headingLevel(){return this.#e}set headingLevel(e){this.#e=e}get title(){return this.#t}set title(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`heading`),this.#e=t,this.#t=n}};Be=a([r],Be);let Ve=class extends w{get icon(){return this.#e}set icon(e){this.#e=e}get noticeType(){return this.#t}set noticeType(e){this.#t=e}get title(){return this.#n}set title(e){this.#n=e}get text(){return this.#r}set text(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r,i){super(e,`notice`),this.#e=t,this.#t=n,this.#n=r,this.#r=i}};Ve=a([r],Ve);let He=class extends w{get product(){return this.#e}set product(e){this.#e=e}#e;constructor(e,t){super(e,`product`),this.#e=t}};He=a([r],He);let Ue=class extends w{get text(){return this.#e}set text(e){this.#e=e}#e;constructor(e,t){super(e,`text`),this.#e=t}};Ue=a([r],Ue);let We=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get status(){return this.#n}set status(e){this.#n=e}get address(){return this.#r}set address(e){this.#r=e}get headerFile(){return this.#i}set headerFile(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};We=a([r],We);let Ge=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};Ge=a([r],Ge);let Ke=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get name(){return this.#n}set name(e){this.#n=e}get description(){return this.#r}set description(e){this.#r=e}get price(){return this.#i}set price(e){this.#i=e}get maxQuantity(){return this.#a}set maxQuantity(e){this.#a=e}get isActive(){return this.#o}set isActive(e){this.#o=e}get isTimeslotted(){return this.#s}set isTimeslotted(e){this.#s=e}get timeSlots(){return this.#c}set timeSlots(e){this.#c=e}get image(){return this.#l}set image(e){this.#l=e}get images(){return this.#u}set images(e){this.#u=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;constructor(e,t,n,r,i,a,o,s,c,l,u){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u}};Ke=a([r],Ke);let qe=class{get id(){return this.#e}set id(e){this.#e=e}get createdOn(){return this.#t}set createdOn(e){this.#t=e}get expiresOn(){return this.#n}set expiresOn(e){this.#n=e}get products(){return this.#r}set products(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};qe=a([r],qe);let Je=class{get product(){return this.#e}set product(e){this.#e=e}get quantity(){return this.#t}set quantity(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};Je=a([r],Je);let Ye=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get image(){return this.#r}set image(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};Ye=a([r],Ye);let Xe=class{get id(){return this.#e}set id(e){this.#e=e}get label(){return this.#t}set label(e){this.#t=e}get fromTime(){return this.#n}set fromTime(e){this.#n=e}get toTime(){return this.#r}set toTime(e){this.#r=e}get maxQuantity(){return this.#i}set maxQuantity(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};Xe=a([r],Xe);let Ze=class{get id(){return this.#e}set id(e){this.#e=e}get createdOn(){return this.#t}set createdOn(e){this.#t=e}get expiresOn(){return this.#n}set expiresOn(e){this.#n=e}get isExpired(){return this.#r}set isExpired(e){this.#r=e}get items(){return this.#i}set items(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};Ze=a([r],Ze);let Qe=class{get quantity(){return this.#e}set quantity(e){this.#e=e}get product(){return this.#t}set product(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};Qe=a([r],Qe);let $e=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get image(){return this.#r}set image(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};$e=a([r],$e);let et=class{get id(){return this.#e}set id(e){this.#e=e}get identifier(){return this.#t}set identifier(e){this.#t=e}get hits(){return this.#n}set hits(e){this.#n=e}get link(){return this.#r}set link(e){this.#r=e}get target(){return this.#i}set target(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};et=a([r],et);let tt=class{get buyers(){return this.#e}set buyers(e){this.#e=e}get newBuyers(){return this.#t}set newBuyers(e){this.#t=e}get retentionRate(){return this.#n}set retentionRate(e){this.#n=e}get totalBuyers(){return this.#r}set totalBuyers(e){this.#r=e}get lifetimeValuePerBuyer(){return this.#i}set lifetimeValuePerBuyer(e){this.#i=e}get averageTicketsPerBuyer(){return this.#a}set averageTicketsPerBuyer(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};tt=a([r],tt);let nt=class{get ranking(){return this.#e}set ranking(e){this.#e=e}get buyer(){return this.#t}set buyer(e){this.#t=e}get orderCount(){return this.#n}set orderCount(e){this.#n=e}get totalSpend(){return this.#r}set totalSpend(e){this.#r=e}get eventsAttended(){return this.#i}set eventsAttended(e){this.#i=e}get averageOrderValue(){return this.#a}set averageOrderValue(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};nt=a([r],nt);let rt=class{get totalEvents(){return this.#e}set totalEvents(e){this.#e=e}get activeEvents(){return this.#t}set activeEvents(e){this.#t=e}get averageRevenuePerEvent(){return this.#n}set averageRevenuePerEvent(e){this.#n=e}get averageTicketsPerEvent(){return this.#r}set averageTicketsPerEvent(e){this.#r=e}get averageSellThroughRate(){return this.#i}set averageSellThroughRate(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};rt=a([r],rt);let it=class{get period(){return this.#e}set period(e){this.#e=e}get revenue(){return this.#t}set revenue(e){this.#t=e}get orders(){return this.#n}set orders(e){this.#n=e}get tickets(){return this.#r}set tickets(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};it=a([r],it);let T=class{get events(){return this.#e}set events(e){this.#e=e}get summary(){return this.#t}set summary(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};T=a([r],T);let at=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get startsOn(){return this.#n}set startsOn(e){this.#n=e}get endsOn(){return this.#r}set endsOn(e){this.#r=e}get headerFile(){return this.#i}set headerFile(e){this.#i=e}get status(){return this.#a}set status(e){this.#a=e}get revenue(){return this.#o}set revenue(e){this.#o=e}get ticketsSold(){return this.#s}set ticketsSold(e){this.#s=e}get ticketsTotal(){return this.#c}set ticketsTotal(e){this.#c=e}get sellThroughRate(){return this.#l}set sellThroughRate(e){this.#l=e}get attendanceRate(){return this.#u}set attendanceRate(e){this.#u=e}get attendedCount(){return this.#d}set attendedCount(e){this.#d=e}get ordersCount(){return this.#f}set ordersCount(e){this.#f=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f}};at=a([r],at);let ot=class{get totalRevenue(){return this.#e}set totalRevenue(e){this.#e=e}get totalTicketsSold(){return this.#t}set totalTicketsSold(e){this.#t=e}get totalTicketsCapacity(){return this.#n}set totalTicketsCapacity(e){this.#n=e}get averageSellThroughRate(){return this.#r}set averageSellThroughRate(e){this.#r=e}get averageAttendanceRate(){return this.#i}set averageAttendanceRate(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};ot=a([r],ot);let st=class{get totalRevenue(){return this.#e}set totalRevenue(e){this.#e=e}get totalTicketsSold(){return this.#t}set totalTicketsSold(e){this.#t=e}get totalEventsHosted(){return this.#n}set totalEventsHosted(e){this.#n=e}get totalCustomers(){return this.#r}set totalCustomers(e){this.#r=e}get averageOrderValue(){return this.#i}set averageOrderValue(e){this.#i=e}get averageAttendanceRate(){return this.#a}set averageAttendanceRate(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};st=a([r],st);let ct=class{get active(){return this.#e}set active(e){this.#e=e}get concluded(){return this.#t}set concluded(e){this.#t=e}get total(){return this.#n}set total(e){this.#n=e}get upcoming(){return this.#r}set upcoming(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ct=a([r],ct);let lt=class{get lifetime(){return this.#e}set lifetime(e){this.#e=e}get trend(){return this.#t}set trend(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};lt=a([r],lt);let ut=class{get lifetime(){return this.#e}set lifetime(e){this.#e=e}get trend(){return this.#t}set trend(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};ut=a([r],ut);let dt=class{get totalRevenue(){return this.#e}set totalRevenue(e){this.#e=e}get totalPlatformCost(){return this.#t}set totalPlatformCost(e){this.#t=e}get netRevenue(){return this.#n}set netRevenue(e){this.#n=e}get averageOrderValue(){return this.#r}set averageOrderValue(e){this.#r=e}get averageRevenuePerTicket(){return this.#i}set averageRevenuePerTicket(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};dt=a([r],dt);let ft=class{get averageTimeToPurchase(){return this.#e}set averageTimeToPurchase(e){this.#e=e}get cartAbandonmentRate(){return this.#t}set cartAbandonmentRate(e){this.#t=e}get peakBuyingCount(){return this.#n}set peakBuyingCount(e){this.#n=e}get peakBuyingTime(){return this.#r}set peakBuyingTime(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ft=a([r],ft);let pt=class{get successRate(){return this.#e}set successRate(e){this.#e=e}get failedRate(){return this.#t}set failedRate(e){this.#t=e}get reasons(){return this.#n}set reasons(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};pt=a([r],pt);let mt=class{get current(){return this.#e}set current(e){this.#e=e}get previous(){return this.#t}set previous(e){this.#t=e}get growthRate(){return this.#n}set growthRate(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};mt=a([r],mt);let ht=class{get id(){return this.#e}set id(e){this.#e=e}get sequence(){return this.#t}set sequence(e){this.#t=e}get code(){return this.#n}set code(e){this.#n=e}get status(){return this.#r}set status(e){this.#r=e}get validity(){return this.#i}set validity(e){this.#i=e}get buyer(){return this.#a}set buyer(e){this.#a=e}get event(){return this.#o}set event(e){this.#o=e}get holder(){return this.#s}set holder(e){this.#s=e}get order(){return this.#c}set order(e){this.#c=e}get product(){return this.#l}set product(e){this.#l=e}get createdOn(){return this.#u}set createdOn(e){this.#u=e}get updatedOn(){return this.#d}set updatedOn(e){this.#d=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d}};ht=a([r],ht);let E=class{static parseAddress(e){return new o(e.id,e.label,e.street,e.number,e.postal_code,e.city,e.country,e.formatted)}};E=a([n],E);function gt(e){return typeof e==`string`&&e.trim().length===0||Array.isArray(e)&&e.length===0?null:e}function _t(e){return new Blob([JSON.stringify(e)],{type:`application/json`})}function D(e,t){return e==null?null:t(e)}function O(e,t){return e==null?null:e.map(t)}var vt;let k=vt=class{static parseTotpState(e){return new s(e.enabled,e.secret,e.qr)}static parseUser(e){return new c(e.id,e.email,e.first_name,e.last_name,e.full_name,e.initials,e.phone_number,e.is_online,D(e.picture,F.parsePicture))}static parseUserToken(e){return new l(e.token,e.type,e.browser,e.operating_system,M.parseDateTime(e.created_on),M.parseDateTime(e.expires_on),e.realtime_channel,D(e.user,vt.parseUser))}};k=vt=a([n],k);let A=class{static parseBuyer(e){return new v(e.id,e.first_name,e.last_name,e.email,e.phone_number,D(e.date_of_birth,M.parseDateTime),e.gender,e.order_count??-1,e.full_name,D(e.address,E.parseAddress))}};A=a([n],A);let j=class{static parseStatusResponse(e){return new u(e.message,e.status)}};j=a([n],j);let M=class{static parseDateTime(e){return i.fromISO(e,{zone:`UTC`}).setZone(`Europe/Amsterdam`)}static parseDateTimeFromMonth(e){return i.fromFormat(e,`yyyy-MM`,{zone:`UTC`}).setZone(`Europe/Amsterdam`)}};M=a([n],M);var N;let P=N=class{static parseAppTeam(e){return new d(e.id,e.name,e.secret,e.checkin_count,e.checkout_count,D(e.creator,k.parseUser),D(e.event,N.parseEvent),D(e.merchant,R.parseMerchant))}static parseEvent(e){return new m(e.id,e.name,e.description,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),e.minimum_age,e.status,D(e.address,E.parseAddress),D(e.header_file,F.parsePicture),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseEventAvailability(e){return new f(e.has_products,e.has_shops,e.has_shops_with_products,e.is_publishable,e.is_published)}static parseEventCounters(e){return new p(e.guests,e.orders,e.tickets)}static parseShop(e){return new ue(e.id,e.name,e.is_published,e.password,D(e.starts_on,M.parseDateTime),D(e.ends_on,M.parseDateTime),e.field_address,e.field_birthdate,e.field_gender,e.field_phone_number,e.status,D(e.design,N.parseShopDesign),D(e.event,N.parseEvent),D(e.merchant,R.parseMerchant))}static parseShopDesign(e){return new le(e.background_color,e.foreground_color,e.primary_color)}static parseShopElement(e){switch(e.type){case`button`:return new de(e.id,e.icon,e.text,e.url);case`divider`:return new fe(e.id,e.icon,e.text);case`heading`:return new pe(e.id,e.heading_level,e.title);case`notice`:return new me(e.id,e.icon,e.notice_type,e.title,e.text);case`product`:return new he(e.id,W.parseProduct(e.product));case`text`:return new g(e.id,e.text)}return new g(`unknown`,`Unknown element type.`)}static parseStockOverview(e){return new ge(e.total,e.sold,e.remaining,e.items.map(N.parseStockOverviewItem))}static parseStockOverviewItem(e){return new _e(N.parseStockPool(e.pool),W.parseProduct(e.product),e.remaining,e.sold)}static parseStockPool(e){return new ve(e.id,e.event_id,e.merchant_id,e.name,e.remaining_stock,e.stock,e.is_shared,e.product_names??[],M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseTicketTemplate(e){return new ye(e.id,e.name,D(e.product,W.parseProduct),e.product_id,e.variant,D(e.visual,F.parsePicture))}static parseEventStatisticsAttendance(e){return new ee(e.attended,e.expected,e.rate)}static parseEventStatisticsBuyerTotals(e){return new te(e.acquired,e.average_tickets,e.doubting,e.returning,e.total)}static parseEventStatisticsFinancial(e){return new ne(U.parseCost(e.platform_cost),U.parseCost(e.revenue))}static parseEventStatisticsOrders(e){return new re(e.chart,N.parseEventStatisticsOrderTotals(e.totals))}static parseEventStatisticsOrderTotals(e){return new ie(e.fulfilled,e.interrupted,e.pending,e.total)}static parseEventStatisticsScans(e){return new ae(e.app_teams.map(N.parseEventStatisticsScansPerAppTeam),e.chart,N.parseEventStatisticsScanTotals(e.totals))}static parseEventStatisticsScansPerAppTeam(e){return new oe(e.id,e.name,e.scans)}static parseEventStatisticsScanTotals(e){return new se(e.total,e.checkins,e.checkouts)}static parseEventStatisticsSwapTotals(e){return new ce(e.swaps,e.tickets,e.rate)}};P=N=a([n],P);let F=class{static parsePicture(e){return new be(e.id,e.url,e.variants)}};F=a([n],F);var yt;let I=yt=class{static parseFinanceOverview(e){return new xe(U.parseCost(e.estimated_payment_cost),e.orders,U.parseCost(e.platform_cost),U.parseCost(e.revenue))}static parseInvoice(e){return new Se(e.id,e.number,e.sequence,e.status,e.year,U.parseCost(e.total),O(e.lines,yt.parseInvoiceLine),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseInvoiceLine(e){return new Ce(e.id,e.type,U.parseCost(e.cost),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}};I=yt=a([n],I);var bt;let L=bt=class{static parseFluxFormSelectEntry(e){return`value`in e?bt.parseFluxFormSelectOption(e):bt.parseFluxFormSelectGroup(e)}static parseFluxFormSelectGroup(e){return e}static parseFluxFormSelectOption(e){return e}};L=bt=a([n],L);var xt;let R=xt=class{static parseContract(e){return new we(e.id,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),U.parseCost(e.fee),e.remark)}static parseInvitation(e){return new Te(e.id,e.merchant_id,e.user_id,e.claims,e.is_new_user,M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on),xt.parseMerchant(e.merchant),k.parseUser(e.user))}static parseMerchant(e){return new Oe(e.id,e.name,e.email,e.phone_number,e.url,e.chamber_of_commerce_number,e.vat_number,e.currency,D(e.address,E.parseAddress),D(e.current_contract,xt.parseContract),D(e.logo,F.parsePicture),D(e.created_on,M.parseDateTime),D(e.updated_on,M.parseDateTime))}static parseMerchantUser(e){return new ke(e.is_manager,M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on),k.parseUser(e.user))}static parseVatNumber(e){return new _(e.id,e.vat_number,e.name,e.address,e.country_code,M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}};R=xt=a([n],R);let z=class{static parseKeyMetrics(e){return new Ee(e.revenue,e.tickets,e.events,e.tasks)}static parseUpcomingEvent(e){return new De(e.id,e.name,e.description,D(e.header_file,F.parsePicture),e.status,M.parseDateTime(e.starts_on),e.tickets_sold,e.tickets_total,e.sell_through_rate)}};z=a([n],z);var B;let V=B=class{static parseOrder(e){return new y(e.id,e.code,e.origin,e.type,M.parseDateTime(e.created_on),D(e.payment_provider,B.parseOrderPaymentProvider),D(e.platform_cost,U.parseCost),D(e.sub_total,U.parseCost),D(e.total,U.parseCost),e.url,D(e.buyer,A.parseBuyer),D(e.event,P.parseEvent),O(e.lines,B.parseOrderLine),D(e.shop,K.parsePublicShop),D(e.transaction,U.parseTransaction))}static parseOrderLine(e){return new b(e.id,U.parseCost(e.price),e.quantity,B.parseOrderProduct(e.product),U.parseCost(e.sub_total),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseOrderPaymentProvider(e){return new Ae(e.name,e.url)}static parseOrderProduct(e){return new x(e.id,e.name,e.description,e.image)}};V=B=a([n],V);var H;let U=H=class{static parseCost(e){return new S(e.currency_code,e.currency_decimals,e.currency_sign,e.decimal,e.formatted,e.value)}static parsePaymentMethod(e){return new C(e.id,e.name,e.image)}static parsePaymentProvider(e){return new je(e.id,e.type,e.methods.map(H.parsePaymentMethod))}static parseTransaction(e){return new Me(e.id,e.description,e.status,H.parseCost(e.cost),e.metadata,e.external_checkout_url,e.external_details,D(e.order,V.parseOrder),D(e.payment_method,H.parsePaymentMethod))}};U=H=a([n],U);let W=class{static parseProduct(e){return new Ne(e.id,e.type,e.name,e.description,D(e.price,U.parseCost),e.max_quantity,e.is_active,e.is_swappable,e.remaining_stock,D(e.stock_pool,P.parseStockPool),D(e.image,F.parsePicture),O(e.images,F.parsePicture))}};W=a([n],W);let St=class{static parsePublicPaymentMethod(e){return new Pe(e.id,e.name,e.image)}};St=a([n],St);var G;let K=G=class{static parsePublicShop(e){return new Le(e.id,e.name,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),e.field_address,e.field_birthdate,e.field_gender,e.field_phone_number,D(e.design,G.parsePublicShopDesign),O(e.elements,G.parsePublicShopElement),G.parsePublicShopEvent(e.event),G.parsePublicShopMerchant(e.merchant))}static parsePublicShopDesign(e){return new Ie(e.background_color,e.foreground_color,e.primary_color)}static parsePublicShopElement(e){switch(e.type){case`button`:return new Re(e.id,e.icon,e.text,e.url);case`divider`:return new ze(e.id,e.icon,e.text);case`heading`:return new Be(e.id,e.heading_level,e.title);case`notice`:return new Ve(e.id,e.icon,e.notice_type,e.title,e.text);case`product`:return new He(e.id,G.parsePublicShopProduct(e.product));case`text`:return new Ue(e.id,e.text)}throw Error(`Unknown shop element.`)}static parsePublicShopEvent(e){return new We(e.id,e.name,e.status,E.parseAddress(e.address),D(e.header_file,F.parsePicture))}static parsePublicShopMerchant(e){return new Ge(e.id,e.name)}static parsePublicShopProduct(e){return new Ke(e.id,e.type,e.name,e.description,U.parseCost(e.price),e.max_quantity,e.is_active,e.is_timeslotted,O(e.time_slots,G.parsePublicShopTimeSlot),D(e.image,F.parsePicture),O(e.images,F.parsePicture))}static parsePublicShopReservation(e){return new qe(e.id,M.parseDateTime(e.created_on),M.parseDateTime(e.expires_on),e.products.map(G.parsePublicShopReservationProduct))}static parsePublicShopReservationProduct(e){return new Je(G.parsePublicShopReservationProductDetails(e.product),e.quantity)}static parsePublicShopReservationProductDetails(e){return new Ye(e.id,e.name,e.description,D(e.image,F.parsePicture))}static parsePublicShopTimeSlot(e){return new Xe(e.id,e.label,M.parseDateTime(e.from_time),M.parseDateTime(e.to_time),e.max_quantity)}};K=G=a([n],K);var Ct;let wt=Ct=class{static parseReservation(e){return new Ze(e.id,M.parseDateTime(e.created_on),M.parseDateTime(e.expires_on),e.is_expired,O(e.products,Ct.parseReservationItem))}static parseReservationItem(e){return new Qe(e.quantity,Ct.parseReservationProduct(e.product))}static parseReservationProduct(e){return new $e(e.id,e.name,e.description,D(e.image,F.parsePicture))}};wt=Ct=a([n],wt);let q=class{static parse(e){return new et(e.id,e.identifier,e.hits,e.link,e.target,M.parseDateTime(e.createdOn))}};q=a([n],q);let J=class{static parseTrend(e,t){return new mt(t(e.current),t(e.previous),e.growth_rate)}};J=a([n],J);let Y=class{static parseOverview(e){return new tt(J.parseTrend(e.buyers,Number),J.parseTrend(e.new_buyers,Number),J.parseTrend(e.retention_rate,Number),e.total_buyers,U.parseCost(e.lifetime_value_per_buyer),e.average_tickets_per_buyer)}static parseRanked(e){return new nt(e.ranking,A.parseBuyer(e.buyer),e.order_count,U.parseCost(e.total_spend),e.events_attended,U.parseCost(e.average_order_value))}};Y=a([n],Y);let Tt=class{static parseOverview(e){return new rt(e.total_events,e.active_events,U.parseCost(e.average_revenue_per_event),e.average_tickets_per_event,e.average_sell_through_rate)}};Tt=a([n],Tt);var X;let Z=X=class{static parseBestRevenueMonth(e){return new it(M.parseDateTimeFromMonth(e.period),U.parseCost(e.revenue),e.orders,e.tickets)}static parseEventPerformance(e){return new T(e.events.map(X.parseEventPerformanceEvent),X.parseEventPerformanceSummary(e.summary))}static parseEventPerformanceEvent(e){return new at(e.id,e.name,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),D(e.header_file,F.parsePicture),e.status,U.parseCost(e.revenue),e.tickets_sold,e.tickets_total,e.sell_through_rate,e.attendance_rate,e.attended_count,e.orders_count)}static parseEventPerformanceSummary(e){return new ot(U.parseCost(e.total_revenue),e.total_tickets_sold,e.total_tickets_capacity,e.average_sell_through_rate,e.average_attendance_rate)}static parseKPIs(e){return new st(X.parseKPIsTotalRevenue(e.total_revenue),X.parseKPIsTotalTicketsSold(e.total_tickets_sold),X.parseKPIsTotalEventsHosted(e.total_events_hosted),e.total_customers,U.parseCost(e.average_order_value),e.average_attendance_rate)}static parseKPIsTotalEventsHosted(e){return new ct(e.active,e.concluded,e.total,e.upcoming)}static parseKPIsTotalRevenue(e){return new lt(U.parseCost(e.lifetime),J.parseTrend(e.trend,U.parseCost))}static parseKPIsTotalTicketsSold(e){return new ut(e.lifetime,J.parseTrend(e.trend,Number))}};Z=X=a([n],Z);let Q=class{static parseLifetimeTotals(e){return new dt(U.parseCost(e.total_revenue),U.parseCost(e.total_platform_cost),U.parseCost(e.net_revenue),U.parseCost(e.average_order_value),U.parseCost(e.average_revenue_per_ticket))}static parsePurchaseBehavior(e){return new ft(e.average_time_to_purchase,e.cart_abandonment_rate,e.peak_buying_count,M.parseDateTime(e.peak_buying_time))}static parseTransactionSuccessRate(e){return new pt(e.success_rate,e.failed_rate,e.reasons)}};Q=a([n],Q);let $=class{static parseTicket(e){return new ht(e.id,e.sequence,e.code,e.status,e.validity,D(e.buyer,A.parseBuyer),D(e.event,P.parseEvent),D(e.holder,A.parseBuyer),D(e.order,V.parseOrder),D(e.product,W.parseProduct),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}};$=a([n],$);var Et=class extends e{async get(){return await this.request(`/auth`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseUserToken)}async getClaims(){return await this.request(`/auth/claims`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(e=>Object.values(e))}async getPasswordCompromised(){return await this.request(`/auth/password-compromised`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runDataKey(`compromised`)}async getSessions(e,n){return await this.request(`/auth/sessions`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,e).append(`limit`,n)).runPaginatedAdapter(k.parseUserToken)}async post(e,n,r){return await this.request(`/auth`).method(`post`).body({email:e,password:n,code:r}).queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseUserToken)}async deleteSession(e){return await this.request(`/auth/sessions`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({token:e}).runEmpty()}},Dt=class extends e{async get(e){return await this.request(`/invitations/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(R.parseInvitation)}async postAccept(e,n){return await this.request(`/invitations/${e}/accept`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({password:n}).runAdapter(k.parseUserToken)}async postDecline(e){return await this.request(`/invitations/${e}/decline`).method(`post`).queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},Ot=class extends e{async get(e){return await this.request(`/merchants/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(R.parseMerchant)}async getAccountManagers(e){return await this.request(`/merchants/${e}/account-managers`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(k.parseUser)}async getClaims(e){return await this.request(`/merchants/${e}/claims`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(e=>Object.values(e))}async getContract(e){return await this.request(`/merchants/${e}/contract`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(R.parseContract)}async getPaymentProviders(e){return await this.request(`/merchants/${e}/payment-providers`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(U.parsePaymentProvider)}async getVatNumber(e){return await this.request(`/merchants/${e}/vat-number`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(R.parseVatNumber)}async put(e,n){return await this.request(`/merchants/${e}`).method(`put`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({name:n.name,email:n.email,phone_number:n.phoneNumber,url:n.url,chamber_of_commerce_number:n.chamberOfCommerceNumber,vat_number:n.vatNumber,address:{label:gt(n.address.label),street:n.address.street,number:n.address.number,postal_code:n.address.postalCode,city:n.address.city,country_code:n.address.country}}).runAdapter(R.parseMerchant)}async postLogo(e,n){let r=new FormData;return r.append(`file`,n),await this.request(`/merchants/${e}/logo`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(r).runAdapter(j.parseStatusResponse)}async deleteLogo(e){return await this.request(`/merchants/${e}/logo`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},kt=class extends e{async get(){return await this.request(`/merchants`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(R.parseMerchant)}},At=class extends e{async get(e,n){return await this.request(`/merchants/${e}/buyers/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(A.parseBuyer)}async getOrder(e,n,r){return await this.request(`/merchants/${e}/buyers/${n}/orders/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async getOrders(e,n,r,i){return await this.request(`/merchants/${e}/buyers/${n}/orders`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).runPaginatedAdapter(V.parseOrder)}},jt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/buyers`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).bearerToken().runPaginatedAdapter(A.parseBuyer)}},Mt=class extends e{async getKeyMetrics(e){return await this.request(`/merchants/${e}/dashboard/key-metrics`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(z.parseKeyMetrics)}async getUpcomingEvents(e){return await this.request(`/merchants/${e}/dashboard/upcoming-events`).method(`get`).bearerToken().runArrayAdapter(z.parseUpcomingEvent)}},Nt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/app-teams/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseAppTeam)}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/app-teams/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async patch(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/app-teams/${r}`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:i.name}).runAdapter(P.parseAppTeam)}},Pt=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/app-teams`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).runPaginatedAdapter(P.parseAppTeam)}async post(e,n,r){return await this.request(`/merchants/${e}/events/${n}/app-teams`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r}).runAdapter(P.parseAppTeam)}},Ft=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(W.parseProduct)}async postImage(e,n,r,i){let a=new FormData;return a.append(`file`,i),await this.request(`/merchants/${e}/events/${n}/products/${r}/media`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(a).run()}async patch(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/products/${r}`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:i.name,description:i.description,price:i.price.cents,max_quantity:i.maxQuantity,is_swappable:i.isSwappable}).runAdapter(W.parseProduct)}async patchPause(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}/pause`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}async patchResume(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}/resume`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}},It=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/products`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).runPaginatedAdapter(W.parseProduct)}async getSelectOptions(e,n,r=null,i=null){return await this.request(`/merchants/${e}/events/${n}/products/select-options`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).appendArray(`ids[]`,i).append(`searchQuery`,r)).runArrayAdapter(L.parseFluxFormSelectEntry)}async post(e,n,r,i,a,o,s,c){return await this.request(`/merchants/${e}/events/${n}/products`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r,description:i,price:a,stock:s,max_quantity:o,stock_pool_id:c}).runAdapter(W.parseProduct)}},Lt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/events/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEvent)}async getAvailability(e,n){return await this.request(`/merchants/${e}/events/${n}/availability`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventAvailability)}async getCounters(e,n){return await this.request(`/merchants/${e}/events/${n}/counters`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventCounters)}async post(e,n){return await this.request(`/merchants/${e}/events/${n.id}`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:n.name,description:n.description,starts_on:n.startsOn.toISO(),ends_on:n.endsOn.toISO(),minimum_age:n.minimumAge,address:{label:gt(n.address.label),street:n.address.street,number:n.address.number,postal_code:n.address.postalCode,city:n.address.city,country_code:n.address.country}}).runAdapter(P.parseEvent)}async postHeader(e,n,r){let i=new FormData;return i.append(`file`,r),await this.request(`/merchants/${e}/events/${n}/header`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(i).runAdapter(j.parseStatusResponse)}async postPublish(e,n){return await this.request(`/merchants/${e}/events/${n}/publish`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async postUnpublish(e,n){return await this.request(`/merchants/${e}/events/${n}/unpublish`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async delete(e,n){return await this.request(`/merchants/${e}/events/${n}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async deleteHeader(e,n){return await this.request(`/merchants/${e}/events/${n}/header`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},Rt=class extends e{async getAttendance(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/attendance`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsAttendance)}async getBuyers(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/buyers`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsBuyerTotals)}async getFinancial(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/financial`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsFinancial)}async getOrders(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/orders`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsOrders)}async getScans(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/scans`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsScans)}async getSwaps(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/swaps`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsSwapTotals)}},zt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(P.parseShop)}async getElements(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/elements`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(P.parseShopElement)}async getShortlink(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/shortlink`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(q.parse)}async patch(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r.id}`).method(`patch`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({name:r.name,is_published:r.isPublished,starts_on:r.startsOn,ends_on:r.endsOn,password:r.password}).runAdapter(P.parseShop)}async patchDesign(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/design`).method(`patch`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({background_color:i.backgroundColor,foreground_color:i.foregroundColor,primary_color:i.primaryColor}).runAdapter(P.parseShopDesign)}async patchElements(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/elements`).method(`patch`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({elements:i}).runArrayAdapter(P.parseShopElement)}async postShortlink(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/shortlink`).method(`post`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(q.parse)}},Bt=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/shops`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).bearerToken().runPaginatedAdapter(P.parseShop)}async post(e,n,r,i,a){return await this.request(`/merchants/${e}/events/${n}/shops`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r,starts_on:i,ends_on:a}).runAdapter(P.parseShop)}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},Vt=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/stock-pools`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).bearerToken().runPaginatedAdapter(P.parseStockPool)}async getOverview(e,n){return await this.request(`/merchants/${e}/events/${n}/stock-pools/overview`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(P.parseStockOverview)}async getSelectOptions(e,n,r=null,i=null){return await this.request(`/merchants/${e}/events/${n}/stock-pools/select-options`).method(`get`).queryString(t.builder().append(`language`,`nl`).appendArray(`ids[]`,i).append(`searchQuery`,r)).bearerToken().runArrayAdapter(L.parseFluxFormSelectEntry)}async post(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/stock-pools`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r,stock:i}).runAdapter(P.parseStockPool)}},Ht=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseTicketTemplate)}async getDemo(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}/demo`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async postVisual(e,n,r,i){let a=new FormData;return a.append(`file`,i),await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}/visual`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(a).runAdapter(j.parseStatusResponse)}async patch(e,n,r,i,a,o){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:i,product_id:a,variant:o}).runAdapter(P.parseTicketTemplate)}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async deleteVisual(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}/visual`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},Ut=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/ticket-templates`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).bearerToken().runPaginatedAdapter(P.parseTicketTemplate)}async getSelectOptions(e,n,r=null,i=null){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/select-options`).method(`get`).queryString(t.builder().append(`language`,`nl`).appendArray(`ids[]`,i).append(`searchQuery`,r)).bearerToken().runArrayAdapter(L.parseFluxFormSelectEntry)}async post(e,n,r,i,a,o){let s=new FormData;return s.append(`data`,_t({name:r,product_id:i,variant:a})),s.append(`visual`,o),await this.request(`/merchants/${e}/events/${n}/ticket-templates`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(s).runAdapter(P.parseTicketTemplate)}},Wt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).runPaginatedAdapter(P.parseEvent)}async post(e,n,r,i,a,o){return await this.request(`/merchants/${e}/events`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:n,description:r,starts_on:i,ends_on:a,minimum_age:o}).runAdapter(P.parseEvent)}},Gt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/finance/invoices/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(I.parseInvoice)}async getPDF(e,n){return await this.request(`/merchants/${e}/finance/invoices/${n}/pdf`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}},Kt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/finance/invoices`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).runPaginatedAdapter(I.parseInvoice)}},qt=class extends e{async getDailyRevenue(e){return await this.request(`/merchants/${e}/finance/daily-revenue`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).run()}async getMonthlyRevenue(e){return await this.request(`/merchants/${e}/finance/monthly-revenue`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).run()}async getOverview(e){return await this.request(`/merchants/${e}/finance/overview`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(I.parseFinanceOverview)}},Jt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/orders/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async getPasses(e,n){return await this.request(`/merchants/${e}/orders/${n}/passes`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async getPDF(e,n){return await this.request(`/merchants/${e}/orders/${n}/pdf`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async getTickets(e,n){return await this.request(`/merchants/${e}/orders/${n}/tickets`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter($.parseTicket)}async postResend(e,n){return await this.request(`/merchants/${e}/orders/${n}/resend`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}},Yt=class extends e{async get(e,n,r,i){let a=t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r);return i&&Object.entries(i).forEach(([e,t])=>a.append(e,t)),await this.request(`/merchants/${e}/orders`).method(`get`).queryString(a).bearerToken().runPaginatedAdapter(V.parseOrder)}},Xt=class extends e{async getRevenueTrend(e){return await this.request(`/merchants/${e}/statistics/revenue-trend`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getStatus(e){return await this.request(`/merchants/${e}/statistics/status`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}},Zt=class extends e{async getAcquisition(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/acquisition-chart/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getAgeDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/age-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getBrowserDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/browser-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getGenderDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/gender-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getLanguageDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/language-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getOsDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/os-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getOverview(e){return await this.request(`/merchants/${e}/statistics/buyers/overview`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Y.parseOverview)}async getTopBuyers(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/top-buyers/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(Y.parseRanked)}},Qt=class extends e{async getOverview(e){return await this.request(`/merchants/${e}/statistics/events/overview`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Tt.parseOverview)}},$t=class extends e{async getBestRevenueMonth(e){return await this.request(`/merchants/${e}/statistics/overview/best-revenue-month`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Z.parseBestRevenueMonth)}async getEventPerformance(e){return await this.request(`/merchants/${e}/statistics/overview/event-performance`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Z.parseEventPerformance)}async getKeyPerformanceIndicators(e){return await this.request(`/merchants/${e}/statistics/overview/key-performance-indicators`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Z.parseKPIs)}async getRevenueAnalysis(e){return await this.request(`/merchants/${e}/statistics/overview/revenue-analysis`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getRevenueMonthComparison(e){return await this.request(`/merchants/${e}/statistics/overview/revenue-month-comparison`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(e=>J.parseTrend(e,U.parseCost))}},en=class extends e{async getLifetimeTotals(e){return await this.request(`/merchants/${e}/statistics/sales/lifetime-totals`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Q.parseLifetimeTotals)}async getPaymentMethodsChart(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/payment-methods-chart/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getPurchaseBehavior(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/purchase-behavior/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Q.parsePurchaseBehavior)}async getRevenueTrend(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/revenue-trend/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getSalesByDayOfWeek(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/sales-by-day-of-week/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getTransactionSuccessRate(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/transaction-success-rate/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Q.parseTransactionSuccessRate)}},tn=class extends e{async get(e,n){return await this.request(`/merchants/${e}/tickets/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter($.parseTicket)}async getPass(e,n){return await this.request(`/merchants/${e}/tickets/${n}/pass`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async getPDF(e,n){return await this.request(`/merchants/${e}/tickets/${n}/pdf`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}},nn=class extends e{async get(e,n,r,i){let a=t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r);return i&&Object.entries(i).forEach(([e,t])=>a.append(e,t)),await this.request(`/merchants/${e}/tickets`).method(`get`).queryString(a).bearerToken().runPaginatedAdapter($.parseTicket)}},rn=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/users`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).bearerToken().runPaginatedAdapter(R.parseMerchantUser)}async postInvite(e,n,r,i,a){return await this.request(`/merchants/${e}/users/invite`).method(`post`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({first_name:n,last_name:r,email:i,claims:a}).runAdapter(R.parseInvitation)}},an=class extends e{async get(){return await this.request(`/me`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseUser)}async getTotp(){return await this.request(`/me/totp`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseTotpState)}async post(e,n,r){return await this.request(`/me`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({first_name:e,last_name:n,phone_number:r}).runAdapter(j.parseStatusResponse)}async postChangePassword(e,n,r){return await this.request(`/me/change-password`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({password:e,new_password:n,new_password_confirm:r}).runAdapter(j.parseStatusResponse)}async postProfilePicture(e){let n=new FormData;return n.append(`file`,e),await this.request(`/me/profile-picture`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(n).runAdapter(j.parseStatusResponse)}async postTotp(e,n){return await this.request(`/me/totp`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({secret:e,code:n}).runAdapter(k.parseTotpState)}async deleteProfilePicture(){return await this.request(`/me/profile-picture`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async deleteTotp(e){return await this.request(`/me/totp`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({code:e}).runAdapter(k.parseTotpState)}},on=class extends e{async get(e){return await this.request(`/orders/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async getPaymentMethods(e){return await this.request(`/orders/${e}/payment-methods`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(St.parsePublicPaymentMethod)}async postCancel(e){return await this.request(`/orders/${e}/cancel`).method(`post`).queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async postPay(e,n){return await this.request(`/orders/${e}/pay`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({payment_method_id:n}).runAdapter(U.parseTransaction)}},sn=class extends e{async get(e){return await this.request(`/shops/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(K.parsePublicShop)}async buy(e,n,r,i,a,o,s,c){return await this.request(`/shops/${e}/buy/${n}`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({first_name:r,last_name:i,email:a,phone_number:o.trim()===``?null:o.trim(),date_of_birth:s?.toISODate(),gender:c}).runAdapter(V.parseOrder)}async reserve(e,n){return await this.request(`/shops/${e}/reserve`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({products:n.map(e=>[e.productId,e.quantity,e.timeSlotId])}).runAdapter(K.parsePublicShopReservation)}},cn=class extends e{async get(e){return await this.request(`/reservations/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(wt.parseReservation)}async remove(e){return await this.request(`/reservations/${e}`).method(`delete`).queryString(t.builder().append(`language`,`nl`)).run()}},ln=class extends e{async checkEmail(e){return await this.request(`/service/check-email`).method(`get`).queryString(t.builder().append(`email`,e).append(`language`,`nl`)).run()}},un=class extends e{async getClaims(){return await this.request(`/ui/select-options/claims`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(e=>{let t=[];return e.forEach(e=>{t.push({icon:e.icon,label:e.label}),e.claims.forEach(e=>t.push({label:e.label,value:e.value}))}),t})}async getCountries(){return await this.request(`/ui/select-options/countries`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(e=>e)}async getLanguages(){return await this.request(`/ui/select-options/languages`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(e=>e)}};export{E as AddressAdapter,o as AddressDto,d as AppTeamDto,k as AuthAdapter,Et as AuthService,A as BuyerAdapter,v as BuyerDto,j as CommonAdapter,we as ContractDto,S as CostDto,M as DateTimeAdapter,P as EventAdapter,f as EventAvailabilityDto,p as EventCountersDto,m as EventDto,ee as EventStatisticsAttendanceDto,te as EventStatisticsBuyerTotalsDto,ne as EventStatisticsFinancialDto,ie as EventStatisticsOrderTotalsDto,re as EventStatisticsOrdersDto,se as EventStatisticsScanTotalsDto,ae as EventStatisticsScansDto,oe as EventStatisticsScansPerAppTeamDto,ce as EventStatisticsSwapTotalsDto,F as FileSystemAdapter,I as FinanceAdapter,xe as FinanceOverviewDto,L as FluxAdapter,Te as InvitationDto,Dt as InvitationService,Se as InvoiceDto,Ce as InvoiceLineDto,an as MeService,R as MerchantAdapter,At as MerchantBuyerService,jt as MerchantBuyersService,z as MerchantDashboardAdapter,Ee as MerchantDashboardKeyMetricsDto,Mt as MerchantDashboardService,De as MerchantDashboardUpcomingEventDto,Oe as MerchantDto,Nt as MerchantEventAppTeamService,Pt as MerchantEventAppTeamsService,Ft as MerchantEventProductService,It as MerchantEventProductsService,Lt as MerchantEventService,zt as MerchantEventShopService,Bt as MerchantEventShopsService,Rt as MerchantEventStatisticsService,Vt as MerchantEventStockPoolsService,Ht as MerchantEventTicketTemplateService,Ut as MerchantEventTicketTemplatesService,Wt as MerchantEventsService,Gt as MerchantFinanceInvoiceService,Kt as MerchantFinanceInvoicesService,qt as MerchantFinanceService,Jt as MerchantOrderService,Yt as MerchantOrdersService,Ot as MerchantService,Zt as MerchantStatisticsBuyersService,Qt as MerchantStatisticsEventsService,$t as MerchantStatisticsOverviewService,en as MerchantStatisticsSalesService,Xt as MerchantStatisticsService,tn as MerchantTicketService,nn as MerchantTicketsService,ke as MerchantUserDto,rn as MerchantUsersService,kt as MerchantsService,V as OrderAdapter,y as OrderDto,b as OrderLineDto,Ae as OrderPaymentProviderDto,x as OrderProductDto,U as PaymentAdapter,C as PaymentMethodDto,je as PaymentProviderDto,be as PictureDto,W as ProductAdapter,Ne as ProductDto,on as PublicOrderService,St as PublicPayAdapter,Pe as PublicPaymentMethodDto,K as PublicShopAdapter,Fe as PublicShopCartProductDto,Ie as PublicShopDesignDto,Le as PublicShopDto,Re as PublicShopElementButtonDto,ze as PublicShopElementDividerDto,w as PublicShopElementDto,Be as PublicShopElementHeadingDto,Ve as PublicShopElementNoticeDto,He as PublicShopElementProductDto,Ue as PublicShopElementTextDto,We as PublicShopEventDto,Ge as PublicShopMerchantDto,Ke as PublicShopProductDto,qe as PublicShopReservationDto,Ye as PublicShopReservationProductDetailsDto,Je as PublicShopReservationProductDto,sn as PublicShopService,Xe as PublicShopTimeSlotDto,wt as ReservationAdapter,Ze as ReservationDto,Qe as ReservationItemDto,$e as ReservationProductDto,cn as ReservationService,ln as ServicesService,le as ShopDesignDto,ue as ShopDto,de as ShopElementButtonDto,fe as ShopElementDividerDto,h as ShopElementDto,pe as ShopElementHeadingDto,me as ShopElementNoticeDto,he as ShopElementProductDto,g as ShopElementTextDto,q as ShortlinkAdapter,et as ShortlinkDto,J as StatisticsAdapter,Y as StatisticsBuyersAdapter,tt as StatisticsBuyersOverviewDto,nt as StatisticsBuyersRankedDto,Tt as StatisticsEventsAdapter,rt as StatisticsEventsOverviewDto,Z as StatisticsOverviewAdapter,it as StatisticsOverviewBestRevenueMonthDto,T as StatisticsOverviewEventPerformanceDto,at as StatisticsOverviewEventPerformanceEventDto,ot as StatisticsOverviewEventPerformanceSummaryDto,st as StatisticsOverviewKPIsDto,ct as StatisticsOverviewKPIsTotalEventsHostedDto,lt as StatisticsOverviewKPIsTotalRevenueDto,ut as StatisticsOverviewKPIsTotalTicketsSoldDto,Q as StatisticsSalesAdapter,dt as StatisticsSalesLifetimeTotalsDto,ft as StatisticsSalesPurchaseBehaviorDto,pt as StatisticsSalesTransactionSuccessRateDto,mt as StatisticsTrendDto,u as StatusResponseDto,ge as StockOverviewDto,_e as StockOverviewItemDto,ve as StockPoolDto,$ as TicketAdapter,ht as TicketDto,ye as TicketTemplateDto,s as TotpStateDto,Me as TransactionDto,un as UiSelectOptionsService,c as UserDto,l as UserTokenDto,_ as VatNumberDto,gt as emptyNull,_t as jsonBlob,D as optional,O as optionalArray};
|
|
1
|
+
import{BaseService as e,QueryString as t,adapter as n,dto as r}from"@basmilius/http-client";import{DateTime as i}from"luxon";function a(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let o=class{get id(){return this.#e}set id(e){this.#e=e}get label(){return this.#t}set label(e){this.#t=e}get street(){return this.#n}set street(e){this.#n=e}get number(){return this.#r}set number(e){this.#r=e}get postalCode(){return this.#i}set postalCode(e){this.#i=e}get city(){return this.#a}set city(e){this.#a=e}get country(){return this.#o}set country(e){this.#o=e}get formatted(){return this.#s}set formatted(e){this.#s=e}#e;#t;#n;#r;#i;#a;#o;#s;constructor(e,t,n,r,i,a,o,s){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s}};o=a([r],o);let s=class{get enabled(){return this.#e}set enabled(e){this.#e=e}get secret(){return this.#t}set secret(e){this.#t=e}get qr(){return this.#n}set qr(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};s=a([r],s);let c=class{get id(){return this.#e}set id(e){this.#e=e}get email(){return this.#t}set email(e){this.#t=e}get firstName(){return this.#n}set firstName(e){this.#n=e}get lastName(){return this.#r}set lastName(e){this.#r=e}get fullName(){return this.#i}set fullName(e){this.#i=e}get initials(){return this.#a}set initials(e){this.#a=e}get phoneNumber(){return this.#o}set phoneNumber(e){this.#o=e}get isOnline(){return this.#s}set isOnline(e){this.#s=e}get picture(){return this.#c}set picture(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};c=a([r],c);let l=class{get token(){return this.#e}set token(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get browser(){return this.#n}set browser(e){this.#n=e}get operatingSystem(){return this.#r}set operatingSystem(e){this.#r=e}get createdOn(){return this.#i}set createdOn(e){this.#i=e}get expiresOn(){return this.#a}set expiresOn(e){this.#a=e}get realtimeChannel(){return this.#o}set realtimeChannel(e){this.#o=e}get user(){return this.#s}set user(e){this.#s=e}#e;#t;#n;#r;#i;#a;#o;#s;constructor(e,t,n,r,i,a,o,s){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s}};l=a([r],l);let u=class{get message(){return this.#e}set message(e){this.#e=e}get status(){return this.#t}set status(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};u=a([r],u);let d=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get secret(){return this.#n}set secret(e){this.#n=e}get checkinCount(){return this.#r}set checkinCount(e){this.#r=e}get checkoutCount(){return this.#i}set checkoutCount(e){this.#i=e}get creator(){return this.#a}set creator(e){this.#a=e}get event(){return this.#o}set event(e){this.#o=e}get merchant(){return this.#s}set merchant(e){this.#s=e}#e;#t;#n;#r;#i;#a;#o;#s;constructor(e,t,n,r,i,a,o,s){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s}};d=a([r],d);let f=class{get hasProducts(){return this.#e}set hasProducts(e){this.#e=e}get hasShops(){return this.#t}set hasShops(e){this.#t=e}get hasShopsWithProducts(){return this.#n}set hasShopsWithProducts(e){this.#n=e}get isPublishable(){return this.#r}set isPublishable(e){this.#r=e}get isPublished(){return this.#i}set isPublished(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};f=a([r],f);let p=class{get guests(){return this.#e}set guests(e){this.#e=e}get orders(){return this.#t}set orders(e){this.#t=e}get tickets(){return this.#n}set tickets(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};p=a([r],p);let m=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get startsOn(){return this.#r}set startsOn(e){this.#r=e}get endsOn(){return this.#i}set endsOn(e){this.#i=e}get minimumAge(){return this.#a}set minimumAge(e){this.#a=e}get status(){return this.#o}set status(e){this.#o=e}get address(){return this.#s}set address(e){this.#s=e}get headerFile(){return this.#c}set headerFile(e){this.#c=e}get createdOn(){return this.#l}set createdOn(e){this.#l=e}get updatedOn(){return this.#u}set updatedOn(e){this.#u=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;constructor(e,t,n,r,i,a,o,s,c,l,u){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u}};m=a([r],m);let ee=class{get attended(){return this.#e}set attended(e){this.#e=e}get expected(){return this.#t}set expected(e){this.#t=e}get rate(){return this.#n}set rate(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};ee=a([r],ee);let te=class{get acquired(){return this.#e}set acquired(e){this.#e=e}get averageTickets(){return this.#t}set averageTickets(e){this.#t=e}get doubting(){return this.#n}set doubting(e){this.#n=e}get returning(){return this.#r}set returning(e){this.#r=e}get total(){return this.#i}set total(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};te=a([r],te);let ne=class{get platformCost(){return this.#e}set platformCost(e){this.#e=e}get revenue(){return this.#t}set revenue(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};ne=a([r],ne);let re=class{get chart(){return this.#e}set chart(e){this.#e=e}get totals(){return this.#t}set totals(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};re=a([r],re);let ie=class{get fulfilled(){return this.#e}set fulfilled(e){this.#e=e}get interrupted(){return this.#t}set interrupted(e){this.#t=e}get pending(){return this.#n}set pending(e){this.#n=e}get total(){return this.#r}set total(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ie=a([r],ie);let ae=class{get appTeams(){return this.#e}set appTeams(e){this.#e=e}get chart(){return this.#t}set chart(e){this.#t=e}get totals(){return this.#n}set totals(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};ae=a([r],ae);let oe=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get scans(){return this.#n}set scans(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};oe=a([r],oe);let se=class{get total(){return this.#e}set total(e){this.#e=e}get checkins(){return this.#t}set checkins(e){this.#t=e}get checkouts(){return this.#n}set checkouts(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};se=a([r],se);let ce=class{get swaps(){return this.#e}set swaps(e){this.#e=e}get tickets(){return this.#t}set tickets(e){this.#t=e}get rate(){return this.#n}set rate(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};ce=a([r],ce);let le=class{get backgroundColor(){return this.#e}set backgroundColor(e){this.#e=e}get foregroundColor(){return this.#t}set foregroundColor(e){this.#t=e}get primaryColor(){return this.#n}set primaryColor(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};le=a([r],le);let ue=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get isPublished(){return this.#n}set isPublished(e){this.#n=e}get password(){return this.#r}set password(e){this.#r=e}get startsOn(){return this.#i}set startsOn(e){this.#i=e}get endsOn(){return this.#a}set endsOn(e){this.#a=e}get fieldAddress(){return this.#o}set fieldAddress(e){this.#o=e}get fieldAddressMode(){return this.#s}set fieldAddressMode(e){this.#s=e}get fieldBirthdate(){return this.#c}set fieldBirthdate(e){this.#c=e}get fieldGender(){return this.#l}set fieldGender(e){this.#l=e}get fieldPhoneNumber(){return this.#u}set fieldPhoneNumber(e){this.#u=e}get status(){return this.#d}set status(e){this.#d=e}get design(){return this.#f}set design(e){this.#f=e}get event(){return this.#p}set event(e){this.#p=e}get merchant(){return this.#m}set merchant(e){this.#m=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f,this.#p=p,this.#m=m}};ue=a([r],ue);var h=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};let de=class extends h{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}get url(){return this.#n}set url(e){this.#n=e}#e;#t;#n;constructor(e,t,n,r){super(e,`button`),this.#e=t,this.#t=n,this.#n=r}};de=a([r],de);let fe=class extends h{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`divider`),this.#e=t,this.#t=n}};fe=a([r],fe);let pe=class extends h{get headingLevel(){return this.#e}set headingLevel(e){this.#e=e}get title(){return this.#t}set title(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`heading`),this.#e=t,this.#t=n}};pe=a([r],pe);let me=class extends h{get icon(){return this.#e}set icon(e){this.#e=e}get noticeType(){return this.#t}set noticeType(e){this.#t=e}get title(){return this.#n}set title(e){this.#n=e}get text(){return this.#r}set text(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r,i){super(e,`notice`),this.#e=t,this.#t=n,this.#n=r,this.#r=i}};me=a([r],me);let he=class extends h{get product(){return this.#e}set product(e){this.#e=e}#e;constructor(e,t){super(e,`product`),this.#e=t}};he=a([r],he);let g=class extends h{get text(){return this.#e}set text(e){this.#e=e}#e;constructor(e,t){super(e,`text`),this.#e=t}};g=a([r],g);let ge=class{get total(){return this.#e}set total(e){this.#e=e}get sold(){return this.#t}set sold(e){this.#t=e}get remaining(){return this.#n}set remaining(e){this.#n=e}get items(){return this.#r}set items(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ge=a([r],ge);let _e=class{get pool(){return this.#e}set pool(e){this.#e=e}get product(){return this.#t}set product(e){this.#t=e}get remaining(){return this.#n}set remaining(e){this.#n=e}get sold(){return this.#r}set sold(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};_e=a([r],_e);let ve=class{get id(){return this.#e}set id(e){this.#e=e}get eventId(){return this.#t}set eventId(e){this.#t=e}get merchantId(){return this.#n}set merchantId(e){this.#n=e}get name(){return this.#r}set name(e){this.#r=e}get remainingStock(){return this.#i}set remainingStock(e){this.#i=e}get stock(){return this.#a}set stock(e){this.#a=e}get isShared(){return this.#o}set isShared(e){this.#o=e}get productNames(){return this.#s}set productNames(e){this.#s=e}get createdOn(){return this.#c}set createdOn(e){this.#c=e}get updatedOn(){return this.#l}set updatedOn(e){this.#l=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;constructor(e,t,n,r,i,a,o,s,c,l){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l}};ve=a([r],ve);let ye=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get product(){return this.#n}set product(e){this.#n=e}get productId(){return this.#r}set productId(e){this.#r=e}get variant(){return this.#i}set variant(e){this.#i=e}get visual(){return this.#a}set visual(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};ye=a([r],ye);let be=class{get id(){return this.#e}set id(e){this.#e=e}get url(){return this.#t}set url(e){this.#t=e}get variants(){return this.#n}set variants(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};be=a([r],be);let xe=class{get estimatedPaymentCost(){return this.#e}set estimatedPaymentCost(e){this.#e=e}get orders(){return this.#t}set orders(e){this.#t=e}get platformCost(){return this.#n}set platformCost(e){this.#n=e}get revenue(){return this.#r}set revenue(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};xe=a([r],xe);let Se=class{get id(){return this.#e}set id(e){this.#e=e}get number(){return this.#t}set number(e){this.#t=e}get sequence(){return this.#n}set sequence(e){this.#n=e}get status(){return this.#r}set status(e){this.#r=e}get year(){return this.#i}set year(e){this.#i=e}get total(){return this.#a}set total(e){this.#a=e}get lines(){return this.#o}set lines(e){this.#o=e}get createdOn(){return this.#s}set createdOn(e){this.#s=e}get updatedOn(){return this.#c}set updatedOn(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};Se=a([r],Se);let Ce=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get cost(){return this.#n}set cost(e){this.#n=e}get createdOn(){return this.#r}set createdOn(e){this.#r=e}get updatedOn(){return this.#i}set updatedOn(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};Ce=a([r],Ce);let we=class{get id(){return this.#e}set id(e){this.#e=e}get startsOn(){return this.#t}set startsOn(e){this.#t=e}get endsOn(){return this.#n}set endsOn(e){this.#n=e}get fee(){return this.#r}set fee(e){this.#r=e}get remark(){return this.#i}set remark(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};we=a([r],we);let Te=class{get id(){return this.#e}set id(e){this.#e=e}get merchantId(){return this.#t}set merchantId(e){this.#t=e}get userId(){return this.#n}set userId(e){this.#n=e}get claims(){return this.#r}set claims(e){this.#r=e}get isNewUser(){return this.#i}set isNewUser(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}get updatedOn(){return this.#o}set updatedOn(e){this.#o=e}get merchant(){return this.#s}set merchant(e){this.#s=e}get user(){return this.#c}set user(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};Te=a([r],Te);let Ee=class{get revenue(){return this.#e}set revenue(e){this.#e=e}get tickets(){return this.#t}set tickets(e){this.#t=e}get events(){return this.#n}set events(e){this.#n=e}get tasks(){return this.#r}set tasks(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};Ee=a([r],Ee);let De=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get headerFile(){return this.#r}set headerFile(e){this.#r=e}get status(){return this.#i}set status(e){this.#i=e}get startsOn(){return this.#a}set startsOn(e){this.#a=e}get ticketsSold(){return this.#o}set ticketsSold(e){this.#o=e}get ticketsTotal(){return this.#s}set ticketsTotal(e){this.#s=e}get sellThroughRate(){return this.#c}set sellThroughRate(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};De=a([r],De);let Oe=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get email(){return this.#n}set email(e){this.#n=e}get phoneNumber(){return this.#r}set phoneNumber(e){this.#r=e}get url(){return this.#i}set url(e){this.#i=e}get chamberOfCommerceNumber(){return this.#a}set chamberOfCommerceNumber(e){this.#a=e}get vatNumber(){return this.#o}set vatNumber(e){this.#o=e}get currency(){return this.#s}set currency(e){this.#s=e}get address(){return this.#c}set address(e){this.#c=e}get currentContract(){return this.#l}set currentContract(e){this.#l=e}get logo(){return this.#u}set logo(e){this.#u=e}get createdOn(){return this.#d}set createdOn(e){this.#d=e}get updatedOn(){return this.#f}set updatedOn(e){this.#f=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f}};Oe=a([r],Oe);let ke=class{get isManager(){return this.#e}set isManager(e){this.#e=e}get createdOn(){return this.#t}set createdOn(e){this.#t=e}get updatedOn(){return this.#n}set updatedOn(e){this.#n=e}get user(){return this.#r}set user(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ke=a([r],ke);let Ae=class{get id(){return this.#e}set id(e){this.#e=e}get vatNumber(){return this.#t}set vatNumber(e){this.#t=e}get name(){return this.#n}set name(e){this.#n=e}get address(){return this.#r}set address(e){this.#r=e}get countryCode(){return this.#i}set countryCode(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}get updatedOn(){return this.#o}set updatedOn(e){this.#o=e}#e;#t;#n;#r;#i;#a;#o;constructor(e,t,n,r,i,a,o){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o}};Ae=a([r],Ae);let je=class{get id(){return this.#e}set id(e){this.#e=e}get firstName(){return this.#t}set firstName(e){this.#t=e}get lastName(){return this.#n}set lastName(e){this.#n=e}get email(){return this.#r}set email(e){this.#r=e}get phoneNumber(){return this.#i}set phoneNumber(e){this.#i=e}get dateOfBirth(){return this.#a}set dateOfBirth(e){this.#a=e}get gender(){return this.#o}set gender(e){this.#o=e}get orderCount(){return this.#s}set orderCount(e){this.#s=e}get fullName(){return this.#c}set fullName(e){this.#c=e}get address(){return this.#l}set address(e){this.#l=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;constructor(e,t,n,r,i,a,o,s,c,l){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l}};je=a([r],je);let _=class{get id(){return this.#e}set id(e){this.#e=e}get code(){return this.#t}set code(e){this.#t=e}get origin(){return this.#n}set origin(e){this.#n=e}get type(){return this.#r}set type(e){this.#r=e}get createdOn(){return this.#i}set createdOn(e){this.#i=e}get paymentProvider(){return this.#a}set paymentProvider(e){this.#a=e}get platformCost(){return this.#o}set platformCost(e){this.#o=e}get subTotal(){return this.#s}set subTotal(e){this.#s=e}get total(){return this.#c}set total(e){this.#c=e}get url(){return this.#l}set url(e){this.#l=e}get buyer(){return this.#u}set buyer(e){this.#u=e}get event(){return this.#d}set event(e){this.#d=e}get lines(){return this.#f}set lines(e){this.#f=e}get shop(){return this.#p}set shop(e){this.#p=e}get transaction(){return this.#m}set transaction(e){this.#m=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f,this.#p=p,this.#m=m}};_=a([r],_);let v=class{get id(){return this.#e}set id(e){this.#e=e}get price(){return this.#t}set price(e){this.#t=e}get quantity(){return this.#n}set quantity(e){this.#n=e}get product(){return this.#r}set product(e){this.#r=e}get subTotal(){return this.#i}set subTotal(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}get updatedOn(){return this.#o}set updatedOn(e){this.#o=e}#e;#t;#n;#r;#i;#a;#o;constructor(e,t,n,r,i,a,o){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o}};v=a([r],v);let y=class{get name(){return this.#e}set name(e){this.#e=e}get url(){return this.#t}set url(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};y=a([r],y);let b=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get image(){return this.#r}set image(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};b=a([r],b);let x=class{get currencyCode(){return this.#e}set currencyCode(e){this.#e=e}get currencyDecimals(){return this.#t}set currencyDecimals(e){this.#t=e}get currencySign(){return this.#n}set currencySign(e){this.#n=e}get decimal(){return this.#r}set decimal(e){this.#r=e}get formatted(){return this.#i}set formatted(e){this.#i=e}get cents(){return this.#a}set cents(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};x=a([r],x);let S=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get image(){return this.#n}set image(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};S=a([r],S);let Me=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get methods(){return this.#n}set methods(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};Me=a([r],Me);let Ne=class{get id(){return this.#e}set id(e){this.#e=e}get description(){return this.#t}set description(e){this.#t=e}get status(){return this.#n}set status(e){this.#n=e}get cost(){return this.#r}set cost(e){this.#r=e}get metadata(){return this.#i}set metadata(e){this.#i=e}get externalCheckoutUrl(){return this.#a}set externalCheckoutUrl(e){this.#a=e}get externalDetails(){return this.#o}set externalDetails(e){this.#o=e}get order(){return this.#s}set order(e){this.#s=e}get paymentMethod(){return this.#c}set paymentMethod(e){this.#c=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e,t,n,r,i,a,o,s,c){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c}};Ne=a([r],Ne);let Pe=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get name(){return this.#n}set name(e){this.#n=e}get description(){return this.#r}set description(e){this.#r=e}get price(){return this.#i}set price(e){this.#i=e}get maxQuantity(){return this.#a}set maxQuantity(e){this.#a=e}get isActive(){return this.#o}set isActive(e){this.#o=e}get isSwappable(){return this.#s}set isSwappable(e){this.#s=e}get remainingStock(){return this.#c}set remainingStock(e){this.#c=e}get stock(){return this.#l}set stock(e){this.#l=e}get image(){return this.#u}set image(e){this.#u=e}get images(){return this.#d}set images(e){this.#d=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d}};Pe=a([r],Pe);let Fe=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get image(){return this.#n}set image(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};Fe=a([r],Fe);let Ie=class{get productId(){return this.#e}set productId(e){this.#e=e}get quantity(){return this.#t}set quantity(e){this.#t=e}get timeSlotId(){return this.#n}set timeSlotId(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};Ie=a([r],Ie);let Le=class{get backgroundColor(){return this.#e}set backgroundColor(e){this.#e=e}get foregroundColor(){return this.#t}set foregroundColor(e){this.#t=e}get primaryColor(){return this.#n}set primaryColor(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};Le=a([r],Le);let Re=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get startsOn(){return this.#n}set startsOn(e){this.#n=e}get endsOn(){return this.#r}set endsOn(e){this.#r=e}get fieldAddress(){return this.#i}set fieldAddress(e){this.#i=e}get fieldAddressMode(){return this.#a}set fieldAddressMode(e){this.#a=e}get fieldBirthdate(){return this.#o}set fieldBirthdate(e){this.#o=e}get fieldGender(){return this.#s}set fieldGender(e){this.#s=e}get fieldPhoneNumber(){return this.#c}set fieldPhoneNumber(e){this.#c=e}get design(){return this.#l}set design(e){this.#l=e}get elements(){return this.#u}set elements(e){this.#u=e}get event(){return this.#d}set event(e){this.#d=e}get merchant(){return this.#f}set merchant(e){this.#f=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f}};Re=a([r],Re);var C=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};let ze=class extends C{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}get url(){return this.#n}set url(e){this.#n=e}#e;#t;#n;constructor(e,t,n,r){super(e,`button`),this.#e=t,this.#t=n,this.#n=r}};ze=a([r],ze);let Be=class extends C{get icon(){return this.#e}set icon(e){this.#e=e}get text(){return this.#t}set text(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`divider`),this.#e=t,this.#t=n}};Be=a([r],Be);let Ve=class extends C{get headingLevel(){return this.#e}set headingLevel(e){this.#e=e}get title(){return this.#t}set title(e){this.#t=e}#e;#t;constructor(e,t,n){super(e,`heading`),this.#e=t,this.#t=n}};Ve=a([r],Ve);let He=class extends C{get icon(){return this.#e}set icon(e){this.#e=e}get noticeType(){return this.#t}set noticeType(e){this.#t=e}get title(){return this.#n}set title(e){this.#n=e}get text(){return this.#r}set text(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r,i){super(e,`notice`),this.#e=t,this.#t=n,this.#n=r,this.#r=i}};He=a([r],He);let Ue=class extends C{get product(){return this.#e}set product(e){this.#e=e}#e;constructor(e,t){super(e,`product`),this.#e=t}};Ue=a([r],Ue);let We=class extends C{get text(){return this.#e}set text(e){this.#e=e}#e;constructor(e,t){super(e,`text`),this.#e=t}};We=a([r],We);let Ge=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get status(){return this.#n}set status(e){this.#n=e}get address(){return this.#r}set address(e){this.#r=e}get headerFile(){return this.#i}set headerFile(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};Ge=a([r],Ge);let Ke=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};Ke=a([r],Ke);let qe=class{get id(){return this.#e}set id(e){this.#e=e}get type(){return this.#t}set type(e){this.#t=e}get name(){return this.#n}set name(e){this.#n=e}get description(){return this.#r}set description(e){this.#r=e}get price(){return this.#i}set price(e){this.#i=e}get maxQuantity(){return this.#a}set maxQuantity(e){this.#a=e}get isActive(){return this.#o}set isActive(e){this.#o=e}get isTimeslotted(){return this.#s}set isTimeslotted(e){this.#s=e}get timeSlots(){return this.#c}set timeSlots(e){this.#c=e}get image(){return this.#l}set image(e){this.#l=e}get images(){return this.#u}set images(e){this.#u=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;constructor(e,t,n,r,i,a,o,s,c,l,u){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u}};qe=a([r],qe);let Je=class{get id(){return this.#e}set id(e){this.#e=e}get createdOn(){return this.#t}set createdOn(e){this.#t=e}get expiresOn(){return this.#n}set expiresOn(e){this.#n=e}get products(){return this.#r}set products(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};Je=a([r],Je);let Ye=class{get product(){return this.#e}set product(e){this.#e=e}get quantity(){return this.#t}set quantity(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};Ye=a([r],Ye);let Xe=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get image(){return this.#r}set image(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};Xe=a([r],Xe);let Ze=class{get id(){return this.#e}set id(e){this.#e=e}get label(){return this.#t}set label(e){this.#t=e}get fromTime(){return this.#n}set fromTime(e){this.#n=e}get toTime(){return this.#r}set toTime(e){this.#r=e}get maxQuantity(){return this.#i}set maxQuantity(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};Ze=a([r],Ze);let Qe=class{get id(){return this.#e}set id(e){this.#e=e}get createdOn(){return this.#t}set createdOn(e){this.#t=e}get expiresOn(){return this.#n}set expiresOn(e){this.#n=e}get isExpired(){return this.#r}set isExpired(e){this.#r=e}get items(){return this.#i}set items(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};Qe=a([r],Qe);let $e=class{get quantity(){return this.#e}set quantity(e){this.#e=e}get product(){return this.#t}set product(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};$e=a([r],$e);let et=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get description(){return this.#n}set description(e){this.#n=e}get image(){return this.#r}set image(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};et=a([r],et);let tt=class{get connectingIp(){return this.#e}set connectingIp(e){this.#e=e}get country(){return this.#t}set country(e){this.#t=e}get ray(){return this.#n}set ray(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};tt=a([r],tt);let nt=class{get id(){return this.#e}set id(e){this.#e=e}get identifier(){return this.#t}set identifier(e){this.#t=e}get hits(){return this.#n}set hits(e){this.#n=e}get link(){return this.#r}set link(e){this.#r=e}get target(){return this.#i}set target(e){this.#i=e}get createdOn(){return this.#a}set createdOn(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};nt=a([r],nt);let rt=class{get buyers(){return this.#e}set buyers(e){this.#e=e}get newBuyers(){return this.#t}set newBuyers(e){this.#t=e}get retentionRate(){return this.#n}set retentionRate(e){this.#n=e}get totalBuyers(){return this.#r}set totalBuyers(e){this.#r=e}get lifetimeValuePerBuyer(){return this.#i}set lifetimeValuePerBuyer(e){this.#i=e}get averageTicketsPerBuyer(){return this.#a}set averageTicketsPerBuyer(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};rt=a([r],rt);let it=class{get ranking(){return this.#e}set ranking(e){this.#e=e}get buyer(){return this.#t}set buyer(e){this.#t=e}get orderCount(){return this.#n}set orderCount(e){this.#n=e}get totalSpend(){return this.#r}set totalSpend(e){this.#r=e}get eventsAttended(){return this.#i}set eventsAttended(e){this.#i=e}get averageOrderValue(){return this.#a}set averageOrderValue(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};it=a([r],it);let at=class{get totalEvents(){return this.#e}set totalEvents(e){this.#e=e}get activeEvents(){return this.#t}set activeEvents(e){this.#t=e}get averageRevenuePerEvent(){return this.#n}set averageRevenuePerEvent(e){this.#n=e}get averageTicketsPerEvent(){return this.#r}set averageTicketsPerEvent(e){this.#r=e}get averageSellThroughRate(){return this.#i}set averageSellThroughRate(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};at=a([r],at);let ot=class{get period(){return this.#e}set period(e){this.#e=e}get revenue(){return this.#t}set revenue(e){this.#t=e}get orders(){return this.#n}set orders(e){this.#n=e}get tickets(){return this.#r}set tickets(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ot=a([r],ot);let st=class{get events(){return this.#e}set events(e){this.#e=e}get summary(){return this.#t}set summary(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};st=a([r],st);let ct=class{get id(){return this.#e}set id(e){this.#e=e}get name(){return this.#t}set name(e){this.#t=e}get startsOn(){return this.#n}set startsOn(e){this.#n=e}get endsOn(){return this.#r}set endsOn(e){this.#r=e}get headerFile(){return this.#i}set headerFile(e){this.#i=e}get status(){return this.#a}set status(e){this.#a=e}get revenue(){return this.#o}set revenue(e){this.#o=e}get ticketsSold(){return this.#s}set ticketsSold(e){this.#s=e}get ticketsTotal(){return this.#c}set ticketsTotal(e){this.#c=e}get sellThroughRate(){return this.#l}set sellThroughRate(e){this.#l=e}get attendanceRate(){return this.#u}set attendanceRate(e){this.#u=e}get attendedCount(){return this.#d}set attendedCount(e){this.#d=e}get ordersCount(){return this.#f}set ordersCount(e){this.#f=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d,this.#f=f}};ct=a([r],ct);let lt=class{get totalRevenue(){return this.#e}set totalRevenue(e){this.#e=e}get totalTicketsSold(){return this.#t}set totalTicketsSold(e){this.#t=e}get totalTicketsCapacity(){return this.#n}set totalTicketsCapacity(e){this.#n=e}get averageSellThroughRate(){return this.#r}set averageSellThroughRate(e){this.#r=e}get averageAttendanceRate(){return this.#i}set averageAttendanceRate(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};lt=a([r],lt);let w=class{get totalRevenue(){return this.#e}set totalRevenue(e){this.#e=e}get totalTicketsSold(){return this.#t}set totalTicketsSold(e){this.#t=e}get totalEventsHosted(){return this.#n}set totalEventsHosted(e){this.#n=e}get totalCustomers(){return this.#r}set totalCustomers(e){this.#r=e}get averageOrderValue(){return this.#i}set averageOrderValue(e){this.#i=e}get averageAttendanceRate(){return this.#a}set averageAttendanceRate(e){this.#a=e}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}};w=a([r],w);let ut=class{get active(){return this.#e}set active(e){this.#e=e}get concluded(){return this.#t}set concluded(e){this.#t=e}get total(){return this.#n}set total(e){this.#n=e}get upcoming(){return this.#r}set upcoming(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};ut=a([r],ut);let dt=class{get lifetime(){return this.#e}set lifetime(e){this.#e=e}get trend(){return this.#t}set trend(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};dt=a([r],dt);let ft=class{get lifetime(){return this.#e}set lifetime(e){this.#e=e}get trend(){return this.#t}set trend(e){this.#t=e}#e;#t;constructor(e,t){this.#e=e,this.#t=t}};ft=a([r],ft);let pt=class{get totalRevenue(){return this.#e}set totalRevenue(e){this.#e=e}get totalPlatformCost(){return this.#t}set totalPlatformCost(e){this.#t=e}get netRevenue(){return this.#n}set netRevenue(e){this.#n=e}get averageOrderValue(){return this.#r}set averageOrderValue(e){this.#r=e}get averageRevenuePerTicket(){return this.#i}set averageRevenuePerTicket(e){this.#i=e}#e;#t;#n;#r;#i;constructor(e,t,n,r,i){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i}};pt=a([r],pt);let mt=class{get averageTimeToPurchase(){return this.#e}set averageTimeToPurchase(e){this.#e=e}get cartAbandonmentRate(){return this.#t}set cartAbandonmentRate(e){this.#t=e}get peakBuyingCount(){return this.#n}set peakBuyingCount(e){this.#n=e}get peakBuyingTime(){return this.#r}set peakBuyingTime(e){this.#r=e}#e;#t;#n;#r;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r}};mt=a([r],mt);let ht=class{get successRate(){return this.#e}set successRate(e){this.#e=e}get failedRate(){return this.#t}set failedRate(e){this.#t=e}get reasons(){return this.#n}set reasons(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};ht=a([r],ht);let gt=class{get current(){return this.#e}set current(e){this.#e=e}get previous(){return this.#t}set previous(e){this.#t=e}get growthRate(){return this.#n}set growthRate(e){this.#n=e}#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}};gt=a([r],gt);let _t=class{get id(){return this.#e}set id(e){this.#e=e}get sequence(){return this.#t}set sequence(e){this.#t=e}get code(){return this.#n}set code(e){this.#n=e}get status(){return this.#r}set status(e){this.#r=e}get validity(){return this.#i}set validity(e){this.#i=e}get buyer(){return this.#a}set buyer(e){this.#a=e}get event(){return this.#o}set event(e){this.#o=e}get holder(){return this.#s}set holder(e){this.#s=e}get order(){return this.#c}set order(e){this.#c=e}get product(){return this.#l}set product(e){this.#l=e}get createdOn(){return this.#u}set createdOn(e){this.#u=e}get updatedOn(){return this.#d}set updatedOn(e){this.#d=e}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a,this.#o=o,this.#s=s,this.#c=c,this.#l=l,this.#u=u,this.#d=d}};_t=a([r],_t);let T=class{static parseAddress(e){return new o(e.id,e.label,e.street,e.number,e.postal_code,e.city,e.country,e.formatted)}};T=a([n],T);function E(e){return typeof e==`string`&&e.trim().length===0||Array.isArray(e)&&e.length===0?null:e}function vt(e){return new Blob([JSON.stringify(e)],{type:`application/json`})}function D(e,t){return e==null?null:t(e)}function O(e,t){return e==null?null:e.map(t)}var yt;let k=yt=class{static parseTotpState(e){return new s(e.enabled,e.secret,e.qr)}static parseUser(e){return new c(e.id,e.email,e.first_name,e.last_name,e.full_name,e.initials,e.phone_number,e.is_online,D(e.picture,F.parsePicture))}static parseUserToken(e){return new l(e.token,e.type,e.browser,e.operating_system,M.parseDateTime(e.created_on),M.parseDateTime(e.expires_on),e.realtime_channel,D(e.user,yt.parseUser))}};k=yt=a([n],k);let A=class{static parseBuyer(e){return new je(e.id,e.first_name,e.last_name,e.email,e.phone_number,D(e.date_of_birth,M.parseDateTime),e.gender,e.order_count??-1,e.full_name,D(e.address,T.parseAddress))}};A=a([n],A);let j=class{static parseStatusResponse(e){return new u(e.message,e.status)}};j=a([n],j);let M=class{static parseDateTime(e){return i.fromISO(e,{zone:`UTC`}).setZone(`Europe/Amsterdam`)}static parseDateTimeFromMonth(e){return i.fromFormat(e,`yyyy-MM`,{zone:`UTC`}).setZone(`Europe/Amsterdam`)}};M=a([n],M);var N;let P=N=class{static parseAppTeam(e){return new d(e.id,e.name,e.secret,e.checkin_count,e.checkout_count,D(e.creator,k.parseUser),D(e.event,N.parseEvent),D(e.merchant,R.parseMerchant))}static parseEvent(e){return new m(e.id,e.name,e.description,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),e.minimum_age,e.status,D(e.address,T.parseAddress),D(e.header_file,F.parsePicture),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseEventAvailability(e){return new f(e.has_products,e.has_shops,e.has_shops_with_products,e.is_publishable,e.is_published)}static parseEventCounters(e){return new p(e.guests,e.orders,e.tickets)}static parseShop(e){return new ue(e.id,e.name,e.is_published,e.password,D(e.starts_on,M.parseDateTime),D(e.ends_on,M.parseDateTime),e.field_address,e.field_address_mode,e.field_birthdate,e.field_gender,e.field_phone_number,e.status,D(e.design,N.parseShopDesign),D(e.event,N.parseEvent),D(e.merchant,R.parseMerchant))}static parseShopDesign(e){return new le(e.background_color,e.foreground_color,e.primary_color)}static parseShopElement(e){switch(e.type){case`button`:return new de(e.id,e.icon,e.text,e.url);case`divider`:return new fe(e.id,e.icon,e.text);case`heading`:return new pe(e.id,e.heading_level,e.title);case`notice`:return new me(e.id,e.icon,e.notice_type,e.title,e.text);case`product`:return new he(e.id,W.parseProduct(e.product));case`text`:return new g(e.id,e.text)}return new g(`unknown`,`Unknown element type.`)}static parseStockOverview(e){return new ge(e.total,e.sold,e.remaining,e.items.map(N.parseStockOverviewItem))}static parseStockOverviewItem(e){return new _e(N.parseStockPool(e.pool),W.parseProduct(e.product),e.remaining,e.sold)}static parseStockPool(e){return new ve(e.id,e.event_id,e.merchant_id,e.name,e.remaining_stock,e.stock,e.is_shared,e.product_names??[],M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseTicketTemplate(e){return new ye(e.id,e.name,D(e.product,W.parseProduct),e.product_id,e.variant,D(e.visual,F.parsePicture))}static parseEventStatisticsAttendance(e){return new ee(e.attended,e.expected,e.rate)}static parseEventStatisticsBuyerTotals(e){return new te(e.acquired,e.average_tickets,e.doubting,e.returning,e.total)}static parseEventStatisticsFinancial(e){return new ne(U.parseCost(e.platform_cost),U.parseCost(e.revenue))}static parseEventStatisticsOrders(e){return new re(e.chart,N.parseEventStatisticsOrderTotals(e.totals))}static parseEventStatisticsOrderTotals(e){return new ie(e.fulfilled,e.interrupted,e.pending,e.total)}static parseEventStatisticsScans(e){return new ae(e.app_teams.map(N.parseEventStatisticsScansPerAppTeam),e.chart,N.parseEventStatisticsScanTotals(e.totals))}static parseEventStatisticsScansPerAppTeam(e){return new oe(e.id,e.name,e.scans)}static parseEventStatisticsScanTotals(e){return new se(e.total,e.checkins,e.checkouts)}static parseEventStatisticsSwapTotals(e){return new ce(e.swaps,e.tickets,e.rate)}};P=N=a([n],P);let F=class{static parsePicture(e){return new be(e.id,e.url,e.variants)}};F=a([n],F);var bt;let I=bt=class{static parseFinanceOverview(e){return new xe(U.parseCost(e.estimated_payment_cost),e.orders,U.parseCost(e.platform_cost),U.parseCost(e.revenue))}static parseInvoice(e){return new Se(e.id,e.number,e.sequence,e.status,e.year,U.parseCost(e.total),O(e.lines,bt.parseInvoiceLine),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseInvoiceLine(e){return new Ce(e.id,e.type,U.parseCost(e.cost),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}};I=bt=a([n],I);var xt;let L=xt=class{static parseFluxFormSelectEntry(e){return`value`in e?xt.parseFluxFormSelectOption(e):xt.parseFluxFormSelectGroup(e)}static parseFluxFormSelectGroup(e){return e}static parseFluxFormSelectOption(e){return e}};L=xt=a([n],L);var St;let R=St=class{static parseContract(e){return new we(e.id,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),U.parseCost(e.fee),e.remark)}static parseInvitation(e){return new Te(e.id,e.merchant_id,e.user_id,e.claims,e.is_new_user,M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on),St.parseMerchant(e.merchant),k.parseUser(e.user))}static parseMerchant(e){return new Oe(e.id,e.name,e.email,e.phone_number,e.url,e.chamber_of_commerce_number,e.vat_number,e.currency,D(e.address,T.parseAddress),D(e.current_contract,St.parseContract),D(e.logo,F.parsePicture),D(e.created_on,M.parseDateTime),D(e.updated_on,M.parseDateTime))}static parseMerchantUser(e){return new ke(e.is_manager,M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on),k.parseUser(e.user))}static parseVatNumber(e){return new Ae(e.id,e.vat_number,e.name,e.address,e.country_code,M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}};R=St=a([n],R);let z=class{static parseKeyMetrics(e){return new Ee(e.revenue,e.tickets,e.events,e.tasks)}static parseUpcomingEvent(e){return new De(e.id,e.name,e.description,D(e.header_file,F.parsePicture),e.status,M.parseDateTime(e.starts_on),e.tickets_sold,e.tickets_total,e.sell_through_rate)}};z=a([n],z);var B;let V=B=class{static parseOrder(e){return new _(e.id,e.code,e.origin,e.type,M.parseDateTime(e.created_on),D(e.payment_provider,B.parseOrderPaymentProvider),D(e.platform_cost,U.parseCost),D(e.sub_total,U.parseCost),D(e.total,U.parseCost),e.url,D(e.buyer,A.parseBuyer),D(e.event,P.parseEvent),O(e.lines,B.parseOrderLine),D(e.shop,K.parsePublicShop),D(e.transaction,U.parseTransaction))}static parseOrderLine(e){return new v(e.id,U.parseCost(e.price),e.quantity,B.parseOrderProduct(e.product),U.parseCost(e.sub_total),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}static parseOrderPaymentProvider(e){return new y(e.name,e.url)}static parseOrderProduct(e){return new b(e.id,e.name,e.description,e.image)}};V=B=a([n],V);var H;let U=H=class{static parseCost(e){return new x(e.currency_code,e.currency_decimals,e.currency_sign,e.decimal,e.formatted,e.value)}static parsePaymentMethod(e){return new S(e.id,e.name,e.image)}static parsePaymentProvider(e){return new Me(e.id,e.type,e.methods.map(H.parsePaymentMethod))}static parseTransaction(e){return new Ne(e.id,e.description,e.status,H.parseCost(e.cost),e.metadata,e.external_checkout_url,e.external_details,D(e.order,V.parseOrder),D(e.payment_method,H.parsePaymentMethod))}};U=H=a([n],U);let W=class{static parseProduct(e){return new Pe(e.id,e.type,e.name,e.description,D(e.price,U.parseCost),e.max_quantity,e.is_active,e.is_swappable,e.remaining_stock,D(e.stock_pool,P.parseStockPool),D(e.image,F.parsePicture),O(e.images,F.parsePicture))}};W=a([n],W);let Ct=class{static parsePublicPaymentMethod(e){return new Fe(e.id,e.name,e.image)}};Ct=a([n],Ct);var G;let K=G=class{static parsePublicShop(e){return new Re(e.id,e.name,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),e.field_address,e.field_address_mode,e.field_birthdate,e.field_gender,e.field_phone_number,D(e.design,G.parsePublicShopDesign),O(e.elements,G.parsePublicShopElement),G.parsePublicShopEvent(e.event),G.parsePublicShopMerchant(e.merchant))}static parsePublicShopDesign(e){return new Le(e.background_color,e.foreground_color,e.primary_color)}static parsePublicShopElement(e){switch(e.type){case`button`:return new ze(e.id,e.icon,e.text,e.url);case`divider`:return new Be(e.id,e.icon,e.text);case`heading`:return new Ve(e.id,e.heading_level,e.title);case`notice`:return new He(e.id,e.icon,e.notice_type,e.title,e.text);case`product`:return new Ue(e.id,G.parsePublicShopProduct(e.product));case`text`:return new We(e.id,e.text)}throw Error(`Unknown shop element.`)}static parsePublicShopEvent(e){return new Ge(e.id,e.name,e.status,T.parseAddress(e.address),D(e.header_file,F.parsePicture))}static parsePublicShopMerchant(e){return new Ke(e.id,e.name)}static parsePublicShopProduct(e){return new qe(e.id,e.type,e.name,e.description,U.parseCost(e.price),e.max_quantity,e.is_active,e.is_timeslotted,O(e.time_slots,G.parsePublicShopTimeSlot),D(e.image,F.parsePicture),O(e.images,F.parsePicture))}static parsePublicShopReservation(e){return new Je(e.id,M.parseDateTime(e.created_on),M.parseDateTime(e.expires_on),e.products.map(G.parsePublicShopReservationProduct))}static parsePublicShopReservationProduct(e){return new Ye(G.parsePublicShopReservationProductDetails(e.product),e.quantity)}static parsePublicShopReservationProductDetails(e){return new Xe(e.id,e.name,e.description,D(e.image,F.parsePicture))}static parsePublicShopTimeSlot(e){return new Ze(e.id,e.label,M.parseDateTime(e.from_time),M.parseDateTime(e.to_time),e.max_quantity)}};K=G=a([n],K);var wt;let Tt=wt=class{static parseReservation(e){return new Qe(e.id,M.parseDateTime(e.created_on),M.parseDateTime(e.expires_on),e.is_expired,O(e.products,wt.parseReservationItem))}static parseReservationItem(e){return new $e(e.quantity,wt.parseReservationProduct(e.product))}static parseReservationProduct(e){return new et(e.id,e.name,e.description,D(e.image,F.parsePicture))}};Tt=wt=a([n],Tt);let Et=class{static parseInfo(e){return new tt(e.connecting_ip,e.country,e.ray)}};Et=a([n],Et);let q=class{static parse(e){return new nt(e.id,e.identifier,e.hits,e.link,e.target,M.parseDateTime(e.createdOn))}};q=a([n],q);let J=class{static parseTrend(e,t){return new gt(t(e.current),t(e.previous),e.growth_rate)}};J=a([n],J);let Y=class{static parseOverview(e){return new rt(J.parseTrend(e.buyers,Number),J.parseTrend(e.new_buyers,Number),J.parseTrend(e.retention_rate,Number),e.total_buyers,U.parseCost(e.lifetime_value_per_buyer),e.average_tickets_per_buyer)}static parseRanked(e){return new it(e.ranking,A.parseBuyer(e.buyer),e.order_count,U.parseCost(e.total_spend),e.events_attended,U.parseCost(e.average_order_value))}};Y=a([n],Y);let Dt=class{static parseOverview(e){return new at(e.total_events,e.active_events,U.parseCost(e.average_revenue_per_event),e.average_tickets_per_event,e.average_sell_through_rate)}};Dt=a([n],Dt);var X;let Z=X=class{static parseBestRevenueMonth(e){return new ot(M.parseDateTimeFromMonth(e.period),U.parseCost(e.revenue),e.orders,e.tickets)}static parseEventPerformance(e){return new st(e.events.map(X.parseEventPerformanceEvent),X.parseEventPerformanceSummary(e.summary))}static parseEventPerformanceEvent(e){return new ct(e.id,e.name,M.parseDateTime(e.starts_on),M.parseDateTime(e.ends_on),D(e.header_file,F.parsePicture),e.status,U.parseCost(e.revenue),e.tickets_sold,e.tickets_total,e.sell_through_rate,e.attendance_rate,e.attended_count,e.orders_count)}static parseEventPerformanceSummary(e){return new lt(U.parseCost(e.total_revenue),e.total_tickets_sold,e.total_tickets_capacity,e.average_sell_through_rate,e.average_attendance_rate)}static parseKPIs(e){return new w(X.parseKPIsTotalRevenue(e.total_revenue),X.parseKPIsTotalTicketsSold(e.total_tickets_sold),X.parseKPIsTotalEventsHosted(e.total_events_hosted),e.total_customers,U.parseCost(e.average_order_value),e.average_attendance_rate)}static parseKPIsTotalEventsHosted(e){return new ut(e.active,e.concluded,e.total,e.upcoming)}static parseKPIsTotalRevenue(e){return new dt(U.parseCost(e.lifetime),J.parseTrend(e.trend,U.parseCost))}static parseKPIsTotalTicketsSold(e){return new ft(e.lifetime,J.parseTrend(e.trend,Number))}};Z=X=a([n],Z);let Q=class{static parseLifetimeTotals(e){return new pt(U.parseCost(e.total_revenue),U.parseCost(e.total_platform_cost),U.parseCost(e.net_revenue),U.parseCost(e.average_order_value),U.parseCost(e.average_revenue_per_ticket))}static parsePurchaseBehavior(e){return new mt(e.average_time_to_purchase,e.cart_abandonment_rate,e.peak_buying_count,M.parseDateTime(e.peak_buying_time))}static parseTransactionSuccessRate(e){return new ht(e.success_rate,e.failed_rate,e.reasons)}};Q=a([n],Q);let $=class{static parseTicket(e){return new _t(e.id,e.sequence,e.code,e.status,e.validity,D(e.buyer,A.parseBuyer),D(e.event,P.parseEvent),D(e.holder,A.parseBuyer),D(e.order,V.parseOrder),D(e.product,W.parseProduct),M.parseDateTime(e.created_on),M.parseDateTime(e.updated_on))}};$=a([n],$);var Ot=class extends e{async get(){return await this.request(`/auth`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseUserToken)}async getClaims(){return await this.request(`/auth/claims`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(e=>Object.values(e))}async getPasswordCompromised(){return await this.request(`/auth/password-compromised`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runDataKey(`compromised`)}async getSessions(e,n){return await this.request(`/auth/sessions`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,e).append(`limit`,n)).runPaginatedAdapter(k.parseUserToken)}async post(e,n,r){return await this.request(`/auth`).method(`post`).body({email:e,password:n,code:r}).queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseUserToken)}async deleteSession(e){return await this.request(`/auth/sessions`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({token:e}).runEmpty()}},kt=class extends e{async get(e){return await this.request(`/invitations/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(R.parseInvitation)}async postAccept(e,n){return await this.request(`/invitations/${e}/accept`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({password:n}).runAdapter(k.parseUserToken)}async postDecline(e){return await this.request(`/invitations/${e}/decline`).method(`post`).queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},At=class extends e{async get(e){return await this.request(`/merchants/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(R.parseMerchant)}async getAccountManagers(e){return await this.request(`/merchants/${e}/account-managers`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(k.parseUser)}async getClaims(e){return await this.request(`/merchants/${e}/claims`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(e=>Object.values(e))}async getContract(e){return await this.request(`/merchants/${e}/contract`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(R.parseContract)}async getPaymentProviders(e){return await this.request(`/merchants/${e}/payment-providers`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(U.parsePaymentProvider)}async getVatNumber(e){return await this.request(`/merchants/${e}/vat-number`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(R.parseVatNumber)}async put(e,n){return await this.request(`/merchants/${e}`).method(`put`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({name:n.name,email:n.email,phone_number:n.phoneNumber,url:n.url,chamber_of_commerce_number:n.chamberOfCommerceNumber,vat_number:n.vatNumber,address:{label:E(n.address.label),street:n.address.street,number:n.address.number,postal_code:n.address.postalCode,city:n.address.city,country_code:n.address.country}}).runAdapter(R.parseMerchant)}async postLogo(e,n){let r=new FormData;return r.append(`file`,n),await this.request(`/merchants/${e}/logo`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(r).runAdapter(j.parseStatusResponse)}async deleteLogo(e){return await this.request(`/merchants/${e}/logo`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},jt=class extends e{async get(){return await this.request(`/merchants`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(R.parseMerchant)}},Mt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/buyers/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(A.parseBuyer)}async getOrder(e,n,r){return await this.request(`/merchants/${e}/buyers/${n}/orders/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async getOrders(e,n,r,i){return await this.request(`/merchants/${e}/buyers/${n}/orders`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).runPaginatedAdapter(V.parseOrder)}},Nt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/buyers`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).bearerToken().runPaginatedAdapter(A.parseBuyer)}},Pt=class extends e{async getKeyMetrics(e){return await this.request(`/merchants/${e}/dashboard/key-metrics`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(z.parseKeyMetrics)}async getUpcomingEvents(e){return await this.request(`/merchants/${e}/dashboard/upcoming-events`).method(`get`).bearerToken().runArrayAdapter(z.parseUpcomingEvent)}},Ft=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/app-teams/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseAppTeam)}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/app-teams/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async patch(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/app-teams/${r}`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:i.name}).runAdapter(P.parseAppTeam)}},It=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/app-teams`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).runPaginatedAdapter(P.parseAppTeam)}async post(e,n,r){return await this.request(`/merchants/${e}/events/${n}/app-teams`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r}).runAdapter(P.parseAppTeam)}},Lt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(W.parseProduct)}async postImage(e,n,r,i){let a=new FormData;return a.append(`file`,i),await this.request(`/merchants/${e}/events/${n}/products/${r}/media`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(a).run()}async patch(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/products/${r}`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:i.name,description:i.description,price:i.price.cents,max_quantity:i.maxQuantity,is_swappable:i.isSwappable}).runAdapter(W.parseProduct)}async patchPause(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}/pause`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}async patchResume(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}/resume`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/products/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}},Rt=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/products`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).runPaginatedAdapter(W.parseProduct)}async getSelectOptions(e,n,r=null,i=null){return await this.request(`/merchants/${e}/events/${n}/products/select-options`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).appendArray(`ids[]`,i).append(`searchQuery`,r)).runArrayAdapter(L.parseFluxFormSelectEntry)}async post(e,n,r,i,a,o,s,c){return await this.request(`/merchants/${e}/events/${n}/products`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r,description:i,price:a,stock:s,max_quantity:o,stock_pool_id:c}).runAdapter(W.parseProduct)}},zt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/events/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEvent)}async getAvailability(e,n){return await this.request(`/merchants/${e}/events/${n}/availability`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventAvailability)}async getCounters(e,n){return await this.request(`/merchants/${e}/events/${n}/counters`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventCounters)}async post(e,n){return await this.request(`/merchants/${e}/events/${n.id}`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:n.name,description:n.description,starts_on:n.startsOn.toISO(),ends_on:n.endsOn.toISO(),minimum_age:n.minimumAge,address:{label:E(n.address.label),street:n.address.street,number:n.address.number,postal_code:n.address.postalCode,city:n.address.city,country_code:n.address.country}}).runAdapter(P.parseEvent)}async postHeader(e,n,r){let i=new FormData;return i.append(`file`,r),await this.request(`/merchants/${e}/events/${n}/header`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(i).runAdapter(j.parseStatusResponse)}async postPublish(e,n){return await this.request(`/merchants/${e}/events/${n}/publish`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async postUnpublish(e,n){return await this.request(`/merchants/${e}/events/${n}/unpublish`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async delete(e,n){return await this.request(`/merchants/${e}/events/${n}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async deleteHeader(e,n){return await this.request(`/merchants/${e}/events/${n}/header`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},Bt=class extends e{async getAttendance(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/attendance`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsAttendance)}async getBuyers(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/buyers`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsBuyerTotals)}async getFinancial(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/financial`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsFinancial)}async getOrders(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/orders`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsOrders)}async getScans(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/scans`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsScans)}async getSwaps(e,n){return await this.request(`/merchants/${e}/events/${n}/statistics/swaps`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseEventStatisticsSwapTotals)}},Vt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(P.parseShop)}async getElements(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/elements`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(P.parseShopElement)}async getShortlink(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/shortlink`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(q.parse)}async patch(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r.id}`).method(`patch`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({name:r.name,is_published:r.isPublished,starts_on:r.startsOn,ends_on:r.endsOn,password:r.password}).runAdapter(P.parseShop)}async patchDesign(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/design`).method(`patch`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({background_color:i.backgroundColor,foreground_color:i.foregroundColor,primary_color:i.primaryColor}).runAdapter(P.parseShopDesign)}async patchElements(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/elements`).method(`patch`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({elements:i}).runArrayAdapter(P.parseShopElement)}async postShortlink(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}/shortlink`).method(`post`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(q.parse)}},Ht=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/shops`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).bearerToken().runPaginatedAdapter(P.parseShop)}async post(e,n,r,i,a){return await this.request(`/merchants/${e}/events/${n}/shops`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r,starts_on:i,ends_on:a}).runAdapter(P.parseShop)}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/shops/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},Ut=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/stock-pools`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).bearerToken().runPaginatedAdapter(P.parseStockPool)}async getOverview(e,n){return await this.request(`/merchants/${e}/events/${n}/stock-pools/overview`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(P.parseStockOverview)}async getSelectOptions(e,n,r=null,i=null){return await this.request(`/merchants/${e}/events/${n}/stock-pools/select-options`).method(`get`).queryString(t.builder().append(`language`,`nl`).appendArray(`ids[]`,i).append(`searchQuery`,r)).bearerToken().runArrayAdapter(L.parseFluxFormSelectEntry)}async post(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/stock-pools`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:r,stock:i}).runAdapter(P.parseStockPool)}},Wt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(P.parseTicketTemplate)}async getDemo(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}/demo`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async postVisual(e,n,r,i){let a=new FormData;return a.append(`file`,i),await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}/visual`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(a).runAdapter(j.parseStatusResponse)}async patch(e,n,r,i,a,o){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}`).method(`patch`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:i,product_id:a,variant:o}).runAdapter(P.parseTicketTemplate)}async delete(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async deleteVisual(e,n,r){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/${r}/visual`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}},Gt=class extends e{async get(e,n,r,i){return await this.request(`/merchants/${e}/events/${n}/ticket-templates`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,r).append(`limit`,i)).bearerToken().runPaginatedAdapter(P.parseTicketTemplate)}async getSelectOptions(e,n,r=null,i=null){return await this.request(`/merchants/${e}/events/${n}/ticket-templates/select-options`).method(`get`).queryString(t.builder().append(`language`,`nl`).appendArray(`ids[]`,i).append(`searchQuery`,r)).bearerToken().runArrayAdapter(L.parseFluxFormSelectEntry)}async post(e,n,r,i,a,o){let s=new FormData;return s.append(`data`,vt({name:r,product_id:i,variant:a})),s.append(`visual`,o),await this.request(`/merchants/${e}/events/${n}/ticket-templates`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(s).runAdapter(P.parseTicketTemplate)}},Kt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/events`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).runPaginatedAdapter(P.parseEvent)}async post(e,n,r,i,a,o){return await this.request(`/merchants/${e}/events`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({name:n,description:r,starts_on:i,ends_on:a,minimum_age:o}).runAdapter(P.parseEvent)}},qt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/finance/invoices/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(I.parseInvoice)}async getPDF(e,n){return await this.request(`/merchants/${e}/finance/invoices/${n}/pdf`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}},Jt=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/finance/invoices`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).runPaginatedAdapter(I.parseInvoice)}},Yt=class extends e{async getDailyRevenue(e){return await this.request(`/merchants/${e}/finance/daily-revenue`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).run()}async getMonthlyRevenue(e){return await this.request(`/merchants/${e}/finance/monthly-revenue`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).run()}async getOverview(e){return await this.request(`/merchants/${e}/finance/overview`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(I.parseFinanceOverview)}},Xt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/orders/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async getPasses(e,n){return await this.request(`/merchants/${e}/orders/${n}/passes`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async getPDF(e,n){return await this.request(`/merchants/${e}/orders/${n}/pdf`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async getTickets(e,n){return await this.request(`/merchants/${e}/orders/${n}/tickets`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter($.parseTicket)}async postResend(e,n){return await this.request(`/merchants/${e}/orders/${n}/resend`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runEmpty()}},Zt=class extends e{async get(e,n,r,i){let a=t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r);return i&&Object.entries(i).forEach(([e,t])=>a.append(e,t)),await this.request(`/merchants/${e}/orders`).method(`get`).queryString(a).bearerToken().runPaginatedAdapter(V.parseOrder)}},Qt=class extends e{async get(e,n){return await this.request(`/merchants/${e}/shops/${n}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(P.parseShop)}async getElements(e,n){return await this.request(`/merchants/${e}/shops/${n}/elements`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(P.parseShopElement)}async getPreview(e,n){return await this.request(`/merchants/${e}/shops/${n}/preview`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(K.parsePublicShop)}},$t=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/shops`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).bearerToken().runPaginatedAdapter(P.parseShop)}},en=class extends e{async getRevenueTrend(e){return await this.request(`/merchants/${e}/statistics/revenue-trend`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getStatus(e){return await this.request(`/merchants/${e}/statistics/status`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}},tn=class extends e{async getAcquisition(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/acquisition-chart/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getAgeDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/age-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getBrowserDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/browser-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getGenderDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/gender-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getLanguageDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/language-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getOsDistribution(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/os-distribution/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getOverview(e){return await this.request(`/merchants/${e}/statistics/buyers/overview`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Y.parseOverview)}async getTopBuyers(e,n,r){return await this.request(`/merchants/${e}/statistics/buyers/top-buyers/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runArrayAdapter(Y.parseRanked)}},nn=class extends e{async getOverview(e){return await this.request(`/merchants/${e}/statistics/events/overview`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Dt.parseOverview)}},rn=class extends e{async getBestRevenueMonth(e){return await this.request(`/merchants/${e}/statistics/overview/best-revenue-month`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Z.parseBestRevenueMonth)}async getEventPerformance(e){return await this.request(`/merchants/${e}/statistics/overview/event-performance`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Z.parseEventPerformance)}async getKeyPerformanceIndicators(e){return await this.request(`/merchants/${e}/statistics/overview/key-performance-indicators`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Z.parseKPIs)}async getRevenueAnalysis(e){return await this.request(`/merchants/${e}/statistics/overview/revenue-analysis`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getRevenueMonthComparison(e){return await this.request(`/merchants/${e}/statistics/overview/revenue-month-comparison`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(e=>J.parseTrend(e,U.parseCost))}},an=class extends e{async getLifetimeTotals(e){return await this.request(`/merchants/${e}/statistics/sales/lifetime-totals`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Q.parseLifetimeTotals)}async getPaymentMethodsChart(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/payment-methods-chart/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getPurchaseBehavior(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/purchase-behavior/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Q.parsePurchaseBehavior)}async getRevenueTrend(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/revenue-trend/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getSalesByDayOfWeek(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/sales-by-day-of-week/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().run()}async getTransactionSuccessRate(e,n,r){return await this.request(`/merchants/${e}/statistics/sales/transaction-success-rate/${n.toSQLDate()}/${r.toSQLDate()}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).bearerToken().runAdapter(Q.parseTransactionSuccessRate)}},on=class extends e{async get(e,n){return await this.request(`/merchants/${e}/tickets/${n}`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter($.parseTicket)}async getPass(e,n){return await this.request(`/merchants/${e}/tickets/${n}/pass`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}async getPDF(e,n){return await this.request(`/merchants/${e}/tickets/${n}/pdf`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).fetchBlob()}},sn=class extends e{async get(e,n,r,i){let a=t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r);return i&&Object.entries(i).forEach(([e,t])=>a.append(e,t)),await this.request(`/merchants/${e}/tickets`).method(`get`).queryString(a).bearerToken().runPaginatedAdapter($.parseTicket)}},cn=class extends e{async get(e,n,r){return await this.request(`/merchants/${e}/users`).method(`get`).queryString(t.builder().append(`language`,`nl`).append(`offset`,n).append(`limit`,r)).bearerToken().runPaginatedAdapter(R.parseMerchantUser)}async postInvite(e,n,r,i,a){return await this.request(`/merchants/${e}/users/invite`).method(`post`).queryString(t.builder().append(`language`,`nl`)).bearerToken().body({first_name:n,last_name:r,email:i,claims:a}).runAdapter(R.parseInvitation)}},ln=class extends e{async get(){return await this.request(`/me`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseUser)}async getTotp(){return await this.request(`/me/totp`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(k.parseTotpState)}async post(e,n,r){return await this.request(`/me`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({first_name:e,last_name:n,phone_number:r}).runAdapter(j.parseStatusResponse)}async postChangePassword(e,n,r){return await this.request(`/me/change-password`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({password:e,new_password:n,new_password_confirm:r}).runAdapter(j.parseStatusResponse)}async postProfilePicture(e){let n=new FormData;return n.append(`file`,e),await this.request(`/me/profile-picture`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body(n).runAdapter(j.parseStatusResponse)}async postTotp(e,n){return await this.request(`/me/totp`).method(`post`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({secret:e,code:n}).runAdapter(k.parseTotpState)}async deleteProfilePicture(){return await this.request(`/me/profile-picture`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(j.parseStatusResponse)}async deleteTotp(e){return await this.request(`/me/totp`).method(`delete`).bearerToken().queryString(t.builder().append(`language`,`nl`)).body({code:e}).runAdapter(k.parseTotpState)}},un=class extends e{async get(e){return await this.request(`/orders/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async getPaymentMethods(e){return await this.request(`/orders/${e}/payment-methods`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(Ct.parsePublicPaymentMethod)}async postCancel(e){return await this.request(`/orders/${e}/cancel`).method(`post`).queryString(t.builder().append(`language`,`nl`)).runAdapter(V.parseOrder)}async postPay(e,n){return await this.request(`/orders/${e}/pay`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({payment_method_id:n}).runAdapter(U.parseTransaction)}},dn=class extends e{async get(e){return await this.request(`/shops/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(K.parsePublicShop)}async buy(e,n,r,i,a,o,s,c,l,u,d,f,p){let m=null;return l=E(l),u=E(u),d=E(d),f=E(f),p=E(p),(l||u||d||f||p)&&(m={city:l,country_code:u,number:d,postal_code:f,street:p}),await this.request(`/shops/${e}/buy/${n}`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({first_name:r,last_name:i,email:a,phone_number:o.trim()===``?null:o.trim(),date_of_birth:s?.toISODate(),gender:c,address:m}).runAdapter(V.parseOrder)}async reserve(e,n){return await this.request(`/shops/${e}/reserve`).method(`post`).queryString(t.builder().append(`language`,`nl`)).body({products:n.map(e=>[e.productId,e.quantity,e.timeSlotId])}).runAdapter(K.parsePublicShopReservation)}},fn=class extends e{async get(e){return await this.request(`/reservations/${e}`).method(`get`).queryString(t.builder().append(`language`,`nl`)).runAdapter(Tt.parseReservation)}async remove(e){return await this.request(`/reservations/${e}`).method(`delete`).queryString(t.builder().append(`language`,`nl`)).run()}},pn=class extends e{async checkEmail(e){return await this.request(`/service/check-email`).method(`get`).queryString(t.builder().append(`email`,e).append(`language`,`nl`)).run()}async getInfo(){return await this.request(`/service/info`).method(`get`).queryString(t.builder().append(`language`,`nl`)).run()}},mn=class extends e{async getClaims(){return await this.request(`/ui/select-options/claims`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runAdapter(e=>{let t=[];return e.forEach(e=>{t.push({icon:e.icon,label:e.label}),e.claims.forEach(e=>t.push({label:e.label,value:e.value}))}),t})}async getCountries(){return await this.request(`/ui/select-options/countries`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(e=>e)}async getLanguages(){return await this.request(`/ui/select-options/languages`).method(`get`).bearerToken().queryString(t.builder().append(`language`,`nl`)).runArrayAdapter(e=>e)}};export{T as AddressAdapter,o as AddressDto,d as AppTeamDto,k as AuthAdapter,Ot as AuthService,A as BuyerAdapter,je as BuyerDto,j as CommonAdapter,we as ContractDto,x as CostDto,M as DateTimeAdapter,P as EventAdapter,f as EventAvailabilityDto,p as EventCountersDto,m as EventDto,ee as EventStatisticsAttendanceDto,te as EventStatisticsBuyerTotalsDto,ne as EventStatisticsFinancialDto,ie as EventStatisticsOrderTotalsDto,re as EventStatisticsOrdersDto,se as EventStatisticsScanTotalsDto,ae as EventStatisticsScansDto,oe as EventStatisticsScansPerAppTeamDto,ce as EventStatisticsSwapTotalsDto,F as FileSystemAdapter,I as FinanceAdapter,xe as FinanceOverviewDto,L as FluxAdapter,Te as InvitationDto,kt as InvitationService,Se as InvoiceDto,Ce as InvoiceLineDto,ln as MeService,R as MerchantAdapter,Mt as MerchantBuyerService,Nt as MerchantBuyersService,z as MerchantDashboardAdapter,Ee as MerchantDashboardKeyMetricsDto,Pt as MerchantDashboardService,De as MerchantDashboardUpcomingEventDto,Oe as MerchantDto,Ft as MerchantEventAppTeamService,It as MerchantEventAppTeamsService,Lt as MerchantEventProductService,Rt as MerchantEventProductsService,zt as MerchantEventService,Vt as MerchantEventShopService,Ht as MerchantEventShopsService,Bt as MerchantEventStatisticsService,Ut as MerchantEventStockPoolsService,Wt as MerchantEventTicketTemplateService,Gt as MerchantEventTicketTemplatesService,Kt as MerchantEventsService,qt as MerchantFinanceInvoiceService,Jt as MerchantFinanceInvoicesService,Yt as MerchantFinanceService,Xt as MerchantOrderService,Zt as MerchantOrdersService,At as MerchantService,Qt as MerchantShopService,$t as MerchantShopsService,tn as MerchantStatisticsBuyersService,nn as MerchantStatisticsEventsService,rn as MerchantStatisticsOverviewService,an as MerchantStatisticsSalesService,en as MerchantStatisticsService,on as MerchantTicketService,sn as MerchantTicketsService,ke as MerchantUserDto,cn as MerchantUsersService,jt as MerchantsService,V as OrderAdapter,_ as OrderDto,v as OrderLineDto,y as OrderPaymentProviderDto,b as OrderProductDto,U as PaymentAdapter,S as PaymentMethodDto,Me as PaymentProviderDto,be as PictureDto,W as ProductAdapter,Pe as ProductDto,un as PublicOrderService,Ct as PublicPayAdapter,Fe as PublicPaymentMethodDto,K as PublicShopAdapter,Ie as PublicShopCartProductDto,Le as PublicShopDesignDto,Re as PublicShopDto,ze as PublicShopElementButtonDto,Be as PublicShopElementDividerDto,C as PublicShopElementDto,Ve as PublicShopElementHeadingDto,He as PublicShopElementNoticeDto,Ue as PublicShopElementProductDto,We as PublicShopElementTextDto,Ge as PublicShopEventDto,Ke as PublicShopMerchantDto,qe as PublicShopProductDto,Je as PublicShopReservationDto,Xe as PublicShopReservationProductDetailsDto,Ye as PublicShopReservationProductDto,dn as PublicShopService,Ze as PublicShopTimeSlotDto,Tt as ReservationAdapter,Qe as ReservationDto,$e as ReservationItemDto,et as ReservationProductDto,fn as ReservationService,Et as ServiceAdapter,tt as ServiceInfoDto,pn as ServicesService,le as ShopDesignDto,ue as ShopDto,de as ShopElementButtonDto,fe as ShopElementDividerDto,h as ShopElementDto,pe as ShopElementHeadingDto,me as ShopElementNoticeDto,he as ShopElementProductDto,g as ShopElementTextDto,q as ShortlinkAdapter,nt as ShortlinkDto,J as StatisticsAdapter,Y as StatisticsBuyersAdapter,rt as StatisticsBuyersOverviewDto,it as StatisticsBuyersRankedDto,Dt as StatisticsEventsAdapter,at as StatisticsEventsOverviewDto,Z as StatisticsOverviewAdapter,ot as StatisticsOverviewBestRevenueMonthDto,st as StatisticsOverviewEventPerformanceDto,ct as StatisticsOverviewEventPerformanceEventDto,lt as StatisticsOverviewEventPerformanceSummaryDto,w as StatisticsOverviewKPIsDto,ut as StatisticsOverviewKPIsTotalEventsHostedDto,dt as StatisticsOverviewKPIsTotalRevenueDto,ft as StatisticsOverviewKPIsTotalTicketsSoldDto,Q as StatisticsSalesAdapter,pt as StatisticsSalesLifetimeTotalsDto,mt as StatisticsSalesPurchaseBehaviorDto,ht as StatisticsSalesTransactionSuccessRateDto,gt as StatisticsTrendDto,u as StatusResponseDto,ge as StockOverviewDto,_e as StockOverviewItemDto,ve as StockPoolDto,$ as TicketAdapter,_t as TicketDto,ye as TicketTemplateDto,s as TotpStateDto,Ne as TransactionDto,mn as UiSelectOptionsService,c as UserDto,l as UserTokenDto,Ae as VatNumberDto,E as emptyNull,vt as jsonBlob,D as optional,O as optionalArray};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|