{ "version": 3, "sources": ["src/app/store/e-tickets/tickets-item/tickets-item.actions.ts", "src/app/store/e-tickets/tickets-item/tickets-item.state.ts", "src/app/modules/orders/orders.service.ts"], "sourcesContent": ["import {IOrder} from \"src/app/interfaces/general/profile-definitions/order.interface\";\n\n\nexport class GetTicket {\n public static readonly type = '[TicketItem] Get ticket';\n constructor(public id: string, public settings?: {silent: boolean}) {}\n}\n\nexport class ActivateTicketAutomaticRenewal {\n public static readonly type = '[TicketItem] Activate ticket (membership only) automatic renewal';\n constructor(public id: string, public settings?: {omitErrorInState: boolean}) {}\n}\n\nexport class DeactivateTicketAutomaticRenewal {\n public static readonly type = '[TicketItem] Deactivate ticket (membership only) automatic renewal';\n constructor(public id: string, public settings?: {omitErrorInState: boolean}) {}\n}\n\nexport class SetTicketsOfCurrentOrder {\n public static readonly type = '[TicketItem] Set tickets of current order';\n constructor(public order: IOrder) {}\n}\n\nexport class GetPrevTicketInOrder {\n public static readonly type = '[TicketItem] Get prev ticket in order';\n constructor(public id: string) {}\n}\n\nexport class GetNextTicketInOrder {\n public static readonly type = '[TicketItem] Get next ticket in order';\n constructor(public id: string) {}\n}\n", "import {Action, createSelector, Selector, State, StateContext, Store} from '@ngxs/store';\nimport {Injectable} from '@angular/core';\nimport {TicketsService} from 'src/app/modules/membership/tickets.service';\nimport {\n ActivateTicketAutomaticRenewal,\n DeactivateTicketAutomaticRenewal,\n GetNextTicketInOrder,\n GetPrevTicketInOrder,\n GetTicket,\n SetTicketsOfCurrentOrder,\n} from './tickets-item.actions';\nimport {Navigate} from '@ngxs/router-plugin';\nimport {firstValueFrom} from 'rxjs';\nimport {errorHandler, httpErrorToString} from 'src/app/shared/helpers/error-handler';\nimport {AppInsightsService} from 'src/app/core/app-insights/app-insights.service';\nimport {ITicket} from 'src/app/interfaces/general/profile-definitions/ticket.interface';\nimport {MarketplaceApiService} from 'src/app/shared/services/marketplace-api.service';\n\nexport interface ITicketsOfCurrentOrder {\n orderNumber: string;\n ticketsIds: string[];\n}\n\nexport interface ITicketItemState {\n ticket: ITicket;\n loading: boolean;\n hasValue: boolean;\n error: any;\n ticketsOfCurrentOrder: ITicketsOfCurrentOrder;\n}\n\n@State({\n name: 'ticketItem',\n defaults: {\n ticket: null,\n loading: false,\n hasValue: false,\n error: null,\n ticketsOfCurrentOrder: null,\n },\n})\n@Injectable()\nexport class TicketsItemState {\n constructor(\n private ticketsService: TicketsService,\n private marketplaceApiService: MarketplaceApiService,\n private store: Store,\n private insights: AppInsightsService\n ) {}\n\n @Selector()\n public static ticket(state: ITicketItemState): ITicket {\n return state.ticket;\n }\n\n @Selector()\n public static ticketsOfCurrentOrder(state: ITicketItemState): ITicketsOfCurrentOrder {\n return state.ticketsOfCurrentOrder;\n }\n\n @Selector()\n public static loading(state: ITicketItemState): boolean {\n return state.loading;\n }\n\n @Selector()\n public static hasValue(state: ITicketItemState): boolean {\n return state.hasValue;\n }\n\n @Selector()\n public static error(state: ITicketItemState): any {\n return state.error;\n }\n\n public static hasPrevValueInOrder(id: string) {\n return createSelector([TicketsItemState], (state: ITicketItemState) => {\n return (\n state.ticketsOfCurrentOrder?.ticketsIds?.findIndex((ticketId) => ticketId === id) >\n 0\n );\n });\n }\n\n public static hasNextValueInOrder(id: string) {\n return createSelector([TicketsItemState], (state: ITicketItemState) => {\n return (\n state.ticketsOfCurrentOrder?.ticketsIds?.findIndex((ticketId) => ticketId === id) <\n state.ticketsOfCurrentOrder?.ticketsIds?.length - 1\n );\n });\n }\n\n @Action(GetPrevTicketInOrder)\n public getPrevTicketInOrder(\n ctx: StateContext,\n {id}: GetPrevTicketInOrder\n ): void {\n const state = ctx.getState();\n const indexOfPrev =\n state.ticketsOfCurrentOrder.ticketsIds.findIndex((ticketId) => ticketId === id) - 1;\n this.store.dispatch(\n new Navigate([\n '/orders',\n state.ticketsOfCurrentOrder.orderNumber,\n 'tickets',\n state.ticketsOfCurrentOrder.ticketsIds[indexOfPrev],\n ])\n );\n }\n\n @Action(GetNextTicketInOrder)\n public getNextTicketInOrder(\n ctx: StateContext,\n {id}: GetNextTicketInOrder\n ): void {\n const state = ctx.getState();\n const indexOfNext =\n state.ticketsOfCurrentOrder.ticketsIds.findIndex((ticketId) => ticketId === id) + 1;\n\n this.store.dispatch(\n new Navigate([\n '/orders',\n state.ticketsOfCurrentOrder.orderNumber,\n 'tickets',\n state.ticketsOfCurrentOrder.ticketsIds[indexOfNext],\n ])\n );\n }\n\n @Action(GetTicket)\n public async getTicket(ctx: StateContext, {id, settings}: GetTicket): Promise {\n try {\n const silent = settings?.silent ?? false;\n ctx.patchState({error: null});\n if (!silent) {\n ctx.patchState({loading: true});\n }\n const ticket: ITicket = await firstValueFrom(this.ticketsService.getTicketById(id));\n ctx.patchState({\n ticket,\n hasValue: !!ticket,\n loading: false,\n error: null,\n });\n } catch (error) {\n errorHandler({\n error,\n appInsightsSrv: this.insights,\n scope: 'TicketsItemState',\n });\n ctx.patchState({\n error: httpErrorToString(error),\n ticket: null,\n hasValue: false,\n loading: false,\n });\n }\n }\n\n @Action(ActivateTicketAutomaticRenewal)\n public async activateTicketAutomaticRenewal(\n ctx: StateContext,\n {id, settings}: ActivateTicketAutomaticRenewal\n ): Promise {\n const omitErrorInState = settings?.omitErrorInState ?? false;\n try {\n ctx.patchState({error: null});\n const ticket = await firstValueFrom(this.marketplaceApiService.activateAutomaticRenewal(id));\n ctx.patchState({\n ticket,\n hasValue: !!ticket,\n loading: false,\n error: null,\n });\n return ticket;\n } catch (error) {\n errorHandler({\n error,\n appInsightsSrv: this.insights,\n scope: 'TicketsItemState',\n });\n if (!omitErrorInState) {\n ctx.patchState({\n error: httpErrorToString(error),\n loading: false,\n });\n }\n ctx.patchState({\n loading: false,\n });\n throw error;\n }\n }\n\n @Action(DeactivateTicketAutomaticRenewal)\n public async deactivateTicketAutomaticRenewal(\n ctx: StateContext,\n {id, settings}: ActivateTicketAutomaticRenewal\n ): Promise {\n const omitErrorInState = settings?.omitErrorInState ?? false;\n try {\n ctx.patchState({error: null});\n const ticket = await firstValueFrom(this.marketplaceApiService.deactivateAutomaticRenewal(id));\n ctx.patchState({\n ticket,\n hasValue: !!ticket,\n loading: false,\n error: null,\n });\n return ticket;\n } catch (error) {\n errorHandler({\n error,\n appInsightsSrv: this.insights,\n scope: 'TicketsItemState',\n });\n if (!omitErrorInState) {\n ctx.patchState({\n error: httpErrorToString(error),\n loading: false,\n });\n }\n ctx.patchState({\n loading: false,\n });\n throw error;\n }\n }\n\n @Action(SetTicketsOfCurrentOrder)\n public setTicketsOfCurrentOrder(\n ctx: StateContext,\n {order}: SetTicketsOfCurrentOrder\n ) {\n if (!order) {\n ctx.patchState({ticketsOfCurrentOrder: null});\n return;\n }\n if (order.orderNumber === ctx.getState().ticketsOfCurrentOrder?.orderNumber) {\n return;\n }\n\n let allTicketsOfOrder: any[] = [];\n order.orderedItem?.forEach((item) => {\n allTicketsOfOrder = allTicketsOfOrder.concat(item.ticket);\n });\n allTicketsOfOrder = allTicketsOfOrder.map((ticket) => ticket.identifier);\n\n ctx.patchState({\n ticketsOfCurrentOrder: {\n orderNumber: order.orderNumber,\n ticketsIds: allTicketsOfOrder,\n },\n });\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 {IOrder} from 'src/app/interfaces/general/profile-definitions/order.interface';\nimport {ParamsEncoder} from 'src/app/core/config/params-encoder';\nimport {map} from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class OrdersService {\n constructor(\n private http: HttpClient,\n private config: ConfigurationService,\n ) {}\n\n public getOrders(nextPageToken?: string, partner?: string): Observable> {\n let params = new HttpParams({encoder: new ParamsEncoder()}).append('top', 10000);\n if (nextPageToken) {\n params = params.append('continuationToken', nextPageToken);\n }\n if (partner) {\n params = params.append('partner', partner);\n }\n return this.http\n .get>(`${this.config.get('profileApi')}/orders`, {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 getOrderById(id: string): Observable {\n return this.http.get(`${this.config.get('profileApi')}/orders/${id}`);\n }\n}\n"], "mappings": "yWAGA,IAAaA,GAAS,IAAA,CAAhB,IAAOA,EAAP,MAAOA,CAAS,CAElBC,YAAmBC,EAAmBC,EAA4B,CAA/C,KAAAD,GAAAA,EAAmB,KAAAC,SAAAA,CAA+B,GAD9CC,EAAAC,KAAO,0BAD5B,IAAOL,EAAPI,SAAOJ,CAAS,GAAA,EAKTM,GAA8B,IAAA,CAArC,IAAOA,EAAP,MAAOA,CAA8B,CAEvCL,YAAmBC,EAAmBC,EAAsC,CAAzD,KAAAD,GAAAA,EAAmB,KAAAC,SAAAA,CAAyC,GADxDI,EAAAF,KAAO,mEAD5B,IAAOC,EAAPC,SAAOD,CAA8B,GAAA,EAK9BE,GAAgC,IAAA,CAAvC,IAAOA,EAAP,MAAOA,CAAgC,CAEzCP,YAAmBC,EAAmBC,EAAsC,CAAzD,KAAAD,GAAAA,EAAmB,KAAAC,SAAAA,CAAyC,GADxDM,EAAAJ,KAAO,qEAD5B,IAAOG,EAAPC,SAAOD,CAAgC,GAAA,EAKhCE,GAAwB,IAAA,CAA/B,IAAOA,EAAP,MAAOA,CAAwB,CAEjCT,YAAmBU,EAAa,CAAb,KAAAA,MAAAA,CAAgB,GADZC,EAAAP,KAAO,4CAD5B,IAAOK,EAAPE,SAAOF,CAAwB,GAAA,EAKxBG,GAAoB,IAAA,CAA3B,IAAOA,EAAP,MAAOA,CAAoB,CAE7BZ,YAAmBC,EAAU,CAAV,KAAAA,GAAAA,CAAa,GADTY,EAAAT,KAAO,wCAD5B,IAAOQ,EAAPC,SAAOD,CAAoB,GAAA,EAKpBE,GAAoB,IAAA,CAA3B,IAAOA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,YACYC,EACAC,EAA4B,CAD5B,KAAAD,KAAAA,EACA,KAAAC,OAAAA,CACT,CAEIC,UAAUC,EAAwBC,EAAgB,CACrD,IAAIC,EAAS,IAAIC,EAAW,CAACC,QAAS,IAAIC,CAAe,CAAC,EAAEC,OAAO,MAAO,GAAK,EAC/E,OAAIN,IACAE,EAASA,EAAOI,OAAO,oBAAqBN,CAAa,GAEzDC,IACAC,EAASA,EAAOI,OAAO,UAAWL,CAAO,GAEtC,KAAKJ,KACPU,IAAyB,GAAG,KAAKT,OAAOS,IAAI,YAAY,CAAC,UAAW,CAACL,OAAAA,CAAM,CAAC,EAC5EM,KACGC,EAAKC,GAAO,CACR,IAAMC,EAAO,CAAC,GAAID,EAAIC,MAAQ,CAAA,CAAG,EAAEC,KAAK,CAACC,EAAGC,IAAK,CAC7C,IAAMC,EAAQ,IAAIC,KAAKH,EAAEI,eAAe,EAAEC,QAAO,EAEjD,OADc,IAAIF,KAAKF,EAAEG,eAAe,EAAEC,QAAO,EAClCH,CACnB,CAAC,EACD,OAAOI,EAAAC,EAAA,GAAIV,GAAJ,CAASC,KAAAA,CAAI,EACxB,CAAC,CAAC,CAEd,CAEOU,aAAaC,EAAU,CAC1B,OAAO,KAAKzB,KAAKU,IAAY,GAAG,KAAKT,OAAOS,IAAI,YAAY,CAAC,WAAWe,CAAE,EAAE,CAChF,yCA9BS3B,GAAa4B,EAAAC,CAAA,EAAAD,EAAAE,CAAA,CAAA,CAAA,wBAAb9B,EAAa+B,QAAb/B,EAAagC,UAAAC,WAFV,MAAM,CAAA,EAEhB,IAAOjC,EAAPkC,SAAOlC,CAAa,GAAA", "names": ["GetTicket", "constructor", "id", "settings", "_GetTicket", "type", "ActivateTicketAutomaticRenewal", "_ActivateTicketAutomaticRenewal", "DeactivateTicketAutomaticRenewal", "_DeactivateTicketAutomaticRenewal", "SetTicketsOfCurrentOrder", "order", "_SetTicketsOfCurrentOrder", "GetPrevTicketInOrder", "_GetPrevTicketInOrder", "GetNextTicketInOrder", "_GetNextTicketInOrder", "TicketsItemState", "_a", "constructor", "ticketsService", "marketplaceApiService", "store", "insights", "ticket", "state", "ticketsOfCurrentOrder", "loading", "hasValue", "error", "hasPrevValueInOrder", "id", "createSelector", "TicketsItemState_1", "ticketsIds", "findIndex", "ticketId", "hasNextValueInOrder", "length", "getPrevTicketInOrder", "ctx", "getState", "indexOfPrev", "dispatch", "Navigate", "orderNumber", "getNextTicketInOrder", "indexOfNext", "getTicket", "_1", "__async", "settings", "silent", "patchState", "firstValueFrom", "getTicketById", "errorHandler", "appInsightsSrv", "scope", "httpErrorToString", "activateTicketAutomaticRenewal", "omitErrorInState", "activateAutomaticRenewal", "deactivateTicketAutomaticRenewal", "deactivateAutomaticRenewal", "setTicketsOfCurrentOrder", "order", "allTicketsOfOrder", "orderedItem", "forEach", "item", "concat", "map", "identifier", "\u0275\u0275inject", "TicketsService", "MarketplaceApiService", "Store", "AppInsightsService", "factory", "\u0275fac", "__decorate", "Action", "GetPrevTicketInOrder", "GetNextTicketInOrder", "GetTicket", "ActivateTicketAutomaticRenewal", "DeactivateTicketAutomaticRenewal", "SetTicketsOfCurrentOrder", "Selector", "State", "name", "defaults", "OrdersService", "constructor", "http", "config", "getOrders", "nextPageToken", "partner", "params", "HttpParams", "encoder", "ParamsEncoder", "append", "get", "pipe", "map", "res", "data", "sort", "a", "b", "aDate", "Date", "createdDateTime", "getTime", "__spreadProps", "__spreadValues", "getOrderById", "id", "\u0275\u0275inject", "HttpClient", "ConfigurationService", "factory", "\u0275fac", "providedIn", "_OrdersService"] }