{ "version": 3, "sources": ["src/app/store/e-tickets/tickets.actions.ts", "src/app/core/config/params-encoder.ts", "src/app/modules/membership/tickets.service.ts", "src/app/store/e-tickets/tickets.state.ts", "src/app/shared/services/marketplace-api.service.ts"], "sourcesContent": ["export class GetTickets {\n public static readonly type = '[Tickets] Get tickets';\n}\n\nexport class GetValidTickets {\n public static readonly type = '[Tickets] Get valid tickets';\n}\n\nexport class GetPastTickets {\n public static readonly type = '[Tickets] Get past tickets';\n}\n\nexport class GetNextTickets {\n public static readonly type = '[Tickets] Get next tickets';\n}\n\nexport class GetNextTicket {\n public static readonly type = '[Tickets] Get next ticket';\n constructor(public id: string) {\n }\n}\n\nexport class GetPrevTicket {\n public static readonly type = '[Tickets] Get prev ticket';\n constructor(public id: string) {\n }\n}\n", "import {HttpParameterCodec} from '@angular/common/http';\n\nexport class ParamsEncoder implements HttpParameterCodec {\n public decodeKey(key: string): string {\n return decodeURIComponent(key);\n }\n\n public decodeValue(value: string): string {\n return decodeURIComponent(value);\n }\n\n public encodeKey(key: string): string {\n return encodeURIComponent(key);\n }\n\n public encodeValue(value: string): string {\n return encodeURIComponent(value);\n }\n}\n", "import {Injectable} from '@angular/core';\nimport {HttpClient, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {ConfigurationService} from 'src/app/core/config/configuration.service';\nimport {ItemPayload} from 'src/app/interfaces/general/responses/item-payload.interface';\nimport {ParamsEncoder} from 'src/app/core/config/params-encoder';\nimport {map} from 'rxjs/operators';\nimport {ITicket} from 'src/app/interfaces/general/profile-definitions/ticket.interface';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TicketsService {\n private nextPageToken = null;\n constructor(\n private http: HttpClient,\n private config: ConfigurationService,\n ) {}\n\n public getTickets(\n scope: 'CurrentAndFuture' | 'Past' | 'All' = 'All',\n nextPageToken?: string,\n ): Observable> {\n let params = new HttpParams({\n encoder: new ParamsEncoder(),\n })\n // .append('scope', scope)\n .append('top', 10000);\n if (nextPageToken) {\n params = params.append('continuationToken', nextPageToken);\n }\n return this.http\n .get>(`${this.config.get('sjhApi')}/membercards`, {params})\n .pipe(\n map((res) => {\n const data = [...(res.data ?? [])].sort((a, b) => {\n const aDate = new Date(a.createdDateTime).getTime();\n const bDate = new Date(b.createdDateTime).getTime();\n return bDate - aDate;\n });\n return {...res, data};\n }),\n );\n }\n\n public getValidTickets(nextPageToken?: string): Observable> {\n return this.getTickets('CurrentAndFuture', nextPageToken);\n }\n\n public getPastTickets(nextPageToken?: string): Observable> {\n return this.getTickets('Past', nextPageToken);\n }\n\n public getTicketById(id: string): Observable {\n return this.http.get(`${this.config.get('profileApi')}/tickets/${id}`);\n }\n\n public getToken(): Observable {\n return this.http.post(`${this.config.get('profileApi')}/token?grant_type=guest`, {});\n }\n}\n", "import {Action, createSelector, Selector, State, StateContext, Store} from '@ngxs/store';\nimport {Injectable} from '@angular/core';\nimport {\n GetNextTicket,\n GetPastTickets,\n GetPrevTicket,\n GetTickets,\n GetValidTickets,\n GetNextTickets,\n} from './tickets.actions';\nimport {ITicket} from 'src/app/interfaces/general/profile-definitions/ticket.interface';\nimport {ItemPayload} from 'src/app/interfaces/general/responses/item-payload.interface';\nimport {Navigate} from '@ngxs/router-plugin';\nimport {firstValueFrom} from 'rxjs';\nimport {AppInsightsService} from 'src/app/core/app-insights/app-insights.service';\nimport {errorHandler, httpErrorToString, IErrorHandlerArgs} from 'src/app/shared/helpers/error-handler';\nimport {TicketsService} from 'src/app/modules/membership/tickets.service';\n\nexport interface ITicketsState {\n tickets: ITicket[];\n loading: boolean;\n nextPageToken: string;\n hasValue: boolean;\n scope?: 'All' | 'CurrentAndFuture' | 'Past';\n error: any,\n}\n\n@State({\n name: 'tickets',\n defaults: {\n tickets: [],\n loading: false,\n nextPageToken: null,\n hasValue: false,\n scope: null,\n error: null,\n },\n})\n@Injectable()\nexport class TicketsState {\n private readonly _errorHandlerArgsInit: IErrorHandlerArgs = {\n error: null,\n appInsightsSrv: this.insights,\n scope: 'TicketsState',\n };\n constructor(\n private ticketsService: TicketsService,\n private store: Store,\n private insights: AppInsightsService,\n ) { }\n\n @Selector()\n public static tickets(state: ITicketsState): ITicket[] {\n return state.tickets;\n }\n\n @Selector()\n public static loading(state: ITicketsState): boolean {\n return state.loading;\n }\n\n @Selector()\n public static hasValue(state: ITicketsState): boolean {\n return !!state.tickets?.length;\n }\n\n public static hasPrevValue(id: string) {\n return createSelector([TicketsState], (state: ITicketsState) => {\n return state.tickets?.findIndex((ticket) => ticket.identifier === id) > 0;\n });\n }\n\n public static hasNextValue(id: string) {\n return createSelector([TicketsState], (state: ITicketsState) => {\n return (\n state.tickets.findIndex((ticket) => ticket.identifier === id) <\n state.tickets.length - 1\n );\n });\n }\n\n @Action(GetTickets)\n public async getTickets(ctx: StateContext): Promise {\n ctx.patchState({loading: true, error: null});\n try {\n const ticketsState: ItemPayload = await firstValueFrom(\n this.ticketsService.getTickets()\n );\n const filteredTickets = ticketsState.data;\n ctx.patchState({\n tickets: filteredTickets,\n hasValue: !!ticketsState.data.length,\n nextPageToken: ticketsState.nextPageToken,\n loading: false,\n });\n } catch (error) {\n errorHandler({...this._errorHandlerArgsInit, error});\n ctx.patchState({\n loading: false,\n error: httpErrorToString(error),\n });\n }\n\n }\n\n @Action(GetValidTickets)\n public async getValidTickets(ctx: StateContext): Promise {\n ctx.patchState({loading: true, tickets: [], error: null});\n try {\n const ticketsState: ItemPayload = await firstValueFrom(\n this.ticketsService.getValidTickets()\n );\n const filteredTickets = ticketsState.data.filter((ticket) => ticket.additionalType === 'Membership');\n ctx.patchState({\n tickets: filteredTickets,\n hasValue: !!ticketsState.data.length,\n nextPageToken: ticketsState.nextPageToken,\n loading: false,\n scope: 'CurrentAndFuture',\n });\n } catch (error) {\n errorHandler({...this._errorHandlerArgsInit, error});\n ctx.patchState({\n loading: false,\n error: httpErrorToString(error),\n });\n }\n }\n\n @Action(GetPastTickets)\n public async getPastTickets(ctx: StateContext): Promise {\n ctx.patchState({loading: true, tickets: [], error: null});\n try {\n const ticketsState: ItemPayload = await firstValueFrom(\n this.ticketsService.getPastTickets()\n );\n const filteredTickets = ticketsState.data.filter((ticket) => ticket.additionalType === 'Membership');\n ctx.patchState({\n tickets: filteredTickets,\n hasValue: !!ticketsState.data.length,\n nextPageToken: ticketsState.nextPageToken,\n loading: false,\n scope: 'Past',\n });\n } catch (error) {\n errorHandler({...this._errorHandlerArgsInit, error});\n ctx.patchState({\n loading: false,\n error: httpErrorToString(error),\n });\n }\n }\n\n @Action(GetNextTickets)\n public async getNextTickets(ctx: StateContext): Promise {\n const tickets = ctx.getState().tickets;\n const nextPageToken = ctx.getState().nextPageToken;\n const scope = ctx.getState().scope ?? 'All';\n if (nextPageToken) {\n ctx.patchState({loading: true, error: null});\n try {\n const ticketsState: ItemPayload = await firstValueFrom(\n this.ticketsService.getTickets(scope, nextPageToken)\n );\n const filteredTickets = ticketsState.data.filter((ticket) => ticket.additionalType === 'Membership');\n ctx.patchState({\n tickets: [...tickets, ...filteredTickets],\n nextPageToken: ticketsState.nextPageToken,\n loading: false,\n scope,\n });\n } catch (error) {\n errorHandler({...this._errorHandlerArgsInit, error});\n ctx.patchState({\n loading: false,\n error: httpErrorToString(error),\n });\n }\n }\n }\n\n @Action(GetPrevTicket)\n public async getPrevTicket(\n ctx: StateContext,\n {id}: GetPrevTicket\n ): Promise {\n const state = ctx.getState();\n const tickets = state.tickets;\n const index = tickets?.findIndex((order) => order.identifier === id);\n if (index > 0) {\n this.store.dispatch(new Navigate(['/', 'membership', tickets[index - 1].identifier]));\n }\n }\n\n @Action(GetNextTicket)\n public async getNextTicket(\n ctx: StateContext,\n {id}: GetNextTicket\n ): Promise {\n const state = ctx.getState();\n const tickets = state.tickets;\n const index = tickets.findIndex((order) => order.identifier === id);\n if (index === tickets.length - 2) {\n this.store.dispatch(new GetNextTickets());\n this.store.dispatch(new Navigate(['/', 'membership', tickets[index + 1].identifier]));\n }\n\n if (index < tickets.length - 2) {\n this.store.dispatch(new Navigate(['/', 'membership', tickets[index + 1].identifier]));\n }\n }\n}\n", "import {HttpClient, HttpParams} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {map, Observable} from 'rxjs';\nimport {ConfigurationService} from 'src/app/core/config/configuration.service';\nimport {ITicket} from 'src/app/interfaces/general/profile-definitions/ticket.interface';\nimport {IPaymentMethodResponse} from 'src/app/interfaces/general/responses/payment-method-response.interface';\nimport {PaymentProvider} from 'src/app/interfaces/payment-provider.type';\n\nexport interface GetPaymentMethodsRequest {\n paymentProvider: PaymentProvider;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MarketplaceApiService {\n private readonly url = this.cfg.get('marketplaceApi');\n constructor(\n private cfg: ConfigurationService,\n private http: HttpClient,\n ) {}\n\n public getPaymentMethods(\n param?: Partial,\n ): Observable {\n const {paymentProvider} = param ?? {};\n let httpParams = new HttpParams();\n if (paymentProvider) {\n httpParams = httpParams.set('paymentProvider', paymentProvider);\n }\n return this.http\n .get(`${this.url}/paymentmethod`, {params: httpParams})\n .pipe(\n map((response) => {\n const paymentMethods = response.paymentMethods ?? [];\n return {...response, paymentMethods};\n }),\n );\n }\n\n public activateAutomaticRenewal(membershipId: string): Observable {\n return this.handleAutomaticRenewal({membershipId, ticketRenewStatus: 'AutomaticRenew'});\n }\n\n public deactivateAutomaticRenewal(membershipId: string): Observable {\n return this.handleAutomaticRenewal({membershipId, ticketRenewStatus: null});\n }\n\n public handleAutomaticRenewal(param: {\n membershipId: string;\n ticketRenewStatus: 'AutomaticRenew' | null;\n }): Observable {\n const {membershipId, ticketRenewStatus} = param;\n return this.http.put(`${this.url}/tickets/${membershipId}`, {ticketRenewStatus});\n }\n}\n"], "mappings": "8SAAA,IAAaA,GAAU,IAAA,CAAjB,IAAOA,EAAP,MAAOA,CAAU,GACIC,EAAAC,KAAO,wBAD5B,IAAOF,EAAPC,SAAOD,CAAU,GAAA,EAIVG,GAAe,IAAA,CAAtB,IAAOA,EAAP,MAAOA,CAAe,GACDC,EAAAF,KAAO,8BA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C7EI,KACGC,EAAKC,GAAY,CACb,IAAMC,EAAiBD,EAASC,gBAAkB,CAAA,EAClD,OAAOC,EAAAC,EAAA,GAAIH,GAAJ,CAAcC,eAAAA,CAAc,EACvC,CAAC,CAAC,CAEd,CAEOG,yBAAyBC,EAAoB,CAChD,OAAO,KAAKC,uBAAuB,CAACD,aAAAA,EAAcE,kBAAmB,gBAAgB,CAAC,CAC1F,CAEOC,2BAA2BH,EAAoB,CAClD,OAAO,KAAKC,uBAAuB,CAACD,aAAAA,EAAcE,kBAAmB,IAAI,CAAC,CAC9E,CAEOD,uBAAuBd,EAG7B,CACG,GAAM,CAACa,aAAAA,EAAcE,kBAAAA,CAAiB,EAAIf,EAC1C,OAAO,KAAKJ,KAAKqB,IAAa,GAAG,KAAKpB,GAAG,YAAYgB,CAAY,GAAI,CAACE,kBAAAA,CAAiB,CAAC,CAC5F,yCAvCStB,GAAqByB,EAAAC,CAAA,EAAAD,EAAAE,CAAA,CAAA,CAAA,wBAArB3B,EAAqB4B,QAArB5B,EAAqB6B,UAAAC,WAFlB,MAAM,CAAA,EAEhB,IAAO9B,EAAP+B,SAAO/B,CAAqB,GAAA", "names": ["GetTickets", "_GetTickets", "type", "GetValidTickets", "_GetValidTickets", "GetPastTickets", "_GetPastTickets", "GetNextTickets", "_GetNextTickets", "GetNextTicket", "constructor", "id", "_GetNextTicket", "GetPrevTicket", "_GetPrevTicket", "ParamsEncoder", "decodeKey", "key", "decodeURIComponent", "decodeValue", "value", "encodeKey", "encodeURIComponent", "encodeValue", "TicketsService", "constructor", "http", "config", "nextPageToken", "getTickets", "scope", "params", "HttpParams", "encoder", "ParamsEncoder", "append", "get", "pipe", "map", "res", "data", "sort", "a", "b", "aDate", "Date", "createdDateTime", "getTime", "__spreadProps", "__spreadValues", "getValidTickets", "getPastTickets", "getTicketById", "id", "getToken", "post", "\u0275\u0275inject", "HttpClient", "ConfigurationService", "factory", "\u0275fac", "providedIn", "_TicketsService", "TicketsState", "_a", "constructor", "ticketsService", "store", "insights", "_errorHandlerArgsInit", "error", "appInsightsSrv", "scope", "tickets", "state", "loading", "hasValue", "length", "hasPrevValue", "id", "createSelector", "TicketsState_1", "findIndex", "ticket", "identifier", "hasNextValue", "getTickets", "ctx", "__async", "patchState", "ticketsState", "firstValueFrom", "filteredTickets", "data", "nextPageToken", "errorHandler", "__spreadProps", "__spreadValues", "httpErrorToString", "getValidTickets", "filter", "additionalType", "getPastTickets", "getNextTickets", "getState", "getPrevTicket", "_1", "index", "order", "dispatch", "Navigate", "getNextTicket", "GetNextTickets", "\u0275\u0275inject", "TicketsService", "Store", "AppInsightsService", "factory", "\u0275fac", "__decorate", "Action", "GetTickets", "GetValidTickets", "GetPastTickets", "GetPrevTicket", "GetNextTicket", "Selector", "State", "name", "defaults", "MarketplaceApiService", "constructor", "cfg", "http", "url", "get", "getPaymentMethods", "param", "paymentProvider", "httpParams", "HttpParams", "set", "params", "pipe", "map", "response", "paymentMethods", "__spreadProps", "__spreadValues", "activateAutomaticRenewal", "membershipId", "handleAutomaticRenewal", "ticketRenewStatus", "deactivateAutomaticRenewal", "put", "\u0275\u0275inject", "ConfigurationService", "HttpClient", "factory", "\u0275fac", "providedIn", "_MarketplaceApiService"] }